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

 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
*/
/*

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.
*/
/*

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
/*

 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 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

 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 Ab5,tTx,Xpb,Q05,qxb,Jbu,fg,exu,ubb,Q5,Jb,zx5,Pu0,hb,R0,Tsg,igg,Ogq,m5,MTu,Cux,Lg,mll,L55,nqx,F5b,j0u,Yxs,Zgx,Sxl,$l5,ax5,Af,Jf,ei,wpx,lK,Nb,s0s,uK,ml,rbl,Af5,Fp,Ip,fw5,Ub5,e7z,VC,NEs,upq,op,z7T,PKq,TEq,dE,Gkl,Si,OSx,Mil,bS5,uy,Wlg,yfg,Nd,h7q,GQ,R7T,mbx,Iwu,jpb,YTT,BA,o8u,ZSz,db5,STs,$bp,aw5,Klb,spT,kkx,tjT,XAx,q20,lcs,u8z,Nd5,Dc,z3g,Bdg,F8,Mjp,h35,W3p,mdx,y_s,bw0,Ym,HS0,Vh,Zc,dd,vmb,Sj,Emu,L3u,pAg,wd,nmb,Dd5,Icb,jlg,xdb,Y25,Vjg,Zwz,Kw,dd5,$dq,ac0,gmq,Qb,slq,Arz,Jr,Xu5,Jrx,r_5,Uyz,GHg,lF5,Obx,
zjx,BW5,Ciz,hjg,myx,bbp,LQq,pu5,Dyb,IFx,Yi5,Zbb,olx,Sib,aFz,rrp,vu,tOp,XC5,Q9z,Fx,xl,Yl,Kb,wW,si,u3u,qW,PLs,OOg,Bkx,MOl,CLl,uL,hNg,PC,TG,iL,OV,mW5,bO0,Wzz,ytb,vVq,pCz,EVz,nVs,DWz,IHb,CO,MW,xWl,j90,YV5,ZOx,VOs,oVq,dWx,SVx,EV,nO,DH,F3,xV,HOs,jO,Kz0,rtT,ZH,A5u,tns,fgp,dk,Xdq,Qkz,qPl,$V,ewg,KO,NGx,uUl,gk,PUb,zwx,TGb,inx,Ong,c5p,kV,BGx,Mnb,rk,CUq,hwx,A5,t5,fn,XU,Rwl,bnq,mws,QG,y5g,vNg,LSx,J5,en,lU,Nw,uU,zv,pdx,ENu,DwT,FSq,xwq,jkb,YPx,Vnl,Znl,oNl,iU,dwg,SPx,Hns,agq,KSx,gNs,wdx,skx,kvx,Bd,r5u,h5,Rk,AVz,
Xf5,QyT,qBb,Ucb,eLb,G_s,zLp,PI0,Twl,iAx,OA5,cVs,Bw0,RLg,Wd,mcs,bA0,W7T,yVg,vC5,L7b,ECu,SBq,$cu,HAg,gCb,wfq,Ik,sys,AZp,Xmg,Qox,qHx,JZs,U4u,e50,Gc0,lMT,uNz,z5q,tGg,Px5,TDx,iFT,OF0,cZ5,BD5,MG5,Cxx,h55,W$5,m4p,L$q,yZb,vfg,nfu,D4b,F$u,pmb,x45,Efx,YHl,AV,VGb,tV,X1,ZFg,d4b,SHl,aMT,X5b,gfp,K$5,soz,rZb,wms,GwT,J85,lkq,N90,uEx,zcx,Pk0,ias,T9x,Oag,c85,B9z,M25,hcz,mp5,ba5,Whp,vkx,y8x,Zas,UB,okq,S8l,$pu,Hau,aks,Khq,w55,shp,kwx,T_,iI,r8g,q0z,Bf,Mc,G7T,Ni5,C2x,bI,mGp,bkb,Lyb,yeb,vjx,pA,pxl,Ejp,DG5,Fyb,IUx,xG5,jju,
Y0T,VJl,ojx,dGg,$Gx,S0x,Kys,ZA,Se,wxp,sj5,k7s,re5,Aqx,tCb,XDl,qJq,Q65,XN,q4,Tbl,Gc,Cnl,hGx,lx,mqq,RGT,Dq0,FZx,Iss,j6u,otg,SJp,$qT,HUb,asp,gt5,s6q,km5,Pm,AOx,cm,f3x,XQu,Qiq,JOx,tYb,rqp,qv0,ix,eEl,uOq,l3q,TLx,i4T,cOx,BLp,MYx,CXb,bx,hE5,mA5,REb,b4g,yOp,LF,pQ5,nF,FN,DM,Fi5,LiT,VYu,H4g,gBs,Ki5,kOl,Vq,OVu,MUl,Cd5,SG,RMz,Hm,ao,WEl,LEs,EHb,nHu,D9x,KF,FEp,wD,I_x,jw5,YIx,VU5,ZVb,d9g,kf,SIp,$95,fa,qp,KEb,gHg,w95,r4q,AWb,ffT,XVx,lfq,N6x,UPp,zsx,Psx,T6x,ik,c5,B5,B6b,M0x,Ca,Cs0,hsx,Rsu,mPq,Wjp,yWx,vis,LjT,bP5,
pVx,bk,nig,jW5,W5,xPq,Yg5,Eip,V0T,v5,oiu,dPu,Sgq,$Ps,afg,HPz,Kjl,sWz,gig,rW5,q9x,Uix,Grx,u5g,N25,lT5,zZ5,PSq,iG5,cGx,OGu,Max,Yk,hZs,RZb,mix,bG0,vJ0,pss,Lxl,EJx,nJb,Diu,Fxx,xix,Y95,oJT,S9z,diT,NG,$iu,jqp,krp,Alp,t5l,fNq,O0,XtT,qOl,e10,N05,lNu,T0T,if0,Ofg,cl5,M5l,bfu,C0u,R1p,mJz,WP0,ylb,LPp,v7T,E70,ptq,pk,n75,FPp,IN5,V5b,Yj,V$,Zfx,o7b,ZU,$Jb,aj,Kk,gi,g7u,wi,ktT,ri,rlq,ARx,tRz,ftp,fU,XEz,QCl,qp0,U_u,G$5,uC5,P$0,un,TFs,iZu,OZ5,cRz,BFg,MRg,C$x,h$5,Tm,bZx,Wvs,yRx,vIz,Lvx,pE0,EIx,nIT,D_x,Fvu,Itl,x_0,jCb,
mZ,wEx,sCb,bn,WD,yU,k$z,rRb,AL0,tIg,f25,Xib,QOu,GDz,l25,NH0,uc0,z9b,EJ,Ds,Fi,I6,Yt,VU,Zs,THx,db,Opl,SC,cLl,BHb,$t,MIu,CYb,h9q,EOb,Dvb,YFT,dvl,oOu,nOx,SFx,a2q,ULq,rLx,uDu,tvb,lKs,zFb,sJ,TRg,rb,ONT,cYl,Mv5,Cob,hF5,mLq,f4,WIx,yYx,vFx,LI0,pU5,EFz,nF5,bNT,IKq,xLg,jgb,Qy,SQx,$L0,dLb,aKT,KIx,wUx,sgx,gFx,Q8u,J7l,epp,lYb,PQ,OI5,Ttb,iIg,hp5,mx5,bIT,WGb,y7b,vA5,LGx,Ri,YXx,ZIp,xx5,IYb,Vr5,EA0,dxl,Aog,HI5,aYu,KGg,lng,uRs,G6q,cop,enb,pnu,O1b,$xb,r7b,Neq,oAg,Dx5,nAu,FGu,j8q,UIp,oi,nEx,Ff0,In0,xIp,jMb,anl,k6x,ros,
rL,tLu,Qvb,eqx,Utx,lBs,Nfb,zqx,Tf0,PjT,iW5,OWg,cEs,Bfq,Cjq,MLz,zU,yEq,WLs,bWp,Eug,vux,nux,p1l,Dt0,FLT,Ynx,xtx,jvx,ZW5,Sn5,$tx,KLp,gu0,w15,svq,rE5,tMb,B9,X$q,J00,QJx,Uab,NPq,uIb,TPT,O8x,mE,bd,CMu,hyb,W9,yk,Ryb,v9,LV,maT,pV,b8z,EI,W0x,y0b,D_,vY5,L0b,p$T,EYx,nY0,F0x,Das,xab,VMu,Yjp,Z8x,oYx,Idq,dag,H8s,$as,jJp,adx,K0s,YH,gYp,sJb,w$z,kqx,r0q,ttx,Au5,fSx,Z_,QGp,qu5,XFg,UBz,eWx,GF0,zWx,isp,Cgg,bsg,ow,v5l,L_l,d$,pFb,aw,KV,xBb,$H,sI,jGp,Yub,Zss,o5x,Suu,Hsb,aSx,K_q,g5b,kFx,Xzb,t75,sGb,QD5,q1T,XB,fr0,JJx,JW,
U1l,eS5,GR0,lrq,Prb,NVx,zSq,cJp,BVT,m1T,RS0,yJ5,D1g,Fax,x1T,Y1T,V75,opT,d1q,S1x,Hdu,aru,Kaq,sDb,tqg,fCx,kR5,Q1x,J1p,qLx,XIp,UFb,GKg,lCT,NUT,uyl,zIl,cV,BV,hW,mj,i3p,O3x,BUs,hIu,yV,vV,RIx,LP,W9p,y1b,v65,Eg,DFu,j1b,Vqx,Z3b,o6x,SL5,$Fq,H30,g6T,Df,wIx,r1s,FB,AUq,Qbx,IW,UUz,xi,VV,Zf,eig,lXs,GWz,uZz,zi0,P65,T_0,N_b,M$p,C6T,RiT,b_0,Lk0,vgx,p_s,ngb,DUb,Fk5,IXx,xU5,jbq,YYs,ogq,V$5,HV,SYx,aW,$Ux,g6,w6,H_T,aX0,Kkb,ggx,w_x,sg,sbs,kWx,rUu,AH5,fWx,Xoz,QP5,qEu,JHs,e00,U3g,ki,lWg,uop,z0l,PRz,Tzs,cH5,MQx,fG,h0p,m3x,
bL5,Wm5,yHs,vwx,Lmx,pol,Ewz,Bzb,CRb,nws,D3x,jP0,YE5,VQp,ZLs,fz0,qAg,J9z,UHx,QRx,z6x,irT,Pex,Oru,Mh0,h6u,mHx,vdz,y9g,ndx,uS,DHg,F1x,zr,Izz,Ps,xHx,jRp,YAx,Zr5,VhT,odp,dH5,SAx,$Hg,kEb,Ah5,fob,tPT,gdg,az0,QYx,Jhs,Ncx,uXz,Tcb,CAz,RA5,cs,m$5,Wbx,yhb,Lbx,D$s,x$p,VPT,Z65,o3z,d$5,Kbx,SU0,kIg,rhx,A2s,fez,hG,XYb,qm5,J2x,Uh5,e2u,GJl,le5,NOq,z2x,Pau,yX,TOx,i9u,c2T,LG,O95,Mm0,mhx,nG,b9q,Wqu,y2z,pYp,ED5,vDx,Dhu,jzp,Ym0,Vmg,YJ,Z95,$hb,H90,d2,gDu,aeb,Kqs,kJl,r2u,ASu,QX5,U2l,JSs,qwg,ehl,lux,NBb,iX5,uLq,OXq,BBg,cSq,
bXg,v4u,pL5,n4g,o45,mP,Swb,KMx,wLT,hl,Fd,fvb,JMq,q_q,el5,GfT,NKu,lvx,uwx,zls,I7,VI5,XXb,UNb,Qrb,nf,ilb,Olx,cMx,BK0,Rlb,mNs,WOx,yM5,vzu,LOT,pXs,a7,Ezb,nzz,DNx,FOg,Ivb,sO,xNg,VNp,ozx,dNb,wXx,kfx,rMx,Az5,fQb,XR5,JR,qd0,Jz0,Urx,eox,GT5,lQb,uju,PEg,iyl,Oyp,Ro5,CEx,mr5,yzz,vxu,z$,Ldu,pRg,Exb,Fdp,xrg,IQx,Ydx,Zy5,Op,drx,Sds,oxb,$rx,HyT,Kdq,wRx,gxg,sFx,aQ5,kTz,rzx,Aaq,tDx,fmu,XSb,Q4s,q$q,Jab,GLg,egx,lmT,ukb,Nxu,cE,zgq,ixs,MD5,Pcs,RgT,mXz,bx5,WJ5,LJx,xX0,j4p,VDx,Zx5,Ep,$Xx,gaq,kL0,nZ,f0x,raT,ABz,tHb,X4p,ezx,
jR,G45,l0b,uWs,zzb,Pwu,TN0,ORT,cBl,yB5,Rzx,bRx,LUs,vo5,p4b,Eol,DRp,I0T,jHb,VHu,ZRu,dR5,Wup,Lux,Eyq,nyx,DTq,Fux,Il5,jdu,YW0,oyb,dTu,SWb,$Tz,H2s,alu,Ku5,gyx,kBb,fiu,wF,sp,kI,Xgb,Qau,tL,Jk0,TCs,CO5,BCx,jax,Y30,VKs,ekg,POg,NCg,oP5,dV5,S3x,$Vx,Omq,Hm5,K6b,wgx,rk5,AwT,Nv,GZu,Ngx,zQ5,P8x,Ojb,Bgs,cwp,hQu,mMb,Ebq,LKT,WKx,pMu,yw5,nbu,xMT,Wi,yc,Hjb,dMg,KKg,gbT,sSx,kZ5,Lp,rw0,fLx,Xa5,QBs,qh5,zms,uSg,jI,Bog,dH,Cbg,hm5,Rm5,mKx,bhx,Ws5,yAx,vc5,Lsb,pax,Ecx,$O,nc5,DK5,Fsb,ILl,xKx,jBb,Yhl,V1T,aO,Zhg,ocT,dKz,ShT,$Kq,
Hhx,aL5,Ksz,gcg,wa5,sBu,kuu,rAz,gH,tA0,Xlx,qRs,ebs,Nhx,uFq,zbs,Thb,OQ0,cKx,Bhb,qL,mmT,hb5,bQl,WTb,yK0,pll,E15,n1p,FTg,OQ,xmq,Th,YRx,VA5,cU,ZQg,o15,dmb,SRg,ML,KTl,wlx,t9b,ATp,XNb,QQb,vU,qzb,JTu,eDz,lGx,N4b,zDp,PGu,Gyg,T4q,M9z,mnb,b$0,LN,WRu,yTq,nG5,vGT,pNg,EG0,Yzl,FRl,V9b,oGx,Szx,$nz,H$b,aGx,KR0,gGs,sQx,kyT,rT5,An5,tBs,XyT,qks,ee0,us5,TZ5,O7x,MBx,xF,CNu,he0,Reb,msp,b7l,yns,v9q,LBT,pyg,E9z,n9x,Ds5,FBT,IZz,xsb,jZ5,VB5,Yk5,ds5,$s0,V_,H75,g9b,KBx,k9b,rnx,Acp,Xcx,Jcz,qsT,fbx,GNb,eOs,Pqb,lb5,$F,uYu,Cqb,
ODu,ccp,BI5,MbT,hOg,m55,ROx,HU,ag,EK0,Wwx,pcs,Lwp,ycq,vKz,FwT,x5s,Ysx,j$u,Vbb,Ssp,d5x,HDb,gKg,s$q,Kwx,kN5,Amg,rcq,fOq,qNp,kF,Jmu,Ugq,lOx,Trx,CDs,A7,R80,bes,LCx,vQ0,WCx,yml,qx,Dg0,pkb,EQx,FCl,xgp,IOx,Vs0,Zex,dgx,SNu,$g0,HeT,aOx,gQx,wkg,cn,kCu,rmx,XwT,QAT,R8,qy5,U8p,iTu,vn,N30,T3b,uhb,zJz,MVb,B3u,m8g,Cfx,bTx,WWs,pI,vhz,LWq,pw0,yDg,DY,Ehx,EX,I1b,d8b,Sys,$8u,HTp,a1T,KWT,ghp,rDp,sAx,k5p,ww5,t60,qcT,JPx,GXT,lP0,ue0,T1p,zVl,P4x,iiu,cPz,B1q,M6T,C4x,hV0,RV5,biT,o8,yP5,pWx,LN0,nWq,EWp,D7l,FNu,x7g,jns,aPb,$7l,
wW5,sn0,Xbb,QUp,qCs,Jgx,Ue5,eaT,NTg,uqg,zab,TTs,ics,Ocz,cgb,BTg,MFu,hax,Ra5,meT,Q6,v_x,ygx,Wcs,bc5,pbx,Dez,E_T,IDb,xes,YCx,VF5,Zcs,o_b,deu,Kcb,SCT,$eT,Hcg,g_b,wb5,sU5,aDT,G6,AIx,fIg,tZx,NI,Xju,qb0,JIz,UYb,Qel,ed5,Gjx,lIz,Njg,uuz,PWx,Tj0,iE0,OEs,MZx,BjT,bEx,cI5,z6,WH5,CWb,mYx,vZx,LHs,pjp,EZ5,nZb,FHx,IIz,xYz,Ybq,VZb,oZb,Sbx,gZs,aIp,KH5,HE5,$Y5,wjx,RM,sex,mf,kjx,rIx,vO,X35,q4s,Jip,Uks,e_x,G05,l60,p1,E7,Tyx,uPs,Nyx,z_g,W8s,mkb,PVx,R_x,nSs,Dkp,F8T,I6p,xkg,Vfb,oSb,S40,Hvx,a6x,K8x,k05,sIx,riz,fVx,kE,qSx,
Jxz,UEx,ePl,Geq,lVx,Nlb,AE,tE,P3x,Tlb,Ous,Mox,Wex,EMx,pBu,nMx,Feu,IVx,xEx,j5l,YSz,Vo5,eL,Zug,Ke0,gMu,$Eg,SSb,aVx,Huz,AN0,tgb,fpb,Xvx,Qmx,qMx,eKx,U60,JNu,OCx,Tpz,cNz,Bpg,Mgx,RKx,m6x,CFp,hKs,nX0,FAx,x6x,YMu,ZCx,d6s,apu,KAl,gXT,kpl,smu,wvb,rNu,ACT,tEu,fE5,XKq,QEx,qrx,JCb,USb,eYl,lEz,NQb,u7g,zYb,Plz,TQx,OKg,cC5,BQx,MEx,Clx,hYp,WVs,yCb,LVb,E$x,pKs,n$x,Mt,DSl,FVT,IEx,xST,ZKp,VEq,o$T,dSg,Sr5,$S0,KV5,g$5,wK5,sEp,ksl,rC5,Av5,tzg,fqx,X2s,QN0,Jvp,q6u,UQl,eBg,Glg,lqg,N75,unT,zBg,P_b,LW,iHb,OHx,cvb,B7z,Mzb,hB5,
RBz,mQ5,bHb,WXb,yv5,LXs,p25,nRg,DB,Iq5,ZHz,Y6q,jN5,xQx,Vz5,S6T,$Qu,HHz,aqq,gRz,w2q,sNp,rvb,klz,AFp,tcb,f5u,qaT,JFp,UCg,eHb,Gix,l5T,zHb,P5u,df,BXg,Mc0,hH5,bob,mCl,WF5,yFp,SL,H1,LFl,pZx,gf,wf,FFl,ELb,nLb,j_T,YaT,Vcx,Zob,$Cb,a5s,KFs,gLp,wZ0,s_q,rFg,AXu,tSq,fhp,XHx,Qu5,qtz,rf,JX5,Uzu,t0,evg,Gox,lhs,NMT,u$s,zvq,Qi,qa,P7x,TM0,J0,iYp,OY5,cX0,BMp,C7x,hvs,mzz,Lrx,vUx,yXx,pHs,EU5,Yts,Frx,Ih5,xzs,Dzx,ju5,VSb,ZY0,dzb,$zq,eM,Krz,gUs,wH0,su0,kos,A65,fRq,qZg,GPx,Uol,Gq,J6s,P9T,i5b,lM,O5g,c6p,BYl,Mwb,C9u,Rtb,mo0,
WYb,y6p,LYq,p8x,FY0,Doq,xo5,jtl,YZx,Vwx,ors,doz,SZx,$og,H5u,aR5,KYu,gr0,w80,kPs,r6x,Qxx,qoq,Jjq,UOb,ljb,c$,zUb,PQs,Tms,iJ0,OJq,cju,Mx5,CQ0,hUl,RUb,bJ5,W2x,yj5,C8,vnx,L2x,nnx,DOl,h0,RJ,xOb,F2p,jx5,ZJl,Yo0,ons,So5,yi,$Op,HJp,ajx,whT,k2x,v$,Ayp,t_b,fJT,X6x,QKu,qqp,Jyl,Ujx,Nvx,PTu,u0g,zfb,Tvu,Bvg,itu,cyp,M_x,CTx,hf0,bt5,W4T,yyu,L4p,p6x,xj5,IJT,djs,HtT,YY,aJx,dp5,Vi,K4b,gvx,sKb,Ap5,tux,e4x,Gxg,lyq,N50,uQb,z4x,T55,iB5,cpg,Mu0,OBx,B55,h45,CZb,m0x,ypz,bBu,vs5,Lnl,peT,Esp,nsz,D0s,Iyx,Fnp,Vuz,d0z,ZB5,SD5,$0z,
HBx,gP,ayp,Kng,Au,weT,gs5,sLz,rpg,kxb,XGT,Qcz,J$T,Uub,G30,l45,Nnb,uJs,Tnl,OM5,M8x,Bnq,CHb,hrq,Rrb,WD0,xul,pGx,YGq,V85,oeg,duu,a45,KDx,geb,wGx,sc5,k3s,tWx,f$s,Xqq,Qs5,Ufp,G8b,eRp,Pt5,Tqp,iqg,Oqu,cdu,Bqs,MWx,hR5,bqT,Wob,ydz,v0x,Lo5,pqg,Df5,n0u,xf5,YK5,VWu,Zq5,o0b,dfq,$fb,SK0,a$l,k8l,f80,tyq,XPb,QTb,qf5,UZ0,hu,G15,WF,Nu0,zCx,Ppx,Bu5,Cpx,mZz,Wpu,y3s,Lp5,pP5,E2T,DZ0,I85,xZ5,Yfb,o25,Zzl,VyT,ns,Sf5,dZx,$Zx,Hzb,a8q,Kpb,g25,wPx,sTz,r3p,tpz,fab,XJb,Q3x,qel,JQx,UDq,euq,la5,NJb,u2p,Mp0,CB5,hux,mDb,b0u,Wgq,Lgx,
Y5,Iaq,xDp,Yeb,Vp0,Z0x,oT5,dDz,ZS,s3g,Qq,oG,St,kgz,rQT,fxp,Q0l,Xpp,HF,qxp,JbK,Ulp,exK;Ab5=function(){var A,t;return typeof CSS!=="undefined"&&((t=(A=CSS).supports)==null?void 0:t.call(A,"selector(:has(*))"))};
tTx=function(A){return A.visibility!=="hidden"&&A.display!=="none"};
Xpb=function(A){if(Ab5()||A.tagName!=="DETAILS"?!A.matches(fxb):A.querySelector("summary")!==null)return-1;A=A.getAttribute("tabindex")||"0";return Number(A)};
Q05=function(A){return A.some(function(t){return Xpb(t)>0})};
qxb=function(A){if(A.textContent||A.ariaLabel)return!0;if(A instanceof HTMLInputElement){if(!A.labels)return!1;A=_.U(A.labels);for(var t=A.next();!t.done;t=A.next())if(t.value.textContent)return!0}return!1};
Jbu=function(A){return A.sort(function(t,f){return Xpb(f)-Xpb(t)})};
_.Ul0=function(A){A=Array.from(A.querySelectorAll(fxb)).filter(function(t){return(tTx(t.style)?tTx(window.getComputedStyle(t)):!1)&&qxb(t)});
return Q05(A)?Jbu(A):A};
_.Ab=function(A,t){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Ab);else{var f=Error().stack;f&&(this.stack=f)}A&&(this.message=String(A));t!==void 0&&(this.cause=t)};
fg=function(){throw Error("E");};
exu=function(A,t){t=String.fromCharCode.apply(null,t);return A==null?t:A+t};
ubb=function(A){var t=!1;t=t===void 0?!1:t;if(Gzb){if(t&&(lx5?!A.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(A)))throw Error("F");A=(Nsz||(Nsz=new TextEncoder)).encode(A)}else{for(var f=0,X=new Uint8Array(3*A.length),Q=0;Q<A.length;Q++){var q=A.charCodeAt(Q);if(q<128)X[f++]=q;else{if(q<2048)X[f++]=q>>6|192;else{if(q>=55296&&q<=57343){if(q<=56319&&Q<A.length){var e=A.charCodeAt(++Q);if(e>=56320&&e<=57343){q=(q-55296)*1024+e-56320+65536;X[f++]=q>>18|
240;X[f++]=q>>12&63|128;X[f++]=q>>6&63|128;X[f++]=q&63|128;continue}else Q--}if(t)throw Error("F");q=65533}X[f++]=q>>12|224;X[f++]=q>>6&63|128}X[f++]=q&63|128}}A=f===X.length?X:X.subarray(0,f)}return A};
Q5=function(A){_.Xb.setTimeout(function(){throw A;},0)};
_.ql=function(A,t){return A.lastIndexOf(t,0)==0};
Jb=function(A,t){var f=A.length-t.length;return f>=0&&A.indexOf(t,f)==f};
_.Ux=function(A){return/^[\s\xa0]*$/.test(A)};
_.lu=function(A,t){return A.indexOf(t)!=-1};
_.uu=function(A,t){return _.lu(A.toLowerCase(),t.toLowerCase())};
_.Pp=function(A,t){var f=0;A=zz(String(A)).split(".");t=zz(String(t)).split(".");for(var X=Math.max(A.length,t.length),Q=0;f==0&&Q<X;Q++){var q=A[Q]||"",e=t[Q]||"";do{q=/(\d*)(\D*)(.*)/.exec(q)||["","","",""];e=/(\d*)(\D*)(.*)/.exec(e)||["","","",""];if(q[0].length==0&&e[0].length==0)break;f=zx5(q[1].length==0?0:parseInt(q[1],10),e[1].length==0?0:parseInt(e[1],10))||zx5(q[2].length==0,e[2].length==0)||zx5(q[2],e[2]);q=q[3];e=e[3]}while(f==0)}return f};
zx5=function(A,t){return A<t?-1:A>t?1:0};
_.Ox=function(){var A=_.Xb.navigator;return A&&(A=A.userAgent)?A:""};
Pu0=function(A){if(!Ml||!Cg)return!1;for(var t=0;t<Cg.brands.length;t++){var f=Cg.brands[t].brand;if(f&&_.lu(f,A))return!0}return!1};
hb=function(A){return _.lu(_.Ox(),A)};
R0=function(){return Ml?!!Cg&&Cg.brands.length>0:!1};
Tsg=function(){return R0()?!1:hb("Opera")};
igg=function(){return R0()?!1:hb("Trident")||hb("MSIE")};
Ogq=function(){return R0()?Pu0("Microsoft Edge"):hb("Edg/")};
m5=function(){return hb("Firefox")||hb("FxiOS")};
_.cbp=function(){return hb("Safari")&&!(_.Wp()||(R0()?0:hb("Coast"))||Tsg()||(R0()?0:hb("Edge"))||Ogq()||(R0()?Pu0("Opera"):hb("OPR"))||m5()||hb("Silk")||hb("Android"))};
_.Wp=function(){return R0()?Pu0("Chromium"):(hb("Chrome")||hb("CriOS"))&&!(R0()?0:hb("Edge"))||hb("Silk")};
_.Bsg=function(){return hb("Android")&&!(_.Wp()||m5()||Tsg()||hb("Silk"))};
MTu=function(A){var t={};A.forEach(function(f){t[f[0]]=f[1]});
return function(f){return t[f.find(function(X){return X in t})]||""}};
Cux=function(A){var t=_.Ox();if(A==="Internet Explorer"){if(igg())if((A=/rv: *([\d\.]*)/.exec(t))&&A[1])t=A[1];else{A="";var f=/MSIE +([\d\.]+)/.exec(t);if(f&&f[1])if(t=/Trident\/(\d.\d)/.exec(t),f[1]=="7.0")if(t&&t[1])switch(t[1]){case "4.0":A="8.0";break;case "5.0":A="9.0";break;case "6.0":A="10.0";break;case "7.0":A="11.0"}else A="7.0";else A=f[1];t=A}else t="";return t}var X=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");f=[];for(var Q;Q=X.exec(t);)f.push([Q[1],Q[2],Q[3]||void 0]);
t=MTu(f);switch(A){case "Opera":if(Tsg())return t(["Version","Opera"]);if(R0()?Pu0("Opera"):hb("OPR"))return t(["OPR"]);break;case "Microsoft Edge":if(R0()?0:hb("Edge"))return t(["Edge"]);if(Ogq())return t(["Edg"]);break;case "Chromium":if(_.Wp())return t(["Chrome","CriOS","HeadlessChrome"])}return A==="Firefox"&&m5()||A==="Safari"&&_.cbp()||A==="Android Browser"&&_.Bsg()||A==="Silk"&&hb("Silk")?(t=f[2])&&t[1]||"":""};
_.hxx=function(A){if(R0()&&A!=="Silk"){var t=Cg.brands.find(function(f){return f.brand===A});
if(!t||!t.version)return NaN;t=t.version.split(".")}else{t=Cux(A);if(t==="")return NaN;t=t.split(".")}return t.length===0?NaN:Number(t[0])};
Lg=function(){return Ml?!!Cg&&!!Cg.platform:!1};
_.Rx5=function(){return Lg()?Cg.platform==="Android":hb("Android")};
mll=function(){return hb("iPhone")&&!hb("iPod")&&!hb("iPad")};
_.pg=function(){return mll()||hb("iPad")||hb("iPod")};
_.bgl=function(){return Lg()?Cg.platform==="macOS":hb("Macintosh")};
_.W5x=function(){return Lg()?Cg.platform==="Windows":hb("Windows")};
_.ybx=function(){return Lg()?Cg.platform==="Chrome OS":hb("CrOS")};
_.Ex=function(A){return A[A.length-1]};
_.ng=function(A,t,f){t=_.vqg(A,t,f);return t<0?null:typeof A==="string"?A.charAt(t):A[t]};
_.vqg=function(A,t,f){for(var X=A.length,Q=typeof A==="string"?A.split(""):A,q=0;q<X;q++)if(q in Q&&t.call(f,Q[q],q,A))return q;return-1};
L55=function(A){for(var t=_.I0,f=typeof A==="string"?A.split(""):A,X=A.length-1;X>=0;X--)if(X in f&&t.call(void 0,f[X],X,A))return X;return-1};
_.Zx=function(A,t){return _.jT(A,t)>=0};
_.pp5=function(A,t){_.Zx(A,t)||A.push(t)};
_.o0=function(A,t){t=_.jT(A,t);var f;(f=t>=0)&&_.Eqb(A,t);return f};
_.Eqb=function(A,t){Array.prototype.splice.call(A,t,1)};
_.ds=function(A){var t=A.length;if(t>0){for(var f=Array(t),X=0;X<t;X++)f[X]=A[X];return f}return[]};
_.$q=function(A,t){for(var f=1;f<arguments.length;f++){var X=arguments[f];if(_.ST(X)){var Q=A.length||0,q=X.length||0;A.length=Q+q;for(var e=0;e<q;e++)A[Q+e]=X[e]}else A.push(X)}};
_.DlT=function(A,t,f,X){Array.prototype.splice.apply(A,nqx(arguments,1))};
nqx=function(A,t,f){return arguments.length<=2?Array.prototype.slice.call(A,t):Array.prototype.slice.call(A,t,f)};
F5b=function(A,t){t=t||A;for(var f=0,X=0,Q={};X<A.length;){var q=A[X++],e=_.Hp(q)?"o"+_.gs(q):(typeof q).charAt(0)+q;Object.prototype.hasOwnProperty.call(Q,e)||(Q[e]=!0,t[f++]=q)}t.length=f};
_.xlx=function(A,t,f){f=f||_.Ixq;for(var X=0,Q=A.length,q;X<Q;){var e=X+(Q-X>>>1);var G=f(t,A[e]);G>0?X=e+1:(Q=e,q=!G)}return q?X:-X-1};
_.ws=function(A,t,f){if(!_.ST(A)||!_.ST(t)||A.length!=t.length)return!1;var X=A.length;f=f||j0u;for(var Q=0;Q<X;Q++)if(!f(A[Q],t[Q]))return!1;return!0};
_.Ixq=function(A,t){return A>t?1:A<t?-1:0};
j0u=function(A,t){return A===t};
Yxs=function(A,t,f){t=Array.prototype.splice.call(A,t,1);Array.prototype.splice.call(A,f,0,t[0])};
Zgx=function(A){return VT0[A]||""};
Sxl=function(A){if(!oqx)return _.sx(A);A=dlp.test(A)?A.replace(dlp,Zgx):A;A=atob(A);for(var t=new Uint8Array(A.length),f=0;f<A.length;f++)t[f]=A.charCodeAt(f);return t};
$l5=function(A,t){A.__closure__error__context__984382||(A.__closure__error__context__984382={});A.__closure__error__context__984382.severity=t};
_.kq=function(A){A=Error(A);$l5(A,"warning");return A};
ax5=function(A,t){if(A!=null){var f;var X=(f=Hgp)!=null?f:Hgp={};f=X[A]||0;f>=t||(X[A]=f+1,A=Error(),$l5(A,"incident"),Q5(A))}};
Af=function(A,t,f){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(f===void 0?0:f)&&Symbol.for&&A?Symbol.for(A):A!=null?Symbol(A):Symbol():t};
Jf=function(A,t){Xp||_.qb in A||K5T(A,gqp);A[_.qb]|=t};
ei=function(A,t){Xp||_.qb in A||K5T(A,gqp);A[_.qb]=t};
wpx=function(A){if(4&A)return 512&A?512:1024&A?1024:0};
lK=function(A){Jf(A,34);return A};
Nb=function(A){Jf(A,8192);return A};
s0s=function(A){Jf(A,32);return A};
uK=function(){return typeof BigInt==="function"};
ml=function(A,t){return t===void 0?A.copyOnWrite!==BT&&!!(2&(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.qb]|0)):!!(2&t)&&A.copyOnWrite!==BT};
_.nS=function(A,t){if(A!=null)if(typeof A==="string")A=A?new yC(A,vT):_.pS();else if(A.constructor!==yC)if(kzb&&A!=null&&A instanceof Uint8Array)A=A.length?new yC(new Uint8Array(A),vT):_.pS();else{if(!t)throw Error();A=void 0}return A};
rbl=function(A,t){if(typeof t!=="number"||t<0||t>=A.length)throw Error();};
Af5=function(A,t,f){var X=t&128?0:-1,Q=A.length,q;if(q=!!Q)q=A[Q-1],q=q!=null&&typeof q==="object"&&q.constructor===Object;var e=Q+(q?-1:0);for(t=t&128?1:0;t<e;t++)f(t-X,A[t]);if(q){A=A[Q-1];for(var G in A)!isNaN(G)&&f(+G,A[G])}};
Fp=function(A){return A&128?Dw:void 0};
Ip=function(A){A.isGuard_doNotManuallySetPrettyPlease=!0;return A};
fw5=function(){var A=ti5;return Ip(function(t){for(var f in A)if(t===A[f]&&!/^[0-9]+$/.test(f))return!0;return!1})};
_.x8=function(A){var t=A;if(XTq(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t));}else if(QpT(t)&&!Number.isSafeInteger(t))throw Error(String(t));return qT5?BigInt(A):A=Jfz(A)?A?"1":"0":XTq(A)?A.trim()||"0":String(A)};
Ub5=function(A,t){if(A.length>t.length)return!1;if(A.length<t.length||A===t)return!0;for(var f=0;f<A.length;f++){var X=A[f],Q=t[f];if(X>Q)return!1;if(X<Q)return!0}};
e7z=function(A){var t=A>>>0;ji=t;Y8=(A-t)/4294967296>>>0};
VC=function(A){if(A<0){e7z(-A);var t=_.U(Gkl(ji,Y8));A=t.next().value;t=t.next().value;ji=A>>>0;Y8=t>>>0}else e7z(A)};
NEs=function(A){var t=lwp||(lwp=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+A,!0);Y8=0;ji=t.getUint32(0,!0)};
upq=function(A,t){var f=t*4294967296+(A>>>0);return Number.isSafeInteger(f)?f:_.Zw(A,t)};
op=function(A,t){var f=t&2147483648;f&&(A=~A+1>>>0,t=~t>>>0,A==0&&(t=t+1>>>0));A=upq(A,t);return typeof A==="number"?f?-A:A:f?"-"+A:A};
z7T=function(A){var t=ji,f=Y8,X=f>>31;f=(f<<1|t>>>31)^X;A(t<<1^X,f)};
PKq=function(A,t){var f=-(A&1);A=(A>>>1|t<<31)^f;return op(A,t>>>1^f)};
_.Zw=function(A,t){t>>>=0;A>>>=0;if(t<=2097151)var f=""+(4294967296*t+A);else uK()?f=""+(BigInt(t)<<BigInt(32)|BigInt(A)):(f=(A>>>24|t<<8)&16777215,t=t>>16&65535,A=(A&16777215)+f*6777216+t*6710656,f+=t*8147497,t*=2,A>=1E7&&(f+=A/1E7>>>0,A%=1E7),f>=1E7&&(t+=f/1E7>>>0,f%=1E7),f=t+TEq(f)+TEq(A));return f};
TEq=function(A){A=String(A);return"0000000".slice(A.length)+A};
_.iSb=function(A,t){t&2147483648?uK()?A=""+(BigInt(t|0)<<BigInt(32)|BigInt(A>>>0)):(t=_.U(Gkl(A,t)),A=t.next().value,t=t.next().value,A="-"+_.Zw(A,t)):A=_.Zw(A,t);return A};
dE=function(A){if(A.length<16)VC(Number(A));else if(uK())A=BigInt(A),ji=Number(A&BigInt(4294967295))>>>0,Y8=Number(A>>BigInt(32)&BigInt(4294967295));else{var t=+(A[0]==="-");Y8=ji=0;for(var f=A.length,X=t,Q=(f-t)%6+t;Q<=f;X=Q,Q+=6)X=Number(A.slice(X,Q)),Y8*=1E6,ji=ji*1E6+X,ji>=4294967296&&(Y8+=Math.trunc(ji/4294967296),Y8>>>=0,ji>>>=0);t&&(t=_.U(Gkl(ji,Y8)),A=t.next().value,t=t.next().value,ji=A,Y8=t)}};
Gkl=function(A,t){t=~t;A?A=~A+1:t+=1;return[A,t]};
Si=function(A){return Array.prototype.slice.call(A)};
_.ap=function(A,t){throw Error(t===void 0?"unexpected value "+A+"!":t);};
_.KS=function(A){if(A!=null&&typeof A!=="number")throw Error("L`"+typeof A+"`"+A);return A};
_.sT=function(A){if(A==null||typeof A==="number")return A;if(A==="NaN"||A==="Infinity"||A==="-Infinity")return Number(A)};
OSx=function(A){if(A!=null&&typeof A!=="boolean")throw Error("M`"+_.k8(A)+"`"+A);return A};
_.cf0=function(A){if(A==null||typeof A==="boolean")return A;if(typeof A==="number")return!!A};
_.t_=function(A){switch(typeof A){case "bigint":return!0;case "number":return A_(A);case "string":return BEz.test(A);default:return!1}};
_.X8=function(A){if(!A_(A))throw _.kq("enum");return A|0};
_.J_=function(A){return A==null?A:A_(A)?A|0:void 0};
Mil=function(A){if(typeof A!=="number")throw _.kq("int32");if(!A_(A))throw _.kq("int32");return A|0};
_.U2=function(A){return A==null?A:Mil(A)};
_.ej=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return A_(A)?A|0:void 0};
_.CKT=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return A_(A)?A>>>0:void 0};
bS5=function(A){var t=0;t=t===void 0?0:t;if(!_.t_(A))throw _.kq("int64");var f=typeof A;switch(t){case 512:switch(f){case "string":return GQ(A);case "bigint":return String(ly(64,A));default:return h7q(A)}case 1024:switch(f){case "string":return R7T(A);case "bigint":return _.x8(ly(64,A));default:return mbx(A)}case 0:switch(f){case "string":return GQ(A);case "bigint":return _.x8(ly(64,A));default:return Nd(A)}default:return _.ap(t,"Unknown format requested type for int64")}};
uy=function(A){return A==null?A:bS5(A)};
Wlg=function(A){var t=A.length;if(A[0]==="-"?t<20||t===20&&A<="-9223372036854775808":t<19||t===19&&A<="9223372036854775807")return A;dE(A);return _.iSb(ji,Y8)};
yfg=function(A){if(A[0]==="-")var t=!1;else t=A.length,t=t<20?!0:t===20&&A<="18446744073709551615";if(t)return A;dE(A);return _.Zw(ji,Y8)};
Nd=function(A){A=zQ(A);PA(A)||(VC(A),A=op(ji,Y8));return A};
_.v8p=function(A){A=zQ(A);A>=0&&PA(A)||(VC(A),A=upq(ji,Y8));return A};
h7q=function(A){A=zQ(A);PA(A)?A=String(A):(VC(A),A=_.iSb(ji,Y8));return A};
_.Llq=function(A){A=zQ(A);A>=0&&PA(A)?A=String(A):(VC(A),A=_.Zw(ji,Y8));return A};
GQ=function(A){var t=zQ(Number(A));if(PA(t))return String(t);t=A.indexOf(".");t!==-1&&(A=A.substring(0,t));return Wlg(A)};
R7T=function(A){var t=zQ(Number(A));if(PA(t))return _.x8(t);t=A.indexOf(".");t!==-1&&(A=A.substring(0,t));return uK()?_.x8(ly(64,BigInt(A))):_.x8(Wlg(A))};
mbx=function(A){return PA(A)?_.x8(Nd(A)):_.x8(h7q(A))};
_.pTb=function(A){return PA(A)?_.x8(_.v8p(A)):_.x8(_.Llq(A))};
_.E8z=function(A){var t=zQ(Number(A));if(PA(t)&&t>=0)return String(t);t=A.indexOf(".");t!==-1&&(A=A.substring(0,t));return yfg(A)};
_.n8q=function(A){var t=zQ(Number(A));if(PA(t)&&t>=0)return _.x8(t);t=A.indexOf(".");t!==-1&&(A=A.substring(0,t));return uK()?_.x8((0,_.TQ)(64,BigInt(A))):_.x8(yfg(A))};
_.Flu=function(A){if(A==null)return A;if(typeof A==="bigint")return Db5(A)?A=Number(A):(A=ly(64,A),A=Db5(A)?Number(A):String(A)),A;if(_.t_(A))return typeof A==="number"?Nd(A):GQ(A)};
Iwu=function(A,t){t=t===void 0?!1:t;var f=typeof A;if(A==null)return A;if(f==="bigint")return String(ly(64,A));if(_.t_(A))return f==="string"?GQ(A):t?h7q(A):Nd(A)};
_.xb5=function(A){var t=typeof A;if(A==null)return A;if(t==="bigint")return _.x8(ly(64,A));if(_.t_(A))return t==="string"?R7T(A):mbx(A)};
jpb=function(A){if(A==null)return A;var t=typeof A;if(t==="bigint")return String(ly(64,A));if(_.t_(A)){if(t==="string")return GQ(A);if(t==="number")return Nd(A)}};
YTT=function(A){if(A==null)return A;var t=typeof A;if(t==="bigint")return String((0,_.TQ)(64,A));if(_.t_(A)){if(t==="string")return _.E8z(A);if(t==="number")return _.v8p(A)}};
_.iy=function(A){if(typeof A!=="string")throw Error();return A};
BA=function(A){if(A!=null&&typeof A!=="string")throw Error();return A};
_.Cw=function(A){return A==null||typeof A==="string"?A:void 0};
o8u=function(A,t,f,X){if(A!=null&&A[h_]===WA)return A;if(!Array.isArray(A))return f?X&2?t[Viz]||(t[Viz]=ZSz(t)):new t:void 0;f=A[_.qb]|0;X=f|X&32|X&2;X!==f&&ei(A,X);return new t(A)};
ZSz=function(A){A=new A;lK(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
db5=function(A,t,f){A=t?Mil(A):_.ej(A);return A==null?f?0:void 0:A|0};
STs=function(A){return A};
$bp=function(A){return A};
aw5=function(A,t,f,X,Q,q){A=o8u(A,X,f,q);Q&&(A=HS0(A));return A};
Klb=function(A){return[A,this.get(A)]};
spT=function(){return g8T||(g8T=new yh(lK([]),void 0,void 0,void 0,wTu))};
kkx=function(A){var t=vA(Lw);return t?A[t]:void 0};
tjT=function(A,t){var f=f===void 0?!1:f;if(vA(rfu)&&vA(Lw)&&void 0===rfu){var X=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=X[Lw];if(!Q)return;if(Q=Q.reviveUnknownFields)try{Q(X,t,A_s);return}catch(q){Q5(q)}}f&&(A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(f=vA(Lw))&&f in A&&(A=A[f])&&delete A[t])};
XAx=function(A,t){var f=vA(Lw),X;Xp&&f&&((X=A[f])==null?void 0:X[t])!=null&&ax5(fcg,3)};
q20=function(A,t){t<100||ax5(Qlx,1)};
lcs=function(A,t,f,X){var Q=X!==void 0;X=!!X;var q=vA(Lw),e;!Q&&Xp&&q&&(e=A[q])&&J_q(e,q20);q=[];var G=A.length;e=4294967295;var N=!1,z=!!(t&64),T=z?t&128?0:-1:void 0;if(!(t&1)){var O=G&&A[G-1];O!=null&&typeof O==="object"&&O.constructor===Object?(G--,e=G):O=void 0;if(z&&!(t&128)&&!Q){N=!0;var c;e=((c=Ud0)!=null?c:STs)(e-T,T,A,O,void 0)+T}}t=void 0;for(c=0;c<G;c++){var B=A[c];if(B!=null&&(B=f(B,X))!=null)if(z&&c>=e){var h=c-T,W=void 0;((W=t)!=null?W:t={})[h]=B}else q[c]=B}if(O)for(var L in O)G=O[L],
G!=null&&(G=f(G,X))!=null&&(c=+L,B=void 0,z&&!Number.isNaN(c)&&(B=c+T)<e?q[B]=G:(c=void 0,((c=t)!=null?c:t={})[L]=G));t&&(N?q.push(t):q[e]=t);Q&&vA(Lw)&&(A=kkx(A))&&A instanceof e3s&&(q[Lw]=GQz(A));return q};
u8z=function(A){A[0]=Nd5(A[0]);A[1]=Nd5(A[1]);return A};
Nd5=function(A){switch(typeof A){case "number":return Number.isFinite(A)?A:""+A;case "bigint":return Db5(A)?Number(A):""+A;case "boolean":return A?1:0;case "object":if(Array.isArray(A)){var t=A[_.qb]|0;return A.length===0&&t&1?void 0:lcs(A,t,Nd5)}if(A!=null&&A[h_]===WA)return z3g(A);if(A instanceof yC){t=A.JSC$8903_value_;if(t==null)A="";else if(typeof t==="string")A=t;else{if(oqx){for(var f="",X=0,Q=t.length-10240;X<Q;)f+=String.fromCharCode.apply(null,t.subarray(X,X+=10240));f+=String.fromCharCode.apply(null,
X?t.subarray(X):t);t=btoa(f)}else t=_.E2(t);A=A.JSC$8903_value_=t}return A}if(A instanceof yh)return A=A.size!==0?Py0(A,u8z):void 0,A;return}return A};
Dc=function(A,t){if(t){Ud0=t==null||t===STs||t[Td5]!==iw5?STs:t;try{return z3g(A)}finally{Ud0=void 0}}return z3g(A)};
z3g=function(A){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return lcs(A,A[_.qb]|0,Nd5)};
Bdg=function(A){switch(typeof A){case "boolean":return Ows||(Ows=[0,void 0,!0]);case "number":return A>0?void 0:A===0?c_p||(c_p=[0,void 0]):[-A,void 0];case "string":return[0,A];case "object":return A}};
F8=function(A,t){return Mjp(A,t[0],t[1])};
_.xm=function(A,t,f){return Mjp(A,t,f,2048)};
Mjp=function(A,t,f,X){X=X===void 0?0:X;if(A==null){var Q=32;f?(A=[f],Q|=128):A=[];t&&(Q=Q&-16760833|(t&1023)<<14)}else{if(!Array.isArray(A))throw Error("O");Q=A[_.qb]|0;if(Cyp&&1&Q)throw Error("P");2048&Q&&!(2&Q)&&h35();if(Q&256)throw Error("Q");if(Q&64)return(Q|X)!==Q&&ei(A,Q|X),A;if(f&&(Q|=128,f!==A[0]))throw Error("R");a:{f=A;Q|=64;var q=f.length;if(q){var e=q-1,G=f[e];if(G!=null&&typeof G==="object"&&G.constructor===Object){t=Q&128?0:-1;e-=t;if(e>=1024)throw Error("T");for(var N in G)q=+N,q<e&&
(f[q+t]=G[N],delete G[N]);Q=Q&-16760833|(e&1023)<<14;break a}}if(t){N=Math.max(t,q-(Q&128?0:-1));if(N>1024)throw Error("U");Q=Q&-16760833|(N&1023)<<14}}}ei(A,Q|64|X);return A};
h35=function(){if(Cyp)throw Error("S");ax5(R3z,5)};
W3p=function(A,t){if(typeof A!=="object")return A;if(Array.isArray(A)){var f=A[_.qb]|0;return A.length===0&&f&1?void 0:mdx(A,f,t)}if(A!=null&&A[h_]===WA)return bw0(A);if(A instanceof yh){t=A.arrayState;if(t&2)return A;if(!A.size)return;f=lK(Py0(A));if(A.valueCtor)for(A=0;A<f.length;A++){var X=f[A],Q=X[1];Q==null||typeof Q!=="object"?Q=void 0:Q!=null&&Q[h_]===WA?Q=bw0(Q):Array.isArray(Q)?Q=mdx(Q,Q[_.qb]|0,!!(t&32)):Q=void 0;X[1]=Q}return f}if(A instanceof yC)return A};
mdx=function(A,t,f){if(t&2)return A;!f||4096&t||16&t?A=Ym(A,t,!1,f&&!(t&16)):(Jf(A,34),t&4&&Object.freeze(A));return A};
y_s=function(A,t,f){A=new A.constructor(t);f&&(A.copyOnWrite=BT);A.noLegacyNull=BT;return A};
bw0=function(A){var t=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=t[_.qb]|0;return ml(A,f)?A:vmb(A,t,f)?y_s(A,t):Ym(t,f)};
Ym=function(A,t,f,X){X!=null||(X=!!(34&t));A=lcs(A,t,W3p,X);X=32;f&&(X|=2);t=t&16769217|X;ei(A,t);return A};
HS0=function(A){var t=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=t[_.qb]|0;return ml(A,f)?vmb(A,t,f)?y_s(A,t,!0):new A.constructor(Ym(t,f,!1)):A};
Vh=function(A){if(A.copyOnWrite!==BT)return!1;var t=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t=Ym(t,t[_.qb]|0);Jf(t,2048);A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=t;A.copyOnWrite=void 0;A.noLegacyNull=void 0;return!0};
Zc=function(A){if(!Vh(A)&&ml(A,A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.qb]|0))throw Error();};
dd=function(A,t){t===void 0&&(t=A[_.qb]|0);t&32&&!(t&4096)&&ei(A,t|4096)};
vmb=function(A,t,f){return f&2?!0:f&32&&!(f&4096)?(ei(t,f|2),A.copyOnWrite=BT,!0):!1};
Sj=function(A,t,f,X,Q){var q=f+(Q?0:-1),e=A.length-1;if(e>=1+(Q?0:-1)&&q>=e){var G=A[e];if(G!=null&&typeof G==="object"&&G.constructor===Object)return G[f]=X,t}if(q<=e)return A[q]=X,t;if(X!==void 0){var N;e=((N=t)!=null?N:t=A[_.qb]|0)>>14&1023||536870912;f>=e?X!=null&&(q={},A[e+(Q?0:-1)]=(q[f]=X,q)):A[q]=X}return t};
_.gd=function(A,t,f,X,Q){var q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=q[_.qb]|0;X=ml(A,e)?1:X;Q=!!Q||X===3;X===2&&Vh(A)&&(q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=q[_.qb]|0);A=L3u(q,t);var G=A===HA?7:A[_.qb]|0,N=pAg(G,e);var z=4&N?!1:!0;if(z){4&N&&(A=Si(A),G=0,N=Kw(N,e),e=Sj(q,e,t,A));for(var T=0,O=0;T<A.length;T++){var c=f(A[T]);c!=null&&(A[O++]=c)}O<T&&(A.length=O);f=(N|4)&-513;N=f&=-1025;N&=-4097}N!==G&&(ei(A,N),2&N&&Object.freeze(A));return A=Emu(A,N,q,
e,t,X,z,Q)};
Emu=function(A,t,f,X,Q,q,e,G){var N=t;q===1||(q!==4?0:2&t||!(16&t)&&32&X)?wd(t)||(t|=!A.length||e&&!(4096&t)||32&X&&!(4096&t||16&t)?2:256,t!==N&&ei(A,t),Object.freeze(A)):(q===2&&wd(t)&&(A=Si(A),N=0,t=Kw(t,X),X=Sj(f,X,Q,A)),wd(t)||(G||(t|=16),t!==N&&ei(A,t)));2&t||!(4096&t||16&t)||dd(f,X);return A};
L3u=function(A,t,f){A=s2(A,t,f);return Array.isArray(A)?A:HA};
pAg=function(A,t){2&t&&(A|=2);return A|1};
wd=function(A){return!!(2&A)&&!!(4&A)||!!(256&A)};
nmb=function(A){return _.nS(A,!0)};
Dd5=function(A){A=Si(A);for(var t=0;t<A.length;t++){var f=A[t]=Si(A[t]);Array.isArray(f[1])&&(f[1]=lK(f[1]))}return Nb(A)};
_.F3z=function(A,t,f,X,Q){var q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=q[_.qb]|0;var G=ml(A,e);a:{!G&&Vh(A)&&(q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=q[_.qb]|0);var N=s2(q,t);A=!1;if(N==null){if(G){t=spT();break a}N=[]}else if(N.constructor===yh)if(N.arrayState&2&&!G)N=Py0(N);else{t=N;break a}else Array.isArray(N)?A=!!((N[_.qb]|0)&2):N=[];if(G){if(!N.length){t=spT();break a}A||(A=!0,lK(N))}else A&&(A=!1,Nb(N),N=Dd5(N));!A&&e&32&&s0s(N);X=new yh(N,f,X,Q);e=
Sj(q,e,t,X);A||dd(q,e);t=X}!G&&f&&(t.callToMutableOnAccess=!0);return t};
_.km=function(A,t,f,X){Zc(A);var Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=Q[_.qb]|0;if(f==null)return Sj(Q,q,t),A;var e=f===HA?7:f[_.qb]|0,G=e,N=wd(e),z=N||Object.isFrozen(f);N||(e=0);z||(f=Si(f),G=0,e=Kw(e,q),z=!1);e|=5;var T;N=(T=wpx(e))!=null?T:0;for(T=0;T<f.length;T++){var O=f[T],c=X(O,N);Object.is(O,c)||(z&&(f=Si(f),G=0,e=Kw(e,q),z=!1),f[T]=c)}e!==G&&(z&&(f=Si(f),e=Kw(e,q)),ei(f,e));Sj(Q,q,t,f);return A};
_.rd=function(A,t,f,X,Q){Zc(A);var q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Sj(q,q[_.qb]|0,t,(X==="0"?Number(f)===0:f===X)?void 0:f,Q);return A};
_.Ar=function(A,t,f){if(t&2)throw Error();var X=Fp(t),Q=L3u(A,f,X),q=Q===HA?7:Q[_.qb]|0,e=pAg(q,t);if(2&e||wd(e)||16&e)e===q||wd(e)||ei(Q,e),Q=Si(Q),q=0,e=Kw(e,t),Sj(A,t,f,Q,X);e&=-13;e!==q&&ei(Q,e);return Q};
Icb=function(A){if(Xp){var t;return(t=A[tr])!=null?t:A[tr]=new Map}if(tr in A)return A[tr];t=new Map;Object.defineProperty(A,tr,{value:t});return t};
jlg=function(A,t,f,X,Q){var q=Icb(A),e=xdb(q,A,t,f,Q);e!==X&&(e&&(t=Sj(A,t,e,void 0,Q)),q.set(f,X));return t};
xdb=function(A,t,f,X,Q){var q=A.get(X);if(q!=null)return q;for(var e=q=0;e<X.length;e++){var G=X[e];s2(t,G,Q)!=null&&(q!==0&&(f=Sj(t,f,q,void 0,Q)),q=G)}A.set(X,q);return q};
Y25=function(A,t,f,X,Q){var q=!1;X=s2(A,X,Q,function(e){var G=o8u(e,f,!1,t);q=G!==e&&G!=null;return G});
if(X!=null)return q&&!ml(X)&&dd(A,t),X};
Vjg=function(A,t,f,X,Q,q,e,G){var N=ml(A,f);q=N?1:q;e=!!e||q===3;N=G&&!N;(q===2||N)&&Vh(A)&&(t=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=t[_.qb]|0);A=L3u(t,Q);var z=A===HA?7:A[_.qb]|0,T=pAg(z,f);if(G=!(4&T)){var O=A,c=f,B=!!(2&T);B&&(c|=2);for(var h=!B,W=!0,L=0,E=0;L<O.length;L++){var D=o8u(O[L],X,!1,c);if(D instanceof X){if(!B){var S=ml(D);h&&(h=!S);W&&(W=S)}O[E++]=D}}E<L&&(O.length=E);T|=4;T=W?T&-4097:T|4096;T=h?T|8:T&-9}T!==z&&(ei(A,T),2&T&&Object.freeze(A));if(N&&!(8&T||!A.length&&
(q===1||(q!==4?0:2&T||!(16&T)&&32&f)))){wd(T)&&(A=Si(A),T=Kw(T,f),f=Sj(t,f,Q,A));X=A;N=T;for(z=0;z<X.length;z++)O=X[z],T=HS0(O),O!==T&&(X[z]=T);N|=8;T=N=X.length?N|4096:N&-4097;ei(A,T)}return A=Emu(A,T,t,f,Q,q,G,e)};
Zwz=function(A){A==null&&(A=void 0);return A};
Kw=function(A,t){return A=(2&t?A|2:A&-3)&-273};
_.omx=function(A,t,f,X,Q){Zc(A);t=_.gd(A,t,Q,2,!0);var q;Q=(q=wpx(t===HA?7:t[_.qb]|0))!=null?q:0;t.push(f(X,Q));return A};
dd5=function(A,t,f,X,Q,q,e){Zc(A);var G=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=Vjg(A,G,G[_.qb]|0,f,t,2,!0);if(q&&e)Q!=null||(Q=A.length-1),rbl(A,Q),A.splice(Q,q),A.length||(A[_.qb]&=-4097);else{if(q){if(typeof Q!=="number"||Q<0||Q>A.length)throw Error();}else X=X!=null?X:new f;Q!=void 0?A.splice(Q,q,X):A.push(X);Q=f=A===HA?7:A[_.qb]|0;(X=ml(X))?(f&=-9,A.length===1&&(f&=-4097)):f|=4096;f!==Q&&ei(A,f);X||dd(G)}};
$dq=function(A,t){if(typeof A==="string")return new fb(Sxl(A),t);if(Array.isArray(A))return new fb(new Uint8Array(A),t);if(A.constructor===Uint8Array)return new fb(A,!1);if(A.constructor===ArrayBuffer)return A=new Uint8Array(A),new fb(A,!1);if(A.constructor===yC)return t=S2z(A)||new Uint8Array(0),new fb(t,!0,A);if(A instanceof Uint8Array)return A=A.constructor===Uint8Array?A:new Uint8Array(A.buffer,A.byteOffset,A.byteLength),new fb(A,!1);throw Error();};
ac0=function(A){switch(typeof A){case "string":Hwz(A)}};
gmq=function(A){switch(typeof A){case "string":K3T(A)}};
Qb=function(){var A=function(){throw Error();};
Object.setPrototypeOf(A,A.prototype);return A};
slq=function(A,t){var f=f===void 0?wAl:f;return new qy(A,t,f)};
Arz=function(A,t,f,X,Q){kQx(A,f,r_5(t,X),Q)};
Jr=function(A,t,f,X){var Q=X[A];if(Q)return Q;Q={};Q.binaryFields=X;Q.messageMetadata=Bdg(X[0]);var q=X[1],e=1;q&&q.constructor===Object&&(Q.extensions=q,q=X[++e],typeof q==="function"&&(Q.isMessageSet=!0,t30!=null||(t30=q),fFl!=null||(fFl=X[e+1]),q=X[e+=2]));for(var G={};q&&Xu5(q);){for(var N=0;N<q.length;N++)G[q[N]]=q;q=X[++e]}for(N=1;q!==void 0;){typeof q==="number"&&(N+=q,q=X[++e]);var z=void 0;if(q instanceof qy)var T=q;else T=Qfx,e--;q=void 0;if((q=T)==null?0:q.$$isMsg){q=X[++e];z=X;var O=e;
typeof q==="function"&&(q=q(),z[O]=q);z=q}q=X[++e];O=N+1;typeof q==="number"&&q<0&&(O-=q,q=X[++e]);for(;N<O;N++){var c=G[N];z?f(Q,N,T,z,c):t(Q,N,T,c)}}return X[A]=Q};
Xu5=function(A){return Array.isArray(A)&&!!A.length&&typeof A[0]==="number"&&A[0]>0};
Jrx=function(A){return Array.isArray(A)?A[0]instanceof qy?A:[qiu,A]:[A,void 0]};
r_5=function(A,t){if(A instanceof _.e3)return A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(A))return F8(A,t)};
Uyz=function(A,t,f,X){var Q=f.$$binaryReaderFn;A[t]=X?function(q,e,G){return Q(q,e,G,X)}:Q};
GHg=function(A,t,f,X,Q){var q=f.$$binaryReaderFn,e,G;A[t]=function(N,z,T){return q(N,z,T,G||(G=Jr(ejx,Uyz,GHg,X).messageMetadata),e||(e=lF5(X)),Q)}};
lF5=function(A){var t=A[NWb];if(t!=null)return t;var f=Jr(ejx,Uyz,GHg,A);t=f.isMessageSet?function(X,Q){return t30(X,Q,f)}:function(X,Q){for(;ux0(Q)&&Q.nextWireType_!=4;){var q=Q.nextField_,e=f[q];
if(e==null){var G=f.extensions;G&&(G=G[q])&&(G=zjx(G),G!=null&&(e=f[q]=G))}if(e==null||!e(Q,X,q)){G=Q;e=G.fieldCursor_;Pix(G);if(G.discardUnknownFields)var N=void 0;else{var z=G.decoder_.cursor_-e;G.decoder_.cursor_=e;N=TWq(G.decoder_,z)}z=G=e=void 0;var T=X;N&&((e=(G=(z=T[Lw])!=null?z:T[Lw]=new e3s)[q])!=null?e:G[q]=[]).push(N)}}if(X=kkx(X))X.reviveUnknownFields=f.binaryFields[ibT];return!0};
A[NWb]=t;A[ibT]=Obx.bind(A);return t};
Obx=function(A,t,f,X){var Q=this[ejx],q=this[NWb],e=F8(void 0,Q.messageMetadata),G=kkx(A);if(G){var N=!1,z=Q.extensions;if(z){Q=function(h,W,L){if(L.length!==0)if(z[W])for(h=_.U(L),W=h.next();!W.done;W=h.next()){W=crb(W.value);try{N=!0,q(e,W)}finally{W.free()}}else X==null||X(A,W,L)};
if(t==null)J_q(G,Q);else if(G!=null){var T=G[t];T&&Q(G,t,T)}if(N){var O=A[_.qb]|0;if(O&2&&O&2048&&(f==null||!f.reviveIntoImmutable))throw Error();var c=Fp(O),B=function(h,W){if(s2(A,h,c)!=null)switch(f==null?void 0:f.resolutionBehavior){case 1:return;default:throw Error();}W!=null&&(O=Sj(A,O,h,W,c));delete G[h]};
t==null?Af5(e,e[_.qb]|0,function(h,W){B(h,W)}):B(t,s2(e,t,c))}}}};
zjx=function(A){A=Jrx(A);var t=A[0].$$binaryReaderFn;if(A=A[1]){var f=lF5(A),X=Jr(ejx,Uyz,GHg,A).messageMetadata;return function(Q,q,e){return t(Q,q,e,X,f)}}return t};
BW5=function(A,t,f){A[t]=f.$$binaryWriterFn};
Ciz=function(A,t,f,X){var Q,q,e=f.$$binaryWriterFn;A[t]=function(G,N,z){return e(G,N,z,q||(q=Jr(M3u,BW5,Ciz,X).messageMetadata),Q||(Q=hjg(X)))}};
hjg=function(A){var t=A[RjT];if(!t){var f=Jr(M3u,BW5,Ciz,A);t=function(X,Q){return myx(X,Q,f)};
A[RjT]=t}return t};
myx=function(A,t,f){Af5(A,A[_.qb]|0,function(X,Q){if(Q!=null){var q=bbp(f,X);q?q(t,Q,X):X<500||ax5(WQx,3)}});
(A=kkx(A))&&J_q(A,function(X,Q,q){GH(t,t.encoder_.end());for(X=0;X<q.length;X++)GH(t,S2z(q[X])||new Uint8Array(0))})};
bbp=function(A,t){var f=A[t];if(f)return f;if(f=A.extensions)if(f=f[t]){f=Jrx(f);var X=f[0].$$binaryWriterFn;if(f=f[1]){var Q=hjg(f),q=Jr(M3u,BW5,Ciz,f).messageMetadata;f=A.isMessageSet?fFl(q,Q):function(e,G,N){return X(e,G,N,q,Q)}}else f=X;
return A[t]=f}};
_.yrb=function(A,t,f){if(Array.isArray(t)){var X=t[_.qb]|0;if(X&4)return t;for(var Q=0,q=0;Q<t.length;Q++){var e=A(t[Q]);e!=null&&(t[q++]=e)}q<Q&&(t.length=q);A=X|1;f&&(A=(A|4)&-1537);A!==X&&ei(t,A);f&&A&2&&Object.freeze(t);return t}};
_.li=function(A,t,f){return new qy(A,t,f)};
_.vls=function(A,t,f){return new qy(A,t,f)};
_.ui=function(A,t,f){Sj(A,A[_.qb]|0,t,f,Fp(A[_.qb]|0))};
LQq=function(A,t,f){t=_.sT(t);t!=null&&(_.zH(A,f,1),A=A.encoder_,f=lwp||(lwp=new DataView(new ArrayBuffer(8))),f.setFloat64(0,+t,!0),ji=f.getUint32(0,!0),Y8=f.getUint32(4,!0),_.Pu(A,ji),_.Pu(A,Y8))};
pu5=function(A,t,f){t=_.sT(t);t!=null&&(_.zH(A,f,5),A=A.encoder_,NEs(t),_.Pu(A,ji))};
_.Oi=function(A,t,f){t=jpb(t);if(t!=null&&(ac0(t),t!=null))switch(_.zH(A,f,0),typeof t){case "number":A=A.encoder_;VC(t);ii(A,ji,Y8);break;case "bigint":f=BigInt.asUintN(64,t);f=new Elb(Number(f&BigInt(4294967295)),Number(f>>BigInt(32)));ii(A.encoder_,f.JSC$8946_lo,f.JSC$8946_hi);break;default:f=Hwz(t),ii(A.encoder_,f.JSC$8946_lo,f.JSC$8946_hi)}};
Dyb=function(A,t,f){t=YTT(t);if(t!=null&&(gmq(t),t!=null))switch(_.zH(A,f,0),typeof t){case "number":A=A.encoder_;VC(t);ii(A,ji,Y8);break;case "bigint":f=nlx(t);ii(A.encoder_,f.JSC$8944_lo,f.JSC$8944_hi);break;default:f=K3T(t),ii(A.encoder_,f.JSC$8944_lo,f.JSC$8944_hi)}};
IFx=function(A,t,f){t=_.ej(t);t!=null&&t!=null&&(_.zH(A,f,0),_.FQz(A.encoder_,t))};
_.jfx=function(A,t,f){xy0(A,f,YTT(t))};
Yi5=function(A,t,f){t=_.cf0(t);t!=null&&(_.zH(A,f,0),A.encoder_.JSC$8948_buffer_.push(t?1:0))};
Zbb=function(A,t,f){t=_.Cw(t);t!=null&&V35(A,f,ubb(t))};
olx=function(A,t,f,X,Q){kQx(A,f,r_5(t,X),Q)};
_.dyl=function(A,t,f){t=t==null||typeof t=="string"||t instanceof yC?t:void 0;t!=null&&V35(A,f,$dq(t,!0).buffer)};
Sib=function(A,t,f){t=_.CKT(t);t!=null&&t!=null&&(_.zH(A,f,0),cu(A.encoder_,t))};
_.$y5=function(A,t,f){t=_.ej(t);t!=null&&(t=parseInt(t,10),_.zH(A,f,0),_.FQz(A.encoder_,t))};
_.Bu=function(A,t){return function(f,X){var Q={treatNewDataAsImmutable:!0};X&&Object.assign(Q,X);f=crb(f,void 0,void 0,Q);try{var q=new A,e=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;lF5(t)(e,f);var G=q}finally{f.free()}return G}};
_.My=function(A){return function(t){return Hb5(t,A)}};
aFz=function(A){return function(){return Hb5(this,A)}};
_.KQq=function(A){return Ip(function(t){return t instanceof A&&!ml(t)})};
_.Cb=function(A){return function(t){return glb(A,t)}};
rrp=function(A,t){return wuu({child:A,origin:t||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:sfq,getPayloadCase:function(f){return f.getPayloadCase()},
createInitMessage:function(f){var X=new Rf,Q=new kHs;f=_.bi(Q,1,f);return _.Wu(X,5,yb,f)}})};
vu=function(A){return{valueOf:A}.valueOf()};
tOp=function(){var A=null;if(!Atx)return A;try{var t=function(f){return f};
A=Atx.createPolicy("goog#html",{createHTML:t,createScript:t,createScriptURL:t})}catch(f){}return A};
XC5=function(){fHz===void 0&&(fHz=tOp());return fHz};
_.pb=function(A){var t=XC5();A=t?t.createScriptURL(A):A;return new Lb(A)};
_.Ei=function(A){if(A instanceof Lb)return A.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.nb=function(A){return Object.isFrozen(A)&&Object.isFrozen(A.raw)};
Q9z=function(A){return A.toString().indexOf("`")===-1};
Fx=function(A){return new _.DF(qVp,A)};
xl=function(A){return A instanceof _.DF};
_.j3=function(A){if(xl(A))return A.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Yl=function(A){return new Jt5(function(t){return t.substr(0,A.length+1).toLowerCase()===A+":"})};
_.Vb=function(A,t){t=t===void 0?UWb:t;if(xl(A))return A;for(var f=0;f<t.length;++f){var X=t[f];if(X instanceof Jt5&&X.isValid(A))return Fx(A)}};
_.of=function(A,t){t=t===void 0?UWb:t;return _.Vb(A,t)||ZF};
_.dW=function(A){var t=window;if(typeof MediaSource!=="undefined"&&A instanceof MediaSource||typeof t.ManagedMediaSource!=="undefined"&&A instanceof t.ManagedMediaSource)return Fx(URL.createObjectURL(A));t=A.type;t.toLowerCase()==="application/octet-stream"?t=!0:(t=t.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),t=(t==null?void 0:t.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(t[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(t[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(t[1])||/^font\/[\w-]+$/i.test(t[1])));if(!t)throw Error("Z");return Fx(URL.createObjectURL(A))};
_.eNg=function(A){for(var t=_.Hu.apply(1,arguments),f=[A[0]],X=0;X<t.length;X++)f.push(String(t[X])),f.push(A[X+1]);return Fx(f.join(""))};
_.lHb=function(A){if(!GGu){a:{var t=document.createElement("a");try{t.href=A}catch(f){A=void 0;break a}A=t.protocol;A=A===":"||A===""?"https:":A}return A}try{t=new URL(A)}catch(f){return"https:"}return t.protocol};
_.af=function(A){A instanceof _.DF?A=_.j3(A):A=Nk5.test(A)?A:void 0;return A};
Kb=function(A,t){t=_.af(t);t!==void 0&&(A.href=t)};
wW=function(A){var t=XC5();A=t?t.createHTML(A):A;return new gW(A)};
si=function(A){if(A instanceof gW)return A.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.rW=function(A,t){A.src=_.Ei(t).toString()};
u3u=function(A,t){A.setAttribute("sandbox","");for(var f=0;f<t.length;f++)A.sandbox.supports&&!A.sandbox.supports(t[f])||A.sandbox.add(t[f])};
_.At=function(A,t,f){A.removeAttribute("srcdoc");switch(t){case 0:if(f instanceof Lb)throw new zNz("TrustedResourceUrl",0);u3u(A,[]);t=_.af(f);t!==void 0&&(A.src=t);break;case 1:if(!(f instanceof Lb))throw new zNz(typeof f,1);u3u(A,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.rW(A,f);break;case 2:if(f instanceof Lb)throw new zNz("TrustedResourceUrl",2);u3u(A,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
t=_.af(f);t!==void 0&&(A.src=t);break;default:_.ap(t)}};
_.tt=function(A,t,f,X){t=_.af(t);return t!==void 0?A.open(t,f,X):null};
_.fO=function(A){A=A===void 0?document:A;var t,f;A=(f=(t=A).querySelector)==null?void 0:f.call(t,"script[nonce]");return A==null?"":A.nonce||A.getAttribute("nonce")||""};
_.QP=function(A){var t=XC5();A=t?t.createScript(A):A;return new _.X3(A)};
qW=function(A){if(A instanceof _.X3)return A.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
PLs=function(A){var t=_.fO(A.ownerDocument);t&&A.setAttribute("nonce",t)};
_.Jt=function(A,t){A.textContent=qW(t);PLs(A)};
_.UV=function(A,t){A.src=_.Ei(t);PLs(A)};
_.eO=function(A,t){if(A.nodeType===1&&/^(script|style)$/i.test(A.tagName))throw Error("Z");A.innerHTML=si(t)};
_.GG=function(A,t,f,X){if(A.length===0)throw Error("Z");A=A.map(function(q){if(q instanceof Tkx)q=q.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return q});
var Q=f.toLowerCase();if(A.every(function(q){return Q.indexOf(q)!==0}))throw Error("aa`"+f);
t.setAttribute(f,X)};
_.lL=function(A,t,f){if(t instanceof Lb)A.href=_.Ei(t).toString(),A.rel=f;else{if(iOx.indexOf(f)===-1)throw Error("ba`"+f);t=_.af(t);t!==void 0&&(A.href=t,A.rel=f)}};
OOg=function(A){if(A instanceof NW)return A.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.ctp=function(A,t){t=_.af(t);t!==void 0&&(A.href=t)};
Bkx=function(A){return new Worker(_.Ei(A),void 0)};
MOl=function(A){return _.pb(A)};
CLl=function(A,t){A&&(t=A.indexOf(t),0<=t&&A.splice(t,1))};
uL=function(A){return typeof A==="function"};
hNg=function(A){return A instanceof zG||A&&"closed"in A&&uL(A.remove)&&uL(A.add)&&uL(A.unsubscribe)};
PC=function(){};
TG=function(A){RNz(function(){throw A;})};
iL=function(A){return A};
OV=function(){return mW5(_.Hu.apply(0,arguments))};
mW5=function(A){return A.length===0?iL:A.length===1?A[0]:function(t){return A.reduce(function(f,X){return X(f)},t)}};
bO0=function(A){var t;return(t=A!=null?A:void 0)!=null?t:Promise};
Wzz=function(A,t){return new cC(function(f){var X=0;return t.schedule(function(){X===A.length?f.complete():(f.next(A[X++]),f.closed||this.schedule())})})};
ytb=function(A,t){if(!A)throw Error("ca");return new cC(function(f){var X=new zG;X.add(t.schedule(function(){var Q=A[Symbol.asyncIterator]();X.add(t.schedule(function(){var q=this;Q.next().then(function(e){e.done?f.complete():(f.next(e.value),q.schedule())})}))}));
return X})};
vVq=function(A,t,f){t=t.schedule(function(){try{f.call(this)}catch(X){A.error(X)}},0);
A.add(t)};
pCz=function(A,t){return new cC(function(f){var X;f.add(t.schedule(function(){X=A[Lzl]();vVq(f,t,function(){var Q=X.next(),q=Q.value;Q.done?f.complete():(f.next(q),this.schedule())})}));
return function(){var Q;return uL((Q=X)==null?void 0:Q.return)&&X.return()}})};
EVz=function(A,t){return new cC(function(f){var X=new zG;X.add(t.schedule(function(){var Q=A[BC]();X.add(Q.subscribe({next:function(q){X.add(t.schedule(function(){return f.next(q)}))},
error:function(q){X.add(t.schedule(function(){return f.error(q)}))},
complete:function(){X.add(t.schedule(function(){return f.complete()}))}}))}));
return X})};
nVs=function(A,t){return new cC(function(f){return t.schedule(function(){return A.then(function(X){f.add(t.schedule(function(){f.next(X);f.add(t.schedule(function(){return f.complete()}))}))},function(X){f.add(t.schedule(function(){return f.error(X)}))})})})};
DWz=function(A){return new TypeError("da`"+(A!==null&&typeof A==="object"?"an invalid object":"'"+A+"'"))};
IHb=function(A,t){if(A!=null){if(uL(A[BC]))return EVz(A,t);if(Fzs(A))return Wzz(A,t);if(uL(A==null?void 0:A.then))return nVs(A,t);if(Symbol.asyncIterator&&uL(A==null?void 0:A[Symbol.asyncIterator]))return ytb(A,t);if(uL(A==null?void 0:A[Lzl]))return pCz(A,t)}throw DWz(A);};
CO=function(A,t){return t?IHb(A,t):MW(A)};
MW=function(A){if(A instanceof cC)return A;if(A!=null){if(uL(A[BC]))return xWl(A);if(Fzs(A))return j90(A);if(uL(A==null?void 0:A.then))return YV5(A);if(Symbol.asyncIterator&&uL(A==null?void 0:A[Symbol.asyncIterator]))return VOs(A);if(uL(A==null?void 0:A[Lzl]))return ZOx(A)}throw DWz(A);};
xWl=function(A){return new cC(function(t){var f=A[BC]();if(uL(f.subscribe))return f.subscribe(t);throw new TypeError("ea");})};
j90=function(A){return new cC(function(t){for(var f=0;f<A.length&&!t.closed;f++)t.next(A[f]);t.complete()})};
YV5=function(A){return new cC(function(t){A.then(function(f){t.closed||(t.next(f),t.complete())},function(f){return t.error(f)}).then(null,TG)})};
ZOx=function(A){return new cC(function(t){for(var f=A[Lzl]();!t.closed;){var X=f.next(),Q=X.value;X.done?t.complete():t.next(Q)}return function(){return uL(f==null?void 0:f.return)&&f.return()}})};
VOs=function(A){return new cC(function(t){oVq(A,t).catch(function(f){return t.error(f)})})};
oVq=function(A,t){var f,X,Q,q,e,G;return _.l(function(N){switch(N.nextAddress){case 1:_.ht(N,2,3),q=_.R9(A);case 5:return N.yield(q.next(),8);case 8:X=N.yieldResult;if(X.done){N.jumpTo(3);break}e=X.value;t.next(e);N.jumpTo(5);break;case 3:_.mz(N);_.WC(N,9);if(!X||X.done||!(Q=q.return)){N.jumpTo(9);break}return N.yield(Q.call(q),9);case 9:_.mz(N,0,0,1);if(f)throw f.error;_.yP(N,10,1);break;case 10:_.yP(N,4);break;case 2:G=_.vC(N);f={error:G};N.jumpTo(3);break;case 4:t.complete(),_.LO(N)}})};
dWx=function(A,t){return t?Wzz(A,t):j90(A)};
SVx=function(A){return uL(A[A.length-1])?A.pop():void 0};
EV=function(A){var t=A[A.length-1];return t&&uL(t.schedule)?A.pop():void 0};
nO=function(){var A=_.Hu.apply(0,arguments),t=EV(A);return t?Wzz(A,t):dWx(A)};
DH=function(A){var t=uL(A)?A:function(){return A};
return new cC(function(f){return f.error(t())})};
F3=function(A){return function(t){if(uL(t==null?void 0:t.lift))return t.lift(function(f){try{return A(f,this)}catch(X){this.error(X)}});
throw new TypeError("fa");}};
xV=function(){return F3(function(A,t){var f=null;A._refCount++;var X=new I9(t,void 0,void 0,void 0,function(){if(!A||A._refCount<=0||0<--A._refCount)f=null;else{var Q=A._connection,q=f;f=null;!Q||q&&Q!==q||Q.unsubscribe();t.unsubscribe()}});
A.subscribe(X);X.closed||(f=A.connect())})};
HOs=function(){var A=$Wx;var t=t===void 0?0:t;return F3(function(f,X){X.add(A.schedule(function(){return f.subscribe(X)},t))})};
jO=function(A){return F3(function(t,f){var X=0;t.subscribe(new I9(f,function(Q){f.next(A.call(void 0,Q,X++))}))})};
Kz0=function(A){return jO(function(t){return aHT(t)?A.apply(null,_.YV(t)):A(t)})};
rtT=function(A){if(A.length===1){var t=A[0];if(gVb(t))return{args:t,keys:null};if(t&&typeof t==="object"&&wCb(t)===s90)return A=kGb(t),{args:A.map(function(f){return t[f]}),
keys:A}}return{args:A,keys:null}};
ZH=function(){var A=_.Hu.apply(0,arguments),t=EV(A),f=SVx(A);A=rtT(A);var X=A.args,Q=A.keys;if(X.length===0)return CO([],t);t=new cC(A5u(X,t,Q?function(q){for(var e={},G=0;G<q.length;G++)e[Q[G]]=q[G];return e}:iL));
return f?t.pipe(Kz0(f)):t};
A5u=function(A,t,f){f=f===void 0?iL:f;return function(X){tns(t,function(){for(var Q=A.length,q=Array(Q),e=Q,G=A.map(function(){return!1}),N=!0,z={i$jscomp$217:0};z.i$jscomp$217<Q;z={i$jscomp$217:z.i$jscomp$217},z.i$jscomp$217++)tns(t,function(T){return function(){CO(A[T.i$jscomp$217],t).subscribe(new o9(X,function(O){q[T.i$jscomp$217]=O;
N&&(G[T.i$jscomp$217]=!0,N=!G.every(iL));N||X.next(f(q.slice()))},function(){return--e===0}))}}(z),X)},X)}};
tns=function(A,t,f){A?f.add(A.schedule(t)):t()};
fgp=function(A,t,f,X){var Q=[],q=0,e=0,G=!1,N=function(z){q++;MW(f(z,e++)).subscribe(new I9(t,function(T){t.next(T)},void 0,function(){q--;
for(var T={};Q.length&&q<X;T={bufferedValue:void 0})T.bufferedValue=Q.shift(),N(T.bufferedValue);!G||Q.length||q||t.complete()}))};
A.subscribe(new I9(t,function(z){return q<X?N(z):Q.push(z)},void 0,function(){G=!0;
!G||Q.length||q||t.complete()}));
return function(){Q=null}};
dk=function(A,t){var f=f===void 0?Infinity:f;if(uL(t))return dk(function(X,Q){return jO(function(q,e){return t(X,q,Q,e)})(MW(A(X,Q)))},f);
typeof t==="number"&&(f=t);return F3(function(X,Q){return fgp(X,Q,A,f)})};
Xdq=function(A){A=A===void 0?Infinity:A;return dk(iL,A)};
Qkz=function(){var A=_.Hu.apply(0,arguments);return Xdq(1)(dWx(A,EV(A)))};
qPl=function(A){return new cC(function(t){MW(A()).subscribe(t)})};
$V=function(A,t,f){if(uL(f)){var X=f;f=void 0}if(X)return $V(A,t,f).pipe(Kz0(X));X=_.U(uL(A.addEventListener)&&uL(A.removeEventListener)?J5z.map(function(e){return function(G){return A[e](t,G,f)}}):uL(A.addListener)&&uL(A.removeListener)?Uwz.map(ewg(A,t)):uL(A.on)&&uL(A.off)?GvT.map(ewg(A,t)):[]);
var Q=X.next().value,q=X.next().value;return!Q&&Fzs(A)?dk(function(e){return $V(e,t,f)})(dWx(A)):new cC(function(e){if(!Q)throw new TypeError("ga");
var G=function(){var N=_.Hu.apply(0,arguments);return e.next(1<N.length?N:N[0])};
Q(G);return function(){return q(G)}})};
ewg=function(A,t){return function(f){return function(X){return A[f](t,X)}}};
KO=function(){var A=_.Hu.apply(0,arguments),t=EV(A);var f=typeof A[A.length-1]==="number"?A.pop():Infinity;return A.length?A.length===1?MW(A[0]):Xdq(f)(dWx(A,t)):HC};
NGx=function(A){return A.length===1&&lgz(A[0])?A[0]:A};
uUl=function(){var A=NGx(_.Hu.apply(0,arguments));return F3(function(t,f){var X=[t].concat(_.YV(A)),Q=function(){if(!f.closed)if(X.length>0){try{var q=MW(X.shift())}catch(G){Q();return}var e=new I9(f,void 0,PC,PC);f.add(q.subscribe(e));e.add(Q)}else f.complete()};
Q()})};
gk=function(A){return F3(function(t,f){var X=0;t.subscribe(new I9(f,function(Q){return A.call(void 0,Q,X++)&&f.next(Q)}))})};
PUb=function(){var A=_.Hu.apply(0,arguments);A=NGx(A);return A.length===1?MW(A[0]):new cC(zwx(A))};
zwx=function(A){return function(t){for(var f=[],X={i$jscomp$220:0};f&&!t.closed&&X.i$jscomp$220<A.length;X={i$jscomp$220:X.i$jscomp$220},X.i$jscomp$220++)f.push(MW(A[X.i$jscomp$220]).subscribe(new I9(t,function(Q){return function(q){if(f){for(var e=0;e<f.length;e++)e!==Q.i$jscomp$220&&f[e].unsubscribe();f=null}t.next(q)}}(X))))}};
TGb=function(){var A=_.Hu.apply(0,arguments),t=SVx(A),f=NGx(A);return f.length?new cC(function(X){var Q=f.map(function(){return[]}),q=f.map(function(){return!1});
X.add(function(){Q=q=null});
for(var e={sourceIndex$jscomp$1:0};!X.closed&&e.sourceIndex$jscomp$1<f.length;e={sourceIndex$jscomp$1:e.sourceIndex$jscomp$1},e.sourceIndex$jscomp$1++)MW(f[e.sourceIndex$jscomp$1]).subscribe(new I9(X,function(G){return function(N){Q[G.sourceIndex$jscomp$1].push(N);Q.every(function(z){return z.length})&&(N=Q.map(function(z){return z.shift()}),X.next(t?t.apply(null,_.YV(N)):N),Q.some(function(z,T){return!z.length&&q[T]})&&X.complete())}}(e),void 0,function(G){return function(){q[G.sourceIndex$jscomp$1]=
!0;
!Q[G.sourceIndex$jscomp$1].length&&X.complete()}}(e)));
return function(){Q=q=null}}):HC};
inx=function(A){var t,f,X;return!!A&&typeof A.active==="boolean"&&typeof((t=A.clock)==null?void 0:t.now)==="function"&&((f=A.clock)==null?void 0:f.timeline)!==void 0&&!((X=A.lastMeasurement)==null||!X.timestamp)&&typeof A.equivalentTo==="function"&&typeof A.extrapolateToNow==="function"&&typeof A.extrapolateToTime==="function"&&typeof A.map==="function"&&typeof A.joinWith==="function"};
Ong=function(A){function t(f){return typeof f==="boolean"||typeof f==="string"||typeof f==="number"||f===void 0||f===null}
return t(A)?!0:Array.isArray(A)?A.every(t):typeof A==="object"?Object.keys(A).every(function(f){return typeof f==="string"})&&Object.values(A).every(function(f){return Array.isArray(f)?f.every(t):t(f)}):!1};
c5p=function(A){if(Ong(A))return A;if(inx(A))return{lastMeasurement:{value:c5p(A.lastMeasurement.value),timestamp:wk(A.lastMeasurement.timestamp,new sV(0,A.lastMeasurement.timestamp.timeline))},active:A.active};try{return JSON.parse(JSON.stringify(A))}catch(t){}return String(A)};
kV=function(A,t){return function(f){return new cC(function(X){return f.subscribe(function(Q){A.timeExecution(t,function(){X.next(Q)})()},function(Q){A.timeExecution(t,function(){X.error(Q)})()},function(){A.timeExecution(t,function(){X.complete()})()})})}};
BGx=function(A,t){var f=!1;return new cC(function(X){var Q=A.setTimeout(function(){f=!0;X.next(!0);X.complete()},t);
return function(){f||A.clearTimeout(Q)}})};
Mnb=function(A){A=A.global;if(A.fetchLater)return A.fetchLater.bind(A)};
rk=function(A){return F3(function(t,f){var X=null,Q=!1,q;X=t.subscribe(new I9(f,void 0,function(e){q=MW(A(e,rk(A)(t)));X?(X.unsubscribe(),X=null,q.subscribe(f)):Q=!0}));
Q&&(X.unsubscribe(),X=null,q.subscribe(f))})};
CUq=function(A,t,f){return function(X,Q){var q=f,e=t,G=0;X.subscribe(new I9(Q,function(N){var z=G++;e=q?A(e,N,z):(q=!0,N);Q.next(e)},void 0,void 0))}};
hwx=function(A){A=A===void 0?null:A;return F3(function(t,f){var X=!1;t.subscribe(new I9(f,function(Q){X=!0;f.next(Q)},void 0,function(){X||f.next(A);
f.complete()}))})};
A5=function(){return F3(function(A,t){A.subscribe(new I9(t,PC))})};
t5=function(A){return F3(function(t,f){t.subscribe(new I9(f,function(){return f.next(A)}))})};
fn=function(A){return A<=0?function(){return HC}:F3(function(t,f){var X=0;
t.subscribe(new I9(f,function(Q){++X<=A&&(f.next(Q),A<=X&&f.complete())}))})};
XU=function(A){var t=t===void 0?iL:t;var f;A=(f=A)!=null?f:Rwl;return F3(function(X,Q){var q,e=!0;X.subscribe(new I9(Q,function(G){var N=t(G);if(e||!A(q,N))e=!1,q=N,Q.next(G)}))})};
Rwl=function(A,t){return A===t};
bnq=function(A){A=A===void 0?mws:A;return F3(function(t,f){var X=!1;t.subscribe(new I9(f,function(Q){X=!0;f.next(Q)},void 0,function(){return X?f.complete():f.error(A())}))})};
mws=function(){return new WS0};
QG=function(){var A=_.Hu.apply(0,arguments);return function(t){return Qkz(t,nO.apply(null,_.YV(A)))}};
y5g=function(A){return F3(function(t,f){var X=0;t.subscribe(new I9(f,function(Q){A.call(void 0,Q,X++,t)||(f.next(!1),f.complete())},void 0,function(){f.next(!0);
f.complete()}))})};
vNg=function(){return F3(function(A,t){var f=[];A.subscribe(new I9(t,function(X){f.push(X);1<f.length&&f.shift()},void 0,function(){for(var X=_.U(f),Q=X.next();!Q.done;Q=X.next())t.next(Q.value);
t.complete()},function(){f=null}))})};
LSx=function(A,t){var f=arguments.length>=2;return function(X){return X.pipe(A?gk(function(Q,q){return A(Q,q,X)}):iL,vNg(),f?hwx(t):bnq(function(){return new WS0}))}};
J5=function(A){var t=uL(A)?A:function(){return A};
return uL()?F3(function(f,X){var Q=t();(void 0)(Q).subscribe(X).add(f.subscribe(Q))}):function(f){var X=new qw(f,t);
uL(f==null?void 0:f.lift)&&(X.lift=f.lift);X.source=f;X.subjectFactory=t;return X}};
en=function(A){var t=new UP(A,void 0,void 0);return function(f){return J5(function(){return t})(f)}};
lU=function(A,t){return F3(CUq(A,t,arguments.length>=2))};
Nw=function(){var A=_.Hu.apply(0,arguments),t=EV(A);return F3(function(f,X){(t?Qkz(A,f,t):Qkz(A,f)).subscribe(X)})};
uU=function(A){return F3(function(t,f){var X=null,Q=0,q=!1;t.subscribe(new I9(f,function(e){var G;(G=X)==null||G.unsubscribe();G=Q++;MW(A(e,G)).subscribe(X=new I9(f,function(N){return f.next(N)},void 0,function(){X=null;
q&&!X&&f.complete()}))},void 0,function(){(q=!0,!X)&&f.complete()}))})};
zv=function(A,t){t=t===void 0?!1:t;return F3(function(f,X){var Q=0;f.subscribe(new I9(X,function(q){var e=A(q,Q++);(e||t)&&X.next(q);!e&&X.complete()}))})};
pdx=function(A,t,f){var X=uL(A)||t||f?{next:A,error:t,complete:f}:A;return X?F3(function(Q,q){Q.subscribe(new I9(q,function(e){var G;(G=X.next)==null||G.call(X,e);q.next(e)},function(e){var G;
(G=X.error)==null||G.call(X,e);q.error(e)},function(){var e;
(e=X.complete)==null||e.call(X);q.complete()}))}):iL};
ENu=function(){var A=_.Hu.apply(0,arguments),t=SVx(A);return F3(function(f,X){for(var Q=A.length,q=Array(Q),e=A.map(function(){return!1}),G=!1,N={i$jscomp$230:0};N.i$jscomp$230<Q;N={i$jscomp$230:N.i$jscomp$230},N.i$jscomp$230++)MW(A[N.i$jscomp$230]).subscribe(new I9(X,function(z){return function(T){q[z.i$jscomp$230]=T;
G||e[z.i$jscomp$230]||(e[z.i$jscomp$230]=!0,(G=e.every(iL))&&(e=null))}}(N),void 0,PC));
f.subscribe(new I9(X,function(z){G&&(z=[z].concat(_.YV(q)),X.next(t?t.apply(null,_.YV(z)):z))}))})};
DwT=function(A){var t=nNq;if(t)for(var f in t)Object.prototype.hasOwnProperty.call(t,f)&&A(t[f],f,t)};
FSq=function(){var A=[];DwT(function(t){A.push(t)});
return A};
xwq=function(A){try{return!!A&&A.location.href!=null&&Igx(A,"foo")}catch(t){return!1}};
_.Pd=function(A){return new Tkx(A[0].toLowerCase())};
jkb=function(A){for(var t=_.Hu.apply(1,arguments),f=A[0],X=0;X<A.length-1;X++)f+=String(t[X]),f+=A[X+1];t=document.implementation.createHTMLDocument("");X=t.createElement("style");t.head.appendChild(X);t=X.sheet;t.insertRule(f,0);if(t.cssRules.length===1&&(f=t.cssRules[0],f instanceof CSSStyleRule))return new NW(f.cssText.replace(/</g,"\\3C "))};
YPx=function(A){try{return new URL(A,window.document.baseURI)}catch(t){return new URL("about:invalid")}};
Vnl=function(A,t){var f=t.createRange();f.selectNode(t.body);A=wW(A);return f.createContextualFragment(si(A))};
Znl=function(A){A=A.nodeName;return typeof A==="string"?A:"FORM"};
oNl=function(A){A=A.nodeType;return A===1||typeof A!=="number"};
iU=function(A,t,f){A.setAttribute(t,f)};
dwg=function(A){return A.parts.map(function(t){var f=t.descriptor;return""+t.url+(f?" "+f:"")}).join(" , ")};
_.OP=function(A){var t=_.Hu.apply(1,arguments);if(t.length===0)return _.pb(A[0]);for(var f=A[0],X=0;X<t.length;X++)f+=encodeURIComponent(t[X])+A[X+1];return _.pb(f)};
_.cd=function(A,t){A=_.Ei(A).toString();var f=A.split(/[?#]/),X=/[?]/.test(A)?"?"+f[1]:"";return SPx(f[0],X,/[#]/.test(A)?"#"+(X?f[2]:f[1]):"",t)};
SPx=function(A,t,f,X){function Q(e,G){e!=null&&(Array.isArray(e)?e.forEach(function(N){return Q(N,G)}):(t+=q+encodeURIComponent(G)+"="+encodeURIComponent(e),q="&"))}
var q=t.length?"&":"?";X.constructor===Object&&(X=Object.entries(X));Array.isArray(X)?X.forEach(function(e){return Q(e[1],e[0])}):X.forEach(Q);
return _.pb(A+t+f)};
Hns=function(){var A=qW($w5).toString();return _.pb(URL.createObjectURL(new Blob([A],{type:"text/javascript"})))};
agq=function(A){var t=[],f=0,X;for(X in A)t[f++]=X;return t};
KSx=function(A,t){for(var f in A)if(A[f]==t)return!0;return!1};
gNs=function(A,t,f){for(var X in A)if(t.call(f,A[X],X,A))return X};
wdx=function(A){if(!A||typeof A!=="object")return A;if(typeof A.clone==="function")return A.clone();if(typeof Map!=="undefined"&&A instanceof Map)return new Map(A);if(typeof Set!=="undefined"&&A instanceof Set)return new Set(A);if(A instanceof Date)return new Date(A.getTime());var t=Array.isArray(A)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(A)||A instanceof DataView?{}:new A.constructor(A.length),f;for(f in A)t[f]=wdx(A[f]);return t};
skx=function(A){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return skx.apply(null,arguments[0]);if(t%2)throw Error("ma");for(var f={},X=0;X<t;X+=2)f[arguments[X]]=arguments[X+1];return f};
kvx=function(A){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return kvx.apply(null,arguments[0]);for(var f={},X=0;X<t;X++)f[arguments[X]]=!0;return f};
Bd=function(A,t,f,X){this.top=A;this.right=t;this.bottom=f;this.left=X};
r5u=function(A){A=A.global;if(A.PendingGetBeacon)return A.PendingGetBeacon};
h5=function(A){return function(t){return t.pipe(AVz(A,J5(new Cn)))}};
Rk=function(A){return function(t){return t.pipe(AVz(A,en(1)))}};
AVz=function(A,t){function f(X){return new cC(function(Q){return X.subscribe(function(q){mS(A,function(){return void Q.next(q)},3)},function(q){mS(A,function(){return void Q.error(q)},3)},function(){mS(A,function(){return void Q.complete()},3)})})}
return OV(f,HOs(),t,xV(),f)};
Xf5=function(A){var t=tep(A);return t===null?new bU(null):t.pipe(jO(function(f){f=f.serialize();if(fAg)f=_.Xb.btoa(f);else{for(var X=[],Q=0,q=0;q<f.length;q++){var e=f.charCodeAt(q);e>255&&(X[Q++]=e&255,e>>=8);X[Q++]=e}f=_.E2(X)}return f}),fn(1),Rk(A.queue))};
QyT=function(A){var t=t===void 0?{}:t;if(typeof Event==="function")return new Event(A,t);if(typeof document!=="undefined"){var f=document.createEvent("CustomEvent");f.initCustomEvent(A,t.bubbles||!1,t.cancelable||!1,t.detail);return f}throw Error();};
qBb=function(A){return typeof A==="string"?document.getElementById(A):A};
Ucb=function(A){var t=!1;t=t===void 0?!1:t;if(A.tagName==="IMG"){if(A.complete&&(!A.naturalWidth||!A.naturalHeight))return!0;var f;if(t&&((f=A.style)==null?void 0:f.display)==="none")return!0}var X,Q;return JVx.test((X=A.getAttribute("width"))!=null?X:"")&&JVx.test((Q=A.getAttribute("height"))!=null?Q:"")};
eLb=function(A,t){if(A.tagName==="IMG")return A.naturalWidth&&A.naturalHeight?!0:!1;try{if(A.readyState)var f=A.readyState;else{var X,Q;f=(X=A.contentWindow)==null?void 0:(Q=X.document)==null?void 0:Q.readyState}return f==="complete"}catch(q){return t===void 0?!1:t}};
G_s=function(A){A||(A=function(t,f,X){t.addEventListener(f,X)});
return A};
zLp=function(A,t){var f=lAg();f=f===void 0?new Nw5:f;if(A=qBb(A)){var X=G_s(X);for(var Q=!1,q=function(L){Q||(Q=!0,t(L))},e,G=2,N=0;N<u1s.length;++N)if(u1s[N]===A.tagName){G=3;
e=[A];break}e||(e=A.querySelectorAll(u1s.join(",")));var z=0,T=0,O=!0,c=A=!1;N={};for(var B=0;B<e.length;N={isImg:void 0},B++){var h=e[B];if(!Ucb(h))if(N.isImg=h.tagName==="IMG",eLb(h,f.crossDomainLoadedDefault))A=!0,N.isImg&&(O=!0);else{z++;var W=function(L){return function(E){z--;!z&&O&&q(G);L.isImg&&(E=E&&E.type==="error",T--,E||(O=!0),!T&&c&&O&&q(G))}}(N);
X(h,"load",W);N.isImg&&(T++,X(h,"error",W))}}T===0&&(O=!0);e=null;e=_.Xb.document.readyState==="complete";if(z===0&&!A&&e)G=5;else if(z||!A){X(_.Xb,"load",function(){!f.pendingImagesBlockLoad||!T&&O?q(4):c=!0});
return}q(G)}};
PI0=function(A,t,f){if(A)for(var X=0;A!=null&&X<500&&!f(A);++X)A=t(A)};
Twl=function(A,t){PI0(A,function(f){try{return f===f.parent?null:f.parent}catch(X){}return null},t)};
iAx=function(A,t){if(A.tagName=="IFRAME")t(A);else{A=A.querySelectorAll("IFRAME");for(var f=0;f<A.length&&!t(A[f]);++f);}};
OA5=function(A){return(A=A.ownerDocument)&&(A.parentWindow||A.defaultView)||null};
cVs=function(A,t,f){try{var X=JSON.parse(f.data)}catch(e){}if(typeof X==="object"&&X&&X.type==="creativeLoad"){var Q=OA5(A);if(f.source&&Q){var q;Twl(f.source,function(e){try{if(e.parent===Q)return q=e,!0}catch(G){}});
q&&iAx(A,function(e){if(e.contentWindow===q)return t(X),!0})}}};
Bw0=function(A){return typeof A==="string"?document.getElementById(A):A};
RLg=function(){var A={};return A[0]=_.OP(MeT,"current"),A[1]=_.OP(CIp),A[2]=_.OP(hLp),A};
Wd=function(A,t){return A.left===t.left&&A.top===t.top&&A.width===t.width&&A.height===t.height};
mcs=function(A,t){return{left:Math.max(A.left,t.left),top:Math.max(A.top,t.top),width:Math.max(0,Math.min(A.left+A.width,t.left+t.width)-Math.max(A.left,t.left)),height:Math.max(0,Math.min(A.top+A.height,t.top+t.height)-Math.max(A.top,t.top))}};
bA0=function(A,t){return{left:Math.round(A.left+t.x),top:Math.round(A.top+t.y),width:A.width,height:A.height}};
W7T=function(A,t,f){if(A&&t!==null&&t!=t.top){if(!t.top)return new _.Ln(-12245933,-12245933);t=t.top}try{return(f===void 0?0:f)?(new _.Ln(t.innerWidth,t.innerHeight)).round():_.pn(t).round()}catch(X){return new _.Ln(-12245933,-12245933)}};
yVg=function(A,t,f){try{if(A){if(!t.top)return new Bd(-12245933,-12245933,-12245933,-12245933);t=t.top}var X=W7T(A,t,f),Q=X.height,q=X.width;if(q===-12245933)return new Bd(q,q,q,q);var e=EP(nn(t.document)),G=e.x,N=e.y;return new Bd(N,G+q,N+Q,G)}catch(z){return new Bd(-12245933,-12245933,-12245933,-12245933)}};
vC5=function(A){var t;return(t=A.google_tag_data)!=null?t:A.google_tag_data={}};
L7b=function(A){var t,f;return typeof((t=A.navigator)==null?void 0:(f=t.userAgentData)==null?void 0:f.getHighEntropyValues)==="function"};
ECu=function(A){if(!L7b(A))return null;var t=vC5(A);if(t.uach_promise)return t.uach_promise;A=A.navigator.userAgentData.getHighEntropyValues(pf0).then(function(f){t.uach!=null||(t.uach=f);return f});
return t.uach_promise=A};
SBq=function(A){var t;return nCx(Dcx(F7l(IAb(xcz(jyz(YBl(Vex(ZAb(new oCq,A.architecture||""),A.bitness||""),A.mobile||!1),A.model||""),A.platform||""),A.platformVersion||""),A.uaFullVersion||""),((t=A.fullVersionList)==null?void 0:t.map(function(f){var X=new dcg;X=_.Dg(X,1,f.brand);return _.Dg(X,2,f.version)}))||[]),A.wow64||!1)};
$cu=function(A){var t,f;return(f=(t=ECu(A))==null?void 0:t.then(function(X){return SBq(X)}))!=null?f:null};
HAg=function(A,t){return new cC(function(f){var X=!1,Q=Array(t.length);Q.fill(void 0);var q=new Set,e=new Set,G=function(O,c){A.running?(Q[c]=O,q.add(c),X||(X=!0,mS(A,function(){X=!1;f.next(_.ds(Q))},1))):f.error(new FU(c))},N=function(O,c){e.add(c);
q.add(c);mS(A,function(){f.error(O)},1)},z=function(O){e.add(O);
mS(A,function(){e.size===t.length&&f.complete()},1)},T=t.map(function(O,c){return O.subscribe(function(B){return void G(B,c)},function(B){return void N(B,c)},function(){return void z(c)})});
return function(){T.forEach(function(O){return void O.unsubscribe()})}})};
gCb=function(A,t,f){function X(){if(t.debugChannel){var L=t.debugChannel,E=L.next;var D={creativeId:t.debugNames.getName(f),requiredSignals:Q,signals:Object.assign({},q),hasPrematurelyCompleted:e,errorMessage:G,erroredSignalKey:N};D={specMajor:2,specMinor:0,specPatch:0,timestamp:wk(t.timeProvider.now(),new sV(0,t.timeProvider.timeline)),instanceId:t.debugNames.getName(t.symbol),creativeState:D};E.call(L,D)}}
for(var Q=Object.keys(A),q={},e=!1,G=null,N=null,z={},T=new Set,O=[],c=[],B=_.U(Q),h=B.next(),W={};!h.done;W={key$jscomp$394:void 0},h=B.next())W.key$jscomp$394=h.value,h=A[W.key$jscomp$394],h instanceof bU?(z[W.key$jscomp$394]=h.value,T.add(W.key$jscomp$394),t.debugChannel&&(q[String(W.key$jscomp$394)]=c5p(h.value))):(h=h.pipe(XU(function(L,E){return inx(L)||inx(E)?!1:L===E}),jO(function(L){return function(E){t.debugChannel&&(q[String(L.key$jscomp$394)]=c5p(E),X());
var D={};return D[L.key$jscomp$394]=E,D}}(W)),rk(function(L){return function(E){if(E instanceof FU)throw new aAx(String(L.key$jscomp$394));
throw E;}}(W)),pdx(function(L){return function(){T.add(L.key$jscomp$394)}}(W),function(L){return function(E){N=String(L.key$jscomp$394);
G=String(E);X()}}(W),function(L){return function(){T.has(L.key$jscomp$394)||(e=!0,X())}}(W))),c.push(W.key$jscomp$394),O.push(h));
(A=Object.keys(q).length>0)&&X();B=HAg(t.queue,O).pipe(rk(function(L){if(L instanceof FU)throw new K7l(String(c[L.inputObservableIndex]));throw L;}),jO(function(L){return Object.freeze(Object.assign.apply(Object,[{},
z].concat(_.YV(L))))}));
return(O=O.length>0)&&A?KO(nO(Object.freeze(z)),B):O?B:nO(Object.freeze(z))};
wfq=function(A,t,f,X,Q){return A.performanceMonitor.timeExecution.bind(A.performanceMonitor)(733,function(){var q={};try{return t.pipe(rk(function(e){X(Object.assign({},q,{error:e}));return HC}),dk(function(e){try{var G=f(A,e)}catch(z){return X(Object.assign({},q,{error:z instanceof Error?z:String(z)})),HC}var N={};
return gCb(G,A,e.symbol).pipe(pdx(function(z){N=z}),en(1),xV()).pipe(Q,rk(function(z){X(Object.assign({},N,{error:z}));
return HC}),QG(void 0),jO(function(){return!0}))})).pipe(lU(function(e){return e+1},0),rk(function(e){X(Object.assign({},q,{error:e}));
return HC}))}catch(e){return X(Object.assign({},q,{error:e})),HC}})()};
Ik=function(A){var t=new Map;if(typeof A!=="object"||A===null)return t;Object.values(A).forEach(function(f){f&&typeof f.extrapolateToNow==="function"&&(t.has(f.clock.timeline)||t.set(f.clock.timeline,f.clock.now()))});
return t};
sys=function(A,t){return typeof A==="string"?encodeURIComponent(A):typeof A==="number"?String(A):Array.isArray(A)?A.map(function(f){return sys(f,t)}).join(","):A instanceof sV?A.toString():A&&typeof A.extrapolateToNow==="function"?sys(A.extrapolateUsingTimestampMap(t).value,t):A===!0?"1":A===!1?"0":A===void 0||A===null?null:A instanceof k_b?rVx(A):[A.top,
A.left,A.top+A.height,A.left+A.width].join()};
AZp=function(A,t){A=Object.entries(A).map(function(f){var X=_.U(f);f=X.next().value;X=X.next().value;X=sys(X,t);return X===null?"":f+"="+X}).filter(function(f){return f!==""});
return A.length?A.join("&"):""};
Xmg=function(A,t){var f=tGg,X=fMx;t=t===void 0?.01:t;return function(Q){t>0&&Math.random()<=t&&(A.global.HTMLFencedFrameElement&&A.global.fence&&typeof A.global.fence.reportEvent==="function"&&A.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Q=Object.assign({},Q,{errorMessage:Q.error instanceof Error&&Q.error.message?Q.error.message:String(Q.error),errorStack:Q.error instanceof Error&&Q.error.stack?String(Q.error.stack):null,errorName:Q.error instanceof
Error&&Q.error.name?String(Q.error.name):null,errorContext:String(A.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Q.escapedQueryId}),f(Object.assign({},Q,{payloadMapper:function(){return function(q){try{return X(Object.assign({},q))}catch(e){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Ik(Q)).forEach(function(q){A.beaconFactory.makeBeacon(q).sendNow()}))}};
Qox=function(){var A=_.Hu.apply(0,arguments);return function(t){var f=t.pipe(en(1),xV());t=A.map(function(X){return f.pipe(X,QG(!0))});
return ZH(t).pipe(fn(1),A5())}};
qHx=function(){var A=_.Hu.apply(0,arguments);return function(t){var f=t.pipe(en(1),xV());t=A.map(function(X){return f.pipe(X,QG(!0))});
return KO.apply(null,_.YV(t)).pipe(fn(1),A5())}};
JZs=function(A,t){return function(f){var X=f.pipe(en(1),xV());f=X.pipe(A,QG(!0));X=X.pipe(OV(t,en(),xV()),QG(!0));f=ZH([f,X]);return PUb(f,X).pipe(fn(1),A5())}};
U4u=function(A,t,f){f(!0)};
e50=function(A,t){return OV(uU(function(f){var X=A(f),Q=t(f),q={};return X&&Q&&q?new cC(function(e){Q(X,q,function(G){e.next(Object.assign({},f,{canEmit:G}));e.complete()});
return function(){}}):xN}),gk(function(f){return f.canEmit}))};
Gc0=function(A){var t={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(f){return f.pipe(uU(function(X){return new cC(function(Q){function q(){G.disconnect();N.unsubscribe()}
var e=A.MutationObserver;if(e&&X.ref!==void 0){var G=new e(function(z){Q.next(z)});
G.observe(X.ref,t);var N=X.JSC$9443_released.subscribe(q);return q}})}))}};
lMT=function(A){if(A.measurementDeferralState===3)return null;if(A.timeOnScreenReason!==void 0){var t=A.creativeFound===!1?"n":null;if(t!==null)return t}return A.geometricMeasurementErrors instanceof jn?"msf":A.contextValidationErrors instanceof YN?"c":A.contextVisibilityKnown===!1?"pv":A.geometricMeasurementErrors||A.contextValidationErrors?"x":null};
uNz=function(A,t){return A.replace(ND5,function(f,X){try{var Q=_.VG.get(t,X);if(Q==null||Q.toString()==null)return f;Q=Q.toString();if(Q==""||!_.Ux(Q==null?"":String(Q)))return encodeURIComponent(Q).replace(/%2C/g,",")}catch(q){}return f})};
z5q=function(A,t){var f=Object.assign({},A),X=A.userAgentClientHints;f=(delete f.userAgentClientHints,f);f=A.payloadMapper(f);var Q=AZp(f,t);return _.Zg(A.urlPrefixes,function(q){var e="";typeof X==="string"&&(e="&"+AZp({uach:X},t));var G={};return uNz(q,(G.VIEWABILITY=Q,G))+e})};
tGg=function(A,t){var f=A.payloadMapper(A),X=AZp(f,t);return X?_.Zg(A.urlPrefixes,function(Q){Q=Q.indexOf("?")>=0?Q:Q+"?";Q="?&".indexOf(Q.slice(-1))>=0?Q:Q+"&";return Q+X}):A.urlPrefixes};
Px5=function(){return OV(gk(function(A){return A!==void 0}),jO(function(A){return A}))};
TDx=function(A){return OV(jO(function(){return!0}),Nw(!1),Rk(A))};
iFT=function(A){return A.length<=0?HC:ZH(A.map(function(t){var f=0;return t.pipe(jO(function(X){return{index:f++,value:X}}))})).pipe(gk(function(t){return t.every(function(f){return f.index===t[0].index})}),jO(function(t){return t.map(function(f){return f.value})}))};
OF0=function(A,t){A.currentState&&(A.previousState=A.currentState);A.currentState=t;A.previousState&&A.previousState.value?(t=Math.max(0,wk(t.timestamp,A.previousState.timestamp)),A.totalTime+=t,A.consecutiveTime+=t):A.consecutiveTime=0;return A};
cZ5=function(){return OV(lU(OF0,{totalTime:0,consecutiveTime:0}),jO(function(A){return A.totalTime}))};
BD5=function(){return OV(lU(OF0,{totalTime:0,consecutiveTime:0}),jO(function(A){return A.consecutiveTime}))};
MG5=function(A,t){return function(f){return iFT(t.map(function(X){return f.pipe(A(X))}))}};
Cxx=function(){var A;return OV(pdx(function(t){return void(A=t.timestamp)}),BD5(),jO(function(t){return{timestamp:A,
value:Math.round(t)}}))};
h55=function(A,t){return Wd(A.topWindowViewportExternalGeometry,t.topWindowViewportExternalGeometry)&&Wd(A.elementGeometry,t.elementGeometry)&&Wd(A.exposedViewportLocalGeometry,t.exposedViewportLocalGeometry)&&Wd(A.intersectionGeometry,t.intersectionGeometry)&&A.elementGeometrySourceName===t.elementGeometrySourceName&&A.measurementRequests===t.measurementRequests&&A.viewportGeometrySourceName===t.viewportGeometrySourceName&&A.viewportLocalAppOffset.x===t.viewportLocalAppOffset.x&&A.viewportLocalAppOffset.y===
t.viewportLocalAppOffset.y};
W$5=function(A,t){return function(f){return function(X){var Q=X.pipe(J5(new Cn),xV());X=f.element.pipe(XU());Q=Q.pipe(jO(function(q){return q.value}));
return ZH([X,Q,t]).pipe(jO(function(q){var e=_.U(q);q=e.next().value;var G=e.next().value;e=e.next().value;if(q.ref===void 0)var N={top:0,left:0,width:0,height:0};else{N=q.ref.getBoundingClientRect();var z=q.ref,T=A.global,O=new _.ok(0,0),c=dG(_.Sn(z));if(Igx(c,"parent")){do{if(c==T)var B=_.$N(z);else B=R55(z),B=new _.ok(B.left,B.top);O.x+=B.x;O.y+=B.y}while(c&&c!=T&&c!=c.parent&&(z=c.frameElement)&&(c=c.parent))}N={top:O.y,left:O.x,width:N.width,height:N.height}}N=bA0(N,G.viewportLocalAppOffset);
T=mcs(N,G.exposedViewportLocalGeometry);O=A.timeProvider.now();c=Object;z=c.assign;if(e!==2||A.inCrossDomainIframe||T.width<=0||T.height<=0)var h=!1;else try{var W=A.document.elementFromPoint(T.left+T.width/2,T.top+T.height/2);h=W?!m4p(W,q):!1}catch(L){h=!1}return{timestamp:O,value:z.call(c,{},G,{elementGeometrySourceName:"geo",intersectionGeometry:h?bF5.intersectionGeometry:T,elementGeometry:N})}}),h5(A.queue))}}};
m4p=function(A,t,f){f=f===void 0?0:f;return A.ref===void 0||t.ref===void 0?!1:A.ref===t.ref||_.Hd(t.ref,function(X){return X===A.ref})?!0:t.ref.ownerDocument&&t.ref.ownerDocument.defaultView&&t.ref.ownerDocument.defaultView===t.ref.ownerDocument.defaultView.top?!1:f<10&&t.ref.ownerDocument&&t.ref.ownerDocument.defaultView&&t.ref.ownerDocument.defaultView.frameElement?m4p(A,new ak(t.ref.ownerDocument.defaultView.frameElement),f+1):!0};
L$q=function(A){return function(t){return t.pipe(A.ResizeObserver?yZb(A):vfg(A),en(1),xV())}};
yZb=function(A){return function(t){return t.pipe(uU(function(f){var X=A.ResizeObserver;if(!X||f.ref===void 0)return nO(bF5.elementGeometry);var Q=(new cC(function(q){function e(){f.ref!==void 0&&G.unobserve(f.ref);G.disconnect();N.unsubscribe()}
if(f.ref===void 0)return q.complete(),function(){};
var G=new X(function(z){z.forEach(function(T){q.next(T)})});
G.observe(f.ref);var N=f.JSC$9443_released.subscribe(e);return e})).pipe(kV(A.performanceMonitor,736),jO(function(q){return q.contentRect}));
return KO(nO(f.ref.getBoundingClientRect()),Q)}),XU(Wd))}};
vfg=function(A){return function(t){var f=t.pipe(Gc0(A)),X=A.onResize;f=KO(t.pipe(jO(function(){return QyT("resize")})),f,X);
return ZH(t,f).pipe(kV(A.performanceMonitor,737),jO(function(Q){Q=_.U(Q).next().value;return Q.ref===void 0?void 0:Q.ref.getBoundingClientRect()}),Px5(),XU(Wd))}};
nfu=function(A,t){var f=pmb(A,t).pipe(en(1),xV());return function(X){return function(Q){Q=Q.pipe(uU(function(q){return q.element}),XU());
return ZH([f,Q]).pipe(uU(function(q){var e=_.U(q);q=e.next().value;e=e.next().value;return Efx(A,q.intersectionObserver,L$q(A),q.observations,X,q.flushRecords,e)}),h5(A.queue))}}};
D4b=function(A){return jO(function(t){return t.value.viewportGeometrySourceName!=="nio"?t:Object.assign({},t,{value:Object.assign({},t.value,{exposedViewportLocalGeometry:Kn(A,!0),topWindowViewportExternalGeometry:Kn(A,!0)})})})};
F$u=function(A,t){return nO(t).pipe(A,jO(function(){return t}))};
pmb=function(A,t){return A.timeProvider.timeline!==IMq?DH(new jn(2)):A.MutationObserver?typeof IntersectionObserver==="undefined"?DH(new jn(0)):(new cC(function(f){var X=new Cn,Q=new sP(X.next.bind(X),{threshold:[].concat(_.YV(t))});f.next({observations:X.pipe(kV(A.performanceMonitor,735)),intersectionObserver:Q,flushRecords:function(q){q=Q.takeRecords(q);q.length>0&&X.next(q)}})})).pipe(fn(1),en(1),xV()):DH(new jn(1))};
x45=function(A){return IHb(A.sort(function(t,f){return t.time-f.time}),$Wx)};
Efx=function(A,t,f,X,Q,q,e){return new cC(function(G){function N(){h||(h=!0,e.ref!==void 0&&t.unobserve(Q,e.ref),T.unsubscribe(),B.unsubscribe(),c.unsubscribe(),W.unsubscribe())}
if(e.ref!==void 0){job(t,Q);t.observe(Q,e.ref);var z=new kN({timestamp:A.timeProvider.now(),value:Object.assign({},bF5,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),T=X.pipe(dk(function(L){return x45(L)}),gk(function(L){return L.target===e.ref}),jO(function(L){return{timestamp:new sV(L.time,IMq),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:L.rootBounds||rG,topWindowViewportExternalGeometry:L.rootBounds||Kn(A,!0),measurementRequests:O,elementGeometrySourceName:"nio",intersectionGeometry:L.intersectionRect,elementGeometry:L.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:L.isIntersecting,isV2Visible:L.isVisible}}}),J5(z),xV()).subscribe(G),O=new Cn,c=O.subscribe(function(){q(Q);
G.next({timestamp:A.timeProvider.now(),value:z.value.value});e.ref!==void 0&&(t.unobserve(Q,e.ref),t.observe(Q,e.ref))}),B=F$u(f,e).subscribe(function(){O.next()}),h=!1,W=e.JSC$9443_released.subscribe(function(){return N()});
return N}})};
YHl=function(A,t){var f=A.getOnBackgrounded().pipe(jO(function(){return"b"}));
return PUb(t,f).pipe(fn(1),Rk(A.queue))};
AV=function(A){return function(t){var f;return t.pipe(pdx(function(X){return void(f=X.timestamp)}),jO(function(X){return X.value}),A,jO(function(X){return{timestamp:f,
value:X}}))}};
VGb=function(A){return A.intersectionGeometry.width*A.intersectionGeometry.height/(A.elementGeometry.width*A.elementGeometry.height)};
tV=function(A,t,f){f=f===void 0?function(X,Q){return X===Q}:f;
return A.timestamp.equals(t.timestamp)&&f(A.value,t.value)};
X1=function(A,t){return t.pipe(jO(function(f){return new fA(A.timeProvider,{timestamp:A.timeProvider.now(),value:f})}))};
ZFg=function(A){return function(t){return t.pipe(ENu(A),jO(function(f){var X=_.U(f);f=X.next().value;X=X.next().value;var Q=f.value;return{timestamp:f.timestamp,value:Q>=1?!0:Q<=0?!1:Q>=X}}))}};
d4b=function(){return OV(gk(function(A,t){return t>0}),of5,Nw(-1),XU())};
SHl=function(A,t,f){return A?ZH([t,f]).pipe(gk(function(X){var Q=_.U(X);X=Q.next().value;Q=Q.next().value;return X.timestamp.equals(Q.timestamp)}),jO(function(X){var Q=_.U(X);
X=Q.next().value;Q=Q.next().value;return X.value>Q.value?X:Q})):t};
aMT=function(A){return function(t){var f=t.pipe($4l),X=t.pipe(HFp);return A instanceof cC?A.pipe(uU(function(Q){return SHl(Q,f,X)})):SHl(A.value,f,X)}};
X5b=function(A,t,f,X){var Q=X.geometryIsOccluded,q=X.exposureThreshold,e=X.wasLargeAdAtRender,G=X.allowLargeAdThreshold,N=X.largeAdExposureThreshold,z=X.mayUseViewportShareExposure,T=X.hasMeasurementStarted;X=X.useIntersectionObserverV2;t=K$5(A,f,t);f=gfp(A,f);X=wms(t,X);var O=soz(A,Q,z,t),c=O.pipe(jO(function(d){return d.value}),XU(),Rk(A),lU(function(d,K){return Math.max(d,K)},0)),B=O.pipe(jO(function(d){return d.value}),d4b(),Rk(A)),h=t.pipe(kcb,jO(function(d){return d.value}),fn(2),XU(),Rk(A));
e=rZb(A,t,e,G);var W=e.pipe(Nw(!1),XU(),jO(function(d){return d?N:q}));
G=O.pipe(ZFg(W),XU(),Rk(A));var L=ZH([G,t]).pipe(gk(function(d){var K=_.U(d);d=K.next().value;K=K.next().value;return d.timestamp.equals(K.timestamp)}),jO(function(d){var K=_.U(d);
d=K.next().value;K=K.next().value;return{visible:d.value,geometry:K.value.elementGeometry}}),lU(function(d,K){return!K.visible&&d.visible?d:K},{visible:!1,
geometry:rG}),jO(function(d){return d.geometry}),Nw(rG),Rk(A),XU(Wd));
z=z instanceof cC?z.pipe(XU(),t5()):xN;W=ZH([z,W]).pipe(t5());var E=t.pipe(gk(function(d){return d.value.viewportGeometrySourceName!=="ns"&&d.value.elementGeometrySourceName!=="ns"}),lU(function(d){return d+1},0),Nw(0),Rk(A)),D=f.pipe(t5(!0),Nw(!1),Rk(A));
D=ZH([T,D]).pipe(jO(function(d){var K=_.U(d);d=K.next().value;K=K.next().value;return d&&!K}),Rk(A));
var S=t.pipe(A8T,XU()),Z=S.pipe(jO(function(d){return d.value}),lU(function(d,K){return Math.max(d,K)},0),XU(),Rk(A));
A=S.pipe(jO(function(d){return d.value}),d4b(),Rk(A));
return{shouldResetExposureSignals:z,shouldResetViewabilitySignals:W,geometrySignals:{readyGeometryWithDefault:t,measurementStrategy:t.pipe(t2b),creativePosition:L.pipe(XU(Wd)),visible:G.pipe(XU(tV)),timestampedExposure:O.pipe(XU(tV)),maximumExposure:c,minimumExposure:B,browserSize:t.pipe(fkx,XU(_.ws)),timestampedScreenShare:S,maxScreenShare:Z,minScreenShare:A,geometricMeasurementErrors:f,measurementRequests:t.pipe(jO(function(d){return d.value.measurementRequests})),
isLargeAd:e,geometryIsOccluded:Q,hasMeasurementStarted:T,geometryMeasurable:D,validMeasurementCount:E,loadTimeExposure:h,v2VisibilityBitVector:X}}};
gfp=function(A,t){return t.pipe(gk(function(){return!1}),jO(function(f){return f}),rk(function(f){return QT(new bU(f),A)}))};
K$5=function(A,t,f){return t.pipe(uUl(xN),Rk(A)).pipe(XU(function(X,Q){return tV(X,Q,h55)}),Nw({timestamp:f.now(),
value:bF5}),Rk(A))};
soz=function(A,t,f,X){f=X.pipe(aMT(f),AV(jO(function(Q){return Math.round(Q*100)/100})),Rk(A));
return t instanceof bU?f:ZH([f,t]).pipe(jO(function(Q){var q=_.U(Q);Q=q.next().value;q=q.next().value;return{timestamp:q.timestamp.maximum(Q.timestamp),value:q.value?0:Q.value}}),XU(tV),Rk(A))};
rZb=function(A,t,f,X){t=[t.pipe(jO(function(Q){return Q.value.elementGeometry.width*Q.value.elementGeometry.height>=242500}))];
f instanceof cC&&t.push(f.pipe(jO(function(Q){return!!Q})));
f=ZH(t);return X?f.pipe(jO(function(Q){return Q.some(function(q){return q})}),Nw(!1),XU(),Rk(A)):QT(new bU(!1),A)};
wms=function(A,t){A=ZH([A,t]).pipe(jO(function(Q){var q=_.U(Q);Q=q.next().value;if(q.next().value&&Q.value.isIntersecting)return Q.value.isV2Visible}),XU());
var f=A.pipe(jO(function(Q){return Q===void 0?!0:Q}),lU(function(Q,q){return Q||!q},!1)),X=A.pipe(lU(function(Q,q){return q===void 0?Q:q?!1:Q!=null?Q:!0},void 0),jO(function(Q){return!!Q}));
return ZH([t,TGb(A,f,X)]).pipe(jO(function(Q){var q=_.U(Q);Q=q.next().value;var e=_.U(q.next().value);q=e.next().value;var G=e.next().value;e=e.next().value;var N=0;if(!Q)return 0;if(q===void 0)return 16;q&&(N|=1);q||(N|=2);G&&(N|=4);e&&(N|=8);return N}))};
GwT=function(A,t,f,X,Q){var q=Qhx.timeThresholdMs;var e=e===void 0?new q80(t,X):e;return(new cC(function(G){var N=f.pipe(Nw(void 0),uU(function(){return J85(Q)})).pipe(jO(function(z){var T=z.value;
z=z.timestamp;var O=T.visible;T=T.consecutiveViewTime;var c=T>=q;c||!O?Upp(e):(z=Math.max(0,wk(t.now(),z)),ec5(e,Math.max(0,q-T-z)));return c}),lU(function(z,T){return T||z},!1),XU()).subscribe(G);
return function(){e.dispose();N.unsubscribe()}})).pipe(zv(function(G){return!G},!0),Rk(A))};
J85=function(A){return iFT([A,A.pipe(Cxx())]).pipe(jO(function(t){var f=_.U(t);t=f.next().value;f=f.next().value;return{timestamp:t.timestamp,value:{visible:t.value,consecutiveViewTime:f.value}}}),XU(function(t,f){return tV(t,f,function(X,Q){return X.consecutiveViewTime===Q.consecutiveViewTime&&X.visible===Q.visible})}))};
lkq=function(){return OV(BD5(),lU(function(A,t){return Math.max(A,t)},0),jO(function(A){return Math.round(A)}))};
N90=function(A){return OV(ZFg(nO(A)),lkq())};
uEx=function(A,t){return t instanceof cC?t.pipe(uU(function(f){return(f=f?15:null)?DH(new jn(f)):A})):(t=t.value?15:null)?DH(new jn(t)):A};
zcx=function(A){var t=new jn(13);if(A.length<1)return{chain:HC,capturedErrors:HC};var f=new Cn,X=A[0];return{chain:A.slice(1).reduce(function(Q,q){return Q.pipe(rk(function(e){f.next(e);return q}))},X).pipe(rk(function(Q){f.next(Q);
return DH(t)}),J5(new Cn),xV()),
capturedErrors:f}};
Pk0=function(A,t){var f=A.pipe(J5(new Cn),xV());return uU(function(X){return f.pipe(t(X))})};
ias=function(A,t){if(A.inCrossDomainIframe)return DH(new jn(6));var f=new Cn;return KO(nO({}),t,f).pipe(jO(function(){return{timestamp:A.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:T9x(A),topWindowViewportExternalGeometry:Kn(A,!0),measurementRequests:f,viewportLocalAppOffset:{x:0,y:0}}}}),h5(A.queue))};
T9x=function(A){var t=Kn(A,!1);if(!A.inIframe||!xwq(A.global.parent)||A.global.parent===A.global)return t;var f=new qc(A.global.parent,A.debugChannel);f.beaconFactory=A.beaconFactory;f=T9x(f);A=A.global.frameElement.getBoundingClientRect();return mcs(bA0(mcs(f,A),{x:t.left-A.left,y:t.top-A.top}),t)};
Oag=function(A){if(A.prerendering)return 3;var t;return(t={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[A.visibilityState||A.webkitVisibilityState||A.mozVisibilityState||""])!=null?t:0};
c85=function(A){return A.document.JSC$9454_onVisibilityChange.pipe(jO(function(t){return t==="visible"}),XU(),Rk(A.queue))};
B9z=function(A,t,f){var X;return t.pipe(XU(),uU(function(Q){return f.pipe(jO(function(){if(!X){X=!0;try{Q.next()}finally{X=!1}}return!0}))}),Nw(!1),Rk(A.queue))};
M25=function(A){return OV(AV(jO(function(t){return t>=1?!0:t<=0?!1:t>=A})),cZ5(),jO(function(t){return Math.round(t)}))};
hcz=function(A,t,f,X,Q){var q=Cku;if(q.length>1)for(var e=0;e<q.length-1;e++)if(q[e]<q[e+1])throw Error();e=Q.pipe(Nw(void 0),uU(function(){return f.pipe(Cxx())}),XU(),Rk(A));
Q=Q.pipe(Nw(void 0),uU(function(){return f.pipe(lkq())}),XU(),Rk(A));
return{totalMeasurementTime:X.pipe(Nw(void 0),uU(function(){return t.pipe(jO(function(G){return{timestamp:G.timestamp,value:!0}}),cZ5())}),XU(),Rk(A)),
totalUnviewedTime:X.pipe(Nw(void 0),uU(function(){return t.pipe(jO(function(G){return{timestamp:G.timestamp,value:G.value===0}}),cZ5())}),XU(),Rk(A)),
maxTimeOnScreen:X.pipe(Nw(void 0),uU(function(){return t.pipe(MG5(N90,q))}),XU(_.ws),Rk(A)),
timeOnScreen:X.pipe(Nw(void 0),uU(function(){return t.pipe(MG5(M25,q),jO(function(G){return G.map(function(N,z){return z>0?N-G[z-1]:N})}))}),XU(_.ws),Rk(A)),
maxConsecutiveViewTime:Q,consecutiveViewTime:e.pipe(XU(tV),Rk(A))}};
mp5=function(A){var t=!0;t=t===void 0?!1:t;return OV(uU(function(f){return Rcb(A.document,f,t)}),Rk(A.queue))};
ba5=function(A,t,f){var X=f.pipe(jO(function(Q){return{value:Q,timestamp:A.timeProvider.now()}}),XU(tV));
return t instanceof cC?t.pipe(XU(),uU(function(Q){return Q?QT(new bU({value:!1,timestamp:A.timeProvider.now()}),A.queue):X})):t.value===!1?X:new bU(!1)};
Whp=function(A,t,f,X,Q,q,e){var G=Qhx;t=t instanceof cC?t.pipe(Nw(!1),XU()):t;var N=!A.isMobile();f=ba5(A,f,X);A=e.measurableCreative.pipe(TDx(A.queue));return Object.assign({},G,{geometryIsOccluded:f,wasLargeAdAtRender:Q,allowLargeAdThreshold:N,mayUseViewportShareExposure:t,hasMeasurementStarted:A,useIntersectionObserverV2:q})};
vkx=function(A,t,f,X,Q,q){var e=1;q=q===void 0?!0:q;e=e===void 0?.01:e;var G=G===void 0?A.timeProvider.intervalObservable(100).pipe(Rk(A.queue)):G;return A.performanceMonitor.timeExecution(916,function(){return y8x(A,t.pipe(h5(A.queue)),f.pipe(h5(A.queue)),X,Q,q,e,G)})()};
y8x=function(A,t,f,X,Q,q,e,G){var N=c85(A).pipe(jO(function(T){return!T})),z=new Lhg(A,[new p5x(A,Cku),
new Ekg(A,G)]);G=Qox(nks,Dpz);return wfq(A,t,function(T,O){var c=QT(new bU(O.element),T.queue).pipe(mp5(T),Rk(T.queue)),B={loadedElement:c,shouldMeasure:c.pipe(t5(!0)),measurableCreative:c.pipe(jO(function(d){var K=K===void 0?Symbol():K;return Object.freeze({symbol:K,element:QT(new bU(d),T.queue)})})),
creativeSearchResult:QT(new bU("mue"),T.queue)},h=new bU(!1),W=new bU(!1),L=new bU(17),E=new bU(!1),D=new bU(!1),S=QT(JV,T.queue);h=z.buildGeometrySource(B,{inApp:h,useV2:!1,requestSource:QT(L,T.queue)}).geometrySource;B=Whp(T,E,W,N,D,S,B);W=X5b(T.queue,T.timeProvider,h,B);B=W.geometrySignals;E=W.shouldResetViewabilitySignals;W=hcz(T.queue,B.timestampedExposure,B.visible,W.shouldResetExposureSignals,E);E=GwT(T.queue,T.timeProvider,E,B.measurementRequests,B.visible);D=f.pipe(gk(function(d){return d===
O.element.ref}),jO(function(){return"ur"}));
S=BGx(T.timeProvider,Q).pipe(t5("t"));D=YHl(T,KO(D,S));S=B9z(T,B.measurementRequests,D.pipe(gk(function(d){return d!==null})));
h=D.pipe(gk(function(d){return d!==null}),jO(function(){return Oag(T.global.document)===1}));
var Z=Fhl(T.document);return Object.assign({},{beaconFactory:new bU(T.beaconFactory),context:new bU(T),inferredPingId:new bU("lidar2"),timeOnScreenPingId:new bU("lidartos"),binaryContext:new bU(17),binaryVersion:new bU(X),requestSource:L,contextValidationErrors:new bU(T.validate()?null:new YN),contextVisibilityKnown:new bU(Z),payloadMapper:new bU(fMx),endOfSessionReason:D,timeOnScreenReason:D,requestMeasurementOnEndOfSession:S,hasImpressionFired:Ikq,crossDomainIframeState:new bU(T.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:JV,inFetchLaterBeaconExperiment:JV,isTurtlex:JV,turtlexReportEventData:new bU(""),reportFencedFrameEvent:xN,isViewableAttributionEnabled:JV,inViewableAttributionExperiment:new bU(0),fetchBeaconFactory:xN,supportsPendingBeacon:JV,supportsFetchLater:JV,emit:new bU(U4u),beginToRenderEvent:new bU(Symbol()),activeViewUnmeasurableEvent:new bU(Symbol()),activeViewViewableEvent:new bU(Symbol()),creativeFound:Ikq,immediateUrlPrefixes:new bU(O.immediateUrls),timeOnScreenUrlPrefixes:new bU(O.timeOnScreenUrls),
cpmavUrls:xN,viewableRelayUrls:xN,measurementDeferralState:new bU(2),urlSerializer:new bU(z5q),viewUrlSerializer:new bU(xpx),isCreativeLoaded:c.pipe(TDx(T.queue)),pageVisible:N.pipe(jO(function(d){return!d})),
eosPageVisible:h,timestampedExposureHistory:B.timestampedExposure.pipe(lU(function(d,K){d.push(K);return d},[]))},B,{viewable:X1(T,E),
maxTimeOnScreen:X1(T,W.maxTimeOnScreen),timeOnScreen:X1(T,W.timeOnScreen),maxConsecutiveViewTime:X1(T,W.maxConsecutiveViewTime),consecutiveViewTime:W.consecutiveViewTime.pipe(jO(function(d){return new fA(T.timeProvider,d)})),
totalMeasurementTime:X1(T,W.totalMeasurementTime),totalUnviewedTime:X1(T,W.totalUnviewedTime),userAgentClientHints:Xf5(T),clientOrderPingCounter:new bU(new k_b)})},Xmg(A,e),qHx(q?JZs(G,jhx):JZs(G,Y8q),V2u))};
Zas=function(A){var t=_.Hu.apply(1,arguments).filter(Boolean).join("&");if(!t)return A;var f=A.match(/[?&]adurl=/);return f?A.slice(0,f.index+1)+t+"&"+A.slice(f.index+1):A+(A.indexOf("?")<0?"?":"&")+t};
UB=function(A,t){return t?"&"+A+"="+encodeURIComponent(t):""};
okq=function(){try{var A,t;return!!((A=window)==null?0:(t=A.top)==null?0:t.location.href)&&!1}catch(f){return!0}};
_.ee=function(A){A&&typeof A.dispose=="function"&&A.dispose()};
_.G_=function(A){for(var t=0,f=arguments.length;t<f;++t){var X=arguments[t];_.ST(X)?_.G_.apply(null,X):_.ee(X)}};
S8l=function(){var A=dp5();A=A===void 0?"bevasrsg":A;return new Promise(function(t){var f=window===window.top?window:okq()?window:window.top,X=f[A],Q;((Q=X)==null?0:Q.bevasrs)?t(new lI(X.bevasrs)):(X||(X={},X=(X.nqfbel=[],X),f[A]=X),X.nqfbel.push(function(q){t(new lI(q))}))})};
$pu=function(A){var t={c:A.yj,e:A.cJj,mc:A.oe6,me:A.tjY};A.kO&&(t.co={c:A.kO.eRj,a:A.kO.jdW,s:A.kO.dK0});return t};
Hau=function(A){var t,f,X={yj:A.c,cJj:A.e,oe6:(t=A.mc)!=null?t:!1,tjY:(f=A.me)!=null?f:!1};A.co&&(X.kO={eRj:A.co.c,jdW:A.co.a,dK0:A.co.s});return X};
aks=function(A){return function(){var t;return _.l(function(f){if(f.nextAddress==1)return f.yield(A(),2);t=f.yieldResult;return f.return({f:function(){return t.h9s()},
c:function(X){return t.so6(X)},
m:function(X){return t.hJ(Hau(X))},
mws:function(X){return t.dlj(Hau(X))}})})}};
Khq=function(A,t){var f=dp5();f=f===void 0?"bevasrsg":f;t={s:function(q){var e;return A.snapshot(Object.assign({},q.c&&{yj:q.c},q.s&&{joa:q.s},{ivB:(e=q.p)!=null?e:!0}))},
e:function(q){var e;return void((e=A.wPF)==null?void 0:e.call(A,q))},
c:function(q,e){return A.yvq(q,e)},
p:A.mLg,l:function(){return A.uY2()},
wpc:t?aks(t):void 0};var X=window===window.top?window:okq()?window:window.top,Q=X[f];if(Q){Q.bevasrs=t;if(Q.nqfbel!==void 0)for(f=_.U(Q.nqfbel),X=f.next();!X.done;X=f.next())X=X.value,X(t);Q.nqfbel=void 0}else Q={},Q=(Q.bevasrs=t,Q.nqfbel=void 0,Q),X[f]=Q};
w55=function(A){var t=t===void 0?51:t;var f=[];_.Nc(A,gkx,6,_.uI()).forEach(function(X){_.Pf(X,2)<=t&&f.push(_.Pf(X,1))});
return f};
shp=function(A){var t=t===void 0?51:t;var f=[];_.Nc(A,gkx,6,_.uI()).forEach(function(X){_.Pf(X,2)>t&&f.push(_.Pf(X,1))});
return f};
kwx=function(A){A.then(function(){},function(){})};
T_=function(A){return{fieldType:1,fieldName:A}};
iI=function(A){return{fieldType:2,fieldName:A}};
_.OB=function(A){return{fieldType:3,fieldName:A}};
r8g=function(){function A(){Q[0]=1732584193;Q[1]=4023233417;Q[2]=2562383102;Q[3]=271733878;Q[4]=3285377520;T=z=0}
function t(O){for(var c=e,B=0;B<64;B+=4)c[B/4]=O[B]<<24|O[B+1]<<16|O[B+2]<<8|O[B+3];for(B=16;B<80;B++)O=c[B-3]^c[B-8]^c[B-14]^c[B-16],c[B]=(O<<1|O>>>31)&4294967295;O=Q[0];var h=Q[1],W=Q[2],L=Q[3],E=Q[4];for(B=0;B<80;B++){if(B<40)if(B<20){var D=L^h&(W^L);var S=1518500249}else D=h^W^L,S=1859775393;else B<60?(D=h&W|L&(h|W),S=2400959708):(D=h^W^L,S=3395469782);D=((O<<5|O>>>27)&4294967295)+D+E+S+c[B]&4294967295;E=L;L=W;W=(h<<30|h>>>2)&4294967295;h=O;O=D}Q[0]=Q[0]+O&4294967295;Q[1]=Q[1]+h&4294967295;Q[2]=
Q[2]+W&4294967295;Q[3]=Q[3]+L&4294967295;Q[4]=Q[4]+E&4294967295}
function f(O,c){if(typeof O==="string"){O=unescape(encodeURIComponent(O));for(var B=[],h=0,W=O.length;h<W;++h)B.push(O.charCodeAt(h));O=B}c||(c=O.length);B=0;if(z==0)for(;B+64<c;)t(O.slice(B,B+64)),B+=64,T+=64;for(;B<c;)if(q[z++]=O[B++],T++,z==64)for(z=0,t(q);B+64<c;)t(O.slice(B,B+64)),B+=64,T+=64}
function X(){var O=[],c=T*8;z<56?f(G,56-z):f(G,64-(z-56));for(var B=63;B>=56;B--)q[B]=c&255,c>>>=8;t(q);for(B=c=0;B<5;B++)for(var h=24;h>=0;h-=8)O[c++]=Q[B]>>h&255;return O}
for(var Q=[],q=[],e=[],G=[128],N=1;N<64;++N)G[N]=0;var z,T;A();return{reset:A,update:f,digest:X,digestString:function(){for(var O=X(),c="",B=0;B<O.length;B++)c+="0123456789ABCDEF".charAt(Math.floor(O[B]/16))+"0123456789ABCDEF".charAt(O[B]%16);return c}}};
q0z=function(A,t){t=t===void 0?Aeg:t;if(!tJ5){var f;A=(f=A.navigator)==null?void 0:f.userAgentData;if(!A||typeof A.getHighEntropyValues!=="function"||A.brands&&typeof A.brands.map!=="function")return Promise.reject(Error("ua"));fUz((A.brands||[]).map(function(Q){var q=new Xxg;q=_.Dg(q,1,Q.brand);return _.Dg(q,2,Q.version)}));
typeof A.mobile==="boolean"&&_.cf(Qjp,2,A.mobile);tJ5=A.getHighEntropyValues(t)}var X=new Set(t);return tJ5.then(function(Q){var q=Qjp.clone();X.has("platform")&&_.Dg(q,3,Q.platform);X.has("platformVersion")&&_.Dg(q,4,Q.platformVersion);X.has("architecture")&&_.Dg(q,5,Q.architecture);X.has("model")&&_.Dg(q,6,Q.model);X.has("uaFullVersion")&&_.Dg(q,7,Q.uaFullVersion);return q.serialize()}).catch(function(){return Qjp.serialize()})};
Bf=function(A,t,f,X){this.initialValue_=A;this.maxValue_=t;this.currBaseValue_=this.currValue_=A;this.randomFactor_=f||0;this.backoffFactor_=X||2};
Mc=function(A){this.src=A;this.listeners={};this.typeCount_=0};
G7T=function(){for(var A;A=Jex.remove();){try{A.fn.call(A.scope)}catch(t){Q5(t)}UG0.put(A)}eTb=!1};
_.lUs=function(A){switch(A){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}};
Ni5=function(A){switch(A){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""}};
_.u_g=function(){};
C2x=function(A,t,f,X){A=zT5(P2g(Tiq(new _.CA(1828,"0"),A),new ikp)).disableWithCredentials();t.length&&OkT(A,cez(new Bis,t));X!==void 0&&(A.destinationUrl=X);var Q=new MJl(1828,"","",!1,"",A.build());_.hV(Q,A);var q=new m7({flush:function(e){try{Q.flush(e)}catch(G){f(G)}}});
q.addOnDisposeCallback(function(){setTimeout(function(){try{q.snapshotAndFlush()}finally{Q.dispose()}})});
q.invocationLimit=1E5;q.flushInterval=3E4;q.JSC$9870_flushTimer.setInterval(3E4);return q};
bI=function(){var A,t,f;return(f=(A=globalThis.performance)==null?void 0:(t=A.now)==null?void 0:t.call(A))!=null?f:Date.now()};
mGp=function(A,t){if(A.disable)return new hT5;t=t?w55(t):[];A={qZ:A.qZ,sEj:A.hnV,kQ4:A.hrV,destinationUrl:A.destinationUrl,uSh:A.uSh,khq:A.khq};t=t===void 0?[]:t;return new RTb(A,t)};
bkb=function(A){if(!A)return null;A=_.Wf(A,2);return A===null||A===void 0?null:wW(A)};
_.Wy5=function(A){if(!A)return null;A=_.Wf(A,4);return A===null||A===void 0?null:_.pb(A)};
Lyb=function(A,t){return t?yeb(t):A?vjx(A):Promise.resolve()};
yeb=function(A){return new Promise(function(t,f){var X=_.yT("SCRIPT"),Q=_.Wy5(A);_.UV(X,Q);X.onload=function(){_.vf(X);t()};
X.onerror=function(){_.vf(X);f(Error("Fa"))};
(LA("HEAD")[0]||document.documentElement).appendChild(X)})};
vjx=function(A){return new Promise(function(t){var f=_.yT("SCRIPT");if(A){var X=_.Wf(A,6);X=X===null||X===void 0?null:_.QP(X)}else X=null;_.Jt(f,X);(LA("HEAD")[0]||document.documentElement).appendChild(f);_.vf(f);t()})};
pA=function(A,t,f){var X,Q=new Promise(function(q){X=setTimeout(q,t)});
return Promise.race([A.finally(function(){return void clearTimeout(X)}),
Q.then(f)])};
pxl=function(A,t){try{return globalThis.sessionStorage.setItem(A,t),!0}catch(f){return!1}};
Ejp=function(A,t,f,X){t=t===void 0?0:t;f=f===void 0?A.length:f;var Q=0;for(X&&(Q=Ejp(X));t<f;t++)X=typeof A==="string"?A.charCodeAt(t):A[t],Q=njx(31,Q)+X|0;return Q};
DG5=function(A,t){return[Ejp(A,0,A.length>>1,t),Ejp(A,A.length>>1)]};
Fyb=function(A){var t=_.U(DG5(A,EB));A=t.next().value;t=t.next().value;return A.toString(16)+t.toString(16)};
IUx=function(A,t){var f=DG5(t);A=new Uint32Array(A.buffer);t=A[0];var X=_.U(f);f=X.next().value;X=X.next().value;for(var Q=1;Q<A.length;Q+=2){for(var q=t,e=Q,G=f,N=X,z=0;z<22;z++)e=e>>>8|e<<24,e+=q|0,e^=G+38293,q=q<<3|q>>>29,q^=e,N=N>>>8|N<<24,N+=G|0,N^=z+38293,G=G<<3|G>>>29,G^=N;q=[q,e];A[Q]^=q[0];Q+1<A.length&&(A[Q+1]^=q[1])}};
xG5=function(A,t,f,X,Q){var q=(4-(EB.length+f.length)%4)%4,e=new Uint8Array(4+q+EB.length+4+f.length),G=new DataView(e.buffer),N=0;G.setUint32(N,Math.random()*4294967295);N=N+4+q;e.set(EB,N);N+=EB.length;G.setUint32(N,Q);e.set(f,N+4);IUx(e,X);return A.insert(t,function(z){return void globalThis.sessionStorage.removeItem(z)})?pxl(t,_.E2(e))?"s":"t":"i"};
jju=function(A,t){var f=globalThis.sessionStorage.getItem(A);if(!f)return["m"];try{var X=_.sx(f);IUx(X,t)}catch(Q){return globalThis.sessionStorage.removeItem(A),["c"]}for(t=4;t<7&&X[t]===0;)t++;for(f=0;f<EB.length;f++)if(X[t++]!==EB[f])return globalThis.sessionStorage.removeItem(A),["d"];f=(new DataView(X.buffer)).getUint32(t);return Math.floor(Date.now()/1E3)>=f?(globalThis.sessionStorage.removeItem(A),["e"]):["a",new Uint8Array(X.buffer,t+4)]};
Y0T=function(A){return globalThis.TextEncoder?(new TextEncoder).encode(A):_.nA(A)};
VJl=function(A){var t=A,f;return function(){if(t){var X=t;t=void 0;f=X.apply(this,arguments)}return f}};
ojx=function(A){return Ip(function(t){if(t instanceof A)return!0;var f,X,Q=t==null?void 0:(f=t.ownerDocument)==null?void 0:(X=f.defaultView)==null?void 0:X[A.name];return Zkz(Q)&&t instanceof Q})};
_.Iy=function(A,t,f){_.DA.call(this);this.JSC$10084_listener_=A;this.JSC$10084_interval_=t||0;this.handler_=f;this.callback_=(0,_.F1)(this.JSC$10086_doAction_,this)};
_.xC=function(A){A=dGg(A);return _.pb(A)};
dGg=function(A){return A===null?"null":A===void 0?"undefined":A};
$Gx=function(A){if(A&&A.focus)if(A!==document.activeElement)A.focus();else return S0x(function(){return _.l(function(t){document.activeElement&&document.activeElement.blur();return t.return(S0x(function(){A.focus()}))})})};
_.Hk0=function(A){var t=t===void 0?5:t;setTimeout(function(){var f;return _.l(function(X){X.nextAddress==1&&(f=document.activeElement);if(X.nextAddress!=5)return(document.activeElement===f||document.activeElement===document.body)&&t>=0&&A?X.yield($Gx(A),5):X.jumpTo(0);if(document.activeElement===A)return X.return();A=A.parentElement;--t;return X.jumpTo(2)})},15)};
S0x=function(A){return new Promise(function(t){requestAnimationFrame(function(){t(A())})})};
Kys=function(A){if(_.je)A(_.je);else{var t;((t=aUx)!=null?t:aUx=[]).push(A)}};
ZA=function(){!_.je&&_.VT&&_.gjx(_.VT());return _.je};
_.gjx=function(A){_.je=A;var t;(t=aUx)==null||t.forEach(Kys);aUx=void 0};
_.oy=function(A){_.je&&_.je.beforeLoadModuleCode(A)};
_.dw=function(){_.je&&_.je.JSC$11145_setLoaded()};
Se=function(A){return Db5(A)?Number(A):String(A)};
wxp=function(A){this.action=A;this.wfv=!1};
sj5=function(A,t){wxp.call(this,"set-drive-options");this.appId=A;this.appOrigin=t};
k7s=function(A){wxp.call(this,"visibility");this.visible=A};
re5=function(A,t,f){$C.call(this,A,t,f)};
Aqx=function(A){Hf.call(this,A)};
tCb=function(A){A=A&&A.getWindow()||window;return A.gadgets&&A.gadgets.rpc};
XDl=function(A,t){var f=t&&t.getWindow()||window;if(tCb(t))A();else if(fsx)fsx.push(A);else var X=fsx=[A],Q=f.setInterval(function(){if(tCb(t)){f.clearInterval(Q);for(var q=0;q<X.length;q++)X[q]();fsx=null}},100)};
qJq=function(A,t){var f=new ay(A);_.hV(t,f);var X={passive:!1};t.listen(f,"mousewheel",function(Q){return void Q65(A,Q)},X).listen(A,"scroll",function(Q){return void Q65(A,Q)},X)};
Q65=function(A,t){var f;a:{for(f=t.target;f;){if(f.nodeType==1){var X=_.KA(f,"overflowY");if(X=="auto"||X=="scroll")break a}f=f.parentNode}f=null}if(!f||!_.gw(A,f)||f.scrollHeight==f.clientHeight||t.deltaY>0&&Math.abs(f.scrollTop-(f.scrollHeight-f.clientHeight))<=1||t.deltaY<0&&f.scrollTop==0)t.preventDefault(),t.stopPropagation()};
XN=function(A,t,f,X,Q,q,e,G,N){G=G===void 0?!1:G;N=N===void 0?!1:N;$C.call(this,void 0,void 0,void 0);$C.call(this,q?q+" picker modal-dialog":"picker modal-dialog",!0,f);_.ww(A,"protocol");this.iframeManager_=new Jqp;this.targetId_=sB();this.rpcToken_=sB();A=_.kC(A);_.rw(A,"hostId");this.useGapi_=!N;G&&_.AZ(A,"fv2","true");this.setUrl(A.toString());this.preferredDialogWidth_=X;this.preferredDialogHeight_=Q;X!==void 0||Q!==void 0?X=!0:(X=_.rw(_.kC(A.toString()),"hostId"),Uqb||(Uqb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
X=!Uqb.has(X));this.autoSizeDialog_=X;this.JSC$10274_gadgetsDomHelper_=e||this.JSC$10225_dom_;t&&(e=this.JSC$10274_gadgetsDomHelper_,t=_.rw(_.kC(this.JSC$10276_url_),"grugl")=="true"?eGu:Gm5,tCb(e)||(e=e||nn(document),X=e.createElement("SCRIPT"),_.UV(X,t),X.type="text/javascript",e.JSC$9409_document_.body.appendChild(X)));A=A.toString();t=null;e=A.indexOf("/picker?");e>-1?t=A.substring(0,e+8-1):Jb(A,"/picker")&&(t=A);t&&this.setRelayUrl(t+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(A=this.buttons_,A.JSC$10259_element_=this.buttonEl_,A.render()):_.eO(this.buttonEl_,lsg),_.tZ(this.buttonEl_,!!this.buttons_))};
_.Pnx=function(A){var t=t===void 0?Nbz:t;var f=_.gs(A),X=function(q){q=_.U(q);q.next();q=Qq(q);return t(f,q)},Q=function(q){var e=_.U(q);
q=e.next().value;e=Qq(e);return A.apply(q,e)};
return function(){var q=_.Hu.apply(0,arguments),e=this||_.Xb,G=ui5.get(e);G||(G={},ui5.set(e,G));return zGp(G,[this].concat(_.YV(q)),Q,X)}};
q4=function(A){var t={};A=A.replace(/\r/g,"").split("\n");for(var f=0;f<A.length;f++){var X=A[f],Q=X.indexOf(":");Q<0||(t[X.substring(0,Q)]=X.substring(Q+2,X.length))}return t};
Tbl=function(A,t,f){f=f===void 0?function(){}:f;
return A?t():f()};
_.OUb=function(A){var t;return((t=iUg.documentOverride)!=null?t:A).__wizdispatcher};
_.UH=function(A){var t=JZ;JZ=A;return t};
_.Bbb=function(A){return A===cqu||(A==null?void 0:A.name)==="\u0275NotFound"};
_.eG=function(A,t){var f;if((f=A)==null?0:f.isDisposed)throw Error("jb`"+String(A.debugName));for(;A!==void 0;){f=A;if(f.retrieve)return f.retrieve(t,{optional:!0});A=A.parent}return cqu};
Gc=function(A){return{"\u0275prov":{providedIn:"root",token:Symbol(A),factory:void 0,value:void 0}}};
_.MCz=function(A){var t=JZ;if(!t){switch(A===void 0?3:A){case 0:A=Error("ib");break;case 1:A=Error("kb");break;case 2:A=Error("lb");break;default:A=Error("mb")}throw A;}return t};
Cnl=function(A){var t=_.UH(A);A={};return A[Symbol.dispose]=function(){_.UH(t)},A};
hGx=function(A,t){A.disposables||(A.disposables=[]);A.disposables.push(t)};
lx=function(A){var t=JZ;t&&!t.isDisposed&&(hGx(t,A),A.parent=t)};
mqq=function(A){if(A.disposables){for(var t=_.U(A.disposables),f=t.next();!f.done;f=t.next())f=f.value,typeof f==="function"?f():RGT(f);A.disposables.length=0}};
RGT=function(A){if(!A.isDisposed){A.isDisposed=!0;var t;(t=A[Symbol.dispose])==null||t.call(A);delete A.parent;mqq(A)}};
Dq0=function(A){var t={retrieve:function(f){switch(f.\u0275prov.token){case bUT.\u0275prov.token:var X=A.asyncDeps;break;case _.WZx.\u0275prov.token:X=A.rootElement;break;case yqx.\u0275prov.token:X=A.modelRootElement;break;case vt0.\u0275prov.token:X=A.appContext;break;case LZz.\u0275prov.token:X=A.rendererData;break;case pD5.\u0275prov.token:X=A.injectingConstructor;break;case Et5.\u0275prov.token:X=A.dispatcher}if(X)f=X;else a:{for(X=t.parent;X;){var Q=X;if(Q.retrieve){f=Q.retrieve(f);break a}X=
X.parent}X=f.\u0275prov.token;Q=ntq[X];Q!==void 0?f=Q:(Q=f.\u0275prov.providedIn,f.\u0275prov.factory?(f=f.\u0275prov.factory(),X&&Q==="root"&&(ntq[X]=f)):f=cqu)}return f}};
lx(t);return t};
FZx=function(){var A=_.MCz(1),t=_.eG(A,vt0);if(!_.Bbb(t))return t;A=_.eG(A,Et5);if(!_.Bbb(A))return A.getOptionalAppContext()};
Iss=function(A){if(typeof document!=="undefined"&&document&&document.getElementById&&(A=document.getElementById(A))){var t=A.tagName.toUpperCase();if(t=="SCRIPT"||t=="LINK")return A}return null};
j6u=function(A,t){if((A=A===void 0?"":A)&&t)throw Error("sb");var f="";var X=_.Xb._F_jsUrl;(A=t||Iss(A))&&(f=A.src?A.src:A.getAttribute("href"));if(X&&f){if(X!=f)throw Error("tb`"+X+"`"+f);f=X}else f=X||f;if(!xqb(f))throw Error("ub");return f};
otg=function(){if(!YJz){YJz=!0;try{var A=j6u(_.Xb._F_jsUrl?"":"base-js")}catch(X){return}var t=VCq(ZUs(A)),f=Object.keys(t);f.length!==0&&Kys(function(X){for(var Q=_.U(f),q=Q.next();!q.done;q=Q.next()){q=q.value;for(var e=_.U(Object.keys(t[q])),G=e.next();!G.done;G=e.next())X.addExtraEdge(q,G.value)}})}};
SJp=function(){var A=Object.assign({},dqg);Object.getOwnPropertyNames(dqg).forEach(function(t){N4[t]!==void 0&&(A[t]=N4[t])});
return A};
$qT=function(A,t){if(N4.enablePerformanceTiming){var f,X;(X=(f=performance).mark)==null||X.call(f,A+"Start__"+t)}};
HUb=function(A,t){if(N4.enablePerformanceTiming){var f,X;(X=(f=performance).measure)==null||X.call(f,A+"__"+t,A+"Start__"+t)}};
asp=function(A,t,f){var X;return A&&t?A+"__"+t:(X=A!=null?A:t)!=null?X:f};
gt5=function(A,t){var f=Object.create(KZx);f.debugName=t;!JZ||lx(f);t=_.UH(f);try{A(f)}finally{_.UH(t)}return function(){return void RGT(f)}};
s6q=function(A){return ux(A)&&wDl in A};
km5=function(A,t){return Object.is(A,t)};
Pm=function(A){var t=zc;zc=A;return t};
AOx=function(A){if(Tc)throw Error("Z");if(zc!==null){var t=zc.producersTail;if(t===void 0||t.producer!==A){var f=void 0,X=zc.recomputing;if(X&&(f=t!==void 0?t.nextProducer:zc.producers,f!==void 0&&f.producer===A)){zc.producersTail=f;f.lastReadVersion=A.version;return}var Q=A.consumersTail,q;if(!(q=Q===void 0||Q.consumer!==zc)){if(X){a:{q=zc;X=q.producersTail;if(X!==void 0){q=q.producers;do{if(q===Q){X=!0;break a}if(q===X)break;q=q.nextProducer}while(q!==void 0)}X=!1}X=!X}q=X}q&&(X=ix(zc),f={producer:A,
consumer:zc,nextProducer:f,prevConsumer:Q,lastReadVersion:A.version,nextConsumer:void 0},zc.producersTail=f,t!==void 0?t.nextProducer=f:zc.producers=f,X&&rqp(A,f))}}};
cm=function(A){if(!ix(A)||A.dirty)if(A.dirty||A.lastCleanEpoch!==OH)(A.producerMustRecompute(A)||tYb(A))&&A.producerRecomputeValue(A),A.dirty=!1,A.lastCleanEpoch=OH};
f3x=function(A){if(A.consumers!==void 0){var t=Tc;Tc=!0;try{for(var f=A.consumers;f!==void 0;f=f.nextConsumer){var X=f.consumer;X.dirty||(A=void 0,X.dirty=!0,f3x(X),(A=X.consumerMarkedDirty)==null||A.call(X,X))}}finally{Tc=t}}};
XQu=function(){var A;return((A=zc)==null?void 0:A.consumerAllowSignalWrites)!==!1};
Qiq=function(A){A&&(A.producersTail=void 0,A.recomputing=!0);return Pm(A)};
JOx=function(A){A.recomputing=!1;var t=A.producersTail,f=t!==void 0?t.nextProducer:A.producers;if(f!==void 0){if(ix(A)){do f=qv0(f);while(f!==void 0)}t!==void 0?t.nextProducer=void 0:A.producers=void 0}};
tYb=function(A){for(A=A.producers;A!==void 0;A=A.nextProducer){var t=A.producer,f=A.lastReadVersion;if(f!==t.version)return!0;cm(t);if(f!==t.version)return!0}return!1};
rqp=function(A,t){var f=A.consumersTail,X=ix(A);f!==void 0?(t.nextConsumer=f.nextConsumer,f.nextConsumer=t):(t.nextConsumer=void 0,A.consumers=t);t.prevConsumer=f;A.consumersTail=t;if(!X)for(A=A.producers;A!==void 0;A=A.nextProducer)rqp(A.producer,A)};
qv0=function(A){var t=A.producer,f=A.nextProducer,X=A.nextConsumer,Q=A.prevConsumer;A.nextConsumer=void 0;A.prevConsumer=void 0;X!==void 0?X.prevConsumer=Q:t.consumersTail=Q;if(Q!==void 0)Q.nextConsumer=X;else if(t.consumers=X,!ix(t))for(A=t.producers;A!==void 0;)A=qv0(A);return f};
ix=function(A){return A.consumerIsAlwaysLive||A.consumers!==void 0};
eEl=function(A){var t=Object.create(UAb);t.computation=A;A=function(){cm(t);AOx(t);if(t.value===Bm)throw t.error;return t.value};
A[M4]=t;return A};
uOq=function(A,t){var f=Object.create(GOz);f.value=A;t!==void 0&&(f.equal=t);A=function(){AOx(f);return f.value};
A[M4]=f;return[A,function(X){return l3q(f,X)},
function(X){XQu()||NLg(f);l3q(f,X(f.value))}]};
l3q=function(A,t){XQu()||NLg(A);if(!A.equal(A.value,t)){A.value=t;A.version++;OH++;f3x(A);var f;(f=zEz)==null||f(A)}};
TLx=function(A,t,f){var X=Object.create(PXx);X.source=A;X.computation=t;f!=void 0&&(X.equal=f);A=function(){cm(X);AOx(X);if(X.value===Bm)throw X.error;return X.value};
A[M4]=X;return A};
_.CF=function(A){var t=Pm(null);try{return A()}finally{Pm(t)}};
_.hZ=function(A,t,f){f=f===void 0?"":f;A=uOq(A,t==null?void 0:t.equals);var X=A[0],Q=X[M4];Q.debugName=asp(t==null?void 0:t.debugName,f,"[signal]");if(!N4.enablePerformanceTiming)return A;var q=A[1],e=A[2];return[X,function(G){i4T(function(){return void q(G)},Q)},
function(G){i4T(function(){return void e(G)},Q)}]};
i4T=function(A,t){$qT("signalSet",t.debugName);try{A()}finally{HUb("signalSet",t.debugName)}};
cOx=function(A,t){var f=_.U(_.hZ(A,void 0,"cPpJzc"));A=f.next().value;f=f.next().value;A[O40]=f;A[Ro]=t;return A};
BLp=function(A){return!!A&&typeof A==="object"&&Object.getPrototypeOf(A)===Object.prototype};
MYx=function(A){return typeof A==="function"&&O40 in A&&typeof A[O40]==="function"};
CXb=function(A,t){Object.defineProperty(A,Ro,{get:function(){return t}})};
bx=function(A,t){if(m$(A)){var f=A.map(function(q){return bx(q,t)});
CXb(f,t);return f}if(BLp(A)){f={};A=_.U(Object.entries(A));for(var X=A.next();!X.done;X=A.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;f[X]=bx(Q,t)}CXb(f,t);return f}return cOx(A,t)};
hE5=function(A){if(m$(A))return A.map(function(Q){return hE5(Q)});
if(BLp(A)){var t={};A=_.U(Object.entries(A));for(var f=A.next();!f.done;f=A.next()){var X=_.U(f.value);f=X.next().value;X=X.next().value;t[f]=hE5(X)}return t}return MYx(A)?A():A};
mA5=function(){var A={height:0,width:0};if(!BLp(A))throw Error("Jb");var t=Symbol("Kb");return[bx(A,t),function(f,X){if(f[Ro]===t)if(typeof X==="function"){var Q=[].concat(_.YV(hE5(f)));X=X(Q)||Q;REb(f,[].concat(_.YV(X)))}else REb(f,X);else throw Error("Lb");}]};
REb=function(A,t){if(MYx(A))A[O40](t);else if(m$(A)&&m$(t))t=bx(t,A[Ro]),A.length=0,A.push.apply(A,_.YV(t));else if((BLp(A)||m$(A))&&(m$(t)||typeof t==="object"&&t!==null)){t=_.U(Object.entries(t));for(var f=t.next();!f.done;f=t.next()){var X=_.U(f.value);f=X.next().value;X=X.next().value;var Q=A,q=Q[f];Object.hasOwn(A,f)?REb(q,X):Q[f]=bx(X,A[Ro])}}else throw Error("Mb");};
b4g=function(A){return Object.create(Object.assign({},Wm,A))};
yOp=function(){var A;return(A=Wip)!=null?A:Wip=b4g({consumerAllowSignalWrites:!0})};
_.yq=function(A,t,f){f=f===void 0?"":f;A=eEl(A);var X=A[M4];X.debugName=asp(t==null?void 0:t.debugName,f,"[computed]");(t==null?void 0:t.equals)!=null&&(X.equal=t.equals);return A};
LF=function(A){var t=Pm(vBq);try{A()}finally{Pm(t)}};
pQ5=function(A,t,f){var X=LiT(A);pF={name:f?X+" ("+f+")":X,isReactive:A.componentType!==EH,parent:pF};A=t();pF=pF.parent;return A};
nF=function(){var A=pF;return A?A.isReactive:!1};
FN=function(A,t,f){var X=pF;t&&(pF=t);try{return f==null?A():A.call(f)}catch(q){A=q;DM(A,pF);if(A!==EB0){nB0=pF;t=[];for(f=JZ;f;){var Q=void 0;t.push((Q=f.debugName)!=null?Q:"[context]");Q=void 0;f=(Q=f.parent)!=null?Q:null}DAx=t.reverse()}EB0=A;throw A;}finally{pF=X}};
DM=function(A,t){try{var f=Fi5(t);if(f&&!A.componentStack&&(A.componentStack=f,N4.enableComponentStacksInErrorMessages)){var X=A.message+"\n\nComponent stack: "+f;A.stack&&(A.stack=A.stack.replace(A.message,X));A.message=X}}catch(Q){}};
Fi5=function(A){if(ux(A)&&A.name!==void 0&&A.isReactive!==void 0&&A.parent!==void 0||A===null){for(var t=0,f="";t<20&&A;)f+=A.name+" > ",A=A.parent,t++;A=f.slice(0,-3)}else if(N4.enableContextBasedComponentStacks){a:{for(A=A===void 0?JZ:A;A;){if(s6q(A))break a;t=void 0;A=(t=A.parent)!=null?t:null}A=null}A=A.getComponentStack().slice(0,20).join(" > ")}else A="";return A};
LiT=function(A){return A.debugName||A.name||"[component]"};
VYu=function(A){switch(A.onInitType){case I3s:xAb.schedule(A);break;case jiT:N4.enableQueueEffectAndOnInitInitialRuns?Yvg.enqueue(A):Yvg.schedule(A);break;default:_.ap(A.onInitType)}};
H4g=function(A){if(!A.isDisposed)switch(A.effectType){case Io:Z4u.schedule(A);break;case oBs:dAb.schedule(A);break;case Svp:N4.enableQueueEffectAndOnInitInitialRuns||A.hasRun?$Ag.enqueue(A):$Ag.schedule(A);break;default:_.ap(A.effectType)}};
gBs=function(){if(xf>0)N4.flushRenderEffectsDuringRender&&Z4u.flush();else{for(var A=_.U(a3x),t=A.next();!t.done;t=A.next())t.value.flush();Ki5()}};
Ki5=function(){_.l(function(A){if(A.nextAddress==1)return A.yield(Promise.resolve(),2);for(var t=_.U(wQs),f=t.next();!f.done;f=t.next())f.value.flush();_.LO(A)})};
kOl=function(A){Yf=!0;try{for(var t=_.U(A),f=t.next();!f.done;f=t.next()){for(var X=f.value,Q=[X],q=X;q.parent!==void 0;)q=q.parent,sis(q)&&A.has(q)&&Q.push(q);for(;Q.length>0;){var e=Q.pop();A.delete(e);e.run()}}}finally{Yf=!1}};
Vq=function(A){xf--;if(A){A=_.U(iVq);for(var t=A.next();!t.done;t=A.next())t.value.clear()}else xf>0||Yf&&!N4.flushRenderEffectsDuringRender||gBs()};
OVu=function(A,t,f){t=Object.create(t);A&&(t.effectFn=A);f&&(t.debugName=f);lx(t);t.componentStack=pF;return t};
_.ZM=function(A,t){A=OVu(A,c4T,t);H4g(A)};
_.oo=function(A,t){A=OVu(A,B$u,t);H4g(A)};
MUl=function(A){return A};
Cd5=function(A,t){function f(){return Q()}
var X=X===void 0?"":X;var Q=typeof A==="function"?TLx(A,MUl,t==null?void 0:t.equals):TLx(A.source,A.computation,t==null?void 0:t.equals);var q=Q[M4];q.debugName=asp(t==null?void 0:t.debugName,X,"[linkedSignal]");f[M4]=q;return[f,function(e){i4T(function(){cm(q);l3q(q,e);q.dirty=!1;q.lastCleanEpoch=OH},q)},
function(e){i4T(function(){cm(q);XQu()||NLg(q);l3q(q,e(q.value));q.dirty=!1;q.lastCleanEpoch=OH},q)}]};
_.dD=function(A){var t=JZ;if(t){var f=pF;hGx(t,function(){var X=Pm(yOp());try{FN(function(){return void A()},f)}catch(Q){throw N4.enableContextBasedComponentStacks&&DM(Q),Q;
}finally{Pm(X)}})}};
SG=function(A,t){var f={};(t===void 0||t)&&lx(f);t=_.UH(f);try{A(f)}finally{_.UH(t)}return function(){return void RGT(f)}};
_.$f=function(A){return typeof A==="function"?A():(A==null?0:A[hMl])?A.get():A};
RMz=function(A){if(JZ)throw Error("nb");SG(A,!1)};
Hm=function(A,t){A=_.UH(A);try{return _.CF(t)}finally{_.UH(A)}};
ao=function(A,t){var f=Fi5(nB0),X,Q;var q=(Q=(X=DAx)==null?void 0:X.slice())!=null?Q:[];t={componentStack:f,contextTrace:q,errorSeverity:3,featureFlags:SJp(),tagName:t};return[A,t]};
WEl=function(A,t,f){if(Object.hasOwnProperty.call(m9u,A)&&(A=m9u[A],Object.hasOwnProperty.call(A,t)&&(A=A[t],A instanceof Array))){for(var X=null,Q=!1,q=0,e=A.length;q<e;++q){var G=A[q],N=G.contingentAttribute;if(!N)return G.contract;X===null&&(X={});N=Object.hasOwnProperty.call(X,N)?X[N]:X[N]=f(N);if(N===G.requiredValue)return G.contract;N==null&&(Q=!0)}if(Q)return null}t=bVl[t];return typeof t==="number"?t:null};
LEs=function(A,t,f){var X=null;(A=y4q[A])&&(X=A[t]);return typeof X!=="number"&&((A=y4q["*"])&&(X=A[t]),typeof X!=="number")?!1:!0===vHz[X][String(f).toLowerCase()]};
EHb=function(A,t){t=WEl(A.toLowerCase(),t,function(){var X;(X=N4.handleError)==null||X.call.apply(X,[N4].concat(_.YV(ao(Error("Tb"),A.toLowerCase()))))});
if(t===null)return null;var f;return(f=p9u[t])!=null?f:null};
nHu=function(A,t,f){if(f===null||f===void 0)return f;t=t.toLowerCase();A=EHb(A,t);return A===null?f:A(t,f)};
D9x=function(){};
KF=function(A,t){for(;A.length>t;)A.pop()};
FEp=function(A){A=Array(A);KF(A,0);return A};
wD=function(A,t,f){if(f==null)A.removeAttribute(t);else{var X;(X=t.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":t.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?A.setAttributeNS(X,t,f):A.setAttribute(t,f)}};
I_x=function(A,t,f){A[t]=f};
jw5=function(A,t,f){A=A.style;if(typeof f==="string")A.cssText=f;else{A.cssText="";for(var X in f)if(x95.call(f,X)){t=A;var Q=X,q=f[X];Q.indexOf("-")>=0?t.setProperty(Q,q):t[Q]=q}}};
YIx=function(A,t,f){var X=typeof f;X==="object"||X==="function"?A[t]=f:wD(A,t,f)};
VU5=function(){var A=new D9x;A[sH.default]=YIx;A.style=jw5;return A};
ZVb=function(A,t,f,X){(X[t]||X[sH.default])(A,t,f)};
d9g=function(A,t,f){t=new oHp(t,f);return A.__incrementalDOMData=t};
kf=function(A,t){if(A.__incrementalDOMData)return A.__incrementalDOMData;var f=A.nodeType===1?A.localName:A.nodeName,X=A.nodeType===1?A.getAttribute("key"):null;t=d9g(A,f,A.nodeType===1?X||t:null);if(A.nodeType===1&&(A=A.attributes,f=A.length)){X=t._attrsArr||(t._attrsArr=FEp(f*2));for(var Q=0,q=0;Q<f;Q+=1,q+=2){var e=A[Q],G=e.value;X[q]=e.name;X[q+1]=G}}return t};
SIp=function(A,t,f,X,Q){return t==f&&X==Q};
$95=function(A){for(var t=t8,f=fa();f!==A;){var X=f.nextSibling;t.removeChild(f);XE.deleted.push(f);f=X}};
fa=function(){return Qz?Qz.nextSibling:t8.firstChild};
qp=function(){Qz=fa()};
KEb=function(A,t,f){qp();var X;a:{if(X=Qz){do{var Q=X,q=A,e=t,G=kf(Q,e);if(HVu(Q,q,G.nameOrCtor,e,G.key))break a}while(t&&(X=X.nextSibling))}X=null}X||(A==="#text"?(f=J8.createTextNode(""),d9g(f,"#text",null),A=f):(X=J8,Q=t8,typeof A==="function"?X=new A:X=(Q=A==="svg"?"http://www.w3.org/2000/svg":A==="math"?"http://www.w3.org/1998/Math/MathML":Q==null||kf(Q).nameOrCtor==="foreignObject"?null:Q.namespaceURI)?X.createElementNS(Q,A):X.createElement(A),d9g(X,A,t),A=X,f&&A.setAttribute("nonce",f)),XE.created.push(A),
X=A);f=X;if(f!==Qz){if(a_5.indexOf(f)>=0)for(A=t8,t=f.nextSibling,X=Qz;X!==null&&X!==f;)Q=X.nextSibling,A.insertBefore(X,t),X=Q;else t8.insertBefore(f,Qz);Qz=f}};
gHg=function(A,t,f){KEb(A,t,f);t8=Qz;Qz=null;return t8};
w95=function(){$95(null);Qz=t8;t8=t8.parentNode};
r4q=function(A,t){t=t===void 0?{}:t;var f=t.matches===void 0?SIp:t.matches;return function(X,Q,q){var e=XE,G=J8,N=a_5,z=U8,T=e2,O=Qz,c=t8,B=HVu;J8=X.ownerDocument;XE=new swl(X);HVu=f;U8=[];e2=[];Qz=null;var h=t8=X.parentNode,W,L=kUb.call(X);if((W=L.nodeType===11||L.nodeType===9?L.activeElement:null)&&X.contains(W)){for(L=[];W!==h;)L.push(W),W=W.parentNode||(h?W.host:null);h=L}else h=[];a_5=h;try{return A(X,Q,q)}finally{X=XE,Gw&&X.deleted.length>0&&Gw(X.deleted),J8=G,XE=e,HVu=B,U8=z,e2=T,Qz=O,t8=c,
a_5=N}}};
AWb=function(A,t,f,X){lk.push(ZVb);lk.push(A);lk.push(t);lk.push(f);lk.push(X)};
ffT=function(A,t,f){var X=e2;t=t._attrsArr||(t._attrsArr=FEp(X.length));for(var Q=!t.length||!1,q=0;q<X.length;q+=2){var e=X[q];if(Q)t[q]=e;else if(t[q]!==e)break;var G=X[q+1];if(Q||t[q+1]!==G)t[q+1]=G,AWb(A,e,G,f)}if(q<X.length||q<t.length){for(q=Q=q;q<t.length;q+=2)Np[t[q]]=t[q+1];for(q=Q;q<X.length;q+=2)Q=X[q],e=X[q+1],Np[Q]!==e&&AWb(A,Q,e,f),t[q]=Q,t[q+1]=e,delete Np[Q];KF(t,X.length);for(var N in Np)AWb(A,N,void 0,f),delete Np[N]}A=t05;t05=f=lk.length;for(N=A;N<f;N+=5)(0,lk[N])(lk[N+1],lk[N+
2],lk[N+3],lk[N+4]);t05=A;KF(lk,A);KF(X,0)};
XVx=function(A){KEb("#text",null);var t=Qz;var f=kf(t);if(f.text!==A){f=f.text=A;for(var X=1;X<arguments.length;X+=1)f=(0,arguments[X])(f);t.data!==f&&(t.data=f)}};
lfq=function(A,t,f){if(f===!1&&QWx.has(t))wD(A,t,null);else if(t!=="idomKey"&&t!=="skip"&&t!=="skipchildren"&&t!=="children"&&t!=="el")if(t.startsWith("on")){if(t[2]!==":")throw Error("Sb`"+t);if(f===void 0||f===null){var X;(X=N4.handleError)==null||X.call.apply(X,[N4].concat(_.YV(ao(Error("Xb`"+t),A.tagName))));A[t]=void 0}else{var Q=t.slice(3);X=nF();if(Q==="jsaction"){f=Array.isArray(f)?f:[f];f=_.U(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;if(typeof q!=="object"||q===null||typeof q.selfReg!==
"function")throw Error("$b`"+t);q.selfReg(0,A,X?_.dD:function(){})}}else{if(typeof f!=="object"||f===null)throw Error("Yb`"+t+"`"+typeof f);
if(typeof f.getFn!=="function")throw Error("Zb`"+t+"`"+Object.keys(f));if(f.selfReg)f.selfReg(0,A,Q,X?_.dD:function(){});
else if(X&&A["on"+Q]===void 0){var e=f.getFn(0);A.addEventListener(Q,e);_.dD(function(){return void A.removeEventListener(Q,e)})}else if(X||!qgx.includes(Q))A["on"+Q]=f.getFn(0)}}}else{if(t.startsWith("data-")&&typeof f==="string")try{f=JWl(f)}catch(G){f="zSoyz"}typeof f!=="function"||A._disposeEffects!=null?((X=t.startsWith("prop:"))&&(t=t.slice(5)),N4.enableAttributeSanitization&&(X&&UPp(A.tagName)||(f=nHu(A.tagName,t,f))),t==="style"?("function"==typeof _.uk&&f instanceof _.uk&&(f=f.toString()),
es5(A,t,f)):X?A[t]=f:GSx(A,t,f)):(A._signalProps||(A._signalProps=[]),A._signalValues||(A._signalValues=[]),A._signalProps.push(t))}};
N6x=function(A,t,f){f=(f===void 0?{}:f).isReactive;if(t==null?0:t.el){var X=t.el,Q;(Q=X.onRender)==null||Q.call(X,A);A._disposeRef||(A._disposeRef=function(){var q;(q=X.onUnmount)==null||q.call(X);delete A._disposeRef},f&&_.dD(function(){var q;
(q=A._disposeRef)==null||q.call(A)}))}};
UPp=function(A){return A.length>0&&A.includes("-")&&!uBb.includes(A.toLowerCase())};
zsx=function(A){return ux(A)&&zw in A};
Psx=function(A){return zsx(A)?A[zw].flattened:A};
T6x=function(A,t){var f=_.Hu.apply(2,arguments),X;t=(X=t)!=null?X:{};X={};return X.type=A,X.props=t,X.children=f,X[P5]=!0,X};
_.Tw=function(A){return A.children};
ik=function(A){var t=iP5!==T6x;iP5=A?OPq:T6x;return t};
_.O8=function(A){return _.Hp(A)?"nodeType"in A:!1};
c5=function(){return document.createTextNode("")};
B5=function(A){A=document.createTextNode(String(A));A._isSignalTextNode=!0;return A};
B6b=function(A){return A!=null&&A.contentKind===Mp||A instanceof gW||cW5(A)};
M0x=function(A){var t=document.createElement("div");if(cW5(A)&&bkb(A))_.eO(t,bkb(A));else if(A instanceof gW)_.eO(t,A);else if(A!=null&&A.contentKind===Mp){if(A.contentKind!==Mp)throw Error("Wb");A=wW(A.toString());_.eO(t,A)}A=_.U(t.childNodes);for(var f=A.next();!f.done;f=A.next())f.value._isSafeOrSanitizedHtmlNode=!0;return t};
Ca=function(A){A=typeof A;return A==="string"||A==="number"||A==="boolean"};
Cs0=function(A){return A instanceof Lb||xl(A)||A instanceof NW||"function"==typeof _.uk&&A instanceof _.uk};
hsx=function(A,t){var f=A.parentElement;if(!f)return t;f.replaceChild(t,A);return t};
Rsu=function(A,t){var f=A[0].parentElement;if(f)if(A[0].previousSibling||A[A.length-1].nextSibling){f.insertBefore(t,A[0]);for(var X=A.length-1;X>=0;X--)f.removeChild(A[X])}else f.textContent="",f.appendChild(t);return t};
mPq=function(A,t){if(A[0].parentElement)for(var f=A[0].parentElement,X=t.length,Q=A.length,q=X,e=0,G=0,N=A[Q-1].nextSibling,z=null;e<Q||G<q;)if(A[e]===t[G])e++,G++;else{for(;A[Q-1]===t[q-1];)Q--,q--;if(Q===e)for(var T=q<X?G?t[G-1].nextSibling:t[q-G]:N;G<q;){var O=t[G++];f.insertBefore(O,T)}else if(q===G)for(;e<Q;)T=A[e],z&&z.has(T)||f.removeChild(T),e++;else if(A[e]===t[q-1]&&t[G]===A[Q-1])T=A[--Q].nextSibling,f.insertBefore(t[G++],A[e++].nextSibling),f.insertBefore(t[--q],T),A[Q]=t[q];else{if(!z)for(z=
new Map,T=G;T<q;)z.set(t[T],T++);T=z.get(A[e]);if(T==null)f.removeChild(A[e]),e++;else if(G<T&&T<q){O=e;for(var c=1,B=void 0;++O<Q&&O<q&&(B=z.get(A[O]))!=null&&B===T+c;)c++;if(c>T-G)for(O=A[e];G<T;)f.insertBefore(t[G++],O);else f.replaceChild(t[G++],A[e++])}else e++}}return t};
Wjp=function(A){if(Array.isArray(A)){if(A.length>1)throw Error("jc`"+A.length+"`"+A.map(bP5).join(", "));A=A[0]}if(A==null)return null;if(!(A instanceof _.X3)){var t,f;if((t=window)==null?0:(f=t.trustedTypes)==null?0:f.isScript(A))throw Error("ic");if(String(A).trim().length===0)return null;throw Error("kc`"+bP5(A));}return A};
yWx=function(A,t){t=Wjp(t);t!==null&&_.Jt(A,t)};
vis=function(A){if(Array.isArray(A)){if(A.length>1)throw Error("lc`"+A.length+"`"+A.map(bP5).join(", "));A=A[0]}if(A==null)return null;if(!(A instanceof NW)){if(String(A).trim().length===0)return null;throw Error("mc`"+bP5(A));}return A};
LjT=function(A,t){t=vis(t);t!==null&&(A.textContent=OOg(t))};
bP5=function(A){return"("+typeof A+") "+(A!=null&&typeof A==="object"?A.constructor.name:typeof A)+" "+A};
pVx=function(){};
bk=function(A,t){t=t===void 0?{}:t;var f=Eip(),X=!0,Q,q=!!N4.legacyTriggerSoyRendererEvents;q&&(Q=FZx());_.ZM(function(){var e=!X&&t.isControlFlowComponent&&q,G=e?f[zw].flattened[0].parentElement:void 0;X=!1;_.Rh.setUp();t.isControlFlowComponent&&xf++;var N=f[0],z=f[zw].flattened,T=ik(!0);try{var O=A(),c=nig(N,O,f);Array.isArray(c)||(f[zw].flattened=[c]);var B=f[zw].flattened;if(z&&(!Array.isArray(z)||z.length!==0)){var h=Array.isArray(z)?z[0]:z,W=h[mh],L=h._disposeEffects;h._disposeEffects=void 0;
h=Array.isArray(B)?B[0]:B;h[mh]=W;h[mh]&&(h[mh].numNodes=h===B?1:B.length);h._disposeEffects=L}f[0]=c;t.isControlFlowComponent&&Vq(!1)}catch(E){throw t.isControlFlowComponent&&Vq(!0),E;}finally{ik(T),_.Rh.tearDown()}e&&(e=Q,e!=null||(e=_.OUb(document).getAppContext()),e.get(DPx).JSC$29619_getEventTarget().dispatchEvent(new Fj5(IfT,G,Mp)))},t.debugName);
return f};
nig=function(A,t,f){for(;typeof t==="function";)t=t();if(t!=null&&t[P5]){var X,Q,q;(q=N4.handleError)==null||q.call.apply(q,[N4].concat(_.YV(ao(Error("nc`"+((X=t.type)==null?void 0:X.TAG_NAME)),(Q=t.type)==null?void 0:Q.TAG_NAME))))}if(A==null)return t==null?c5():Ca(t)?B5(t):Cs0(t)?B5(t.toString()):_.O8(t)?t:t.length===0?c5():xPq(t,f);if(_.O8(A)){if(t==null)return hsx(A,c5());if(Ca(t))return jW5(A,t);if(Cs0(t))return jW5(A,t.toString());if(_.O8(t))return hsx(A,t);if(t.length===0)return hsx(A,c5());
t=xPq(t,f);mPq([A],f[zw].flattened);return t}A=W5(A);if(t==null)return Rsu(A,c5());if(Ca(t))return Rsu(A,B5(t));if(Cs0(t))return Rsu(A,B5(t.toString()));if(_.O8(t))return mPq(A,[t])[0];if(t.length===0)return Rsu(A,c5());t=xPq(t,f);mPq(A,f[zw].flattened);return t};
jW5=function(A,t){A.nodeType===Node.TEXT_NODE?A.textContent!==String(t)&&(A.textContent=String(t)):A=hsx(A,B5(t));return A};
W5=function(A,t,f){return Yg5(A,t!=null?t:[],f===void 0?!1:f)};
xPq=function(A,t){var f=W5(A,void 0,!0);if(f.length===0)return c5();t[zw].flattened=f;return A};
Yg5=function(A,t,f,X,Q){t=t===void 0?[]:t;f=f===void 0?!1:f;Q=Q===void 0?-1:Q;if(A==null)return t;if(A instanceof yz){var q=A.render();return Yg5(q,t,f,X,Q)}if(_.O8(t)&&t.nodeType===Node.ELEMENT_NODE)switch(t.tagName){case "SCRIPT":yWx(t,A);return;case "STYLE":LjT(t,A);return}Ca(A)&&(A=B5(A),X&&f&&(X[Q]=A));if(B6b(A)){f=M0x(A);f=Array.from(f.childNodes);f=_.U(f);for(q=f.next();!q.done;q=f.next())V0T(t,q.value);return t}Cs0(A)&&(A=B5(A.toString()),X&&f&&(X[Q]=A));if(_.O8(A))return V0T(t,A);if(Array.isArray(A)){for(q=
0;q<A.length;q++)Yg5(A[q],t,f,A,q);return t}if(typeof A==="function"){q=bk(function(){var G=A();return G!=null&&!Ca(G)&&B6b(G)?(G=M0x(G),Array.from(G.childNodes)):G},{debugName:"qmF2ne",
debugFn:A})[0];if(Array.isArray(q)){f=_.U(q);for(q=f.next();!q.done;q=f.next())V0T(t,q.value);return t}X&&f&&(X[Q]=q);return V0T(t,q)}if(A!=null&&A[P5]){X=A;Q=ik(!0);var e=iP5;try{q=e.apply(null,[X.type,X.props].concat(_.YV(X.children)))}finally{ik(Q)}return Yg5(q,t,f)}(e=N4.handleError)==null||e.call.apply(e,[N4].concat(_.YV(ao(Error("oc")))));return t};
Eip=function(A){var t={};t=Object.assign([],(t[zw]={flattened:[]},t));if(!A)return t;t[0]=xPq(A,t);return t};
V0T=function(A,t){Array.isArray(A)?A.push(t):A.appendChild(t);return A};
v5=function(A){if(!N4.enableLazyTsx)return A;if(Array.isArray(A)){for(var t=0;t<A.length;t++)A[t]=v5(A[t]);return A}return A instanceof yz?(A=A.render(),v5(A)):A};
oiu=function(A,t){var f,X,Q=LiT(A),q=function(B){X=B;B=ik(!0);var h=Pm(La);$qT("render",Q);try{f=v5(A(t))}finally{HUb("render",Q),Pm(h),ik(B)}};
q=N4.enableContextPerComponent?gt5(q,Q):SG(q,N4.alwaysTrackContexts||!!JZ);s6q(X);if(!t.renderedFromIdom){var e=_.UH(X);try{return ZP5(A,t,f),f}finally{_.UH(e)}}!zsx(f)&&Array.isArray(f)&&(f=Eip(f));var G=Psx(f);e=Array.isArray(G)?G[0]:G;var N=!1;if(e){var z,T=(z=t==null?void 0:t.idomKey)!=null?z:A;z=G!==e;e._disposeEffects=q;var O=e[mh]||{},c=zsx(f)?f:O.sourceDynamicRange;Object.assign(O,{key:T,numNodes:z?G.length:1,context:X,higherOrder:!!e[mh],sourceDynamicRange:c});e[mh]=O}else N=!0;(function(){var B=
_.UH(X);try{ZP5(A,t,G)}finally{_.UH(B)}})();
N&&q();return f};
dPu=function(A){var t={},f;for(f in A)t={prev$jscomp$24:void 0,next$jscomp$33:void 0},t.prev$jscomp$24=pa[f],t.next$jscomp$33=A[f],pa[f]=function(X){return function(){var Q=_.Hu.apply(0,arguments);X.prev$jscomp$24.apply(null,_.YV(Q));X.next$jscomp$33.apply(null,_.YV(Q))}}(t)};
Sgq=function(){if(nF())throw Error("pc");return E8};
$Ps=function(A,t){if(!A.__unmounted&&t){A.__unmounted=!0;try{A.didUnmount()}catch(Q){var f,X;(X=N4.handleError)==null||X.call.apply(X,[N4].concat(_.YV(ao(Q,(f=A.__type)==null?void 0:f.TAG_NAME))))}pa.didUnmount(A);A.el=null;t.__instance&&delete t.__instance}};
afg=function(A,t,f){A._signalProps!=null&&A._disposeEffects==null&&((f===void 0?0:f)?A._disposeEffects=SG(function(){return void HPz(A,t)},N4.alwaysTrackContexts||!!JZ):HPz(A,t))};
HPz=function(A,t){_.ZM(function(){for(var f=A._signalProps,X=A._signalValues,Q=0;Q<f.length;Q++){var q=f[Q],e=t[q]();X[Q]!==e&&(X[Q]=e,lfq(A,q,e))}},"e3YVbb")};
Kjl=function(A,t,f){var X,Q=[];A._disposeEffects=SG(function(){_.ZM(function(){var q=f();if(q===null||q===void 0)q="";if(Ca(q)||q===null)X!=null||(X=document.createTextNode("")),X.parentNode!==A&&(X._isSignalTextNode=!0,A.insertBefore(X,t)),X.textContent=String(q);else if(B6b(q)){for(var e=Q.length>0?Q[Q.length-1].nextSibling:t,G=_.U(Q),N=G.next();!N.done;N=G.next())A.removeChild(N.value);q=M0x(q);Q=Array.from(q.childNodes);q=_.U(Q);for(G=q.next();!G.done;G=q.next())A.insertBefore(G.value,e)}else throw N=
(G=(e=pF)==null?void 0:e.name)!=null?G:"unknown",Error("ec`"+N+"`"+typeof q);},"VvDgC")},N4.alwaysTrackContexts||!!JZ)};
sWz=function(A,t){var f=_.Hu.apply(2,arguments);t!=null||(t={});return!N4.enableLazyTsx||pF!=null&&!nF()?gig(A,t,f):new wVp(A,t,f)};
gig=function(A,t,f){if(A===_.Tw)return f;if(typeof A==="function")return pF&&!nF()&&(t.renderedFromIdom=!0),pQ5(A,function(){var q=kS5(A,t,f);if(q)return q;f.length>0&&(t.children=f.length===1?f[0]:f);if(A.componentType===EH){var e;gt5(function(){var G=t;if(A.componentType!==EH)e=!1;else{G||(G={});var N=new na(G,A),z=Pm(La);try{var T=N.render(G)}finally{Pm(z)}T instanceof HTMLElement?(T.__instance=N,N.el=T,N.__type=A,A.TAG_NAME=T.tagName.toLowerCase(),pa.didPatch(N),e=T):e=T}},A.name);
if(e)return e}return oiu(A,t)},t.debugInstance);
var X=rW5(A,t),Q;for(Q in t)lfq(X,Q,t[Q]);afg(X,t);W5(f,X);N6x(X,t,{isReactive:!0});AGb(X,t);return X};
rW5=function(A,t){A=(ta0.has(A.toLowerCase())?0:fTg.has(A.startsWith("svg:")?A.replace("svg:",""):A))?document.createElementNS("http://www.w3.org/2000/svg",A.startsWith("svg:")?A.replace("svg:",""):A):Xsl(A,t)||document.createElement(A);A[Qqx]=!0;return A};
q9x=function(A){if(A){var t;(t=A._disposeRef)==null||t.call(A);var f;(f=A._disposeEffects)==null||f.call(A);A.__instance&&A.__instance instanceof Dk&&(t=A.__instance,$Ps(t,A),t instanceof na&&t.disposeEffects());for(t=0;t<A.childNodes.length;t++)q9x(A.childNodes[t])}};
Uix=function(A){JGu.push(A)===1&&requestAnimationFrame(function(){setTimeout(function(){var t=[].concat(_.YV(JGu));JGu=[];t=_.U(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;try{for(var X=0;X<f.length;X++)q9x(f[X])}catch(Q){X=f=void 0,(X=(f=N4).handleError)==null||X.call.apply(X,[f].concat(_.YV(ao(Q))))}}})})};
_.u=function(A,t){return iP5.apply(null,[A,t].concat(_.YV(_.Hu.apply(2,arguments))))};
_.FE=function(A){return A};
_.Ih=function(A){return{isDefault:!0,children:A.children}};
_.P=function(A){var t=A.cond;if(t===void 0)return A.else&&A.else();var f=_.yq(function(){return!!t()},void 0,"JHVi8"),X=function(){var Q=t();
if(!Q){var q;(q=N4.handleError)==null||q.call.apply(q,[N4].concat(_.YV(ao(eZg.nonNullableCondIsNull()))))}return Q};
return bk(function(){var Q=f(),q;SG(function(){var e=Pm(La);try{q=v5(Q?A.then(X):A.else&&A.else())}finally{Pm(e)}},!0);
return q},{debugName:A.debugInstance,
debugFn:A.then,isControlFlowComponent:!0})};
Grx=function(A){return _.P(A)};
_.xk=function(A){return A.keyBy==="INDEX"?lT5(A):N25(A)};
u5g=function(A){A=_.U(A);for(var t=A.next();!t.done;t=A.next()){var f=void 0;(f=t.value)==null||f()}};
N25=function(A){var t=A.keyBy===void 0||A.keyBy==="REFERENCE",f=t?function(T){return T}:A.keyBy,X=[],Q=[],q=[],e=[],G=[],N=[],z=!0;
_.dD(function(){u5g(e)});
return bk(function(){var T=zZ5(A),O=T.length;if(O===0){if(X.length===0&&!z)return q;u5g(e);X=T;Q=[];for(T=0;T<X.length;T++)Q.push(f(X[T]));q=[];e=[];G=[];N=[];A.fallback&&(e[0]=PSq(function(){q[0]=v5(A.fallback())}));
z=!1;return q}for(var c=new T2s,B=X.length-1;B>=0;B--)c.push(Q[B],B);B=Array(O);for(var h=Array(O),W=Array(O),L=Array(O),E=Array(t?0:O),D={i$jscomp$450:0};D.i$jscomp$450<O;D={i$jscomp$450:D.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},D.i$jscomp$450++){D.item$jscomp$104=T[D.i$jscomp$450];D.key$jscomp$563=f(D.item$jscomp$104);var S=c.pop(D.key$jscomp$563);S!=null?(W[D.i$jscomp$450]=q[S],h[D.i$jscomp$450]=Q[S],B[D.i$jscomp$450]=e[S],L[D.i$jscomp$450]=G[S],t||(E[D.i$jscomp$450]=N[S]),LF(function(Z){return function(){L[Z.i$jscomp$450](Z.i$jscomp$450);
if(!t)E[Z.i$jscomp$450](Z.item$jscomp$104)}}(D)),delete e[S]):B[D.i$jscomp$450]=PSq(function(Z){return function(){var d=_.U(_.hZ(Z.i$jscomp$450,void 0,"Fqk1zd")),K=d.next().value;
d=d.next().value;L[Z.i$jscomp$450]=d;h[Z.i$jscomp$450]=Z.key$jscomp$563;if(t)W[Z.i$jscomp$450]=v5(A.children(Z.item$jscomp$104,K));else{var k=_.U(_.hZ(Z.item$jscomp$104,void 0,"GBj5de"));d=k.next().value;k=k.next().value;E[Z.i$jscomp$450]=k;W[Z.i$jscomp$450]=v5(A.children(d,K))}}}(D))}u5g(e);
X=T;Q=h;q=W;e=B;G=L;N=E;z=!1;return W},{debugName:A.debugInstance,
debugFn:A.each,isControlFlowComponent:!0})};
lT5=function(A){var t=[],f=[],X=[],Q=[],q=!1;_.dD(function(){for(var e=_.U(Q),G=e.next();!G.done;G=e.next())G=G.value,G()});
return bk(function(){var e=zZ5(A);q&&e.length>0&&(Q.pop()(),t.pop(),q=!1);for(var G=Array(e.length),N={i$jscomp$451:0};N.i$jscomp$451<e.length;N={i$jscomp$451:N.i$jscomp$451},N.i$jscomp$451++)if(N.i$jscomp$451<t.length)t[N.i$jscomp$451]!==e[N.i$jscomp$451]&&(LF(function(T){return function(){return void f[T.i$jscomp$451](e[T.i$jscomp$451])}}(N)),t[N.i$jscomp$451]=e[N.i$jscomp$451]),G[N.i$jscomp$451]=X[N.i$jscomp$451];
else{var z=PSq(function(T){return function(){t[T.i$jscomp$451]=e[T.i$jscomp$451];var O=_.U(_.hZ(e[T.i$jscomp$451],void 0,"JMMLmd")),c=O.next().value;O=O.next().value;f[T.i$jscomp$451]=O;G[T.i$jscomp$451]=v5(A.children(c,T.i$jscomp$451))}}(N));
Q[N.i$jscomp$451]=z}for(;t.length>e.length;)t.pop(),Q.pop()(),f.pop();e.length===0&&!q&&A.fallback&&(N=PSq(function(){G[0]=v5(A.fallback())}),Q[0]=N,q=!0);
return X=G},{debugName:A.debugInstance,
isControlFlowComponent:!0})};
zZ5=function(A){A=A.each();return Array.isArray(A)?A:Array.from(A)};
PSq=function(A){var t=JZ;return SG(function(f){var X=Pm(La);try{f.parent=t,A(f)}finally{Pm(X)}},!1)};
_.j2=function(A){var t=iG5(A),f=_.yq(function(){return OGu(t)},void 0,"F1PF4");
return bk(function(){var X=f(),Q;SG(function(){var q=Pm(La);try{Q=v5(X())}finally{Pm(q)}});
return Q},{debugName:A.debugInstance,
isControlFlowComponent:!0})};
iG5=function(A){A=A.children;return Array.isArray(A)?A:[A]};
cGx=function(A){var t=A.props;A=A.getChildren()[0];return t.when?{when:t.when,children:A}:{isDefault:!0,children:A}};
OGu=function(A){var t=function(){return null};
A=_.U(A);for(var f=A.next();!f.done;f=A.next())if(f=f.value,f!=null&&f[P5]&&(f=f.type===_.Ih?{isDefault:!0,children:f.children[0]}:{when:f.props.when,children:f.children[0]}),f instanceof yz&&(f=cGx(f)),f.isDefault)t=f.children;else if(f.when())return f.children;return t};
Max=function(A){var t=null,f,X={get value(){var q,e;(e=(q=Q).validateGetValue)==null||e.call(q);return Q.__value},set value(q){var e,G;(G=(e=Q).validateSetValue)==null||G.call(e,q);Q.__value=q;Q.__hasBeenSet=!0}},Q=(X.__value=null,X.__hasBeenSet=!1,X.__hasErrored=!1,X.onRender=function(q){if(f&&q!==f){f._disposeRef=void 0;var e;(e=t)==null||e()}f=q;t=A(q)||null},X.onUnmount=function(){var q;
(q=t)==null||q();t=Q.value=null},X[_.B25]=!0,X);
return Q};
Yk=function(A){return typeof A==="symbol"};
hZs=function(A){var t=Sgq();if(t==null)throw _.CS5.PRIMITIVE_INVALID_HOOK_CALL();var f=t.hookCounter++;t.hooks||(t.hooks=[]);var X=t.hooks;X[f]||(X[f]={key:A,host:t});if(A!==X[f].key){if(t.__type){var Q;A=(Q=t.__type)==null?void 0:Q.name}else A=t instanceof na?LiT(t.functionComponent):"<"+t.el.tagName.toLowerCase()+">";throw _.CS5.OUT_OF_ORDER_HOOK_CALL(A);}return X[f]};
RZb=function(A,t){return!A||A.length!==(t==null?void 0:t.length)||A.some(function(f,X){return f!==t[X]})};
mix=function(A,t){var f=hZs("onChange"),X=Sgq();RZb(f.deps,t)&&(f.deps=t,f.pendingEffect=A,X.__syncEffects||(X.__syncEffects=[]),X.__syncEffects.push(f))};
_.Vz=function(A,t,f){f!=null||(f={});f=f.appContext;var X=!!N4.legacyTriggerSoyRendererEvents;_.Rh.setUp();try{var Q=bG0(A,t,f);X&&(t=f,t!=null||(t=_.OUb(document).getAppContext()),t.get(DPx).JSC$29619_getEventTarget().dispatchEvent(new Fj5(Wxb,A,Mp)));_.Rh.log(A);return Q}finally{_.Rh.tearDown()}};
bG0=function(A,t,f){var X=FN(function(){var Q=Pm(La);try{return SG(function(){var q=_.OUb(_.Sn(A)),e;var G=Dq0({rootElement:{value:A},appContext:f||(q==null?void 0:(e=q.getOptionalAppContext)==null?void 0:e.call(q)),dispatcher:q});q=_.UH(G);G=ik(!0);xf++;try{W5(t(),A),Vq(!1)}catch(N){throw Vq(!0),N;}finally{ik(G),_.UH(q)}},!1)}catch(q){throw N4.enableContextBasedComponentStacks&&DM(q),q;
}finally{Pm(Q)}});
A[yG0]=!0;return function(){A.textContent="";X();A[yG0]=!1}};
_.Zk=function(A){if(sis(zc)){var t;(t=N4.handleError)==null||t.call.apply(t,[N4].concat(_.YV(ao(Error("dc")))))}var f=JZ,X=pF;VYu({onInitType:jiT,run:function(){if(f&&!f.isDisposed){var Q=_.UH(f);try{FN(function(){return void A()},X)}catch(q){throw N4.enableContextBasedComponentStacks&&DM(q),q;
}finally{_.UH(Q)}}}})};
vJ0=function(A,t){mix(function(){return _.CF(A)},t)};
_.oh=function(A){nF()?_.Zk(function(){_.CF(A)}):mix(function(){return _.CF(A)},[])};
pss=function(A){var t=[].concat(_.YV(A));A.length=0;A=_.U(t);for(t=A.next();!t.done;t=A.next()){t=t.value;Lxl(t);var f=t.pendingEffect;t.pendingEffect=null;if(f=f==null?void 0:f())t.pendingCleanup=f}};
Lxl=function(A){var t=A.pendingCleanup;A.pendingCleanup=null;t==null||t()};
EJx=function(A,t){if(nF())return A();var f=hZs("useMemoInternal");RZb(f.deps,t)&&(f.deps=t,f.value=A());return f.value};
nJb=function(A,t){return EJx(A,t)};
Diu=function(A){return EJx(function(){return{value:A}},[])};
_.d9=function(A,t){if(!A)return null;A=Object.keys(A);A=_.U(A);for(var f=A.next();!f.done;f=A.next()){f=f.value;var X=f.toLowerCase();if(X.indexOf(t,X.length-t.length)>-1)return f}return null};
_.H5=function(){var A=arguments,t=_.$k;A.length>1?t[A[0]]=A[1]:A.length===1&&Object.assign(t,A[0])};
_.ah=function(A,t){return A in _.$k?_.$k[A]:t};
_.Ka=function(A,t){return!!_.ah(A,t)};
Fxx=function(A){var t=_.$k.EXPERIMENT_FLAGS;return t?t[A]:void 0};
xix=function(A){ITg.forEach(function(t){return t(A)})};
_.r9=function(A){return A&&window.yterr?function(){try{return A.apply(this,arguments)}catch(t){_.g9(t)}}:A};
_.g9=function(A){var t=_.Ae("yt.logging.errors.log");t?t(A,"ERROR",void 0,void 0,void 0,void 0,void 0):(t=_.ah("ERRORS",[]),t.push([A,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.H5("ERRORS",t));xix(A)};
_.te=function(A,t,f,X,Q){var q=_.Ae("yt.logging.errors.log");q?q(A,"WARNING",t,f,X,void 0,Q):(q=_.ah("ERRORS",[]),q.push([A,"WARNING",t,f,X,void 0,Q]),_.H5("ERRORS",q))};
Y95=function(A,t){t=A.split(t);for(var f={},X=0,Q=t.length;X<Q;X++){var q=t[X].split("=");if(q.length===1&&q[0]||q.length===2)try{var e=jqp(q[0]||""),G=jqp(q[1]||"");if(e in f){var N=f[e];Array.isArray(N)?_.$q(N,G):f[e]=[N,G]}else f[e]=G}catch(c){var z=c,T=q[0],O=String(Y95);z.args=[{key:T,value:q[1],query:A,method:Vau===O?"unchanged":O}];ZGp.hasOwnProperty(T)||_.te(z)}}return f};
oJT=function(A){var t=[];_.VG.forEach(A,function(f,X){var Q=_.fk(X);f=Array.isArray(f)?f:[f];_.X_(f,function(q){q==""?t.push(Q):t.push(Q+"="+_.fk(q))})});
return t.join("&")};
_.Q$=function(A){A.charAt(0)==="?"&&(A=A.substring(1));return Y95(A,"&")};
_.qG=function(A){return A.indexOf("?")!==-1?(A=(A||"").split("#")[0],A=A.split("?",2),_.Q$(A.length>1?A[1]:A[0])):{}};
_.Je=function(A,t){return diT(A,t||{},!0)};
S9z=function(A,t){return diT(A,t||{},!1)};
diT=function(A,t,f){var X=A.split("#",2);A=X[0];X=X.length>1?"#"+X[1]:"";var Q=A.split("?",2);A=Q[0];Q=_.Q$(Q[1]||"");for(var q in t)if(f||!_.VG.containsKey(Q,q))Q[q]=t[q];return _.U0(A,Q)+X};
NG=function(A){if(!t)var t=window.location.href;var f=_.eJ(A)[1]||null,X=_.G7(A);return f&&X?l2(A,t):X?_.G7(t)===X&&(Number(_.eJ(t)[4]||null)||null)===(Number(_.eJ(A)[4]||null)||null):!0};
_.HGg=function(A){A=$iu(A);return A===null?!1:A[0]==="com"&&A[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
$iu=function(A){A=_.G7(A);return A!==null?A.split(".").reverse():null};
jqp=function(A){return A&&A.match(aTq)?A:u2(A)};
_.z7=function(A){return new KxT(A)};
_.Px=function(){gJx||(gJx=new wsb);return gJx};
krp=function(){var A=sqT;return function(){var t=_.Px();if(!t.resolve(_.z7(A))){var f={};t.addProvider((f.provide=A,f.useClass=A,f[T7]=void 0,f))}return t.resolve(A)}};
Alp=function(A){var t=_.i2,f,X;_.l(function(Q){f=_.Px();return(X=f.resolve(_.z7(t)))?(A(X),Q.return(Promise.resolve(X))):Q.return(f.resolve(new rGq(t)).then(function(q){A(q);return q}))})};
_.M=function(A){A=O0(A);return typeof A==="string"&&A==="false"?!1:!!A};
_.cx=function(A,t){A=O0(A);return A===void 0&&t!==void 0?t:Number(A||0)};
t5l=function(A){A=O0(A);return Array.isArray(A)?_.Zg(A,function(t){return Number(t||0)}):[Number(A||0)]};
_.Bx=function(A){A=O0(A);return A!==void 0?String(A):""};
_.MG=function(A){A=O0(A);return Array.isArray(A)?_.Zg(A,function(t){return String(t||"")}):[String(A||"")]};
fNq=function(){return _.ah("EXPERIMENTS_TOKEN","")};
O0=function(A){return _.ah("EXPERIMENT_FLAGS",{})[A]};
XtT=function(){for(var A=[],t=_.ah("EXPERIMENTS_FORCED_FLAGS",{}),f=_.U(Object.keys(t)),X=f.next();!X.done;X=f.next())X=X.value,A.push({key:X,value:String(t[X])});f=_.ah("EXPERIMENT_FLAGS",{});X=_.U(Object.keys(f));for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,Q.startsWith("force_")&&t[Q]===void 0&&A.push({key:Q,value:String(f[Q])});return A};
qOl=function(){if(!Q7q)return null;var A=Q7q();return"open"in A?A:null};
_.Jl0=function(A){switch(_.he(A)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.he=function(A){return A&&"status"in A?A.status:-1};
_.Rj=function(A,t){typeof A==="function"&&(A=_.r9(A));return window.setTimeout(A,t)};
_.my=function(A,t){typeof A==="function"&&(A=_.r9(A));return window.setInterval(A,t)};
_.b2=function(A){window.clearTimeout(A)};
e10=function(A){A=_.qG(A);for(var t=_.U(UJl),f=t.next();!f.done;f=t.next())if(A[f.value]!==void 0)return!0;return!1};
N05=function(A,t,f,X,Q,q,e,G,N){f=f===void 0?"GET":f;X=X===void 0?"":X;G=G===void 0?!1:G;var z=qOl();if(!z)return null;var T=function(){(z&&"readyState"in z?z.readyState:0)===4&&t&&_.r9(t)(z)};
"onloadend"in z?z.addEventListener("loadend",T,!1):z.onreadystatechange=T;_.M("debug_forward_web_query_parameters")&&(A=Gtl(A,window.location.search));z.open(f,A,!0);q&&(z.responseType=q);e&&(z.withCredentials=!0);f=f==="POST"&&(window.FormData===void 0||!(X instanceof FormData));if(Q=lNu(A,Q))for(var O in Q)z.setRequestHeader(O,Q[O]),"content-type"===O.toLowerCase()&&(f=!1);f&&z.setRequestHeader("Content-Type","application/x-www-form-urlencoded");N&&"onprogress"in z&&(z.onprogress=function(){N(z.responseText)});
if(G&&"setAttributionReporting"in XMLHttpRequest.prototype){A={eventSourceEligible:!0,triggerEligible:!1};try{z.setAttributionReporting(A)}catch(c){_.te(c)}}z.send(X);return z};
lNu=function(A,t){t=t===void 0?{}:t;var f=NG(A),X=_.ah("INNERTUBE_CLIENT_NAME"),Q=_.M("web_ajax_ignore_global_headers_if_set"),q;for(q in udp){var e=_.ah(udp[q]),G=q==="X-Goog-AuthUser"||q==="X-Goog-PageId";q!=="X-Goog-Visitor-Id"||e||(e=_.ah("VISITOR_DATA"));var N;if(!(N=!e)){if(!(N=f||(_.G7(A)?!1:!0))){N=A;var z;if(z=_.M("add_auth_headers_to_remarketing_google_dot_com_ping")&&q==="Authorization"&&(X==="TVHTML5"||X==="TVHTML5_UNPLUGGED"||X==="TVHTML5_SIMPLY"))z=$iu(N),z=z===null?!1:z[1]==="google"?
!0:z[2]==="google"?z[0]==="au"&&z[1]==="com"?!0:z[0]==="uk"&&z[1]==="co"?!0:!1:!1;z&&(N=_.Wx(N)||"",N=N.split("/"),N="/"+(N.length>1?N[1]:""),z=N==="/pagead");N=z?!0:!1}N=!N}N||Q&&t[q]!==void 0||X==="TVHTML5_UNPLUGGED"&&G||(t[q]=e)}"X-Goog-EOM-Visitor-Id"in t&&"X-Goog-Visitor-Id"in t&&delete t["X-Goog-Visitor-Id"];if(f||!_.G7(A))t["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(f||!_.G7(A)){try{var T=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(O){}T&&(t["X-YouTube-Time-Zone"]=
T)}document.location.hostname.endsWith("youtubeeducation.com")||!f&&_.G7(A)||(t["X-YouTube-Ad-Signals"]=oJT(z1g()));return t};
_.P0g=function(A,t){var f=_.G7(A);_.M("debug_handle_relative_url_for_query_forward_killswitch")||!f&&NG(A)&&(f=document.location.hostname);var X=_.Wx(A);X=(f=f&&(f.endsWith("youtube.com")||f.endsWith("youtube-nocookie.com")))&&X&&X.startsWith("/api/");if(!f||X)return A;var Q=_.Q$(t),q={};_.X_(UJl,function(e){Q[e]&&(q[e]=Q[e])});
return S9z(A,q)};
T0T=function(A,t){t.method="POST";t.postParams||(t.postParams={});return _.y$(A,t)};
if0=function(A,t){var f=_.ah("XSRF_FIELD_NAME"),X;t.headers&&(X=t.headers["Content-Type"]);return!t.excludeXsrf&&(!_.G7(A)||t.withCredentials||_.G7(A)===document.location.hostname)&&t.method==="POST"&&(!X||X==="application/x-www-form-urlencoded")&&!(t.postParams&&t.postParams[f])};
_.y$=function(A,t){var f=t.format||"JSON";A=Ofg(A,t);var X=cl5(A,t),Q=!1,q=B05(A,function(N){if(!Q){Q=!0;G&&_.b2(G);var z=_.Jl0(N),T=null,O=400<=N.status&&N.status<500,c=500<=N.status&&N.status<600;if(z||O||c)T=M5l(A,f,N,t.convertToSafeHtml);z&&(z=C0u(f,N,T));T=T||{};O=t.context||_.Xb;z?t.onSuccess&&t.onSuccess.call(O,N,T):t.onError&&t.onError.call(O,N,T);t.onFinish&&t.onFinish.call(O,N,T)}},t.method,X,t.headers,t.responseType,t.withCredentials,!1,t.onProgress);
X=t.timeout||0;if(t.onTimeout&&X>0){var e=t.onTimeout;var G=_.Rj(function(){Q||(Q=!0,q.abort(),_.b2(G),e.call(t.context||_.Xb,q))},X)}return q};
Ofg=function(A,t){t.includeDomain&&(A=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+A);var f=_.ah("XSRF_FIELD_NAME");if(t=t.urlParams)t[f]&&delete t[f],A=_.Je(A,t);return A};
cl5=function(A,t){var f=_.ah("XSRF_FIELD_NAME"),X=_.ah("XSRF_TOKEN"),Q=t.postBody||"",q=t.postParams;if0(A,t)&&(q||(q={}),q[f]=X);(_.M("ajax_parse_query_data_only_when_filled")&&q&&Object.keys(q).length>0||q)&&typeof Q==="string"&&(Q=_.Q$(Q),_.VG.extend(Q,q),Q=t.postBodyFormat&&t.postBodyFormat==="JSON"?JSON.stringify(Q):_.vx(Q));q=Q||q&&!_.VG.isEmpty(q);!h1u&&q&&t.method!=="POST"&&(h1u=!0,_.g9(Error("Kc")));return Q};
M5l=function(A,t,f,X){var Q=null;switch(t){case "JSON":try{var q=f.responseText}catch(e){throw X=Error("Lc"),X.params=A,_.te(X),e;}A=f.getResponseHeader("Content-Type")||"";q&&A.indexOf("json")>=0&&(q.substring(0,5)===")]}'\n"&&(q=q.substring(5)),Q=JSON.parse(q));break;case "XML":if(A=(A=f.responseXML)?R1p(A):null)Q={},_.X_(A.getElementsByTagName("*"),function(e){Q[e.tagName]=mJz(e)})}X&&bfu(Q);
return Q};
bfu=function(A){if(_.Hp(A))for(var t in A)t==="html_content"||Jb(t,"_html")?A[t]=wW(A[t]):bfu(A[t])};
C0u=function(A,t,f){if(t&&t.status===204)return!0;switch(A){case "JSON":return!!f;case "XML":return Number(f&&f.return_code)===0;case "RAW":return!0;default:return!!f}};
R1p=function(A){return A?(A=("responseXML"in A?A.responseXML:A).getElementsByTagName("root"))&&A.length>0?A[0]:null:null};
mJz=function(A){var t="";_.X_(A.childNodes,function(f){t+=f.nodeValue});
return t};
WP0=function(A){if(A.name==="JavaException")return!0;A=A.stack;return A.includes("chrome://")||A.includes("-extension://")||A.includes("webkit-masked-url://")};
ylb=function(A){if(!A.stack)return!0;var t=!A.stack.includes("\n");return t&&A.stack.includes("ErrorType: ")||t&&A.stack.includes("Anonymous function (Unknown script")||A.stack.toLowerCase()==="not available"||A.fileName==="user-script"||A.fileName.startsWith("user-script:")?!0:!1};
_.Lk=function(A){_.DA.call(this);this.JSC$10609_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!A};
LPp=function(A,t){var f=A.length,X=0,Q=function(){return A.charCodeAt(X++)};
do{var q=v7T(Q);if(q===Infinity)break;var e=q>>3;switch(q&7){case 0:q=v7T(Q);if(e===t)return q;break;case 1:if(e===t)return;X+=8;break;case 2:q=v7T(Q);if(e===t)return A.substr(X,q);X+=q;break;case 5:if(e===t)return;X+=4;break;default:return}}while(X<f)};
v7T=function(A){var t=A(),f=t&127;if(t<128)return f;t=A();f|=(t&127)<<7;if(t<128)return f;t=A();f|=(t&127)<<14;if(t<128)return f;t=A();return t<128?f|(t&127)<<21:Infinity};
E70=function(A,t,f,X){if(A)if(Array.isArray(A)){var Q=X;for(X=0;X<A.length&&!(A[X]&&(Q+=ptq(X,A[X],t,f),Q>500));X++);X=Q}else if(typeof A==="object")for(Q in A){if(A[Q]){var q=Q;var e=A[Q],G=t,N=f;q=typeof e!=="string"||q!=="clickTrackingParams"&&q!=="trackingParams"?0:(e=LPp(atob(e.replace(/-/g,"+").replace(/_/g,"/")),2))?ptq(q+".ve",e,G,N):0;X+=q;X+=ptq(Q,A[Q],t,f);if(X>500)break}}else f[t]=pk(A),X+=f[t].length;else f[t]=pk(A),X+=f[t].length;return X};
ptq=function(A,t,f,X){f+="."+A;A=pk(t);X[f]=A;return f.length+A.length};
pk=function(A){try{return(typeof A==="string"?A:String(JSON.stringify(A))).substr(0,500)}catch(t){return"unable to serialize "+typeof A+" ("+t.message+")"}};
n75=function(A){switch(A){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}};
_.nk=function(A,t,f,X,Q){_.E0.set(A,t,{maxAge:f,path:"/",domain:X===void 0?"youtube.com":X,secure:Q===void 0?!1:Q})};
_.DJx=function(A,t,f){_.E0.remove(A,t===void 0?"/":t,f===void 0?"youtube.com":f)};
_.DU=function(){if(_.M("embeds_web_enable_cookie_detection_fix")){if(!_.Xb.navigator.cookieEnabled)return!1}else if(!_.E0.isEnabled())return!1;if(!_.E0.isEmpty())return!0;_.M("embeds_web_enable_cookie_detection_fix")?_.E0.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.E0.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.E0.get("TESTCOOKIESENABLED")!=="1")return!1;_.E0.remove("TESTCOOKIESENABLED");return!0};
FPp=function(){var A=_.Xb.navigator;return A?A.connection:void 0};
IN5=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}};
_.j75=function(){var A=FPp();if(A){var t=xJz[A.type||"unknown"]||"CONN_UNKNOWN";A=xJz[A.effectiveType||"unknown"]||"CONN_UNKNOWN";t==="CONN_CELLULAR_UNKNOWN"&&A!=="CONN_UNKNOWN"&&(t=A);if(t!=="CONN_UNKNOWN")return t;if(A!=="CONN_UNKNOWN")return A}};
V5b=function(){var A=FPp();if(A!=null&&A.effectiveType)return YOu.hasOwnProperty(A.effectiveType)?YOu[A.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Ij=function(){try{return _.F_(),!0}catch(A){return!1}};
_.F_=function(A){if(_.ah("DATASYNC_ID")!==void 0)return _.ah("DATASYNC_ID");throw new _.xj("Datasync ID not set",A===void 0?"unknown":A);};
_.jJ=function(A){this.mechanism=A};
Yj=function(A){this.mechanism=A};
V$=function(A){this.storage_=A;this.cachedIsStorageAvailable_=null};
Zfx=function(){var A=null;try{A=_.Xb.localStorage||null}catch(t){}V$.call(this,A)};
o7b=function(){var A=null;try{A=_.Xb.sessionStorage||null}catch(t){}V$.call(this,A)};
ZU=function(A,t){this.mechanism_=A;this.JSC$10712_prefix_=t+"::"};
_.oj=function(A){var t=new Zfx;return t.isAvailable()?A?new ZU(t,A):t:null};
_.dJT=function(A){var t=new o7b;return t.isAvailable()?A?new ZU(t,A):t:null};
$Jb=function(){var A;return(A=SOq())==null?void 0:A.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Hx=function(A){Hfu||(_.di?_.di.logError(A):(_.SJ.push({type:"ERROR",payload:A}),_.SJ.length>10&&_.SJ.shift()))};
aj=function(A,t){Hfu||(_.di?_.di.logEvent(A,t):(_.SJ.push({type:"EVENT",eventType:A,payload:t}),_.SJ.length>10&&_.SJ.shift()))};
Kk=function(A){if(A.indexOf(":")>=0)throw Error("Sc");};
gi=function(A){return A.substr(0,A.indexOf(":"))||A};
g7u=function(){return(aNp||KPx)&&wi("applewebkit")&&!wi("version")&&(!wi("safari")||wi("gsa/"))};
wi=function(A){var t=_.Ox();return t?t.toLowerCase().indexOf(A)>=0:!1};
ktT=function(A,t,f,X){t=gi(t);var Q=A instanceof Error?A:Error("Tc`"+A);if(Q instanceof s0)return Q;A={objectStoreNames:f,dbName:t,dbVersion:X};if(Q.name==="QuotaExceededError")return new s0("QUOTA_EXCEEDED",A);if(_.kj&&Q.name==="UnknownError")return new s0("QUOTA_MAYBE_EXCEEDED",A);if(Q instanceof wtz)return new s0("MISSING_INDEX",Object.assign({},A,{objectStore:Q.objectStore,index:Q.index}));if(Q.name==="InvalidStateError"&&s7s.some(function(q){return Q.message.includes(q)}))return new s0("EXECUTE_TRANSACTION_ON_CLOSED_DB",
A);
if(Q.name==="AbortError")return new s0("UNKNOWN_ABORT",A,Q.message);Q.args=[Object.assign({},A,{name:"IdbError",originalName:Q.name})];Q.level="WARNING";return Q};
ri=function(A,t,f){var X=$Jb();return new s0("IDB_NOT_SUPPORTED",{context:{caller:A,publicName:t,version:f,hasSucceededOnce:X==null?void 0:X.hasSucceededOnce}})};
rlq=function(A){if(!A)throw Error();throw A;};
ARx=function(A){return A};
tRz=function(A,t,f){var X=function(){try{A.removeEventListener("success",Q),A.removeEventListener("error",q)}catch(e){}},Q=function(){t(A.result);
X()},q=function(){f(A.error);
X()};
A.addEventListener("success",Q);A.addEventListener("error",q)};
ftp=function(A){return new Promise(function(t,f){tRz(A,t,f)})};
fU=function(A){return new Aq(new tq(function(t,f){tRz(A,t,f)}))};
XEz=function(A,t){return new Aq(new tq(function(f,X){var Q=function(){var q=A?t(A):null;q?q.then(function(e){A=e;Q()},X):f()};
Q()}))};
QCl=function(A,t,f){return new Promise(function(X,Q){var q=t!==void 0?self.indexedDB.open(A,t):self.indexedDB.open(A);var e=f.blocked,G=f.blocking,N=f.terminated,z=f.upgrade,T=f.closed,O,c=function(){O||(O=new Xi(q.result,{closed:T}));return O};
q.addEventListener("upgradeneeded",function(B){try{if(B.newVersion===null)throw Error("Yc");if(q.transaction===null)throw Error("Zc");B.dataLoss&&B.dataLoss!=="none"&&aj("IDB_DATA_CORRUPTED",{reason:B.dataLossMessage||"unknown reason",dbName:gi(A)});var h=c(),W=new QU(q.transaction);z&&z(h,function(L){return B.oldVersion<L&&B.newVersion>=L},W);
W.done.catch(function(L){Q(L)})}catch(L){Q(L)}});
q.addEventListener("success",function(){var B=q.result;G&&B.addEventListener("versionchange",function(){G(c())});
B.addEventListener("close",function(){aj("IDB_UNEXPECTEDLY_CLOSED",{dbName:gi(A),dbVersion:B.version});N&&N()});
X(c())});
q.addEventListener("error",function(){Q(q.error)});
e&&q.addEventListener("blocked",function(){e()})})};
qp0=function(A,t,f){f=f===void 0?{}:f;return QCl(A,t,f)};
_.Jq=function(A,t){t=t===void 0?{}:t;var f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return _.ht(e,2),f=self.indexedDB.deleteDatabase(A),X=t,(Q=X.blocked)&&f.addEventListener("blocked",function(){Q()}),e.yield(ftp(f),4);
if(e.nextAddress!=2)return _.qq(e,0);q=_.vC(e);throw ktT(q,A,"",-1);})};
U_u=function(A,t){var f;return _.l(function(X){if(X.nextAddress==1)return X.yield(_.UJ(JRx,t),2);f=X.yieldResult;return X.return(_.eC(f,["databases"],{enableRetries:!0,mode:"readwrite"},function(Q){var q=Q.objectStore("databases");return q.get(A.actualName).then(function(e){if(e?A.actualName!==e.actualName||A.publicName!==e.publicName||A.userIdentifier!==e.userIdentifier:1)return q.put(A).then(function(){})})}))})};
_.Gm=function(A,t){var f;return _.l(function(X){if(X.nextAddress==1)return A?X.yield(_.UJ(JRx,t),2):X.return();f=X.yieldResult;return X.return(f.delete("databases",A))})};
_.e$u=function(A,t){var f,X;return _.l(function(Q){return Q.nextAddress==1?(f=[],Q.yield(_.UJ(JRx,t),2)):Q.nextAddress!=3?(X=Q.yieldResult,Q.yield(_.eC(X,["databases"],{enableRetries:!0,mode:"readonly"},function(q){f.length=0;return ln(q.objectStore("databases"),{},function(e){A(e.getValue())&&f.push(e.getValue());return e.continue()})}),3)):Q.return(f)})};
G$5=function(A,t){return _.e$u(function(f){return f.publicName===A&&f.userIdentifier!==void 0},t)};
uC5=function(){var A,t,f,X;return _.l(function(Q){switch(Q.nextAddress){case 1:A=$Jb();if((t=A)==null?0:t.hasSucceededOnce)return Q.return(!0);var q;if(q=ltz)q=/WebKit\/([0-9]+)/.exec(_.Ox()),q=!!(q&&parseInt(q[1],10)>=600);q&&(q=/WebKit\/([0-9]+)/.exec(_.Ox()),q=!(q&&parseInt(q[1],10)>=602));if(q||Nq)return Q.return(!1);try{if(f=self,!(f.indexedDB&&f.IDBIndex&&f.IDBKeyRange&&f.IDBObjectStore))return Q.return(!1)}catch(e){return Q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Q.return(!1);
_.ht(Q,2);X={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return Q.yield(U_u(X,NFT),4);case 4:return Q.yield(_.Gm("yt-idb-test-do-not-use",NFT),5);case 5:return Q.return(!0);case 2:return _.vC(Q),Q.return(!1)}})};
P$0=function(){if(z$5!==void 0)return z$5;Hfu=!0;return z$5=uC5().then(function(A){Hfu=!1;var t;if((t=SOq())!=null&&t.hasLocalStorage()){var f;t={hasSucceededOnce:((f=$Jb())==null?void 0:f.hasSucceededOnce)||A};var X;(X=SOq())==null||X.set("LAST_RESULT_ENTRY_KEY",t,2592E3,!0)}return A})};
un=function(){return _.Ae("ytglobal.idbToken_")||void 0};
_.PD=function(){var A=un();return A?Promise.resolve(A):P$0().then(function(t){(t=t?NFT:void 0)&&_.zm("ytglobal.idbToken_",t);return t})};
TFs=function(A){if(!_.Ij())throw A=new s0("AUTH_INVALID",{dbName:A}),_.Hx(A),A;var t=_.F_();return{actualName:A+":"+t,publicName:A,userIdentifier:t}};
iZu=function(A,t,f,X){var Q,q,e,G,N,z;return _.l(function(T){switch(T.nextAddress){case 1:return q=(Q=Error().stack)!=null?Q:"",T.yield(_.PD(),2);case 2:e=T.yieldResult;if(!e)throw G=ri("openDbImpl",A,t),_.M("ytidb_async_stack_killswitch")||(G.stack=G.stack+"\n"+q.substring(q.indexOf("\n")+1)),_.Hx(G),G;Kk(A);N=f?{actualName:A,publicName:A,userIdentifier:void 0}:TFs(A);_.ht(T,3);return T.yield(U_u(N,e),5);case 5:return T.yield(qp0(N.actualName,t,X),6);case 6:return T.return(T.yieldResult);case 3:return z=
_.vC(T),_.ht(T,7),T.yield(_.Gm(N.actualName,e),9);case 9:_.qq(T,8);break;case 7:_.vC(T);case 8:throw z;}})};
OZ5=function(A,t,f){f=f===void 0?{}:f;return iZu(A,t,!1,f)};
cRz=function(A,t,f){f=f===void 0?{}:f;return iZu(A,t,!0,f)};
BFg=function(A,t){t=t===void 0?{}:t;var f,X;return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(_.PD(),2);if(Q.nextAddress!=3){f=Q.yieldResult;if(!f)return Q.return();Kk(A);X=TFs(A);return Q.yield(_.Jq(X.actualName,t),3)}return Q.yield(_.Gm(X.actualName,f),0)})};
MRg=function(A,t,f){A=A.map(function(X){return _.l(function(Q){return Q.nextAddress==1?Q.yield(_.Jq(X.actualName,t),2):Q.yield(_.Gm(X.actualName,f),0)})});
return Promise.all(A).then(function(){})};
C$x=function(A){var t=t===void 0?{}:t;var f,X;return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(_.PD(),2);if(Q.nextAddress!=3){f=Q.yieldResult;if(!f)return Q.return();Kk(A);return Q.yield(G$5(A,f),3)}X=Q.yieldResult;return Q.yield(MRg(X,t,f),0)})};
h$5=function(A,t){t=t===void 0?{}:t;var f;return _.l(function(X){if(X.nextAddress==1)return X.yield(_.PD(),2);if(X.nextAddress!=3){f=X.yieldResult;if(!f)return X.return();Kk(A);return X.yield(_.Jq(A,t),3)}return X.yield(_.Gm(A,f),0)})};
Tm=function(A,t){return R$0(A,t)};
bZx=function(A){return _.UJ(m_b(),A)};
Wvs=function(A,t,f,X){var Q,q,e;return _.l(function(G){switch(G.nextAddress){case 1:return Q={config:A,hashData:t,timestamp:X!==void 0?X:(0,_.OJ)()},G.yield(bZx(f),2);case 2:return q=G.yieldResult,G.yield(q.clear("hotConfigStore"),3);case 3:return G.yield(q.put("hotConfigStore",Q),4);case 4:return e=G.yieldResult,G.return(e)}})};
yRx=function(A,t,f,X,Q){var q,e,G;return _.l(function(N){switch(N.nextAddress){case 1:return q={config:A,hashData:t,configData:f,timestamp:Q!==void 0?Q:(0,_.OJ)()},N.yield(bZx(X),2);case 2:return e=N.yieldResult,N.yield(e.clear("coldConfigStore"),3);case 3:return N.yield(e.put("coldConfigStore",q),4);case 4:return G=N.yieldResult,N.return(G)}})};
vIz=function(A){var t,f;return _.l(function(X){return X.nextAddress==1?X.yield(bZx(A),2):X.nextAddress!=3?(t=X.yieldResult,f=void 0,X.yield(_.eC(t,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.cD(Q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(q){f=q.getValue()})}),3)):X.return(f)})};
Lvx=function(A){var t,f;return _.l(function(X){return X.nextAddress==1?X.yield(bZx(A),2):X.nextAddress!=3?(t=X.yieldResult,f=void 0,X.yield(_.eC(t,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.cD(Q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(q){f=q.getValue()})}),3)):X.return(f)})};
pE0=function(){return _.l(function(A){return A.yield(C$x("ytGcfConfig"),0)})};
EIx=function(){return"INNERTUBE_API_KEY"in _.$k&&"INNERTUBE_API_VERSION"in _.$k};
_.BD=function(){return{innertubeApiKey:_.ah("INNERTUBE_API_KEY"),innertubeApiVersion:_.ah("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.ah("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.ah("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.ah("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.ah("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.ah("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.ah("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.ah("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Ka("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Ka("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.ah("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Ypx=function(A){var t={client:{hl:A.innertubeContextHostLanguage,gl:A.innertubeContextGeoLocation,clientName:A.innertubeContextClientName,clientVersion:A.innertubeContextClientVersion,configInfo:A.innertubeContextClientConfigInfo}};navigator.userAgent&&(t.client.userAgent=String(navigator.userAgent));var f=_.Xb.devicePixelRatio;f&&f!=1&&(t.client.screenDensityFloat=String(f));f=fNq();f!==""&&(t.client.experimentsToken=f);f=XtT();f.length>0&&(t.request={internalExperimentFlags:f});nIT(A,void 0,t);
D_x(void 0,t);Fvu(void 0,t);Itl(A,void 0,t);x_0(void 0,t);_.M("start_client_gcf")&&jCb(void 0,t);_.ah("DELEGATED_SESSION_ID")&&!_.M("pageid_as_header_web")&&(t.user={onBehalfOfUser:_.ah("DELEGATED_SESSION_ID")});!_.M("fill_delegate_context_in_gel_killswitch")&&(A=_.ah("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t.user=Object.assign({},t.user,{serializedDelegationContext:A}));A=_.ah("INNERTUBE_CONTEXT");var X;if(_.M("enable_persistent_device_token")&&(A==null?0:(X=A.client)==null?0:X.rolloutToken)){var Q;
t.client.rolloutToken=A==null?void 0:(Q=A.client)==null?void 0:Q.rolloutToken}X=Object;Q=X.assign;A=t.client;f={};for(var q=_.U(Object.entries(_.Q$(_.ah("DEVICE","")))),e=q.next();!e.done;e=q.next()){var G=_.U(e.value);e=G.next().value;G=G.next().value;e==="cbrand"?f.deviceMake=G:e==="cmodel"?f.deviceModel=G:e==="cbr"?f.browserName=G:e==="cbrver"?f.browserVersion=G:e==="cos"?f.osName=G:e==="cosver"?f.osVersion=G:e==="cplatform"&&(f.platform=G)}t.client=Q.call(X,A,f);return t};
nIT=function(A,t,f){A=A.innertubeContextClientName;if(A==="WEB"||A==="MWEB"||A===1||A===2)if(t){f=_.Mq(t,VR5,96)||new VR5;var X=ZZs();X=Object.keys(oIu).indexOf(X);X=X===-1?null:X;X!==null&&_.CU(f,3,X);_.bi(t,96,f)}else f&&(f.client.mainAppWebInfo=(X=f.client.mainAppWebInfo)!=null?X:{},f.client.mainAppWebInfo.webDisplayMode=ZZs())};
D_x=function(A,t){var f=_.Ae("yt.embedded_player.embed_url");f&&(A?(t=_.Mq(A,d_x,7)||new d_x,_.Dg(t,4,f),_.bi(A,7,t)):t&&(t.thirdParty={embedUrl:f}))};
Fvu=function(A,t){var f;if(_.M("web_log_memory_total_kbytes")&&((f=_.Xb.navigator)==null?0:f.deviceMemory)){var X;f=(X=_.Xb.navigator)==null?void 0:X.deviceMemory;A?_.hq(A,95,uy(f*1E6)):t&&(t.client.memoryTotalKbytes=""+f*1E6)}};
Itl=function(A,t,f){if(A.appInstallData)if(t){var X;f=(X=_.Mq(t,R6,62))!=null?X:new R6;_.Dg(f,6,A.appInstallData);_.bi(t,62,f)}else f&&(f.client.configInfo=f.client.configInfo||{},f.client.configInfo.appInstallData=A.appInstallData)};
x_0=function(A,t){var f=_.j75();f&&(A?_.CU(A,61,Sp5[f]):t&&(t.client.connectionType=f));_.M("web_log_effective_connection_type")&&(f=V5b())&&(A?_.CU(A,94,$_x[f]):t&&(t.client.effectiveConnectionType=f))};
_.Kvu=function(A,t,f){f=f===void 0?{}:f;var X={};_.ah("EOM_VISITOR_DATA")?X={"X-Goog-EOM-Visitor-Id":_.ah("EOM_VISITOR_DATA")}:X={"X-Goog-Visitor-Id":f.visitorData||_.ah("VISITOR_DATA","")};if(t&&t.includes("www.youtube-nocookie.com"))return X;t=f.authorization||_.ah("AUTHORIZATION");t||(A?t="Bearer "+_.Ae("gapi.auth.getToken")().access_token:(HZb.instance||(HZb.instance=new HZb),A=atg(),_.M("pageid_as_header_web")||delete A["X-Goog-PageId"],X=Object.assign({},X,A)));t&&(X.Authorization=t);return X};
jCb=function(A,t){var f=gIq();if(f){var X=f.coldConfigData,Q=f.coldHashData;f=f.hotHashData;if(A){var q;t=(q=_.Mq(A,R6,62))!=null?q:new R6;X=_.Dg(t,1,X);_.Dg(X,3,Q).setHotHashData(f);_.bi(A,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},X&&(t.client.configInfo.coldConfigData=X),Q&&(t.client.configInfo.coldHashData=Q),f&&(t.client.configInfo.hotHashData=f))}};
mZ=function(A){for(var t=A.length;--t>=0;)A[t]=0};
wEx=function(A,t,f,X,Q){this.static_tree=A;this.extra_bits=t;this.extra_base=f;this.elems=X;this.max_length=Q;this.has_stree=A&&A.length};
sCb=function(A,t){this.dyn_tree=A;this.max_code=0;this.stat_desc=t};
bn=function(A,t){A.pending_buf[A.pending++]=t&255;A.pending_buf[A.pending++]=t>>>8&255};
WD=function(A,t,f){A.bi_valid>16-f?(A.bi_buf|=t<<A.bi_valid&65535,bn(A,A.bi_buf),A.bi_buf=t>>16-A.bi_valid,A.bi_valid+=f-16):(A.bi_buf|=t<<A.bi_valid&65535,A.bi_valid+=f)};
yU=function(A,t,f){WD(A,f[t*2],f[t*2+1])};
k$z=function(A,t){var f=0;do f|=A&1,A>>>=1,f<<=1;while(--t>0);return f>>>1};
rRb=function(A,t,f){var X=Array(16),Q=0,q;for(q=1;q<=15;q++)X[q]=Q=Q+f[q-1]<<1;for(f=0;f<=t;f++)Q=A[f*2+1],Q!==0&&(A[f*2]=k$z(X[Q]++,Q))};
AL0=function(A){var t;for(t=0;t<286;t++)A.dyn_ltree[t*2]=0;for(t=0;t<30;t++)A.dyn_dtree[t*2]=0;for(t=0;t<19;t++)A.bl_tree[t*2]=0;A.dyn_ltree[512]=1;A.opt_len=A.static_len=0;A.last_lit=A.matches=0};
tIg=function(A){A.bi_valid>8?bn(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf);A.bi_buf=0;A.bi_valid=0};
f25=function(A,t,f){tIg(A);bn(A,f);bn(A,~f);vD.arraySet(A.pending_buf,A.window,t,f,A.pending);A.pending+=f};
Xib=function(A,t,f,X){var Q=t*2,q=f*2;return A[Q]<A[q]||A[Q]===A[q]&&X[t]<=X[f]};
QOu=function(A,t,f){for(var X=A.heap[f],Q=f<<1;Q<=A.heap_len;){Q<A.heap_len&&Xib(t,A.heap[Q+1],A.heap[Q],A.depth)&&Q++;if(Xib(t,X,A.heap[Q],A.depth))break;A.heap[f]=A.heap[Q];f=Q;Q<<=1}A.heap[f]=X};
GDz=function(A,t,f){var X=0;if(A.last_lit!==0){do{var Q=A.pending_buf[A.d_buf+X*2]<<8|A.pending_buf[A.d_buf+X*2+1];var q=A.pending_buf[A.l_buf+X];X++;if(Q===0)yU(A,q,t);else{var e=LU[q];yU(A,e+256+1,t);var G=qFl[e];G!==0&&(q-=JLx[e],WD(A,q,G));Q--;e=Q<256?pU[Q]:pU[256+(Q>>>7)];yU(A,e,f);G=Uvq[e];G!==0&&(Q-=e9g[e],WD(A,Q,G))}}while(X<A.last_lit)}yU(A,256,t)};
l25=function(A,t){var f=t.dyn_tree,X=t.stat_desc.static_tree,Q=t.stat_desc.has_stree,q=t.stat_desc.elems,e,G=-1;A.heap_len=0;A.heap_max=573;for(e=0;e<q;e++)f[e*2]!==0?(A.heap[++A.heap_len]=G=e,A.depth[e]=0):f[e*2+1]=0;for(;A.heap_len<2;){var N=A.heap[++A.heap_len]=G<2?++G:0;f[N*2]=1;A.depth[N]=0;A.opt_len--;Q&&(A.static_len-=X[N*2+1])}t.max_code=G;for(e=A.heap_len>>1;e>=1;e--)QOu(A,f,e);N=q;do e=A.heap[1],A.heap[1]=A.heap[A.heap_len--],QOu(A,f,1),X=A.heap[1],A.heap[--A.heap_max]=e,A.heap[--A.heap_max]=
X,f[N*2]=f[e*2]+f[X*2],A.depth[N]=(A.depth[e]>=A.depth[X]?A.depth[e]:A.depth[X])+1,f[e*2+1]=f[X*2+1]=N,A.heap[1]=N++,QOu(A,f,1);while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1];e=t.dyn_tree;N=t.max_code;X=t.stat_desc.static_tree;Q=t.stat_desc.has_stree;q=t.stat_desc.extra_bits;var z=t.stat_desc.extra_base,T=t.stat_desc.max_length,O,c=0;for(O=0;O<=15;O++)A.bl_count[O]=0;e[A.heap[A.heap_max]*2+1]=0;for(t=A.heap_max+1;t<573;t++){var B=A.heap[t];O=e[e[B*2+1]*2+1]+1;O>T&&(O=T,c++);e[B*2+1]=O;if(!(B>
N)){A.bl_count[O]++;var h=0;B>=z&&(h=q[B-z]);var W=e[B*2];A.opt_len+=W*(O+h);Q&&(A.static_len+=W*(X[B*2+1]+h))}}if(c!==0){do{for(O=T-1;A.bl_count[O]===0;)O--;A.bl_count[O]--;A.bl_count[O+1]+=2;A.bl_count[T]--;c-=2}while(c>0);for(O=T;O!==0;O--)for(B=A.bl_count[O];B!==0;)X=A.heap[--t],X>N||(e[X*2+1]!==O&&(A.opt_len+=(O-e[X*2+1])*e[X*2],e[X*2+1]=O),B--)}rRb(f,G,A.bl_count)};
NH0=function(A,t,f){var X,Q=-1,q=t[1],e=0,G=7,N=4;q===0&&(G=138,N=3);t[(f+1)*2+1]=65535;for(X=0;X<=f;X++){var z=q;q=t[(X+1)*2+1];++e<G&&z===q||(e<N?A.bl_tree[z*2]+=e:z!==0?(z!==Q&&A.bl_tree[z*2]++,A.bl_tree[32]++):e<=10?A.bl_tree[34]++:A.bl_tree[36]++,e=0,Q=z,q===0?(G=138,N=3):z===q?(G=6,N=3):(G=7,N=4))}};
uc0=function(A,t,f){var X,Q=-1,q=t[1],e=0,G=7,N=4;q===0&&(G=138,N=3);for(X=0;X<=f;X++){var z=q;q=t[(X+1)*2+1];if(!(++e<G&&z===q)){if(e<N){do yU(A,z,A.bl_tree);while(--e!==0)}else z!==0?(z!==Q&&(yU(A,z,A.bl_tree),e--),yU(A,16,A.bl_tree),WD(A,e-3,2)):e<=10?(yU(A,17,A.bl_tree),WD(A,e-3,3)):(yU(A,18,A.bl_tree),WD(A,e-11,7));e=0;Q=z;q===0?(G=138,N=3):z===q?(G=6,N=3):(G=7,N=4)}}};
z9b=function(A){var t=4093624447,f;for(f=0;f<=31;f++,t>>>=1)if(t&1&&A.dyn_ltree[f*2]!==0)return 0;if(A.dyn_ltree[18]!==0||A.dyn_ltree[20]!==0||A.dyn_ltree[26]!==0)return 1;for(f=32;f<256;f++)if(A.dyn_ltree[f*2]!==0)return 1;return 0};
EJ=function(A,t,f){A.pending_buf[A.d_buf+A.last_lit*2]=t>>>8&255;A.pending_buf[A.d_buf+A.last_lit*2+1]=t&255;A.pending_buf[A.l_buf+A.last_lit]=f&255;A.last_lit++;t===0?A.dyn_ltree[f*2]++:(A.matches++,t--,A.dyn_ltree[(LU[f]+256+1)*2]++,A.dyn_dtree[(t<256?pU[t]:pU[256+(t>>>7)])*2]++);return A.last_lit===A.lit_bufsize-1};
Ds=function(A,t){A.msg=nU[t];return t};
Fi=function(A){for(var t=A.length;--t>=0;)A[t]=0};
I6=function(A){var t=A.state,f=t.pending;f>A.avail_out&&(f=A.avail_out);f!==0&&(vD.arraySet(A.output,t.pending_buf,t.pending_out,f,A.next_out),A.next_out+=f,t.pending_out+=f,A.total_out+=f,A.avail_out-=f,t.pending-=f,t.pending===0&&(t.pending_out=0))};
Yt=function(A,t){var f=A.block_start>=0?A.block_start:-1,X=A.strstart-A.block_start,Q=0;if(A.level>0){A.strm.data_type===2&&(A.strm.data_type=z9b(A));l25(A,A.l_desc);l25(A,A.d_desc);NH0(A,A.dyn_ltree,A.l_desc.max_code);NH0(A,A.dyn_dtree,A.d_desc.max_code);l25(A,A.bl_desc);for(Q=18;Q>=3&&A.bl_tree[PYT[Q]*2+1]===0;Q--);A.opt_len+=3*(Q+1)+5+5+4;var q=A.opt_len+3+7>>>3;var e=A.static_len+3+7>>>3;e<=q&&(q=e)}else q=e=X+5;if(X+4<=q&&f!==-1)WD(A,t?1:0,3),f25(A,f,X);else if(A.strategy===4||e===q)WD(A,2+(t?
1:0),3),GDz(A,xt,jC);else{WD(A,4+(t?1:0),3);f=A.l_desc.max_code+1;X=A.d_desc.max_code+1;Q+=1;WD(A,f-257,5);WD(A,X-1,5);WD(A,Q-4,4);for(q=0;q<Q;q++)WD(A,A.bl_tree[PYT[q]*2+1],3);uc0(A,A.dyn_ltree,f-1);uc0(A,A.dyn_dtree,X-1);GDz(A,A.dyn_ltree,A.dyn_dtree)}AL0(A);t&&tIg(A);A.block_start=A.strstart;I6(A.strm)};
VU=function(A,t){A.pending_buf[A.pending++]=t};
Zs=function(A,t){A.pending_buf[A.pending++]=t>>>8&255;A.pending_buf[A.pending++]=t&255};
THx=function(A,t){var f=A.max_chain_length,X=A.strstart,Q=A.prev_length,q=A.nice_match,e=A.strstart>A.w_size-262?A.strstart-(A.w_size-262):0,G=A.window,N=A.w_mask,z=A.prev,T=A.strstart+258,O=G[X+Q-1],c=G[X+Q];A.prev_length>=A.good_match&&(f>>=2);q>A.lookahead&&(q=A.lookahead);do{var B=t;if(G[B+Q]===c&&G[B+Q-1]===O&&G[B]===G[X]&&G[++B]===G[X+1]){X+=2;for(B++;G[++X]===G[++B]&&G[++X]===G[++B]&&G[++X]===G[++B]&&G[++X]===G[++B]&&G[++X]===G[++B]&&G[++X]===G[++B]&&G[++X]===G[++B]&&G[++X]===G[++B]&&X<T;);
B=258-(T-X);X=T-258;if(B>Q){A.match_start=t;Q=B;if(B>=q)break;O=G[X+Q-1];c=G[X+Q]}}}while((t=z[t&N])>e&&--f!==0);return Q<=A.lookahead?Q:A.lookahead};
db=function(A){var t=A.w_size,f;do{var X=A.window_size-A.lookahead-A.strstart;if(A.strstart>=t+(t-262)){vD.arraySet(A.window,A.window,t,t,0);A.match_start-=t;A.strstart-=t;A.block_start-=t;var Q=f=A.hash_size;do{var q=A.head[--Q];A.head[Q]=q>=t?q-t:0}while(--f);Q=f=t;do q=A.prev[--Q],A.prev[Q]=q>=t?q-t:0;while(--f);X+=t}if(A.strm.avail_in===0)break;Q=A.strm;f=A.window;q=A.strstart+A.lookahead;var e=Q.avail_in;e>X&&(e=X);e===0?f=0:(Q.avail_in-=e,vD.arraySet(f,Q.input,Q.next_in,e,q),Q.state.wrap===
1?Q.adler=ips(Q.adler,f,e,q):Q.state.wrap===2&&(Q.adler=o6(Q.adler,f,e,q)),Q.next_in+=e,Q.total_in+=e,f=e);A.lookahead+=f;if(A.lookahead+A.insert>=3)for(X=A.strstart-A.insert,A.ins_h=A.window[X],A.ins_h=(A.ins_h<<A.hash_shift^A.window[X+1])&A.hash_mask;A.insert&&!(A.ins_h=(A.ins_h<<A.hash_shift^A.window[X+3-1])&A.hash_mask,A.prev[X&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=X,X++,A.insert--,A.lookahead+A.insert<3););}while(A.lookahead<262&&A.strm.avail_in!==0)};
Opl=function(A,t){for(var f;;){if(A.lookahead<262){db(A);if(A.lookahead<262&&t===0)return 1;if(A.lookahead===0)break}f=0;A.lookahead>=3&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,f=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);f!==0&&A.strstart-f<=A.w_size-262&&(A.match_length=THx(A,f));if(A.match_length>=3)if(f=EJ(A,A.strstart-A.match_start,A.match_length-3),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=3){A.match_length--;
do A.strstart++,A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart;while(--A.match_length!==0);A.strstart++}else A.strstart+=A.match_length,A.match_length=0,A.ins_h=A.window[A.strstart],A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+1])&A.hash_mask;else f=EJ(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++;if(f&&(Yt(A,!1),A.strm.avail_out===0))return 1}A.insert=A.strstart<2?A.strstart:2;return t===4?(Yt(A,
!0),A.strm.avail_out===0?3:4):A.last_lit&&(Yt(A,!1),A.strm.avail_out===0)?1:2};
SC=function(A,t){for(var f,X;;){if(A.lookahead<262){db(A);if(A.lookahead<262&&t===0)return 1;if(A.lookahead===0)break}f=0;A.lookahead>=3&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,f=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);A.prev_length=A.match_length;A.prev_match=A.match_start;A.match_length=2;f!==0&&A.prev_length<A.max_lazy_match&&A.strstart-f<=A.w_size-262&&(A.match_length=THx(A,f),A.match_length<=5&&(A.strategy===1||A.match_length===3&&
A.strstart-A.match_start>4096)&&(A.match_length=2));if(A.prev_length>=3&&A.match_length<=A.prev_length){X=A.strstart+A.lookahead-3;f=EJ(A,A.strstart-1-A.prev_match,A.prev_length-3);A.lookahead-=A.prev_length-1;A.prev_length-=2;do++A.strstart<=X&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);while(--A.prev_length!==0);A.match_available=0;A.match_length=2;A.strstart++;if(f&&(Yt(A,!1),A.strm.avail_out===0))return 1}else if(A.match_available){if((f=
EJ(A,0,A.window[A.strstart-1]))&&Yt(A,!1),A.strstart++,A.lookahead--,A.strm.avail_out===0)return 1}else A.match_available=1,A.strstart++,A.lookahead--}A.match_available&&(EJ(A,0,A.window[A.strstart-1]),A.match_available=0);A.insert=A.strstart<2?A.strstart:2;return t===4?(Yt(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(Yt(A,!1),A.strm.avail_out===0)?1:2};
cLl=function(A,t){for(var f,X,Q,q=A.window;;){if(A.lookahead<=258){db(A);if(A.lookahead<=258&&t===0)return 1;if(A.lookahead===0)break}A.match_length=0;if(A.lookahead>=3&&A.strstart>0&&(X=A.strstart-1,f=q[X],f===q[++X]&&f===q[++X]&&f===q[++X])){for(Q=A.strstart+258;f===q[++X]&&f===q[++X]&&f===q[++X]&&f===q[++X]&&f===q[++X]&&f===q[++X]&&f===q[++X]&&f===q[++X]&&X<Q;);A.match_length=258-(Q-X);A.match_length>A.lookahead&&(A.match_length=A.lookahead)}A.match_length>=3?(f=EJ(A,1,A.match_length-3),A.lookahead-=
A.match_length,A.strstart+=A.match_length,A.match_length=0):(f=EJ(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++);if(f&&(Yt(A,!1),A.strm.avail_out===0))return 1}A.insert=0;return t===4?(Yt(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(Yt(A,!1),A.strm.avail_out===0)?1:2};
BHb=function(A,t){for(var f;;){if(A.lookahead===0&&(db(A),A.lookahead===0)){if(t===0)return 1;break}A.match_length=0;f=EJ(A,0,A.window[A.strstart]);A.lookahead--;A.strstart++;if(f&&(Yt(A,!1),A.strm.avail_out===0))return 1}A.insert=0;return t===4?(Yt(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(Yt(A,!1),A.strm.avail_out===0)?1:2};
$t=function(A,t,f,X,Q){this.good_length=A;this.max_lazy=t;this.nice_length=f;this.max_chain=X;this.func=Q};
MIu=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 vD.Buf16(1146);this.dyn_dtree=new vD.Buf16(122);this.bl_tree=new vD.Buf16(78);Fi(this.dyn_ltree);Fi(this.dyn_dtree);Fi(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new vD.Buf16(16);this.heap=new vD.Buf16(573);Fi(this.heap);this.heap_max=this.heap_len=0;this.depth=new vD.Buf16(573);Fi(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};
CYb=function(A,t){if(!A||!A.state||t>5||t<0)return A?Ds(A,-2):-2;var f=A.state;if(!A.output||!A.input&&A.avail_in!==0||f.status===666&&t!==4)return Ds(A,A.avail_out===0?-5:-2);f.strm=A;var X=f.last_flush;f.last_flush=t;if(f.status===42)if(f.wrap===2)A.adler=0,VU(f,31),VU(f,139),VU(f,8),f.gzhead?(VU(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),VU(f,f.gzhead.time&255),VU(f,f.gzhead.time>>8&255),VU(f,f.gzhead.time>>16&255),VU(f,f.gzhead.time>>
24&255),VU(f,f.level===9?2:f.strategy>=2||f.level<2?4:0),VU(f,f.gzhead.os&255),f.gzhead.extra&&f.gzhead.extra.length&&(VU(f,f.gzhead.extra.length&255),VU(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(A.adler=o6(A.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(VU(f,0),VU(f,0),VU(f,0),VU(f,0),VU(f,0),VU(f,f.level===9?2:f.strategy>=2||f.level<2?4:0),VU(f,3),f.status=113);else{var Q=8+(f.w_bits-8<<4)<<8;Q|=(f.strategy>=2||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6;f.strstart!==0&&(Q|=
32);f.status=113;Zs(f,Q+(31-Q%31));f.strstart!==0&&(Zs(f,A.adler>>>16),Zs(f,A.adler&65535));A.adler=1}if(f.status===69)if(f.gzhead.extra){for(Q=f.pending;f.gzindex<(f.gzhead.extra.length&65535)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>Q&&(A.adler=o6(A.adler,f.pending_buf,f.pending-Q,Q)),I6(A),Q=f.pending,f.pending!==f.pending_buf_size));)VU(f,f.gzhead.extra[f.gzindex]&255),f.gzindex++;f.gzhead.hcrc&&f.pending>Q&&(A.adler=o6(A.adler,f.pending_buf,f.pending-Q,Q));f.gzindex===f.gzhead.extra.length&&
(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){Q=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>Q&&(A.adler=o6(A.adler,f.pending_buf,f.pending-Q,Q)),I6(A),Q=f.pending,f.pending===f.pending_buf_size)){var q=1;break}q=f.gzindex<f.gzhead.name.length?f.gzhead.name.charCodeAt(f.gzindex++)&255:0;VU(f,q)}while(q!==0);f.gzhead.hcrc&&f.pending>Q&&(A.adler=o6(A.adler,f.pending_buf,f.pending-Q,Q));q===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===
91)if(f.gzhead.comment){Q=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>Q&&(A.adler=o6(A.adler,f.pending_buf,f.pending-Q,Q)),I6(A),Q=f.pending,f.pending===f.pending_buf_size)){q=1;break}q=f.gzindex<f.gzhead.comment.length?f.gzhead.comment.charCodeAt(f.gzindex++)&255:0;VU(f,q)}while(q!==0);f.gzhead.hcrc&&f.pending>Q&&(A.adler=o6(A.adler,f.pending_buf,f.pending-Q,Q));q===0&&(f.status=103)}else f.status=103;f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&I6(A),
f.pending+2<=f.pending_buf_size&&(VU(f,A.adler&255),VU(f,A.adler>>8&255),A.adler=0,f.status=113)):f.status=113);if(f.pending!==0){if(I6(A),A.avail_out===0)return f.last_flush=-1,0}else if(A.avail_in===0&&(t<<1)-(t>4?9:0)<=(X<<1)-(X>4?9:0)&&t!==4)return Ds(A,-5);if(f.status===666&&A.avail_in!==0)return Ds(A,-5);if(A.avail_in!==0||f.lookahead!==0||t!==0&&f.status!==666){X=f.strategy===2?BHb(f,t):f.strategy===3?cLl(f,t):HD[f.level].func(f,t);if(X===3||X===4)f.status=666;if(X===1||X===3)return A.avail_out===
0&&(f.last_flush=-1),0;if(X===2&&(t===1?(WD(f,2,3),yU(f,256,xt),f.bi_valid===16?(bn(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):f.bi_valid>=8&&(f.pending_buf[f.pending++]=f.bi_buf&255,f.bi_buf>>=8,f.bi_valid-=8)):t!==5&&(WD(f,0,3),f25(f,0,0),t===3&&(Fi(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),I6(A),A.avail_out===0))return f.last_flush=-1,0}if(t!==4)return 0;if(f.wrap<=0)return 1;f.wrap===2?(VU(f,A.adler&255),VU(f,A.adler>>8&255),VU(f,A.adler>>16&255),VU(f,A.adler>>24&255),VU(f,
A.total_in&255),VU(f,A.total_in>>8&255),VU(f,A.total_in>>16&255),VU(f,A.total_in>>24&255)):(Zs(f,A.adler>>>16),Zs(f,A.adler&65535));I6(A);f.wrap>0&&(f.wrap=-f.wrap);return f.pending!==0?0:1};
h9q=function(A){if(!(this instanceof h9q))return new h9q(A);A=this.options=vD.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},A||{});A.raw&&A.windowBits>0?A.windowBits=-A.windowBits:A.gzip&&A.windowBits>0&&A.windowBits<16&&(A.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new R9g;this.strm.avail_out=0;var t=this.strm;var f=A.level,X=A.method,Q=A.windowBits,q=A.memLevel,e=A.strategy;if(t){var G=1;f===-1&&(f=6);Q<0?(G=0,Q=-Q):Q>15&&
(G=2,Q-=16);if(q<1||q>9||X!==8||Q<8||Q>15||f<0||f>9||e<0||e>4)t=Ds(t,-2);else{Q===8&&(Q=9);var N=new MIu;t.state=N;N.strm=t;N.wrap=G;N.gzhead=null;N.w_bits=Q;N.w_size=1<<N.w_bits;N.w_mask=N.w_size-1;N.hash_bits=q+7;N.hash_size=1<<N.hash_bits;N.hash_mask=N.hash_size-1;N.hash_shift=~~((N.hash_bits+3-1)/3);N.window=new vD.Buf8(N.w_size*2);N.head=new vD.Buf16(N.hash_size);N.prev=new vD.Buf16(N.w_size);N.lit_bufsize=1<<q+6;N.pending_buf_size=N.lit_bufsize*4;N.pending_buf=new vD.Buf8(N.pending_buf_size);
N.d_buf=N.lit_bufsize;N.l_buf=3*N.lit_bufsize;N.level=f;N.strategy=e;N.method=X;if(t&&t.state){t.total_in=t.total_out=0;t.data_type=2;f=t.state;f.pending=0;f.pending_out=0;f.wrap<0&&(f.wrap=-f.wrap);f.status=f.wrap?42:113;t.adler=f.wrap===2?0:1;f.last_flush=0;if(!mv5){X=Array(16);for(q=e=0;q<28;q++)for(JLx[q]=e,Q=0;Q<1<<qFl[q];Q++)LU[e++]=q;LU[e-1]=q;for(q=e=0;q<16;q++)for(e9g[q]=e,Q=0;Q<1<<Uvq[q];Q++)pU[e++]=q;for(e>>=7;q<30;q++)for(e9g[q]=e<<7,Q=0;Q<1<<Uvq[q]-7;Q++)pU[256+e++]=q;for(Q=0;Q<=15;Q++)X[Q]=
0;for(Q=0;Q<=143;)xt[Q*2+1]=8,Q++,X[8]++;for(;Q<=255;)xt[Q*2+1]=9,Q++,X[9]++;for(;Q<=279;)xt[Q*2+1]=7,Q++,X[7]++;for(;Q<=287;)xt[Q*2+1]=8,Q++,X[8]++;rRb(xt,287,X);for(Q=0;Q<30;Q++)jC[Q*2+1]=5,jC[Q*2]=k$z(Q,5);bpx=new wEx(xt,qFl,257,286,15);Wts=new wEx(jC,Uvq,0,30,15);yLx=new wEx([],vOq,0,19,7);mv5=!0}f.l_desc=new sCb(f.dyn_ltree,bpx);f.d_desc=new sCb(f.dyn_dtree,Wts);f.bl_desc=new sCb(f.bl_tree,yLx);f.bi_buf=0;f.bi_valid=0;AL0(f);f=0}else f=Ds(t,-2);f===0&&(t=t.state,t.window_size=2*t.w_size,Fi(t.head),
t.max_lazy_match=HD[t.level].max_lazy,t.good_match=HD[t.level].good_length,t.nice_match=HD[t.level].nice_length,t.max_chain_length=HD[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0);t=f}}else t=-2;if(t!==0)throw Error(nU[t]);A.header&&(t=this.strm)&&t.state&&t.state.wrap===2&&(t.state.gzhead=A.header);if(A.dictionary){var z;typeof A.dictionary==="string"?z=Ltx(A.dictionary):pip.call(A.dictionary)==="[object ArrayBuffer]"?
z=new Uint8Array(A.dictionary):z=A.dictionary;A=this.strm;q=z;e=q.length;if(A&&A.state)if(z=A.state,t=z.wrap,t===2||t===1&&z.status!==42||z.lookahead)t=-2;else{t===1&&(A.adler=ips(A.adler,q,e,0));z.wrap=0;e>=z.w_size&&(t===0&&(Fi(z.head),z.strstart=0,z.block_start=0,z.insert=0),f=new vD.Buf8(z.w_size),vD.arraySet(f,q,e-z.w_size,z.w_size,0),q=f,e=z.w_size);f=A.avail_in;X=A.next_in;Q=A.input;A.avail_in=e;A.next_in=0;A.input=q;for(db(z);z.lookahead>=3;){q=z.strstart;e=z.lookahead-2;do z.ins_h=(z.ins_h<<
z.hash_shift^z.window[q+3-1])&z.hash_mask,z.prev[q&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=q,q++;while(--e);z.strstart=q;z.lookahead=2;db(z)}z.strstart+=z.lookahead;z.block_start=z.strstart;z.insert=z.lookahead;z.lookahead=0;z.match_length=z.prev_length=2;z.match_available=0;A.next_in=X;A.input=Q;A.avail_in=f;z.wrap=t;t=0}else t=-2;if(t!==0)throw Error(nU[t]);this._dict_set=!0}};
EOb=function(A,t){t=t||{};t.gzip=!0;t=new h9q(t);t.push(A,!0);if(t.err)throw t.msg||nU[t.err];return t.result};
Dvb=function(A,t){var f=nOx();f&&f.publish.call(f,A.toString(),A,t)};
YFT=function(A,t,f){var X=nOx();if(!X)return 0;var Q=X.subscribe(A.toString(),function(q,e){var G=_.Ae("ytPubsub2Pubsub2SkipSubKey");G&&G==Q||(G=function(){if(Ftb[Q])try{if(e&&A instanceof I2p&&A!=q)try{var N=A.dataClass,z=e;if(!z.args||!z.version)throw Error("ad");try{if(!N.version_){var T=new N;N.version_=T.version}var O=N.version_}catch(c){}if(!O||z.version!=O)throw Error("bd");try{e=Reflect.construct(N,_.ds(z.args))}catch(c){throw c.message="yt.pubsub2.Data.deserialize(): "+c.message,c;}}catch(c){throw c.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+A.toString()+": "+c.message,c;}t.call(f||window,e)}catch(c){_.g9(c)}},xvT[A.toString()]?_.Ae("yt.scheduler.instance")?_.a6.addLowPriorityJob(G):_.Rj(G,0):G())});
Ftb[Q]=!0;jOb[A.toString()]||(jOb[A.toString()]=[]);jOb[A.toString()].push(Q);return Q};
dvl=function(){var A=VI5,t=YFT(Zpg,function(f){A.apply(void 0,arguments);oOu(t)});
return t};
oOu=function(A){var t=nOx();t&&(typeof A==="number"&&(A=[A]),_.X_(A,function(f){t.unsubscribeByKey(f);delete Ftb[f]}))};
nOx=function(){return _.Ae("ytPubsub2Pubsub2Instance")};
SFx=function(A,t,f){f=f===void 0?{sampleRate:.1}:f;Math.random()<Math.min(.02,f.sampleRate/100)&&Dvb("meta_logging_csi_event",{timerName:A,timelineData:t})};
_.$vx=function(A){return A?(A=A.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.QP(A):null:null};
_.KU=function(A){return A?(A=A.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.pb(A):null:null};
a2q=function(){Hpb||(Hpb=_.KU(_.ah("WORKER_SERIALIZATION_URL")));return Hpb||void 0};
_.gO0=function(){var A=a2q();Ktu||A===void 0||(Ktu=Bkx(A));return Ktu};
_.wiq=function(){return typeof Worker==="function"&&a2q()?!0:!1};
_.AYu=function(){if(_.wiq()&&!sOx){var A=function(f){f=f.data;if(f.op==="gzippedGelBatch"){var X=kDl.get(f.key);X&&(rLx(f.gzippedBatch,X.latencyPayload,X.url,X.options,X.sendFn),kDl.delete(f.key))}},t=_.gO0();
t&&(t.addEventListener("message",A),t.onerror=function(){kDl.clear()},sOx=!0)}};
ULq=function(A,t,f,X,Q){Q=Q===void 0?!1:Q;var q={startTime:(0,_.OJ)(),ticks:{},infos:{}};if(gb)try{var e=tvb(t);if(e!=null&&(e>fKl||e<XU5))X(A,f);else{if(_.M("gzip_gel_with_worker")&&(_.M("initial_gzip_use_main_thread")&&!Qgl||!_.M("initial_gzip_use_main_thread"))){sOx||_.AYu();var G=_.gO0();if(G&&!Q){kDl.set(qQ5,{latencyPayload:q,url:A,options:f,sendFn:X});G.postMessage({op:"gelBatchToGzip",serializedBatch:t,key:qQ5});qQ5++;return}}var N=EOb(JYz(t));rLx(N,q,A,f,X)}}catch(z){_.te(z),X(A,f)}else X(A,
f)};
rLx=function(A,t,f,X,Q){Qgl=!1;var q=(0,_.OJ)();t.ticks.gelc=q;wb++;_.M("disable_compression_due_to_performance_degredation")&&q-t.startTime>=eFT&&(Ghl++,gb=!1);lKs(t);X.headers||(X.headers={});X.headers["Content-Encoding"]="gzip";X.postBody=A;X.postParams=void 0;Q(f,X)};
uDu=function(A){var t=t===void 0?!1:t;var f=f===void 0?!1:f;var X=(0,_.OJ)(),Q={startTime:X,ticks:{},infos:{}},q=t?_.Ae("yt.logging.gzipForFetch",!1):!0;if(gb&&q){if(!A.body)return A;try{var e=f?A.body:typeof A.body==="string"?A.body:JSON.stringify(A.body);q=e;if(!f&&typeof e==="string"){var G=tvb(e);if(G!=null&&(G>fKl||G<XU5))return A;f=t?{level:1}:void 0;q=EOb(JYz(e),f);var N=(0,_.OJ)();Q.ticks.gelc=N;if(t){wb++;if((_.M("disable_compression_due_to_performance_degredation")||_.M("disable_compression_due_to_performance_degradation_lr"))&&
N-X>=eFT)if(Ghl++,_.M("abandon_compression_after_N_slow_zips_lr")){t=Ghl/wb;var z=NRx/_.cx("compression_disable_point");wb>0&&wb%_.cx("compression_disable_point")===0&&t>=z&&(gb=!1)}else gb=!1;lKs(Q)}}A.headers=Object.assign({},{"Content-Encoding":"gzip"},A.headers||{});A.body=q;return A}catch(T){return _.te(T),A}}else return A};
tvb=function(A){try{return(new Blob(A.split(""))).size}catch(t){return _.te(t),null}};
lKs=function(A){_.M("gel_compression_csi_killswitch")||!_.M("log_gel_compression_latency")&&!_.M("log_gel_compression_latency_lr")||SFx("gel_compression",A,{sampleRate:.1})};
zFb=function(){this.blockSize=-1};
sJ=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var A=1;A<this.blockSize;++A)this.pad_[A]=0;this.total_=this.inbuf_=0;this.reset()};
TRg=function(A){A=Object.assign({},A);delete A.Authorization;var t=_.Pob();if(t){var f=new sJ;f.update(_.ah("INNERTUBE_API_KEY"));f.update(t);A.hash=_.E2(f.digest(),3)}return A};
rb=function(){iNu||(iNu=new _.kt("yt.innertube"));return iNu};
ONT=function(A,t,f,X){if(X)return null;X=rb().get("nextId",!0)||1;var Q=rb().get("requests",!0)||{};Q[X]={method:A,request:t,authState:TRg(f),requestTime:Math.round((0,_.OJ)())};rb().set("nextId",X+1,86400,!0);rb().set("requests",Q,86400,!0);return X};
cYl=function(A){var t=rb().get("requests",!0)||{};delete t[A];rb().set("requests",t,86400,!0)};
Mv5=function(A){var t=rb().get("requests",!0);if(t){for(var f in t){var X=t[f];if(!(Math.round((0,_.OJ)())-X.requestTime<6E4)){var Q=X.authState,q=TRg(_.Kvu(!1));_.VG.equals(Q,q)&&(Q=X.request,"requestTimeMs"in Q&&(Q.requestTimeMs=Math.round((0,_.OJ)())),BRl(A,X.method,Q,{}));delete t[f]}}rb().set("requests",t,86400,!0)}};
Cob=function(A){var t;return(A=A==null?void 0:(t=A.error)==null?void 0:t.code)&&A>=400&&A<=599?!1:!0};
hF5=function(A){var t;A=A==null?void 0:(t=A.error)==null?void 0:t.code;return!(A!==400&&A!==415)};
mLq=function(){if(RFx)return RFx();var A={};RFx=Tm("LogsDatabaseV2",{objectStores:(A.LogsRequestsStore={addedAtVersion:2},A),shared:!1,upgrade:function(t,f,X){f(2)&&AO(t,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});f(3);f(5)&&(X=X.objectStore("LogsRequestsStore"),X.JSC$10771_wrapped.indexNames.contains("newRequest")&&X.JSC$10771_wrapped.deleteIndex("newRequest"),tO(X,"newRequestV2",["status","interface","timestamp"]));f(7)&&t.JSC$10756_wrapped.objectStoreNames.contains("sapisid")&&t.JSC$10756_wrapped.deleteObjectStore("sapisid");
f(9)&&t.JSC$10756_wrapped.objectStoreNames.contains("SWHealthLog")&&t.JSC$10756_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return RFx()};
f4=function(A){return _.UJ(mLq(),A)};
WIx=function(A,t){var f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return f={startTime:(0,_.OJ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},e.yield(f4(t),2);if(e.nextAddress!=3)return X=e.yieldResult,Q=Object.assign({},A,{options:JSON.parse(JSON.stringify(A.options)),interface:_.ah("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),e.yield(X.put("LogsRequestsStore",Q),3);q=e.yieldResult;f.ticks.tc=(0,_.OJ)();bNT(f);return e.return(q)})};
yYx=function(A,t){var f,X,Q,q,e,G,N,z,T;return _.l(function(O){if(O.nextAddress==1)return f={startTime:(0,_.OJ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},O.yield(f4(t),2);if(O.nextAddress!=3)return X=O.yieldResult,Q=_.ah("INNERTUBE_CONTEXT_CLIENT_NAME",0),q=[A,Q,0],e=[A,Q,(0,_.OJ)()],G=IDBKeyRange.bound(q,e),N="prev",_.M("use_fifo_for_networkless")&&(N="next"),z=void 0,T=A==="NEW"?"readwrite":"readonly",_.M("use_readonly_for_get_most_recent_by_status_killswitch")&&(T="readwrite"),
O.yield(_.eC(X,["LogsRequestsStore"],{mode:T,enableRetries:!0},function(c){return _.cD(c.objectStore("LogsRequestsStore").index("newRequestV2"),{query:G,direction:N},function(B){B.getValue()&&(z=B.getValue(),A==="NEW"&&(z.status="QUEUED",B.update(z)))})}),3);
f.ticks.tc=(0,_.OJ)();bNT(f);return O.return(z)})};
vFx=function(A,t){var f;return _.l(function(X){if(X.nextAddress==1)return X.yield(f4(t),2);f=X.yieldResult;return X.return(_.eC(f,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){var q=Q.objectStore("LogsRequestsStore");return q.get(A).then(function(e){if(e)return e.status="QUEUED",q.put(e).then(function(){return e})})}))})};
LI0=function(A,t,f,X){f=f===void 0?!0:f;var Q;return _.l(function(q){if(q.nextAddress==1)return q.yield(f4(t),2);Q=q.yieldResult;return q.return(_.eC(Q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){var G=e.objectStore("LogsRequestsStore");return G.get(A).then(function(N){return N?(N.status="NEW",f&&(N.sendCount+=1),X!==void 0&&(N.options.compress=X),G.put(N).then(function(){return N})):Aq.resolve(void 0)})}))})};
pU5=function(A,t){var f;return _.l(function(X){if(X.nextAddress==1)return X.yield(f4(t),2);f=X.yieldResult;return X.return(f.delete("LogsRequestsStore",A))})};
EFz=function(A){var t,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(f4(A),2);t=X.yieldResult;f=(0,_.OJ)()-2592E6;return X.yield(_.eC(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){return ln(Q.objectStore("LogsRequestsStore"),{},function(q){if(q.getValue().timestamp<=f)return q.delete().then(function(){return q.continue()})})}),0)})};
nF5=function(){_.l(function(A){return A.yield(C$x("LogsDatabaseV2"),0)})};
bNT=function(A){_.M("nwl_csi_killswitch")||SFx("networkless_performance",A,{sampleRate:1})};
_.FIx=function(A){return _.UJ(DLz(),A)};
IKq=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(_.FIx(A),2);t=X.yieldResult;f=(0,_.OJ)()-2592E6;return X.yield(_.eC(t,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Q){return ln(Q.objectStore("SWHealthLog"),{},function(q){if(q.getValue().timestamp<=f)return q.delete().then(function(){return q.continue()})})}),0)})};
xLg=function(A){var t;return _.l(function(f){if(f.nextAddress==1)return f.yield(_.FIx(A),2);t=f.yieldResult;return f.yield(t.clear("SWHealthLog"),0)})};
_.XO=function(A,t,f,X,Q,q,e){Q=Q===void 0?"":Q;q=q===void 0?!1:q;e=e===void 0?!1:e;if(A)if(f&&!wi("cobalt"))_.te(new _.xj("Legacy referrer-scrubbed ping detected")),A&&jgb(A,void 0,{scrubReferrer:!0});else if(Q)N05(A,t,"POST",Q,X);else if(_.ah("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||X||e)N05(A,t,"GET","",X,void 0,q,e);else{b:{try{c:{var G=new YQ5({url:A});if(G.urlParamValues_.dsh==="1")var N=null;else{var z=G.urlParamValues_.ae;if(z==="1"){var T=G.urlParamValues_.adurl;if(T)try{N={version:3,directUrl:decodeURIComponent(T),
asyncUrl:Zas(G.JSC$9559_url_,"act=1","ri=1",Vvg(G))};break c}catch(h){}}N=z==="2"?{version:4,directUrl:Zas(G.JSC$9559_url_,"dct=1","suid="+G.suid_,"ri=1"),asyncUrl:Zas(G.JSC$9559_url_,"act=1","ri=1","suid="+G.suid_)}:null}}if(N){var O=_.Wx(A);var c=!(!O||!O.endsWith("/aclk")||_.ww(A,"ri")!=="1");break b}}catch(h){}c=!1}if(c){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(A,"")){var B=!0;break b}}catch(h){}B=!1}B?(t&&t(),f=!0):f=!1}else f=!1;f||jgb(A,t)}};
jgb=function(A,t,f){f=f===void 0?{}:f;var X=new Image,Q=""+ZNT++;oFp[Q]=X;X.onload=X.onerror=function(){t&&oFp[Q]&&t();delete oFp[Q]};
f.scrubReferrer&&(X.referrerPolicy="no-referrer");X.src=A};
Qy=function(A,t){dLb(A,t==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
SQx=function(A){var t;return((t=document.featurePolicy)==null?0:t.allowedFeatures().includes("attribution-reporting"))?A+"&nis=6":A+"&nis=5"};
$L0=function(A){if(!A)return!1;try{var t;if(((t=_.Q$(A))==null?void 0:t.asm)==="4")return!0}catch(f){_.g9(f)}return!1};
dLb=function(A,t){t?(A=SQx(A),_.XO(A,void 0,void 0,void 0,"",!0,!0)):_.XO(A)};
aKT=function(){HNp||(HNp=new _.kt("yt.offline"));return HNp};
KIx=function(A){if(_.M("offline_error_handling")){var t=aKT().get("errors",!0)||{};t[A.message]={name:A.name,stack:A.stack};A.level&&(t[A.message].level=A.level);aKT().set("errors",t,2592E3,!0)}};
wUx=function(A,t,f,X){X=X===void 0?!1:X;t=_.M("web_fp_via_jspb")?Object.assign({},t):t;_.M("use_cfr_monitor")&&gFx(A,t);if(_.M("use_request_time_ms_header"))t.headers&&NG(A)&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.OJ)())));else{var Q;if((Q=t.postParams)==null?0:Q.requestTimeMs)t.postParams.requestTimeMs=Math.round((0,_.OJ)())}f&&Object.keys(t).length===0?_.XO(A):t.compress?t.postBody?(typeof t.postBody!=="string"&&(t.postBody=JSON.stringify(t.postBody)),ULq(A,t.postBody,
t,_.y$,X)):ULq(A,JSON.stringify(t.postParams),t,T0T,X):_.y$(A,t)};
sgx=function(A,t){_.M("use_event_time_ms_header")&&NG(A)&&(t.headers||(t.headers={}),t.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.OJ)())));return t};
_.rYs=function(){kh5||(kh5=new _.qA({logOfflineErrors:!0,enablePolling:!0}));return kh5};
gFx=function(A,t){var f=t.onError?t.onError:function(){};
t.onError=function(Q,q){JO().requestComplete(A,!1);f(Q,q)};
var X=t.onSuccess?t.onSuccess:function(){};
t.onSuccess=function(Q,q){JO().requestComplete(A,!0);X(Q,q)}};
_.A7u=function(){return _.G7(document.location.toString())!=="www.youtube-nocookie.com"};
_.Xn0=function(){return _.Ae("ytNetworklessLoggingInitializationOptions")?_.tr0.isNwlInitialized:_.fYb};
Q8u=function(A,t){if(_.M("polymer_on_demand_shady_dom")){var f;var X=(f=A.__shady_native_firstElementChild)!=null?f:A.firstElementChild}else X=A.firstElementChild;for(;X;){if(A=t(X)?X:Q8u(X,t))return A;X=X.nextElementSibling}return null};
J7l=function(){var A=document;if("visibilityState"in A)return A.visibilityState;var t=qX5+"VisibilityState";if(t in A)return A[t]};
_.Ux5=function(A,t){var f;Uv(A,function(X){f=t[X];return!!f});
return f};
_.GO=function(A){var t=epp(A);t?t.focus(void 0):_.eY(A)};
epp=function(A){return(A=Q8u(A,function(t){return _.lX(t)?GVl(t)&&!!t.offsetParent:!1}))?A:null};
_.eY=function(A,t){A.hasAttribute("tabindex")||A.setAttribute("tabindex","-1");A.focus(t)};
lYb=function(A,t,f,X){X=X===void 0?{}:X;A.addEventListener&&(t!="mouseenter"||"onmouseenter"in document?t!="mouseleave"||"onmouseenter"in document?t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"):t="mouseout":t="mouseover");return _.VG.findKey(NA,function(Q){var q=typeof Q[4]==="boolean"&&Q[4]==!!X,e=_.Hp(Q[4])&&_.Hp(X)&&_.VG.equals(Q[4],X);return!!Q.length&&Q[0]==A&&Q[1]==t&&Q[2]==f&&(q||e)})};
_.zO=function(A,t,f,X){X=X===void 0?{}:X;if(!A||!A.addEventListener&&!A.attachEvent)return"";var Q=lYb(A,t,f,X);if(Q)return Q;Q=++Ntx.count+"";var q=!(t!="mouseenter"&&t!="mouseleave"||!A.addEventListener||"onmouseenter"in document);var e=q?function(G){G=new uX(G);if(!_.Hd(G.relatedTarget,function(N){return N==A},!0))return G.currentTarget=A,G.type=t,f.call(A,G)}:function(G){G=new uX(G);
G.currentTarget=A;return f.call(A,G)};
e=_.r9(e);A.addEventListener?(t=="mouseenter"&&q?t="mouseover":t=="mouseleave"&&q?t="mouseout":t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"),uHx()||typeof X==="boolean"?A.addEventListener(t,e,X):A.addEventListener(t,e,!!X.capture)):A.attachEvent("on"+t,e);NA[Q]=[A,t,f,e,X];return Q};
_.PPx=function(A,t,f){var X=X===void 0?{}:X;var Q=_.zO(A,t,function(){_.zpb(Q);f.apply(A,arguments)},X)};
_.zpb=function(A){A&&(typeof A=="string"&&(A=[A]),_.X_(A,function(t){if(t in NA){var f=NA[t],X=f[0],Q=f[1],q=f[3];f=f[4];X.removeEventListener?uHx()||typeof f==="boolean"?X.removeEventListener(Q,q,f):X.removeEventListener(Q,q,!!f.capture):X.detachEvent&&X.detachEvent("on"+Q,q);delete NA[t]}}))};
PQ=function(A){this.callback_=A;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(A=0;A<4;A++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.zO(window,"mousemove",(0,_.F1)(this.onMouseMove_,this));this.timerId_=_.my((0,_.F1)(this.checkPosition_,this),25)};
OI5=function(){var A={};var t=A.preferMobileEvents===void 0?!1:A.preferMobileEvents;A=A.enableScrollEventListener===void 0?!0:A.enableScrollEventListener;if(_.Ae("_lact",window)==null){var f=parseInt(_.ah("LACT"),10);f=isFinite(f)?Date.now()-Math.max(f,0):-1;_.zm("_lact",f,window);_.zm("_fact",f,window);f==-1&&_.TO();Ttb(window,t,A);new PQ(function(){iIg("mouse",100)})}};
Ttb=function(A,t,f){t=t===void 0?!1:t;f=f===void 0?!0:f;_.zO(A.document,"keydown",_.TO);_.zO(A.document,"keyup",_.TO);_.zO(A.document,"mousedown",_.TO);_.zO(A.document,"mouseup",_.TO);t?_.zO(A,"touchmove",function(){iIg("touchmove",200)},{passive:!0}):(_.zO(A,"resize",function(){iIg("resize",200)}),f&&_.zO(A,"scroll",function(){iIg("scroll",200)}));
_.zO(A.document,"touchstart",_.TO,{passive:!0});_.zO(A.document,"touchend",_.TO,{passive:!0})};
iIg=function(A,t){c7s[A]||(c7s[A]=!0,_.a6.addLowPriorityJob(function(){_.TO();c7s[A]=!1},t))};
_.TO=function(){_.Ae("_lact",window)==null&&OI5();var A=Date.now();_.zm("_lact",A,window);_.Ae("_fact",window)==-1&&_.zm("_fact",A,window);(A=_.Ae("ytglobal.ytUtilActivityCallback_"))&&A()};
_.iX=function(){var A=_.Ae("_lact",window);return A==null?-1:Math.max(Date.now()-A,0)};
_.MA=function(A,t,f){var X=_.Ov();if(X&&t){var Q=X.subscribe(A,function(){var q=arguments,e=function(){cQ[Q]&&t.apply&&typeof t.apply=="function"&&t.apply(f||window,q)};
try{_.Btl[A]?e():_.Rj(e,0)}catch(G){_.g9(G)}},f);
cQ[Q]=!0;BQ[A]||(BQ[A]=[]);BQ[A].push(Q);return Q}return 0};
_.Mrl=function(A){var t=_.Ov();t&&(typeof A==="number"?A=[A]:typeof A==="string"&&(A=[parseInt(A,10)]),_.X_(A,function(f){t.unsubscribeByKey(f);delete cQ[f]}))};
_.CPx=function(A,t){var f=_.Ov();f&&f.publish.apply(f,arguments)};
_.RpT=function(A){var t=_.Ov();if(t)if(t.clear(A),A)hp5(A);else for(var f in BQ)hp5(f)};
_.Ov=function(){return _.Xb.ytPubsubPubsubInstance};
hp5=function(A){BQ[A]&&(A=BQ[A],_.X_(A,function(t){cQ[t]&&delete cQ[t]}),A.length=0)};
mx5=function(){var A,t;return"h5vcc"in C4&&((A=C4.h5vcc.traceEvent)==null?0:A.traceBegin)&&((t=C4.h5vcc.traceEvent)==null?0:t.traceEnd)?1:"performance"in C4&&C4.performance.mark&&C4.performance.measure?2:0};
bIT=function(A){var t=mx5();switch(t){case 1:C4.h5vcc.traceEvent.traceBegin("YTLR",A);break;case 2:C4.performance.mark(A+"-start");break;case 0:break;default:_.ap(t,"unknown trace type")}};
WGb=function(A){var t=mx5();switch(t){case 1:C4.h5vcc.traceEvent.traceEnd("YTLR",A);break;case 2:t=A+"-start";var f=A+"-end";C4.performance.mark(f);C4.performance.measure(A,t,f);break;case 0:break;default:_.ap(t,"unknown trace type")}};
y7b=function(A){var t,f;(f=(t=window).onerror)==null||f.call(t,A.message,"",0,0,A)};
vA5=function(A){if(_.M("web_lifecycle_error_handling_killswitch"))return A();try{return A()}catch(t){y7b(t)}};
LGx=function(A){return[A.auth===void 0?"undefined":A.auth,A.isJspb===void 0?"undefined":A.isJspb,A.cttAuthInfo===void 0?"undefined":A.cttAuthInfo,A.tier===void 0?"undefined":A.tier].join("/")};
_.C=function(A,t){if(A)return A[t.name]};
Ri=function(){var A=_.Ae("yt.logging.ims");A||(A=new hO,_.zm("yt.logging.ims",A));return A};
YXx=function(A,t){if(A.endpoint==="log_event"){pnu(A);var f=EA0(A),X=nAu(A.payload)||"",Q=Dx5(X),q=200;if(Q){if(Q.enabled===!1&&!_.M("web_payload_policy_disabled_killswitch"))return;q=FGu(Q.tier);if(q===400){IYb(A,t);return}}bX[f]=!0;f={cttAuthInfo:f,isJspb:!1,tier:q};Ri().storePayload(f,A.payload);xx5(t,!1,f,j8q(X))}};
ZIp=function(A,t,f){if(t.endpoint==="log_event"){pnu(void 0,t);var X=EA0(t,!0),Q=Dx5(A),q=200;if(Q){if(Q.enabled===!1&&!_.M("web_payload_policy_disabled_killswitch"))return;q=FGu(Q.tier);if(q===400){Vr5(A,t,f);return}}bX[X]=!0;X={cttAuthInfo:X,isJspb:!0,tier:q};Ri().storePayload(X,Dc(t.payload));xx5(f,!0,X,j8q(A))}};
xx5=function(A,t,f,X){t=t===void 0?!1:t;X=X===void 0?!1:X;A&&(WQ=new A);A=_.cx("tvhtml5_logging_max_batch_ads_fork")||_.cx("tvhtml5_logging_max_batch")||_.cx("web_logging_max_batch")||100;var Q=(0,_.OJ)(),q=oAg(t,f.tier),e=q.lastDebounceQueueFromLogTimeMs;X&&(q.useVideoStatsEndPoint=!0);X=0;f&&(X=Ri().getSequenceCount(f));var G=function(){dxl({writeThenSend:!0},t,f.tier)};
X>=1E3?G():X>=A?SXx||(SXx=$xb(function(){G();SXx=void 0},0)):Q-e>=10&&(HI5(t,f.tier),q.lastDebounceQueueFromLogTimeMs=Q)};
IYb=function(A,t){if(A.endpoint==="log_event"){_.M("more_accurate_gel_parser")&&Ri().storePayload({isJspb:!1},A.payload);pnu(A);var f=EA0(A),X=new Map;X.set(f,[A.payload]);var Q=nAu(A.payload)||"";t&&(WQ=new t);return new _.yy(function(q,e){WQ&&WQ.isReady()?aYu(X,WQ,q,e,{bypassNetworkless:!0},!0,j8q(Q)):q()})}};
Vr5=function(A,t,f){if(t.endpoint==="log_event"){pnu(void 0,t);var X=EA0(t,!0),Q=new Map;Q.set(X,[Dc(t.payload)]);f&&(WQ=new f);return new _.yy(function(q){WQ&&WQ.isReady()?KGg(Q,WQ,q,{bypassNetworkless:!0},!0,j8q(A)):q()})}};
EA0=function(A,t){var f="";if(A.dangerousLogToVisitorSession)f="visitorOnlyApprovedKey";else if(A.cttAuthInfo){if(t===void 0?0:t){t=A.cttAuthInfo.token;f=A.cttAuthInfo;var X=new gAl;f.videoId?X.setVideoId(f.videoId):f.playlistId&&vQ(X,2,wnq,BA(f.playlistId));s8s[t]=X}else t=A.cttAuthInfo,f={},t.videoId?f.videoId=t.videoId:t.playlistId&&(f.playlistId=t.playlistId),kVb[A.cttAuthInfo.token]=f;f=A.cttAuthInfo.token}return f};
dxl=function(A,t,f){A=A===void 0?{}:A;t=t===void 0?!1:t;new _.yy(function(X,Q){var q=oAg(t,f),e=q.useVideoStatsEndPoint;q.useVideoStatsEndPoint=!1;r7b(q.queueTimer);r7b(q.queueMaxTimer);q.queueMaxTimer=0;WQ&&WQ.isReady()?f===void 0&&_.M("enable_web_tiered_gel")?Aog(X,Q,A,t,300,e):Aog(X,Q,A,t,f,e):(HI5(t,f),X())})};
Aog=function(A,t,f,X,Q,q){var e=WQ;f=f===void 0?{}:f;X=X===void 0?!1:X;Q=Q===void 0?200:Q;q=q===void 0?!1:q;var G=new Map,N=new Map,z={isJspb:X,cttAuthInfo:void 0,tier:Q},T={isJspb:X,cttAuthInfo:void 0};if(X){t=_.U(Object.keys(bX));for(Q=t.next();!Q.done;Q=t.next())Q=Q.value,N=_.M("enable_web_tiered_gel")?Ri().smartExtractMatchingEntries({keys:[z,T],sizeLimit:1E3}):Ri().extractMatchingEntries({isJspb:!0,cttAuthInfo:Q}),N.length>0&&G.set(Q,N),(_.M("web_fp_via_jspb_and_json")&&f.writeThenSend||!_.M("web_fp_via_jspb_and_json"))&&
delete bX[Q];KGg(G,e,A,f,!1,q)}else{G=_.U(Object.keys(bX));for(z=G.next();!z.done;z=G.next())z=z.value,T=_.M("enable_web_tiered_gel")?Ri().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:z,tier:Q},{isJspb:!1,cttAuthInfo:z}],sizeLimit:1E3}):Ri().extractMatchingEntries({isJspb:!1,cttAuthInfo:z}),T.length>0&&N.set(z,T),(_.M("web_fp_via_jspb_and_json")&&f.writeThenSend||!_.M("web_fp_via_jspb_and_json"))&&delete bX[z];aYu(N,e,A,t,f,!1,q)}};
HI5=function(A,t){A=A===void 0?!1:A;t=t===void 0?200:t;var f=function(){dxl({writeThenSend:!0},A,t)},X=oAg(A,t),Q=X===tlx||X===fn5?5E3:XOz;
_.M("web_gel_timeout_cap")&&!X.queueMaxTimer&&(Q=$xb(function(){f()},Q),X.queueMaxTimer=Q);
r7b(X.queueTimer);Q=_.ah("LOGGING_BATCH_TIMEOUT",_.cx("web_gel_debounce_ms",1E4));_.M("shorten_initial_gel_batch_timeout")&&QMT&&(Q=q7z);Q=$xb(function(){_.cx("gel_min_batch_size")>0?Ri().getSequenceCount({cttAuthInfo:void 0,isJspb:A,tier:t})>=Jox&&f():f()},Q);
X.queueTimer=Q};
aYu=function(A,t,f,X,Q,q,e){Q=Q===void 0?{}:Q;var G=Math.round((0,_.OJ)()),N=A.size,z=UIp(e);A=_.U(A);var T=A.next();for(e={};!T.done;e={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},T=A.next()){var O=_.U(T.value);T=O.next().value;O=O.next().value;e.batchRequest=_.VG.unsafeClone({context:_.Ypx(t.config_||_.BD())});if(!_.ST(O)&&!_.M("throw_err_when_logevent_malformed_killswitch")){X();break}e.batchRequest.events=O;
(O=kVb[T])&&enb(e.batchRequest,T,O);delete kVb[T];e.dangerousLogToVisitorSession=T==="visitorOnlyApprovedKey";G6q(e.batchRequest,G,e.dangerousLogToVisitorSession);lng(Q);e.onSuccess$jscomp$3=function(c){_.M("start_client_gcf")&&_.a6.addLowPriorityJob(function(){return _.l(function(B){return B.yield(Neq(c),0)})});
N--;N||f()};
e.networkFailures=0;e.onError$jscomp$5=function(c){return function(){c.networkFailures++;if(Q.bypassNetworkless&&c.networkFailures===1)try{BRl(t,z,c.batchRequest,uRs({writeThenSend:!0},c.dangerousLogToVisitorSession,c.onSuccess$jscomp$3,c.onError$jscomp$5,q)),QMT=!1}catch(B){_.g9(B),X()}N--;N||f()}}(e);
try{BRl(t,z,e.batchRequest,uRs(Q,e.dangerousLogToVisitorSession,e.onSuccess$jscomp$3,e.onError$jscomp$5,q)),QMT=!1}catch(c){_.g9(c),X()}}};
KGg=function(A,t,f,X,Q,q){X=X===void 0?{}:X;var e=Math.round((0,_.OJ)()),G={value:A.size},N=new Map([].concat(_.YV(A)));N=_.U(N);for(var z=N.next();!z.done;z=N.next()){var T=_.U(z.value).next().value,O=A.get(T);z=new zng;var c=t.config_||_.BD(),B=new L4,h=new PmT;_.Dg(h,1,c.innertubeContextHostLanguage);_.Dg(h,2,c.innertubeContextGeoLocation);_.CU(h,16,c.innertubeContextClientNameFieldNumber);_.Dg(h,17,c.innertubeContextClientVersion);if(c.innertubeContextClientConfigInfo){var W=c.innertubeContextClientConfigInfo,
L=new R6;W.coldConfigData&&_.Dg(L,1,W.coldConfigData);W.appInstallData&&_.Dg(L,6,W.appInstallData);W.coldHashData&&_.Dg(L,3,W.coldHashData);W.hotHashData&&L.setHotHashData(W.hotHashData);_.bi(h,62,L)}(W=_.Xb.devicePixelRatio)&&W!=1&&_.hq(h,65,_.KS(W));W=fNq();W!==""&&_.Dg(h,54,W);W=XtT();if(W.length>0){L=new Tez;for(var E=0;E<W.length;E++){var D=new p4;D.setKey(W[E].key);vQ(D,2,i1b,BA(W[E].value));Ev(L,15,p4,D)}_.bi(B,5,L)}nIT(c,h);D_x(B);Fvu(h);Itl(c,h);x_0(h);_.M("start_client_gcf")&&jCb(h);_.ah("DELEGATED_SESSION_ID")&&
!_.M("pageid_as_header_web")&&(c=new n4,_.Dg(c,3,_.ah("DELEGATED_SESSION_ID")));!_.M("fill_delegate_context_in_gel_killswitch")&&(W=_.ah("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(L=_.Mq(B,n4,3)||new n4,c=B,W=_.Dg(L,18,W),_.bi(c,3,W));c=h;W=_.U(Object.entries(_.Q$(_.ah("DEVICE",""))));for(L=W.next();!L.done;L=W.next())E=_.U(L.value),L=E.next().value,E=E.next().value,L==="cbrand"?_.Dg(c,12,E):L==="cmodel"?_.Dg(c,13,E):L==="cbr"?_.Dg(c,87,E):L==="cbrver"?_.Dg(c,88,E):L==="cos"?_.Dg(c,18,
E):L==="cosver"?_.Dg(c,19,E):L==="cplatform"&&_.CU(c,42,n75(E));B.setClient(h);_.bi(z,1,B);if(h=s8s[T])a:{if(_.Wf(h,D3(h,wnq,1)))B=1;else if(h.getPlaylistId())B=2;else break a;_.bi(z,4,h);h=z.getContext()||new L4;c=_.Mq(h,n4,3)||new n4;W=new FO;W.setToken(T);_.CU(W,1,B);Ev(c,12,FO,W);_.bi(h,3,c)}delete s8s[T];T=T==="visitorOnlyApprovedKey";O1b()||_.Ii(z,2,e);!T&&(B=_.ah("EVENT_ID"))&&(h=cop(),c=new Be5,_.Dg(c,1,B),_.Ii(c,2,h),_.bi(z,5,c));lng(X);if(_.M("jspb_serialize_with_worker")&&(B=_.gO0())&&
X.writeThenSend){_.Mlb.set(Cml,{client:t,resolve:f,networklessOptions:X,isIsolated:Q,useVSSEndpoint:q,dangerousLogToVisitorSession:T,requestsOutstanding:G});B.postMessage({op:"gelBatchToSerialize",batchRequest:Dc(z),clientEvents:O,key:Cml});Cml++;break}if(O){B=[];for(h=0;h<O.length;h++)try{B.push(new xB(O[h]))}catch(S){_.g9(new _.xj("Transport failed to deserialize "+String(O[h])))}O=B}else O=[];O=_.U(O);for(B=O.next();!B.done;B=O.next())Ev(z,3,xB,B.value);O={startTime:(0,_.OJ)(),ticks:{},infos:{}};
z=z.serialize();O.ticks.geljspc=(0,_.OJ)();_.M("log_jspb_serialize_latency")&&SFx("gel_jspb_serialize",O,{sampleRate:.1});_.hnT(z,t,f,X,Q,q,T,G)}};
_.hnT=function(A,t,f,X,Q,q,e,G){X=X===void 0?{}:X;G=G===void 0?{value:0}:G;q=UIp(q);X=uRs(X,e,function(N){_.M("start_client_gcf")&&_.a6.addLowPriorityJob(function(){return _.l(function(z){return z.yield(Neq(N),0)})});
G.value--;G.value||f()},function(){G.value--;
G.value||f()},Q);
X.headers["Content-Type"]="application/json+protobuf";X.postBodyFormat="JSPB";X.postBody=A;BRl(t,q,"",X);QMT=!1};
lng=function(A){_.M("always_send_and_write")&&(A.writeThenSend=!1)};
uRs=function(A,t,f,X,Q){A={retry:!0,onSuccess:f,onError:X,networklessOptions:A,dangerousLogToVisitorSession:t,bypassMonitoring:!!Q,headers:{},postBodyFormat:"",postBody:"",compress:_.M("compress_gel")||_.M("compress_gel_lr")};O1b()&&(A.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.OJ)())));return A};
G6q=function(A,t,f){O1b()||(A.requestTimeMs=String(t));_.M("unsplit_gel_payloads_in_logs")&&(A.unsplitGelPayloadsInLogs=!0);!f&&(t=_.ah("EVENT_ID"))&&(f=cop(),A.serializedClientEventId={serializedEventId:t,clientCounter:String(f)})};
cop=function(){var A=_.ah("BATCH_CLIENT_COUNTER")||0;A||(A=Math.floor(Math.random()*65535/2));A++;A>65535&&(A=1);_.H5("BATCH_CLIENT_COUNTER",A);return A};
enb=function(A,t,f){if(f.videoId)var X="VIDEO";else if(f.playlistId)X="PLAYLIST";else return;A.credentialTransferTokenTargetId=f;A.context=A.context||{};A.context.user=A.context.user||{};A.context.user.credentialTransferTokens=[{token:t,scope:X}]};
pnu=function(A,t){var f=_.Bx("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Ae("yt.logging.transport.enableScrapingForTest"))if(f)Rnb=[],_.zm("yt.logging.transport.enableScrapingForTest",!0),_.zm("yt.logging.transport.scrapedPayloadsForTesting",Rnb),_.zm("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.zm("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.zm("yt.logging.transport.scrapeClientEvent",!0);else return;f=_.Ae("yt.logging.transport.scrapedPayloadsForTesting");var X=_.Ae("yt.logging.transport.payloadToScrape");t&&(t=_.Ae("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(t.payload)())&&f.push(t);t=_.Ae("yt.logging.transport.scrapeClientEvent");if(X&&X.length>=1)for(var Q=0;Q<X.length;Q++)if(A&&A.payload[X[Q]])if(t)f.push(A.payload);else{var q=void 0;f.push(((q=A)==null?void 0:q.payload)[X[Q]])}_.zm("yt.logging.transport.scrapedPayloadsForTesting",
f)};
O1b=function(){return _.M("use_request_time_ms_header")||_.M("lr_use_request_time_ms_header")};
$xb=function(A,t){return _.M("transport_use_scheduler")===!1?_.Rj(A,t):_.M("logging_avoid_blocking_during_navigation")||_.M("lr_logging_avoid_blocking_during_navigation")?_.jY(_.a6,function(){if(_.mIz().currentState==="none")A();else{var f={};_.mIz().install((f.none={callback:A},f))}},t):_.jY(_.a6,A,t)};
r7b=function(A){_.M("transport_use_scheduler")?_.a6.cancelJob(A):_.b2(A)};
Neq=function(A){var t,f,X,Q,q,e,G,N,z,T;return _.l(function(O){return O.nextAddress==1?(X=(t=A)==null?void 0:(f=t.responseContext)==null?void 0:f.globalConfigGroup,Q=_.C(X,b1z),e=(q=X)==null?void 0:q.hotHashData,G=_.C(X,Wf5),z=(N=X)==null?void 0:N.coldHashData,(T=_.Px().resolve(_.z7(YB)))?e?Q?O.yield(yog(T,e,Q),2):O.yield(yog(T,e),2):O.jumpTo(2):O.return()):z?G?O.yield(vEb(T,z,G),0):O.yield(vEb(T,z),0):O.jumpTo(0)})};
oAg=function(A,t){t=t===void 0?200:t;return A?t===300?tlx:Lfu:t===300?fn5:pOl};
Dx5=function(A){if(_.M("enable_web_tiered_gel")){A=EEp[A||""];var t,f,X,Q=_.Px().resolve(_.z7(YB))==null?void 0:(t=Vy())==null?void 0:(f=t.loggingHotConfig)==null?void 0:(X=f.eventLoggingConfig)==null?void 0:X.payloadPolicies;if(Q)for(t=0;t<Q.length;t++)if(Q[t].payloadNumber===A)return Q[t]}};
nAu=function(A){A=Object.keys(A);A=_.U(A);for(var t=A.next();!t.done;t=A.next())if(t=t.value,EEp[t])return t};
FGu=function(A){switch(A){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}};
j8q=function(A){return A==="gelDebuggingEvent"};
UIp=function(A){return(A===void 0?0:A)&&_.M("vss_through_gel_video_stats")?"video_stats":"log_event"};
oi=function(A,t,f,X){X=X===void 0?{}:X;var Q={},q=Math.round(X.timestamp||(0,_.OJ)());Q.eventTimeMs=q<Number.MAX_SAFE_INTEGER?q:0;Q[A]=t;A=_.iX();Q.context={lastActivityMs:String(X.timestamp||!isFinite(A)?-1:A)};X.sequenceGroup&&!_.M("web_gel_sequence_info_killswitch")&&(A=Q.context,t=X.sequenceGroup,t={index:nEx(t),groupKey:t},A.sequence=t,X.endOfSequence&&delete Z3[X.sequenceGroup]);_.M("web_tag_automated_log_events")&&(Q.context.automatedLogEventSource=X.automatedLogEventSource);(X.sendIsolatedPayload?
IYb:YXx)({endpoint:"log_event",payload:Q,cttAuthInfo:X.cttAuthInfo,dangerousLogToVisitorSession:X.dangerousLogToVisitorSession},f)};
nEx=function(A){Z3[A]=A in Z3?Z3[A]+1:0;return Z3[A]};
_.SY=function(A,t,f){f=f===void 0?{}:f;var X=dL;_.Ka("ytLoggingEventsDefaultDisabled",!1)&&dL===dL&&(X=null);oi(A,t,X,f)};
_.$B=function(){if(_.M("web_fp_via_jspb")){var A=!0;A=A===void 0?!1:A;var t=DIx;DIx=[];if(t){t=_.U(t);for(var f=t.next();!f.done;f=t.next())f=f.value,A?oi(f.payloadName,f.payload,dL,f.options):_.SY(f.payloadName,f.payload,f.options)}dxl(void 0,!0);if(!_.M("web_fp_via_jspb_and_json"))return}dxl(void 0,!1)};
Ff0=function(A,t){var f;if((f=t)==null?0:f.componentStack)return t;if(A=A.componentStack)t||(t={}),t.componentStack=A;return t};
In0=function(){_.X_(_.ah("ERRORS")||[],function(A){_.HQ.apply(null,A)});
_.H5("ERRORS",[])};
_.ai=function(A){_.HQ(A)};
_.K4=function(A){_.HQ(A,"WARNING")};
xIp=function(A){A instanceof Error?_.HQ(A):(A=_.Hp(A)?JSON.stringify(A):String(A),A=new _.xj(A),A.name="RejectedPromiseError",_.K4(A))};
jMb=function(A,t,f,X,Q,q){t=t===void 0?"Unknown file":t;f=f===void 0?0:f;var e=!1,G=Fxx("log_window_onerror_fraction");if(G&&Math.random()<G)e=!0;else{G=document.getElementsByTagName("script");for(var N=0,z=G.length;N<z;N++)if(G[N].src.indexOf("/debug-")>0){e=!0;break}}e&&(e=!1,Q?e=!0:(typeof A==="string"?G=A:ErrorEvent&&A instanceof ErrorEvent?(e=!0,G=A.message,t=A.filename,f=A.lineno,X=A.colno):(G="Unknown error",t="Unknown file",f=0),Q=new _.xj(G),Q.name="UnhandledWindowError",Q.message=G,Q.fileName=
t,Q.lineNumber=f,isNaN(X)?delete Q.columnNumber:Q.columnNumber=X),_.M("wiz_enable_component_stack_propagation_killswitch")||(q=Ff0(Q,q)),q&&_.gL(Q,q),e?_.HQ(Q):_.K4(Q))};
_.HQ=function(A,t,f,X,Q,q,e,G){q=q===void 0?{}:q;q.name=f||_.ah("INNERTUBE_CONTEXT_CLIENT_NAME",1);q.version=X||_.ah("INNERTUBE_CONTEXT_CLIENT_VERSION");f=q;t=t===void 0?"ERROR":t;e=e===void 0?!1:e;t=t===void 0?"ERROR":t;e=e===void 0?!1:e;if(A&&(A.hasOwnProperty("level")&&A.level&&(t=A.level),_.M("console_log_js_exceptions")&&(X=[],X.push("Name: "+A.name),X.push("Message: "+A.message),A.hasOwnProperty("params")&&X.push("Error Params: "+JSON.stringify(A.params)),A.hasOwnProperty("args")&&X.push("Error args: "+
JSON.stringify(A.args)),X.push("File name: "+A.fileName),X.push("Stacktrace: "+A.stack),X=X.join("\n"),window.console.log(X,A)),!(Y7l>=5))){X=[];Q=_.U(VlT);for(q=Q.next();!q.done;q=Q.next()){q=q.value;try{q()&&X.push(q())}catch(L){}}X=[].concat(_.YV(Z15),_.YV(X));var N=oEb(A);Q=N.message||"Unknown Error";q=N.name||"UnknownError";var z=N.stack||A.stacktrace||"Not available";if(z.startsWith(q+": "+Q)){var T=z.split("\n");T.shift();z=T.join("\n")}T=N.lineNumber||"Not available";N=N.fileName||"Not available";
var O=0;if(A.hasOwnProperty("args")&&A.args&&A.args.length)for(var c=0;c<A.args.length&&!(O=E70(A.args[c],"params."+c,f,O),O>=500);c++);else if(A.hasOwnProperty("params")&&A.params){var B=A.params;if(typeof A.params==="object")for(c in B){if(B[c]){var h="params."+c,W=pk(B[c]);f[h]=W;O+=h.length+W.length;if(O>500)break}}else f.params=pk(B)}if(X.length)for(c=0;c<X.length&&!(O=E70(X[c],"params.context."+c,f,O),O>=500);c++);navigator.vendor&&!f.hasOwnProperty("vendor")&&(f["device.vendor"]=navigator.vendor);
c={message:Q,name:q,lineNumber:T,fileName:N,stack:z,params:f,sampleWeight:1};f=Number(A.columnNumber);isNaN(f)||(c.lineNumber=c.lineNumber+":"+f);if(A.level==="IGNORED")A=0;else a:{A=dIu();f=_.U(A.messageWeights);for(X=f.next();!X.done;X=f.next())if(X=X.value,c.message&&c.message.match(X.messageRegExp)){A=X.weight;break a}A=_.U(A.callbackWeights);for(f=A.next();!f.done;f=A.next())if(f=f.value,f.callback(c)){A=f.weight;break a}A=1}c.sampleWeight=A;A=_.U(S75);for(f=A.next();!f.done;f=A.next())if(f=
f.value,f.patternsForType[c.name])for(Q=_.U(f.patternsForType[c.name]),X=Q.next();!X.done;X=Q.next())if(q=X.value,X=c.message.match(q.regexp)){c.params["params.error.original"]=X[0];Q=q.groups;q={};for(T=0;T<Q.length;T++)q[Q[T]]=X[T+1],c.params["params.error."+Q[T]]=X[T+1];c.message=f.messageFn(q);break}c.params||(c.params={});A=dIu();c.params["params.errorServiceSignature"]="msg="+A.messageWeights.length+"&cb="+A.callbackWeights.length;c.params["params.serviceWorker"]="false";_.Xb.document&&_.Xb.document.querySelectorAll&&
(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new wL($Ix,"sample")).constructor!==wL&&(c.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(c);if(c.sampleWeight!==0&&!H10.has(c.message)){if(e&&_.M("web_enable_error_204"))anl(t===void 0?"ERROR":t,c);else{t=t===void 0?"ERROR":t;t==="ERROR"?(sv.publish("handleError",c),_.M("record_app_crashed_web")&&Kfx===0&&c.sampleWeight===1&&(Kfx++,e={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.M("report_client_error_with_app_crash_ks")||(e.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),_.SY("appCrashed",e)),gEx++):t==="WARNING"&&sv.publish("handleWarning",c);if(_.M("kevlar_gel_error_routing")){e=t;G=G===void 0?{}:G;b:{A=_.U(wOp);for(f=A.next();!f.done;f=A.next())if(wi(f.value.toLowerCase())){A=!0;break b}A=!1}if(A)G=void 0;else{f={stackTrace:c.stack};c.fileName&&(f.filename=c.fileName);A=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];A.length!==
0&&(A.length!==1||isNaN(Number(A[0]))?A.length!==2||isNaN(Number(A[0]))||isNaN(Number(A[1]))||(f.lineNumber=Number(A[0]),f.columnNumber=Number(A[1])):f.lineNumber=Number(A[0]));A={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};e==="ERROR"?A.level="ERROR_LEVEL_ERROR":e==="WARNING"&&(A.level="ERROR_LEVEL_WARNNING");f={isObfuscated:!0,browserStackInfo:f};G.pageUrl=window.location.href;G.kvPairs=[];_.ah("FEXP_EXPERIMENTS")&&(G.experimentIds=_.ah("FEXP_EXPERIMENTS"));
X=_.ah("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Fxx("web_disable_gel_stp_ecatcher_killswitch")&&X)for(Q=_.U(Object.keys(X)),q=Q.next();!q.done;q=Q.next())q=q.value,G.kvPairs.push({key:q,value:String(X[q])});if(X=c.params)for(Q=_.U(Object.keys(X)),q=Q.next();!q.done;q=Q.next())q=q.value,G.kvPairs.push({key:"client."+q,value:String(X[q])});X=_.ah("SERVER_NAME");Q=_.ah("SERVER_VERSION");X&&Q&&(G.kvPairs.push({key:"server.name",value:X}),G.kvPairs.push({key:"server.version",value:Q}));G={errorMetadata:G,
stackTrace:f,logMessage:A}}G&&(_.SY("clientError",G),(e==="ERROR"||_.M("errors_flush_gel_always_killswitch"))&&_.$B())}_.M("suppress_error_204_logging")||anl(t,c)}try{H10.add(c.message)}catch(L){}Y7l++}}};
anl=function(A,t){var f=t.params||{};A={urlParams:{a:"logerror",t:"jserror",type:t.name,msg:t.message.substr(0,250),line:t.lineNumber,level:A,"client.name":f.name},postParams:{url:_.ah("PAGE_NAME",window.location.href),file:t.fileName},method:"POST"};f.version&&(A["client.version"]=f.version);if(A.postParams){t.stack&&(A.postParams.stack=t.stack);t=_.U(Object.keys(f));for(var X=t.next();!X.done;X=t.next())X=X.value,A.postParams["client."+X]=f[X];if(f=_.ah("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(t=
_.U(Object.keys(f)),X=t.next();!X.done;X=t.next())X=X.value,A.postParams[X]=f[X];(f=_.ah("LAVA_VERSION"))&&(A.postParams["lava.version"]=f);f=_.ah("SERVER_NAME");t=_.ah("SERVER_VERSION");f&&t&&(A.postParams["server.name"]=f,A.postParams["server.version"]=t)}_.y$(_.ah("ECATCHER_REPORT_HOST","")+"/error_204",A)};
_.sMq=function(A,t){t=t===void 0?"ERROR":t;var f=f===void 0?{}:f;var X=_.Ae("ytbin.polymer.shared.lib.tampering.info");X&&(X=X())&&(f["params.tamperingInfo"]=X.sort().join(","));_.HQ(A,t,void 0,void 0,!0,f)};
_.gL=function(A){var t=_.Hu.apply(1,arguments);A.args||(A.args=[]);Array.isArray(A.args)&&A.args.push.apply(A.args,_.YV(t))};
k6x=function(A){A.level="IGNORED"};
ros=function(A,t){Z15.push(A);t();Z15.pop()};
rL=function(A,t){for(var f in t)t.hasOwnProperty(f)&&(A=_.kB(A,f,t[f]));return A};
_.AEl=function(A,t,f){f=f===void 0?!1:f;if(!A)return null;if(A.adInfoDialogEndpoint||A.backstageImageUploadEndpoint||A.confirmDialogEndpoint||A.clientActionEndpoint||A.createBackstagePostDialogEndpoint||A.createCommentReplyDialogEndpoint||A.flowEndpoint||A.guideBuilderEndpoint||A.liveChatDialogEndpoint||A.modalEndpoint||A.openPopupAction||A.shareEndpoint||A.shareEntityEndpoint||A.showLiveChatItemEndpoint||A.subscriptionManagerEndpoint||A.unlimitedCreateFamilyEndpoint||A.unlimitedFamilyFlowEndpoint||
A.updateCommentDialogEndpoint||A.updateCommentReplyDialogEndpoint||A.userFeedbackEndpoint||A.videoEditorEndpoint||A.ypcCancelSurveyEndpoint)return t=_.cx("polymer_report_client_url_requested_rate"),!f&&Math.random()<t&&_.K4(new _.xj("urlForEndpoint used on client endpoint",A)),null;var X=_.cx("polymer_report_missing_web_navigation_endpoint_rate");if(A.liveChatEndpoint||A.liveChatReplayEndpoint)X=0;if(!A.commandMetadata&&!A.clickTrackingParams&&Math.random()<X){var Q={},q;for(q in A)Q[q]="1";_.K4(new _.xj("Missing navigation data",
Q))}Q="";if(A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url)Q=A.commandMetadata.webCommandMetadata.url;else if(A.searchEndpoint)Math.random()<X&&_.K4(new _.xj("Should not manually handle search",A)),Q="/results?search_query="+encodeURIComponent(A.searchEndpoint.query).replace(/%20/g,"+"),A.searchEndpoint.params&&(Q+="&sp="+A.searchEndpoint.params);else if(A.watchEndpoint)Math.random()<X&&_.K4(new _.xj("Should not manually handle watch",A)),Q="/watch?v="+
A.watchEndpoint.videoId,A.watchEndpoint.playlistId&&(Q+="&list="+A.watchEndpoint.playlistId),A.watchEndpoint.index&&(Q+="&index="+A.watchEndpoint.index),A.watchEndpoint.startTimeSeconds&&(Q+="&t="+A.watchEndpoint.startTimeSeconds);else if(A.browseEndpoint)X=A.browseEndpoint.browseId,(q=A.browseEndpoint.canonicalBaseUrl)?Q=q:X&&(Q=X.substr(0,2),Q=Q==="FE"?X==="FEwhat_to_watch"?"/":X==="FEmy_videos"?"/my_videos":"/feed/"+X.substr(2):Q==="VL"?"/playlist?list="+X.substr(2):"/channel/"+X),Q&&A.browseEndpoint.query&&
(Q=rL(Q+"/search",{query:A.browseEndpoint.query})),Q&&A.browseEndpoint.params&&(Q=rL(Q,{params:A.browseEndpoint.params}));else{if(A.urlEndpoint)return A.urlEndpoint.url;A.signInEndpoint?(Q="https://accounts.google.com/ServiceLogin",X={},_.VG.extend(X,t||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),t=X):A.uploadEndpoint?Q="//www.youtube.com/upload":A.liveChatEndpoint?(Q=A.liveChatEndpoint,X=_.VG.clone(Q),_.Hp(Q.continuation)&&(q=Object.keys(Q.continuation)[0],
X.continuation=Q.continuation[q].continuation),Q=rL("/youtubei/v1/live_chat/get_live_chat",X)):A.liveChatReplayEndpoint?(Q=_.VG.clone(A.liveChatReplayEndpoint),Q.currentPlayerState&&(_.VG.extend(Q,Q.currentPlayerState),delete Q.currentPlayerState),Q=rL("/youtubei/v1/live_chat/get_live_chat_replay",Q)):A.liveChatItemContextMenuEndpoint?Q=rL("/youtubei/v1/live_chat/get_item_context_menu",A.liveChatItemContextMenuEndpoint):A.liveChatPurchaseMessageEndpoint?Q=rL("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
A.liveChatPurchaseMessageEndpoint):A.openSuperStickerBuyFlowCommand?Q=rL("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",A.openSuperStickerBuyFlowCommand):A.videoEditEndpoint?Q=rL("/edit",{video_id:A.videoEditEndpoint.videoId}):A.liveDashboardEndpoint?Q=A.liveDashboardEndpoint.videoId?rL("/live_dashboard",{v:A.liveDashboardEndpoint.videoId}):"/live_dashboard":A.signalNavigationEndpoint&&A.signalNavigationEndpoint.signal&&A.signalNavigationEndpoint.signal==="WEBCAM"?Q="/webcam":A.getPdgBuyFlowCommand&&
(Q=rL(A.getPdgBuyFlowCommand.buyflowApiPath,{params:A.getPdgBuyFlowCommand.params}))}return Q||f?rL(Q,t||{}):(_.K4(new _.xj("Error: Can't construct url for endpoint","keys:"+Object.keys(A).sort().join(","),A)),null)};
tLu=function(A){if(A){if(A.browseEndpoint)return!!A.browseEndpoint.nofollow;if(A.watchEndpoint)return!!A.watchEndpoint.nofollow;if(A.urlEndpoint)return!!A.urlEndpoint.nofollow}return!1};
_.X1l=function(A,t){var f=t+A,X=fBT.get(f);if(X)return X;A=t+"-"+A.replace(/([A-Z])/g,"-$1").toLowerCase();fBT.set(f,A);return A};
Qvb=function(A){var t=_.d9(A,"action")||_.d9(A,"command")||_.d9(A,"endpoint");if(!t)return null;t=_.X1l(t,"yt");_.C(A,_.A4)&&(t+="-"+_.C(A,_.A4).signal.toLowerCase().replace(/_/g,"-"));return t};
eqx=function(A){try{var t=Object.keys(A)}catch(Q){return[]}for(var f=0;f<t.length;f++){var X=t[f];if(qnb.test(X)||JEz.test(X))return Utx(A[X])}return[]};
Utx=function(A){return A.command?[A.command]:A.onExecutionAction?[A.onExecutionAction]:A.onResponseReceivedCommand?[A.onResponseReceivedCommand]:A.updateFlowCommand?[A.updateFlowCommand]:A.clientActions?A.clientActions:A.action?[A.action]:A.actions||A.commands||A.onResponseReceivedActions||A.onResponseReceivedCommands||A.onResponseReceivedEndpoints||[]};
lBs=function(A,t){t=t===void 0?!1:t;var f=_.Px().resolve(_.z7(t4));f||(f=new GaT,_.Px().addProvider({provide:t4,useValue:f}));return f&&A&&!_.VG.isEmpty(A)?f.getUrl(A,t):""};
Nfb=function(A,t,f){f=f===void 0?"":f;if(t){A.data=t;var X=lBs(t);X?(Kb(A,X),tLu(t)||!NG(X)?A.rel="nofollow":A.removeAttribute("rel"),_.C(t,_.fV)&&_.C(t,_.fV).target==="TARGET_NEW_WINDOW"?A.target="_blank":f?A.target=f:A.removeAttribute("target")):(A.removeAttribute("href"),A.removeAttribute("rel"),A.removeAttribute("target"))}};
_.eU=function(A,t){var f=JZ;if(nF())ul0(A,function(){var q=_.Hu.apply(0,arguments);Hm(f,function(){t.apply(null,_.YV(q))})});
else{var X=_.XA.getInstance(),Q=Diu(t);mix(function(){Q.value=t});
_.oh(function(){var q={},e=_.J4(X,(q[A]=function(){var G=_.Hu.apply(0,arguments);Hm(f,function(){Q.value.apply(Q,_.YV(G))})},q));
return function(){var G={};_.UI(X,(G[A]="",G),e)}})}};
_.GU=function(A,t){return zqx(A,!1,t)};
_.ud=function(A,t){return zqx(A,!0,t)};
zqx=function(A,t,f){return nF()?PjT(A,t,f):Tf0(A,t,f)};
Tf0=function(A,t,f){return EJx(function(){return PjT(A,t,f)},[])};
PjT=function(A,t,f){var X=Max(function(Q){X.value=Q;var q=function(){var e=Pm(null);try{return f==null?void 0:f(Q)}finally{Pm(e)}}();
return function(){q==null||q()}});
X.__expectedTagName=A;X.__optional=t;X.isIdom=!nF();return X};
iW5=function(A){var t=JZ,f=pF;return{getFn:function(){return function(X){if(!t.isDisposed){var Q=function(){return A(X)};
FN(function(){return _.CF(Q)},f)!==!0&&X.stopPropagation()}}}}};
OWg=function(A){if(typeof A.children==="function")return A.children(),null;A=_.U(A.children);for(var t=A.next();!t.done;t=A.next())t=t.value,t();return null};
cEs=function(A){var t;return((t=A.prototype)==null?void 0:t.render)===void 0};
Bfq=function(A){var t=Array.isArray(A.items)?A.items:Array.from(A.items);A=A.children;return(Array.isArray(t)?t:Array.from(t)).map(A)};
Cjq=function(A,t,f){f=f===void 0?!1:f;FN(function(){return MLz(A,t,f)})};
MLz=function(A,t,f){var X=null;xf++;f=(f===void 0?0:f)?hqb:Rqq;try{X=f(A,function(){zU(t)}),Vq(!1)}catch(Q){throw Vq(!0),Q;
}return X===null?A:X};
zU=function(A){if(A!==void 0&&A!==null)if(A instanceof yz)for(var t=t8;fa()!=null&&Qqx in fa()&&t.contains(fa());)qp();else if(Array.isArray(A))for(t=_.U(A),A=t.next();!A.done;A=t.next())zU(A.value);else if(A instanceof Lb||A instanceof NW||"function"==typeof _.uk&&A instanceof _.uk)XVx(A.toString());else if(_.O8(A)){if(fa()!==A){var f,X;t=(X=(f=pF)==null?void 0:f.name)!=null?X:"unknown";throw Error("hc`"+A.tagName+"`"+t);}qp()}else if(A!=null&&A.contentKind===Mp||A instanceof gW||cW5(A))for(t=M0x(A),
t=Array.from(t.childNodes),t=_.U(t),A=t.next();!A.done;A=t.next())t8.appendChild(A.value),qp();else if(xl(A)&&(A=A.toString()),f=typeof A,f==="boolean"||f==="number"||f==="string")XVx(A);else if(typeof A==="function"){t=t8;var Q=fa();Q&&(Q._isSignalTextNode||Q._isSafeOrSanitizedHtmlNode)||Kjl(t,Q,A);qp()}else if(A.type===Bfq)zU(A.type(Object.assign({},A.props,{children:A.children[0]})));else{if(typeof A.type==="string"){a:{A.__open||gHg(A.type,A.props.idomKey);Q=t8;for(t in A.props)if(A.props[t]!==
mtu){var q=A.props[t];f=e2;f.push(t);f.push(q)}t=N4.attributes;t=t===void 0?P9:t;q=t8;f=kf(q);ffT(q,f,t);afg(Q,A.props,!0);if((A.props.skip||A.props.skipchildren)&&t8.hasChildNodes())Qz=t8.lastChild;else{if(A.type==="style"&&vis(A.children)===null){Qz=t8.lastChild;t=void 0;break a}zU(A.children)}w95();A.__open&&(A.__open=!1);N6x(Q,A.props);t=Q}return t}if(A.type===_.Tw)zU(A.children);else if(!bWp(A)){t=A;try{WLs(t)}catch(e){A=e,(q=N4.handleError)==null||q.call.apply(q,[N4].concat(_.YV(ao(A,(Q=t.type)==
null?void 0:Q.TAG_NAME))))}t.__open&&(w95(),t.__open=!1)}}};
yEq=function(A,t){var f;cEs(A)?f=new na(t,A):f=new A(t);f.__type=A;f.__updateContext={nextState:f.state,isForced:!1};return f};
WLs=function(A){var t=A.type,f=t.TAG_NAME;if(t===OWg)A.props.children=A.children,t(A.props);else{A.children.length>0&&(A.props.children=A.children);var X;(X=A.props).idomKey||(X.idomKey=t);if(f){var Q=gHg(f,A.props.idomKey);A.__open=!0;var q=Q.__instance}q||(q=yEq(t,A.props),q.props=null,Q&&(Q.__instance=q,q.el=Q));var e;f=((e=q.__updateContext)!=null?e:{nextState:q.state,isForced:!1}).nextState;q.__updateContext=void 0;t.getDerivedStateFromProps&&(f=t.getDerivedStateFromProps(A.props,f));q.props=
A.props;q.state=f;e=function(){var G=q;pa.beforeRender(G);var N=G.render(G.props);N?(G.props.idomKey&&(N.props.idomKey=G.props.idomKey),G=N):G=void 0;if(N=G)if(N.__open=A.__open,G=zU(N),A.__open=N.__open,!t.TAG_NAME)if(G)t.TAG_NAME=G.tagName.toLowerCase(),G.__instance=q,q.el=G;else{var z;if((z=q.hooks)==null?0:z.length){var T;(T=N4.handleError)==null||T.call.apply(T,[N4].concat(_.YV(ao(Error("pd")))))}}q.didPatch();pa.didPatch(q)};
(f=q.functionComponent)?pQ5(f,e,q.props.debugInstance):e()}};
bWp=function(A){var t=A.type;if(!cEs(t)||t===OWg||t.componentType===EH)return!1;A.props.children=A.children.length>1?A.children:A.children[0];var f,X=(f=A.props.idomKey)!=null?f:A.type,Q;if(fa()&&((Q=fa()[mh])==null?void 0:Q.key)===X){var q=fa(),e=q[mh];if(!e)throw Error("gc`"+q.tagName);var G;(G=e.updateSignalsFromIdomProps)==null||G.call(e,A.props);vux(e);return!0}if(LLq.has(t.name))throw G=t.name,t=(e=(q=pF)==null?void 0:q.name)!=null?e:"unknown",Error("fc`"+G+"`"+t);kS5(A.type,A.props,A.children);
A.props.renderedFromIdom=!0;(G=pQ5(A.type,function(){return oiu(A.type,A.props)},A.props.debugInstance))&&p1l(G);
return!0};
Eug=function(A){for(var t=0;t<W5(A).length;t++)qp()};
vux=function(A){var t=nux();if(t)Eug(t);else for(var f=0;f<A.numNodes;f++)(t=nux())?Eug(t):qp()};
nux=function(){var A;return(A=fa()[mh])==null?void 0:A.sourceDynamicRange};
p1l=function(A){A=Psx(A);A=Array.isArray(A)?A:[A];A=_.U(A);for(var t=A.next();!t.done;t=A.next())t8.insertBefore(t.value,fa()),qp()};
Dt0=function(){var A=Sgq(),t=EJx(function(){return{value:0}},[]);
return[t.value,function(f){if(E8!==null){var X;(X=N4.handleError)==null||X.call.apply(X,[N4].concat(_.YV(ao(Error("qd")))))}t.value=typeof f==="function"?f(t.value):f;A.__updateContext={nextState:A.state,isForced:!0};f=_.UH(A.effectContext);X=ik(!1);try{if(A.el){var Q,q={},e=(q.props=A.props,q.type=A.__type,q.children=(Q=A.props.children)!=null?Q:[],q[P5]=!0,q);try{Cjq(A.el,e,!0)}catch(z){var G,N;(N=N4.handleError)==null||N.call.apply(N,[N4].concat(_.YV(ao(z,(G=A.__type)==null?void 0:G.TAG_NAME))))}}}finally{ik(X),
_.UH(f)}}]};
_.TU=function(A,t){var f=JZ,X=function(Q){Hm(f,function(){t(Q)})};
window.addEventListener(A,X,void 0);_.dD(function(){window.removeEventListener(A,X,void 0)})};
_.OI=function(A){var t=JZ;return function(f){var X,Q=(X=A.observer)!=null?X:_.Px().resolve(id);X=FLT(f);var q=[];A.showOption&&q.push(Q.observe(f,function(){Hm(t,function(){A.visibilityCallback(!0,f)})},A.showOption));
A.hideOption&&q.push(Q.observe(f,function(){Hm(t,function(){A.visibilityCallback(!1,f)})},A.hideOption));
A.prescanOption&&A.prescanCallback&&q.push(Q.observe(f,function(){Hm(t,function(){A.prescanCallback()})},A.prescanOption));
var e;X.visibilityMonitorKeys=((e=X.visibilityMonitorKeys)!=null?e:[]).concat(q)}};
FLT=function(A){var t;return(t=A.polymerController)!=null?t:A};
Ynx=function(A,t){var f=IBl;return _.u(_.Tw,null,Tbl(N4.enableLazyTsx,function(){return _.u(xtx,{id:f,value:A,children:t})},function(){var X=jvx(f,A);
lx(X);X=_.UH(X);try{return t()}finally{_.UH(X)}}))};
xtx=function(A){var t=A.children;A=jvx(A.id,A.value);lx(A);A=_.UH(A);try{return _.u(_.Tw,null,v5(t()))}finally{_.UH(A)}};
jvx=function(A,t){return Object.assign(Object.create(VLx),{id:A,contextValue:t})};
ZW5=function(A){var t,f=JZ;_.ZM(function(){var X=_.UH(f),Q=ik(!t);try{if(t)Cjq(t,A.children(),!0);else if(t=v5(A.children()),!(t instanceof Element))throw Error("rd");}finally{ik(Q),_.UH(X)}},"g");
return t};
_.ouq=function(A,t){var f;t=SG(function(){var X=ik(!0);xf++;try{f=W5(A()),Vq(!1)}catch(Q){throw Vq(!0),Q;}finally{ik(X)}},t===void 0?!1:t);
return[f,t]};
Sn5=function(A){var t=new dtx;t.abort(A);return t.signal};
$tx=function(){if(this.aborted){var A;throw(A=this.reason)!=null?A:new DOMException("signal is aborted without reason","AbortError");}};
KLp=function(A){var t=new dtx;A=_.U(A);for(var f=A.next();!f.done;f=A.next())if(f=f.value,f.aborted){t.abort(f.reason);break}else HWg.set(t.signal,t),aB5.add(f,t.signal);return t.signal};
gu0=function(){for(var A=_.U(aB5.get(this)),t=A.next();!t.done;t=A.next())HWg.get(t.value).abort(this.reason)};
w15=function(A){var t=new dtx;setTimeout(function(){t.abort(new DOMException("signal timed out","TimeoutError"))},A);
return t.signal};
svq=function(){var A,t;return{promise:new Promise(function(f,X){A=f;t=X}),
resolve:A,reject:t}};
rE5=function(A){var t=svq(),f=t.promise;kab.set(A,{promise:f,resolve:t.resolve,reject:t.reject});c9||(c9=[],queueMicrotask(function(){var X=[].concat(_.YV(c9));c9=null;var Q=ZA().loadMultiple(X);X=_.U(X);for(var q=X.next();!q.done;q=X.next())q=q.value,Q[q].then(kab.get(q).resolve,kab.get(q).reject)}));
c9.push(A);return f};
tMb=function(A){A=A.buf.charCodeAt(A.pos++);return A05[A]};
B9=function(A){var t=0,f=0;do{var X=tMb(A);t|=(X&31)<<f;f+=5}while(X&32);return t<0?t+4294967296:t};
X$q=function(A,t,f,X){var Q=!0;Q=Q===void 0?!1:Q;t=t===void 0?!1:t;X=X===void 0?{}:X;var q=X.cssRowKey||"",e=X.combinedSignature||"";!q&&window&&window._F_cssRowKey&&(q=window._F_cssRowKey,!e&&window._F_combinedSignature&&(e=window._F_combinedSignature));if(q&&typeof window._F_installCss!=="function")throw Error("Bd");var G=X.loaderClass||_.M9;A=Iss(A===void 0?"base-js":A);t=new G(MOl(j6u("",A)),q,e,Q,t);Q=X.useCors||A&&A.hasAttribute("crossorigin");A=X.corsMode||A&&A.getAttribute("crossorigin");
Q&&(t.useCors_=Q);A&&(t.corsMode_=A);X.urlMaxLength&&(t.urlMaxLength=X.urlMaxLength);f&&(t.insertPos=f);X.fetchPriority&&(t.fetchPriority=X.fetchPriority);var N=ZA();N.JSC$10137_loader_=t;N.setBatchModeEnabled(!0);_.fdz=X.batchingStrategy==="BATCH"?rE5:function(z){return Promise.resolve(N.load(z))}};
J00=function(A,t,f){QJx(A,t);A[t][qjb].unshift(f)};
QJx=function(A,t){if(!A[t]||!A[t][qjb]){var f=A[t],X=f?[f]:[];A[t]=function(){for(var Q=_.U(X),q=Q.next();!q.done;q=Q.next())q.value.apply(this,arguments)};
A[t][qjb]=X}};
Uab=function(A){if(!A)return[];var t=[];A=_.U(A);for(var f=A.next();!f.done;f=A.next())f=f.value,Array.isArray(f)?t.push.apply(t,_.YV(Uab(f))):t.push(f);return t};
_.h4=function(A,t){if(A&&ey5.test(A)||A==="//")return A;if(Gqx===void 0){Gqx=!1;try{var f=new URL("b","http://a");f.pathname="c%20d";Gqx=f.href==="http://a/c%20d"}catch(X){}}t||(t=document.baseURI||window.location.href);if(Gqx)try{return(new URL(A,t)).href}catch(X){return A}CV||(CV=document.implementation.createHTMLDocument("temp"),CV.base=CV.createElement("base"),CV.head.appendChild(CV.base),CV.anchor=CV.createElement("a"),CV.body.appendChild(CV.anchor));CV.base.href=t;CV.anchor.href=A;return CV.anchor.href||
A};
NPq=function(A,t){return A.replace(ldz,function(f,X,Q,q){return X+"'"+_.h4(Q.replace(/["']/g,""),t)+"'"+q})};
uIb=function(A){return A.substring(0,A.lastIndexOf("/")+1)};
TPT=function(){zyx=!1;for(var A=Rw.length,t=0;t<A;t++){var f=Rw[t];if(f)try{f()}catch(X){setTimeout(function(){throw X;})}}Rw.splice(0,A);
PM5+=A};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(A){console.log("["+A.is+"]: registered")};
O8x=function(A){i8T.push(A)};
mE=function(A){return c0z[A]||(c0z[A]=A.indexOf("-")<0?A:A.replace(BP5,function(t){return t[1].toUpperCase()}))};
bd=function(A){return c0z[A]||(c0z[A]=A.replace(MMs,"-$1").toLowerCase())};
CMu=function(A,t){var f=t.parentInfo&&CMu(A,t.parentInfo);if(f)for(A=f.firstChild,f=0;A;A=A.nextSibling){if(t.parentIndex===f++)return A}else return A};
hyb=function(A,t){A=A._methodHost||A;return function(f){if(A[t])A[t](f,f.detail);else console.warn("listener method `"+t+"` not defined")}};
W9=function(A){return A.indexOf(".")>=0};
yk=function(A){var t=A.indexOf(".");return t===-1?A:A.slice(0,t)};
Ryb=function(A,t){return A.indexOf(t+".")===0};
v9=function(A,t){return t.indexOf(A+".")===0};
LV=function(A,t,f){return t+f.slice(A.length)};
maT=function(A,t){return A===t||Ryb(A,t)||v9(A,t)};
pV=function(A){if(Array.isArray(A)){for(var t=[],f=0;f<A.length;f++)for(var X=A[f].toString().split("."),Q=0;Q<X.length;Q++)t.push(X[Q]);return t.join(".")}return A};
b8z=function(A){return Array.isArray(A)?pV(A).split("."):A.toString().split(".")};
EI=function(A,t,f){t=b8z(t);for(var X=0;X<t.length;X++){if(!A)return;A=A[t[X]]}f&&(f.path=t.join("."));return A};
W0x=function(A,t,f){var X=b8z(t),Q=X[X.length-1];if(X.length>1){for(t=0;t<X.length-1;t++)if(A=A[X[t]],!A)return;A[Q]=f}else A[t]=f;return X.join(".")};
y0b=function(A,t,f){var X=A[t];if(!X)X=A[t]={};else if(!A.hasOwnProperty(t)&&(X=A[t]=Object.create(A[t]),f))for(var Q in X)for(A=X[Q],t=X[Q]=Array(A.length),f=0;f<A.length;f++)t[f]=A[f];return X};
D_=function(A,t,f,X,Q,q){if(t){var e=!1,G=nV++,N;for(N in f){var z=Q?yk(N):N;if(z=t[z])for(var T=0,O=z.length,c=void 0;T<O&&(c=z[T]);T++)c.info&&c.info.lastRun===G||Q&&!vY5(N,c.trigger)||(c.info&&(c.info.lastRun=G),c.fn(A,N,f,X,c.info,Q,q),e=!0)}return e}return!1};
vY5=function(A,t){if(t){var f=t.name;return f==A||!(!t.structured||!Ryb(f,A))||!(!t.wildcard||!v9(f,A))}return!0};
L0b=function(A,t,f,X,Q){t=typeof Q.method==="string"?A[Q.method]:Q.method;f=Q.property;t?t.call(A,A.__data[f],X[f]):Q.dynamicFn||console.warn("observer method `"+Q.method+"` not defined")};
p$T=function(A,t,f,X){f={value:f,queueProperty:!0};X&&(f.path=X);(0,_.FA)(A).dispatchEvent(new CustomEvent(t,{detail:f}))};
EYx=function(A,t,f,X,Q,q){q=(X=(q?yk(t):t)!=t?t:null)?EI(A,X):A.__data[t];X&&q===void 0&&(q=f[t]);p$T(A,Q.eventName,q,X)};
nY0=function(A,t,f,X,Q){f=A.__data[t];Iw&&(f=Iw(f,Q.attrName,"attribute",A));A._propertyToAttribute(t,Q.attrName,f)};
F0x=function(A){var t=A.constructor.__orderedComputedDeps;if(!t){t=new Map;for(var f=A.__computeEffects,X=Das(A),Q=X.counts,q=X.ready,e=X.total;X=q.shift();)t.set(X,t.size),(X=f[X])&&X.forEach(function(G){G=G.info.methodInfo;--e;--Q[G]===0&&q.push(G)});
e!==0&&console.warn("Computed graph for "+A.localName+" incomplete; circular?");A.constructor.__orderedComputedDeps=t}return t};
Das=function(A){var t=A.__computeInfo,f={};A=A.__computeEffects;var X=[],Q=0,q;for(q in t){var e=t[q];Q+=f[q]=e.args.filter(function(N){return!N.literal}).length+(e.dynamicFn?1:0)}for(var G in A)t[G]||X.push(G);
return{counts:f,ready:X,total:Q}};
xab=function(A,t,f,X,Q){t=Idq(A,t,f,X,Q);if(t===xH)return!1;Q=Q.methodInfo;if(A.__dataHasAccessor&&A.__dataHasAccessor[Q])return A._setPendingProperty(Q,t,!0);A[Q]=t;return!1};
VMu=function(A,t,f,X,Q,q,e){f.bindings=f.bindings||[];X={kind:X,target:Q,parts:q,literal:e,isCompound:q.length!==1};f.bindings.push(X);X.target&&X.kind!="attribute"&&X.kind!="text"&&!X.isCompound&&X.parts[0].mode==="{"&&(f=X.parts[0],q=f.negate,X.listenerEvent=f.event||bd(Q)+"-changed",X.listenerNegate=q);Q=t.nodeInfoList.length;for(f=0;f<X.parts.length;f++){var G=X.parts[f];G.compoundIndex=f;q=A;e=t;var N=X,z=G,T=Q;if(!z.literal)if(N.kind==="attribute"&&N.target[0]==="-")console.warn("Cannot set attribute "+
N.target+' because "-" is not a valid attribute starting character');else for(G=z.dependencies,N={index:T,binding:N,part:z,evaluator:q},z=0;z<G.length;z++)T=G[z],typeof T=="string"&&(T=jJp(T),T.wildcard=!0),q._addTemplatePropertyEffect(e,T.rootProperty,{fn:Yjp,info:N,trigger:T})}};
Yjp=function(A,t,f,X,Q,q,e){e=e[Q.index];var G=Q.binding,N=Q.part;q&&N.source&&t.length>N.source.length&&G.kind=="property"&&!G.isCompound&&e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[G.target]?(f=f[t],t=LV(N.source,G.target,t),e._setPendingPropertyOrPath(t,f,!1,!0)&&A._enqueueClient(e)):(t=Q.evaluator._evaluateBinding(A,N,t,f,X,q),t!==xH&&(G.isCompound&&(f=e.__dataCompoundStorage[G.target],f[N.compoundIndex]=t,t=f.join("")),G.kind==="attribute"||G.target!=="textContent"&&
(G.target!=="value"||e.localName!=="input"&&e.localName!=="textarea")||(t=t==void 0?"":t),N=t,Iw&&(N=Iw(N,G.target,G.kind,e)),G.kind=="attribute"?A._valueToNodeAttribute(e,N,G.target):(G=G.target,e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[G]?e.__readOnly&&e.__readOnly[G]||e._setPendingProperty(G,N)&&A._enqueueClient(e):A._setUnmanagedPropertyToNode(e,G,N))))};
Z8x=function(A,t,f){if(f.listenerEvent){var X=f.parts[0];A.addEventListener(f.listenerEvent,function(Q){var q=f.target,e=X.source,G=X.negate,N=Q.detail,z=N&&N.path;z?(e=LV(q,e,z),Q=N&&N.value):Q=Q.currentTarget[q];t.__readOnly&&t.__readOnly[e]||!t._setPendingPropertyOrPath(e,G?!Q:Q,!0,!!z)||N&&N.queueProperty||t._invalidateProperties()})}};
oYx=function(A,t,f,X,Q,q){q=t.static||q&&(typeof q!=="object"||q[t.methodName]);Q={methodName:t.methodName,args:t.args,methodInfo:Q,dynamicFn:q};for(var e=0,G=void 0;e<t.args.length&&(G=t.args[e]);e++)G.literal||A._addPropertyEffect(G.rootProperty,f,{fn:X,info:Q,trigger:G});q&&A._addPropertyEffect(t.methodName,f,{fn:X,info:Q});return Q};
Idq=function(A,t,f,X,Q){X=A._methodHost||A;var q=X[Q.methodName];if(q)return A=A._marshalArgs(Q.args,t,f),A===xH?xH:q.apply(X,A);Q.dynamicFn||console.warn("method `"+Q.methodName+"` not defined")};
dag=function(A){for(var t="",f=0;f<A.length;f++)t+=A[f].literal||"";return t};
H8s=function(A){if(A=A.match(/([^\s]+?)\(([\s\S]*)\)/)){var t={methodName:A[1],static:!0,args:SjT};return A[2].trim()?$as(A[2].replace(/\\,/g,"&comma;").split(","),t):t}return null};
$as=function(A,t){t.args=A.map(function(f){f=jJp(f);f.literal||(t.static=!1);return f},this);
return t};
jJp=function(A){A=A.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var t={name:A,value:"",literal:!1},f=A[0];f==="-"&&(f=A[1]);f>="0"&&f<="9"&&(f="#");switch(f){case "'":case '"':t.value=A.slice(1,-1);t.literal=!0;break;case "#":t.value=Number(A),t.literal=!0}t.literal||(t.rootProperty=yk(A),t.structured=W9(A),t.structured&&(t.wildcard=A.slice(-2)==".*",t.wildcard&&(t.name=A.slice(0,-2))));return t};
adx=function(A,t,f){A=EI(A,f);A===void 0&&(A=t[f]);return A};
K0s=function(A,t,f,X){X={indexSplices:X};jU&&!A._overrideLegacyUndefined&&(t.splices=X);A.notifyPath(f+".splices",X);A.notifyPath(f+".length",t.length);jU&&!A._overrideLegacyUndefined&&(X.indexSplices=[])};
YH=function(A,t,f,X,Q,q){K0s(A,t,f,[{index:X,addedCount:Q,removed:q,object:t,type:"splice"}])};
gYp=function(A){A=NPq((A.body?A.body:A).textContent,A.baseURI);var t=document.createElement("style");t.textContent=A;return t};
sJb=function(A){A=A.trim().split(/\s+/);for(var t=[],f=0;f<A.length;f++)t.push.apply(t,_.YV(w$z(A[f])));return t};
w$z=function(A){var t=Vk.import(A);if(!t)return console.warn("Could not find style data in module named",A),[];if(t._styles===void 0){A=[];A.push.apply(A,_.YV(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t)));var f=t.querySelector("template");f&&A.push.apply(A,_.YV(kqx(f,t.assetpath)));t._styles=A}return t._styles};
kqx=function(A,t){if(!A._styles){for(var f=[],X=A.content.querySelectorAll("style"),Q=0;Q<X.length;Q++){var q=X[Q],e=q.getAttribute("include");e&&f.push.apply(f,_.YV(sJb(e).filter(function(G,N,z){return z.indexOf(G)===N})));
t&&(q.textContent=NPq(q.textContent,t));f.push(q)}A._styles=f}return A._styles};
r0q=function(A){return(A=Vk.import(A))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(A){var t=[];A=A.querySelectorAll("link[rel=import][type~=css]");for(var f=0;f<A.length;f++){var X=A[f];if(X.import){var Q=X.import;if((X=X.hasAttribute("shady-unscoped"))&&!Q._unscopedStyle){var q=gYp(Q);q.setAttribute("shady-unscoped","");Q._unscopedStyle=q}else Q._style||(Q._style=gYp(Q));t.push(X?Q._unscopedStyle:Q._style)}}return t};
ttx=function(A){A=A.trim().split(/\s+/);for(var t="",f=0;f<A.length;f++)t+=Au5(A[f]);return t};
Au5=function(A){var t=Vk.import(A);if(t&&t._cssText===void 0){var f=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t),X=t.querySelector("template");X&&(f+=fSx(X,t.assetpath));t._cssText=f||null}t||console.warn("Could not find style data in module named",A);return t&&t._cssText||""};
fSx=function(A,t){var f="";A=kqx(A,t);for(t=0;t<A.length;t++){var X=A[t];X.parentNode&&X.parentNode.removeChild(X);f+=X.textContent}return f};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(A){var t="";A=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A);for(var f=0;f<A.length;f++)t+=A[f].textContent;return t};
Z_=function(A,t){return{index:A,removed:[],addedCount:t}};
QGp=function(A,t,f,X){var Q=0,q=0,e=0,G=0,N=Math.min(t-Q,X-q);if(Q==0&&q==0)a:{for(e=0;e<N;e++)if(A[e]!==f[e])break a;e=N}if(t==A.length&&X==f.length){G=A.length;for(var z=f.length,T=0;T<N-e&&XFg(A[--G],f[--z]);)T++;G=T}Q+=e;q+=e;t-=G;X-=G;if(t-Q==0&&X-q==0)return[];if(Q==t){for(t=Z_(Q,0);q<X;)t.removed.push(f[q++]);return[t]}if(q==X)return[Z_(Q,t-Q)];N=Q;e=q;X=X-e+1;G=t-N+1;t=Array(X);for(z=0;z<X;z++)t[z]=Array(G),t[z][0]=z;for(z=0;z<G;z++)t[0][z]=z;for(z=1;z<X;z++)for(T=1;T<G;T++)if(A[N+T-1]===
f[e+z-1])t[z][T]=t[z-1][T-1];else{var O=t[z-1][T]+1,c=t[z][T-1]+1;t[z][T]=O<c?O:c}N=t.length-1;e=t[0].length-1;X=t[N][e];for(A=[];N>0||e>0;)N==0?(A.push(2),e--):e==0?(A.push(3),N--):(G=t[N-1][e-1],z=t[N-1][e],T=t[N][e-1],O=z<T?z<G?z:G:T<G?T:G,O==G?(G==X?A.push(0):(A.push(1),X=G),N--,e--):O==z?(A.push(3),N--,X=z):(A.push(2),e--,X=T));A.reverse();t=void 0;N=[];for(e=0;e<A.length;e++)switch(A[e]){case 0:t&&(N.push(t),t=void 0);Q++;q++;break;case 1:t||(t=Z_(Q,0));t.addedCount++;Q++;t.removed.push(f[q]);
q++;break;case 2:t||(t=Z_(Q,0));t.addedCount++;Q++;break;case 3:t||(t=Z_(Q,0)),t.removed.push(f[q]),q++}t&&N.push(t);return N};
qu5=function(A,t){return QGp(A,A.length,t,t.length)};
XFg=function(A,t){return A===t};
UBz=function(A){if(A instanceof Juu)return A.value;throw Error("Jd`"+A);};
eWx=function(A,t){for(var f in t)f===null?A.style.removeProperty(f):A.style.setProperty(f,t[f])};
GF0=function(A,t){return(A=window.getComputedStyle(A).getPropertyValue(t))?A.trim():""};
zWx=function(A){requestAnimationFrame(function(){lSb?lSb(A):(NSx||(NSx=new Promise(function(t){utq=t}),document.readyState==="complete"?utq():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&utq()})),NSx.then(function(){A&&A()}))})};
isp=function(A){Pgu=A&&A.shimcssproperties?!1:TSx||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
Cgg=function(A){if(!(Osb.indexOf(A)>-1)&&A!=="touchend"&&cuu&&BSx&&Mtx)return{passive:!0}};
bsg=function(A){for(var t=hWz?["click"]:Osb,f=0,X;f<t.length;f++)X=t[f],A?(RWs.length=0,document.addEventListener(X,mBz,!0)):document.removeEventListener(X,mBz,!0)};
ow=function(A){var t=A.type;return Osb.indexOf(t)>-1?t==="mousemove"?(t=A.buttons===void 0?1:A.buttons,A instanceof window.MouseEvent&&!W_0&&(t=yub[A.which]||0),!!(t&1)):(A.button===void 0?0:A.button)===0:!1};
v5l=function(A){if(A.type==="click"){if(A.detail===0)return!0;var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;t=t.getBoundingClientRect();var f=A.pageX;A=A.pageY;return!(f>=t.left&&f<=t.right&&A>=t.top&&A<=t.bottom)}return!1};
L_l=function(A,t,f){A.movefn=t;A.upfn=f;document.addEventListener("mousemove",t);document.addEventListener("mouseup",f)};
d$=function(A){document.removeEventListener("mousemove",A.movefn);document.removeEventListener("mouseup",A.upfn);A.movefn=null;A.upfn=null};
pFb=function(A,t){for(var f=document.elementFromPoint(A,t),X=f;X&&X.shadowRoot&&!window.ShadyDOM;){var Q=X;X=X.shadowRoot.elementFromPoint(A,t);if(Q===X)break;X&&(f=X)}return f};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var t=E5T(A);return t.length>0?t[0]:A.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var t=A.type,f=A.currentTarget.__polymerGestures;if(f&&(f=f[t])){if(!A.__polymerGesturesHandled&&(A.__polymerGesturesHandled={},t.slice(0,5)==="touch")){var X=A.changedTouches[0];t==="touchstart"&&A.touches.length===1&&(n55=X.identifier);if(n55!==X.identifier)return;cuu||(t==="touchstart"||t==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)}X=
A.__polymerGesturesHandled;if(!X.skip){for(var Q=0,q;Q<SU.length;Q++)q=SU[Q],f[q.name]&&!X[q.name]&&q.flow&&q.flow.start.indexOf(A.type)>-1&&q.reset&&q.reset();for(Q=0;Q<SU.length;Q++)q=SU[Q],f[q.name]&&!X[q.name]&&(X[q.name]=!0,q[t](A))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var t=A.changedTouches[0],f=A.type;if(f==="touchstart")DBl=t.clientX,F_T=t.clientY,ISq=!1;else if(f==="touchmove"&&!ISq){ISq=!0;f="auto";for(var X=E5T(A),Q=0,q;Q<X.length;Q++)if(q=X[Q],q.__polymerGesturesTouchAction){f=q.__polymerGesturesTouchAction;break}X=!1;Q=Math.abs(DBl-t.clientX);t=Math.abs(F_T-t.clientY);A.cancelable&&(f==="none"?X=!0:f==="pan-x"?X=t>Q:f==="pan-y"&&(X=Q>t));X?A.preventDefault():
$H("track")}};
aw=function(A,t,f){return H9[t]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,t,f),!0):!1};
KV=function(A,t,f){return H9[t]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,t,f),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,t,f){var X=H9[t],Q=X.deps,q=X.name,e=A.__polymerGestures;e||(A.__polymerGestures=e={});for(var G=0,N,z;G<Q.length;G++)N=Q[G],hWz&&Osb.indexOf(N)>-1&&N!=="click"||((z=e[N])||(e[N]=z={_count:0}),z._count===0&&A.addEventListener(N,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Cgg(N)),z[q]=(z[q]||0)+1,z._count=(z._count||0)+1);A.addEventListener(t,f);X.touchAction&&_.g$(A,X.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,t,f){var X=H9[t],Q=X.deps;X=X.name;var q=A.__polymerGestures;if(q)for(var e=0,G,N;e<Q.length;e++)G=Q[e],(N=q[G])&&N[X]&&(N[X]=(N[X]||1)-1,N._count=(N._count||1)-1,N._count===0&&A.removeEventListener(G,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Cgg(G)));A.removeEventListener(t,f)};
xBb=function(A){SU.push(A);for(var t=0;t<A.emits.length;t++)H9[A.emits[t]]=A};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){for(var t=0,f;t<SU.length;t++){f=SU[t];for(var X=0,Q;X<f.emits.length;X++)if(Q=f.emits[X],Q===A)return f}return null};
_.g$=function(A,t){cuu&&A instanceof HTMLElement&&w$.run(function(){A.style.touchAction=t});
A.__polymerGesturesTouchAction=t};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,t,f){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=f;(0,_.FA)(A).dispatchEvent(t);t.defaultPrevented&&(A=f.preventer||f.sourceEvent)&&A.preventDefault&&A.preventDefault()};
$H=function(A){A=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A.info&&(A.info.prevent=!0)};
sI=function(A,t,f,X){t&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,A,{x:f.clientX,y:f.clientY,sourceEvent:f,preventer:X,prevent:function(Q){return $H(Q)}})};
jGp=function(A,t,f){if(A.prevent)return!1;if(A.started)return!0;f=Math.abs(A.y-f);return Math.abs(A.x-t)>=5||f>=5};
Yub=function(A,t,f){if(t){var X=A.moves[A.moves.length-2],Q=A.moves[A.moves.length-1],q=Q.x-A.x,e=Q.y-A.y,G=0;if(X){var N=Q.x-X.x;G=Q.y-X.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,"track",{state:A.state,x:f.clientX,y:f.clientY,dx:q,dy:e,ddx:N,ddy:G,sourceEvent:f,hover:function(){return pFb(f.clientX,f.clientY)}})}};
Zss=function(A,t,f){var X=Math.abs(t.clientX-A.x),Q=Math.abs(t.clientY-A.y),q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f||t);!q||Vtl[q.localName]&&q.hasAttribute("disabled")||!(isNaN(X)||isNaN(Q)||X<=25&&Q<=25||v5l(t))||A.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:f})};
o5x=function(A,t,f,X,Q){var q;Q&&(q=typeof f==="object"&&f!==null)&&(X=A.__dataTemp[t]);X=X!==f&&(X===X||f===f);q&&X&&(A.__dataTemp[t]=f);return X};
Suu=function(){if(kH&&!r$){if(!dBb){dBb=!0;var A=document.createElement("style");A.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(A)}return!0}return!1};
Hsb=function(){return $Bb};
aSx=function(A,t){$Bb=A;Object.setPrototypeOf(A,t.prototype);new t;$Bb=null};
K_q=function(A,t){for(var f=0;f<t.length;f++){var X=t[f];if(!!A!=!!X.__hideTemplateChildren__)if(X.nodeType===Node.TEXT_NODE)A?(X.__polymerTextContent__=X.textContent,X.textContent=""):X.textContent=X.__polymerTextContent__;else if(X.localName==="slot")if(A)X.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.FA)((0,_.FA)(X).parentNode).replaceChild(X.__polymerReplaced__,X);else{var Q=X.__polymerReplaced__;Q&&(0,_.FA)((0,_.FA)(Q).parentNode).replaceChild(X,Q)}else X.style&&(A?(X.__polymerDisplay__=
X.style.display,X.style.display="none"):X.style.display=X.__polymerDisplay__);X.__hideTemplateChildren__=A;X._showHideChildren&&X._showHideChildren(A)}};
g5b=function(A){return(A=A.__dataHost)&&A._methodHost||A};
kFx=function(A,t,f){var X=f.mutableData?wFp:AW;XB.mixin&&(X=XB.mixin(X));var Q=function(){return X.apply(this,arguments)||this};
_.R(Q,X);Q.prototype.__templatizeOptions=f;Q.prototype._bindTemplate(A);sGb(Q,A,t,f);return Q};
Xzb=function(A,t,f,X){var Q=f.forwardHostProp;if(Q&&t.hasHostProps){var q=A.localName=="template",e=t.templatizeTemplateClass;if(!e){if(q){var G=f.mutableData?rul:AJb;e=function(){return G.apply(this,arguments)||this};
_.R(e,G);e=t.templatizeTemplateClass=e}else{var N=A.constructor;e=function(){return N.apply(this,arguments)||this};
_.R(e,N);e=t.templatizeTemplateClass=e}var z=t.hostProps,T;for(T in z)e.prototype._addPropertyEffect("_host_"+T,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:t75(Q)}),e.prototype._createNotifyingProperty("_host_"+T);QV&&X&&fr0(t,f,X)}A.__dataProto&&Object.assign(A.__data,A.__dataProto);if(q)aSx(A,e),A.__dataTemp={},A.__dataPending=null,A.__dataOld=null,A._enableProperties();else{Object.setPrototypeOf(A,e.prototype);t=t.hostProps;for(var O in t)O="_host_"+O,O in A&&(t=A[O],delete A[O],A.__data[O]=
t)}}};
t75=function(A){return function(t,f,X){A.call(t.__templatizeOwner,f.substring(6),X[f])}};
sGb=function(A,t,f,X){var Q=f.hostProps||{},q;for(q in X.instanceProps){delete Q[q];var e=X.notifyInstanceProp;e&&A.prototype._addPropertyEffect(q,A.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:QD5(e)})}if(X.forwardHostProp&&t.__dataHost)for(var G in Q)f.hasHostProps||(f.hasHostProps=!0),A.prototype._addPropertyEffect(G,A.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:q1T()})};
QD5=function(A){return function(t,f,X){A.call(t.__templatizeOwner,t,f,X[f])}};
q1T=function(){return function(A,t,f){A.__dataHost._setPendingPropertyOrPath("_host_"+t,f[t],!0,!0)}};
XB=function(A,t,f){if(qP&&!g5b(A))throw Error("Pd");f=f||{};if(A.__templatizeOwner)throw Error("Qd");A.__templatizeOwner=t;var X=(t?t.constructor:AW)._parseTemplate(A),Q=X.templatizeInstanceClass;Q||(Q=kFx(A,X,f),X.templatizeInstanceClass=Q);var q=g5b(A);Xzb(A,X,f,q);f=function(){return Q.apply(this,arguments)||this};
_.R(f,Q);f.prototype._methodHost=q;f.prototype.__dataHost=A;f.prototype.__templatizeOwner=t;f.prototype.__hostProps=X.hostProps;return f};
fr0=function(A,t,f){f=f.constructor._properties;A=A.propertyEffects;t=t.instanceProps;for(var X in A)if(!(f[X]||t&&t[X]))for(var Q=A[X],q=0;q<Q.length;q++){var e=Q[q].info.part;if(!e.signature||!e.signature.static){console.warn("Property '"+X+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
JJx=function(A,t){for(var f;t;)if(f=t.__dataHost?t:t.__templatizeInstance)if(f.__dataHost!=A)t=f.__dataHost;else return f;else t=(0,_.FA)(t).parentNode;return null};
JW=function(A){return A.localName==="slot"};
U1l=function(){for(var A=Ug.prototype,t="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),f={},X=0;X<t.length;f={method$jscomp$33:void 0},X++)f.method$jscomp$33=t[X],A[f.method$jscomp$33]=function(Q){return function(){return this.node[Q.method$jscomp$33].apply(this.node,arguments)}}(f)};
eS5=function(A,t){for(var f={},X=0;X<t.length;f={name$jscomp$448:void 0},X++)f.name$jscomp$448=t[X],Object.defineProperty(A,f.name$jscomp$448,{get:function(Q){return function(){return this.node[Q.name$jscomp$448]}}(f),
configurable:!0})};
GR0=function(){for(var A=Ug.prototype,t=["textContent","innerHTML","className"],f={},X=0;X<t.length;f={name$jscomp$449:void 0},X++)f.name$jscomp$449=t[X],Object.defineProperty(A,f.name$jscomp$449,{get:function(Q){return function(){return this.node[Q.name$jscomp$449]}}(f),
set:function(Q){return function(q){this.node[Q.name$jscomp$449]=q}}(f),
configurable:!0})};
lrq=function(){e0=document.documentElement.getAttribute("dir");e0=document.documentElement.getAttribute("dir");for(var A=0;A<GS.length;A++){var t=GS[A];t.__autoDirOptOut||t.setAttribute("dir",e0)}};
Prb=function(){ls=!0;requestAnimationFrame(function(){ls=!1;NVx(uGz);setTimeout(function(){for(var A=0,t=NP.length;A<t;A++)zSq(NP.shift())})})};
NVx=function(A){for(;A.length;)zSq(A.shift())};
zSq=function(A){var t=A[0],f=A[1];A=A[2];try{f.apply(t,A)}catch(X){setTimeout(function(){throw X;})}};
_.TVb=function(A,t,f){ls||Prb();uGz.push([A,t,f])};
_.us=function(A,t,f){ls||Prb();NP.push([A,t,f])};
cJp=function(A,t){t=t===void 0?!1:t;if(!idg||!Odx||!idg.handlesDynamicScoping)return null;var f=Odx.ScopingShim;if(!f)return null;var X=f.scopeForNode(A),Q=(0,_.FA)(A).getRootNode(),q=function(e){if((0,_.FA)(e).getRootNode()===Q){var G=Array.from(idg.nativeMethods.querySelectorAll.call(e,"*"));G.push(e);for(e=0;e<G.length;e++){var N=G[e];if((0,_.FA)(N).getRootNode()===Q){var z=f.currentScopeForNode(N);z!==X&&(z!==""&&f.unscopeNode(N,z),f.scopeNode(N,X))}}}};
q(A);return t?(t=new MutationObserver(function(e){for(var G=0;G<e.length;G++)for(var N=e[G],z=0;z<N.addedNodes.length;z++){var T=N.addedNodes[z];T.nodeType===Node.ELEMENT_NODE&&q(T)}}),t.observe(A,{childList:!0,
subtree:!0}),t):null};
BVT=function(){document.body.removeAttribute("unresolved")};
m1T=function(A){var t=A=A.replace(M7g,"").replace(Crz,""),f=new hSx;f.start=0;f.end=t.length;for(var X=f,Q=0,q=t.length;Q<q;Q++)if(t[Q]==="{"){X.rules||(X.rules=[]);var e=X,G=e.rules[e.rules.length-1]||null;X=new hSx;X.start=Q+1;X.parent=e;X.previous=G;e.rules.push(X)}else t[Q]==="}"&&(X.end=Q+1,X=X.parent||f);return RS0(f,A)};
RS0=function(A,t){var f=t.substring(A.start,A.end-1);A.parsedCssText=A.cssText=f.trim();A.parent&&(f=t.substring(A.previous?A.previous.end:A.parent.start,A.start-1),f=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(f),f=f.replace(bd5," "),f=f.substring(f.lastIndexOf(";")+1),f=A.parsedSelector=A.selector=f.trim(),A.atRule=f.indexOf("@")===0,A.atRule?f.indexOf("@media")===0?A.type=4:f.match(Wax)&&(A.type=7,A.keyframesName=A.selector.split(bd5).pop()):f.indexOf("--")===
0?A.type=1E3:A.type=1);if(f=A.rules)for(var X=0,Q=f.length,q=void 0;X<Q&&(q=f[X]);X++)RS0(q,t);return A};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(A){return A.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var t=arguments[1],f=6-t.length;f--;)t="0"+t;return"\\"+t})};
yJ5=function(A,t,f){f=f===void 0?"":f;var X="";if(A.cssText||A.rules){var Q=A.rules;if(Q&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Q))for(var q=0,e=Q.length,G=void 0;q<e&&(G=Q[q]);q++)X=yJ5(G,t,X);else t?t=A.cssText:(t=A.cssText,t=t.replace(vp5,"").replace(Lau,""),t=t.replace(pzb,"").replace(Epx,"")),(X=t.trim())&&(X="  "+X+"\n")}X&&(A.selector&&(f+=A.selector+" {\n"),f+=X,A.selector&&(f+="}\n\n"));return f};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(A){A=A[0];return!!A&&!!A.selector&&A.selector.indexOf("--")===0};
D1g=function(A){if(A=npq[A])A._applyShimCurrentVersion=A._applyShimCurrentVersion||0,A._applyShimValidatingVersion=A._applyShimValidatingVersion||0,A._applyShimNextVersion=(A._applyShimNextVersion||0)+1};
Fax=function(A){return A._applyShimCurrentVersion===A._applyShimNextVersion};
x1T=function(A){A._applyShimValidatingVersion=A._applyShimNextVersion;A._validating||(A._validating=!0,Irz.then(function(){A._applyShimCurrentVersion=A._applyShimNextVersion;A._validating=!1}))};
Y1T=function(A){if(!A)return"";typeof A==="string"&&(A=m1T(A));return yJ5(A,jDq)};
V75=function(A){!A.__cssRules&&A.textContent&&(A.__cssRules=m1T(A.textContent));return A.__cssRules||null};
opT=function(A,t,f,X){if(A){var Q=!1,q=A.type;if(X&&q===4){var e=A.selector.match(Zds);e&&(window.matchMedia(e[1]).matches||(Q=!0))}q===1?t(A):f&&q===7?f(A):q===1E3&&(Q=!0);if((A=A.rules)&&!Q)for(Q=0,q=A.length,e=void 0;Q<q&&(e=A[Q]);Q++)opT(e,t,f,X)}};
d1q=function(A,t){var f=A.indexOf("var(");if(f===-1)return t(A,"","","");a:{var X=0;var Q=f+3;for(var q=A.length;Q<q;Q++)if(A[Q]==="(")X++;else if(A[Q]===")"&&--X===0)break a;Q=-1}X=A.substring(f+4,Q);f=A.substring(0,f);A=d1q(A.substring(Q+1),t);q=X.indexOf(",");if(q===-1)return t(f,X.trim(),"",A);Q=X.substring(0,q).trim();X=X.substring(q+1).trim();return t(f,Q,X,A)};
S1x=function(A){if(zS!==void 0)return zS;if(A.__cssBuild===void 0){var t=A.getAttribute("css-build");if(t)A.__cssBuild=t;else{a:{t=A.localName==="template"?A.content.firstChild:A.firstChild;if(t instanceof Comment&&(t=t.textContent.trim().split(":"),t[0]==="css-build")){t=t[1];break a}t=""}if(t!==""){var f=A.localName==="template"?A.content.firstChild:A.firstChild;f.parentNode.removeChild(f)}A.__cssBuild=t}}return A.__cssBuild||""};
Hdu=function(A,t,f,X){for(var Q=t._noAccessors,q=Object.getOwnPropertyNames(t),e=0;e<q.length;e++){var G=q[e];if(!(G in X))if(Q)A[G]=t[G];else{var N=Object.getOwnPropertyDescriptor(t,G);N&&(N.configurable=!0,Object.defineProperty(A,G,N))}}for(var z in $10)t[z]&&(f[z]=f[z]||[],f[z].push(t[z]))};
aru=function(A,t,f){t=t||[];for(var X=A.length-1;X>=0;X--){var Q=A[X];Q?Array.isArray(Q)?aru(Q,t):t.indexOf(Q)<0&&(!f||f.indexOf(Q)<0)&&t.unshift(Q):console.warn("behavior is null, check for missing or 404 import")}return t};
Kaq=function(A,t){for(var f in t){var X=A[f],Q=t[f];A[f]=!("value"in Q)&&X&&"value"in X?Object.assign({value:X.value},Q):Q}};
sDb=function(A,t,f){var X={},Q=function(){return t.apply(this,arguments)||this};
_.R(Q,t);Q._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(e)for(var N=0,z;N<e.length;N++)z=e[N],z.properties&&this.createProperties(z.properties),z.observers&&this.createObservers(z.observers,z.properties);A.properties&&this.createProperties(A.properties);A.observers&&this.createObservers(A.observers,A.properties);this._prepareTemplate()}else t._finalizeClass.call(this)};
Q.prototype.created=function(){t.prototype.created.call(this);var N=X.created;if(N)for(var z=0;z<N.length;z++)N[z].call(this)};
Q.prototype._registered=function(){var N=Q.prototype;if(!N.hasOwnProperty("__hasRegisterFinished")){N.__hasRegisterFinished=!0;t.prototype._registered.call(this);kH&&G(N);N=Object.getPrototypeOf(this);var z=X.beforeRegister;if(z)for(var T=0;T<z.length;T++)z[T].call(N);if(z=X.registered)for(T=0;T<z.length;T++)z[T].call(N)}};
Q.prototype._applyListeners=function(){t.prototype._applyListeners.call(this);var N=X.listeners;if(N)for(var z=0;z<N.length;z++){var T=N[z];if(T)for(var O in T)this._addMethodEventListenerToNode(this,O,T[O])}};
Q.prototype._ensureAttributes=function(){var N=X.hostAttributes;if(N)for(var z=N.length-1;z>=0;z--){var T=N[z],O;for(O in T)this._ensureAttribute(O,T[O])}t.prototype._ensureAttributes.call(this)};
Q.prototype.ready=function(){t.prototype.ready.call(this);var N=X.ready;if(N)for(var z=0;z<N.length;z++)N[z].call(this)};
Q.prototype.attached=function(){t.prototype.attached.call(this);var N=X.attached;if(N)for(var z=0;z<N.length;z++)N[z].call(this)};
Q.prototype.detached=function(){t.prototype.detached.call(this);var N=X.detached;if(N)for(var z=0;z<N.length;z++)N[z].call(this)};
Q.prototype.attributeChanged=function(N,z,T){t.prototype.attributeChanged.call(this);var O=X.attributeChanged;if(O)for(var c=0;c<O.length;c++)O[c].call(this,N,z,T)};
_.PV.Object.defineProperties(Q,{properties:{configurable:!0,enumerable:!0,get:function(){var N={};if(e)for(var z=0;z<e.length;z++)Kaq(N,e[z].properties);Kaq(N,A.properties);return N}},
observers:{configurable:!0,enumerable:!0,get:function(){var N=[];if(e)for(var z=0,T;z<e.length;z++)T=e[z],T.observers&&(N=N.concat(T.observers));A.observers&&(N=N.concat(A.observers));return N}}});
if(f){Array.isArray(f)||(f=[f]);var q=t.prototype.behaviors;var e=aru(f,null,q);Q.prototype.behaviors=q?q.concat(f):e}var G=function(N){if(e)for(var z=e,T=0;T<z.length;T++)Hdu(N,z[T],X,gpx);Hdu(N,A,X,wzs)};
kH||G(Q.prototype);Q.generatedFrom=A;return Q};
tqg=function(A){var t=typeof A!=="string"?A:{is:A,notifyObserversOnUndefined:!0};t.fastInit===void 0&&(t.fastInit=!0);return function(f){if(!t.disableInheritanceCheck&&Object.getPrototypeOf(f.prototype).constructor!==_.TS)throw Error("Ud");var X=f.prototype;X.is=t.is;J00(X,"created",function(){this.hostElement=this;this.polymerController=this});
kR5(X,f,t.fastInit);t.notifyObserversOnUndefined&&(X._overrideLegacyUndefined=!0);if(rJz)for(var Q=_.U(Object.getOwnPropertyNames(X)),q=Q.next();!q.done;q=Q.next()){q=q.value;var e=Object.getOwnPropertyDescriptor(X,q);e.enumerable===!1&&(e.enumerable=!0,Object.defineProperty(X,q,e))}if("template"in f)var G=function(){return f.template};
else t.template!==void 0&&(G=t.template);if(G!==void 0){var N;Object.defineProperty(X,"_template",{get:function(){N===void 0&&(N=G());return N},
set:function(z){N=z},
configurable:!0,enumerable:!0})}Polymer(X);f[A1x]=X}};
fCx=function(A){A=A===void 0?{}:A;A.fastInit===void 0&&(A.fastInit=!0);return function(t){if(!A.disableInheritanceCheck&&Object.getPrototypeOf(t.prototype).constructor!==is)throw Error("Vd");kR5(t.prototype,t,A.fastInit)}};
kR5=function(A,t,f){f=f===void 0?!1:f;XIp(t);f?J00(A,"created",function(){this.disableEnforceFastDefaultValuesCheck||Q1x(t,this)}):J00(A,"ready",function(){for(var X={},Q=_.U(Uab(this.behaviors)),q=Q.next();!q.done;q=Q.next())q=q.value,q.properties&&Object.assign(X,qLx(this,q.properties));
Object.assign(X,qLx(this,this.properties));Q1x(t,this);Q=_.U(Object.keys(X));for(q=Q.next();!q.done;q=Q.next())q=q.value,this[q]=X[q]})};
Q1x=function(A,t){if(rJz){A=new A;for(var f=_.U(Object.getOwnPropertyNames(A)),X=f.next();!X.done;X=f.next())X=X.value,t[X]=A[X];for(f=t;f&&f!==Object.prototype;f=Object.getPrototypeOf(f)){X=_.U(Object.getOwnPropertyNames(f));for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,A.hasOwnProperty(Q)||Object.defineProperty(A,Q,J1p(t,Q))}}else A.apply(t)};
J1p=function(A,t){return{get:function(){var f=A[t];return f instanceof Function?f.bind(A):f},
set:function(f){A[t]=f}}};
qLx=function(A,t){if(!t)return{};for(var f={},X=_.U(Object.keys(t)),Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,!t[Q].readOnly){var q=A[Q];q!==void 0&&(f[Q]=q)}return f};
XIp=function(A){var t=new A;A=A.prototype.properties||{};for(var f=_.U(Object.keys(A)),X=f.next();!X.done;X=f.next())if(X=X.value,t.hasOwnProperty(X)){var Q=A[X];typeof Q==="function"&&(A[X]=Q={type:Q});t[X]!=null&&Q.type===Object&&(Q.type=UFb(t[X].constructor))}};
UFb=function(A){for(var t=_.U(eIg),f=t.next();!f.done;f=t.next())if(f=f.value,A===f)return f;return Object};
GKg=function(A){return function(t,f){t.behaviors=t.behaviors||[];t.behaviors.push(A||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",t,f).prototype:void 0));Object.defineProperty(t,f,{get:function(){return this},
enumerable:!0,configurable:!0})}};
lCT=function(A){A=A===void 0?{}:A;return function(t,f){t.properties=t.properties||{};A.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?A.type=UFb(Reflect.getMetadata("design:type",t,f)):A.type=String);var X=A,Q=t.properties[f];t.properties[f]=Q?Object.assign({},Q,X):X}};
NUT=function(A){return function(t,f){t.listeners=t.listeners||{};t.listeners[A]=f}};
uyl=function(){var A=_.Hu.apply(0,arguments);if(A.length===0)throw Error("Wd");return function(t,f){t.observers=t.observers||[];t.observers.push(f+"("+A.join(",")+")")}};
zIl=function(){var A=_.Hu.apply(0,arguments);return function(t,f,X){var Q=Object.getOwnPropertyDescriptor(t,f).get,q="__compute__"+f;Object.defineProperty(t,q,{value:Q,enumerable:!0});t.properties=t.properties||{};Q=t.properties[f];Q||(Q={},t.properties[f]=Q);Q.computed=q+"("+A.join(",")+")";X.get=void 0}};
_.Og=function(A,t,f){_.DA.call(this);this.JSC$11401_id_=null;this.usingListeners_=!1;this.JSC$11401_listener_=A;this.handler_=f;this.JSC$11401_win_=t||window;this.callback_=(0,_.F1)(this.JSC$11403_doAction_,this)};
cV=function(A){this.range_=A};
BV=function(A){this.range_=A};
hW=function(A,t,f){_.DA.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=A;this.scrollTimer_=new _.MP(50);this.JSC$11480_eventHandler_=new _.CP(this);this.scrollDelta_=new _.ok;this.containerIsActuallyContent_=A.tagName==="BODY"||A.tagName==="HTML";this.containerBounds_=Pz5(A);this.containerIsActuallyContent_&&(A=_.pn(),this.containerBounds_.height=A.height,this.containerBounds_.width=A.width);this.margin_=t||0;if(t){if(t=this.containerBounds_.clone(),A=this.margin_){var X=
Math.min(A,t.height*.25);t.top+=X;t.height-=2*X;A=Math.min(A,t.width*.25);t.left+=A;t.width-=2*A}}else t=this.containerBounds_;this.scrollBounds_=t;f||this.JSC$11480_eventHandler_.listen(_.Sn(this.containerNode_),"mousemove",this.JSC$11482_onMouseMove);this.JSC$11480_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11482_onTick_)};
_.RW=function(A){this.mechanism=A};
mj=function(A,t){this.JSC$11578_key_=A;this.JSC$11578_value_=t};
i3p=function(A){if(A>=55296&&A<=57343||A>1114111)return"\ufffd";A in TUT&&(A=TUT[A]);var t="";A>65535&&(A-=65536,t+=String.fromCharCode(A>>>10&1023|55296),A=56320|A&1023);return t+=String.fromCharCode(A)};
O3x=function(A,t){return A<t?1:-1};
BUs=function(){return function(A){return A.charAt(1)==="#"?A.charAt(2)==="X"||A.charAt(2)==="x"?i3p(parseInt(A.substr(3),16)):i3p(parseInt(A.substr(2),10)):c10[A.slice(1,-1)]}};
hIu=function(A){return A.slice(1,A.length-1).trim().replace(Mqx,function(t){return Czp[t]||" "})};
yV=function(A){return A===32||A===9};
vV=function(A,t){return t<A.length?A.charCodeAt(t):-1};
RIx=function(A){for(;A;){if(A._lastLineBlank)return!0;var t=A.type;if(t==="list"||t==="item")A=A._lastChild;else break}return!1};
LP=function(A){if(mFs.test(A)){var t=1,f=0,X=0;for(A[f]=="|"&&f++;f<A.length;){switch(A[f]){case "|":X=1;break;case " ":break;case "\t":break;default:X&&(X=0,t++)}f++}return b3x.test(A)?-t:t}return 0};
W9p=function(A){return A=="table"||A=="row"||A=="cell"};
y1b=function(){return new pP("document",[[1,1],[0,0]])};
v65=function(){};
Eg=function(){var A={safe:!1};A=A||{};A.softbreak=A.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=A};
DFu=function(A,t){var f="";if(A)if(A=A.toLowerCase(),A===" "||L9u.test(A))f="space";else if(pIq.test(A))f="esc";else if(A.length==1){if(!t||E6b.test(A))f=A}else f=n6b.test(A)?A.replace("arrow",""):A=="multiply"?"*":A;return f};
j1b=function(A,t){var f=A.hasModifiers;if(t.key)f=DFu(t.key,f);else if(t.detail&&t.detail.key)f=DFu(t.detail.key,f);else{f=t.keyIdentifier;var X="";f&&(f in F9T?X=F9T[f]:ICb.test(f)?(f=parseInt(f.replace("U+","0x"),16),X=String.fromCharCode(f).toLowerCase()):X=f.toLowerCase());(f=X)||(f=t.keyCode,X="",Number(f)&&(f>=65&&f<=90?X=String.fromCharCode(32+f):f>=112&&f<=123?X="f"+(f-112+1):f>=48&&f<=57?X=String(f-48):f>=96&&f<=105?X=String(f-96):X=xFu[f]),f=X);f=f||""}return f===A.key&&(!A.hasModifiers||
!!t.shiftKey===!!A.shiftKey&&!!t.ctrlKey===!!A.ctrlKey&&!!t.altKey===!!A.altKey&&!!t.metaKey===!!A.metaKey)};
Vqx=function(A){return A.length===1?{combo:A,key:A,event:"keydown"}:A.split("+").reduce(function(t,f){var X=f.split(":");f=X[0];X=X[1];f in YL5?(t[YL5[f]]=!0,t.hasModifiers=!0):(t.key=f,t.event=X||"keydown");return t},{combo:A.split(":").shift()})};
Z3b=function(A){return A.trim().split(" ").map(function(t){return Vqx(t)})};
o6x=function(A,t){if(A&&A.fn){var f=A.fn;A.fn=function(){try{f.apply(this,arguments)}catch(X){if(X instanceof nP)console.warn("Argument '"+X.arg+"'"+(t?" for method '"+t+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw X;}}}return A};
SL5=function(){var A=[],t;var f=f||_.dF5.length;for(t=0;t<8;t++)A[t]=_.dF5[0|Math.random()*f];return A.join("")};
$Fq=function(){var A=_.Hu.apply(0,arguments);return A.length===0?function(t){return t}:A.length===1?A[0]:A.reduce(function(t,f){return function(){return t(f.apply(null,_.YV(_.Hu.apply(0,arguments))))}})};
H30=function(){var A=_.Hu.apply(0,arguments);return function(t){return function(f,X){f=t(f,X);var Q=function(){throw Error("Ge");},q={getState:f.getState,
dispatch:function(e){return Q.apply(null,[e].concat(_.YV(_.Hu.apply(1,arguments))))}};
X=A.map(function(e){return e(q)});
Q=$Fq.apply(null,_.YV(X))(f.dispatch);return Object.assign({},f,{dispatch:Q})}}};
g6T=function(A){Object.keys(A).forEach(function(t){var f=A[t];if(typeof f(void 0,{type:aC5})==="undefined")throw Error("He`"+t);if(typeof f(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+K9s()})==="undefined")throw Error("Ie`"+t+"`"+aC5);})};
Df=function(A){for(var t=Object.keys(A),f={},X=0;X<t.length;X++){var Q=t[X];typeof A[Q]==="function"&&(f[Q]=A[Q])}var q=Object.keys(f);try{g6T(f)}catch(G){var e=G}return function(G,N){G=G===void 0?{}:G;if(e)throw e;for(var z=!1,T={},O=0;O<q.length;O++){var c=q[O],B=G[c],h=(0,f[c])(B,N);if(typeof h==="undefined")throw G=N&&N.type,Error("Je`"+(G?'"'+String(G)+'"':"(unknown type)")+"`"+c);T[c]=h;z=z||h!==B}return(z=z||q.length!==Object.keys(G).length)?T:G}};
wIx=function(A,t,f){function X(){if(T)throw Error("Ke");return G}
function Q(B){if(typeof B!=="function")throw Error("Le`"+typeof B);if(T)throw Error("Me");var h=!0;z===N&&(z=N.slice());z.push(B);return function(){if(h){if(T)throw Error("Ne");h=!1;z===N&&(z=N.slice());var W=z.indexOf(B);z.splice(W,1);N=null}}}
function q(B){if(typeof B!=="object"||B===null)var h=!1;else{for(h=B;Object.getPrototypeOf(h)!==null;)h=Object.getPrototypeOf(h);h=Object.getPrototypeOf(B)===h}if(!h)throw Error("Oe`"+typeof B);if(typeof B.type==="undefined")throw Error("Pe");if(T)throw Error("Qe");try{T=!0,G=e(G,B)}finally{T=!1}h=N=z;for(var W=0;W<h.length;W++)(0,h[W])();return B}
if(typeof t==="function"&&typeof f==="function"||typeof f==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof t==="function"&&typeof f==="undefined"&&(f=t,t=void 0);if(typeof f!=="undefined"){if(typeof f!=="function")throw Error("Se`"+typeof f);return f(wIx)(A,t)}if(typeof A!=="function")throw Error("Te`"+typeof A);var e=A,G=t,N=[],z=N,T=!1;q({type:aC5});var O={},c=(O.dispatch=q,O.subscribe=Q,O.getState=X,O.replaceReducer=function(B){if(typeof B!=="function")throw Error("Ue`"+
typeof B);e=B;q({type:s1s});return c},O[kKu]=function(){var B={};
return B.subscribe=function(h){function W(){h.next&&h.next(X())}
if(typeof h!=="object"||h===null)throw new TypeError("Ve`"+typeof h);W();return{unsubscribe:Q(W)}},B[kKu]=function(){return this},B},O);
return c};
r1s=function(A){function t(){Q&&(Q=!1,A());q&&X()}
function f(){requestAnimationFrame(t)}
function X(){var G=Date.now();if(Q){if(G-e<2)return;q=!0}else Q=!0,q=!1,setTimeout(f,20);e=G}
var Q=!1,q=!1,e=0;return X};
FB=function(A){return typeof A==="number"?A:parseFloat(A)||0};
AUq=function(A){return _.Hu.apply(1,arguments).reduce(function(t,f){return t+FB(A["border-"+f+"-width"])},0)};
Qbx=function(A){if(t$z[A])return t$z[A];var t=globalThis[A],f=t.prototype,X=A in fXq?fXq[A]:void 0;X=!(!X||!X.every(function(N){var z,T;return!!((z=Object.getOwnPropertyDescriptor(f,N))==null?0:(T=z.get)==null?0:T.toString().includes("[native code]"))}));
var Q=A in X_5?X_5[A]:void 0;Q=!(!Q||!Q.every(function(N){var z;return typeof f[N]==="function"&&((z=f[N])==null?void 0:z.toString().includes("[native code]"))}));
if(X&&Q&&!globalThis.Zone)return t$z[A]=t.prototype;try{var q=document.createElement("iframe");document.body.appendChild(q);var e=q.contentWindow;if(!e)return t.prototype;var G=e[A].prototype;document.body.removeChild(q);return G?t$z[A]=G:f}catch(N){return f}};
IW=function(A,t,f){var X=A+"."+String(f);if(qY5[X])return qY5[X].call(t);A=Qbx(A);var Q;A=(Q=Object.getOwnPropertyDescriptor(A,f))==null?void 0:Q.get;if(!A)return t[f];qY5[X]=A;return A.call(t)};
UUz=function(A,t){var f="Node."+String(t);if(JUx[f])return JUx[f].bind(A);var X=Qbx("Node")[t];if(typeof X!=="function")return A[t];JUx[f]=X;return X.bind(A)};
xi=function(A,t,f){try{if(!(t in A))return function(){};
var X=A[t],Q=f(X);typeof Q==="function"&&(Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:X}}));A[t]=Q;return function(){A[t]=X}}catch(q){return function(){}}};
VV=function(A){var t=A&&"host"in A&&"mode"in A&&j0(A)||null;return!!(t&&"shadowRoot"in t&&Yi(t)===A)};
Zf=function(A){return Object.prototype.toString.call(A)==="[object ShadowRoot]"};
eig=function(A){A.includes(" background-clip: text;")&&!A.includes(" -webkit-background-clip: text;")&&(A=A.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return A};
lXs=function(A){try{var t=A.rules||A.cssRules;if(!t)return null;var f=A.href;!f&&A.ownerNode&&(f=A.ownerNode.baseURI);var X=Array.from(t,function(Q){return GWz(Q,f)}).join("");
return eig(X)}catch(Q){return null}};
GWz=function(A,t){if("styleSheet"in A){try{var f;if(!(f=lXs(A.styleSheet))){var X=A.cssText;if(X.split('"').length<3)f=X;else{var Q=["@import","url("+JSON.stringify(A.href)+")"];A.layerName===""?Q.push("layer"):A.layerName&&Q.push("layer("+A.layerName+")");A.supportsText&&Q.push("supports("+A.supportsText+")");A.media.length&&Q.push(A.media.mediaText);f=Q.join(" ")+";"}}var q=f}catch(e){q=A.cssText}return A.styleSheet.href?N_b(q,A.styleSheet.href):q}q=A.cssText;"selectorText"in A&&A.selectorText.includes(":")&&
(q=q.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return t?N_b(q,t):q};
uZz=function(A){var t=A.element;var f=A.maskInputOptions;var X=A.tagName;var Q=A.type;var q=A.value;A=A.maskInputFn;q=q||"";Q=Q&&Q.toLowerCase();if(f[X.toLowerCase()]||Q&&f[Q])q=A?A(q,t):"*".repeat(q.length);return q};
zi0=function(A){var t=A.getContext("2d");if(!t)return!0;for(var f=0;f<A.width;f+=50)for(var X=0;X<A.height;X+=50){var Q=t.getImageData;if((new Uint32Array(("__rrweb_original__"in Q?Q.__rrweb_original__:Q).call(t,f,X,Math.min(50,A.width-f),Math.min(50,A.height-X)).data.buffer)).some(function(q){return q!==0}))return!1}return!0};
P65=function(A){var t=A.type;return A.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null};
T_0=function(A){try{var t=new URL(A,window.location.href)}catch(Q){return null}var f,X;return(X=(f=t.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:f[1])!=null?X:null};
N_b=function(A,t){return(A||"").replace(i_z,function(f,X,Q,q,e,G){Q=Q||e||G;X=X||q||"";if(!Q)return f;if(O_s.test(Q)||cUz.test(Q)||B_0.test(Q))return"url("+X+Q+X+")";if(Q[0]==="/")return f=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],f=f.split("?")[0],"url("+X+(f+Q)+X+")";f=t.split("/");q=Q.split("/");f.pop();q=_.U(q);for(Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q!=="."&&(Q===".."?f.pop():f.push(Q));return"url("+X+f.join("/")+X+")"})};
M$p=function(A,t){return(t=t===void 0?!1:t)?A.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):A.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
C6T=function(A,t){var f=f===void 0?!1:f;t=Array.from(t.childNodes);var X=[],Q=0;if(t.length>1&&A&&typeof A==="string")for(var q=M$p(A,f),e=q.length/A.length,G=1;G<t.length;G++)if(t[G].textContent&&typeof t[G].textContent==="string"){for(var N=M$p(t[G].textContent,f),z=3;z<N.length&&(N[z].match(/[a-zA-Z0-9]/)||N.indexOf(N.substring(0,z),1)!==-1);z++);for(;z<N.length;z++){var T=N.substring(0,z),O=q.split(T),c=-1;if(O.length===2)c=O[0].length;else if(O.length>2&&O[0]===""&&t[G-1].textContent!=="")c=
q.indexOf(T,1);else if(O.length===1){T=T.substring(0,T.length-1);O=q.split(T);if(O.length<=1)return X.push(A),X;z=101}else z===N.length-1&&(c=q.indexOf(T));if(O.length>=2&&z>100){var B=t[G-1].textContent;B&&typeof B==="string"&&(c=q.indexOf(T,M$p(B).length));c===-1&&(c=O[0].length)}if(c!==-1){for(N=Math.floor(c/e);N>0&&N<A.length;){Q+=1;if(Q>50*t.length)return X.push(A),X;z=M$p(A.substring(0,N),f);if(z.length===c){X.push(A.substring(0,N));A=A.substring(N);q=q.substring(c);break}else N=z.length<c?
N+Math.max(1,Math.floor((c-z.length)/e)):N-Math.max(1,Math.floor((z.length-c)*e))}break}}}X.push(A);return X};
RiT=function(){return his++};
b_0=function(A){if(A instanceof HTMLFormElement)return"form";A=A.tagName.toLowerCase();return mUx.test(A)?"div":A};
Lk0=function(A,t){function f(z){return(z=z.exec(t.substring(X)))?(z=z[0],X+=z.length,z):""}
if(t.trim()==="")return t;for(var X=0,Q=[];;){f(Wkg);if(X>=t.length)break;var q=f(yUz);if(q.slice(-1)===",")q=vgx(A,q.substring(0,q.length-1)),Q.push(q);else{var e="";q=vgx(A,q);for(var G=!1;;){var N=t.charAt(X);if(N===""){Q.push((q+e).trim());break}else if(G)N===")"&&(G=!1);else if(N===","){X+=1;Q.push((q+e).trim());break}else N==="("&&(G=!0);e+=N;X+=1}}}return Q.join(", ")};
vgx=function(A,t){return t&&t.trim()!==""?p_s(A,t):t};
p_s=function(A,t){var f=Egz.get(A);f||(f=A.createElement("a"),Egz.set(A,f));if(!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;Kb(f,t);return f.href};
ngb=function(A,t,f,X){return X?f==="src"||f==="href"&&(t!=="use"||X[0]!=="#")||f==="xlink:href"&&X[0]!=="#"||f==="background"&&(t==="table"||t==="td"||t==="th")?vgx(A,X):f==="srcset"?Lk0(A,X):f==="style"?N_b(X,p_s(A)):t==="object"&&f==="data"?vgx(A,X):X:X};
DUb=function(A,t){return(A==="video"||A==="audio")&&t==="autoplay"};
Fk5=function(A,t,f){try{if(typeof t==="string"){if(A.classList.contains(t))return!0}else for(var X=A.classList.length;X--;)if(t.test(A.classList[X]))return!0;if(f)return A.matches(f)}catch(Q){}return!1};
IXx=function(A,t,f){if(!A)return!1;if(A.nodeType!==A.ELEMENT_NODE)return f?IXx(oW(A),t,f):!1;for(var X=A.classList.length;X--;)if(t.test(A.classList[X]))return!0;return f?IXx(oW(A),t,f):!1};
xU5=function(A,t,f,X){if(A.nodeType===A.ELEMENT_NODE){if(!d6(A).length)return!1}else{if(S0(A)===null)return!1;A=S0(A)}try{if(typeof t==="string")if(X){if(A.closest("."+t))return!0}else{if(A.classList.contains(t))return!0}else if(IXx(A,t,X))return!0;if(f)if(X){if(A.closest(f))return!0}else if(A.matches(f))return!0}catch(Q){}return!1};
jbq=function(A,t,f){var X=A.contentWindow;if(X){var Q=!1;try{var q=X.document.readyState}catch(G){return}if(q!=="complete"){var e=setTimeout(function(){Q||(t(),Q=!0)},f);
A.addEventListener("load",function(){clearTimeout(e);Q=!0;t()})}else X.location.href==="about:blank"&&A.src!=="about:blank"&&A.src!==""||setTimeout(t,0),A.addEventListener("load",t)}};
YYs=function(A,t,f){var X=!1;try{var Q=A.sheet}catch(e){return}if(!Q){var q=setTimeout(function(){X||(t(),X=!0)},f);
A.addEventListener("load",function(){clearTimeout(q);X=!0;t()})}};
ogq=function(A,t){var f=t.doc,X=t.blockClass,Q=t.blockSelector,q=t.needsMask,e=t.inlineStylesheet,G=t.maskInputOptions===void 0?{}:t.maskInputOptions,N=t.maskTextFn,z=t.maskInputFn,T=t.dataURLOptions===void 0?{}:t.dataURLOptions,O=t.inlineImages,c=t.recordCanvas,B=t.keepIframeSrcFn,h=t.newlyAddedElement===void 0?!1:t.newlyAddedElement,W=t.cssCaptured===void 0?!1:t.cssCaptured;t=t.mirror;t.nodeMetaMap.has(f)?(t=t.getId(f),t=t===1?void 0:t):t=void 0;switch(A.nodeType){case A.DOCUMENT_NODE:return A.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:A.compatMode}:{type:0,childNodes:[]};case A.DOCUMENT_TYPE_NODE:return{type:1,name:A.name,publicId:A.publicId,systemId:A.systemId,rootId:t};case A.ELEMENT_NODE:return V$5(A,{doc:f,blockClass:X,blockSelector:Q,inlineStylesheet:e,maskInputOptions:G,maskInputFn:z,dataURLOptions:T,inlineImages:O,recordCanvas:c,keepIframeSrcFn:B,newlyAddedElement:h,rootId:t});case A.TEXT_NODE:return e=(X=oW(A))&&X.tagName,X="",Q=e==="STYLE"?!0:void 0,(e=e==="SCRIPT"?!0:void 0)?
X="SCRIPT_PLACEHOLDER":W||(X=Z_0(A),Q&&X&&(X=N_b(X,p_s(f)))),!Q&&!e&&X&&q&&(X=N?N(X,S0(A)):X.replace(/[\S]/g,"*")),{type:3,textContent:X||"",rootId:t};case A.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:t};case A.COMMENT_NODE:return{type:5,textContent:Z_0(A)||"",rootId:t};default:return!1}};
V$5=function(A,t){var f=t.doc,X=t.inlineStylesheet,Q=t.maskInputOptions===void 0?{}:t.maskInputOptions,q=t.maskInputFn,e=t.dataURLOptions===void 0?{}:t.dataURLOptions,G=t.inlineImages,N=t.recordCanvas,z=t.keepIframeSrcFn,T=t.newlyAddedElement===void 0?!1:t.newlyAddedElement,O=t.rootId;t=Fk5(A,t.blockClass,t.blockSelector);for(var c=b_0(A),B={},h=A.attributes.length,W=0;W<h;W++){var L=A.attributes[W];DUb(c,L.name)||(B[L.name]=ngb(f,c,L.name.toLowerCase(),L.value))}c==="link"&&X&&(X=Array.from(f.styleSheets).find(function(d){return d.href===
A.href}),h=null,X&&(h=lXs(X)),h&&(delete B.rel,delete B.href,B._cssText=h));
c==="style"&&A.sheet&&(X=lXs(A.sheet))&&(A.childNodes.length>1&&(X=C6T(X,A).join("/* rr_split */")),B._cssText=X);if(c==="input"||c==="textarea"||c==="select")X=A.value,h=A.checked,B.type!=="radio"&&B.type!=="checkbox"&&B.type!=="submit"&&B.type!=="button"&&X?B.value=uZz({element:A,type:P65(A),tagName:c,value:X,maskInputOptions:Q,maskInputFn:q}):h&&(B.checked=h);c==="option"&&(A.selected&&!Q.select?B.selected=!0:delete B.selected);c==="dialog"&&A.open&&(B.rr_open_mode=A.matches("dialog:modal")?"modal":
"non-modal");c==="canvas"&&N&&(A.__context==="2d"?zi0(A)||(B.rr_dataURL=A.toDataURL(e.type,e.quality)):"__context"in A||(Q=A.toDataURL(e.type,e.quality),q=f.createElement("canvas"),q.width=A.width,q.height=A.height,q=q.toDataURL(e.type,e.quality),Q!==q&&(B.rr_dataURL=Q)));if(c==="img"&&G){$i||($i=f.createElement("canvas"),dUs=$i.getContext("2d"));var E=A.currentSrc||A.getAttribute("src")||"<unknown-src>",D=A.crossOrigin,S=function(){A.removeEventListener("load",S);try{$i.width=A.naturalWidth,$i.height=
A.naturalHeight,dUs.drawImage(A,0,0),B.rr_dataURL=$i.toDataURL(e.type,e.quality)}catch(d){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous";A.complete&&A.naturalWidth!==0?S():A.addEventListener("load",S);return}console.warn("Cannot inline img src="+E+"! Error: "+d)}A.crossOrigin==="anonymous"&&(D?B.crossOrigin=D:A.removeAttribute("crossorigin"))};
A.complete&&A.naturalWidth!==0?S():A.addEventListener("load",S)}if(c==="audio"||c==="video")f=B,f.rr_mediaState=A.paused?"paused":"played",f.rr_mediaCurrentTime=A.currentTime,f.rr_mediaPlaybackRate=A.playbackRate,f.rr_mediaMuted=A.muted,f.rr_mediaLoop=A.loop,f.rr_mediaVolume=A.volume;T||(A.scrollLeft&&(B.rr_scrollLeft=A.scrollLeft),A.scrollTop&&(B.rr_scrollTop=A.scrollTop));t&&(T=A.getBoundingClientRect(),B={class:B.class,rr_width:T.width+"px",rr_height:T.height+"px"});c!=="iframe"||z(B.src)||(A.contentDocument||
(B.rr_src=B.src),delete B.src);var Z;try{customElements.get(c)&&(Z=!0)}catch(d){}return{type:2,tagName:c,attributes:B,childNodes:[],isSVG:!(A.tagName!=="svg"&&!A.ownerSVGElement)||void 0,needBlock:t,rootId:O,isCustom:Z}};
HV=function(A){return A===void 0||A===null?"":A.toLowerCase()};
SYx=function(A,t){return t.comment&&A.type===5||A.type===2&&(t.script&&(A.tagName==="script"||A.tagName==="link"&&(A.attributes.rel==="preload"&&A.attributes.as==="script"||A.attributes.rel==="modulepreload")||A.tagName==="link"&&A.attributes.rel==="prefetch"&&typeof A.attributes.href==="string"&&T_0(A.attributes.href)==="js")||t.headFavicon&&(A.tagName==="link"&&A.attributes.rel==="shortcut icon"||A.tagName==="meta"&&(HV(A.attributes.name).match(/^msapplication-tile(image|color)$/)||HV(A.attributes.name)===
"application-name"||HV(A.attributes.rel)==="icon"||HV(A.attributes.rel)==="apple-touch-icon"||HV(A.attributes.rel)==="shortcut icon"))||A.tagName==="meta"&&(t.headMetaDescKeywords&&HV(A.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(HV(A.attributes.property).match(/^(og|twitter|fb):/)||HV(A.attributes.name).match(/^(og|twitter):/)||HV(A.attributes.name)==="pinterest")||t.headMetaRobots&&(HV(A.attributes.name)==="robots"||HV(A.attributes.name)==="googlebot"||HV(A.attributes.name)===
"bingbot")||t.headMetaHttpEquiv&&A.attributes["http-equiv"]!==void 0||t.headMetaAuthorship&&(HV(A.attributes.name)==="author"||HV(A.attributes.name)==="generator"||HV(A.attributes.name)==="framework"||HV(A.attributes.name)==="publisher"||HV(A.attributes.name)==="progid"||HV(A.attributes.property).match(/^article:/)||HV(A.attributes.property).match(/^product:/))||t.headMetaVerification&&(HV(A.attributes.name)==="google-site-verification"||HV(A.attributes.name)==="yandex-verification"||HV(A.attributes.name)===
"csrf-token"||HV(A.attributes.name)==="p:domain_verify"||HV(A.attributes.name)==="verify-v1"||HV(A.attributes.name)==="verification"||HV(A.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
aW=function(A,t){var f=t.doc,X=t.mirror,Q=t.blockClass,q=t.blockSelector,e=t.maskTextClass,G=t.maskTextSelector,N=t.skipChild===void 0?!1:t.skipChild,z=t.inlineStylesheet===void 0?!0:t.inlineStylesheet,T=t.maskInputOptions===void 0?{}:t.maskInputOptions,O=t.maskTextFn,c=t.maskInputFn,B=t.slimDOMOptions,h=t.dataURLOptions===void 0?{}:t.dataURLOptions,W=t.inlineImages===void 0?!1:t.inlineImages,L=t.recordCanvas===void 0?!1:t.recordCanvas,E=t.onSerialize,D=t.onIframeLoad,S=t.iframeLoadTimeout===void 0?
5E3:t.iframeLoadTimeout,Z=t.onStylesheetLoad,d=t.stylesheetLoadTimeout===void 0?5E3:t.stylesheetLoadTimeout,K=t.keepIframeSrcFn===void 0?function(){return!1}:t.keepIframeSrcFn,k=t.newlyAddedElement===void 0?!1:t.newlyAddedElement,Gz=t.cssCaptured===void 0?!1:t.cssCaptured,Tz=t.needsMask,y5=t.preserveWhiteSpace===void 0?!0:t.preserveWhiteSpace;
Tz||(Tz=xU5(A,e,G,Tz===void 0));var cp=ogq(A,{doc:f,mirror:X,blockClass:Q,blockSelector:q,needsMask:Tz,inlineStylesheet:z,maskInputOptions:T,maskTextFn:O,maskInputFn:c,dataURLOptions:h,inlineImages:W,recordCanvas:L,keepIframeSrcFn:K,newlyAddedElement:k,cssCaptured:Gz});if(!cp)return console.warn(A,"not serialized"),null;k=X.nodeMetaMap.has(A)?X.getId(A):SYx(cp,B)||!y5&&cp.type===3&&!cp.textContent.replace(/^\s+|\s+$/gm,"").length?-2:his++;t=Object.assign(cp,{id:k});X.add(A,t);if(k===-2)return null;
E&&E(A);k=!N;t.type===2&&(k=k&&!t.needBlock,delete t.needBlock,(Gz=Yi(A))&&Zf(Gz)&&(t.isShadowHost=!0));if((t.type===0||t.type===2)&&k){B.headWhitespace&&t.type===2&&t.tagName==="head"&&(y5=!1);N={doc:f,mirror:X,blockClass:Q,blockSelector:q,needsMask:Tz,maskTextClass:e,maskTextSelector:G,skipChild:N,inlineStylesheet:z,maskInputOptions:T,maskTextFn:O,maskInputFn:c,slimDOMOptions:B,dataURLOptions:h,inlineImages:W,recordCanvas:L,preserveWhiteSpace:y5,onSerialize:E,onIframeLoad:D,iframeLoadTimeout:S,
onStylesheetLoad:Z,stylesheetLoadTimeout:d,keepIframeSrcFn:K,cssCaptured:!1};if(t.type!==2||t.tagName!=="textarea"||t.attributes.value===void 0)for(t.type===2&&t.attributes._cssText!==void 0&&typeof t.attributes._cssText==="string"&&(N.cssCaptured=!0),k=_.U(Array.from(d6(A))),Gz=k.next();!Gz.done;Gz=k.next())(Gz=aW(Gz.value,N))&&t.childNodes.push(Gz);k=null;if(A.nodeType===A.ELEMENT_NODE&&(k=Yi(A))){Gz=_.U(Array.from(d6(k)));for(var iu=Gz.next();!iu.done;iu=Gz.next())if(iu=aW(iu.value,N))Zf(k)&&(iu.isShadow=
!0),t.childNodes.push(iu)}}(N=oW(A))&&VV(N)&&Zf(N)&&(t.isShadow=!0);t.type===2&&t.tagName==="iframe"&&jbq(A,function(){var Fb=A.contentDocument;Fb&&D&&(Fb=aW(Fb,{doc:Fb,mirror:X,blockClass:Q,blockSelector:q,needsMask:Tz,maskTextClass:e,maskTextSelector:G,skipChild:!1,inlineStylesheet:z,maskInputOptions:T,maskTextFn:O,maskInputFn:c,slimDOMOptions:B,dataURLOptions:h,inlineImages:W,recordCanvas:L,preserveWhiteSpace:y5,onSerialize:E,onIframeLoad:D,iframeLoadTimeout:S,onStylesheetLoad:Z,stylesheetLoadTimeout:d,
keepIframeSrcFn:K}))&&D(A,Fb)},S);
t.type===2&&t.tagName==="link"&&typeof t.attributes.rel==="string"&&(t.attributes.rel==="stylesheet"||t.attributes.rel==="preload"&&typeof t.attributes.href==="string"&&T_0(t.attributes.href)==="css")&&YYs(A,function(){if(Z){var Fb=aW(A,{doc:f,mirror:X,blockClass:Q,blockSelector:q,needsMask:Tz,maskTextClass:e,maskTextSelector:G,skipChild:!1,inlineStylesheet:z,maskInputOptions:T,maskTextFn:O,maskInputFn:c,slimDOMOptions:B,dataURLOptions:h,inlineImages:W,recordCanvas:L,preserveWhiteSpace:y5,onSerialize:E,
onIframeLoad:D,iframeLoadTimeout:S,onStylesheetLoad:Z,stylesheetLoadTimeout:d,keepIframeSrcFn:K});Fb&&Z(A,Fb)}},d);
return t};
$Ux=function(A){var t=document;A=A||{};var f=A.maskAllInputs===void 0?!1:A.maskAllInputs,X=A.slimDOM===void 0?!1:A.slimDOM;return aW(t,{doc:t,mirror:A.mirror===void 0?new KP:A.mirror,blockClass:A.blockClass===void 0?"rr-block":A.blockClass,blockSelector:A.blockSelector===void 0?null:A.blockSelector,maskTextClass:A.maskTextClass===void 0?"rr-mask":A.maskTextClass,maskTextSelector:A.maskTextSelector===void 0?null:A.maskTextSelector,skipChild:!1,inlineStylesheet:A.inlineStylesheet===void 0?!0:A.inlineStylesheet,
maskInputOptions:f===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f===!1?{password:!0}:f,maskTextFn:A.maskTextFn,maskInputFn:A.maskInputFn,slimDOMOptions:X===!0||X==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:X==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:X===!1?{}:X,dataURLOptions:A.dataURLOptions,
inlineImages:A.inlineImages===void 0?!1:A.inlineImages,recordCanvas:A.recordCanvas===void 0?!1:A.recordCanvas,preserveWhiteSpace:A.preserveWhiteSpace,onSerialize:A.onSerialize,onIframeLoad:A.onIframeLoad,iframeLoadTimeout:A.iframeLoadTimeout,onStylesheetLoad:A.onStylesheetLoad,stylesheetLoadTimeout:A.stylesheetLoadTimeout,keepIframeSrcFn:A.keepIframeSrcFn===void 0?function(){return!1}:A.keepIframeSrcFn,
newlyAddedElement:!1})};
g6=function(A,t,f){f=f===void 0?document:f;var X={capture:!0,passive:!0};f.addEventListener(A,t,X);return function(){return f.removeEventListener(A,t,X)}};
w6=function(A,t,f){f=f===void 0?{}:f;var X=null,Q=0;return function(){var q=_.Hu.apply(0,arguments),e=Date.now();Q||f.leading!==!1||(Q=e);var G=t-(e-Q),N=this;G<=0||G>t?(X&&(clearTimeout(X),X=null),Q=e,A.apply(N,q)):X||f.trailing===!1||(X=setTimeout(function(){Q=f.leading===!1?0:Date.now();X=null;A.apply(N,q)},G))}};
H_T=function(A,t,f,X,Q){Q=Q===void 0?window:Q;var q=Q.Object.getOwnPropertyDescriptor(A,t);Q.Object.defineProperty(A,t,X?f:{set:function(e){var G=this;setTimeout(function(){f.set.call(G,e)},0);
q&&q.set&&q.set.call(this,e)}});
return function(){return H_T(A,t,q||{},!0)}};
aX0=function(A){var t=A.document,f,X,Q,q;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:A.pageXOffset!==void 0?A.pageXOffset:t.documentElement.scrollLeft||(t==null?void 0:t.body)&&((f=S0(t.body))==null?void 0:f.scrollLeft)||(t==null?void 0:(X=t.body)==null?void 0:X.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:A.pageYOffset!==void 0?A.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||(t==null?void 0:t.body)&&((Q=S0(t.body))==null?void 0:Q.scrollTop)||(t==
null?void 0:(q=t.body)==null?void 0:q.scrollTop)||0}};
Kkb=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
ggx=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
w_x=function(A){return A?A.nodeType===A.ELEMENT_NODE?A:S0(A):null};
sg=function(A,t,f,X){if(!A)return!1;A=w_x(A);if(!A)return!1;try{if(typeof t==="string"){if(A.classList.contains(t)||X&&A.closest("."+t)!==null)return!0}else if(IXx(A,t,X))return!0}catch(Q){}return f&&(A.matches(f)||X&&A.closest(f)!==null)?!0:!1};
sbs=function(A,t,f){return A.tagName==="TITLE"&&f.headTitleMutations?!0:t.getId(A)===-2};
kWx=function(A,t){if(VV(A))return!1;var f=t.getId(A);return t.has(f)?(f=oW(A))&&f.nodeType===A.DOCUMENT_NODE?!1:f?kWx(f,t):!0:!0};
rUu=function(){var A=A===void 0?window:A;"NodeList"in A&&!A.NodeList.prototype.forEach&&(A.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in A&&!A.DOMTokenList.prototype.forEach&&(A.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
AH5=function(A,t){return!(A.nodeName!=="LINK"||A.nodeType!==A.ELEMENT_NODE||!A.getAttribute||A.getAttribute("rel")!=="stylesheet"||!t.nodeMetaMap.get(A))};
fWx=function(A){var t=null,f;"getRootNode"in A&&((f=tQb(A))==null?void 0:f.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&j0(tQb(A))&&(t=j0(tQb(A)));return t};
Xoz=function(A){var t=A.ownerDocument;if(t){if(!(t=UUz(t,"contains")(A)))if(t=A.ownerDocument){for(var f;f=fWx(A);)A=f;t=UUz(t,"contains")(A)}else t=!1}else t=!1;return t};
QP5=function(A,t){A.delete(t);d6(t).forEach(function(f){return QP5(A,f)})};
qEu=function(A,t){for(var f=[A];f.length;)A=f.pop(),t.has(A)||(t.add(A),d6(A).forEach(function(X){return f.push(X)}))};
JHs=function(A,t){A.size===0?A=!1:A=(t=oW(t))?A.has(t):!1;return A};
e00=function(A,t){return A.size===0?!1:U3g(A,t)};
U3g=function(A,t){return(t=oW(t))?A.has(t)?!0:U3g(A,t):!1};
ki=function(A){try{if("composedPath"in A){var t=A.composedPath();if(t.length)return t[0]}else if("path"in A&&A.path.length)return A.path[0]}catch(f){}return A&&A.target};
lWg=function(A,t){var f=new GYx;r6.push(f);f.init(A);A=new (Qbx("MutationObserver").constructor)(AG(f.processMutations.bind(f)));A.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return A};
uop=function(A){var t=A.mousemoveCb;var f=A.sampling;var X=A.doc;var Q=A.mirror;if(f.mousemove===!1)return function(){};
var q=[],e,G=w6(AG(function(z){var T=Date.now()-e;t(q.map(function(O){O.timeOffset-=T;return O}),z);
q=[];e=null}),typeof f.mousemoveCallback==="number"?f.mousemoveCallback:500);
A=AG(w6(AG(function(z){var T=ki(z),O=z.changedTouches?z.changedTouches[0]:z,c=O.clientX;O=O.clientY;e||(e=Nzs());q.push({x:c,y:O,id:Q.getId(T),timeOffset:Nzs()-e});G(typeof DragEvent!=="undefined"&&z instanceof DragEvent?12:z instanceof MouseEvent?1:6)}),typeof f.mousemove==="number"?f.mousemove:50,{trailing:!1}));
var N=[g6("mousemove",A,X),g6("touchmove",A,X),g6("drag",A,X)];return AG(function(){N.forEach(function(z){return z()})})};
z0l=function(A){var t=A.mouseInteractionCb;var f=A.doc;var X=A.mirror;var Q=A.blockClass;var q=A.blockSelector;A=A.sampling;if(A.mouseInteraction===!1)return function(){};
var e=A.mouseInteraction===!0||A.mouseInteraction===void 0?{}:A.mouseInteraction,G=[],N=null,z=function(T){return function(O){var c=ki(O);if(!sg(c,Q,q,!0)){var B=null,h=T;if("pointerType"in O){switch(O.pointerType){case "mouse":B=0;break;case "touch":B=2;break;case "pen":B=1}B===2&&(tG[T]===1?h="TouchStart":tG[T]===0&&(h="TouchEnd"))}else O.changedTouches&&(B=2);if(B!==null){if(N=B,h.startsWith("Touch")&&B===2||h.startsWith("Mouse")&&B===0)B=null}else tG[T]===2&&(B=N,N=null);if(O=O.changedTouches?
O.changedTouches[0]:O)c=X.getId(c),AG(t)(Object.assign({},{type:tG[h],id:c,x:O.clientX,y:O.clientY},B!==null&&{pointerType:B}))}}};
Object.keys(tG).filter(function(T){return Number.isNaN(Number(T))&&!T.endsWith("_Departed")&&e[T]!==!1}).forEach(function(T){var O=T.toLowerCase(),c=z(T);
if(window.PointerEvent)switch(tG[T]){case 1:case 0:O=O.replace("mouse","pointer");break;case 7:case 9:return}G.push(g6(O,c,f))});
return AG(function(){G.forEach(function(T){return T()})})};
PRz=function(A){var t=A.scrollCb;var f=A.doc;var X=A.mirror;var Q=A.blockClass;var q=A.blockSelector;return g6("scroll",AG(w6(AG(function(e){var G=ki(e);G&&!sg(G,Q,q,!0)&&(e=X.getId(G),G===f&&f.defaultView?(G=aX0(f.defaultView),t({id:e,x:G.left,y:G.top})):t({id:e,x:G.scrollLeft,y:G.scrollTop}))}),A.sampling.scroll||100)),f)};
Tzs=function(A,t){var f=A.viewportResizeCb;var X=-1,Q=-1;return g6("resize",AG(w6(AG(function(){var q=Kkb(),e=ggx();if(X!==q||Q!==e)f({width:Number(e),height:Number(q)}),X=q,Q=e}),200)),t.win)};
cH5=function(A){function t(L){var E=ki(L),D=L.isTrusted,S=E&&E.tagName;E&&S==="OPTION"&&(E=S0(E));if(!(!E||!S||iLu.indexOf(S)<0||sg(E,e,G,!0)||E.classList.contains(N)||z&&E.matches(z))){var Z=E.value,d=!1;L=P65(E)||"";if(L==="radio"||L==="checkbox")d=E.checked;else if(T[S.toLowerCase()]||T[L])Z=uZz({element:E,maskInputOptions:T,tagName:S,type:L,value:Z,maskInputFn:O});f(E,B?{text:Z,isChecked:d,userTriggered:D}:{text:Z,isChecked:d});D=E.name;L==="radio"&&D&&d&&Q.querySelectorAll('input[type="radio"][name="'+
D+'"]').forEach(function(K){if(K!==E){var k=K.value;f(K,B?{text:k,isChecked:!d,userTriggered:!1}:{text:k,isChecked:!d})}})}}
function f(L,E){var D=OLg.get(L);D&&D.text===E.text&&D.isChecked===E.isChecked||(OLg.set(L,E),L=q.getId(L),AG(X)(Object.assign({},E,{id:L})))}
var X=A.inputCb;var Q=A.doc;var q=A.mirror;var e=A.blockClass;var G=A.blockSelector;var N=A.ignoreClass;var z=A.ignoreSelector;var T=A.maskInputOptions;var O=A.maskInputFn;var c=A.sampling;var B=A.userTriggeredOnInput;var h=(c.input==="last"?["change"]:["input","change"]).map(function(L){return g6(L,AG(t),Q)}),W=Q.defaultView;
if(!W)return function(){h.forEach(function(L){return L()})};
A=W.Object.getOwnPropertyDescriptor(W.HTMLInputElement.prototype,"value");c=[[W.HTMLInputElement.prototype,"value"],[W.HTMLInputElement.prototype,"checked"],[W.HTMLSelectElement.prototype,"value"],[W.HTMLTextAreaElement.prototype,"value"],[W.HTMLSelectElement.prototype,"selectedIndex"],[W.HTMLOptionElement.prototype,"selected"]];A&&A.set&&h.push.apply(h,_.YV(c.map(function(L){return H_T(L[0],L[1],{set:function(){AG(t)({target:this,isTrusted:!1})}},!1,W)})));
return AG(function(){h.forEach(function(L){return L()})})};
MQx=function(A){var t=[],f,X,Q,q;Bzb("CSSGroupingRule")&&((f=A.parentRule)==null?void 0:(X=f.constructor)==null?void 0:X.name)==="CSSGroupingRule"||Bzb("CSSMediaRule")&&A.parentRule instanceof CSSMediaRule||Bzb("CSSSupportsRule")&&A.parentRule instanceof CSSSupportsRule||Bzb("CSSConditionRule")&&((Q=A.parentRule)==null?void 0:(q=Q.constructor)==null?void 0:q.name)==="CSSConditionRule"?(A=Array.from(A.parentRule.cssRules).indexOf(A),t.unshift(A)):A.parentStyleSheet&&(A=Array.from(A.parentStyleSheet.cssRules).indexOf(A),
t.unshift(A));return t};
fG=function(A,t,f){var X,Q;if(!A)return{};A.ownerNode?X=t.getId(A.ownerNode):Q=f.getId(A);return{styleId:Q,id:X}};
h0p=function(A,t){var f=A.styleSheetRuleCb;var X=A.mirror;var Q=A.stylesheetManager;var q=t.win;if(!q.CSSStyleSheet||!q.CSSStyleSheet.prototype)return function(){};
var e=q.CSSStyleSheet.prototype.insertRule;q.CSSStyleSheet.prototype.insertRule=new X5(e,{apply:AG(function(c,B,h){var W=_.U(h),L=W.next().value;W=W.next().value;var E=fG(B,X,Q.styleMirror),D=E.id;E=E.styleId;(D&&D!==-1||E&&E!==-1)&&f({id:D,styleId:E,adds:[{rule:L,index:W}]});return c.apply(B,h)})});
q.CSSStyleSheet.prototype.addRule=function(c,B,h){h=h===void 0?this.cssRules.length:h;return q.CSSStyleSheet.prototype.insertRule.apply(this,[c+" { "+B+" }",h])};
var G=q.CSSStyleSheet.prototype.deleteRule;q.CSSStyleSheet.prototype.deleteRule=new X5(G,{apply:AG(function(c,B,h){var W=_.U(h).next().value,L=fG(B,X,Q.styleMirror),E=L.id;L=L.styleId;(E&&E!==-1||L&&L!==-1)&&f({id:E,styleId:L,removes:[{index:W}]});return c.apply(B,h)})});
q.CSSStyleSheet.prototype.removeRule=function(c){return q.CSSStyleSheet.prototype.deleteRule.apply(this,[c])};
if(q.CSSStyleSheet.prototype.replace){var N=q.CSSStyleSheet.prototype.replace;q.CSSStyleSheet.prototype.replace=new X5(N,{apply:AG(function(c,B,h){var W=_.U(h).next().value,L=fG(B,X,Q.styleMirror),E=L.id;L=L.styleId;(E&&E!==-1||L&&L!==-1)&&f({id:E,styleId:L,replace:W});return c.apply(B,h)})})}if(q.CSSStyleSheet.prototype.replaceSync){var z=q.CSSStyleSheet.prototype.replaceSync;
q.CSSStyleSheet.prototype.replaceSync=new X5(z,{apply:AG(function(c,B,h){var W=_.U(h).next().value,L=fG(B,X,Q.styleMirror),E=L.id;L=L.styleId;(E&&E!==-1||L&&L!==-1)&&f({id:E,styleId:L,replaceSync:W});return c.apply(B,h)})})}var T={};
CRb("CSSGroupingRule")?T.CSSGroupingRule=q.CSSGroupingRule:(CRb("CSSMediaRule")&&(T.CSSMediaRule=q.CSSMediaRule),CRb("CSSConditionRule")&&(T.CSSConditionRule=q.CSSConditionRule),CRb("CSSSupportsRule")&&(T.CSSSupportsRule=q.CSSSupportsRule));var O={};Object.entries(T).forEach(function(c){var B=_.U(c);c=B.next().value;B=B.next().value;O[c]={insertRule:B.prototype.insertRule,deleteRule:B.prototype.deleteRule};B.prototype.insertRule=new X5(O[c].insertRule,{apply:AG(function(h,W,L){var E=_.U(L),D=E.next().value;
E=E.next().value;var S=fG(W.parentStyleSheet,X,Q.styleMirror),Z=S.id;S=S.styleId;(Z&&Z!==-1||S&&S!==-1)&&f({id:Z,styleId:S,adds:[{rule:D,index:[].concat(_.YV(MQx(W)),[E||0])}]});return h.apply(W,L)})});
B.prototype.deleteRule=new X5(O[c].deleteRule,{apply:AG(function(h,W,L){var E=_.U(L).next().value,D=fG(W.parentStyleSheet,X,Q.styleMirror),S=D.id;D=D.styleId;(S&&S!==-1||D&&D!==-1)&&f({id:S,styleId:D,removes:[{index:[].concat(_.YV(MQx(W)),[E])}]});return h.apply(W,L)})})});
return AG(function(){q.CSSStyleSheet.prototype.insertRule=e;q.CSSStyleSheet.prototype.deleteRule=G;N&&(q.CSSStyleSheet.prototype.replace=N);z&&(q.CSSStyleSheet.prototype.replaceSync=z);Object.entries(T).forEach(function(c){var B=_.U(c);c=B.next().value;B=B.next().value;B.prototype.insertRule=O[c].insertRule;B.prototype.deleteRule=O[c].deleteRule})})};
m3x=function(A,t){var f=A.mirror;var X=A.stylesheetManager;var Q=null;Q=t.nodeName==="#document"?f.getId(t):f.getId(j0(t));var q,e,G;A=t.nodeName==="#document"?(q=t.defaultView)==null?void 0:q.Document:(e=t.ownerDocument)==null?void 0:(G=e.defaultView)==null?void 0:G.ShadowRoot;var N=(A==null?0:A.prototype)?Object.getOwnPropertyDescriptor(A==null?void 0:A.prototype,"adoptedStyleSheets"):void 0;if(Q===null||Q===-1||!A||!N)return function(){};
Object.defineProperty(t,"adoptedStyleSheets",{configurable:N.configurable,enumerable:N.enumerable,get:function(){var z;return(z=N.get)==null?void 0:z.call(this)},
set:function(z){var T,O=(T=N.set)==null?void 0:T.call(this,z);if(Q!==null&&Q!==-1)try{R0l(X,z,Q)}catch(c){}return O}});
return AG(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:N.configurable,enumerable:N.enumerable,get:N.get,set:N.set})})};
bL5=function(A,t){var f=A.styleDeclarationCb;var X=A.mirror;var Q=A.ignoreCSSAttributes;var q=A.stylesheetManager;var e=t.win;var G=e.CSSStyleDeclaration.prototype.setProperty;e.CSSStyleDeclaration.prototype.setProperty=new X5(G,{apply:AG(function(z,T,O){var c=_.U(O),B=c.next().value,h=c.next().value;c=c.next().value;if(Q.has(B))return G.apply(T,[B,h,c]);var W,L=fG((W=T.parentRule)==null?void 0:W.parentStyleSheet,X,q.styleMirror);W=L.id;L=L.styleId;(W&&W!==-1||L&&L!==-1)&&f({id:W,styleId:L,set:{property:B,
value:h,priority:c},index:MQx(T.parentRule)});return z.apply(T,O)})});
var N=e.CSSStyleDeclaration.prototype.removeProperty;e.CSSStyleDeclaration.prototype.removeProperty=new X5(N,{apply:AG(function(z,T,O){var c=_.U(O).next().value;if(Q.has(c))return N.apply(T,[c]);var B,h=fG((B=T.parentRule)==null?void 0:B.parentStyleSheet,X,q.styleMirror);B=h.id;h=h.styleId;(B&&B!==-1||h&&h!==-1)&&f({id:B,styleId:h,remove:{property:c},index:MQx(T.parentRule)});return z.apply(T,O)})});
return AG(function(){e.CSSStyleDeclaration.prototype.setProperty=G;e.CSSStyleDeclaration.prototype.removeProperty=N})};
Wm5=function(A){var t=A.mediaInteractionCb;var f=A.blockClass;var X=A.blockSelector;var Q=A.mirror;var q=A.sampling;A=A.doc;var e=AG(function(N){return w6(AG(function(z){if((z=ki(z))&&!sg(z,f,X,!0)){var T=z.currentTime,O=z.volume,c=z.muted,B=z.playbackRate,h=z.loop;t({type:N,id:Q.getId(z),currentTime:T,volume:O,muted:c,playbackRate:B,loop:h})}}),q.media||500)}),G=[g6("play",e(0),A),
g6("pause",e(1),A),g6("seeked",e(2),A),g6("volumechange",e(3),A),g6("ratechange",e(4),A)];return AG(function(){G.forEach(function(N){return N()})})};
yHs=function(A){var t=A.fontCb;A=A.doc;var f=A.defaultView;if(!f)return function(){};
var X=[],Q=new WeakMap,q=f.FontFace;f.FontFace=function(e,G,N){var z=new q(e,G,N);Q.set(z,{family:e,buffer:typeof G!=="string",descriptors:N,fontSource:typeof G==="string"?G:JSON.stringify(Array.from(new Uint8Array(G)))});return z};
A=xi(A.fonts,"add",function(e){return function(G){setTimeout(AG(function(){var N=Q.get(G);N&&(t(N),Q.delete(G))}),0);
return e.apply(this,[G])}});
X.push(function(){f.FontFace=q});
X.push(A);return AG(function(){X.forEach(function(e){return e()})})};
vwx=function(A){var t=A.doc,f=A.mirror,X=A.blockClass,Q=A.blockSelector,q=A.selectionCb,e=!0;A=AG(function(){var G=t.getSelection();if(G&&!(e&&(G==null?0:G.isCollapsed))){e=G.isCollapsed||!1;for(var N=[],z=G.rangeCount||0,T=0;T<z;T++){var O=G.getRangeAt(T),c=O.startContainer,B=O.startOffset,h=O.endContainer;O=O.endOffset;sg(c,X,Q,!0)||sg(h,X,Q,!0)||N.push({start:f.getId(c),startOffset:B,end:f.getId(h),endOffset:O})}q({ranges:N})}});
A();return g6("selectionchange",A)};
Lmx=function(A){var t=A.doc;var f=A.customElementCb;return(A=t.defaultView)&&A.customElements?xi(A.customElements,"define",function(X){return function(Q,q,e){try{f({define:{name:Q}})}catch(G){console.warn("Custom element callback failed for "+Q)}return X.apply(this,[Q,q,e])}}):function(){}};
pol=function(A,t){var f=A.mutationCb,X=A.mousemoveCb,Q=A.mouseInteractionCb,q=A.scrollCb,e=A.viewportResizeCb,G=A.inputCb,N=A.mediaInteractionCb,z=A.styleSheetRuleCb,T=A.styleDeclarationCb,O=A.canvasMutationCb,c=A.fontCb,B=A.selectionCb,h=A.customElementCb;A.mutationCb=function(){var W=_.Hu.apply(0,arguments);t.mutation&&t.mutation.apply(t,_.YV(W));f.apply(null,_.YV(W))};
A.mousemoveCb=function(){var W=_.Hu.apply(0,arguments);t.mousemove&&t.mousemove.apply(t,_.YV(W));X.apply(null,_.YV(W))};
A.mouseInteractionCb=function(){var W=_.Hu.apply(0,arguments);t.mouseInteraction&&t.mouseInteraction.apply(t,_.YV(W));Q.apply(null,_.YV(W))};
A.scrollCb=function(){var W=_.Hu.apply(0,arguments);t.scroll&&t.scroll.apply(t,_.YV(W));q.apply(null,_.YV(W))};
A.viewportResizeCb=function(){var W=_.Hu.apply(0,arguments);t.viewportResize&&t.viewportResize.apply(t,_.YV(W));e.apply(null,_.YV(W))};
A.inputCb=function(){var W=_.Hu.apply(0,arguments);t.input&&t.input.apply(t,_.YV(W));G.apply(null,_.YV(W))};
A.mediaInteractionCb=function(){var W=_.Hu.apply(0,arguments);t.mediaInteaction&&t.mediaInteaction.apply(t,_.YV(W));N.apply(null,_.YV(W))};
A.styleSheetRuleCb=function(){var W=_.Hu.apply(0,arguments);t.styleSheetRule&&t.styleSheetRule.apply(t,_.YV(W));z.apply(null,_.YV(W))};
A.styleDeclarationCb=function(){var W=_.Hu.apply(0,arguments);t.styleDeclaration&&t.styleDeclaration.apply(t,_.YV(W));T.apply(null,_.YV(W))};
A.canvasMutationCb=function(){var W=_.Hu.apply(0,arguments);t.canvasMutation&&t.canvasMutation.apply(t,_.YV(W));O.apply(null,_.YV(W))};
A.fontCb=function(){var W=_.Hu.apply(0,arguments);t.font&&t.font.apply(t,_.YV(W));c.apply(null,_.YV(W))};
A.selectionCb=function(){var W=_.Hu.apply(0,arguments);t.selection&&t.selection.apply(t,_.YV(W));B.apply(null,_.YV(W))};
A.customElementCb=function(){var W=_.Hu.apply(0,arguments);t.customElement&&t.customElement.apply(t,_.YV(W));h.apply(null,_.YV(W))}};
Ewz=function(A,t){t=t===void 0?{}:t;var f=A.doc.defaultView;if(!f)return function(){};
pol(A,t);var X;A.recordDOM&&(X=lWg(A,A.doc));var Q=uop(A),q=z0l(A),e=PRz(A),G=Tzs(A,{win:f}),N=cH5(A),z=Wm5(A),T=function(){},O=function(){},c=function(){},B=function(){};
A.recordDOM&&(T=h0p(A,{win:f}),O=m3x(A,A.doc),c=bL5(A,{win:f}),A.collectFonts&&(B=yHs(A)));var h=vwx(A),W=Lmx(A),L=[];A=_.U(A.plugins);for(t=A.next();!t.done;t=A.next())t=t.value,L.push(t.observer(t.callback,f,t.options));return AG(function(){r6.forEach(function(D){return D.reset()});
var E;(E=X)==null||E.disconnect();Q();q();e();G();N();z();T();O();c();B();h();W();L.forEach(function(D){return D()})})};
Bzb=function(A){return typeof window[A]!=="undefined"};
CRb=function(A){return!!(typeof window[A]!=="undefined"&&window[A].prototype&&"insertRule"in window[A].prototype&&"deleteRule"in window[A].prototype)};
nws=function(A){A=new Uint8Array(A);for(var t="",f=0;f<A.byteLength;f++)t+=String.fromCharCode(A[f]);return btoa(t)};
D3x=function(A,t,f){if(A instanceof Array)return A.map(function(Q){return D3x(Q,t,f)});
if(A!==null){if(A instanceof Float32Array||A instanceof Float64Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Uint8Array||A instanceof Uint16Array||A instanceof Int16Array||A instanceof Int8Array||A instanceof Uint8ClampedArray)return{rr_type:A.constructor.name,args:[Object.values(A)]};if(A instanceof ArrayBuffer){var X=A.constructor.name;A=nws(A);return{rr_type:X,base64:A}}if(A instanceof DataView)return{rr_type:A.constructor.name,args:[D3x(A.buffer,t,f),A.byteOffset,A.byteLength]};
if(A instanceof HTMLImageElement)return{rr_type:A.constructor.name,src:A.src};if(A instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:A.toDataURL()};if(A instanceof ImageData)return{rr_type:A.constructor.name,args:[D3x(A.data,t,f),A.width,A.height]};if(Fm5(A,t)||typeof A==="object")return X=A.constructor.name,A=IWx(A,t,f),{rr_type:X,index:A}}return A};
jP0=function(A,t,f,X){for(var Q=[],q=_.U(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype)),e=q.next(),G={};!e.done;G={prop$jscomp$58:void 0},e=q.next()){G.prop$jscomp$58=e.value;try{if(typeof t.CanvasRenderingContext2D.prototype[G.prop$jscomp$58]==="function"){var N=xi(t.CanvasRenderingContext2D.prototype,G.prop$jscomp$58,function(z){return function(T){return function(){var O=_.Hu.apply(0,arguments),c=this;sg(this.canvas,f,X,!0)||setTimeout(function(){var B=x3z(O,t,c);A(c.canvas,{type:QX["2D"],
property:z.prop$jscomp$58,args:B})},0);
return T.apply(this,O)}}}(G));
Q.push(N)}}catch(z){e=H_T(t.CanvasRenderingContext2D.prototype,G.prop$jscomp$58,{set:function(T){return function(O){A(this.canvas,{type:QX["2D"],property:T.prop$jscomp$58,args:[O],setter:!0})}}(G)}),Q.push(e)}}return function(){Q.forEach(function(z){return z()})}};
YE5=function(A,t,f,X){var Q=[];try{var q=xi(A.HTMLCanvasElement.prototype,"getContext",function(e){return function(G){var N=_.Hu.apply(1,arguments);if(!sg(this,t,f,!0)){var z=G==="experimental-webgl"?"webgl":G;"__context"in this||(this.__context=z);X&&["webgl","webgl2"].includes(z)&&(N[0]&&typeof N[0]==="object"?(z=N[0],z.preserveDrawingBuffer||(z.preserveDrawingBuffer=!0)):N.splice(0,1,{preserveDrawingBuffer:!0}))}return e.apply(this,[G].concat(_.YV(N)))}});
Q.push(q)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){Q.forEach(function(e){return e()})}};
VQp=function(A,t,f,X,Q,q){for(var e=[],G=_.U(Object.getOwnPropertyNames(A)),N=G.next(),z={};!N.done;z={prop$jscomp$59:void 0},N=G.next())if(z.prop$jscomp$59=N.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(z.prop$jscomp$59))try{if(typeof A[z.prop$jscomp$59]==="function"){var T=xi(A,z.prop$jscomp$59,function(O){return function(c){return function(){var B=_.Hu.apply(0,arguments),h=c.apply(this,B);IWx(h,q,this);"tagName"in this.canvas&&!sg(this.canvas,X,Q,!0)&&(B=
x3z(B,q,this),f(this.canvas,{type:t,property:O.prop$jscomp$59,args:B}));return h}}}(z));
e.push(T)}}catch(O){N=H_T(A,z.prop$jscomp$59,{set:function(c){return function(B){f(this.canvas,{type:t,property:c.prop$jscomp$59,args:[B],setter:!0})}}(z)}),e.push(N)}return e};
ZLs=function(A,t,f,X){var Q=[];Q.push.apply(Q,_.YV(VQp(t.WebGLRenderingContext.prototype,1,A,f,X,t)));typeof t.WebGL2RenderingContext!=="undefined"&&Q.push.apply(Q,_.YV(VQp(t.WebGL2RenderingContext.prototype,2,A,f,X,t)));return function(){Q.forEach(function(q){return q()})}};
fz0=function(A){var t=A=A===void 0?{}:A,f=t.emit,X=t.checkoutEveryNms,Q=t.checkoutEveryNth,q=t.blockClass===void 0?"rr-block":t.blockClass,e=t.blockSelector===void 0?null:t.blockSelector,G=t.ignoreClass===void 0?"rr-ignore":t.ignoreClass,N=t.ignoreSelector===void 0?null:t.ignoreSelector,z=t.maskTextClass===void 0?"rr-mask":t.maskTextClass,T=t.maskTextSelector===void 0?null:t.maskTextSelector,O=t.inlineStylesheet===void 0?!0:t.inlineStylesheet,c=t.maskAllInputs,B=t.maskInputOptions,h=t.slimDOMOptions,
W=t.maskInputFn,L=t.maskTextFn,E=t.hooks,D=t.packFn,S=t.sampling===void 0?{}:t.sampling,Z=t.dataURLOptions===void 0?{}:t.dataURLOptions,d=t.mousemoveWait,K=t.recordDOM===void 0?!0:t.recordDOM,k=t.recordCanvas===void 0?!1:t.recordCanvas,Gz=t.recordCrossOriginIframes===void 0?!1:t.recordCrossOriginIframes,Tz=t.recordAfter===void 0?A.recordAfter==="DOMContentLoaded"?A.recordAfter:"load":t.recordAfter,y5=t.userTriggeredOnInput===void 0?!1:t.userTriggeredOnInput,cp=t.collectFonts===void 0?!1:t.collectFonts,
iu=t.inlineImages===void 0?!1:t.inlineImages,Fb=t.plugins,xq=t.keepIframeSrcFn===void 0?function(){return!1}:t.keepIframeSrcFn,Yq=t.ignoreCSSAttributes===void 0?new Set([]):t.ignoreCSSAttributes;
qi=t.errorHandler;var zk=Gz?window.parent===window:!0,PT=!1;if(!zk)try{window.parent.document&&(PT=!1)}catch(iK){PT=!0}if(zk&&!f)throw Error("af");if(!zk&&!PT)return function(){};
d!==void 0&&S.mousemove===void 0&&(S.mousemove=d);JG.reset();var rs=c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:B!==void 0?B:{password:!0},OT=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all",headTitleMutations:h==="all"}:
h?h:{};rUu();var bK,ET=0,m3=function(iK){for(var Qh=_.U(Fb||[]),Kg=Qh.next();!Kg.done;Kg=Qh.next())Kg=Kg.value,Kg.eventProcessor&&(iK=Kg.eventProcessor(iK));D&&!PT&&(iK=D(iK));return iK};
U9=function(iK,Qh){iK.timestamp=Nzs();var Kg;((Kg=r6[0])==null?0:Kg.isFrozen())&&iK.type!==2&&(iK.type!==3||iK.data.source!==0)&&r6.forEach(function(fw){return fw.unfreeze()});
zk?f==null||f(m3(iK),Qh):PT&&(Qh={type:"rrweb",event:m3(iK),origin:window.location.origin,isCheckout:Qh},window.parent.postMessage(Qh,"*"));iK.type===2?(bK=iK,ET=0):iK.type!==3||iK.data.source===0&&iK.data.isAttachIframe||(ET++,iK=X&&iK.timestamp-bK.timestamp>X,(Q&&ET>=Q||iK)&&ow5(!0))};
var O2=function(iK){U9({type:3,data:Object.assign({},{source:0},iK)})},eT=function(iK){return U9({type:3,
data:Object.assign({},{source:3},iK)})},fS=function(iK){return U9({type:3,
data:Object.assign({},{source:9},iK)})},hf=new d35({mutationCb:O2,
adoptedStyleSheetCb:function(iK){return U9({type:3,data:Object.assign({},{source:15},iK)})}}),wE=new SEx({mirror:JG,
mutationCb:O2,stylesheetManager:hf,recordCrossOriginIframes:Gz,wrappedEmit:U9});A=_.U(Fb||[]);for(t=A.next();!t.done;t=A.next())t=t.value,t.getMirror&&t.getMirror({nodeMirror:JG,crossOriginIframeMirror:wE.crossOriginIframeMirror,crossOriginIframeStyleMirror:wE.crossOriginIframeStyleMirror});var Rp=new $3u;HLx=new aWs({recordCanvas:k,mutationCb:fS,win:window,blockClass:q,blockSelector:e,mirror:JG,sampling:S.canvas,dataURLOptions:Z});var rE=new Kmx({mutationCb:O2,scrollCb:eT,bypassOptions:{blockClass:q,
blockSelector:e,maskTextClass:z,maskTextSelector:T,inlineStylesheet:O,maskInputOptions:rs,dataURLOptions:Z,maskTextFn:L,maskInputFn:W,recordCanvas:k,inlineImages:iu,sampling:S,slimDOMOptions:OT,iframeManager:wE,stylesheetManager:hf,canvasManager:HLx,keepIframeSrcFn:xq,processedNodeManager:Rp},mirror:JG});ow5=function(iK){iK=iK===void 0?!1:iK;if(K){U9({type:4,data:{href:window.location.href,width:ggx(),height:Kkb()}},iK);hf.reset();rE.init();r6.forEach(function(Kg){return Kg.lock()});
var Qh=$Ux({mirror:JG,blockClass:q,blockSelector:e,maskTextClass:z,maskTextSelector:T,inlineStylesheet:O,maskAllInputs:rs,maskTextFn:L,maskInputFn:W,slimDOM:OT,dataURLOptions:Z,recordCanvas:k,inlineImages:iu,onSerialize:function(Kg){Kg.nodeName==="IFRAME"&&JG.nodeMetaMap.get(Kg)&&gwT(wE,Kg);AH5(Kg,JG)&&wos(hf,Kg);Kg&&Yi(Kg)&&sPq(rE,Yi(Kg),document)},
onIframeLoad:function(Kg,fw){kY5(wE,Kg,fw);Kg.contentWindow&&Kg.contentDocument&&rHb(rE,Kg.contentWindow.Element,Kg.contentDocument)},
onStylesheetLoad:function(Kg,fw){A95(hf,Kg,fw)},
keepIframeSrcFn:xq});Qh?(U9({type:2,data:{node:Qh,initialOffset:aX0(window)}},iK),r6.forEach(function(Kg){return Kg.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&R0l(hf,document.adoptedStyleSheets,JG.getId(document))):console.warn("Failed to snapshot the document")}};
try{var bL=[],$8=function(iK){var Qh;return AG(Ewz)({mutationCb:O2,mousemoveCb:function(Kg,fw){return U9({type:3,data:{source:fw,positions:Kg}})},
mouseInteractionCb:function(Kg){return U9({type:3,data:Object.assign({},{source:2},Kg)})},
scrollCb:eT,viewportResizeCb:function(Kg){return U9({type:3,data:Object.assign({},{source:4},Kg)})},
inputCb:function(Kg){return U9({type:3,data:Object.assign({},{source:5},Kg)})},
mediaInteractionCb:function(Kg){return U9({type:3,data:Object.assign({},{source:7},Kg)})},
styleSheetRuleCb:function(Kg){return U9({type:3,data:Object.assign({},{source:8},Kg)})},
styleDeclarationCb:function(Kg){return U9({type:3,data:Object.assign({},{source:13},Kg)})},
canvasMutationCb:fS,fontCb:function(Kg){return U9({type:3,data:Object.assign({},{source:10},Kg)})},
selectionCb:function(Kg){U9({type:3,data:Object.assign({},{source:14},Kg)})},
customElementCb:function(Kg){U9({type:3,data:Object.assign({},{source:16},Kg)})},
blockClass:q,ignoreClass:G,ignoreSelector:N,maskTextClass:z,maskTextSelector:T,maskInputOptions:rs,inlineStylesheet:O,sampling:S,recordDOM:K,recordCanvas:k,inlineImages:iu,userTriggeredOnInput:y5,collectFonts:cp,doc:iK,maskInputFn:W,maskTextFn:L,keepIframeSrcFn:xq,blockSelector:e,slimDOMOptions:OT,dataURLOptions:Z,mirror:JG,iframeManager:wE,stylesheetManager:hf,shadowDomManager:rE,processedNodeManager:Rp,canvasManager:HLx,ignoreCSSAttributes:Yq,plugins:(Fb==null?void 0:(Qh=Fb.filter(function(Kg){return Kg.observer}))==
null?void 0:Qh.map(function(Kg){return{observer:Kg.observer,
options:Kg.options,callback:function(fw){return U9({type:6,data:{plugin:Kg.name,payload:fw}})}}}))||[]},E)};
thx(wE,function(iK){try{bL.push($8(iK.contentDocument))}catch(Qh){console.warn(Qh)}});
var Tk=function(){ow5();bL.push($8(document))};
document.readyState==="interactive"||document.readyState==="complete"?Tk():(bL.push(g6("DOMContentLoaded",function(){U9({type:0,data:{}});Tz==="DOMContentLoaded"&&Tk()})),bL.push(g6("load",function(){U9({type:1,
data:{}});Tz==="load"&&Tk()},window)));
return function(){bL.forEach(function(iK){try{iK()}catch(Qh){String(Qh).toLowerCase().includes("cross-origin")||console.warn(Qh)}});
Rp.destroy();qi=void 0}}catch(iK){console.warn(iK)}};
_.m=function(A,t){t=si(wW(t));A.innerHTML=t};
qAg=function(A){var t=X0g;t||(t=QRx(),t=X0g=_.VG.transpose(t));t=t[A];return typeof t==="string"?t:_.ea(A)};
J9z=function(A){A=String(A).toLowerCase();var t=QRx()[A];return typeof t==="string"?t:_.Gr(A)};
UHx=function(A){A=A.toLowerCase();A=QRx()[A];return typeof A==="string"?A:null};
QRx=function(){if(!e6l){for(var A=Object.assign({},GEq),t=_.U(lzz),f=t.next();!f.done;f=t.next())f=f.value,A[f.toLowerCase()]=f;e6l=A}return e6l};
z6x=function(A,t){var f=window.customElements;return f&&f.get(A)||N8p[A]===!0?2:t.name==="HTMLUnknownElement"?1:t.name==="HTMLElement"&&ugx.test(A)?3:0};
irT=function(A,t){switch(t){case "innerHTML":return Pex(A)===1?2:null;case "textContent":return A=Pex(A),A===1||A===6?1:null;default:var f,X;return(X=(f=T8b[A.localName])==null?void 0:f[t])!=null?X:null}};
Pex=function(A){var t=A.localName,f=z6x(t,A.constructor);switch(f){case 0:case 1:return Oru(t,A);case 3:case 2:return 1;default:_.ap(f,"got an unknown element classification")}};
Oru=function(A,t){var f=Object.hasOwnProperty.call(c9x,A)?c9x[A]:null;return f!==null?f:Object.hasOwnProperty.call(B8l,A)&&t instanceof SVGElement?B8l[A]:null};
Mh0=function(A,t){return t};
h6u=function(A){return(A=A.split(CeT,2))?{url:A[0],metadata:A[1]}:null};
mHx=function(A){var t=String(A.url).replace(R6u,encodeURIComponent);if(A=A.metadata){R6u.lastIndex=0;if(R6u.test(A))return null;t+=" "+A}return t};
vdz=function(A){function t(z){var T=z.localName;if(!z.getAttribute("is")&&z6x(T,z.constructor)===2){var O;return(O=N)!=null?O:N=document.createElement("polyresinuncustomized")}(z=G[T])||(z=G[T]=document.createElement(T));return z}
var f=A.reportHandler||void 0,X=A.safeTypesBridge||brx,Q=/^$/;if(A=A.allowedIdentifierPrefixes){A=_.U(A);for(var q=A.next();!q.done;q=A.next())Q=new RegExp(Q.source+"|^"+_.W1b(q.value))}f&&f(!1,"initResin",null);var e=y9g(Q,X,f),G={},N=null;return function(z,T,O){var c=z.nodeType;if(c!==Node.ELEMENT_NODE){if(c===Node.TEXT_NODE){T=z.parentElement;O=!T;if(T&&T.nodeType===Node.ELEMENT_NODE){c=T.localName;var B=z6x(c,T.constructor);switch(B){case 0:case 1:T=Oru(c,T);O=T===1||T===6;break;case 3:case 2:O=
!0;break;default:_.ap(B,"got an unknown element classification")}}if(O)return function(E){return""+X(E,"STRING",E)}}return function(E){if(!E&&E!==document.all)return E;
f&&f(!0,"Failed to sanitize "+(z.parentElement&&z.parentElement.nodeName)+" #text node to value "+E,z.parentElement);return lS}}var h=z.localName;
c=t(z);var W=null;switch(O){case "attribute":if(J9z(T)in c)break;return function(E){return E};
case "property":if(T in c){W=irT(c,T);break}if((B=UHx(T))&&B in c)break;return function(E){return E};
default:_.ap(O,"got an unknown resin type, expected either 'property' or 'attribute'")}var L=O==="attribute"?T.toLowerCase():qAg(T);W||(W=WEl(h,L,function(E){var D=z.getAttribute(E);return!D||/[\[\{]/.test(E)?null:D}));
return function(E){var D=Ni,S=null;if(!E&&E!==document.all)return E;if(W!=null){var Z=e[W],d=Z.safeType;S=Z.safeReplacement;d&&(D=X(E,d,Ni));D===Ni&&(Z.filterString?(D=String(X(E,"STRING",E)),D=Z.filterString(h,L,D)):Z.filterRaw&&(D=Z.filterRaw(h,L,E,z)),D===S&&(D=Ni))}D===Ni&&(D=S||lS,f&&f(!0,"Failed to sanitize attribute of <"+h+">: <"+h+" "+L+'="'+E+'">',z));return D}}};
y9g=function(A,t,f){return[,{filterRaw:function(X,Q,q){return q},
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:L1z,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:L1z,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:lS,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:p0z,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(X,Q,q){q=
String(q).toLowerCase();return LEs(X,Q,q)?q:lS},
safeReplacement:lS,safeType:void 0},,{filterRaw:void 0,filterString:function(X,Q,q){return A.test(q)?q:lS},
safeReplacement:lS,safeType:"CONSTANT"},{filterRaw:function(X,Q,q,e){if(typeof q==="string")var G=(G=q.match(Edb))?G.map(h6u).filter(Boolean):[];else if(Array.isArray(q))G=q;else return L1z;var N=G;G=[];var z=[],T={};if(Array.isArray(N))for(var O=0,c=N.length;O<c;++O){var B=N[O],h=B&&B.url;if(h){var W=t(h,"URL",T);if(W){var L=W!==T;(L?G:z).push({url:L?W:h,metadata:B.metadata})}}}else z.push(N);N=z.length?JSON.stringify(z):null;z=Ni;if(G.length){if(!Array.isArray(G))throw Error();z=G.map(mHx).filter(Boolean).join(" , ")||
Ni}N&&f&&f(!0,"Failed to sanitize attribute value of <"+X+">: <"+X+" "+Q+'="'+q+'">: '+N,e);return z===Ni?L1z:z},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
ndx=function(A){var t=vdz(A);return function(f,X,Q,q){return q||q===document.all?t(f,X,Q)(q):q}};
uS=function(A,t){function f(){function Q(G,N,z){for(N=Reflect.getMetadata("parameters",G)||[];N.length<=z;)N.push(null);N[z]=N[z]||[];N[z].push(e);Reflect.defineMetadata(N,G);return G}
var q=_.Hu.apply(0,arguments);if(this instanceof f)return X.apply(this,q),this;var e=new (Function.prototype.bind.apply(f,[null].concat(_.YV(q))));Q.annotation=e;return Q}
var X=DHg(t);f.prototype.toString=function(){return"@"+A};
return f.annotationCls=f};
DHg=function(A){return function(){var t=_.Hu.apply(0,arguments),f=this;A.forEach(function(X,Q){Q=t[Q];if(Array.isArray(X))f[X[0]]=Q&&Q!==void 0?Q:X[1];else for(var q in X)f[q]=Q&&Q[q]!==void 0?Q[q]:X[q]})}};
F1x=function(A){return A!==void 0&&A!==null};
zr=function(A){if(typeof A==="string")return A;if(A===void 0||A===null)return""+A;if(A.overriddenName)return A.overriddenName;if(A.name)return A.name;A=A.toString();var t=A.indexOf("\n");return t===-1?A:A.substring(0,t)};
Izz=function(A){A.__forward_ref__=Izz;A.toString=function(){return zr(this())};
return A};
Ps=function(A){return typeof A==="function"&&A.hasOwnProperty("__forward_ref__")&&A.__forward_ref__===Izz?A():A};
xHx=function(A){return A?A.map(function(t){return new (Function.prototype.bind.apply(t.type.annotationCls,[null].concat(_.YV(t.args?t.args:[]))))}):[]};
jRp=function(A){for(var t=[],f=0;f<A.length;++f){if(t.indexOf(A[f])>-1){t.push(A[f]);break}t.push(A[f])}return t};
YAx=function(A){return A.length>1?" ("+jRp(A.slice().reverse()).map(function(t){return zr(t.token)}).join(" -> ")+")":""};
Zr5=function(A,t,f,X){if(X){var Q=Error("df``"+(X instanceof Error?X.message:X));Q.ngOriginalError=X}else Q=Error();Q.addKey=VhT;Q.keys=[t];Q.injectors=[A];Q.constructResolvingMessage=f;Q.message=Q.constructResolvingMessage();Q.ngOriginalError=X;return Q};
VhT=function(A,t){this.injectors.push(A);this.keys.push(t);this.message=this.constructResolvingMessage()};
odp=function(A,t){return Zr5(A,t,function(){return"No provider for "+zr(this.keys[0].token)+"!"+YAx(this.keys)})};
dH5=function(A,t){return Zr5(A,t,function(){return"Cannot instantiate cyclic dependency!"+YAx(this.keys)})};
SAx=function(A,t,f){return Zr5(A,f,function(){var X=zr(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+X+"!"+YAx(this.keys)+"."},t)};
$Hg=function(A,t){for(var f=[],X=0,Q=t.length;X<Q;X++){var q=t[X];q&&q.length!=0?f.push(q.map(zr).join(" ")):f.push("?")}return Error("hf`"+zr(A)+"`"+f.join(", ")+"`"+zr(A))};
kEb=function(A){var t=void 0,f=void 0;if(A&&A.useClass!==void 0){t=A.useClass;var X=Ps(A.useClass);var Q=Hr5.factory(X);X=az0(X)}else A&&A.useExisting!==void 0?(Q=function(q){return q},X=[K1T(Tr.get(Ps(A.useExisting)))]):A&&A.useFactory!==void 0?(Q=A.useFactory,X=gdg(A.useFactory,A.deps)):(f=A.useValue,Q=function(){return A.useValue},X=w0z);
return new sRT(Q,X,t,f)};
Ah5=function(A){return new r95(Tr.get(Ps(A.provide)),[kEb(A)],A.multi)};
fob=function(A){A=tPT(A,[]).map(Ah5);for(var t=new Map,f=0;f<A.length;f++){var X=A[f],Q=t.get(X.key.id);if(Q){if(X.multiProvider!==Q.multiProvider)throw Error("kf`"+Q+"`"+X);if(X.multiProvider)for(var q=0;q<X.resolvedFactories.length;q++)Q.resolvedFactories.push(X.resolvedFactories[q]);else t.set(X.key.id,X)}else Q=void 0,X.multiProvider?Q=new r95(X.key,X.resolvedFactories.slice(),X.multiProvider):Q=X,t.set(X.key.id,Q)}return Array.from(t.values())};
tPT=function(A,t){A.forEach(function(f){if(f instanceof Xr0)t.push({provide:f,useClass:f});else if(f&&typeof f=="object"&&f.provide!==void 0)t.push(f);else if(f instanceof Array)tPT(f,t);else throw Error("gf`"+f);});
return t};
gdg=function(A,t){if(t){var f=t.map(function(X){return[X]});
return t.map(function(X){return QYx(A,X,f)})}return az0(A)};
az0=function(A){var t=Hr5.parameters(A);if(!t)return[];if(t.some(function(f){return f==null}))throw $Hg(A,t);
return t.map(function(f){return QYx(A,f,t)})};
QYx=function(A,t,f){var X=null,Q=!1;if(!Array.isArray(t))return t instanceof qUu?Jhs(t.token,Q,null):Jhs(t,Q,null);for(var q=null,e=0;e<t.length;++e){var G=t[e];if(G instanceof Xr0)X=G;else if(G instanceof qUu)X=G.token;else if(G instanceof U$T)Q=!0;else if(G instanceof eAp||G instanceof GI0)q=G}X=Ps(X);if(X!=null)return Jhs(X,Q,q);throw $Hg(A,f);};
Jhs=function(A,t,f){return new lo5(Tr.get(Ps(A)),t,f)};
Ncx=function(A,t){for(var f=Array(A.providers.length),X=0;X<A.providers.length;++X){var Q=X;if(X<0||X>=A.providers.length)throw Error("jf`"+X);f[Q]=t(A.providers[X])}return f};
uXz=function(A){return typeof A==="function"&&Hr5.parameters(A).every(function(t){return!!t})};
Tcb=function(A){var t=zAq;PAx.get(A)||PAx.set(A,new t);return PAx.get(A)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(A)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(A)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A,t){var f,X;if(A.contains(t))return!0;A=_.iS(A).querySelectorAll("content,slot");for(f=0;f<A.length;++f){var Q=_.iS(A[f]).getDistributedNodes();for(X=0;X<Q.length;++X)if(Q[X].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Q[X],t))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){A.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A)&&A.preventDefault();A.targetTouches&&(A=A.targetTouches[0],i6b=A.pageX,O6u=A.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 A=0,t=O9.length;A<t;A++)document.addEventListener(O9[A],_._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 A=0,t=O9.length;A<t;A++)document.removeEventListener(O9[A],_._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(A){var t=_.iS(A).rootTarget;A.type!=="touchmove"&&chb!==t&&(chb=t,Bcx=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.iS(A).path));if(!Bcx.length)return!0;if(A.type==="touchstart")return!1;A=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Bcx,A.deltaX,A.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){for(var t=[],f=A.indexOf(MPx),X=0;X<=f;X++)if(A[X].nodeType===Node.ELEMENT_NODE){var Q=A[X],q=Q.style;q.overflow!=="scroll"&&q.overflow!=="auto"&&(q=window.getComputedStyle(Q));q.overflow!=="scroll"&&q.overflow!=="auto"||t.push(Q)}return t};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A,t,f){if(t||f)for(var X=Math.abs(f)>=Math.abs(t),Q=0;Q<A.length;Q++){var q=A[Q];if(X?f<0?q.scrollTop>0:q.scrollTop<q.scrollHeight-q.clientHeight:t<0?q.scrollLeft>0:q.scrollLeft<q.scrollWidth-q.clientWidth)return q}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){var t={deltaX:A.deltaX,deltaY:A.deltaY};"deltaX"in A||("wheelDeltaX"in A&&"wheelDeltaY"in A?(t.deltaX=-A.wheelDeltaX,t.deltaY=-A.wheelDeltaY):"wheelDelta"in A?(t.deltaX=0,t.deltaY=-A.wheelDelta):"axis"in A?(t.deltaX=A.axis===1?A.detail:0,t.deltaY=A.axis===2?A.detail:0):A.targetTouches&&(A=A.targetTouches[0],t.deltaX=i6b-A.pageX,t.deltaY=O6u-A.pageY));return t};
CAz=function(A){this.element=A;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
RA5=function(A){this.element=A;this.color=window.getComputedStyle(A).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");_.iS(this.waveContainer).appendChild(this.wave);hAl(this)};
cs=function(A,t){for(var f in A)if(f.toLowerCase()===t.toLowerCase())return A[f]};
m$5=function(A,t){for(var f in A)if(f.toLowerCase()===t.toLowerCase()){delete A[f];break}};
Wbx=function(A){A=_.VG.clone(A);for(var t=0;t<b6p.length;++t){var f=b6p[t],X=cs(A,f);X&&(A["X-Goog-Upload-Header-"+f]=X,m$5(A,f))}return A};
yhb=function(A){A=_.VG.clone(A);m$5(A,"X-Goog-Upload-Status")};
Lbx=function(A){return v3b.some(function(t){return t.test(A)})};
D$s=function(A,t){var f;var X=(f=A.formContent)==null?void 0:f.locale;f=X==null?void 0:X.split("-")[0];X=X&&prT.includes(X)?X:f&&prT.includes(f)?f:void 0;X=(X!=null?X:"en").replaceAll("-","_").toLowerCase();var Q;A=((Q=A.initializationData)==null?0:Q.useNightlyRelease)?"nightly":"live";var q;return(t==null?0:(q=t.getEnableAlohaBinarySplit)==null?0:q.call(t))?_.OP(E3g,A):_.OP(n3q,A,X)};
x$p=function(A,t,f,X){if(Fbz&&Ioz===t)return Fbz;Ioz=t;var Q=D$s(A,X);return Fbz=t.feedbackV2GlobalObject?Promise.resolve(t.feedbackV2GlobalObject):new Promise(function(q,e){var G=_.yT("SCRIPT");_.UV(G,Q);G.onload=function(){t.feedbackV2GlobalObject?q(t.feedbackV2GlobalObject):e(Error("nf"))};
G.onerror=function(){e(Error("of`"+Q.toString()))};
f.body.appendChild(G)})};
VPT=function(A,t,f,X){if(jYx&&YU5===t)return jYx;YU5=t;var Q=D$s(A,X);return jYx=t.feedbackV2GlobalObject?Promise.resolve(t.feedbackV2GlobalObject):new Promise(function(q,e){var G=_.yT("SCRIPT");_.UV(G,Q);G.onload=function(){t.feedbackV2GlobalObject?q(t.feedbackV2GlobalObject):e(Error("nf"))};
G.onerror=function(){e(Error("of`"+Q.toString()))};
f.body.appendChild(G)})};
Z65=function(A,t,f,X,Q){Q=Q===void 0?!0:Q;var q,e,G,N,z;return _.l(function(T){switch(T.nextAddress){case 1:return q=Date.now(),T.yield(x$p(A,f,X,t),2);case 2:e=T.yieldResult;if(!(Q||((N=A.initializationData)==null?0:N.useNightlyRelease)||((z=A.initializationData)==null?0:z.isLocalServer))){G=e.initializeFeedbackClient(A,q,t);T.jumpTo(3);break}return T.yield(e.initializeFeedbackClientAsync(A,q,t),4);case 4:G=T.yieldResult;case 3:return G.initiateAloha(),T.return(G)}})};
o3z=function(A,t,f,X){var Q,q,e;return _.l(function(G){if(G.nextAddress==1)return Q=Date.now(),G.yield(VPT(A,f,X.document,t),2);if(G.nextAddress!=3)return q=G.yieldResult,G.yield(q.initializeFeedbackClientAsync(A,Q,t,X),3);e=G.yieldResult;e.initiateAloha();return G.return(e)})};
d$5=function(A,t,f){var X=!0;X=X===void 0?!0:X;var Q,q,e,G,N,z,T,O;return _.l(function(c){Q=f||_.Xb;if((q=t)==null?0:(G=(e=q).getEnableAlohaBinarySplit)==null?0:G.call(e)){N=Q;if(N.isFormOpened)throw new Bs;N.isFormOpened=!0;A.callbacks=A.callbacks||{};z=A.callbacks.onClose||function(){};
A.callbacks.onClose=function(B){N.isFormOpened=!1;z(B)};
try{return c.return(o3z(A,t,N,Q))}catch(B){throw N.isFormOpened=!1,B;}}else{T=Q;if(T.isFormOpened)throw new Bs;T.isFormOpened=!0;A.callbacks=A.callbacks||{};O=A.callbacks.onClose||function(){};
A.callbacks.onClose=function(B){T.isFormOpened=!1;O(B)};
try{return c.return(Z65(A,t,T,Q.document,X))}catch(B){throw T.isFormOpened=!1,B;}}_.LO(c)})};
Kbx=function(A,t){return _.l(function(f){return f.return(new Promise(function(X,Q){Number.isInteger(Number(A))&&Number(A)>0?(Q=SU0(t!=null?t:"")+"/aloha_form_properties?productId="+A,$$q(Q,function(q){q=q.target;var e=null;try{var G=JSON,N=G.stringify;if(q.JSC$9879_xhr_){var z=q.JSC$9879_xhr_.responseText;z.indexOf(")]}'\n")==0&&(z=z.substring(5));var T=(0,_.Mi)(z)}else T=void 0;e=glb(H6g,N.call(G,T))}catch(O){N=new H6g,T=aoT(),T=_.CG(T,13,!1),T=_.CG(T,14,!0),T=_.CG(T,15,!0),T=_.CG(T,20,!1),e=_.bi(N,
1,T)}X(e)},"GET","",{},2E3,!0)):Q(Error("pf`"+A))}))})};
SU0=function(A){return Lbx(A)?A:"https://www.google.com/tools/feedback"};
kIg=function(A){A=A.match(new RegExp(g3T,"gi"))||[];A=_.U(A);for(var t=A.next();!t.done;t=A.next()){t=t.value;a:{var f=_.U(wr5);for(var X=f.next();!X.done;X=f.next())if(X.value.test(t)){f=!1;break a}f=!0}if(!f)a:{f=_.U(sYT);for(X=f.next();!X.done;X=f.next())if(X.value.test(t)){f=!0;break a}f=!1}if(f)return!0}return!1};
rhx=function(A,t){var f={},X=Object.keys(A);X=_.U(X);for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,f[Q]=t(Q,A[Q]);return f};
A2s=function(A){switch(A){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"}};
fez=function(A){if(window.crypto&&window.crypto.getRandomValues)try{var t=Array(A),f=new Uint8Array(A);window.crypto.getRandomValues(f);for(var X=0;X<t.length;X++)t[X]=f[X];return t}catch(q){}t=Array(A);for(f=0;f<A;f++){X=Date.now();for(var Q=0;Q<X%23;Q++)t[f]=Math.random();t[f]=Math.floor(Math.random()*256)}if(tmx)for(f=1,X=0;X<tmx.length;X++)t[f%A]^=t[(f-1)%A]/4^tmx.charCodeAt(X),f++;return t};
hG=function(A){A=fez(A);for(var t=[],f=0;f<A.length;f++)t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[f]&63));return t.join("")};
XYb=function(){var A=_.Xb.ytLoggingDocDocumentNonce_;A||(A=hG(16),_.zm("ytLoggingDocDocumentNonce_",A));return A};
qm5=function(A){A&&_.SY("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Qzx,clientScreenNonce:A})};
J2x=function(A){return _.ah("client-screen-nonce-store",{})[A===void 0?0:A]};
Uh5=function(A,t){t=t===void 0?0:t;var f=_.ah("client-screen-nonce-store");f||(f={},_.H5("client-screen-nonce-store",f));f[t]=A};
e2u=function(A){A=A===void 0?0:A;return A===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+A};
GJl=function(A){return _.ah(e2u(A===void 0?0:A))};
_.mx=function(A){return(A=GJl(A===void 0?0:A))?new Rq({veType:A,youtubeData:void 0,jspbYoutubeData:void 0}):null};
le5=function(){var A=_.ah("csn-to-ctt-auth-info");A||(A={},_.H5("csn-to-ctt-auth-info",A));return A};
NOq=function(){return Object.values(_.ah("client-screen-nonce-store",{})).filter(function(A){return A!==void 0})};
_.Ws=function(A){A=J2x(A===void 0?0:A);if(!A&&!_.Ka("USE_CSN_FALLBACK",!0))return null;A||(A="UNDEFINED_CSN");return A?A:null};
z2x=function(A){for(var t=_.U(Object.values(u9T)),f=t.next();!f.done;f=t.next())if(_.Ws(f.value)===A)return!0;return!1};
Pau=function(A,t,f){var X=le5();(f=_.Ws(f))&&delete X[f];t&&(X[A]=t)};
yX=function(A){return le5()[A]};
_.vs=function(A,t,f,X){f=f===void 0?0:f;if(A!==J2x(f)||t!==_.ah(e2u(f)))if(Pau(A,X,f),Uh5(A,f),_.H5(e2u(f),t),t=function(){setTimeout(function(){qm5(A)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(t)}catch(Q){t()}else t()};
TOx=function(A,t){t=t===void 0?"":t;var f=[],X;for(X in A)if(A.hasOwnProperty(X)){var Q=t!==""?t+"."+X:X;typeof A[X]==="object"?f.push.apply(f,_.YV(TOx(A[X],Q))):f.push([Q,A[X]])}f.sort();return f};
_.pG=function(A){var t=_.Hu.apply(1,arguments);if(!LG(A)||t.some(function(X){return!LG(X)}))throw Error("qf");
t=_.U(t);for(var f=t.next();!f.done;f=t.next())i9u(A,f.value)};
i9u=function(A,t){for(var f in t)if(LG(t[f])){if(f in A&&!LG(A[f]))throw Error("rf");f in A||(A[f]={});i9u(A[f],t[f])}else if(O95(t[f])){if(f in A&&!O95(A[f]))throw Error("sf");f in A||(A[f]=[]);c2T(A[f],t[f])}else A[f]=t[f];return A};
c2T=function(A,t){t=_.U(t);for(var f=t.next();!f.done;f=t.next())f=f.value,LG(f)?A.push(i9u({},f)):O95(f)?A.push(c2T([],f)):A.push(f);return A};
LG=function(A){return typeof A==="object"&&!Array.isArray(A)};
O95=function(A){return typeof A==="object"&&Array.isArray(A)};
Mm0=function(A){for(var t=_.U(Object.entries(BOs)),f=t.next();!f.done;f=t.next())if(f=_.U(f.value),f.next(),f=f.next().value,f==="SLI_STATUS_"+A)return f;return"SLI_STATUS_UNKNOWN"};
_.E9=function(A,t,f,X){return CaT(A,t,function(){return new _.h25(A,t,f,X)})};
_.R2x=function(){return _.E9("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
mhx=function(){return _.E9("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
nG=function(){return _.E9("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
b9q=function(){return _.E9("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Wqu=function(){return _.E9("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
y2z=function(){return _.E9("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
pYp=function(A){A&&(A.dataset?A.dataset[vDx()]="true":_.GG([_.Pd(Lq0)],A,"data-loaded","true".toString()))};
ED5=function(A){return A?A.dataset?A.dataset[vDx()]:A.getAttribute("data-loaded"):null};
vDx=function(){return nD5.loaded||(nD5.loaded="loaded".replace(/\-([a-z])/g,function(A,t){return t.toUpperCase()}))};
_.DT=function(A,t,f){Dhu(A,t,f===void 0?null:f)};
_.Iex=function(A,t){A&&t&&(A=""+_.gs(t),(A=Fqx[A])&&_.Mrl(A))};
Dhu=function(A,t,f){f=f===void 0?null:f;var X=_.xhz(typeof A==="string"?A:A.toString()),Q=document.getElementById(X),q=Q&&ED5(Q),e=Q&&!q;q?t&&t():(t&&(q=_.MA(X,t),t=""+_.gs(t),Fqx[t]=q),e||(Q=jzp(A,X,function(){ED5(Q)||(pYp(Q),_.CPx(X),_.Rj(function(){_.RpT(X)},0))},f)))};
jzp=function(A,t,f,X){X=X===void 0?null:X;var Q=_.yT("SCRIPT");Q.id=t;Q.onload=function(){f&&setTimeout(f,0)};
Q.onreadystatechange=function(){switch(Q.readyState){case "loaded":case "complete":Q.onload()}};
X&&Q.setAttribute("nonce",X);_.UV(Q,typeof A==="string"?_.xC(A):A);A=document.getElementsByTagName("head")[0]||document.body;A.insertBefore(Q,A.firstChild);return Q};
_.xhz=function(A){var t=document.createElement("a");Kb(t,A);return"js-"+F5(t.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Ym0=function(A){var t=_.ah("INNERTUBE_HOST_OVERRIDE");t&&(A=String(t)+String(_.Iq(A)));return A};
Vmg=function(A){var t={};_.M("json_condensed_response")&&(t.prettyPrint="false");return A=S9z(A,t)};
_.xJ=function(A){return NG(A)?"same-origin":"include"};
_.ja=function(A){return NG(A)?"same-origin":"cors"};
YJ=function(A,t,f){f=f===void 0?{}:f;A={method:t===void 0?"POST":t,mode:_.ja(A),credentials:_.xJ(A)};t={};for(var X=_.U(Object.keys(f)),Q=X.next();!Q.done;Q=X.next())Q=Q.value,f[Q]&&(t[Q]=f[Q]);Object.keys(t).length>0&&(A.headers=t);return A};
_.VX=function(A,t){t=t===void 0?{}:t;return"service:"+A+"/"+Object.keys(t).sort().map(function(f){return f+":"+t[f]}).join("/")};
Z95=function(A){var t,f,X,Q;A=(t=_.C(A,_.ZT))==null?void 0:(f=t.watchEndpointSupportedOnesieConfig)==null?void 0:(X=f.html5PlaybackOnesieConfig)==null?void 0:(Q=X.commonConfig)==null?void 0:Q.url;if(!A)return[];t=new _.oq(A);return t.JSC$10115_domain_?["https://"+t.JSC$10115_domain_+"/generate_204"]:[]};
_.Smx=function(){return oDz()||g7u()||dhp&&wi("version/")?!0:_.ah("EOM_VISITOR_DATA")?!1:!0};
$hb=function(A){var t=A.docid||A.video_id||A.videoId||A.id;if(t)return t;t=A.raw_player_response;t||(A=A.player_response)&&(t=JSON.parse(A));return t&&t.videoDetails&&t.videoDetails.videoId||null};
H90=function(A){return A.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
d2=function(A){return!isNaN(Number(A))&&!_.Ux(A)};
_.$J=function(A,t,f,X){X=X===void 0?!0:X;var Q=_.ah("VALID_SESSION_TEMPDATA_DOMAINS",[]),q=_.G7(window.location.href);q&&Q.push(q);q=_.G7(A);if(_.Zx(Q,q)||!q&&_.ql(A,"/"))if(Q=document.createElement("a"),Kb(Q,A),A=Q.href)if(A=_.Iq(A),A=_.Sa(A))X&&!t.csn&&(t.itct||t.ved)&&(t=Object.assign({csn:_.Ws()},t)),f?(f=parseInt(f,10),isFinite(f)&&f>0&&aeb(A,t,f)):aeb(A,t)};
gDu=function(A){var t=_.ah("VALID_SESSION_TEMPDATA_DOMAINS",[]),f=_.G7(window.location.href);f&&t.push(f);f=_.G7(A);if(!(_.Zx(t,f)||!f&&_.ql(A,"/")))return null;A=_.Iq(A);(A=_.Sa(A))?(A=Kqs(A),A=(A=_.E0.get(A,void 0)||null)?_.Q$(A):{}):A=null;return A};
aeb=function(A,t,f){A=Kqs(A);t=t?_.vx(t):"";f=f||5;_.Smx()&&_.nk(A,t,f)};
Kqs=function(A){for(var t=_.U(wYp),f=t.next();!f.done;f=t.next())A=_.Hs(A,f.value);return"ST-"+F5(A).toString(36)};
_.sz5=function(A){if(A.requestFullscreen)A=A.requestFullscreen(void 0);else if(A.webkitRequestFullscreen)A=A.webkitRequestFullscreen();else if(A.mozRequestFullScreen)A=A.mozRequestFullScreen();else if(A.msRequestFullscreen)A=A.msRequestFullscreen();else if(A.webkitEnterFullscreen)A=A.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return A instanceof Promise?A:Promise.resolve()};
_.KG=function(A){var t;_.Ux5(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.aq()==A&&(t=document):t=A;if(t&&(A=_.Ux5(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],t))){A.call(t)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.aq=function(){var A=A===void 0?!1:A;var t=_.Ux5(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(A)for(;t&&t.shadowRoot;)t=t.shadowRoot.fullscreenElement;return t?t:null};
_.g2=function(A,t){t=t===void 0?!0:t;A.addEventListener("wheel",kJl);A.overscrollConfig={cooldown:t}};
_.w2=function(A){A.overscrollConfig=void 0;A.removeEventListener("wheel",kJl)};
kJl=function(A){var t=A.deltaY,f=A.target,X=null;if(window.Polymer&&window.Polymer.Element){if(f=A.path||A.composedPath&&A.composedPath()){f=_.U(f);for(var Q=f.next();!Q.done&&(Q=Q.value,!r2u(Q,t));Q=f.next())if(Q.overscrollConfig){X=Q;break}}}else for(;f&&!r2u(f,t);){if(f.overscrollConfig){X=f;break}f=f.parentElement}X&&(t=X.overscrollConfig,t.cooldown?(X=A.deltaY,f=t.lastDeltaY||0,t.lastDeltaY=X,Q=t.lastStopped||0,f&&Q&&f>0==X>0?Math.abs(f)>=Math.abs(X)?(X=Q+1200,f=!1):(X=Q+600,f=!0):(X=Date.now()+
600,f=!0),X>Date.now()&&(A.preventDefault(),f&&(t.lastStopped=Date.now()))):A.preventDefault())};
r2u=function(A,t){return t<0&&A.scrollTop>0||t>0&&A.scrollTop<A.scrollHeight-A.clientHeight-1?(A=getComputedStyle(A).overflowY,A=="auto"||A=="scroll"):!1};
_.s9=function(A,t,f,X){X||(X={bubbles:!0,cancelable:!1,composed:!0});f!==null&&f!==void 0&&(X.detail=f);var Q=new CustomEvent(t,X);_.M("untrack_fire_custom_event_killswitch")?A.dispatchEvent(Q):_.CF(function(){return void A.dispatchEvent(Q)});
return Q};
ASu=function(A){var t=window,f=function(X){t.removeEventListener("yt-navigate-start",f);return A.call(t,X)};
t.addEventListener("yt-navigate-start",f,void 0)};
_.kJ=function(A,t,f,X){t=new t4x(t,!(X===void 0||!X),f);_.s9(A,"yt-action",t);return t.returnValue};
_.r2=function(A,t,f){return _.kJ(A,t,f,!0)};
_.tl=function(A,t,f,X){t&&t.length&&t.forEach(function(Q){var q=Qvb(Q);q&&(_.M("handle_service_request_actions")&&Q.commandMetadata&&Q.commandMetadata.webCommandMetadata&&Q.commandMetadata.webCommandMetadata.sendPost?_.Al(f?f:A,[Q]):_.r2(A,q,[Q,f,X]))})};
_.Al=function(A,t){var f=[A];t&&f.push.apply(f,t);t=_.kJ(A,"yt-service-request",f);return t.length>0&&(t=t[0],_.s9(A,"yt-service-request-sent",t),t&&t.ajaxPromise)?(t.ajaxPromise.then(function(X){_.s9(A,"yt-service-request-completed",X)},function(X){_.s9(A,"yt-service-request-error",{error:X,
params:f})},A),t.ajaxPromise):_.ff()};
_.Qg=function(A,t){if(_.M("handle_service_request_actions"))_.tl(t,A,t);else{A=_.U(A);for(var f=A.next();!f.done;f=A.next()){f=f.value;var X=void 0;((X=_.C(f,_.Xd))==null?0:X.commands)?_.Qg(_.C(f,_.Xd).commands,t):(X=void 0,((X=_.C(f,_.qJ))==null?0:X.actions)?_.Qg(_.C(f,_.qJ).actions,t):(X=void 0,((X=_.C(f.commandMetadata,_.Jl))==null?0:X.sendPost)?_.Al(t,[f]):_.tl(t,[f],t)))}}};
_.XL5=function(A,t,f){t=t===void 0?{}:t;typeof t==="function"&&(t={callback:t});f||t._c&&t._c.jsl&&t._c.jsl.h||_.VG.extend(t,{_c:{jsl:{h:_.ah("GAPI_HINT_PARAMS")}}});(t.gapiHintOverride||_.ah("GAPI_HINT_OVERRIDE"))&&(f=_.qG(document.location.href).gapi_jsh)&&_.VG.extend(t,{_c:{jsl:{h:f}}});fuq(A,t)};
_.e5=function(A,t,f){t=t===void 0?{}:t;A=(A=A in UO?UO[A]:f)||"";f={};for(var X in t){f={key$jscomp$844:f.key$jscomp$844};f.key$jscomp$844=X;var Q=function(q){return function(){return String(t[q.key$jscomp$844])}}(f);
A=A.replace(new RegExp("\\$\\{"+f.key$jscomp$844+"\\}","gi"),Q);A=A.replace(new RegExp("\\$"+f.key$jscomp$844,"gi"),Q)}return A};
_.Gt=function(A,t){return QX5(A in UO?UO[A]:{},t)};
QX5=function(A,t){var f=_.ah("I18N_PLURAL_RULES");f||(f=function(X){return X==1?"one":"other"});
return(A=A["case"+t]||A[f(t)])?A.replace("#",t.toString()):t+""};
U2l=function(A){var t=qwg(A),f=document.getElementById(t),X=f&&ED5(f);X||f&&!X||(f=JSs(A,t,function(){if(!ED5(f)){pYp(f);_.CPx(t);var Q=_.l0(_.RpT,t);_.Rj(Q,0)}}))};
JSs=function(A,t,f){var X=document.createElement("link");X.id=t;X.onload=function(){f&&setTimeout(f,0)};
A=_.xC(A);_.lL(X,A,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(X);return X};
qwg=function(A){var t=_.yT("A");Kb(t,Fx(A));return"css-"+F5(t.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Gnx=function(A){var t=ehl();A!==t&&(t=_.NJ(),!_.M("web_autonav_allow_off_by_default")&&A||_.u0(0,141,!0),_.u0(0,140,!A),t.save())};
ehl=function(){var A=_.NJ();return _.M("web_autonav_allow_off_by_default")&&!A.getFlag(141)&&_.ah("AUTONAV_OFF_BY_DEFAULT")?!1:!A.getFlag(140)};
lux=function(A,t){var f,X;A=((f=A.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(X=f.videoAuthorizationToken)==null?void 0:X.credentialTransferTokens)||[];for(f=0;f<A.length;++f)if(A[f].scope===t)return A[f].token||void 0};
NBb=function(A){for(var t=0,f=0;f<A.length;f++)t=t*31+A.charCodeAt(f),f<A.length-1&&(t%=0x800000000000);return t%1E5};
_.zt=function(A){return _.Ae("ytcsi."+(A||"")+"data_")||uLq(A)};
_.zhb=function(A){A=_.zt(A);A.metadata||(A.metadata={});return A.metadata};
_.PJx=function(A){A=_.zt(A);A.tick||(A.tick={});return A.tick};
_.Pt=function(A){A=_.zt(A);if(A.gel){var t=A.gel;t.gelInfos||(t.gelInfos={});t.gelTicks||(t.gelTicks={})}else A.gel={gelTicks:{},gelInfos:{}};return A.gel};
_.TBu=function(A){A=_.Pt(A);A.gelInfos||(A.gelInfos={});return A.gelInfos};
iX5=function(A){var t=_.zt(A).nonce;t||(t=hG(16),_.zt(A).nonce=t);return t};
uLq=function(A){var t={tick:{},info:{}};_.zm("ytcsi."+(A||"")+"data_",t);return t};
OXq=function(){var A=_.Ae("ytcsi.debug");A||(A=[],_.zm("ytcsi.debug",A),_.zm("ytcsi.reference",{}));return A};
_.Tt=function(A){A=A||"";var t=cSq();if(t[A])return t[A];var f=OXq(),X={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};f.push(X);return t[A]=X};
BBg=function(A){A=A||"";var t=cSq();t[A]&&delete t[A];var f=OXq(),X={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};f.push(X);t[A]=X};
cSq=function(){var A=_.Ae("ytcsi.reference");if(A)return A;OXq();return _.Ae("ytcsi.reference")};
_.CJb=function(A){return M45[A]||"LATENCY_ACTION_UNKNOWN"};
bXg=function(A,t,f){f=f===void 0?{}:f;var X=!1;_.Ka("ytLoggingEventsDefaultDisabled",!1)&&(X=!0);X=X?null:dL;f=f===void 0?{}:f;var Q=Math.round(f.timestamp||(0,_.OJ)());_.Ii(t,1,Q<Number.MAX_SAFE_INTEGER?Q:0);Q=new hhz;if(f.lact)_.Ii(Q,1,isFinite(f.lact)?f.lact:-1);else if(f.timestamp)_.Ii(Q,1,-1);else{var q=_.iX();_.Ii(Q,1,isFinite(q)?q:-1)}if(f.sequenceGroup&&!_.M("web_gel_sequence_info_killswitch")){q=f.sequenceGroup;var e=nEx(q),G=new Rhx;_.Ii(G,2,e);_.Dg(G,1,q);_.bi(Q,3,G);f.endOfSequence&&delete m2l[f.sequenceGroup]}_.bi(t,
33,Q);(f.sendIsolatedPayload?Vr5:ZIp)(A,{endpoint:"log_event",payload:t,cttAuthInfo:f.cttAuthInfo,dangerousLogToVisitorSession:f.dangerousLogToVisitorSession},X)};
_.OO=function(){return(_.M("csi_use_time_origin")||_.M("csi_use_time_origin_tvhtml5"))&&_.i0.timeOrigin?Math.floor(_.i0.timeOrigin):_.i0.timing.navigationStart};
_.WMp=function(A,t){_.ct("_start",A,t)};
_.Bt=function(A,t){if(!_.M("web_csi_action_sampling_enabled")||!_.zt(t).actionDisabled){var f=_.Tt(t||"");_.pG(f.info,A);A.loadType&&(f=A.loadType,_.zhb(t).loadType=f);_.pG(_.TBu(t),A);f=iX5(t);t=_.zt(t).cttAuthInfo;ySb().info(A,f,t)}};
v4u=function(){var A,t,f,X;return((X=_.Px().resolve(_.z7(YB))==null?void 0:(A=Vy())==null?void 0:(t=A.loggingHotConfig)==null?void 0:(f=t.csiConfig)==null?void 0:f.debugTicks)!=null?X:[]).map(function(Q){return Object.values(Q)[0]})};
_.ct=function(A,t,f){if(!_.M("web_csi_action_sampling_enabled")||!_.zt(f).actionDisabled){var X=iX5(f),Q;if(Q=_.M("web_csi_debug_sample_enabled")&&X){(_.Px().resolve(_.z7(YB))==null?0:Vy())&&!LMx&&(LMx=!0,_.ct("gcfl",(0,_.OJ)(),f));var q,e,G;Q=(_.Px().resolve(_.z7(YB))==null?void 0:(q=Vy())==null?void 0:(e=q.loggingHotConfig)==null?void 0:(G=e.csiConfig)==null?void 0:G.debugSampleWeight)||0;if(q=Q!==0)b:{q=v4u();if(q.length>0)for(e=0;e<q.length;e++)if(A===q[e]){q=!0;break b}q=!1}q?(Q=NBb(X)%Q!==0,
_.zt(f).debugTicksExcludedLogged||(q={},q.debugTicksExcluded=Q,_.Bt(q,f)),_.zt(f).debugTicksExcludedLogged=!0):Q=!1}if(!Q){A[0]!=="_"&&pL5(A,f,t);Q=_.Tt(f||"");Q.tick[A]=t||(0,_.OJ)();if(Q.callback&&Q.callback[A])for(Q=_.U(Q.callback[A]),q=Q.next();!q.done;q=Q.next())q=q.value,q();Q=_.Pt(f);Q.gelTicks&&(Q.gelTicks[A]=!0);q=_.PJx(f);Q=t||(0,_.OJ)();_.M("log_repeated_ytcsi_ticks")?A in q||(q[A]=Q):q[A]=Q;q=_.zt(f).cttAuthInfo;A==="_start"?ySb().baseline(X,t,q):ySb().tick(A,X,t,q);_.E4z(f);return Q}}};
pL5=function(A,t,f){if(_.i0.mark)if(A.startsWith("mark_")||(A="mark_"+A),t&&(A+=" ("+t+")"),f===void 0||_.M("web_csi_disable_alt_time_performance_mark"))_.i0.mark(A);else{f=_.M("csi_use_performance_navigation_timing")?f-_.i0.timeOrigin:f-(_.i0.timeOrigin||_.i0.timing.navigationStart);try{_.i0.mark(A,{startTime:f})}catch(X){}}};
n4g=function(){var A,t=(A=_.i0.getEntriesByType)==null?void 0:A.call(_.i0,"mark");t&&t.forEach(function(f){if(f.name.startsWith("mark_")){var X;(X=_.i0.clearMarks)==null||X.call(_.i0,f.name)}})};
_.D2p=function(){switch(J7l()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.FMx=function(A){var t={},f=function(q,e,G){e=e.match("_rid")?e.split("_rid")[0]:e;typeof G==="number"&&(G=JSON.stringify(G));q.requestIds?q.requestIds.push({endpoint:e,id:G}):q.requestIds=[{endpoint:e,id:G}]};
A=_.U(Object.entries(A));for(var X=A.next();!X.done;X=A.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;switch(X){case "GetBrowse_rid":f(t,X,Q);break;case "GetGuide_rid":f(t,X,Q);break;case "GetHome_rid":f(t,X,Q);break;case "GetPlayer_rid":f(t,X,Q);break;case "GetSearch_rid":f(t,X,Q);break;case "GetSettings_rid":f(t,X,Q);break;case "GetTrending_rid":f(t,X,Q);break;case "GetWatchNext_rid":f(t,X,Q);break;case "yt_red":t.isRedSubscriber=!!Q;break;case "yt_ad":t.isMonetized=!!Q}}return t};
_.Iu0=function(A){var t=_.Cf("aft",A);if(t)return t;t=_.ah((A||"")+"TIMING_AFT_KEYS",["ol"]);for(var f=t.length,X=0;X<f;X++){var Q=_.Cf(t[X],A);if(Q)return Q}return NaN};
_.x2x=function(A,t){_.zm("ytglobal.timing"+(t||"")+"ready_",A)};
_.Cf=function(A,t){if(A=_.PJx(t)[A])return typeof A==="number"?A:A[A.length-1]};
_.E4z=function(A){var t=_.Cf("_start",A),f=_.Iu0(A),X=!jX0;t&&f&&X&&(Dvb(Ywl,new V4l(Math.round(f-t),A)),jX0=!0)};
o45=function(A){uLq(A);ZXb();n4g();A||(_.ah("TIMING_ACTION")&&_.H5("PREVIOUS_ACTION",_.ah("TIMING_ACTION")),_.H5("TIMING_ACTION",""))};
_.d2b=function(A){A=A===void 0?{}:A;_.r9(function(){hl();BBg();o45();_.x2x(!1);A.cttAuthInfo&&(_.zt().cttAuthInfo=A.cttAuthInfo);_.H5("TIMING_AFT_KEYS",[]);A.isHot?_.R7({loadType:"hot"}):_.R7({loadType:"warm"});_.H5("TIMING_ACTION","");delete _.ah("TIMING_INFO",{}).yt_lt;_.r9(_.WMp)(A.startTime,void 0)})()};
_.b0=function(A,t,f,X){t=t===void 0?{}:t;_.r9(function(){var Q=f?f:A;mP(Q);var q=t.sampleRate;if(!_.M("web_csi_action_sampling_enabled")||q===void 0||q<=1)q=!1;else{var e=iX5(Q);q=NBb(e)%q!==0}q&&(_.zt(Q).actionDisabled=!0);_.Tt(Q||"").info.actionType=A;t.cttAuthInfo&&(_.zt(Q).cttAuthInfo=t.cttAuthInfo);_.H5(Q+"TIMING_ACTION",A);_.r9(_.WMp)(t.startTime,Q);q={actionType:X||_.CJb(A)};t.logPreviousAction&&(q.previousAction=_.CJb(_.ah("TIMING_ACTION")));(e=_.Ws())&&e!=="UNDEFINED_CSN"&&(q.clientScreenNonce=
e);_.R7(q,Q);_.x2x(!0,Q)})()};
mP=function(A){_.r9(function(){hl(A);BBg(A);o45(A)})()};
Swb=function(){_.r9(function(){var A=[],t;for(t in _.Ae("ytcsi.".slice(0,-1)))t.endsWith("data_")&&A.push(t.slice(0,-5));A=_.U(A);for(t=A.next();!t.done;t=A.next())mP(t.value);hl()})()};
_.HXq=function(A){return _.r9(function(){return _.$2b("_start",A)})()};
_.R7=function(A,t,f){_.r9(_.Bt)(A,t,f===void 0?!1:f)};
_.Wt=function(A,t,f){return _.r9(_.ct)(A,t,f)};
_.$2b=function(A,t){return _.r9(function(){var f=_.PJx(t);return A in f})()};
KMx=function(A){if(!_.M("universal_csi_network_ticks"))return"";A=_.Wx(A)||"";for(var t=Object.keys(auT),f=0;f<t.length;f++){var X=t[f];if(A.includes(X))return X}return""};
wLT=function(A){if(!_.M("universal_csi_network_ticks"))return function(){};
var t=auT[A];return t?(_.yg(t),function(){var f=_.M("universal_csi_network_ticks")?(f=g45[A])?_.yg(f):!1:!1;return f}):function(){}};
_.yg=function(A,t,f){return _.r9(function(){if(_.$2b(A,f))return!1;_.Wt(A,t,f);return!0})()};
_.vt=function(A,t,f){_.r9(function(){if(!_.HXq(f)||_.$2b(A,f))return!1;_.Wt(A,t,f);return!0})()};
_.Lf=function(A){return _.r9(_.Cf)(A,void 0)};
hl=function(A){_.HXq(A)&&_.Wt("aa",void 0,A)};
_.tN5=function(A,t,f,X,Q,q,e,G,N,z){var T=sXx();q=new Rq({veType:t,youtubeData:q,jspbYoutubeData:G});z=nf({automatedLogEventSource:z},T);Q&&(z.cttAuthInfo=Q);Q={csn:T,pageVe:q.getAsJson()};_.M("expectation_logging")&&N&&N.screenCreatedLoggingExpectations&&(Q.screenCreatedLoggingExpectations=N.screenCreatedLoggingExpectations);f&&f.visualElement?(Q.implicitGesture={parentCsn:f.clientScreenNonce,gesturedVe:f.visualElement.getAsJson()},e&&(Q.implicitGesture.gestureType=e)):f&&_.K4(new _.xj("newScreen() parent element does not have a VE - rootVe",
t));X&&(Q.cloneCsn=X);A?oi("screenCreated",Q,A,z):_.SY("screenCreated",Q,z);Dvb(Zpg,new kns(T));DN.clear();rSb.clear();AMu.clear();return T};
Fd=function(A,t,f,X,Q,q){q=q===void 0?{}:q;fvb(A,t,f,[X],Q===void 0?!1:Q,q)};
fvb=function(A,t,f,X,Q,q){Q=Q===void 0?!1:Q;q=q===void 0?{}:q;Object.assign(q,nf({cttAuthInfo:yX(t)||void 0},t));for(var e=_.U(X),G=e.next();!G.done;G=e.next()){G=G.value;var N=G.getAsJson();(_.VG.isEmpty(N)||!N.trackingParams&&!N.veType)&&_.K4(Error("Cf"));if(_.M("no_client_ve_attach_unless_shown")){var z=XXb(G,t);if(N.veType&&!rSb.has(z)&&!AMu.has(z)&&!Q){if(!_.M("il_attach_cache_limit")||DN.size<1E3){DN.set(z,[A,t,f,G]);return}_.M("il_attach_cache_limit")&&DN.size>1E3&&_.K4(new _.xj("IL Attach cache exceeded limit"))}G=
XXb(f,t);DN.has(G)?Qrb(f,t):AMu.set(G,!0)}}X=X.filter(function(T){T.csn!==t?(T.csn=t,T=!0):T=!1;return T});
f={csn:t,parentVe:f.getAsJson(),childVes:_.Zg(X,function(T){return T.getAsJson()})};
t==="UNDEFINED_CSN"?I7("visualElementAttached",q,f):A?oi("visualElementAttached",f,A,q):_.SY("visualElementAttached",f,q)};
JMq=function(A,t,f,X,Q,q,e){q_q(A,t,f,Q,e)};
q_q=function(A,t,f,X,Q){UNb(f,t);Q=nf({cttAuthInfo:yX(t)||void 0,automatedLogEventSource:Q},t);f={csn:t,ve:f.getAsJson(),eventType:1};X&&(f.clientData=X);t==="UNDEFINED_CSN"?I7("visualElementShown",Q,f):A?oi("visualElementShown",f,A,Q):_.SY("visualElementShown",f,Q)};
el5=function(A,t,f,X){UNb(f,t);var Q=nf({cttAuthInfo:yX(t)||void 0,automatedLogEventSource:void 0},t);f={csn:t,ve:f.getAsJson(),eventType:4};X&&(f.clientData=X);t==="UNDEFINED_CSN"?I7("visualElementShown",Q,f):A?oi("visualElementShown",f,A,Q):_.SY("visualElementShown",f,Q)};
GfT=function(A,t,f,X,Q,q){var e=(X=X===void 0?!1:X)?16:8;X=nf({cttAuthInfo:yX(t)||void 0,endOfSequence:X,automatedLogEventSource:q},t);f={csn:t,ve:f.getAsJson(),eventType:e};Q&&(f.clientData=Q);t==="UNDEFINED_CSN"?I7("visualElementHidden",X,f):A?oi("visualElementHidden",f,A,X):_.SY("visualElementHidden",f,X)};
NKu=function(A,t,f,X,Q,q){lvx(A,t,f,void 0,X,Q,q)};
lvx=function(A,t,f,X,Q,q,e){UNb(f,t);X=X||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";q=nf({cttAuthInfo:yX(t)||void 0,automatedLogEventSource:e},t);f={csn:t,ve:f.getAsJson(),gestureType:X};Q&&(f.clientData=Q);t==="UNDEFINED_CSN"?I7("visualElementGestured",q,f):A?oi("visualElementGestured",f,A,q):_.SY("visualElementGestured",f,q)};
uwx=function(A,t,f,X){var Q=nf({cttAuthInfo:yX(t)||void 0},t);f={csn:t,ve:f.getAsJson(),clientData:X};t==="UNDEFINED_CSN"?I7("visualElementStateChanged",Q,f):A?oi("visualElementStateChanged",f,A,Q):_.SY("visualElementStateChanged",f,Q)};
zls=function(){var A=fez(16);for(var t=[],f=0;f<A.length;f++)t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[f]&63));return t.join("")};
I7=function(A,t,f){P1u.push({payloadName:A,payload:f,jspbPayload:void 0,options:t});TKx||(TKx=dvl())};
VI5=function(A){if(P1u){for(var t=_.U(P1u),f=t.next();!f.done;f=t.next())f=f.value,f.payload&&(f.payload.csn=A.csn,_.SY(f.payloadName,f.payload,f.options));P1u.length=0}TKx=0};
XXb=function(A,t){return""+A.getAsJson().veType+A.getAsJson().veCounter+t};
UNb=function(A,t){if(_.M("no_client_ve_attach_unless_shown")){var f=XXb(A,t);rSb.set(f,!0);Qrb(A,t)}};
Qrb=function(A,t){A=XXb(A,t);DN.has(A)&&(t=DN.get(A)||[],Fd(t[0],t[1],t[2],t[3],!0),DN.delete(A))};
nf=function(A,t){_.M("log_sequence_info_on_gel_web")&&(A.sequenceGroup=t);return A};
_.x7=function(A,t,f){_.r9(Fd)(void 0,A,t,f)};
_.j5=function(A,t,f){_.r9(fvb)(void 0,A,t,f)};
_.Y7=function(A,t){_.r9(JMq)(void 0,A,t,void 0,void 0,void 0)};
_.Vg=function(A,t,f){_.r9(function(){_.X_(t,function(X){el5(void 0,A,X,f)})})()};
_.ZN=function(A,t,f,X){_.r9(function(){_.X_(t,function(Q){GfT(void 0,A,Q,f,X)})})()};
_.o7=function(A,t,f){_.r9(NKu)(void 0,A,t,f,void 0)};
_.d0=function(A,t,f,X){_.r9(lvx)(void 0,A,t,f,X,void 0)};
_.S5=function(A,t,f){_.r9(uwx)(void 0,A,t,f,void 0)};
ilb=function(A,t){$7.set(A,t)};
Olx=function(A){Ht.initialized=!0;Ht.sessionId=A.sessionId||"";Ht.enabledSpans=A.enabledSpans;A.shouldSampleFn!=null&&(Ht.shouldSampleFn=A.shouldSampleFn)};
cMx=function(A){Ht.processors.push(A)};
BK0=function(A){return Ht.initialized?Ht.enabledSpans?Ht.enabledSpans[A]:!0:!1};
Rlb=function(A,t,f){return BK0(A)&&Ht.shouldSampleFn(A,t,MNl)?new C1p(A,t,f):hlb};
mNs=function(A,t,f){if(typeof f==="function"){var X=f;f=void 0}var Q=Rlb(A,t,f),q;if(((q=f)==null?void 0:q.endTime)!=null)return X&&_.K4(Error("Gf")),Q;var e;Q!==hlb&&((e=f)==null?void 0:e.active)!==!1&&Ht.stack.push(Q);if(!X)return Q;if(Q===hlb)return X(Q);try{var G=X(Q);if(G instanceof Promise)return G.then(function(N){Q.end();return N},function(N){Q.end("SPAN_STATUS_ERROR");
throw N;});
Q.end();return G}catch(N){throw Q.end("SPAN_STATUS_ERROR"),N;}};
WOx=function(){sv.subscribe("handleError",function(A){try{for(var t in blp)try{var f=blp[t];typeof blp[t]==="function"&&(f=f());A.params[t]=typeof blp[t]==="object"?JSON.stringify(f):String(f)}catch(X){_.K4(X)}}catch(X){_.K4(X)}})};
yM5=function(){};
vzu=function(A,t){var f=Object.keys(A);A=new _.xj("[Command Handler] "+t,{filteredCommandNames:f,originalCommand:A});_.HQ(A)};
LOT=function(A,t){vzu(A,t+" was called but not set")};
pXs=function(A){return function(){return new A}};
a7=function(A){return function(){return _.Px().resolve(A)}};
Ezb=function(A,t){var f=_.C(A,_.A4);if(f&&(f=t[f.signal]))return f();A=_.U(Object.keys(A));for(f=A.next();!f.done;f=A.next())if(f=f.value,t[f]&&(f=t[f]))return f()};
_.Kf=function(A,t,f,X){return{browseEndpoint:{browseId:A},commandMetadata:{webCommandMetadata:{url:t,rootVe:f,webPageType:X===void 0?"WEB_PAGE_TYPE_BROWSE":X}}}};
nzz=function(A,t,f){var X=t=t===void 0?0:t;f=f===void 0?0:f;var Q=f-X;return _.g0(A,"PPSV",void 0,void 0,(Q>600?0:Q<60||f<=0||X/f>.9)?0:t)};
_.g0=function(A,t,f,X,Q){var q="/watch?v="+A;A={videoId:A};t&&(A.playlistId=t,q+="&list="+t);X&&(q+="&pp="+X);Q&&(A.startTimeSeconds=Q,q+="&t="+Q+"s");t={watchEndpoint:A,commandMetadata:{webCommandMetadata:{url:q,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};f&&(t.clickTrackingParams=f);X&&(_.C(t,_.ZT).playerParams=X);return t};
DNx=function(A){return{browseEndpoint:{browseId:"VL"+A},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+A,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
FOg=function(A){if(A){var t;if(A){var f=(t=_.C(A.commandMetadata,_.Jl))==null?void 0:t.url;t=!(!f||f==="/service_ajax")}else t=!1;if(t)return A;var X;if(A=(X=_.C(A,_.Xd))==null?void 0:X.commands)for(X=_.U(A),A=X.next();!A.done;A=X.next())if(A=FOg(A.value))return A}};
_.w0=function(A){return{runs:[{text:A}]}};
Ivb=function(A,t){return A&&t?{runs:[{text:A,navigationEndpoint:t}]}:void 0};
sO=function(A){return A?_.w0(A):void 0};
_.k7=function(A){return A?{simpleText:A}:void 0};
_.r0=function(A){var t=A.type;A=A.payload;t={type:t};A!==void 0&&(t.payload=A);return t};
xNg=function(A,t,f){for(var X=Object.assign({},A),Q=_.U(Object.keys(t)),q=Q.next();!q.done;q=Q.next()){q=q.value;var e=A[q],G=t[q];if(G===void 0)delete X[q];else if(e===void 0)X[q]=G;else if(Array.isArray(G)&&Array.isArray(e))X[q]=f?[].concat(_.YV(e),_.YV(G)):G;else if(!Array.isArray(G)&&_.Hp(G)&&!Array.isArray(e)&&_.Hp(e))X[q]=xNg(e,G,f);else if(typeof G===typeof e)X[q]=G;else return t=new _.xj("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:q,originalValue:e,updateValue:G}),
_.HQ(t),A}return X};
VNp=function(A){if(!A.length)return"";try{if(jrq)return jrq.decode(A);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(A)}catch(e){}for(var t=0,f=[],X=A.length;t<X;){for(var Q=0;Q<1024&&t<X;){var q=A[t++];if(q<128)Y_s[Q++]=q;else{if(q<224)q=(q&31)<<6|A[t++]&63;else if(q<240)q=(q&15)<<12|(A[t++]&63)<<6|A[t++]&63;else{if(Q+1===1024){--t;break}q=(q&7)<<18|(A[t++]&63)<<12|(A[t++]&63)<<6|A[t++]&63;q-=65536;Y_s[Q++]=55296|q>>10;q=56320|q&1023}Y_s[Q++]=q}}q=String.fromCharCode.apply(String,
Y_s);Q<1024&&(q=q.substring(0,Q));f.push(q)}return f.join("")};
ozx=function(A,t){var f;if((f=Zlb)==null?0:f.encodeInto)return t=Zlb.encodeInto(A,t),t.read<A.length?A.length*4:t.written;for(var X=f=0;X<A.length;X++){var Q=A.charCodeAt(X);Q<128?t[f++]=Q:(Q<2048?t[f++]=Q>>6|192:((Q&64512)===55296&&X+1<A.length&&(A.charCodeAt(X+1)&64512)===56320?(Q=65536+((Q&1023)<<10)+(A.charCodeAt(++X)&1023),t[f++]=Q>>18|240,t[f++]=Q>>12&63|128):t[f++]=Q>>12|224,t[f++]=Q>>6&63|128),t[f++]=Q&63|128)}return f};
dNb=function(A,t,f){if(t&&f&&f.buffer===t.exports.memory.buffer){var X=t.realloc(f.byteOffset,A);if(X)return new Uint8Array(t.exports.memory.buffer,X,A)}A=t?new Uint8Array(t.exports.memory.buffer,t.malloc(A),A):new Uint8Array(A);f&&A.set(f);return A};
_.tR=function(A){A=new S_p(new $N5([_.sx(decodeURIComponent(A))]));if(Hl0(A,2)){var t=AR(A);var f=A.pos;var X=A.arrayView;f=f===void 0?0:f;var Q=t===void 0?-1:t;f=f===void 0?0:f;Q=Q===void 0?-1:Q;if(X.totalLength&&Q){Q<0&&(Q=X.totalLength-f);X.focus(f);if(!(f-X.arrayPos+Q<=X.arrays[X.arrayIdx].length)){var q=X.arrayIdx,e=X.arrayPos;X.focus(f+Q-1);e=new Uint8Array(X.arrayPos+X.arrays[X.arrayIdx].length-e);for(var G=0,N=q;N<=X.arrayIdx;N++)e.set(X.arrays[N],G),G+=X.arrays[N].length;X.arrays.splice(q,
X.arrayIdx-q+1,e);X.arrayIdx=0;X.arrayPos=0;X.focus(f)}q=X.arrays[X.arrayIdx];X=new DataView(q.buffer,q.byteOffset+f-X.arrayPos,Q)}else X=new DataView(new ArrayBuffer(0));X=new Uint8Array(X.buffer,X.byteOffset,X.byteLength);A.pos+=t;t=X}else t=void 0;t=t?VNp(t):void 0;A=Hl0(A,4)?AR(A):void 0;X=avp[A];if(typeof X==="undefined")throw A=new _.xj("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:A}),_.HQ(A),A;return{entityTypeFieldNumber:A,entityType:X,entityId:t}};
_.QQ=function(A,t,f){f=f===void 0?0:f;var X=new KOp;if(Zlb)A=Zlb.encode(A);else{var Q=new Uint8Array(Math.ceil(A.length*1.2)),q=ozx(A,Q);Q.length<q&&(Q=new Uint8Array(q),q=ozx(A,Q));Q.length>q&&(Q=Q.subarray(0,q));A=Q}A!==void 0&&(fZ(X,18),Q=A.length,fZ(X,Q),XC(X,Q),X.buf.set(A,X.pos),X.pos+=Q);A=gzx[t];if(typeof A==="undefined")throw f=new _.xj("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:t}),_.HQ(f),f;A!==void 0&&(fZ(X,32),fZ(X,A));fZ(X,40);fZ(X,1);t=new Uint8Array(X.buf.buffer,
X.buf.byteOffset,X.pos);return encodeURIComponent(_.E2(t,f))};
wXx=function(A){A=A.key||A.id;if(!A)throw Error("If");return A};
kfx=function(A,t){A=A===void 0?{}:A;return srq(A,t)};
rMx=function(A,t,f,X){if(X===void 0)return X=Object.assign({},A[t]||{}),f=(delete X[f],X),X={},Object.assign({},A,(X[t]=f,X));var Q={},q={};return Object.assign({},A,(q[t]=Object.assign({},A[t],(Q[f]=X,Q)),q))};
Az5=function(A,t,f,X,Q){var q=A[t];if(q==null||!q[f])return A;X=xNg(q[f],X,Q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Q={};q={};return Object.assign({},A,(q[t]=Object.assign({},A[t],(Q[f]=X,Q)),q))};
_.q_=function(A,t,f){return A[t]?A[t][f]||null:null};
fQb=function(){if(td5)return td5();var A={};td5=Tm("PersistentEntityStoreDb",{objectStores:(A.EntityStore={addedAtVersion:1},A.EntityAssociationStore={addedAtVersion:2},A),shared:!1,upgrade:function(t,f){f(1)&&tO(AO(t,"EntityStore",{keyPath:"key"}),"entityType","entityType");f(2)&&(t=AO(t,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),tO(t,"byParentEntityKey","parentEntityKey"),tO(t,"byChildEntityKey","childEntityKey"))},
version:3});return td5()};
XR5=function(A){return _.UJ(fQb(),A)};
JR=function(A){return window.Int32Array?new Int32Array(A):Array(A)};
qd0=function(A){return _.UJ(QFx(),A)};
Jz0=function(A){return new Up("WRONG_DATA_TYPE",{encoderVersion:A})};
Urx=function(A){return A instanceof Error?new Up("UNKNOWN_ENCODE_ERROR",{originalMessage:A.message}):new Up("UNKNOWN_ENCODE_ERROR")};
eox=function(A){return A instanceof Error?new Up("UNKNOWN_DECODE_ERROR",{originalMessage:A.message}):new Up("UNKNOWN_DECODE_ERROR")};
GT5=function(A,t){A=A instanceof Up?A:t(A);_.HQ(A);throw A;};
lQb=function(A){A=(new TextEncoder).encode(A).subarray(0,16);var t=new Uint8Array(16);t.set(A);return t};
uju=function(A){var t=Naz[A];if(t)return t;_.K4(new _.xj("Entity model not found.",{entityType:A}))};
_.eR=function(){zoT||(zoT=PEg());return zoT};
PEg=function(){var A,t,f;return _.l(function(X){if(X.nextAddress==1)return _.ht(X,2),X.yield(_.PD(),4);if(X.nextAddress!=2){A=X.yieldResult;if(!A||!_.Ij()||typeof _.Xb.BroadcastChannel==="undefined")return X.return();t=new Tau;return X.return(new G$(A,t))}f=_.vC(X);f instanceof Error&&_.HQ(f);return X.return()})};
_.l$=function(A,t){var f;return _.l(function(X){if(X.nextAddress==1){f=A.mutations;if(!f||f.length<=0)return X.return();t&&t.dispatch(_.r0({type:"ENTITY_LOADED",payload:f}));return X.yield(iyl(f),2)}f.length=0;_.LO(X)})};
iyl=function(A){var t;return _.l(function(f){return f.nextAddress==1?f.yield(_.eR(),2):(t=f.yieldResult)?f.yield(_.N_(t,"readwrite",function(X){for(var Q={},q=_.U(A),e=q.next(),G={};!e.done;G={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},e=q.next())G.mutation$jscomp$8=e.value,G.mutation$jscomp$8.entityKey&&Oyp(G.mutation$jscomp$8)&&(G.mutationEntityType$jscomp$3=(0,_.VG.getAnyKey)(G.mutation$jscomp$8.payload),e=void 0,G.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(e=function(N){return function(){return _.czu(X,
N.mutation$jscomp$8.payload[N.mutationEntityType$jscomp$3],N.mutationEntityType$jscomp$3)}}(G)),G.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(e=function(N){return function(){return Bal(X,N.mutation$jscomp$8.entityKey)}}(G)),G.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(e=function(N){return function(){return Md5(X,N.mutation$jscomp$8.entityKey,N.mutation$jscomp$8.payload[N.mutationEntityType$jscomp$3],N.mutationEntityType$jscomp$3)}}(G)),e&&(Q[G.mutation$jscomp$8.entityKey]=
Q[G.mutation$jscomp$8.entityKey]?Q[G.mutation$jscomp$8.entityKey].then(e):e()));
return Aq.all(Object.values(Q))}),0):f.return()})};
Oyp=function(A){var t;A=(t=A.options)==null?void 0:t.persistenceOption;return A==="ENTITY_PERSISTENCE_OPTION_PERSIST"||A==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Ro5=function(A,t){var f,X;_.l(function(Q){if(Q.nextAddress==1)return Q.yield(_.eR(),2);if(Q.nextAddress!=3)return(f=Q.yieldResult)?Q.yield(_.N_(f,"readonly",function(q){var e={},G=Object.keys(t).map(function(N){var z=t[N]?[].concat(_.YV(t[N])):[];return CEx(q,N,z,e)});
return Aq.all(G).then(function(){return e})}),3):Q.return();
X=Q.yieldResult;Object.keys(X).length>0&&A.dispatch(hoz(X));_.LO(Q)})};
CEx=function(A,t,f,X){return u$(A,t,f).then(function(Q){X[t]=mr5(f,Q)})};
mr5=function(A,t){if(t.length!==A.length)throw Error("Lf");return t.reduce(function(f,X,Q){f[A[Q]]=X;return f},{})};
yzz=function(A){var t=A.filter(function(Q){var q;return(Q==null?void 0:(q=Q.transferEntity)==null?void 0:q.transferState)==="TRANSFER_STATE_COMPLETE"}).length,f=A.filter(function(Q){var q;
return(Q==null?void 0:(q=Q.transferEntity)==null?void 0:q.transferState)==="TRANSFER_STATE_FAILED"}).length,X=A.filter(function(Q){var q;
return(Q==null?void 0:(q=Q.transferEntity)==null?void 0:q.transferState)&&byp.includes(Q.transferEntity.transferState)});
if(!(t||X!=null&&X.length))return 0;t=_.Wdb(X)+t;A=A.length-f;return A===0?0:Math.round(t*100/A)/100};
_.Wdb=function(A){var t=[];t=t.concat.apply(t,_.YV(A.filter(function(q){return q.streamEntity}).map(function(q){var e=Object.assign({},q.streamEntity),G,N=(G=q.transferEntity)==null?void 0:G.transferState;
e.streamsProgress=e.streamsProgress||[];e.streamsProgress=e.streamsProgress.map(function(z){var T=Object.assign({},z);T.numBytesDownloaded=N==="TRANSFER_STATE_COMPLETE"?z.numTotalBytes:z.numBytesDownloaded;return T});
return e}).map(function(q){return q.streamsProgress})));
var f=A=0;t=_.U(t);for(var X=t.next();!X.done;X=t.next()){var Q=X.value;X=Number(Q.numBytesDownloaded);Q=Number(Q.numTotalBytes);f+=isNaN(X)?0:X;A+=isNaN(Q)?0:Q}return A===0?0:Math.round(f*100/A)/100};
vxu=function(A){if(!A||!A.expirationTimestamp||!A.action)return!1;var t=(0,_.OJ)()/1E3;return Number(A.expirationTimestamp)>=t};
z$=function(A){return A&&A.expirationTimestamp&&A.action?vxu(A)&&A.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.PE=function(A){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(A||"TRANSFER_STATE_UNKNOWN")};
Ldu=function(A){var t=new KOp;if(A!==void 0){var f=Math.ceil(Math.log2(A.length*4+2)/7);f=f===void 0?2:f;fZ(t,10);t.submessagePosStack.push(t.pos);t.submessagePosStack.push(f);t.pos+=f;XC(t,A.length*1.2);f=ozx(A,t.buf.subarray(t.pos));t.pos+f>t.buf.length&&(XC(t,f),f=ozx(A,t.buf.subarray(t.pos)));t.pos+=f;A=t.submessagePosStack.pop();f=t.submessagePosStack.pop();for(var X=t.pos-f-A;A--;){var Q=A?128:0;t.view.setUint8(f++,X&127|Q);X>>=7}}t=new Uint8Array(t.buf.buffer,t.buf.byteOffset,t.pos);return(new TextDecoder("utf-8")).decode(t)};
_.T$=function(A){var t=0;A=_.U(A);for(var f=A.next(),X={};!f.done;X={transferState$jscomp$3:void 0},f=A.next()){var Q=f.value,q=void 0;f=(q=Q.streamEntity)!=null?q:{};q=void 0;X.transferState$jscomp$3=(q=Q.transferEntity)==null?void 0:q.transferState;q=Q=void 0;((Q=f)==null?0:(q=Q.streamsProgress)==null?0:q.length)&&f.streamsProgress.forEach(function(e){return function(G){G=Number(e.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?G.numTotalBytes:G.numBytesDownloaded);isFinite(G)&&(t+=G)}}(X))}return t};
pRg=function(A){return A.some(function(t){var f;if(!(t==null?0:(f=t.transferEntity)==null?0:f.transferState)){var X;return!(t==null?0:(X=t.policyEntity)==null?0:X.action)||t.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return byp.includes(t.transferEntity.transferState)})};
Exb=function(A,t){if(!t)return!1;if(_.M("of_pb_en_po_ks"))return!0;var f;A=(f=_.q_(A,"offlineVideoPolicy",_.QQ(t,"offlineVideoPolicy")))!=null?f:void 0;return!!A&&z$(A)};
_.Drp=function(A){var t=["TRANSFER_STATE_COMPLETE"];t=t===void 0?nxl:t;return A.filter(function(f){var X,Q;return t.includes((Q=(X=f.transferEntity)==null?void 0:X.transferState)!=null?Q:"TRANSFER_STATE_UNKNOWN")})};
Fdp=function(A,t){if(t){var f,X=(f=_.q_(A,"playbackData",_.QQ(t,"playbackData")))!=null?f:null,Q;f=(Q=_.q_(A,"transfer",_.QQ(t,"transfer")))!=null?Q:null;var q;Q=(q=_.q_(A,"offlineVideoStreams",_.QQ(t,"offlineVideoStreams")))!=null?q:null;var e;A=(e=_.q_(A,"offlineVideoPolicy",_.QQ(t,"offlineVideoPolicy")))!=null?e:null;if(X||f||Q||A)return{playbackDataEntity:X,transferEntity:f,streamEntity:Q,policyEntity:A}}};
_.i$=function(A){var t=A.playbackData;if(!t)return[];var f=[];t=_.U(Object.keys(t));for(var X=t.next();!X.done;X=t.next()){var Q=X.value;if(!IQx(A,_.tR(Q).entityId)&&(X=Fdp(A,_.tR(Q).entityId))){var q=void 0,e=void 0;Q=(e=Number((q=_.q_(A,"playbackData",Q))==null?void 0:q.streamDownloadTimestampSeconds))!=null?e:(0,_.OJ)();f.push({entity:X,streamDownloadTimestamp:Q})}}return f.sort(function(G,N){var z=G.streamDownloadTimestamp,T=N.streamDownloadTimestamp;return T===z?G.entity.streamEntity&&!N.entity.streamEntity?
1:-1:T-z}).map(function(G){return G.entity})};
xrg=function(A){return _.Drp(_.i$(A))};
_.jFx=function(A){return _.i$(A).filter(function(t){var f;if(((f=t.policyEntity)==null?0:f.action)&&t.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var X;if((X=t.transferEntity)==null?0:X.transferState){var Q;return byp.includes((Q=t.transferEntity)==null?void 0:Q.transferState)}return!0})};
IQx=function(A,t){var f;return((f=_.q_(A,"downloadStatusEntity",_.QQ(t,"downloadStatusEntity")))==null?void 0:f.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Ydx=function(A){var t;if(A==null?0:(t=A.playbackDataEntity)==null?0:t.key)return _.tR(A.playbackDataEntity.key).entityId;var f;if(A==null?0:(f=A.transferEntity)==null?0:f.key)return _.tR(A.transferEntity.key).entityId;var X;if(A==null?0:(X=A.streamEntity)==null?0:X.key)return _.tR(A.streamEntity.key).entityId;var Q;if(A==null?0:(Q=A.policyEntity)==null?0:Q.key)return _.tR(A.policyEntity.key).entityId};
Zy5=function(A){var t=new Set,f;A=(f=A.mainDownloadsListEntity)==null?void 0:f[Vdg];var X;if(!(A==null?0:(X=A.downloads)==null?0:X.length))return t;var Q;A==null||(Q=A.downloads)==null||Q.forEach(function(q){(q==null?0:q.videoItem)&&t.add(q.videoItem)});
return t};
Op=function(A,t){if(t){var f=_.q_(A,"mainVideoEntity",_.QQ(t,"mainVideoEntity")),X=_.q_(A,"downloadStatusEntity",_.QQ(t,"downloadStatusEntity")),Q=_.q_(A,"ytMainChannelEntity",_.QQ(t,"ytMainChannelEntity")),q={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};A=Fdp(A,t);X=(X==null?void 0:X.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.M("woffle_render_failed_download_state_ks")&&(X==null?void 0:X.downloadState)==="DOWNLOAD_STATE_FAILED";!A&&X&&(A=q);if(A&&f&&
Q)return Object.assign({},{videoEntity:f,channelEntity:Q},A)}};
drx=function(A,t){return oxb(A,t)==="TRANSFER_STATE_COMPLETE"&&Exb(A,t)};
Sds=function(A,t){if(!t)return!1;var f;A=(f=_.q_(A,"playbackData",_.QQ(t,"playbackData")))!=null?f:void 0;return!!A&&!!A.playerResponseJson};
oxb=function(A,t){if(!t)return"TRANSFER_STATE_UNKNOWN";var f=_.q_(A,"transfer",_.QQ(t,"transfer"));if(f){var X;return(X=f.transferState)!=null?X:"TRANSFER_STATE_UNKNOWN"}f=_.q_(A,"offlineOrchestrationActionWrapperEntity",_.QQ(t,"offlineOrchestrationActionWrapperEntity"));A=_.q_(A,"mainVideoEntity",_.QQ(t,"mainVideoEntity"));return f||A?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
$rx=function(A,t){if(!t)return"TRANSFER_STATE_UNKNOWN";if(A=_.q_(A,"transfer",_.QQ(t,"transfer"))){var f;return(f=A.transferState)!=null?f:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
HyT=function(A,t){return t&&(A=_.q_(A,"videoPlaybackPositionEntity",_.QQ(t,"videoPlaybackPositionEntity")),A==null?0:A.lastPlaybackPositionSeconds)?Number(A.lastPlaybackPositionSeconds):0};
Kdq=function(A,t){return aQ5(A).some(function(f){var X;return(f==null?void 0:(X=f.mainPlaylistEntity)==null?void 0:X.playlistId)===t})};
wRx=function(A,t,f){var X=gxg(A,t);if(!X.length)return[];t=[];X=_.U(X);for(var Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var q=Op(A,Q);f&&oxb(A,Q)!=="TRANSFER_STATE_COMPLETE"||q&&t.push(q)}return t};
gxg=function(A,t){if(!t)return[];var f=_.QQ(t,"mainPlaylistEntity"),X;t=(X=A.mainPlaylistEntity)==null?void 0:X[f];X=[];if(t==null||!t.videos)return X;t=_.U(t.videos);for(f=t.next();!f.done;f=t.next()){f=f.value;var Q=void 0,q=void 0,e=void 0,G=(Q=A)==null?void 0:(q=Q.mainPlaylistVideoEntity)==null?void 0:(e=q[f])==null?void 0:e.video;G&&(f=_.tR(G).entityId)&&X.push(f)}return X};
sFx=function(A,t){if(t){var f=_.q_(A,"mainPlaylistEntity",_.QQ(t,"mainPlaylistEntity")),X=_.q_(A,"mainPlaylistDownloadStateEntity",_.QQ(t,"mainPlaylistDownloadStateEntity"));A=_.q_(A,"ytMainChannelEntity",_.QQ(t,"ytMainChannelEntity"));if(X&&f)return Object.assign({},{mainPlaylistEntity:f,mainPlaylistDownloadStateEntity:X},!!A&&{channelEntity:A})}};
aQ5=function(A){return kTz(A).sort(function(t,f){return f.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return t.downloadedPlaylistEntities})};
kTz=function(A){var t=A.mainPlaylistDownloadStateEntity,f=[];if(!t)return f;for(var X=_.U(Object.keys(t)),Q=X.next();!Q.done;Q=X.next()){var q=Q.value;Q=sFx(A,_.tR(q).entityId);var e=void 0;q=Number((e=t[q])==null?void 0:e.addedTimestampMillis);e=isNaN(q)?(0,_.OJ)():q;Q!==void 0&&f.push({downloadedPlaylistEntities:Q,addedTimestampMillis:e})}return f};
rzx=function(A){var t,f=(t=A.mainPlaylistVideoEntity)!=null?t:{};return new Set(aQ5(A).reduce(function(X,Q){X=X===void 0?[]:X;var q,e;Q==null||(q=Q.mainPlaylistEntity)==null||(e=q.videos)==null||e.forEach(function(G){var N;(G=(N=f[G])==null?void 0:N.video)&&X.push(G)});
return X},[]))};
Aaq=function(A){return"downloadedMusicPlaylistEntities"in A};
tDx=function(A){return"mainPlaylistEntity"in A&&"mainPlaylistDownloadStateEntity"in A};
fmu=function(A){return"videoEntity"in A&&"channelEntity"in A};
XSb=function(A){var t=A.musicPlaylistDownloadMetadataEntity,f=[];if(!t)return f;for(var X=_.U(Object.keys(t)),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;a:{var q=A,e=_.tR(Q).entityId;if(e){var G=_.q_(q,"musicPlaylist",_.QQ(e,"musicPlaylist"));q=_.q_(q,"musicPlaylistDownloadMetadataEntity",_.QQ(e,"musicPlaylistDownloadMetadataEntity"));if(G&&q){G={musicPlaylistEntity:G,musicPlaylistDownloadStateEntity:q};break a}}G=void 0}q=void 0;Q=Number((q=t[Q])==null?void 0:q.addedTimestampMillis);Q=isNaN(Q)?(0,_.OJ)():
Q;G!==void 0&&f.push({downloadedMusicPlaylistEntities:G,addedTimestampMillis:Q})}return f};
Q4s=function(A){var t=new Set;A=_.U(A);for(var f=A.next();!f.done;f=A.next())if(f=f.value,"musicPlaylistEntity"in f&&"musicPlaylistDownloadStateEntity"in f){f=_.U(f.musicPlaylistEntity.tracks);for(var X=f.next();!X.done;X=f.next())t.add(X.value)}return t};
q$q=function(A,t){if(t){var f=_.q_(A,"musicTrack",_.QQ(t,"musicTrack")),X=_.q_(A,"musicArtist",_.QQ(t,"musicArtist"))||{};if((A=Fdp(A,t))&&f&&X)return Object.assign({},{musicTrackEntity:f,musicArtistEntity:X},A)}};
Jab=function(A){var t=A.musicTrackDownloadMetadataEntity,f=[];if(!t)return[];t=_.U(Object.keys(t));for(var X=t.next();!X.done;X=t.next()){var Q=X.value;X=q$q(A,_.tR(Q).entityId);var q=void 0;Q=Number((q=_.q_(A,"musicTrackDownloadMetadataEntity",Q))==null?void 0:q.addedTimestampMillis);q=isNaN(Q)?(0,_.OJ)():Q;X!==void 0&&f.push({downloadedMusicEntities:X,addedTimestampMillis:q})}return f};
GLg=function(A,t){if(!t)return[];if(Object.values(UXp).includes(t))return egx(A,t);t=_.QQ(t,"musicPlaylist");var f;A=(f=A.musicPlaylist)==null?void 0:f[t];f=[];if(A==null||!A.tracks)return f;A=_.U(A.tracks);for(t=A.next();!t.done;t=A.next())(t=_.tR(t.value).entityId)&&f.push(t);return f};
egx=function(A,t){var f=new Set,X=XSb(A).map(function(q){return q.downloadedMusicPlaylistEntities});
X=Q4s(X);X=_.U(X);for(var Q=X.next();!Q.done;Q=X.next())(Q=_.tR(Q.value).entityId)&&f.add(Q);return lmT(A).downloadedMusicEntities.filter(function(q){var e;if((e=q.musicTrackEntity)!=null&&e.videoId){q=q.musicTrackEntity;if(e=t==="PPOM"?!0:!f.has(q.videoId))b:switch(q=q.musicVideoType,t){case "PPSE":e=q==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:e=q!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}q=e}else q=!1;return q}).map(function(q){var e;
return(e=q.musicTrackEntity)==null?void 0:e.videoId})};
lmT=function(A){var t=Jab(A).sort(function(f,X){return X.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return"downloadedMusicEntities"in f?f.downloadedMusicEntities:Aaq(f)?f.downloadedMusicPlaylistEntities:{}});
A=XSb(A).sort(function(f,X){return X.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return"downloadedMusicEntities"in f?f.downloadedMusicEntities:Aaq(f)?f.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:t,downloadedMusicPlaylistEntities:A}};
ukb=function(A,t){t=_.ah("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?GLg(A,t):gxg(A,t);if(!t.length)return"TRANSFER_STATE_UNKNOWN";t=t.map(function(f){return $rx(A,f)});
return Nxu(t)};
Nxu=function(A){var t=new Set(A);if(t.has("TRANSFER_STATE_FAILED")&&t.size===1)return"TRANSFER_STATE_FAILED";t.delete("TRANSFER_STATE_FAILED");if(t.has("TRANSFER_STATE_UNKNOWN")&&t.size===1)return"TRANSFER_STATE_PRE_TRANSFER";t.delete("TRANSFER_STATE_UNKNOWN");if(t.has("TRANSFER_STATE_PRE_TRANSFER")&&t.size===1||t.size===0)return"TRANSFER_STATE_PRE_TRANSFER";A=t.has("TRANSFER_STATE_TRANSFERRING");t=t.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return A||t?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
cE=function(A){var t=A.mainVideoDownloadStateEntity,f=[];if(!t)return[];t=_.U(Object.keys(t));for(var X=t.next();!X.done;X=t.next()){var Q=X.value;if(!IQx(A,_.tR(Q).entityId)){X=Op(A,_.tR(Q).entityId);var q=void 0,e=void 0;Q=(e=Number((q=_.q_(A,"mainVideoDownloadStateEntity",Q))==null?void 0:q.addedTimestampMillis))!=null?e:(0,_.OJ)();X!==void 0&&f.push({downloadedVideoEntities:X,addedTimestampMillis:Q})}}return f};
zgq=function(A){return cE(A).sort(function(t,f){return f.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return t.downloadedVideoEntities})};
_.Txg=function(A){var t=rzx(A),f=_.BE(A),X=Zy5(A),Q=cE(A).filter(function(e){var G,N;if((e==null?void 0:(G=e.downloadedVideoEntities)==null?void 0:(N=G.transferEntity)==null?void 0:N.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var z,T;e=e==null?void 0:(z=e.downloadedVideoEntities)==null?void 0:(T=z.videoEntity)==null?void 0:T.key;return _.M("kevlar_use_library_entity")?e&&(X.has(e)||f[e]):e&&!t.has(e)}),q=kTz(A).filter(function(e){return ukb(A,e.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.YV(Q),_.YV(q)).sort(function(e,G){return G.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return Pcs(e)})};
ixs=function(A,t){if(t&&Exb(A,t)){var f,X,Q=(X=(f=_.q_(A,"playbackData",_.QQ(t,"playbackData")))!=null?f:void 0)==null?void 0:X.playerResponseJson;if(Q){try{var q=JSON.parse(Q);var e=_.q_(A,"transfer",_.QQ(t,"transfer")),G=HyT(A,t);G&&(q=Object.assign({},q,{playerConfig:Object.assign({},q.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+G*1E3}}})}));q.cotn=e==null?void 0:e.cotn}catch(N){}return q}}};
_.cag=function(A){var t,f,X;A=(X=(f=((t=A.downloadsPageViewConfigurationEntity)!=null?t:{})[_.M_])==null?void 0:f.smartDownloadsOptInBannerVisibility)!=null?X:{};var Q;return(Q=_.C(A,Oxz))!=null?Q:{}};
_.BE=function(A){var t,f,X;A=(X=(f=((t=A.mainDownloadsListEntity)!=null?t:{})[_.BxT])==null?void 0:f.downloads)!=null?X:[];t={};f=_.U(A);for(X=f.next();!X.done;X=f.next())A=void 0,t[(A=X.value.videoItem)!=null?A:""]=!0;return t};
MD5=function(A){var t=_.BE(A);if(Object.keys(t).length===0)return!1;var f=A.mainVideoEntity;if(!f)return!0;f=_.U(Object.keys(f));for(var X=f.next();!X.done;X=f.next()){X=X.value;var Q=_.tR(X).entityId;if(t[X]&&!IQx(A,Q))return!1}return!0};
_.CZ=function(A){var t=_.BE(A);return cE(A).sort(function(f,X){return f.addedTimestampMillis-X.addedTimestampMillis}).map(function(f){return f.downloadedVideoEntities}).filter(function(f){var X;
return(f=f==null?void 0:(X=f.videoEntity)==null?void 0:X.key)&&!!t[f]})};
_.hg5=function(A){var t,f,X;A=(X=(f=((t=A.downloadsPageViewConfigurationEntity)!=null?t:{})[_.M_])==null?void 0:f.downloadsUpsellBannerVisibility)!=null?X:{};var Q;return(Q=_.C(A,Ccb))!=null?Q:{}};
Pcs=function(A){return"downloadedVideoEntities"in A?A.downloadedVideoEntities:"downloadedPlaylistEntities"in A?A.downloadedPlaylistEntities:{}};
RgT=function(A){var t=_.BE(A),f=rzx(A),X=cE(A).filter(function(Q){var q,e;return(Q=Q==null?void 0:(q=Q.downloadedVideoEntities)==null?void 0:(e=q.videoEntity)==null?void 0:e.key)&&!t[Q]&&!f.has(Q)});
A=kTz(A);return[].concat(_.YV(X),_.YV(A)).sort(function(Q,q){return q.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return Pcs(Q)})};
_.hR=function(A){if(!_.M("kevlar_use_library_entity"))return RgT(A);var t=cE(A).filter(function(X){var Q,q;if(Q=X=X==null?void 0:(Q=X.downloadedVideoEntities)==null?void 0:(q=Q.videoEntity)==null?void 0:q.key){var e,G,N;Q=((G=(e=A.mainDownloadsListEntity)==null?void 0:e[Vdg])==null?0:(N=G.downloads)==null?0:N.length)?Zy5(A).has(X):!1}return Q}),f=kTz(A);
return[].concat(_.YV(t),_.YV(f)).sort(function(X,Q){return Q.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return Pcs(X)})};
mXz=function(A){var t=_.BE(A),f=rzx(A);return zgq(A).filter(function(X){var Q;return(X=X==null?void 0:(Q=X.videoEntity)==null?void 0:Q.key)&&!t[X]&&!f.has(X)})};
bx5=function(A){if(!_.M("kevlar_use_library_entity"))return mXz(A);var t=_.BE(A),f=Zy5(A);return zgq(A).filter(function(X){var Q;return(X=X==null?void 0:(Q=X.videoEntity)==null?void 0:Q.key)&&!t[X]&&f.has(X)})};
WJ5=function(A,t){t=_.QQ(t,"settingEntity");var f,X,Q;return!!((Q=(X=((f=A.settingEntity)!=null?f:{})[t])==null?void 0:X.settingOptionValue)!=null?Q:{}).boolValue};
_.RC=function(A){var t=_.CZ(A);if(pRg(t))return 0;var f=[];t=_.U(t);for(var X=t.next();!X.done;X=t.next()){X=X.value;var Q=void 0,q=void 0;if((Q=X)==null?0:(q=Q.videoEntity)==null?0:q.key)Q=_.tR(X.videoEntity.key).entityId,X=A,Q=_.QQ(Q,"mainVideoDownloadStateEntity"),X=_.q_(X,"mainVideoDownloadStateEntity",Q),(X=Number(X==null?void 0:X.addedTimestampMillis))&&f.push(X)}return Math.max.apply(Math,_.YV(f))};
_.mv=function(A){return A.ui.richGridMiniMode};
_.b$=function(A){return A.ui.richGridItemsPerRow};
_.ya5=function(A){return A.ui.richGridSlimItemsPerRow};
_.vaq=function(A){return A.ui.guideIsExpanded};
_.WE=function(A){return A.ui.miniplayerIsActive};
LJx=function(A){return A.ui.singleOptionSurveyIsActive};
_.yQ=function(A){var t;return((t=A.ui)==null?void 0:t.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.pS5=function(A){return _.yQ(A)==="WEB_PAGE_TYPE_WATCH"};
_.Eag=function(A){return _.yQ(A)==="WEB_PAGE_TYPE_SHORTS"};
_.na5=function(A){return A.ui.inlinePreviewIsActive};
_.DXq=function(A){return A.ui.inlinePreviewIsEnabled};
_.FJx=function(A){return A.ui.miniplayerPlaybackState};
_.vE=function(A){return A.ui.isOnline};
_.Iml=function(A){return A.ui.frostedGlassMode};
_.LZ=function(A,t){return oxb(A.entities,t)};
_.pZ=function(A,t){return ukb(A.entities,t)};
xX0=function(A,t){var f;if(t){var X;A=(X=_.q_(A.entities,"offlineVideoPolicy",_.QQ(t,"offlineVideoPolicy")))==null?void 0:X.action}else A=void 0;return(f=A)!=null?f:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
j4p=function(A,t){var f;t?(A=_.q_(A.entities,"offlineVideoPolicy",_.QQ(t,"offlineVideoPolicy")),A=Number(A==null?void 0:A.expirationTimestamp)):A=void 0;return(f=A)!=null?f:0};
_.Y$0=function(A){return _.i$(A.entities).length};
VDx=function(A,t){return Op(A.entities,t)};
Zx5=function(A,t){return sFx(A.entities,t)};
Ep=function(A,t){return(A=Op(A.entities,t))?_.Wdb([A]):0};
_.oag=function(A,t){var f=_.ah("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(f){var X=A.entities;var Q=GLg(X,t);if(Q.length){var q=[];Q=_.U(Q);for(var e=Q.next();!e.done;e=Q.next())(e=q$q(X,e.value))&&q.push(e);X=q}else X=[]}else X=wRx(A.entities,t);var G;if(f){var N=A.entities;t?(t=_.QQ(t,"musicPlaylist"),N=(G=N.musicPlaylist)==null?void 0:G[t],G=N!=null&&N.tracks?N.tracks.length:0):G=0}else G=A.entities,t?(t=_.QQ(t,"mainPlaylistEntity"),G=(N=G.mainPlaylistEntity)==null?void 0:N[t],G=G!=null&&G.videos?
G.videos.length:0):G=0;return X.length!==G?0:X?yzz(X):0};
_.dXx=function(A){return A.download.isLeaderTab};
_.S$b=function(A,t,f){if(!t&&f){var X=A.entities;if(f){var Q=Ldu(f),q,e;t=(e=(q=_.q_(X,"offlineabilityEntity",_.QQ(Q,"offlineabilityEntity")))==null?void 0:q.addToOfflineButtonState)!=null?e:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else t="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else q=A.entities,t?(e=Ldu(t),t=(Q=(X=_.q_(q,"offlineabilityEntity",_.QQ(e,"offlineabilityEntity")))==null?void 0:X.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):t="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return t};
$Xx=function(A,t){A=A.entities;if(t){t=Ldu(t);var f,X;t=(X=(f=_.q_(A,"offlineabilityEntity",_.QQ(t,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?X:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else t="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return t};
_.Hxs=function(A){var t=A.entities;A=_.vE(A);var f=WJ5(t,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.M("kevlar_modern_downloads_page")&&f)var X=!1;else{var Q,q;t=(q=(Q=((X=t.downloadsPageViewConfigurationEntity)!=null?X:{})[_.M_])==null?void 0:Q.smartDownloadsOptInBannerVisibility)!=null?q:{};X=A?!!t.visibleWithConnection:!!t.visibleWithoutConnection}return X};
_.ams=function(A){return WJ5(A.entities,"SMART_DOWNLOADS_ENABLED")};
_.KJu=function(A){return MD5(A.entities)};
gaq=function(A){return _.CZ(A.entities).every(function(t){var f;return(t==null?void 0:(f=t.transferEntity)==null?void 0:f.transferState)&&!byp.includes(t.transferEntity.transferState)})};
_.wST=function(A){var t,f,X,Q=(X=(f=((t=A.entities.downloadsPageViewConfigurationEntity)!=null?t:{})[_.M_])==null?void 0:f.downloadsUpsellBannerVisibility)!=null?X:{};return _.vE(A)?!!Q.visibleWithConnection:!!Q.visibleWithoutConnection};
_.s4g=function(A,t){return IQx(A.entities,t)};
kL0=function(A,t){if(t){var f,X;A=(X=(f=_.q_(A.entities,"downloadStatusEntity",_.QQ(t,"downloadStatusEntity")))==null?void 0:f.downloadState)!=null?X:"DOWNLOAD_STATE_UNKNOWN"}else A="DOWNLOAD_STATE_UNKNOWN";return A};
nZ=function(A,t){return HyT(A.entities,t)};
f0x=function(A){A=raT(A);var t=A.hours===void 0?0:A.hours,f=A.minutes===void 0?0:A.minutes,X=A.seconds===void 0?0:A.seconds,Q=t>0;A=[];Q&&(t=ABz(t),A.push(t));t=Q;t=t===void 0?!1:t;f=(["af","be","lt"].includes(Dt)||t)&&f<10?tHb().format(f):(new Intl.NumberFormat("en-u-nu-latn")).format(f);A.push(f);f=tHb().format(X);A.push(f);f=":";"da fi id si sr sr-Latn".split(" ").includes(Dt)&&(f=".");return A.join(f)};
_.QHb=function(A){A=raT(A);var t=A.hours===void 0?0:A.hours,f=A.minutes===void 0?0:A.minutes,X=A.seconds===void 0?0:A.seconds;A=[];if(t>0){var Q=X4p().format({hours:t});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Dt)||t>9999)Q=Q.replace(t.toString(),ABz(t)),Dt==="km"&&(Q=Q.replace(".",","));A.push(Q)}f>0&&A.push(X4p().format({minutes:f}));X>0&&A.push(X4p().format({seconds:X}));t="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");f=Dt=="am"?"{0}\u1363 ":Dt=="fa"?"{0}\u060c\u200f ":
Dt=="my"?"{0} - ":Dt=="ne"?"{0},":Dt=="th"?"{0} ":Dt=="ur"?"{0}\u060c ":Dt=="ar"||Dt=="ar-XB"?"{0} \u0648":Dt=="ja"||Dt=="zh-CN"||Dt=="zh-HK"||Dt=="zh-TW"?"{0}\u3001":"{0}, ";X=Dt=="am"?"\u1363 ":Dt=="fa"?"\u060c\u200f ":Dt=="my"?" - ":Dt=="th"?" ":Dt=="ur"?"\u060c ":Dt=="ar"||Dt=="ar-XB"?" \u0648":Dt=="ja"||Dt=="zh-CN"||Dt=="zh-HK"||Dt=="zh-TW"?"\u3001":", ";Q=Dt=="am"?" \u12a5\u1293 {0}":Dt=="as"?" \u0986\u09f0\u09c1 {0}":Dt=="az"?" v\u0259 {0}":Dt=="bn"?" \u098f\u09ac\u0982 {0}":Dt=="cs"?" a\u00a0{0}":
Dt=="de"?" und {0}":Dt=="el"?" \u03ba\u03b1\u03b9 {0}":Dt=="eu"?" eta {0}":Dt=="fa"?"\u060c \u0648 {0}":Dt=="fil"?", at {0}":Dt=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Dt=="hi"?", \u0914\u0930 {0}":Dt=="hu"?" \u00e9s {0}":Dt=="hy"?" \u0587 {0}":Dt=="id"?", dan {0}":Dt=="iw"?" \u05d5-{0}":Dt=="ja"?"\u3001{0}":Dt=="ka"?" \u10d3\u10d0 {0}":Dt=="km"?" \u1793\u17b7\u1784 {0}":Dt=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Dt=="ko"?" \ubc0f {0}":Dt=="ky"?" \u0436\u0430\u043d\u0430 {0}":Dt=="lt"?" ir {0}":Dt==
"lv"?" un {0}":Dt=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Dt=="mr"?" \u0906\u0923\u093f {0}":Dt=="ms"?" dan {0}":Dt=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Dt=="ne"?" \u0930 {0}":Dt=="or"?", \u0b13 {0}":Dt=="pa"?" \u0a05\u0a24\u0a47 {0}":Dt=="ro"?" \u0219i {0}":Dt=="si"?", \u0dc3\u0dc4 {0}":Dt=="sk"?" a {0}":Dt=="sl"?" in {0}":Dt=="sq"?" dhe {0}":Dt=="sv"?" och {0}":Dt=="sw"?" na {0}":Dt=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Dt=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Dt=="th"?" \u0e41\u0e25\u0e30{0}":Dt=="tr"?" ve {0}":Dt=="ur"?"\u060c \u0627\u0648\u0631 {0}":Dt=="uz"?" va {0}":Dt=="vi"?" v\u00e0 {0}":Dt=="zh-HK"?"\u53ca{0}":Dt=="zu"?", ne-{0}":Dt=="af"||Dt=="nl"?" en {0}":Dt=="ar"||Dt=="ar-XB"?" \u0648{0}":Dt=="be"||Dt=="uk"?" \u0456 {0}":Dt=="en-GB"||Dt=="en-IN"?" and {0}":Dt=="en"||Dt=="en-XA"?", and {0}":Dt=="et"||Dt=="fi"?" ja {0}":Dt=="fr"||Dt=="fr-CA"?" et {0}":Dt=="zh-CN"||Dt=="zh-TW"?"\u548c{0}":Dt=="da"||Dt=="is"||Dt=="no"?" og {0}":Dt=="es"||Dt=="es-419"||
Dt=="es-US"?" y {0}":Dt=="kk"||Dt=="lo"||Dt=="mn"?", {0}":Dt=="bg"||Dt=="mk"||Dt=="ru"||Dt=="sr"?" \u0438 {0}":Dt=="gl"||Dt=="it"||Dt=="pt-BR"||Dt=="pt-PT"?" e {0}":" i {0}";var q=Dt=="am"?"{0} \u12a5\u1293 {1}":Dt=="as"?"{0} \u0986\u09f0\u09c1 {1}":Dt=="az"?"{0} v\u0259 {1}":Dt=="bn"?"{0} \u098f\u09ac\u0982 {1}":Dt=="de"?"{0} und {1}":Dt=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Dt=="eu"?"{0} eta {1}":Dt=="fa"?"{0} \u0648 {1}":Dt=="fil"?"{0} at {1}":Dt=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Dt=="hi"?"{0} \u0914\u0930 {1}":
Dt=="hu"?"{0} \u00e9s {1}":Dt=="hy"?"{0} \u0587 {1}":Dt=="iw"?"{0} \u05d5-{1}":Dt=="ja"?"{0}\u3001{1}":Dt=="ka"?"{0} \u10d3\u10d0 {1}":Dt=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Dt=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Dt=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Dt=="ko"?"{0} \ubc0f {1}":Dt=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Dt=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Dt=="lt"?"{0} ir {1}":Dt=="lv"?"{0} un {1}":Dt=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Dt=="mn"?"{0}, {1}":Dt==
"mr"?"{0} \u0906\u0923\u093f {1}":Dt=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Dt=="ne"?"{0} \u0930 {1}":Dt=="or"?"{0} \u0b13 {1}":Dt=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Dt=="ro"?"{0} \u0219i {1}":Dt=="si"?"{0} \u0dc3\u0dc4 {1}":Dt=="sl"?"{0} in {1}":Dt=="sq"?"{0} dhe {1}":Dt=="sv"?"{0} och {1}":Dt=="sw"?"{0} na {1}":Dt=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Dt=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Dt=="th"?"{0}\u0e41\u0e25\u0e30{1}":Dt=="tr"?"{0} ve {1}":Dt=="ur"?
"{0} \u0627\u0648\u0631 {1}":Dt=="uz"?"{0} va {1}":Dt=="vi"?"{0} v\u00e0 {1}":Dt=="zh-HK"?"{0}\u53ca{1}":Dt=="zu"?"{0} ne-{1}":Dt=="af"||Dt=="nl"?"{0} en {1}":Dt=="ar"||Dt=="ar-XB"?"{0} \u0648{1}":Dt=="be"||Dt=="uk"?"{0} \u0456 {1}":Dt=="cs"||Dt=="sk"?"{0} a\u00a0{1}":Dt=="et"||Dt=="fi"?"{0} ja {1}":Dt=="fr"||Dt=="fr-CA"?"{0} et {1}":Dt=="id"||Dt=="ms"?"{0} dan {1}":Dt=="zh-CN"||Dt=="zh-TW"?"{0}\u548c{1}":Dt=="da"||Dt=="is"||Dt=="no"?"{0} og {1}":Dt=="es"||Dt=="es-419"||Dt=="es-US"?"{0} y {1}":Dt==
"bg"||Dt=="mk"||Dt=="ru"||Dt=="sr"?"{0} \u0438 {1}":Dt=="en"||Dt=="en-GB"||Dt=="en-IN"||Dt=="en-XA"?"{0} and {1}":Dt=="gl"||Dt=="it"||Dt=="pt-BR"||Dt=="pt-PT"?"{0} e {1}":"{0} i {1}";Dt==="sq"?(Q=Q.replace("dhe","e"),q=q.replace("dhe","e")):Dt==="th"?(X=X.replace("{0}"," {0}"),q=q.replace("{0}","{0} "),q=q.replace("{1}"," {1}")):Dt==="ne"?X=",":Dt==="zh-CN"?X="":t.includes(Dt)&&(X=" ");return A.length<2?A.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(Dt)?
A.length===2?q.replace("{0}",A[0]).replace("{1}",A[1]):f.replace("{0}",A[0])+A.slice(1,-1).join(X)+Q.replace("{0}",A[A.length-1]):A.join(X)};
raT=function(A){var t=A.hours||0,f=A.minutes||0,X=A.seconds||0;t=X+f*60+t*3600+(A.days||0)*86400+(A.weeks||0)*604800+(A.months||0)*2629800+(A.years||0)*31557600;if(t<=0)return{hours:0,minutes:0,seconds:0};A=t;t=Math.floor(A/3600);A%=3600;f=Math.floor(A/60);X=Math.floor(A%60);return{hours:t,minutes:f,seconds:X}};
ABz=function(A){A=(new Intl.NumberFormat("en-u-nu-latn")).format(A);var t=["fr"],f="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(Dt)?A.replace(",","\u00a0"):t.includes(Dt)?A.replace(",","\u202f"):f.includes(Dt)?A.replace(",","."):A};
tHb=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
X4p=function(){qlb||(IC=JBg,qlb=new URp);return qlb};
ezx=function(A){try{return(new _.xI(5)).format(A)}catch(t){}};
jR=function(A){return{thumbnailOverlayDownloadingRenderer:{state:A}}};
G45=function(){var A=_.e5("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.w0(A),icon:{iconType:"PLAY_ALL"}}}};
l0b=function(A){A=_.YI(A,2);return Dt!=="ru"&&Dt!=="es_419"&&Dt!=="es-419"&&Dt!=="es"&&Dt!=="es_US"&&Dt!=="es-US"&&Dt!=="fr"&&Dt!=="pl"&&Dt!=="it"&&Dt!=="nl"&&Dt!=="uk"&&Dt!=="fr_CA"&&Dt!=="fr-CA"||A===""?A:A[0].toLocaleUpperCase()+A.substring(1)};
uWs=function(A){return function(t){var f=A(),X=_.YI(t,f.dateFormat);t=_.YI(t,f.timeFormat);var Q=NNx.DATETIMEFORMATS[f.joinerStyle];Q=Q.replace(/'(?!')/g,"");Q=Q.replace("{0}",t);Q=Q.replace("{1}",X);return f.capitalize(Q)}};
zzb=function(A){return A?typeof A.seconds==="string"&&(A.nanos===void 0||typeof A.nanos==="number"):!1};
Pwu=function(A){return new Date(Number(A.seconds)*1E3+(A.nanos||0)*1E-6)};
_.YI=function(A,t){if(typeof A.getTime==="function")A={date:A};else if(zzb(A))A={date:Pwu(A)};else if(typeof zzb(A.timestamp)&&typeof A.i18nInternalSecondsEastOfUtc==="number")A={date:Pwu(A.timestamp),timeZone:VQ(-A.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(A));var f=A;A=f.date;f=f.timeZone;t=TN0(t).format(A,f);Dt==="zh-TW"&&(A=f?Number(TN0("H").format(A,f)):A.getHours(),t=A<5?t.replace("\u4e0a\u5348","\u51cc\u6668"):A<8?t.replace("\u4e0a\u5348","\u65e9\u4e0a"):A<12?
t.replace("\u4e0a\u5348","\u4e0a\u5348"):A<13?t.replace("\u4e0b\u5348","\u4e2d\u5348"):A<19?t.replace("\u4e0b\u5348","\u4e0b\u5348"):t.replace("\u4e0b\u5348","\u665a\u4e0a"));return t};
TN0=function(A){if(iRp.has(A))return iRp.get(A);var t=ORT(A);t=cBl(t);BNz!==!0&&(BNz=!0);MHp=!0;MHp=!1;t=new Zt(t,NNx);iRp.set(A,t);return t};
ORT=function(A){return(new Zt(A,NNx)).patternParts_.map(function(t){return t.type===0?"'"+t.text+"'":t.text}).join("")};
cBl=function(A){return Dt==="en"||Dt==="es_US"||Dt==="es-US"?A:A.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(t,f,X){return"H".repeat(f.length)+X})};
yB5=function(A,t){CwT||(IC=JBg,CwT=new hz5);var f=CwT;a:if(A=Rzx(A),t=Rzx(t||new Date),A>t)f=A.getTime()-t.getTime()>6048E5?_.YI(A,1):mRs(A);else{for(var X=0;bRx(A,12*(X+1))<t;)++X;if(X>0)f=f.format(-X,0);else{for(X=0;bRx(A,X+1)<t;)++X;if(X>0)f=f.format(-X,2);else{A=t.getTime()-A.getTime();t=_.U(WUp);for(X=t.next();!X.done;X=t.next()){X=X.value;var Q=X.unit,q=Math.floor(A/X.unitDuration);if(q>=(X.threshold===void 0?1:X.threshold)){f=f.format(-q,Q);break a}}f=f.format(-0,7)}}}return f};
Rzx=function(A){if(typeof A.getTime==="function")return A;if(zzb(A))return Pwu(A);throw Error("Nf`"+JSON.stringify(A));};
bRx=function(A,t){for(var f=0,X;;++f)if(X=new Date(A.getFullYear(),A.getMonth()+t,A.getDate()-f,A.getHours(),A.getMinutes(),A.getSeconds()),X.getMonth()===(A.getMonth()+t)%12)return X};
_.oC=function(A){return{runs:[{text:A}]}};
_.dF=function(A){if(A&&A.simpleText)return A.simpleText;var t="";if(A&&A.runs)for(var f=0;f<A.runs.length;f++)A.runs[f].text&&(t+=A.runs[f].text);return t};
LUs=function(A,t,f,X){return A.videoEntity&&!A.policyEntity&&f!=="DOWNLOAD_STATE_FAILED"?[jR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:z$(A.policyEntity)&&t!=="TRANSFER_STATE_FAILED"&&t!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?t==="TRANSFER_STATE_PAUSED_BY_USER"?[jR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.PE(t)?[jR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:A.videoEntity.lengthSeconds?vo5(A.videoEntity.lengthSeconds,X):[]:
[jR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
vo5=function(A,t){var f=[{thumbnailOverlayTimeStatusRenderer:{text:_.w0(f0x({seconds:A})),style:"DEFAULT"}}];t&&(A=t<=0||A<=0?0:t>=A?100:Math.ceil(t*100/A),A>0&&f.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:A}}));return f};
p4b=function(A,t,f,X,Q){if(t==="TRANSFER_STATE_UNKNOWN"||!A)return{};if(_.PE(t)||t==="TRANSFER_STATE_PRE_TRANSFER")var q=[jR("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var e,G;if(t==="TRANSFER_STATE_COMPLETE"&&((e=A.mainPlaylistEntity)==null?0:(G=e.videos)==null?0:G.length)){var N;A=(q=A.mainPlaylistEntity)==null?void 0:(N=q.videos)==null?void 0:N.length;q=(q=ezx(A))?{thumbnailOverlayBottomPanelRenderer:{text:_.w0(q),icon:{iconType:"PLAYLISTS"}}}:void 0;q=[G45(),Object.assign({},
q!=null?q:{})]}else q=[]}a:if(t==="TRANSFER_STATE_PRE_TRANSFER")f=sO(_.e5("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(t==="TRANSFER_STATE_TRANSFER_IN_QUEUE")f=sO(_.e5("WAITING_TO_DOWNLOAD"));else if(_.PE(t))f=Math.floor(f*100).toString(),f=sO(_.e5("DOWNLOADING_PERCENT",{percent:f},"Downloading... "+f+"%"));else{if(X&&(_.M("playlist_is_offline_selector_killswitch")&&(Q=_.Px().resolve(_.qA).isNetworkAvailable()),Q)){f=Ivb(_.e5("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
DNx(X));break a}f=void 0}t=t==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.e5("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},q.length?{thumbnailOverlays:q}:{},f?{viewPlaylistText:f}:{viewPlaylistText:_.oC("")},t.length?{badges:t}:{})};
Eol=function(A,t,f,X,Q,q){if(t==="TRANSFER_STATE_UNKNOWN"||!A)return{};if(X==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var e=LUs(A,t,X);if(A.videoEntity&&!A.policyEntity&&X!=="DOWNLOAD_STATE_FAILED"){var G=_.e5("WAITING_TO_DOWNLOAD");if(G)return{shortViewCountText:_.oC(G),publishedTimeText:void 0,thumbnailOverlays:e}}if(!z$(A.policyEntity)){q=A.policyEntity&&!vxu(A.policyEntity)?_.e5("DOWNLOAD_EXPIRED",{},"Download expired"):
_.e5("TRANSFER_FAILED",{},"Download failed");var N;if((N=A.policyEntity)==null?0:N.shortMessageForDisabledAction)q=A.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:sO(q),publishedTimeText:void 0,thumbnailOverlays:e}}if(t==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.oC(_.e5("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:e};if(t==="TRANSFER_STATE_FAILED"||t==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.oC(_.e5("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:e};if(t==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(N=_.e5("WAITING_TO_DOWNLOAD"),X==="DOWNLOAD_STATE_PAUSED"&&(N=_.e5("DOWNLOAD_PAUSED",{},"Download paused")),N))return{shortViewCountText:_.oC(N),publishedTimeText:void 0,thumbnailOverlays:e};if(_.PE(t))return A=Math.floor(f*100).toString(),{shortViewCountText:_.oC(_.e5("DOWNLOADING_PERCENT",{percent:A},"Downloading... "+A+"%")),publishedTimeText:void 0,thumbnailOverlays:e};t=void 0;A.videoEntity.publishedTimestampMillis&&
(t=new Date,Q&&(t=new Date(Q)),t=sO(yB5(new Date(Number(A.videoEntity.publishedTimestampMillis)),t)));Q=[];_.M("kevlar_woffle_badge_killswitch")||(Q=[{metadataBadgeRenderer:{label:_.e5("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var z;A=sO((z=A.videoEntity.localizedStrings)==null?void 0:z.viewCount);return Object.assign({},q?{shortViewCountText:void 0}:{shortViewCountText:A},q?{}:{publishedTimeText:t},{badges:Q,thumbnailOverlays:e})};
DRp=function(A,t){A=A===void 0?nos:A;switch(t.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:t.payload.playlistId,inviteLinkURL:t.payload.inviteLinkUrl};default:return A}};
I0T=function(A,t){A=A===void 0?FU5:A;switch(t.type){case "SET_CURRENT_FORM_ID":return t=t.payload.formId,A.currentFormId===t?A:{currentFormId:t,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var f=t.payload;t=f.groupId;f=f.command;if(A.currentFormId){var X=Object.assign({},A.commandsMap);X[t]=f;A=Object.assign({},A,{commandsMap:X})}return A;case "RESET_COMMAND_MAP":return Object.assign({},A,{commandsMap:{}});default:return A}};
jHb=function(A,t){A=A===void 0?xR5:A;switch(t.type){case "UPDATE_CANVAS_MODE":return Object.assign({},A,{currentMode:t.payload.currentMode});default:return A}};
VHu=function(A,t){A=A===void 0?Ylx:A;switch(t.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},A,{guideIsExpanded:t.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},A,{scrollAtTop:t.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},A,{guideIsVisibleButNotPersistent:t.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},A,{miniplayerIsActive:t.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},A,{singleOptionSurveyIsActive:t.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},A,{slimlineSurveyRatingSelectedIndex:t.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},A,{richGridMiniMode:t.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},A,{richGridItemsPerRow:t.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},A,{richGridSlimItemsPerRow:t.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},A,{richGridContainerWidth:t.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},A,{richGridStyle:t.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},A,{currentPageType:t.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},A,{inlinePreviewIsActive:t.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},A,{inlinePreviewIsEnabled:t.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},A,{darkModeIsEnabled:t.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
A,{miniplayerPlaybackState:t.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},A,{tabGesturesIsActive:t.payload});case "SET_ONLINE_STATUS":return Object.assign({},A,{isOnline:t.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},A,{chipBarIsSticky:t.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},A,{frostedGlassMode:t.payload});default:return A}};
ZRu=function(){return _.M("kevlar_disable_theater_mode_persistence")?!1:_.Ka("START_IN_THEATER_MODE")};
dR5=function(A,t){A=A===void 0?oou:A;switch(t.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},A,{transcription:t.payload});case "SET_OVERLAY_STATE":return Object.assign({},A,{overlay:t.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return A}};
Wup=function(){return Df(Object.assign({},{continuation:Slx,download:$Rb,canvas:jHb,reportChannelAbuse:HRs,share:a0x,talkToRecs:KU0,ui:VHu,voiceSearch:dR5,watch:gob,ypc:w4s,shorts:sHb,radioButtonGroup:I0T,collabInviteLink:DRp},b2b))};
Lux=function(){return _.M("web_player_entities_middleware")?new SR(Wup(),[ysu,vyx]):new SR(Wup(),[ysu])};
_.$I=function(){p7q||(p7q=Lux());return p7q};
Eyq=function(A,t,f){if(A.length)return{titleText:_.w0(t!=null?t:_.e5("DOWNLOADS",void 0,"Downloads")),contents:A.map(function(X){var Q=X.videoEntity;X={videoId:Q.videoId,title:sO(Q.title),shortBylineText:sO(X.channelEntity.title),thumbnail:Q.thumbnail};var q=Q.videoId?nZ(_.$I().getState(),Q.videoId):0;Q.videoId&&f?X.navigationEndpoint=_.g0(Q.videoId,f,void 0,void 0,q):Q.videoId&&(X.navigationEndpoint=nzz(Q.videoId,q,Q.lengthSeconds));Q.lengthSeconds&&(X.thumbnailOverlays=vo5(Q.lengthSeconds,q));return{playlistPanelVideoRenderer:X}}),
totalVideos:A.length}};
nyx=function(A){return(A=(0,_.VG.getValueByKeys)(A,"playlistId"))?{playlistId:A}:null};
DTq=function(){return{}};
Fux=function(A,t){return new _.yy(function(f,X){A.then(function(Q){if(Q){if(Q=t(Q))return f(Q);X()}},X)})};
Il5=function(A){var t,f,X,Q=(t=A.contents)==null?void 0:(f=t.twoColumnWatchNextResults)==null?void 0:(X=f.autoplay)==null?void 0:X.autoplay,q,e,G;t=(q=A.contents)==null?void 0:(e=q.twoColumnWatchNextResults)==null?void 0:(G=e.playlist)==null?void 0:G.playlist;return Q&&t&&t.playlistId?{rawResponse:A,autoplayRenderer:Q,playlistPanelRenderer:t,playlistId:t.playlistId}:null};
jdu=function(A){var t=t===void 0?"UNKNOWN_INTERFACE":t;if(A.length===1)return A[0];var f=xTs[t];if(f){f=new RegExp(f);for(var X=_.U(A),Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,f.exec(Q))return Q}var q=[];Object.entries(xTs).forEach(function(e){var G=_.U(e);e=G.next().value;G=G.next().value;t!==e&&q.push(G)});
f=new RegExp(q.join("|"));A.sort(function(e,G){return e.length-G.length});
X=_.U(A);for(Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,!f.exec(Q))return Q;return A[0]};
_.HE=function(A){return"/youtubei/v1/"+jdu(A)};
_.aC=function(A,t){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:A}}},t!==void 0?{durationHintMs:t}:{})}};
_.KZ=function(A,t){return _.aC(_.oC(A),t)};
YW0=function(A,t){var f={mode:"NORMAL"};A&&(f.autoplayVideo=A.navigationEndpoint,f.nextButtonVideo=A.navigationEndpoint);t&&(f.previousButtonVideo=t.navigationEndpoint);return f};
oyb=function(A,t,f){if(!f||!f.sets)return{sets:[YW0(A,t)]};var X=f.sets.find(function(e){return e.mode==="NORMAL"}),Q=(0,_.VG.unsafeClone)(f);
if(!X)return Q.sets.push(YW0(A,t)),Q;if(!A)return f;X=_.VG.getValueByKeys.apply(null,[X].concat(_.YV(Vkx)));var q=_.VG.getValueByKeys.apply(null,[A].concat(_.YV(Z2x)));if(X===q)return f;Q.sets=Q.sets.filter(function(e){return e.mode!=="NORMAL"});
Q.sets.push(YW0(A,t));return Q};
dTu=function(A){return!!A.playlistPanelVideoRenderer&&!A.playlistPanelVideoRenderer.unplayableText};
SWb=function(A){return!!A.playlistPanelVideoRenderer&&!!A.playlistPanelVideoRenderer.title};
$Tz=function(A,t){if(t.contents&&!(A>=t.contents.length)&&(A=t.contents.slice(A).find(dTu)))return A.playlistPanelVideoRenderer};
H2s=function(A,t){if(t.contents)return(t=t.contents.find(function(f){return!!f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.videoId===A}))?t.playlistPanelVideoRenderer:void 0};
alu=function(A,t){return t.contents?t.contents.findIndex(function(f){return!!f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.videoId===A}):-1};
Ku5=function(A,t){return t.contents?t.contents.findIndex(function(f){return!!f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.playlistSetVideoId===A}):-1};
gyx=function(A,t){A.contents&&t!==-1&&A.contents.splice(t,1).length===1&&A.totalVideos!==void 0&&(--A.totalVideos,delete A.videoCountText)};
_.w7s=function(A){var t=[];if(!A||!A.contents)return t;A=_.U(A.contents);for(var f=A.next();!f.done;f=A.next())f=f.value,f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.videoId&&t.push(f.playlistPanelVideoRenderer.videoId);return t};
_.sdb=function(A){if(A&&A.contents)return(A=A.contents.find(function(t){return!!t.playlistPanelVideoRenderer&&!!t.playlistPanelVideoRenderer.selected})||A.contents[A.currentIndex])?A.playlistPanelVideoRenderer:void 0};
kBb=function(A,t,f,X,Q,q,e){Q=Q===void 0?!1:Q;q=q===void 0?!1:q;e=e===void 0?!1:e;if(A.contents&&A.contents.length!==0){X&&(A.contents=A.contents.filter(X));X=A.contents.length;for(var G=0;G<X;G++){var N=A.contents[G].playlistPanelVideoRenderer;N&&(G===t?(q&&delete N.menu,N.indexText=_.oC("\u25b6")):Q||A.isInfinite||N.indexText===void 0?delete N.indexText:N.indexText=_.oC((G+1+f).toString()))}A.currentIndex=t+f;e&&(delete A.videoCountText,A.totalVideos=X)}};
_.gF=function(A){A=rsx(A);if(A){var t=A.length;var f=-12%t;f<0&&(f=t+f);A=A.slice(t-f)+A.slice(0,t-f)}else A="";f="";for(t=0;t<A.length&&A[t]!==Akx;t++)f+=A[t];return f};
_.tKx=function(A,t){var f=document.body;t=t===void 0?function(G){return G}:t;
var X,Q=null;A=_.U(A);for(X=A.next();!X.done;X=A.next()){var q=X.value;X="div";q[2]&&(X=t(q[2]));X=document.createElement(X);Q||(Q=X);var e=q[0];q=q[1];e&&(X.id=t(e));if(q)for(q=_.U(q),e=q.next();!e.done;e=q.next())X.classList.add(t(e.value));f.appendChild(X);f=X}return[Q,f]};
fiu=function(A,t){for(var f="",X=0;X<t;X++)f+=A.charAt(Math.floor(Math.random()*A.length));return f};
wF=function(A){return fiu("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",A)};
sp=function(A){return fiu("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",A)};
kI=function(A){return fiu("0123456789",A)};
Xgb=function(){var A=performance.now(),t=new Date;var f="2."+t.getFullYear()+String(t.getMonth()+1).padStart(2,"0")+String(t.getDate()).padStart(2,"0");for(var X,Q=Math.floor(Math.random()*11)+15,q=[],e=0;e<Q;e++)q.push(Math.floor(Math.random()*26476865)+24547720);X=q.join(",");var G=wF(10),N=wF(100),z=wF(102),T=wF(106),O=wF(108),c=wF(11),B=wF(1140),h=wF(123),W=wF(14),L=wF(16),E=wF(1900),D=wF(23),S=wF(26),Z=wF(34),d=wF(397),K=wF(44),k=wF(5),Gz=wF(72),Tz=wF(74),y5=wF(75),cp=wF(88),iu=wF(91),Fb="rr4---sn-q4flrn7r rr4---sn-ntq7yner rr3---sn-hgn7yn7e rr2---sn-ntqe6nee rr2---sn-aigl6ney rr4---sn-5hnekn7k rr2---sn-q4fl6ndz rr5---sn-q4fl6n6z rr1---sn-5hne6n6l rr2---sn-5hne6nzs rr5---sn-4g5ednsy rr3---sn-hgn7rn7k rr1---sn-q4fl6n6y rr1---sn-ntqe6n76 rr5---sn-q4fl6n66 rr2---sn-q4flrnek rr2---sn-q4flrney rr5---sn-q4fl6nz6 rr4---sn-5hnekn7l rr1---sn-q4fl6n66".split(" ");
var xq=Fb[Math.floor(Math.random()*Fb.length)];var Yq=(new Date("2010-01-01")).getTime();var zk=(new Date(Yq+Math.random()*((new Date).getTime()-Yq))).toISOString().split("T")[0];for(var PT,rs=[],OT=0;OT<4;OT++)rs.push(Math.floor(Math.random()*100));PT=rs.join(".");var bK=Number(kI(5)),ET=Number(kI(6)),m3=Number(kI(7)),O2=Number(kI(9)),eT=kI(1),fS=kI(10),hf=kI(16),wE=kI(19),Rp=kI(2),rE=kI(20),bL=kI(21),$8=kI(3),Tk=kI(4),iK=kI(5),Qh=kI(6),Kg=kI(7),fw=kI(8),TH=kI(9);var Xx=fiu("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var cA=[sp(5),sp(5),sp(5)].join("%2C"),$m=[kI(3),kI(5),kI(5)].join("%2C"),z_=sp(0),Mw=sp(1),HT=sp(10),by=sp(108),qd=sp(11),gG=sp(12),Gv=sp(13),yG=sp(14),fF=sp(15),SO=sp(16),bs=sp(17),vp=sp(18),V5=sp(19),a0=sp(2),CS=sp(20),Rl=sp(22),If=sp(23),pw=sp(24),LS=sp(266),WT=sp(3),ol=sp(30),S3=sp(34),Mb=sp(35),wG=sp(36),jG=sp(4),$l=sp(40),gD=sp(43),Qk=sp(47),n8=sp(5),S2=sp(6),br=sp(7),J6=sp(75),MJ=sp(8),WR=sp(80),q9=sp(9),vd="https://www."+sp(12)+".com",C_={},hw={},n6={},CT={},Do={},RS={},WV={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:X}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:f},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+sp(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:f},{key:"client.name",value:"WEB"},{key:"client.fexp",value:X}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:bL+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+sp(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:$l,ypcGetOfflineUpsellEndpoint:{params:WR}},trackingParams:Mb+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&cnr="+Rp+"&ratebypass=yes&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&c=WEB&txp="+Kg+"&n="+L+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:ET,width:640,height:360,lastModified:hf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Kg,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+$m+"&mn="+
cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&cnr="+Rp+"&ratebypass=yes&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&c=WEB&txp="+Kg+"&n="+L+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+by+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:ET,width:1280,
height:720,lastModified:hf,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Kg,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+$m+"&mn="+cA+"&ms="+
cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+TH+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:m3,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:TH,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:m3,approxDurationMs:Kg},{itag:248,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+$m+"&mn="+cA+"&ms="+cA+"&mv="+
Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fwebm&ns="+pw+"&gir="+WT+"&clen="+TH+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:m3,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:TH,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:399,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+TH+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:m3,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:TH,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:m3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:136,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+TH+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:m3,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:TH,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ET,approxDurationMs:Kg},{itag:247,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+$m+"&mn="+
cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fwebm&ns="+pw+"&gir="+WT+"&clen="+TH+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:m3,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:TH,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ET,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:398,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+TH+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:m3,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:TH,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ET,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:135,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:ET,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ET,approxDurationMs:Kg},{itag:244,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+$m+"&mn="+
cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fwebm&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+by+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:ET,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ET,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:397,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:ET,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ET,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:134,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:ET,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ET,highReplication:!0,approxDurationMs:Kg},{itag:243,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fwebm&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:ET,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ET,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:396,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:ET,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ET,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:133,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:ET,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ET,approxDurationMs:Kg},{itag:242,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+$m+"&mn="+
cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fwebm&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:ET,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ET,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:395,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ET,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ET,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:160,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:ET,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:bK,approxDurationMs:Kg},{itag:278,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+$m+"&mn="+
cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fwebm&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:ET,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:bK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:394,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&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="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=video%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:bK,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:bK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Kg},{itag:140,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=audio%2Fmp4&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:ET,
initRange:{start:"0",end:"631"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ET,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Kg,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+
Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=audio%2Fwebm&ns="+pw+"&gir="+WT+"&clen="+Kg+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/webm; codecs="opus"',bitrate:bK,initRange:{start:"0",end:"265"},indexRange:{start:$8,
end:Tk},lastModified:hf,contentLength:Kg,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:bK,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Kg,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=audio%2Fwebm&ns="+
pw+"&gir="+WT+"&clen="+Kg+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/webm; codecs="opus"',bitrate:bK,initRange:{start:"0",end:"265"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:Kg,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:bK,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Kg,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+xq+".googlevideo.com/videoplayback?expire="+fS+"&ei="+D+"&ip="+PT+"&id=o-AF"+gD+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+$m+"&mn="+cA+"&ms="+cA+"&mv="+Mw+"&mvi="+eT+"&pl="+Rp+"&initcwndbps="+Kg+"&siu="+eT+"&spc="+K+"&vprv="+eT+"&svpuc="+eT+"&mime=audio%2Fwebm&ns="+pw+"&gir="+WT+"&clen="+fw+"&dur="+fw+"&lmt="+hf+"&mt="+fS+"&fvip=3&keepalive="+WT+"&c=WEB&txp="+
Kg+"&n="+SO+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/webm; codecs="opus"',bitrate:ET,initRange:{start:"0",end:"265"},indexRange:{start:$8,end:Tk},lastModified:hf,contentLength:fw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ET,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Kg,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="+TH+"&docid="+c+"&ei="+D+"&feature="+G+"&fexp="+z_+"&ns="+a0+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Mw+"&el="+HT+"&len="+Tk+"&of="+Rl+
"&uga="+Rp+"&vm="+LS},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+TH+"&docid="+c+"&ei="+D+"&feature="+G+"&fexp="+z_+"&ns="+a0+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Mw+"&el="+HT+"&len="+Tk+"&of="+Rl+"&uga="+Rp+"&vm="+LS},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+TH+"&docid="+c+"&ei="+D+"&feature="+G+"&fexp="+z_+"&ns="+a0+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Mw+"&el="+HT+"&len="+Tk+"&of="+Rl+"&uga="+Rp+"&vm="+LS},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+D+"&m="+cp+"&oid="+Rl+"&plid="+L+"&pltype="+br+"&ptchn="+Rl+"&ptk="+W+"&video_id="+c},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+TH+"&docid="+c+"&ei="+D+"&event="+yG+"&feature="+G+"&fexp="+z_+"&ns="+a0+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Mw},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
SO+"&ver=2&cmt=1."+$8+"&fmt="+$8+"&fs=0&rt="+iK+"&euri&lact="+$8+"&cl="+TH+"&mos="+eT+"&volume=100&cbrand="+n8+"&cbr="+S2+"&cbrver="+PT+"&c=WEB&cver="+f+"&cplayer=UNIPLAYER&cos="+q9+"&cosver="+Kg+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+Rp+"&len="+fw+"&fexp="+cA+"&feature=g-high-rec&afmt="+$8+"&muted=0&conn=1&docid="+c+"&ei="+D+"&plid="+L+"&vm="+sp(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
c+"&caps="+WT+"&opi="+TH+"&xoaf="+eT+"&hl="+a0+"&ip="+PT+"&ipbits="+eT+"&expire="+fS+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+PT+"&key="+WT+"&lang="+k,name:{simpleText:Gv},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+c+"&caps="+WT+"&opi="+TH+"&xoaf="+eT+"&hl="+a0+"&ip="+PT+"&ipbits="+eT+"&expire="+fS+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+PT+"&key="+WT+"&kind="+WT+"&lang="+a0,name:{simpleText:gG},
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:qd,title:q9,lengthSeconds:"1155",keywords:[Gv,q9,jG,qd],channelId:pw,isOwnerViewing:!1,shortDescription:V5,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+wG+"G&rs="+S3,width:168,height:94},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+wG+
"G&rs="+S3,width:196,height:110},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+wG+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+wG+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+c+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Kg,author:Gv,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Kg,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
Rl+"/featured_channel.jpg?v="+MJ,width:40,height:40}]},trackingParams:Mb+"=",navigationEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"/channel/"+pw,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:pw}},channelName:Gv,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:V5}]},subscribed:!1,enabled:!0,type:"FREE",channelId:pw,showPreferences:!1,subscribedButtonText:{runs:[{text:S2}]},unsubscribedButtonText:{runs:[{text:fF}]},
trackingParams:Mb+"=",unsubscribeButtonText:{runs:[{text:CS}]},serviceEndpoints:[{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[pw],params:MJ}},{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:$l,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Mb+"=",dialogMessages:[{runs:[{text:fF},
{text:bs},{text:Gv}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:bs}]},serviceEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[pw],params:MJ}},accessibility:{label:CS},trackingParams:Mb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:br}]},accessibility:{label:vp},
trackingParams:Mb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:fF}},unsubscribeAccessibility:{accessibilityData:{label:SO}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:fw},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[pw],
params:MJ}},unsubscribeCommand:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[pw],params:MJ}},addToWatchLaterCommand:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:qd,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:qd}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+c+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+wG+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+c+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+qd,width:1280,
height:720},title:{simpleText:gG},description:{simpleText:V5},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+q9,externalChannelId:pw,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:Kg,category:"Travel & Events",publishDate:zk,ownerChannelName:Gv,uploadDate:zk}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:yG},trackingParams:Mb+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:$l,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Mb+"="}}],headerText:{simpleText:yG},icon:{infoCardIconRenderer:{trackingParams:Mb+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Mb+"="}},trackingParams:Mb+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Mb+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+qd+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Xx,interpreterSafeUrl:(C_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+ol+".js",C_),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:jG},{text:MJ,bold:!0}]},endpoint:{clickTrackingParams:$l,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:Mb+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Gv}]},actionButton:{buttonRenderer:{text:{runs:[{text:yG}]},navigationEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+c,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
c,target:"TARGET_NEW_WINDOW"}},trackingParams:Mb+"="}},trackingParams:Mb+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Gz+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Gz+"=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:Kg,endMs:Kg,title:{accessibility:{accessibilityData:{label:yG}},simpleText:HT},metadata:{simpleText:vp},callToAction:{simpleText:n8},dismiss:{simpleText:vp},endpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"/channel/"+pw,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:pw}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:V5}]},subscribed:!1,enabled:!0,type:"FREE",channelId:pw,showPreferences:!1,
subscribedButtonText:{runs:[{text:Gv}]},unsubscribedButtonText:{runs:[{text:gG}]},trackingParams:Mb+"=",unsubscribeButtonText:{runs:[{text:S2}]},serviceEndpoints:[{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[pw],params:MJ}},{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:$l,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Mb+
"=",dialogMessages:[{runs:[{text:jG},{text:V5},{text:fF}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:S2}]},serviceEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[pw],params:MJ}},accessibility:{label:MJ},trackingParams:Mb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:qd}]},
accessibility:{label:CS},trackingParams:Mb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:SO}},unsubscribeAccessibility:{accessibilityData:{label:gG}}}},trackingParams:Mb+"=",isSubscribe:!0,id:rE}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+wG+"G&rs="+Z,width:168,height:94},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+wG+"G&rs="+S3,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+wG+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+c+"/hqdefault.jpg?sqp=-oaymwE"+wG+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+c+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Kg,endMs:Kg,title:{accessibility:{accessibilityData:{label:gG}},simpleText:q9},metadata:{simpleText:V5},endpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
qd,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:qd,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+xq+".googlevideo.com/videoplayback?source=youtube&oeis="+eT+"&c=WEB&oad="+Tk+"&ovd="+Tk+"&oaad="+iK+"&oavd="+iK+"&ocs="+$8+"&oewis="+eT+"&oputc="+eT+"&ofpcc="+eT+"&siu="+eT+"&msp="+eT+"&odepv="+eT+
"&id=o-AF"+gD+"&ip="+PT+"&initcwndbps="+Kg+"&mt="+fS+"&oweuc="+z_}}}}},trackingParams:Mb+"=",id:rE,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:br}},simpleText:vp},style:"DEFAULT"}}]}}],startMs:Kg,trackingParams:Mb+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:eT,offsetEndMilliseconds:iK},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+O+";ord="+fS+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";dc_rui="+eT+";dc_exteid="+rE+";dc_av="+$8+";dc_sk="+eT+";dc_ctype="+Rp+";dc_ref=http://www.youtube.com/video/"+qd+";dc_pubid="+eT+";dc_btype=23?gclid="+iu+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+eT+"&ns="+eT+"&event="+eT+"&device="+eT+"&content_v="+c+"&el="+HT+"&ei="+D+"&devicever="+f+"&bti="+Kg+"&format="+Qh+"&break_type="+eT+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+eT+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+PT+"&slot_pos="+eT+"&slot_len="+eT+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+$m+"&ad_len="+iK+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
qd+"&aqi="+D+"&ad_rmp="+eT+"&sli="+eT}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+
";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Qh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Kg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&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"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&ctype="+$8+"&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"+
B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_engaged_view&ctype="+$8+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Qh+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
TH+";dc_trk_cid="+TH+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";ord="+TH+";dc_rui="+eT+";dc_exteid="+wE+";dc_av="+eT+";dc_sk="+eT+";dc_ctype="+Rp+";dc_pubid="+eT+";dc_btype=3?gclid="+iu+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+"&sig="+If+"&ad_cpn=[AD_CPN]&id="+S2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+S2+"&dc_pubid="+eT+"&dc_exteid="+rE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+"&sig="+If+"&ad_cpn=[AD_CPN]&id="+S2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+eT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+S2+"&avm="+eT+"&dc_pubid="+eT+"&dc_exteid="+
rE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&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="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
z+"&sig="+If+"&ad_cpn=[AD_CPN]&id="+S2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+eT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+S2+"&dc_pubid="+eT+"&dc_exteid="+rE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Qh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Qh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:$l,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+
$8+"&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/"+c+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Mb+"="},trackingParams:Mb+
"=",templatedCountdown:{templatedAdText:{text:vp,isTemplated:!0,trackingParams:Mb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:yG,isTemplated:!1,trackingParams:Mb+"="},trackingParams:Mb+"="}},trackingParams:Mb+"=",skipOffsetMilliseconds:5E3}},trackingParams:Mb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:qd},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Mb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:vp,isTemplated:!1,trackingParams:Mb+"="},trackingParams:Mb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Gv,isTemplated:!0,trackingParams:Mb+"="}},trackingParams:Mb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:$l,openPopupAction:{popup:{aboutThisAdRenderer:{url:(hw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+a0+"&origin=www.youtube.com&ata_theme="+jG,hw),trackingParams:Mb+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Mb+"="}},hoverText:{runs:[{text:SO}]},trackingParams:Mb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Mb+"="},headline:{text:yG,isTemplated:!1,trackingParams:Mb+"="},description:{text:jG,
trackingParams:Mb+"="},actionButton:{buttonRenderer:{text:{simpleText:vp},navigationEndpoint:{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";ord="+TH+";dc_rui="+eT+";dc_exteid="+rE+";dc_av="+eT+";dc_sk="+eT+";dc_ctype="+Rp+";dc_pubid="+eT+";dc_btype=3?gclid="+iu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Mb+"="}},startMs:eT,trackingParams:Mb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gG},elementId:qd}},elementId:q9,trackingParams:Mb+"=",legacyInfoCardVastExtension:qd,sodarExtensionData:{siub:n8,bgub:br,scs:q9,bgp:Gv},externalVideoId:qd,adLayoutLoggingData:{serializedAdServingDataEntry:qd},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Mb+"="},
headline:{text:bs,isTemplated:!1,trackingParams:Mb+"="},description:{text:Gv,isTemplated:!1,trackingParams:Mb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:gG},navigationEndpoint:{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";ord="+TH+";dc_rui="+eT+";dc_exteid="+
rE+";dc_av="+eT+";dc_sk="+eT+";dc_ctype="+Rp+";dc_pubid="+eT+";dc_btype=3?gclid="+iu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+
eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Mb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Mb+"="}},navigationEndpoint:{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+
TH+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";ord="+TH+";dc_rui="+eT+";dc_exteid="+rE+";dc_av="+eT+";dc_sk="+eT+";dc_ctype="+Rp+";dc_pubid="+eT+";dc_btype=3?gclid="+iu+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Mb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Mb+"="},abandonCommands:{commands:[{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&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="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+
eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:$l,commandExecutorCommand:{commands:[{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:HT,isTemplated:!1,trackingParams:Mb+
"="},trackingParams:Mb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gG},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Kg+";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="+TH+";dc_trk_cid="+TH+";ord="+fS+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";dc_rui="+eT+";dc_exteid="+rE+";dc_av="+$8+";dc_sk="+eT+";dc_ctype="+Rp+";dc_ref=http://www.youtube.com/video/"+qd+";dc_pubid="+eT+";dc_btype=23?gclid="+iu+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+eT+"&ns="+eT+"&event="+eT+"&device="+eT+"&content_v="+c+"&el="+HT+"&ei="+D+"&devicever="+f+"&bti="+Kg+"&format="+Qh+"&break_type="+eT+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+eT+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+PT+"&slot_pos="+eT+"&slot_len="+eT+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
$m+"&ad_len="+iK+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+qd+"&aqi="+D+"&ad_rmp="+eT+"&sli="+eT}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Qh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+
S+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Kg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&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"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&ctype="+$8+"&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"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_engaged_view&ctype="+$8+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Qh+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+"&sig="+If+"&ad_cpn=[AD_CPN]&id="+
S2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+S2+"&dc_pubid="+eT+"&dc_exteid="+rE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+
"&sig="+If+"&ad_cpn=[AD_CPN]&id="+S2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+eT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+S2+"&avm="+eT+"&dc_pubid="+eT+"&dc_exteid="+rE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&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="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+z+"&sig="+If+"&ad_cpn=[AD_CPN]&id="+S2+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+eT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+S2+"&dc_pubid="+eT+"&dc_exteid="+rE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Qh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Qh+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+
$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&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/"+c+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Mb+"="},trackingParams:Mb+"=",templatedCountdown:{templatedAdText:{text:Gv,isTemplated:!0,trackingParams:Mb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Gv,isTemplated:!1,trackingParams:Mb+"="},trackingParams:Mb+"="}},
trackingParams:Mb+"=",skipOffsetMilliseconds:5E3}},trackingParams:Mb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Gv},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Mb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:fF,isTemplated:!1,trackingParams:Mb+"="},trackingParams:Mb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:MJ,
isTemplated:!0,trackingParams:Mb+"="}},trackingParams:Mb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:$l,openPopupAction:{popup:{aboutThisAdRenderer:{url:(n6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+a0+"&origin=www.youtube.com&ata_theme="+jG,n6),trackingParams:Mb+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Mb+"="}},hoverText:{runs:[{text:yG}]},trackingParams:Mb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Tz+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Mb+"="},headline:{text:jG,isTemplated:!1,trackingParams:Mb+"="},description:{text:vp,trackingParams:Mb+"="},actionButton:{buttonRenderer:{text:{simpleText:yG},navigationEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Mb+"="}},startMs:eT,trackingParams:Mb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Gv},elementId:q9}},elementId:MJ,trackingParams:Mb+"=",legacyInfoCardVastExtension:jG,sodarExtensionData:{siub:jG,bgub:n8,scs:jG,bgp:yG},externalVideoId:qd,adLayoutLoggingData:{serializedAdServingDataEntry:fF},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Tz+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Mb+"="},headline:{text:bs,
isTemplated:!1,trackingParams:Mb+"="},description:{text:yG,isTemplated:!1,trackingParams:Mb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:MJ},navigationEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Mb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Mb+"="}},navigationEndpoint:{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+
eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Mb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Mb+"="},abandonCommands:{commands:[{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&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="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+Rp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:$l,commandExecutorCommand:{commands:[{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:CS,isTemplated:!1,trackingParams:Mb+"="},trackingParams:Mb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:n8},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+eT+";dc_exteid="+rE+";met="+eT+";ecn"+eT+"="+eT+";etm1="+eT+";eid1="+
Kg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:jG}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:HT}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:iK,offsetEndMilliseconds:Qh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+Rp+"&token=ALHj"+d+"&index="+eT+"&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="+f+"&m_pos_ms="+iK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:br}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Qh,offsetEndMilliseconds:Qh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+$8+"&token=ALHj"+d+"&index="+eT+"&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="+
f+"&m_pos_ms="+Qh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bs}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Qh,offsetEndMilliseconds:Qh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+$8+"&token=ALHj"+d+"&index="+eT+"&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="+
f+"&m_pos_ms="+Qh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:V5}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Qh,offsetEndMilliseconds:Qh},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+$8+"&token=ALHj"+d+"&index="+eT+"&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="+
f+"&m_pos_ms="+Qh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:yG}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Qh,offsetEndMilliseconds:Rp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+$8+"&token=ALHj"+d+"&index="+eT+"&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="+
f+"&m_pos_ms="+Qh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:n8}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Rp,offsetEndMilliseconds:Rp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+Rp+"&token=ALHj"+d+"&index="+eT+"&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="+
f+"&m_pos_ms="+Rp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:CS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:q9,isTemplated:!1,trackingParams:Mb+"="},description:{text:fF,isTemplated:!1,trackingParams:Mb+"="},actionButton:{buttonRenderer:{text:{simpleText:Gv},navigationEndpoint:{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
TH+";dc_trk_cid="+TH+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";ord="+TH+";dc_rui="+eT+";dc_exteid="+rE+";dc_av="+eT+";dc_sk="+eT+";dc_ctype="+Rp+";dc_pubid="+eT+";dc_btype=3?gclid="+iu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Mb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qk+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Mb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+y5+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Mb+"="},navigationEndpoint:{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";ord="+TH+
";dc_rui="+eT+";dc_exteid="+rE+";dc_av="+eT+";dc_sk="+eT+";dc_ctype="+Rp+";dc_pubid="+eT+";dc_btype=3?gclid="+iu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Mb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:$l,openPopupAction:{popup:{aboutThisAdRenderer:{url:(CT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+a0+"&origin=www.youtube.com&ata_theme="+jG,CT),trackingParams:Mb+"="}},popupType:"DIALOG"}},trackingParams:Mb+"="}},hoverText:{runs:[{text:SO}]},trackingParams:Mb+"="}},adVideoId:qd,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:bs},associatedCompositePlayerBytesLayoutId:SO}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:SO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:gG,isTemplated:!1,trackingParams:Mb+"="},description:{text:MJ,isTemplated:!1,trackingParams:Mb+"="},actionButton:{buttonRenderer:{text:{simpleText:qd},navigationEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Mb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Tz+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Mb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+J6+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Mb+"="},navigationEndpoint:{clickTrackingParams:$l,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+
eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Mb+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:$l,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Do.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+a0+"&origin=www.youtube.com&ata_theme="+jG,Do),trackingParams:Mb+"="}},popupType:"DIALOG"}},trackingParams:Mb+"="}},
hoverText:{runs:[{text:V5}]},trackingParams:Mb+"="}},adVideoId:qd,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+qd+"&cid="+S+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:yG},associatedCompositePlayerBytesLayoutId:SO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:br}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:CS,
isTemplated:!1,trackingParams:Mb+"="},description:{text:HT,isTemplated:!1,trackingParams:Mb+"="},actionButton:{buttonRenderer:{text:{simpleText:CS},navigationEndpoint:{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";ord="+TH+";dc_rui="+eT+";dc_exteid="+rE+";dc_av="+eT+";dc_sk="+eT+";dc_ctype="+
Rp+";dc_pubid="+eT+";dc_btype=3?gclid="+iu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+
Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Mb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Qk+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Mb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+y5+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Mb+
"="},navigationEndpoint:{clickTrackingParams:$l,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+eT+";ord="+TH+";dc_rui="+eT+";dc_exteid="+rE+";dc_av="+eT+";dc_sk="+eT+";dc_ctype="+Rp+";dc_pubid="+eT+";dc_btype=3?gclid="+iu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+h+"AxAA&ase=2&num="+eT+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+vd+"&label=video_click_to_advertiser_site&ctype="+$8+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Mb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:$l,openPopupAction:{popup:{aboutThisAdRenderer:{url:(RS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+E+"&hl="+a0+"&origin=www.youtube.com&ata_theme="+jG,RS),trackingParams:Mb+"="}},popupType:"DIALOG"}},trackingParams:Mb+
"="}},hoverText:{runs:[{text:n8}]},trackingParams:Mb+"="}},adVideoId:qd,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+h+"AxAA&sigh="+c+"&cid="+S+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:HT},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:SO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:br}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:ol,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:ol,command:{innertubeCommand:{clickTrackingParams:$l,ypcGetOfflineUpsellEndpoint:{params:WR}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Mb+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:fS,nanos:O2}}}},hD=JSON.stringify(WV),y2=performance.now()-A;return{objectRepresentation:WV,jsonRepresentation:hD,generationTime:y2}};
Qau=function(A,t){if(A===t)return!0;if(!A||!t||typeof A!==typeof t)return!1;if(A instanceof Array&&t instanceof Array){if(A.length!==t.length)return!1;for(var f=0;f<A.length;f++)if(!Qau(A[f],t[f]))return!1;return!0}if(typeof A==="object"&&typeof t==="object"&&A&&t){for(f in A)if(!(f in t&&Qau(A[f],t[f])))return!1;for(var X in t)if(!(X in A))return!1;return!0}return!1};
_.AL=function(){if(!rF){rF=new m7(new q3p);var A=_.cx("client_streamz_web_flush_count",-1);A!==-1&&(rF.invocationLimit=A)}return rF};
tL=function(A,t,f,X){if(A===t)return!0;if(Array.isArray(A)&&Array.isArray(t)){if(A.length!==t.length)return!1;for(var Q=0;Q<A.length;Q++)if(!tL(A[Q],t[Q],f,X))return!1;return!0}if(A instanceof Set||t instanceof Set){if(A instanceof Set&&t instanceof Set){if(A.size!==t.size)return!1;X=_.U(A.values());for(Q=X.next();!Q.done;Q=X.next())if(!t.has(Q.value))return!1;return!0}return!1}if(A instanceof Function){if(X)return!0;A.name===""&&_.HQ(Error("Rf"),"ERROR");return!1}if(A instanceof Date&&t instanceof
Date)return A.getTime()===t.getTime();if(A instanceof Object&&t instanceof Object){if(Jk0(A)&&Jk0(t))try{return A.equals(t)}catch(e){_.HQ(Error("Sf`"+e),"ERROR")}Q=Object.getOwnPropertyNames(A).filter(function(e){return f?A[e]!==void 0:!0});
var q=Object.getOwnPropertyNames(t).filter(function(e){return f?t[e]!==void 0:!0});
if(Q.length!==q.length)return!1;Q=_.U(Q);for(q=Q.next();!q.done;q=Q.next())if(q=q.value,!tL(A[q],t[q],f,X))return!1;return!0}return!1};
Jk0=function(A){A=Object.getPrototypeOf(A).equals;return A instanceof Function&&A.length===1};
_.Gdp=function(){return _.l(function(A){if(A.nextAddress==1)return UV0!==2?A.jumpTo(2):A.yield(ekg(),3);A.nextAddress!=2&&(UV0=A.yieldResult);return A.return(UV0)})};
_.uvx=function(){return _.l(function(A){if(A.nextAddress==1)return _.M("ab_pl_man")?lip!==2?A.jumpTo(2):A.yield(NCg(),3):A.return(1);A.nextAddress!=2&&(lip=A.yieldResult);return A.return(lip)})};
TCs=function(){return _.l(function(A){if(A.nextAddress==1)return _.M("ab_fk_sk_cl")?zkT!==2?A.jumpTo(2):A.yield(POg(),3):A.return(1);A.nextAddress!=2&&(zkT=A.yieldResult);return A.return(zkT)})};
_.ck5=function(){return _.l(function(A){if(A.nextAddress==1)return _.M("ab_det_apb_b")?ims!==2?A.jumpTo(2):A.yield(Omq(),3):A.return(1);A.nextAddress!=2&&(ims=A.yieldResult);return A.return(ims)})};
CO5=function(){var A;return _.l(function(t){if(t.nextAddress==1)return t.yield(Promise.all([_.Gdp(),_.ck5(),_.uvx(),TCs()]),2);if(t.nextAddress!=3)return BCx()?t.return(!0):t.yield(_.MK5(),3);A=t.yieldResult;return t.return(A===0)})};
BCx=function(){var A=!1,t=function(f,X){hkq.increment(X,f);f===0&&(A=!0)};
t(_.Rkp(),"j.s_");t(UV0,"f.i_");t(ims,"a.b_");t(lip,"p.m_");t(zkT,"i.f_");mV5===2&&(mV5=_.bmb(W6g));t(mV5,"e.h_");_.M("ks_det_gpbl")||t(_.yks(),"p.i_");_.M("ks_get_o_pp")||t(_.vP5(),"g.o_");_.M("ab_deg_unex_thr")||t(_.L6x(),"a.o_");t(pg0,"s.t_");_.M("ab_det_sc_inj_enf")&&t(_.EP0(),"s.i_");t(nPT,"d.p_");t(_.DVl(_.fp),"o.p_");t(_.F6b()===0?0:_.Iiz(),"o.a_");return _.M("debug_sk_em_precheck")?!0:A};
jax=function(){var A=[].concat(_.YV(xVb));try{var t=Xgb();A.push({jsonRepresentation:t.jsonRepresentation,objectRepresentation:t.objectRepresentation})}catch(f){A=[].concat(_.YV(xVb))}return A};
Y30=function(){var A=["adPlacements","adSlots"];try{return A.filter(function(){return!0}).length!==A.length?0:1}catch(t){return 0}};
_.vP5=function(){if(Y30()===0)return 0;var A=Xgb(),t=A.objectRepresentation,f=(0,_.VG.unsafeClone)(t),X=[];if(t&&typeof t==="object")for(var Q in t)X.push(Q);else return 4;A=A.objectRepresentation.adPlacements;if(!(A&&A.length>0))return 4;try{if(!Qau(X,Object.getOwnPropertyNames(t)))return 0}catch(q){return 0}return Qau(f,t)?1:0};
_.DVl=function(A){if(!A||!A.length||typeof A==="string")return 0;for(var t=Object.getOwnPropertyNames(Object.prototype),f=0;f<A.length;f++)for(var X=_.gF(A[f]),Q=_.U(t),q=Q.next();!q.done;q=Q.next())if(X===q.value)return 0;return 1};
VKs=function(A){var t=_.gF(A[1]);if(A[0]===null)return t;A=A[0];for(var f={},X=0;X<A.length;X++){var Q=_.gF(A[X]);if(X===0)f[Q]=t;else{var q={};q[Q]=f;f=q}}return f};
_.F6b=function(){for(var A=_.Xc,t=0;t<A.length;t++){var f=VKs(A[t]),X=[];X.push(f);if(X.length===0)return 0}return 1};
_.Iiz=function(){for(var A=_.Xc,t={},f=0;f<A.length;t={byj:void 0},f++){var X=[VKs(A[f])];t.byj=[];X.forEach(function(Q){return function(q){Q.byj[Q.byj.length]=q}}(t));
if(t.byj.length===0)return 0}return 1};
_.Rkp=function(){for(var A=_.U(jax()),t=A.next();!t.done;t=A.next()){var f=t.value;t=f.jsonRepresentation;f=f.objectRepresentation;try{var X=JSON.parse(t);if(!tL(X,f,!1,!1))return 0}catch(Q){return 0}}return 1};
_.EP0=function(){try{var A=_.MG("ab_det_sc_inj_val");A.length===1&&A[0]===""&&(A=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var t=document.querySelectorAll("script"),f=_.U(t),X=f.next();!X.done;X=f.next())for(var Q=X.value,q=_.U(A),e=q.next();!e.done;e=q.next()){var G=e.value;t=void 0;if((t=Q.textContent)==null?0:t.includes(G))return 0}}catch(N){return 4}return 1};
_.MK5=function(){var A,t,f,X,Q,q,e;return _.l(function(G){switch(G.nextAddress){case 1:_.ht(G,2),A=_.U(xVb),t=A.next();case 4:if(t.done)return G.return(1);X=f=t.value;Q=X.jsonRepresentation;q=X.objectRepresentation;return G.yield((new Response(Q,{status:200})).json(),7);case 7:e=G.yieldResult;if(!tL(e,q,!1,!1))return G.return(0);t=A.next();G.jumpTo(4);break;case 2:return _.vC(G),G.return(4)}})};
_.L6x=function(){try{btoa("abc")}catch(A){return 0}return 1};
ekg=function(){var A,t,f,X,Q,q,e,G,N,z,T;return _.l(function(O){switch(O.nextAddress){case 1:_.ht(O,2),A=_.U(jax()),t=A.next();case 4:if(t.done)return O.return(1);X=f=t.value;Q=X.jsonRepresentation;q=X.objectRepresentation;e=btoa(Q);G="data:application/json;base64,"+e;N=new Request(G);Object.defineProperty(N,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(N,"method",{get:function(){return"POST"}});
Object.defineProperty(N,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(N,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(N,"body",{get:function(){return new ReadableStream}});
return O.yield(fetch(N),7);case 7:return z=O.yieldResult,O.yield(z.json(),8);case 8:T=O.yieldResult;if(!tL(T,q,!1,!1))return O.return(0);t=A.next();O.jumpTo(4);break;case 2:return _.vC(O),O.return(4)}})};
_.bmb=function(A){if(!A||!A.length||typeof A==="string")return 0;for(var t=function(Q){return _.gF(Q)},f=2,X=0;X<A.length&&(f=_.Zmb(_.tKx(A[X],t)),f!==0);X++);
return f};
_.Zmb=function(A){var t=_.U(A);A=t.next().value;t=t.next().value;try{var f=document.createElement("div");document.body.appendChild(f);var X=getComputedStyle(f).display;document.body.removeChild(f);if(X==="none")return 4;var Q=getComputedStyle(t).display==="none"?0:1;document.body.removeChild(A);return Q}catch(q){return 4}};
POg=function(){var A,t,f;return _.l(function(X){A=new _.Qc;t=document.createElement("button");t.classList.add("ytp-ad-skip-button");t.style.opacity="0";t.style.height="0px";t.style.width="0px";t.style.padding="0px";t.style.border="none";f=function(){t.parentElement&&t.parentElement.removeChild(t)};
t.onclick=function(){A.resolve(0);f()};
document.body.appendChild(t);setTimeout(function(){f();A.resolve(1)},50);
return X.return(A.promise)})};
NCg=function(){var A,t,f,X,Q,q,e;return _.l(function(G){A=new _.Qc;t=document.createElement("ytd-player");try{document.body.prepend(t)}catch(N){return G.return(4)}f=function(){t.parentElement&&t.parentElement.removeChild(t)};
t.getElementsByTagName("div").length>0?X=t.getElementsByTagName("div")[0]:(X=document.createElement("div"),t.appendChild(X));Q=document.createElement("div");X.appendChild(Q);q=document.createElement("video");e=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"});q.src=_.j3(_.dW(e));q.ontimeupdate=function(){f();A.resolve(0)};
Q.appendChild(q);q.classList.add("html5-main-video");setTimeout(function(){Q.classList.add("ad-interrupting")},200);
setTimeout(function(){f();A.resolve(1)},5E3);
return G.return(A.promise)})};
oP5=function(A){var t=Xgb().objectRepresentation.playbackTracking;if(t){var f=[],X;f.push(t==null?void 0:(X=t.videostatsPlaybackUrl)==null?void 0:X.baseUrl);var Q;f.push(t==null?void 0:(Q=t.videostatsDelayplayUrl)==null?void 0:Q.baseUrl);var q;f.push(t==null?void 0:(q=t.videostatsWatchtimeUrl)==null?void 0:q.baseUrl);var e;f.push(t==null?void 0:(e=t.ptrackingUrl)==null?void 0:e.baseUrl);var G;f.push(t==null?void 0:(G=t.qoeUrl)==null?void 0:G.baseUrl);var N;f.push(t==null?void 0:(N=t.atrUrl)==null?
void 0:N.baseUrl);t=_.U(f);for(f=t.next();!f.done;f=t.next())if((f=f.value)&&A.test(f))return f.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
dV5=function(A,t){var f,X;return _.l(function(Q){switch(Q.nextAddress){case 1:f=[],X=0;case 2:if(!(X<3)){Q.jumpTo(4);break}return Q.yield(fetch(A,{cache:"no-store",method:t}).then(function(q){f.push(q.status)}).catch(function(){f.push(-1)}),3);
case 3:X++;Q.jumpTo(2);break;case 4:return Q.return(f)}})};
S3x=function(A){return A.domainLookupStart===0&&A.domainLookupEnd===0&&A.connectStart===0&&A.connectEnd===0||A.duration===0};
$Vx=function(A,t,f){f=f===void 0?"GET":f;var X,Q,q,e,G,N,z,T,O,c;return _.l(function(B){if(B.nextAddress==1)return B.yield(Promise.all([dV5(A,f),dV5(t,f)]),2);X=B.yieldResult;Q=_.U(X);q=Q.next().value;e=Q.next().value;G=q;N=e;if(Math.min.apply(Math,_.YV(N))!==Math.max.apply(Math,_.YV(N))||Math.min.apply(Math,_.YV(G))!==Math.max.apply(Math,_.YV(G)))return B.return(2);if(Math.min.apply(Math,_.YV(N))===Math.min.apply(Math,_.YV(G)))return B.return(1);T=(z=performance.getEntriesByName(A))==null?void 0:
z[0];c=(O=performance.getEntriesByName(t))==null?void 0:O[0];return T&&c?S3x(c)?B.return(1):S3x(T)?B.return(0):B.return(1):B.return(2)})};
Omq=function(){var A;return _.l(function(t){var f=[];var X;var Q,q,e;(Q=X=(Q=Xgb().objectRepresentation.streamingData)==null?void 0:(q=Q.formats)==null?void 0:(e=q[0])==null?void 0:e.url)&&Q&&!X.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Q=Q.replace("initcwndbps","ctier=L&initcwndbps"),Q=Q.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),X={testUrl:Q,baseUrl:X,method:"GET"}):X=void 0;X&&f.push(X);_.M("ab_net_tp_e")&&f.push({testUrl:_.Xb.location.origin+"/ad_companion",baseUrl:_.Xb.location.origin+
"/generate_204",method:"OPTIONS"});_.M("ab_fix_creator_view_cnt")&&(f.length=0,(X=oP5(/api\/stats\/atr/))&&f.push({testUrl:_.Xb.location.origin+X,baseUrl:_.Xb.location.origin+"/generate_204",method:"POST"}));_.M("ad_net_pb_pbp")&&(X=oP5(/api\/stats\/qoe/))&&f.push({testUrl:_.Xb.location.origin+X,baseUrl:_.Xb.location.origin+"/feed/download",method:"GET"});f=f.length!==0?f[Math.floor(Math.random()*f.length)]:void 0;return(A=f)?t.return($Vx(A.testUrl,A.baseUrl,A.method)):t.return(4)})};
_.yks=function(){if(_.Xb.eMX===void 0||_.Xb.eMX===null||typeof _.Xb.eMX!=="function")return 2;try{return _.Xb.eMX()===!0?0:1}catch(A){return 0}};
Hm5=function(A){switch(A){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.ap(A,"unknown result type")}};
_.aix=function(A,t){var f=Number(_.ah("CATSTAT",0));if(t.btq===void 0)return f;t=t.btq;A=Hm5(A);return f&~(3<<t)|A<<t};
K6b=function(A){var t,f;if((A=(t=A.auxiliaryUi)==null?void 0:(f=t.messageRenderers)==null?void 0:f.bkaEnforcementMessageViewModel)&&A.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return A};
wgx=function(){for(var A=_.U(Object.values(_.gPu)),t=A.next();!t.done;t=A.next())t=t.value,t.lhl&&t.btq&&_.H5("CATSTAT",_.aix(2,t))};
_.UF=function(A,t){A=_.qv("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",A);(t===void 0?0:t)?_.sab(A,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.JL().logFlowEvent(A,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
rk5=function(){if(!kdT){if(Polymer.Base){var A=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{A.apply(this,arguments)}catch(O){_.g9(O)}};
var t=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{t.apply(this,arguments)}catch(O){_.g9(O)}};
var f=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{f.apply(this,arguments)}catch(O){_.g9(O)}};
var X=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{X.apply(this,arguments)}catch(O){_.g9(O)}};
var Q=Polymer.Base._listen,q=new WeakMap;Polymer.Base._listen=function(O,c,B){var h=function(){try{B.apply(this,arguments)}catch(W){_.g9(W)}};
q.set(B,h);Q.call(this,O,c,h)};
var e=Polymer.Base._unlisten;Polymer.Base._unlisten=function(O,c,B){e.call(this,O,c,q.get(B))}}if(Polymer.Async){var G=Polymer.Async,N=G._atEndOfMicrotask;
G._atEndOfMicrotask=function(){try{N.apply(G,arguments)}catch(O){_.g9(O)}}}if(Polymer.RenderStatus){var z=Polymer.RenderStatus,T=z.afterNextRender;
z.afterNextRender=function(O,c,B){T.call(z,O,function(){try{c.apply(this,arguments)}catch(h){_.g9(h)}},B)}}kdT=!0}};
_.tXT=function(A){var t=A?_.Wx(A):"";if(t){if(t.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(t.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(t.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(t.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(t.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.M("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(t.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";t=t.toLowerCase();if(t==="/")return"home";if(t==="/channel_memberships")return"channel-memberships-shopfront";if(t.indexOf("/feed/trending")===0)return"trending";if(t.indexOf("/feed/explore")===0)return"explore";if(t.indexOf("/live")===0)return"live";if(t.indexOf("/results")===0)return"search";if(t.indexOf("/sports")===0)return"sports";if(t.indexOf("/fashion")===0||t.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(t))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(t))return _.M("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(t.indexOf("/channel/")===0||t.indexOf("/user/")===0||t.indexOf("/gaming")===0||t.indexOf("/post/")===0)return"channel";if(AwT(A))return"show";if(t==="/playlist"||t.indexOf("/playlist/")===0||t==="/view_play_list"||t.indexOf("/view_play_list/")===0||t.indexOf("/show/")===0)return"playlist";if(t==="/companion_canvas")return"companion-canvas";if(t==="/feed/history"||
t.indexOf("/feed/history/")===0)return"history";if(t==="/new")return"labs";if(t==="/feed/subscriptions")return"subscriptions";if(t.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(t==="/history_controls")return"standalone";if(t.indexOf("/account")===0||t==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(t.indexOf("/paid_memberships")===0||t.indexOf("/refund")===0||t.indexOf("/purchases")===0||t.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(t.indexOf("/product")===
0)return"yts-products";if(t.indexOf("/premium")===0||t.indexOf("/musicpremium")===0)return t.indexOf("/premium/offers")===0||t.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(t==="/cart/checkout"||t==="/cart")return"ypc-checkout";if(t.indexOf("/reporthistory")===0)return _.M("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(t.indexOf("/feed/downloads")===0||t.indexOf("/redeem")===0)return"browse";if(t.indexOf("/hashtag")===0)return"hashtag-landing-page";if(t.indexOf("/handle")===
0)return"handle";if(t.indexOf("/source")===0)return"audio-pivot";if(t.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(t.indexOf("/playables")===0)return"playables";if(t.indexOf("/create/live/join")===0)return"open-in-app";if(t.indexOf("/shorts")===0)return"shorts";if(t.indexOf("/feed/channels")===0)return"subscriptions-channels";var f=A?_.Wx(A):"";f&&f.indexOf("/watch")===0&&_.M("web_watch_enable_learning_journey")?(A=_.qG(A),A=!!A.list&&A.list.indexOf("LJPP")===0):A=!1;if(A)return"learning_journey_watch";
if(_.M("enable_new_page_subtypes_for_ai_companion")&&t==="/feed/courses")return"your-courses"}};
_.eI=function(A){var t,f;(A=(f=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null?void 0:f.url)&&(t=_.tXT(A));return t};
AwT=function(A){var t=A?_.Wx(A):"";if(!t)return!1;t=t.toLowerCase();return t.indexOf("/show/")===0||t.indexOf("/playlist")===0&&(A=_.qG(A),A.list&&A.list.indexOf("EL")===0)?!0:!1};
Nv=function(A){var t="unknown",f;var X=((f=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null?void 0:f.webPageType)||"";X?(f=X.toLowerCase(),f.startsWith("web_page_type_")&&(f=f.slice(14))):f=X;f&&f7u[f.toUpperCase()]?t=f7u[f.toUpperCase()]:_.C(A,_.GD)||_.C(A,XMb)?t="browse":_.C(A,_.lY)?t="search":_.C(A,_.ZT)&&(t="watch");t==="watch"&&_.eI(A||null)==="learning_journey_watch"&&(t="learning_journey_watch");t==="unknown"&&_.K4(Error("Uf`"+JSON.stringify({clickTrackingParams:A==null?void 0:A.clickTrackingParams,
commandMetadata:A==null?void 0:A.commandMetadata,allEndpointKeys:Object.keys(A||[])})));return t};
_.uY=function(A){if(!_.QSu||A)_.QSu=_.pn();return _.QSu};
_.q5x=function(A){return!!_.C(A,_.ZT)||!!_.C(A,_.zD)&&_.M("kevlar_enable_shorts_prefetch")};
_.Jwl=function(A,t){A=_.C(A,_.ZT)||_.C(A,_.zD);return"v"+A.videoId+(A.playlistId?"-pl"+A.playlistId:"")+(t?"-an1":"")+(A.params?"-pr"+A.params:"")};
_.UMx=function(A){var t=new Pi(_.ah("ONE_PICK_URL",""));t.urlParamMap_.set("hostId",A);(A=_.ah("GAPI_LOCALE"))&&t.urlParamMap_.set("hl",A);(A=_.ah("SESSION_INDEX"))&&t.urlParamMap_.set("authuser",A);(A=_.ah("DELEGATED_SESSION_ID"))&&t.urlParamMap_.set("groupId",A);return t};
GZu=function(){var A=_.Px(),t=A.resolve(_.TD);A=A.resolve(_.iY);return new eQ5(t,A)};
Ngx=function(A){if(window.IntersectionObserver)return new l7s(A,400);throw new TypeError("Wf");};
zQ5=function(){var A=Hammer.TouchAction,t=A.prototype.preventDefaults;A.prototype.preventDefaults=function(f){var X=this.actions.indexOf("pan-down")>-1;if(!X)return t.call(this,f);if(!uVs){var Q=f.srcEvent;f=f.direction;var q;if((q=this.manager)==null?0:q.session.prevented)Q.preventDefault();else if(X&&f&Hammer.DIRECTION_DOWN)return this.preventSrc(Q)}}};
P8x=function(A){if(!A||A.size===0)return Hammer.DIRECTION_ALL;if(A.size===2){if(A.has("up")&&A.has("down"))return Hammer.DIRECTION_VERTICAL;if(A.has("right")&&A.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(A.size===1){if(A.has("up"))return Hammer.DIRECTION_UP;if(A.has("down"))return Hammer.DIRECTION_DOWN;if(A.has("right"))return Hammer.DIRECTION_RIGHT;if(A.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.ij0=function(){return Tgb?Promise.resolve(Tgb):new Promise(function(A,t){var f=self.indexedDB.open("swpushnotificationsdb");f.onerror=t;f.onsuccess=function(){var X=f.result;if(X.objectStoreNames.contains("swpushnotificationsstore"))Tgb=X,A(Tgb);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.ij0()};
f.onupgradeneeded=Ojb})};
Ojb=function(A){A=A.target.result;A.objectStoreNames.contains("swpushnotificationsstore")&&A.deleteObjectStore("swpushnotificationsstore");A.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.ci=function(A,t,f){var X=f&&f>0?f:0;f=X?Date.now()+X*1E3:0;if((X=X?_.OF.getLocalStorage():_.OF.getSessionStorage())&&window.JSON){typeof t!=="string"&&(t=JSON.stringify(t,void 0));try{X.set(A,t,f)}catch(Q){X.remove(A)}}};
_.Bi=function(A){var t=_.OF.getSessionStorage(),f=_.OF.getLocalStorage();if(!t&&!f||!window.JSON)return null;try{var X=t.get(A)}catch(Q){}if(typeof X!=="string")try{X=f.get(A)}catch(Q){}if(typeof X!=="string")return null;try{X=JSON.parse(X,void 0)}catch(Q){}return X};
_.Mv=function(A){try{var t=_.OF.getSessionStorage(),f=_.OF.getLocalStorage();t&&t.remove(A);f&&f.remove(A)}catch(X){}};
Bgs=function(A){var t=cwp(),f;return _.l(function(X){switch(X.nextAddress){case 1:return _.ht(X,2),X.yield(A.match(t,{cacheName:"yt-appshell-assets"}),4);case 4:f=X.yieldResult;_.qq(X,3);break;case 2:_.vC(X);case 3:return X.return(f)}})};
cwp=function(){var A=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?MX5.registration.scope:C8z;A.endsWith("/")&&(A=A.slice(0,-1));return A+"/app_shell_home"};
hQu=function(A){A.map(function(t){return t.source}).join("|")};
_.RQT=function(A){return _.l(function(t){return t.return(Bgs(A))})};
mMb=function(){var A=window.caches,t;return _.l(function(f){if(f.nextAddress==1)return f.yield(_.RQT(A),2);t=f.yieldResult;return f.return(!!t)})};
Ebq=function(){_.l(function(A){if(A.nextAddress==1){if(bjs)return A.jumpTo(0);bjs=!0;if(_.M("enable_system_health_primes_monitoring"))return _.my(WKx,3E4),yw5(),A.return();if(!(Math.random()<_.cx("web_system_health_fraction")))return A.jumpTo(0);vbb={heightPixels:screen.height,widthPixels:screen.width};Cp&&!isNaN(Cp.jsHeapSizeLimit)&&(vbb.memoryTotalKbytes=String(Math.round(Cp.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(vbb.devicePixelRatio=window.devicePixelRatio);return A.yield(LKT(),4)}_.my(WKx,
3E4);return A.yield(pMu(),0)})};
LKT=function(){return _.l(function(A){if(A.nextAddress==1)return hL.intersectionObserverPresent="IntersectionObserver"in window,hL.serviceWorkerPresent="serviceWorker"in navigator,hL.webSharePresent="share"in navigator,hL.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,hL.cacheStoragePresent="caches"in window,hL.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,hL.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
hL.webkitTemporaryStoragePresent="webkitTemporaryStorage"in RO&&RO.webkitTemporaryStorage&&"queryUsageAndQuota"in RO.webkitTemporaryStorage,hL.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",A.yield(P$0(),2);hL.indexedDbPresent=A.yieldResult;hL.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;hL.broadcastChannelPresent="BroadcastChannel"in window;hL.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(hL.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,hL.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.LO(A)})};
WKx=function(){var A=9E4+Math.random()*2E3;_.iX()>A||(_.M("enable_system_health_primes_monitoring")?yw5():pMu())};
pMu=function(){var A;return _.l(function(t){if(t.nextAddress==1)return t.yield(nbu(),2);A=t.yieldResult;_.SY("systemHealthCaptured",A);_.LO(t)})};
yw5=function(){var A={metric:{}},t=DMs();t.networkEvents.length&&(A.metric.networkEvents=FK0(t));_.SY("systemHealthCaptured",A)};
nbu=function(){var A,t,f,X,Q,q,e,G,N,z;return _.l(function(T){switch(T.nextAddress){case 1:A={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)};t=window.screen;_.M("enable_is_extended_monitoring")&&t&&"isExtended"in t&&(A.isExtended=!!t.isExtended);f={metric:{staticContext:vbb,dynamicContext:A,webMetric:I7q,webApiSupport:hL}};
if(X=_.Ws())f.csn=X;Cp&&(f.metric.webMetric.currentHeapKbytes=Math.round(Cp.usedJSHeapSize/1E3));window.matchMedia&&(f.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,f.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,f.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in RO&&typeof RO.getBattery==="function")){T.jumpTo(2);break}return T.yield(RO.getBattery(),3);case 3:if(Q=
T.yieldResult)f.metric.dynamicContext.chargingStatus=Q.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(f.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(hL.storageEstimatePresent)return T.yield(navigator.storage.estimate(),8);if(!hL.webkitTemporaryStoragePresent){T.jumpTo(5);break}return T.yield(xMT(),7);case 7:q=T.yieldResult;T.jumpTo(5);break;case 8:q=T.yieldResult;case 5:return f.metric.dynamicContext.deviceStorageQuotaMbytes=((e=q)==null?0:e.quota)?String(Math.round(q.quota/
1048576/10)*10):"-1",f.metric.dynamicContext.deviceStorageUsageMbytes=((G=q)==null?0:G.usage)?String(Math.round(q.usage/1048576/10)*10):"-1",N=f.metric.dynamicContext,T.yield(mMb(),9);case 9:return N.hasAppShell=T.yieldResult,z=DMs(),z.networkEvents.length&&(f.metric.networkEvents=FK0(z)),T.return(f)}})};
xMT=function(){return new Promise(function(A){var t;hL.webkitTemporaryStoragePresent&&(t=RO.webkitTemporaryStorage)!=null&&t.queryUsageAndQuota?RO.webkitTemporaryStorage.queryUsageAndQuota(function(f,X){A({usage:f,quota:X})}):A(void 0)})};
_.mt=function(A){A&=16777215;A=[(A&16711680)>>16,(A&65280)>>8,A&255];return jSp(A[0],A[1],A[2])};
_.bY=function(A){A=[(A&16711680)>>>16,(A&65280)>>>8,A&255,(A&4278190080)>>>24];if(!_.Y5p(A,function(t){return t===(t&255)}))throw Error("Xf`"+A.join(","));
return"rgba("+A[0]+","+A[1]+","+A[2]+","+(A[3]/255).toFixed(3)+")"};
_.VXq=function(A){return[(A&16711680)>>>16,(A&65280)>>>8,A&255]};
_.Zjb=function(A){A=A.map(function(t){t/=255;return t<=.03928?t/12.92:Math.pow((t+.05)/1.05,2.4)});
return A[0]*.2126+A[1]*.7152+A[2]*.0722};
Wi=function(A,t){A=_.VXq(A);return"rgba("+A[0]+", "+A[1]+", "+A[2]+", "+t+")"};
yc=function(A){return(A&4278190080)>>>24===0?Wi(A,"1"):_.bY(A)};
_.obu=function(){try{return!!self.localStorage}catch(A){return!1}};
Hjb=function(){if(dMg())_.K4(Error("Yf"));else{var A=document.createElement("iframe");A.style.display="none";var t=t===void 0?window.location.href:t;var f=_.KU(_.ah("PERSIST_IDENTITY_IFRAME_URL"));t=f?f:(new URL(t)).host.indexOf("studio")===0?_.OP(S5q,"persist_identity"):_.OP($Mz,"persist_identity");_.At(A,1,t);A.id="persist_identity";var X;(X=document.body)==null||X.appendChild(A)}};
dMg=function(){var A=a7g;A||(A=document.querySelector("#persist_identity"));return A};
KKg=function(){var A=!1;try{A=!!window.sessionStorage.getItem("session_logininfo")}catch(t){A=!0}return(_.ah("INNERTUBE_CLIENT_NAME")==="WEB"||_.ah("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&A};
gbT=function(A,t){if(!KKg())return!1;t||(t=_.ah("LOGIN_INFO"));return t?(A.session_logininfo=t,!0):!1};
sSx=function(A,t){A=A===void 0?!1:A;if((t===void 0||!t)&&wM5!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Ka("LOG_STICKINESS",!1)){t=_.Ws();var f=_.mx(),X={identityStickinessData:{initialState:wM5}};t&&f&&_.S5(t,f,X)}if(t=dMg())if(f=t.src?(new URL(t.src)).origin:"*",A){var Q;(Q=t.contentWindow)==null||Q.postMessage({action:"clear"},f)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(A=window.sessionStorage.getItem("session_logininfo"))){var q;(q=t.contentWindow)==null||q.postMessage({loginInfo:A},f)}};
_.vi=function(A){A=A===void 0?!0:A;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.H5("LOGIN_INFO",""),A&&window.sessionStorage.setItem("from_switch_account","1"),sSx(!0,A)}catch(t){}};
kZ5=function(A){A&&(A.startsWith("https://accounts.google.com/AddSession")?_.vi():A.startsWith("https://accounts.google.com/ServiceLogin")?_.vi():A.startsWith("https://myaccount.google.com")&&_.kC(A).getPath().endsWith("/youtubeoptions")&&_.vi())};
Lp=function(A,t){kZ5(A);if(_.Ka("LOGGED_IN",!0)&&KKg()){var f=gDu(A);f==null&&(f={});gbT(f,t)&&_.$J(A,f)}};
rw0=function(){function A(t){for(t=t.target;t&&t.nodeName!=="A";)if(t=t.parentNode,!(t&&t instanceof HTMLElement))return;if(t&&!t.hasAttribute("download")&&t.getAttribute("rel")!=="external"&&t.href)return t.href}
document.addEventListener("mousedown",function(t){t.button!==0&&(t=A(t))&&Lp(t)});
document.addEventListener("click",function(t){(t=A(t))&&Lp(t)})};
fLx=function(){var A=new AA5;try{if(_.Ka("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(G){A.increment(5,!1);return}if(_.ah("LOGIN_INFO")){var t=t1T?t1T:window.location;_.ah("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Hjb();var f=gDu(t.href);f==null&&(f={});var X=f.session_logininfo,Q=Number(window.sessionStorage.getItem("stickiness_reload")),q=X===_.ah("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Q>=2||q)Q>=2?A.increment(2,q):q?A.increment(7,q):window.sessionStorage.getItem("session_logininfo")||(A.increment(3,q),wM5="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.ah("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.ah("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))A.increment(4,q),window.sessionStorage.removeItem("stickiness_reload");
else if(Q<2){window.sessionStorage.setItem("stickiness_reload",String(Q+1));var e=t.href;e=_.Hs(e,"sttick");Lp(e,window.sessionStorage.getItem("session_logininfo"));e=_.Je(e,{sttick:Q});A.increment(Q,q);_.ctp(t,e)}}else A.increment(6,!1)}else _.vi(!1)}catch(G){}};
_.pp=function(A,t,f,X,Q){t=t===void 0?{}:t;f=f===void 0?"":f;X=X===void 0?window:X;A=_.U0(A,t);Lp(A);f=_.of(A+f,Q);_.ctp(X.location,f)};
Xa5=function(A){if(A.urlEndpoint){if(A=_.qG(A.urlEndpoint.url),A.adurl)return u2(A.adurl)}else if(A.watchEndpoint)return"//www.youtube.com/watch?v="+A.watchEndpoint.videoId;return null};
QBs=function(A){if(!A||!A.reportingPings)return null;var t={};A.reportingPings.forEach(function(f){f.pingType in t?t[f.pingType].push(f.url):t[f.pingType]=[f.url]});
return{adpings:oJT(t)}};
_.np=function(A){A=A===void 0?!1:A;var t=_.NJ(),f="USER_INTERFACE_THEME_LIGHT";t.getFlag(165)?f="USER_INTERFACE_THEME_DARK":t.getFlag(174)?f="USER_INTERFACE_THEME_LIGHT":_.EF()&&(f="USER_INTERFACE_THEME_DARK");return A?f:qh5()||f};
_.JAx=function(){return!_.M("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.EF=function(){return _.JAx()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.D2=function(){var A=_.NJ();return _.JAx()&&!A.getFlag(165)&&!A.getFlag(174)};
qh5=function(){var A=A===void 0?window.location.href:A;if(_.M("kevlar_disable_theme_param"))return null;var t=_.Wx(A);if(_.UKu(t))return"USER_INTERFACE_THEME_DARK";try{var f=_.qG(A).theme;return em5.get(f)||null}catch(X){}return null};
_.UKu=function(A){return _.M("enable_dark_theme_only_on_shorts")?!(A==null||!A.startsWith("/shorts/")):!1};
_.No0=function(A,t,f,X,Q){t=t===void 0?!1:t;f=f===void 0?!1:f;var q=_.ah("INNERTUBE_CONTEXT");if(!q)return _.HQ(Error("bg")),{};q=(0,_.VG.unsafeClone)(q);_.M("web_no_tracking_params_in_shell_killswitch")||delete q.clickTracking;q.client||(q.client={});var e=q.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=_.ah("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=
Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());e.userInterfaceTheme=_.np();if(!t){var G=_.j75();G&&(e.connectionType=G);_.M("web_log_effective_connection_type")&&(G=V5b())&&(q.client.effectiveConnectionType=G)}var N;if(_.M("web_log_memory_total_kbytes")&&((N=_.Xb.navigator)==null?0:N.deviceMemory)){var z;N=(z=_.Xb.navigator)==null?void 0:z.deviceMemory;q.client.memoryTotalKbytes=""+N*1E6}t&&X&&!_.M("web_it_context_set_original_url_ks")&&
(e.originalUrl=Gup(_.Xb.location.href,X).toString());_.M("web_gcf_hashes_innertube")&&(G=gIq())&&(z=G.coldConfigData,N=G.coldHashData,G=G.hotHashData,q.client.configInfo=q.client.configInfo||{},z&&(q.client.configInfo.coldConfigData=z),N&&(q.client.configInfo.coldHashData=N),G&&(q.client.configInfo.hotHashData=G));z=_.qG(_.Xb.location.href);!_.M("web_populate_internal_geo_killswitch")&&z.internalcountrycode&&(e.internalGeo=z.internalcountrycode);!_.M("web_populate_client_screen_killswitch")&&Q&&(e.clientScreen=
Q);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo||(e.mainAppWebInfo={}),e.mainAppWebInfo.graftUrl=X||_.Xb.location.href,_.M("kevlar_woffle")&&_.Fc.instance&&(X=_.Fc.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!X.appInstalledEventFired&&X.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=ZZs(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&
(!_.M("web_lr_app_quality_killswitch")&&(X=_.ah("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:X})),X=_.ah("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:X}));!_.M("web_populate_time_zone_itc_killswitch")&&(X=IN5())&&(e.timeZone=X);(X=fNq())?e.experimentsToken=X:delete e.experimentsToken;e=XtT();X=_.lLb();X=(0,_.VG.getValues)(X.tokenJars);q.request=Object.assign({},q.request,{internalExperimentFlags:e,consistencyTokenJars:X});
!_.M("web_prequest_context_killswitch")&&(e=_.ah("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(q.request.externalPrequestContext=e);X=_.NJ();e=X.getFlag(58);X=X.get("gsml","");q.user=Object.assign({},q.user);e&&(q.user.enableSafetyMode=e);X&&(q.user.lockedSafetyMode=!0);_.M("warm_op_csn_cleanup")?f&&(t=_.Ws())&&(q.clientScreenNonce=t):!t&&(t=_.Ws())&&(q.clientScreenNonce=t);A&&(q.clickTracking={clickTrackingParams:A});if(A=_.Ae("yt.mdx.remote.remoteClient_"))q.remoteClient=A;_.IO.getInstance().setLocationOnInnerTubeContext(q);
try{var T=z1g(),O=T.bid;delete T.bid;q.adSignalsInfo={params:[],bid:O};for(var c=_.U(Object.entries(T)),B=c.next();!B.done;B=c.next()){var h=_.U(B.value),W=h.next().value,L=h.next().value;T=W;O=L;A=void 0;(A=q.adSignalsInfo.params)==null||A.push({key:T,value:""+O})}var E,D;if(((E=q.client)==null?void 0:E.clientName)==="TVHTML5"||((D=q.client)==null?void 0:D.clientName)==="TVHTML5_UNPLUGGED"){var S=_.ah("INNERTUBE_CONTEXT");S.adSignalsInfo&&(q.adSignalsInfo.advertisingId=S.adSignalsInfo.advertisingId,
q.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",q.adSignalsInfo.limitAdTracking=S.adSignalsInfo.limitAdTracking)}}catch(Z){_.HQ(Z)}return q};
_.xO=function(){return{isShellLoad:_.Ka("IS_SHELL_LOAD",!1)}};
zms=function(){navigator.serviceWorker.getRegistrations().then(function(A){A.forEach(uSg)})};
uSg=function(A){A&&_.PbT(Tob,A.scope)};
_.PbT=function(A,t){t={scope:t||_.Bx("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Ei(A),t)};
jI=function(A,t,f,X){if(t&&t.serializedYpcCujLoggingParams){if(f){var Q={};Q.transactionErrorType=f;X&&(Q.errorMessage=X);t.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Q}}}f={};f.ypcCujContext=t;A=_.qv("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",A,f);_.JL().logFlowEvent(A,"FLOW_TYPE_YPC_ACQUISITION")}};
_.ih0=function(A,t,f,X){var Q={};Q.serializedTransactionFlowLoggingParams=t;f&&(Q.errorType=f);X&&(Q.errorMessage=X);_.SY(A,Q);_.$B()};
_.Ohs=function(A){A&&_.ih0("transactionFlowStarted",A)};
_.cAT=function(A){A&&_.ih0("transactionFlowCancelled",A)};
_.YO=function(A,t,f){t&&_.ih0("transactionFlowFailed",t,A,f)};
Bog=function(A){var t=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");t&&(t.inert=A)};
_.Vc=function(){this.megabloxUrl_=null};
_.Z2=function(A){try{var t=M1z==null?void 0:M1z.composedPath(A)}catch(f){t=A.composedPath?A.composedPath():[]}return t&&t.length>0?t:A.composedPath?A.composedPath():[]};
_.oO=function(A){return _.Z2(A)[0]};
dH=function(A){return A instanceof ShadowRoot?ShadowRoot:A instanceof DocumentFragment?DocumentFragment:A instanceof Document?Document:HTMLElement};
Cbg=function(A){if(A instanceof Element)return Element.prototype;if(A instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+A);};
hm5=function(A,t){return _.M("sunnydom_native_scoped_query_selectors")?Cbg(A).querySelector.call(A,t):dH(A).prototype.querySelector.call(A,t)};
Rm5=function(A,t){return _.M("sunnydom_native_scoped_query_selectors")?Cbg(A).querySelectorAll.call(A,t):dH(A).prototype.querySelectorAll.call(A,t)};
mKx=function(A){var t,f,X;return(X=(f=(t=A.parentElement)!=null?t:A.__shady_native_parentElement)!=null?f:A.__shady_parentElement)!=null?X:null};
bhx=function(A){var t,f,X;return(X=(f=(t=A.parentNode)!=null?t:A.__shady_native_parentNode)!=null?f:A.__shady_parentNode)!=null?X:null};
Ws5=function(A){var t,f,X;return(X=(f=(t=A.nextSibling)!=null?t:A.__shady_native_nextSibling)!=null?f:A.__shady_nextSibling)!=null?X:null};
yAx=function(A){var t,f,X;return(X=(f=(t=A.previousSibling)!=null?t:A.__shady_native_previousSibling)!=null?f:A.__shady_previousSibling)!=null?X:null};
vc5=function(A){var t,f,X;return(X=(f=(t=A.nextElementSibling)!=null?t:A.__shady_native_nextElementSibling)!=null?f:A.__shady_nextElementSibling)!=null?X:null};
Lsb=function(A){var t,f,X;return(X=(f=(t=A.previousElementSibling)!=null?t:A.__shady_native_previousElementSibling)!=null?f:A.__shady_previousElementSibling)!=null?X:null};
pax=function(A){var t,f,X;return new Set([].concat(_.YV((t=A.children)!=null?t:[]),_.YV((f=A.__shady_native_children)!=null?f:[]),_.YV((X=A.__shady_children)!=null?X:[])))};
Ecx=function(A){var t,f,X;return new Set([].concat(_.YV((t=A.childNodes)!=null?t:[]),_.YV((f=A.__shady_native_childNodes)!=null?f:[]),_.YV((X=A.__shady_childNodes)!=null?X:[])))};
_.SI=function(A){if(!(A instanceof Element))return null;A=A.classList?Array.from(A.classList):void 0;if(!A)return null;var t=A.indexOf("style-scope");return t>-1&&t+1<A.length?A[t+1]:null};
$O=function(A){if(!(A instanceof HTMLElement))return null;var t=A&&(A.$$||A.polymerController)?A.tagName.toLowerCase():null;return t?t:_.SI(A)};
nc5=function(A,t){return _.M("sunnydom_native_scoped_query_selectors")?A+".style-scope."+t:A.replace(/[^a-z]*[^\s]+/g,function(f){return f+".style-scope."+t})};
DK5=function(A,t){return t?A.split(",").map(function(f){return nc5(f.trim(),t)}).join(", "):A};
_.Hi=function(A){var t,f,X,Q;return(Q=(X=(f=(t=A.root)!=null?t:A.shadowRoot)!=null?f:A.__shady_native_shadowRoot)!=null?X:A.__shady_shadowRoot)!=null?Q:A};
Fsb=function(A){var t,f,X;return(X=(f=(t=A.__shady_parentNode)!=null?t:A.__shady_native_parentNode)!=null?f:A.parentNode)!=null?X:null};
ILl=function(A){var t,f;return(f=(t=bhx(A))!=null?t:A.host)!=null?f:null};
xKx=function(A){for(;A&&!(A instanceof HTMLElement);)A=ILl(A);return A};
jBb=function(A){var t=xKx(A);return A===t?_.SI(A):t?$O(t):null};
Yhl=function(A){return(A=xKx(A))?$O(A):null};
V1T=function(A){if(A instanceof Comment)return!1;if(A instanceof Text){var t,f;if(((f=(t=A.textContent)==null?void 0:t.trim())!=null?f:"")==="")return!1}return!0};
aO=function(A,t,f){var X=t(A);for(f=f===void 0?Yhl(A):f;X&&(jBb(X)!==f||!V1T(X));)A=X,X=t(A);return X};
Zhg=function(A,t,f){if(!t)return null;A=Yhl(A);return jBb(t)===A&&V1T(t)?t:aO(t,f,A)};
ocT=function(A){return aO(A,Fsb,_.SI(A))};
dKz=function(A){return aO(A,vc5)};
ShT=function(A){return aO(A,Ws5)};
$Kq=function(A){return aO(A,Lsb)};
Hhx=function(A){return aO(A,yAx)};
aL5=function(A){return Zhg(A,A.firstChild||null,Ws5)};
Ksz=function(A){var t,f,X;var Q=(X=(f=(t=A.firstElementChild)!=null?t:A.__shady_native_firstElementChild)!=null?f:A.__shady_firstElementChild)!=null?X:null;return Zhg(A,Q,vc5)};
gcg=function(A){var t,f,X;var Q=(X=(f=(t=A.lastChild)!=null?t:A.__shady_native_lastChild)!=null?f:A.__shady_lastChild)!=null?X:null;return Zhg(A,Q,yAx)};
wa5=function(A){var t,f,X;var Q=(X=(f=(t=A.lastElementChild)!=null?t:A.__shady_native_lastElementChild)!=null?f:A.__shady_lastElementChild)!=null?X:null;return Zhg(A,Q,Lsb)};
sBu=function(A){var t=Yhl(A);return Array.from(Ecx(A)).filter(function(f){return jBb(f)===t})};
kuu=function(A){var t=$O(A);return Array.from(pax(A)).filter(function(f){return _.SI(f)===t})};
rAz=function(A){if(!A)return null;var t=_.SI(A);if(!t){var f;return(f=Node.prototype.getRootNode)==null?void 0:f.call(A)}t=t.toUpperCase();for(A=mKx(A);A&&A.tagName!==t;)A=mKx(A);return A?_.Hi(A):null};
_.Kp=function(A,t,f){if(A instanceof HTMLElement&&_.SI(A)===f){var X=Array.from(A.classList).indexOf("style-scope");if(X===-1)A.classList.add("style-scope"),A.classList.add(t);else if(!(X+1>=A.classList.length)){X=A.classList[X+1];var Q,q;A==null||(Q=A.classList)==null||(q=Q.replace)==null||q.call(Q,X,t)}}if(A instanceof HTMLElement||A instanceof DocumentFragment)for(Q=_.U(pax(A)),q=Q.next();!q.done;q=Q.next())_.Kp(q.value,t,f);return A};
gH=function(A,t){if(A instanceof HTMLElement&&_.SI(A)===t){var f=Array.from(A.classList).indexOf("style-scope");f===-1||f+1>=A.classList.length||A.classList.remove("style-scope",A.classList[f+1])}if(A instanceof HTMLElement||A instanceof DocumentFragment){f=_.U(A.children);for(var X=f.next();!X.done;X=f.next())gH(X.value,t)}return A};
_.AKs=function(A,t){return dH(A).prototype.appendChild.call(A,t)};
tA0=function(A,t){if(A===t)return!0;A=Ecx(A);return Array.from(A).some(function(f){return tA0(f,t)})};
_.sF=function(A,t){if(A instanceof wH)return A;(t==null?0:t.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(A,"ownerDocument")&&Object.defineProperty(A,"ownerDocument",{get:function(){return window.document}});
return new wH(A)};
Xlx=function(){var A=wH.prototype,t=[].concat(_.YV(f9b?[]:["getRootNode"]),["setAttribute","removeAttribute"]);t=_.U(t);for(var f=t.next(),X={};!f.done;X={method$jscomp$53:void 0},f=t.next())X.method$jscomp$53=f.value,A[X.method$jscomp$53]=function(Q){return function(){return this.host[Q.method$jscomp$53].apply(this.host,arguments)}}(X)};
qRs=function(){var A=wH.prototype,t=[].concat(_.YV(f9b?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.YV(QVb?[]:["querySelector","querySelectorAll"]));t=_.U(t);for(var f=t.next(),X={};!f.done;X={method$jscomp$54:void 0},f=t.next())X.method$jscomp$54=f.value,A[X.method$jscomp$54]=function(Q){return function(){return this.root[Q.method$jscomp$54].apply(this.root,arguments)}}(X)};
ebs=function(){var A=wH.prototype,t=[].concat(_.YV(JK5?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.YV(Umu?[]:["parentNode"]));t=_.U(t);for(var f=t.next(),X={};!f.done;X={prop$jscomp$67:void 0},f=t.next())X.prop$jscomp$67=f.value,Object.defineProperty(A,X.prop$jscomp$67,{get:function(Q){return function(){return this.host[Q.prop$jscomp$67]}}(X),
configurable:!0})};
Nhx=function(){var A=wH.prototype,t=["activeElement"].concat(_.YV(JK5?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.YV(GA5?[]:["children"]),_.YV(l9l?[]:["lastChild"]));t=_.U(t);for(var f=t.next(),X={};!f.done;X={prop$jscomp$68:void 0},f=t.next())X.prop$jscomp$68=f.value,Object.defineProperty(A,X.prop$jscomp$68,{get:function(Q){return function(){return this.root[Q.prop$jscomp$68]}}(X),
configurable:!0})};
uFq=function(){for(var A=wH.prototype,t=_.U(["innerHTML","textContent"]),f=t.next(),X={};!f.done;X={prop$jscomp$69:void 0},f=t.next())X.prop$jscomp$69=f.value,Object.defineProperty(A,X.prop$jscomp$69,{get:function(Q){return function(){return this.root[Q.prop$jscomp$69]}}(X),
set:function(Q){return function(q){this.root[Q.prop$jscomp$69]=q}}(X),
configurable:!0})};
zbs=function(A){var t=wH.prototype;A=_.U(Object.entries(A));for(var f=A.next(),X={};!f.done;X={fn$jscomp$403:void 0},f=A.next()){var Q=_.U(f.value);f=Q.next().value;Q=Q.next().value;X.fn$jscomp$403=Q;t[f]=function(q){return function(){return q.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.YV(arguments)))}}(X)}};
Thb=function(){for(var A=wH.prototype,t=_.U(Object.entries(Pvx)),f=t.next(),X={};!f.done;X={fn$jscomp$404:void 0},f=t.next()){var Q=_.U(f.value);f=Q.next().value;Q=Q.next().value;X.fn$jscomp$404=Q;Object.defineProperty(A,f,{get:function(q){return function(){return q.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.YV(arguments)))}}(X),
configurable:!0})}};
_.kO=function(A){return A instanceof iQq||A instanceof Document?A:new iQq(A)};
OQ0=function(){for(var A=iQq.prototype,t=_.U("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),f=t.next(),X={};!f.done;X={method$jscomp$55:void 0},f=t.next())X.method$jscomp$55=f.value,A[X.method$jscomp$55]=function(Q){return function(){return HTMLElement.prototype[Q.method$jscomp$55].call.apply(HTMLElement.prototype[Q.method$jscomp$55],[this.node].concat(_.YV(arguments)))}}(X)};
cKx=function(){for(var A=iQq.prototype,t=_.U("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),f=t.next(),X={};!f.done;X={prop$jscomp$70:void 0},f=t.next())X.prop$jscomp$70=f.value,Object.defineProperty(A,X.prop$jscomp$70,{get:function(Q){return function(){var q;return(q=this.node["__shady_native_"+Q.prop$jscomp$70])!=null?q:this.node[Q.prop$jscomp$70]}}(X),
configurable:!0})};
_.rH=function(A,t,f){f===void 0&&(f=!A.classList.contains(t));f?A.classList.add(t):A.classList.remove(t)};
_.AY=function(A,t,f){f===void 0&&(f=!A.hasAttribute(t));if(t==="class")throw Error("gg");f?_.kO(A).setAttribute(t,""):_.kO(A).removeAttribute(t)};
Bhb=function(A){return(A.localName!=="slot"?[]:(0,_.XD)(A).assignedNodes({flatten:!0})).filter(function(t){return t.nodeType===Node.ELEMENT_NODE})};
_.MAx=function(A){return(A=_.sF(A).querySelector("slot"))&&A.localName==="slot"?Bhb(A):[]};
_.Q_=function(A,t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(A,t)};
qL=function(A,t){var f=t.bind(A);return function(X){f(X,X.detail)}};
_.JY=function(A,t){var f=Cvu.get(A);f||(f=new WeakMap,Cvu.set(A,f));if(f.has(t))return f.get(t);if(_.M("web_fi_listen_disable_bound_fn_helper")){var X=t.bind(A);A=function(Q){X(Q,Q==null?void 0:Q.detail)}}else A=qL(A,t);
f.set(t,A);return A};
mmT=function(A,t){hb5(A);A.created[Rbu].push(t)};
hb5=function(A){if(!A.created||!A.created[Rbu]){var t=A.created,f=t?[t]:[];A.created=function(){for(var X=_.U(f),Q=X.next();!Q.done;Q=X.next())Q.value.apply(this)};
A.created[Rbu]=f}};
bQl=function(A){return function(){var t=_.Hu.apply(0,arguments);return function(f,X,Q){A.apply(null,_.YV(t))(f,X,Q)}}};
WTb=function(){return function(){var A=_.Hu.apply(0,arguments);return function(t,f,X){GKg.apply(null,_.YV(A))(t,f,X)}}};
_.b=function(A){return WTb()(A)};
_.y=function(){return bQl(zIl).apply(null,_.YV(_.Hu.apply(0,arguments)))};
_.UQ=function(A){return _.M("pbcm_fi_listen_decorators")?yK0(A):bQl(NUT)(A)};
yK0=function(A){return function(t,f){mmT(t,function(){var X=this[f],Q=_.M("web_fi_listen_disable_bound_fn_helper")?function(q){X(q,q.detail)}.bind(this):qL(this,X);
v15.has(A)?aw(this.hostElement,A,Q):this.hostElement.addEventListener(A,Q)})}};
_.ev=function(){return bQl(uyl).apply(null,_.YV(_.Hu.apply(0,arguments)))};
_.n=function(A){A=A===void 0?{}:A;return bQl(lCT)(A)};
_.Gh=function(A){if(A.hostElement&&A!==A.hostElement){var t=_.iS(A.hostElement);t=A.renderIdom?t:t.shadowRoot}t||(A=A.root,t=A instanceof Node?_.iS(A):null);return t};
_.lo=function(A){return LTz?pll(A):function(t,f){Object.defineProperty(t,f,{get:function(){var X;return(X=_.Gh(this))==null?void 0:X.querySelector(A)},
enumerable:!0,configurable:!0})}};
pll=function(A){return function(t,f){Object.defineProperty(t,f,{get:function(){var X,Q=(X=_.sF(this.hostElement))==null?void 0:X.querySelector(A);if(Q)return Q;var q;return(q=_.Gh(this))==null?void 0:q.querySelector(A)},
enumerable:!0,configurable:!0})}};
_.NL=function(A){return LTz?E15(A):function(t,f){Object.defineProperty(t,f,{get:function(){var X;return(X=_.Gh(this))==null?void 0:X.querySelectorAll(A)},
enumerable:!0,configurable:!0})}};
E15=function(A){return function(t,f){Object.defineProperty(t,f,{get:function(){var X,Q=(X=_.sF(this.hostElement))==null?void 0:X.querySelectorAll(A);if(Q==null?0:Q.length)return Q;var q;return(q=_.Gh(this))==null?void 0:q.querySelectorAll(A)},
enumerable:!0,configurable:!0})}};
n1p=function(A){return function(t){if(![_.TS,_.F].includes(Object.getPrototypeOf(t.prototype).constructor))throw Error("hg");tqg(Object.assign({},typeof A!=="string"?A:{is:A,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(t)}};
_.zh=function(){var A=A===void 0?{}:A;return function(t){if(![is,_.uo].includes(Object.getPrototypeOf(t.prototype).constructor))throw Error("ig");fCx(Object.assign({},A,{disableInheritanceCheck:!0}))(t)}};
FTg=function(A,t){Dm0[A]!=null||(Dm0[A]=new Set);Dm0[A].add(t)};
_.PU=function(){var A=_.ev.apply(null,_.YV(_.Hu.apply(0,arguments)));return function(t,f){FTg(t.is,f);A(t,f)}};
OQ=function(A,t,f){if(Th(A)&&!I9q.has(t)){t=t.replace(/^JSC\$[\d]+_/,"");t=t.replace(/\.\d+(\.|$)/g,function(q,e){return".#"+e});
io[A]!=null||(io[A]={});var X,Q;(X=io[A])[Q=t]!=null||(X[Q]=new Set);io[A][t].has(f)||(io[A][t].add(f),_.SY("polymerPropertyAccessEvent",{componentName:A,propertyName:t,accessType:f}))}};
xmq=function(){return _.M("polymer_property_access_logging_debug")||_.M("polymer_enable_property_access_logging")};
Th=function(A){if(_.M("polymer_property_access_logging_debug"))return!0;if(!_.M("polymer_enable_property_access_logging"))return!1;jVx||(jVx=Date.now());return(F5(A)+jVx)%100<_.cx("polymer_property_access_logging_percent")};
YRx=function(A,t){return Th(t)&&A.hostElement.loggingStatus?new Proxy(A,{get:function(f,X,Q){if(f.hostElement.loggingStatus.bypassProxyController)return f[X];f.hostElement.loggingStatus.isExternalGet=!0;var q=f[X];f.hostElement.loggingStatus.isExternalGet=!1;if(q instanceof Function)return function(){var e=_.Hu.apply(0,arguments);try{return f.hostElement.loggingStatus.currentExternalCall=X,OQ(t,X,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),q.apply(this===Q?f:this,e)}finally{f.hostElement.loggingStatus.currentExternalCall=
void 0}};
OQ(t,X,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return q},
set:function(f,X,Q){if(f.hostElement.loggingStatus.bypassProxyController)return f[X]=Q,!0;f.hostElement.loggingStatus.isRendererStamper?OQ(t,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):f.hostElement.loggingStatus.isDeclarativeExternal||OQ(t,X,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{f.hostElement.loggingStatus.currentExternalSet=X,f[X]=Q}finally{f.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):A};
VA5=function(A,t){A&&A.loggingStatus&&!A.loggingStatus.isDeclarativeExternal&&!A.loggingStatus.isExternalGet&&A.loggingStatus.currentExternalSet!==t&&OQ(A.tagName.toLowerCase(),t,"PROPERTY_ACCESS_GET_INTERNAL")};
cU=function(A,t,f){A&&(f||A.loggingStatus&&!A.loggingStatus.isInitializing&&!A.loggingStatus.isDefiningPropertyAccessor&&A.loggingStatus.currentExternalSet!==t)&&OQ(A.tagName.toLowerCase(),t,"PROPERTY_ACCESS_SET_INTERNAL")};
ZQg=function(){return{_definePropertyAccessor:function(A,t){var f=this,X=f.hostElement.loggingStatus;X&&(X.isDefiningPropertyAccessor=!0);var Q=f[A];Q!==void 0&&(f.__data?f._setPendingProperty(A,Q):(f.__dataProto!=null||(f.__dataProto={}),f.__dataProto[A]=Q));X&&(X.isDefiningPropertyAccessor=!1);Object.defineProperty(this,A,{get:function(){VA5(f.hostElement,A);return this.__data[A]},
set:function(q){t||this._setPendingProperty(A,q,!0)&&this._invalidateProperties()}})},
created:function(){var A=this._setPendingProperty.bind(this);this._setPendingProperty=function(t,f,X){cU(this.hostElement,t);return A.apply(this,[t,f,X])}}}};
o15=function(A){xmq()&&_.b(BU.prototype)(A.prototype,"__templateBindingLoggingBehavior")};
dmb=function(A,t){if(t.resolvedFactories.length!==A.resolvedFactories.length)return!0;t=_.U(t.resolvedFactories.entries());for(var f=t.next();!f.done;f=t.next()){var X=_.U(f.value);f=X.next().value;X=X.next().value;if(X.providerClass){if(X.providerClass!==A.resolvedFactories[f].providerClass)return!0}else if(X.providerValue){if(X.providerValue!==A.resolvedFactories[f].providerValue)return!0}else if(X.factory!==A.resolvedFactories[f].factory)return!0}return!1};
SRg=function(A,t){A=_.U(A);for(var f=A.next();!f.done;f=A.next())if(f=f.value,f.constructor===Array)SRg(f,t);else{var X=t;X.has(f)||(f.inject&&X.add(f),f.behaviors&&SRg(f.behaviors,X))}};
ML=function(A,t){var f=A[t];A[t]=function(){var X=_.Hu.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(f)return f.apply(this,X)}};
KTl=function(){_.CN.Class=function(f,X){f=$mx(f,X);ML(f.prototype,"created");return f};
ML(hY.prototype,"_initializeProperties");ML(_.Rg.prototype,"_initializeProperties");if(HQx)ML(a9s,"created");else{var A=function(){ML(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))A();else{var t=customElements.define;customElements.define=function(f,X,Q){t.call(customElements,f,X,Q);f==="tp-yt-iron-list"&&(A(),customElements.define=t)}}}};
wlx=function(A,t){A.prototype.behaviors=A.prototype.behaviors||[];A.prototype.behaviors.unshift(g1x.InjectBehavior);A.prototype.provide=t};
_.WU=function(A){return function(t){if(!A.disableElementRegistration){A.noInjection||wlx(t,A.providers);var f=t.prototype;f.__templateHelpers||GKg(mI.prototype)(f,"__templateHelpers");f=A.is;sVp||(sVp=Date.now());(F5(f)+sVp)%100<_.cx("polymer_log_prop_change_observer_percent")&&GKg(bo.prototype)(t.prototype,"__propertyObserverObserver");t.prototype.behaviors=t.prototype.behaviors||[];t.prototype.behaviors.unshift(_.kAs.YtHostElementBehavior);o15(t);n1p({is:A.is,notifyObserversOnUndefined:A.notifyObserversOnUndefined!==
!1,fastInit:A.fastInit,template:A.template,disableEnforceFastDefaultValuesCheck:!0})(t)}}};
_.y_=function(A){return _.WU({is:A.is,template:A.template,disableElementRegistration:A.disableElementRegistration,cssBuildOptOut:A.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
t9b=function(A,t){if(rKs){A=new A;for(var f=_.U(Object.getOwnPropertyNames(A)),X=f.next();!X.done;X=f.next())X=X.value,t[X]=A[X];for(f=t;f&&f!==Object.prototype;f=Object.getPrototypeOf(f)){X=_.U(Object.getOwnPropertyNames(f));for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,A.hasOwnProperty(Q)||Object.defineProperty(A,Q,ATp(t,Q))}}else A.apply(t)};
ATp=function(A,t){return{get:function(){var f=A[t];return f instanceof Function?f.bind(A):f},
set:function(f){A[t]=f}}};
XNb=function(A,t){for(var f=A._noAccessors,X=_.U(Object.getOwnPropertyNames(A)),Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,!fG5.has(Q))if(f)t[Q]=A[Q];else{var q=Object.getOwnPropertyDescriptor(A,Q);q&&(q.configurable=!0,Object.defineProperty(t,Q,q))}};
QQb=function(A,t,f){return function(X){if(f){var Q=f();X.model=Q}if(A[t])A[t](X,X.detail)}};
vU=function(A){var t=[];if(typeof A==="string")A.length>0&&t.push.apply(t,_.YV(A.split(".")));else{A=_.U(A);for(var f=A.next();!f.done;f=A.next())f=f.value,typeof f==="string"?t.push.apply(t,_.YV(f.split("."))):t.push(f)}return t};
qzb=function(A,t){if(t[t.length-1]!=="*"&&t[t.length-1]!=="splices"){for(var f=0;f<t.length;f++){if(!A)return;A=A[t[f]]}return A}};
JTu=function(A,t){if(A.length>t.length)return!1;for(var f=0;f<A.length;f++)if(A[f]!==t[f])return!1;return!0};
eDz=function(A,t,f){if(t.type==="compute"){var X=t.getter.bind(f);var Q=t.args}else X=function(){return f[t.method.methodName].apply(f,_.YV(_.Hu.apply(0,arguments)))},Q=t.method.args;
Unb(A,t.propertyKey,X,Q,t.value)};
lGx=function(A,t){if(t.readOnly){var f=Object.getOwnPropertyDescriptor(A.model,t.propertyKey);Object.defineProperty(A.model,t.propertyKey,{get:f.get,set:function(){}});
A.model[Gyg(t.propertyKey)]=f.set}};
N4b=function(A,t,f){if(f){var X=t.propertyKey,Q=t.selector;t=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.YV(t.selectorArgs.map(function(q){return{type:"path",path:q}})));
Unb(A,X,function(q){var e=_.Hu.apply(1,arguments);return Q.apply(null,[f.getState()].concat(_.YV(e)))},t)}};
zDp=function(A,t,f){var X=_.ea(t.propertyKey)+"-changed";uzu(A,function(Q){var q={value:Q.value,queueProperty:!0};Q.path.split(".").length>1&&(q.path=Q.path);f.dispatchEvent(new CustomEvent(X,{detail:q}))},[{type:"wildcard",
path:t.propertyKey}])};
PGu=function(A,t,f){uzu(A,function(){f[t.method.methodName].apply(f,_.YV(_.Hu.apply(0,arguments)))},t.method.args)};
Gyg=function(A){return"_set"+(A.charAt(0).toUpperCase()+A.slice(1))};
T4q=function(){var A,t=SG(function(f){A=f},!1);
return[A,t]};
M9z=function(A){A=A.trim().replace(i$5,",").replace(O$l,"$1");var t=A[0];t==="-"&&(t=A[1]);if(t>="0"&&t<="9")return{type:"literal",value:Number(A)};if(t==="'"||t==='"')return{type:"literal",value:A.slice(1,-1)};if(t=A.match(cTq)){t=t[1];var f=B4T[t];if(f)return{type:f,path:A.slice(0,-(t.length+1))}}return{type:"path",path:A}};
mnb=function(A){var t=A.match(CGz);if(t)return A={methodName:t[1],args:hDx},t[2].trim()&&(t=t[2].replace(RD5,"&comma;").split(","),A.args=t.map(M9z)),A};
b$0=function(A,t,f,X){X=X===void 0?!1:X;t=_.ea(t);var Q=Iw;Q&&(f=Q(f,t,"attribute",A));LN(A,f,t,X)};
LN=function(A,t,f,X){t=WRu(t,X===void 0?!1:X);t===void 0?A.removeAttribute(f):A.setAttribute(f,t)};
WRu=function(A,t){switch(typeof A){case "object":case "function":if(A instanceof Date)return A.toString();if(A){if((t===void 0?0:t)&&!_.M("polymer_reflect_objects_as_boolean_killswitch"))return A?"":void 0;t=window.trustedTypes?window.trustedTypes.isHTML(A)||window.trustedTypes.isScript(A)||window.trustedTypes.isScriptURL(A):void 0;if(t)return A;try{return JSON.stringify(A)}catch(f){_.K4(Error("Eg`"+A))}}break;case "boolean":return A?"":void 0;default:return A!==null&&A!==void 0?A.toString():void 0}};
yTq=function(A){if(A===void 0)throw Error("Fg");return A};
nG5=function(A,t,f,X){var Q=vGT(X);if(Q.length){X=f;var q="property";LRq.test(f)?q="attribute":f[f.length-1]==="$"&&(f=f.slice(0,-1),q="attribute");var e=pNg(Q);e&&q==="attribute"&&(f==="class"&&A.hasAttribute("class")&&(e+=" "+A.getAttribute(f)),LN(A,e,f));q==="attribute"&&X==="disable-upgrade$"&&A.setAttribute("disable-upgrade","");A.localName==="input"&&X==="value"&&A.setAttribute("value","");A.removeAttribute(X);q==="property"&&(f=_.Gr(f));t=yTq(t);EG0(t,q,f,Q);return!0}return f.slice(0,3)===
"on-"?(A.removeAttribute(f),(q=t).events!=null||(q.events=[]),t.events.push({name:f.slice(3),value:X}),!0):f==="id"?(t.id=X,!0):!1};
vGT=function(A){for(var t=[],f=0,X;(X=Dnx.exec(A))!==null;){X.index>f&&t.push({type:"literal",value:A.slice(f,X.index)});var Q=X[1][0];f=!!X[2];X=X[3].trim();if(Q==="{")throw Error("Gg");(Q=mnb(X))?t.push({type:"method",negate:f,signature:Q}):t.push({type:"path",negate:f,path:X});f=Dnx.lastIndex}f&&f<A.length&&(A=A.substring(f))&&t.push({type:"literal",value:A});return t};
pNg=function(A){for(var t="",f=0;f<A.length;f++){var X=A[f];X.type==="literal"&&(t+=X.value)}return t};
EG0=function(A,t,f,X){A.bindings!=null||(A.bindings=[]);A.bindings.push({kind:t,target:f,parts:X})};
Yzl=function(A,t,f){var X=!1;if(A.localName==="template"){X=f;var Q=t.stripWhitespace;Q=FRl(A,Q===void 0?!1:Q);var q=A.content.ownerDocument.createDocumentFragment();Q.content=q;q.appendChild(A.content);X&&(X.templateInfo=Q);X=!0}else A.localName==="slot"&&(t.hasInsertionPoint=!0);if(A.firstChild&&(Q=f,A.localName!=="script"&&A.localName!=="style")){q=0;for(var e=A.firstChild;e;){var G=e;if(G.localName==="template"){var N=G.getAttribute("is");if((e=N==="dom-if")||N==="dom-repeat"){G.removeAttribute("is");
N=G.ownerDocument.createElement("ps-"+N);G.parentNode.replaceChild(N,G);N.appendChild(G);var z=Array.from(G.attributes);z=_.U(z);for(var T=z.next();!T.done;T=z.next())T=T.value,e?IGx.has(T.name)&&LN(N,T.value,T.name):xn5.has(T.name)?LN(N,T.value,T.name):jQz.has(T.name),G.removeAttribute(T.name);e=N}else e=G}if(e.nodeType===Node.TEXT_NODE){G=void 0;N=A;for(z=e;((G=z.nextSibling)==null?void 0:G.nodeType)===Node.TEXT_NODE;)T=void 0,(T=z).textContent!=null||(T.textContent=""),z.nextSibling.textContent&&
(z.textContent+=z.nextSibling.textContent),N.removeChild(z.nextSibling);if(t.stripWhitespace&&e.textContent&&!e.textContent.trim()){A.removeChild(e);e=e.nextSibling;continue}}Yzl(e,t,{parentIndex:q,parentInfo:Q});e.parentNode&&q++;e=e.nextSibling}}var O;if((O=A.hasAttributes)==null?0:O.call(A)){O=f=yTq(f);Q=!1;q=Array.from(A.attributes);q=_.U(q);for(G=q.next();!G.done;G=q.next())G=G.value,Q=nG5(A,O,G.name,G.value)||Q;X=Q||X}A.nodeType===Node.TEXT_NODE&&(O=vGT(A.textContent),O.length&&(A.textContent=
pNg(O)||" ",f=yTq(f),EG0(f,"text","textContent",O),X=!0));f&&X&&(f.infoIndex=t.nodeInfoList.push(f)-1)};
FRl=function(A,t){t={nodeInfoList:[],stripWhitespace:(t===void 0?!1:t)||A.hasAttribute("strip-whitespace")};Yzl(A.content,t);return t};
V9b=function(A){Object.assign(A,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
oGx=function(A,t,f){t.signalCache!=null||(t.signalCache={});var X=t.signalCache[f];if(!X){var Q=f.split(".");X=!Z$b(A,Q[0]);if(Q.length>1&&X){var q=A.getPathMutationSignal(Q);X=function(){var e=Hm(A.owner,function(){return A.getWithPath([Q[0]])}),G,N=(G=q())==null?void 0:G.value;
return{rootWasDefined:e!==void 0,value:N}}}else X=function(){var e=A.getWithPath(Q);
return{rootWasDefined:e!==void 0,value:e}};
t.signalCache[f]=X}return X()};
Szx=function(A,t,f,X,Q){t=t.parts.map(function(e,G){if(e.type==="literal"){f.partWasDefined!=null||(f.partWasDefined=[]);var N;(N=f.partWasDefined)[G]||(N[G]=e.value!==void 0);return e.value}var z;if(e.type==="method"){var T,O=(T=(z=f.partWasDefined)==null?void 0:z[G])!=null?T:!1;O||(O=e.signature.args.every(function(h){return h.type==="literal"}));
var c=!1,B=!0;z=e.signature.args.map(function(h){if(h.type==="literal")return h.value;if(h.type!=="path")throw Error("Hg`"+h.type);var W=oGx(A,f,h.path);h=W.value;W=W.rootWasDefined;c||(c=W);B&&(B=W);return h});
O||(O=Q===1?B:c);f.partWasDefined!=null||(f.partWasDefined={});f.partWasDefined[G]=O;if(!O)return;z=(G=oGx(A,f,e.signature.methodName).value)&&typeof G==="function"?G.apply(X,z):void 0}else T=oGx(A,f,e.path),z=T.value,f.partWasDefined!=null||(f.partWasDefined={}),(O=f.partWasDefined)[G]||(O[G]=z!==void 0||T.rootWasDefined);e.negate&&(z=!z);return z});
if(t.length===1){var q;return((q=f.partWasDefined)==null?0:q[0])?t[0]:dn5}return t.join("")};
$nz=function(A){return typeof A==="object"&&!!A&&"notifyPath"in A&&"canNotifyPath"in A};
H$b=function(A){return typeof A==="object"&&!!A&&"notifyPath"in A};
aGx=function(A){return"polymerController"in A};
KR0=function(A,t){t=""+vU(t)[0];if($nz(A))return A.canNotifyPath(t);if(aGx(A)&&$nz(A.polymerController))return A.polymerController.canNotifyPath(t);if(H$b(A)){var f;return!((f=A.properties)==null||!f[t])}if(aGx(A)&&H$b(A.polymerController)){var X;return!((X=A.polymerController.properties)==null||!X[t])}return!1};
gGs=function(A,t,f){$nz(A)||H$b(A)?A.notifyPath(t,f):aGx(A)&&($nz(A.polymerController)||H$b(A.polymerController))&&A.polymerController.notifyPath(t,f)};
sQx=function(A,t,f){if(f!==dn5){A.kind==="attribute"||A.target!=="textContent"&&(A.target!=="value"||t.localName!=="input"&&t.localName!=="textarea")||(f=f===void 0?"":f);var X,Q=(X=wNq.Polymer)==null?void 0:X.sanitizeDOMValue;Q&&(f=Q(f,A.target,A.kind,t));if(A.kind==="attribute"){A=A.target;if(A==="class"||A==="name"||A==="slot")t=(0,_.XD)(t);LN(t,f,A)}else if(A=A.target,f!==t[A]||typeof f==="object")t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!0,OQ(t.localName,A,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
t[A]=f,t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!1)}};
kyT=function(A,t,f,X){var Q=t.parts[0];if(t.parts.length!==1||Q.type!=="path"||!KR0(f,t.target))return!1;var q=_.U(Q.path.split(".")),e=q.next().value,G=Qq(q);if(Z$b(A,e))return!1;X.signalCache!=null||(X.signalCache={});q=X.signalCache[Q.path];var N;q=(N=q)==null?void 0:N().value;if((q==null?void 0:q.path)!==void 0){X=vU(q.path);var z=vU(Q.path);X=[t.target].concat(_.YV(X.slice(z.length-1)));gGs(f,X,Q.negate?!q.value:q.value);return!0}var T=pN(A,e);var O=T.getChangeRecordSignal(G),c=!1;q=function(){if(!c){var h=
Hm(A.owner,function(){return T.getWithPath([])});
c||(c=h!==void 0)}return{value:O(),rootWasDefined:c}};
X.signalCache[Q.path]=q;X.partWasDefined!=null||(X.partWasDefined={});q=q();(z=X.partWasDefined)[0]||(z[0]=q.rootWasDefined);var B=Hm(A.owner,function(){return T.getWithPath(G)});
X.partWasDefined[0]&&Hm(A.owner,function(){return void sQx(t,f,Q.negate?!B:B)});
return!0};
rT5=function(A,t,f,X,Q,q){if(!kyT(A,t,f,X)){var e=Szx(A,t,X,Q,q);Hm(A.owner,function(){return void sQx(t,f,e)})}};
An5=function(A,t,f,X,Q,q){f=_.U(f);for(var e=f.next(),G={};!e.done;G={infoIndex:void 0},e=f.next()){e=e.value;var N=e.bindings;G.infoIndex=e.infoIndex;e=e.parentInfo;if(N){N=_.U(N);for(var z=N.next(),T={};!z.done;T={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},z=N.next()){T.b$jscomp$257=z.value;if(G.infoIndex===void 0)throw Error("Ig");T.bindingCtx$jscomp$4={};A.effect(function(O,c){return function(){Q&&!Q()||rT5(A,O.b$jscomp$257,t[c.infoIndex],O.bindingCtx$jscomp$4,X,q)}}(T,G))}}e&&An5(A,t,[e],
X,Q,q)}};
tBs=function(A,t){A=(t.parentInfo?tBs(A,t.parentInfo):A).firstChild;for(var f=0;A;A=A.nextSibling)if(t.parentIndex===f++)return A;throw Error("Jg");};
XyT=function(A,t,f,X){A=document.importNode(A.content,!0);A.__noInsertionPoint=!(X==null?0:X.hasInsertionPoint);for(var Q=Array(t.length),q={},e=0;e<t.length;e++){var G=t[e],N=tBs(A,G);Q[e]=N;G.id&&(q[G.id]=N);if(G.templateInfo){var z=N.parentElement;z&&(z.templateInfo=G.templateInfo,z.parentSignalProxy=f,z.eventListenerHost=X.eventListenerHost,z.stampingEnabled=X.enabledSignal)}z=void 0;if((z=G.events)==null?0:z.length)for(z=0;z<G.events.length;z++){var T=G.events[z];fZz(X.eventListenerHost,N,T.name,
T.value,X.getModel)}}An5(f,Q,t,X.thisCtx,X.enabledSignal,X.methodInvocationRequirement);return{root:A,nodes:Q,nodesById:q}};
qks=function(A,t){A=A();var f;(f=QZb.ShadyCSS)==null||f.prepareTemplate(A,t);t=FRl(A);return{template:A,nodeInfoList:t.nodeInfoList,hasInsertionPoint:t.hasInsertionPoint}};
ee0=function(){Jn5=!1;for(var A=EQ.length,t=0;t<A;t++){var f=EQ[t];if(f)try{f()}catch(X){Promise.resolve().then(function(){throw X;})}}EQ.splice(0,A);
Us5+=A};
us5=function(A){Jn5||(Jn5=!0,G9x.textContent=(lZb++).toString());EQ.push(A);return NZb++};
_.FD=function(A,t,f){nN++;A=t?new zeu(nN,A,t,f):new PNT(nN,A);DK.set(nN,A);return nN};
TZ5=function(A){(A=DK.get(A))&&A.cancel()};
O7x=function(A,t){A=i70.get(A);return A?(t=A.get(t))?t:null:null};
_.Ig=function(A,t,f,X){var Q=O7x(A,t);if(!Q){Q=new cnq;var q=i70.get(A);q||(q=new Map,i70.set(A,q));q.set(t,Q)}A=f.bind(A);Q.run(A,X,void 0)};
_.BZb=function(A,t){var f;(f=O7x(A,t))==null||f.cancel()};
MBx=function(A){var t;(t=O7x(A,"doRender"))==null||t.flush()};
xF=function(A){var t;return(t=A.hostElement)!=null?t:A};
CNu=function(A){var t=A.indexOf(".");return t===-1?A:A.slice(0,t)};
he0=function(A,t,f,X,Q,q){q=(Q=(X=q?CNu(t):t)?t:null)?A.get(Q):A.__data[t];Q&&q===void 0&&(q=f[t]);_.s9(A.hostElement,H90(X)+"-changed",{value:q,queueProperty:!0,path:Q!=null?Q:void 0},{bubbles:!1,composed:!1})};
Reb=function(A,t){A.__isReflecting=!0;b$0(A.hostElement,t,A.__data[t]);A.__isReflecting=!1};
msp=function(A){if(A._onIronRequestResizeNotifications){var t=A._onIronRequestResizeNotifications.bind(A);A._onIronRequestResizeNotifications=function(f){_.oO(f)!==A.hostElement&&t(f)}}A._ariaActiveAttributeChanged&&(A._ariaActiveAttributeChanged=A._ariaActiveAttributeChanged.bind(A.hostElement));
A._activeChanged&&(A._activeChanged=function(f){A.toggles?LN(A.hostElement,f?"true":"false",A.ariaActiveAttribute):A.hostElement.removeAttribute(A.ariaActiveAttribute);A._changedButtonState()});
A._asyncClick&&(A._asyncClick=function(){_.FD(function(){A.hostElement.click()},1)});
!A.keyEventTarget||A.keyEventTarget instanceof EventTarget||(A.keyEventTarget=xF(A.keyEventTarget));A._disabledChanged&&(A._disabledChanged=A._disabledChanged.bind(A.hostElement));A._observeItems&&(A._observeItems=function(f){var X=xF(f);return _.iS(X).observeNodes(function(Q){A._updateItems();A._updateSelected();_.s9(X,"iron-items-changed",Q,{bubbles:!1,cancelable:!1})})});
A._updateItems&&A._updateItems===_.jv._updateItems&&(A._updateItems=function(){var f=_.iS(A.hostElement).queryDistributedElements(A.selectable||"*");f=Array.prototype.filter.call(f,A._bindFilterItem);A._setItems(f)});
A._computeKeyboardClass&&(A._computeKeyboardClass=function(f){_.rH(A.hostElement,"keyboard-focus",f)});
A.ensureRipple&&(A.ensureRipple=function(f){if(A.hasRipple&&!A.hasRipple()){if(!A._createRipple)return;A._ripple=A._createRipple();A._ripple.noink=A.noink;var X=A._rippleContainer||A.hostElement;X&&_.sF(X).appendChild(A._ripple)}var Q;if(f&&((Q=A._ripple)==null?0:Q.uiDownAction)){X=_.sF(A._rippleContainer||A.hostElement);var q;Q=(q=f.composedPath())==null?void 0:q[0];X.contains(Q)&&A._ripple.uiDownAction(f)}});
A._updateMultiselectable&&(A._updateMultiselectable=function(f){f?A.hostElement.setAttribute("aria-multiselectable","true"):A.hostElement.removeAttribute("aria-multiselectable")})};
b7l=function(A,t,f){f=_.U(f);for(var X=f.next();!X.done;X=f.next())t9b(X.value.constructor,A);t9b(t.constructor,A)};
yns=function(A,t){A=_.U(A);for(var f=A.next();!f.done;f=A.next())if(f=f.value,f.type==="signal"){var X=f.propertyKey;if(t.hasOwnProperty(X)&&t[X]!=null&&f.attributeType===Object){a:{X=t[X].constructor;for(var Q=_.U(WB5),q=Q.next();!q.done;q=Q.next())if(q=q.value,X===q){X=q;break a}X=Object}f.attributeType=X}}};
v9q=function(){};
LBT=function(A){var t;return(t=A.hostElement)!=null?t:A};
pyg=function(){throw Error("Ng");};
E9z=function(A,t){A.constructor.prototype.useSignals=!0;var f=new A.constructor;b7l(f,A,t.behaviors);yns(t.reactiveSchemas,f);f={};for(var X=_.U(t.reactiveSchemas),Q=X.next();!Q.done;Q=X.next())Q=Q.value,Q.type==="signal"&&(f[Q.propertyKey]=Q.attributeType);var q={copyPropertiesToProto:pyg,didRegister:!1,typesForSignals:f},e=["disable-upgrade"].concat(_.YV(t.observedAttributes)),G=function(N){YF.call(this,A,t,q,N)};
_.R(G,YF);_.PV.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return e}}});
q.copyPropertiesToProto=function(){for(var N=0;N<t.behaviors.length;N++)XNb(t.behaviors[N],G.prototype);XNb(A,G.prototype)};
t.legacyOptimizations||q.copyPropertiesToProto();G.prototype.is=A.is;return G};
n9x=function(A,t){if(Object.getPrototypeOf(t.prototype).constructor!==_.F)throw Error("Og");t.prototype.is=A.is;return E9z(t.prototype,A)};
Ds5=function(A){return A.type==="compute"||A.type==="computeWithMethod"};
FBT=function(A){for(var t=A.reactiveSchemas.filter(Ds5),f=new Map,X=new Map,Q=new Map,q=_.U(t),e=q.next();!e.done;e=q.next())e=e.value,f.set(e.propertyKey,e),X.set(e.propertyKey,[]),Q.set(e.propertyKey,0);q=0;t=_.U(t);for(e=t.next();!e.done;e=t.next()){e=e.value;for(var G=_.U(e.type==="computeWithMethod"?e.method.args:e.args),N=G.next();!N.done;N=G.next())N=N.value,N.type!=="literal"&&(N=N.path.split(".")[0],X.has(N)&&(X.get(N).push(e.propertyKey),Q.set(e.propertyKey,Q.get(e.propertyKey)+1),q++))}e=
[].concat(_.YV(X.keys())).filter(function(z){return Q.get(z)===0});
for(t=[];e.length;)for(G=e.shift(),t.push(f.get(G)),G=_.U(X.get(G)),N=G.next();!N.done;N=G.next())N=N.value,Q.set(N,Q.get(N)-1),q--,Q.get(N)===0&&e.push(N);f=A.reactiveSchemas.filter(function(z){return!Ds5(z)});
A.reactiveSchemas=[].concat(_.YV(f),_.YV(t))};
IZz=function(A,t){if(t.properties)for(var f=_.U(Object.entries(t.properties)),X=f.next();!X.done;X=f.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;A.properties[X]=typeof Q==="function"?{type:Q}:Q}t.observers&&A.observers.push.apply(A.observers,_.YV(t.observers));t.disabledPolySiReactions&&A.disabledPolySiReactions.push.apply(A.disabledPolySiReactions,_.YV(t.disabledPolySiReactions))};
xsb=function(A,t){for(var f=t.length-1;f>=0;f--){var X=t[f];Array.isArray(X)?xsb(A,X):A.indexOf(X)<0&&A.unshift(X)}};
jZ5=function(A,t){A.reactiveSchemas=A.reactiveSchemas.filter(function(f){return f.type==="observe"&&t.includes(f.method.methodName)||Ds5(f)&&t.includes(f.propertyKey)?!1:!0})};
VB5=function(A,t){var f=t.prototype,X,Q,q={is:A.is,reactiveSchemas:[],observedAttributes:[],behaviors:[g1x.InjectBehavior,mI.prototype],disableElementRegistration:A.disableElementRegistration,provide:(X=A.providers)!=null?X:[],reactivityMode:A.reactivityMode,signalProperties:(Q=f.signalProperties)!=null?Q:[]};"template"in t?q.templateGetter=function(){return t.template}:A.getTemplate&&(q.templateGetter=A.getTemplate);
f.behaviors&&xsb(q.behaviors,f.behaviors);Yk5(q,t);return q};
Yk5=function(A,t){for(var f=t.prototype,X={properties:{},observers:[],disabledPolySiReactions:[]},Q=_.U(A.behaviors),q=Q.next();!q.done;q=Q.next())IZz(X,q.value);IZz(X,f);if(A.signalProperties)for(f=_.U(A.signalProperties),Q=f.next();!Q.done;Q=f.next())delete X.properties[Q.value];f=_.U(Object.entries(X.properties));for(Q=f.next();!Q.done;Q=f.next()){q=_.U(Q.value);Q=q.next().value;q=q.next().value;var e=void 0;if((e=A.signalProperties)==null||!e.includes(Q)){e=void 0;var G=A,N=q.type;if(!N)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{N=Reflect.getMetadata("design:type",t,Q);for(var z=_.U(Z7T),T=z.next();!T.done;T=z.next())if(T=T.value,N===T){N=T;break a}N=Object}else N=String;q.computed||q.selector||(G.reactiveSchemas.push({type:"signal",propertyKey:Q,value:q.value,attributeType:N,readOnly:q.readOnly}),G.observedAttributes.push(_.ea(Q)));q.reflectToAttribute&&G.reactiveSchemas.push({type:"reflect",propertyKey:Q});if(q.computed){N=mnb(q.computed);if(!N)throw Error("Pg");G.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Q,method:N,value:q.value})}q.observer&&G.reactiveSchemas.push({type:"observe",method:{methodName:q.observer,args:[{type:"path",path:Q}]}});q.notify&&G.reactiveSchemas.push({type:"notify",propertyKey:Q});q.selector&&G.reactiveSchemas.push({type:"redux",propertyKey:Q,selector:q.selector,selectorArgs:(e=q.selectorArgs)!=null?e:[]})}}o95&&FBT(A);t=_.U(X.observers);for(Q=t.next();!Q.done;Q=t.next())f=A,Q=Q.value,(q=mnb(Q))?f.reactiveSchemas.push({type:"observe",method:q}):console.log('Warning: unable to parse observe declaration: "'+
Q+'"');jZ5(A,X.disabledPolySiReactions)};
ds5=function(A,t){for(var f=0;f<t.length;f++){var X=t[f],Q=void 0;(Q=X).showHideApi!=null||(Q.showHideApi={});Q=void 0;!!A!==!((Q=X.showHideApi)==null||!Q.hideTemplateChildren)&&(X.nodeType===Node.TEXT_NODE?A?(X.showHideApi.polymerTextContent=X.textContent,X.textContent=""):(Q=void 0,X.textContent=(Q=X.showHideApi.polymerTextContent)!=null?Q:null):X instanceof Element&&X.localName==="slot"?A?(X.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.XD)((0,_.XD)(X).parentNode).replaceChild(X.showHideApi.polymerReplaced,
X)):(Q=X.showHideApi.polymerReplaced)&&(0,_.XD)((0,_.XD)(Q).parentNode).replaceChild(X,Q):X instanceof HTMLElement&&X.style&&(A?(X.showHideApi.polymerDisplay=X.style.display,X.style.display="none"):X.style.display=X.showHideApi.polymerDisplay));X.showHideApi.hideTemplateChildren=A;X.showHideChildren&&X.showHideChildren(A)}};
$s0=function(){if(!Skg){var A=document.createElement("style");A.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(A);Skg=!0}};
V_=function(){return _.M("disable_hidden_dom_if_using_stamper")};
H75=function(A,t){var f=_.ZK().getState();return t?A.apply(null,[f].concat(_.YV(t))):A(f)};
g9b=function(){if(aZu)return aZu;var A=_.U(_.hZ(0,void 0,"MB1Hb")),t=A.next().value;A.next();var f=A.next().value;_.ZK().subscribe(function(){KBx(f)});
return aZu=t};
KBx=function(A){wyb||(wyb=!0,Promise.resolve().then(function(){A(function(t){return t+1});
wyb=!1}))};
_.ZK=function(){return sZu.getAppStore()};
k9b=function(A,t){return sZu.getSelectFn()(A,t)};
_.og=function(A){sZu.getDispatchFn()(A)};
rnx=function(A,t){var f={},X;for(X in A)f[X]=t(A[X],X);return f};
_.dR=function(A,t){return function(){var f;return(f=_.$f(A))!=null?f:t}};
_.Sv=function(A,t){var f=Object.assign({},A),X;for(X in t)t.hasOwnProperty(X)&&(f[X]=_.dR(A[X],t[X]));return f};
Acp=function(A,t,f){A instanceof Element&&(f.debugName||(f.debugName="<"+A.tagName.toLowerCase()+(A.tagName.includes("-")?">":"."+A.className+">")),_.M("ytwiz_enable_debug_component_props")&&(A.debugProps||(A.debugProps=rnx(t,function(X){return function(){return X()}}))))};
_.I=function(A,t){var f=function(X){return mNs("ytComponent",{},function(Q){var q=tbp={};var e;if(((e=f)==null?0:e.idomCompat)&&X.renderedFromIdom){var G;e=typeof f.idomCompat==="object"?(G=f)==null?void 0:G.idomCompat.callbacks:{};e=_.U(fbx(X,e));G=e.next().value;e.next();e=e.next().value;var N=Xcx(A,G);q.privateValue=N;tbp=void 0;Acp(N,G,f);Q.addAttributes({debugName:f.debugName});Q=Psx(N);Q=Array.isArray(Q)?Q[0]:Q;Q[mh]||(Q[mh]={});Q[mh].updateSignalsFromIdomProps=e;Q$q(G,N);return N}e=rnx(X,qsT);
G=Xcx(A,e);q.privateValue=G;tbp=void 0;Acp(G,e,f);Q.addAttributes({debugName:f.debugName});Q$q(e,G);return G})};
f.debugName=t===void 0?"":t;return f};
Xcx=function(A,t){A=A(t);return v5(A)};
Jcz=function(A,t){A[t]||(A=new _.xj("IDOM interop setter undefined. Key:",t),_.HQ(A))};
qsT=function(A,t){return t==="children"||t==="ref"||typeof A==="function"||A===void 0?A:function(){return _.$f(A)}};
fbx=function(A,t){var f={},X={},Q={},q={},e;for(e in A){q={key$jscomp$952:q.key$jscomp$952};q.key$jscomp$952=e;var G=A[q.key$jscomp$952];if(q.key$jscomp$952==="children"||q.key$jscomp$952==="ref")f[q.key$jscomp$952]=G;else if(typeof G==="function")q.key$jscomp$952 in t||G.length>0?(Q[q.key$jscomp$952]=G,f[q.key$jscomp$952]=function(z){return function(){return Q[z.key$jscomp$952].apply(Q,_.YV(_.Hu.apply(0,arguments)))}}(q)):f[q.key$jscomp$952]=G;
else if(!(A[q.key$jscomp$952]===void 0&&q.key$jscomp$952 in t)){var N=_.U(_.hZ(A[q.key$jscomp$952],{debugName:q.key$jscomp$952+":cwis"},"Xpwvze"));G=N.next().value;N=N.next().value;f[q.key$jscomp$952]=G;X[q.key$jscomp$952]=N}}return[f,X,function(z){var T={},O;for(O in z)T={key$jscomp$951:T.key$jscomp$951,val$jscomp$122:void 0},T.key$jscomp$951=O,T.val$jscomp$122=z[T.key$jscomp$951],T.key$jscomp$951!=="children"&&T.key$jscomp$951!=="ref"&&(typeof T.val$jscomp$122==="function"?T.key$jscomp$951 in t?
Q[T.key$jscomp$951]=T.val$jscomp$122:T.val$jscomp$122.length>0&&(Q[T.key$jscomp$951]=T.val$jscomp$122,_.K4(new _.xj("Callback detected that was not set in the idomCompat callbacks map. Key:",T.key$jscomp$951))):T.key$jscomp$951 in t&&T.val$jscomp$122===void 0||(Jcz(X,T.key$jscomp$951),LF(function(c){return function(){X[c.key$jscomp$951](c.val$jscomp$122)}}(T))))}]};
GNb=function(A,t,f){var X=sDb(A.prototype,U5p,A.prototype.behaviors);X.prototype.is=t;X.prototype.localName=t;f&&eOs(X,f);return function(Q){Q&&(X.prototype.hostElement=Q);var q=new X;q.root=q;q.hostElement=Q;return q}};
eOs=function(A,t){var f;Object.defineProperty(A.prototype,"_template",{get:function(){f===void 0&&(f=t());return f},
set:function(X){f=X},
configurable:!0,enumerable:!0})};
Pqb=function(A,t,f,X){function Q(){if(!B){for(var h=new Set,W=_.U(T),L=W.next();!L.done;L=W.next()){L=L.value;for(var E=_.U(Object.getOwnPropertyNames(L)),D=E.next();!D.done;D=E.next()){D=D.value;var S=void 0,Z=(S=Object.getOwnPropertyDescriptor(L,D))==null?void 0:S.value;Z&&Z instanceof Function&&!$F(D)&&(!G[D]||_.M("polymer_forward_method_killswitch"))&&h.add(D)}}W=_.U(Object.entries(Object.getOwnPropertyDescriptors(A.prototype)));for(L=W.next();!L.done;L=W.next())E=_.U(L.value),L=E.next().value,
E=E.next().value,E.value instanceof Function&&!$F(L)&&h.add(L);B=h}return B}
lb5(A,t,X==null?void 0:X.providers);kR5(A.prototype,A,!0);var q=GNb(A,t,f),e,G=(e=A.prototype.properties)!=null?e:{},N,z,T=(z=(N=A.prototype.behaviors)==null?void 0:N.flat(Infinity))!=null?z:[];f=_.U(T);for(e=f.next();!e.done;e=f.next())G=Object.assign({},e.value.properties,G);var O=[].concat(_.YV(NI5),_.YV(Object.keys(G).map(function(h){return _.ea(h)}))),c=!1,B;
return{ctor:function(h,W){var L=q(h),E,D;h=[].concat(_.YV((E=X==null?void 0:X.allowedProps)!=null?E:[]),_.YV((D=X==null?void 0:X.allowedPropsFromBehaviors)!=null?D:[]));L.allowedProps=h.length>0?h:void 0;E={};D=_.U(O);for(h=D.next();!h.done;h=D.next())h=h.value,E[h]=_.Gr(h);L.__dataAttributes=E;var S=L.ready.bind(L);L.ready=function(){W.beforeReady();S();if(Th(t)&&!c){var Z=L.__templateInfo;if(Z==null?0:Z.hostProps){Z=_.U(Object.keys(Z.hostProps));for(var d=Z.next();!d.done;d=Z.next())OQ(t,d.value,
"PROPERTY_ACCESS_GET_INTERNAL")}c=!0}};
L._overrideLegacyUndefined=!0;return L},
props:G,observedAttributes:O,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var h=[],W=new Set,L=_.U(Object.keys(G)),E=L.next();!E.done;E=L.next())E=E.value,h.push([E,G[E].readOnly]),W.add(E);L=Q();E=_.U(Object.keys(Object.getOwnPropertyDescriptors(A.prototype)));for(var D=E.next();!D.done;D=E.next())D=D.value,!uYu(D)||L.has(D)||W.has(D)||(h.push([D,!1]),W.add(D));W=_.U(zOx);for(L=W.next();!L.done;L=W.next())h.push([L.value,!0]);return h},
getPropsToForwardBeforeReady:function(h){for(var W=[],L=_.U(Object.entries(h)),E=L.next();!E.done;E=L.next()){var D=_.U(E.value);E=D.next().value;D=D.next().value;if(uYu(E)&&!(D instanceof Function)&&(W.push([E,!1]),Th(t))){var S=D=void 0;(S=(D=h)._createPropertyAccessor)==null||S.call(D,E)}}return W},
shouldForwardProp:uYu,shouldLog:Th}};
lb5=function(A,t,f){wlx(A,f);A.prototype.behaviors.unshift(TIb);if(xmq()){if(Th(t)){var X;(X=A.prototype).behaviors!=null||(X.behaviors=[]);A.prototype.behaviors.unshift(ZQg())}o15(A)}_.b(mI.prototype)(A.prototype,"__templateHelpers")};
$F=function(A){return iD5.has(A)||A.startsWith("__compute__")};
uYu=function(A){return!$F(A)&&!A.startsWith("_")&&!A.endsWith("_")};
Cqb=function(A,t){function f(){var c=N();c=_.U(c);for(var B=c.next();!B.done;B=c.next()){var h=_.U(B.value);B=h.next().value;h=h.next().value;ODu(O.prototype,B,h)}X=!0}
var X=!1,Q=A.ctor,q=A.getInitialMethods,e=A.observedAttributes,G=A.getPropsToForwardBeforeReady,N=A.getPropsToForwardBeforeRegister,z=A.shouldForwardProp,T=A.shouldLog,O=function(){var c=HTMLElement.call(this)||this;c.didForwardDynamicProps=!1;c.loggingStatus={};X||f();c.inst=Q(c,{beforeReady:function(){c.didForwardDynamicProps||(c.forwardDynamicProps(),c.didForwardDynamicProps=!0)}});
c.controllerProxy=YRx(c.inst,t);c.forwardMethods();return c};
_.R(O,HTMLElement);O.prototype.forwardMethods=function(){for(var c=this,B=_.U(this.inst.getExtraMethodsToForward()),h=B.next(),W={};!h.done;W={method$jscomp$65:void 0},h=B.next()){var L=_.U(h.value);h=L.next().value;L=L.next().value;W.method$jscomp$65=L;this[h]=function(E){return function(){return E.method$jscomp$65.call.apply(E.method$jscomp$65,[c.inst].concat(_.YV(_.Hu.apply(0,arguments))))}}(W)}B=_.U(q());
for(W=B.next();!W.done;W=B.next())W=W.value,z(W)&&ccp(this,W),T(t)&&!$F(W)&&BI5(this.inst,W)};
O.prototype.forwardDynamicProps=function(){var c=G(this.inst);c=_.U(c);for(var B=c.next();!B.done;B=c.next()){var h=_.U(B.value);B=h.next().value;h=h.next().value;ODu(this,B,h);T(t)&&!$F(B)&&MbT(this.inst,B)}};
O.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
O.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
O.prototype.attributeChangedCallback=function(c,B,h){this.inst.attributeChangedCallbackWrapper(c,B,h)};
_.PV.Object.defineProperties(O.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return t}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.PV.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return e}}});
customElements.define(t,O)};
ODu=function(A,t,f){A.hasOwnProperty(t)||Object.defineProperty(A,t,{get:function(){var X,Q=((X=A.is)!=null?X:A.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||OQ(Q,t,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,X=this.polymerController[t],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,X},
set:function(X){if(!f){var Q,q=((Q=A.is)!=null?Q:A.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||OQ(q,t,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=t,this.loggingStatus.bypassProxyController=!0,this.polymerController[t]!==X&&(Q={},this.polymerController.setProperties((Q[t]=X,Q)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
ccp=function(A,t,f){var X=A.polymerController;A[t]=function(){var Q=_.Hu.apply(0,arguments);A.loggingStatus.currentExternalCall=t;A.loggingStatus.bypassProxyController=!0;var q,e=((q=A.is)!=null?q:A.tagName).toLowerCase();OQ(e,t,"PROPERTY_ACCESS_CALL_EXTERNAL");var G;q=(G=f!=null?f:X[t])==null?void 0:G.call.apply(G,[X].concat(_.YV(Q)));A.loggingStatus.currentExternalCall=void 0;A.loggingStatus.bypassProxyController=!1;return q}};
BI5=function(A,t){var f=A.hostElement,X=A[t];A[t]=function(){var Q=_.Hu.apply(0,arguments);if(f.loggingStatus.currentExternalCall!==t){var q,e=((q=f.is)!=null?q:f.tagName).toLowerCase();OQ(e,t,"PROPERTY_ACCESS_CALL_INTERNAL")}return X==null?void 0:X.apply(A,Q)}};
MbT=function(A,t){var f=Object.getOwnPropertyDescriptor(A,t);f&&!f.get&&Object.defineProperty(A,t,{get:function(){VA5(A.hostElement,t);return f.value},
set:function(X){cU(A.hostElement,t);f.value=X}})};
hOg=function(A){return _.M("poly_si_dom_repeat_detached_fix_killswitch")||A.tagName!=="PS-DOM-REPEAT"?A.tagName==="DOM-REPEAT":!0};
m55=function(A,t){var f=ROx(A);A instanceof Element&&f.unshift(A);A=_.U(f.filter(hOg));for(var X=A.next();!X.done;X=A.next()){var Q=void 0;X=_.U((Q=X.value.__instances)!=null?Q:[]);for(Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,Q.root){Q=Array.from(Q.root.children);Q=_.U(Q);for(var q=Q.next();!q.done;q=Q.next())f.push.apply(f,_.YV(m55(q.value,t)))}}return f.filter(function(e){return e.usePatchedLifecycles&&e.lifecycleIsConnected===t})};
ROx=function(A){var t=null;A instanceof Element?t=Element.prototype.querySelectorAll:A instanceof DocumentFragment&&(t=DocumentFragment.prototype.querySelectorAll);return t?Array.from(t.call(A,"*")):[]};
HU=function(A){_.CF(function(){for(var t=_.U(m55(A,!1)),f=t.next();!f.done;f=t.next()){f=f.value;f.lifecycleIsConnected=!0;try{var X=void 0,Q=void 0,q=void 0,e=void 0;(X=(e=f.polymerController)!=null?e:f)==null||(q=(Q=X).connectedCallback)==null||q.call(Q)}catch(G){_.HQ(G)}}})};
ag=function(A){_.CF(function(){for(var t=_.U(m55(A,!0)),f=t.next();!f.done;f=t.next()){f=f.value;f.lifecycleIsConnected=!1;try{var X=void 0,Q=void 0,q=void 0,e=void 0;(X=(e=f.polymerController)!=null?e:f)==null||(q=(Q=X).disconnectedCallback)==null||q.call(Q)}catch(G){_.HQ(G)}}})};
EK0=function(){if(!bD0){bD0=!0;var A=[Node];KN&&A.push(KN.Wrapper);var t=Node.prototype.insertBefore,f=Node.prototype.removeChild;A=_.U(A);for(var X=A.next(),Q={};!X.done;Q={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},X=A.next())X=X.value,Q.nativeInsertBefore=X.prototype.insertBefore,X.prototype.insertBefore=function(e){return function(G,N){if(G instanceof DocumentFragment){var z=Array.from(G.children);G=e.nativeInsertBefore.call(this,G,N);
if(this.isConnected&&e.nativeInsertBefore===t)for(N=_.U(z),z=N.next();!z.done;z=N.next())HU(z.value);return G}z=G instanceof Element&&G.isConnected;N=e.nativeInsertBefore.call(this,G,N);z&&ag(G);this.isConnected&&HU(G);return N}}(Q),Q.nativeAppendChild=X.prototype.appendChild,X.prototype.appendChild=function(e){return function(G){if(G instanceof DocumentFragment){var N=Array.from(G.children);
G=e.nativeAppendChild.call(this,G);if(this.isConnected){N=_.U(N);for(var z=N.next();!z.done;z=N.next())HU(z.value)}return G}N=G instanceof Element&&G.isConnected;z=e.nativeAppendChild.call(this,G);N&&ag(G);this.isConnected&&HU(G);return z}}(Q),Q.nativeRemoveChild=X.prototype.removeChild,X.prototype.removeChild=function(e){return function(G){var N=G instanceof Element&&G.isConnected,z=e.nativeRemoveChild.call(this,G);
N&&f===e.nativeRemoveChild&&ag(G);return z}}(Q),Q.nativeReplaceChild=X.prototype.replaceChild,X.prototype.replaceChild=function(e){return function(G,N){if(G instanceof DocumentFragment){var z=Array.from(G.children);
G=e.nativeReplaceChild.call(this,G,N);if(this.isConnected)for(ag(N),N=_.U(z),z=N.next();!z.done;z=N.next())HU(z.value);return G}z=G instanceof Element&&G.isConnected;var T=this.isConnected,O=e.nativeReplaceChild.call(this,G,N);T&&ag(N);z&&ag(G);T&&HU(G);return O}}(Q);
A=[Element];KN&&A.push(KN.Wrapper);A=_.U(A);X=A.next();for(Q={};!X.done;Q={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},X=A.next())X=X.value,X.prototype.before=Wwx(X.prototype.before),X.prototype.after=Wwx(X.prototype.after),Q.nativeReplaceWith=X.prototype.replaceWith,X.prototype.replaceWith=function(e){return function(){var G=_.Hu.apply(0,arguments),N=_.U(ycq(G)),z=N.next().value,
T=N.next().value;N=this.isConnected;e.nativeReplaceWith.apply(this,G);G=_.U(T);for(T=G.next();!T.done;T=G.next())ag(T.value);if(N)for(ag(this),z=_.U(z),N=z.next();!N.done;N=z.next())N=N.value,N instanceof Element&&HU(N)}}(Q),Q.nativeRemove=X.prototype.remove,X.prototype.remove=function(e){return function(){var G=this.isConnected;
e.nativeRemove.call(this);G&&ag(this)}}(Q),Q.nativeInsertAdjacentElement=X.prototype.insertAdjacentElement,X.prototype.insertAdjacentElement=function(e){return function(G,N){var z=N.isConnected;
G=e.nativeInsertAdjacentElement.call(this,G,N);z&&ag(N);G.isConnected&&HU(G);return G}}(Q),Q.nativeSetAttribute=X.prototype.setAttribute,X.prototype.setAttribute=function(e){return function(G,N){var z=vKz(this);
if(!z.usePatchedLifecycles)return e.nativeSetAttribute.call(this,G,N);var T=this.getAttribute(G);e.nativeSetAttribute.call(this,G,N);N=this.getAttribute(G);Lwp(z,G,T,N)}}(Q),Q.nativeRemoveAttribute=X.prototype.removeAttribute,X.prototype.removeAttribute=function(e){return function(G){var N=vKz(this);
if(!N.usePatchedLifecycles)return e.nativeRemoveAttribute.call(this,G);var z=this.getAttribute(G);e.nativeRemoveAttribute.call(this,G);z!==null&&Lwp(N,G,z,null)}}(Q),Q.nativeToggleAttribute=X.prototype.toggleAttribute,X.prototype.toggleAttribute=function(e){return function(G,N){var z=vKz(this);
if(!this.usePatchedLifecycles)return e.nativeToggleAttribute.call(this,G,N);var T=this.getAttribute(G),O=T!==null;N=e.nativeToggleAttribute.call(this,G,N);N!==O&&Lwp(z,G,T,N?"":null);return N}}(Q);
A=[Document,DocumentFragment,Element,ShadowRoot];KN&&A.push(KN.Wrapper);A=_.U(A);for(Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.prototype.prepend=Wwx(Q.prototype.prepend),Q.prototype.append=Wwx(Q.prototype.append);(KN==null?void 0:KN.noPatch)===!0&&pcs();document.readyState==="complete"?HU(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&HU(document.body)});
var q=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");q&&q.get&&q.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:q.enumerable,configurable:!0,get:q.get,set:function(e){e||ag(this);q.set.call(this,e);return e}})}};
Wwx=function(A){return function(){var t=_.Hu.apply(0,arguments),f=_.U(ycq(t)),X=f.next().value;f=f.next().value;A.apply(this,t);t=_.U(f);for(f=t.next();!f.done;f=t.next())ag(f.value);if(this.isConnected)for(X=_.U(X),t=X.next();!t.done;t=X.next())t=t.value,t instanceof Element&&HU(t)}};
pcs=function(){for(var A=_.U(nKl),t=A.next();!t.done;t=A.next()){t=t.value.prototype;for(var f=_.U(D5T),X=f.next();!X.done;X=f.next()){X=X.value;var Q=Object.getOwnPropertyDescriptor(t,X);Q&&Object.defineProperty(t,"__shady_native_"+X,Q)}}};
Lwp=function(A,t,f,X){var Q,q;if((Q=A.polymerController)==null?0:(q=Q.observedAttributes)==null?0:q.includes(t))if(A=A.polymerController,A.attributeChangedCallbackWrapper)A.attributeChangedCallbackWrapper.call(A,t,f,X);else{var e;(e=A.attributeChangedCallback)==null||e.call(A,t,f,X)}};
ycq=function(A){var t=[],f=[];A=_.U(A);for(var X=A.next();!X.done;X=A.next())X=X.value,X instanceof Element&&X.isConnected&&f.push(X),X instanceof DocumentFragment?t.push.apply(t,_.YV(Array.from(X.children))):t.push(X);return[t,f]};
vKz=function(A){return!(A instanceof Element)&&A.node instanceof Element?A.node:A};
FwT=function(A,t){var f=t?["children"].concat(_.YV(t)):["children"];t=[];f=_.U(f);for(var X=f.next();!X.done;X=f.next()){var Q=X.value;if(A.hasOwnProperty(Q)){X=A[Q];X=typeof X==="function"?X():X;X=Array.isArray(X)?X:[X];X=v5(X).flat();if(Q!=="children"){Q=H90(Q);for(var q=_.U(X),e=q.next();!e.done;e=q.next())e=e.value,e instanceof Element&&e.setAttribute("slot",Q)}t.push(X)}}t.length===0?A=[]:(A=v5(_.u("div",null,t)),A=Array.from(A.childNodes));return A};
x5s=function(A,t,f){var X={};_.ZM(function(){var Q={},q;for(q in t)if(t.hasOwnProperty(q)){var e=void 0,G=void 0;if(!(((e=f.slotProps)==null?0:e.includes(q))||q==="children"||((G=f.callbackProps)==null?0:G.includes(q))||q==="ref")&&(e=_.$f(t[q]),X[q]!==e)){X[q]=e;G=void 0;var N=(G=A.hostElement)!=null?G:A;!f.skipHostForwardedProps&&Ibg.has(q)&&(N[q]=e);Q[q]=e}}LF(function(){if(A.setProperties)A.setProperties(Q);else for(var z=_.U(Object.entries(Q)),T=z.next();!T.done;T=z.next()){var O=_.U(T.value);
T=O.next().value;O=O.next().value;A[T]=O}})},"j")};
Ysx=function(A,t,f,X){var Q=FwT(f,X.slotProps),q=(0,_.XD)(A);Q=_.U(Q);for(var e=Q.next();!e.done;e=Q.next())q.appendChild(e.value);x5s(t,f,X);X=_.U(X.callbackProps||[]);Q=X.next();for(q={};!Q.done;q={kebabEventName:void 0,eventListener:void 0},Q=X.next())e=Q=Q.value,String(Q).substring(0,2)==="on"&&f[e]?(q.kebabEventName=H90(String(Q).substring(2)),q.eventListener=f[e],A.addEventListener(q.kebabEventName,q.eventListener),_.dD(function(T){return function(){A.removeEventListener(T.kebabEventName,T.eventListener)}}(q))):
t[e]=f[e];
if(f.ref){f=_.U(j$u(f.ref));var G=f.next().value,N=f.next().value,z=t.attached.bind(t);t.attached=function(){G(A);z()};
_.dD(function(){N()})}};
j$u=function(A){if(typeof A==="function"){var t;return[function(f){t=A(f)},
function(){var f;(f=t)==null||f()}]}if(!A.onRender||!A.onUnmount)throw Error("Tg");
return[A.onRender,A.onUnmount]};
Vbb=function(A,t){t=t===void 0?{}:t;var f=function(X){var Q=document.createElement(A),q;var e=(q=Q.polymerController)!=null?q:Q;Ysx(Q,e,X,t);return Q};
f.debugName=A+" (CoW wrapped)";return f};
Ssp=function(A,t,f,X,Q){X=X===void 0?{}:X;var q=ZDx,e=!1;q?(e=!0,ZDx=void 0):(oKl=t,q=document.createElement(t),oKl=void 0);var G=q;G.usePatchedLifecycles=!0;G.lifecycleIsConnected=!1;q.loggingStatus={};var N=d5x(A,t,q,X,Q);_.dD(function(){G.lifecycleIsConnected&&(G.lifecycleIsConnected=!1,N.disconnectedCallback())});
e||(q.__noInsertionPoint=!0,Ysx(q,N,f,X));return q};
d5x=function(A,t,f,X,Q){Q=Q===void 0?Pqb:Q;$5s[t]!=null||($5s[t]=Q(A,t,X==null?void 0:X.getTemplate,X));var q=$5s[t],e=q.ctor;Q=q.getInitialMethods;var G=q.getPropsToForwardBeforeReady;A=q.getPropsToForwardBeforeRegister;X=q.shouldForwardProp;var N=q.observedAttributes,z=q.shouldLog,T=e(f,{beforeReady:function(){var O=T;O._takeAttributes?O._takeAttributes():O.setPropertiesFromInitialAttributeValues&&O.setPropertiesFromInitialAttributeValues();O=_.U(G(f.polymerController));for(var c=O.next();!c.done;c=
O.next()){var B=_.U(c.value);c=B.next().value;B=B.next().value;ODu(f,c,B);z(t)&&!$F(c)&&MbT(f.polymerController,c)}f.polymerController=YRx(T,t)}});
f.polymerController=T;f.polymerController.observedAttributes=N;q=_.U(T.getExtraMethodsToForward());for(e=q.next();!e.done;e=q.next())N=_.U(e.value),e=N.next().value,N=N.next().value,ccp(f,e,N);Q=_.U(Q());for(q=Q.next();!q.done;q=Q.next())q=q.value,X(q)&&ccp(f,q),z(t)&&!$F(q)&&BI5(T,q);A=_.U(A());for(X=A.next();!X.done;X=A.next())Q=_.U(X.value),X=Q.next().value,Q=Q.next().value,ODu(f,X,Q);return T};
HDb=function(A){var t=gR;gR=A;return t};
gKg=function(A){if(ab5.has(A)&&gR&&Kwx(gR)===A){var t;(t=gR)._numRenders!=null||(t._numRenders=0);gR._numRenders++;if(gR._numRenders>1)throw Error("Ug");return gR}};
s$q=function(A){var t=Kwx(A);gR!==A&&t.includes("-")&&wc0.set(A,!0)};
Kwx=function(A){var t;return(t=A==null?void 0:A.tagName.toLowerCase())!=null?t:""};
kN5=function(A,t){if(A.componentType===EH)throw Error("Vg");ab5.add(t);var f=function(){var X=HTMLElement.call(this)||this;X.is=t;if(oKl===t)return X.isInert=!0,X;X.createElement();return X};
_.R(f,HTMLElement);f.prototype.createElement=function(){if(!this.isInert){ZDx=this;var X=_.U(_.ouq(function(){return _.u(A,null)})).next().value;
ZDx=void 0;V9b(this);return X}};
customElements.define(t,f)};
Amg=function(A,t,f,X,Q){A.prototype.is=t;(X==null?0:X.useSink)?rcq(A,t,f,X,Q):(f=Pqb(A,t,f,X),Cqb(f,t));return A};
rcq=function(A,t,f,X,Q){EK0();var q=_.I(function(e){return Ssp(A,t,e,Object.assign({},X,{getTemplate:f}),Q)},"k");
q.debugName=t+" (CoW wrapped)";kN5(q,t);return q};
fOq=function(A){return!tsx.has(A)};
qNp=function(A,t,f,X){function Q(){if(!O){for(var c=new Set(Xkz),B=_.U(q.behaviors),h=B.next();!h.done;h=B.next()){h=h.value;for(var W=_.U(Object.getOwnPropertyNames(h)),L=W.next();!L.done;L=W.next()){L=L.value;var E=void 0,D=(E=Object.getOwnPropertyDescriptor(h,L))==null?void 0:E.value;D&&D instanceof Function&&(!z[L]||_.M("polymer_forward_method_killswitch"))&&c.add(L)}}B=_.U(Object.entries(Object.getOwnPropertyDescriptors(A.prototype)));for(h=B.next();!h.done;h=B.next())W=_.U(h.value),h=W.next().value,
W=W.next().value,W.value instanceof Function&&c.add(h);O=c}return O}
var q=VB5({is:t,disableElementRegistration:!1,getTemplate:f,providers:X==null?void 0:X.providers,reactivityMode:X==null?void 0:X.reactivityMode},A);if((X==null?0:X.allowedProps)||(X==null?0:X.allowedPropsFromBehaviors)){var e,G;q.allowedProps=[].concat(_.YV((e=X.allowedProps)!=null?e:[]),_.YV((G=X.allowedPropsFromBehaviors)!=null?G:[]))}var N=n9x(q,A);t=N.observedAttributes;var z={};f=_.U(q.reactiveSchemas);for(X=f.next();!X.done;X=f.next())if(X=X.value,X.type==="signal")z[X.propertyKey]={readOnly:X.readOnly},
X.readOnly&&(z[Gyg(X.propertyKey)]={readOnly:!0});else if(X.type==="compute"||X.type==="computeWithMethod"||X.type==="redux")z[X.propertyKey]={readOnly:!0};var T=q.reactiveSchemas.length,O;return{ctor:function(c,B){c=new N(c);c.beforeReady=B.beforeReady;return c},
props:z,observedAttributes:t,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var c=[],B=new Set,h=_.U(Q2b),W=h.next();!W.done;W=h.next())W=W.value,c.push([W,W!=="observers"&&W!=="properties"]),B.add(W);h=_.U(Object.keys(z));for(W=h.next();!W.done;W=h.next())W=W.value,c.push([W,z[W].readOnly]),B.add(W);h=Q();W=_.U(Object.keys(Object.getOwnPropertyDescriptors(A.prototype)));for(var L=W.next();!L.done;L=W.next())L=L.value,!fOq(L)||h.has(L)||B.has(L)||(c.push([L,!1]),B.add(L));c.push(["allowedProps",
!0]);return c},
getPropsToForwardBeforeReady:function(c){var B=[];c=_.U(Object.keys(c));for(var h=c.next();!h.done;h=c.next()){h=h.value;var W=Q();fOq(h)&&!W.has(h)&&B.push([h,!1])}c=_.U(q.reactiveSchemas.slice(T));for(h=c.next();!h.done;h=c.next())h=h.value,h.type!=="compute"&&h.type!=="computeWithMethod"&&h.type!=="redux"&&h.type!=="signal"||B.push([h.propertyKey,h.type==="signal"?h.readOnly:!0]);return B},
shouldForwardProp:fOq,shouldLog:Th}};
_.Y=function(A,t,f,X){var Q,q,e=(q=(Q=X)==null?void 0:Q.mode)!=null?q:0;X!=null||(X={});var G;(G=X).reactivityMode!=null||(G.reactivityMode=0);e===1&&_.MG("creator_poly_si_disable_list").includes(t)&&(e=2);return e===1?Amg(A,t,f,Object.assign({},X,{useSink:!0}),qNp):Amg(A,t,f,Object.assign({},X,{useSink:e===2}))};
_.wR=function(){return function(A,t,f,X){var Q,q,e=(q=(Q=X)==null?void 0:Q.mode)!=null?q:2;X!=null||(X={});var G;(G=X).reactivityMode!=null||(G.reactivityMode=0);if(e===0)throw Error("Wg`"+e);return rcq(A,t,f,X,e===1?qNp:void 0)}};
_.sQ=function(A){return _.M("creator_poly_si_killswitch")?!1:_.M("force_all_poly_si_batches")&&(A==="poly_si_all_on_test_check"||A==="creator_poly_si_batch_050"?0:A)||document.documentElement.hasAttribute("use-signals")?!0:!A||_.M(A+"_holdback_enabled")&&_.M("kevlar_polysi_holdback")?!1:_.M(A)};
kF=function(A){return A?A.icon?A.icon.iconType.toLowerCase():A.customThumbnail?"member":"":""};
Jmu=function(A){if(!A)return"";A=_.U(A);for(var t=A.next();!t.done;t=A.next())if((t=t.value)&&t.liveChatAuthorBadgeRenderer&&(t=kF(t.liveChatAuthorBadgeRenderer))&&t!=="verified")return t;return""};
Ugq=function(A,t){if(!A)return null;var f;return((f=A.find(function(X){return X&&X.liveChatAuthorBadgeRenderer?kF(X.liveChatAuthorBadgeRenderer)===t:!1}))==null?void 0:f.liveChatAuthorBadgeRenderer)||null};
_.z8q=function(A){var t=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;A=e8x(A);t=e8x(t);var f=GCq(A.hex);t=GCq(t.hex);var X=t[0]/255;var Q=t[1]/255,q=t[2]/255,e=Math.max(X,Q,q),G=Math.min(X,Q,q),N=0,z=0,T=.5*(e+G);e!=G&&(e==X?N=60*(Q-q)/(e-G):e==Q?N=60*(q-X)/(e-G)+120:e==q&&(N=60*(X-Q)/(e-G)+240),z=0<T&&T<=.5?(e-G)/(2*T):(e-G)/(2-2*T));X=[Math.round(N+360)%360,z,T];f=lOx(f,t);for(A=Nrb(A.hex);f<4.5;){A=X[2]>=.5?A.darker((4.5-f)/2):A.brighter((4.5-f)/2);f=A.toString();
Q=uKb(f);if(!Q.length)throw Error("Yd`"+f);f=Q;f=lOx(f,t)}return A.hex()};
lOx=function(A,t){A=_.Zjb(A);t=_.Zjb(t);return(Math.max(A,t)+.05)/(Math.min(A,t)+.05)};
_.rR=function(A){return"#"+("000000"+(A&16777215).toString(16)).slice(-6)};
_.PDl=function(A){for(var t=0,f=0;f<A.length;f++)t=A.charCodeAt(f)+((t<<5)-t);A="#";for(f=0;f<3;f++)A+=("00"+(t>>f*8&255).toString(16)).slice(-2);return A};
Trx=function(A){A=(A||"").split(":");A.length===1&&A.unshift("yt-icons");A[1]=A[1].toLowerCase();return A};
CDs=function(A,t){var f=(t=t===void 0?!1:t)?iel:Oel,X=t?cmz:Brb;A.getIconNames().forEach(function(Q){Q=t?Q:Q.substring(Q.indexOf(":")+1);A.name==="yt-icons"?Ms0.add(Q):Q.includes("-filled")?f.add(Q):X.add(Q)})};
A7=function(A,t,f,X){f=f===void 0?!1:f;X=X===void 0?!1:X;var Q,q,e;return _.l(function(G){if(G.nextAddress==1)return G.yield(h8x,2);if(X)return G.return(Ms0.has(A));Q=f?iel:Oel;q=f?cmz:Brb;return t?(e=A.includes("-filled")?A:A.concat("-filled"),G.return(Q.has(e))):G.return(q.has(A))})};
_.t7=function(A){if(R80(A))return A.toString();var t=mgb.get(A);if(t)return t;t=A.toLowerCase();var f="yt-icons",X=t.replace(/_/g,"-");switch(A){case "MY_CHANNEL":t="account_circle";break;case "ADD_TO_LIBRARY":t="add";break;case "ALERT_WARN_RED":t="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":t="person_music";break;case "BLOCK_USER":t="block";break;case "CAPTIONS":t="closed_caption";break;case "CLOSED_CAPTION":f="av";t="closed-caption";break;case "COLLECTION":f="maps";t="layers";break;case "CONTACT":f=
"icons";t="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":f="yt-studio-system-icons";t=X.split("creator-studio-")[1];break;case "DISMISSAL":t="close";break;case "DO_NOT_DISTURB":t="block";break;case "DOGFOOD":f="icons";t="pets";break;case "DRAFT":t="paper_corner_folded";
break;case "EMPTY_LIKE":t="like_outline";break;case "EXIT_APP":t="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":t=X;break;case "GAMES":f="ytg";t="my-games";break;case "GO_TO_PAGE":t="arrow-forward";break;case "GROUP":f="social";break;case "HIDE":t="not_interested";break;case "INPUT_COMPONENT":f="icons";t="settings-input-component";break;case "KIDS_BLOCK":t="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":f="ytg";t="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":f=
"ytg";t="membership-post-purchase";break;case "MULTIVIEW":t="screen_multi_view";break;case "MY_LOCATION":f="maps";t=X;break;case "NOTIFICATIONS_INBOX":t="NOTIFICATIONS";break;case "NEXT":t="chevron_right";break;case "OFFLINE":t="power-settings-new";break;case "PAUSE":f="miniplayer";break;case "PAYMENT":f="icons";break;case "PHONE_DOWNLOAD":t="phone_download";break;case "PREMIUM_STANDALONE":f="yt-logos";t="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":f="yt-logos";t="premium_standalone_cairo";
break;case "QUESTION_ANSWER":t="question_answer";break;case "REDEEM":f="icons";t="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":t="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":t="library_add";break;case "SCHOOL":f="yt-sys-icons";t="creator_academy";break;case "SETTINGS_LIGHT":t="settings_applications";break;case "SETTINGS_MATERIAL":t="settings";break;case "SEARCH_HISTORY":t="watch_history";break;case "SHOPPING_BAG":t="bag";break;case "SOCIAL":case "PEOPLE":f=
"yt-icons";t="people";break;case "STAFF_PICK":f="ytg";t="spotlight";break;case "START_DVR":t="add";break;case "STOP_DVR":f="av";t="stop";break;case "TAB_LIKED":t="like";break;case "TAB_INBOX":t="mail";break;case "TERMS_OF_SERVICE":f="icons";t="description";break;case "TRENDING":t="fire";break;case "UNBLOCK_USER":t="remove";break;case "UNPLUGGED_DARK_THEME":f="image";t="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":t="live";break;case "UNPLUGGED_SPORTS":f="ytu";t="visibility-off";break;
case "VIDEOS":f="av";t="play-circle-filled";break;case "YOUTUBE":f="yt-logos";t="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":f="yt-logos-ext";t="yt-logo-red-updated";break;case "YOUTUBE_LOGO":f="yt-logos-ext";t="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":f="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":f="shorts";t=X;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":f="yt-sys-icons";t="youtube_improve_tv";break;case "OUTLINE_BAG":f=
"yt-sys-icons";t="bag";break;case "QUEUE_PLAY_LAST":f="yt-sys-icons";t="list_queue_last";break;case "SLASH_CIRCLE_LEFT":t="slash_circle_left";break;case "SPEED_1_POINT_2X":t="1_point_2x";break;case "SPEED_1_POINT_5X":t="1_point_5x";break;case "SPEED_1_POINT_8X":t="1_point_8x";break;case "SPEED_POINT_2X":t="point_2x";break;case "SPEED_POINT_5X":t="point_5x";break;case "SPEED_POINT_8X":t="point_8x";break;case "SPEED_1X":t="1x";break;case "SPEED_2X":t="2x";break;case "TAB_BOOKMARK":t="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":f="yt-sys-icons";t="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":f="yt-sys-icons";t="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":f="yt-sys-icons",t="tic_tac_toe"}t=f+":"+t;mgb.set(A,t);return t};
R80=function(A){var t;_.M("kevlar_use_wil_icons")?t=!!_.Px().resolve(_.fI).resolveIcon({iconName:A.toString()}):t=!1;return t};
_.Qx=function(A,t,f,X){f=f===void 0?{}:f;X=X===void 0?!1:X;f===null&&(f={});var Q=_.MG("kevlar_command_handler_command_banlist");Q=_.U(Q);for(var q=Q.next();!q.done;q=Q.next())if(q=A?A.hasOwnProperty(q.value):void 0,q)return!1;Q=_.C(A.commandMetadata,_.Jl);return X&&Q!=null&&Q.url?!1:!t.disableCommandHandlerOverride&&_.XH.instance?(X=_.XH.instance,f.form||(f.form={element:t}),f.form.element||(f.form.element=t),!f.clickedVisualElement&&t.visualElement&&(f.clickedVisualElement=t.visualElement),X.resolveCommand(A,
f),!0):!1};
bes=function(A,t){A=qx(A);for(var f=_.U(A.visibilityMonitorKeys||[]),X=f.next();!X.done;X=f.next())t.unobserveByKey(X.value);A.visibilityMonitorKeys=void 0};
LCx=function(A,t){if(_.Ws()){if(_.M("kevlar_vimio_use_shared_monitor"))WCx(A,t.data);else if(!WCx(A,t.data))return;var f=t.data,X=yml(f);if(_.M("enable_client_ve_spec_logging"))bes(A,t.observer);else{var Q=qx(A);Q.trackedParams&&Q.trackedParams!==X&&bes(A,t.observer)}Q=qx(A);!f||Q.data&&Q.data===f||(Q.data=f);vQ0(A,t);Q.trackedParams=X}};
vQ0=function(A,t){var f=t.observer;if(!f&&_.M("web_skip_missing_vimio_observer")){var X,Q;_.K4(new _.xj("VisibilityObserver is not defined.",A.tagName,A.trackedParams,(X=t.data)==null?void 0:X.trackingParams,(Q=t.data)==null?void 0:Q.loggingDirectives))}else{var q=t.layer,e=t.visibilityCallback||function(){},G=t.prescanCallback,N=qx(A);
X=[];t.showOption&&X.push(f.observe(A,function(){t.skipLogging&&t.skipLogging()||_.J7().reportShown(N,void 0,q,7);e(!0)},t.showOption));
t.hideOption&&X.push(f.observe(A,function(){_.J7().reportHidden(N,void 0,q,7);e(!1)},t.hideOption));
t.prescanOption&&G&&X.push(f.observe(A,function(){G()},t.prescanOption));
N.visibilityMonitorKeys=X}};
WCx=function(A,t){A=qx(A);if(A.visualElement&&!t)return!0;if(!t)return!1;var f=!1;if(_.M("enable_client_ve_spec_logging")){var X,Q;f=!!((X=t.loggingDirectives)==null?0:(Q=X.clientVeSpec)==null?0:Q.uiType)}X=yml(t);if(!X&&!f)return!1;_.M("mweb_component_visibility_logging")&&(A.veContainer||(A.veContainer={}),A.veContainer.trackingParams=X);if(A.trackedParams&&A.trackedParams===X)return!1;var q;if(_.M("enable_client_ve_spec_logging")&&((q=A.visualElement)==null?0:q.isClientVe())){var e;q=(e=A.visualElement)==
null?void 0:e.getAsJspb();var G,N,z,T;if(_.Pf(q,2)===((G=t.loggingDirectives)==null?void 0:(N=G.clientVeSpec)==null?void 0:N.uiType)&&_.Pf(q,3,-1)===((z=t.loggingDirectives)==null?void 0:(T=z.clientVeSpec)==null?void 0:T.elementIndex))return!1}if(_.M("enable_client_ve_spec_logging")){var O,c;!A.visualElement&&((O=t.loggingDirectives)==null?0:(c=O.clientVeSpec)==null?0:c.uiType)&&(G=t.loggingDirectives.clientVeSpec,t=G.uiType,e=G.elementIndex,G=G.clientYoutubeData,A.visualElement=_.UX(_.er(),{veType:t,
elementIndex:e,clientYouTubeData:G}))}return!0};
yml=function(A){if(A==null?0:A.rendererContext){var t=_.C(A.rendererContext,_.GV);if(t==null?0:t.loggingDirectives)return t.loggingDirectives.trackingParams}return(A==null?0:A.loggingDirectives)?A.loggingDirectives.trackingParams:A==null?void 0:A.trackingParams};
qx=function(A){var t;return(t=A.polymerController)!=null?t:A};
Dg0=function(A){_.J7();if(_.r9(lP().JSC$12815_elementShouldLogGesture).bind(lP())(A,4)){pkb(A);var t=EQx(A);nQx.set(A,t)}};
pkb=function(A){nQx.has(A)&&(nQx.get(A).cancel("untrack hover element"),nQx.delete(A))};
EQx=function(A){var t,f=[],X=!1,Q=new _.yy(function(q,e){Nx(A,"mouseenter",_.r9(function(){var G,N,z;return _.l(function(T){if(T.nextAddress==1)return t=(0,_.OJ)(),G=FCl(A),f.push(G),N=IOx(A,function(){X=!0;e(Error("Xg"))}),T.yield(G,2);
if(T.nextAddress!=3)return N&&uP(N),z=xgp(A),f.push(z),T.yield(z,3);q();_.LO(T)})}))});
Q.then(function(){var q=(0,_.OJ)()-t;q=Math.round(q);if(!(500>q||6E5<=q)){var e=A.getScreenLayer?A.getScreenLayer():void 0;e=_.Ws(e)||"";var G=j2p(_.J7(),A);_.d0(e,A.visualElement?A.visualElement:_.zV(G),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:q}})}Dg0(A)},function(){Pn&&(Pn(),Pn=null);
X&&(pkb(A),Dg0(A))});
return Q};
FCl=function(A){var t;return(new _.yy(function(f,X){Pn=function(){X(Error("Yg"))};
t=_.a6.debounce(_.r9(function(){uP(Q);f()}),1,100);
var Q=_.TV(A,"mousemove",t)})).thenCatch(function(){var f=_.a6.cancelDebouncedJobMap.get(t);
f&&_.a6.cancelJob(f)})};
xgp=function(A){var t;return(new _.yy(function(f,X){Pn=function(){X(Error("Zg"))};
t=Nx(A,"mouseleave",_.r9(function(){f()}))})).thenCatch(function(){uP(t)})};
IOx=function(A,t){return Nx(A,"mouseleave",_.r9(t))};
Vs0=function(A){YNp&&_.iP.cancel(YNp);YNp=_.iP.run(function(){_.s9(A,"yt-visibility-refresh");YNp=0})};
Zex=function(A){A=Number(A);return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
dgx=function(A){if(!A)return!1;if(_.C(A,_.oQq))return!0;var t;if(A=(t=_.C(A,_.Xd))==null?void 0:t.commands)for(t=_.U(A),A=t.next();!A.done;A=t.next())if(_.C(A.value,_.oQq))return!0;return!1};
SNu=function(A){var t=!0;t=t===void 0?!0:t;if(!A.useSignals&&!A.experimentalPropertiesChanged||_.M("experimental_templating_behavior_nopatch_killswitch")){var f=A._propertiesChanged;A._propertiesChanged=function(X,Q,q){t?A.debounceRender():A.doRender();f&&f.call(A,X,Q,q)}}};
$g0=function(A,t){if(A.useSignals||A.experimentalPropertiesChanged)if(_.M("experimental_templating_behavior_nopatch_killswitch"))A.experimentalPropertiesChanged=function(){};
else return;var f=new Set,X=[A].concat(_.YV(A.behaviors));X=_.U(X);for(var Q=X.next();!Q.done;Q=X.next()){Q=Q.value;for(var q in Q.properties)f.has(q)||(A._addPropertyEffect(q,"function",t),f.add(q))}};
HeT=function(){var A=Polymer.Element,t=A._prepareTemplate;A._prepareTemplate=function(){t.call(this);var f=this.prototype;if(f.experimentalTemplatingInUse&&f.experimentalTemplatingInUse()&&f.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.HQ(Error("$g"));else{f=this.template.content.childNodes;for(var X=f.length-1;X>=0;X--){var Q=f[X];Q.nodeName!=="STYLE"&&Q.nodeName!=="LINK"&&Q.nodeName!=="SCRIPT"&&Q.nodeName!=="#comment"&&Q.remove()}}}};
aOx=function(A){var t=!0;t=t===void 0?!0:t;HeT();var f=A.ready;A.ready=function(){this._template=null;f.call(this)};
$g0(A,t?A.debounceRender:A.doRender)};
gQx=function(A,t,f){if(f===null||f===void 0)return f;var X=WEl(A.tagName.toLowerCase(),t,function(){throw Error("Tb");});
if(X===null)return f;X=KCx[X];var Q;if((Q=X.isUnwrappable)==null?0:Q.call(X,f)){if(X.unwrap)return X.unwrap(f);throw Error("ch");}return X.filterString?X.filterString(A.tagName,t,String(f)):f};
wkg=function(A,t,f){var X=t[t.length-1]!=="$",Q=gQx(A,t,f);if(X)if(typeof Q==="function"&&t.startsWith("reactiveon")&&t===t.toLowerCase()){var q=JZ;I_x(A,t.slice(8),function(e){Hm(q,function(){Q(e)})})}else A[t]=Q;
else f=Q==null?null:String(Q),wD(A,t.slice(0,-1),f)};
cn=function(A){s2x.length===0&&requestAnimationFrame(function(){setTimeout(function(){var t=s2x.slice();s2x.length=0;t=_.U(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;try{f()}catch(X){_.OX(X)}}})});
s2x.push(A)};
kCu=function(A){if(A){var t=A.component;if(t){var f;t==null||(f=t.events)==null||f.publish("DISCONNECTED");var X;t==null||(X=t.onDisconnected)==null||X.call(t)}var Q,q;(Q=A.__spec)==null||(q=Q.didUnmount)==null||q.call(Q);for(t=0;t<A.childNodes.length;t++)kCu(A.childNodes[t])}};
rmx=function(A,t,f){var X=t&&t.key,Q=U8;Q[0]=A;Q[1]=X;Q[2]=void 0;for(var q in t)t.hasOwnProperty(q)&&(A=t[q],X=e2,X.push(q),X.push(A));t=U8;a:{if(q=U8[2])for(A=0;A<q.length;A+=2)if(q[A]==="nonce"){q=q[A+1];break a}q=""}q=gHg(t[0],t[1],q);A=kf(q);X=t[2];if(!A.staticsApplied&&(A.staticsApplied=!0,X&&X.length))if((Q=A._attrsArr)&&Q.length){for(Q=0;Q<X.length;Q+=2)Bn[X[Q]]=Q+1;Q=A._attrsArr||(A._attrsArr=FEp(0));for(var e=0,G=0;G<Q.length;G+=2){var N=Q[G],z=Q[G+1],T=Bn[N];T?X[T]===z&&delete Bn[N]:(Q[e]=
N,Q[e+1]=z,e+=2)}KF(Q,e);for(var O in Bn)ZVb(q,O,X[Bn[O]],P9),delete Bn[O]}else for(O=0;O<X.length;O+=2)ZVb(q,X[O],X[O+1],P9);ffT(q,A,P9);KF(t,0);f&&f(t8);w95()};
_.Mx=function(A,t,f){f===void 0?delete A[t.name]:A[t.name]=f};
_.CI=function(A){var t={androidIncludeFontPadding:!1},f=0,X=[],Q=[],q=[];if(A.simpleText)return t.content=A.simpleText,t;if(A.runs===void 0)return t.content="",t;A=_.U(A.runs);for(var e=A.next();!e.done;e=A.next()){e=e.value;var G=e.text,N=void 0,z=(N=G)==null?void 0:N.length;if(G&&z){X.push(G);if(e.bold||e.italics||e.strikethrough||e.underline||e.textColor!=null&&e.textColor!==0||e.deemphasize){G=Q;N=G.push;var T={startIndex:f,length:z};e.bold&&(T.weightLabel="FONT_WEIGHT_MEDIUM");e.italics&&(T.italic=
!0);e.strikethrough&&(T.strikethrough="LINE_STYLE_SINGLE");e.underline&&(T.underline="LINE_STYLE_SINGLE");e.textColor!=null&&e.textColor!==0?document.documentElement.hasAttribute("dark")?T.fontColor=e.darkModeTextColor||e.textColor:T.fontColor=e.textColor:e.deemphasize&&(document.documentElement.hasAttribute("dark")?T.fontColor=parseInt("ff"+AD0("#aaa").substring(1),16):T.fontColor=parseInt("ff"+AD0("#606060").substring(1),16));N.call(G,T)}e.navigationEndpoint&&(G=q,N=G.push,T={startIndex:f,length:z,
onTap:{innertubeCommand:e.navigationEndpoint}},e.loggingDirectives&&_.Mx(T,tVx,e.loggingDirectives),N.call(G,T));f+=z}}t.content=X.join("");t.styleRuns=Q.length?Q:void 0;t.commandRuns=q.length?q:void 0;return t};
XwT=function(A){if(A==null||!A.runs)return!0;A=_.U(A.runs);for(var t=A.next();!t.done;t=A.next())if(t=t.value,t.bracket||t.errorUnderline||t.deemphasize||_.C(t,h7)||_.C(t,f15))return!1;return!0};
QAT=function(A,t){return function(f){var X=t.unit;if(X!==f)throw Error("fh`"+A+"`"+X+"`"+f);return t}};
R8=function(A){if(!((A==null?0:A.value)&&(A==null?0:A.unit)))return"";switch(A.unit){case "DIMENSION_UNIT_FRACTION":var t="%";break;default:t="px"}A=A.value;t==="%"&&(A*=100);return""+A+t};
qy5=function(A){try{return A()}catch(t){_.K4(t)}};
_.bP=function(A){var t=_.C(A,_.mG);if(t)return t;if((t=_.C(A,JDT))&&t.commands)return U8p(t.commands);if((t=_.C(A,eJb))&&t.commands)return U8p(t.commands);if((A=_.C(A,G5b))&&A.identifier&&A.command&&(l1q||(l1q=[]),!l1q.includes(A.identifier)))return l1q.push(A.identifier),_.C(A.command,_.mG)};
U8p=function(A){if(A.length!==0){var t=[];A=_.U(A);for(var f=A.next();!f.done;f=A.next())(f=_.bP(f.value))&&t.push(f);return{commandExecutorCommand:{commands:t}}}};
_.yx=function(A){var t=A.defaultTarget,f=A.elementConfig,X=A.elementsCommand,Q=A.skipOnClick,q=A.forceNewState,e=A.additionalCommandArgs,G=A.innertubeCommand||_.bP(X);if(G){A={};var N=N30(G);X=N.navigatingCommand;N=N.href;X&&N?(A.href$=N,uhb(A,X,N,t),_.M("web_atagconfig_pointerdown")&&zJz(A,X),q&&(A["force-new-state$"]=!0)):(A.role$="button",A.href$="javascript:void(0);");_.C(G,Pfq)&&(A["aria-haspopup$"]=!0);Q||(A.onclick=function(z){var T={};if(T3b(z)){var O=(e==null?void 0:e.clickedVisualElement)||
(e==null?void 0:e.getClickedVisualElement)&&e.getClickedVisualElement();O&&(T={clickedVisualElement:O});T=Object.assign({},{form:{element:z.target,event:z,createScreenConfig:T}},e);z.preventDefault();_.Wn(G,T)}});
return Object.assign({},f,A)}};
iTu=function(A){if(A.length){if(A.length===1)return A[0];var t={};_.Mx(t,_.Xd,{commands:A});return t}};
vn=function(A){return A&&A.href$!=="javascript:void(0);"};
N30=function(A){var t,f=((t=_.C(A,_.Xd))==null?void 0:t.commands)||[A];A=_.U(f);for(t=A.next();!t.done;t=A.next()){t=t.value;var X=void 0,Q=void 0;f=(Q=_.C((X=t)==null?void 0:X.commandMetadata,_.Jl))==null?void 0:Q.url;_.M("web_remove_web_navigation_endpoint_data")||(X=void 0,f=f||((X=_.C(t,OTz))==null?void 0:X.url));if(f&&f!=="/service_ajax"){if(X=_.Vb(f,cDx))return A=_.j3(X),{navigatingCommand:t,href:A};_.K4(new _.xj("AttributedString URL could not be sanitized",f))}}return{}};
T3b=function(A){return A.button!==void 0?A.button===0&&!(A.shiftKey||A.altKey||A.metaKey||A.ctrlKey):!(A.shiftKey||A.altKey||A.metaKey||A.ctrlKey)};
uhb=function(A,t,f,X){f=!NG(f);var Q,q,e;if((Q=_.C(t,_.GD))!=null&&Q.nofollow||(q=_.C(t,_.ZT))!=null&&q.nofollow||(e=_.C(t,_.fV))!=null&&e.nofollow||f)A.rel$="nofollow";var G;t=((G=_.C(t,_.fV))==null?void 0:G.target)==="TARGET_NEW_WINDOW"?"_blank":X===void 0?"":X;A.target$=t};
zJz=function(A,t){t.clickTrackingParams&&(A.params={itct:t.clickTrackingParams});A.onpointerdown=function(f){B3u(f)};
A._data=t};
MVb=function(A){(A.loggingUrls||[]).forEach(function(t){Qy(t.baseUrl,t.attributionSrcMode)})};
B3u=function(A){var t=A.currentTarget;A=qy5(function(){return t.href});
var f=t.params;A&&_.$J(A,f||{},8,!0)};
_.LI=function(A,t){(A=_.bP(A))&&_.Wn(A,t)};
_.Wn=function(A,t){Alp(function(f){t?f.resolveCommand(A,t):f.resolveCommand(A)})};
m8g=function(A,t){var f=["yt-core-attributed-string__link"];t!=null&&t.noLinkColor||((t==null?0:t.isOverlay)?f.push("yt-core-attributed-string__link--overlay-call-to-action-color"):f.push("yt-core-attributed-string__link--call-to-action-color"),(t==null?0:t.linkInheritColor)&&f.push("yt-core-attributed-string--link-inherit-color"));f={className:f.join(" "),tabindex$:"0"};var X=A.onTap||A.onLongPress;if(!X)return f;var Q=Cfx(A);Q&&(f["aria-label$"]=Q);t=_.yx({elementsCommand:X,elementConfig:f,skipOnClick:!(t==
null||!t.skipOnClick),forceNewState:!0});A.onLongPress&&(X=new hJg(function(){var q=_.bP(A.onLongPress);q&&_.Px().resolve(_.i2).resolveCommand(q)}),t&&RJ0(X,t));
return t||f};
Cfx=function(A){var t,f;return(t=A.onTapOptions)==null?void 0:(f=t.accessibilityInfo)==null?void 0:f.accessibilityLabel};
bTx=function(A){var t=A;A<=16777215&&(t+=parseInt("ff000000",16));return _.bY(t)};
WWs=function(A){var t=A.isDarkTheme;var f=A.extension;A=A.runColor;var X=void 0;if(f=f==null?void 0:f.colorMap){t=t?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";f=_.U(f);for(var Q=f.next();!Q.done;Q=f.next())if(Q=Q.value,t===Q.key){X=Q.value;break}}X==null&&A&&(X=A);if(X)return bTx(X)};
pI=function(A){var t=A.config;var f=A.image;var X=A.imageConfig;var Q=A.imageWrapperConfig;var q=A.run;var e=A.tag;var G=A.textLength;var N=A.startIndex===void 0?0:A.startIndex;A=A.length;N===void 0&&(N=0);q={run:q,startIndex:N,endIndex:A!==void 0?N+A:G,tag:e};f&&(q.image=f);X&&(q.imageConfig=X);Q&&(q.imageWrapperConfig=Q);t&&(q.config=t);return q};
vhz=function(A,t){var f=[];f.push("yt-core-attributed-string");(t==null?0:t.className)&&f.push(t==null?void 0:t.className);(t==null?0:t.ellipsisTruncate)?f.push("yt-core-attributed-string--ellipsis-truncate"):(t==null?0:t.noWrap)?f.push("yt-core-attributed-string--white-space-no-wrap"):(t==null?0:t.noPreWrap)||f.push("yt-core-attributed-string--white-space-pre-wrap");(t==null?0:t.linkInheritColor)&&f.push("yt-core-attributed-string--link-inherit-color");A.alignment&&f.push(yDg(A.alignment));A.lineBreakMode&&
f.push("yt-core-attributed-string--word-wrapping");return f.join(" ")};
LWq=function(A,t){if(A.weight)return A.weight;switch(A.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 t?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
pw0=function(A){switch(A){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"}};
yDg=function(A){switch(A){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"}};
DY=function(A,t,f){var X=t;A.content&&f&&(f=A.content.indexOf("\n"),f!==-1&&(X=Math.min(t,f)));if(!A.content||A.content.length<=X)t=A;else if(A.attachmentRuns||A.commandRuns||A.decorationRuns||A.styleRuns||A.paragraphStyleRuns){t=EX(A.content,X);f=X;var Q=A.attachmentRuns;if(Q){var q=[];Q=_.U(Q);for(var e=Q.next();!e.done;e=Q.next())e=Object.assign({},e.value),e.startIndex===void 0||e.startIndex>=f||(e.length||(e.length=0),e.length+e.startIndex>f&&(e.length=f-e.startIndex),q.push(e));f=q}else f=void 0;
q=Ehx(X,A.commandRuns);Q=X;var G=A.decorationRuns;if(G){e=[];G=_.U(G);for(var N=G.next();!N.done;N=G.next()){N=N.value;var z=_.C(N.textDecorator,nI);if(z&&z.startIndex!==void 0&&!(z.startIndex>=Q)){N=Object.assign({},N,{textDecorator:{highlightTextDecorator:Object.assign({},z)}});z=_.C(N.textDecorator,nI);if(!z.length||z.length+z.startIndex>Q)z.length=Q-z.startIndex;e.push(N)}}Q=e}else Q=void 0;e=Ehx(X,A.styleRuns);if(G=A.paragraphStyleRuns)for(A=[],G=_.U(G),N=G.next();!N.done;N=G.next()){var T=N.value;
N=Object.assign({},T);if(!(N.startIndex===void 0||N.startIndex>=X)){if(!N.length||N.length+N.startIndex>X)N.length=X-N.startIndex;z=[];var O=void 0,c=void 0;if((O=T)==null?0:(c=O.listGroup)==null?0:c.listItems)for(T=_.U(T.listGroup.listItems),O=T.next();!O.done;O=T.next())if(O=Object.assign({},O.value),!(O.startIndex===void 0||O.startIndex>=X)){if(!O.length||O.length+O.startIndex>X)O.length=X-O.startIndex;z.push(O)}z.length>0&&(N.listGroup||(N.listGroup={}),N.listGroup=Object.assign({},N.listGroup,
{listItems:z}));A.push(N)}}else A=void 0;t={content:t,attachmentRuns:f,commandRuns:q,decorationRuns:Q,styleRuns:e,paragraphStyleRuns:A}}else t=Object.assign({},A,{content:EX(A.content,X)});return t};
Ehx=function(A,t){if(t){var f=[];t=_.U(t);for(var X=t.next();!X.done;X=t.next())if(X=Object.assign({},X.value),!(X.startIndex===void 0||X.startIndex>=A)){if(!X.length||X.length+X.startIndex>A)X.length=A-X.startIndex;f.push(X)}return f}};
EX=function(A,t){var f=t,X;if(X=f>0)X=A.charCodeAt(f-1),X=X>=55296&&X<=56319;X&&(f=A.charCodeAt(f),X=f>=56320&&f<=57343);X&&--t;return A.substring(0,t)};
I1b=function(A,t,f){f=f===void 0?nhT:f;if(A){var X=_.Px().resolve(id);X||_.M("mweb_no_observer_killswitch")?LCx(A,{data:t,observer:X,visibilityCallback:f,hideOption:D8q,showOption:FWp,layer:A.layer}):_.K4(new _.xj("Warning: monitorVisibility called with null observer",A.tagName,t==null?void 0:t.loggingDirectives,t==null?void 0:t.trackingParams))}else _.K4(new _.xj("Warning: monitorVisibility called with null element",t==null?void 0:t.loggingDirectives,t==null?void 0:t.trackingParams,t==null?void 0:
t.rendererContext))};
d8b=function(A,t){var f=[],X=A.content.length,Q,q=(Q=_.Px().resolve(_.z7(_.FH)))==null?void 0:Q();if(A.paragraphStyleRuns){Q=_.U(A.paragraphStyleRuns);for(var e=Q.next();!e.done;e=Q.next()){var G=f.push,N=G.apply;var z=void 0;e=e.value;if((z=e.listGroup)!=null&&z.listItems){z=[];b:switch(e.listGroup.listType){case "LIST_TYPE_BULLET":var T="ul";break b;default:T="span"}z.push(pI({run:e,textLength:X,tag:T,config:{className:"yt-core-attributed-string__list-group"},startIndex:e.startIndex,length:e.length}));
T=_.U(e.listGroup.listItems);for(var O=T.next();!O.done;O=T.next()){O=O.value;b:switch(e.listGroup.listType){case "LIST_TYPE_BULLET":var c="li";break b;default:c="span"}z.push(pI({run:e,textLength:X,tag:c,startIndex:O.startIndex,length:O.length}))}e=z}else e=[];N.call(G,f,_.YV(e))}}if(A.styleRuns&&(t==null||!t.noStyleRuns))for(Q=_.U(A.styleRuns),G=Q.next();!G.done;G=Q.next()){e=G=G.value;z=q;N=t;z=WWs({extension:_.C(e.styleRunExtensions,x85),isDarkTheme:z===void 0?!1:z,runColor:e.fontColor});O=e;
T=[];z&&T.push("yt-core-attributed-string--link-inherit-color");O.italic&&T.push("yt-core-attributed-string--italicized");O.underline&&O.strikethrough?T.push("yt-core-attributed-string--underline-strikethrough",pw0(O.underline)):O.underline?T.push("yt-core-attributed-string--underlined",pw0(O.underline)):O.strikethrough&&T.push("yt-core-attributed-string--strikethrough",pw0(O.strikethrough));if(O.baselineOffset){a:switch(O.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":O="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":O="yt-core-attributed-string--baseline-offset-superscript";break a;default:O="yt-core-attributed-string--baseline-offset-unknown"}T.push(O)}T=T.join(" ");O={};if(e.weight||e.weightLabel)O.fontWeight=LWq(e,N==null?void 0:N.isHeadline).toString();z&&(O.color=z);f.push(pI({run:G,textLength:X,tag:"span",config:{className:T,style:O},startIndex:G.startIndex,length:G.length}))}if(A.decorationRuns)for(Q=_.U(A.decorationRuns),G=Q.next();!G.done;G=Q.next())G=G.value,
N={},G.textDecorator&&(T=G.textDecorator,e=q===void 0?!1:q,O=[],z=_.C(T,nI),T=_.C(T,jA5),z?(T=O,O=T.concat,c=[],(e=WWs({extension:_.C(z.highlightTextDecoratorExtensions,Yyl),isDarkTheme:e,runColor:z.backgroundColor}))&&c.push("background-color: "+e+";"),z.backgroundCornerRadius!==void 0&&c.push("border-radius: "+z.backgroundCornerRadius+"px;"),z.leftPadding!==void 0&&c.push("padding-left: "+z.leftPadding+"px;"),z.rightPadding!==void 0&&c.push("padding-right: "+z.rightPadding+"px;"),z.topPadding!==
void 0&&c.push("padding-top: "+z.topPadding+"px;"),z.bottomPadding!==void 0&&c.push("padding-bottom: "+z.bottomPadding+"px;"),O=O.call(T,c)):T&&(z=O,O=z.concat,e=e?"#2ba640":"#107516",e=T.color?bTx(T.color):e,e=["padding: 2px;","border-top: solid "+e+" 2px;","border-bottom: solid "+e+" 2px;","background: linear-gradient(135deg, "+e+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+e+" 3px, rgba(0, 0, 0, 0) 3px);"],O=O.call(z,e)),e=O.join(" "),N.style$=e,e=G.textDecorator,z=[],T=_.C(e,
jA5),_.C(e,nI)?z.push("yt-core-attributed-string--highlight-text-decorator"):T&&z.push("yt-core-attributed-string--bracket-text-decorator"),e=z.join(" "),N.className=e,N.dir="auto"),e=_.C(G.textDecorator,nI),z=_.C(G.textDecorator,jA5),T=_.C(G.textDecorator,nI),O=_.C(G.textDecorator,jA5),f.push(pI({run:G,textLength:X,tag:"span",config:N,startIndex:(e==null?void 0:e.startIndex)||(z==null?void 0:z.startIndex)||0,length:(T==null?void 0:T.length)||(O==null?void 0:O.length)||0}));if(A.commandRuns&&(t==
null||!t.noEndpoints))for(q=_.U(A.commandRuns),Q=q.next();!Q.done;Q=q.next())Q=Q.value,G=m8g(Q,t),f.push(pI({run:Q,textLength:X,tag:"a",config:G,startIndex:Q.startIndex,length:Q.length}));if(A.attachmentRuns)for(A=_.U(A.attachmentRuns),q=A.next();!q.done;q=A.next()){q=q.value;N=G=void 0;Q={className:"yt-core-attributed-string--inline-block-mod"};if((N=q.element)==null?0:N.properties){N=(G=q.element)==null?void 0:G.properties;G=[];N=_.C(N,VVb);if(N==null?0:N.margin)N=N.margin,N.left&&G.push("margin-left: "+
R8(N.left)+";"),N.right&&G.push("margin-right: "+R8(N.right)+";"),N.top&&G.push("margin-top: "+R8(N.top)+";"),N.bottom&&G.push("margin-bottom: "+R8(N.bottom)+";");G=G.length!==0?G.join(" "):void 0;Q.style$=G}e=void 0;G={alt:"",preserveHeight:!0,preserveWidth:!0};N=["yt-core-attributed-string__image-element"];if(q.alignment){a:switch(q.alignment){case "ALIGNMENT_BASELINE":z="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":z="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:z="yt-core-attributed-string__image-element--image-alignment-bottom"}N.push(z)}if((e=q.element)==null?0:e.properties)e=[],z=_.C(q.element.properties,VVb),(z==null?0:z.height)&&e.push("height: "+R8(z.height)+";"),(z==null?0:z.width)&&e.push("width: "+R8(z.width)+";"),e=e.length!==0?e.join(" "):void 0,G.style$=e,z=void 0,e=((z=_.C(q.element.properties,ZTT))==null?void 0:z.label)||"",G.alt=e;G.className=N.join(" ");N=void 0;T=z=void 0;e=((T=q.element)==null?0:T.type)?(z=_.C(q.element.type,
ohz))==null?void 0:z.image:void 0;f.push(pI({run:q,textLength:X,tag:"img",image:e,imageConfig:G,imageWrapperConfig:Q,startIndex:q.startIndex,length:(N=q.length)!=null?N:0}))}if(t==null?0:t.headerRuns)for(t=_.U(t.headerRuns),A=t.next();!A.done;A=t.next())if(A=A.value,A.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(A.headerMapping)){a:{switch(A.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":q=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":q="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":q="yt-core-attributed-string--heading-3";break a}q=void 0}f.push(pI({run:A,textLength:X,tag:"span",config:q?{className:q}:void 0,startIndex:A.startIndex,length:A.length}))}return f};
_.I8=function(A){return(A==null?void 0:A.content)!==void 0};
Sys=function(A){return _.I8(A)?A:_.CI(A)};
$8u=function(A){return A.image!==void 0&&A.imageConfig!==void 0};
HTp=function(A,t){return!!t||!(A.commandRuns&&A.commandRuns.length!==0||A.paragraphStyleRuns&&A.paragraphStyleRuns.length!==0)};
a1T=function(A,t){if(t==null?0:t.userInput)for(A=_.U(A),t=A.next();!t.done;t=A.next())if(t=t.value,t.tag!=="a"&&t.tag!=="li"){var f=void 0;(f=t).config||(f.config={});t.config.dir=t.tag==="ul"?_.Px().resolve(_.xA):"auto"}};
KWT=function(A){return function(t){var f=A.run;(f.onTap!==void 0||f.onLongPress!==void 0)&&_.C(f,tVx)&&I1b(t,{loggingDirectives:_.C(f,tVx)})}};
ghp=function(A){return function(t){for(var f in A)(P9[f]||P9[sH["default"]])(t,f,A[f])}};
rDp=function(A,t){ww5(t);var f={data:null,start:0,end:A.length,parts:[]};t=_.U(t);for(var X=t.next();!X.done;X=t.next())X=X.value,sAx(f,X.startIndex,X.endIndex,X);k5p(A,f);return f};
sAx=function(A,t,f,X){for(var Q=_.U(A.parts),q=Q.next();!q.done;q=Q.next()){q=q.value;if(typeof q==="string")throw Error("hh");if(q.start<=t&&f<=q.end){sAx(q,t,f,X);return}}A.parts.push({data:X,parts:[],start:t,end:f})};
k5p=function(A,t){for(var f=t.parts.length;f>=0;f--){var X=t.parts[f],Q=t.parts[f-1],q=f===t.parts.length?t.end:X.start;Q=f===0?t.start:Q.end;q!==Q&&t.parts.splice(f,0,A.slice(Q,q));X&&k5p(A,X)}};
ww5=function(A){A.sort(function(t,f){if(t.startIndex<f.startIndex)return-1;if(f.startIndex<t.startIndex)return 1;t=t.endIndex-t.startIndex;f=f.endIndex-f.startIndex;return t>f?-1:f>t?1:0})};
_.APq=function(A){var t=A.thumbnails;if(t){A={sources:[]};t=_.U(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;var X={};X.url=f.url;X.width=f.width;X.height=f.height;A.sources.push(X)}return A}};
t60=function(A,t,f,X){if(!t)return A.length>=1?A[A.length-1]:null;if(X)for(var Q=_.U(A),q=Q.next();!q.done;q=Q.next()){q=q.value;var e=void 0,G=(e=q.url)==null?void 0:e.indexOf(X);if(G!==void 0&&G>=0)return q}X=_.U(A);for(Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,Q.width&&Q.height&&(f&&Q.width>=t||!f&&Q.height>=t))return Q;for(t=A.length-1;t>=0;t--)if(f&&A[t].width||!f&&A[t].height)return A[t];return A[0]};
_.fPx=function(A){var t;return(A=(t=A.sources)==null?void 0:t[0])?A.width/A.height:0};
_.XW5=function(A){if(A.sources){A=_.U(A.sources);for(var t=A.next();!t.done;t=A.next()){t=t.value;var f=void 0;if((f=t.clientResource)==null?0:f.imageName)return t}}};
qcT=function(A){var t={};A=_.C(A.processor,Qnb);var f=(A=A==null?void 0:(f=A.imageTint)==null?void 0:f.color)?_.bY(A):void 0;f&&(t.color=f);return t};
JPx=function(A){var t;if((t=A.clientResource)!=null&&t.imageColor)return _.bY(A.clientResource.imageColor)};
_.eVT=function(A,t,f,X,Q,q,e){if(!t||t.length===0||t[0].clientResource)return null;if(f&&t[0].url)return t[0].url;X===void 0&&(X=!0);if(X){var G;A=U75*(Q||(A==null?void 0:(G=A.getBoundingClientRect())==null?void 0:G.width)||0)}else{var N;A=U75*(q||(A==null?void 0:(N=A.getBoundingClientRect())==null?void 0:N.height)||0)}t=t60(t,A,X,e);return(t==null?0:t.url)?t.url:(t==null?0:t.imageData)?t.imageData:null};
GXT=function(A,t,f){f=f?[f]:[];A.opacity&&f.push("opacity: "+A.opacity+";");t&&A.placeholderColor?(A=_.bY(A.placeholderColor),f.push("background-color: "+A+";")):f.push("background-color: transparent;");return f.join(" ")};
lP0=function(A,t,f,X,Q){var q=["ytCoreImageHost"];t&&q.push(t);f||q.push("ytCoreImageFillParentHeight");X||q.push("ytCoreImageFillParentWidth");switch(A.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":q.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":q.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":q.push("ytCoreImageContentModeCenter");break;default:q.push("ytCoreImageContentModeScaleToFill")}A.flipForRtlLayout&&q.push("ytCoreImageFlipRtl");
switch(Q){case "TOP_START":var e;q.push(((e=document.body)==null?void 0:e.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return q.join(" ")};
ue0=function(A){var t;if(A==null?0:(t=A.clientResource)==null?0:t.imageName){var f;A=(f=A.clientResource)==null?void 0:f.imageName;a:{switch(A){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":f="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":f="yt-logos-ext:yt-logo-updated";break a}f=void 0}return f||N1z.get(A)||A}};
T1p=function(A){return _.M("mweb_wiz_skip_render")?zVl(A):P4x(A)};
zVl=function(A){return function(t){var f=gHg("wink-root");Qz=t8.lastChild;w95();Cjq(f,_.u(A,t))}};
P4x=function(A){var t=t===void 0?!1:t;return function(f){if(!t||!_.M("mweb_skip_keto_to_c3_if_no_data")||f.data!==void 0){var X=ik(!1);try{var Q=f.children;_.M("mweb_render_outside_patch_killswitch")||t8?Q?zU(_.u(A,f,Q)):zU(_.u(A,f)):_.K4(new _.xj("ketoToC3 called outside of a patch",{tagName:A.TAG_NAME}))}finally{ik(X)}}}};
iiu=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
cPz=function(A,t){A.onViewportEntered=t;Oiu.observe(A)};
B1q=function(){var A={rootMargin:"10%",threshold:.01};_.M("mweb_enable_set_io_root_to_null_safari")?A.root=null:_.M("mweb_enable_set_io_root_to_body_safari")&&(A.root=document.body);return new IntersectionObserver(function(t,f){t.filter(function(X){return X.intersectionRect.height>0}).forEach(function(X){X=X.target;
if(!_.M("mweb_enable_only_update_image_when_connected")||X.isConnected!==!1){var Q;(Q=X.onViewportEntered)==null||Q.call(X);f.unobserve(X)}})},A)};
M6T=function(A,t,f,X,Q){function q(){if(X){var G=X.loadedClass,N=X.notifyOnUnloaded;G&&_.jr(A,G);N&&A.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function e(){var G=f(t,A);G&&A.getAttribute("src")!==G&&(_.M("mweb_enable_only_update_image_when_connected")&&A.isConnected===!1||G===A.src||(A.src=G),q())}
Q=Q===void 0?!0:Q;A.removeAttribute("src");q();t&&(Q?cPz(A,e):e())};
C4x=function(A,t,f){if(!t)return!1;t=f(t,A);f=A.getAttribute("src");return t&&t===f&&A.complete};
hV0=function(A,t){for(var f in t)f==="className"?A.className=t[f]:(P9[f]||P9[sH.default])(A,f,t[f])};
RV5=function(A,t,f,X){T1p(_.YA)({contentMode:t.contentMode,loadedClass:t.loadedClass,isPreloaded:t.isPreloaded,notifyOnLoaded:t.notifyOnLoaded,notifyOnUnloaded:t.notifyOnUnloaded,preferredThumbnail:t.preferredThumbnail,preserveHeight:t.preserveHeight,preserveWidth:t.preserveWidth,objectPosition:t.objectPosition,targetWidth:t.targetWidth,targetHeight:t.targetHeight,shouldShowPlaceholder:t.shouldShowPlaceholder,useWidth:t.useWidth,isToggled:t.isToggled,alt:t.alt,className:t.className,onerror:t.onerror,
onload:t.onload,style$:t.style$,color:t.color,width:t.width,height:t.height,"aria-hidden$":t["aria-hidden$"],draggable:t.draggable,"data-disabled$":t["data-disabled$"],data:A,callback:f,renderLazy:X===void 0?!0:X,hideOn404:!1})};
biT=function(A,t,f){f=f===void 0?!1:f;var X=A.sources!==void 0?A:_.APq(A);if(X){var Q=t.onload;t.onload=function(z){var T=z.target;f&&T.naturalWidth===120||_.Vx(T,"ytCoreImageLoaded");t.notifyOnLoaded&&T.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Q==null||Q(z)};
t.targetWidth&&t.preserveWidth&&(t.width=t.targetWidth);t.targetHeight&&t.preserveHeight&&(t.height=t.targetHeight);var q=_.XW5(X),e=q&&ue0(q),G=qcT(X);if(e)return(A=JPx(q)||G.color)&&(t.color=A),{type:"icon",iconName:e,config:Object.assign({},t,t.alt?{}:{"aria-hidden$":"true"},{"aria-label$":t.alt,role:"img"})};if(A.sources===void 0){t.alt=A.accessibility&&A.accessibility.accessibilityData&&A.accessibility.accessibilityData.label||t.alt;t.style$=GXT(A,t.shouldShowPlaceholder,t.style$);var N;t.isPreloaded=
!((N=_.C(A,m70))==null||!N.isPreloaded)}t.contentMode&&!X.contentMode&&(X.contentMode=t.contentMode);t.className=lP0(X,t.className,t.preserveHeight,t.preserveWidth,t.objectPosition);t.loadedClass="ytCoreImageLoaded";return{type:"image",image:X,config:t}}};
_.ZY=function(){var A=_.Hu.apply(0,arguments);return _.ud(WNT,function(t){var f=A.map(function(X){return X==null?void 0:X(t)});
return function(){return void f.forEach(function(X){return void(X==null?void 0:X())})}})};
o8=function(A,t){var f=t==null?void 0:t.initial;return _.yq(function(){_.$f(!0);return f=A(f)},{equals:t==null?void 0:t.isEqual},"rSlKsc")};
yP5=function(A,t){if(A===t)return!0;if(A===void 0||t===void 0)return!1;var f,X,Q,q,e,G,N,z;return A.content===t.content&&((f=A.styleRuns)==null?void 0:f.length)===((X=t.styleRuns)==null?void 0:X.length)&&((Q=A.commandRuns)==null?void 0:Q.length)===((q=t.commandRuns)==null?void 0:q.length)&&((e=A.attachmentRuns)==null?void 0:e.length)===((G=t.attachmentRuns)==null?void 0:G.length)&&((N=A.decorationRuns)==null?void 0:N.length)===((z=t.decorationRuns)==null?void 0:z.length)};
pWx=function(A,t){if(A){var f=Sys(A);if(f!=null&&f.content)if(_.M("attr_string_reactive_c3"))t=t||{},t.contentAsserted=!0,T1p(vWx)({text:f,config:t});else{var X;A=HTp(f,(X=t)==null?void 0:X.ariaLabel);var Q;X=A?(Q=t)==null?void 0:Q.ariaLabel:null;Q=A?"text":null;var q;rmx("span",{className:vhz(f,t),dir$:((q=t)==null?0:q.userInput)?"auto":void 0,"aria-label$":X,role$:Q},function(){if(f.styleRuns||f.commandRuns||f.attachmentRuns||f.decorationRuns||f.paragraphStyleRuns){var e=d8b(f,t);a1T(e,t);e=rDp(f.content,
e);e=_.U(e.parts);for(var G=e.next();!G.done;G=e.next())LN0(G.value)}else XVx(f.content)})}}};
LN0=function(A){typeof A==="string"?XVx(A):$8u(A.data)?rmx("span",A.data.imageWrapperConfig,function(){RV5(A.data.image,A.data.imageConfig)}):rmx(A.data.tag,A.data.config,function(t){KWT(A.data)(t);
t=_.U(A.parts);for(var f=t.next();!f.done;f=t.next())LN0(f.value)})};
nWq=function(A){return A.parts.map(EWp)};
EWp=function(A){if(typeof A==="string")return A;A=$8u(A.data)?_.u("span",{el:_.ZY(ghp(A.data.imageWrapperConfig))},_.u(_.YA,Object.assign({},{data:A.data.image},A.data.imageConfig))):_.u(A.data.tag,{el:_.ZY(KWT(A.data),ghp(A.data.config))},A.parts.map(EWp));return v5(A)};
D7l=function(A,t){return A===t?!0:A===void 0||t===void 0?!1:A.noStyleRuns===t.noStyleRuns&&A.noLinkColor===t.noLinkColor&&A.noEndpoints===t.noEndpoints&&A.headerRuns===t.headerRuns&&A.isOverlay===t.isOverlay&&A.linkInheritColor===t.linkInheritColor&&A.userInput===t.userInput&&A.isHeadline===t.isHeadline};
FNu=function(A){return function(){var t,f,X,Q,q,e,G,N,z,T,O,c,B,h;return{ariaLabel:(t=A.ariaLabel)==null?void 0:t.call(A),className:(f=A.className)==null?void 0:f.call(A),ellipsisTruncate:(X=A.ellipsisTruncate)==null?void 0:X.call(A),isOverlay:(Q=A.isOverlay)==null?void 0:Q.call(A),linkInheritColor:(q=A.linkInheritColor)==null?void 0:q.call(A),noEndpoints:(e=A.noEndpoints)==null?void 0:e.call(A),noStyleRuns:(G=A.noStyleRuns)==null?void 0:G.call(A),noLinkColor:(N=A.noLinkColor)==null?void 0:N.call(A),
noPreWrap:(z=A.noPreWrap)==null?void 0:z.call(A),noWrap:(T=A.noWrap)==null?void 0:T.call(A),skipOnClick:(O=A.skipOnClick)==null?void 0:O.call(A),userInput:(c=A.userInput)==null?void 0:c.call(A),headerRuns:(B=A.headerRuns)==null?void 0:B.call(A),isHeadline:(h=A.isHeadline)==null?void 0:h.call(A)}}};
x7g=function(A,t){A=new IPq(A,t);_.HQ(A);throw A;};
jns=function(A,t,f){var X=HDb(A);A._numRenders=0;try{var Q=_.ouq(function(){return _.u(t,Object.assign({},f))})}catch(e){var q=function(G){G.args||(G.args=[]);
G.args.push("Error in web component wrapper");G.args.push(A.tagName.toLowerCase());return G};
_.ai(e instanceof Error?q(e):new IPq("Wiz rendering error",A.tagName.toLowerCase()));throw e;}finally{HDb(X)}return Q};
_.Hn=function(A,t,f){function X(T){var O={};T=_.U(T);for(var c=T.next();!c.done;c=T.next()){c=c.value;var B=void 0,h=void 0,W=void 0,L=_.Gr((W=(h=(B=c).getAttribute)==null?void 0:h.call(B,"slot"))!=null?W:"children");if(B=O[L])B.push(c);else if(L in q||L==="children")O[L]=[c]}T=_.U(Object.keys(O));L=T.next();for(c={};!L.done;c={content$jscomp$59:void 0},L=T.next())L=L.value,L!=="children"&&(c.content$jscomp$59=O[L],O[L]=function(E){return function(){return E.content$jscomp$59}}(c));
return O}
f=f===void 0?{}:f;var Q,q=(Q=f.props)!=null?Q:{};ab5.add(t);var e=Ycx();Q=function(){var T=e.apply(this,arguments)||this;T.rawProps={};T.queuingRender=!1;T.dispose=function(){};
T.isWebComponentWrapper=!0;T.isReparenting=!1;T.hasRendered=!1;return T};
_.R(Q,e);Q.prototype.render=function(){this.hasRendered=!0;for(var T=_.U([].concat(_.YV(this.attributes))),O=T.next();!O.done;O=T.next())O=O.value,O.name!=="slot"&&O.name!=="hidden"&&this.removeAttribute(O.name);T=Object.assign({},this.componentProps,this.slotProps);O=_.U(jns(this,A,T));T=O.next().value;O=O.next().value;!(T[0]instanceof Element)||T.length>1?x7g("Wrapped Wiz components must return a single root element.",t):(T=T[0].tagName.toLowerCase(),T!==t&&x7g("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(T+" !== '"+t),t),this.dispose=O)};
Q.prototype.setUpProps=function(){for(var T=this.rawProps,O=this.attributes,c=_.U(Object.keys(q)),B=c.next();!B.done;B=c.next()){B=B.value;var h=void 0;((h=this)==null?0:h[B])&&this[B]!==V6s&&T[B]===void 0&&(T[B]=this[B],(h=Object.getOwnPropertyDescriptor(this.constructor.prototype,B))&&Object.defineProperty(this,B,h))}c=_.U(O);for(B=c.next();!B.done;B=c.next()){h=B.value;B=_.Gr(h.name);var W=B==="class"&&!O.getNamedItem("class-name");if(B in q||W)h=h.value===""||h.value==="true"?!0:h.value==="false"?
!1:isNaN(Number(h.value))?h.value:Number(h.value),B!=="class"||T.className?T[B]=h:T.className=h}O={};for(var L in q)q[L]!==_.dt&&q[L]!==Ziu&&(T[L]instanceof Function&&x7g("Function props must be configured as STATIC, not SIGNAL.",t),B=_.U(_.hZ(T[L],void 0,"thC4wf")),c=B.next().value,B=B.next().value,O[L]=B,T[L]=c);T=_.U([T,O]);this.componentProps=T.next().value;this.setters=T.next().value;this.slotProps=X(this.childNodes)};
Q.prototype.connectedCallback=function(){wc0.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in q&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Q.prototype.disconnectedCallback=function(){if(!wc0.has(this)){var T;a:{if(_.Sr)for(T=this;T;){if(_.$A.has(T)){T=!0;break a}T=T.parentElement}T=!1}if(T)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){T=_.U([].concat(_.YV(this.attributes)));for(var O=T.next();!O.done;O=T.next()){O=O.value;var c=void 0;O.name==="slot"||O.name==="hidden"&&((c=f.unsafeExternallySettableAttributes)==null?0:c.has("hidden"))||this.removeAttribute(O.name)}}this.innerText="";V9b(this)}}};
Q.prototype._setPendingPropertyOrPath=function(){};
Q.prototype.notifyPath=function(){};
_.PV.Object.defineProperties(Q.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var G=_.U(Object.keys(q)),N=G.next(),z={};!N.done;z={prop$jscomp$109:void 0},N=G.next())z.prop$jscomp$109=N.value,N=void 0,((N=f.legacyPolymer)==null?0:N.forwardHostProps)&&Ibg.has(z.prop$jscomp$109)||Object.defineProperty(Q.prototype,z.prop$jscomp$109,{set:function(T){return function(O){var c=this;wc0.has(this)||(this.setters?LF(function(){var B,h;return void((h=(B=c.setters)[T.prop$jscomp$109])==null?void 0:h.call(B,O))}):(this.rawProps[T.prop$jscomp$109]=O,this.queuingRender&&T.prop$jscomp$109===
"data"&&O!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(z),
get:oWq.has(z.prop$jscomp$109)?void 0:function(){return V6s}});
customElements.define(t,Q)};
_.d7u=function(A,t){return(A=_.a8(A,t))?_.j3(_.of(A)):null};
_.KI=function(A){if(A=_.a8(A,Number.MAX_VALUE,void 0,"width"))return _.of(A)};
_.a8=function(A,t,f,X){X=X===void 0?"width":X;if(!A||!A.length)return null;if(_.M("kevlar_tuner_should_always_use_device_pixel_ratio")){var Q=window.devicePixelRatio;_.M("kevlar_tuner_should_clamp_device_pixel_ratio")?Q=Math.min(Q,_.cx("kevlar_tuner_clamp_device_pixel_ratio")):_.M("kevlar_tuner_should_use_thumbnail_factor")&&(Q=_.cx("kevlar_tuner_thumbnail_factor"));Scg=Q}else Scg||(Scg=window.devicePixelRatio);Q=Scg;_.M("kevlar_tuner_should_always_use_device_pixel_ratio")?t*=Q:Q>1&&(t*=Q);if(_.M("kevlar_tuner_min_thumbnail_quality"))return A[0].url||
null;Q=A.length;if(_.M("kevlar_tuner_max_thumbnail_quality"))return A[Q-1].url||null;if(f)for(var q=0;q<Q;q++)if(A[q].url.indexOf(f)>=0)return A[q].url||null;for(f=0;f<Q;f++)if(A[f][X]>=t)return A[f].url||null;for(t=Q-1;t>0;t--)if(A[t][X])return A[t].url||null;return A[0].url||null};
aPb=function(){gt.size?setTimeout(function(){wt($7l)},0):Hix=0};
$7l=function(){var A=(0,_.OJ)(),t=null,f=!1;gt.forEach(function(Q){Q.loaded=!0;Q.loadTime=A;Q.pendingPaint=!1;var q=KNg.get(Q);q&&q.resolve(A);t=Q;f||!Q.ftlEligible&&Q.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(f=!0)});
var X;((X=t)==null?0:X.markDirty)&&t.markDirty();gt.clear();Hix=0;f&&gWg(A)};
wW5=function(A){gt.add(A);A.pendingPaint=!0;Hix||(Hix=_.sX(_.a6,aPb))};
sn0=function(A){A.loaded=!1;A.loadTime=Infinity;var t=KNg.get(A);t&&(t.reject(Error("nh")),KNg.delete(A));A.pendingPaint&&(gt.delete(A),A.pendingPaint=!1)};
_.kXp=function(A){var t=A.indexOf(":");return t===-1?{originalName:A}:{originalName:A.substring(0,t),datasyncId:A.substring(t+1)}};
_.Ag0=function(){return _.l(function(A){if(rPb!==void 0)return A.return(rPb);rPb=new Promise(function(t){var f;return _.l(function(X){switch(X.nextAddress){case 1:return _.ht(X,2),X.yield(_.kA.open("test-only"),4);case 4:return X.yield(_.kA.delete("test-only"),5);case 5:_.qq(X,3);break;case 2:if(f=_.vC(X),f instanceof Error&&f.name==="SecurityError")return t(!1),X.return();case 3:t("caches"in window),_.LO(X)}})});
return A.return(rPb)})};
Xbb=function(){return _.l(function(A){if(A.nextAddress==1)return A.yield(_.Ag0(),2);if(!A.yieldResult)return A.return(void 0);tFu||(tFu=new fDx);return A.return(tFu)})};
QUp=function(A){var t,f,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:return q.yield(Xbb(),2);case 2:t=q.yieldResult;if(!t)throw Error("ph");return q.yield(t.open("yt-player-local-img"),3);case 3:return f=q.yieldResult,q.yield(f.match(A),4);case 4:X=q.yieldResult;if(!X)throw Error("qh");return q.yield(X.blob(),5);case 5:return Q=q.yieldResult,q.return(Q)}})};
qCs=function(A,t){for(var f in A)if(A.hasOwnProperty(f)&&t[f])return f;return null};
Jgx=function(A){return"stamp"+A.replace("-","_")+"_"};
Ue5=function(A){var t=A.match(/\[\[([\w\.]+)\]\]/);if(t&&t.length>1)return t[1];_.HQ(Error("sh`"+A));return null};
eaT=function(A){return A===void 0?_.Ka("REUSE_COMPONENTS",!1):A||!1};
NTg=function(A,t,f){f&&(t.is?(GMg.has(t)&&(A=GMg.get(t),f=A.listener,delete t[A.property],f.type==="element"&&t.removeEventListener(f.eventName,f.handler),GMg.delete(t)),lDu(t)):t.__proto__==HTMLElement.prototype&&(t=new _.xj("Rendererstamper removed a non custom element","Stamper: "+A+" element: "+(t&&t.nodeName)),_.K4(t)))};
uqg=function(A,t,f,X){var Q=t.node?t.node:t;_.sF(f).parentNode===Q&&(t.removeChild(f),NTg(A,f,X));if(A=rt.get(f))rt.delete(f),_.a6.cancelJob(A);f.hidden=!1};
zab=function(A,t,f,X){if(t&&t.children&&(f=t.children[f]))if(_.Ka("DEFERRED_DETACH"))for(;f&&!rt.has(f);){var Q=A,q=t,e=f,G=X;e.hidden=!0;Q=_.jY(_.a6,uqg.bind(null,Q,q,e,G),0);rt.set(e,Q);f=f.nextElementSibling}else for(;(e=t.lastElementChild)&&(t.removeChild(e),NTg(A,e,X),e!=f););};
_.Ao=function(){for(var A=_.Hu.apply(0,arguments),t=!0,f=_.U(A),X=f.next();!X.done;X=f.next())if(typeof X.value!=="string"){t=!1;break}return t?A.join(" ").trim()||void 0:function(){for(var Q="",q=_.U(A),e=q.next();!e.done;e=q.next())if(e=e.value,typeof e==="function"&&(e=e()),e)if(typeof e==="string")Q+=" "+e;else for(var G in e)if(e.hasOwnProperty(G)){var N=e[G];typeof N==="function"&&(N=N());N&&(Q+=" "+G)}Q=Q.trim()||void 0;return _.$f(Q)}};
_.Ph5=function(A,t){return _.q_(A.entities,"markersEngagementPanelSyncEntity",t)};
_.to=function(A,t){return _.q_(A.entities,"playerStateEntity",t)};
TTs=function(A,t){return _.q_(A.entities,"fantasyWinProbabilityEntity",t)};
ics=function(A,t){return _.q_(A.entities,"fantasyTeamEntity",t)};
Ocz=function(A,t){return _.q_(A.entities,"fantasyPlayerEntity",t)};
cgb=function(A,t){return _.q_(A.entities,"booleanEntity",t)};
BTg=function(A,t){return _.q_(A.entities,"qrCodeEntity",t)};
MFu=function(A){return _.q_(A.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
hax=function(A){var t;return(t=Chx[A])!=null?t:"EVENT_SPAN_TYPE_UNKNOWN"};
Ra5=function(A){var t=A.nodeName;if(A.id)return t+="#"+A.id;if(A.classList)for(var f=_.U(A.classList),X=f.next();!X.done;X=f.next())t+="."+X.value;A.parentElement&&(t=Ra5(A.parentElement)+" > "+t);return t};
meT=function(A){return function(t){var f=hax(t.type);return f==="EVENT_SPAN_TYPE_UNKNOWN"?A(t):mNs("event",{type:f,nodepath:t.target instanceof Element?Ra5(t.target):void 0},function(){return A(t)})}};
_.f1=function(A){A&&BK0("event")&&(A=meT(A));return iW5(function(t){var f,X=(f=A)==null?void 0:f(t);return typeof X==="boolean"?X:!0})};
Q6=function(A){return function(){return A()?A():void 0}};
v_x=function(A){var t=_.GU("animated-rolling-character"),f=Diu(),X=d2(A.character)||d2(A.previousCharacter),Q=_.U(Dt0()),q=Q.next().value,e=Q.next().value;_.oh(function(){if(window.ResizeObserver&&_.M("web_fix_rolling_numbers_zoom_safari")){var G=new _.qI(function(){var z,T,O=Math.round(((T=(z=t.value.querySelector("div"))==null?void 0:z.getBoundingClientRect().height)!=null?T:0)*100)/100;O&&e(O)},500),N=new ResizeObserver(function(){G.fire()});
N.observe(t.value);return function(){N.disconnect();G.dispose()}}});
mix(function(){var G=_.M("web_fix_rolling_numbers_zoom_safari")?q:A.marginMultiplier;if(G){var N;(N=f.value)==null||N.cancel();X?(N=A.previousCharacter?Number(A.previousCharacter)+10:A.rollUp?0:30,A.shouldAnimate||(N-=bc5(A,N))):(N=A.rollUp?0:2,A.shouldAnimate||(N-=A.rollUp?-1:1));t.value.style.marginTop="-"+N*G+"px";A.shouldAnimate?f.value=Wcs(t.value,A,N,X,G):t.value.style.display=A.character?"":"none"}});
return _.u("animated-rolling-character",{el:t,class:"animatedRollingCharacterHost"},Tbl(X,function(){for(var G=[],N=1;N<30;N++)G.push(_.u("div",null,N%10));return _.u(_.Tw,null,_.u("div",null,"\u00a0"),G,_.u("div",null,"\u00a0"))},function(){return ygx(A.character)}))};
ygx=function(A){return _.u(_.Tw,null,_.u("div",null,"\u00a0"),_.u(_.Tw,null,Tbl(!A||_.Ux(A),function(){return _.u("div",null,"\u00a0")},function(){return _.u("div",null,A)})),_.u("div",null,"\u00a0"))};
Wcs=function(A,t,f,X,Q){f=new Animation(new KeyframeEffect(A,[{transform:"translateY(0px)"},{transform:"translateY("+(X?bc5(t,f):t.rollUp?-1:1)*Q+"px)"}],Lcg),document.timeline);t.character?(A.style.display="",f.onfinish=null):f.onfinish=function(){A.style.display="none"};
f.play();return f};
bc5=function(A,t){var f=Number(A.character)+10;if(A.previousCharacter)if(A.character){var X=Number(A.character),Q=Number(A.previousCharacter);A=A.rollUp?Q<X?f:f+10:Q<X?f-10:f}else A=A.rollUp?30:0;else A=A.character==="0"?f:A.rollUp?f-10:f+10;return t-A};
pbx=function(A){return function(t){var f={},X;for(X in t){var Q=void 0,q=void 0;((Q=void 0)==null?0:(q=Q.callbacks)==null?0:q[X])||(f[X]=t[X])}return _.u(ZW5,null,function(){for(var e in f)t[e]=_.$f(f[e]);t.disableReactiveLogging=!0;return _.u(A,Object.assign({},t))})}};
Dez=function(A,t,f,X,Q,q,e){f=new Animation(new KeyframeEffect(A,[{transform:"translateY(0px)"},{transform:"translateY("+(q?E_T(t,f,X,Q):X?-1:1)*e+"px)"}],n_5),document.timeline);t?(A.style.display="",f.onfinish=null):f.onfinish=function(){A.style.display="none"};
f.play();return f};
E_T=function(A,t,f,X){var Q=Number(A)+10;t?A?(A=Number(A),t=Number(t),f=f?t<A?Q:Q+10:t<A?Q-10:Q):f=f?30:0:f=A==="0"?Q:f?Q-10:Q+10;return X-f};
IDb=function(A){var t=Diu(),f=Diu();vJ0(function(){t.value=A.numberText;f.value=A.numberValue},[A.numberText]);
var X=A.fontSizeMultiplier?A.heightPx*A.fontSizeMultiplier:A.heightPx,Q=nJb(function(){if(A.numberText){var e=A.numberText;var G=A.forceRollUp||!f.value||!A.numberValue||f.value<A.numberValue;var N=!!A.shouldAnimate,z=t.value,T=[],O=0,c=0,B=(z?z.replace(/\D/g,"").length:0)-(e?e.replace(/\D/g,"").length:0);z=z?z.split(/(\d)/).filter(Boolean):[];for(e=e.split(/(\d)/).filter(Boolean);B<0;){var h=e[c];T.push({character:h,rollUp:G,marginMultiplier:X,shouldAnimate:N});c++;d2(h)&&B++}for(;O<B;)h=z[O],T.push({previousCharacter:h,
rollUp:G,marginMultiplier:X,shouldAnimate:N}),O++,d2(h)||B++;for(;c<e.length;)B=e[c],h=z[O],d2(B)===d2(h)?(c++,O++):d2(B)?(O++,B=void 0):d2(h)&&(c++,h=void 0),T.push({character:B,previousCharacter:h,rollUp:G,marginMultiplier:X,shouldAnimate:N});G=T}else G=[];return G},[A.numberText]),q=A.numberText?["height: "+X+"px;",
"line-height: "+A.heightPx+"px;"].join(" "):"";return _.u("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:q,dir:"ltr","aria-hidden":"true"},Q.map(function(e){return _.u(Fcz,Object.assign({},e))}))};
xes=function(A){switch(A){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.jUT=function(A,t){if(!A&&!t)return"medium";A=Math.max(A||0,t||0);return A>=256?"large":A>=96?"medium":"small"};
YCx=function(A){switch(A){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
VF5=function(A){return new KeyframeEffect(A,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Zcs=function(A){return new KeyframeEffect(A,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Jo=function(A){if(A.length===0)return Cd5(A,"E");var t=_.U(Cd5({source:function(){return A()},
computation:function(Q,q){return(q==null?0:q.value)?A(q.value):Q}},"F")),f=t.next().value,X=t.next().value;
t=t.next().value;return[f,X,t]};
_.U7=function(A){return function(){var t="",f;for(f in A){for(var X=A[f];typeof X==="function";)X=X();X!==void 0&&X!==null&&(t+="; "+f+": "+X)}return t.length>0?_.$f(t.slice(2)):_.$f()}};
o_b=function(A){switch(A){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"}};
deu=function(A,t){if(t)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(A)switch(A){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
Kcb=function(A,t,f,X,Q,q,e){var G=SCT(A),N=G.disabled,z=G.iconPosition,T=G.style,O=G.focused,c=function(){return!!W()&&z()==="icon-only"},B=function(){return!!W()&&z()==="icon-only-40"},h=function(){return!!W()&&z()==="icon-with-label"},W=function(){return!!t||!(X==null||!X())};
return{type:function(){return T()==="call-to-action-inverse"?"text":T()==="overlay-dark"&&A().type!=="filled"&&A().type!=="tonal"?"tonal":A().type},
shouldFocus:function(){return(O()||(q==null?void 0:q()))&&!N()},
hasIconLeading:function(){return!!W()&&z()==="leading"},
hasIconTrailing:function(){return!!W()&&z()==="trailing"},
hasIconLeadingTrailing:function(){return!!W()&&!!(f||Q!=null&&Q())&&z()==="leading-trailing"},
hasIconOnly:c,hasIconOnly40:B,hasIconWithLabel:h,iconButton:function(){return c()||B()||h()},
visiblyDisabled:function(){return(N()?"disabled":A().state)==="disabled"||N()},
overrideSmallSizeIcon:function(){return!A().ignoreIconSizeOverride&&$eT(A(),W())},
iconToRender:t?t:function(){return _.u(_.el,{icon:X,gradientColor:function(){var L;return(L=A().customColors)==null?void 0:L.iconGradientColor},
size:function(){return Hcg(A(),!0,A().ignoreIconSizeOverride)},
active:function(){return A().toggled},
iconFilter:function(){return aDT(A())},
animateIcon:e})},
secondaryIconToRender:f?f:function(){return _.u(_.el,{icon:Q,size:function(){return Hcg(A(),!0,A().ignoreIconSizeOverride)},
active:function(){return A().toggled},
iconFilter:function(){return aDT(A())}})}}};
SCT=function(A){return{size:function(){return A().size},
style:function(){return A().style},
focused:function(){return A().focused},
disabled:function(){return A().disabled},
onTap:function(t){var f,X;return(X=(f=A()).onTap)==null?void 0:X.call(f,t)},
alignByText:function(){return A().alignByText},
aTagConfig:function(){return A().aTagConfig},
customColors:function(){return A().customColors},
segmentedPosition:function(){return A().segmentedPosition},
toggled:function(){return A().toggled},
toggleable:function(){return A().toggleable},
accessibilityLabel:function(){return A().accessibilityLabel},
onToggle:function(t){var f,X;return(X=(f=A()).onToggle)==null?void 0:X.call(f,t)},
iconPosition:function(){return A().iconPosition},
oneOffCustomTextWrap:function(){return A().oneOffCustomTextWrap},
disableTextEllipsis:function(){return A().disableTextEllipsis},
disableBackdropFilter:function(){return A().disableBackdropFilter},
tooltipText:function(){return A().tooltipText},
tooltipShape:function(){return A().tooltipShape},
ariaHidden:function(){return A().ariaHidden},
tabIndex:function(){return A().tabIndex},
buttonText:function(){return A().buttonText},
formattedButtonText:function(){return A().formattedButtonText},
animatedTextProps:function(){return A().animatedTextProps},
onClickRateLimitMs:function(){return A().onClickRateLimitMs}}};
$eT=function(A,t){t=(A.iconPosition==="icon-only"||A.iconPosition==="icon-only-40"||A.iconPosition==="icon-with-label")&&t;return!A.segmentedPosition&&t&&A.size==="S"};
Hcg=function(A,t,f){switch(A.size){case "XS":return 16;case "S":return!f&&$eT(A,t)?24:16;default:return 24}};
g_b=function(A){switch(A){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"}};
wb5=function(A){switch(A){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"}};
sU5=function(A){switch(A){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"}};
aDT=function(A){if(A.style==="overlay-dark"&&A.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
G6=function(A){return A&&A.endsWith("px")?Number(A.slice(0,-2)):0};
AIx=function(A,t){var f=_.U(_.Jo(function(){var Q,q;return(q=A())!=null?q:t==null?void 0:(Q=t())==null?void 0:Q.text})),X=f.next().value;
return[function(Q){var q=_.yq(function(){var N;return Object.assign({},{location:"bottom",offset:16,delay:1},t==null?void 0:t(),{text:(N=X())!=null?N:""})},void 0,"IJU38d");
_.oo(function(){var N=q();_.CF(function(){_.a6.addJob(function(){lm.notify(Q,N)},4)})},"WlsgZc");
var e=function(){kMx(Q,q())},G=function(){rgT()};
Q.addEventListener("mouseenter",e);Q.addEventListener("focus",e);Q.addEventListener("mouseleave",G);Q.addEventListener("blur",G);Q.addEventListener("tap",G);_.dD(function(){Q.removeEventListener("mouseenter",e);Q.removeEventListener("mouseleave",G);Q.removeEventListener("focus",e);Q.removeEventListener("blur",G);Q.removeEventListener("tap",G);rgT()})},
f.next().value]};
fIg=function(A,t){if(!JZ){var f;RMz(function(){return f=Ynx(A,t)});
return f}A.parent=tZx();return Ynx(A,t)};
tZx=function(){var A=_.eG(JZ||void 0,IBl);return _.Bbb(A)?void 0:A};
NI=function(A,t){_.Wn(A,Object.assign({},t,{forceClickLogging:!0}))};
Xju=function(A){switch(A){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
qb0=function(A,t){var f=_.bP(A==null?void 0:A.onTap),X={};f&&(X.getClickedVisualElement=function(){var Q;return Qel(A,f,t==null?void 0:(Q=t.value)==null?void 0:Q.visualElement)});
X=_.yx({elementsCommand:A.onTap,forceNewState:!0,additionalCommandArgs:X});return vn(X)?X:void 0};
JIz=function(A,t,f,X){NI(A,Object.assign({},{form:{element:t,event:f}},X))};
UYb=function(A,t,f,X,Q){var q=void 0;return function(e){var G=_.bP(f?A==null?void 0:A.onDisabledTap:A==null?void 0:A.onTap);if(G){var N;q=(N=q)!=null?N:t==null?void 0:t.value;if(G)if(_.M("web_button_vm_click_client_ve_killswitch"))JIz(G,q,e);else{var z;N=Qel(A,G,(z=q)==null?void 0:z.visualElement);if(Q){JIz(G,Q,e,{clickedVisualElement:N,form:{element:Q}});return}JIz(G,q,e,{clickedVisualElement:N})}}X&&X(e)}};
Qel=function(A,t,f){t=t==null?void 0:t.clickTrackingParams;var X,Q;A=A==null?void 0:(X=A.loggingDirectives)==null?void 0:(Q=X.clientVeSpec)==null?void 0:Q.uiType;if(f&&A&&!t)return f};
ed5=function(A){switch(A){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"}};
Gjx=function(A){switch(A){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"}};
lIz=function(A){switch(A){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"}};
Njg=function(A){switch(A){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"}};
_.um=function(A){return _.yq(function(){g9b()();return k9b(A)},{debugName:"d8B62c"},"DEXkhd")};
uuz=function(A,t){return _.q_(A.entities,"engagementToolbarStateEntityPayload",t)};
PWx=function(A){(A=_.zV(A))&&_.zdT(A)};
_.zdT=function(A){var t=_.Ws();t&&_.Y7(t,A)};
Tj0=function(A,t,f){_.kJ(A,"yt-open-popup-action",[t,f||A])};
iE0=function(A,t){var f=_.d9(A,"endpoint"),X=_.d9(A,"action");return(f=X?X:f)&&t&&(f=t.navigationEndpointPopupMap[f])&&(A=_.Ae(f,A),(f=_.d9(A,"renderer"))&&t.supportedPopups.hasOwnProperty(f))?{openPopupAction:{popupType:t.popupTypeMap[f],popup:A}}:null};
OEs=function(A,t,f,X){if(X){var Q;f=f==null?void 0:(Q=f.data)==null?void 0:Q.contents;(Q=f instanceof Array&&f.length?f[0]:f)&&(f=_.d9(Q,"renderer"))&&X.supportedPopups.hasOwnProperty(f)&&(t.stopPropagation(),Tj0(A,{openPopupAction:{popupType:X.popupTypeMap[f],popup:Q}}))}};
MZx=function(A,t,f,X){X=X===void 0?!1:X;var Q=cI5(t);if(Q){Q.href&&Lp(Q.href);var q=t.button;q=q!==void 0?q===0&&!z6(t):!z6(t);Q.data&&q&&BjT(A,Q,t,f,X)}};
BjT=function(A,t,f,X,Q){Q=Q===void 0?!1:Q;var q=_.cx("pbj_navigate_limit",-1)===0;CWb(t);_.Px().resolve(_.z7(t4));var e=t.data;if(Object.keys(e).length!==0)if(!_.M("unplugged_web_disable_actions_for_cec_endpoint")&&_.C(e,_.Xd))_.M("endpoint_behavior_command_executor_fix_killswitch")||(f.preventDefault(),f.stopPropagation()),_.tl(A,[e],A);else if(X=iE0(e,X))e.loggingUrls&&e.loggingUrls.forEach(function(N){N.baseUrl&&_.XO(N.baseUrl)}),f.preventDefault(),f.stopPropagation(),Tj0(A,X,t);
else{var G=hdx(0,t.data,f);if(A=t.getForm)A=A(),G.tempData=G.tempData||{},G.tempData=Object.assign({},G.tempData,A);A=_.Z2(f);if(X=A.find(function(N){return!!N.visualElement}))G.createScreenConfig=G.createScreenConfig||{},G.createScreenConfig.clickedVisualElement=X.visualElement;
if(!q)if(f.preventDefault(),f.stopPropagation(),_.C(e,_.Rdz)&&!Q&&_.XH.instance)_.XH.instance.resolveCommand(e,G);else if(_.M("kevlar_command_handler_formatted_string")&&!Q&&_.XH.instance&&mYx(e))Q=A.find(function(N){return!!N.is})||f.target,f={form:Object.assign({},G,{event:f,
element:Q,originatingNode:t})},_.XH.instance.resolveCommand(e,f);else{e=_.Z2(f);f=[];for(Q=0;Q<e.length;Q++)(q=e[Q].is)&&f.push(q);ros({parents:f.join(","),text:t.innerText},function(){_.s9(t,"yt-navigate",G)})}}};
bEx=function(A){if(A=cI5(A))CWb(A),kZ5(A.href)};
cI5=function(A){A=_.Z2(A);for(var t,f=0;f<A.length;f++)if(t=A[f],t.tagName==="A"&&t.classList.contains("yt-simple-endpoint")){if(!t.data)break;return t}return null};
z6=function(A){return A.shiftKey||A.altKey||A.metaKey||A.ctrlKey};
WH5=function(A,t){var f={itct:t.clickTrackingParams};_.M("kevlar_client_side_screens")&&(!_.C(t,_.zD)||_.M("kevlar_exclude_endpoint_killswitch"))&&(f.endpoint=JSON.stringify(t));_.M("enable_unknown_lact_fix_on_html5")&&_.Px().resolve(_.z7(_.PO))&&(f.lact=_.iX());gbT(f);_.$J(A,f)};
CWb=function(A){A.href&&Object.keys(A.data).length!==0&&WH5(A.href,A.data)};
mYx=function(A){for(var t=_.U(yIs),f=t.next();!f.done;f=t.next())if(A[f.value])return!1;return!0};
vZx=function(){if(T6)return T6;if(window.lottie)return T6=Promise.resolve(window.lottie);var A=_.KU(_.ah("LOTTIE_URL"));return A?T6=new Promise(function(t,f){var X=document.createElement("script");X.addEventListener("load",function(){t(lottie)});
X.addEventListener("error",function(Q){var q="Lottie library failed to load.";Q?Q.message&&(q+=" Original description: "+Q.message,_.gL(Q,q)):Q=Error(q);_.K4(Q);f(Q)});
X.setAttribute("async","");_.UV(X,A);document.head.appendChild(X)}):Promise.reject(Error("th"))};
LHs=function(){return T6?T6:vZx()};
pjp=function(A){if(A)switch(A){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.M("kevlar_use_wil_icons"))return A=(A=MFu(_.$I().getState()))&&A.animationLightUrl&&A.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:A.animationLightUrl,pathDarkTheme:A.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,A?A:im.get("LIKE");break;case "LIKE_DELHI_PLAYER":return im.get("LIKE_DELHI_PLAYER")}};
EZ5=function(A){var t=pjp(A);if(t)return t;switch(A){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return im.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return im.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return im.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return im.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return im.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return im.get("NOTIFICATION_BELL")}};
nZb=function(A,t){if(!A.closest)return!1;t=!!pjp(t);return _.ah("ID_TOKEN")&&t?!!A.closest("segmented-like-dislike-button-view-model")||!!A.closest("yt-player-quick-action-buttons"):!1};
FHx=function(A,t){if(!A||DYs)t=!1;else{var f;if(!(f=nZb(A,t)))if(A.closest)if(f=!_.ah("ID_TOKEN"),A=A.closest("ytd-subscription-notification-toggle-button-renderer-next"),f||!A)f=!1;else{var X;f=((X=A.data)==null?void 0:X.targetId)==="notification-bell"&&t!=="EXPAND_MORE"}else f=!1;t=f}return t};
IIz=function(A){var t,f;return _.l(function(X){switch(X.nextAddress){case 1:return _.ht(X,2),X.yield(fetch(A),4);case 4:return t=X.yieldResult,X.yield(t.json(),5);case 5:return X.return(X.yieldResult);case 2:f=_.vC(X),_.K4(f),_.LO(X)}})};
xYz=function(A,t){var f,X,Q;return _.l(function(q){if(q.nextAddress==1)return(f=t?A.pathDarkTheme:A.path)?q.yield(Promise.all([IIz(f),vZx()]),2):q.return();X=q.yieldResult;Q=X[0];O7.set(f,Q);_.LO(q)})};
Ybq=function(A,t,f,X){function Q(e,G){if(t.value===G&&!t.cancelled){for(;A.firstChild;)A.removeChild(A.firstChild);A.classList.add("ytSpecIconShapeHost");e(A,X)}}
var q=_.jeu(_.Px().resolve(_.fI),f);typeof q==="function"?(t.value=null,Q(q,null)):(t.value=q,q.then(function(e){Q(e,q)}))};
VZb=function(A,t){var f=document.createElement("div"),X=_.Vz(f,function(){return _.u(_.P,{cond:A,then:function(Q){return _.u(_.cO,{data:Q,options:t})}})},"ca");
return[f,X]};
_.BO=function(A,t){if(t){var f={};ZEx.forEach(function(X){X=oZb(t,X,"--yt-lightsource-");Object.assign(f,X)});
dYx.forEach(function(X){X=oZb(t,X,"--yt-basic-");Object.assign(f,X)});
_.Q_(A,f)}};
oZb=function(A,t,f){var X={};X[f+_.ea(t)]=A&&A[t]?_.bY(A[t]):"";return X};
_.C1=function(A,t,f){MI[A]||(MI[A]={});MI[A][t]=f};
_.ho=function(A){MI[A]||(MI[A]={});return MI[A]};
Sbx=function(A){if(!A)return{};var t=A.foregroundTitleColor,f=A.backgroundColor;A=A.borderColor;var X="text";A?X="outline":f&&(X="filled");return{type:X,customColors:{color:t?_.bY(t):void 0,backgroundColor:f?_.bY(f):void 0,borderColor:A?_.bY(A):void 0}}};
gZs=function(A){var t=A.renderer;var f=A.element;var X=A.commandController;var Q=A.onTapCallback;var q=A.skipCommandHandling;var e=A.overrides;var G=A.forceIcon;var N=A.forceModernIconButton;var z=A.forceDisabled;var T=A.isSubscribe===void 0?!1:A.isSubscribe;var O=A.isPressed===void 0?!1:A.isPressed;var c=A.useButtonSize===void 0?!1:A.useButtonSize;A=$Y5(t);T&&(A.style="mono",A.type="filled");G=!t.icon||!G&&t.text?t.icon?t.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:N?"icon-only":"icon-only-40";G==="icon-only-40"&&(A.type="text");var B;N=Object;T=N.assign;c=HE5(t,c);O=!!t.isSelected||!_.M("web_propagate_is_pressed_killswitch")&&!!O;var h=t.isSelected!==void 0;z=z===void 0?t.isDisabled:z;var W=t.text?_.CI(t.text):void 0;var L,E,D,S=((L=t.accessibilityData)==null?void 0:(E=L.accessibilityData)==null?void 0:E.label)||((D=t.accessibility)==null?void 0:D.label);L=S?S:_.dF(t.text);f=aIp(t,f,X,Q,q);X=KH5(t);X!=null&&X.length?(X=_.yx({innertubeCommand:iTu(X),
forceNewState:!0}),X=vn(X)?X:void 0):X=void 0;return T.call(N,{},A,c,{iconPosition:G},e,{focused:!1,toggled:O,toggleable:h,disabled:z,formattedButtonText:W,accessibilityLabel:L,onTap:f,aTagConfig:X},Sbx((B=t.colorData)==null?void 0:B.basicColorPaletteData),{oneOffCustomTextWrap:t.oneOffCustomTextWrap})};
aIp=function(A,t,f,X,Q){return function(q){var e=KH5(A);X(e,q);if(!Q){e=_.U(e);for(var G=e.next();!G.done;G=e.next())NI(G.value,{form:{element:t,event:q},commandController:f})}}};
KH5=function(A){var t=[];A.command&&t.push(A.command);A.serviceEndpoint&&t.push(A.serviceEndpoint);A.navigationEndpoint&&t.push(A.navigationEndpoint);return t};
HE5=function(A,t){if(t)switch(A.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(A.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
$Y5=function(A){switch(A.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_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",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"}}};
wjx=function(A,t){return typeof A!=="object"||A===null?!1:Object.keys(t).every(function(f){return f in A})};
RM=function(A){return Object.fromEntries(Object.keys(A).map(function(t){return[t,t]}))};
sex=function(A,t,f){return rhx(f,function(X,Q){return function(q){var e=_.Hu.apply(1,arguments);return wjx(q,A)?Q.apply(null,[q[t]].concat(_.YV(e))):Q.apply(null,[q].concat(_.YV(e)))}})};
mf=function(A){return function(t,f){return sex(A,t,f)}};
kjx=function(A,t){var f;return(f=_.q_(A,"playlistLoopStateEntity",t))!=null?f:void 0};
rIx=function(A,t){var f;return(f=_.q_(A,"toggleMenuServiceItemEntity",t))!=null?f:void 0};
_.bm=function(A){return A!=null&&A.watch?A.watch.isTheaterMode:!1};
_.WO=function(A){return A!=null&&A.watch?A.watch.isWatchFullscreen:!1};
_.y6=function(A){if(_.Ais(A))return!0;A=_.tfl(A);return _.M("web_watch_enable_single_column_grid_view")?A:!1};
_.Ais=function(A){return A!=null&&A.watch?A.watch.isSwatcherooActive:!1};
_.tfl=function(A){return A.watch.isWatchNarrowWidth};
_.f6b=function(A){return A.watch.openEngagementPanels};
vO=function(A,t){return _.q_(A.entities,"likeStatusEntity",t)};
X35=function(A,t){return _.q_(A.entities,"likeCountEntity",t)};
_.QI5=function(A,t){return _.q_(A.entities,"stringEntity",t)};
q4s=function(A,t){return _.q_(A.entities,"dataFreshnessEntity",t)};
Jip=function(A,t){if(!A)return!1;var f,X=(f=_.C(A,_.qJ))==null?void 0:f.signal;if(X&&t.signalEndpointMap)return!!t.signalEndpointMap[X];var Q;if((f=(Q=_.C(A,_.L1))==null?void 0:Q.request)&&t.continuationEndpointMap)return!!t.continuationEndpointMap[f];for(var q in A)if(t.commandEndpointMap[q])return!0;return!1};
Uks=function(A,t){if(t.streamingEndpointMap)for(var f in A)if(t.streamingEndpointMap[f]&&(A=t.streamingEndpointMap[f]))return A()};
e_x=function(A,t){var f,X=(f=_.C(A,_.qJ))==null?void 0:f.signal;if(X&&t.signalEndpointMap&&(f=t.signalEndpointMap[X]))return f();var Q;if((f=(Q=_.C(A,_.L1))==null?void 0:Q.request)&&t.continuationEndpointMap&&(Q=t.continuationEndpointMap[f]))return Q();for(var q in A)if(t.commandEndpointMap[q]&&(A=t.commandEndpointMap[q]))return A()};
G05=function(A){var t={"Content-Type":"application/json"};_.ah("EOM_VISITOR_DATA")?t["X-Goog-EOM-Visitor-Id"]=_.ah("EOM_VISITOR_DATA"):_.ah("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=_.ah("VISITOR_DATA"));t["X-Youtube-Bootstrap-Logged-In"]=_.ah("LOGGED_IN",!1);_.ah("DEBUG_SETTINGS_METADATA")&&(t["X-Debug-Settings-Metadata"]=_.ah("DEBUG_SETTINGS_METADATA"));if(A!=="cors"){var f=_.ah("INNERTUBE_CONTEXT_CLIENT_NAME");f&&(t["X-Youtube-Client-Name"]=f);(f=_.ah("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(t["X-Youtube-Client-Version"]=
f);(f=_.ah("CHROME_CONNECTED_HEADER"))&&(t["X-Youtube-Chrome-Connected"]=f);(f=_.ah("DOMAIN_ADMIN_STATE"))&&(t["X-Youtube-Domain-Admin-State"]=f)}_.Ka("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(A=_.ah("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(t["X-YouTube-Lava-Device-Context"]=A):A!=="cors"&&_.Ka("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(A=_.ah("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(t["X-YouTube-Lava-Device-Context"]=A);return t};
l60=function(A,t){t.watchNextResponse||t.reelItemWatchResponse?t.watchNextResponse?A.content=t.watchNextResponse:A.content=t.reelItemWatchResponse:t.playerResponse?A.player=t.playerResponse:t.reelWatchSequenceResponse&&(A.reelSequence=t.reelWatchSequenceResponse)};
p1=function(A){return function(){return new A}};
E7=function(A){var t=_.Px();return function(){return t.resolve(A)}};
_.n1=function(A){if(!A)return null;for(var t=[],f=0;f<A.textSegments.length;f++){var X=A.textSegments[f];X.text?t.push(X):X.emojiId&&t.push({emoji_id:X.emojiId})}return{text_segments:t}};
Tyx=function(A,t,f,X,Q,q,e){q=q===void 0?[]:q;var G=new _.Dn;G.endpoint=f;if(!f)return _.ai(new _.xj("handle undefined endpoint",t.tagName)),G;var N=eqx(f);N.length&&(_.tl(A,N,t,X),G.actions=N);f.loggingUrls&&f.loggingUrls.forEach(function(T){T.baseUrl&&Qy(T.baseUrl,T.attributionSrcMode)});
N=!_.M("web_skip_impression_click_killswitch")&&X&&X.impression;if(f.clickTrackingParams&&!Nyx(f)&&!uPs(t)&&!N&&(N=_.er(),!_.FR(N,t))){var z=t.getScreenLayer&&t.getScreenLayer();z?N.clickCommand(f,null,z):N.clickCommand(f,null)}N=!1;for(z=0;z<q.length;z++)if((0,q[z])(t,f,X)){N=!0;break}!N&&z_g(f)&&(G.ajaxPromise=PVx(A,t,f,X,Q,e));return G};
uPs=function(A){var t;return(A=(t=A.data)==null?void 0:t.navigationEndpoint)&&!!A.clickTrackingParams};
Nyx=function(A){var t=_.C(A,_.qJ);if(t&&(t=t.signal)&&ivx.indexOf(t)>=0)return!0;for(var f in A)if(Ov5.indexOf(f)>=0)return!0;return!1};
z_g=function(A){var t;if(((t=_.C(A,_.qJ))==null?void 0:t.signal)==="CLIENT_SIGNAL")return!1;for(var f in A)if(ciT.indexOf(f)>=0)return!1;A=Object.keys(A);return A.length===1&&A[0]==="loggingUrls"?!1:!0};
W8s=function(A,t,f,X,Q,q,e){var G=_.IM.instance;if(G&&_.xE(G,X))var N=_.jl(G,X,Q).then(function(T){return(T==null?0:T.data)?T:{data:T}});
else N=A.requestDataForServiceEndpoint(X,Q),_.C(X,Byb)||_.C(X,Mfl)||_.C(X,_.CVp)||_.C(X,h_u)||_.K4(new _.xj("No RequestBuilder for endpoint",X));var z=_.YE();z.promise.thenCatch(function(){var T=_.d9(X,"action")||_.d9(X,"command")||_.d9(X,"endpoint");T&&(T=X[T],T.hasOwnProperty("onFailureAction")?_.tl(t,[T.onFailureAction],f):T.hasOwnProperty("onFailureCommand")&&_.tl(t,T.onFailureCommand,f));N.cancel("Resolver promise rejected")});
N.then(function(T){if(T){var O=T.error;if(O){if(q&&q.onServerError)q.onServerError(X,T);z.reject(new _.xj("Response error",X,O))}else if(T=T.data)if(O=T.error){if(q&&q.onServerError)q.onServerError(X,T);z.reject(new _.xj("Returned error",X,O))}else{R_x(t,f,T,X);mkb(T);if(O=Utx(T))for(var c=_.U(O),B=c.next();!B.done;B=c.next()){B=B.value;var h=_.Px().resolve(_.z7(bv5))||V6;if(!_.IM.instance||!h.some(function(L){return!!_.C(X,L)})||_.M("kevlar_response_processor_allowlist_killswitch")){var W=h=void 0;
((W=_.C((h=B)==null?void 0:h.commandMetadata,_.Jl))==null?0:W.sendPost)?_.Al(t,[B]):_.tl(t,[B],f)}}(c=_.C(T==null?void 0:T.frameworkUpdates,Zn))&&e&&e(c);if(q&&q.onSuccess)q.onSuccess(X,T);z.resolve(new _.oM(T,O))}}else z.reject(new _.xj("Invalid service endpoint provided",X))},function(T){z.reject(T)});
return z.promise};
mkb=function(A){var t;(A=(t=_.C(A==null?void 0:A.onResponseReceivedCommand,_.yig))==null?void 0:t.continuationItems)&&(A==null?void 0:A.length)===1&&_.C(A[0],vSg)&&_.Wt("so_r",void 0,"search_overview_answer")};
PVx=function(A,t,f,X,Q,q){var e;return(e=t.getNetworkManager&&t.getNetworkManager()?t.getNetworkManager():_.Px().resolve(_.z7(_.TD)))?W8s(e,A,t,f,X,Q,q):_.OX("No network manager.")};
R_x=function(A,t,f,X){if(f=f.trackingParams||f.loggingDirectives&&f.loggingDirectives.trackingParams){var Q;(_.C(X,_.de)||_.C(X,L8q)||_.C(X,p3x))&&X.clickTrackingParams?Q=_.zV(X.clickTrackingParams):_.M("web_graft_to_parent_command")&&X.clickTrackingParams&&(Q=_.zV(X.clickTrackingParams));var q;X=(q=t.getScreenLayer)==null?void 0:q.call(t);t=_.er().graftServerVe(f,Q,X);_.r2(A,"yt-store-grafted-ve-action",[t])}};
_.ES5=function(A){var t=new Image;return new _.yy(function(f,X){t.addEventListener("load",function(){f()});
t.addEventListener("error",function(){X()});
t.src=A})};
nSs=function(A){return!!A};
Dkp=function(A){return!!A};
F8T=function(A,t,f){var X=A.rowIndex;X!==void 0&&_.r2(A.hostElement,"yt-section-reactive-dismissal",[X,t,f])};
_.Sl=function(A,t,f){A=_.U(A);for(var X=A.next();!X.done;X=A.next()){X=X.value;if(X===t)break;for(var Q=_.U(f),q=Q.next();!q.done;q=Q.next())if(q=q.value,X.tagName===q||!_.M("web_event_button_role_check_killswitch")&&X.role==="button"&&q==="BUTTON")return!0}return!1};
_.$E=function(A,t,f){A=_.U(A);for(var X=A.next();!X.done;X=A.next()){X=X.value;if(X===t)break;for(var Q=_.U(f),q=Q.next();!q.done;q=Q.next())if(X.id===q.value)return!0}return!1};
_.K1=function(){var A=_.Px().resolve(_.z7(_.HO));return A?(A=A.getCurrentPage())?_.aM(A):null:null};
_.ge=function(){var A=_.K1();if(!A){var t=_.Px().resolve(_.z7(_.HO)),f=t?typeof t:"no page manager";t=t?t.getCurrentPage():null;f=new _.xj("Player is missing when requested.",f,t?t.tagName:"no page");_.HQ(f)}return A};
_.aM=function(A){return A&&A.getPlayer?A.getPlayer():null};
I6p=function(A,t){A={args:{raw_player_response:A}};t&&(A.args=Object.assign({},A.args,t));return A};
xkg=function(A){if(A.args){if(A.args.raw_player_response)return A.args.raw_player_response;if(A.args.player_response)return JSON.parse(A.args.player_response)}};
_.jI5=function(A,t){var f={url:"/watch?v="+A.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};A.playlistId&&(f.url+="&list="+A.playlistId);A.playerParams&&(f.url+="&pp="+A.playerParams);A={watchEndpoint:A,commandMetadata:{webCommandMetadata:f}};t&&(A.clickTrackingParams=t);return A};
Vfb=function(){return Y40||!!_.Ae("yt.player.Application")};
oSb=function(){return Zvb||!!document.querySelector("link#player-css")};
S40=function(){function A(){Y40=!0;dkg.resolve()}
var t,f;return _.l(function(X){dkg||(dkg=new _.Qc,Vfb()?A():(t=document.createElement("script"),t.addEventListener("load",A),f=_.xC(_.ah("PLAYER_JS_URL")),_.UV(t,f),document.head.appendChild(t)));return X.return(dkg.promise)})};
Hvx=function(){function A(){Zvb=!0;$kz.resolve()}
if(!$kz)if($kz=new _.Qc,oSb())A();else{var t=document.createElement("link");t.id="player-css";t.addEventListener("load",A);var f=_.xC(_.ah("PLAYER_CSS_URL"));_.lL(t,f,"stylesheet");document.head.appendChild(t)}return $kz.promise};
a6x=function(){return Vfb()&&oSb()?Promise.resolve([]):Promise.all([S40(),Hvx()])};
K8x=function(A,t,f){var X={args:{}};A&&(X.args.raw_player_response=A);t&&(X.args.raw_watch_next_response=t);f&&(X.args=Object.assign({},X.args,f));return X};
k05=function(A,t,f){var X=!1;X=X===void 0?!0:X;A=typeof A==="string"?_.we(document,A):A;var Q=gSx+"_"+_.gs(A),q=w3l[Q];if(q&&X)return sIx(t,f)?q.api.loadVideoByPlayerVars(t.args||null):q.loadNewVideoConfig(t),q.api;q=new s7(A,Q,t,f,void 0);w3l[Q]=q;q.addOnDisposeCallback(function(){delete w3l[q.getId()]});
return q.api};
sIx=function(A,t){return t&&t.serializedExperimentFlags?t.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):A&&A.args&&A.args.fflags?A.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
riz=function(){var A=new _.Qc;A.resolved=!1;var t=A.resolve;A.resolve=function(f){A.resolved=!0;t(f)};
return A};
fVx=function(A){var t={};AxT().install((t.document_disposed={callback:A},t))};
kE=function(A,t){if(!A&&Math.random()<=_.cx("kevlar_unified_player_logging_threshold")){A=Error("vh`"+(t?t:"Unspecified error"));if(_.M("kevlar_unified_player_throw_errors"))throw A;_.K4(A)}};
_.XBx=function(){var A=_.Ae("ytDebugData.callbacks");A||(A={},_.zm("ytDebugData.callbacks",A));return A};
qSx=function(A,t){var f=_.XBx();if(_.M("web_dd_iu")||Q5s.includes(A))f[A]=t};
Jxz=function(){return _.l(function(A){return A.return({isLeader:_.dXx(_.$I().getState()),c:_.ah("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.ah("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
UEx=function(){var A;_.l(function(t){if(t.nextAddress==1)return qSx("APP_STATE",Jxz),t.yield(_.Px().resolve(_.re),2);A=t.yieldResult;qSx("PI",function(){return _.l(function(f){return f.return(A.getVideoStats())})});
_.LO(t)})};
ePl=function(A){return!!A&&A.length>0&&A[0].loggingUrls!=null&&A[0].loggingUrls.length>0};
Geq=function(){var A=_.ah("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(A==null?void 0:A.length)===2?A[1]:null};
lVx=function(A){if(!A)return[];var t=[];A=_.U(A);for(var f=A.next();!f.done;f=A.next())if(f=f.value,f.loggingUrls){f=_.U(f.loggingUrls);for(var X=f.next();!X.done;X=f.next())X=X.value,X.baseUrl&&t.push(X.baseUrl)}return t};
Nlb=function(A){var t=_.Sa(_.Iq(_.Xb.location.href));A=_.Sa(_.Iq(A));return _.M("kevlar_clear_non_displayable_url_params")?t==AE(A):AE(t)==AE(A)};
AE=function(A){var t=_.uaT(A);A=A.slice(0);var f=["frags"];_.M("kevlar_hide_pp_url_param")&&f.push("pp");_.M("kevlar_hide_time_continue_url_param")&&f.push("time_continue");f=_.U(f);for(var X=f.next();!X.done;X=f.next())X=X.value,A=_.Hs(_.Sa(A),X);return _.Sa(A)+(t?"#"+t:"")};
tE=function(A,t){t=Number(t)*1E3;var f=Math.round((0,_.OJ)()),X=f.toString();A={innertubeResponse:A,serverDateTimestampMs:X,lastModifiedTimestampMs:X,expireTimestampMs:(f+t).toString()};if(t=_.ah("INNERTUBE_CONTEXT_CLIENT_NAME"))A.clientName=t;return A};
P3x=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++zPT};
Tlb=function(A){return!isNaN(A)&&A>0};
Ous=function(){_.M("web_adaptive_repeat_ase")&&iuz&&_.SY("applicationStarted",iuz)};
_.cxx=function(){var A=_.mx(),t=_.Ws();t&&A&&_.ZN(t,[A],!0)};
Mox=function(A){return A&&Blx.some(function(t){return A.includes(t)})};
Wex=function(A){var t=_.C(A,_.fV);if(!t)return!1;var f=t.url,X=t.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!f)return _.HQ(Error("Ah")),!1;if(t.target==="TARGET_NEW_WINDOW"){t={};_.M("resolve_url_parent_tracking_params")&&(!_.G7(f)||l2(window.location.href,f))&&(t={endpoint:A,itct:A.clickTrackingParams});gbT(t);A=null;try{if(X){a:{var Q=f,q=t;X=X===void 0?!1:X;q&&_.$J(Q,q);var e=_.of(Q),G=_.j3(e);Q!=G&&_.te(Error("Zf`"+Q));Q=G;try{if(X){G=Q;G=SQx(G);Lp(G);A=_.tt(window,G,"_blank",
"attributionsrc");break a}}catch(c){_.g9(c)}Lp(Q);A=_.tt(window,e,"_blank")}C3s(_.Px().resolve(hP5),A,f);return!0}}catch(c){_.HQ(c)}_.$J(f,t);t={target:"_blank",noopener:!1};e=window;G=xl(f)?f:_.of(typeof f.href!="undefined"?f.href:String(f));X=self.crossOriginIsolated!==void 0;A="strict-origin-when-cross-origin";window.Request&&(A=(new Request("/")).referrerPolicy);Q=t.noreferrer;if(X&&Q&&A==="unsafe-url")throw Error("we");A=Q&&!X;Q=t.target||f.target;q=[];var N=[],z=!1;for(O in t){var T=t[O];switch(O){case "width":case "height":case "top":case "left":q.push(O+
"="+T);break;case "target":break;case "noopener":case "noreferrer":T?N.push(O):(z=!0,N.push(O+"=false"));break;case "attributionsrc":q.push(O+(T?"="+T:""));break;default:q.push(O+"="+(T?1:0))}}var O=Q!==void 0&&!["_blank","_self","_top","_parent",""].includes(Q);O=m5()&&O;RPb&&X&&q.length===0&&N.length>0&&!O&&!z?(N.length===2&&(N=["noreferrer"]),_.tt(e,G,Q,N[0]),A=mEx()):(O=q.join(","),_.pg()&&e.navigator&&e.navigator.standalone&&Q&&Q!="_self"?(O=_.yT("A"),Kb(O,G),O.target=Q,A&&(O.rel="noreferrer"),
((t=t.attributionsrc)||t==="")&&O.setAttribute("attributionsrc",t),t=document.createEvent("MouseEvent"),t.initMouseEvent("click",!0,!0,e,1),O.dispatchEvent(t),O=mEx()):A?(O=_.tt(e,"",Q,O),e=_.j3(G),O&&(O.opener=null,e===""&&(e="javascript:''"),e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+fW(e)+'">',e=wW(e),(t=O.document)&&t.write&&(t.write(si(e)),t.close()))):((O=_.tt(e,G,Q,O))&&t.noopener&&(O.opener=null),O&&t.noreferrer&&(O.opener=null)),A=O);C3s(_.Px().resolve(hP5),
A,f);return!0}O=_.Wx(f);O=Mox(O)||f==="https://studio.youtube.com/";if(_.G7(f)&&!l2(window.location.href,f)||O)Lp(f),hl(),_.pp(f,void 0,void 0,window.top,bu5);else return _.K4(new _.xj("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",A)),!1;return!0};
_.LeT=function(A,t){t=t===void 0?0:t;if(!(_.C(A,yxb)||_.C(A,vM5)||_.C(A,_.fV)&&_.C(A,_.fV).url))return!1;var f,X=(f=_.C(A,_.fV))==null?void 0:f.url;f=X?{externalLinkData:{url:X}}:null;return _.er().clickCommand(A,f,t)};
EMx=function(A,t,f,X,Q){Q=Q===void 0?{}:Q;return function(q){var e,G;var N=((e=A.loggingDirectives)==null?0:(G=e.clientVeSpec)==null?0:G.uiType)?_.Xl(A.loggingDirectives.clientVeSpec.uiType):void 0;Q.clickedVisualElement||(Q.clickedVisualElement=N);N=pBu(A,t);f(N,q);N=_.U(N);for(e=N.next();!e.done;e=N.next()){e=e.value;G=X;var z=q,T=Q;T.form?T.form.event=z:T.form={element:G,event:z};NI(e,T)}}};
pBu=function(A,t){var f=[];t?(A.toggledCommand&&f.push(A.toggledCommand),A.toggledServiceEndpoint&&f.push(A.toggledServiceEndpoint)):(A.defaultCommand&&f.push(A.defaultCommand),A.defaultServiceEndpoint&&f.push(A.defaultServiceEndpoint),A.defaultNavigationEndpoint&&f.push(A.defaultNavigationEndpoint));return f};
nMx=function(A,t){var f=A.toggledStyle||A.style,X;switch((X=t?f:A.style)==null?void 0:X.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"}}};
_.Q9=function(){return _.l(function(A){return A.nextAddress==1?A.yield(_.Px().resolve(_.re),2):A.return(_.Px().resolve(DEu)())})};
_.JE=function(){return _.Px().resolve(DEu)()};
_.Un=function(){return{lottieEl:void 0}};
Feu=function(A,t){return A.startsWith(t.uniqueId)};
IVx=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(_.Q9(),2);t=X.yieldResult;if((f=t)==null||!f.addEventListener)return eL(),X.return();t.addEventListener("onCueRangeEnter",A);_.LO(X)})};
xEx=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(_.Q9(),2);t=X.yieldResult;if((f=t)==null||!f.removeEventListener)return eL(),X.return();t.removeEventListener("onCueRangeEnter",A);_.LO(X)})};
j5l=function(A){var t,f,X,Q,q;_.l(function(e){if(e.nextAddress==1)return e.yield(_.Q9(),2);t=e.yieldResult;if((f=t)==null||!f.addCueRange)return eL(),e.return();X=_.U(A.timings);for(Q=X.next();!Q.done;Q=X.next())q=Q.value,t.addCueRange(A.uniqueId+"-"+q,q/1E3,(q+100)/1E3);_.LO(e)})};
YSz=function(A){var t,f,X,Q,q;_.l(function(e){if(e.nextAddress==1)return e.yield(_.Q9(),2);t=e.yieldResult;if((f=t)==null||!f.removeCueRange)return eL(),e.return();X=_.U(A.timings);for(Q=X.next();!Q.done;Q=X.next())q=Q.value,t.removeCueRange(A.uniqueId+"-"+q);_.LO(e)})};
Vo5=function(){var A,t,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(_.Q9(),2);A=X.yieldResult;if((t=A)==null||!t.getPlayerState)return eL(),X.return();f=A.getPlayerState();return X.return(f===2)})};
eL=function(){_.K4(new _.xj("Smartimation player does not exist or is corrupted"))};
Zug=function(){try{var A;return(A=window.CSS)!=null&&A.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(t){return _.K4(new _.xj("Smartimation CSS.supports threw an error")),!1}};
Ke0=function(A,t,f,X,Q){var q=A.playlistId?oMb:dEq;t=t();f=f();Q=!!A.videoId&&Q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.PE(t))return SSb({data:A,actionType:q,disabled:Q},f);if(A.videoId&&X())return $Eg({data:A,actionType:q,disabled:Q});switch(t){case "TRANSFER_STATE_UNKNOWN":return $Eg({data:A,actionType:q,disabled:Q});case "TRANSFER_STATE_FAILED":return A.videoId?Huz({data:A,actionType:q,disabled:Q}):aVx({data:A,actionType:q,disabled:Q});case "TRANSFER_STATE_COMPLETE":return aVx({data:A,
actionType:q,disabled:Q});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return SSb({data:A,actionType:q,disabled:Q},f);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return A.videoId?Huz({data:A,actionType:q,disabled:Q}):$Eg({data:A,actionType:q,disabled:Q});default:return $Eg({data:A,actionType:q,disabled:Q})}};
gMu=function(A,t){var f=A.onTapCommand,X=_.bP(f);if(A.videoId&&_.C(X,_.Ga))return _.C(X,_.Ga).action=t,f;A.playlistId&&_.C(X,_.lj)&&(_.C(X,_.lj).action=t);return f};
$Eg=function(A){var t=A.data;var f=A.actionType;A=A.disabled;return{text:wBu,iconType:"OFFLINE_DOWNLOAD",onTap:gMu(t,f.ACTION_ADD),disabled:A}};
SSb=function(A,t){var f=A.data;var X=A.actionType;A=A.disabled;var Q="OFFLINE_DOWNLOAD";t>=0&&t<=.1?Q="OFFLINE_DOWNLOADING_ZERO":t>.1&&t<=.3?Q="OFFLINE_DOWNLOADING_TWENTY":t>.3&&t<=.5?Q="OFFLINE_DOWNLOADING_FORTY":t>.5&&t<=.7?Q="OFFLINE_DOWNLOADING_SIXTY":t>.7&&t<1?Q="OFFLINE_DOWNLOADING_EIGHTY":t===1&&(Q="OFFLINE_PIN");return{text:s5T,iconType:Q,onTap:gMu(f,X.ACTION_REMOVE_WITH_PROMPT),disabled:A}};
aVx=function(A){var t=A.data;var f=A.actionType;A=A.disabled;return{text:keu,iconType:"OFFLINE_PIN",onTap:gMu(t,f.ACTION_REMOVE_WITH_PROMPT),disabled:A}};
Huz=function(A){var t=A.data;var f=A.actionType;A=A.disabled;return{text:rxq,iconType:"OFFLINE_DOWNLOAD",onTap:gMu(t,f.ACTION_RETRY),disabled:A}};
_.Nt=function(A,t){var f=g9b();return _.yq(function(){f();return k9b(A,[_.$f(t)||""])},{debugName:"LUZslf"},"Z105t")};
AN0=function(A){var t=_.Nt(_.LZ,function(){return A().videoId}),f=_.Nt(_.pZ,function(){return A().playlistId});
return function(){return A().videoId?t:A().playlistId?f:_.U(_.hZ("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
tgb=function(A){var t=_.Nt(Ep,function(){return A().videoId}),f=_.Nt(_.oag,function(){return A().playlistId});
return function(){return A().videoId?t:A().playlistId?f:_.U(_.hZ(0,void 0,"K4tgOc")).next().value}};
fpb=function(A){var t=_.Nt(_.s4g,function(){return A().videoId});
return function(){return A().videoId?t:_.U(_.hZ(!1,void 0,"Oaxwcf")).next().value}};
Xvx=function(A){var t=_.Nt($Xx,function(){return A().videoId});
return function(){return A().videoId?t:_.U(_.hZ("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Qmx=function(){return{}};
_.Gpz=function(A,t,f){return{submitForm:function(){var X,Q,q,e;return _.l(function(G){if(G.nextAddress==1){X=qMx(A());if(!X)return G.return();if(X.onSubmit)return JNu(t),X.onSubmit(),JNu(f),G.return();if(!X.submitConfig||!X.formData)return G.jumpTo(0);X.disableDuringSubmission&&U60(A(),!0);JNu(t);return G.yield(eKx(X.submitConfig,X.formData()),3)}Q=G.yieldResult;JNu(f);if(((q=Q)==null?0:q.submitResult)&&((e=X)==null?0:e.onSubmitResult))X.onSubmitResult(Q.submitResult);X.disableDuringSubmission&&U60(A(),
!1);return G.return()})},
isValid:function(){var X=qMx(A());if(X){var Q;return!((Q=X.isValid)==null||!Q.call(X))}return!0},
isSubmitting:function(){var X,Q;return!!((X=qMx(A()))==null?0:(Q=X.isSubmitting)==null?0:Q.call(X))}}};
_.uj=function(){if(!lpq){var A=_.U(_.hZ(new Map,void 0,"Y1XnBc"));lpq=A.next().value;Np5=A.next().value}return lpq};
_.ur5=function(A){Np5(new Map(A))};
qMx=function(A){if(A)return _.uj()().get(A)};
eKx=function(A,t){var f;return _.l(function(X){return X.nextAddress==1?t?(f=_.Px().resolve(_.z7(zKz)))&&A.submitId?X.yield(f.submitForm(A.submitId,t,PFb,A.params,A.clickTrackingParams),2):X.return(Promise.reject(Error("Ch"))):X.return(Promise.reject(Error("Bh"))):X.return(X.yieldResult)})};
U60=function(A,t){if(A){var f=_.uj();f().set(A,Object.assign({},f().get(A),{isSubmitting:function(){return t}}));
_.ur5(f())}};
JNu=function(A){if(A){var t=_.Px().resolve(_.i2);t&&(A=_.bP(A()))&&t.resolveCommand(A)}};
OCx=function(A,t){t=t===void 0?{shouldPersist:!0}:t;return{useUpdatableData:function(f,X){var Q=_.yq(function(){return A(f())},void 0,"Gmrblb"),q=Tpz(f,Q,X,t);
_.oo(function(){if(Q()!=null){iCs.set(Q(),q);var e=Q();_.dD(function(){iCs.delete(e)})}},"j4hx9b");
return q},
getData:function(f){var X;return(X=iCs.get(A(f)))==null?void 0:X[0]()},
updateData:function(f,X){f=A(f);f=iCs.get(f);if(!f)return!1;var Q=_.U(f);f=Q.next().value;Q=Q.next().value;X=X(f());Q(X);return!0}}};
Tpz=function(A,t,f,X){X=X===void 0?{}:X;var Q=_.U(_.Jo(function(){var G=A(),N=t();return cNz(G,N,f,X)})),q=Q.next().value,e=Q.next().value;
return[q,function(G){e(G);var N=t();if(X.shouldPersist&&N!=null){var z,T=(z=f==null?void 0:f.map(function(O){return O()}))!=null?z:[];
_.za.set(N,[G,T])}}]};
cNz=function(A,t,f,X){X=X===void 0?{}:X;if(t==null||!X.shouldPersist)return A;X=_.za.get(t);if(!X)return A;var Q=_.U(X);X=Q.next().value;var q=Q.next().value,e;Q=(e=f==null?void 0:f.map(function(G){return G()}))!=null?e:[];
if((q==null?0:q.length)&&(f==null?0:f.length)&&Q.some(function(G,N){return G!==q[N]}))return _.za.remove(t),A;
(f==null?0:f.length)&&_.za.set(t,[X,Q]);return X};
Bpg=function(A){var t=_.U(_.hZ(!0,void 0,"bKtO6d")),f=t.next().value;t.next();return function(){var X=v5(A.children());return _.u(_.P,{cond:f,then:function(){return X},
else:A.fallback})}()};
_.P1=function(A){var t=Mgx(A),f=t.data,X=t.mapping,Q=t.wrapper;t=t.pendingFallback;var q=function(){return CFp(_.$f(f))},e=function(){var G=q(),N=[];
G=_.U(G);for(var z=G.next();!z.done;z=G.next()){var T=void 0;z=z.value;var O=void 0;for(T in z)if(!(!z).hasOwnProperty(T)){O=T;break}(T=O)&&N.push(T)}return N};
return A.data?_.u(Bpg,{fallback:t},function(){return _.u(_.xk,{each:e},function(G,N){var z=Q?function(O){return Q(function(){return X[G](O,N)},T,N)}:function(O){return X[G](O,N)};
z.debugName||(z.debugName=String(G));if(!X[String(G)])return document.createComment("");z.componentType!==EH&&hKs(String(G));var T=RKx(q,G,N);return _.u(z,{data:T})})}):_.u(_.Tw,null)};
Mgx=function(A){var t=A.targetId||m6x(A.children);if(!A.data||!t)return Object.assign({},A,{mapping:A.children});var f="stamper-"+bCl++,X=function(){var G;return(G=typeof A.targetId==="function"?A.targetId(f):A.targetId)!=null?G:f};
t=_.U(WAz(function(){var G=CFp(A.data());G.targetId=X;return G})).next().value;
var Q=Object.assign({},(_.Px().resolve(_.z7(yNT))||{}).replaceableMapping,A.children);if(A.replacementWrapper){var q=Q.notificationTextRenderer,e=Q.notificationMultiActionRenderer;q&&(Q.notificationTextRenderer=function(G,N){return A.replacementWrapper(q({data:G.data},N))});
e&&(Q.notificationMultiActionRenderer=function(G,N){return A.replacementWrapper(e({data:G.data},N))})}return Object.assign({},A,{data:t,
mapping:Q,wrapper:function(G,N,z){return fIg({targetId:X,stamperIndex:z},A.wrapper?function(){return A.wrapper(G,N,z)}:G)}})};
RKx=function(A,t,f){var X;return _.yq(function(){var Q=A()[f()];if(Q)X=Q[t];else return _.K4(new _.xj("Stamper failed to find "+String(t)+" at index "+f()+" of data array of length "+(A().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),X;return Q[t]},void 0,"AtsHlc")};
m6x=function(A){A=_.U(Object.keys(A));for(var t=A.next();!t.done;t=A.next())if(t=t.value,vX5.includes(t)||LAp.includes(t)||pvl.includes(t))return!0;return!1};
CFp=function(A){return A?Array.isArray(A)&&A instanceof Array?A:[A]:[]};
hKs=function(A){if(_.M("web_enable_renderer_logger")){var t;(t=_.Px().resolve(_.z7(EXb)))!=null&&t.loggingEnabled&&!t.ids.has(A)&&t.ids.add(A)}};
nX0=function(){var A,t;return(t=(A=_.Px().resolve(_.z7(_.FH)))==null?void 0:A())!=null?t:!1};
FAx=function(A,t){A=A===void 0?D6u:A;switch(t.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},A,{isOpen:t.payload});default:return A}};
x6x=function(A,t){A=A===void 0?Ip0:A;switch(t.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},A,{isAllowed:t.payload});default:return A}};
YMu=function(A,t){A=A===void 0?jmb:A;switch(t.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},A,{errorMessage:t.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},A,{title:t.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},A,{privacy:t.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},A,{isDisabled:t.payload});default:return A}};
ZCx=function(A,t){A=A===void 0?Vgl:A;switch(t.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},A,{isOpen:t.payload});default:return A}};
d6s=function(A,t){A=A===void 0?oXb:A;switch(t.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},A,{isFullscreen:t.payload});case "SET_NAVIGATION_BUTTON":var f=t.payload.targetId,X=Object.assign({},A.navigationButtons);X[f]=t.payload.button;return Object.assign({},A,{navigationButtons:X});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},A,{topPanelId:t.payload});case "SET_SECONDARY_HEADER":return f=t.payload.panelId,X=Object.assign({},A.secondaryHeader),X[f]=t.payload.secondaryHeader,
Object.assign({},A,{secondaryHeader:X});default:return A}};
apu=function(){return Df(Object.assign({},{voiceSearch:dR5,engagementPanel:d6s,bottomSheet:FAx,cinematicSetting:x6x,shorts:sHb,drawerLayout:ZCx,createPlaylist:YMu,locationCollection:SM5,reportChannel:$6b,reportForm:HCq},b2b))};
KAl=function(A,t){_.a6.addLowPriorityJob(function(){var f,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:return _.ht(q,2),q.yield(vZx(),4);case 4:return q.yield(fetch(A),5);case 5:return f=q.yieldResult,q.yield(f.json(),6);case 6:X=q.yieldResult;O7.set(A,X);requestAnimationFrame(function(){t(X)});
_.qq(q,0);break;case 2:Q=_.vC(q),_.K4(Q),_.LO(q)}})})};
gXT=function(A){var t={animationConfig:{},listeners:{}},f=function(){A(!0)};
t.listeners.data_failed=f;t.listeners.error=f;t.listeners.data_ready=function(){A(!1)};
return t};
kpl=function(A){var t=A.model;var f=A.subscribed;var X=A.isOverlay;var Q=A.element;var q=A.commandController;var e=A.notificationState;if(f){var G,N;var z=(t==null?void 0:(G=t.buttonStyle)==null?void 0:G.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:t==null?void 0:(N=t.unsubscribeButtonContent)==null?void 0:N.buttonText}else{var T;z=t==null?void 0:(T=t.subscribeButtonContent)==null?void 0:T.buttonText}a:{var O;switch(t==null?void 0:(O=t.buttonStyle)==
null?void 0:O.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":G="S";break a;default:G="M"}}a:if(X)X="overlay";else switch(t.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":X="overlay";break a;default:X="mono"}a:if(f)var c="tonal";else switch((c=t.buttonStyle)==null?void 0:c.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":c=
"tonal";break a;default:c="filled"}return{style:X,type:c,state:t.disableSubscribeButton?"disabled":"active",size:G,focused:A.focused,toggled:f,accessibilityLabel:wvb(t,f,e),buttonText:z,iconPosition:t.disableNotificationBell?"none":"leading-trailing",onTap:smu(t,f,Q,q),disableTextEllipsis:!!A.disableTextEllipsis}};
smu=function(A,t,f,X){return function(Q){if(t){var q;var e=A.disableNotificationBell?_.bP(A==null?void 0:(q=A.unsubscribeButtonContent)==null?void 0:q.onTapCommand):_.bP(A==null?void 0:A.onShowSubscriptionOptions)}else{var G;e=_.bP(A==null?void 0:(G=A.subscribeButtonContent)==null?void 0:G.onTapCommand)}e&&NI(e,{form:{element:f==null?void 0:f.value},commandController:X});Q.stopPropagation()}};
wvb=function(A,t,f){if(t){if(A==null?0:A.disableNotificationBell){var X;return A==null?void 0:(X=A.unsubscribeButtonContent)==null?void 0:X.accessibilityText}switch(f){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Q;return A==null?void 0:(Q=A.bellAccessibilityData)==null?void 0:Q.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var q;return A==null?void 0:(q=A.bellAccessibilityData)==null?void 0:q.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var e;return A==null?void 0:(e=
A.bellAccessibilityData)==null?void 0:e.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var G;return A==null?void 0:(G=A.bellAccessibilityData)==null?void 0:G.disabledLabel;default:var N;return A==null?void 0:(N=A.unsubscribeButtonContent)==null?void 0:N.accessibilityText}}else{var z;return A==null?void 0:(z=A.subscribeButtonContent)==null?void 0:z.accessibilityText}};
rNu=function(A,t){return _.q_(A.entities,"subscriptionStateEntity",t)};
ACT=function(A,t){return _.q_(A.entities,"subscriptionNotificationStateEntity",t)};
tEu=function(A,t){return _.q_(A.entities,"upcomingEventReminderStateEntity",t)};
fE5=function(A,t){return _.q_(A.entities,"commentEntityPayload",t)};
XKq=function(A,t){return _.q_(A.entities,"engagementToolbarSurfaceEntityPayload",t)};
QEx=function(A,t){return _.q_(A.entities,"triStateButtonStateEntityPayload",t)};
qrx=function(A,t){return _.q_(A.entities,"commerceCartCheckoutButtonEntity",t)};
JCb=function(A,t){return _.q_(A.entities,"commandEntity",t)};
USb=function(A){if(A){switch(A){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":A="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":A="NOTIFICATIONS_OFF";break;default:A="NOTIFICATIONS_NONE"}return A}};
eYl=function(A,t,f){f.subscribed!==t&&((f=f.key)&&_.og(_.Ta("subscriptionStateEntity",f,{key:f,subscribed:t})),A.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:t})),t||_.kJ(A,"yt-unsubscribe-action"))};
lEz=function(A){A=_.C(_.bP(A),_.ij);var t,f,X,Q;return(Q=_.C(A==null?void 0:(t=A.panelLoadingStrategy)==null?void 0:(f=t.inlineContent)==null?void 0:(X=f.sheetViewModel)==null?void 0:X.content,GsT))==null?void 0:Q.listItems};
NQb=function(A,t){if(A.onShowSubscriptionOptions&&t&&(A=lEz(A.onShowSubscriptionOptions),A!=null&&A.length)){var f=USb(t);A.forEach(function(X){X=_.C(X,_.On);var Q,q,e,G,N=X==null?void 0:(Q=X.leadingImage)==null?void 0:(q=Q.sources)==null?void 0:(e=q[0])==null?void 0:(G=e.clientResource)==null?void 0:G.imageName;X&&N&&(X.isSelected=N===f)})}};
u7g=function(A,t,f,X){t&&f?A.style.width=f+"px":!t&&X&&(A.style.width=X+"px")};
zYb=function(A,t,f){var X;(X=A.lottieEl)==null||X.goToAndPlay(0);var Q;(Q=t.lottieEl)==null||Q.goToAndPlay(0);_.c1(_.a6,function(){var q;(q=f.lottieEl)==null||q.goToAndPlay(0)},300)};
Plz=function(A){return!(A==null||!A.iconName||(A==null?0:A.title))};
TQx=function(A,t,f,X){f&&_.a6.cancelJob(f);f=_.a6.addLowPriorityJob(function(){X(void 0)},5E3);
X(f);t&&A!==(t.likeStatus==="LIKE")&&t.key&&_.og(_.Ta("likeStatusEntity",t.key,{key:t.key,likeStatus:A?"LIKE":"INDIFFERENT",hadUserInteraction:A}))};
_.iKT=function(A,t){return _.q_(A.entities,"accountLinkStatusEntity",t)};
OKg=function(A,t){return _.q_(A.entities,"hatsSurveyEntity",t)};
cC5=function(A,t){return _.q_(A.entities,"hatsSurveyStateEntity",t)};
BQx=function(A,t){return _.q_(A.entities,"quantityIncrementerEntity",t)};
MEx=function(A){switch(A){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
Clx=function(A){switch(A){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}};
hYp=function(A){switch(A){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.mSl=function(A){var t=_.cx("web_generic_client_event_wait_period ",0);t||(t=3E5);var f=RYx.get(A);!_.M("enable_web_client_experiment_event_timeout_killswitch")&&f&&(0,_.OJ)()-f<t||(RYx.set(A,(0,_.OJ)()),_.SY("genericClientExperimentEvent",{eventType:A}))};
_.bKp=function(A,t){var f,X,Q,q;a:{var e=A.style;if(e===void 0)e=17;else switch(e){case "LIVE":e=18;break a;default:e=17}}return{type:e,text:t?f0x({seconds:t}):_.dF(A.text),accessibilityText:(f=A.text)==null?void 0:(X=f.accessibility)==null?void 0:(Q=X.accessibilityData)==null?void 0:Q.label,icon:(q=A.icon)==null?void 0:q.iconType}};
WVs=function(A){switch(A){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
yCb=function(A){if(!A)return"";var t,f=(t=_.Px().resolve(_.z7(_.FH)))==null?void 0:t(),X;if(!f&&((X=A.vibrantColorPalette)==null?0:X.iconInactiveColor))return Wi(A.vibrantColorPalette.iconInactiveColor,"1");var Q;return f&&((Q=A.darkColorPalette)==null?0:Q.iconInactiveColor)?Wi(A.darkColorPalette.iconInactiveColor,"1"):A.color?Wi(A.color,"1"):A.sampledThumbnailColor?(A=A.sampledThumbnailColor,"rgba("+A.red+","+A.green+","+A.blue+");"):""};
_.B1=function(A,t){if(!A.includes("DATE_PLACEHOLDER"))return A;var f=new Date(0);f.setUTCSeconds(t);return A.replace("DATE_PLACEHOLDER",v$b(f))};
LVb=function(A,t,f){return function(X){var Q=A.command;Q&&(NI(Q,{form:{element:f}}),t([Q],X))}};
E$x=function(A,t,f,X,Q){return function(q){var e=pKs(A,t);e&&NI(e,{form:{element:f},commandController:X});Q&&q.stopPropagation()}};
pKs=function(A,t){if(A.signInEndpoint&&!_.M("web_subscribe_sign_in_endpoint_killswitch"))return A.signInEndpoint;if(t){if(A.serviceEndpoints)return A.serviceEndpoints[1];if(A.onUnsubscribeEndpoints)return A.onUnsubscribeEndpoints[0]}else{if(A.serviceEndpoints)return A.serviceEndpoints[0];if(A.onSubscribeEndpoints)return A.onSubscribeEndpoints[0]}};
n$x=function(A,t){var f,X,Q,q;t=t&&((f=A.unsubscribeAccessibility)==null?void 0:(X=f.accessibilityData)==null?void 0:X.label)||((Q=A.subscribeAccessibility)==null?void 0:(q=Q.accessibilityData)==null?void 0:q.label);return A.longSubscriberCountText?[t,_.dF(A.longSubscriberCountText)].filter(function(e){return e}).join(" "):t};
Mt=function(A,t){return t||(A==null?0:A.isChannelDelegate)?"disabled":"active"};
DSl=function(A,t){var f;switch((f=A.style)==null?void 0:f.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Mt(A)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Mt(A)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Mt(A,!0)};case "OVERLAY":return t?{style:"overlay",type:"tonal",state:Mt(A)}:{style:"overlay",type:"filled",state:Mt(A)};default:return t?{style:"mono",type:"tonal",state:Mt(A)}:{style:"mono",type:"filled",state:Mt(A)}}};
_.CW=function(){for(var A=[],t=_.U(_.Hu.apply(0,arguments)),f=t.next();!f.done;f=t.next())if(f=f.value)if(typeof f==="string")A.push(f);else{f=_.U(Object.entries(f));for(var X=f.next();!X.done;X=f.next()){var Q=_.U(X.value);X=Q.next().value;(Q=Q.next().value)&&A.push(X)}}return A.join(" ")};
FVT=function(A){switch(A){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
IEx=function(A){switch(A){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
xST=function(A,t){var f=A.map(function(X){return X.toString()});
return _.f1(function(X){if(f.includes(X.key)){t&&X.preventDefault();var Q;(Q=X.currentTarget)==null||Q.click()}})};
_.jEg=function(){return xST(["Enter"])};
_.Yrs=function(){return xST(["Enter"," "],!0)};
_.hE=function(A){if(A.composedPath)return A.composedPath();if(!A.__composedPath){for(var t=[],f=A.target;f;)t.push(f),f=f.parentNode;t.push(window);A.__composedPath=t}return A.__composedPath};
_.Rv=function(A,t,f){A=_.U(A);for(var X=A.next();!X.done;X=A.next()){X=X.value;if(X===t)break;for(var Q=_.U(f),q=Q.next();!q.done;q=Q.next())if(q=q.value,X.tagName===q||X.role==="button"&&q==="BUTTON")return!0}return!1};
ZKp=function(A,t){var f,X=(f=t.observer)!=null?f:_.Px().resolve(id);if(A){f=VEq(A);var Q=[];t.showOption&&Q.push(X.observe(A,function(){t.visibilityCallback(!0,A)},t.showOption));
t.hideOption&&Q.push(X.observe(A,function(){t.visibilityCallback(!1,A)},t.hideOption));
t.prescanOption&&t.prescanCallback&&Q.push(X.observe(A,function(){t.prescanCallback()},t.prescanOption));
var q;f.visibilityMonitorKeys=((q=f.visibilityMonitorKeys)!=null?q:[]).concat(Q)}};
VEq=function(A){var t;return(t=A.polymerController)!=null?t:A};
_.bj=function(A){return!!_.mL(A)};
_.W1=function(A,t,f,X,Q){return function(q){var e=tZx();_.oo(function(){if(q){o$T(q,A(),Q);var G=dSg(q,A(),t,f,X,e);_.dD(G)}},"lrewVd")}};
o$T=function(A,t,f){var X=Sr5(t),Q=$S0(t);t=X&&HKb;var q=Q&&aEx;(X||Q)&&ZKp(A,{visibilityCallback:function(e){var G=_.Px().resolve(_.i2);e&&X?G.resolveCommand(X,{form:{element:f?A:void 0},disableClickTracking:!0}):!e&&Q&&G.resolveCommand(Q,{form:{element:f?A:void 0},disableClickTracking:!0})},
showOption:t,hideOption:q})};
dSg=function(A,t,f,X,Q,q){var e=new Map;if(t=_.mL(t)){var G;A=(X==null?void 0:(G=X.onTap)==null?void 0:G.value)||A;f=KV5(t,A,f==null?void 0:f.onTap,Q,q);A.addEventListener("click",f);e.set("click",f)}return function(){for(var N=_.U(e),z=N.next();!z.done;z=N.next()){var T=_.U(z.value);z=T.next().value;T=T.next().value;A.removeEventListener(z,T)}}};
_.mL=function(A){var t;return(A=(t=_.C(A,_.y9))==null?void 0:t.onTap)&&_.bP(A)};
Sr5=function(A){var t;return(A=(t=_.C(A,_.y9))==null?void 0:t.onVisible)&&_.bP(A)};
$S0=function(A){var t;return(A=(t=_.C(A,_.y9))==null?void 0:t.onHidden)&&_.bP(A)};
KV5=function(A,t,f,X,Q){var q=function(G){_.Px().resolve(_.i2).resolveCommand(A,G)},e=function(G){X&&_.Rv(_.hE(G),t,X)||q(G.target?{form:{element:G.target,
sourceData:A,mutationContext:Q}}:void 0)};
f&&(e=function(G){f(G,q)});
return e};
g$5=function(A){switch(A){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}};
wK5=function(A){var t=A.numAvatarsInCluster;switch(A.clusterSize){case "small":return t===2?22:18;case "40":return t===2?24:22;default:return t===2?24:20}};
sEp=function(A,t){return function(f){var X=Object.keys(t);_.oo(function(){if(A!=null&&A()){for(var Q=_.U(X),q=Q.next();!q.done;q=Q.next())q=q.value,f.addEventListener(q,t[q]);_.dD(function(){for(var e=_.U(X),G=e.next();!G.done;G=e.next())G=G.value,f.removeEventListener(G,t[G])})}},"bXZGfe")}};
ksl=function(A){switch(wK5(A)){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""}};
rC5=function(A){switch(A){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""}};
Av5=function(A){switch(wK5(A)){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""}};
tzg=function(A){switch(A){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""}};
fqx=function(A){switch(A){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}};
X2s=function(A){return A==="medium"||A==="48"||A==="large"||A==="extra-large"||A==="extra-extra-large"||A==="giant"};
QN0=function(A){return!!((A==null?0:A.includes(3))||(A==null?0:A.includes(5)))};
Jvp=function(A){var t=A.data;return{size:q6u(t.avatarImageSize),type:t.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:A.onTap,decorations:A.decorations||[],badgeText:A.badgeText,accessibilityText:A.accessibilityText,avatarButtonCustomClassName:A.avatarButtonCustomClassName,clusterLayoutConfig:A.clusterLayoutConfig}};
q6u=function(A){switch(A){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"}};
UQl=function(A){switch(A){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}};
eBg=function(A){switch(A){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
Glg=function(A){var t=A.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",f,X=A.avatars&&A.avatars.length>0?(f=_.C(A.avatars[0],_.v1))==null?void 0:f.avatarImageSize:"AVATAR_SIZE_UNKNOWN";f=UQl(X)||0;if(t){var Q,q=(Q=A.avatarClusterSize)!=null?Q:"AVATAR_SIZE_M";t=UQl(q);var e,G,N=Math.min((G=(e=A.avatars)==null?void 0:e.length)!=null?G:0,4),z;return{avatars:((z=A.avatars)==null?void 0:z.slice(0,4))||[],avatarSizeInPx:f,avatarStackStyle:{width:t+"px",height:t+"px",position:"relative"},avatarStyle:function(O){var c=
wK5({clusterSize:q6u(q),numAvatarsInCluster:N,avatarIndex:O});var B=UQl(q);N===3&&O===2?(B=(B-c)/2,B=(_.ah("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*B):B=void 0;return{position:"absolute",top:N===2&&O===1||N===3&&O===2||N===4&&O>=2?"0":void 0,bottom:N===2&&O===0||N>2&&O<2?"0":void 0,left:N===2&&O===1||N>2&&(O===1||O===3)?"0":void 0,right:N<=3&&O===0||N===4&&(O===0||O===2)?"0":void 0,transform:B?"translateX("+B+"px)":void 0,width:c+"px",height:c+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(O){return{clusterSize:q6u(A.avatarClusterSize),numAvatarsInCluster:N,avatarIndex:O}},
avatarButtonCustomClassName:void 0}}var T;return{avatars:((T=A.avatars)==null?void 0:T.slice())||[],avatarSizeInPx:f,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:eBg(X),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
lqg=function(A,t,f){return function(){NI(A,{form:{element:t},commandController:f})}};
N75=function(A){switch(A){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
unT=function(A){switch(A){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
zBg=function(A){if("accessibilityText"in A)return A.accessibilityText||"";if("title"in A){var t,f,X;return((t=A.title)==null?void 0:(f=t.accessibility)==null?void 0:(X=f.accessibilityData)==null?void 0:X.label)||""}if("accessibility"in A){var Q,q;return((Q=A.accessibility)==null?void 0:(q=Q.accessibilityData)==null?void 0:q.label)||""}return""};
P_b=function(A){return"inlinePlayerData"in A};
LW=function(A){return new T7z(A)};
iHb=function(A){switch(A){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"}};
OHx=function(A){switch(A){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
cvb=function(A){switch(A){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}};
B7z=function(A){return function(t){A&&(A.thumbnailElRef=t.thumbnailElRef,A.thumbnail=t.thumbnail,A.thumbnailOverlays=t.thumbnailOverlays,A.thumbnailSize=t.thumbnailSize)}};
Mzb=function(A){switch(A){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
hB5=function(A){var t=_.U(_.hZ(!1,void 0,"E6wDDe")),f=t.next().value,X=t.next().value;_.oh(function(){var Q=A==null?void 0:A();if(Q){var q=_.Px().resolve(_.z7(C_x));if(q){var e={triggeringElement:Q,onDwellTriggeredFn:function(){X(!0)},
onDwellEndFn:function(){X(!1)}};
q.registerElement(e);_.dD(function(){_.pW(q,e)})}}});
return f};
RBz=function(A,t,f){f?f(t):_.LI(t,A.target?{form:{element:A.target}}:void 0)};
_.En=function(A,t,f,X){return function(Q){_.oo(function(){function q(T){T=T.composedPath();T=_.U(T);for(var O=T.next();!O.done;O=T.next()){O=O.value;if(O===Q)break;if(O.className.indexOf("HostIsClickableAdComponent")>=0||O.tagName==="A".toString()||O.tagName==="BUTTON".toString())return!0}return!1}
var e=new Map,G,N=(G=A())==null?void 0:G.onTap;if(N){G=function(T){q(T)||RBz(T,N,t)};
var z=function(T){q(T)||T.key!=="Enter"||RBz(T,N,t)};
(f==null?0:f())||_.M("enable_web_home_top_landscape_image_layout_level_click")?(Q.addEventListener("tap",G),e.set("tap",G)):(Q.addEventListener("click",G),e.set("click",G));if(X==null?0:X())Q.addEventListener("keydown",z),e.set("keydown",z)}_.dD(function(){for(var T=_.U(e),O=T.next();!O.done;O=T.next()){var c=_.U(O.value);O=c.next().value;c=c.next().value;Q.removeEventListener(O,c)}})},"D7XqOc")}};
mQ5=function(A,t){var f,X=(f=A.interaction)==null?void 0:f.onTap;if(A=_.yx({elementsCommand:X,forceNewState:!0,skipOnClick:!0}))return A.onclick=function(Q){T3b(Q)&&(Q.preventDefault(),X&&RBz(Q,X,t))},vn(A)?A:void 0};
bHb=function(A){switch(A){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
WXb=function(A){switch(A){case "AD_BUTTON_STYLE_OVERLAY":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"}};
yv5=function(A){switch(A){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"}};
_.vRx=function(A){return _.M("rich_grid_enable_dynamic_offset")&&A?Math.max((A-_.cx("rich_grid_dynamic_offset_anchor_width",1300))/100*_.cx("rich_grid_dynamic_offset_offset_per_100",10),_.cx("rich_grid_dynamic_offset_lower_bound",-60)):0};
LXs=function(A,t){switch(t){case 4:return 16;case 1:return A<528?16:A<1024?32:48;case 2:return(A>=528?16:8)/2;case 3:return(A<528?16:A<1024?32:48)+(A>=528?16:8)/2;default:return 0}};
p25=function(A){var t=A.originalContainerWidth;var f=A.sizing;var X=A.standardUnit;if(A.isCompactList&&t<528)return 1;switch(f){case "STANDARD":return X;case "COMPACT":return X+1;case "EXTRA_COMPACT":return _.M("web_responsive_extra_compact_2x")?X*2:_.M("web_responsive_current")?X===1?2:X%2===0?X/2*3:X+2:X<4?X*2:Math.ceil(X*3/2);case "MINI":return X>1?X*2:3;default:return X}};
nRg=function(A){var t=A.containerWidth;var f=A.peek;var X=A.gutter;var Q=A.numItems;A=A.ignoreMaxWidthLimit;t=f?Math.max((t-f-X*Q)/Q,0):Math.max((t-X*(Q-1))/Q,0);return A?t:Math.min(t,ER5)};
_.nW=function(A){var t=A.containerWidth;var f=A.hasPeek;var X=A.sizing;var Q=A.marginSettings;var q=A.isCompactList;var e=A.enableFullBleedForSingleCol;var G=A.standardUnitMinWidth;X=X||"STANDARD";f=!!f;A=t>=528?16:8;var N=f?t>=528?48:24:0;Q=LXs(t,Q);var z=Math.max(t-Q*2,0);G=_.M("kevlar_disable_min_width_override")?void 0:G;G=Math.min(Math.max(Math.floor((z-N+A)/((G!=null?G:DQx)+_.vRx(t)+A)),1),6);var T=(e=!!e&&G===1)||G===1&&X!=="STANDARD";f=f||T?z:Math.min(z,(ER5+A)*G-A);X=p25({originalContainerWidth:t,
sizing:X,standardUnit:G,isCompactList:q});return{itemWidth:nRg({containerWidth:f,peek:N,gutter:A,numItems:X,ignoreMaxWidthLimit:T}),gutter:A,maxContainerWidth:f,numItems:X,margin:e?0:Q,contentMargin:LXs(t,1),typographyBump:nRg({containerWidth:f,peek:N,gutter:A,numItems:G,ignoreMaxWidthLimit:T})>400&&!(q&&t<528),standardUnit:G}};
DB=function(A){switch(A){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.FXq=function(A){if(A){var t;if((t=A.responsiveContainerConfiguration)==null?0:t.responsiveSize)return DB(A.responsiveContainerConfiguration.responsiveSize);if(A.layoutSizing)switch(A.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"}}};
Iq5=function(A){if(A.fullbleed)return 1;switch(A.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
ZHz=function(A,t,f,X,Q,q,e,G,N){a:if(A===4&&X==="LOCKUP_CONTENT_TYPE_SOURCE")var z=1;else switch(A){case 3:z=1;break a;default:z=0}var T=xQx(A,X);a:switch(A){case 4:q=!!(q&&q<100);break a;default:q=!1}a:switch(A){case 3:case 4:var O=X==="LOCKUP_CONTENT_TYPE_CHANNEL"||X==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:O=!1}return{metadataOnThumbnail:T,isOverlay:G||T,isCard:jN5(X,e),sizing:t!=null?t:"STANDARD",typographyBump:f!=null?f:!1,isTiny:q,isCentered:O,isCollection:Y6q(X),arrangement:z,addMarginForFullbleed:A===
1&&X!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:A===1&&X==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:Vz5(X,Q,N),disableRounding:A===5||jN5(X,e)||A===1&&X==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Y6q(X)?2:0,useLegacyTypography:!(N==null||!N.useLegacyTypography),useRichGridLegacyTypography:!(N==null||!N.useRichGridLegacyTypography)&&!_.M("web_enable_typography_bump"),compactMetadata:z===0&&X==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:N==null?void 0:N.onFocusEffect,titleMaxLines:X==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
Y6q=function(A){switch(A){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
jN5=function(A,t){if(t&&A==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(A){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
xQx=function(A,t){if(t==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(A){case 5:return!0;case 4:return!1;default:return!1}};
Vz5=function(A,t,f){if(t&&(f==null||!f.alwaysRespectPodcastShowAspectRatio||A!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(A){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}};
_.Fl=function(A){if(A){var t;return((t=_.Px().resolve(_.z7(_.FH)))==null?0:t())?A.darkThemeImage:A.image}};
S6T=function(A,t,f,X,Q,q){if(Q&&q&&t==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Q,height:q};if(!f)return{};Q=f.size;f=f.allowFullWidth;if(t==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&f)return{fullWidth:!0};if(Q===void 0)return{};switch(A){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:Q,height:Q};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:Q,height:1/oRg*Q};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Q*
dQp,height:Q};default:return(X==null?0:X.height)&&(X==null?0:X.width)?X.width/X.height>1?{maxWidth:Q*dQp}:{maxWidth:Q}:{maxWidth:Q}}};
$Qu=function(A){var t;return A&&((t=_.Fl(A.themedImage))!=null?t:A.image)};
HHz=function(A){var t;return A==null?void 0:(t=A.sources)==null?void 0:t[0]};
aqq=function(A){switch(A){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.KXp=function(A){if(A)return"content-id-"+A};
gRz=function(A){switch(A.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"}}};
w2q=function(A){var t=_.Iv.currentPageSubTypeSelector(_.ZK().getState())||"";return A?A+t:""};
sNp=function(A){switch(A){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
rvb=function(A){var t=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],f=_.U(_.hZ(void 0,void 0,"JrqNsb")),X=f.next().value,Q=f.next().value,q=_.U(_.hZ(void 0,void 0,"rWytse"));f=q.next().value;var e=q.next().value;q=_.U(_.hZ(void 0,void 0,"DHRqxe"));var G=q.next().value,N=q.next().value;return{touchFeedbackEvents:{pointerUpEvent:X,pointerDownEvent:f,pointerLeaveEvent:G},touchFeedbackOnPointerUp:_.f1(function(z){klz(_.hE(z),t)||(Q(z),e(void 0),N(void 0))}),
touchFeedbackOnPointerDown:_.f1(function(z){A==null||A(z);klz(_.hE(z),t)||(e(z),Q(void 0),N(void 0))}),
touchFeedbackOnPointerLeave:_.f1(function(z){klz(_.hE(z),t)||(N(z),e(void 0),Q(void 0))})}};
klz=function(A,t){t=t===void 0?[]:t;t=[].concat(_.YV(t),["BUTTON".toString()]);A=_.U(A);for(var f=A.next();!f.done;f=A.next()){f=f.value;for(var X=_.U(t),Q=X.next();!Q.done;Q=X.next())if(f.tagName===Q.value)return!0}return!1};
AFp=function(A){switch(A){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"}};
tcb=function(A){return A.scrollHeight-A.offsetHeight>1};
f5u=function(A,t){var f;return DY(A,((f=A.content)==null?void 0:f.length)||0,!t)};
qaT=function(A,t,f,X,Q,q){if(!t||XZu){var e;return DY(A,((e=A.content)==null?void 0:e.length)||0,!0)}t=X.value;if(!f.value||!t||!A.content)return A;f=0;X=A.content.length;e=0;Q_x||(Q_x=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var G=Q_x;for(Q=Q*q*G;f<=X;)q=Math.floor(f+(X-f)/2),G=DY(A,q)||A,t.firstChild&&(t.firstChild.textContent=G.content),t.scrollHeight>Q?X=q-1:(e=q,f=q+1);return DY(A,e)};
JFp=function(A,t){var f,X;return(((f=A.content)==null?void 0:f.length)||0)>(((X=t.content)==null?void 0:X.length)||0)};
UCg=function(A,t,f,X,Q,q){var e=_.GU("truncated-text-content"),G=_.GU("truncated-text-content"),N=_.GU("button"),z=_.GU("button"),T=_.GU("button"),O=_.Px().resolve(_.xA),c=_.U(_.Jo(function(){return f5u(A(),Q())})),B=c.next().value,h=c.next().value;
c=_.U(_.Jo(function(){return JFp(A(),B())}));
var W=c.next().value,L=c.next().value,E=null;_.oo(function(){function D(){if(e.value&&N.value&&T.value){var d=q()?A():qaT(A(),Q(),e,G,t(),f());h(d);requestAnimationFrame(function(){if(e.value&&N.value&&T.value){var K=tcb(e.value)||JFp(A(),d);L(K);if(!X()){var k=tcb(e.value),Gz=f(),Tz=e.value,y5=N.value,cp=T.value,iu=O==="rtl";if(Tz&&y5){var Fb=y5.offsetLeft;iu&&(Fb=Tz.offsetWidth-y5.offsetWidth-y5.offsetLeft);if(K){K=y5.offsetWidth;y5=Tz.offsetWidth;var xq=k?y5-K-70:Fb-70;Gz="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Gz+"rem,\n      #000 "+Gz+"rem,\n      #000 100%), linear-gradient(\n      to "+((iu?"left":"right")+",\n      #000 0px,\n      #000 "+xq+"px,\n      transparent "+(k?y5-K:xq+70)+"px)");Tz.style.setProperty("-webkit-mask-image",Gz);Tz.style.setProperty("mask-image",Gz)}else Tz.style.setProperty("-webkit-mask-image",""),Tz.style.setProperty("mask-image","");k?iu?(cp.style.setProperty("left","0"),cp.style.setProperty("right","unset")):(cp.style.setProperty("left",""),cp.style.setProperty("right","0")):
iu?(cp.style.setProperty("left","unset"),cp.style.setProperty("right",Fb+"px")):(cp.style.setProperty("left",Fb+"px"),cp.style.setProperty("right","unset"))}}}})}}
var S,Z;(S=E)==null||(Z=S.stop)==null||Z.call(S);S=new _.qI(D,17);D();E=S},"KjwIxd");
_.oh(function(){h(f5u(A(),Q()));L(JFp(A(),B()));var D=function(){Q_x=void 0;var Z,d;(Z=E)==null||(d=Z.fire)==null||d.call(Z)};
if(window.ResizeObserver){var S=new ResizeObserver(D);S.observe(e.value);_.dD(function(){var Z,d;(Z=E)==null||(d=Z.stop)==null||d.call(Z);S.disconnect()})}else window.addEventListener("resize",D),_.dD(function(){var Z,d;
(Z=E)==null||(d=Z.stop)==null||d.call(Z);window.removeEventListener("resize",D)})});
return{isTruncated:W,displayText:B,contentRef:e,hiddenRef:G,placeholderTruncationTextRef:N,hiddenTruncationTextRef:z,truncationTextRef:T}};
eHb=function(A){return{content:A!=null?A:""}};
Gix=function(A){return _.bP(A.onTap)||_.mL(A.rendererContext)};
l5T=function(A){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:A.overflowMenuA11yLabel,onTap:function(t){t.preventDefault();t.stopPropagation();if(A.overflowMenuOnTap){var f=_.yx({elementsCommand:A.overflowMenuOnTap,forceNewState:!0});if(f==null?0:f.onclick)f.onclick(t)}}}};
_.xu=function(A,t,f,X,Q){X=X===void 0?{}:X;if(!Q||Math.random()<5E-4){t=t||null;f=f||null;A=A instanceof Error?A:new _.xj(A);if(A.args)for(var q=_.U(A.args),e=q.next();!e.done;e=q.next())e=e.value,e instanceof Object&&(X=Object.assign({},e,X));X.category="H5 Ads Control Flow";t&&(X.slot=t?"slot:  "+t.slotType:"");f&&(X.layout=f?"layout:  "+f.layoutType:"",X.layoutId=f.layoutId);Q&&(X.known_error_aggressively_sampled=!0);A.args=[X];_.K4(A)}};
_.NXb=function(A,t){t=_.aC(t);_.kJ(A,"yt-open-popup-action",[t,A])};
_.jL=function(A,t){_.NXb(A,_.oC(t))};
zHb=function(A){if(!A)return"";if(umg[A])return umg[A];Yu||(Yu=_.yT("A"));Yu.href!==A&&Kb(Yu,A);var t=Yu.pathname;umg[A]=t.startsWith("/")?t:"/"+t;return umg[A]};
P5u=function(){var A=zHb(window.location.href);if(A==="/")return"home";if(A.startsWith("/results"))return"search";if(A.startsWith("/watch"))return"watch";if(A.startsWith("/shorts"))return"shorts";if(A.startsWith("/hashtag"))return"hashtag";if(A.startsWith("/create_channel"))return"create_channel";if(A.startsWith("/@")||A.startsWith("/user/")||A.startsWith("/channel/"))return"channel";if(A.startsWith("/experiments"))return"experiments";if(A.startsWith("/sponsor_channel"))return"sponsorship";if(A.startsWith("/select_site"))return"settings";
if(A.startsWith("/locate"))return"locate";if(A.startsWith("/redeem"))return"redeem";if(A.startsWith("/musicpremium")||A.startsWith("/premium")||A.startsWith("/red"))return"premium";if(A.startsWith("/paid_memberships"))return"paid_memberships";if(A.startsWith("/oops"))return"oops";if(A.startsWith("/clip"))return"clip";var t;return(V9==null?void 0:(t=V9.response)==null?void 0:t.page)==="404"?"404":A.startsWith("/feed/history")?"history":A.startsWith("/feed/library")?"library":A.startsWith("/feed/subscriptions")?
"subscriptions":A.startsWith("/feed/trending")?"trending":A.startsWith("/feed/news_destination")?"news":A.startsWith("/playlist")?"playlist":A.startsWith("/minor_moment")?"minor_moment":A.startsWith("/playable/")||A.match("^/playables/(?!saved).")?"mini_app":A.startsWith("/playables")?"playables":A.startsWith("/create/live/join")?"open_in_app":A.startsWith("/feed/explore")?"explore":"browse"};
_.ov=function(){var A=V9==null?void 0:V9.response,t=A==null?void 0:A.endpoint;if(!t)return(A==null?void 0:A.page)==="watch"?"watch":P5u();var f;A=(f=_.C(t==null?void 0:t.commandMetadata,_.Jl))==null?void 0:f.webPageType;f=!1;if(A&&!TXx.includes(A))switch(A){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 X;return((X=_.C(t==null?void 0:t.commandMetadata,_.Jl))==null?0:X.url)&&zHb(_.C(t.commandMetadata,_.Jl).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Q;return(t=(Q=_.C(t,_.GD))==null?void 0:Q.browseId)?iox[t]||"browse":"browse";default:f=!0}if(_.C(t,_.ZB)||_.C(t,Oo0))return"sponsorship";Q=zHb(window.location.href);if(Q.startsWith("/experiments"))return"experiments";if(Q.startsWith("/create_channel"))return"create_channel";
if(_.C(t,_.fV)&&Q.startsWith("/shorts"))return"shorts";if(_.C(t,_.fV)&&Q.startsWith("/watch"))return"watch";f&&(t=new _.xj("Unsupported mWeb page type",{pathname:Q,webPageType:A}),_.HQ(t));return"browse"};
df=function(A,t,f,X){return A&&t?A!==f||t!==X?(_.xu(Error("Lh"),void 0,void 0,{"stored-slot":A,"stored-layout":t,"latest-slot":f,"latest-layout":X}),!1):!0:!1};
BXg=function(A,t,f){return A({targetId:t},function(X){return f.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},X,{contents:[f.continuationItems?_.C(f.continuationItems[0],cFp):{}]}):f.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},X,{header:f.continuationItems?f.continuationItems[0]:void 0}):Object.assign({},X,{contents:f.continuationItems?f.continuationItems:[]})})};
Mc0=function(A,t,f,X){if(t=t.trackingParams){var Q,q=(Q=f.getScreenLayer)==null?void 0:Q.call(f);f=_.Ws(q);Q=_.mx(q);if(f&&Q){var e=_.zV(t);_.M("combine_ve_grafts")?A.graftServerVe(t,Q,q):_.x7(f,Q,e);X==null||X(e)}}};
hH5=function(A){var t;return((t=C5s.get(A))==null?void 0:t.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
bob=function(A,t){var f={type:t.slotType,controlFlowManagerLayer:RHb.get(t.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};t.slotEntryTrigger&&(f.entryTriggerType=t.slotEntryTrigger.triggerType);t.slotPhysicalPosition!==1&&(f.slotPhysicalPosition=t.slotPhysicalPosition);if(A){f.debugData={slotId:t.slotId};if(A=t.slotEntryTrigger)f.debugData.slotEntryTriggerData=mCl(A);A=t.slotFulfillmentTriggers;f.debugData.fulfillmentTriggerData=[];A=_.U(A);for(var X=A.next();!X.done;X=A.next())f.debugData.fulfillmentTriggerData.push(mCl(X.value));
t=t.slotExpirationTriggers;f.debugData.expirationTriggerData=[];t=_.U(t);for(A=t.next();!A.done;A=t.next())f.debugData.expirationTriggerData.push(mCl(A.value))}return f};
mCl=function(A,t){var f={type:A.triggerType};t!=null&&(f.category=t);A.triggeringSlotId!=null&&(f.triggerSourceData||(f.triggerSourceData={}),f.triggerSourceData.associatedSlotId=A.triggeringSlotId);A.triggeringLayoutId!=null&&(f.triggerSourceData||(f.triggerSourceData={}),f.triggerSourceData.associatedLayoutId=A.triggeringLayoutId);return f};
WF5=function(A,t,f,X){t={opportunityType:t};A&&(X||f)&&(X=_.Zg(X||[],function(Q){return bob(A,Q)}),t.debugData=Object.assign({},f&&f.length>0?{associatedSlotId:f}:{},X.length>0?{slots:X}:{}));
return t};
yFp=function(A){return SL(A.opportunityAdapterMap).concat(SL(A.triggerAdapterMap)).concat(SL(A.fulfillmentAdapterFactoryMap)).concat(SL(A.slotAdapterFactoryMap)).concat(SL(A.layoutRenderingAdapterFactoryMap))};
SL=function(A){var t=[];A=_.U(A.values());for(var f=A.next();!f.done;f=A.next())f=f.value,f.isAdsControlFlowEventListener&&t.push(f);return t};
H1=function(A){var t=A.slotId,f=A.slotType,X=A.slotPhysicalPosition;return t===void 0?new $u("Cannot construct a slot due to the missing id.",{adSlotMetadata:A}):f===void 0?new $u("Cannot construct a slot due to the missing type.",{adSlotMetadata:A}):X===void 0?new $u("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:A}):{slotId:t,slotType:f,slotPhysicalPosition:X,managerLayer:"external",adSlotLoggingData:A.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new vL5}};
LFl=function(A){var t=A.layoutId,f=A.layoutType;return t===void 0?new av("Cannot construct a layout due to the missing id.",{adLayoutMetadata:A}):f===void 0?new av("Cannot construct a layout due to the missing type.",{adLayoutMetadata:A}):{layoutId:t,layoutType:f,managerLayer:"external",adLayoutLoggingData:A.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new vL5,interactionLoggingAdsClientData:{}}};
pZx=function(A){if(A.querySelector("img")){var t=A.querySelector("img");t.addEventListener("error",function(){QUp(t.src).then(function(f){(f=_.dW(f).toString())?t.src=f:t.removeAttribute("src")}).catch(function(){t.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
gf=function(A,t){if(t&&(ELb(t.viewableCommand)||ELb(t.endOfSessionCommand))){var f=nLb(t==null?void 0:t.viewableCommand);t=nLb(t==null?void 0:t.endOfSessionCommand);if(!KW){var X=_.cx("custom_active_view_tos_timeout_ms");KW=X>0&&X!==36E5?new DCb(FFl(),X):new DCb(FFl())}I5q(KW,A);xCu(KW,A,f,t)}};
wf=function(A){KW&&I5q(KW,A)};
FFl=function(){var A=_.ah("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(A==null?void 0:A.length)===2?A[1]:null};
ELb=function(A){A=_.bP(A);return!(A==null||!A.loggingUrls)&&A.loggingUrls.length>0};
nLb=function(A){if(!A)return[];var t=[],f,X;((X=(f=_.bP(A))==null?void 0:f.loggingUrls)!=null?X:[]).forEach(function(Q){Q.baseUrl&&t.push(Q.baseUrl)});
return t};
j_T=function(A){if(_.M("stop_av_measurement_on_detach"))return function(){wf(A)}};
YaT=function(A){return function(){_.M("stop_av_measurement_on_detach")&&wf(A)}};
Vcx=function(A){if(_.M("stop_av_measurement_on_detach"))return function(){wf(A)}};
Zob=function(A){return A.shorts.isDesktopSmallWidth};
_.oL0=function(A){return A.shorts.isShortsActive};
_.dC0=function(A){return A.shorts.isWatchWhileMode};
_.sn=function(A){return A.shorts.isFullscreen};
_.ku=function(A){return A.shorts.isShortsPipActive};
$Cb=function(A){var t,f;if(A=(t=_.C(A.reelsAdCardButtoned,Sax))==null?void 0:(f=t.animatedRenderingConfig)==null?void 0:f.easeOutSeconds)return A+"s"};
a5s=function(A,t,f){return _.l(function(X){return X.return(new Promise(function(Q){var q=new Image;q.onload=function(){Q(new Ho5(A,t,f,q.naturalWidth,q.naturalHeight))};
q.src=f.toString()}))})};
KFs=function(A,t){return Math.round(A/1E-5)===Math.round(t/1E-5)};
gLp=function(A,t){return Math.round(A/1E-5)===Math.round(t/1E-5)};
wZ0=function(A,t){return A.year===t.year&&A.month===t.month&&A.day===t.day};
s_q=function(A,t){return A.year!==t.year?A.year<t.year:A.month!==t.month?A.month<t.month:A.day<t.day};
rFg=function(A){return A.day===kix(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}};
AXu=function(){var A=new Date,t={year:A.getFullYear(),month:A.getMonth(),day:A.getDate()};return{start:t,end:{year:A.getFullYear()+2,month:A.getMonth(),day:A.getDate()},selectedDate:rFg(t)}};
tSq=function(A){return(new Zt(2)).format(new Date(A.year,A.month,A.day))};
fhp=function(A){return{year:A.getFullYear(),month:A.getMonth(),day:A.getDate()}};
XHx=function(A,t){A=(A+(Number(t.utcOffsetSec)+(new Date(A*1E3)).getTimezoneOffset()*60))*1E3;t=fhp(new Date(A));return{date:t,secondsSinceMidnight:Math.floor((A-(new Date(t.year,t.month,t.day)).getTime())/1E3)}};
Qu5=function(A,t){t=t.months.findIndex(function(f){return f.year===A.year&&f.month===A.month});
return t>=0?t:void 0};
qtz=function(A){if(!A)return!1;try{if(A.host&&A.host.tagName==="YT-FORMATTED-STRING"&&A.host.id==="contenteditable-textarea"||A.nodeType===Node.ELEMENT_NODE&&A.tagName==="YTD-COMMENTBOX")return!0}catch(t){return!1}return qtz(A.parentNode)};
rf=function(A){return A?!(A.tagName!=="A"||!A.href||!A.classList.contains("yt-simple-endpoint")):!1};
JX5=function(A){return A?A.tagName==="IMG"&&A.classList.contains("emoji"):!1};
Uzu=function(A,t,f){if(!A)return null;var X=rf(A);if(X&&f)return t=A.pathname.substring(A.pathname.indexOf("/channel/")+9),document.createTextNode("@"+t);if(X&&!f)return document.createTextNode("");if(JX5(A))return f=A.alt,A=A.dataset.emojiId,!A&&t&&(t=_.A0(t,f))&&t.isCustomEmoji&&(A=t.emojiId),A?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+A+">"):document.createTextNode(f);X=A.cloneNode(!1);for(var Q=0;Q<A.childNodes.length;++Q){var q=Uzu(A.childNodes[Q],t,f);q&&X.appendChild(q)}return X};
t0=function(A){return A?rf(A)?A:t0(A.lastChild):null};
evg=function(A){return A?rf(A)?A:evg(A.firstChild):null};
Gox=function(A){if(!A)return null;for(var t=A.previousSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.previousSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.previousSibling;else break;(t=t0(t))?A=t:A=(A=A.parentNode)?t0(A.previousElementSibling):null;return A};
lhs=function(A){if(!A)return null;for(var t=A.nextSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.nextSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.nextSibling;else break;return(t=evg(t))?t:lhs(A.parentNode)};
NMT=function(A){var t=_.f8(),f=t.JSC$11434_getStartNode();if(!qtz(f.parentNode))return null;t=t.JSC$11434_getStartOffset();if(f.nodeType===Node.TEXT_NODE){var X=_.Hd(f,rf);if(X){if(A&&t===0||!A&&t===f.length)return X}else{if(A&&t===f.length)return!f||f.nodeName==="BR"||f.nextElementSibling&&_.XI(f.nextElementSibling,"display")==="block"?null:evg(f.nextElementSibling);if(!A&&t===0)return f?t0(f.previousElementSibling):null}}if(f.nodeType===Node.ELEMENT_NODE)if(A){if(0<=t&&t<f.childNodes.length)return evg(f.childNodes[t])}else if(0<
t&&t<=f.childNodes.length)return t0(f.childNodes[t-1]);return null};
u$s=function(A,t,f){if(!A)return null;if(A.nodeType===Node.TEXT_NODE)if(f){var X=Gox(A);if(X&&!/^\s+\S/.test(A.wholeText.substr(0,t)))return X}else if((X=lhs(A))&&!/\S\s+/.test(A.wholeText.substr(t,A.wholeText.length)))return X;return A.nodeType===Node.ELEMENT_NODE?f?Gox(A.childNodes[t]):lhs(A.childNodes[t]):u$s(A.parentNode,t,f)};
zvq=function(A){if(A.hasChildNodes())switch(A.tagName){case "DIV":case "A":case "SPAN":var t="";for(A=A.firstChild;A;A=A.nextSibling)t+=zvq(A);return t;default:return""}else switch(A.nodeType){case 3:return A.textContent;default:return""}};
Qi=function(A,t){return A.year===t.year&&A.month===t.month&&A.day===t.day};
qa=function(A,t){return A.year!==t.year?A.year<t.year:A.month!==t.month?A.month<t.month:A.day<t.day};
P7x=function(A){return{year:A.getFullYear(),month:A.getMonth(),day:A.getDate()}};
TM0=function(A){var t=l0b;t=t===void 0?l0b:t;t(new Date(A.year,A.month,A.day))};
J0=function(A){return P7x(new Date(Number(A.seconds)*1E3))};
iYp=function(A){return A.year!==void 0&&A.month!==void 0&&A.day!==void 0};
OY5=function(A){return A.start!==void 0&&A.end!==void 0};
cX0=function(A){return OY5(A)?A.start:A};
BMp=function(A){return OY5(A)?A.end:void 0};
C7x=function(A,t){for(var f=[],X=new Date(A.start.year,A.start.month);X.getFullYear()<A.end.year||X.getFullYear()===A.end.year&&X.getMonth()<=A.end.month;){var Q=f,q=Q.push,e=X.getFullYear(),G=X.getMonth(),N=A,z=t,T=void 0,O=[],c=Object.freeze({extraCssClass:"invisible"}),B=new Date(e,G),h=P7x(B);B=B.getDay();for(var W=P7x(new Date);h.month===G;){B!==MSx&&T||(T=Array.from({length:7}).fill(c),O.push(T));var L={date:{year:e,month:G,day:h.day},extraCssClass:"",debugClass:""};L.extraCssClass=z(L.date,
h,W,N).trim();T[(B-MSx+7)%7]=L;h=h.day===kix(h.year,h.month)?h.month===11?{year:h.year+1,month:0,day:1}:{year:h.year,month:h.month+1,day:1}:{year:h.year,month:h.month,day:h.day+1};B=(B+1)%7}q.call(Q,{weeks:O,monthLabel:Uj.SHORTMONTHS[G]+" "+e,year:e,month:G,monthLabelExtraCssClass:O[0][2]===c?"shift-down-label":""});X.setMonth(X.getMonth()+1)}return f};
hvs=function(A,t){t=t.months.findIndex(function(f){return f.year===A.year&&f.month===A.month});
return t>=0?t:void 0};
mzz=function(A,t){a:{var f=f===void 0?[2,3]:f;f=_.U(f);for(var X=f.next();!X.done;X=f.next()){var Q=new Date;if((new Rvp(X.value)).parse(t,Q,{validate:!0})){Q.setHours(0,0,0,0);t=Q;break a}}t=null}if(!t)return{isValid:!1,value:void 0};t=P7x(t);f=A.end;return qa(t,A.start)||qa(f,t)?{isValid:!1,value:void 0}:{isValid:!0,value:t}};
Lrx=function(A){var t=bYs;t=t===void 0?Wrb:t;var f=A.columnsToShow||[],X=yXx(A.columnDimensions,A.columnsToShow,A.leftFloatingColumns,t);return f.map(function(Q,q){var e=A.columns[Q];if(e===void 0)throw Error("Rh");var G=X?X[q]:"";var N=A.getCustomTooltip?A.getCustomTooltip(Q,e.headerTooltipParagraphs):e.headerTooltipParagraphs;var z=vUx(A,Q);return{type:Q,index:q,style:G,classes:z,headerName:e.headerName||"",headerIcon:e.headerIcon,headerTooltipParagraphs:N||[],headerTooltipHelpContext:e.headerTooltipHelpContext,
sortOrders:e.sortOrders||[],selectionState:e.isSelectionCheckbox?A.selectionState:void 0}})};
vUx=function(A,t){var f=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],X=A.columns[t];if(X===void 0)return"";var Q=f.includes("DEFAULTS")&&X.cssClass?[X.cssClass]:[];if(f.includes("SORTING")){X.sortOrders&&X.sortOrders.length&&Q.push("sortable");if(A.sorting&&A.sorting.columnType===t)a:switch(A.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var q="column-sorted";break a;default:q=""}else q="";q&&Q.push(q)}f.includes("FLOATING")&&(t=A.columnsToShow.indexOf(t),A.leftFloatingColumns&&t<A.leftFloatingColumns&&
Q.push("floating-column"),A.leftFloatingColumns&&t===A.leftFloatingColumns-1&&Q.push("last-floating-column"));f.includes("RIGHT_ALIGN")&&X.rightAlignHeader&&Q.push("right-align");return Q.filter(function(e){return e}).join(" ")};
yXx=function(A,t,f,X){f=f===void 0?0:f;X=X===void 0?Wrb:X;if(A){var Q=[],q=0;pHs(A,t,X).forEach(function(e,G){var N="min-width:"+e.minWidth+"px;padding-left:"+e.paddingLeft+"px;padding-right:"+e.paddingRight+"px;flex:"+e.flexGrow+" 0 "+e.minWidth+"px;";e.maxWidth!==Infinity&&(N=[N,"max-width:"+e.maxWidth+"px;"].join(""));q>0&&G<f&&(N=[N,"left:"+q+"px;"].join(""));Q.push(N);q+=e.minWidth+e.paddingLeft+e.paddingRight});
return Q}};
pHs=function(A,t,f){f=f===void 0?Wrb:f;return t.map(function(X,Q){X=A&&A[X]||{};var q=Q===0?f.paddingLeftFirstColumn:f.padding;X.paddingLeft!==void 0&&(q=X.paddingLeft);Q=Q===t.length-1?f.paddingRightLastColumn:f.padding;X.paddingRight!==void 0&&(Q=X.paddingRight);return{paddingLeft:q,paddingRight:Q,minWidth:X.minWidth!==void 0?X.minWidth:f.minWidth,maxWidth:X.maxWidth!==void 0?X.maxWidth:f.maxWidth,flexGrow:X.flexGrow!==void 0?X.flexGrow:f.flexGrow}})};
EU5=function(A){var t=A.reduce(function(X,Q){var q=Q.columnId,e={};Q.headerText&&(e.headerName=_.dF(Q.headerText));Q.rightAlignHeader&&(e.rightAlignHeader=Q.rightAlignHeader);var G;if((G=Q.headerIcon)==null?0:G.iconType)e.headerIcon=_.t7(Q.headerIcon.iconType);X[q]=e;return X},{}),f=A.filter(function(X){return!X.hideColumn}).map(function(X){return X.columnId});
A=A.filter(function(X){return!!X.dimensions}).reduce(function(X,Q){X[Q.columnId]=Q.dimensions;
return X},{});
return{columns:t,columnsToShow:f,columnDimensions:A}};
_.nUx=function(A){return A?A.simpleText?A.simpleText:A.runs?A.runs.map(function(t){return t.text}).join(""):"":""};
Yts=function(A){var t=A.data;var f=A.onTap;var X=A.isSelected;var Q=A.onFocusIn;if(!t)return{};A=Dzx(t);X===void 0&&(X=t==null?void 0:t.isSelected);var q;return{text:Frx(t,A),startIcon:(q=t.icon)==null?void 0:q.iconType,state:X?0:2,type:0,style:Ih5(t),onTap:xzs(t,f),accessibilityLabel:ju5(t,A),onFocusIn:function(){return Q==null?void 0:Q()}}};
Frx=function(A,t){if(!t)return A.text?_.nUx(A.text):void 0};
Ih5=function(A){var t;switch((t=A.style)==null?void 0:t.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
xzs=function(A,t){return function(f){t==null||t(f,A)}};
Dzx=function(A){A=A.style&&A.style.styleType;return!XZu&&A==="STYLE_EXPLORE_LAUNCHER_CHIP"};
ju5=function(A,t){if(t){var f,X,Q;return(Q=(f=A.accessibilityData)==null?void 0:(X=f.accessibilityData)==null?void 0:X.label)!=null?Q:Frx(A,!1)}};
VSb=function(){var A;return[function(t,f,X){return _.s9(A,t,f,X)},
function(t){A=t}]};
ZY0=function(A,t){return _.q_(A.entities,"chipEntity",t)};
dzb=function(A,t,f,X){return function(){var Q=oU5.has(A.displayType)&&A.selected,q=Q&&A.deselectCommand?A.deselectCommand:A.tapCommand;!q||Q&&X||_.LI(q,{form:{element:t==null?void 0:t.value}});f==null||f()}};
$zq=function(A,t){if(A=A.onUpdateText){var f;A=(f=_.C(A,Stx))==null?void 0:f.stepId}else A=void 0;f=A;t=t==null?void 0:t.stepStates;if(f&&t){var X,Q;return(X=t[f])==null?void 0:(Q=X.userQuery)==null?void 0:Q.userQuery}};
eM=function(A){return{signalAction:{signal:A}}};
Krz=function(){return _.ah("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?HYu:_.ahq};
gUs=function(A,t){A=A===void 0?"SOFT_RELOAD_PAGE":A;t=t===void 0?49504:t;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.w0(_.e5("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:t}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:A}}]}}}};
wH0=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.w0(_.e5("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Krz()}};
su0=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.w0(_.e5("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Krz()}};
kos=function(A,t){var f=_.w0(_.e5("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),X=_.w0(_.e5("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Q={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.w0(_.e5("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Q.serviceEndpoint=A?A:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[eM("SOFT_RELOAD_PAGE")]}};return{title:f,bodyText:X,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Q},
style:{value:t!=null?t:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
A65=function(A){A=A===void 0?{}:A;return{title:_.w0(A.localizedZeroStateTitleText===void 0?"":A.localizedZeroStateTitleText),bodyText:_.w0(A.localizedZeroStateMessage===void 0?"":A.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.w0(A.localizedZeroStateButtonText===void 0?"":A.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[rX0]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
fRq=function(A){A=A===void 0?{}:A;return{title:_.w0(A.localizedOptInBannerTitleText===void 0?"":A.localizedOptInBannerTitleText),titleLength:19,subtitle:_.w0(A.localizedOptInMessage===void 0?"":A.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.w0(_.e5("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:_.w0(_.e5("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:[twx]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
qZg=function(A,t){var f=t=t===void 0?{}:t;t=f.offlineTitleText===void 0?"":f.offlineTitleText;var X=f.offlineDescriptionText===void 0?"":f.offlineDescriptionText,Q=f.formattedSupplementalText,q=f.actionButtonText===void 0?"":f.actionButtonText,e=f.titleText===void 0?"":f.titleText;f=f.descriptionText===void 0?"":f.descriptionText;var G={title:q,accessibilityText:q,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};A||(e=t,f=X,G={title:q,accessibilityText:q,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.w0(e),titleLength:e.length,overrideTitleMaxFontSize:30,subtitle:_.w0(f),supplementalText:Q,primaryButton:{buttonViewModel:G},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[X8q]},darkTileImage:{thumbnails:[Qtz]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.etq=function(A,t,f,X,Q,q,e,G,N,z,T){Q=Q===void 0?!1:Q;q=q===void 0?!1:q;e=e===void 0?0:e;G=G===void 0?-Infinity:G;N=N===void 0?!1:N;z=z===void 0?!1:z;T=T===void 0?!1:T;var O=[],c=_.w0(_.e5("SMART_DOWNLOADS",void 0,"Smart downloads")),B=_.w0(J6s(e,G,A.length));G=e=void 0;z?e={statementBannerRenderer:qZg(T,X)}:Q?A.length>0?G=Uol(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.M("kevlar_manual_downloads_above"),c,B):N?G={alertBannerViewModel:{heading:{content:f.localizedOptInBannerTitleText===
void 0?"":f.localizedOptInBannerTitleText},body:{content:f.localizedPromptMessage===void 0?"":f.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.e5("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.e5("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:_.BxT}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:q&&(G={backgroundPromoRenderer:{bodyText:_.w0(_.e5("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"}}}):
q&&(G={alertBannerViewModel:{heading:{content:f.localizedOptInBannerTitleText===void 0?"":f.localizedOptInBannerTitleText},body:{content:f.localizedOptInMessage===void 0?"":f.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.e5("TURN_ON",void 0,"Turn on"),accessibilityText:_.e5("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}}}}}});f=_.w0(_.e5("YOUR_DOWNLOADS",void 0,"Your downloads"));X=void 0;t.length>0?(X=void 0,_.M("kevlar_display_downloads_numbers")&&(X=_.w0(_.Gt("VIDEO_COUNT",t.length))),X=Uol(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,f,X)):Q||A.length||
z||(X={backgroundPromoRenderer:{bodyText:_.w0(_.e5("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}}}});e?O.push({richSectionRenderer:{content:e}}):G&&!_.M("kevlar_manual_downloads_above")&&O.push({richSectionRenderer:{content:G,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
X&&O.push({richSectionRenderer:{content:X,loggingDirectives:{clientVeSpec:{uiType:51721}}}});G&&_.M("kevlar_manual_downloads_above")&&O.push({richSectionRenderer:{content:G,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(t.length>0||Q&&A.length>0&&!z)&&O.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.w0(_.e5("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:O}};
_.lR0=function(A){return GPx(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.NYq=function(A){return GPx(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
GPx=function(A,t){var f=[];A=Uol(A,t,!0);f.push({richSectionRenderer:{content:A}});return{contents:f}};
Uol=function(A,t,f,X,Q){f=f===void 0?!1:f;var q="RESPONSIVE_SIZE_STANDARD";_.M("kevlar_standard_rich_grid_on_offline_home")&&t==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?q="RESPONSIVE_SIZE_STANDARD":_.M("kevlar_modern_downloads_compact")?q="RESPONSIVE_SIZE_COMPACT":_.M("kevlar_modern_downloads_extra_compact")?q="RESPONSIVE_SIZE_EXTRA_COMPACT":_.M("kevlar_modern_downloads_tiny")&&(q="RESPONSIVE_SIZE_TINY");A={isExpanded:f,contents:Gq(A),entitySelectorType:t,responsiveContainerConfiguration:{responsiveSize:q}};
X&&(A.title=X);Q&&(A.subtitle=Q);f||(_.M("kevlar_smart_downloads_show_more_button")?(A.showMoreButton={buttonRenderer:{accessibility:{label:_.e5("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.w0(_.e5("SHOW_MORE",void 0,"Show more"))}},A.showLessButton={buttonRenderer:{accessibility:{label:_.e5("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.w0(_.e5("SHOW_LESS",void 0,"Show less"))}}):(A.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.e5("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}}}},A.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.e5("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}}}},A.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.e5("VIEW_ALL",void 0,"View all"),accessibilityText:_.e5("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:_.Kf("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:A}};
Gq=function(A){var t=[];A=_.U(A);for(var f=A.next();!f.done;f=A.next())if(f=f.value,fmu(f)){var X=t,Q=X.push;var q=void 0;if(f==null?0:(q=f.videoEntity)==null?0:q.videoId){q=nZ(_.$I().getState(),f.videoEntity.videoId);var e=_.$I().getState();var G=_.QQ(f.videoEntity.videoId,"mainVideoEntity");e=!!_.BE(e.entities)[G];e={videoId:f.videoEntity.videoId,title:sO(f.videoEntity.title),shortBylineText:sO(f.channelEntity.title),thumbnail:f.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:e&&_.M("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:nzz(f.videoEntity.videoId,q,f.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.e5("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};f.videoEntity.lengthSeconds&&(e.thumbnailOverlays=vo5(f.videoEntity.lengthSeconds,q));e.isWatched=q>0;_.M("kevlar_modern_downloads_page")&&(e.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:f.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.e5("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},e.badges=void 0);f=e}else f={};Q.call(X,{richItemRenderer:{content:{videoRenderer:f},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(tDx(f)){X=t;Q=X.push;var N=G=q=void 0,z=void 0,T=void 0,O=void 0,c=void 0,B=void 0,h=void 0,W=void 0,L=void 0,E=void 0;e=f.mainPlaylistEntity.playlistId;var D=f==null?void 0:(E=f.mainPlaylistEntity)==null?void 0:(L=E.thumbnailStyleData)==null?void 0:(W=L[0])==null?void 0:(h=W.value)==null?void 0:(B=h.collageThumbnail)==
null?void 0:B.coverThumbnail;if(e&&D){B=DNx(e);!_.M("enable_offline_playlist_page")&&(f==null?0:(c=f.mainPlaylistEntity)==null?0:c.videos)&&(c=f==null?void 0:(O=f.mainPlaylistEntity)==null?void 0:(T=O.videos)==null?void 0:T[0],T=_.tR(c).entityId,T=JSON.parse(T).videoId,T!==void 0&&(B=nZ(_.$I().getState(),T),B=_.g0(T,e,void 0,void 0,B)));T=[];if(f==null?0:(z=f.mainPlaylistEntity)==null?0:(N=z.videos)==null?0:N.length)N=G45(),z=Object,T=z.assign,O=(O=ezx(f==null?void 0:f.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.w0(O),icon:{iconType:"PLAYLISTS"}}}:void 0,T=[N,T.call(z,{},(G=O)!=null?G:{})];f={playlistId:e,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:D}},navigationEndpoint:B,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:T,title:sO(f.mainPlaylistEntity.title),shortBylineText:sO(f==null?void 0:(q=f.channelEntity)==null?void 0:q.title),badges:[{metadataBadgeRenderer:{label:_.e5("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.M("kevlar_modern_downloads_page")&&(f.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:uMp,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:e,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.e5("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},f.badges=void 0)}else f=void 0;Q.call(X,{richItemRenderer:{content:{playlistRenderer:f},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return t};
J6s=function(A,t,f){A=A?ztu(A):"";t!==void 0&&isFinite(t)?t===0?t=_.e5("UPDATING",void 0,"Updating..."):(t=yB5(new Date(t),new Date),t=_.e5("UPDATED_TIME",{relative_time:t},"Updated "+t)):t="";var X="";A&&t&&(X=" \u2022 ");if(f&&_.M("kevlar_display_downloads_numbers")){f=_.Gt("VIDEO_COUNT",f);if(A||t)X=" \u2022 ";return f+X+A+X+t}return A+X+t};
P9T=function(A){return aQ5(A.entities).length};
_.TYb=function(A,t,f){var X=DB(A.responsiveSize),Q;A=!((Q=A.responsiveMap)==null||!Q.some(function(q){return q.containerSize==="CONTAINER_SIZE_NARROW"&&q.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:f,containerWidth:t,sizing:X,enableFullBleedForSingleCol:!1,isCompactList:X==="COMPACT"&&A}};
i5b=function(A,t){return _.q_(A.entities,"votingEntity",t)};
lM=function(A){if(A){var t;return((t=_.Px().resolve(_.z7(_.FH)))==null?0:t())?A.darkTheme:A.lightTheme}};
O5g=function(A,t){if(A.simpleText)return Object.assign({},A,{simpleText:EX(A.simpleText,t)});if(!A.runs)return A;for(var f=Object.assign({},A,{runs:[]}),X=0,Q=_.U(A.runs),q=Q.next();!q.done;q=Q.next())if(q=q.value,q.text)if(X+q.text.length<=t)f.runs.push(q),X+=q.text.length;else return f.runs.push(Object.assign({},q,{text:EX(q.text,t-X)})),f;return A};
c6p=function(A,t){return _.q_(A.entities,"chipBarStateEntity",t)};
BYl=function(A){switch(A){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
Mwb=function(A,t){return{triggeringElement:A,onDwellTriggeredFn:function(){var f={triggeringElement:A,loadVideoPreviewEventData:t},X=document.querySelector(".video-preview");X&&X.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:f}))},
onDwellEndFn:function(){var f=document.querySelector(".video-preview");f&&f.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
C9u=function(A,t){var f=_.Px().resolve(_.z7(C_x)),X=function(){var Q=t();return f&&Q?Mwb(A.value,Q):null};
_.oo(function(){var Q=X();f&&Q&&Promise.resolve().then(function(){f.registerElement(Q)});
_.dD(function(){f&&Q&&Promise.resolve().then(function(){_.pW(f,Q)})})},"csPUge")};
Rtb=function(A){var t=A.dataset.resizeObserverId;if(t)return t;t=""+htb++;return A.dataset.resizeObserverId=t};
mo0=function(A){A=_.U(A);for(var t=A.next();!t.done;t=A.next()){t=t.value;var f=Rtb(t.target),X=Object.assign({},{target:t.target},Na.get(f));if(X!=null&&X.contentRect?X.contentRect.width!==t.contentRect.width||X.contentRect.height!==t.contentRect.height:1)for(Na.set(f,{borderBoxSize:t.borderBoxSize,contentBoxSize:t.contentBoxSize,contentRect:t.contentRect,devicePixelContentBoxSize:t.devicePixelContentBoxSize}),f=_.U(uM.get(f)||[]),X=f.next();!X.done;X=f.next())X=X.value,X(t)}};
WYb=function(A,t){var f=Rtb(A);uM.has(f)||uM.set(f,new Set);uM.get(f).add(t);Na.has(f)&&t(Object.assign({},{target:A},Na.get(f)));zq||(zq=new b5g(mo0));t=zq;t.observe(A)};
y6p=function(A,t){var f=Rtb(A);uM.has(f)&&(uM.get(f).delete(t),uM.get(f).size===0&&(uM.delete(f),Na.delete(f),zq.unobserve(A),delete A.dataset.resizeObserverId));uM.size===0&&zq&&(zq.disconnect(),zq=void 0)};
LYq=function(A,t){var f=_.Px().resolve(id);return vr5.map(function(X){return f.observe(A,t,X)})};
p8x=function(A){var t=_.Px().resolve(id);A.forEach(function(f){t.unobserveByKey(f)})};
_.P$=function(A){var t=_.U(mA5()),f=t.next().value,X=t.next().value,Q=Object.assign({},Erb,A),q=nr0(function(e){var G=e.contentRect.height;if((e=e.contentRect.width)||G||Q.canHaveZeroSize)f.width()===e&&f.height()===G||X(f,{height:G,width:e})},Q.throttleMs);
return[f,function(e){var G=[];Q.useVisibilityObserver&&(G=LYq(e,function(N,z){requestAnimationFrame(function(){z==="visible"?WYb(e,q):y6p(e,q)})}));
G.length||WYb(e,q);return function(){G.length&&(p8x(G),G.length=0);y6p(e,q)}}]};
FY0=function(A,t,f,X,Q){A=t?A.switchOffCommand:A.switchOnCommand;if(X&&Q)Doq(A,f,Q);else{var q,e;(q=_.yx({elementsCommand:A}))==null||(e=q.onclick)==null||e.call(q,f)}};
Doq=function(A,t,f){A=_.yx({elementsCommand:A,additionalCommandArgs:{commandController:{onSuccess:function(){f(!1)},
onServerError:function(){f(!1)}}}});
if(A==null?0:A.onclick)A.onclick(t),f(!0)};
xo5=function(A){if(A)return _.C(A,IRx)};
jtl=function(A){if(A)switch(A){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
YZx=function(A,t){if(!((A==null?0:A.entitySelectorType)&&(A==null?0:A.entityKey)))return{};switch(A.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.M("enable_web_shorts_captions_language_command")){var f;var X=(f=_.JE())==null?void 0:f.getOption("captions","track");var Q,q=typeof(X==null?void 0:X.translationLanguage)==="object"&&((Q=X.translationLanguage)==null?void 0:Q.languageName)||(X==null?void 0:X.displayName)||"";X={data:Object.assign({},
!!q&&{selectionText:{content:q}},!!q&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof X==="undefined"})}}else X={};return X;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.M("web_shorts_audio_track_picker")){var e;Q=((e=_.JE())==null?void 0:e.getAudioTrack())||void 0;f=Q==null?void 0:(q=Q.getLanguageInfo())==null?void 0:q.getName();Q={data:Object.assign({},{selectionText:{content:f}},f&&!(Q==null?0:(X=Q.getLanguageInfo())==
null?0:X.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else Q={};return Q;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return X=A!=null&&A.entityKey?(X=_.to(t,A.entityKey))?{isHidden:(X==null?void 0:X.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},X;default:return{}}};
Vwx=function(A,t){return function(f){var X=function(Q){_.Rv(_.hE(Q),f,t)||A(Q)};
f.addEventListener("click",X);return function(){f.removeEventListener("click",X)}}};
_.Z50=function(A){return function(){return _.C(A(),_.Tq)}};
ors=function(A){switch(A){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
doz=function(A){return ors(A==null?void 0:A.all)};
SZx=function(A){var t={};(A=A==null?void 0:A.padding)&&(t.padding=ors(A.vertical)+"px "+ors(A.horizontal)+"px");return t};
$og=function(A){switch(A){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
H5u=function(A){switch(A){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
aR5=function(A){switch(A){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
KYu=function(A,t){if(t)return{containerStyles:SZx(t),itemStyles:function(f,X){var Q={flex:"1"},q=t==null?void 0:t.flexDirection;b:switch(q){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":f=!!f;break b;default:f=!!X}f||(f=_.ah("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",q==="FLEX_DIRECTION_ROW"||q==="FLEX_DIRECTION_ROW_REVERSE"?(q=doz(t==null?void 0:t.gap)+"px",f?Q["margin-left"]=q:Q["margin-right"]=q):Q["margin-bottom"]=doz(t==null?void 0:t.gap)+"px",Q.flex=
"1");return Q},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(t==null?void 0:t.flexDirection)==="FLEX_DIRECTION_ROW"||(t==null?void 0:t.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
gr0=function(A){return A<528?"CONTAINER_SIZE_NARROW":A<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
w80=function(A,t){A=_.U(A.responsiveMap||[]);for(var f=A.next();!f.done;f=A.next())if(f=f.value,f.containerSize===t)return f.containerType};
_.stu=function(A,t){if(t){var f=t.responsiveSize;A=gr0(A);var X=w80(t,A);if(X&&f){a:{if(X==="CONTAINER_TYPE_VERTICAL_LIST")if(f==="RESPONSIVE_SIZE_STANDARD"){if(A!=="CONTAINER_SIZE_NARROW"){var Q="50%";break a}}else{Q=A==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}Q=void 0}return{responsiveSize:f,containerSize:A,containerType:X,force16By9ThumbnailAspectRatio:!t.enableContentSpecificAspectRatio,contentPreviewWidth:Q,fullbleed:(X==="CONTAINER_TYPE_VERTICAL_LIST"||X==="CONTAINER_TYPE_GRID")&&A===
"CONTAINER_SIZE_NARROW"&&!1}}}};
kPs=function(A,t){var f={};switch(t){case "CONTAINER_TYPE_VERTICAL_LIST":f["flex-direction"]="column";f.padding="0 "+A.margin+"px";break;case "CONTAINER_TYPE_GRID":f["flex-direction"]="row";f.flex="none";f["flex-wrap"]="wrap";f.width=A.maxContainerWidth?A.maxContainerWidth+A.gutter+"px":void 0;f.padding="0 "+(A.margin-A.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":f["flex-direction"]="row",f.flex="none",f["overflow-x"]="auto",f.width=A.maxContainerWidth?A.maxContainerWidth+"px":void 0,
f.padding="0 "+A.margin+"px"}return f};
r6x=function(A,t){if(t){var f=w80(t,gr0(A));a:switch(f){case "CONTAINER_TYPE_GRID":var X=3;break a;default:X=1}X=_.TYb(t,A,X);var Q=_.nW(X);return{containerLayoutConfig:_.stu(A,t),containerStyles:kPs(Q,f),itemStyles:function(q,e){q={};switch(f){case "CONTAINER_TYPE_VERTICAL_LIST":e||(q["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":q.width=Q.itemWidth+"px";q["margin-right"]=Q.gutter/2+"px";q["margin-left"]=Q.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":q.width=Q.itemWidth+
"px",q.flex="none",e||(q["margin-right"]=Q.gutter+"px")}return q}}}};
Qxx=function(A,t,f){if(t)return[Ajx];switch(A){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[iM];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return f?[iM]:[tx5,iM];case "TRANSFER_STATE_PAUSED_BY_USER":return[fjb,iM];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Xh5,iM];default:return[Ajx]}};
qoq=function(A,t,f,X){return Qxx(A,t,X).map(function(Q){var q=Q.text,e=Q.iconType,G=Q.videoAction;Q=Q.playlistAction;q=q?{content:q}:void 0;e=e&&{sources:[{clientResource:{imageName:e}}]};var N=(0,_.VG.unsafeClone)(f);if(N){var z=_.C(N,_.Ga),T=_.C(N,_.lj);z&&G?z.action=G:T&&Q&&(T.action=Q)}return{title:q,leadingImage:e,rendererContext:N&&{commandContext:{onTap:{innertubeCommand:N}}}}})};
Jjq=function(A){A=_.mL(A.rendererContext);var t;return(t=_.C(A,_.lj))==null?void 0:t.playlistId};
UOb=function(A){var t;return(t=A.listItems)==null?void 0:t.some(function(f){var X;return _.bj((X=_.C(f,_.On))==null?void 0:X.rendererContext)})};
ljb=function(A){var t;return(t=A.listItems)==null?void 0:t.some(function(f){var X,Q,q=(Q=(X=_.C(f,eUT))==null?void 0:X.defaultListItem)!=null?Q:f;f=_.C(q,_.On);return!!_.C(f==null?void 0:f.leadingAccessory,G2x)})};
_.Oj=function(A){var t=_.Px().resolve(_.z7(_.FH));return t!=null&&t()?A.darkThemeColorPalette:A.lightThemeColorPalette};
_.B$=function(A){return{primaryTextColor:c$(A,0),secondaryTextColor:c$(A,1),optionColor:c$(A,2),backgroundColor:c$(A,3),videoBackgroundColor:c$(A,4)}};
c$=function(A,t){if(A){switch(t){case 0:A=A.primaryTitleColor;break;case 1:A=A.secondaryTitleColor;break;case 2:A=A.surgeColor;break;case 3:A=A.section2Color;break;case 4:A=A.section3Color;break;default:return}if(A)return _.mt(A)}};
zUb=function(A){var t=A.element;var f=A.veType;var X=A.storedVisualElement===void 0?null:A.storedVisualElement;var Q=A.elementIndex===void 0?0:A.elementIndex;A=A.clientYouTubeData;var q=_.Ws();q!==Nmg&&(u65.clear(),Nmg=q);if(t.visualElement&&u65.has(t.visualElement))return null;if(X&&u65.has(X))return t.visualElement=X,null;f=_.UX(_.er(),{veType:f,elementIndex:Q,clientYouTubeData:A});if(!f)return null;t.visualElement=f;u65.add(f);return f};
_.Ma=function(A,t,f,X){f=f===void 0?null:f;X=X===void 0?nhT:X;var Q=Q===void 0?null:Q;cn(function(){if(t){f instanceof Function&&(f=f());var q=zUb({element:t,veType:A,storedVisualElement:f,clientYouTubeData:void 0});q&&(I1b(t,Q),X(q))}})};
PQs=function(A){return A?_.bY(A):""};
Tms=function(A){return(A==null?void 0:A.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
iJ0=function(A,t){return _.q_(A.entities,"videoOverviewAsyncDataEntity",t)};
OJq=function(A,t){var f;return"linear-gradient(to bottom, "+((f=t==null?void 0:t.map(function(X){var Q=A?X.darkThemeColor:X.lightThemeColor;return Q?_.bY(Q)+" "+((X==null?void 0:X.startLocation)||0)*100+"%":"transparent"}))==null?void 0:f.join(", "))+")"};
cju=function(A,t,f,X,Q){if(!((X==null?0:X.height)&&(X==null?0:X.width)))return{size:0};var q=X.width;X=X.height;if(Q)return t==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&q>X?{size:312/dQp}:t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(f!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||A!==1&&A!==2||t!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&t!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&t!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(t==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||X===q)switch(A){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||X>q)switch(A){case 1:case 3:return{size:240*oRg};default:return{size:360*oRg}}switch(A){case 1:case 2:return{size:1/dQp*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Bm5=function(A){if(!("matchMedia"in window))return _.te(Error("Sh")),function(){return!1};
var t=window.matchMedia(A);A=_.U(_.hZ(t.matches,void 0,"waIHpe"));var f=A.next().value,X=A.next().value,Q=function(q){X(q.matches)};
t.addEventListener?(t.addEventListener("change",Q),_.dD(function(){t.removeEventListener("change",Q)})):t.addListener&&(t.addListener(Q),_.dD(function(){t.removeListener(Q)}));
return f};
Mx5=function(A){return A==="IMAGE_BANNER_STYLE_INSET"||A==="IMAGE_BANNER_STYLE_UNKNOWN"};
CQ0=function(){if(!("matchMedia"in window))return _.te(Error("Sh")),function(){return 0};
var A=window.matchMedia("(max-width: 527.9px)"),t=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),f=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),X=window.matchMedia("(min-width: 1024px)"),Q=_.U(_.hZ(A.matches,void 0,"TmIKcb")),q=Q.next().value,e=Q.next().value;Q=_.U(_.hZ(t.matches,void 0,"Z0fTKd"));var G=Q.next().value,N=Q.next().value;Q=_.U(_.hZ(f.matches,void 0,"w4xy7b"));var z=Q.next().value,T=Q.next().value;Q=_.U(_.hZ(X.matches,void 0,"DrbNC"));var O=Q.next().value,
c=Q.next().value,B=function(E){e(E.matches)},h=function(E){N(E.matches)},W=function(E){T(E.matches)},L=function(E){c(E.matches)};
_.oh(function(){A.addEventListener?(A.addEventListener("change",B),t.addEventListener("change",h),f.addEventListener("change",W),X.addEventListener("change",L)):A.addListener&&(A.addListener(B),t.addListener(h),f.addListener(W),X.addListener(L));_.dD(function(){A.removeEventListener?(A.removeEventListener("change",B),t.removeEventListener("change",h),f.removeEventListener("change",W),X.removeEventListener("change",L)):A.removeListener&&(A.removeListener(B),t.removeListener(h),f.removeListener(W),
X.removeListener(L))})});
return function(){return q()?1:G()?2:z()?3:O()?4:0}};
hUl=function(A){var t=0;A=_.U([A.title,A.metadata,A.actions,A.description,A.attribution]);for(var f=A.next();!f.done;f=A.next())f.value&&t++;return t};
RUb=function(A){return A===1||A===2?1:0};
bJ5=function(A){A=(new mOg).parse(A);return(new Eg).render(A).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(t){var f=t.split(":").map(Number),X=0,Q=0;if(f.length===3)f=_.U(f),X=f.next().value,Q=f.next().value,f=f.next().value;else if(f.length===2)f=_.U(f),Q=f.next().value,f=f.next().value;else if(f.length===1)f=_.U(f).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(X*3600+Q*60+f)+'" role="button">'+t+"</span>"})};
W2x=function(A){A=_.U(A.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var t=A.next(),f={};!t.done;f={clickHandler$jscomp$5:void 0},t=A.next()){t=t.value;f.clickHandler$jscomp$5=function(Q){Q=Number(Q.target.getAttribute("data-time"));if(isNaN(Q))throw Error("Uh");var q;(q=_.JE())==null||q.seekTo(Q,!0)};
var X=function(Q){return function(q){q.key!=="Enter"&&q.key!=="Space"||(0,Q.clickHandler$jscomp$5)(q)}}(f);
t.setAttribute("tabindex","0");t.removeEventListener("click",f.clickHandler$jscomp$5);t.removeEventListener("keydown",X);t.addEventListener("click",f.clickHandler$jscomp$5);t.addEventListener("keydown",X)}};
yj5=function(){return _.u("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.u(C8,{percentWidth:100}),_.u(C8,{animationDelay:200}),_.u(C8,{animationDelay:400}),_.u(C8,{animationDelay:600}),_.u(C8,{animationDelay:800,percentWidth:60}),_.u("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.u(C8,{percentWidth:100}),_.u(C8,{animationDelay:200}),_.u(C8,{animationDelay:400}),_.u(C8,{animationDelay:600,percentWidth:50}))};
C8=function(A){return _.u("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(A.percentWidth===void 0?100:A.percentWidth)+"%"},_.u("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(A.animationDelay===void 0?0:A.animationDelay)+"ms"}))};
vnx=function(){var A=_.U(_.hZ(function(){return""},void 0,"dXJHWc")),t=A.next().value;
return[function(){return t()()},
A.next().value]};
L2x=function(A,t){A=A?ztu(A):"";t!==void 0&&isFinite(t)?t===0?t=_.e5("UPDATING",void 0,"Updating..."):(t=yB5(new Date(t),new Date),t=_.e5("UPDATED_TIME",{relative_time:t},"Updated "+t)):t="";var f="";A&&t&&(f=" \u2022 ");return _.w0(A+f+t)};
nnx=function(A,t,f,X,Q,q){t=t===void 0?0:t;var e=phg[t],G=e.title,N=e.iconType,z=e.topButtonRenderer,T=e.sectionClientVE;e=e.videoClientVE;var O;if(t!==1||A.length){f=[];A=_.U(A);for(X=A.next();!X.done;X=A.next()){var c=X.value;if(fmu(c))f.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:c.videoEntity.videoId,title:sO(c.videoEntity.title),shortBylineText:sO(c.channelEntity.title),thumbnail:c.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:c.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.e5("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:e}}}}}});else if(tDx(c)){X=f;var B=X.push;var h=void 0,W=void 0,L=void 0,E=void 0,D=void 0,S=void 0,Z=void 0,d=void 0,K=c.mainPlaylistEntity.playlistId,k=c==null?void 0:(d=c.mainPlaylistEntity)==null?void 0:(Z=d.thumbnailStyleData)==null?void 0:(S=Z[0])==null?void 0:(D=S.value)==null?void 0:(E=D.collageThumbnail)==null?void 0:E.coverThumbnail;E=DNx(K);if(!_.M("enable_offline_playlist_page")&&
(c==null?0:(L=c.mainPlaylistEntity)==null?0:L.videos)){b:{L=c==null?void 0:(W=c.mainPlaylistEntity)==null?void 0:W.videos;W=_.$I().getState().entities;if(L!=null&&L.length&&W)for(L=_.U(L),D=L.next();!D.done;D=L.next())if(D=_.tR(D.value).entityId,(D=JSON.parse(D).videoId)&&$rx(W,D)==="TRANSFER_STATE_COMPLETE"){W=D;break b}W=""}W!==void 0&&(E=nZ(_.$I().getState(),W),E=_.g0(W,K,void 0,void 0,E))}W=Ivb(_.e5("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),DNx(K));c=K&&k&&W?{playlistId:K,navigationEndpoint:E,
viewPlaylistText:W,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:k}},title:sO(c.mainPlaylistEntity.title),shortBylineText:sO(c==null?void 0:(h=c.channelEntity)==null?void 0:h.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Enq,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:K,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.e5("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:e}}}:
void 0;B.call(X,{gridPlaylistRenderer:c})}}e={gridRenderer:{items:f}};t===1&&(O=L2x(Q,q))}else if(X){var Gz=_.w0((B=f==null?void 0:f.localizedPromptMessage)!=null?B:"");e={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.w0(_.e5("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.BxT}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.w0(_.e5("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};O=L2x(Q,q)}else Gz=_.w0(_.e5("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
e={};return{contents:[{shelfRenderer:{title:G,titleAnnotation:O,icon:{iconType:N},subtitle:Gz,content:e,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:z}]}}}}],loggingDirectives:{clientVeSpec:{uiType:T}}}};
DOl=function(A,t,f,X,Q,q,e,G,N,z,T){f=f===void 0?{}:f;X=X===void 0?{}:X;Q=Q===void 0?!1:Q;q=q===void 0?!1:q;e=e===void 0?!1:e;G=G===void 0?!1:G;N=N===void 0?!1:N;z=z===void 0?0:z;T=T===void 0?-Infinity:T;if(!(t.length||A.length||Q||G))return q?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:A65(f)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.w0(_.e5("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 O=[];A.length&&O.push(nnx(A,0));G?O.push({contents:[{statementBannerRenderer:qZg(N,X)}]}):Q?O.push(nnx(t,1,f,e,z,T)):q&&O.push({contents:[{statementBannerRenderer:fRq(f)}]});(Q&&t.length||A.length)&&O.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.w0(_.e5("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 O.map(function(c){return{itemSectionRenderer:c}})};
h0=function(A,t){if(typeof A!=="object")return null;A=_.U(Object.entries(A));for(var f=A.next();!f.done;f=A.next()){var X=_.U(f.value);f=X.next().value;X=X.next().value;if(f===t)return f;if(X=h0(X,t))return f+"."+X}return null};
RJ=function(A){var t=A.content;return(A=A.styleRuns)&&t?{runs:A.map(function(f){var X={text:t.slice(f.startIndex,f.startIndex+f.length)};f.fontColor&&(X.textColor=f.fontColor);return X})}:{simpleText:t}};
xOb=function(A,t,f,X){var Q=F2p;X&&(A.quantity=X);if(!A.quantity||!A.maxQuantity)return{};X=A.minusButton;var q=A.plusButton,e,G,N,z;return{value:A.quantity,maxValue:A.maxQuantity,onChangeCallback:function(T){Q(A,T)},
minusLabel:(e=_.C(X,Ijb))==null?void 0:e.label,minimumReachedLabel:(G=_.C(X,Ijb))==null?void 0:G.limitReachedLabel,plusLabel:(N=_.C(q,Ijb))==null?void 0:N.label,maximumReachedLabel:(z=_.C(q,Ijb))==null?void 0:z.limitReachedLabel,disabled:t,onRemoveCommand:f}};
F2p=function(A,t){var f=A.quantityIncrementerEntityKey;if(f){var X={};X.quantity=t;_.og(_.m0("quantityIncrementerEntity",f,X));A.onChangeCommand&&_.LI(A.onChangeCommand)}};
jx5=function(A){if(A)return A===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(A).overflowY)?A:jx5(A.parentElement)};
ZJl=function(A,t){(A=Yo0(A))&&((_.M("enable_mini_app_command_handler_mweb_fix")?0:t)?Vxz.push({command:A,sourceData:{},commandContext:void 0}):_.Px().resolve(_.i2).resolveCommand(A))};
Yo0=function(A){return _.C(A,_.mG)};
ons=function(){var A=window.performance.timeOrigin+window.performance.now(),t=(new _.bM).setSeconds(A/1E9);return _.rd(t,2,_.U2(A%1E9),0)};
So5=function(A,t){var f;A=(f=_.C(_.C(A,_.mG),dO5))==null?void 0:f.methodName;var X,Q;(f=window.youtubewebview||((X=window.webkit)==null?void 0:(Q=X.messageHandlers)==null?void 0:Q.youtubewebview))&&A&&(X=new W$,A=_.Dg(X,1,A),A=_.E2(A.JSC$12638_serializeBinary()),t=_.E2(t),f.postMessage(A+","+t))};
yi=function(A,t){var f=_.C(_.C(A,_.mG),dO5);f&&(t&&(f.serializedAdditionalMetadata=_.E2(t)),ZJl(A,!0))};
$Op=function(A,t,f){setTimeout(function(){_.rW(A,t)},f)};
HJp=function(A){switch(A){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"}};
ajx=function(){return!!_.ah("ID_TOKEN")};
whT=function(A){return A instanceof Error&&A.cause instanceof K2T&&A.cause.rpcErrorCode!==void 0?!gnp.includes(A.cause.rpcErrorCode):!0};
k2x=function(){return _.U0(sxs,{authuser:""+(_.ah("SESSION_INDEX")||0)})};
v$=function(A,t,f,X){f=f===void 0?"MINI_APP_SDK_API_UNSPECIFIED":f;X=X===void 0?"":X;var Q=new _.xj;f={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:X,sdkApi:f};A instanceof Error&&(Q.message=A.message,Q.name=A.name,A.cause instanceof K2T&&A.cause.rpcErrorCode!==void 0&&(f.rpcErrorCode=A.cause.rpcErrorCode));var q;(q=t.onError)==null||q.call(t,{loggingError:Q,metadata:f})};
Ayp=function(A,t,f,X){switch(A){case "MINI_APP_SOURCE_GAMESNACKS":return new L8(t,f,X);default:return new rj5(t,f,X)}};
t_b=function(A){switch(A){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"}};
fJT=function(A){switch(A){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"}};
X6x=function(A){switch(A){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"}};
QKu=function(){return Math.floor(Math.random()*4)+1};
qqp=function(A,t,f,X){A=_.U(Object.entries(A));for(var Q=A.next(),q={};!Q.done;q={message$jscomp$995:void 0},Q=A.next()){var e=_.U(Q.value);Q=e.next().value;e=e.next().value;q.message$jscomp$995=e;t.push(setTimeout(function(G){return function(){X(!1);f(G.message$jscomp$995.text)}}(q),q.message$jscomp$995.delayMs));
Number(Q)>0&&t.push(setTimeout(function(){X(!0)},q.message$jscomp$995.delayMs-400))}};
Jyl=function(A,t){var f=f===void 0?nhT:f;_.M("mweb_fix_monitor_visibility_after_render")?A&&cn(function(){I1b(A,t,f)}):cn(function(){I1b(A,t,f)})};
Ujx=function(A,t){var f=document.createElement("ytd-engagement-panel-section-list-renderer");f.data=A;var X=t!=null?t:{};A=X.isPersistentPanel;t=X.hideDelayMs;X=X.overscrollContain;A=Object.assign({},A&&{isPersistentPanel:A},t&&{hideDelayMs:t},X&&{overscrollContain:X});Object.assign(f,A);return f};
Nvx=function(A){efb||(efb=Gbb(new _.xI(1,void 0,void 0,lJq),0));var t=efb.format(Math.floor(A));t=Dt==="be"||Dt==="bg"||Dt==="es"||Dt==="et"||Dt==="hu"||Dt==="ka"||Dt==="lv"||Dt==="pl"||Dt==="pt-PT"||Dt==="sq"?t.replace(new RegExp("^(\\d)"+lJq.GROUP_SEP.replace(".","\\.")+"(\\d+("+lJq.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):t;return A>=1E3&&A<=9999&&t[1]==="."&&(Dt==="sl"||Dt==="it")?t.replace(".",""):t};
PTu=function(A,t,f,X){if(A)return X=X||A.likeStatus,t?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:X==="LIKE",isDisabled:!A.likesAllowed,defaultIcon:{iconType:f},defaultText:X==="LIKE"?A.likeCountWithUnlikeText:A.likeCountText,toggledText:X==="LIKE"?A.likeCountText:A.likeCountWithLikeText,defaultNavigationEndpoint:u0g(A,"LIKE"),defaultServiceEndpoint:zfb(A,"LIKE"),toggledServiceEndpoint:zfb(A,"INDIFFERENT"),defaultTooltip:_.dF(A.likeCountTooltipText),toggledTooltip:_.dF(A.likeCountTooltipText),
targetId:A.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:X==="DISLIKE",isDisabled:!A.likesAllowed,defaultIcon:{iconType:f},defaultText:X==="DISLIKE"?A.dislikeCountWithUndislikeText:A.dislikeCountText,toggledText:X==="DISLIKE"?A.dislikeCountText:A.dislikeCountWithDislikeText,defaultNavigationEndpoint:u0g(A,"DISLIKE"),defaultServiceEndpoint:zfb(A,"DISLIKE"),toggledServiceEndpoint:zfb(A,"INDIFFERENT"),defaultTooltip:_.dF(A.dislikeCountTooltipText),
toggledTooltip:_.dF(A.dislikeCountTooltipText)}};
u0g=function(A,t){if(t==="LIKE")return A.likeCommand;if(t==="DISLIKE")return A.dislikeNavigationEndpoint};
zfb=function(A,t){var f;return(f=A.serviceEndpoints)==null?void 0:f.find(function(X){var Q;return((Q=_.C(X,_.p8))==null?void 0:Q.status)===t})};
_.Otl=function(A,t,f){return window.spf&&!_.M("web_disable_spfjs_client")?Tvu(A,t,f):itu(A,t)};
Tvu=function(A,t,f){var X=null,Q=(new _.yy(function(q,e){var G={};if(t){G.method=t.method;var N=t.postParams||{};if0(A,t)&&(N[_.ah("XSRF_FIELD_NAME")]=_.ah("XSRF_TOKEN"));G.postData=_.vx(N);t.type&&(G.type=t.type);N=t.headers}G.headers=lNu(A,N);_.M("debug_forward_web_query_parameters")&&(A=_.P0g(A,window.location.search));G.experimental_headers=G.headers;G.onError=function(z){z.err&&z.xhr&&(z.err.params={url:z.xhr.responseURL,response:z.xhr.responseText.substr(0,64)});e(z.err)};
G.onPartDone=function(z){f&&f.call(null,z.part)};
G.onDone=function(z){var T=cyp(z.response,"xsrf_token");l2(window.location.href,A)&&T&&_.H5("XSRF_TOKEN",T);if(T=cyp(z.response,"service_worker_killswitch"))_.H5("SERVICE_WORKER_KILLSWITCH",T),zms();q(z.response)};
X=spf.request(A,G)})).then(Bvg);
Q.thenCatch(function(q){var e=q instanceof _.Ej,G=q&&q.hasOwnProperty("params")&&q.params.response?q.params.response:"";q instanceof Error&&(G?e?k6x(q):G===')]}\'\n{"reload":"now"}'?k6x(q):(M_x(q,A,G),CTx(q,G)?_.K4(q):_.HQ(q)):k6x(q));X&&X.abort()});
return Q};
Bvg=function(A){if(A.type==="multipart"){var t=A.timing;A=A.parts.reduce(function(f,X){Object.assign(f,X);return f},{});
A.timing=A.timing||{};Object.assign(A.timing,t);A.type="reduced"}return A};
itu=function(A,t){t=t===void 0?{}:t;var f=null,X=new _.yy(function(Q,q){t.onFinish=function(e){if(e.readyState===XMLHttpRequest.DONE)if(e.status===200){if(e.responseType!=="json"){var G=e.response;G.substring(0,5)===")]}'\n"&&(G=G.substring(5));try{var N=JSON.parse(G)}catch(z){N=z}}else N=e.response;N instanceof Error?q(N):(G=cyp(N,"xsrf_token"),l2(window.location.href,A)&&G&&_.H5("XSRF_TOKEN",G),e=e.responseURL,window.performance&&window.performance.getEntriesByName?(G=window.performance.getEntriesByName(e).pop())?
e={responseStart:(0,_.OJ)()-(G.responseEnd-G.responseStart)}:(Math.random()<.01&&(G=Error("fi"),G.params=e,_.K4(G)),e={responseStart:-1}):e={responseStart:0},N.timing=N.timing||{},Object.assign(N.timing,e),Q(N))}else q(Error("ei`"+e.status))};
(f=_.y$(A,t))||q(Error("ei`"+f.status))});
X.thenCatch(function(Q){Q instanceof Error&&(M_x(Q,A),CTx(Q)&&(Q.level="WARNING"))});
_.M("cancel_pending_navs")&&X.thenCatch(function(){f.abort()});
return X};
cyp=function(A,t){var f=A[t],X=A.parts;A.type==="multipart"&&X&&(f=(A=X.find(function(Q){return t in Q}))&&A[t]);
return f};
M_x=function(A,t,f){var X=A.message||"";t={original:X,url:t};if(f)if(X=X.match(/position:?\s*(\d+)/)){X=X&&Number(X[1])?Number(X[1]):0;var Q=Math.max(X-25,0);t.position=X;t.response=f.substring(Q,X+25)}else t.response=f.substring(0,50);_.gL(A,t);try{A.message="JSON parse error"}catch(q){}};
CTx=function(A,t){A=A.message||"";A=!!(A.indexOf("<")>=0||A.indexOf("end of ")>=0||A.indexOf("Unterminated string")>=0||A.indexOf("Unexpected EOF"));if(!A&&t)for(var f=t.length,X=!1,Q=0;Q<f;Q++)if(X&&t[Q]==="\\")Q++;else if(t[Q]==='"')X=!X;else if(t[Q]==="<"&&!X){A=!0;break}return A};
hf0=function(){return document.documentElement.hasAttribute("dark")};
_.Rf0=function(A,t){if(A!=="GFEEDBACK"&&A!=="GUIDED_HELP")_.g9(Error("gi`"+A));else{var f=_.Px().resolve(_.z7(_.HO));if(f&&(f=f.getCurrentPage())&&f.getServiceTrackingParams&&(f=f.getServiceTrackingParams()))for(var X=0,Q;Q=f[X++];)if(Q.service===A){if(A=Q.params)for(f=0;X=A[f++];)t[X.key]=X.value;break}}};
_.mjg=function(A){var t=_.K1();t&&(t=t.getPlayer())&&(t.pauseVideo(),A.playback_id=t.getVideoData().cpn,A.eid=t.getVideoData().eventId,Object.assign(A,t.getFeedbackProductData()))};
bt5=function(){var A={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.ah("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(A.enableAnonymousFeedback=!0);_.ah("SESSION_INDEX")&&(A.authuser=String(_.ah("SESSION_INDEX")));_.M("enable_pageid_for_feedback")&&_.ah("DELEGATED_SESSION_ID")&&(A.pageId=String(_.ah("DELEGATED_SESSION_ID")));return A};
_.Dd=function(A){_.M("enable_ypc_spinners")&&_.kJ(A,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},A])};
_.FI=function(A){_.M("enable_ypc_spinners")&&_.kJ(A,"yt-close-popup-action",["yt-loading-renderer"])};
W4T=function(A){return new Promise(function(t,f){_.Wn({verifyCommand:{recaptchaToken:A.recaptchaResponse}},{commandController:{onSuccess:function(X,Q){Q||f("ChallengeService did not return a response.");var q;t({challengeCompleted:(q=Q.verified)!=null?q:!1})},
onServerError:function(X,Q){f(Q)}}})})};
yyu=function(A,t,f,X){t({recaptchaResponse:X}).then(function(Q){Q.challengeCompleted?_.DU()?(f(3),_.Px().resolve(_.i2).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:A}})):f(2):f(4)},function(){f(4)})};
L4p=function(A,t,f){_.DT(_.OP(vvb,_.ah("HL")),function(){var X;(X=window.grecaptcha)==null||X.ready(function(){var Q=window.grecaptcha;Q?(f(Q.render(A,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:yyu.bind(null,A,W4T,t)})),t(1)):t(4)})})};
p6x=function(A,t){return function(){switch(t()){case 0:return A().captchaLoadingMessage;case 1:return A().challengeReason;case 3:return A().captchaSuccessfulMessage;case 2:return A().captchaCookieSetFailureMessage;case 4:return A().captchaFailedMessage;default:return A().challengeReason}}()};
_.IJ=function(){if(!Ev0){var A=document.querySelector("#player.skeleton");A&&(_.vf(A),Ev0=!0)}};
_.Djq=function(){return nvq=BCx()};
xj5=function(){return _.l(function(A){return F4z!==void 0?A.return():A.yield(IJT(),0)})};
IJT=function(){return _.l(function(A){if(A.nextAddress==1)return A.yield(CO5(),2);nvq=A.yieldResult;F4z=_.a6.addLowPriorityJob(IJT,5E3);_.LO(A)})};
djs=function(A){var t=t===void 0?jKx:t;var f,X,Q=(f=A.responseContext)==null?void 0:(X=f.mainAppWebResponseContext)==null?void 0:X.trackingParam;if(!Q){t.increment("MISSING");var q,e,G,N,z,T;_.K4(new _.xj("282054944_a",{sao:!!((q=A.responseContext)==null?0:(e=q.mainAppWebResponseContext)==null?0:e.loggedOut),m5L:((G=A.responseContext)==null?void 0:G.mainAppWebResponseContext)===void 0,x5z:A.responseContext===void 0,cp:(N=A.playabilityStatus)==null?void 0:N.contextParams,yYB:(((z=A.streamingData)==
null?void 0:z.formats)||[]).length>0,xl9:(((T=A.streamingData)==null?void 0:T.adaptiveFormats)||[]).length>0,os:!!A.offlineState,cotn:A.cotn}));return 2}f="";try{f=Yq5(Q)}catch(B){return t.increment("C_ERROR"),_.HQ(B),2}try{var O=_.V_q(f);var c=Ztp(O)}catch(B){return t.increment("P_ERROR"),_.HQ(B),2}c=_.Nc(c,ovg,1,_.uI());Q=[];c=_.U(c);for(O=c.next();!O.done;O=c.next())X=O.value,O=X.getPath(),f=(0,_.VG.getValueByKeys)(A,O.split(".")),f=String(f===void 0||f===null?"":f),X=X.getValue()||"",q=/[+\-\/_]/g,
f.replace(q,"")!==X.replace(q,"")&&(t.increment("MISMATCH"),_.M("ab_mis_log_err")&&(f=new _.xj("282054944_p",{gHR:O,g:String(f),e:String(X)}),_.HQ(f)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(O)||(O.match(/enforcementMessageViewModel/i)?Q.push(3):Q.push(2)));if(Q.length>0)return Math.max.apply(Math,_.YV(Q));t.increment("SUCCESS");return 1};
HtT=function(A){var t=new xY;if(A.interpreterJavascript){var f=_.$vx(A.interpreterJavascript);f=qW(f).toString();var X=new Sqx;_.Dg(X,6,f);_.bi(t,1,X,Dw)}else A.interpreterUrl&&(f=_.KU(A.interpreterUrl),f=_.Ei(f).toString(),X=new _.$jp,_.Dg(X,4,f),_.bi(t,2,X,Dw));A.interpreterHash&&_.jM(t,3,A.interpreterHash,Dw);A.program&&_.jM(t,4,A.program,Dw);A.globalName&&_.jM(t,5,A.globalName,Dw);A.clientExperimentsStateBlob&&_.jM(t,7,A.clientExperimentsStateBlob,Dw);return t};
YY=function(A){var t={};A=_.U(A.split("&"));for(var f=A.next();!f.done;f=A.next())f=f.value.split("="),f.length===2&&(t[f[0]]=f[1]);return t};
aJx=function(A){return Number(A.t)||7200};
dp5=function(){if(_.M("bg_st_hr"))return"havuokmhhs-0";var A,t=((A=globalThis.performance)==null?void 0:A.timeOrigin)||0;return"havuokmhhs-"+Math.floor(t)};
Vi=function(A){window.bgens=A};
K4b=function(){return new Promise(function(A){var t=window;t.ntpevasrs!==void 0?A(new Zd(t.ntpevasrs)):(t.ntpqfbel===void 0&&(t.ntpqfbel=[]),t.ntpqfbel.push(function(f){A(new Zd(f))}))})};
gvx=function(A){if(_.M("attmusi")&&_.M("attmusi_ue")){A={s:A.eZh.bind(A),ir:A.yGW.bind(A)};var t=window;t.attmp=A;if(t.attmq!==void 0)for(var f=_.U(t.attmq),X=f.next();!X.done;X=f.next())X=X.value,X(A);t.attmq=void 0}else t=A.eZh.bind(A),_.zm("yt.aba.att",t),A=A.yGW.bind(A),_.zm("yt.aba.att2",A)};
sKb=function(A){switch(_.Wx(A.input)){case _.HE(w6g):var t={};return t.encryptedVideoId=A.innerTubeRequest.externalVideoId,t}return{}};
Ap5=function(A){switch(_.Wx(A.input)){case _.HE(w6g):if(_.M("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.HE(kbg):if(_.M("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.HE(oJ):if(_.M("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&A.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.HE(ry0):var t,f;if(_.M("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((f=_.C((t=A.config)==null?void 0:t.command,_.de))==null?0:f.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.fyT=function(A){var t;if(A.playlistVideoRenderer&&((t=A.playlistVideoRenderer)==null?0:t.engagementBar))return tux(A.playlistVideoRenderer.engagementBar);if(_.C(A,dP)){var f;if(A=(f=_.C(A,dP))==null?void 0:f.engagementBar)return tux(A)}return""};
tux=function(A){if(!A)return"";A=_.C(A,_.Xe5);if(A==null||!A.actions)return"";A=_.U(A.actions);for(A=A.next();!A.done;A=A.next()){A=_.C(A.value,_.QLb);var t=void 0;if((t=A)==null||!t.itemId)break;return A.itemId}return""};
_.qD5=function(A){var t;if(A.playlistVideoRenderer&&((t=A.playlistVideoRenderer)==null?0:t.videoId))return A.playlistVideoRenderer.videoId;if(_.C(A,dP)){var f,X;if(A=(f=_.C(A,dP))==null?void 0:(X=f.playlistItemData)==null?void 0:X.videoId)return A}return""};
_.JpT=function(A){var t;if(A.playlistVideoRenderer&&((t=A.playlistVideoRenderer)==null?0:t.voteCount))return A.playlistVideoRenderer.voteCount;if(_.C(A,dP)){var f,X;if(A=(f=_.C(A,dP))==null?void 0:(X=f.playlistItemData)==null?void 0:X.voteCount)return A}return 0};
_.SM=function(A,t){return _.q_(A.entities,"flowStateEntity",t)};
e4x=function(A,t,f,X){var Q=void 0;A=_.U(A[t.iconName]||[]);for(var q=A.next();!q.done;q=A.next()){q=q.value;var e=t.iconSize;var G=t.iconStyle;e=!e||e===q[2];var N=U0p[q[0]];X&&X!==q[1]||!e||G&&G!==N?G=!1:Q?(G=U0p[q[0]],G=!!t.iconStyle||G==="youtube_outline",e=Q.version<=q[1],G=(!!t.iconSize||q[2]===24)&&G&&e):G=!0;G&&(Q={name:t.iconName,style:U0p[q[0]],size:q[2],version:q[1],allowMirroring:!!q[3],url:f(t.iconName,q)})}return Q};
Gxg=function(A,t,f,X){return A+(""+U0p[f[0]]+((X===void 0?0:X)?"_experimental":"")+"/"+t+"/v"+f[1]+"/")+(f[2]+"px.svg")};
lyq=function(A){return _.ah("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.ah("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":A};
N50=function(A,t){return Gxg("https://fonts.gstatic.com/s/i/",A,t)};
uQb=function(A,t){return Gxg("https://fonts.gstatic.com/s/i/",A,t,!0)};
z4x=function(A,t){return Gxg("https://www.gstatic.com/youtube/img/icons/web/",A,t)};
T55=function(A){var t=A.enabled;var f=A.itemPlaybackModel;var X=A.thumbnailElRef;var Q=A.containerElRef;var q=A.options;var e;_.oo(function(){var G=Q==null?void 0:Q.value;var N,z=(N=X())==null?void 0:N.value;N=f();var T=q();if(t&&N&&G&&z&&(T==null?0:T.thumbnail)){var O={data:N,hostElement:G},c,B,h=[].concat(_.YV((c=T.thumbnailOverlays)!=null?c:[]),_.YV((B=N.overlays)!=null?B:[]));B=N.itemPlaybackOptions;c=(B==null?void 0:B.enableRoundedPlayer)||T.enableRounding;B=B==null?void 0:B.disableTimeStatusOverlay;
var W,L;G={mediaRenderer:O,lockupElement:G,thumbnailElement:z,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.bP((W=N.inlinePlayerData)==null?void 0:W.onVisible),navigationEndpoint:_.bP((L=N.inlinePlayerData)==null?void 0:L.onSelect),thumbnail:T.thumbnail,thumbnailOverlays:h,accessibilityText:T.accessibilityText||""},thumbnailSize:T.thumbnailSize,enableRounding:c,mouseleaveCallback:T.mouseleaveCallback,hideTimeDisplay:B}}}else G=void 0;if(W=G){var E;(E=e)==null||$Y(E);e=LW(W);var D,S;
((D=f())==null?0:(S=D.inlinePlayerData)==null?0:S.forceImpAutoplay)&&PZb(e)}},"BLiQOd");
_.dD(function(){var G;(G=e)==null||$Y(G)})};
iB5=function(A){A=atob(A);for(var t=[],f=0;f<A.length;f++)t.push(A.charCodeAt(f));return new Blob([new Uint8Array(t)],{type:"image/png"})};
cpg=function(A,t,f,X){X=X===void 0?"INSERTION_POSITION_UNSPECIFIED":X;return A({targetId:t},function(Q){var q,e=(q=Q.contents)!=null?q:[];q=f!=null?f:[];var G=OBx(e);switch(X){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Q,{contents:[].concat(_.YV(e.slice(0,G)),_.YV(q),_.YV(e.slice(G+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Q,{contents:[].concat(_.YV(q),_.YV(e))});case "INSERTION_POSITION_LAST":return Object.assign({},Q,{contents:[].concat(_.YV(e),_.YV(q))});
default:return Q}})};
Mu0=function(A,t,f,X,Q){Q=Q===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Q;return A({targetId:t},function(q){var e,G=(e=q.contents)!=null?e:[];e=B55(G,f);if(e<0)return q;e=Q==="RELATIVE_INSERTION_POSITION_BEFORE"?e:e+1;return Object.assign({},q,{contents:[].concat(_.YV(G.slice(0,e)),_.YV(X),_.YV(G.slice(e)))})})};
OBx=function(A){var t=A.findIndex(function(f){return _.C(f,_.H$)});
return t>=0?t:A.length};
B55=function(A,t){return A.findIndex(function(f){a:{f=_.U(Object.values(f));for(var X=f.next();!X.done;X=f.next())if((X=X.value)&&X.targetId){f=X.targetId;break a}f=""}return f===t})};
h45=function(A,t,f){return A({targetId:t},function(X){var Q,q=(Q=X.contents)!=null?Q:[];return Object.assign({},X,{contents:CZb(q,f)})})};
CZb=function(A,t){return A.filter(function(f){var X=t.includes;a:{f=_.U(Object.values(f));for(var Q=f.next();!Q.done;Q=f.next())if((Q=Q.value)&&Q.targetId){f=Q.targetId;break a}f=""}return!X.call(t,f||"")})};
_.R4l=function(A,t){return{engagementPanelSectionListRenderer:{panelIdentifier:A,identifier:t,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
m0x=function(A,t){A=A.getAvailableAudioTracks();if(A.length)return A==null?void 0:A.find(function(f){var X;return(f==null?void 0:(X=f.getLanguageInfo())==null?void 0:X.getId())===t})};
_.Wnx=function(A){var t,f=(t=A.getOption("captions","tracklist",{includeAsr:!0}))!=null?t:[];return f=bBu(f,A)};
ypz=function(A){return A.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
bBu=function(A,t){t=ypz(t);if(t==null||!t.length)return A;var f=t.filter(function(e){return e});
t=A.filter(function(e){return e.languageCode.startsWith("en")});
f=_.U(f);for(var X=f.next();!X.done;X=f.next())if(X=X.value,t.length){var Q=t[0],q=Object.assign({},Q);Q.languageCode!==X.languageCode&&(q.displayName=Q.languageName+" >> "+X.languageName,q.translationLanguage=X,A.push(q))}return A};
vs5=function(A,t,f){A=_.Wnx(A);if(A.length)return f?A.find(function(X){if(typeof(X==null?void 0:X.translationLanguage)==="object"){var Q;return((Q=X.translationLanguage)==null?void 0:Q.languageCode)===t}return!1}):A==null?void 0:A.find(function(X){return X.languageCode===t})};
Lnl=function(A){return A.getOption("captions","tracklist",{includeAsr:!0})};
peT=function(A){var t=A.getAvailableAudioTracks();if(t!=null&&t.length){var f=A.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.YV(t.map(function(X){return{listItemViewModel:{title:{content:X.getLanguageInfo().getName()},isSelected:X.getLanguageInfo().getId()===(f==null?void 0:f.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:X.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
Esp=function(A){return A.getOption("captions","tracklist",{includeAsr:!0})};
nsz=function(A){var t=Esp(A);if(t==null?0:t.length)return t;A.loadModule("captions");return Esp(A)};
D0s=function(A){var t=A.getOption("captions","track");if(t)return t;A.loadModule("captions");return A.getOption("captions","track")};
Iyx=function(A){var t=nsz(A);if(t!=null&&t.length){var f=D0s(A),X;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.e5("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(f==null?0:f.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.YV(t.map(function(Q){return{listItemViewModel:{title:{content:Q.displayName},
isSelected:Q.displayName===(f==null?void 0:f.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Q.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.e5("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!f.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!f.translationLanguage&&{selectionText:{content:(f==null?void 0:(X=f.translationLanguage)==null?void 0:X.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Fnp(A)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
Fnp=function(A){var t=ypz(A);if(t==null||!t.length)throw Error("Fi");var f=D0s(A);A=t.filter(function(X){return!X.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.YV(A.map(function(X){var Q;return{listItemViewModel:{title:{content:X.languageName},isSelected:X.languageName===(f==null?void 0:(Q=f.translationLanguage)==null?void 0:Q.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:X.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
Vuz=function(A){return new Promise(function(t,f){if(A===void 0)_.HQ(Error("Ji"),"ERROR"),f(Error("Ji"));else{f=new _.x00;var X=_.jL5();f=f.init();var Q=_.YDp(_.ah("YPC_MB_URL"),!0);Promise.all([f,Q]).then(function(){var q=_.aJ.payments.business.integration.ClientTokenFactory.createClientToken(A,X);t(q)})}})};
d0z=function(A,t,f,X,Q,q,e){var G=_.YE();f=f.replace(/-/g,"+").replace(/_/g,"/");var N=_.NJ().get("hl"),z=_.K8(_.Vc),T=t==null?void 0:t.element;T&&_.Dd(T);ZB5(t,!0);_.osb(z,f,G.resolve,function(){T&&_.FI(T)},function(O){T&&_.FI(T);
G.reject(O)},N,X?function(O){X&&_.jl(A,X,{backend_analytics:O})}:void 0,G.resolve,Q,q,e);
return G.promise};
ZB5=function(A,t){!(A=A==null?void 0:A.element)||A.tagName!=="YT-BUTTON-RENDERER"&&A.tagName!=="YTD-BUTTON-RENDERER"||(A.disabled=t)};
SD5=function(){var A=_.e5("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.w0(A),actionButton:{buttonRenderer:su0()}}},popupType:"TOAST"}};
$0z=function(){var A=_.e5("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.w0(A),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
HBx=function(A){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:A}]}}};
gP=function(A,t,f,X){var Q;return _.l(function(q){if(q.nextAddress==1)return _.ht(q,2),q.yield(A,4);if(q.nextAddress!=2)return(Q=_.i$(t.getState().entities).length>0)?q.return({title:_.w0(_.e5("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.w0(_.e5("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:wH0()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
q.return(kos(f,X));_.vC(q);return q.return(kos(f,X))})};
ayp=function(A,t){return t?t==="PPSV"||Kdq(A,t):!1};
Kng=function(A){A.responseContext||(A.responseContext={});A.responseContext.maxAgeSeconds=0;return A};
Au=function(A){var t;return _.l(function(f){return f.nextAddress==1?f.yield(gs5(A,"service:topbar:fallback"),2):(t=f.yieldResult)&&_.wP(t)?f.return(Kng(_.wP(t))):f.return()})};
weT=function(A){var t;return _.l(function(f){return f.nextAddress==1?f.yield(gs5(A,"service:downloads_settings:fallback"),2):(t=f.yieldResult)&&_.wP(t)?f.return(t):f.return()})};
gs5=function(A,t){var f;return _.l(function(X){if(X.nextAddress==1)return A?X.yield(A.get(t),2):X.return();f=X.yieldResult;return!f||!_.wP(f)||!isNaN(Number(f.data.expireTimestampMs))&&f.isExpired()?X.return():X.return(f)})};
sLz=function(A){var t=_.Px().resolve(tu).getState().entities;return A.playlistId?ayp(t,A.playlistId):!1};
rpg=function(A){var t=_.cx("web_pbj_log_warning_rate",0);t=t>0&&Math.random()<t;if(!_.C(A,_.zD))return t&&_.K4(Error("cj")),!1;var f;return _.M("shorts_controller_retrieve_seedless_sequence_v2")&&((f=_.C(A,_.zD))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:kxb(A)?!0:(t&&_.K4(Error("dj")),!1)};
kxb=function(A){var t=(_.C(A,_.ZT)||_.C(A,_.zD)).videoId;if(!t||!A$l.test(t))return!1;var f;return(A=(f=_.C(A.commandMetadata,_.Jl))==null?void 0:f.url)&&(A.includes(t)||A.startsWith("/clip"))?!0:!1};
_.f4q=function(){var A=_.NJ();return A.getFlag(192)?A.getFlag(190):!(_.M("web_watch_cinematics_disabled_by_default")||_.M("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&t8b())};
_.Xt=function(A,t,f){var X={};X.currentUrl=t;X.vis=A.vis!==void 0?A.vis:0;X.splay=!1;t=_.NJ();X.autoCaptionsDefaultOn=t.getFlag(66);t.getFlag(141)?t.getFlag(140)?X.autonavState="STATE_OFF":X.autonavState="STATE_ON":X.autonavState="STATE_NONE";X.html5Preference="HTML5_PREF_WANTS";isNaN(_.ah("STS"))||(X.signatureTimestamp=_.ah("STS"));A.autonav&&(X.autoplay=!0,X.autonav=!0);A.mutedAutoplay&&(X.autoplay=!0,X.mutedAutoplay=!0);A.inlinePlayback&&(X.autoplay=!0,X.autonav=!1,X.isInlineUnmutedPlayback=!!A.inlineUnmuted);
X.referer=f;X.lactMilliseconds=A.lact!==void 0?A.lact.toString():"-1";_.M("enable_unknown_lact_fix_on_html5")&&X.lactMilliseconds==="-1"&&_.K4(new _.xj("Unknown LACT is set in playbackContext.",{"lact in tempData":A.lact||"undefined",autonav:A.autonav||"undefined"}));A={};t.getFlag(194)&&(A.hasShownAmbientMode=!0);t.getFlag(192)&&(A.hasToggledOffAmbientMode=!0);_.f4q()&&(A.watchAmbientModeEnabled=!0);X.watchAmbientModeContext=A;return X};
XGT=function(A){var t={},f=A.pbis||0;f&&(t.playbackBeginsInSeconds=f);A.prefetch_reason&&A.prefetch_reason==="hc_pbis"&&(t.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return t};
Qcz=function(A,t){var f;if(t==null?0:(f=t.requestTemplate)==null?0:f.panelId)A.panelId=t.requestTemplate.panelId;var X;if(t==null?0:(X=t.requestTemplate)==null?0:X.params)A.params=t.requestTemplate.params};
J$T=function(){if(qGT)return qGT();var A=!_.M("idb_response_store_auth_killswitch"),t={};qGT=Tm("yt-it-response-store",{objectStores:(t.ResponseStore={addedAtVersion:1},t),shared:!A,upgrade:function(f,X){X(1)&&(f=AO(f,"ResponseStore",{keyPath:["key","clientName"]}),tO(f,"byExpiration","expireTimestampMs"),tO(f,"byInterface","clientName"))},
version:1});return qGT()};
Uub=function(A){return _.UJ(J$T(),A)};
G30=function(A,t){var f;return _.l(function(X){return X.nextAddress==1?X.yield(_.PD(),2):(f=X.yieldResult)?X.return(new erx(A,t,f)):X.return()})};
l45=function(A){var t=Object.keys(A)[0];if(t)return A.screenExit&&(t=t+";"+A.screenExit.screen),t};
Nnb=function(A){var t=new Map;A=_.U(A);for(var f=A.next();!f.done;f=A.next())f=f.value,f!=null&&(t.has(f.taskType)||t.set(f.taskType,[]),t.get(f.taskType).push(f));return t};
uJs=function(A){A=[].concat(_.YV(A)).sort(function(f,X){return f-X});
var t=Math.floor(A.length/2);return A.length%2?A[t]:(A[t-1]+A[t])/2};
Tnl=function(A,t){A=A===void 0?jMb:A;t=t===void 0?{}:t;_.zm("yt.logging.errors.log",_.HQ);In0();zrb(dIu(),t);window.onerror=A;PH5=xIp;window.addEventListener("unhandledrejection",function(f){if(f.reason instanceof Error){var X=f.reason;_.gL(X,{source:"unhandledrejection"});X.name==="AbortError"&&(X.level="WARNING")}xIp(f.reason);f.preventDefault()})};
_.iMu=function(A){var t,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K,k,Gz,Tz,y5,cp,iu,Fb,xq,Yq,zk,PT,rs,OT,bK,ET,m3,O2,eT;return _.l(function(fS){if(fS.nextAddress==1)return fS.yield(_.N_(A,{mode:"readonly",enableRetries:!0},function(hf){return u$(hf,"playbackData").then(function(wE){var Rp=wE.map(function(Tk){return Tk.transfer}).filter(function(Tk){return!!Tk}),rE=wE.map(function(Tk){return Tk.offlineVideoPolicy}).filter(function(Tk){return!!Tk}),bL=wE.filter(function(Tk){return!!Tk.key}).map(function(Tk){return _.QQ(_.tR(Tk.key).entityId,
"downloadStatusEntity")});
Rp=u$(hf,"transfer",Rp);rE=u$(hf,"offlineVideoPolicy",rE);bL=u$(hf,"downloadStatusEntity",bL);var $8=Rp.then(function(Tk){Tk=Tk.reduce(function(iK,Qh){(Qh==null?0:Qh.offlineVideoStreams)&&iK.push.apply(iK,_.YV(Qh.offlineVideoStreams));return iK},[]).filter(function(iK){return!!iK});
return u$(hf,"offlineVideoStreams",Tk)});
return Aq.all([Rp,rE,$8,bL]).then(function(Tk){var iK=_.U(Tk);Tk=iK.next().value;var Qh=iK.next().value;var Kg=iK.next().value;iK=iK.next().value;return[wE,Tk,Qh,Kg,iK]})})}),2);
if(fS.nextAddress!=3)return t=fS.yieldResult,fS.yield(_.N_(A,{mode:"readonly",enableRetries:!0},function(hf){return u$(hf,"mainDownloadsListEntity").then(function(wE){var Rp,rE;return(rE=(Rp=wE[0])==null?void 0:Rp.downloads)!=null?rE:[]})}),3);
f=fS.yieldResult;X=_.U(t);Q=X.next().value;q=X.next().value;e=X.next().value;G=X.next().value;N=X.next().value;z=Q;T=q;O=e;c=G;B=N;h={};W={};L={};E={};D={};S=[];Z=_.U(T);for(d=Z.next();!d.done;d=Z.next())(K=d.value)&&(h[K.key]=K);k=_.U(O);for(Gz=k.next();!Gz.done;Gz=k.next())(Tz=Gz.value)&&(W[Tz.key]=Tz);y5=_.U(B);for(cp=y5.next();!cp.done;cp=y5.next())(iu=cp.value)&&(L[iu.key]=iu);Fb=_.U(c);for(xq=Fb.next();!xq.done;xq=Fb.next())(Yq=xq.value)&&(E[Yq.key]=Yq);zk=_.U(f);for(PT=zk.next();!PT.done;PT=
zk.next())rs=PT.value,OT=void 0,D[(OT=rs.videoItem)!=null?OT:""]=!0,rs.videoItem&&(ET=bK=void 0,m3=(ET=(bK=_.tR(rs.videoItem))==null?void 0:bK.entityId)!=null?ET:"",S.push({externalVideoId:m3}));O2=z.filter(function(hf){if(!hf||!hf.key||!hf.offlineVideoPolicy)return!1;hf=_.tR(hf.key).entityId;hf=_.QQ(hf,"downloadStatusEntity");var wE;return!(hf&&((wE=L[hf])==null?void 0:wE.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
eT=O2.map(function(hf){var wE=h[hf.transfer],Rp=[];if(wE==null?0:wE.offlineVideoStreams)for(var rE=_.U(wE.offlineVideoStreams),bL=rE.next();!bL.done;bL=rE.next())(bL=E[bL.value])&&Rp.push(bL);rE=W[hf.offlineVideoPolicy];bL=D;var $8=hf==null?void 0:hf.playerResponseTimestamp,Tk=_.tR(rE.key).entityId;hf=_.QQ(Tk,"mainVideoEntity");if(rE.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var iK="OFFLINE_VIDEO_STATE_DISABLED";rE.expirationTimestamp&&Number(rE.expirationTimestamp)<Date.now()/1E3&&(iK="OFFLINE_VIDEO_STATE_EXPIRED")}else if(rE.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")iK="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(wE==null?void 0:wE.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":iK="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":iK="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":iK="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":iK="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":iK="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":iK="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:iK="OFFLINE_VIDEO_STATE_UNKNOWN"}if(iK==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(wE==null?void 0:wE.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":iK="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":iK="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":iK=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Tk={id:Tk,videoState:iK};if(wE==null?0:wE.cotn)Tk.cotn=wE.cotn;if(wE==null?0:wE.maximumDownloadQuality)Tk.selectedVideoQuality=wE==null?void 0:wE.maximumDownloadQuality;if(wE==null?0:wE.lastProgressTimeMs)Tk.lastProgressTimeMs=wE.lastProgressTimeMs;$8&&(Tk.playerResponseSavedTimeMs=String(Number($8)*1E3));wE=String;$8=0;Rp=_.U(Rp);for(iK=Rp.next();!iK.done;iK=Rp.next())if(iK=iK.value,iK.streamsProgress){iK=_.U(iK.streamsProgress);for(var Qh=iK.next();!Qh.done;Qh=
iK.next()){var Kg=void 0;$8+=Number((Kg=Qh.value.numBytesDownloaded)!=null?Kg:0)}}Tk.downloadedBytes=wE($8);Tk.selectedOfflineMode=bL[hf]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";rE.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Tk.offlinePlaybackDisabledReason=rE.offlinePlaybackDisabledReason);return Tk});
return fS.return({offlineVideos:eT,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:S}}})})};
OM5=function(){var A;return _.l(function(t){return t.nextAddress==1?t.yield(_.eR(),2):(A=t.yieldResult)?t.return(_.iMu(A)):t.return({state:"PES Unavailable"})})};
M8x=function(){var A,t,f,X;return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(_.eR(),2);if(Q.nextAddress!=3)return(A=Q.yieldResult)?Q.yield(c$g(A),3):Q.return({state:"PES Unavailable"});t=Q.yieldResult;f={};X=t.reduce(function(q,e){q[e.key]=e;return q},f);
return Q.return(Bnq(X))})};
Bnq=function(A){for(var t={},f=[],X=_.U(Object.keys(A)),Q=X.next();!Q.done;Q=X.next()){var q=Q.value;Q=A[q];var e=void 0;if(((e=Q)==null?void 0:e.entityType)==="mainVideoEntity"){delete A[q];var G=Q.data;Q={};if(G){var N=void 0;e=(N=G.videoId)!=null?N:"vid-"+q;q=A;Q.video=G;delete Q.video.formattedDescription;delete Q.video.thumbnail;G.owner&&(N=q[G.owner],N==null?0:N.data)&&(delete q[N.key],Q.video.owner=N.data,delete Q.video.owner.avatar);if(G=G.downloadState)if(N=q[G],N==null?0:N.data)if(delete q[G],
G=N.data.playbackData)if(N=q[G],N!=null&&N.data){delete q[G];G=N.data;delete G.playerResponseJson;Q.playbackData=G;if(G.transfer&&(N=q[G.transfer],N==null?0:N.data)){delete q[N.key];var z=N.data;Q.transfer=z;N=[];z=_.U(z.offlineVideoStreams||[]);for(var T=z.next();!T.done;T=z.next())if(T=q[T.value])delete q[T.key],N.push(T.data);N&&(Q.streams=N)}(G=G.offlineVideoPolicy)&&(G=q[G])&&G.data&&(delete q[G.key],Q.offlineVideoPolicy=G.data)}t[e]=Q}}else Q&&Q.entityType==="offlineOrchestrationActionWrapperEntity"&&
Q.data&&(delete A[Q.key],e=Q.data,q=void 0,f.push({id:e.rootActionId,type:((q=e.actionProto)==null?void 0:q.actionType)||"",entity:Q}))}t.wrapperEntities=f;Object.keys(A).length>0&&(t.unknownKeys=A);return t};
CHb=function(){var A,t,f,X,Q,q,e,G,N;return _.l(function(z){if(z.nextAddress==1)return A=(new _.kt("")).hasLocalStorage(),X=!!((t=_.Xb.crypto)==null?0:(f=t.subtle)==null?0:f.importKey),Q=!!_.Xb.BroadcastChannel,q=!!_.Xb.navigator.locks,z.yield(P$0(),2);e=z.yieldResult;G=A&&X&&Q&&q&&e;N={isSupported:G};if(G)return z.return(N);N.missingBrowserFeatures=[];e||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");A||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
X||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Q||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");q||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return z.return(N)})};
hrq=function(A,t,f,X){var Q=!1,q={contentId:void 0,contentType:"video"};t=_.U(Object.entries(t));for(var e=t.next();!e.done;e=t.next()){var G=_.U(e.value);e=G.next().value;G=G.next().value;A.includes(e)&&!f.has(G)?(q.contentId=G,f.add(G),Q=!0):e==="contentType"?G==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(q.contentType="playlist"):typeof G==="object"&&G!==null&&hrq(A,G,f,X)}Q&&X.push(q)};
Rrb=function(){var A;return!((A=Qs?Qs:null)==null||!A.window)};
_.bMs=function(A){if(_.Wp()&&_.hxx("Chromium")>=120){var t=_.mu0().mediaSession;try{t.setActionHandler("enterpictureinpicture",function(){A()})}catch(f){}}};
WD0=function(A){for(var t=[],f=_.U(document.styleSheets),X=f.next(),Q={};!X.done;Q={node$jscomp$779:void 0},X=f.next())Q.node$jscomp$779=X.value.ownerNode,Q.node$jscomp$779&&(Q.node$jscomp$779 instanceof HTMLStyleElement||Q.node$jscomp$779 instanceof HTMLLinkElement)&&t.push(new Promise(function(q){return function(e){var G=q.node$jscomp$779.cloneNode(!0);G.onload=function(){e()};
G.onerror=function(){_.K4(Error("uj"));e()};
A.document.head.appendChild(G)}}(Q)));
return Promise.all(t)};
xul=function(A){var t=[_.Pd(y$5),_.Pd(vel),_.Pd(LDp)];pGx(window.document.documentElement,A.document.documentElement,[_.Pd(Eeb),_.Pd(ne5),_.Pd(Dub),_.Pd(FDz),_.Pd(I45)]);pGx(window.document.body,A.document.body,t)};
pGx=function(A,t,f){A=_.U(A.attributes);for(var X=A.next();!X.done;X=A.next())if(X=X.value)try{_.GG(f,t,X.name,X.value)}catch(Q){}};
YGq=function(A,t){A=new _.qB(A.document.documentElement);A.start(jcb,t);return A};
V85=function(A){var t=A.document.documentElement;t.addEventListener("click",function(f){MZx(t,f)});
t.addEventListener("touchstart",function(f){bEx(f)});
t.addEventListener("mousedown",function(f){bEx(f)})};
oeg=function(A,t,f,X){X=X===void 0?!1:X;t=new ZM5(t||A,f||A);return{x:A.x+((X===void 0?0:X)?t.lengthX*-1:t.lengthX)*.2,y:A.y+((X===void 0?0:X)?t.lengthY*-1:t.lengthY)*.2}};
duu=function(A){if(!A)return!1;var t=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",f,X,Q,q=(Q=(f=A.errorScreen)==null?void 0:f.playerLegacyDesktopYpcTrailerRenderer)!=null?Q:(X=A.errorScreen)==null?void 0:X.ypcTrailerRenderer;return!!t||!!q};
_.SGx=function(A,t){if(!A)return!1;var f,X=(f=A.errorScreen)==null?void 0:f.playerLegacyDesktopYpcOfferRenderer,Q;t=!!(t==null?0:(Q=t.playerOverlayRenderer)==null?0:Q.gatedActionsOverlayRenderer);return!!duu(A)||!!X||!!t};
a45=function(A){return $ub(A,0,"gclid",A.search(HMg))>=0||$ub(A,0,"gad_source",A.search(HMg))>=0};
KDx=function(A){var t=[],f=0;return{clear:function(){f=t.length=0},
push:function(X){t[f]=X;f=(f+1)%A},
iterate:function(){return function Q(){var q,e,G,N;return _.Ju(Q,function(z){switch(z.nextAddress){case 1:_.WC(z,2),q=t.length,e=0;case 4:if(!(e<q)){z.jumpTo(2);break}G=f+e;N=_.Uu;return z.yield(t[G%q],7);case 7:N(z.yieldResult);e++;z.jumpTo(4);break;case 2:_.mz(z),_.yP(z,0)}})}()}}};
geb=function(A){A.eventsToIgnore||(A.eventsToIgnore=[]);var t=A.eventsToIgnore.map(hax),f=new Set(t),X=KDx(A.bufferSize);return{flush:function(){var Q=Array.from(X.iterate());X.clear();Q=Q.map(function(q){return{name:q.name,timestamp:q.startTime,attributes:q.attributes}});
return JSON.stringify(Q)},
onSpanStart:function(Q){Q.name==="event"&&f.has(Q.attributes.type)||X.push(Q)}}};
wGx=function(A){A=geb(A);var t=A.flush;cMx({onSpanStart:A.onSpanStart});sv.subscribe("handleError",function(f){try{f.params.breadcrumbs=t()}catch(X){_.HQ(X,"WARNING")}})};
sc5=function(){mP("web_tracing_action");_.b0("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
k3s=function(){mP("web_tracing_action");_.b0("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
tWx=function(A,t,f){if(t===void 0){r$u||(k3s(),setInterval(k3s,6E5),r$u=!0);var X="web_tracing_action"}else X=t;var Q,q=((Q=A.endTime)!=null?Q:A.startTime)-A.startTime;Q={};f=AdT(A.name,q,A.startTime,{webTracing:(Q[A.name]=A.attributes,Q)},f,X,{spanStatus:A.status});if(A.children)for(A=_.U(A.children),X=A.next();!X.done;X=A.next())tWx(X.value,t,f)};
f$s=function(A){var t=yM5.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(f){f.data&&typeof f.data==="object"&&(f=f.data,f.from==="extension"&&f.app==="yt.telemetry"&&(t("Received message from extension",f),A.onMessage(f)))});
return function(f,X){f={app:"yt.telemetry",from:"app",key:f,payload:X};t("Sending message to extension",f);window.postMessage(f,"*")}};
Xqq=function(){var A=A===void 0?3E3:A;var t=f$s({onMessage:function(){}}),f=[];
return{onSpanEnd:function(X){X.parentId==null&&f.push(X)===1&&setTimeout(function(){var Q=[].concat(_.YV(f));f.length=0;t("spansReported",{spans:Q})},A)}}};
Qs5=function(A){A=A===void 0?400:A;var t=[],f=[];return{start:function(){return fz0({checkoutEveryNth:A,emit:function(X,Q){Q&&(t=f,f=[]);f.push(X)}})},
getRecording:function(){return[].concat(_.YV(t),_.YV(f))}}};
Ufp=function(){(new qKx({sessionReplayEvents:_.cx("web_tracing_session_replay",0)})).subscribe(function(A){if(A.sessionReplayEvents>0)try{var t=Qs5(A.sessionReplayEvents);t.start();if(_.M("web_tracing_session_replay_demo")){var f=console.log;window.exportSessionReplay=function(){var X=JSON.stringify(t.getRecording(),null,2);X=Jdz(new Blob([X],{type:"text/plain"}));var Q=document.createElement("a");Q.download="session_replay.json";Q.dataset.downloadurl=["application/json",Q.download,Q.href].join(":");
Q.style.display="none";Q.href=X;Q.click();URL.revokeObjectURL(X);f("View replay at go/yt-session-replay-viewer")}}}catch(X){_.K4(Error("wj"))}})};
G8b=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var A=window.performance.getEntriesByType("navigation");if(A.length>0){var t=A[0],f=window.performance.timeOrigin;mNs("pageLoad",{navigationType:eRp(t.type),unloadEventStart:Math.round(t.unloadEventStart),unloadEventEnd:Math.round(t.unloadEventEnd),domInteractive:Math.round(t.domInteractive),domContentLoadedEventStart:Math.round(t.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(t.domContentLoadedEventEnd),
domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:t.redirectCount},{active:!1,startTime:f+t.startTime,endTime:f+t.loadEventEnd})}}catch(X){}})};
eRp=function(A){switch(A){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
Pt5=function(){for(var A=l$T.value,t={},f=_.U(A.enabledSpansArray),X=f.next();!X.done;X=f.next())t[X.value]=!0;Olx({sessionId:XYb(),enabledSpans:t,shouldSampleFn:function(Q,q,e){if(Nq0){var G;return Q==="shortToShort"||(e==null?void 0:(G=e.rootSpan())==null?void 0:G.name)==="shortToShort"}return!0}});
WOx();BK0("pageLoad")&&G8b();A.exportToCsi&&cMx(uTb);A.exportToDevTools&&cMx(Xqq());A.maxBreadcrumbs>0&&wGx({eventsToIgnore:zRq,bufferSize:A.maxBreadcrumbs})};
Tqp=function(A){return new Promise(function(t){window.setTimeout(t,A)})};
iqg=function(A){var t={bicf:function(q){A.bMX=q},
blc:function(){return A.getLatestChallengeResponse()},
bcr:function(q){A.as4.push(q)}},f=window;
f.ntpevasrs=t;if(f.ntpqfbel!==void 0)for(var X=_.U(f.ntpqfbel),Q=X.next();!Q.done;Q=X.next())Q=Q.value,Q(t);f.ntpqfbel=void 0};
Oqu=function(A){return _.l(function(t){if(t.nextAddress==1)return _.ht(t,2),t.yield(A.h9s(),4);if(t.nextAddress!=2)return _.qq(t,0);_.vC(t);_.LO(t)})};
cdu=function(A){var t,f;(t=A.ytcsi)==null||(f=t.tick)==null||f.call(t,"pot_ist")};
Bqs=function(A){if(A instanceof Error){var t=_.Ae("yt.logging.errors.log");t&&t(A,"WARNING")}};
MWx=function(A){try{var t=JSON.parse(A);if(t.bgChallenge)return t}catch(f){}};
hR5=function(){var A=window,t={networkStatusManagerPromise:_.Px().resolve(new rGq(_.qA)),initialChallengeSli:_.M("wpo_att_sli")?new _.h25("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};A=A===void 0?window:A;var f=A.ytAtR,X;t==null||(X=t.initialChallengeSli)==null||_.et(X);if(f){if(f=MWx(f)){var Q;t==null||(Q=t.initialChallengeSli)==null||_.GF(Q,"SUCCESS");Ct5(f,t)}A.ytAtR=void 0}else A.ytAtRC=function(q){if(q=MWx(q)){var e;t==null||(e=t.initialChallengeSli)==null||
_.GF(e,"SUCCESS");Ct5(q,t);A.ytAtRC=void 0}}};
bqT=function(){if(RRs)return RRs;try{var A=_.yT("IFRAME");_.rW(A,_.OP(mf5));A.sandbox.add("allow-same-origin");A.style.display="none";document.body.appendChild(A);return RRs=A}catch(t){A=new _.xj("Failed to create sandbox iframe"),_.HQ(A)}};
Wob=function(A){var t,f;return(f=A==null?void 0:(t=A.contentWindow)==null?void 0:t.fetch)!=null?f:window.fetch};
ydz=function(A){var t,f;return(f=A==null?void 0:(t=A.contentWindow)==null?void 0:t.Request)!=null?f:window.Request};
v0x=function(A){var t,f;return(f=A==null?void 0:(t=A.contentWindow)==null?void 0:t.TextDecoder)!=null?f:window.TextDecoder};
Lo5=function(){return function(A,t){_.ah("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[A]=t}};
pqg=function(){return function(A,t){var f={};f[A]=t;A=_.r9(_.FMx)(f);Object.keys(A).length>0&&_.R7(A)}};
Df5=function(){if(J7l()==="hidden")var A="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else J7l()==="visible"&&(A="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",E0b=null);A&&n0u(A)};
n0u=function(A){if(A==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||A==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Fou===A)return;Fou=A}var t=9E4+Math.random()*2E3;if(A!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.iX()>t)&&J7l()==="visible"){t=-1;E0b&&(t=Math.round((0,_.OJ)()-E0b));var f=String;var X=_.Ae("_fact",window);X=X==null||X==-1?-1:Math.max(Date.now()-X,0);_.SY("foregroundHeartbeat",{firstActivityMs:f(X),clientDocumentNonce:Qzx,index:String(I$x),lastEventDeltaMs:String(t),trigger:A});
_.zm("_fact",-1,window);I$x++;E0b=(0,_.OJ)()}};
xf5=function(A,t,f,X,Q,q){t=new Uint8Array(t);if(A.length===0)return t;var e=0;Q=Q!=null?Q:A.length-1;for(var G=f;G<=Q;G++){var N=A[G],z=G===f?X:0,T=void 0,O=G===Q?(T=q)!=null?T:N.length:N.length;N=N.subarray(z,O);t.set(N,e);e+=N.length}return t};
_.jsp=function(){try{return!!self.sessionStorage}catch(A){return!1}};
YK5=function(){var A=navigator;return new Promise(function(t,f){var X;(X=A.webkitTemporaryStorage)!=null&&X.queryUsageAndQuota?A.webkitTemporaryStorage.queryUsageAndQuota(function(Q,q){t({usage:Q,quota:q})},function(Q){f(Q)}):f(Error("Fj"))})};
VWu=function(A,t){var f={errorSeverity:t.errorSeverity.toString(),wizFeatureFlags:Object.entries(t.featureFlags).join("\n")};Ff0(t,f);t=t.errorSeverity;t===3?_.HQ(A,"ERROR",void 0,void 0,void 0,f):t===2&&_.HQ(A,"WARNING",void 0,void 0,void 0,f);_.M("cow_if_errors_in_popup")&&t===3&&A.message.indexOf("<If>")!==-1&&window.alert(A.message)};
Zq5=function(A,t){var f=$7.get(A)||{layerNode:t};f.layerNode=t;ilb(A,f);A.getScreenLayer=function(){return lg(f.layerNode)}};
o0b=function(A){var t;A=A.parentNode;for(var f;A&&((t=$7.get(A))==null||!t.isRenderer)&&!((f=A.polymerController)!=null?f:A).isRenderer_;)A=A.parentNode||A.host;if(t=A)return $7.get(t)};
dfq=function(A){if(A){$7.delete(A);var t=_.Px().resolve(id);bes(A,t)}};
$fb=function(A,t,f){if(f===void 0?0:f){if(f=A.getAttribute("client-ve-type"),t.data&&!t.disableReactiveLogging||f)_.ZM(function(){SK0(A,_.$f(t.data))},"xg"),_.dD(function(){return void dfq(A)})}else typeof t.data!=="function"&&SK0(A,t.data)};
SK0=function(A,t){Hqb++;a$l(A,t)&&_.a6.addJob(function(){_.NB(_.a6,function(){if(a$l(A,t)&&A.ownerDocument.documentElement===document.documentElement&&A){var f;if(A.getAttribute("layer")){var X=f=Number(A.getAttribute("layer")),Q=$7.get(A);Q?Q.layerNode.layer=X:Zq5(A,new KoT(X));(X=o0b(A))&&(Q=$7.get(A))!=null&&(Q.layerNode.parent=X.layerNode)}else if(f=$7.get(A))f=lg(f.layerNode);else{f=lg;X=new KoT;if(Q=o0b(A))X.parent=Q.layerNode;Zq5(A,X);f=f(X)}f!=null||(f=0);X=A.getAttribute("client-ve-type");
Q=Number(X);var q=!1;X=!1;var e=$7.get(A),G;if((G=e)&&!(G=e[g0b]!==t)&&(G=Q)){var N;G=((N=$7.get(A))==null?void 0:N.clientVeType)===void 0}G&&(e[g0b]=t,q=X=e.isRenderer=!0);$7.has(A)&&($7.get(A).clientVeType=Q);A.visualElement&&(X=!0);if(_.M("wiz_next_ld_fix_client_ve_spec")){var z;N=((z=_.C(t==null?void 0:t.rendererContext,_.GV))==null?void 0:z.loggingDirectives)||(t==null?void 0:t.loggingDirectives)}else N=t==null?void 0:t.loggingDirectives;N&&N.clientVeSpec&&(z=wqu(_.J7(),A),z=_.ss0(_.er(),N,z||
void 0,f))&&(A.visualElement=z);!A.visualElement&&Q&&q&&(A.veType=Q,z=void 0,_.M("wiz_next_client_ve_parent_fix")&&(z=wqu(_.J7(),A)),z=_.UX(_.er(),A,z,f),A.visualElement=z);X&&(z=_.Px().resolve(id),LCx(A,{data:t,observer:z,layer:f,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
a$l=function(A,t){return(t==null?0:t.trackingParams)||(t==null?0:t.loggingDirectives)||_.C(t==null?void 0:t.rendererContext,_.GV)||A.getAttribute("client-ve-type")?!0:!1};
k8l=function(A,t,f){A.componentType!==EH&&f instanceof HTMLElement&&t&&!_.M("cow_logging_in_component_wrapper")&&$fb(f,t,!0)};
f80=function(){if(!rds){rds=!0;var A=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.M("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:_.M("enable_wiz_context_per_component")||!1},{handleError:VWu,enableComponentStacksInErrorMessages:!1});Object.assign(N4,A);kS5=A35;tyq();Xsl=gKg;AGb=s$q}};
tyq=function(){_.M("cow_logging_in_component_wrapper")?(Q$q=function(A,t){t instanceof HTMLElement&&$fb(t,A,!0)},ZP5=function(){}):(Q$q=function(){},ZP5=k8l)};
XPb=function(A,t,f){t=t===void 0?{}:t;var X,Q=(X=_.C(A.commandMetadata,_.Jl))==null?void 0:X.url;X=t.form||{};!f||X.element||X.skipDefaultElement||(t.form=t.form||{},t.form.element=f);if(Q&&Q!=="/service_ajax")return{type:0,command:A,form:t.form};if(_.M("kevlar_service_command_check")){if(_.xE(_.Px().resolve(_.iY),A))return Object.assign({},{type:1,command:A},t)}else{var q;if((q=_.C(A.commandMetadata,_.Jl))==null?0:q.apiUrl)return Object.assign({},{type:1,command:A},t)}return{type:2,command:A,form:t.form}};
QTb=function(A){if(A.form){var t=A.form,f=Object.assign({},t);t=t.element;f=(delete f.element,f);if(t)return[_.Al(t,[A.command,f,A.commandController])]}return[]};
qf5=function(A){if(A.form){var t=A.form,f=Object.assign({},t);t=t.element;f=(delete f.element,f);t&&_.tl(t,[A.command],t,f)}};
UZ0=function(A,t,f){var X=new J3b(A,t),Q=new ug(A,t,f);A={"/youtubei/v1/browse":new zF(A,t,f),"/youtubei/v1/player":X,"/youtubei/v1/navigation/resolve_url":new PF,"/youtubei/v1/next":Q,"/youtubei/v1/guide":new TF(f),"/youtubei/v1/search":new ig(A,t,f),"/youtubei/v1/reel/reel_item_watch":new Ou(A,t,f),"/youtubei/v1/get_watch":new cF(X,Q)};A["/youtubei/v1/account/account_menu"]=new BF;A["/youtubei/v1/notification/get_notification_menu"]=new MB;return A};
hu=function(){var A=_.Px().resolve(_.Cs);return Promise.resolve(eCT(A,_.Xb.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
G15=function(A){return A&&(A=_.RG(_.uaT(A)))?(new URLSearchParams(A)).get("service"):null};
WF=function(A,t){_.sX(_.m_(),function(){_.Wt("adl")});
_.Px().resolve(l8g)(t);A=A.root;A.loadData&&A.loadData(t);(t==null?0:t.response)?_.GF(b9q(),"SUCCESS"):_.K4(new _.xj("Lifecycle: No response in data",_.Ka("IS_SHELL_LOAD"),t?t.page:"NO_PAGE",t?t.endpoint:"NO_ENDPOINT"));A.polymerController.$["page-manager"].lazyPrepareCriticalPages((t==null?void 0:t.page)||"",t.endpoint);var f,X;((X=_.C(t==null?void 0:(f=t.endpoint)==null?void 0:f.commandMetadata,_.Jl))==null?0:X.webPageType)&&_.$I().dispatch(_.bg(_.C(t.endpoint.commandMetadata,_.Jl).webPageType))};
Nu0=function(){var A,t;return _.l(function(f){switch(f.nextAddress){case 1:A=window;if(!A.getDataPromise){f.jumpTo(2);break}_.ht(f,3);return f.yield(A.getDataPromise(),5);case 5:return f.return(f.yieldResult);case 3:return _.vC(f),f.yield(hu(),6);case 6:return f.return(f.yieldResult);case 2:if(A.getInitialData)return t=A.getInitialData(),A.getInitialData=void 0,f.return(t);throw Error("Hj`"+_.Xb.location.href);}})};
zCx=function(){_.H5("CSI_SERVICE_NAME","youtube");_.R7({loadType:"cold"});_.M("kevlar_log_lcp")&&u4z(function(A){_.Wt("lcp",A.value)})};
Ppx=function(){var A=_.ww(document.location.href,"enable");A&&A.indexOf("scraper")>-1&&_.H5("ADD_SCRAPER_ATTRIBUTES",!0)};
Bu5=function(A){var t=A.root;A=[Tux,iz5,_.ys];_.M("web_feedback_endpoint_autolog_allowlist_killswitch")&&A.push(_.vF,Ozb);c3b(function(f,X){return XPb(f,X,t)},function(f){if(!f.command)return[];
var X;((X=f.form)==null?0:X.element)?f.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},f.form,{endpoint:f.command})})):t.handleNavigate(f);return[]},A);
_.Px().addProvider({provide:_.i2,useValue:_.XH.instance})};
Cpx=function(){var A={},t={},f;for(f in Myu){var X=_.U(_.hZ(Myu[f],void 0,"IAtZ7"));A[f]=X.next().value;t[f]=X.next().value}return[A,function(Q){for(var q in Q){var e=void 0;(e=t[q])==null||e(Q[q])}}]};
_.Ls=function(A,t,f){t=t===void 0?!1:t;var X=_.VG.getValueByKeys(A,"contents","twoColumnWatchNextResults","results","results","contents"),Q=_.VG.getValueByKeys(A,"contents","twoColumnWatchNextResults","playlist","playlist")||null;t&&(Q=null);var q=t=null;if(Q)t=_.VG.getValueByKeys(Q,"titleText"),q=_.VG.unsafeClone(_.VG.getValueByKeys(Q,"longBylineText")),X="",q&&(X=_.dF(q)),q=_.oC(X);else if(X){X=_.U(X);for(var e=X.next();!e.done;e=X.next())e=e.value,e.videoPrimaryInfoRenderer&&(t=_.VG.getValueByKeys.apply(_.VG,
[e].concat(_.YV(hCu)))),e.videoSecondaryInfoRenderer&&(q=_.VG.getValueByKeys.apply(_.VG,[e].concat(_.YV(RCT))))}else _.te(Error("Mj"));var G;A.currentVideoEndpoint?G=A.currentVideoEndpoint:_.te(Error("Nj"));var N;f&&(N=_.VG.getValueByKeys(f,"playabilityStatus","miniplayer","miniplayerRenderer"));A={miniplayerTitle:t,miniplayerSubtitle:q,watchEndpoint:G,playlistData:Q};N&&(A.miniplayerRenderer=N);return A};
mZz=function(A){if(A)return _.CI(A)};
_.bzg=function(){return{isFullscreen:function(){throw Error("Oj");},
toggleFullscreen:function(){throw Error("Pj");},
exitFullscreen:function(){throw Error("Qj");},
isAutonavEnabled:function(){throw Error("Rj");},
setAutonavEnabled:function(){throw Error("Sj");},
isAutoplaySetExplicitly:function(){throw Error("Tj");}}};
Wpu=function(A){return A.videoDuration?A.numTaps>1&&A.tapDirection!==0?_.ps(A.draggedTime/A.videoDuration,0,1):_.ps((A.playedTime||0)/A.videoDuration,0,1):0};
y3s=function(A){return A.videoDuration?A.isDragging||A.numTaps>1&&A.tapDirection!==0?_.ps(A.draggedTime/A.videoDuration,0,1):_.ps((A.playedTime||0)/A.videoDuration,0,1):0};
Lp5=function(A){var t,f,X;return _.C(A==null?void 0:(t=A.markersMap)==null?void 0:(f=t.find(function(Q){return Q.key==="HEATSEEKER"}))==null?void 0:(X=f.value)==null?void 0:X.heatmap,v20)};
pP5=function(A){var t,f;return(f=(t=Lp5(A))==null?void 0:t.heatMarkersDecorations)!=null?f:[]};
E2T=function(A){if(_.M("mweb_supported_chapters_killswitch"))return!0;var t;return!!(A==null?0:(t=A.markersMap)==null?0:t.find(function(f){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(f.key)}))};
_.n2x=function(A){var t=Object,f=t.assign,X;A={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(X=A==null?void 0:A.getPlayerState())!=null?X:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return f.call(t,{},{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,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},A,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
DZ0=function(A){return function(t){var f=A(),X,Q=(X=f.playerApi)==null?void 0:X.getPlayerState();t&&t!==f.playerState&&(t===1||t===2)&&f.setState({playerState:Q})}};
I85=function(A){return function(t){var f=A(),X=f.playerApi;X&&(t==null?void 0:t.type)==="newdata"&&(Fpb&&(clearTimeout(Fpb),Fpb=void 0),_.M("web_shorts_use_progress_state_for_gapless")?(t=X==null?void 0:X.getProgressState(t==null?void 0:t.playertype),t=t.seekableEnd-t.seekableStart):t=X==null?void 0:X.getDuration(t==null?void 0:t.playertype),f.setState({playedTime:0,videoDuration:t}))}};
xZ5=function(A){return function(t){var f=A(),X=f.playerApi;if(X){var Q=X.getPresentingPlayerType();_.M("web_shorts_use_progress_state_for_gapless")?(X=X.getProgressState(Q),X=X.seekableEnd-X.seekableStart):X=X.getDuration(Q);f.setState({playedTime:t,videoDuration:X})}}};
Yfb=function(A){_.Ma(112394,A,function(){return jT5},function(t){jT5=t})};
o25=function(A,t){if(!A)return[];var f,X,Q;A=((f=A.markersMap)==null?void 0:(X=f.find(function(q){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(q.key)}))==null?void 0:(Q=X.value)==null?void 0:Q.chapters)||[];
!VyT(A)||(t==null?0:t.ignoreStub)||(A=[Zzl()].concat(_.YV(A)));return A};
Zzl=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
VyT=function(A){if(A.length===0)return!1;var t;return((t=_.C(A[0],Eu))==null?void 0:t.timeRangeStartMillis)!==0};
ns=function(A){return A?A.timeRangeStartMillis||0:0};
Sf5=function(A,t){if(A.isDragging&&t)return A=dZx(A,t),A===-1?Zzl():o25(t)[A]};
dZx=function(A,t){return A.isDragging&&t?o25(t,{ignoreStub:!0}).findIndex(function(f,X,Q){f=$Zx(A);return Hzb(f,Q,X).scrubberHovering}):-1};
$Zx=function(A){return Object.assign({},A,{videoDuration:A.videoDuration*1E3,playedTime:A.playedTime*1E3,draggedTime:A.draggedTime*1E3})};
Hzb=function(A,t,f){var X=ns(_.C(t[f],Eu));t=ns(_.C(t[f+1],Eu))||A.videoDuration;f=A.isDragging;var Q;if(Q=A.isDragging)Q=A.draggedTime,Q=Q!==null&&Q>=X&&Q<t;var q=A.playedTime;return q!==null&&q>=X&&q<t?{videoPosition:"active",isScrubbing:f,scrubberHovering:Q}:A.playedTime<X?{videoPosition:"pending",isScrubbing:f,scrubberHovering:Q}:{videoPosition:"seen",isScrubbing:f,scrubberHovering:Q}};
a8q=function(A,t){return A.videoPosition==="seen"||(t===void 0?0:t)>0};
Kpb=function(A,t,f){t=A/t.storyboardInterval;var X=o25(f);if(!X.length)return-t*72;f=0;X=_.U(X);for(var Q=X.next();!Q.done;Q=X.next())if(ns(_.C(Q.value,Eu))/1E3<A)f++;else break;return-(t*72)-f*56};
g25=function(A){return A?A.width/A.columns:0};
wPx=function(A){return A.isHovering?A.hoveredTime:A.draggedTime};
sTz=function(A,t){A=A.draggedTime*1E3;return A>=t.visibleTimeRangeStartMillis&&A<=t.visibleTimeRangeEndMillis};
_.k1b=function(A){if(A===void 0||Number.isNaN(A))return"--:--";var t=Math.abs(Math.floor(A)),f=Math.floor(t/86400),X=Math.floor(t%86400/3600),Q=Math.floor(t%3600/60);t=Math.floor(t%60);var q="";f>0&&(q+=f+":",X<10&&(q+="0"));if(f>0||X>0)q+=X+":",Q<10&&(q+="0");q+=Q+":";t<10&&(q+="0");q+=t;return A>=0?q:"-"+q};
r3p=function(A,t){return function(){var f=wPx(A());var X=t();var Q=A().playerApi;if(Q&&Q.getNumberOfStoryboardLevels()!==0){var q=Q.getStoryboardFrameIndex(f,1);q!==-1?X=Q.getStoryboardFrame(q,1):(f=Q.getStoryboardFrameIndex(f,0),Q=Q.getStoryboardFrame(f,0),X&&Q&&(Q.height*=3,Q.width*=3),X=Q)}else X=null;if(!X)return null;t()&&(X.width=90*X.columns,X.height=160*X.rows);return X}};
_.AQb=function(A){if(!A||A.getVideoData)return A};
tpz=function(){var A;return{playerApi:(A=_.JE())!=null?A:void 0}};
fab=function(A){var t;_.l(function(f){if(f.nextAddress==1)return f.yield(_.Q9(),2);if(t=f.yieldResult)t.unMute(!0),t.setVolume(A,!0);_.LO(f)})};
XJb=function(A,t){A&&(A.value=""+t,A.style.setProperty("--gradient-percent",t+"%"))};
Q3x=function(A){var t;return(t=A==null?void 0:A.value)!=null?t:0};
qel=function(){var A;_.l(function(t){if(t.nextAddress==1)return t.yield(_.Q9(),2);A=t.yieldResult;if(!A)return t.return();A.isMuted()?A.unMute(!0):A.mute(!0);_.LO(t)})};
JQx=function(A){var t=_.Px().resolve(_.DS).getPlayerElement();t&&A&&(A===1?t.pause():t.play())};
UDq=function(A){_.r2(A,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
euq=function(A){_.r2(A,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
la5=function(A){return _.Vz(A.document.body,function(){return _.u(Ggx,null)},"kh")};
NJb=function(){var A;return(A=navigator.userActivation)==null?void 0:A.isActive};
u2p=function(){var A=window.performance.getEntriesByType("navigation");return A?A.map(function(t){return t.type}).includes("reload"):!1};
Mp0=function(){Ft(Ft(Ft(Ft(Ft(Ft(Ft(_.Px().resolve(_.IG),_.zuu),_.PB5),_.TJz),_.i0z),_.O0b),_.cQb),_.BJg)};
CB5=function(A,t){t=t===void 0?!1:t;var f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return t||!_.M("kevlar_shorts_seedless_retry_initial_load")||(f=window,X=!(!f.getDataPromise&&!f.getInitialData),X)?e.yield(Nu0(),2):(setTimeout(CB5.bind(window,A,!0),1E3),e.return());if(e.nextAddress!=3)return Q=e.yieldResult,e.yield(hux(Q),3);q=e.yieldResult;WF(A,q);_.LO(e)})};
hux=function(A){var t;if((t=A.response)==null||!t.replacementEndpoint)return _.ff(A);t=_.Px().resolve(_.Cs);A=A.response;_.C(A.replacementEndpoint,_.zD)&&A.sequenceContinuation&&(_.C(A.replacementEndpoint,_.zD).sequenceParams=A.sequenceContinuation);return x5(t,A.replacementEndpoint,{},_.Xb.location.href,"shorts",function(){},function(){return!1})};
mDb=function(A){var t=_.Px().resolve(Rug);A.playerResponse&&t.handleResponse(A.playerResponse);A.response&&t.handleResponse(A.response)};
b0u=function(A){var t=_.$I(),f,X=_.C((f=A.response)==null?void 0:f.frameworkUpdates,Zn),Q;f=_.C((Q=A.playerResponse)==null?void 0:Q.frameworkUpdates,Zn);var q;A=_.C((q=A.reelWatchSequenceResponse)==null?void 0:q.frameworkUpdates,Zn);X&&_.l$(X,t);f&&_.l$(f,t);A&&_.l$(A,t)};
Wgq=function(A){var t;_.M("enable_redirect_linking_for_desktop_web_client")&&((t=window.location.hash)==null?0:t.includes("redirect_state"))&&A.url&&(A.url=A.url.toString()+window.location.hash)};
Lgx=function(A){var t=_.Px(),f=t.resolve(_.Cs);t=t.resolve(_.yQx);A.endpoint&&(f=vTp(f,A.endpoint),f.content&&A.response&&_.jt(t,A.response,f.content),f.player&&A.playerResponse&&_.jt(t,A.playerResponse,f.player),f.reelSequence&&A.reelWatchSequenceResponse&&_.jt(t,A.reelWatchSequenceResponse,f.reelSequence))};
Y5=function(A,t){mDb(t);b0u(t);var f;(t==null?0:t.url)&&((f=window.location.hash)==null?0:f.includes("redirect_state"))&&(Wgq(t),(f=G15(t.url))&&_.kJ(A.root,"yt-initialize-third-party",[f,t]));Lgx(t);f=_.Px();var X=f.resolve(pJz);t.playerResponse&&f.resolve(ET5).handleResponse(t.playerResponse);if(t.playerResponse){f=void 0;if(_.M("ab_v_vid_sig")&&t.endpoint){var Q,q=(Q=_.C(t.endpoint,_.ZT))!=null?Q:_.C(t.endpoint,_.zD);q&&(f=q.videoId)}nTx(X,t.playerResponse,f)}t.playerResponse&&K6b(t.playerResponse)&&
_.M("web_enable_ab_rsp_cl")?xj5().then(function(){DDp(X,t.playerResponse);WF(A,t)}):WF(A,t)};
Iaq=function(A){if(A=A.root.data){var t=_.Px().resolve(Fgz);A.endpoint&&(A.response&&t.handleResponse(A.response,void 0,document.querySelector("ytd-app")),A.playerResponse&&t.handleResponse(A.playerResponse),A.reelWatchSequenceResponse&&t.handleResponse(A.reelWatchSequenceResponse))}};
xDp=function(A){var t,f,X,Q,q,e;return _.l(function(G){switch(G.nextAddress){case 1:t=window;if(!t.getDataPromise){G.jumpTo(2);break}_.ht(G,3);return G.yield(t.getDataPromise(),5);case 5:f=G.yieldResult;Y5(A,f);_.qq(G,4);break;case 3:return _.vC(G),G.yield(hu(),6);case 6:X=G.yieldResult,WF(A,X);case 4:return G.return();case 2:if(!_.M("sw_nav_preload_pbj")){G.jumpTo(7);break}t.fetchInitialData=function(){var N;return _.l(function(z){if(z.nextAddress==1)return z.yield(hu(),2);N=z.yieldResult;WF(A,N);
_.LO(z)})};
if(t.getInitialData){t.loadInitialData=function(N){Y5(A,N)};
Q=t.getInitialData();t.getInitialData=void 0;Y5(A,Q);G.jumpTo(8);break}t.fetchInitialData=void 0;return G.yield(hu(),9);case 9:q=G.yieldResult,WF(A,q);case 8:return G.return();case 7:t.getInitialData?(e=t.getInitialData(),t.getInitialData=void 0,Y5(A,e)):t.loadInitialData=function(N){Y5(A,N)},_.LO(G)}})};
Yeb=function(){var A=new j3s;_.gjx(A);A.registerInitializationCallback(function(){X$q(void 0,void 0,void 0,_.M("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
A.registerCallback("error",function(t,f,X){_.g9(Error("Xj`"+f+"`"+X))})};
Vp0=typeof Object.create=="function"?Object.create:function(A){var t=function(){};
t.prototype=A;return new t};
Z0x=typeof Object.defineProperties=="function"?Object.defineProperty:function(A,t,f){if(A==Array.prototype||A==Object.prototype)return A;A[t]=f.value;return A};
oT5=function(A){A=["object"==typeof globalThis&&globalThis,A,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<A.length;++t){var f=A[t];if(f&&f.Math==Math)return f}throw Error("a");};
_.PV=oT5(this);dDz="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.PV.BigInt64Array&&(dDz.push("BigInt64"),dDz.push("BigUint64"));var $Dx=function(A,t){if(t)for(var f=0;f<dDz.length;f++)Sex(dDz[f]+"Array.prototype."+A,t)},Vs=function(A,t){t&&Sex(A,t)},Sex=function(A,t){var f=_.PV;
A=A.split(".");for(var X=0;X<A.length-1;X++){var Q=A[X];if(!(Q in f))return;f=f[Q]}A=A[A.length-1];X=f[A];t=t(X);t!=X&&t!=null&&Z0x(f,A,{configurable:!0,writable:!0,value:t})},H0b=function(){function A(){function f(){}
new f;Reflect.construct(f,[],function(){});
return new f instanceof f}
if(typeof Reflect!="undefined"&&Reflect.construct){if(A())return Reflect.construct;var t=Reflect.construct;return function(f,X,Q){f=t(f,X);Q&&Reflect.setPrototypeOf(f,Q.prototype);return f}}return function(f,X,Q){Q===void 0&&(Q=f);
Q=Vp0(Q.prototype||Object.prototype);return Function.prototype.apply.call(f,Q,X)||Q}}(),aau;
if(typeof Object.setPrototypeOf=="function")aau=Object.setPrototypeOf;else{var Kgu;a:{var gT0={a:!0},wJu={};try{wJu.__proto__=gT0;Kgu=wJu.a;break a}catch(A){}Kgu=!1}aau=Kgu?function(A,t){A.__proto__=t;if(A.__proto__!==t)throw new TypeError("b`"+A);return A}:null}ZS=aau;
_.R=function(A,t){A.prototype=Vp0(t.prototype);A.prototype.constructor=A;if(ZS)ZS(A,t);else for(var f in t)if(f!="prototype")if(Object.defineProperties){var X=Object.getOwnPropertyDescriptor(t,f);X&&Object.defineProperty(A,f,X)}else A[f]=t[f];A.superClass_=t.prototype};
s3g=function(A){var t=0;return function(){return t<A.length?{done:!1,value:A[t++]}:{done:!0}}};
_.U=function(A){var t=typeof Symbol!="undefined"&&Symbol.iterator&&A[Symbol.iterator];if(t)return t.call(A);if(typeof A.length=="number")return{next:s3g(A)};throw Error("c`"+String(A));};
Qq=function(A){for(var t,f=[];!(t=A.next()).done;)f.push(t.value);return f};
_.YV=function(A){return A instanceof Array?A:Qq(_.U(A))};
_.dS=function(A){return oG(A,A)};
oG=function(A,t){A.raw=t;Object.freeze&&(Object.freeze(A),Object.freeze(t));return A};
St=function(A,t){return Object.prototype.hasOwnProperty.call(A,t)};
kgz=function(A){if(A==null)throw new TypeError("d");return Object(A)};
rQT=typeof Object.assign=="function"?Object.assign:function(A,t){A=kgz(A);for(var f=1;f<arguments.length;f++){var X=arguments[f];if(X)for(var Q in X)St(X,Q)&&(A[Q]=X[Q])}return A};
Vs("Object.assign",function(A){return A||rQT});
var $5=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Abl=function(A){if(A.isRunning_)throw new TypeError("f");
A.isRunning_=!0};
$5.prototype.JSC$8799_next_=function(A){this.yieldResult=A};
var tTT=function(A,t){A.abruptCompletion_={exception:t,isException:!0};A.nextAddress=A.catchAddress_||A.finallyAddress_};
$5.prototype.return=function(A){this.abruptCompletion_={return:A};this.nextAddress=this.finallyAddress_};
$5.prototype.yield=function(A,t){this.nextAddress=t;return{value:A}};
$5.prototype.jumpTo=function(A){this.nextAddress=A};
_.LO=function(A){A.nextAddress=0};
_.ht=function(A,t,f){A.catchAddress_=t;f!=void 0&&(A.finallyAddress_=f)};
_.WC=function(A,t){A.catchAddress_=0;A.finallyAddress_=t||0};
_.qq=function(A,t,f){A.nextAddress=t;A.catchAddress_=f||0};
_.vC=function(A,t){A.catchAddress_=t||0;t=A.abruptCompletion_.exception;A.abruptCompletion_=null;return t};
_.mz=function(A,t,f,X){X?A.finallyContexts_[X]=A.abruptCompletion_:A.finallyContexts_=[A.abruptCompletion_];A.catchAddress_=t||0;A.finallyAddress_=f||0};
_.yP=function(A,t,f){f=A.finallyContexts_.splice(f||0)[0];(f=A.abruptCompletion_=A.abruptCompletion_||f)?f.isException?A.nextAddress=A.catchAddress_||A.finallyAddress_:f.jumpTo!=void 0&&A.finallyAddress_<f.jumpTo?(A.nextAddress=f.jumpTo,A.abruptCompletion_=null):A.nextAddress=A.finallyAddress_:A.nextAddress=t};
fxp=function(A){this.JSC$8804_context_=new $5;this.program_=A};
Q0l=function(A,t){Abl(A.JSC$8804_context_);var f=A.JSC$8804_context_.yieldAllIterator_;if(f)return Xpp(A,"return"in f?f["return"]:function(X){return{value:X,done:!0}},t,A.JSC$8804_context_.return);
A.JSC$8804_context_.return(t);return HF(A)};
Xpp=function(A,t,f,X){try{var Q=t.call(A.JSC$8804_context_.yieldAllIterator_,f);if(!(Q instanceof Object))throw new TypeError("e`"+Q);if(!Q.done)return A.JSC$8804_context_.isRunning_=!1,Q;var q=Q.value}catch(e){return A.JSC$8804_context_.yieldAllIterator_=null,tTT(A.JSC$8804_context_,e),HF(A)}A.JSC$8804_context_.yieldAllIterator_=null;X.call(A.JSC$8804_context_,q);return HF(A)};
HF=function(A){for(;A.JSC$8804_context_.nextAddress;)try{var t=A.program_(A.JSC$8804_context_);if(t)return A.JSC$8804_context_.isRunning_=!1,{value:t.value,done:!1}}catch(f){A.JSC$8804_context_.yieldResult=void 0,tTT(A.JSC$8804_context_,f)}A.JSC$8804_context_.isRunning_=!1;if(A.JSC$8804_context_.abruptCompletion_){t=A.JSC$8804_context_.abruptCompletion_;A.JSC$8804_context_.abruptCompletion_=null;if(t.isException)throw t.exception;return{value:t.return,done:!0}}return{value:void 0,done:!0}};
qxp=function(A){this.next=function(t){Abl(A.JSC$8804_context_);A.JSC$8804_context_.yieldAllIterator_?t=Xpp(A,A.JSC$8804_context_.yieldAllIterator_.next,t,A.JSC$8804_context_.JSC$8799_next_):(A.JSC$8804_context_.JSC$8799_next_(t),t=HF(A));return t};
this.throw=function(t){Abl(A.JSC$8804_context_);A.JSC$8804_context_.yieldAllIterator_?t=Xpp(A,A.JSC$8804_context_.yieldAllIterator_["throw"],t,A.JSC$8804_context_.JSC$8799_next_):(tTT(A.JSC$8804_context_,t),t=HF(A));return t};
this.return=function(t){return Q0l(A,t)};
this[Symbol.iterator]=function(){return this}};
_.Ju=function(A,t){t=new qxp(new fxp(t));ZS&&A.prototype&&ZS(t,A.prototype);return t};
JbK=function(A){function t(X){return A.next(X)}
function f(X){return A.throw(X)}
return new Promise(function(X,Q){function q(e){e.done?X(e.value):Promise.resolve(e.value).then(t,f).then(q,Q)}
q(A.next())})};
_.l=function(A){return JbK(new qxp(new fxp(A)))};
Vs("Symbol",function(A){if(A)return A;var t=function(q,e){this.$jscomp$symbol$id_=q;Z0x(this,"description",{configurable:!0,writable:!0,value:e})};
t.prototype.toString=function(){return this.$jscomp$symbol$id_};
var f="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",X=0,Q=function(q){if(this instanceof Q)throw new TypeError("g");return new t(f+(q||"")+"_"+X++,q)};
return Q});
Vs("Symbol.iterator",function(A){if(A)return A;A=Symbol("h");Z0x(Array.prototype,A,{configurable:!0,writable:!0,value:function(){return Ulp(s3g(this))}});
return A});
Vs("Symbol.asyncIterator",function(A){return A?A:Symbol("i")});
Ulp=function(A){A={next:A};A[Symbol.iterator]=function(){return this};
return A};
_.R9=function(A){var t=A[Symbol.asyncIterator];return t!==void 0?t.call(A):new exK(_.U(A))};
exK=function(A){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return A};
this.next=function(t){return Promise.resolve(A.next(t))};
this["throw"]=function(t){return new Promise(function(f,X){var Q=A["throw"];Q!==void 0?f(Q.call(A,t)):(f=A["return"],f!==void 0&&f.call(A),X(new TypeError("j")))})};
A["return"]!==void 0&&(this["return"]=function(t){return Promise.resolve(A["return"](t))})};
_.Hu=function(){for(var A=Number(this),t=[],f=A;f<arguments.length;f++)t[f-A]=arguments[f];return t};
_.Uu=function(A){return A};
Vs("globalThis",function(A){return A||_.PV});
Vs("Reflect",function(A){return A?A:{}});
Vs("Reflect.construct",function(){return H0b});
Vs("Reflect.setPrototypeOf",function(A){return A?A:ZS?function(t,f){try{return ZS(t,f),!0}catch(X){return!1}}:null});
Vs("Promise",function(A){function t(){this.batch_=null}
function f(e){return e instanceof Q?e:new Q(function(G){G(e)})}
if(A&&(typeof _.PV.PromiseRejectionEvent!=="undefined"||!_.PV.Promise||_.PV.Promise.toString().indexOf("[native code]")===-1))return A;t.prototype.asyncExecute=function(e){if(this.batch_==null){this.batch_=[];var G=this;this.asyncExecuteFunction(function(){G.executeBatch_()})}this.batch_.push(e)};
var X=_.PV.setTimeout;t.prototype.asyncExecuteFunction=function(e){X(e,0)};
t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var e=this.batch_;this.batch_=[];for(var G=0;G<e.length;++G){var N=e[G];e[G]=null;try{N()}catch(z){this.asyncThrow_(z)}}}this.batch_=null};
t.prototype.asyncThrow_=function(e){this.asyncExecuteFunction(function(){throw e;})};
var Q=function(e){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var G=this.createResolveAndReject_();try{e(G.resolve,G.reject)}catch(N){G.reject(N)}};
Q.prototype.createResolveAndReject_=function(){function e(z){return function(T){N||(N=!0,z.call(G,T))}}
var G=this,N=!1;return{resolve:e(this.resolveTo_),reject:e(this.JSC$8836_reject_)}};
Q.prototype.resolveTo_=function(e){if(e===this)this.JSC$8836_reject_(new TypeError("n"));else if(e instanceof Q)this.settleSameAsPromise_(e);else{a:switch(typeof e){case "object":var G=e!=null;break a;case "function":G=!0;break a;default:G=!1}G?this.resolveToNonPromiseObj_(e):this.fulfill_(e)}};
Q.prototype.resolveToNonPromiseObj_=function(e){var G=void 0;try{G=e.then}catch(N){this.JSC$8836_reject_(N);return}typeof G=="function"?this.settleSameAsThenable_(G,e):this.fulfill_(e)};
Q.prototype.JSC$8836_reject_=function(e){this.settle_(2,e)};
Q.prototype.fulfill_=function(e){this.settle_(1,e)};
Q.prototype.settle_=function(e,G){if(this.state_!=0)throw Error("o`"+e+"`"+G+"`"+this.state_);this.state_=e;this.result_=G;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Q.prototype.scheduleUnhandledRejectionCheck_=function(){var e=this;X(function(){if(e.notifyUnhandledRejection_()){var G=_.PV.console;typeof G!=="undefined"&&G.error(e.result_)}},1)};
Q.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var e=_.PV.CustomEvent,G=_.PV.Event,N=_.PV.dispatchEvent;if(typeof N==="undefined")return!0;typeof e==="function"?e=new e("unhandledrejection",{cancelable:!0}):typeof G==="function"?e=new G("unhandledrejection",{cancelable:!0}):(e=_.PV.document.createEvent("CustomEvent"),e.initCustomEvent("unhandledrejection",!1,!0,e));e.promise=this;e.reason=this.result_;return N(e)};
Q.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var e=0;e<this.onSettledCallbacks_.length;++e)q.asyncExecute(this.onSettledCallbacks_[e]);this.onSettledCallbacks_=null}};
var q=new t;Q.prototype.settleSameAsPromise_=function(e){var G=this.createResolveAndReject_();e.callWhenSettled_(G.resolve,G.reject)};
Q.prototype.settleSameAsThenable_=function(e,G){var N=this.createResolveAndReject_();try{e.call(G,N.resolve,N.reject)}catch(z){N.reject(z)}};
Q.prototype.then=function(e,G){function N(c,B){return typeof c=="function"?function(h){try{z(c(h))}catch(W){T(W)}}:B}
var z,T,O=new Q(function(c,B){z=c;T=B});
this.callWhenSettled_(N(e,z),N(G,T));return O};
Q.prototype.catch=function(e){return this.then(void 0,e)};
Q.prototype.callWhenSettled_=function(e,G){function N(){switch(z.state_){case 1:e(z.result_);break;case 2:G(z.result_);break;default:throw Error("p`"+z.state_);}}
var z=this;this.onSettledCallbacks_==null?q.asyncExecute(N):this.onSettledCallbacks_.push(N);this.isRejectionHandled_=!0};
Q.resolve=f;Q.reject=function(e){return new Q(function(G,N){N(e)})};
Q.race=function(e){return new Q(function(G,N){for(var z=_.U(e),T=z.next();!T.done;T=z.next())f(T.value).callWhenSettled_(G,N)})};
Q.all=function(e){var G=_.U(e),N=G.next();return N.done?f([]):new Q(function(z,T){function O(h){return function(W){c[h]=W;B--;B==0&&z(c)}}
var c=[],B=0;do c.push(void 0),B++,f(N.value).callWhenSettled_(O(c.length-1),T),N=G.next();while(!N.done)})};
return Q});
var aG=function(A,t,f){if(A==null)throw new TypeError("q`"+f);if(t instanceof RegExp)throw new TypeError("r`"+f);return A+""};
Vs("String.prototype.startsWith",function(A){return A?A:function(t,f){var X=aG(this,t,"startsWith"),Q=X.length,q=t.length;f=Math.max(0,Math.min(f|0,X.length));for(var e=0;e<q&&f<Q;)if(X[f++]!=t[e++])return!1;return e>=q}});
Vs("Object.setPrototypeOf",function(A){return A||ZS});
Vs("Symbol.dispose",function(A){return A?A:Symbol("s")});
Vs("SuppressedError",function(A){function t(f,X,Q){if(!(this instanceof t))return new t(f,X,Q);Q=Error(Q);"stack"in Q&&(this.stack=Q.stack);this.message=Q.message;this.error=f;this.suppressed=X}
if(A)return A;_.R(t,Error);t.prototype.name="SuppressedError";return t});
Vs("Array.from",function(A){return A?A:function(t,f,X){f=f!=null?f:function(G){return G};
var Q=[],q=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];if(typeof q=="function"){t=q.call(t);for(var e=0;!(q=t.next()).done;)Q.push(f.call(X,q.value,e++))}else for(q=t.length,e=0;e<q;e++)Q.push(f.call(X,t[e],e));return Q}});
var Gzp=function(A,t,f){A instanceof String&&(A=String(A));for(var X=A.length,Q=0;Q<X;Q++){var q=A[Q];if(t.call(f,q,Q,A))return{i:Q,v:q}}return{i:-1,v:void 0}};
Vs("Array.prototype.find",function(A){return A?A:function(t,f){return Gzp(this,t,f).v}});
Vs("WeakMap",function(A){function t(){}
function f(N){var z=typeof N;return z==="object"&&N!==null||z==="function"}
function X(N){if(!St(N,q)){var z=new t;Z0x(N,q,{value:z})}}
function Q(N){var z=Object[N];z&&(Object[N]=function(T){if(T instanceof t)return T;Object.isExtensible(T)&&X(T);return z(T)})}
if(function(){if(!A||!Object.seal)return!1;try{var N=Object.seal({}),z=Object.seal({}),T=new A([[N,2],[z,3]]);if(T.get(N)!=2||T.get(z)!=3)return!1;T.delete(N);T.set(z,4);return!T.has(N)&&T.get(z)==4}catch(O){return!1}}())return A;
var q="$jscomp_hidden_"+Math.random();Q("freeze");Q("preventExtensions");Q("seal");var e=0,G=function(N){this.JSC$8844_id_=(e+=Math.random()+1).toString();if(N){N=_.U(N);for(var z;!(z=N.next()).done;)z=z.value,this.set(z[0],z[1])}};
G.prototype.set=function(N,z){if(!f(N))throw Error("t");X(N);if(!St(N,q))throw Error("u`"+N);N[q][this.JSC$8844_id_]=z;return this};
G.prototype.get=function(N){return f(N)&&St(N,q)?N[q][this.JSC$8844_id_]:void 0};
G.prototype.has=function(N){return f(N)&&St(N,q)&&St(N[q],this.JSC$8844_id_)};
G.prototype.delete=function(N){return f(N)&&St(N,q)&&St(N[q],this.JSC$8844_id_)?delete N[q][this.JSC$8844_id_]:!1};
return G});
Vs("Map",function(A){if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var G=Object.seal({x:4}),N=new A(_.U([[G,"s"]]));if(N.get(G)!="s"||N.size!=1||N.get({x:4})||N.set({x:4},"t")!=N||N.size!=2)return!1;var z=N.entries(),T=z.next();if(T.done||T.value[0]!=G||T.value[1]!="s")return!1;T=z.next();return T.done||T.value[0].x!=4||T.value[1]!="t"||!z.next().done?!1:!0}catch(O){return!1}}())return A;
var t=new WeakMap,f=function(G){this[0]={};this[1]=q();this.size=0;if(G){G=_.U(G);for(var N;!(N=G.next()).done;)N=N.value,this.set(N[0],N[1])}};
f.prototype.set=function(G,N){G=G===0?0:G;var z=X(this,G);z.list||(z.list=this[0][z.id]=[]);z.entry?z.entry.value=N:(z.entry={next:this[1],previous:this[1].previous,head:this[1],key:G,value:N},z.list.push(z.entry),this[1].previous.next=z.entry,this[1].previous=z.entry,this.size++);return this};
f.prototype.delete=function(G){G=X(this,G);return G.entry&&G.list?(G.list.splice(G.index,1),G.list.length||delete this[0][G.id],G.entry.previous.next=G.entry.next,G.entry.next.previous=G.entry.previous,G.entry.head=null,this.size--,!0):!1};
f.prototype.clear=function(){this[0]={};this[1]=this[1].previous=q();this.size=0};
f.prototype.has=function(G){return!!X(this,G).entry};
f.prototype.get=function(G){return(G=X(this,G).entry)&&G.value};
f.prototype.entries=function(){return Q(this,function(G){return[G.key,G.value]})};
f.prototype.keys=function(){return Q(this,function(G){return G.key})};
f.prototype.values=function(){return Q(this,function(G){return G.value})};
f.prototype.forEach=function(G,N){for(var z=this.entries(),T;!(T=z.next()).done;)T=T.value,G.call(N,T[1],T[0],this)};
f.prototype[Symbol.iterator]=f.prototype.entries;var X=function(G,N){var z=N&&typeof N;z=="object"||z=="function"?t.has(N)?z=t.get(N):(z=""+ ++e,t.set(N,z)):z="p_"+N;var T=G[0][z];if(T&&St(G[0],z))for(G=0;G<T.length;G++){var O=T[G];if(N!==N&&O.key!==O.key||N===O.key)return{id:z,list:T,index:G,entry:O}}return{id:z,list:T,index:-1,entry:void 0}},Q=function(G,N){var z=G[1];
return Ulp(function(){if(z){for(;z.head!=G[1];)z=z.previous;for(;z.next!=z.head;)return z=z.next,{done:!1,value:N(z)};z=null}return{done:!0,value:void 0}})},q=function(){var G={};
return G.previous=G.next=G.head=G},e=0;
return f});
Vs("Set",function(A){if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var f=Object.seal({x:4}),X=new A(_.U([f]));if(!X.has(f)||X.size!=1||X.add(f)!=X||X.size!=1||X.add({x:4})!=X||X.size!=2)return!1;var Q=X.entries(),q=Q.next();if(q.done||q.value[0]!=f||q.value[1]!=f)return!1;q=Q.next();return q.done||q.value[0]==f||q.value[0].x!=4||q.value[1]!=q.value[0]?!1:Q.next().done}catch(e){return!1}}())return A;
var t=function(f){this.JSC$8858_map_=new Map;if(f){f=_.U(f);for(var X;!(X=f.next()).done;)this.add(X.value)}this.size=this.JSC$8858_map_.size};
t.prototype.add=function(f){f=f===0?0:f;this.JSC$8858_map_.set(f,f);this.size=this.JSC$8858_map_.size;return this};
t.prototype.delete=function(f){f=this.JSC$8858_map_.delete(f);this.size=this.JSC$8858_map_.size;return f};
t.prototype.clear=function(){this.JSC$8858_map_.clear();this.size=0};
t.prototype.has=function(f){return this.JSC$8858_map_.has(f)};
t.prototype.entries=function(){return this.JSC$8858_map_.entries()};
t.prototype.values=function(){return this.JSC$8858_map_.values()};
t.prototype.keys=t.prototype.values;t.prototype[Symbol.iterator]=t.prototype.values;t.prototype.forEach=function(f,X){var Q=this;this.JSC$8858_map_.forEach(function(q){return f.call(X,q,q,Q)})};
return t});
Vs("Math.log2",function(A){return A?A:function(t){return Math.log(t)/Math.LN2}});
Vs("Object.values",function(A){return A?A:function(t){var f=[],X;for(X in t)St(t,X)&&f.push(t[X]);return f}});
Vs("Object.is",function(A){return A?A:function(t,f){return t===f?t!==0||1/t===1/f:t!==t&&f!==f}});
Vs("Array.prototype.includes",function(A){return A?A:function(t,f){var X=this;X instanceof String&&(X=String(X));var Q=X.length;f=f||0;for(f<0&&(f=Math.max(f+Q,0));f<Q;f++){var q=X[f];if(q===t||Object.is(q,t))return!0}return!1}});
Vs("String.prototype.includes",function(A){return A?A:function(t,f){return aG(this,t,"includes").indexOf(t,f||0)!==-1}});
Vs("Object.entries",function(A){return A?A:function(t){var f=[],X;for(X in t)St(t,X)&&f.push([X,t[X]]);return f}});
Vs("Number.isFinite",function(A){return A?A:function(t){return typeof t!=="number"?!1:!isNaN(t)&&t!==Infinity&&t!==-Infinity}});
Vs("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Vs("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Vs("Number.isInteger",function(A){return A?A:function(t){return Number.isFinite(t)?t===Math.floor(t):!1}});
Vs("Number.isSafeInteger",function(A){return A?A:function(t){return Number.isInteger(t)&&Math.abs(t)<=Number.MAX_SAFE_INTEGER}});
Vs("String.prototype.endsWith",function(A){return A?A:function(t,f){var X=aG(this,t,"endsWith");f===void 0&&(f=X.length);f=Math.max(0,Math.min(f|0,X.length));for(var Q=t.length;Q>0&&f>0;)if(X[--f]!=t[--Q])return!1;return Q<=0}});
var lxC=function(A,t){A instanceof String&&(A+="");var f=0,X=!1,Q={next:function(){if(!X&&f<A.length){var q=f++;return{value:t(q,A[q]),done:!1}}X=!0;return{done:!0,value:void 0}}};
Q[Symbol.iterator]=function(){return Q};
return Q};
Vs("Array.prototype.entries",function(A){return A?A:function(){return lxC(this,function(t,f){return[t,f]})}});
Vs("Math.trunc",function(A){return A?A:function(t){t=Number(t);if(isNaN(t)||t===Infinity||t===-Infinity||t===0)return t;var f=Math.floor(Math.abs(t));return t<0?-f:f}});
Vs("Number.isNaN",function(A){return A?A:function(t){return typeof t==="number"&&isNaN(t)}});
Vs("Array.prototype.keys",function(A){return A?A:function(){return lxC(this,function(t){return t})}});
Vs("Array.prototype.values",function(A){return A?A:function(){return lxC(this,function(t,f){return f})}});
Vs("Array.prototype.fill",function(A){return A?A:function(t,f,X){var Q=this.length||0;f<0&&(f=Math.max(0,Q+f));if(X==null||X>Q)X=Q;X=Number(X);X<0&&(X=Math.max(0,Q+X));for(f=Number(f||0);f<X;f++)this[f]=t;return this}});
$Dx("fill",function(A){return A?A:Array.prototype.fill});
Vs("Object.fromEntries",function(A){return A?A:function(t){var f={};if(!(Symbol.iterator in t))throw new TypeError("v`"+t);t=t[Symbol.iterator].call(t);for(var X=t.next();!X.done;X=t.next()){X=X.value;if(Object(X)!==X)throw new TypeError("w");f[X[0]]=X[1]}return f}});
Vs("String.prototype.replaceAll",function(A){return A?A:function(t,f){if(t instanceof RegExp&&!t.global)throw new TypeError("x");return t instanceof RegExp?this.replace(t,f):this.replace(new RegExp(String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),f)}});
Vs("Object.getOwnPropertySymbols",function(A){return A?A:function(){return[]}});
Vs("String.prototype.repeat",function(A){return A?A:function(t){var f=aG(this,null,"repeat");if(t<0||t>1342177279)throw new RangeError("y");t|=0;for(var X="";t;)if(t&1&&(X+=f),t>>>=1)f+=f;return X}});
Vs("Array.prototype.findIndex",function(A){return A?A:function(t,f){return Gzp(this,t,f).i}});
Vs("Array.prototype.flatMap",function(A){return A?A:function(t,f){var X=[];Array.prototype.forEach.call(this,function(Q,q){Q=t.call(f,Q,q,this);Array.isArray(Q)?X.push.apply(X,Q):X.push(Q)});
return X}});
Vs("String.prototype.codePointAt",function(A){return A?A:function(t){var f=aG(this,null,"codePointAt"),X=f.length;t=Number(t)||0;if(t>=0&&t<X){t|=0;var Q=f.charCodeAt(t);if(Q<55296||Q>56319||t+1===X)return Q;t=f.charCodeAt(t+1);return t<56320||t>57343?Q:(Q-55296)*1024+t+9216}}});
Vs("String.fromCodePoint",function(A){return A?A:function(t){for(var f="",X=0;X<arguments.length;X++){var Q=Number(arguments[X]);if(Q<0||Q>1114111||Q!==Math.floor(Q))throw new RangeError("z`"+Q);Q<=65535?f+=String.fromCharCode(Q):(Q-=65536,f+=String.fromCharCode(Q>>>10&1023|55296),f+=String.fromCharCode(Q&1023|56320))}return f}});
Vs("String.prototype.trimLeft",function(A){function t(){return this.replace(/^[\s\xa0]+/,"")}
return A||t});
Vs("String.prototype.trimStart",function(A){return A||String.prototype.trimLeft});
Vs("String.prototype.padStart",function(A){return A?A:function(t,f){var X=aG(this,null,"padStart");t-=X.length;f=f!==void 0?String(f):" ";return(t>0&&f?f.repeat(Math.ceil(t/f.length)).substring(0,t):"")+X}});
Vs("Promise.prototype.finally",function(A){return A?A:function(t){return this.then(function(f){return Promise.resolve(t()).then(function(){return f})},function(f){return Promise.resolve(t()).then(function(){throw f;
})})}});
Vs("Math.imul",function(A){return A?A:function(t,f){t=Number(t);f=Number(f);var X=t&65535,Q=f&65535;return X*Q+((t>>>16&65535)*Q+X*(f>>>16&65535)<<16>>>0)|0}});
Vs("Object.hasOwn",function(A){return A?A:function(t,f){return Object.prototype.hasOwnProperty.call(t,f)}});
Vs("Math.sign",function(A){return A?A:function(t){t=Number(t);return t===0||isNaN(t)?t:t>0?1:-1}});
Vs("Array.prototype.flat",function(A){return A?A:function(t){t=t===void 0?1:t;var f=[];Array.prototype.forEach.call(this,function(X){Array.isArray(X)&&t>0?(X=Array.prototype.flat.call(X,t-1),f.push.apply(f,X)):f.push(X)});
return f}});
Vs("String.raw",function(A){return A?A:function(t,f){t=kgz(t);for(var X=t.raw,Q=X.length,q="",e=0;e<Q;++e)q+=X[e],e+1<Q&&e+1<arguments.length&&(q+=String(arguments[e+1]));return q}});
Vs("WeakSet",function(A){if(function(){if(!A||!Object.seal)return!1;try{var f=Object.seal({}),X=Object.seal({}),Q=new A([f]);if(!Q.has(f)||Q.has(X))return!1;Q.delete(f);Q.add(X);return!Q.has(f)&&Q.has(X)}catch(q){return!1}}())return A;
var t=function(f){this.JSC$8869_map_=new WeakMap;if(f){f=_.U(f);for(var X;!(X=f.next()).done;)this.add(X.value)}};
t.prototype.add=function(f){this.JSC$8869_map_.set(f,!0);return this};
t.prototype.has=function(f){return this.JSC$8869_map_.has(f)};
t.prototype.delete=function(f){return this.JSC$8869_map_.delete(f)};
return t});
Vs("Reflect.ownKeys",function(A){return A?A:function(t){var f=[],X=Object.getOwnPropertyNames(t);t=Object.getOwnPropertySymbols(t);for(var Q=0;Q<X.length;Q++)(X[Q].substring(0,14)=="jscomp_symbol_"?t:f).push(X[Q]);return f.concat(t)}});
Vs("Object.getOwnPropertyDescriptors",function(A){return A?A:function(t){for(var f={},X=Reflect.ownKeys(t),Q=0;Q<X.length;Q++)f[X[Q]]=Object.getOwnPropertyDescriptor(t,X[Q]);return f}});
Vs("Promise.allSettled",function(A){function t(X){return{status:"fulfilled",value:X}}
function f(X){return{status:"rejected",reason:X}}
return A?A:function(X){var Q=this;X=Array.from(X,function(q){return Q.resolve(q).then(t,f)});
return Q.all(X)}});
Vs("Number.parseInt",function(A){return A||parseInt});
_._DumpException=window._DumpException||function(A){throw A;};
window._DumpException=_._DumpException;var Nsk=window.ytcsi;Nsk&&typeof Nsk.tick==="function"&&Nsk.tick("rses_dpj");var ubf,Ks,gS,wS,zxl,Pup,TsS,igS,vA,Og8;ubf=ubf||{};_.Xb=this||self;_.zm=function(A,t,f){A=A.split(".");f=f||_.Xb;for(var X;A.length&&(X=A.shift());)A.length||t===void 0?f[X]&&f[X]!==Object.prototype[X]?f=f[X]:f=f[X]={}:f[X]=t};
Ks=function(A,t){var f=_.Ae("WIZ_global_data.oxN3nb");A=f&&f[A];return A!=null?A:t};
gS=_.Xb._F_toggles_default_kevlar_base||[];wS=function(){};
wS.get=function(){return null};
_.fdz=null;_.Ae=function(A,t){A=A.split(".");t=t||_.Xb;for(var f=0;f<A.length;f++)if(t=t[A[f]],t==null)return null;return t};
_.su=function(A){A.instance_=void 0;A.getInstance=function(){return A.instance_?A.instance_:A.instance_=new A}};
_.k8=function(A){var t=typeof A;return t!="object"?t:A?Array.isArray(A)?"array":t:"null"};
_.ST=function(A){var t=_.k8(A);return t=="array"||t=="object"&&typeof A.length=="number"};
_.Hp=function(A){var t=typeof A;return t=="object"&&A!=null||t=="function"};
_.gs=function(A){return Object.prototype.hasOwnProperty.call(A,zxl)&&A[zxl]||(A[zxl]=++Pup)};
zxl="closure_uid_"+(Math.random()*1E9>>>0);Pup=0;TsS=function(A,t,f){return A.call.apply(A.bind,arguments)};
igS=function(A,t,f){if(!A)throw Error();if(arguments.length>2){var X=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Q,X);return A.apply(t,Q)}}return function(){return A.apply(t,arguments)}};
_.F1=function(A,t,f){_.F1=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?TsS:igS;return _.F1.apply(null,arguments)};
_.l0=function(A,t){var f=Array.prototype.slice.call(arguments,1);return function(){var X=f.slice();X.push.apply(X,arguments);return A.apply(this,X)}};
_.k5=function(){return Date.now()};
vA=function(A){return A};
_.rS=function(A,t){function f(){}
f.prototype=t.prototype;A.superClass_=t.prototype;A.prototype=new f;A.prototype.constructor=A;A.base=function(X,Q,q){for(var e=Array(arguments.length-2),G=2;G<arguments.length;G++)e[G-2]=arguments[G];return t.prototype[Q].apply(X,e)}};
Og8=function(A){return A};var cbT,BsS;_.V=function(A,t,f,X){var Q=arguments.length,q=Q<3?t:X===null?X=Object.getOwnPropertyDescriptor(t,f):X,e;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")q=Reflect.decorate(A,t,f,X);else for(var G=A.length-1;G>=0;G--)if(e=A[G])q=(Q<3?e(q):Q>3?e(t,f,q):e(t,f))||q;Q>3&&q&&Object.defineProperty(t,f,q)};
_.H=function(A,t){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(A,t)};
cbT=function(A,t){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("A");if(f===void 0){if(!Symbol.dispose)throw new TypeError("C");var f=t[Symbol.dispose]}if(typeof f!=="function")throw new TypeError("D");A.stack.push({value:t,dispose:f,async:!1})}return t};
BsS=function(A){function t(q){A.error=A.hasError?new SuppressedError(q,A.error,"An error was suppressed during disposal."):q;A.hasError=!0}
function f(){for(;X=A.stack.pop();)try{if(!X.async&&Q===1)return Q=0,A.stack.push(X),Promise.resolve().then(f);if(X.dispose){var q=X.dispose.call(X.value);if(X.async)return Q|=2,Promise.resolve(q).then(f,function(e){t(e);return f()})}else Q|=1}catch(e){t(e)}if(Q===1)return A.hasError?Promise.reject(A.error):Promise.resolve();
if(A.hasError)throw A.error;}
var X,Q=0;f()};var MTK="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");Ab5()&&MTK.push("details:not(:has(summary))");var fxb=MTK.join(",");_.rS(_.Ab,Error);_.Ab.prototype.name="CustomError";var CuT;var hxT=void 0,RxC,mlb=typeof TextDecoder!=="undefined",Nsz,lx5=typeof String.prototype.isWellFormed==="function",Gzb=typeof TextEncoder!=="undefined";var bgb;_.nA=function(A){for(var t=[],f=0,X=0;X<A.length;X++){var Q=A.charCodeAt(X);Q<128?t[f++]=Q:(Q<2048?t[f++]=Q>>6|192:((Q&64512)==55296&&X+1<A.length&&(A.charCodeAt(X+1)&64512)==56320?(Q=65536+((Q&1023)<<10)+(A.charCodeAt(++X)&1023),t[f++]=Q>>18|240,t[f++]=Q>>12&63|128):t[f++]=Q>>12|224,t[f++]=Q>>6&63|128),t[f++]=Q&63|128)}return t};
bgb=function(A){for(var t=[],f=0,X=0;f<A.length;){var Q=A[f++];if(Q<128)t[X++]=String.fromCharCode(Q);else if(Q>191&&Q<224){var q=A[f++];t[X++]=String.fromCharCode((Q&31)<<6|q&63)}else if(Q>239&&Q<365){q=A[f++];var e=A[f++],G=A[f++];Q=((Q&7)<<18|(q&63)<<12|(e&63)<<6|G&63)-65536;t[X++]=String.fromCharCode(55296+(Q>>10));t[X++]=String.fromCharCode(56320+(Q&1023))}else q=A[f++],e=A[f++],t[X++]=String.fromCharCode((Q&15)<<12|(q&63)<<6|e&63)}return t.join("")};var zz=String.prototype.trim?function(A){return A.trim()}:function(A){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(A)[1]},W5w=/&/g,ybT=/</g,vqS=/>/g,L5l=/"/g,ppl=/'/g,Eqp=/\x00/g,nq7=/[\x00&<>"']/;var AJ=!!(gS[0]>>15&1),Dli=!!(gS[0]&1024),F5f=!!(gS[0]>>16&1),Ix8=!!(gS[0]&8),xl7=!!(gS[0]&2),j0K=!!(gS[0]&4),YxE=!!(gS[0]&16),VTp=!!(gS[0]&128);var Ml=AJ?F5f:Ks(610401301,!1),Zg7=AJ?Ix8:Ks(772657768,!1),oqw=AJ?xl7:Ks(513659523,!1),dlT=AJ?Dli||!j0K:Ks(568333945,!0),RPb=AJ?YxE:Ks(1331761403,!1),Cyp=AJ?Dli||!VTp:Ks(748402147,!0);var Cg,Sxb=_.Xb.navigator;Cg=Sxb?Sxb.userAgentData||null:null;var Uv;_.jT=function(A,t){return Array.prototype.indexOf.call(A,t,void 0)};
_.X_=function(A,t,f){Array.prototype.forEach.call(A,t,f)};
_.tJ=function(A,t,f){return Array.prototype.filter.call(A,t,f)};
_.Zg=function(A,t,f){return Array.prototype.map.call(A,t,f)};
Uv=function(A,t,f){return Array.prototype.some.call(A,t,f)};
_.Y5p=function(A,t,f){return Array.prototype.every.call(A,t,f)};var fd=function(A){fd[" "](A);return A};
fd[" "]=function(){};
var Igx=function(A,t){try{return fd(A[t]),!0}catch(f){}return!1},zGp=function(A,t,f,X){X=X?X(t):t;
return Object.prototype.hasOwnProperty.call(A,X)?A[X]:A[X]=f(t)};var $lC,Nq,HgT,axC,gqT,wpw,dhp,s0E,kzf,rbb,XZu,til,fwC,Jfk,Ubl,e7k;_.mu0=function(){return _.Xb.navigator||null};
$lC=Tsg();_.XG=igg();Nq=hb("Edge");HgT=Nq||_.XG;_.Qe=hb("Gecko")&&!(_.uu(_.Ox(),"WebKit")&&!hb("Edge"))&&!(hb("Trident")||hb("MSIE"))&&!hb("Edge");_.q1=_.uu(_.Ox(),"WebKit")&&!hb("Edge");axC=_.q1&&hb("Mobile");_.K5i=_.bgl();gqT=_.W5x();wpw=(Lg()?Cg.platform==="Linux":hb("Linux"))||_.ybx();dhp=_.Rx5();s0E=mll();kzf=hb("iPad");rbb=hb("iPod");_.Afl=_.pg();XZu=_.uu(_.Ox(),"KaiOS");til=function(){var A=_.Xb.document;return A?A.documentMode:void 0};
a:{var XT8="",Qpi=function(){var A=_.Ox();if(_.Qe)return/rv:([^\);]+)(\)|;)/.exec(A);if(Nq)return/Edge\/([\d\.]+)/.exec(A);if(_.XG)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(A);if(_.q1)return/WebKit\/(\S+)/.exec(A);if($lC)return/(?:Version)[ \/]?(\S+)/.exec(A)}();
Qpi&&(XT8=Qpi?Qpi[1]:"");if(_.XG){var qTl=til();if(qTl!=null&&qTl>parseFloat(XT8)){fwC=String(qTl);break a}}fwC=XT8}Jfk=fwC;Ubl={};_.JJ=function(A){return zGp(Ubl,A,function(){return _.Pp(Jfk,A)>=0})};
if(_.Xb.document&&_.XG){var Gkb=til();e7k=Gkb?Gkb:parseInt(Jfk,10)||void 0}else e7k=void 0;_.lwT=e7k;var aNp,KPx,NEE;_.U1=m5();aNp=mll()||hb("iPod");KPx=hb("iPad");NEE=_.Bsg();_.e7=_.Wp();_.kj=_.cbp()&&!_.pg();var up8,GR,fAg,rsx,PK8,z7i;up8={};GR=null;fAg=_.Qe||_.q1||typeof _.Xb.btoa=="function";_.E2=function(A,t){t===void 0&&(t=0);z7i();t=up8[t];for(var f=Array(Math.floor(A.length/3)),X=t[64]||"",Q=0,q=0;Q<A.length-2;Q+=3){var e=A[Q],G=A[Q+1],N=A[Q+2],z=t[e>>2];e=t[(e&3)<<4|G>>4];G=t[(G&15)<<2|N>>6];N=t[N&63];f[q++]=z+e+G+N}z=0;N=X;switch(A.length-Q){case 2:z=A[Q+1],N=t[(z&15)<<2]||X;case 1:A=A[Q],f[q]=t[A>>2]+t[(A&3)<<4|z>>4]+N+X}return f.join("")};
rsx=function(A){var t="";PK8(A,function(f){t+=String.fromCharCode(f)});
return t};
_.V_q=function(A){var t=[];PK8(A,function(f){t.push(f)});
return t};
_.sx=function(A){var t=A.length,f=t*3/4;f%3?f=Math.floor(f):_.lu("=.",A[t-1])&&(f=_.lu("=.",A[t-2])?f-2:f-1);var X=new Uint8Array(f),Q=0;PK8(A,function(q){X[Q++]=q});
return Q!==f?X.subarray(0,Q):X};
PK8=function(A,t){function f(N){for(;X<A.length;){var z=A.charAt(X++),T=GR[z];if(T!=null)return T;if(!_.Ux(z))throw Error("H`"+z);}return N}
z7i();for(var X=0;;){var Q=f(-1),q=f(0),e=f(64),G=f(64);if(G===64&&Q===-1)break;t(Q<<2|q>>4);e!=64&&(t(q<<4&240|e>>2),G!=64&&t(e<<6&192|G))}};
z7i=function(){if(!GR){GR={};for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],f=0;f<5;f++){var X=A.concat(t[f].split(""));up8[f]=X;for(var Q=0;Q<X.length;Q++){var q=X[Q];GR[q]===void 0&&(GR[q]=Q)}}}};var kzb=typeof Uint8Array!=="undefined",oqx=!_.XG&&typeof btoa==="function",dlp=/[-_.]/g,VT0={"-":"+",_:"/",".":"="},vT={};var yC,iSf;yC=function(A,t){if(t!==vT)throw Error("J");this.JSC$8903_value_=A;if(A!=null&&A.length===0)throw Error("I");};
_.pS=function(){return TE8||(TE8=new yC(null,vT))};
iSf=function(A){return new Uint8Array(S2z(A)||0)};
yC.prototype.isEmpty=function(){return this.JSC$8903_value_==null};
yC.prototype.sizeBytes=function(){var A=S2z(this);return A?A.length:0};
var S2z=function(A){if(vT!==vT)throw Error("J");var t=A.JSC$8903_value_;t==null||kzb&&t!=null&&t instanceof Uint8Array||(typeof t==="string"?t=Sxl(t):(_.k8(t),t=null));return t==null?t:A.JSC$8903_value_=t},TE8;var Hgp=void 0;var Xp=typeof Symbol==="function"&&typeof Symbol()==="symbol",OST=Af("jas",void 0,!0),Viz=Af(void 0,"0di"),tr=Af(void 0,"1oa"),Lw=Af(void 0,Symbol()),fcg=Af(void 0,"0ub"),Qlx=Af(void 0,"0ubs"),WQx=Af(void 0,"0ubsb"),R3z=Af(void 0,"0actk"),h_=Af("m_m","messagePrototypeMarker",!0),Td5=Af(void 0,"vps"),rfu=Af();var gqp,K5T,HA,cfp;gqp={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};K5T=Object.defineProperties;_.qb=Xp?OST:"internalArrayState";cfp=[];ei(cfp,7);HA=Object.freeze(cfp);var WA={},BT={},BEk=function(A,t,f){this.iterable=A;this.mapper=t;this.thisArg=f};
BEk.prototype.next=function(){var A=this.iterable.next();A.done||(A.value=this.mapper.call(this.thisArg,A.value));return A};
BEk.prototype[Symbol.iterator]=function(){return this};
var Mib=Object.freeze({}),Dw={};_.CKi=Ip(function(A){return A!==null&&A!==void 0});var QpT=Ip(function(A){return typeof A==="number"}),XTq=Ip(function(A){return typeof A==="string"}),Jfz=Ip(function(A){return typeof A==="boolean"}),h78=Ip(function(A){return A!=null&&typeof A==="object"&&typeof A.then==="function"}),Zkz=Ip(function(A){return typeof A==="function"}),ux=Ip(function(A){return!!A&&(typeof A==="object"||typeof A==="function")});var qT5=typeof _.Xb.BigInt==="function"&&typeof _.Xb.BigInt(0)==="bigint";var Db5=Ip(function(A){return qT5?A>=R7i&&A<=mb7:A[0]==="-"?Ub5(A,bSl):Ub5(A,WlS)}),bSl=Number.MIN_SAFE_INTEGER.toString(),R7i=qT5?BigInt(Number.MIN_SAFE_INTEGER):void 0,WlS=Number.MAX_SAFE_INTEGER.toString(),mb7=qT5?BigInt(Number.MAX_SAFE_INTEGER):void 0;var yfS=typeof Uint8Array.prototype.slice==="function",ji=0,Y8=0,lwp;var ly,PA,A_,zQ,BEz;ly=typeof BigInt==="function"?BigInt.asIntN:void 0;_.TQ=typeof BigInt==="function"?BigInt.asUintN:void 0;PA=Number.isSafeInteger;A_=Number.isFinite;zQ=Math.trunc;BEz=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var iw5={};var wTu={},v8T=function(){try{var A=function(){return H0b(Map,[],this.constructor)};
_.R(A,Map);fd(new A);return!1}catch(t){return!0}}(),lr=function(){this.JSC$8922_map_=new Map};
_.J=lr.prototype;_.J.get=function(A){return this.JSC$8922_map_.get(A)};
_.J.set=function(A,t){this.JSC$8922_map_.set(A,t);this.size=this.JSC$8922_map_.size;return this};
_.J.delete=function(A){A=this.JSC$8922_map_.delete(A);this.size=this.JSC$8922_map_.size;return A};
_.J.clear=function(){this.JSC$8922_map_.clear();this.size=this.JSC$8922_map_.size};
_.J.has=function(A){return this.JSC$8922_map_.has(A)};
_.J.entries=function(){return this.JSC$8922_map_.entries()};
_.J.keys=function(){return this.JSC$8922_map_.keys()};
_.J.values=function(){return this.JSC$8922_map_.values()};
_.J.forEach=function(A,t){return this.JSC$8922_map_.forEach(A,t)};
lr.prototype[Symbol.iterator]=function(){return this.entries()};
var N1=function(){if(v8T)return Object.setPrototypeOf(lr.prototype,Map.prototype),Object.defineProperties(lr.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),lr;var A=function(){return H0b(Map,[],this.constructor)};
_.R(A,Map);return A}(),yh=function(A,t,f,X){f=f===void 0?$bp:f;
X=X===void 0?$bp:X;var Q=N1.call(this)||this;Q.arrayState=A[_.qb]|0;Q.valueCtor=t;Q.keyToApi=f;Q.valueToApi=Q.valueCtor?aw5:X;for(var q=0;q<A.length;q++){var e=A[q],G=f(e[0],!1,!0),N=e[1];t?N===void 0&&(N=null):N=X(e[1],!1,!0,void 0,void 0,Q.arrayState);N1.prototype.set.call(Q,G,N)}return Q};
_.R(yh,N1);var Ll8=function(A){if(A.arrayState&2)throw Error("N");},Py0=function(A,t){return Nb(Array.from(N1.prototype.entries.call(A),t))};
_.J=yh.prototype;_.J.clear=function(){Ll8(this);N1.prototype.clear.call(this)};
_.J.delete=function(A){Ll8(this);return N1.prototype.delete.call(this,this.keyToApi(A,!0,!1))};
_.J.entries=function(){if(this.valueCtor){var A=N1.prototype.keys.call(this);A=new BEk(A,Klb,this)}else A=N1.prototype.entries.call(this);return A};
_.J.values=function(){if(this.valueCtor){var A=N1.prototype.keys.call(this);A=new BEk(A,yh.prototype.get,this)}else A=N1.prototype.values.call(this);return A};
_.J.forEach=function(A,t){this.valueCtor?N1.prototype.forEach.call(this,function(f,X,Q){A.call(t,Q.get(X),X,Q)}):N1.prototype.forEach.call(this,A,t)};
_.J.set=function(A,t){Ll8(this);A=this.keyToApi(A,!0,!1);return A==null?this:t==null?(N1.prototype.delete.call(this,A),this):N1.prototype.set.call(this,A,this.valueToApi(t,!0,!0,this.valueCtor,!1,this.arrayState))};
_.J.has=function(A){return N1.prototype.has.call(this,this.keyToApi(A,!1,!1))};
_.J.get=function(A){A=this.keyToApi(A,!1,!1);var t=N1.prototype.get.call(this,A);if(t!==void 0){var f=this.valueCtor;return f?(f=this.valueToApi(t,!1,!0,f,this.callToMutableOnAccess,this.arrayState),f!==t&&N1.prototype.set.call(this,A,f),f):t}};
yh.prototype[Symbol.iterator]=function(){return this.entries()};
yh.prototype.toJSON=void 0;var g8T;var e3s=function(){},J_q=function(A,t){for(var f in A)!isNaN(f)&&t(A,+f,A[f])},GQz=function(A){var t=new e3s;
J_q(A,function(f,X,Q){t[X]=Si(Q)});
t.reviveUnknownFields=A.reviveUnknownFields;return t},A_s={reviveIntoImmutable:!0};var Ud0;var Ows,c_p;var pTp,s2,vQ,D3,E8k,Bz,Ev,n88,DbC,RD,FlK,ma,vz,Ld;pTp=_.x8(0);_.ur={};_.zR=function(A,t,f,X,Q){t=s2(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t,f,Q);if(t!==null||X&&A.noLegacyNull!==BT)return t};
s2=function(A,t,f,X){if(t===-1)return null;var Q=t+(f?0:-1),q=A.length-1;if(!(q<1+(f?0:-1))){if(Q>=q){var e=A[q];if(e!=null&&typeof e==="object"&&e.constructor===Object){f=e[t];var G=!0}else if(Q===q)f=e;else return}else f=A[Q];if(X&&f!=null){X=X(f);if(X==null)return X;if(!Object.is(X,f))return G?e[t]=X:A[Q]=X,X}return f}};
_.hq=function(A,t,f,X){Zc(A);var Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Sj(Q,Q[_.qb]|0,t,f,X);return A};
_.Pz=function(A,t,f){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Y25(A,A[_.qb]|0,t,f)!==void 0};
_.TR=function(A,t,f,X){var Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Y25(Q,Q[_.qb]|0,t,D3(A,X,f))!==void 0};
_.uI=function(A){return A===Mib?2:4};
_.ir=function(A,t){A=_.zR(A,t,void 0,void 0,nmb);return A==null?_.pS():A};
vQ=function(A,t,f,X){Zc(A);var Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=Q[_.qb]|0;if(X==null){var e=Icb(Q);if(xdb(e,Q,q,f)===t)e.set(f,0);else return A}else q=jlg(Q,q,f,t);Sj(Q,q,t,X);return A};
_.O1=function(A,t,f,X){var Q=A[_.qb]|0,q=Fp(Q);Q=jlg(A,Q,f,t,q);Sj(A,Q,t,X,q)};
D3=function(A,t,f){return _.cz(A,t)===f?f:-1};
_.cz=function(A,t){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xdb(Icb(A),A,void 0,t,void 0)};
E8k=function(A,t,f){var X=A[_.qb]|0,Q=Fp(X),q=s2(A,f,Q);if(q!=null&&q[h_]===WA){if(!ml(q))return Vh(q),q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var e=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(q)&&(e=q);if(e){var G=e[_.qb]|0;G&2&&(e=Ym(e,G))}e=F8(e,t);e!==q&&Sj(A,X,f,e,Q);return e};
_.Mq=function(A,t,f,X){var Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=Q[_.qb]|0;t=Y25(Q,q,t,f,X);if(t==null)return t;q=Q[_.qb]|0;if(!ml(A,q)){var e=HS0(t);e!==t&&(Vh(A)&&(Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=Q[_.qb]|0),t=e,q=Sj(Q,q,f,t,X),dd(Q,q))}return t};
_.Nc=function(A,t,f,X){var Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Vjg(A,Q,Q[_.qb]|0,t,f,X,!1,!0)};
_.bi=function(A,t,f,X){f=Zwz(f);_.hq(A,t,f,X);f&&!ml(f)&&dd(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
_.Wu=function(A,t,f,X){X=Zwz(X);vQ(A,t,f,X);X&&!ml(X)&&dd(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
Bz=function(A,t,f){Zc(A);var X=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=X[_.qb]|0;if(f==null)return Sj(X,Q,t),A;for(var q=f===HA?7:f[_.qb]|0,e=q,G=wd(q),N=G||Object.isFrozen(f),z=!0,T=!0,O=0;O<f.length;O++){var c=f[O];G||(c=ml(c),z&&(z=!c),T&&(T=c))}G||(q=z?13:5,q=T?q&-4097:q|4096);N&&q===e||(f=Si(f),e=0,q=Kw(q,Q));q!==e&&ei(f,q);Q=Sj(X,Q,t,f);2&q||!(4096&q||16&q)||dd(X,Q);return A};
Ev=function(A,t,f,X){dd5(A,t,f,X);return A};
n88=function(A,t,f){dd5(A,t,M1,void 0,f,1,!0);return A};
_.Cd=function(A,t,f){A=_.zR(A,t,void 0,f);t=typeof A;A=A==null?A:t==="bigint"?_.x8((0,_.TQ)(64,A)):_.t_(A)?t==="string"?_.n8q(A):_.pTb(A):void 0;return A};
_.hJ=function(A,t){var f=f===void 0?!1:f;var X;return(X=_.cf0(_.zR(A,t)))!=null?X:f};
_.Pf=function(A,t,f){f=f===void 0?0:f;var X;return(X=_.ej(_.zR(A,t)))!=null?X:f};
DbC=function(A,t){var f=f===void 0?0:f;A=_.CKT(_.zR(A,t));return A!=null?A:f};
RD=function(A,t,f){f=f===void 0?pTp:f;var X;return(X=_.xb5(_.zR(A,t)))!=null?X:f};
FlK=function(A){var t=t===void 0?pTp:t;var f;return(f=_.Cd(A,23))!=null?f:t};
ma=function(A,t){var f=f===void 0?0:f;var X;return(X=_.zR(A,t,void 0,void 0,_.sT))!=null?X:f};
_.Wz=function(A,t,f,X){f=f===void 0?"":f;var Q;return(Q=_.Cw(_.zR(A,t,X)))!=null?Q:f};
_.ye=function(A,t){var f=f===void 0?0:f;var X;return(X=_.J_(_.zR(A,t)))!=null?X:f};
vz=function(A,t){var f=f===void 0?"0":f;A=Iwu(_.zR(A,t),!0);return A!=null?A:f};
_.IwK=function(A,t,f){A=_.gd(A,t,_.Cw,3,!0);rbl(A,f);return A[f]};
Ld=function(A,t,f){return _.Wz(A,D3(A,f,t))};
_.pd=function(A,t,f,X){return _.Mq(A,t,D3(A,X,f),void 0)};
_.Wf=function(A,t){return _.Cw(_.zR(A,t,void 0,_.ur))};
_.cf=function(A,t,f){return _.hq(A,t,OSx(f))};
_.CG=function(A,t,f){return _.rd(A,t,OSx(f),!1)};
_.E1=function(A,t,f){return _.hq(A,t,_.U2(f))};
_.Ii=function(A,t,f){return _.hq(A,t,uy(f))};
_.Dg=function(A,t,f){return _.hq(A,t,BA(f))};
_.jM=function(A,t,f,X){return _.rd(A,t,BA(f),"",X)};
_.CU=function(A,t,f){return _.hq(A,t,f==null?f:_.X8(f))};
_.nd=function(A,t,f){return _.rd(A,t,f==null?f:_.X8(f),0)};var fb=function(A,t,f){this.buffer=A;if(f&&!t)throw Error();this.JSC$8934_isImmutable=t};var xbC=function(A,t,f,X){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8937_start_=0;this.init(A,t,f,X)},Dr,YTi,Vik,ZSk,o8K,dbl,TWq,jpf;
_.J=xbC.prototype;_.J.init=function(A,t,f,X){var Q=X===void 0?{}:X;X=Q.aliasBytesFields===void 0?!1:Q.aliasBytesFields;Q=Q.treatNewDataAsImmutable===void 0?!1:Q.treatNewDataAsImmutable;this.aliasBytesFields=X;this.treatNewDataAsImmutable=Q;A&&(A=$dq(A,this.treatNewDataAsImmutable),this.bytes_=A.buffer,this.bytesAreImmutable_=A.JSC$8934_isImmutable,this.JSC$8937_start_=t||0,this.end_=f!==void 0?this.JSC$8937_start_+f:this.bytes_.length,this.cursor_=this.JSC$8937_start_)};
_.J.free=function(){this.clear();jpf.length<100&&jpf.push(this)};
_.J.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8937_start_=0;this.aliasBytesFields=!1};
_.J.reset=function(){this.cursor_=this.JSC$8937_start_};
_.J.atEnd=function(){return this.cursor_==this.end_};
_.FG=function(A,t){var f=0,X=0,Q=0,q=A.bytes_,e=A.cursor_;do{var G=q[e++];f|=(G&127)<<Q;Q+=7}while(Q<32&&G&128);if(Q>32)for(X|=(G&127)>>4,Q=3;Q<32&&G&128;Q+=7)G=q[e++],X|=(G&127)<<Q;Dr(A,e);if(!(G&128))return t(f>>>0,X>>>0);throw Error();};
Dr=function(A,t){A.cursor_=t;if(t>A.end_)throw Error();};
_.ID=function(A){var t=A.bytes_,f=A.cursor_,X=t[f++],Q=X&127;if(X&128&&(X=t[f++],Q|=(X&127)<<7,X&128&&(X=t[f++],Q|=(X&127)<<14,X&128&&(X=t[f++],Q|=(X&127)<<21,X&128&&(X=t[f++],Q|=X<<28,X&128&&t[f++]&128&&t[f++]&128&&t[f++]&128&&t[f++]&128&&t[f++]&128)))))throw Error();Dr(A,f);return Q};
_.xp=function(A){var t=A.bytes_,f=A.cursor_,X=t[f],Q=t[f+1],q=t[f+2];t=t[f+3];Dr(A,A.cursor_+4);return(X<<0|Q<<8|q<<16|t<<24)>>>0};
YTi=function(A){var t=_.xp(A);A=_.xp(A);return upq(t,A)};
Vik=function(A){var t=_.xp(A);A=(t>>31)*2+1;var f=t>>>23&255;t&=8388607;return f==255?t?NaN:A*Infinity:f==0?A*1.401298464324817E-45*t:A*Math.pow(2,f-150)*(t+8388608)};
ZSk=function(A){var t=_.xp(A),f=_.xp(A);A=(f>>31)*2+1;var X=f>>>20&2047;t=4294967296*(f&1048575)+t;return X==2047?t?NaN:A*Infinity:X==0?A*4.9E-324*t:A*Math.pow(2,X-1075)*(t+4503599627370496)};
o8K=function(A){for(var t=0,f=A.cursor_,X=f+10,Q=A.bytes_;f<X;){var q=Q[f++];t|=q;if((q&128)===0)return Dr(A,f),!!(t&127)}throw Error();};
dbl=function(A,t){if(t<0)throw Error();var f=A.cursor_;t=f+t;if(t>A.end_)throw Error();A.cursor_=t;return f};
TWq=function(A,t){if(t==0)return _.pS();var f=dbl(A,t);A.aliasBytesFields&&A.bytesAreImmutable_?f=A.bytes_.subarray(f,f+t):(A=A.bytes_,t=f+t,f=f===t?new Uint8Array(0):yfS?A.slice(f,t):new Uint8Array(A.subarray(f,t)));return f.length==0?_.pS():new yC(f,vT)};
jpf=[];var $bT=function(A,t,f,X){if(jpf.length){var Q=jpf.pop();Q.init(A,t,f,X);A=Q}else A=new xbC(A,t,f,X);this.decoder_=A;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;STE(this,X)},STE=function(A,t){t=t===void 0?{}:t;
A.discardUnknownFields=t.discardUnknownFields===void 0?!1:t.discardUnknownFields},crb=function(A,t,f,X){if(HSp.length){var Q=HSp.pop();
STE(Q,X);Q.decoder_.init(A,t,f,X);return Q}return new $bT(A,t,f,X)},ux0,Pix,j7,awl,HSp;
$bT.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;HSp.length<100&&HSp.push(this)};
$bT.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
ux0=function(A){if(A.decoder_.atEnd())return!1;A.fieldCursor_=A.decoder_.cursor_;var t=_.ID(A.decoder_)>>>0,f=t>>>3;t&=7;if(!(t>=0&&t<=5))throw Error();if(f<1)throw Error();A.nextField_=f;A.nextWireType_=t;return!0};
Pix=function(A){switch(A.nextWireType_){case 0:A.nextWireType_!=0?Pix(A):o8K(A.decoder_);break;case 1:A=A.decoder_;Dr(A,A.cursor_+8);break;case 2:if(A.nextWireType_!=2)Pix(A);else{var t=_.ID(A.decoder_)>>>0;A=A.decoder_;Dr(A,A.cursor_+t)}break;case 5:A=A.decoder_;Dr(A,A.cursor_+4);break;case 3:t=A.nextField_;do{if(!ux0(A))throw Error();if(A.nextWireType_==4){if(A.nextField_!=t)throw Error();break}Pix(A)}while(1);break;default:throw Error();}};
j7=function(A,t,f){var X=A.decoder_.end_,Q=_.ID(A.decoder_)>>>0;Q=A.decoder_.cursor_+Q;var q=Q-X;q<=0&&(A.decoder_.end_=Q,f(t,A,void 0,void 0,void 0),q=Q-A.decoder_.cursor_);if(q)throw Error();A.decoder_.cursor_=Q;A.decoder_.end_=X;return t};
awl=function(A){var t=_.ID(A.decoder_)>>>0;A=A.decoder_;var f=dbl(A,t);A=A.bytes_;if(mlb){var X=A,Q;(Q=RxC)||(Q=RxC=new TextDecoder("utf-8",{fatal:!0}));t=f+t;X=f===0&&t===X.length?X:X.subarray(f,t);try{var q=Q.decode(X)}catch(z){if(hxT===void 0){try{Q.decode(new Uint8Array([128]))}catch(T){}try{Q.decode(new Uint8Array([97])),hxT=!0}catch(T){hxT=!1}}!hxT&&(RxC=void 0);throw z;}}else{q=f;t=q+t;f=[];for(var e=null,G,N;q<t;)G=A[q++],G<128?f.push(G):G<224?q>=t?fg():(N=A[q++],G<194||(N&192)!==128?(q--,
fg()):f.push((G&31)<<6|N&63)):G<240?q>=t-1?fg():(N=A[q++],(N&192)!==128||G===224&&N<160||G===237&&N>=160||((Q=A[q++])&192)!==128?(q--,fg()):f.push((G&15)<<12|(N&63)<<6|Q&63)):G<=244?q>=t-2?fg():(N=A[q++],(N&192)!==128||(G<<28)+(N-144)>>30!==0||((Q=A[q++])&192)!==128||((X=A[q++])&192)!==128?(q--,fg()):(G=(G&7)<<18|(N&63)<<12|(Q&63)<<6|X&63,G-=65536,f.push((G>>10&1023)+55296,(G&1023)+56320))):fg(),f.length>=8192&&(e=exu(e,f),f.length=0);q=exu(e,f)}return q};
_.Klf=function(A){var t=_.ID(A.decoder_)>>>0;return TWq(A.decoder_,t)};
_.g8i=function(A,t,f){var X=_.ID(A.decoder_)>>>0;for(X=A.decoder_.cursor_+X;A.decoder_.cursor_<X;)f.push(t(A.decoder_))};
HSp=[];var wTK=function(A,t){this.JSC$8944_lo=A>>>0;this.JSC$8944_hi=t>>>0},nlx=function(A){A=BigInt.asUintN(64,A);
return new wTK(Number(A&BigInt(4294967295)),Number(A>>BigInt(32)))},K3T=function(A){if(!A)return spi||(spi=new wTK(0,0));
if(!/^\d+$/.test(A))return null;dE(A);return new wTK(ji,Y8)},spi,Elb=function(A,t){this.JSC$8946_lo=A>>>0;
this.JSC$8946_hi=t>>>0},Hwz=function(A){if(!A)return kkT||(kkT=new Elb(0,0));
if(!/^-?\d+$/.test(A))return null;dE(A);return new Elb(ji,Y8)},kkT;var Yp=function(){this.JSC$8948_buffer_=[]},ii,cu,rfK;
Yp.prototype.length=function(){return this.JSC$8948_buffer_.length};
Yp.prototype.end=function(){var A=this.JSC$8948_buffer_;this.JSC$8948_buffer_=[];return A};
ii=function(A,t,f){for(;f>0||t>127;)A.JSC$8948_buffer_.push(t&127|128),t=(t>>>7|f<<25)>>>0,f>>>=7;A.JSC$8948_buffer_.push(t)};
cu=function(A,t){for(;t>127;)A.JSC$8948_buffer_.push(t&127|128),t>>>=7;A.JSC$8948_buffer_.push(t)};
_.FQz=function(A,t){if(t>=0)cu(A,t);else{for(var f=0;f<9;f++)A.JSC$8948_buffer_.push(t&127|128),t>>=7;A.JSC$8948_buffer_.push(1)}};
rfK=function(A,t){dE(t);z7T(function(f,X){ii(A,f>>>0,X>>>0)})};
Yp.prototype.writeUint8=function(A){this.JSC$8948_buffer_.push(A>>>0&255)};
_.Pu=function(A,t){A.JSC$8948_buffer_.push(t>>>0&255);A.JSC$8948_buffer_.push(t>>>8&255);A.JSC$8948_buffer_.push(t>>>16&255);A.JSC$8948_buffer_.push(t>>>24&255)};
Yp.prototype.writeInt8=function(A){this.JSC$8948_buffer_.push(A>>>0&255)};var A_E,GH,xy0,V35,kQx;A_E=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Yp};
GH=function(A,t){t.length!==0&&(A.blocks_.push(t),A.totalLength_+=t.length)};
_.tji=function(A,t){_.zH(A,t,2);t=A.encoder_.end();GH(A,t);t.push(A.totalLength_);return t};
_.fcS=function(A,t){var f=t.pop();for(f=A.totalLength_+A.encoder_.length()-f;f>127;)t.push(f&127|128),f>>>=7,A.totalLength_++;t.push(f);A.totalLength_++};
_.zH=function(A,t,f){cu(A.encoder_,t*8+f)};
xy0=function(A,t,f){if(f!=null)switch(gmq(f),_.zH(A,t,1),typeof f){case "number":A=A.encoder_;e7z(f);_.Pu(A,ji);_.Pu(A,Y8);break;case "bigint":f=nlx(f);A=A.encoder_;t=f.JSC$8944_hi;_.Pu(A,f.JSC$8944_lo);_.Pu(A,t);break;default:f=K3T(f),A=A.encoder_,t=f.JSC$8944_hi,_.Pu(A,f.JSC$8944_lo),_.Pu(A,t)}};
V35=function(A,t,f){_.zH(A,t,2);cu(A.encoder_,f.length);GH(A,A.encoder_.end());GH(A,f)};
kQx=function(A,t,f,X){f!=null&&(t=_.tji(A,t),X(f,A),_.fcS(A,t))};var wAl,XA7,QlT,q2p,J_8,e3E,GQk,Ndl,u8k;wAl=Qb();XA7=Qb();QlT=Qb();q2p=Qb();J_8=Qb();_.Udp=Qb();_.Ve=Qb();e3E=Qb();GQk=Qb();_.lcE=Qb();Ndl=Qb();u8k=Qb();_.z3S=Qb();_.Pyp=Qb();_.e3=function(A,t,f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A,t,f)};
_.e3.prototype.toJSON=function(){return Dc(this)};
_.e3.prototype.serialize=function(A){return JSON.stringify(Dc(this,A))};
var glb=function(A,t){if(t==null||t=="")return new A;t=JSON.parse(t);if(!Array.isArray(t))throw Error("V");return new A(s0s(t))};
_.e3.prototype.getExtension=function(A){XAx(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A.fieldIndex);tjT(this,A.fieldIndex);return A.ctor?A.isRepeated?A.getExtensionFn(this,A.ctor,A.fieldIndex,_.uI(),A.JSC$8959_hasMessageId):A.getExtensionFn(this,A.ctor,A.fieldIndex,A.JSC$8959_hasMessageId):A.isRepeated?A.getExtensionFn(this,A.fieldIndex,_.uI(),A.JSC$8959_hasMessageId):A.getExtensionFn(this,A.fieldIndex,A.defaultValue,A.JSC$8959_hasMessageId)};
_.e3.prototype.clone=function(){var A=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=A[_.qb]|0;return vmb(this,A,t)?y_s(this,A,!0):new this.constructor(Ym(A,t,!1))};
_.e3.prototype[h_]=WA;_.e3.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var qy=function(A,t,f){this.$$binaryReaderFn=A;this.$$binaryWriterFn=t;A=vA(wAl);this.$$isMsg=!!A&&f===A||!1},Qfx=slq(function(A,t,f,X,Q){if(A.nextWireType_!==2)return!1;
j7(A,E8k(t,X,f),Q);return!0},Arz),qiu=slq(function(A,t,f,X,Q){if(A.nextWireType_!==2)return!1;
j7(A,E8k(t,X,f),Q);return!0},Arz),M3u=Symbol(),ejx=Symbol(),NWb=Symbol(),RjT=Symbol(),ibT=Symbol(),t30,fFl;var Hb5,TdC,Zr,iwl,OwE,c_T,BdS,dV,CyT,h3C,R3k,mdT,bwp,y_E,vmf,L3K,pAS,EmK,nmp;Hb5=function(A,t){var f=new A_E;myx(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f,Jr(M3u,BW5,Ciz,t));GH(f,f.encoder_.end());A=new Uint8Array(f.totalLength_);t=f.blocks_;for(var X=t.length,Q=0,q=0;q<X;q++){var e=t[q];A.set(e,Q);Q+=e.length}f.blocks_=[A];return A};
TdC=slq(function(A,t,f,X,Q){if(A.nextWireType_!==2)return!1;A=j7(A,F8([void 0,void 0],X),Q);A=Si(A);X=t[_.qb]|0;Q=Fp(X);if(X&2)throw Error();var q=s2(t,f,Q);if(q instanceof yh)(q.arrayState&2)!=0?(q=Py0(q),q.push(A),Sj(t,X,f,q,Q)):(t=q,f=t.keyToApi(A[0],!1,!0),A=A[1],A=t.valueCtor?A===void 0?null:A:t.valueToApi(A,!1,!0,void 0,!1,t.arrayState),N1.prototype.set.call(t,f,A));else if(Array.isArray(q)){var e=q[_.qb]|0;e&8192||ei(q,e|=8192);e&2&&(q=Dd5(q),Sj(t,X,f,q,Q));q.push(A)}else Sj(t,X,f,Nb([A]),
Q);return!0},function(A,t,f,X,Q){if(t instanceof yh)t.forEach(function(G,N){kQx(A,f,F8([N,
G],X),Q)});
else if(Array.isArray(t)){for(var q=0;q<t.length;q++){var e=t[q];Array.isArray(e)&&kQx(A,f,F8(e,X),Q)}Nb(t)}});
Zr=_.li(function(A,t,f){if(A.nextWireType_!==1)return!1;_.ui(t,f,ZSk(A.decoder_));return!0},LQq,u8k);
iwl=_.li(function(A,t,f,X){if(A.nextWireType_!==1)return!1;_.O1(t,f,X,ZSk(A.decoder_));return!0},LQq,u8k);
OwE=_.li(function(A,t,f){if(A.nextWireType_!==5)return!1;_.ui(t,f,Vik(A.decoder_));return!0},pu5,Ndl);
c_T=_.vls(function(A,t,f){if(A.nextWireType_!==5&&A.nextWireType_!==2)return!1;t=_.Ar(t,t[_.qb]|0,f);A.nextWireType_==2?_.g8i(A,Vik,t):t.push(Vik(A.decoder_));return!0},function(A,t,f){t=_.yrb(_.sT,t,!0);
if(t!=null&&t.length)for(_.zH(A,f,2),cu(A.encoder_,t.length*4),f=0;f<t.length;f++){var X=A.encoder_;NEs(t[f]);_.Pu(X,ji)}},Ndl);
BdS=_.li(function(A,t,f,X){if(A.nextWireType_!==5)return!1;_.O1(t,f,X,Vik(A.decoder_));return!0},pu5,Ndl);
_.MjT=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;_.ui(t,f,_.FG(A.decoder_,_.iSb));return!0},_.Oi,_.Ve);
_.oD=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;_.ui(t,f,_.FG(A.decoder_,op));return!0},_.Oi,_.Ve);
dV=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;A=_.FG(A.decoder_,op);_.ui(t,f,A===0?void 0:A);return!0},_.Oi,_.Ve);
CyT=_.li(function(A,t,f,X){if(A.nextWireType_!==0)return!1;_.O1(t,f,X,_.FG(A.decoder_,op));return!0},_.Oi,_.Ve);
h3C=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;_.ui(t,f,_.FG(A.decoder_,_.Zw));return!0},Dyb,e3E);
_.S7=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;_.ui(t,f,_.FG(A.decoder_,upq));return!0},Dyb,e3E);
_.aD=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;_.ui(t,f,_.ID(A.decoder_));return!0},IFx,q2p);
R3k=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;A=_.ID(A.decoder_);_.ui(t,f,A===0?void 0:A);return!0},IFx,q2p);
mdT=_.li(function(A,t,f,X){if(A.nextWireType_!==0)return!1;_.O1(t,f,X,_.ID(A.decoder_));return!0},IFx,q2p);
bwp=_.li(function(A,t,f){if(A.nextWireType_!==1)return!1;_.ui(t,f,YTi(A.decoder_));return!0},_.jfx,_.lcE);
_.W3T=_.vls(function(A,t,f){if(A.nextWireType_!==1&&A.nextWireType_!==2)return!1;t=_.Ar(t,t[_.qb]|0,f);A.nextWireType_==2?_.g8i(A,YTi,t):t.push(YTi(A.decoder_));return!0},function(A,t,f){t=_.yrb(YTT,t,!1);
if(t!=null)for(var X=0;X<t.length;X++)xy0(A,f,t[X])},_.lcE);
_.Kd=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;_.ui(t,f,o8K(A.decoder_));return!0},Yi5,XA7);
_.gV=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;A=o8K(A.decoder_);_.ui(t,f,A===!1?void 0:A);return!0},Yi5,XA7);
y_E=_.li(function(A,t,f,X){if(A.nextWireType_!==0)return!1;_.O1(t,f,X,o8K(A.decoder_));return!0},Yi5,XA7);
_.wV=_.li(function(A,t,f){if(A.nextWireType_!==2)return!1;_.ui(t,f,awl(A));return!0},Zbb,QlT);
_.s1=_.li(function(A,t,f){if(A.nextWireType_!==2)return!1;A=awl(A);_.ui(t,f,A===""?void 0:A);return!0},Zbb,QlT);
_.kp=_.li(function(A,t,f,X){if(A.nextWireType_!==2)return!1;_.O1(t,f,X,awl(A));return!0},Zbb,QlT);
vmf=_.vls(function(A,t,f){if(A.nextWireType_!==2)return!1;A=awl(A);_.Ar(t,t[_.qb]|0,f).push(A);return!0},function(A,t,f){t=_.yrb(_.Cw,t,!0);
if(t!=null)for(var X=0;X<t.length;X++){var Q=A,q=f,e=t[X];e!=null&&V35(Q,q,ubb(e))}},QlT);
L3K=void 0;L3K=L3K===void 0?wAl:L3K;_.rV=new qy(function(A,t,f,X,Q){if(A.nextWireType_!==2)return!1;X=F8(void 0,X);_.Ar(t,t[_.qb]|0,f).push(X);j7(A,X,Q);return!0},function(A,t,f,X,Q){if(Array.isArray(t)){for(var q=0;q<t.length;q++)olx(A,t[q],f,X,Q);
A=t[_.qb]|0;A&1||ei(t,A|1)}},L3K);
_.A1=slq(function(A,t,f,X,Q,q){if(A.nextWireType_!==2)return!1;var e=t[_.qb]|0;jlg(t,e,q,f,Fp(e));t=E8k(t,X,f);j7(A,t,Q);return!0},olx);
_.t1=_.li(function(A,t,f){if(A.nextWireType_!==2)return!1;_.ui(t,f,_.Klf(A));return!0},_.dyl,_.z3S);
pAS=_.li(function(A,t,f,X){if(A.nextWireType_!==2)return!1;_.O1(t,f,X,_.Klf(A));return!0},_.dyl,_.z3S);
_.f3=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;_.ui(t,f,_.ID(A.decoder_)>>>0);return!0},Sib,J_8);
EmK=_.li(function(A,t,f,X){if(A.nextWireType_!==0)return!1;_.O1(t,f,X,_.ID(A.decoder_)>>>0);return!0},Sib,J_8);
_.Xy=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;_.ui(t,f,_.ID(A.decoder_));return!0},_.$y5,_.Pyp);
_.QD=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;A=_.ID(A.decoder_);_.ui(t,f,A===0?void 0:A);return!0},_.$y5,_.Pyp);
nmp=_.li(function(A,t,f){if(A.nextWireType_!==0)return!1;_.ui(t,f,_.FG(A.decoder_,PKq));return!0},function(A,t,f){t=jpb(t);
if(t!=null&&(ac0(t),t!=null))switch(_.zH(A,f,0),typeof t){case "number":A=A.encoder_;f=t;t=f<0;f=Math.abs(f)*2;e7z(f);f=ji;var X=Y8;t&&(f==0?X==0?X=f=4294967295:(X--,f=4294967295):f--);ji=f;Y8=X;ii(A,ji,Y8);break;case "bigint":A=A.encoder_;t=t<<BigInt(1)^t>>BigInt(63);ji=Number(BigInt.asUintN(32,t));Y8=Number(BigInt.asUintN(32,t>>BigInt(32)));ii(A,ji,Y8);break;default:rfK(A.encoder_,t)}},GQk);var Icf=function(){var A=Ddl,t=F3k;this.fieldIndex=175237375;this.ctor=t;this.isRepeated=0;this.getExtensionFn=_.Mq;this.defaultValue=void 0;this.JSC$8959_hasMessageId=A.messageId!=null?Dw:void 0};
Icf.prototype.register=function(){fd(this)};var xdp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(xdp,_.e3);var jlS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(jlS,_.e3);var kHs=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(kHs,_.e3);var Y2l=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Y2l,_.e3);var VjS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(VjS,_.e3);var Zwk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Zwk,_.e3);var om7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(om7,_.e3);om7.prototype.getData=function(){return _.ir(this,2)};var ddl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(ddl,_.e3);var S2k=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(S2k,_.e3);S2k.prototype.getStyle=function(){return _.Mq(this,xdp,1)};var Rf=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Rf,_.e3);Rf.prototype.getPayloadCase=function(){return _.cz(this,yb)};
Rf.prototype.getStyle=function(){return _.pd(this,S2k,6,yb)};
var $d8=function(){var A=new Rf,t=new VjS;return _.Wu(A,7,yb,t)},Hwk=function(){var A=new Rf,t=new Zwk;
return _.Wu(A,8,yb,t)},yb=[1,
2,3,4,5,6,7,8];var acp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(acp,_.e3);var K3i=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(K3i,_.e3);var gm8=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(gm8,_.e3);var wAb=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(wAb,_.e3);var sl8=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(sl8,_.e3);var kQT=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(kQT,_.e3);var r_C=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(r_C,_.e3);var Ark=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Ark,_.e3);Ark.prototype.getData=function(){return _.ir(this,2)};var t3p=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(t3p,_.e3);var sfq=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(sfq,_.e3);sfq.prototype.getPayloadCase=function(){return _.cz(this,qF)};
var qF=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var J1=function(A,t){A=Error.call(this,A);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.code=t===void 0?2:t};
_.R(J1,Error);var fFb=Promise;var XuC=function(A){this.channelPromise=A};
XuC.prototype.send=function(A,t,f){this.channelPromise.then(function(X){X.send(A,t,f)})};var Qfw=function(A,t){this.data=A;this.channel=t};
Qfw.prototype.reply=function(A,t,f){this.channel.send(A,t,f)};var qiK=function(A){this.JSC$9025_port_=A};
qiK.prototype.send=function(A,t,f){f=f===void 0?[]:f;var X=new MessageChannel;JrT(X.port1,t);this.JSC$9025_port_.postMessage(A,[X.port2].concat(f))};
var Uyk=function(A,t){JrT(A,t);return new qiK(A)},JrT=function(A,t){t&&(A.onmessage=function(f){t(new Qfw(f.data,Uyk(f.ports[0])))})};var ejT=function(A){this.verifier_=A};
ejT.prototype.verify=function(A){return this.verifier_(A)};
var GHS=function(A){var t=Object.create(null);(typeof A==="string"?[A]:A).forEach(function(f){if(f==="null")throw Error("X");t[f]=!0});
return function(f){return t[f]===!0}};_.lFC=function(){if(!_.Xb.addEventListener||!Object.defineProperty)return!1;var A=!1,t=Object.defineProperty({},"passive",{get:function(){A=!0}});
try{var f=function(){};
_.Xb.addEventListener("test",f,t);_.Xb.removeEventListener("test",f,t)}catch(X){}return A}();var NWp;_.UL=function(A){var t=A.destination;var f=A.iframe;var X=A.origin;var Q=A.channelName===void 0?"ZNWN1d":A.channelName;var q=A.onMessage===void 0?void 0:A.onMessage;A=A.onEstablished===void 0?void 0:A.onEstablished;return NWp({destination:t,getSource:function(){return f.contentWindow},
originVerifier:X instanceof ejT?X:typeof X==="function"?new ejT(X):new ejT(GHS(X)),channelName:Q,onMessage:q,onEstablished:A})};
NWp=function(A){var t=A.destination;var f=A.getSource;var X=A.originVerifier;var Q=A.token===void 0?void 0:A.token;var q=A.channelName;var e=A.onMessage===void 0?void 0:A.onMessage;var G=A.onEstablished===void 0?void 0:A.onEstablished;return new XuC(new fFb(function(N,z){var T=function(O){O.source&&O.source===f()&&X.verify(O.origin)&&(O.data.n||O.data)===q&&(t.removeEventListener("message",T,!1),Q&&O.data.t!==Q?z(Error("Y`"+q+"`"+Q+"`"+O.data.t)):(N(Uyk(O.ports[0],e)),G&&G(O)))};
t.addEventListener("message",T,!1)}))};var uxp=function(A){try{A()}catch(t){Q5(t)}};var Piw=function(A){var t=this;var f=A.getMessageType;var X=A.onUnregisteredMessage===void 0?function(){}:A.onUnregisteredMessage;
var Q=A.onBeforeRegisteredMessage===void 0?function(){}:A.onBeforeRegisteredMessage;
A=A.onAfterRegisteredMessage===void 0?function(){}:A.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=f;this.onUnregisteredMessage_=X;this.onBeforeRegisteredMessage_=Q;this.onAfterRegisteredMessage_=A;this.onMessage=function(q){return zjw(t,q)}};
Piw.prototype.register=function(A,t){this.registry_.set(A,t);return this};
var zjw=function(A,t){var f=A.getMessageType_(t.data),X=A.registry_.get(f);X?(uxp(function(){return A.onBeforeRegisteredMessage_(t,f)}),uxp(function(){return X(t)}),uxp(function(){return A.onAfterRegisteredMessage_(t,f)})):uxp(function(){return A.onUnregisteredMessage_(t,f)})};var TW8=function(A){this.JSC$9042_channel_=A},Obw,crp;
TW8.prototype.send=function(A,t,f){this.JSC$9042_channel_.send(Dc(A),t,f)};
_.ibi=function(A,t){return function(f){var X=new A(f.data);return t(new Qfw(X,f.channel))}};
Obw=function(A){return function(t){return A(new Qfw(t.data,new TW8(t.channel)))}};
crp=function(A,t){return Obw(_.ibi(A,t))};var BWC=function(A,t,f,X){this.registry=A;this.delegate=t;this.receiveMessageConstructor=f;this.createInitMessage=X;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},wuu=function(A){var t=new Piw({getMessageType:A.getPayloadCase});
return new BWC(t,new TW8(_.UL({iframe:A.child,destination:window,origin:A.origin,channelName:A.channelName,onMessage:crp(A.receiveMessageConstructor,t.onMessage)})),A.receiveMessageConstructor,A.createInitMessage)},M3K=function(A,t){A.createInitMessage=t};
BWC.prototype.send=function(A){if(!this.initialised)throw new J1("Attempted to send a message before initialisation.");this.delegate.send(A)};
var Cik=function(A,t){return _.l(function(f){if(!A.initialised)throw new J1("Attempted to send a message before initialisation.");return f.return(new Promise(function(X){A.delegate.send(t,crp(A.receiveMessageConstructor,X))}))})};
BWC.prototype.init=function(){var A=this;return _.l(function(t){if(A.initialised)throw new J1("Attempted to initialise twice. The SDK can only be initialised once.");if(A.createInitMessage!==void 0){var f=A.delegate,X=f.send,Q=A.createInitMessage;var q=new jlS;var e=[].concat(_.YV(A.features));q=_.km(q,1,e,_.X8);X.call(f,Q.call(A,q))}A.initialised=!0;_.LO(t)})};
var eq=function(A,t){if(A.initialised)throw new J1('Attempted to set up API "'+t+'" after initialisation. All APIs must be set up before initialising the SDK.');A.features.add(t);return A.registry};
_.PV.Object.defineProperties(BWC.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var hjS=function(A){this.channel=A;this.registered=!1};
hjS.prototype.update=function(A){if(this.channel.isInitialised){if(!this.registered)throw new J1("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var t=new Rf;var f=new Y2l;f=_.cf(f,1,A);t=_.Wu(t,2,yb,f);this.channel.send(t)}else this.register();this.JSC$9056_audioEnabled=A};
hjS.prototype.register=function(){eq(this.channel,1);this.registered=!0};
hjS.prototype.isAudioEnabled=function(){return this.JSC$9056_audioEnabled};var Rji=function(A){this.channel=A};
_.J=Rji.prototype;_.J.onFirstFrameReady=function(A){eq(this.channel,2).register(11,function(t){t=_.pd(t.data,acp,11,qF);if(!t)throw new J1("Unexpectedly nonexistent GameFirstFrameReadyEvent");A(_.Wz(t,1))})};
_.J.onReady=function(A){eq(this.channel,2).register(4,function(t){t=_.pd(t.data,gm8,4,qF);if(!t)throw new J1("Unexpectedly nonexistent GameReadyEvent");A(_.Wz(t,1))})};
_.J.onLevelComplete=function(A){eq(this.channel,2).register(5,function(t){t=_.pd(t.data,wAb,5,qF);if(!t)throw new J1("Unexpectedly nonexistent LevelCompleteEvent");A(_.Wz(t,1),_.Pf(t,2))})};
_.J.onGameOver=function(A){eq(this.channel,2).register(6,function(t){t=_.pd(t.data,K3i,6,qF);if(!t)throw new J1("Unexpectedly nonexistent GameOverEvent");A(_.Wz(t,1))})};
_.J.pause=function(){var A=this;if(!this.channel.isInitialised)return eq(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new J1("Using unregistered Game Feature: pause.");var t=$d8();return new Promise(function(f){return _.l(function(X){if(X.nextAddress==1)return X.yield(Cik(A.channel,t),2);f();_.LO(X)})})};
_.J.resume=function(){var A=this;if(!this.channel.isInitialised)return eq(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new J1("Using unregistered Game Feature: resume.");var t=Hwk();return new Promise(function(f){return _.l(function(X){if(X.nextAddress==1)return X.yield(Cik(A.channel,t),2);f();_.LO(X)})})};var my7=function(A){this.channel=A};
my7.prototype.onReady=function(A){eq(this.channel,5).register(8,function(t){if(!_.pd(t.data,sl8,8,qF))throw new J1("Unexpectedly nonexistent PageReadyEvent");A()})};var bbT=function(A){this.channel=A};
bbT.prototype.onChange=function(A){eq(this.channel,3).register(7,function(t){t=_.pd(t.data,kQT,7,qF);if(!t)throw new J1("Unexpectedly nonexistent ScoreEvent");A(_.Wz(t,1),_.Pf(t,2))})};var WQw={load:function(){throw new J1("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new J1("Storage used, but storage.onSave() listener not set!");}},yrp=function(A){this.channel=A;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},vlE=function(A){eq(A.channel,4).register(2,WQw.load).register(3,WQw.save);
A.initialSetupDone=!0};
yrp.prototype.onLoad=function(A){this.initialSetupDone||vlE(this);this.loadRegistered||(this.loadRegistered=!0,eq(this.channel,4).register(2,function(t){var f,X,Q;return _.l(function(q){if(q.nextAddress==1){f=_.pd(t.data,r_C,2,qF);if(!f)throw new J1("Unexpectedly nonexistent StorageLoad");X=_.Wz(f,1);return q.yield(A(X),2)}Q=q.yieldResult;var e=t.reply,G=new Rf;var N=new om7;N=_.Dg(N,1,X);N=_.hq(N,2,_.nS(Q,!1));G=_.Wu(G,3,yb,N);e.call(t,G);_.LO(q)})}))};
yrp.prototype.onSave=function(A){this.initialSetupDone||vlE(this);this.saveRegistered||(this.saveRegistered=!0,eq(this.channel,4).register(3,function(t){var f,X,Q;return _.l(function(q){if(q.nextAddress==1){f=_.pd(t.data,Ark,3,qF);if(!f)throw new J1("Unexpectedly nonexistent StorageSave");X=_.Wz(f,1);Q=iSf(f.getData());return q.yield(A(X,Q),2)}var e=t.reply,G=new Rf;var N=new ddl;N=_.Dg(N,1,X);G=_.Wu(G,4,yb,N);e.call(t,G);_.LO(q)})}))};var LQ8=function(A){this.channel=A};
LQ8.prototype.update=function(A){if(!this.channel.features.has(6))throw new J1("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var t=new Rf,f=new S2k;A=_.bi(f,1,A);t=_.Wu(t,6,yb,A);this.channel.send(t)};
LQ8.prototype.register=function(){eq(this.channel,6)};var puC=function(A){this.channel=A;this.userActivityLoggingIntervalMs=0};
puC.prototype.onUserActivity=function(A,t){this.userActivityLoggingIntervalMs=t;eq(this.channel,7).register(9,function(f){if(!_.pd(f.data,t3p,9,qF))throw new J1("Unexpectedly nonexistent ClickEvent");A()})};var Elf=function(A){var t=this;this.channel=A;this.init=this.channel.init.bind(this.channel);this.page=new my7(this.channel);this.game=new Rji(this.channel);this.audio=new hjS(this.channel);this.score=new bbT(this.channel);this.storage=new yrp(this.channel);this.style=new LQ8(this.channel);this.userActivity=new puC(this.channel);M3K(this.channel,function(f){var X=new kHs;f=_.bi(X,1,f);f=_.E1(f,3,t.userActivity.userActivityLoggingIntervalMs);X=t.audio.isAudioEnabled();X!==void 0&&_.cf(f,2,X);X=new Rf;
return _.Wu(X,5,yb,f)})};var nlw=function(){this.timedFunctionContext=0};
nlw.prototype.timeExecution=function(A,t){var f=this;return function(){var X=_.Hu.apply(0,arguments);f.timedFunctionContext=A;return t.apply(null,_.YV(X))}};var Dyf=function(){var A={};this.priorityTasks=(A[3]=[],A[2]=[],A[1]=[],A);this.isFlushing=!1},mS=function(A,t,f){var X=FQk(A,f);
A.priorityTasks[f].push(t);X&&A.priorityTasks[f].length===1&&A.flush()},FQk=function(A,t){return Object.keys(A.priorityTasks).map(function(f){return Number(f)}).filter(function(f){return!isNaN(f)&&f>t}).every(function(f){return A.priorityTasks[f].length===0})};
Dyf.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(A){return A.length>0});)IFT(this,3),IFT(this,2),IFT(this,1)}catch(A){throw Object.values(this.priorityTasks).forEach(function(t){return void t.splice(0,t.length)}),A;
}finally{this.isFlushing=!1}}};
var IFT=function(A,t){for(;FQk(A,t)&&A.priorityTasks[t].length>0;)A.priorityTasks[t][0](),A.priorityTasks[t].shift()};
_.PV.Object.defineProperties(Dyf.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(A){return A.length>0})}}});var qVp={};var xyp=globalThis.trustedTypes,Atx=xyp,fHz;var Lb=function(A){this.privateDoNotAccessOrElseWrappedResourceUrl=A};
Lb.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var jfT,YiC,V3C,Zbp,olT,dyb,Sip,$yl;jfT=_.dS([""]);YiC=oG(["\x00"],["\\0"]);V3C=oG(["\n"],["\\n"]);Zbp=oG(["\x00"],["\\u0000"]);olT=_.dS([""]);dyb=oG(["\x00"],["\\0"]);Sip=oG(["\n"],["\\n"]);$yl=oG(["\x00"],["\\u0000"]);_.Hbl=Q9z(function(A){return A(jfT)})||Q9z(function(A){return A(YiC)})||Q9z(function(A){return A(V3C)})||Q9z(function(A){return A(Zbp)});
_.aFk=_.nb(olT)&&_.nb(dyb)&&_.nb(Sip)&&_.nb($yl);var ZF;_.DF=function(A,t){this.privateDoNotAccessOrElseWrappedUrl=t};
_.DF.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.KQ8=Fx("about:blank");ZF=Fx("about:invalid#zClosurez");var Jt5=function(A){this.isValid=A},glp=new Jt5(function(A){return/^[^:]*([/?#]|$)/.test(A)}),wuK=Yl("data"),sf8=Yl("http"),kHE=Yl("https"),rrT=Yl("ftp"),At7=Yl("mailto"),tOT=Yl("intent"),fHk=Yl("vnd.youtube"),UWb=[wuK,
sf8,kHE,At7,rrT,glp],GGu=vu(function(){return typeof URL==="function"}),XCl=["data:",
"http:","https:","mailto:","ftp:"],Nk5=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var gW=function(A){this.privateDoNotAccessOrElseWrappedHtml=A};
gW.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var lsg=vu(function(){return new gW(xyp?xyp.emptyHTML:"")});var Q9k={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"},zNz=function(A,t){var f=Error.call(this,A+" cannot be used with intent "+Q9k[t]);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.type=A;this.intent=t;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.R(zNz,Error);_.X3=function(A){this.privateDoNotAccessOrElseWrappedScript=A};
_.X3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Tkx=function(A){this.privateDoNotAccessOrElseWrappedAttributePrefix=A};
Tkx.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var iOx="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var NW=function(A){this.privateDoNotAccessOrElseWrappedStyleSheet=A};
NW.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var oEb=function(A){var t=_.Ae("window.location.href");A==null&&(A='Unknown Error of type "null/undefined"');if(typeof A==="string")return{message:A,name:"Unknown error",lineNumber:"Not available",fileName:t,stack:"Not available"};var f=!1;try{var X=A.lineNumber||A.line||"Not available"}catch(e){X="Not available",f=!0}try{var Q=A.fileName||A.filename||A.sourceURL||_.Xb.$googDebugFname||t}catch(e){Q="Not available",f=!0}t=qVT(A);if(!(!f&&A.lineNumber&&A.fileName&&A.stack&&A.message&&A.name)){f=A.message;
if(f==null){if(A.constructor&&A.constructor instanceof Function){if(A.constructor.name)f=A.constructor.name;else if(f=A.constructor,GK[f])f=GK[f];else{f=String(f);if(!GK[f]){var q=/function\s+([^\(]+)/m.exec(f);GK[f]=q?q[1]:"[Anonymous]"}f=GK[f]}f='Unknown Error of type "'+f+'"'}else f="Unknown Error of unknown type";typeof A.toString==="function"&&Object.prototype.toString!==A.toString&&(f+=": "+A.toString())}return{message:f,name:A.name||"UnknownError",lineNumber:X,fileName:Q,stack:t||"Not available"}}return{message:A.message,
name:A.name,lineNumber:A.lineNumber,fileName:A.fileName,stack:t}},qVT=function(A,t){t||(t={});
t[JtC(A)]=!0;var f=A.stack||"",X=A.cause;X&&!t[JtC(X)]&&(f+="\nCaused by: ",X.stack&&X.stack.indexOf(X.toString())==0||(f+=typeof X==="string"?X:X.message+"\n"),f+=qVT(X,t));A=A.errors;if(Array.isArray(A)){X=1;var Q;for(Q=0;Q<A.length&&!(X>4);Q++)t[JtC(A[Q])]||(f+="\nInner error "+X++ +": ",A[Q].stack&&A[Q].stack.indexOf(A[Q].toString())==0||(f+=typeof A[Q]==="string"?A[Q]:A[Q].message+"\n"),f+=qVT(A[Q],t));Q<A.length&&(f+="\n... "+(A.length-Q)+" more inner errors")}return f},JtC=function(A){var t=
"";
typeof A.toString==="function"&&(t=""+A);return t+A.stack},GK={};var UWp,u2,fW,GGK,lHp,eNS,sB,F5,u3K;UWp=function(A,t){for(var f=A.split("%s"),X="",Q=Array.prototype.slice.call(arguments,1);Q.length&&f.length>1;)X+=f.shift()+Q.shift();return X+f.join("%s")};
_.fk=function(A){return encodeURIComponent(String(A))};
u2=function(A){return decodeURIComponent(A.replace(/\+/g," "))};
fW=function(A){nq7.test(A)&&(A.indexOf("&")!=-1&&(A=A.replace(W5w,"&amp;")),A.indexOf("<")!=-1&&(A=A.replace(ybT,"&lt;")),A.indexOf(">")!=-1&&(A=A.replace(vqS,"&gt;")),A.indexOf('"')!=-1&&(A=A.replace(L5l,"&quot;")),A.indexOf("'")!=-1&&(A=A.replace(ppl,"&#39;")),A.indexOf("\x00")!=-1&&(A=A.replace(Eqp,"&#0;")));return A};
GGK=function(A){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var f=_.Xb.document.createElement("div");return A.replace(eNS,function(X,Q){var q=t[X];if(q)return q;Q.charAt(0)=="#"&&(Q=Number("0"+Q.slice(1)),isNaN(Q)||(q=String.fromCharCode(Q)));q||(_.eO(f,wW(X+" ")),q=f.firstChild.nodeValue.slice(0,-1));return t[X]=q})};
lHp=function(A){return A.replace(/&([^;]+);/g,function(t,f){switch(f){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return f.charAt(0)!="#"||(f=Number("0"+f.slice(1)),isNaN(f))?t:String.fromCharCode(f)}})};
eNS=/&([^;\s<&]+);?/g;_.W1b=function(A){return String(A).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Nkl=String.prototype.repeat?function(A,t){return A.repeat(t)}:function(A,t){return Array(t+1).join(A)};
_.lz=function(A,t){if(!Number.isFinite(A))return String(A);A=String(A);var f=A.indexOf(".");f===-1&&(f=A.length);var X=A[0]==="-"?"-":"";X&&(A=A.substring(1));return X+(0,_.Nkl)("0",Math.max(0,t-f))+A};
sB=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.k5()).toString(36)};
F5=function(A){for(var t=0,f=0;f<A.length;++f)t=31*t+A.charCodeAt(f)>>>0;return t};
_.Gr=function(A){return String(A).replace(/\-([a-z])/g,function(t,f){return f.toUpperCase()})};
_.ea=function(A){return String(A).replace(/([A-Z])/g,"-$1").toLowerCase()};
u3K=function(A){return A.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(t,f,X){return f+X.toUpperCase()})};var zNk=function(){this.names=new Map};
zNk.prototype.getName=function(A){var t=this.names.get(A);if(t)return t;var f;t=(f=A.description)!=null?f:sB();this.names.set(A,t);return t};var PLE=function(A){var t=Error.call(this,A?A.length+" errors occurred during unsubscription:\n"+A.map(function(f,X){return X+1+") "+f.toString()}).join("\n  "):"");
this.message=t.message;"stack"in t&&(this.stack=t.stack);this.errors=A;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.R(PLE,Error);var zG=function(A){this.initialTeardown=A;this.closed=!1;this._teardowns=this._parentage=null};
_.J=zG.prototype;
_.J.unsubscribe=function(){if(!this.closed){this.closed=!0;var A=this._parentage;if(Array.isArray(A))for(var t=_.U(A),f=t.next();!f.done;f=t.next())f.value.remove(this);else A==null||A.remove(this);t=this.initialTeardown;if(uL(t))try{t()}catch(q){var X=q instanceof PLE?q.errors:[q]}var Q=this._teardowns;if(Q)for(this._teardowns=null,t=_.U(Q),f=t.next();!f.done;f=t.next()){f=f.value;try{uL(f)?f():f.unsubscribe()}catch(q){f=void 0,X=(f=X)!=null?f:[],q instanceof PLE?X=[].concat(_.YV(X),_.YV(q.errors)):
X.push(q)}}if(X)throw new PLE(X);}};
_.J.add=function(A){if(A&&A!==this)if(this.closed)uL(A)?A():A.unsubscribe();else{if(A instanceof zG){if(A.closed||A._hasParent(this))return;A._addParent(this)}var t;(this._teardowns=(t=this._teardowns)!=null?t:[]).push(A)}};
_.J._hasParent=function(A){var t=this._parentage;return t===A||Array.isArray(t)&&t.includes(A)};
_.J._addParent=function(A){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(A),t):t?[t,A]:A};
_.J._removeParent=function(A){var t=this._parentage;t===A?this._parentage=null:Array.isArray(t)&&CLl(t,A)};
_.J.remove=function(A){var t=this._teardowns;t&&CLl(t,A);A instanceof zG&&A._removeParent(this)};
var TkT=new zG;TkT.closed=!0;zG.JSC$9152_EMPTY=TkT;var RNz=function(){setTimeout.apply(null,_.YV(_.Hu.apply(0,arguments)))};var NF=function(A){zG.call(this);this.JSC$9157_isStopped=!1;this.destination=A instanceof NF?A:new uz(!A||uL(A)?{next:A!=null?A:void 0}:A);hNg(A)&&A.add(this)};
_.R(NF,zG);NF.JSC$9152_EMPTY=zG.JSC$9152_EMPTY;NF.create=function(A,t,f){return new zK(A,t,f)};
_.J=NF.prototype;_.J.next=function(A){this.JSC$9157_isStopped||this._next(A)};
_.J.error=function(A){this.JSC$9157_isStopped||(this.JSC$9157_isStopped=!0,this._error(A))};
_.J.complete=function(){this.JSC$9157_isStopped||(this.JSC$9157_isStopped=!0,this._complete())};
_.J.unsubscribe=function(){this.closed||(this.JSC$9157_isStopped=!0,zG.prototype.unsubscribe.call(this))};
_.J._next=function(A){this.destination.next(A)};
_.J._error=function(A){this.destination.error(A);this.unsubscribe()};
_.J._complete=function(){this.destination.complete();this.unsubscribe()};
var uz=function(A){this.partialObserver=A};
uz.prototype.next=function(A){var t=this.partialObserver;if(t.next)try{t.next(A)}catch(f){TG(f)}};
uz.prototype.error=function(A){var t=this.partialObserver;if(t.error)try{t.error(A)}catch(f){TG(f)}else TG(A)};
uz.prototype.complete=function(){var A=this.partialObserver;if(A.complete)try{A.complete()}catch(t){TG(t)}};
var zK=function(A,t,f){NF.call(this);var X;uL(A)||!A?X={next:A!=null?A:void 0,error:t!=null?t:void 0,complete:f!=null?f:void 0}:X=A;this.destination=new uz(X)};
_.R(zK,NF);zK.JSC$9152_EMPTY=NF.JSC$9152_EMPTY;zK.create=NF.create;var BC=typeof Symbol==="function"&&Symbol.observable||"@@observable";var cC=function(A){A&&(this._subscribe=A)};
_.J=cC.prototype;_.J.lift=function(A){var t=new cC;t.source=this;t.operator=A;return t};
_.J.subscribe=function(A,t,f){A=A&&A instanceof NF||A&&uL(A.next)&&uL(A.error)&&uL(A.complete)&&hNg(A)?A:new zK(A,t,f);t=this.operator;f=this.source;A.add(t?t.call(A,f):f?this._subscribe(A):this._trySubscribe(A));return A};
_.J._trySubscribe=function(A){try{return this._subscribe(A)}catch(t){A.error(t)}};
_.J.forEach=function(A,t){var f=this;t=bO0(t);return new t(function(X,Q){var q=f.subscribe(function(e){try{A(e)}catch(G){Q(G),q==null||q.unsubscribe()}},Q,X)})};
_.J._subscribe=function(A){var t;return(t=this.source)==null?void 0:t.subscribe(A)};
cC.prototype[BC]=function(){return this};
cC.prototype.pipe=function(){var A=_.Hu.apply(0,arguments);return A.length?mW5(A)(this):this};
cC.create=function(A){return new cC(A)};var iOw=function(){var A=Error.call(this,"object unsubscribed");this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.R(iOw,Error);var Cn=function(){this.observers=[];this.hasError=this.JSC$9173_isStopped=this.closed=!1;this.thrownError=null};
_.R(Cn,cC);_.J=Cn.prototype;_.J.lift=function(A){var t=new PI(this,this);t.operator=A;return t};
_.J._throwIfClosed=function(){if(this.closed)throw new iOw;};
_.J.next=function(A){this._throwIfClosed();if(!this.JSC$9173_isStopped){var t=this.observers.slice();t=_.U(t);for(var f=t.next();!f.done;f=t.next())f.value.next(A)}};
_.J.error=function(A){this._throwIfClosed();if(!this.JSC$9173_isStopped){this.hasError=this.JSC$9173_isStopped=!0;this.thrownError=A;for(var t=this.observers;t.length;)t.shift().error(A)}};
_.J.complete=function(){this._throwIfClosed();if(!this.JSC$9173_isStopped){this.JSC$9173_isStopped=!0;for(var A=this.observers;A.length;)A.shift().complete()}};
_.J.unsubscribe=function(){this.JSC$9173_isStopped=this.closed=!0;this.observers=null};
_.J._trySubscribe=function(A){this._throwIfClosed();return cC.prototype._trySubscribe.call(this,A)};
_.J._subscribe=function(A){this._throwIfClosed();this._checkFinalizedStatuses(A);return this._innerSubscribe(A)};
_.J._innerSubscribe=function(A){var t=this,f=this.JSC$9173_isStopped,X=this.observers;return this.hasError||f?zG.JSC$9152_EMPTY:(X.push(A),new zG(function(){return CLl(t.observers,A)}))};
_.J._checkFinalizedStatuses=function(A){var t=this.thrownError,f=this.JSC$9173_isStopped;this.hasError?A.error(t):f&&A.complete()};
Cn.create=function(A,t){return new PI(A,t)};
var PI=function(A,t){Cn.call(this);this.destination=A;this.source=t};
_.R(PI,Cn);PI.create=Cn.create;PI.prototype.next=function(A){var t,f;(t=this.destination)==null||(f=t.next)==null||f.call(t,A)};
PI.prototype.error=function(A){var t,f;(t=this.destination)==null||(f=t.error)==null||f.call(t,A)};
PI.prototype.complete=function(){var A,t;(A=this.destination)==null||(t=A.complete)==null||t.call(A)};
PI.prototype._subscribe=function(A){var t,f;return(f=(t=this.source)==null?void 0:t.subscribe(A))!=null?f:zG.JSC$9152_EMPTY};var kN=function(A){Cn.call(this);this._value=A};
_.R(kN,Cn);kN.create=Cn.create;kN.prototype._subscribe=function(A){var t=Cn.prototype._subscribe.call(this,A);!t.closed&&A.next(this._value);return t};
kN.prototype.getValue=function(){var A=this.thrownError,t=this._value;if(this.hasError)throw A;this._throwIfClosed();return t};
kN.prototype.next=function(A){Cn.prototype.next.call(this,this._value=A)};
_.PV.Object.defineProperties(kN.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var HC=new cC(function(A){return A.complete()});var Lzl=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Fzs=function(A){return A&&typeof A.length==="number"&&typeof A!=="function"};var OOS={now:function(){return(OOS.delegate||Date).now()},
delegate:void 0};var UP=function(A,t,f){A=A===void 0?Infinity:A;t=t===void 0?Infinity:t;f=f===void 0?OOS:f;Cn.call(this);this.bufferSize=A;this.windowTime=t;this.timestampProvider=f;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=t===Infinity;this.bufferSize=Math.max(1,A);this.windowTime=Math.max(1,t)};
_.R(UP,Cn);UP.create=Cn.create;UP.prototype.next=function(A){var t=this.buffer,f=this.infiniteTimeWindow,X=this.timestampProvider,Q=this.windowTime;this.JSC$9173_isStopped||(t.push(A),!f&&t.push(X.now()+Q));ctT(this);Cn.prototype.next.call(this,A)};
UP.prototype._subscribe=function(A){this._throwIfClosed();ctT(this);for(var t=this._innerSubscribe(A),f=this.infiniteTimeWindow,X=this.buffer.slice(),Q=0;Q<X.length&&!A.closed;Q+=f?1:2)A.next(X[Q]);this._checkFinalizedStatuses(A);return t};
var ctT=function(A){var t=A.bufferSize,f=A.timestampProvider,X=A.buffer;A=A.infiniteTimeWindow;var Q=(A?1:2)*t;t<Infinity&&Q<X.length&&X.splice(0,X.length-Q);if(!A){t=f.now();f=0;for(A=1;A<X.length&&X[A]<=t;A+=2)f=A;f&&X.splice(0,f+1)}};var MOb=function(A,t){t=t===void 0?BkT:t;this.schedulerActionCtor=A;this.now=t};
MOb.prototype.schedule=function(A,t,f){t=t===void 0?0:t;return(new this.schedulerActionCtor(this,A)).schedule(f,t)};
var BkT=OOS.now;var WS0=function(){var A=Error.call(this,"no elements in sequence");this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.R(WS0,Error);var I9=function(A,t,f,X,Q){NF.call(this,A);this.onUnsubscribe=Q;t&&(this._next=function(q){try{t(q)}catch(e){this.destination.error(e)}});
f&&(this._error=function(q){try{f(q)}catch(e){this.destination.error(e)}this.unsubscribe()});
X&&(this._complete=function(){try{X()}catch(q){this.destination.error(q)}this.unsubscribe()})};
_.R(I9,NF);I9.JSC$9152_EMPTY=NF.JSC$9152_EMPTY;I9.create=NF.create;I9.prototype.unsubscribe=function(){var A;this.closed||(A=this.onUnsubscribe)!=null&&A.call(this);NF.prototype.unsubscribe.call(this)};var qw=function(A,t){this.source=A;this.subjectFactory=t;this._subject=null;this._refCount=0;this._connection=null};
_.R(qw,cC);qw.create=cC.create;qw.prototype._subscribe=function(A){return CLb(this).subscribe(A)};
var CLb=function(A){var t=A._subject;if(!t||t.JSC$9173_isStopped)A._subject=A.subjectFactory();return A._subject};
qw.prototype._teardown=function(){this._refCount=0;var A=this._connection;this._subject=this._connection=null;A==null||A.unsubscribe()};
qw.prototype.connect=function(){var A=this,t=this._connection;if(!t){t=this._connection=new zG;var f=CLb(this);t.add(this.source.subscribe(new I9(f,void 0,function(X){A._teardown();f.error(X)},function(){A._teardown();
f.complete()},function(){return A._teardown()})));
t.closed&&(this._connection=null,t=zG.JSC$9152_EMPTY)}return t};var aHT=Array.isArray;var gVb=Array.isArray,hNS=Object,wCb=hNS.getPrototypeOf,s90=hNS.prototype,kGb=hNS.keys;var o9=function(A,t,f){NF.call(this,A);this._next=t;this.shouldComplete=f};
_.R(o9,NF);o9.JSC$9152_EMPTY=NF.JSC$9152_EMPTY;o9.create=NF.create;o9.prototype._complete=function(){this.shouldComplete()?NF.prototype._complete.call(this):this.unsubscribe()};var Uwz=["addListener","removeListener"],J5z=["addEventListener","removeEventListener"],GvT=["on","off"];var TK=function(){zG.call(this)};
_.R(TK,zG);TK.JSC$9152_EMPTY=zG.JSC$9152_EMPTY;TK.prototype.schedule=function(){return this};var RNk=function(A,t){return setInterval.apply(null,[A,t].concat(_.YV(_.Hu.apply(2,arguments))))};var iz=function(A,t){zG.call(this);this.scheduler=A;this.work=t;this.pending=!1};
_.R(iz,TK);iz.JSC$9152_EMPTY=TK.JSC$9152_EMPTY;iz.prototype.schedule=function(A,t){t=t===void 0?0:t;if(this.closed)return this;this.state=A;A=this.id;var f=this.scheduler;A!=null&&(this.id=mWC(this,A,t));this.pending=!0;this.delay=t;this.id=this.id||this.requestAsyncId(f,this.id,t);return this};
iz.prototype.requestAsyncId=function(A,t,f){f=f===void 0?0:f;return RNk(A.flush.bind(A,this),f)};
var mWC=function(A,t,f){f=f===void 0?0:f;if(f!=null&&A.delay===f&&A.pending===!1)return t;clearInterval(t)};
iz.prototype.execute=function(A,t){if(this.closed)return Error("ha");this.pending=!1;if(A=this._execute(A,t))return A;this.pending===!1&&this.id!=null&&(this.id=mWC(this,this.id,null))};
iz.prototype._execute=function(A){var t=!1;try{this.work(A)}catch(X){t=!0;var f=!!X&&X||Error(X)}if(t)return this.unsubscribe(),f};
iz.prototype.unsubscribe=function(){if(!this.closed){var A=this.id,t=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;CLl(t,this);A!=null&&(this.id=mWC(this,A,null));this.delay=null;TK.prototype.unsubscribe.call(this)}};var bOp=function(A,t){t=t===void 0?BkT:t;MOb.call(this,A,t);this.actions=[];this.active=!1;this.scheduled=void 0};
_.R(bOp,MOb);bOp.prototype.flush=function(A){var t=this.actions;if(this.active)t.push(A);else{var f;this.active=!0;do if(f=A.execute(A.state,A.delay))break;while(A=t.shift());this.active=!1;if(f){for(;A=t.shift();)A.unsubscribe();throw f;}}};var xN=new cC(PC);var lgz=Array.isArray;var OL=function(A,t){iz.call(this,A,t);this.scheduler=A;this.work=t};
_.R(OL,iz);OL.JSC$9152_EMPTY=iz.JSC$9152_EMPTY;OL.prototype.schedule=function(A,t){t=t===void 0?0:t;if(t>0)return iz.prototype.schedule.call(this,A,t);this.delay=t;this.state=A;this.scheduler.flush(this);return this};
OL.prototype.execute=function(A,t){return t>0||this.closed?iz.prototype.execute.call(this,A,t):this._execute(A,t)};
OL.prototype.requestAsyncId=function(A,t,f){f=f===void 0?0:f;return f!=null&&f>0||f==null&&this.delay>0?iz.prototype.requestAsyncId.call(this,A,t,f):A.flush(this)};var Wzk=function(){bOp.apply(this,arguments)};
_.R(Wzk,bOp);var $Wx=new Wzk(OL);var ytp=function(){this.performanceMonitor=new nlw;this.queue=new Dyf;this.internalSymbol=Symbol();this.debugNames=new zNk};
ytp.prototype.getOnBackgrounded=function(){return xN};
_.PV.Object.defineProperties(ytp.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var cI=function(A,t){t=Error.call(this,t?A+": "+t:String(A));this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=A;this.__proto__=cI.prototype;this.name=String(A)};
_.R(cI,Error);var jn=function(A){cI.call(this,1E3,'sfr:"'+A+'"');this.measurementStrategyFailureReason=A;this.__proto__=jn.prototype};
_.R(jn,cI);var YN=function(){cI.call(this,1003);this.__proto__=YN.prototype};
_.R(YN,cI);var BI=function(){cI.call(this,1009);this.__proto__=BI.prototype};
_.R(BI,cI);var vV8=function(){cI.call(this,1011);this.__proto__=vV8.prototype};
_.R(vV8,cI);var Lzb=function(){cI.call(this,1007);this.__proto__=YN.prototype};
_.R(Lzb,cI);var FU=function(A){cI.call(this,1004,String(A));this.inputObservableIndex=A;this.__proto__=FU.prototype};
_.R(FU,cI);var aAx=function(A){cI.call(this,1010,A);this.__proto__=K7l.prototype};
_.R(aAx,cI);var K7l=function(A){cI.call(this,1005,A);this.__proto__=K7l.prototype};
_.R(K7l,cI);var pCk=function(A){var t=_.Hu.apply(1,arguments),f=this;this.orderedFactories=[];this.orderedFactories.push(A);t.forEach(function(X){f.orderedFactories.push(X)})};
pCk.prototype.isSupported=function(A){return this.orderedFactories.some(function(t){return t.isSupported(A)})};
pCk.prototype.makeBeacon=function(A,t){for(var f=0;f<this.orderedFactories.length;f++)if(this.orderedFactories[f].isSupported(t))return this.orderedFactories[f].makeBeacon(A,t);throw new BI;};var IMq=Symbol("ia"),EVk=Symbol("ja"),sV=function(A,t){this.value=A;this.timeline=t},wk=function(A,t){if(t.timeline!==A.timeline)throw new Lzb;
return A.value-t.value};
_.J=sV.prototype;_.J.equals=function(A){return wk(this,A)===0};
_.J.maximum=function(A){if(A.timeline!==this.timeline)throw new Lzb;return this.value>=A.value?this:A};
_.J.round=function(){return new sV(Math.round(this.value),this.timeline)};
_.J.add=function(A){return new sV(this.value+A,this.timeline)};
_.J.toString=function(){return String(this.value)};var MF=function(A,t){this.context=A;this.JSC$9279_pinger=t};
MF.prototype.isSupported=function(A){return this.JSC$9279_pinger.isSupported(A)};
MF.prototype.makeBeacon=function(A,t){if(!this.isSupported(t))throw new BI;return new C3(this.context,this.JSC$9279_pinger,t!=null?t:void 0,A)};
var C3=function(A,t,f,X){var Q=this;this.JSC$9285_pinger=t;this.properties=f;this.url=X;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var q;this.method=(q=f==null?void 0:f.beaconMethod)!=null?q:"GET";this.backgroundedSubscription=A.getOnBackgrounded().subscribe(function(){Q.sendNow()})};
C3.prototype.deactivate=function(){this.internalIsPending=!1};
C3.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9285_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var A,t;this.JSC$9285_pinger.pingWithHeadersAndBody((A=this.properties)!=null?A:{},this.customHeaders,(t=this.body)!=null?t:"",this.url)}else this.JSC$9285_pinger.ping(this.url);this.internalIsPending=!1}catch(f){}else this.internalIsPending=!1};
C3.prototype.setHeader=function(A,t){this.customHeaders.set(A,t)};
_.PV.Object.defineProperties(C3.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var DWk=function(){for(var A=_.U(_.Hu.apply(0,arguments)),t=A.next();!t.done;t=A.next())if(t=t.value,t.available()){this.timeProvider=t;return}this.timeProvider=new nVE};
_.J=DWk.prototype;_.J.available=function(){return this.timeProvider.available()};
_.J.now=function(){return this.timeProvider.now()};
_.J.setTimeout=function(A,t){return this.timeProvider.setTimeout(A,t)};
_.J.clearTimeout=function(A){this.timeProvider.clearTimeout(A)};
_.J.interval=function(A,t){var f=this.intervalObservable(A).subscribe(t);return function(){return void f.unsubscribe()}};
_.J.intervalObservable=function(A){return this.timeProvider.intervalObservable(A)};
_.PV.Object.defineProperties(DWk.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var nVE=function(){this.timeline=Symbol()};
_.J=nVE.prototype;_.J.available=function(){return!1};
_.J.now=function(){return new sV(0,this.timeline)};
_.J.setTimeout=function(){return 0};
_.J.clearTimeout=function(){};
_.J.interval=function(){return function(){}};
_.J.intervalObservable=function(){return xN};var h1=function(A,t){this.intrinsicFunctionNamespace=A;this.performanceMonitor=t};
_.J=h1.prototype;_.J.setTimeout=function(A,t){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,A),t)};
_.J.clearTimeout=function(A){this.intrinsicFunctionNamespace.clearTimeout(A)};
_.J.interval=function(A,t){var f=this.intervalObservable(A).subscribe(t);return function(){return void f.unsubscribe()}};
_.J.intervalObservable=function(A){var t=this;return new cC(function(f){var X=0,Q=t.intrinsicFunctionNamespace.setInterval(function(){f.next(X++)},A);
return function(){t.intrinsicFunctionNamespace.clearInterval(Q)}})};
_.J.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var FzE=function(A,t){h1.call(this,A,t);this.timeline=EVk};
_.R(FzE,h1);FzE.prototype.now=function(){return new sV(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
FzE.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&h1.prototype.available.call(this)};var IHf=function(A,t){h1.call(this,A,t);this.timeline=IMq};
_.R(IHf,h1);IHf.prototype.now=function(){return new sV(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
IHf.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&h1.prototype.available.call(this)};var j9p=function(A){this.context=A;if(xWb===void 0)a:{var t,f,X=(t=A.global)==null?void 0:(f=t.document)==null?void 0:f.createElement("meta");if(X)try{X.httpEquiv="origin-trial";X.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";A.global.document.head.append(X);xWb=X;break a}catch(Q){}xWb=void 0}},
xWb;
j9p.prototype.isSupported=function(A){return Mnb(this.context)!==void 0&&!(A==null||!A.endOfSession)&&!R1(this.context)&&!(A==null?0:A.attributionEnabled)&&!(A==null?0:A.customHeaders)&&!(A==null?0:A.customBody)};
j9p.prototype.makeBeacon=function(A,t){if(!this.isSupported(t))throw new BI;return new m9(this.context,A,t)};
var m9=function(A,t,f){this.context=A;this.properties=f;this.JSC$9312_urlWithoutToken=t;var X;this.beaconMethod=(X=f==null?void 0:f.beaconMethod)!=null?X:"GET";A=Mnb(this.context);if(A===void 0)throw Error();this.fetchLater=A;YVl(this,VOE(this))},YVl=function(A,t){A.beaconResult&&A.beaconResult.activated||(A.beaconAbort=new AbortController,A.beaconResult=A.fetchLater(t,{method:A.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:A.beaconAbort.signal,activateAfter:96E4}))},VOE=function(A){A=A.JSC$9312_urlWithoutToken;
return(A.slice(-1)[0]==="&"?A:A+"&")+"flapi=1"};
m9.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
m9.prototype.sendNow=function(){};
m9.prototype.setHeader=function(){};
_.PV.Object.defineProperties(m9.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9312_urlWithoutToken},
set:function(A){this.JSC$9312_urlWithoutToken=A;A=VOE(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);YVl(this,A)}},
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 ZOw=function(A){this.context=A};
ZOw.prototype.isSupported=function(){return!R1(this.context)&&!!this.context.global.fetch};
ZOw.prototype.ping=function(){var A=this;return KO.apply(null,_.YV(_.Hu.apply(0,arguments).map(function(t){return CO(A.context.global.fetch(t,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(jO(function(f){return f.status===200}))}))).pipe(y5g(function(t){return t}),LSx())};
ZOw.prototype.pingWithHeadersAndBody=function(A,t,f){for(var X=_.Hu.apply(3,arguments),Q=this,q=new Headers,e=_.U(t.entries()),G=e.next();!G.done;G=e.next()){var N=_.U(G.value);G=N.next().value;N=N.next().value;q.set(G,N)}var z,T=(z=A.keepAlive)!=null?z:!1;KO.apply(null,_.YV(X.map(function(O){return CO(Q.context.global.fetch(O,Object.assign({},{method:String(A.beaconMethod),cache:"no-cache"},T?{keepalive:!0}:{},{mode:"no-cors",headers:q,body:f}))).pipe(jO(function(c){return c.status===200}))}))).pipe(y5g(function(O){return O}),
LSx())};var oV8,nr0,dW7;_.bz=function(){};
_.I0=function(A){return A};
oV8=function(A){var t=t||0;return function(){return A.apply(this,Array.prototype.slice.call(arguments,0,t))}};
_.WI=function(A){var t=!1,f;return function(){t||(f=A(),t=!0);return f}};
_.yD=function(A,t){var f=0;return function(X){_.Xb.clearTimeout(f);var Q=arguments;f=_.Xb.setTimeout(function(){A.apply(void 0,Q)},t)}};
nr0=function(A,t){var f=0,X=!1,Q=[],q=function(){f=0;X&&(X=!1,e())},e=function(){f=_.Xb.setTimeout(q,t);
var G=Q;Q=[];A.apply(void 0,G)};
return function(G){Q=arguments;f?X=!0:e()}};
dW7=function(A,t){var f=0,X=function(){f=0};
return function(Q){f||(f=_.Xb.setTimeout(X,t),A.apply(void 0,arguments))}};var $Ww=function(){return Ml&&Cg?Cg.mobile:!SVw()&&(hb("iPod")||hb("iPhone")||hb("Android")||hb("IEMobile"))},SVw=function(){return Ml&&Cg?!Cg.mobile&&(hb("iPad")||hb("Android")||hb("Silk")):hb("iPad")||hb("Android")&&!hb("Mobile")||hb("Silk")};var vI=function(A,t,f,X,Q){this.allowedElements=A;this.elementPolicies=t;this.allowedGlobalAttributes=f;this.globalAttributePolicies=X;this.globallyAllowedAttributePrefixes=Q},HOE=function(A,t,f){f=A.elementPolicies.get(f);
return(f==null?0:f.has(t))?f.get(t):A.allowedGlobalAttributes.has(t)?{policyAction:1}:(f=A.globalAttributePolicies.get(t))?f:A.globallyAllowedAttributePrefixes&&[].concat(_.YV(A.globallyAllowedAttributePrefixes)).some(function(X){return t.indexOf(X)===0})?{policyAction:1}:{policyAction:0}};var aHi="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(" "),
Kzp=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["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}]])]],gVp="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 coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert 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 usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
wCf=[["dir",{policyAction:3,conditions:vu(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:vu(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:vu(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:vu(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],s9p=new vI(new Set(aHi),new Map(Kzp),new Set(gVp),new Map(wCf)),kGp=new vI(new Set(aHi.concat(["BUTTON",
"INPUT"])),new Map(Kzp),new Set(vu(function(){return gVp.concat(["class","id","name"])})),new Map(vu(function(){return wCf.concat([["style",
{policyAction:1}]])})));var rti,A5K,fgT;rti=function(A,t,f,X,Q){this.JSC$9369_sanitizerTable=A;this.styleElementSanitizer=t;this.styleAttributeSanitizer=f;this.JSC$9369_resourceUrlPolicy=X;this.JSC$9369_navigationUrlPolicy=Q;this.changes=[]};
_.tnE=function(A,t){var f=document.implementation.createHTMLDocument("");A=A5K(A,t,f);f=f.body;f.appendChild(A);f=(new XMLSerializer).serializeToString(f);f=f.slice(f.indexOf(">")+1,f.lastIndexOf("</"));return wW(f)};
A5K=function(A,t,f){t=Vnl(t,f);t=document.createTreeWalker(t,5,function(G){if(G.nodeType===3)G=1;else if(oNl(G))if(G=Znl(G),G===null)G=2;else{var N=A.JSC$9369_sanitizerTable;G=G!=="FORM"&&(N.allowedElements.has(G)||N.elementPolicies.has(G))?1:2}else G=2;return G});
for(var X=t.nextNode(),Q=f.createDocumentFragment(),q=Q;X!==null;){var e=void 0;if(X.nodeType===3)A.styleElementSanitizer&&q.nodeName==="STYLE"?(X=A.styleElementSanitizer(X.data),e=A.createTextNode(X)):e=A.createTextNode(X.data);else if(oNl(X))e=fgT(A,X,f);else throw Error("Z");q.appendChild(e);if(X=t.firstChild())q=e;else for(;!(X=t.nextSibling())&&(X=t.parentNode());)q=q.parentNode}return Q};
rti.prototype.createTextNode=function(A){return document.createTextNode(A)};
fgT=function(A,t,f){var X,Q=Znl(t);f=f.createElement(Q);t=t.attributes;for(var q=_.U(t),e=q.next();!e.done;e=q.next()){var G=e.value;e=G.name;G=G.value;var N=HOE(A.JSC$9369_sanitizerTable,e,Q);a:{if(X=N.conditions){X=_.U(X);for(var z=X.next();!z.done;z=X.next()){var T=_.U(z.value);z=T.next().value;T=T.next().value;var O=void 0;if((z=(O=t.getNamedItem(z))==null?void 0:O.value)&&!T.has(z)){X=!1;break a}}}X=!0}if(X)switch(N.policyAction){case 1:iU(f,e,G);break;case 2:throw Error();case 3:iU(f,e,G.toLowerCase());
break;case 4:A.styleAttributeSanitizer?(G=A.styleAttributeSanitizer(G),iU(f,e,G)):iU(f,e,G);break;case 5:A.JSC$9369_resourceUrlPolicy?(N={type:2,attributeName:e,elementName:Q},G=YPx(G),(G=A.JSC$9369_resourceUrlPolicy(G,N))&&iU(f,e,G.toString())):iU(f,e,G);break;case 6:if(A.JSC$9369_resourceUrlPolicy){N={type:2,attributeName:e,elementName:Q};X=[];G=_.U(G.split(","));for(z=G.next();!z.done;z=G.next())T=_.U(z.value.trim().split(/\s+/,2)),z=T.next().value,T=T.next().value,X.push({url:z,descriptor:T});
G={parts:[]};X=_.U(X);for(z=X.next();!z.done;z=X.next())z=z.value,T=YPx(z.url),(T=A.JSC$9369_resourceUrlPolicy(T,N))&&G.parts.push({url:T.toString(),descriptor:z.descriptor});iU(f,e,dwg(G))}else iU(f,e,G);break;case 7:N=G;if(A.JSC$9369_navigationUrlPolicy){N={type:2,attributeName:e,elementName:Q};G=YPx(G);G=A.JSC$9369_navigationUrlPolicy(G,N);if(G===null)break;N=G.toString()}G=N;N=_.lHb(G);N=N!==void 0&&XCl.indexOf(N.toLowerCase())!==-1?G:"about:invalid#zClosurez";iU(f,e,N)}}return f};
_.Xd8=vu(function(){return new rti(s9p)});
_.Qkk=vu(function(){return new rti(kGp)});var qPb=function(){this.calledBuild=!1;this.JSC$9381_sanitizerTable=s9p},J5k=function(){qPb.apply(this,arguments)};
_.R(J5k,qPb);J5k.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new rti(this.JSC$9381_sanitizerTable,void 0,void 0,this.JSC$9381_resourceUrlPolicy,this.JSC$9381_navigationUrlPolicy)};var Uwk=/[^#]*/;var nNq={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"},ewS=_.WI(function(){return FSq()}),
lgk=function(){var A=Gvi("IFRAME"),t={};
_.X_(ewS(),function(f){A.sandbox&&A.sandbox.supports&&A.sandbox.supports(f)&&(t[f]=!0)});
return t},Gvi=function(A,t){t=t===void 0?document:t;
return t.createElement(String(A).toLowerCase())};var L3;_.ps=function(A,t,f){return Math.min(Math.max(A,t),f)};
L3=function(A,t,f){return A+f*(t-A)};_.ok=function(A,t){this.x=A!==void 0?A:0;this.y=t!==void 0?t:0};
_.J=_.ok.prototype;_.J.clone=function(){return new _.ok(this.x,this.y)};
_.J.equals=function(A){return A instanceof _.ok&&(this==A?!0:this&&A?this.x==A.x&&this.y==A.y:!1)};
_.J.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.J.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.J.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.J.translate=function(A,t){A instanceof _.ok?(this.x+=A.x,this.y+=A.y):(this.x+=Number(A),typeof t==="number"&&(this.y+=t));return this};
_.J.scale=function(A,t){this.x*=A;this.y*=typeof t==="number"?t:A;return this};_.Ln=function(A,t){this.width=A;this.height=t};
_.J=_.Ln.prototype;_.J.clone=function(){return new _.Ln(this.width,this.height)};
_.J.area=function(){return this.width*this.height};
_.J.aspectRatio=function(){return this.width/this.height};
_.J.isEmpty=function(){return!this.area()};
_.J.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.J.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.J.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.J.scale=function(A,t){this.width*=A;this.height*=typeof t==="number"?t:A;return this};var NGT;_.VG={};NGT="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.VG.add=function(A,t,f){if(A!==null&&t in A)throw Error("na`"+t);A[t]=f};
_.VG.clear=function(A){for(var t in A)delete A[t]};
_.VG.clone=function(A){var t={},f;for(f in A)t[f]=A[f];return t};
_.VG.contains=function(A,t){return KSx(A,t)};
_.VG.containsKey=function(A,t){return A!==null&&t in A};
_.VG.containsValue=KSx;_.VG.create=skx;_.VG.createImmutableView=function(A){var t=A;Object.isFrozen&&!Object.isFrozen(A)&&(t=Object.create(A),Object.freeze(t));return t};
_.VG.createSet=kvx;_.VG.equals=function(A,t){for(var f in A)if(!(f in t)||A[f]!==t[f])return!1;for(var X in t)if(!(X in A))return!1;return!0};
_.VG.every=function(A,t,f){for(var X in A)if(!t.call(f,A[X],X,A))return!1;return!0};
_.VG.extend=function(A,t){for(var f,X,Q=1;Q<arguments.length;Q++){X=arguments[Q];for(f in X)A[f]=X[f];for(var q=0;q<NGT.length;q++)f=NGT[q],Object.prototype.hasOwnProperty.call(X,f)&&(A[f]=X[f])}};
_.VG.filter=function(A,t,f){var X={},Q;for(Q in A)t.call(f,A[Q],Q,A)&&(X[Q]=A[Q]);return X};
_.VG.findKey=gNs;_.VG.findValue=function(A,t,f){return(t=gNs(A,t,f))&&A[t]};
_.VG.forEach=function(A,t,f){for(var X in A)t.call(f,A[X],X,A)};
_.VG.get=function(A,t,f){return A!==null&&t in A?A[t]:f};
_.VG.getAllPropertyNames=function(A,t,f){if(!A)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return agq(A);for(var X={};A&&(A!==Object.prototype||t)&&(A!==Function.prototype||f);){for(var Q=Object.getOwnPropertyNames(A),q=0;q<Q.length;q++)X[Q[q]]=!0;A=Object.getPrototypeOf(A)}return agq(X)};
_.VG.getAnyKey=function(A){for(var t in A)return t};
_.VG.getAnyValue=function(A){for(var t in A)return A[t]};
_.VG.getCount=function(A){var t=0,f;for(f in A)t++;return t};
_.VG.getKeys=agq;_.VG.getSuperClass=function(A){return(A=Object.getPrototypeOf(A.prototype))&&A.constructor};
_.VG.getValueByKeys=function(A,t){var f=_.ST(t),X=f?t:arguments;for(f=f?0:1;f<X.length;f++){if(A==null)return;A=A[X[f]]}return A};
_.VG.getValues=function(A){var t=[],f=0,X;for(X in A)t[f++]=A[X];return t};
_.VG.isEmpty=function(A){for(var t in A)return!1;return!0};
_.VG.isImmutableView=function(A){return!!Object.isFrozen&&Object.isFrozen(A)};
_.VG.map=function(A,t,f){var X={},Q;for(Q in A)X[Q]=t.call(f,A[Q],Q,A);return X};
_.VG.remove=function(A,t){var f;(f=t in A)&&delete A[t];return f};
_.VG.set=function(A,t,f){A[t]=f};
_.VG.setIfUndefined=function(A,t,f){return t in A?A[t]:A[t]=f};
_.VG.setWithReturnValueIfNotSet=function(A,t,f){if(t in A)return A[t];f=f();return A[t]=f};
_.VG.some=function(A,t,f){for(var X in A)if(t.call(f,A[X],X,A))return!0;return!1};
_.VG.transpose=function(A){var t={},f;for(f in A)t[A[f]]=f;return t};
_.VG.unsafeClone=wdx;var wL=function(A,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=A===$Ix&&t||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=uUb};
wL.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var zw7=function(A){return A instanceof wL&&A.constructor===wL&&A.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===uUb?A.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},uUb={},$Ix={};
new wL($Ix,"");var nn,LA,EL,PUf,OnS,inT,dG,BG7,CU8,Mnp,I1,hwT,LSw,vNS,y5S,pdT,ENK,nN8,Dwi,GVl,FS8,xw8,jkp,Igw,p3;nn=function(A){return A?new p3(_.Sn(A)):CuT||(CuT=new p3)};
_.we=function(A,t){return typeof t==="string"?A.getElementById(t):t};
LA=function(A,t){return(t||document).getElementsByTagName(String(A))};
_.TGp=function(A){return PUf("yt-formatted-string","paper-input-input",A)};
EL=function(A,t,f,X){A=X||A;return(t=t&&t!="*"?String(t).toUpperCase():"")||f?A.querySelectorAll(t+(f?"."+f:"")):A.getElementsByTagName("*")};
PUf=function(A,t,f){var X=document,Q=A&&A!="*"?String(A).toUpperCase():"";return Q||t?(f||X).querySelector(Q+(t?"."+t:"")):EL(X,A,t,f)[0]||null};
OnS=function(A,t){_.VG.forEach(t,function(f,X){X=="style"?A.style.cssText=f:X=="class"?A.className=f:X=="for"?A.htmlFor=f:inT.hasOwnProperty(X)?A.setAttribute(inT[X],f):_.ql(X,"aria-")||_.ql(X,"data-")?A.setAttribute(X,f):A[X]=f})};
inT={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"};_.pn=function(A){A=(A||window).document;A=A.compatMode=="CSS1Compat"?A.documentElement:A.body;return new _.Ln(A.clientWidth,A.clientHeight)};
_.c5T=function(A){var t=_.n3(A);A=A.defaultView;return new _.ok((A==null?void 0:A.pageXOffset)||t.scrollLeft,(A==null?void 0:A.pageYOffset)||t.scrollTop)};
_.n3=function(A){return A.scrollingElement?A.scrollingElement:_.q1||A.compatMode!="CSS1Compat"?A.body||A.documentElement:A.documentElement};
dG=function(A){return A?A.defaultView:window};
_.DC=function(A,t,f){return BG7(document,arguments)};
BG7=function(A,t){var f=t[1],X=Mnp(A,String(t[0]));f&&(typeof f==="string"?X.className=f:Array.isArray(f)?X.className=f.join(" "):OnS(X,f));t.length>2&&CU8(A,X,t,2);return X};
CU8=function(A,t,f,X){function Q(G){G&&t.appendChild(typeof G==="string"?A.createTextNode(G):G)}
for(;X<f.length;X++){var q=f[X];if(!_.ST(q)||_.Hp(q)&&q.nodeType>0)Q(q);else{a:{if(q&&typeof q.length=="number"){if(_.Hp(q)){var e=typeof q.item=="function"||typeof q.item=="string";break a}if(typeof q==="function"){e=typeof q.item=="function";break a}}e=!1}_.X_(e?_.ds(q):q,Q)}}};
_.yT=function(A){return Mnp(document,A)};
Mnp=function(A,t){t=String(t);A.contentType==="application/xhtml+xml"&&(t=t.toLowerCase());return A.createElement(t)};
_.Fy=function(){return document.createTextNode("\n")};
I1=function(A){if(A.nodeType!=1)return!1;switch(A.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};
hwT=function(A,t){CU8(_.Sn(A),A,arguments,1)};
_.x6=function(A){for(var t;t=A.firstChild;)A.removeChild(t)};
_.jq=function(A,t){t.parentNode&&t.parentNode.insertBefore(A,t)};
_.Y6=function(A,t){t.parentNode&&t.parentNode.insertBefore(A,t.nextSibling)};
_.vf=function(A){return A&&A.parentNode?A.parentNode.removeChild(A):null};
_.Rwb=function(A,t){var f=t.parentNode;f&&f.replaceChild(A,t)};
_.mwE=function(A){var t,f=A.parentNode;if(f&&f.nodeType!=11)if(A.removeNode)A.removeNode(!1);else{for(;t=A.firstChild;)f.insertBefore(t,A);_.vf(A)}};
_.VD=function(A){return A.children!=void 0?A.children:Array.prototype.filter.call(A.childNodes,function(t){return t.nodeType==1})};
_.WSp=function(A){return A.nextElementSibling!==void 0?A.nextElementSibling:_.bn8(A.nextSibling,!0)};
_.bn8=function(A,t){for(;A&&A.nodeType!=1;)A=t?A.nextSibling:A.previousSibling;return A};
_.lX=function(A){return _.Hp(A)&&A.nodeType==1};
_.gw=function(A,t){if(!A||!t)return!1;if(A.contains&&t.nodeType==1)return A==t||A.contains(t);if(typeof A.compareDocumentPosition!="undefined")return A==t||!!(A.compareDocumentPosition(t)&16);for(;t&&A!=t;)t=t.parentNode;return t==A};
LSw=function(A,t){if(A==t)return 0;if(A.compareDocumentPosition)return A.compareDocumentPosition(t)&2?1:-1;if("sourceIndex"in A||A.parentNode&&"sourceIndex"in A.parentNode){var f=A.nodeType==1,X=t.nodeType==1;if(f&&X)return A.sourceIndex-t.sourceIndex;var Q=A.parentNode,q=t.parentNode;return Q==q?y5S(A,t):!f&&_.gw(Q,t)?-1*vNS(A,t):!X&&_.gw(q,A)?vNS(t,A):(f?A.sourceIndex:Q.sourceIndex)-(X?t.sourceIndex:q.sourceIndex)}X=_.Sn(A);f=X.createRange();f.selectNode(A);f.collapse(!0);A=X.createRange();A.selectNode(t);
A.collapse(!0);return f.compareBoundaryPoints(_.Xb.Range.START_TO_END,A)};
vNS=function(A,t){var f=A.parentNode;if(f==t)return-1;for(;t.parentNode!=f;)t=t.parentNode;return y5S(t,A)};
y5S=function(A,t){for(;t=t.previousSibling;)if(t==A)return-1;return 1};
pdT=function(A){var t,f=arguments.length;if(!f)return null;if(f==1)return arguments[0];var X=[],Q=Infinity;for(t=0;t<f;t++){for(var q=[],e=arguments[t];e;)q.unshift(e),e=e.parentNode;X.push(q);Q=Math.min(Q,q.length)}q=null;for(t=0;t<Q;t++){e=X[0][t];for(var G=1;G<f;G++)if(e!=X[G][t])return q;q=e}return q};
_.Sn=function(A){return A.nodeType==9?A:A.ownerDocument||A.document};
ENK=function(A){return A.contentDocument||A.contentWindow.document};
_.ZC=function(A,t){if("textContent"in A)A.textContent=t;else if(A.nodeType==3)A.data=String(t);else if(A.firstChild&&A.firstChild.nodeType==3){for(;A.lastChild!=A.firstChild;)A.removeChild(A.lastChild);A.firstChild.data=String(t)}else _.x6(A),A.appendChild(_.Sn(A).createTextNode(String(t)))};
nN8={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Dwi={IMG:" ",BR:"\n"};GVl=function(A){var t;A.tagName=="A"&&A.hasAttribute("href")||A.tagName=="INPUT"||A.tagName=="TEXTAREA"||A.tagName=="SELECT"||A.tagName=="BUTTON"?t=!A.disabled&&(!A.hasAttribute("tabindex")||FS8(A)):t=A.hasAttribute("tabindex")&&FS8(A);return t};
FS8=function(A){A=A.tabIndex;return typeof A==="number"&&A>=0&&A<32768};
xw8=function(A){var t=[];Igw(A,t,!0);A=t.join("");A=A.replace(/ \xAD /g," ").replace(/\xAD/g,"");A=A.replace(/\u200B/g,"");A=A.replace(/ +/g," ");A!=" "&&(A=A.replace(/^\s*/,""));return A};
jkp=function(A){var t=[];Igw(A,t,!1);return t.join("")};
Igw=function(A,t,f){if(!(A.nodeName in nN8))if(A.nodeType==3)f?t.push(String(A.nodeValue).replace(/(\r\n|\r|\n)/g,"")):t.push(A.nodeValue);else if(A.nodeName in Dwi)t.push(Dwi[A.nodeName]);else for(A=A.firstChild;A;)Igw(A,t,f),A=A.nextSibling};
_.YP7=function(A,t,f){if(!t&&!f)return null;var X=t?String(t).toUpperCase():null;return _.Hd(A,function(Q){return(!X||Q.nodeName==X)&&(!f||typeof Q.className==="string"&&_.Zx(Q.className.split(/\s+/),f))},!0)};
_.Hd=function(A,t,f){A&&!f&&(A=A.parentNode);for(f=0;A;){if(t(A))return A;A=A.parentNode;f++}return null};
p3=function(A){this.JSC$9409_document_=A||_.Xb.document||document};
_.J=p3.prototype;_.J.getElement=function(A){return _.we(this.JSC$9409_document_,A)};
_.J.$=p3.prototype.getElement;_.J.getElementsByTagName=function(A,t){return(t||this.JSC$9409_document_).getElementsByTagName(String(A))};
_.J.getElementsByTagNameAndClass=function(A,t,f){return EL(this.JSC$9409_document_,A,t,f)};
_.J.$$=p3.prototype.getElementsByTagNameAndClass;_.J.setProperties=OnS;_.J.JSC$9411_createDom=function(A,t,f){return BG7(this.JSC$9409_document_,arguments)};
_.J.createElement=function(A){return Mnp(this.JSC$9409_document_,A)};
_.J.createTextNode=function(A){return this.JSC$9409_document_.createTextNode(String(A))};
_.J.getWindow=function(){return this.JSC$9409_document_.defaultView};
var EP=function(A){return _.c5T(A.JSC$9409_document_)};
_.J=p3.prototype;_.J.appendChild=function(A,t){A.appendChild(t)};
_.J.append=hwT;_.J.canHaveChildren=I1;_.J.removeNode=_.vf;_.J.getChildren=_.VD;_.J.contains=_.gw;_.J.isFocusable=GVl;_.J=Bd.prototype;_.J.getWidth=function(){return this.right-this.left};
_.J.getHeight=function(){return this.bottom-this.top};
_.J.clone=function(){return new Bd(this.top,this.right,this.bottom,this.left)};
_.J.contains=function(A){return this&&A?A instanceof Bd?A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom:A.x>=this.left&&A.x<=this.right&&A.y>=this.top&&A.y<=this.bottom:!1};
_.J.expand=function(A,t,f,X){_.Hp(A)?(this.top-=A.top,this.right+=A.right,this.bottom+=A.bottom,this.left-=A.left):(this.top-=A,this.right+=Number(t),this.bottom+=Number(f),this.left-=Number(X));return this};
_.J.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};
_.J.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};
_.J.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};
_.J.translate=function(A,t){A instanceof _.ok?(this.left+=A.x,this.right+=A.x,this.top+=A.y,this.bottom+=A.y):(this.left+=A,this.right+=A,typeof t==="number"&&(this.top+=t,this.bottom+=t));return this};
_.J.scale=function(A,t){t=typeof t==="number"?t:A;this.left*=A;this.right*=A;this.top*=t;this.bottom*=t;return this};var o1=function(A,t,f,X){this.left=A;this.top=t;this.width=f;this.height=X};
_.J=o1.prototype;_.J.clone=function(){return new o1(this.left,this.top,this.width,this.height)};
_.J.boundingRect=function(A){var t=Math.max(this.left+this.width,A.left+A.width),f=Math.max(this.top+this.height,A.top+A.height);this.left=Math.min(this.left,A.left);this.top=Math.min(this.top,A.top);this.width=t-this.left;this.height=f-this.top};
_.J.contains=function(A){return A instanceof _.ok?A.x>=this.left&&A.x<=this.left+this.width&&A.y>=this.top&&A.y<=this.top+this.height:this.left<=A.left&&this.left+this.width>=A.left+A.width&&this.top<=A.top&&this.top+this.height>=A.top+A.height};
_.J.distance=function(A){var t=A.x<this.left?this.left-A.x:Math.max(A.x-(this.left+this.width),0);A=A.y<this.top?this.top-A.y:Math.max(A.y-(this.top+this.height),0);return Math.sqrt(t*t+A*A)};
_.J.getSize=function(){return new _.Ln(this.width,this.height)};
_.J.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};
_.J.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};
_.J.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};
_.J.translate=function(A,t){A instanceof _.ok?(this.left+=A.x,this.top+=A.y):(this.left+=A,typeof t==="number"&&(this.top+=t));return this};
_.J.scale=function(A,t){t=typeof t==="number"?t:A;this.left*=A;this.width*=A;this.top*=t;this.height*=t;return this};var Znb,$6,R55,Sq,$wC,SP7,HnE,Pz5,ag8,gNE;_.dU=function(A,t,f){if(typeof t==="string")(t=_.Vnb(A,t))&&(A.style[t]=f);else for(var X in t){f=A;var Q=t[X],q=_.Vnb(f,X);q&&(f.style[q]=Q)}};
Znb={};_.Vnb=function(A,t){var f=Znb[t];if(!f){var X=_.Gr(t);f=X;A.style[X]===void 0&&(X=(_.q1?"Webkit":_.Qe?"Moz":null)+u3K(X),A.style[X]!==void 0&&(f=X));Znb[t]=f}return f};
_.XI=function(A,t){var f=_.Sn(A);return f.defaultView&&f.defaultView.getComputedStyle&&(A=f.defaultView.getComputedStyle(A,null))?A[t]||A.getPropertyValue(t)||"":""};
_.KA=function(A,t){return _.XI(A,t)||(A.currentStyle?A.currentStyle[t]:null)||A.style&&A.style[t]};
_.oNb=function(A){return _.KA(A,"position")};
$6=function(A,t,f){if(t instanceof _.ok){var X=t.x;t=t.y}else X=t,t=f;A.style.left=Sq(X,!1);A.style.top=Sq(t,!1)};
R55=function(A){try{return A.getBoundingClientRect()}catch(t){return{left:0,top:0,right:0,bottom:0}}};
_.$N=function(A){var t=_.Sn(A),f=new _.ok(0,0);if(A==(t?_.Sn(t):document).documentElement)return f;A=R55(A);t=EP(nn(t));f.x=A.left+t.x;f.y=A.top+t.y;return f};
_.dwS=function(A,t,f){if(t instanceof _.Ln)f=t.height,t=t.width;else if(f==void 0)throw Error("oa");A.style.width=Sq(t,!0);A.style.height=Sq(f,!0)};
Sq=function(A,t){typeof A=="number"&&(A=(t?Math.round(A):A)+"px");return A};
$wC=function(A){return SP7(A)};
SP7=function(A){var t=HnE;if(_.KA(A,"display")!="none")return t(A);var f=A.style,X=f.display,Q=f.visibility,q=f.position;f.visibility="hidden";f.position="absolute";f.display="inline";A=t(A);f.display=X;f.position=q;f.visibility=Q;return A};
HnE=function(A){var t=A.offsetWidth,f=A.offsetHeight,X=_.q1&&!t&&!f;return(t===void 0||X)&&A.getBoundingClientRect?(A=R55(A),new _.Ln(A.right-A.left,A.bottom-A.top)):new _.Ln(t,f)};
Pz5=function(A){var t=_.$N(A);A=SP7(A);return new o1(t.x,t.y,A.width,A.height)};
ag8=function(A,t){A=A.style;"opacity"in A?A.opacity=t:"MozOpacity"in A?A.MozOpacity=t:"filter"in A&&(A.filter=t===""?"":"alpha(opacity="+Number(t)*100+")")};
_.tZ=function(A,t){A.style.display=t?"":"none"};
_.KSw=function(A){return"rtl"==_.KA(A,"direction")};
gNE=function(A){var t=_.XI(A,"marginLeft"),f=_.XI(A,"marginRight"),X=_.XI(A,"marginTop");A=_.XI(A,"marginBottom");return new Bd(parseFloat(X),parseFloat(f),parseFloat(A),parseFloat(t))};
_.wdw=function(A){var t=_.XI(A,"borderLeftWidth"),f=_.XI(A,"borderRightWidth"),X=_.XI(A,"borderTopWidth");A=_.XI(A,"borderBottomWidth");return new Bd(parseFloat(X),parseFloat(f),parseFloat(A),parseFloat(t))};var HI=function(A){this.context=A};
HI.prototype.isSupported=function(A){return(A==null?0:A.attributionEnabled)||(A==null?void 0:A.beaconMethod)==="POST"||(A==null?0:A.customHeaders)||(A==null?0:A.customBody)||(A==null?0:A.keepAlive)?!1:!R1(this.context)};
HI.prototype.ping=function(){var A=this;return nO(_.Hu.apply(0,arguments).map(function(t){try{var f=A.context.global,X=!1;X=X===void 0?!1:X;f.google_image_requests||(f.google_image_requests=[]);var Q=Gvi("IMG",f.document);X&&(Q.attributionSrc="");Q.src=t;f.google_image_requests.push(Q);return!0}catch(q){return!1}}).every(function(t){return t}))};
HI.prototype.pingWithHeadersAndBody=function(A,t,f){this.ping.apply(this,_.YV(_.Hu.apply(3,arguments)))};var skT=function(A){this.context=A};
skT.prototype.isSupported=function(A){return kv7&&!R1(this.context)&&r5u(this.context)!==void 0&&!(A==null?0:A.attributionEnabled)&&(A==null?void 0:A.beaconMethod)!=="POST"&&!(A==null?0:A.customHeaders)&&!(A==null?0:A.customBody)};
skT.prototype.makeBeacon=function(A,t){if(!this.isSupported(t))throw new BI;return new a1(this.context,A)};
var kv7=!1,a1=function(A,t){this.context=A;this.JSC$9430_urlWithoutToken=t;A=r5u(this.context);if(A===void 0)throw Error();this.wrappedBeacon=new A(r5K(this),{})},r5K=function(A){A=A.JSC$9430_urlWithoutToken;
return(A.slice(-1)[0]==="&"?A:A+"&")+"pbapi=1"};
a1.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
a1.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
a1.prototype.setHeader=function(){};
_.PV.Object.defineProperties(a1.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9430_urlWithoutToken},
set:function(A){this.JSC$9430_urlWithoutToken=A;this.wrappedBeacon.setURL(r5K(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(A){if(A!=="GET")throw new BI;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var AVk=function(A){this.context=A};
AVk.prototype.isSupported=function(A){if((A==null?0:A.attributionEnabled)||(A==null?void 0:A.beaconMethod)==="GET"||(A==null?0:A.customHeaders)||(A==null?0:A.customBody)||(A==null?0:A.keepAlive))return!1;var t;return!R1(this.context)&&((t=this.context.global.navigator)==null?void 0:t.sendBeacon)!==void 0};
AVk.prototype.ping=function(){var A=this;return nO(_.Hu.apply(0,arguments).map(function(t){var f;return(f=A.context.global.navigator)==null?void 0:f.sendBeacon(t)}).every(function(t){return t}))};
AVk.prototype.pingWithHeadersAndBody=function(A,t,f){this.ping.apply(this,_.YV(_.Hu.apply(3,arguments)))};var bU=function(A){this.value=A},QT=function(A,t){return nO(A.value).pipe(Rk(t))},JV=new bU(!1),Ikq=new bU(!0);var ak=function(A){this.value=A;this.releasedSubject=new Cn};
ak.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.PV.Object.defineProperties(ak.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9443_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var u1s=["FRAME","IMG","IFRAME"],JVx=/^[01](px)?$/,Nw5=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},lAg=function(){var A=new Nw5;
A.crossDomainLoadedDefault=!0;A.pendingImagesBlockLoad=!0;return A};var teT=function(A,t){var f=Bw0(A);if(f)if(f.onCreativeLoad)f.onCreativeLoad(t);else{var X=t?[t]:[],Q=function(q){for(var e=0;e<X.length;++e)try{X[e](1,q)}catch(G){}X={push:function(G){G(1,q)}}};
f.onCreativeLoad=function(q){X.push(q)};
f.setAttribute("data-creative-load-listener","");f.addEventListener("creativeLoad",function(q){Q(q.detail)});
_.Xb.addEventListener("message",function(q){cVs(f,Q,q)})}};var K3=function(A,t){var f=this;this.global=A;this.parentContext=t;this.JSC$9454_onVisibilityChange=this.document?KO(nO(!0),$V(this.document,"visibilitychange")).pipe(kV(this.parentContext.performanceMonitor,748),jO(function(){return f.getVisibilityState()}),XU()):nO("visible");
this.document?$V(this.document,"DOMContentLoaded").pipe(kV(this.parentContext.performanceMonitor,739),fn(1)):nO(QyT("DOMContentLoaded"))},Fhl=function(A){return A.document!==null&&A.document.visibilityState!==void 0};
K3.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
K3.prototype.querySelector=function(A){return this.document?this.document.querySelector(A):null};
K3.prototype.querySelectorAll=function(A){return this.document?_.ds(this.document.querySelectorAll(A)):[]};
K3.prototype.elementFromPoint=function(A,t){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;A=this.document.elementFromPoint(A,t);return A===null?null:new ak(A)};
var Rcb=function(A,t,f){f=f===void 0?!1:f;if(t.ref===void 0||!A.document)return nO(t).pipe(kV(A.parentContext.performanceMonitor,749));var X=new UP(1),Q=function(){X.next(t)};
f||teT(t.ref,Q);zLp(t.ref,Q);return X.pipe(kV(A.parentContext.performanceMonitor,749),fn(1))};
_.PV.Object.defineProperties(K3.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Igx(this.global,"document")?this.global.document||null:null}}});var MeT=_.dS(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),CIp=_.dS(["./reach_worklet.js"]),hLp=_.dS(["./reach_worklet.js"]),fAS=_.dS(["./reach_worklet.html"]),Xfl=_.dS(["./reach_worklet.js"]),Qyi=_.dS(["./reach_worklet.js"]);_.OP(fAS);_.OP(Xfl);_.OP(Qyi);var rG={left:0,top:0,width:0,height:0};var qBf,JVT,Ucf,eLp,l2,lAS,NwC,u1E,$ub,HMg,Twb,iAT;qBf=function(A,t,f,X,Q,q,e){var G="";A&&(G+=A+":");f&&(G+="//",t&&(G+=t+"@"),G+=f,X&&(G+=":"+X));Q&&(G+=Q);q&&(G+="?"+q);e&&(G+="#"+e);return G};
JVT=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.eJ=function(A){return A.match(JVT)};
_.RG=function(A,t){return A?t?decodeURI(A):decodeURIComponent(A):A};
Ucf=function(A){A=_.eJ(A)[1]||null;!A&&_.Xb.self&&_.Xb.self.location&&(A=_.Xb.self.location.protocol.slice(0,-1));return A?A.toLowerCase():""};
_.G7=function(A){return _.RG(_.eJ(A)[3]||null,!0)};
_.Wx=function(A){return _.RG(_.eJ(A)[5]||null,!0)};
_.uaT=function(A){var t=A.indexOf("#");return t<0?null:A.slice(t+1)};
eLp=function(A){A=_.eJ(A);return qBf(A[1],A[2],A[3],A[4])};
_.G_E=function(A){A=_.eJ(A);return qBf(A[1],null,A[3],A[4])};
_.Iq=function(A){A=_.eJ(A);return qBf(null,null,null,null,A[5],A[6],A[7])};
_.Sa=function(A){var t=A.indexOf("#");return t<0?A:A.slice(0,t)};
l2=function(A,t){A=_.eJ(A);t=_.eJ(t);return A[3]==t[3]&&A[1]==t[1]&&A[4]==t[4]};
lAS=function(A,t){if(A){A=A.split("&");for(var f=0;f<A.length;f++){var X=A[f].indexOf("="),Q=null;if(X>=0){var q=A[f].substring(0,X);Q=A[f].substring(X+1)}else q=A[f];t(q,Q?u2(Q):"")}}};
NwC=function(A){var t=A.indexOf("#");t<0&&(t=A.length);var f=A.indexOf("?");if(f<0||f>t){f=t;var X=""}else X=A.substring(f+1,t);return[A.slice(0,f),X,A.slice(t)]};
u1E=function(A,t){return t?A?A+"&"+t:t:A};
_.zLT=function(A,t){if(!t)return A;A=NwC(A);A[1]=u1E(A[1],t);return A[0]+(A[1]?"?"+A[1]:"")+A[2]};
_.PIp=function(A,t,f){if(Array.isArray(t))for(var X=0;X<t.length;X++)_.PIp(A,String(t[X]),f);else t!=null&&f.push(A+(t===""?"":"="+_.fk(t)))};
_.vx=function(A){var t=[],f;for(f in A)_.PIp(f,A[f],t);return t.join("&")};
_.U0=function(A,t){t=_.vx(t);return _.zLT(A,t)};
_.gU=function(A,t,f){f=f!=null?"="+_.fk(f):"";return _.zLT(A,t+f)};
$ub=function(A,t,f,X){for(var Q=f.length;(t=A.indexOf(f,t))>=0&&t<X;){var q=A.charCodeAt(t-1);if(q==38||q==63)if(q=A.charCodeAt(t+Q),!q||q==61||q==38||q==35)return t;t+=Q+1}return-1};
HMg=/#|$/;_.ww=function(A,t){var f=A.search(HMg),X=$ub(A,0,t,f);if(X<0)return null;var Q=A.indexOf("&",X);if(Q<0||Q>f)Q=f;X+=t.length+1;return u2(A.slice(X,Q!==-1?Q:0))};
Twb=/[?&]($|#)/;_.Hs=function(A,t){for(var f=A.search(HMg),X=0,Q,q=[];(Q=$ub(A,X,t,f))>=0;)q.push(A.substring(X,Q)),X=Math.min(A.indexOf("&",Q)+1||f,f);q.push(A.slice(X));return q.join("").replace(Twb,"$1")};
_.kB=function(A,t,f){return _.gU(_.Hs(A,t),t,f)};
iAT=function(A){var t=NwC(window.location.href),f=t[1],X=[];f&&f.split("&").forEach(function(Q){var q=Q.indexOf("=");q=q>=0?Q.slice(0,q):Q;A.hasOwnProperty(q)||X.push(Q)});
t[1]=u1E(X.join("&"),_.vx(A));return t[0]+(t[1]?"?"+t[1]:"")+t[2]};var dcg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(dcg,_.e3);var oCq=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(oCq,_.e3);var IAb=function(A,t){return _.Dg(A,2,t)},ZAb=function(A,t){return _.Dg(A,3,t)};
oCq.prototype.getModel=function(){return _.Wz(this,4)};
var jyz=function(A,t){return _.Dg(A,4,t)},F7l=function(A,t){return _.Dg(A,5,t)},Vex=function(A,t){return _.Dg(A,9,t)},Dcx=function(A,t){return Bz(A,10,t)},nCx=function(A,t){return _.cf(A,11,t)},xcz=function(A,t){return _.Dg(A,1,t)},YBl=function(A,t){return _.cf(A,7,t)};var pf0="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var qc=function(A,t,f,X){A=A===void 0?window:A;t=t===void 0?null:t;f=f===void 0?new nlw:f;X=X===void 0?RLg():X;ytp.call(this);var Q=this;this.global=A;this.debugChannel=t;this.performanceMonitor=f;this.onPageHide=qPl(function(){return $V(Q.global,"pagehide")}).pipe(kV(this.performanceMonitor,941));
this.onLoad=qPl(function(){return $V(Q.global,"load")}).pipe(kV(this.performanceMonitor,738),fn(1));
this.onResize=qPl(function(){return $V(Q.global,"resize")}).pipe(kV(this.performanceMonitor,741));
this.onMessage=qPl(function(){return $V(Q.global,"message")}).pipe(kV(this.performanceMonitor,740));
this.document=new K3(this.global,this);this.timeProvider=new DWk(new IHf(this.intrinsicFunctionNamespace,this.performanceMonitor),new FzE(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new pCk(new j9p(this),new skT(this),new MF(this,new ZOw(this)),new MF(this,new AVk(this)),new MF(this,new HI(this)))};
_.R(qc,ytp);qc.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(A){return A}};
var R1=function(A){var t=A.global;return!!A.global.HTMLFencedFrameElement&&!!t.fence&&typeof t.fence.reportEvent==="function"};
_.J=qc.prototype;_.J.reportFencedFrameEvent=function(A){R1(this)&&this.global.fence.reportEvent(A)};
_.J.getOnBackgrounded=function(){return this.onPageHide.pipe(kV(this.performanceMonitor,942),Rk(this.queue),jO(function(){}))};
_.J.postMessage=function(A,t,f){f=f===void 0?[]:f;this.global.postMessage(A,t,f)};
_.J.getWidth=function(){return xwq(this.global)?this.global.width:0};
_.J.getHeight=function(){return xwq(this.global)?this.global.height:0};
_.J.isMobile=function(){return SVw()||$Ww()};
var Kn=function(A,t){try{var f=yVg(t,A.global,A.isMobile());return{left:f.left,top:f.top,width:f.getWidth(),height:f.getHeight()}}catch(X){return rG}};
qc.prototype.validate=function(){var A=this.beaconFactory.isSupported()||R1(this);return this.global&&this.timeProvider.available()&&A};
var tep=function(A){return(A=$cu(A.global))?CO(A):null};
_.PV.Object.defineProperties(qc.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(A){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(A){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!xwq(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}}});_.OAC=!_.XG&&!_.cbp();var xpx=function(A){return A};var Y8q=function(A){return A.pipe(gk(function(t){var f=t.endOfSessionReason;var X;return((X=t.viewable)==null?void 0:X.extrapolateToNow().value)||f!=void 0}),fn(1),A5())};var k_b=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},rVx=function(A){var t=A.sequenceNumber.toString(10).padStart(2,"0");
t=""+A.startTime+t;A.sequenceNumber<99&&A.sequenceNumber++;return t};var Dpz=OV(zv(function(A){return A.endOfSessionReason===void 0}),jO(function(A){return Object.assign({},A,{timestamps:Ik(A)})}),gk(function(A){var t=A.viewable;
A=A.timestamps;var f;return(f=t==null?void 0:t.extrapolateUsingTimestampMap(A).value)!=null?f:!1}),jO(function(A){var t=A.beaconFactory;
var f=A.timestampedExposureHistory;var X=A.timeOnScreen;var Q=A.binaryContext;A=A.timestamps;if(t===void 0||f===void 0||X===void 0||Q===void 0)return!1;if(X.extrapolateUsingTimestampMap(A).value.every(function(q){return q>=0}))return!0;
f=f.map(function(q){return q.timestamp+":"+q.value}).join(",");
X=AZp({bin:Q,tos:X},A);t.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+X+("&eh="+f)).sendNow();return!0}),zv(function(A){return!A}),A5());var fMx=function(A){return{id:A.pingId,mcvt:A.maxConsecutiveViewTime,p:A.creativePosition,asp:A.adSpeedPosition,tm:A.totalMeasurementTime,tu:A.totalUnviewedTime,mtos:A.maxTimeOnScreen,tos:A.timeOnScreen,v:A.binaryVersion,bin:A.binaryContext,avms:A.measurementStrategy,bs:A.browserSize,mc:A.maximumExposure,"if":A.crossDomainIframeState,vu:A.delayedImpressionJsState,app:A.inApp,mse:A.mraidError,mtop:A.mraidSituation,itpl:A.injectedTemplateId,adk:A.adKey,exk:A.awbidKey,rs:A.requestSource,la:A.isLargeAd,
cr:A.isContentRecommendationAd,uach:A.userAgentClientHints,vs:A.viewState,r:A.reasonCode,pay:A.hasCpmavUrl,co:A.clientPingOrderCounter,rst:A.adRenderStartTime,rpt:A.adRenderPeriodTime,isd:A.initialScrollDepth,lsd:A.loadedScrollDepth,context:A.errorContext,msg:A.errorMessage,stack:A.errorStack,name:A.errorName,ec:A.hasElementChanged,sfr:A.strategyFailureReasons,met:A.creativeSearchResult,wmsd:A.webMeasurementStartDiagnostic,pv:A.pageVisible,epv:A.eosPageVisible,pbe:A.inStatefulBeaconExperiment,fle:A.inFetchLaterBeaconExperiment,
vae:A.inViewableAttributionExperiment,spb:A.supportsPendingBeacon,sfl:A.supportsFetchLater,ffslot:A.isFencedFrameSlotTurtlex,reach:A.sharedStorageReachMode,io2:A.v2VisibilityBitVector,rxdbg:A.rxDebugger,omida:A.omidAppId,omidp:A.omidPartner,omidpv:A.omidPartnerVersion,omidor:A.omidOcclusionReasons,omidv:A.omidVersion,omids:A.omidSessionType,omidam:A.omidAccessMode,omidct:A.omidCreativeType,omidia:A.omidInApp,omiddc:A.omidDeviceCategory,omidlat:A.omidLastActivity,omiddit:A.omidDeviceIdleTime,qid:A.errorEscapedQueryId}};var jhx=function(A){var t=[];return A.pipe(jO(function(f){var X=f.beaconFactory,Q=f.fetchBeaconFactory,q=f.timeOnScreen,e=f.timeOnScreenUrlPrefixes,G=f.payloadMapper,N=f.timeOnScreenPingId,z=f.timeOnScreenReason,T=f.urlSerializer,O=f.viewable,c=f.hasImpressionFired,B=f.inStatefulBeaconExperiment,h=f.supportsPendingBeacon,W=f.supportsFetchLater,L=f.turtlexReportEventData;if(!f.geometryMeasurable||!c||f.maxTimeOnScreen===void 0||q===void 0||e===void 0||G===void 0||N===void 0||T===void 0||X===void 0)return!1;
if(f.isTurtlex){if(z===void 0)return!1;e=f.reportFencedFrameEvent;if(!e)return!1;e({eventType:"active-view-time-on-screen",eventData:L!=null?L:"",destination:["buyer"]});return!0}if(!(B||W||z))return!1;L=Ik(f);var E;O=(E=O==null?void 0:O.extrapolateUsingTimestampMap(L).value)!=null?E:!1;E=T(Object.assign({},f,{pingId:N,viewState:O?4:3,reasonCode:z!=null?z:"u",payloadMapper:G,urlPrefixes:e}),L);if(B){for(;t.length>e.length;)f=void 0,(f=t.shift())==null||f.deactivate();E.forEach(function(S,Z){Z>=t.length?
t.push(X.makeBeacon(S)):t[Z].url=S});
return h&&Q&&z!==void 0?(E.forEach(function(S){Q.makeBeacon(S).sendNow()}),!0):z!==void 0}if(h&&Q&&z!==void 0)return E.forEach(function(S){Q.makeBeacon(S).sendNow()}),!0;
if(W&&Q){for(;t.length>e.length;)h=void 0,(h=t.shift())==null||h.deactivate();var D=T(Object.assign({},f,{pingId:N,viewState:O?4:3,reasonCode:z!=null?z:"u",payloadMapper:G,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),L)[0];E.forEach(function(S,Z){Z>=t.length?t.push(X.makeBeacon(D,{endOfSession:!0})):t[Z].url=D});
return z!==void 0?(E.forEach(function(S){Q.makeBeacon(S).sendNow()}),!0):z!==void 0}return z!==void 0?(E.forEach(function(S){X.makeBeacon(S).sendNow()}),!0):!1}),zv(function(f){return!f}),A5())};var V2u=OV(gk(function(A){return A.immediateUrlPrefixes!==void 0&&A.payloadMapper!==void 0&&A.urlSerializer!==void 0&&A.inferredPingId!==void 0&&A.beaconFactory!==void 0}),gk(function(A){return lMT(A)!==null}),e50(function(A){return A.activeViewUnmeasurableEvent},function(A){return A.emit}),jO(function(A){if(A.isTurtlex){var t=A.reportFencedFrameEvent;
if(t){var f;t({eventType:"active-view-unmeasurable",eventData:(f=A.turtlexReportEventData)!=null?f:"",destination:["buyer"]})}}else{f=void 0;var X=lMT(A);if(X==="x"){var Q,q=(Q=A.geometricMeasurementErrors)!=null?Q:A.contextValidationErrors;q&&(t=q.stack,f=q.message)}A.urlSerializer(Object.assign({},A,{urlPrefixes:A.immediateUrlPrefixes,payloadMapper:A.payloadMapper,pingId:A.inferredPingId,viewState:2,reasonCode:X,errorMessage:f,errorStack:t}),Ik(A)).forEach(function(e){A.beaconFactory.makeBeacon(e).sendNow()})}}),
fn(1),A5());var ND5=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var nks=OV(gk(function(A){return A.payloadMapper!==void 0&&A.immediateUrlPrefixes!==void 0&&A.urlSerializer!==void 0&&A.inferredPingId!==void 0&&A.beaconFactory!==void 0}),jO(function(A){return Object.assign({},A,{timestamps:Ik(A)})}),gk(function(A){var t=A.viewable;
var f=A.hasImpressionFired;A=A.timestamps;var X;return!!f&&((X=t==null?void 0:t.extrapolateUsingTimestampMap(A).value)!=null?X:!1)}),e50(function(A){return A.activeViewViewableEvent},function(A){return A.emit}),jO(function(A){var t=A.beaconFactory,f=A.turtlexReportEventData;
if(A.isTurtlex){var X=A.reportFencedFrameEvent;if(!X)return!1;X({eventType:"active-view-viewable",eventData:f!=null?f:"",destination:["buyer"]});return!0}f=A.urlSerializer(Object.assign({},A,{urlPrefixes:A.immediateUrlPrefixes,payloadMapper:A.payloadMapper,pingId:A.inferredPingId,viewState:4,reasonCode:"v"}),A.timestamps);(X=A.cpmavUrls)&&X.length>0&&A.viewUrlSerializer&&A.viewUrlSerializer(X,A).forEach(function(Q){t.makeBeacon(Q).sendNow()});
(X=A.viewableRelayUrls)&&X.length>0&&A.viewUrlSerializer&&A.viewUrlSerializer(X,A).forEach(function(Q){t.makeBeacon(Q).sendNow()});
f.forEach(function(Q){t.makeBeacon(Q,{attributionEnabled:A.isViewableAttributionEnabled}).sendNow()});
return!0}),zv(function(A){return!A}),A5());var fkx=jO(function(A){return[A.value.topWindowViewportExternalGeometry.width,A.value.topWindowViewportExternalGeometry.height]});var sP=function(A,t){this.callback=A;this.options=t;this.intersectionObserverV2=this.intersectionObserverV1=null},job=function(A,t){t?A.intersectionObserverV2||(t=Object.assign({},A.options,{delay:100,
trackVisibility:!0}),A.intersectionObserverV2=new IntersectionObserver(A.callback,t)):A.intersectionObserverV1||(A.intersectionObserverV1=new IntersectionObserver(A.callback,A.options))},cVE=function(A,t){A=t?A.intersectionObserverV2:A.intersectionObserverV1;
if(!A)throw new vV8;return A};
sP.prototype.observe=function(A,t){cVE(this,A).observe(t)};
sP.prototype.unobserve=function(A,t){cVE(this,A).unobserve(t)};
sP.prototype.disconnect=function(A){cVE(this,A).disconnect()};
sP.prototype.takeRecords=function(A){return cVE(this,A).takeRecords()};var bF5={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:rG,topWindowViewportExternalGeometry:rG,measurementRequests:new Cn,elementGeometrySourceName:"ns",elementGeometry:rG,intersectionGeometry:rG,viewportLocalAppOffset:{x:0,y:0}};var $4l=AV(OV(jO(function(A){var t;return(t=A.exposureOverride)!=null?t:VGb(A)}),jO(function(A){return isFinite(A)?A:0}))),kcb=AV(OV(jO(function(A){var t;
return(t=A.exposureOverride)!=null?t:VGb(A)}),jO(function(A){return isFinite(A)?A:-1})));var wU=function(A,t){this.a=A;this.b=t;if(A.clock.timeline!==t.clock.timeline)throw Error();};
wU.prototype.equivalentTo=function(A){return A instanceof wU?this.a.equivalentTo(A.a)&&this.b.equivalentTo(A.b):!1};
wU.prototype.extrapolateToTime=function(A){var t=this.a.extrapolateToTime(A).value,f=this.b.extrapolateToTime(A).value;return{timestamp:A,value:[t,f]}};
_.PV.Object.defineProperties(wU.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 A=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),t=this.a.lastMeasurement.timestamp.equals(A)?this.a.lastMeasurement.value:this.a.extrapolateToTime(A).value,f=this.b.lastMeasurement.timestamp.equals(A)?this.b.lastMeasurement.value:this.b.extrapolateToTime(A).value;return{timestamp:A,value:[t,f]}}}});var sL=function(A,t){this.input=A;this.mapFunction=t;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
sL.prototype.equivalentTo=function(A){return A instanceof sL?this.input.equivalentTo(A.input)&&this.mapFunction===A.mapFunction:!1};
sL.prototype.extrapolateToTime=function(A){A=this.input.extrapolateToTime(A);return{timestamp:A.timestamp,value:this.mapFunction(A.value)}};
_.PV.Object.defineProperties(sL.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var k6=function(){};
k6.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
k6.prototype.extrapolateUsingTimestampMap=function(A){var t=this.clock.timeline,f,X=(f=A.get(t))!=null?f:this.clock.now();A.set(t,X);return this.extrapolateToTime(X)};
k6.prototype.map=function(A){return new Bwp(this,A)};
k6.prototype.joinWith=function(A){return new Mei(this,A)};
var Mei=function(){wU.apply(this,arguments);this.map=k6.prototype.map;this.joinWith=k6.prototype.joinWith;this.extrapolateToNow=k6.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=k6.prototype.extrapolateUsingTimestampMap};
_.R(Mei,wU);var Bwp=function(){sL.apply(this,arguments);this.map=k6.prototype.map;this.joinWith=k6.prototype.joinWith;this.extrapolateToNow=k6.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=k6.prototype.extrapolateUsingTimestampMap};
_.R(Bwp,sL);var fA=function(A,t){this.lastMeasurement=t;this.extrapolateToNow=k6.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=k6.prototype.extrapolateUsingTimestampMap;this.map=k6.prototype.map;this.joinWith=k6.prototype.joinWith;this.clock=A};
fA.prototype.equivalentTo=function(A){return A.active};
fA.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.PV.Object.defineProperties(fA.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var t2b=jO(function(A){if(A.value.viewportGeometrySourceName==="omid"){if(A.value.elementGeometrySourceName==="nio")return"omio";if(A.value.elementGeometrySourceName==="geo")return"omgeo"}return A.value.elementGeometrySourceName==="geo"||A.value.elementGeometrySourceName==="nio"?A.value.viewportGeometrySourceName:A.value.elementGeometrySourceName});var of5=OV(gk(function(A){return!isNaN(A)}),lU(function(A,t){return isNaN(A)?t:Math.min(A,t)},NaN),XU());var HFp=AV(OV(jO(function(A){return A.intersectionGeometry.width*A.intersectionGeometry.height/(A.exposedViewportLocalGeometry.width*A.exposedViewportLocalGeometry.height)}),jO(function(A){return isFinite(A)?Math.min(1,A):0})));var A8T=OV(AV(jO(function(A){A=A.exposureOverride?A.elementGeometry.width*A.elementGeometry.height*A.exposureOverride/(A.topWindowViewportExternalGeometry.width*A.topWindowViewportExternalGeometry.height):A.intersectionGeometry.width*A.intersectionGeometry.height/(A.topWindowViewportExternalGeometry.width*A.topWindowViewportExternalGeometry.height);return isFinite(A)?A:0})));var q80=function(A,t){var f=this;this.timeProvider=A;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=t.pipe(XU()).subscribe(function(X){Upp(f);f.measurementRequestObserver=X})},ec5=function(A,t){Upp(A);
A.lastMeasurementRequest=A.timeProvider.setTimeout(function(){var f;return void((f=A.measurementRequestObserver)==null?void 0:f.next())},t)},Upp=function(A){A.lastMeasurementRequest!==null&&A.timeProvider.clearTimeout(A.lastMeasurementRequest);
A.lastMeasurementRequest=null};
q80.prototype.dispose=function(){Upp(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var CIT=function(){};var Lhg=function(A,t){this.context=A;this.strategies=t};
_.R(Lhg,CIT);Lhg.prototype.buildGeometrySource=function(A,t){var f=this.strategies.map(function(q){return q.buildGeometrySource(A,t)}),X=zcx(f.map(function(q){return q.geometrySource})),Q=X.capturedErrors.pipe(hLT());
return{geometrySource:X.chain.pipe(Rk(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Q,strategyErrors:X.capturedErrors}].concat(_.YV(f.map(function(q){return q.additionalOutputs}))))}};
var hLT=function(){return lU(function(A,t){t instanceof jn?A.push(t.measurementStrategyFailureReason):A.push(-1);return A},[])};var Ekg=function(A,t){this.context=A;this.poller=t};
_.R(Ekg,CIT);Ekg.prototype.buildGeometrySource=function(A,t){var f=Pk0(ias(this.context,this.poller),W$5(this.context,t.requestSource));return{geometrySource:uEx(A.measurableCreative.pipe(f),t.inApp),additionalOutputs:{}}};var p5x=function(A,t,f){f=f===void 0?nfu(A,t):f;this.context=A;this.intersectionObserverStrategy=f};
_.R(p5x,CIT);p5x.prototype.buildGeometrySource=function(A,t){var f=this.intersectionObserverStrategy(t.useV2);return{geometrySource:uEx(A.measurableCreative.pipe(f,D4b(this.context)),t.inApp),additionalOutputs:{}}};var RLS=function(A,t,f){var X=X===void 0?Symbol():X;this.element=A;this.immediateUrls=t;this.timeOnScreenUrls=f;this.symbol=X};var Qhx=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Cku=Object.freeze([1,.75,Qhx.exposureThreshold,Qhx.largeAdExposureThreshold,0]);var DCb=function(A,t){t=t===void 0?36E5:t;var f=f===void 0?!0:f;this.creatives=new Cn;this.elementsToUnregister=new Cn;this.elementMap=new Map;var X=new qc(window,null);X.beaconFactory=new MF(X,new HI(X));vkx(X,this.creatives,this.elementsToUnregister,A,t,f).subscribe()},xCu=function(A,t,f,X){if(!A.elementMap.has(t)){var Q=new ak(t);
A.elementMap.set(t,Q);A.creatives.next(new RLS(Q,f,X))}},I5q=function(A,t){A.elementsToUnregister.next(t);
var f=A.elementMap.get(t);f!==void 0&&(f.release(),A.elementMap.delete(t))};var YQ5=function(A){var t=A.url;A=A.uaDataValues;this.JSC$9559_url_=t;this.uaDataValues_=A;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var f=/[?&]([^&=]+)=([^&]*)/g;A=f.exec(t);)this.urlParamValues_[A[1]]=A[2]},Vvg=function(A){A=A.uaDataValues_;
if(!A)return"";var t=UB("uap",A.platform)+UB("uapv",A.platformVersion)+UB("uafv",A.uaFullVersion)+UB("uaa",A.architecture)+UB("uam",A.model)+UB("uab",A.bitness);A.fullVersionList&&(t+="&uafvl="+encodeURIComponent(A.fullVersionList.map(function(f){return encodeURIComponent(f.brand)+";"+encodeURIComponent(f.version)}).join("|")));
A.wow64!=null&&(t+="&uaw="+Number(A.wow64));return t.slice(1)};var mcE=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(mcE,_.e3);mcE.prototype.getId=function(){return _.Wz(this,1)};var rU=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(rU,_.e3);rU.prototype.getSeconds=function(){return RD(this,1)};
rU.prototype.setSeconds=function(A){return _.rd(this,1,uy(A),"0")};_.bM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(_.bM,_.e3);_.bM.prototype.getSeconds=function(){return RD(this,1)};
_.bM.prototype.setSeconds=function(A){return _.rd(this,1,uy(A),"0")};
_.bAp=function(A){var t=Number(vz(A,1));A=_.Pf(A,2);return new Date(t*1E3+A/1E6)};var AU=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(AU,_.e3);AU.prototype.getUrl=function(){return _.Wz(this,1)};
AU.prototype.setUrl=function(A){return _.jM(this,1,A)};
AU.prototype.getHeight=function(){return _.Pf(this,2)};
AU.prototype.getWidth=function(){return _.Pf(this,3)};var tU=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(tU,_.e3);tU.prototype.getAspectRatio=function(){return ma(this,1)};
tU.prototype.getDuration=function(){return _.Mq(this,rU,2)};var W7i=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(W7i,_.e3);var yVS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(yVS,_.e3);var vCl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(vCl,_.e3);var L7f=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(L7f,_.e3);var pfp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(pfp,_.e3);var ECK=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(ECK,_.e3);var nCT=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(nCT,_.e3);var Dcw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Dcw,_.e3);var F7b=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(F7b,_.e3);var f_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(f_,_.e3);var XZ=[2,4,5,6,7];var IAp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(IAp,_.e3);var M1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(M1,_.e3);_.J=M1.prototype;_.J.getId=function(){return _.Mq(this,mcE,1)};
_.J.getName=function(){return _.Wz(this,2)};
_.J.setDescription=function(A){return _.jM(this,3,A)};
_.J.getUrl=function(){return _.Wz(this,8)};
_.J.setUrl=function(A){return _.jM(this,8,A)};
var QW=function(A){return _.Nc(A,AU,10,_.uI())};
M1.prototype.getOwner=function(A){return _.IwK(this,40,A)};
var qU=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(qU,_.e3);_.JU=[0,dV,R3k];_.UY=[0,dV,R3k];var xck=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(xck,_.e3);var e$=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(e$,_.e3);e$.prototype.getStatus=function(){return _.ye(this,1)};
e$.prototype.removeItem=function(A){return n88(this,2,A)};var jyk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(jyk,_.e3);jyk.prototype.getName=function(){return _.Wz(this,8)};var GW=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(GW,_.e3);GW.prototype.getCommand=function(){return _.ye(this,1)};
GW.prototype.getSource=function(){return _.Mq(this,jyk,2)};
GW.prototype.setVisible=function(A){return _.CG(this,5,A)};
GW.prototype.removeItem=function(A){return n88(this,7,A)};var YBb=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(YBb,_.e3);YBb.prototype.getCommand=function(){return _.ye(this,1)};
YBb.prototype.removeItem=function(A){return n88(this,4,A)};
var VeT=_.Cb(YBb);var l6=function(A,t,f){f=f===void 0?Error():f;var X=Error.call(this);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.code=A;t+=":";f instanceof Error?(this.message=t+f.message,this.stack=f.stack||""):(this.message=t+String(f),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(l6,Error);_.DA=function(){this.JSC$9617_disposed_=this.JSC$9617_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.DA.prototype.JSC$9617_disposed_=!1;_.DA.prototype.isDisposed=function(){return this.JSC$9617_disposed_};
_.DA.prototype.dispose=function(){this.JSC$9617_disposed_||(this.JSC$9617_disposed_=!0,this.disposeInternal())};
_.DA.prototype[Symbol.dispose]=function(){this.dispose()};
_.hV=function(A,t){A.addOnDisposeCallback(_.l0(_.ee,t))};
_.DA.prototype.addOnDisposeCallback=function(A,t){this.JSC$9617_disposed_?t!==void 0?A.call(t):A():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),t&&(A=A.bind(t)),this.onDisposeCallbacks_.push(A))};
_.DA.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var NU=function(A){_.DA.call(this);this.wpc=A};
_.R(NU,_.DA);NU.prototype.h9s=function(){return this.wpc.f()};
NU.prototype.so6=function(A){return this.wpc.c(A)};
NU.prototype.hJ=function(A){return this.wpc.m($pu(A))};
NU.prototype.dlj=function(A){return this.wpc.mws($pu(A))};
var lI=function(A){_.DA.call(this);var t=this;this.vm=A;this.cQG="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.iJW=void 0;this.mLg=this.vm.p;this.rkJ=this.wPF.bind(this);this.addOnDisposeCallback(function(){return void ZAp(t)})};
_.R(lI,_.DA);var oC8=function(A){var t;return _.l(function(f){if(f.nextAddress==1){if(!A.vm.wpc)throw new l6(30,"NWA");return A.rBY?f.return(A.rBY):f.yield(A.vm.wpc(),2)}t=f.yieldResult;A.rBY=new NU(t);return f.return(A.rBY)})};
lI.prototype.snapshot=function(A){return this.vm.s(Object.assign({},A.yj&&{c:A.yj},A.joa&&{s:A.joa},A.x1Y!==void 0&&{p:A.x1Y}))};
lI.prototype.wPF=function(A){this.vm.e(A)};
lI.prototype.yvq=function(A,t){return this.vm.c(A,t,!1)};
var ZAp=function(A){A.iJW!==void 0&&(A.cQG.forEach(function(t){var f;(f=A.iJW)==null||f.removeEventListener(t,A.rkJ)}),A.iJW=void 0)};
lI.prototype.uY2=function(){return this.vm.l()};var u6=function(){_.DA.apply(this,arguments);this.pLJ=1};
_.R(u6,_.DA);u6.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.pLJ++;return this};
u6.prototype.dispose=function(){--this.pLJ||_.DA.prototype.dispose.call(this)};var dcS=function(A){this.xvV=A;A.addNewEventMetric("/client_streamz/bg/frs",_.OB("mk"))};
dcS.prototype.record=function(A,t){this.xvV.record("/client_streamz/bg/frs",A,t)};
var SB8=function(A){this.yxG=A;A.addNewEventMetric("/client_streamz/bg/wrl",_.OB("mn"),iI("ac"),iI("sc"),_.OB("rk"),_.OB("mk"))};
SB8.prototype.record=function(A,t,f,X,Q,q){this.yxG.record("/client_streamz/bg/wrl",A,t,f,X,Q,q)};
var $cK=function(A){this.cx5=A;A.addNewCounter("/client_streamz/bg/ec",_.OB("en"),_.OB("mk"))};
$cK.prototype.increment=function(A,t){this.cx5.JSC$9870_incrementCounter("/client_streamz/bg/ec",A,t)};
var HAS=function(A){this.w3n=A;A.addNewEventMetric("/client_streamz/bg/el",_.OB("en"),_.OB("mk"))};
HAS.prototype.record=function(A,t,f){this.w3n.record("/client_streamz/bg/el",A,t,f)};
var aAT=function(A){this.av4=A;A.addNewCounter("/client_streamz/bg/cec",iI("ec"),_.OB("mk"))};
aAT.prototype.increment=function(A,t){this.av4.JSC$9870_incrementCounter("/client_streamz/bg/cec",A,t)};
var K7b=function(A){this.qWV=A;A.addNewCounter("/client_streamz/bg/po/csc",iI("cs"),_.OB("mk"))};
K7b.prototype.increment=function(A,t){this.qWV.JSC$9870_incrementCounter("/client_streamz/bg/po/csc",A,t)};
var gCf=function(A){this.iCl=A;A.addNewCounter("/client_streamz/bg/po/ctav",_.OB("av"),_.OB("mk"))};
gCf.prototype.increment=function(A,t){this.iCl.JSC$9870_incrementCounter("/client_streamz/bg/po/ctav",A,t)};
var wf8=function(A){this.hMn=A;A.addNewCounter("/client_streamz/bg/po/cwsc",_.OB("su"),_.OB("mk"))};
wf8.prototype.increment=function(A,t){this.hMn.JSC$9870_incrementCounter("/client_streamz/bg/po/cwsc",A,t)};var Bis=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Bis,_.e3);var cez=function(A,t){return _.km(A,3,t,Mil)};var syE=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(syE,_.e3);var k_f=[1,2,3];var rVT=[0,k_f,_.kp,mdT,y_E];var AZT=[0,_.rV,[0,Zr,_.oD]];var tGS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(tGS,_.e3);var fMw=[1,2,3];var XmS=[0,fMw,CyT,iwl,_.A1,AZT];var Qo7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Qo7,_.e3);var qHw=[0,_.rV,rVT,XmS];var JZE=[0,_.wV];var U4K=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(U4K,_.e3);var e5p=[0,_.wV,-1,_.Kd];var Gcp=[0,_.wV,-1,_.aD,_.Kd];var lMi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(lMi,_.e3);var NDl=[1,2,3];var uNk=[0,NDl,_.A1,e5p,_.A1,Gcp,_.A1,JZE];var z58=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(z58,_.e3);z58.prototype.JSC$9690_serializeBinary=aFz([0,_.wV,uNk,vmf,_.rV,qHw,bwp,_.W3T]);var Pxl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Pxl,_.e3);var OFp=function(A){var t=new z58;t=_.Dg(t,1,A.JSC$9806_metricName);var f=TDw(A);t=_.km(t,3,f,_.iy);f=[];for(var X=[],Q=_.U(A.cellMap.keys()),q=Q.next();!q.done;q=Q.next())X.push(q.value.split(","));for(Q=0;Q<X.length;Q++){q=X[Q];for(var e=A.cellType,G=A.getCells(q)||[],N=[],z=0;z<G.length;z++){var T=G[z],O=T&&T.cellValue;T=new tGS;switch(e){case 3:O=Number(O);Number.isFinite(O)&&vQ(T,1,fMw,uy(O));break;case 2:vQ(T,2,fMw,_.KS(Number(O)))}N.push(T)}e=N;for(G=0;G<e.length;G++){N=e[G];z=new Qo7;N=_.bi(z,
2,N);z=[];T=iFi(A);for(O=0;O<T.length;O++){var c=T[O],B=q[O],h=new syE;switch(c){case 3:vQ(h,1,k_f,BA(String(B)));break;case 2:c=Number(B);Number.isFinite(c)&&vQ(h,2,k_f,_.U2(c));break;case 1:vQ(h,3,k_f,OSx(B==="true"))}z.push(h)}Bz(N,1,z);f.push(N)}}Bz(t,4,f);return t};var cZl=function(A){if(!A)return"";if(/^about:(?:blank|srcdoc)$/.test(A))return window.origin||"";A.indexOf("blob:")===0&&(A=A.substring(5));A=A.split("#")[0].split("?")[0];A=A.toLowerCase();A.indexOf("//")==0&&(A=window.location.protocol+A);/^[\w\-]*:\/\//.test(A)||(A=window.location.href);var t=A.substring(A.indexOf("://")+3),f=t.indexOf("/");f!=-1&&(t=t.substring(0,f));f=A.substring(0,A.indexOf("://"));if(!f)throw Error("qa`"+A);if(f!=="http"&&f!=="https"&&f!=="chrome-extension"&&f!=="moz-extension"&&
f!=="file"&&f!=="android-app"&&f!=="chrome-search"&&f!=="chrome-untrusted"&&f!=="chrome"&&f!=="app"&&f!=="devtools")throw Error("ra`"+f);A="";var X=t.indexOf(":");if(X!=-1){var Q=t.substring(X+1);t=t.substring(0,X);if(f==="http"&&Q!=="80"||f==="https"&&Q!=="443")A=":"+Q}return f+"://"+t+A};var MGl=function(A,t,f){var X=String(_.Xb.location.href);return X&&A&&t?[t,BDC(cZl(X),A,f||null)].join(" "):null},BDC=function(A,t,f){var X=[],Q=[];
if((Array.isArray(f)?2:1)==1)return Q=[t,A],_.X_(X,function(G){Q.push(G)}),Cx7(Q.join(" "));
var q=[],e=[];_.X_(f,function(G){e.push(G.key);q.push(G.value)});
f=Math.floor((new Date).getTime()/1E3);Q=q.length==0?[f,t,A]:[q.join(":"),f,t,A];_.X_(X,function(G){Q.push(G)});
A=Cx7(Q.join(" "));A=[f,A];e.length==0||A.push(e.join(""));return A.join("_")},Cx7=function(A){var t=r8g();
t.update(A);return t.digestString().toLowerCase()};var zW=function(A){this.JSC$9701_document_=A||{cookie:""}},h5C;
_.J=zW.prototype;_.J.isEnabled=function(){if(!_.Xb.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};
_.J.set=function(A,t,f){var X=!1;if(typeof f==="object"){var Q=f.sameSite;X=f.secure||!1;var q=f.domain||void 0;var e=f.path||void 0;var G=f.maxAge}if(/[;=\s]/.test(A))throw Error("sa`"+A);if(/[;\r\n]/.test(t))throw Error("ta`"+t);G===void 0&&(G=-1);f=q?";domain="+q:"";e=e?";path="+e:"";X=X?";secure":"";G=G<0?"":G==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+G*1E3)).toUTCString();this.JSC$9701_document_.cookie=A+"="+t+f+e+G+X+(Q!=null?";samesite="+Q:"")};
_.J.get=function(A,t){for(var f=A+"=",X=(this.JSC$9701_document_.cookie||"").split(";"),Q=0,q;Q<X.length;Q++){q=zz(X[Q]);if(q.lastIndexOf(f,0)==0)return q.slice(f.length);if(q==A)return""}return t};
_.J.remove=function(A,t,f){var X=this.containsKey(A);this.set(A,"",{maxAge:0,path:t,domain:f});return X};
_.J.getKeys=function(){return h5C(this).keys};
_.J.getValues=function(){return h5C(this).values};
_.J.isEmpty=function(){return!this.JSC$9701_document_.cookie};
_.J.getCount=function(){return this.JSC$9701_document_.cookie?(this.JSC$9701_document_.cookie||"").split(";").length:0};
_.J.containsKey=function(A){return this.get(A)!==void 0};
_.J.containsValue=function(A){for(var t=h5C(this).values,f=0;f<t.length;f++)if(t[f]==A)return!0;return!1};
_.J.clear=function(){for(var A=h5C(this).keys,t=A.length-1;t>=0;t--)this.remove(A[t])};
h5C=function(A){A=(A.JSC$9701_document_.cookie||"").split(";");for(var t=[],f=[],X,Q,q=0;q<A.length;q++)Q=zz(A[q]),X=Q.indexOf("="),X==-1?(t.push(""),f.push(Q)):(t.push(Q.substring(0,X)),f.push(Q.substring(X+1)));return{keys:t,values:f}};
_.E0=new zW(typeof document=="undefined"?null:document);var oDz,R5C;oDz=function(){var A=_.Xb.__SAPISID||_.Xb.__APISID||_.Xb.__3PSAPISID||_.Xb.__1PSAPISID||_.Xb.__OVERRIDE_SID;if(A)return!0;typeof document!=="undefined"&&(A=new zW(document),A=A.get("SAPISID")||A.get("APISID")||A.get("__Secure-3PAPISID")||A.get("__Secure-1PAPISID"));return!!A};
R5C=function(A,t,f,X){(A=_.Xb[A])||typeof document==="undefined"||(A=(new zW(document)).get(t));return A?MGl(A,f,X):null};
_.Pob=function(A){var t=cZl(_.Xb==null?void 0:_.Xb.location.href),f=[];if(oDz()){t=t.indexOf("https:")==0||t.indexOf("chrome-extension:")==0||t.indexOf("chrome-untrusted://new-tab-page")==0||t.indexOf("moz-extension:")==0;var X=t?_.Xb.__SAPISID:_.Xb.__APISID;X||typeof document==="undefined"||(X=new zW(document),X=X.get(t?"SAPISID":"APISID")||X.get("__Secure-3PAPISID"));(X=X?MGl(X,t?"SAPISIDHASH":"APISIDHASH",A):null)&&f.push(X);t&&((t=R5C("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",A))&&f.push(t),
(A=R5C("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",A))&&f.push(A))}return f.length==0?null:f.join(" ")};var m4T=function(){this.minSize=1024};
m4T.prototype.compress=function(A){var t,f,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:return t=new CompressionStream("gzip"),f=(new Response(t.readable)).arrayBuffer(),X=t.writable.getWriter(),q.yield(X.write((new TextEncoder).encode(A)),2);case 2:return q.yield(X.close(),3);case 3:return Q=Uint8Array,q.yield(f,4);case 4:return q.return(new Q(q.yieldResult))}})};
m4T.prototype.isSupported=function(A){return A<this.minSize?!1:typeof CompressionStream!=="undefined"};var bFC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(bFC,_.e3);var P_=function(A,t){this.intervalMs=A;this.callback=t;this.enabled=!1;this.nowFn=function(){return _.k5()};
this.lastTimeMs=this.nowFn()};
P_.prototype.setInterval=function(A){this.intervalMs=A;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
P_.prototype.start=function(){var A=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){A.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
P_.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
P_.prototype.tick=function(){var A=this;if(this.enabled){var t=Math.max(this.nowFn()-this.lastTimeMs,0);t<this.intervalMs*.8?this.timer=setTimeout(function(){A.tick()},this.intervalMs-t):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var W$C=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(W$C,_.e3);var yZp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(yZp,_.e3);var vfS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(vfS,_.e3);vfS.prototype.getTransmissionType=function(){return _.ye(this,1)};var Xxg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Xxg,_.e3);var TW=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(TW,_.e3);var fUz=function(A){Bz(Qjp,1,A)};
TW.prototype.getModel=function(){return _.Wz(this,6)};
var L$8=_.Cb(TW);var pmp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(pmp,_.e3);var Aeg=["platform","platformVersion","architecture","model","uaFullVersion"],Qjp=new TW,tJ5=null;var i6=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(i6,_.e3);var EfT=function(A){return _.CU(A,1,1)};var nfK=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A,4)};
_.R(nfK,_.e3);_.OY=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A,36)};
_.R(_.OY,_.e3);_.OY.prototype.getExperimentIds=function(){return _.Mq(this,bFC,16)};var D4f=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A,19)};
_.R(D4f,_.e3);D4f.prototype.setLogSource=function(A){return _.CU(this,2,A)};
D4f.prototype.setScheduler=function(A){return _.CU(this,10,A)};var IM8=function(A,t){this.isServiceWorkerScope=t=t===void 0?!1:t;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new D4f;Number.isInteger(A)&&this.logRequest.setLogSource(A);t||(this.locale=document.documentElement.getAttribute("lang"));F$K(this,new i6)};
IM8.prototype.setLogSource=function(A){this.logRequest.setLogSource(A);return this};
var F$K=function(A,t){_.bi(A.logRequest,1,t);_.ye(t,1)||EfT(t);A.isServiceWorkerScope||(t=c_(A),_.Wz(t,5)||_.Dg(t,5,A.locale));A.uach&&(t=c_(A),_.Mq(t,TW,9)||_.bi(t,9,A.uach))},x4C=function(A,t){A.transmissionType=t},jof=function(A){var t=t===void 0?Aeg:t;
var f=A.isServiceWorkerScope?void 0:dG();f?q0z(f,t).then(function(X){A.uach=L$8(X!=null?X:"[]");X=c_(A);_.bi(X,9,A.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},c_=function(A){var t=_.Mq(A.logRequest,i6,1);
t||(t=new i6,F$K(A,t));A=t;t=_.Mq(A,pmp,11);t||(t=new pmp,_.bi(A,11,t));return t};
IM8.prototype.build=function(A,t,f,X,Q,q){t=t===void 0?0:t;f=f===void 0?0:f;X=X===void 0?null:X;Q=Q===void 0?0:Q;q=q===void 0?0:q;if(!this.isServiceWorkerScope){var e=c_(this);var G=new vfS;G=_.CU(G,1,this.transmissionType);G=_.cf(G,2,this.isFinal);f=_.E1(G,3,f>0?f:void 0);f=_.E1(f,4,Q>0?Q:void 0);f=_.E1(f,5,q>0?q:void 0);Q=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q=Q[_.qb]|0;f=ml(f,q)?f:vmb(f,Q,q)?y_s(f,Q):new f.constructor(Ym(Q,q,!0));_.bi(e,10,f)}e=this.logRequest.clone();f=Date.now().toString();
e=_.hq(e,4,uy(f));A=A.slice();A=Bz(e,3,A);X&&(e=new W$C,X=_.E1(e,13,X),e=new yZp,X=_.bi(e,2,X),e=new nfK,X=_.bi(e,1,X),X=_.CU(X,2,9),_.bi(A,18,X));t&&_.Ii(A,14,t);return A};Bf.prototype.currBackoffCount_=0;Bf.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Bf.prototype.getValue=function(){return this.currValue_};
var YHb=function(A){A.currBaseValue_=Math.min(A.maxValue_,A.currBaseValue_*A.backoffFactor_);A.currValue_=Math.min(A.maxValue_,A.currBaseValue_+(A.randomFactor_?Math.round(A.randomFactor_*(Math.random()-.5)*2*A.currBaseValue_):0));A.currBackoffCount_++};var Ddl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A,8)};
_.R(Ddl,_.e3);var VGp=_.Cb(Ddl);var F3k=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(F3k,_.e3);var B_;B_=new Icf;var MU=function(A){_.DA.call(this);var t=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9779_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$9779_sendBeaconApiEnabled=!1;this.logSource=A.logSource;this.getAuthHeaderValue=
A.getAuthHeaderValue||function(){};
this.logRequestBuilder=new IM8(A.logSource,A.isServiceWorkerScope);this.network=A.network||null;this.productID=A.productID||null;this.bufferSize=1E3;this.clearcutUrl=A.urlOverride||null;this.sessionIndex=A.sessionIndex||null;this.disableAutomaticFlush=A.disableAutomaticFlush||!1;this.withCredentials=!A.disableWithCredentials;this.isServiceWorkerScope=A.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!dG()&&!!dG().navigator&&dG().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(ZFS())).searchParams&&!!(new URL(ZFS())).searchParams.set;var f=EfT(new i6);F$K(this.logRequestBuilder,f);this.flushBackoff=new Bf(1E4,3E5,.1);A=ofl(this,A.backgroundJobDeferrer);this.JSC$9779_flushTimer=new P_(this.flushBackoff.getValue(),A);this.backupTimer=new P_(6E5,A);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){d4p(t);
var X;(X=t.metalogService)==null||X.flush()}}),document.addEventListener("pagehide",function(){d4p(t);
var X;(X=t.metalogService)==null||X.flush()}))};
_.R(MU,_.DA);var ofl=function(A,t){return A.isBrowserSupported?t?function(){t().then(function(){A.flush()})}:function(){A.flush()}:function(){}};
MU.prototype.disposeInternal=function(){d4p(this);this.JSC$9779_flushTimer.stop();this.backupTimer.stop();_.DA.prototype.disposeInternal.call(this)};
var SHb=function(A){A.clearcutUrl||(A.clearcutUrl=ZFS());try{return(new URL(A.clearcutUrl)).toString()}catch(t){return(new URL(A.clearcutUrl,dG().location.origin)).toString()}};
MU.prototype.dispatch=function(A){if(A instanceof _.OY)this.log(A);else try{var t=new _.OY,f=A.serialize();var X=_.Dg(t,8,f);this.log(X)}catch(Q){hU(this,4,1)}};
var hU=function(A,t,f){A.metalogService&&A.metalogService.increment(t,f)};
MU.prototype.log=function(A){hU(this,2,1);if(this.isBrowserSupported){A=A.clone();var t=this.sequencePosition++;A=_.Ii(A,21,t);this.componentId&&_.Dg(A,26,this.componentId);t=A;if(Iwu(_.zR(t,1))==null){var f=Date.now();f=Number.isFinite(f)?f.toString():"0";_.hq(t,1,uy(f))}_.Flu(_.zR(t,15))!=null||_.Ii(t,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(f=this.experimentIds.clone(),_.bi(t,16,f));hU(this,1,1);t=this.pendingEvents.length-this.bufferSize+1;t>0&&(this.pendingEvents.splice(0,t),
this.numLogsDroppedSinceLastFlush+=t,hU(this,3,t));this.pendingEvents.push(A);this.disableAutomaticFlush||this.JSC$9779_flushTimer.enabled||this.JSC$9779_flushTimer.start()}};
MU.prototype.flush=function(A,t){var f=this;if(this.pendingEvents.length===0)A&&A();else if(this.JSC$9779_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,$4b(this);else{var X=Date.now();if(this.noFlushUntilMs>X&&this.startWaitingMs<X)t&&t("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?x4C(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Q=this.pendingEvents.length,
q=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),e=this.getAuthHeaderValue();if(e&&this.lastFailedAuth===e)t&&t("stale-auth-token");else{this.pendingEvents=[];this.JSC$9779_flushTimer.enabled&&this.JSC$9779_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;X=q.serialize();var G;this.JSC$9779_compressor&&this.JSC$9779_compressor.isSupported(X.length)&&
(G=this.JSC$9779_compressor.compress(X));var N=HFT(this,X,e),z=function(c){f.flushBackoff.reset();f.JSC$9779_flushTimer.setInterval(f.flushBackoff.getValue());if(c){var B=null;try{var h=JSON.stringify(JSON.parse(c.replace(")]}'\n","")));B=VGp(h)}catch(W){}B&&(c=Number(RD(B,1,_.x8("-1"))),c>0&&(f.startWaitingMs=Date.now(),f.noFlushUntilMs=f.startWaitingMs+c),XAx(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B_.fieldIndex),tjT(B,B_.fieldIndex),B=B_.ctor?B_.getExtensionFn(B,B_.ctor,B_.fieldIndex,
B_.JSC$8959_hasMessageId):B_.getExtensionFn(B,B_.fieldIndex,null,B_.JSC$8959_hasMessageId),B=B===null?void 0:B)&&(B=_.Pf(B,1,-1),B!==-1&&(f.flushBackoff=new Bf(B<1?1:B,3E5,.1),f.JSC$9779_flushTimer.setInterval(f.flushBackoff.getValue())))}A&&A();f.numRetriesSinceLastSuccessfulFlush=0},T=function(c,B){var h=_.Nc(q,_.OY,3,_.uI());
var W=Number(RD(q,14));YHb(f.flushBackoff);f.JSC$9779_flushTimer.setInterval(f.flushBackoff.getValue());c===401&&e&&(f.lastFailedAuth=e);W&&(f.numLogsDroppedSinceLastFlush+=W);B===void 0&&(B=f.isRetryable(c));B&&(f.pendingEvents=h.concat(f.pendingEvents),f.disableAutomaticFlush||f.JSC$9779_flushTimer.enabled||f.JSC$9779_flushTimer.start());hU(f,7,1);t&&t("net-send-failed",c);++f.numRetriesSinceLastSuccessfulFlush},O=function(){f.network&&f.network.send(N,z,T)};
G?G.then(function(c){hU(f,5,Q);N.requestHeaders["Content-Encoding"]="gzip";N.requestHeaders["Content-Type"]="application/binary";N.body=c;N.bodyType=2;O()},function(){hU(f,6,Q);
O()}):O()}}}};
var HFT=function(A,t,f){f=f===void 0?null:f;var X=X===void 0?A.withCredentials:X;var Q={},q=new URL(SHb(A));f&&(Q.Authorization=f);A.sessionIndex&&(Q["X-Goog-AuthUser"]=A.sessionIndex,q.searchParams.set("authuser",A.sessionIndex));A.pageId&&(Object.defineProperty(Q,"X-Goog-PageId",{value:A.pageId}),q.searchParams.set("pageId",A.pageId));return{url:q.toString(),body:t,bodyType:1,requestHeaders:Q,requestType:"POST",withCredentials:X,timeoutMillis:A.timeoutMillis}},d4p=function(A){A.logRequestBuilder.isFinal=
!0;
A.flush();A.logRequestBuilder.isFinal=!1},$4b=function(A){aMi(A,function(t,f){t=new URL(t);
t.searchParams.set("format","json");var X=!1;try{X=dG().navigator.sendBeacon(t.toString(),f.serialize())}catch(Q){}X||(A.isSendBeaconSupported=!1);return X})},aMi=function(A,t){if(A.pendingEvents.length!==0){var f=new URL(SHb(A));
f.searchParams.delete("format");var X=A.getAuthHeaderValue();X&&f.searchParams.set("auth",X);f.searchParams.set("authuser",A.sessionIndex||"0");for(X=0;X<10&&A.pendingEvents.length;++X){var Q=A.pendingEvents.slice(0,32),q=A.logRequestBuilder.build(Q,A.numLogsDroppedSinceLastFlush,A.numRetriesSinceLastSuccessfulFlush,A.productID,A.persistedLogRecoveredCount,A.persistedLogExpiredCount);if(!t(f.toString(),q)){++A.numRetriesSinceLastSuccessfulFlush;break}A.numLogsDroppedSinceLastFlush=0;A.numRetriesSinceLastSuccessfulFlush=
0;A.persistedLogRecoveredCount=0;A.persistedLogExpiredCount=0;A.pendingEvents=A.pendingEvents.slice(Q.length)}A.JSC$9779_flushTimer.enabled&&A.JSC$9779_flushTimer.stop()}};
MU.prototype.isRetryable=function(A){return 500<=A&&A<600||A===401||A===0};
var ZFS=function(){return"https://play.google.com/log?format=json&hasfast=true"};var K$C=function(){this.abortSupported=typeof AbortController!=="undefined"};
K$C.prototype.send=function(A,t,f){var X=this,Q,q,e,G,N,z,T,O,c,B;return _.l(function(h){switch(h.nextAddress){case 1:return q=(Q=X.abortSupported?new AbortController:void 0)?setTimeout(function(){Q.abort()},A.timeoutMillis):void 0,_.ht(h,2,3),e=Object.assign({},{method:A.requestType,
headers:Object.assign({},A.requestHeaders)},A.body&&{body:A.body},A.withCredentials&&{credentials:"include"},{signal:A.timeoutMillis&&Q?Q.signal:null}),h.yield(fetch(A.url,e),5);case 5:G=h.yieldResult;if(G.status!==200){(N=f)==null||N(G.status);h.jumpTo(3);break}if((z=t)==null){h.jumpTo(7);break}return h.yield(G.text(),8);case 8:z(h.yieldResult);case 7:case 3:_.mz(h);clearTimeout(q);_.yP(h,0);break;case 2:T=_.vC(h);switch((O=T)==null?void 0:O.name){case "AbortError":(c=f)==null||c(408);break;default:(B=
f)==null||B(400)}h.jumpTo(3)}})};
K$C.prototype.getTransmissionType=function(){return 4};_.CA=function(A,t){t=t===void 0?"0":t;_.DA.call(this);this.logSource=A;this.sessionIndex=t;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9797_clearExperimentIds=this.productID=null;this.JSC$9797_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.R(_.CA,_.DA);var Tiq=function(A,t){A.buildLabel=t;return A},P2g=function(A,t){A.network=t;
return A},OkT=function(A,t){A.JSC$9797_clearExperimentIds=t},zT5=function(A){A.JSC$9797_sendBeaconApiEnabled=!0;
return A};
_.CA.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.CA.prototype.build=function(){this.network||(this.network=new K$C);var A=new MU({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.Pob,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.hV(this,A);if(this.buildLabel){var t=this.buildLabel,f=
c_(A.logRequestBuilder);_.Dg(f,7,t)}A.JSC$9779_compressor=new m4T;this.componentId&&(A.componentId=this.componentId);this.productID&&(A.productID=this.productID);this.pageId&&(A.pageId=this.pageId);this.JSC$9797_clearExperimentIds&&((f=this.JSC$9797_clearExperimentIds)?(A.experimentIds||(A.experimentIds=new bFC),t=A.experimentIds,f=f.serialize(),_.Dg(t,4,f)):A.experimentIds&&_.hq(A.experimentIds,4));this.JSC$9797_sendBeaconApiEnabled&&(A.JSC$9779_sendBeaconApiEnabled=A.isSendBeaconSupported);jof(A.logRequestBuilder);
this.bufferSize&&(A.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(A);return A};var MJl=function(A,t,f,X,Q,q,e){A=A===void 0?-1:A;t=t===void 0?"":t;f=f===void 0?"":f;X=X===void 0?!1:X;Q=Q===void 0?"":Q;_.DA.call(this);this.logSource=A;this.componentId=t;q?t=q:(A=new _.CA(A,"0"),A.componentId=t,_.hV(this,A),f!==""&&(A.destinationUrl=f),X&&(A.serviceWorkerScopeEnabled=!0),Q&&Tiq(A,Q),e&&P2g(A,e),t=A.build());this.JSC$9801_transport=t};
_.R(MJl,_.DA);MJl.prototype.flush=function(A){A=A||[];if(A.length){for(var t=new Pxl,f=[],X=0;X<A.length;X++){var Q=A[X],q=OFp(Q);f.push(q);Q.clear()}Bz(t,1,f);this.JSC$9801_transport.dispatch(t);this.JSC$9801_transport.flush()}};var gfT=function(A){this.cellValue=A};var Rb=function(A,t,f){this.JSC$9806_metricName=A;this.cellType=t;this.fields=f||[];this.cellMap=new Map},iFi=function(A){return A.fields.map(function(t){return t.fieldType})},TDw=function(A){return A.fields.map(function(t){return t.fieldName})};
_.J=Rb.prototype;_.J.addCell=function(A){var t=_.Hu.apply(1,arguments),f=this.getCells(t);f?f.push(new gfT(A)):this.JSC$9806_setCell(A,t)};
_.J.JSC$9806_setCell=function(A){var t=this.JSC$9806_getKey(_.Hu.apply(1,arguments));this.cellMap.set(t,[new gfT(A)])};
_.J.getCells=function(){var A=this.JSC$9806_getKey(_.Hu.apply(0,arguments));return this.cellMap.has(A)?this.cellMap.get(A):void 0};
_.J.getCell=function(){var A=this.getCells(_.Hu.apply(0,arguments));return A&&A.length?A[0]:void 0};
_.J.clear=function(){this.cellMap.clear()};
_.J.JSC$9806_getKey=function(){var A=_.Hu.apply(0,arguments);return A?A.join(","):"key"};var wmE=function(A,t){Rb.call(this,A,3,t)};
_.R(wmE,Rb);wmE.prototype.JSC$9809_incrementCounterBy=function(A){var t=_.Hu.apply(1,arguments),f=0,X=this.getCell(t);X&&(f=X.cellValue);this.JSC$9806_setCell(f+A,t)};var sok=function(A,t){Rb.call(this,A,2,t)};
_.R(sok,Rb);sok.prototype.record=function(A){this.addCell(A,_.Hu.apply(1,arguments))};_.mk=function(A){this.id=A};
_.mk.prototype.toString=function(){return this.id};_.b6=function(A,t){this.type=A instanceof _.mk?String(A):A;this.currentTarget=this.target=t;this.defaultPrevented=this.propagationStopped_=!1};
_.b6.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.b6.prototype.preventDefault=function(){this.defaultPrevented=!0};_.W_=function(A,t){_.b6.call(this,A?A.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;A&&this.init(A,t)};
_.rS(_.W_,_.b6);
_.W_.prototype.init=function(A,t){var f=this.type=A.type,X=A.changedTouches&&A.changedTouches.length?A.changedTouches[0]:null;this.target=A.target||A.srcElement;this.currentTarget=t;t=A.relatedTarget;t||(f=="mouseover"?t=A.fromElement:f=="mouseout"&&(t=A.toElement));this.relatedTarget=t;X?(this.clientX=X.clientX!==void 0?X.clientX:X.pageX,this.clientY=X.clientY!==void 0?X.clientY:X.pageY,this.screenX=X.screenX||0,this.screenY=X.screenY||0):(this.offsetX=_.q1||A.offsetX!==void 0?A.offsetX:A.layerX,
this.offsetY=_.q1||A.offsetY!==void 0?A.offsetY:A.layerY,this.clientX=A.clientX!==void 0?A.clientX:A.pageX,this.clientY=A.clientY!==void 0?A.clientY:A.pageY,this.screenX=A.screenX||0,this.screenY=A.screenY||0);this.button=A.button;this.keyCode=A.keyCode||0;this.key=A.key||"";this.charCode=A.charCode||(f=="keypress"?A.keyCode:0);this.ctrlKey=A.ctrlKey;this.altKey=A.altKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.pointerId=A.pointerId||0;this.pointerType=A.pointerType;this.state=A.state;
this.timeStamp=A.timeStamp;this.event_=A;A.defaultPrevented&&_.W_.superClass_.preventDefault.call(this)};
_.W_.prototype.isButton=function(A){return this.event_.button==A};
_.W_.prototype.stopPropagation=function(){_.W_.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.W_.prototype.preventDefault=function(){_.W_.superClass_.preventDefault.call(this);var A=this.event_;A.preventDefault?A.preventDefault():A.returnValue=!1};var kcp="closure_listenable_"+(Math.random()*1E6|0),yW=function(A){return!(!A||!A[kcp])};var rZp=0;var A8i=function(A,t,f,X,Q){this.listener=A;this.proxy=null;this.src=t;this.type=f;this.capture=!!X;this.handler=Q;this.key=++rZp;this.removed=this.callOnce=!1},t2p=function(A){A.removed=!0;
A.listener=null;A.proxy=null;A.src=null;A.handler=null};Mc.prototype.add=function(A,t,f,X,Q){var q=A.toString();A=this.listeners[q];A||(A=this.listeners[q]=[],this.typeCount_++);var e=fkT(A,t,X,Q);e>-1?(t=A[e],f||(t.callOnce=!1)):(t=new A8i(t,this.src,q,!!X,Q),t.callOnce=f,A.push(t));return t};
Mc.prototype.remove=function(A,t,f,X){A=A.toString();if(!(A in this.listeners))return!1;var Q=this.listeners[A];t=fkT(Q,t,f,X);return t>-1?(t2p(Q[t]),_.Eqb(Q,t),Q.length==0&&(delete this.listeners[A],this.typeCount_--),!0):!1};
var X5p=function(A,t){var f=t.type;if(!(f in A.listeners))return!1;var X=_.o0(A.listeners[f],t);X&&(t2p(t),A.listeners[f].length==0&&(delete A.listeners[f],A.typeCount_--));return X};
Mc.prototype.removeAll=function(A){A=A&&A.toString();var t=0,f;for(f in this.listeners)if(!A||f==A){for(var X=this.listeners[f],Q=0;Q<X.length;Q++)++t,t2p(X[Q]);delete this.listeners[f];this.typeCount_--}return t};
Mc.prototype.getListener=function(A,t,f,X){A=this.listeners[A.toString()];var Q=-1;A&&(Q=fkT(A,t,f,X));return Q>-1?A[Q]:null};
Mc.prototype.hasListener=function(A,t){var f=A!==void 0,X=f?A.toString():"",Q=t!==void 0;return _.VG.some(this.listeners,function(q){for(var e=0;e<q.length;++e)if(!(f&&q[e].type!=X||Q&&q[e].capture!=t))return!0;return!1})};
var fkT=function(A,t,f,X){for(var Q=0;Q<A.length;++Q){var q=A[Q];if(!q.removed&&q.listener==t&&q.capture==!!f&&q.handler==X)return Q}return-1};var QhT,q8p,J8C,ecC,Gwi,Nx,uP,uET,lk8,N9p,v_,zc7,UpT;QhT="closure_lm_"+(Math.random()*1E6|0);q8p={};J8C=0;_.TV=function(A,t,f,X,Q){if(X&&X.once)return Nx(A,t,f,X,Q);if(Array.isArray(t)){for(var q=0;q<t.length;q++)_.TV(A,t[q],f,X,Q);return null}f=UpT(f);return yW(A)?A.listen(t,f,_.Hp(X)?!!X.capture:!!X,Q):ecC(A,t,f,!1,X,Q)};
ecC=function(A,t,f,X,Q,q){if(!t)throw Error("va");var e=_.Hp(Q)?!!Q.capture:!!Q,G=v_(A);G||(A[QhT]=G=new Mc(A));f=G.add(t,f,X,e,q);if(f.proxy)return f;X=Gwi();f.proxy=X;X.src=A;X.listener=f;if(A.addEventListener)_.lFC||(Q=e),Q===void 0&&(Q=!1),A.addEventListener(t.toString(),X,Q);else if(A.attachEvent)A.attachEvent(lk8(t.toString()),X);else if(A.addListener&&A.removeListener)A.addListener(X);else throw Error("wa");J8C++;return f};
Gwi=function(){var A=N9p,t=function(f){return A.call(t.src,t.listener,f)};
return t};
Nx=function(A,t,f,X,Q){if(Array.isArray(t)){for(var q=0;q<t.length;q++)Nx(A,t[q],f,X,Q);return null}f=UpT(f);return yW(A)?A.listenOnce(t,f,_.Hp(X)?!!X.capture:!!X,Q):ecC(A,t,f,!0,X,Q)};
_.L_=function(A,t,f,X,Q){if(Array.isArray(t))for(var q=0;q<t.length;q++)_.L_(A,t[q],f,X,Q);else X=_.Hp(X)?!!X.capture:!!X,f=UpT(f),yW(A)?A.unlisten(t,f,X,Q):A&&(A=v_(A))&&(t=A.getListener(t,f,X,Q))&&uP(t)};
uP=function(A){if(typeof A==="number"||!A||A.removed)return!1;var t=A.src;if(yW(t))return X5p(t.eventTargetListeners_,A);var f=A.type,X=A.proxy;t.removeEventListener?t.removeEventListener(f,X,A.capture):t.detachEvent?t.detachEvent(lk8(f),X):t.addListener&&t.removeListener&&t.removeListener(X);J8C--;(f=v_(t))?(X5p(f,A),f.typeCount_==0&&(f.src=null,t[QhT]=null)):t2p(A);return!0};
uET=function(A,t,f,X,Q){f=UpT(f);X=!!X;return yW(A)?A.getListener(t,f,X,Q):A?(A=v_(A))?A.getListener(t,f,X,Q):null:null};
lk8=function(A){return A in q8p?q8p[A]:q8p[A]="on"+A};
N9p=function(A,t){if(A.removed)A=!0;else{t=new _.W_(t,this);var f=A.listener,X=A.handler||A.src;A.callOnce&&uP(A);A=f.call(X,t)}return A};
v_=function(A){A=A[QhT];return A instanceof Mc?A:null};
zc7="__closure_events_fn_"+(Math.random()*1E9>>>0);UpT=function(A){if(typeof A==="function")return A;A[zc7]||(A[zc7]=function(t){return A.handleEvent(t)});
return A[zc7]};_.p_=function(){_.DA.call(this);this.eventTargetListeners_=new Mc(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.rS(_.p_,_.DA);_.p_.prototype[kcp]=!0;_.J=_.p_.prototype;_.J.setParentEventTarget=function(A){this.parentEventTarget_=A};
_.J.addEventListener=function(A,t,f,X){_.TV(this,A,t,f,X)};
_.J.removeEventListener=function(A,t,f,X){_.L_(this,A,t,f,X)};
_.J.dispatchEvent=function(A){var t,f=this.parentEventTarget_;if(f)for(t=[];f;f=f.parentEventTarget_)t.push(f);f=this.actualEventTarget_;var X=A.type||A;if(typeof A==="string")A=new _.b6(A,f);else if(A instanceof _.b6)A.target=A.target||f;else{var Q=A;A=new _.b6(X,f);_.VG.extend(A,Q)}Q=!0;var q;if(t)for(q=t.length-1;!A.propagationStopped_&&q>=0;q--){var e=A.currentTarget=t[q];Q=Pkp(e,X,!0,A)&&Q}A.propagationStopped_||(e=A.currentTarget=f,Q=Pkp(e,X,!0,A)&&Q,A.propagationStopped_||(Q=Pkp(e,X,!1,A)&&
Q));if(t)for(q=0;!A.propagationStopped_&&q<t.length;q++)e=A.currentTarget=t[q],Q=Pkp(e,X,!1,A)&&Q;return Q};
_.J.disposeInternal=function(){_.p_.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.J.listen=function(A,t,f,X){return this.eventTargetListeners_.add(String(A),t,!1,f,X)};
_.J.listenOnce=function(A,t,f,X){return this.eventTargetListeners_.add(String(A),t,!0,f,X)};
_.J.unlisten=function(A,t,f,X){return this.eventTargetListeners_.remove(String(A),t,f,X)};
_.J.removeAllListeners=function(A){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(A):0};
var Pkp=function(A,t,f,X){t=A.eventTargetListeners_.listeners[String(t)];if(!t)return!0;t=t.concat();for(var Q=!0,q=0;q<t.length;++q){var e=t[q];if(e&&!e.removed&&e.capture==f){var G=e.listener,N=e.handler||e.src;e.callOnce&&X5p(A.eventTargetListeners_,e);Q=G.call(N,X)!==!1&&Q}}return Q&&!X.defaultPrevented};
_.p_.prototype.getListener=function(A,t,f,X){return this.eventTargetListeners_.getListener(String(A),t,f,X)};
_.p_.prototype.hasListener=function(A,t){return this.eventTargetListeners_.hasListener(A!==void 0?String(A):void 0,t)};var EY=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(A){return A&&AsyncContext.Snapshot.wrap(A)}:function(A){return A};var T9T=function(A,t){this.create_=A;this.reset_=t;this.occupants_=0;this.JSC$9841_head_=null};
T9T.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var A=this.JSC$9841_head_;this.JSC$9841_head_=A.next;A.next=null}else A=this.create_();return A};
T9T.prototype.put=function(A){this.reset_(A);this.occupants_<100&&(this.occupants_++,A.next=this.JSC$9841_head_,this.JSC$9841_head_=A)};var iaE=function(){this.workTail_=this.workHead_=null};
iaE.prototype.add=function(A,t){var f=UG0.get();f.set(A,t);this.workTail_?this.workTail_.next=f:this.workHead_=f;this.workTail_=f};
iaE.prototype.remove=function(){var A=null;this.workHead_&&(A=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),A.next=null);return A};
var UG0=new T9T(function(){return new OaS},function(A){return A.reset()}),OaS=function(){this.next=this.scope=this.fn=null};
OaS.prototype.set=function(A,t){this.fn=A;this.scope=t;this.next=null};
OaS.prototype.reset=function(){this.next=this.scope=this.fn=null};var c8l,eTb,Jex,B9k;eTb=!1;Jex=new iaE;_.n_=function(A,t){c8l||B9k();eTb||(c8l(),eTb=!0);Jex.add(A,t)};
B9k=function(){var A=Promise.resolve(void 0);c8l=function(){A.then(G7T)}};var M2l=function(A){A.prototype.$goog_Thenable=!0},CkK=function(A){if(!A)return!1;
try{return!!A.$goog_Thenable}catch(t){return!1}};var hck,Rcf,mpC,WhT,y8T,vkT,nkE,Ik8,V2K,jh7,PH5;_.yy=function(A,t){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(A!=_.bz)try{var f=this;A.call(t,function(X){f.resolve_(2,X)},function(X){f.resolve_(3,X)})}catch(X){this.resolve_(3,X)}};
hck=function(){this.next=this.context=this.JSC$9852_onRejected=this.JSC$9852_onFulfilled=this.child=null;this.always=!1};
hck.prototype.reset=function(){this.context=this.JSC$9852_onRejected=this.JSC$9852_onFulfilled=this.child=null;this.always=!1};
Rcf=new T9T(function(){return new hck},function(A){A.reset()});
mpC=function(A,t,f){var X=Rcf.get();X.JSC$9852_onFulfilled=A;X.JSC$9852_onRejected=t;X.context=f;return X};
_.ff=function(A){if(A instanceof _.yy)return A;var t=new _.yy(_.bz);t.resolve_(2,A);return t};
_.OX=function(A){return new _.yy(function(t,f){f(A)})};
WhT=function(A,t,f){bal(A,t,f,null)||_.n_(_.l0(t,A))};
_.DX=function(A){return new _.yy(function(t,f){var X=A.length,Q=[];if(X)for(var q=function(z,T){X--;Q[z]=T;X==0&&t(Q)},e=function(z){f(z)},G,N=0;N<A.length;N++)G=A[N],WhT(G,_.l0(q,N),e);
else t(Q)})};
y8T=function(A){return new _.yy(function(t){var f=A.length,X=[];if(f)for(var Q=function(G,N,z){f--;X[G]=N?{fulfilled:!0,value:z}:{fulfilled:!1,reason:z};f==0&&t(X)},q,e=0;e<A.length;e++)q=A[e],WhT(q,_.l0(Q,e,!0),_.l0(Q,e,!1));
else t(X)})};
vkT=function(A){return new _.yy(function(t,f){var X=A.length,Q=[];if(X)for(var q=function(z){t(z)},e=function(z,T){X--;
Q[z]=T;X==0&&f(Q)},G,N=0;N<A.length;N++)G=A[N],WhT(G,q,_.l0(e,N));
else t(void 0)})};
_.YE=function(){var A,t,f=new _.yy(function(X,Q){A=X;t=Q});
return new LhS(f,A,t)};
_.yy.prototype.then=function(A,t,f){return p5T(this,EY(typeof A==="function"?A:null),EY(typeof t==="function"?t:null),f)};
M2l(_.yy);nkE=function(A,t,f,X){EkS(A,mpC(t||_.bz,f||null,X))};
_.FZ=function(A,t){t=EY(t);t=mpC(t,t);t.always=!0;EkS(A,t);return A};
_.yy.prototype.finally=function(A){var t=this;A=EY(A);return new _.yy(function(f,X){nkE(t,function(Q){A();f(Q)},function(Q){A();
X(Q)})})};
_.yy.prototype.thenCatch=function(A,t){return p5T(this,null,EY(A),t)};
_.yy.prototype.catch=_.yy.prototype.thenCatch;_.yy.prototype.cancel=function(A){if(this.state_==0){var t=new _.Ej(A);_.n_(function(){Dpk(this,t)},this)}};
var Dpk=function(A,t){if(A.state_==0)if(A.parent_){var f=A.parent_;if(f.callbackEntries_){for(var X=0,Q=null,q=null,e=f.callbackEntries_;e&&(e.always||(X++,e.child==A&&(Q=e),!(Q&&X>1)));e=e.next)Q||(q=e);Q&&(f.state_==0&&X==1?Dpk(f,t):(q?(X=q,X.next==f.callbackEntriesTail_&&(f.callbackEntriesTail_=X),X.next=X.next.next):Fhb(f),Ik8(f,Q,3,t)))}A.parent_=null}else A.resolve_(3,t)},EkS=function(A,t){A.callbackEntries_||A.state_!=2&&A.state_!=3||xpT(A);
A.callbackEntriesTail_?A.callbackEntriesTail_.next=t:A.callbackEntries_=t;A.callbackEntriesTail_=t},p5T=function(A,t,f,X){var Q=mpC(null,null,null);
Q.child=new _.yy(function(q,e){Q.JSC$9852_onFulfilled=t?function(G){try{var N=t.call(X,G);q(N)}catch(z){e(z)}}:q;
Q.JSC$9852_onRejected=f?function(G){try{var N=f.call(X,G);N===void 0&&G instanceof _.Ej?e(G):q(N)}catch(z){e(z)}}:e});
Q.child.parent_=A;EkS(A,Q);return Q.child};
_.yy.prototype.unblockAndFulfill_=function(A){this.state_=0;this.resolve_(2,A)};
_.yy.prototype.unblockAndReject_=function(A){this.state_=0;this.resolve_(3,A)};
_.yy.prototype.resolve_=function(A,t){this.state_==0&&(this===t&&(A=3,t=new TypeError("xa")),this.state_=1,bal(t,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=t,this.state_=A,this.parent_=null,xpT(this),A!=3||t instanceof _.Ej||jh7(this,t)))};
var bal=function(A,t,f,X){if(A instanceof _.yy)return nkE(A,t,f,X),!0;if(CkK(A))return A.then(t,f,X),!0;if(_.Hp(A))try{var Q=A.then;if(typeof Q==="function")return Y88(A,Q,t,f,X),!0}catch(q){return f.call(X,q),!0}return!1},Y88=function(A,t,f,X,Q){var q=!1,e=function(N){q||(q=!0,f.call(Q,N))},G=function(N){q||(q=!0,X.call(Q,N))};
try{t.call(A,e,G)}catch(N){G(N)}},xpT=function(A){A.executing_||(A.executing_=!0,_.n_(A.executeCallbacks_,A))},Fhb=function(A){var t=null;
A.callbackEntries_&&(t=A.callbackEntries_,A.callbackEntries_=t.next,t.next=null);A.callbackEntries_||(A.callbackEntriesTail_=null);return t};
_.yy.prototype.executeCallbacks_=function(){for(var A;A=Fhb(this);)Ik8(this,A,this.state_,this.result_);this.executing_=!1};
Ik8=function(A,t,f,X){if(f==3&&t.JSC$9852_onRejected&&!t.always)for(;A&&A.hadUnhandledRejection_;A=A.parent_)A.hadUnhandledRejection_=!1;if(t.child)t.child.parent_=null,V2K(t,f,X);else try{t.always?t.JSC$9852_onFulfilled.call(t.context):V2K(t,f,X)}catch(Q){PH5.call(null,Q)}Rcf.put(t)};
V2K=function(A,t,f){t==2?A.JSC$9852_onFulfilled.call(A.context,f):A.JSC$9852_onRejected&&A.JSC$9852_onRejected.call(A.context,f)};
jh7=function(A,t){A.hadUnhandledRejection_=!0;_.n_(function(){A.hadUnhandledRejection_&&PH5.call(null,t)})};
PH5=Q5;_.Ej=function(A){_.Ab.call(this,A)};
_.rS(_.Ej,_.Ab);_.Ej.prototype.name="cancel";var LhS=function(A,t,f){this.promise=A;this.resolve=t;this.reject=f};var Ib;_.MP=function(A,t){_.p_.call(this);this.JSC$9864_interval_=A||1;this.timerObject_=t||_.Xb;this.boundTick_=(0,_.F1)(this.tick_,this);this.last_=_.k5()};
_.rS(_.MP,_.p_);_.J=_.MP.prototype;_.J.enabled=!1;_.J.JSC$9866_timer_=null;_.J.setInterval=function(A){this.JSC$9864_interval_=A;this.JSC$9866_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9866_timer_&&this.stop()};
_.J.tick_=function(){if(this.enabled){var A=_.k5()-this.last_;A>0&&A<this.JSC$9864_interval_*.8?this.JSC$9866_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9864_interval_-A):(this.JSC$9866_timer_&&(this.timerObject_.clearTimeout(this.JSC$9866_timer_),this.JSC$9866_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.J.start=function(){this.enabled=!0;this.JSC$9866_timer_||(this.JSC$9866_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9864_interval_),this.last_=_.k5())};
_.J.stop=function(){this.enabled=!1;this.JSC$9866_timer_&&(this.timerObject_.clearTimeout(this.JSC$9866_timer_),this.JSC$9866_timer_=null)};
_.J.disposeInternal=function(){_.MP.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Ib=function(A,t,f){if(typeof A==="function")f&&(A=(0,_.F1)(A,f));else if(A&&typeof A.handleEvent=="function")A=(0,_.F1)(A.handleEvent,A);else throw Error("ya");return Number(t)>2147483647?-1:_.Xb.setTimeout(A,t||0)};
_.ZaE=function(A){var t=null;return(new _.yy(function(f,X){t=Ib(function(){f(void 0)},A);
t==-1&&X(Error("za"))})).thenCatch(function(f){_.Xb.clearTimeout(t);
throw f;})};var m7=function(A){_.DA.call(this);this.streamzLogger=A;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9870_flushTimer=new _.MP(this.flushInterval);this.JSC$9870_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.hV(this,this.JSC$9870_flushTimer)};
_.R(m7,_.DA);m7.prototype.sendIsolatedPayload=function(A){this.shouldSendIsolatedPayload=A;this.invocationLimit=1};
var ok8=function(A){A.JSC$9870_flushTimer.enabled||A.JSC$9870_flushTimer.start();A.invocationCount++;A.invocationCount>=A.invocationLimit&&A.snapshotAndFlush()};
m7.prototype.snapshotAndFlush=function(){var A=this.metricMap.values();A=[].concat(_.YV(A)).filter(function(t){return t.cellMap.size});
A.length&&this.streamzLogger.flush(A,this.shouldSendIsolatedPayload);dpC(A);this.invocationCount=0;this.JSC$9870_flushTimer.enabled&&this.JSC$9870_flushTimer.stop()};
m7.prototype.addNewCounter=function(A){var t=_.Hu.apply(1,arguments);this.metricMap.has(A)||this.metricMap.set(A,new wmE(A,t))};
m7.prototype.addNewEventMetric=function(A){var t=_.Hu.apply(1,arguments);this.metricMap.has(A)||this.metricMap.set(A,new sok(A,t))};
var S8b=function(A,t){return A.disabledMetrics.has(t)?void 0:A.metricMap.get(t)};
m7.prototype.JSC$9870_incrementCounter=function(A){this.JSC$9870_incrementCounterBy(A,1,_.Hu.apply(1,arguments))};
m7.prototype.JSC$9870_incrementCounterBy=function(A,t){var f=_.Hu.apply(2,arguments),X=S8b(this,A);X&&X instanceof wmE&&(X.JSC$9809_incrementCounterBy(t,f),ok8(this))};
m7.prototype.record=function(A,t){var f=_.Hu.apply(2,arguments),X=S8b(this,A);X&&X instanceof sok&&(X.record(t,f),ok8(this))};
var dpC=function(A){for(var t=0;t<A.length;t++)A[t].clear()};_.xg=function(A,t,f){f=f===void 0?{}:f;t=Error.call(this,t);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=A;this.metadata=f;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.xg,Error);_.xg.prototype.toString=function(){var A="RpcError("+(Ni5(this.code)||String(this.code))+")";this.message&&(A+=": "+this.message);return A};_.$pK=_.Xb.JSON.parse;_.j$=_.Xb.JSON.stringify;_.Mi=_.Xb.JSON.parse;_.HaK=function(A){switch(A){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 akE=function(A){switch(A){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Kh8,gk7=function(){};
_.rS(gk7,_.u_g);gk7.prototype.createInstance=function(){return new XMLHttpRequest};
Kh8=new gk7;_.Yg=function(A){_.p_.call(this);this.headers=new Map;this.JSC$9879_xmlHttpFactory_=A||null;this.JSC$9879_active_=!1;this.JSC$9879_xhr_=null;this.JSC$9879_lastUri_="";this.JSC$9879_lastErrorCode_=0;this.JSC$9879_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9879_timeoutId_=null;this.responseType_="";this.JSC$9879_withCredentials_=!1};
_.rS(_.Yg,_.p_);var w5l=/^https?$/i,shT=["POST","PUT"],kwT=[],$$q=function(A,t,f,X,Q,q,e){var G=new _.Yg;kwT.push(G);t&&G.listen("complete",t);G.listenOnce("ready",G.cleanupSend_);q&&(G.timeoutInterval_=Math.max(0,q));e&&(G.JSC$9879_withCredentials_=e);G.send(A,f,X,Q)};
_.Yg.prototype.cleanupSend_=function(){this.dispose();_.o0(kwT,this)};
_.Yg.prototype.send=function(A,t,f,X){if(this.JSC$9879_xhr_)throw Error("Aa`"+this.JSC$9879_lastUri_+"`"+A);t=t?t.toUpperCase():"GET";this.JSC$9879_lastUri_=A;this.JSC$9879_lastError_="";this.JSC$9879_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9879_active_=!0;this.JSC$9879_xhr_=this.createXhr();this.JSC$9879_xhr_.onreadystatechange=EY((0,_.F1)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9879_xhr_.open(t,String(A),!0),this.inOpen_=!1}catch(e){r8S(this,e);return}A=f||"";f=new Map(this.headers);
if(X)if(Object.getPrototypeOf(X)===Object.prototype)for(var Q in X)f.set(Q,X[Q]);else if(typeof X.keys==="function"&&typeof X.get==="function"){Q=_.U(X.keys());for(var q=Q.next();!q.done;q=Q.next())q=q.value,f.set(q,X.get(q))}else throw Error("Ba`"+String(X));X=Array.from(f.keys()).find(function(e){return"content-type"==e.toLowerCase()});
Q=_.Xb.FormData&&A instanceof _.Xb.FormData;!_.Zx(shT,t)||X||Q||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");t=_.U(f);for(X=t.next();!X.done;X=t.next())f=_.U(X.value),X=f.next().value,f=f.next().value,this.JSC$9879_xhr_.setRequestHeader(X,f);this.responseType_&&(this.JSC$9879_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9879_xhr_&&this.JSC$9879_xhr_.withCredentials!==this.JSC$9879_withCredentials_&&(this.JSC$9879_xhr_.withCredentials=this.JSC$9879_withCredentials_);
try{this.JSC$9879_timeoutId_&&(clearTimeout(this.JSC$9879_timeoutId_),this.JSC$9879_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9879_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9879_xhr_.send(A),this.inSend_=!1}catch(e){r8S(this,e)}};
_.Yg.prototype.createXhr=function(){return this.JSC$9879_xmlHttpFactory_?this.JSC$9879_xmlHttpFactory_.createInstance():Kh8.createInstance()};
_.Yg.prototype.timeout_=function(){typeof ubf!="undefined"&&this.JSC$9879_xhr_&&(this.JSC$9879_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9879_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var r8S=function(A,t){A.JSC$9879_active_=!1;A.JSC$9879_xhr_&&(A.inAbort_=!0,A.JSC$9879_xhr_.abort(),A.inAbort_=!1);A.JSC$9879_lastError_=t;A.JSC$9879_lastErrorCode_=5;AeS(A);tJl(A)},AeS=function(A){A.errorDispatched_||(A.errorDispatched_=!0,A.dispatchEvent("complete"),A.dispatchEvent("error"))};
_.Yg.prototype.abort=function(A){this.JSC$9879_xhr_&&this.JSC$9879_active_&&(this.JSC$9879_active_=!1,this.inAbort_=!0,this.JSC$9879_xhr_.abort(),this.inAbort_=!1,this.JSC$9879_lastErrorCode_=A||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),tJl(this))};
_.Yg.prototype.disposeInternal=function(){this.JSC$9879_xhr_&&(this.JSC$9879_active_&&(this.JSC$9879_active_=!1,this.inAbort_=!0,this.JSC$9879_xhr_.abort(),this.inAbort_=!1),tJl(this,!0));_.Yg.superClass_.disposeInternal.call(this)};
_.Yg.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)fUk(this);else this.onReadyStateChangeEntryPoint_()};
_.Yg.prototype.onReadyStateChangeEntryPoint_=function(){fUk(this)};
var fUk=function(A){if(A.JSC$9879_active_&&typeof ubf!="undefined")if(A.inSend_&&_.VW(A)==4)setTimeout(A.onReadyStateChange_.bind(A),0);else if(A.dispatchEvent("readystatechange"),A.isComplete()){A.JSC$9879_active_=!1;try{if(A.isSuccess())A.dispatchEvent("complete"),A.dispatchEvent("success");else{A.JSC$9879_lastErrorCode_=6;try{var t=_.VW(A)>2?A.JSC$9879_xhr_.statusText:""}catch(f){t=""}A.JSC$9879_lastError_=t+" ["+A.getStatus()+"]";AeS(A)}}finally{tJl(A)}}},tJl=function(A,t){if(A.JSC$9879_xhr_){A.JSC$9879_timeoutId_&&
(clearTimeout(A.JSC$9879_timeoutId_),A.JSC$9879_timeoutId_=null);
var f=A.JSC$9879_xhr_;A.JSC$9879_xhr_=null;t||A.dispatchEvent("ready");try{f.onreadystatechange=null}catch(X){}}};
_.Yg.prototype.isActive=function(){return!!this.JSC$9879_xhr_};
_.Yg.prototype.isComplete=function(){return _.VW(this)==4};
_.Yg.prototype.isSuccess=function(){var A=this.getStatus(),t;if(!(t=akE(A))){if(A=A===0)A=Ucf(String(this.JSC$9879_lastUri_)),A=!w5l.test(A);t=A}return t};
_.VW=function(A){return A.JSC$9879_xhr_?A.JSC$9879_xhr_.readyState:0};
_.J=_.Yg.prototype;_.J.getStatus=function(){try{return _.VW(this)>2?this.JSC$9879_xhr_.status:-1}catch(A){return-1}};
_.J.getResponseText=function(){try{return this.JSC$9879_xhr_?this.JSC$9879_xhr_.responseText:""}catch(A){return""}};
_.J.getResponse=function(){try{if(!this.JSC$9879_xhr_)return null;if("response"in this.JSC$9879_xhr_)return this.JSC$9879_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9879_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9879_xhr_)return this.JSC$9879_xhr_.mozResponseArrayBuffer}return null}catch(A){return null}};
_.J.getAllResponseHeaders=function(){return this.JSC$9879_xhr_&&_.VW(this)>=2?this.JSC$9879_xhr_.getAllResponseHeaders()||"":""};
_.J.getLastError=function(){return typeof this.JSC$9879_lastError_==="string"?this.JSC$9879_lastError_:String(this.JSC$9879_lastError_)};var ikp=function(){};
ikp.prototype.send=function(A,t,f){t=t===void 0?function(){}:t;
f=f===void 0?function(){}:f;
$$q(A.url,function(X){X=X.target;X.isSuccess()?t(X.getResponseText()):f(X.getStatus())},A.requestType,A.body,A.requestHeaders,A.timeoutMillis,A.withCredentials)};
ikp.prototype.getTransmissionType=function(){return 1};var XxS=function(A,t){this.swn=A;this.event=t;this.startTime=bI()},hT5;
XxS.prototype.done=function(){this.swn.hq(this.event,bI()-this.startTime)};
var ZX=function(){u6.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.R(ZX,u6);_.ob=function(A,t,f){var X=bI();t=t();A.hq(f,bI()-X);return t};
hT5=function(){ZX.apply(this,arguments)};
_.R(hT5,ZX);_.J=hT5.prototype;_.J.dsM=function(){};
_.J.pQ=function(){};
_.J.hq=function(){};
_.J.logError=function(){};
_.J.a3=function(){};
_.J.fqi=function(){};
_.J.eNh=function(){};
_.J.b9g=function(){};
var QjT=function(A){ZX.call(this);var t=this;this.rB=A;this.TEST_ONLY={l4L:function(){return t.rB},
getExperimentIds:function(){return t.rB.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void t.rB.dispose()})};
_.R(QjT,ZX);_.J=QjT.prototype;_.J.update=function(A){this.rB.dispose();this.rB=A};
_.J.pQ=function(A){this.rB.pQ(A)};
_.J.hq=function(A,t){this.rB.hq(A,t)};
_.J.logError=function(A){this.rB.logError(A)};
_.J.a3=function(){this.rB.a3()};
_.J.fqi=function(A){this.rB.fqi(A)};
_.J.eNh=function(A){this.rB.eNh(A)};
_.J.b9g=function(A){this.rB.b9g(A)};
_.J.dsM=function(A){this.rB.dsM(A)};
var q0k=function(A,t){_.DA.call(this);var f=this;this.callback=A;this.dld=t;this.c6y=-t;this.addOnDisposeCallback(function(){return void clearTimeout(f.timer)})};
_.R(q0k,_.DA);var Jew=function(A){if(A.timer===void 0){var t=Math.max(0,A.c6y+A.dld-bI());A.timer=setTimeout(function(){try{A.callback()}finally{A.c6y=bI(),A.timer=void 0}},t)}},UGp=function(A,t){ZX.call(this);
this.metrics=A;this.qZ=t};
_.R(UGp,ZX);_.J=UGp.prototype;_.J.dsM=function(A){this.metrics.jKe.record(A,this.qZ)};
_.J.pQ=function(A){this.metrics.eventCount.increment(A,this.qZ)};
_.J.hq=function(A,t){this.metrics.znv.record(t,A,this.qZ)};
_.J.logError=function(A){this.metrics.errorCount.increment(A,this.qZ)};
_.J.fqi=function(A){this.metrics.kM6.increment(A,this.qZ)};
_.J.eNh=function(A){this.metrics.nO5.increment(A,this.qZ)};
_.J.b9g=function(A){this.metrics.pZd.increment(A,this.qZ)};
var RTb=function(A,t){t=t===void 0?[]:t;var f={qZ:A.qZ||"_",sEj:A.sEj||[],kQ4:A.kQ4|0,destinationUrl:A.destinationUrl,uSh:A.uSh||function(){},
khq:A.khq||function(q,e){return C2x(q,e,f.uSh,f.destinationUrl)}},X=f.khq("51",f.sEj.concat(t));
UGp.call(this,{jKe:new dcS(X),errorCount:new aAT(X),eventCount:new $cK(X),znv:new HAS(X),th9:new SB8(X),kM6:new K7b(X),nO5:new gCf(X),pZd:new wf8(X)},f.qZ);var Q=this;this.TEST_ONLY={getExperimentIds:function(){return Q.options.sEj.concat(Q.g0G).sort(function(q,e){return q-e})}};
this.options=f;this.service=X;this.e70=!A.khq;this.flushDebouncer=new q0k(function(){return void Q.service.snapshotAndFlush()},f.kQ4);
this.addOnDisposeCallback(function(){Q.flushDebouncer.dispose();Q.e70&&Q.service.dispose()});
(this.g0G=t.slice()).sort(_.Ixq)};
_.R(RTb,UGp);RTb.prototype.a3=function(){Jew(this.flushDebouncer)};var Sqx=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Sqx,_.e3);_.$jp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(_.$jp,_.e3);var xY=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A,0,xY.messageId)};
_.R(xY,_.e3);var eTp=_.KQq(xY);xY.messageId="bfkj";var gkx=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(gkx,_.e3);var G7i=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(G7i,_.e3);var lUE=_.Cb(G7i);_.Qc=function(){var A=this;this.promise=new Promise(function(t,f){A.resolve=t;A.reject=f})};_.d_=function(A){_.DA.call(this);var t=this;this.bBW=Math.floor(Math.random()*200);this.eK4=new G7i;if("challenge"in A&&eTp(A.challenge)){var f=_.Wz(A.challenge,4,void 0,Dw);var X=_.Wz(A.challenge,5,void 0,Dw);_.Wz(A.challenge,7,void 0,Dw)&&(this.eK4=lUE(_.Wz(A.challenge,7,void 0,Dw)))}else f=A.program,X=A.globalName;this.addOnDisposeCallback(function(){var h,W,L;return _.l(function(E){if(E.nextAddress==1)return E.yield(t.fwM,2);h=E.yieldResult;W=h.bSc;(L=W)==null||L();_.LO(E)})});
this.aV=mGp(A.hrg||{},this.eK4);_.hV(this,this.aV);var Q=new _.Qc;this.fwM=Q.promise;this.aV.pQ("t");var q=this.aV.share(),e=new XxS(q,"t"),G=function(h,W,L,E){if(!t.aV.isDisposed()){var D="k";W?D="h":L&&(D="u");D!=="k"?E!==0&&(t.aV.pQ(D),t.aV.hq(D,h)):t.bBW<=0?(t.aV.pQ(D),t.aV.hq(D,h),t.bBW=Math.floor(Math.random()*200)):t.bBW--}},N=function(h,W,L,E){Promise.resolve().then(function(){e.done();
q.a3();q.dispose();Q.resolve({m05:h,bSc:W,oLQ:L,tm5:E})})};
if(!_.Xb[X])throw this.aV.logError(25),Error("Ca");if(!_.Xb[X].a)throw this.aV.logError(26),Error("Da");try{var z=_.Xb[X].a;X=[];for(var T=[],O=w55(this.eK4),c=0;c<O.length;c++)X.push(O[c]),T.push(1);var B=shp(this.eK4);for(O=0;O<B.length;O++)X.push(B[O]),T.push(2);this.lfV=_.U(z(f,N,!0,A.oMG,G,[X,T],_.Wz(this.eK4,5),!1)).next().value;this.mLg=Q.promise.then(function(){})}catch(h){throw this.aV.logError(28),h;
}};
_.R(_.d_,_.DA);_.d_.prototype.snapshot=function(A){if(this.isDisposed())throw Error("Ea");this.aV.pQ("n");var t=this.aV.share();return this.fwM.then(function(f){var X=f.m05;return new Promise(function(Q){var q=new XxS(t,"n");X(function(e){q.done();t.dsM(e.length);t.a3();t.dispose();Q(e)},[A.yj,
A.joa,A.l9n,A.x1Y])})})};
_.d_.prototype.wPF=function(A){this.fwM.then(function(t){var f;(f=t.oLQ)==null||f(A)})};
_.d_.prototype.yvq=function(A,t){return this.fwM.then(function(f){var X;return(X=f.tm5)==null?void 0:X(A,t,!1)})};
_.d_.prototype.uY2=function(){return this.aV.share()};var Nil=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Nil,_.e3);var cW5=_.KQq(Nil);var u_S=function(){this.promises={};this.ez4=null},zTC=function(){u_S.instance||(u_S.instance=new u_S);
return u_S.instance},Ti8=function(A,t){return P2S(A,_.Mq(t,Sqx,1,Dw),_.Mq(t,_.$jp,2,Dw),_.Wz(t,3,void 0,Dw))},P2S=function(A,t,f,X){if(!t&&!f)return Promise.resolve();
if(!X)return Lyb(t,f);var Q;(Q=A.promises)[X]||(Q[X]=new Promise(function(q,e){Lyb(t,f).then(function(){A.ez4=X;q()},function(G){delete A.promises[X];
e(G)})}));
return A.promises[X]};var ikT=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(ikT,_.e3);var Oki=function(A,t){return _.jM(A,1,t)},cek=function(A,t){return _.jM(A,2,t)};var S$=function(A){_.DA.call(this);var t=this;this.options=A;this.rRa=new _.Qc;this.mLg=this.rRa.promise;this.oJq=new _.Qc;this.eRy=1;this.cQ9=new _.Qc;this.jnY=[];this.cbj=A.cbj||function(){};
this.fMF=new QjT(mGp(A.hrg||{}));BiE(this,A.dL,A.xel,A.gsb,A.uGh,Object.assign({},MJb,A.wcu||{}));this.addOnDisposeCallback(function(){return void C2w(t)})};
_.R(S$,_.DA);S$.prototype.snapshot=function(A){var t=this;return _.l(function(f){switch(f.nextAddress){case 1:if(t.isDisposed())throw Error("Ea");if(t.wi||t.l3s){f.jumpTo(2);break}return f.yield(t.oJq.promise,2);case 2:if(!t.wi){f.jumpTo(4);break}return f.yield(t.wi.snapshot(A),5);case 5:return f.return(f.yieldResult);case 4:throw t.l3s;}})};
var hTl=function(A){var t;return _.l(function(f){if(A.isDisposed())throw Error("Ea");(t=A.pF)!=null&&(t.endTimeMs=0,t.resolver(1));return f.yield(A.cQ9.promise,0)})},C2w=function(A){A.l3s=Error("Ga");
A.oJq.resolve();kwx(A.rRa.promise);A.rRa.reject(Error("Ga"));A.fMF.dispose();Promise.all(A.jnY).then(function(){var f;return _.l(function(X){(f=A.wi)==null||f.dispose();A.wi=void 0;_.LO(X)})});
A.jnY=[];var t;(t=A.pF)!=null&&(t.endTimeMs=0,t.resolver(1));kwx(A.cQ9.promise);A.cQ9.reject(Error("Ga"))};
S$.prototype.wPF=function(A){var t,f;(t=this.wi)==null||(f=t.wPF)==null||f.call(t,A)};
S$.prototype.yvq=function(A,t){var f,X,Q;return(Q=(f=this.wi)==null?void 0:(X=f.yvq)==null?void 0:X.call(f,A,t))!=null?Q:Promise.resolve()};
var RTp=function(A,t){var f=A.cbj;A.cbj=function(){f();t()}},mGT=function(A,t){A.isDisposed()||(A.wi=t,A.fMF.update(t.uY2()),A.oJq.resolve(),A.rRa.resolve(void 0),A.cbj())};
S$.prototype.handleError=function(A){if(!this.isDisposed()){this.l3s=A;this.oJq.resolve();var t,f;(f=(t=this.options).oCV)==null||f.call(t,A)}};
var bkf=function(A,t){t&&(Promise.all(A.jnY).then(function(){return void t.dispose()}),A.jnY=[])},$g=function(A,t){A.eRy=t;
var f,X;(X=(f=A.options).qTc)==null||X.call(f,t)},WyC=function(A){A.isDisposed()||(A.cQ9.resolve(),A.cQ9=new _.Qc)},BiE=function(A,t,f,X,Q,q){X=X===void 0?zTC():X;
Q=Q===void 0?Promise.resolve(void 0):Q;var e,G,N,z,T,O,c,B,h,W,L,E;_.l(function(D){switch(D.nextAddress){case 1:return D.yield(0,3);case 3:G=null;if(!e){D.jumpTo(6);break}$g(A,7);_.ht(D,7);return D.yield(pA(e.snapshot({}),q.rNn,function(){return Promise.resolve("E:CTO")}),9);
case 9:G=D.yieldResult;_.qq(D,6);break;case 7:_.vC(D),G="E:UCE";case 6:N=void 0,z=e?q.lae:q.rR0,T=new Bf(z,q.eD0,q.bTV,q.sh4),O=1;case 10:if(!(O<=q.maxAttempts)){D.jumpTo(12);break}if(O===1){D.jumpTo(13);break}$g(A,0);A.pF=new yef(T.getValue(),q.rOG,q.tUG);return D.yield(A.pF.promise,14);case 14:c=D.yieldResult,A.pF=void 0,c===1?(O=1,T.reset()):YHb(T);case 13:_.ht(D,15);B=void 0;if(f){B=f;D.jumpTo(17);break}$g(A,5);h=X.ez4;return D.yield(pA(vjT(t,h,G),q.bYl,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:B=D.yieldResult;case 17:return $g(A,3),D.yield(pA(Ti8(X,B),q.cc4,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return $g(A,8),D.yield(Q,20);case 20:return W=new _.d_({challenge:B,hrg:A.options.hrg,oMG:A.options.oMG}),D.yield(pA(W.mLg,q.ket,function(){return Promise.reject(Error("Ja"))}),21);
case 21:N=W;D.jumpTo(12);break;case 15:L=_.vC(D),A.handleError(L),WyC(A);case 11:O++;D.jumpTo(10);break;case 12:if(A.isDisposed()){D.jumpTo(5);break}N&&(f=void 0,bkf(A,e),e=N,mGT(A,N),WyC(A));$g(A,2);A.pF=new yef(q.kYJ,q.rOG,q.tUG);return D.yield(A.pF.promise,22);case 22:A.pF=void 0;if(A.isDisposed()){D.jumpTo(5);break}D.jumpTo(3);break;case 5:(E=e)==null||E.dispose(),_.LO(D)}})};
S$.prototype.uY2=function(){return this.fMF.share()};
var MJb={kYJ:432E5,rOG:3E5,tUG:10,rNn:1E4,bYl:3E4,cc4:3E4,ket:6E4,rR0:1E3,lae:6E4,eD0:6E5,bTV:.25,sh4:2,maxAttempts:10},yef=function(A,t,f){var X=this;this.endTimeMs=Date.now()+A;this.promise=new Promise(function(q){X.resolver=q});
var Q=function(){var q=X.endTimeMs-Date.now();q<=f?X.resolver(0):setTimeout(Q,Math.min(q,t))};
Q()};var Lyf,njx=(Lyf=Math.imul)!=null?Lyf:function(A,t){return A*t|0},EB=[196,
200,224,18],H_=function(A,t,f){f=f===void 0?[]:f;this.maxItems=A;this.j9=t===void 0?0:t;this.yc=f},pxb=function(A){var t=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!t)return new H_(A);var f=t.split(",");if(f.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new H_(A);t=f.slice(1);t.length===1&&t[0]===""&&(t=[]);f=Number(f[0]);return isNaN(f)||f<0||f>t.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new H_(A)):new H_(A,f,t)};
H_.prototype.serialize=function(){return String(this.j9)+","+this.yc.join()};
H_.prototype.insert=function(A,t){var f=void 0;if(this.yc[this.j9]!==A){var X=this.yc.indexOf(A);X!==-1?(this.yc.splice(X,1),X<this.j9&&this.j9--,this.yc.splice(this.j9,0,A)):(f=this.yc[this.j9],this.yc[this.j9]=A)}this.j9=(this.j9+1)%this.maxItems;A=pxl("iU5q-!O9@$",this.serialize());f&&A&&t(f);return A};
var EjT=function(A,t){this.jg9=t;try{var f=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(X){f=!1}f&&(this.index=pxb(A))},njw=function(A,t,f,X,Q){var q=A.index?_.ob(A.jg9,function(){return xG5(A.index,Fyb(t),f,X,Q)},"W"):"u";
A.jg9.b9g(q)},DGl=function(A,t,f){var X=_.U(A.index?_.ob(A.jg9,function(){return jju(Fyb(t),f)},"R"):["u"]),Q=X.next().value;
X=X.next().value;A.jg9.eNh(Q);return X};var Fyp={toString:function(A){var t=[],f=0;A-=-2147483648;t[f++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(A%52);for(A=Math.floor(A/52);A>0;)t[f++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(A%62),A=Math.floor(A/62);return t.join("")}};var jjK=function(A){A=IUT(A);for(var t=2654435769,f=2654435769,X=314159265,Q=A.length,q=Q,e=0,G=function(){t-=f;t-=X;t^=X>>>13;f-=X;f-=t;f^=t<<8;X-=t;X-=f;X^=f>>>13;t-=f;t-=X;t^=X>>>12;f-=X;f-=t;f^=t<<16;X-=t;X-=f;X^=f>>>5;t-=f;t-=X;t^=X>>>3;f-=X;f-=t;f^=t<<10;X-=t;X-=f;X^=f>>>15};q>=12;q-=12,e+=12)t+=xGC(A,e),f+=xGC(A,e+4),X+=xGC(A,e+8),G();
X+=Q;switch(q){case 11:X+=A[e+10]<<24;case 10:X+=A[e+9]<<16;case 9:X+=A[e+8]<<8;case 8:f+=A[e+7]<<24;case 7:f+=A[e+6]<<16;case 6:f+=A[e+5]<<8;case 5:f+=A[e+4];case 4:t+=A[e+3]<<24;case 3:t+=A[e+2]<<16;case 2:t+=A[e+1]<<8;case 1:t+=A[e]}G();return Fyp.toString(X)},IUT=function(A){for(var t=[],f=0;f<A.length;f++)t.push(A.charCodeAt(f));
return t},xGC=function(A,t){return A[t]+(A[t+1]<<8)+(A[t+2]<<16)+(A[t+3]<<24)};var ab=function(A){_.DA.call(this);this.dw=A;this.pYy=new _.Qc};
_.R(ab,_.DA);var Y0i=function(A,t){var f=setTimeout(function(){A.pYy.resolve()},t);
A.addOnDisposeCallback(function(){return void clearTimeout(f)})};
ab.prototype.dlj=function(A,t){var f=this.hJ(A);t==null||t(f);return _.ob(this.dw,function(){return _.E2(f,2)},this.hKY)};
var VJb=function(A,t,f,X){return _.ob(A.dw,function(){return f?A.dlj(t,X):A.hJ(t,X)},A.pyh)},Zkk=function(A,t,f,X){ab.call(this,A);
this.sWz=t;this.rYz=f;this.pyh="m";this.hKY="x";this.lYp=0;Y0i(this,X)};
_.R(Zkk,ab);Zkk.prototype.hJ=function(A,t){var f=this;this.dw.pQ(this.pyh);++this.lYp>=this.rYz&&this.pYy.resolve();var X=A();A=_.ob(this.dw,function(){return f.sWz(X)},"C");
if(A===void 0)throw new l6(17,"YNJ:Undefined");if(!(A instanceof Uint8Array))throw new l6(18,"ODM:Invalid");t==null||t(A);return A};
var ojT=function(A,t,f){ab.call(this,A);this.lt0=t;this.pyh="f";this.hKY="z";Y0i(this,f)};
_.R(ojT,ab);ojT.prototype.hJ=function(){return this.lt0};
var dGS=function(A,t,f){ab.call(this,A);this.eA4=t;this.pyh="w";this.hKY="z";Y0i(this,f)};
_.R(dGS,ab);dGS.prototype.hJ=function(){var A=this;return _.ob(this.dw,function(){return _.sx(A.eA4)},"d")};
dGS.prototype.dlj=function(){return this.eA4};
var S0T=function(A,t){ab.call(this,A);this.error=t;this.pyh="e";this.hKY="y"};
_.R(S0T,ab);var $Gw=function(A,t){var f=(t(A.error.message)+":"+t(A.error.stack)).substring(0,2048);t=f.length+1;f=Y0T(f);var X=new Uint8Array(4+f.length);X.set([42,t&127|128,t>>7,A.error.code]);X.set(f,4);return X};
S0T.prototype.hJ=function(){if(this.nkX)return this.nkX;this.nkX=$Gw(this,function(A){return"_"+jjK(A)});
return $Gw(this,function(A){return A})};
var Hkp=function(A,t,f){ab.call(this,A);this.qen=t;this.clientState=f;this.pyh="S";this.hKY="q"};
_.R(Hkp,ab);Hkp.prototype.hJ=function(){var A=Math.floor(Date.now()/1E3),t=[Math.random()*255,Math.random()*255],f=t.concat([this.qen&255,this.clientState],[A>>24&255,A>>16&255,A>>8&255,A&255]);A=new Uint8Array(2+f.length);A[0]=34;A[1]=f.length;A.set(f,2);f=A.subarray(2);for(var X=t=t.length;X<f.length;++X)f[X]^=f[X%t];this.dw.fqi(this.clientState);return A};var aU7={fg4:3E4,gEd:2E4},K_=function(A){_.DA.call(this);var t=this;this.yAF=new _.Qc;this.hrs=0;this.pE=void 0;this.state=2;this.vm=A.vm;this.dL=A.dL;this.wcu=Object.assign({},aU7,A.wcu||{});this.cJ=A.vm.uY2();var f;this.onError=(f=A.onError)!=null?f:function(){};
this.swl=A.swl||!1;if(KyE(A)){var X=this.vm;this.qos=function(){return hTl(X).catch(function(e){e=t.reportError(new l6(t.vv?20:32,"TRG:Disposed",e));t.pE=e;var G;(G=t.vv)==null||G.dispose();t.vv=void 0;t.yAF.reject(e)})};
RTp(X,function(){return void gjw(t)});
X.eRy===2&&gjw(this)}else this.qos=A.y6d,gjw(this);var Q=this.cJ.share();Q.pQ("o");var q=new XxS(Q,"o");this.yAF.promise.then(function(){q.done();Q.a3();Q.dispose()},function(){return void Q.dispose()});
this.addOnDisposeCallback(function(){t.vv?(t.vv.dispose(),t.vv=void 0):t.pE?t.cJ.a3():(t.pE=t.reportError(new l6(32,"TNP:Disposed")),t.cJ.a3(),t.yAF.reject(t.pE))});
_.hV(this,this.cJ)};
_.R(K_,_.DA);K_.prototype.h9s=function(){return this.yAF.promise};
var wxT=function(A,t){if(!(t instanceof l6))if(t instanceof _.xg){var f=Error(t.toString());f.stack=t.stack;t=new l6(11,"EBH:Error",f)}else t=new l6(12,"BSO:Unknown",t);return A.reportError(t)},gjw=function(A){var t,f,X,Q,q,e,G,N,z,T,O,c,B,h,W;
return _.l(function(L){switch(L.nextAddress){case 1:t=void 0;A.hrs++;f=new _.Qc;A.vm instanceof S$&&A.vm.jnY.push(f.promise);if(!A.swl){L.jumpTo(2);break}X=new _.Qc;setTimeout(function(){return void X.resolve()});
return L.yield(X.promise,2);case 2:return Q=A.cJ.share(),_.ht(L,4,5),A.state=5,q={},e=[],L.yield(pA(A.vm.snapshot({yj:q,l9n:e}),A.wcu.gEd,function(){return Promise.reject(new l6(15,"MDA:Timeout"))}),7);
case 7:G=L.yieldResult;if(A.isDisposed())throw new l6(A.vv?20:32,"MDA:Disposed");N=e[0];A.state=6;return L.yield(pA(sjl(A.dL,G),A.wcu.fg4,function(){return Promise.reject(new l6(10,"BWB:Timeout"))}),8);
case 8:z=L.yieldResult;if(A.isDisposed())throw new l6(A.vv?20:32,"BWB:Disposed");A.state=7;t=_.ob(Q,function(){var D=k7E(A,z,f,N);D.pYy.promise.then(function(){return void A.qos()});
return D},"i");
case 5:_.mz(L);Q.dispose();_.yP(L,6);break;case 4:T=_.vC(L);(O=t)==null||O.dispose();if(!A.pE){c=wxT(A,T);f.resolve();var E;if(E=A.vm instanceof S$&&A.hrs<2)a:if(T instanceof l6)E=T.code!==32&&T.code!==20&&T.code!==10;else{if(T instanceof _.xg)switch(T.code){case 2:case 13:case 14:case 4:break;default:E=!1;break a}E=!0}if(E)return B=(1+Math.random()*.25)*(A.vv?6E4:1E3),h=setTimeout(function(){return void A.qos()},B),A.addOnDisposeCallback(function(){return void clearTimeout(h)}),L.return();
A.pE=c}Q.logError(A.vv?13:14);A.yAF.reject(A.pE);return L.return();case 6:A.state=8,A.hrs=0,(W=A.vv)==null||W.dispose(),A.vv=t,A.yAF.resolve(),_.LO(L)}})},k7E=function(A,t,f,X){var Q=DbC(t,2)*1E3;
if(Q<=0)throw new l6(31,"TTM:Invalid");if(_.Wz(t,4))return new dGS(A.cJ,_.Wz(t,4),Q);if(!DbC(t,3))return new ojT(A.cJ,iSf(_.ir(t,1)),Q);if(!X)throw new l6(4,"PMD:Undefined");X=X(iSf(_.ir(t,1)));if(!(X instanceof Function))throw new l6(16,"APF:Failed");A.zG4=Math.floor((Date.now()+Q)/1E3);A=new Zkk(A.cJ,X,DbC(t,3),Q);A.addOnDisposeCallback(function(){return void f.resolve()});
return A};
K_.prototype.hJ=function(A){return rel(this,Object.assign({},A),!1)};
K_.prototype.dlj=function(A){return rel(this,Object.assign({},A),!0)};
K_.prototype.so6=function(A){if(A>150)return!1;try{return this.cache=new EjT(A,this.cJ),!0}catch(t){return this.reportError(new l6(22,"GBJ:init",t)),!1}};
K_.prototype.reportError=function(A){this.cJ.logError(A.code);this.onError(A);return A};
var Aqw=function(A,t){t=t instanceof l6?t:new l6(5,"TVD:error",t);return A.reportError(t)},rel=function(A,t,f){try{if(A.isDisposed())throw new l6(21,"BNT:disposed");
if(!A.vv&&A.pE)throw A.pE;var X,Q;return(Q=(X=tCp(A,t,f))!=null?X:fsT(A,t,f))!=null?Q:XDb(A,t,f)}catch(q){if(!t.tjY)throw Aqw(A,q);return Q6l(A,f,q)}},tCp=function(A,t,f){var X;
return(X=A.vv)==null?void 0:VJb(X,function(){return qJ8(A,t)},f,function(Q){var q;
if(A.vv instanceof Zkk&&((q=t.kO)==null?0:q.dK0))try{var e;(e=A.cache)==null||njw(e,qJ8(A,t),Q,t.kO.eRj,A.zG4-120)}catch(G){A.reportError(new l6(24,"ELX:write",G))}})},fsT=function(A,t,f){var X;
if((X=t.kO)!=null&&X.jdW)try{var Q,q=(Q=A.cache)==null?void 0:DGl(Q,qJ8(A,t),t.kO.eRj);return q?f?_.ob(A.cJ,function(){return _.E2(q,2)},"a"):q:void 0}catch(e){A.reportError(new l6(23,"RXO:read",e))}},XDb=function(A,t,f){var X={stack:[],
error:void 0,hasError:!1};try{if(!t.oe6)throw new l6(29,"SDF:notready");return VJb(cbT(X,new Hkp(A.cJ,0,A.state)),function(){return qJ8(A,t)},f)}catch(Q){X.error=Q,X.hasError=!0}finally{BsS(X)}},Q6l=function(A,t,f){var X={stack:[],
error:void 0,hasError:!1};try{var Q=Aqw(A,f);return VJb(cbT(X,new S0T(A.cJ,Q)),function(){return[]},t)}catch(q){X.error=q,X.hasError=!0}finally{BsS(X)}},qJ8=function(A,t){return t.cJj?t.cJj:t.yj?_.ob(A.cJ,function(){return t.cJj=Y0T(t.yj)},"c"):[]},KyE=function(A){return Ip(function(t){if(!ux(t))return!1;
for(var f=_.U(Object.entries(A)),X=f.next();!X.done;X=f.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;if(!(X in t)){if(Q.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Q(t[X]))return!1}return!0})}({vm:function(A){return Ip(function(t){return t instanceof A})}(S$)},"");var JqT=function(){var A=_.AL();this.JSC$9997_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",T_("cookie_enabled"),T_("cookie_3p_enabled"),_.OB("browser"))};
JqT.prototype.increment=function(A,t,f){this.JSC$9997_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",A,t,f)};
var AA5=function(){var A=_.AL();this.JSC$10021_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",iI("tick"),T_("from_st_cookie"))};
AA5.prototype.increment=function(A,t){this.JSC$10021_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",A,t)};
var Uqf=function(){var A=_.AL();this.JSC$10027_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.OB("status"))};
Uqf.prototype.increment=function(A){this.JSC$10027_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",A)};
var eGK=function(){var A=_.AL();this.JSC$10030_streamzService=A;A.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.OB("stage"),T_("is_using_ytd_player"),T_("has_expandable_tiles"))};
eGK.prototype.increment=function(A,t,f){this.JSC$10030_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",A,t,f)};
var GmC=function(){var A=_.AL();this.JSC$10033_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/response_signature",_.OB("check_status"))};
GmC.prototype.increment=function(A){this.JSC$10033_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/web/response_signature",A)};
var lsS=function(){var A=_.AL();this.JSC$10036_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.OB("sig"),iI("de"))};
lsS.prototype.increment=function(A,t){this.JSC$10036_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/web/e_sig_log",A,t)};
var Nbk=function(){var A=_.AL();this.JSC$10039_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.OB("sig"),iI("de"))};
Nbk.prototype.increment=function(A,t){this.JSC$10039_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/web/e_sig_en",A,t)};
_.uiC=function(){var A=_.AL();this.JSC$10042_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.OB("action"))};
_.uiC.prototype.increment=function(A){this.JSC$10042_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/web/enforcement_intent",A)};var g_=window;var zGT=(new Date).getTime();_.VG.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.VG.createSet("action","cite","data","formaction","href","manifest","poster","src");var Pnw=function(A){this.servicePromise_=A;A.then((0,_.F1)(function(){},this),function(){},this)},Tbb=function(A,t,f){A.servicePromise_.then(function(X){var Q=X[t];
if(!Q)throw Error("Ka`"+t);return Q.apply(X,f)})},cqK=function(A,t,f){for(var X=Array(arguments.length-2),Q=2;Q<arguments.length;Q++)X[Q-2]=arguments[Q];
Q=iUS(A,t).then(function(q){return q.apply(null,X)},function(q){q=Error("La`"+t+"`"+A+"`"+q,{cause:q});
delete OUp[t];return _.OX(q)});
return new Pnw(Q)},OUp={},iUS=function(A,t){var f=OUp[t];
if(f)return f;f=(f=_.Ae(t))?_.ff(f):(new _.yy(function(X,Q){var q=(new p3(document)).createElement("SCRIPT");q.async=!0;_.UV(q,_.pb(zw7(A)));q.onload=q.onreadystatechange=function(){q.readyState&&q.readyState!="loaded"&&q.readyState!="complete"||X()};
q.onerror=function(e){Q(Error("Ma`"+t+"`"+A,{cause:e}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(q)})).then(function(){var X=_.Ae(t);
if(!X)throw Error("Na`"+t+"`"+A);return X});
return OUp[t]=f};var Bbp={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Cnb=function(){var A=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=VJl(function(){return _.l(function(t){if(t.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?t.return(Promise.resolve()):t.yield(MCk(A),2);A.rsaForList.length>
0&&document.addEventListener("click",A.requestAccessForHelpPanel);_.LO(t)})});
this.requestAccessForHelpPanel=function(){if(!(A.rsaForPromises.length>0)){for(var t=_.U(A.rsaForList),f=t.next();!f.done;f=t.next()){f=f.value;try{A.rsaForPromises.push(document.requestStorageAccessFor(f))}catch(X){}}Promise.all(A.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){A.reset()})}}};
Cnb.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var MCk=function(A){var t,f,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:t=_.U(Object.values(Bbp)),f=t.next();case 2:if(f.done){q.jumpTo(0);break}X=f.value;_.ht(q,5);return q.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:X}),7);case 7:Q=q.yieldResult;Q.state!=="granted"&&A.rsaForList.push(X);_.qq(q,3);break;case 5:_.vC(q);q.jumpTo(0);break;case 3:f=t.next(),q.jumpTo(2)}})};(new Cnb).initialize();var hGT=function(A){this.JSC$10056_loader_=A};
hGT.prototype.startHelp=function(A){Tbb(this.JSC$10056_loader_,"startHelp",arguments)};
hGT.prototype.JSC$10058_loadChatSupport=function(A){Tbb(this.JSC$10056_loader_,"loadChatSupport",arguments)};
var mq8=function(A,t){t=t||{};A=cqK(RGi,"help.service.Lazy.create",A,{apiKey:t.apiKey||t.apiKey,asxUiUri:t.asxUiUri||t.asxUiUri,environment:t.environment||t.environment,flow:t.flow||t.flow,frdProductData:t.frdProductData||t.frdProductData,frdProductDataSerializedJspb:t.frdProductDataSerializedJspb||t.frdProductDataSerializedJspb,helpCenterPath:t.helpCenterPath||t.helpCenterPath,locale:t.locale||t.locale||"en-US".replace(/-/g,"_"),nonce:t.nonce||t.nonce,productData:t.productData||t.productData,receiverUri:t.receiverUri||
t.receiverUri,renderApiUri:t.renderApiUri||t.renderApiUri,theme:t.theme||t.theme,window:t.window||t.window});return new hGT(A)},RGi=new wL($Ix,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var bUi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(bUi,_.e3);var WZ7=_.Cb(bUi);var yqw=[0,_.s1,dV,R3k];_.vtp=new function(A,t,f,X){this.configType=A;this.flagName=f;this.defaultValue=X;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 pDC=function(){this.retriever=_.Px().resolve(LZk)};_.aJ={get payments(){return window.payments}};ojx(Node);ojx(Element);var EtC=ojx(HTMLElement);ojx(SVGElement);var nt8,Dqp,kg,FZw;nt8=function(A){return typeof A.className=="string"?A.className:A.getAttribute&&A.getAttribute("class")||""};
Dqp=function(A){return A.classList?A.classList:nt8(A).match(/\S+/g)||[]};
_.w_=function(A,t){typeof A.className=="string"?A.className=t:A.setAttribute&&A.setAttribute("class",t)};
_.sY=function(A,t){return A.classList?A.classList.contains(t):_.Zx(Dqp(A),t)};
_.Vx=function(A,t){if(A.classList)A.classList.add(t);else if(!_.sY(A,t)){var f=nt8(A);_.w_(A,f+(f.length>0?" "+t:t))}};
kg=function(A,t){if(A.classList)Array.prototype.forEach.call(t,function(Q){_.Vx(A,Q)});
else{var f={};Array.prototype.forEach.call(Dqp(A),function(Q){f[Q]=!0});
Array.prototype.forEach.call(t,function(Q){f[Q]=!0});
t="";for(var X in f)t+=t.length>0?" "+X:X;_.w_(A,t)}};
_.jr=function(A,t){A.classList?A.classList.remove(t):_.sY(A,t)&&_.w_(A,Array.prototype.filter.call(Dqp(A),function(f){return f!=t}).join(" "))};
FZw=function(A,t){A.classList?Array.prototype.forEach.call(t,function(f){_.jr(A,f)}):_.w_(A,Array.prototype.filter.call(Dqp(A),function(f){return!_.Zx(t,f)}).join(" "))};var IsE=function(A){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=A.document},YJk=function(A,t){xqf(A);
var f=document.createElement("div"),X;(X=t.parentNode)==null||X.insertBefore(f,t);f.tabIndex=0;f.id="fc-focus-trap-pre-div";f=document.createElement("div");var Q;(Q=t.parentNode)==null||Q.insertBefore(f,t.nextSibling);f.tabIndex=0;f.id="fc-focus-trap-post-div";var q=j6K(A,t),e=j6K(A,t,!0);q&&e&&(A.focusChangeHandler=function(){var G=A.document.activeElement;if(G)if(_.gw(t,G))A.previouslyFocusedElement=G;else if(G===A.document.activeElement)switch(A.previouslyFocusedElement){case q:e.focus();A.previouslyFocusedElement=
e;break;default:q.focus(),A.previouslyFocusedElement=q}},A.document.addEventListener("focus",A.focusChangeHandler,!0),A.document.addEventListener("focusin",A.focusChangeHandler))},xqf=function(A){A.focusChangeHandler&&(document.removeEventListener("focus",A.focusChangeHandler,!0),document.removeEventListener("focusin",A.focusChangeHandler),A.focusChangeHandler=null);
var t;(t=document.getElementById("fc-focus-trap-pre-div"))==null||t.remove();var f;(f=document.getElementById("fc-focus-trap-post-div"))==null||f.remove()},VC8=function(A,t,f,X,Q){f=f===void 0?!0:f;
var q;Q=(q=Q===void 0?null:Q)!=null?q:j6K(A,t,X===void 0?!1:X);Q!==null&&(Q.focus(),f&&YJk(A,t))};
IsE.prototype.disableButton=function(A,t){t=t===void 0?null:t;A.disabled=!0;t&&_.Vx(A,t)};
var j6K=function(A,t,f){f=f===void 0?!1:f;if(GVl(t)&&!f)return t;var X=f?[].slice.call(t.children,0).reverse():t.children;X=_.U(X);for(var Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,EtC(Q)&&(Q=j6K(A,Q,f)))return Q;return GVl(t)&&f?t:null};var ZUE=function(A){this.originalBodyOverflow="";this.JSC$10083_domHelper=nn(A);var t;this.isScrollingEnabled=((t=this.JSC$10083_domHelper.JSC$9409_document_.body)==null?void 0:t.style.overflow)!=="hidden"};
ZUE.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10083_domHelper.JSC$9409_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.rS(_.Iy,_.DA);_.J=_.Iy.prototype;_.J.JSC$10086_id_=0;_.J.disposeInternal=function(){_.Iy.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10084_listener_;delete this.handler_};
_.J.start=function(A){this.stop();this.JSC$10086_id_=Ib(this.callback_,A!==void 0?A:this.JSC$10084_interval_)};
_.J.stop=function(){this.isActive()&&_.Xb.clearTimeout(this.JSC$10086_id_);this.JSC$10086_id_=0};
_.J.fire=function(){this.stop();this.JSC$10086_doAction_()};
_.J.isActive=function(){return this.JSC$10086_id_!=0};
_.J.JSC$10086_doAction_=function(){this.JSC$10086_id_=0;this.JSC$10084_listener_&&this.JSC$10084_listener_.call(this.handler_)};_.CP=function(A){_.DA.call(this);this.handler_=A;this.JSC$10087_keys_={}};
_.rS(_.CP,_.DA);var otS=[];_.CP.prototype.listen=function(A,t,f,X){Array.isArray(t)||(t&&(otS[0]=t.toString()),t=otS);for(var Q=0;Q<t.length;Q++){var q=_.TV(A,t[Q],f||this.handleEvent,X||!1,this.handler_||this);if(!q)break;this.JSC$10087_keys_[q.key]=q}return this};
_.CP.prototype.listenOnce=function(A,t,f,X){return dqS(this,A,t,f,X)};
var dqS=function(A,t,f,X,Q,q){if(Array.isArray(f))for(var e=0;e<f.length;e++)dqS(A,t,f[e],X,Q,q);else{t=Nx(t,f,X||A.handleEvent,Q,q||A.handler_||A);if(!t)return A;A.JSC$10087_keys_[t.key]=t}return A};
_.CP.prototype.unlisten=function(A,t,f,X,Q){if(Array.isArray(t))for(var q=0;q<t.length;q++)this.unlisten(A,t[q],f,X,Q);else if(A=uET(A,t,f||this.handleEvent,_.Hp(X)?!!X.capture:!!X,Q||this.handler_||this))uP(A),delete this.JSC$10087_keys_[A.key];return this};
_.CP.prototype.removeAll=function(){_.VG.forEach(this.JSC$10087_keys_,function(A,t){this.JSC$10087_keys_.hasOwnProperty(t)&&uP(A)},this);
this.JSC$10087_keys_={}};
_.CP.prototype.disposeInternal=function(){_.CP.superClass_.disposeInternal.call(this);this.removeAll()};
_.CP.prototype.handleEvent=function(){throw Error("Oa");};var r_=function(){_.DA.call(this);this.services_={}};
_.rS(r_,_.DA);r_.prototype.connect=function(A){A&&A()};
r_.prototype.isConnected=function(){return!0};
r_.prototype.registerService=function(A,t,f){this.services_[A]={callback:t,objectPayload:!!f}};
r_.prototype.getService=function(A,t){var f=this.services_[A];return f?f:this.defaultService_?{callback:_.l0(this.defaultService_,A),objectPayload:_.Hp(t)}:null};
var SJT=function(A,t){if(t&&typeof A==="string")try{return JSON.parse(A)}catch(f){return null}else if(!t&&typeof A!=="string")return(0,_.j$)(A);return A};
r_.prototype.disposeInternal=function(){r_.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 AH=function(A,t){this.sequence_=[];this.onCancelFunction_=A;this.defaultScope_=t||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};
AH.prototype.cancel=function(A){if(this.fired_)this.result_ instanceof AH&&this.result_.cancel();else{if(this.parent_){var t=this.parent_;delete this.parent_;A?t.cancel(A):(t.branches_--,t.branches_<=0&&t.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new tH(this))}};
AH.prototype.continue_=function(A,t){this.blocked_=!1;$qi(this,A,t)};
var $qi=function(A,t,f){A.fired_=!0;A.result_=f;A.hadError_=!t;HUf(A)},KZT=function(A){if(A.fired_){if(!A.silentlyCanceled_)throw new asT(A);
A.silentlyCanceled_=!1}};
AH.prototype.callback=function(A){KZT(this);$qi(this,!0,A)};
AH.prototype.errback=function(A){KZT(this);$qi(this,!1,A)};
var gtC=function(A,t,f){fL(A,t,null,f)};
AH.prototype.finally=function(A){var t=this;return wDb(new Promise(function(f,X){fL(t,function(Q){A();f(Q)},function(Q){A();
X(Q)})}))};
var fL=function(A,t,f,X){var Q=A.fired_;Q||(t===f?t=f=EY(t):(t=EY(t),f=EY(f)));A.sequence_.push([t,f,X]);Q&&HUf(A)};
AH.prototype.then=function(A,t,f){var X,Q,q=new _.yy(function(e,G){Q=e;X=G});
fL(this,Q,function(e){e instanceof tH?q.cancel():X(e);return s68},this);
return q.then(A,t,f)};
M2l(AH);var kmC=function(A,t){t instanceof AH?gtC(A,(0,_.F1)(t.branch,t)):gtC(A,function(){return t})};
AH.prototype.branch=function(A){var t=new AH;fL(this,t.callback,t.errback,t);A&&(t.parent_=this,this.branches_++);return t};
AH.prototype.isError=function(A){return A instanceof Error};
var rqT=function(A){return Uv(A.sequence_,function(t){return typeof t[1]==="function"})},s68={},HUf=function(A){if(A.unhandledErrorId_&&A.fired_&&rqT(A)){var t=A.unhandledErrorId_,f=AO7[t];
f&&(_.Xb.clearTimeout(f.JSC$10104_id_),delete AO7[t]);A.unhandledErrorId_=0}A.parent_&&(A.parent_.branches_--,delete A.parent_);t=A.result_;for(var X=f=!1;A.sequence_.length&&!A.blocked_;){var Q=A.sequence_.shift(),q=Q[0],e=Q[1];Q=Q[2];if(q=A.hadError_?e:q)try{var G=q.call(Q||A.defaultScope_,t);G===s68&&(G=void 0);G!==void 0&&(A.hadError_=A.hadError_&&(G==t||A.isError(G)),A.result_=t=G);if(CkK(t)||typeof _.Xb.Promise==="function"&&t instanceof _.Xb.Promise)X=!0,A.blocked_=!0}catch(N){t=N,A.hadError_=
!0,rqT(A)||(f=!0)}}A.result_=t;X&&(G=(0,_.F1)(A.continue_,A,!0),X=(0,_.F1)(A.continue_,A,!1),t instanceof AH?(fL(t,G,X),t.blocking_=!0):t.then(G,X));f&&(t=new tYf(t),AO7[t.JSC$10104_id_]=t,A.unhandledErrorId_=t.JSC$10104_id_)},wDb=function(A){var t=new AH;
A.then(function(f){t.callback(f)},function(f){t.errback(f)});
return t},asT=function(){_.Ab.call(this)};
_.rS(asT,_.Ab);asT.prototype.message="Deferred has already fired";asT.prototype.name="AlreadyCalledError";var tH=function(){_.Ab.call(this)};
_.rS(tH,_.Ab);tH.prototype.message="Deferred was canceled";tH.prototype.name="CanceledError";var tYf=function(A){this.JSC$10104_id_=_.Xb.setTimeout((0,_.F1)(this.throwError,this),0);this.JSC$10104_error_=A};
tYf.prototype.throwError=function(){delete AO7[this.JSC$10104_id_];throw this.JSC$10104_error_;};
var AO7={};var f3T={1:"NativeMessagingTransport"},XQK=["pu","lru","pru","lpu","ppu"],qvp=function(){for(var A=10,t=Qi8,f=t.length,X="";A-- >0;)X+=t.charAt(Math.floor(Math.random()*f));return X},Qi8="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Xo=function(A){_.DA.call(this);this.JSC$10107_domHelper_=A||nn()};
_.rS(Xo,_.DA);Xo.prototype.transportType=0;Xo.prototype.getWindow=function(){return this.JSC$10107_domHelper_.getWindow()};
Xo.prototype.getName=function(){return f3T[String(this.transportType)]||""};var QN=function(A,t,f,X,Q){Xo.call(this,f);this.JSC$10110_channel_=A;this.protocolVersion_=Q||2;this.peerHostname_=t||"*";this.JSC$10110_eventHandler_=new _.CP(this);this.maybeAttemptToConnectTimer_=new _.MP(100,this.getWindow());this.oneSidedHandshake_=!!X;this.setupAckReceived_=new AH;this.setupAckSent_=new AH;this.JSC$10110_connected_=new AH;this.endpointId_=qvp();this.peerEndpointId_=null;this.oneSidedHandshake_?JOT(this.JSC$10110_channel_)==1?kmC(this.JSC$10110_connected_,this.setupAckReceived_):
kmC(this.JSC$10110_connected_,this.setupAckSent_):(kmC(this.JSC$10110_connected_,this.setupAckReceived_),this.protocolVersion_==2&&kmC(this.JSC$10110_connected_,this.setupAckSent_));gtC(this.JSC$10110_connected_,this.notifyConnected_,this);this.JSC$10110_connected_.callback(!0);this.JSC$10110_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.rS(QN,Xo);QN.prototype.peerProtocolVersion_=null;QN.prototype.initialized_=!1;QN.prototype.transportType=1;var UAp={};QN.prototype.sendTimerId_=0;
var l38=function(A){var t=A.event_.data;if(typeof t!=="string")return!1;var f=t.indexOf("|"),X=t.indexOf(":");if(f==-1||X==-1)return!1;var Q=t.substring(0,f);f=t.substring(f+1,X);t=t.substring(X+1);if(X=q3[Q])return X.xpcDeliver(f,t,A.event_.origin),!0;X=eEb(t)[0];for(var q in q3){var e=q3[q];if(JOT(e)==1&&!e.isConnected()&&f=="tp"&&(X=="SETUP"||X=="SETUP_NTPV2")&&GOk(e,A.event_.origin))return delete q3[e.name],e.name=Q,q3[Q]=e,e.xpcDeliver(f,t),!0}return!1},NLS=function(A){A.protocolVersion_!=2||
A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=2||A.send("tp","SETUP_NTPV2,"+A.endpointId_);
A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=1||A.send("tp","SETUP")},uO8=function(A,t){if(A.protocolVersion_!=2||A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=2||t!=2){if(A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=1||t!=1)return;
A.send("tp","SETUP_ACK")}else A.send("tp","SETUP_ACK_NTPV2");A.setupAckSent_.fired_||A.setupAckSent_.callback(!0)},zEk=function(A,t){t>A.peerProtocolVersion_&&(A.peerProtocolVersion_=t);
A.peerProtocolVersion_==1&&(A.setupAckSent_.fired_||A.oneSidedHandshake_||A.setupAckSent_.callback(!0),A.peerEndpointId_=null)};
_.J=QN.prototype;_.J.connect=function(){var A=this.getWindow(),t=_.gs(A),f=UAp[t];typeof f!=="number"&&(f=0);f==0&&_.TV(A.postMessage?A:A.document,"message",l38,!1,QN);UAp[t]=f+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.J.maybeAttemptToConnect_=function(){var A=JOT(this.JSC$10110_channel_)==0;this.oneSidedHandshake_&&A||this.JSC$10110_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),NLS(this))};
_.J.send=function(A,t){var f=this.JSC$10110_channel_.peerWindowObject_;f&&(this.send=function(X,Q){var q=this,e=this.JSC$10110_channel_.name;this.sendTimerId_=Ib(function(){q.sendTimerId_=0;try{var G=f.postMessage?f:f.document;G.postMessage&&G.postMessage(e+"|"+X+":"+Q,q.peerHostname_)}catch(N){}},0)},this.send(A,t))};
_.J.notifyConnected_=function(){var A=this.JSC$10110_channel_,t=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;A.isConnected()||A.connectionDelay_&&A.connectionDelay_.isActive()||(A.state_=2,_.ee(A.connectionDelay_),t!==void 0?(A.connectionDelay_=new _.Iy(A.connectCb_,t),A.connectionDelay_.start()):(A.connectionDelay_=null,A.connectCb_()))};
_.J.disposeInternal=function(){if(this.initialized_){var A=this.getWindow(),t=_.gs(A),f=UAp[t];UAp[t]=f-1;f==1&&_.L_(A.postMessage?A:A.document,"message",l38,!1,QN)}this.sendTimerId_&&(_.Xb.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.ee(this.JSC$10110_eventHandler_);delete this.JSC$10110_eventHandler_;_.ee(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10110_connected_.cancel();delete this.JSC$10110_connected_;delete this.send;QN.superClass_.disposeInternal.call(this)};
var eEb=function(A){A=A.split(",");A[1]=A[1]||null;return A};var TLT;_.JH=function(A){if(A.getValues&&typeof A.getValues=="function")return A.getValues();if(typeof Map!=="undefined"&&A instanceof Map||typeof Set!=="undefined"&&A instanceof Set)return Array.from(A.values());if(typeof A==="string")return A.split("");if(_.ST(A)){for(var t=[],f=A.length,X=0;X<f;X++)t.push(A[X]);return t}return _.VG.getValues(A)};
_.PXT=function(A){if(A.getKeys&&typeof A.getKeys=="function")return A.getKeys();if(!A.getValues||typeof A.getValues!="function"){if(typeof Map!=="undefined"&&A instanceof Map)return Array.from(A.keys());if(!(typeof Set!=="undefined"&&A instanceof Set)){if(_.ST(A)||typeof A==="string"){var t=[];A=A.length;for(var f=0;f<A;f++)t.push(f);return t}return _.VG.getKeys(A)}}};
TLT=function(A,t,f){if(A.forEach&&typeof A.forEach=="function")A.forEach(t,f);else if(_.ST(A)||typeof A==="string")Array.prototype.forEach.call(A,t,f);else for(var X=_.PXT(A),Q=_.JH(A),q=Q.length,e=0;e<q;e++)t.call(f,Q[e],X&&X[e],A)};var Gup,zY,TY,hEl,i4i,cOT,O4p,CXp,BLT;
_.oq=function(A,t){this.JSC$10115_domain_=this.userInfo_=this.scheme_="";this.JSC$10115_port_=null;this.fragment_=this.JSC$10115_path_="";this.JSC$10115_ignoreCase_=!1;var f;A instanceof _.oq?(this.JSC$10115_ignoreCase_=t!==void 0?t:A.JSC$10115_ignoreCase_,_.UE(this,A.scheme_),this.userInfo_=A.userInfo_,_.eQ(this,A.JSC$10115_domain_),_.GY(this,A.JSC$10115_port_),_.lR(this,A.getPath()),_.N3(this,A.JSC$10115_queryData_.clone()),_.uR(this,A.fragment_)):A&&(f=_.eJ(String(A)))?(this.JSC$10115_ignoreCase_=
!!t,_.UE(this,f[1]||"",!0),this.userInfo_=zY(f[2]||""),_.eQ(this,f[3]||"",!0),_.GY(this,f[4]),_.lR(this,f[5]||"",!0),_.N3(this,f[6]||"",!0),_.uR(this,f[7]||"",!0)):(this.JSC$10115_ignoreCase_=!!t,this.JSC$10115_queryData_=new _.Po(null,this.JSC$10115_ignoreCase_))};
_.oq.prototype.toString=function(){var A=[],t=this.scheme_;t&&A.push(TY(t,i4i,!0),":");var f=this.JSC$10115_domain_;if(f||t=="file")A.push("//"),(t=this.userInfo_)&&A.push(TY(t,i4i,!0),"@"),A.push(_.fk(f).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f=this.JSC$10115_port_,f!=null&&A.push(":",String(f));if(f=this.getPath())this.JSC$10115_domain_&&f.charAt(0)!="/"&&A.push("/"),A.push(TY(f,f.charAt(0)=="/"?O4p:cOT,!0));(f=this.JSC$10115_queryData_.toString())&&A.push("?",f);(f=this.fragment_)&&A.push("#",
TY(f,BLT));return A.join("")};
_.oq.prototype.resolve=function(A){var t=this.clone(),f=!!A.scheme_;f?_.UE(t,A.scheme_):f=!!A.userInfo_;f?t.userInfo_=A.userInfo_:f=!!A.JSC$10115_domain_;f?_.eQ(t,A.JSC$10115_domain_):f=A.JSC$10115_port_!=null;var X=A.getPath();if(f)_.GY(t,A.JSC$10115_port_);else if(f=!!A.JSC$10115_path_){if(X.charAt(0)!="/")if(this.JSC$10115_domain_&&!this.JSC$10115_path_)X="/"+X;else{var Q=t.getPath().lastIndexOf("/");Q!=-1&&(X=t.getPath().slice(0,Q+1)+X)}Q=X;if(Q==".."||Q==".")X="";else if(_.lu(Q,"./")||_.lu(Q,
"/.")){X=_.ql(Q,"/");Q=Q.split("/");for(var q=[],e=0;e<Q.length;){var G=Q[e++];G=="."?X&&e==Q.length&&q.push(""):G==".."?((q.length>1||q.length==1&&q[0]!="")&&q.pop(),X&&e==Q.length&&q.push("")):(q.push(G),X=!0)}X=q.join("/")}else X=Q}f?_.lR(t,X):f=A.JSC$10115_queryData_.toString()!=="";f?_.N3(t,A.JSC$10115_queryData_.clone()):f=!!A.fragment_;f&&_.uR(t,A.fragment_);return t};
_.oq.prototype.clone=function(){return new _.oq(this)};
_.UE=function(A,t,f){A.scheme_=f?zY(t,!0):t;A.scheme_&&(A.scheme_=A.scheme_.replace(/:$/,""));return A};
_.eQ=function(A,t,f){A.JSC$10115_domain_=f?zY(t,!0):t;return A};
_.GY=function(A,t){if(t){t=Number(t);if(isNaN(t)||t<0)throw Error("Pa`"+t);A.JSC$10115_port_=t}else A.JSC$10115_port_=null;return A};
_.oq.prototype.getPath=function(){return this.JSC$10115_path_};
_.lR=function(A,t,f){A.JSC$10115_path_=f?zY(t,!0):t;return A};
_.N3=function(A,t,f){t instanceof _.Po?(A.JSC$10115_queryData_=t,MY7(A.JSC$10115_queryData_,A.JSC$10115_ignoreCase_)):(f||(t=TY(t,CXp)),A.JSC$10115_queryData_=new _.Po(t,A.JSC$10115_ignoreCase_));return A};
_.AZ=function(A,t,f){A.JSC$10115_queryData_.set(t,f);return A};
_.rw=function(A,t){return A.JSC$10115_queryData_.get(t)};
_.uR=function(A,t,f){A.fragment_=f?zY(t):t;return A};
_.iR=function(A){_.AZ(A,"zx",sB());return A};
_.kC=function(A,t){return A instanceof _.oq?A.clone():new _.oq(A,t)};
Gup=function(A,t){A instanceof _.oq||(A=_.kC(A));t instanceof _.oq||(t=_.kC(t));return A.resolve(t)};
zY=function(A,t){return A?t?decodeURI(A.replace(/%25/g,"%2525")):decodeURIComponent(A):""};
TY=function(A,t,f){return typeof A==="string"?(A=encodeURI(A).replace(t,hEl),f&&(A=A.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),A):null};
hEl=function(A){A=A.charCodeAt(0);return"%"+(A>>4&15).toString(16)+(A&15).toString(16)};
i4i=/[#\/\?@]/g;cOT=/[#\?:]/g;O4p=/[#\?]/g;CXp=/[#\?@]/g;BLT=/#/g;_.Po=function(A,t){this.count_=this.keyMap_=null;this.encodedQuery_=A||null;this.JSC$10116_ignoreCase_=!!t};
_.OE=function(A){A.keyMap_||(A.keyMap_=new Map,A.count_=0,A.encodedQuery_&&lAS(A.encodedQuery_,function(t,f){A.add(u2(t),f)}))};
_.J=_.Po.prototype;_.J.getCount=function(){_.OE(this);return this.count_};
_.J.add=function(A,t){_.OE(this);this.encodedQuery_=null;A=co(this,A);var f=this.keyMap_.get(A);f||this.keyMap_.set(A,f=[]);f.push(t);this.count_+=1;return this};
_.J.remove=function(A){_.OE(this);A=co(this,A);return this.keyMap_.has(A)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(A).length,this.keyMap_.delete(A)):!1};
_.J.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.J.isEmpty=function(){_.OE(this);return this.count_==0};
_.J.containsKey=function(A){_.OE(this);A=co(this,A);return this.keyMap_.has(A)};
_.J.containsValue=function(A){var t=this.getValues();return _.Zx(t,A)};
_.J.forEach=function(A,t){_.OE(this);this.keyMap_.forEach(function(f,X){f.forEach(function(Q){A.call(t,Q,X,this)},this)},this)};
_.J.getKeys=function(){_.OE(this);for(var A=Array.from(this.keyMap_.values()),t=Array.from(this.keyMap_.keys()),f=[],X=0;X<t.length;X++)for(var Q=A[X],q=0;q<Q.length;q++)f.push(t[X]);return f};
_.J.getValues=function(A){_.OE(this);var t=[];if(typeof A==="string")this.containsKey(A)&&(t=t.concat(this.keyMap_.get(co(this,A))));else{A=Array.from(this.keyMap_.values());for(var f=0;f<A.length;f++)t=t.concat(A[f])}return t};
_.J.set=function(A,t){_.OE(this);this.encodedQuery_=null;A=co(this,A);this.containsKey(A)&&(this.count_-=this.keyMap_.get(A).length);this.keyMap_.set(A,[t]);this.count_+=1;return this};
_.J.get=function(A,t){if(!A)return t;A=this.getValues(A);return A.length>0?String(A[0]):t};
_.REf=function(A,t,f){A.remove(t);f.length>0&&(A.encodedQuery_=null,A.keyMap_.set(co(A,t),_.ds(f)),A.count_+=f.length)};
_.Po.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var A=[],t=Array.from(this.keyMap_.keys()),f=0;f<t.length;f++){var X=t[f],Q=_.fk(X);X=this.getValues(X);for(var q=0;q<X.length;q++){var e=Q;X[q]!==""&&(e+="="+_.fk(X[q]));A.push(e)}}return this.encodedQuery_=A.join("&")};
_.Po.prototype.clone=function(){var A=new _.Po;A.encodedQuery_=this.encodedQuery_;this.keyMap_&&(A.keyMap_=new Map(this.keyMap_),A.count_=this.count_);return A};
var co=function(A,t){t=String(t);A.JSC$10116_ignoreCase_&&(t=t.toLowerCase());return t},MY7=function(A,t){t&&!A.JSC$10116_ignoreCase_&&(_.OE(A),A.encodedQuery_=null,A.keyMap_.forEach(function(f,X){var Q=X.toLowerCase();
X!=Q&&(this.remove(X),_.REf(this,Q,f))},A));
A.JSC$10116_ignoreCase_=t};
_.Po.prototype.extend=function(A){for(var t=0;t<arguments.length;t++)TLT(arguments[t],function(f,X){this.add(X,f)},this)};var Bo=function(A,t){r_.call(this);for(var f=0,X;X=XQK[f];f++)if(X in A&&!/^https?:\/\//.test(A[X]))throw Error("Ra`"+A[X]+"`"+X);this.cfg_=A;this.name=this.cfg_.cn||qvp();this.JSC$10111_domHelper_=t||nn();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.CP(this);A.lpu=A.lpu||eLp(this.JSC$10111_domHelper_.getWindow().location.href)+"/robots.txt";A.ppu=A.ppu||eLp(A.pu||"")+"/robots.txt";q3[this.name]=this;uET(window,"unload",mAl)||Nx(window,"unload",mAl)};
_.rS(Bo,r_);var b4S=RegExp("^%*tp$"),WiT=RegExp("^%+tp$");_.J=Bo.prototype;_.J.connectionDelay_=null;_.J.peerWindowDeferred_=null;_.J.transport_=null;_.J.state_=1;_.J.isConnected=function(){return this.state_==2};
_.J.peerWindowObject_=null;_.J.iframeElement_=null;_.J.getConfig=function(){return this.cfg_};
_.J.connect=function(A){this.connectCb_=A||_.bz;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?gtC(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.J.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10111_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var A=this.iframeElement_.contentWindow;A||(A=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=A}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");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$10111_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new QN(this,this.cfg_.ph,this.JSC$10111_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.J.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.ee(this.transport_);this.connectCb_=this.transport_=null;_.ee(this.connectionDelay_);this.connectionDelay_=null};
_.J.send=function(A,t){if(this.isConnected()){try{var f=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Q){f=!1}if(f){_.Hp(t)&&(t=(0,_.j$)(t));f=this.transport_;var X=f.send;b4S.test(A)&&(A="%"+A);A=A.replace(/[%:|]/g,encodeURIComponent);X.call(f,A,t)}else this.close()}};
_.J.xpcDeliver=function(A,t,f){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.F1)(this.xpcDeliver,this,A,t,f));else if(GOk(this,f)&&!this.isDisposed()&&this.state_!=3)if(A&&A!="tp")this.isConnected()&&(A=A.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),A=WiT.test(A)?A.substring(1):A,A=this.getService(A,t))&&(t=SJT(t,A.objectPayload),t!=null&&A.callback(t));else switch(A=this.transport_,f=eEb(t),t=f[1],f[0]){case "SETUP_ACK":zEk(A,1);A.setupAckReceived_.fired_||A.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":A.protocolVersion_==2&&(zEk(A,2),A.setupAckReceived_.fired_||A.setupAckReceived_.callback(!0));break;case "SETUP":zEk(A,1);uO8(A,1);break;case "SETUP_NTPV2":A.protocolVersion_==2&&(f=A.peerProtocolVersion_,zEk(A,2),uO8(A,2),f!=1&&A.peerEndpointId_==null||A.peerEndpointId_==t||NLS(A),A.peerEndpointId_=t)}};
var JOT=function(A){var t=A.cfg_.role;return typeof t==="number"?t:window.parent==A.peerWindowObject_?1:0},GOk=function(A,t){var f=A.cfg_.ph;
return _.Ux(t==null?"":String(t))||_.Ux(f==null?"":String(f))||t==A.cfg_.ph};
Bo.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete q3[this.name];_.ee(this.peerLoadHandler_);delete this.peerLoadHandler_;Bo.superClass_.disposeInternal.call(this)};
var mAl=function(){for(var A in q3)_.ee(q3[A])},q3={};var vB8=function(A,t){this.win=A;this.allowAdsHttpEndpoint=t;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10125_domHelper=nn(A);this.scrollManager=new ZUE(A);this.accessibilityManager=new IsE(A);yOT(this)},yOT=function(A){var t=function(){A.allowAdsPopup&&A.allowAdsPopup.style.setProperty("display","none","important");
A.wallElement.style.setProperty("display","","important");xqf(A.accessibilityManager);VC8(A.accessibilityManager,A.wallElement.querySelector(".fc-dialog-container"),!1,!1,A.wallElement.querySelector(".fc-button-whitelist"));A.scrollManager.enableScrolling()};
A.allowAdsPopup=A.JSC$10125_domHelper.JSC$9411_createDom("DIV",{"class":"fc-whitelist-root"});A.allowAdsPopup.style.setProperty("display","none","important");A.JSC$10125_domHelper.appendChild(A.JSC$10125_domHelper.JSC$9409_document_.body,A.allowAdsPopup);var f=A.JSC$10125_domHelper.JSC$9411_createDom("DIV",{"class":"fc-dialog-overlay"});A.JSC$10125_domHelper.appendChild(A.allowAdsPopup,f);var X=A.JSC$10125_domHelper.JSC$9411_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:t});A.JSC$10125_domHelper.appendChild(A.allowAdsPopup,
X);f=A.JSC$10125_domHelper.JSC$9411_createDom("IFRAME");f.className="fc-whitelist-dialog";f.frameBorder="0";f.id="fc-whitelist-iframe";f.tabIndex="0";_.rW(f,A.allowAdsHttpEndpoint);A.JSC$10125_domHelper.appendChild(X,f);X={};X.pu=_.Ei(A.allowAdsHttpEndpoint).toString();X.tp=1;X.cn="fc-whitelist-channel";X.ifrid=f.id;X.osh=!0;A.allowAdsCrossPageChannel=new Bo(X);A.allowAdsCrossPageChannel.registerService("close",t);A.allowAdsCrossPageChannel.registerService("refresh",function(){A.win.location.reload()});
A.allowAdsCrossPageChannel.registerService("resize",function(Q){if(Q){var q=A.allowAdsPopup.querySelector(".fc-whitelist-dialog");Q.width&&q.style.setProperty("width",Q.width,"important");Q.height&&q.style.setProperty("height",Q.height,"important")}},!0);
A.allowAdsCrossPageChannel.connect()};
vB8.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10125_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var M3=window,CL=document,Lii=M3.location,pQC=function(){},EBp=/\[native code\]/,hH=function(A,t,f){return A[t]=A[t]||f},nBp=function(A){A=A.sort();
for(var t=[],f=void 0,X=0;X<A.length;X++){var Q=A[X];Q!=f&&t.push(Q);f=Q}return t},RP=function(){var A;
if((A=Object.create)&&EBp.test(A))A=A(null);else{A={};for(var t in A)A[t]=void 0}return A},mm=hH(M3,"gapi",{});var bR={};bR=hH(M3,"___jsl",RP());hH(bR,"I",0);hH(bR,"hel",10);var DAw=function(){var A=Lii.href;if(bR.dpo)var t=bR.h;else{t=bR.h;var f=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),X=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(A=A&&(f.exec(A)||X.exec(A)))try{t=decodeURIComponent(A[2])}catch(Q){}}return t},FiC=function(A){var t=hH(bR,"PQ",[]);
bR.PQ=[];var f=t.length;if(f===0)A();else for(var X=0,Q=function(){++X===f&&A()},q=0;q<f;q++)t[q](Q)},I3E=function(A){return hH(hH(bR,"H",RP()),A,RP())};var Wo=function(A){this.JSC$10127_obj_=A};
Wo.prototype.value=function(){return this.JSC$10127_obj_};
Wo.prototype.getWidth=function(){return this.JSC$10127_obj_.width};
Wo.prototype.getHeight=function(){return this.JSC$10127_obj_.height};
Wo.prototype.getStyle=function(){return this.JSC$10127_obj_.style};var xAf=function(A){this.JSC$10130_obj_=A||{}};
_.J=xAf.prototype;_.J.value=function(){return this.JSC$10130_obj_};
_.J.setUrl=function(A){this.JSC$10130_obj_.url=A;return this};
_.J.getUrl=function(){return this.JSC$10130_obj_.url};
_.J.getStyle=function(){return this.JSC$10130_obj_.style};
_.J.getId=function(){return this.JSC$10130_obj_.id};
_.J.getContext=function(){return this.JSC$10130_obj_.context};
var jii=function(A){A.JSC$10130_obj_.attributes=A.JSC$10130_obj_.attributes||{};return new Wo(A.JSC$10130_obj_.attributes)};var YvS=function(){xAf.apply(this,arguments)};
_.R(YvS,xAf);var VYK=hH(bR,"perf",RP());hH(VYK,"g",RP());var Z4K=hH(VYK,"i",RP());hH(VYK,"r",[]);RP();RP();var dAp=function(A,t,f){t&&t.length>0&&(t=oBE(t),f&&f.length>0&&(t+="___"+oBE(f)),t.length>28&&(t=t.substr(0,28)+(t.length-28)),f=t,t=hH(Z4K,"_p",RP()),hH(t,f,RP())[A]=(new Date).getTime(),t=VYK.r,typeof t==="function"?t(A,"_p",f):t.push([A,"_p",f]))},oBE=function(A){return A.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var SvT=RP(),$AS=[],yN=function(A){throw Error("Ua`"+A);};
$AS.push(["jsl",function(A){for(var t in A)if(Object.prototype.hasOwnProperty.call(A,t)){var f=A[t];typeof f=="object"?bR[t]=hH(bR,t,[]).concat(f):hH(bR,t,f)}if(t=A.u)A=hH(bR,"us",[]),A.push(t),(t=/^https:(.*)$/.exec(t))&&A.push("http:"+t[1])}]);
var H4S=/^(\/[a-zA-Z0-9_\-]+)+$/,a3T=[/\/amp\//,/\/amp$/,/^\/amp$/],KiC=/^[a-zA-Z0-9\-_\.,!]+$/,gBE=/^gapi\.loaded_[0-9]+$/,wQE=/^[a-zA-Z0-9,._-]+$/,A4K=function(A,t,f,X,Q){var q=A.split(";"),e=q.shift(),G=SvT[e],N=null;G?N=G(q,t,f,X):yN("no hint processor for: "+e);N||yN("failed to generate load url");t=N;f=t.match(siE);(X=t.match(kOb))&&X.length===1&&rOp.test(t)&&f&&f.length===1||yN("failed sanity: "+A);try{A="?";if(Q&&Q.length>0){F5b(Q);var z=Q.join(",");N=N+"?le="+z;A="&"}if(bR.rol){var T=bR.ol;
T&&T.length&&(N=""+N+A+"ol="+T.length)}}catch(O){}return N},X9i=function(A,t,f,X){A=tUp(A);
gBE.test(f)||yN("invalid_callback");t=f_K(t);X=X&&X.length?f_K(X):null;var Q=function(q){return encodeURIComponent(q).replace(/%2C/g,",")};
return[encodeURIComponent(A.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Q(A.version),"/m=",Q(t),X?"/exm="+Q(X):"","/rt=j/sv=1/d=1/ed=1",A.activeMods?"/am="+Q(A.activeMods):"",A.resourceSig?"/rs="+Q(A.resourceSig):"",A.zcms?"/t="+Q(A.zcms):"","/cb=",Q(f)].join("")},tUp=function(A){A.charAt(0)!=="/"&&yN("relative path");
for(var t=A.substring(1).split("/"),f=[];t.length;){A=t.shift();if(!A.length||A.indexOf(".")==0)yN("empty/relative directory");else if(A.indexOf("=")>0){t.unshift(A);break}f.push(A)}A={};for(var X=0,Q=t.length;X<Q;++X){var q=t[X].split("="),e=decodeURIComponent(q[0]),G=decodeURIComponent(q[1]);q.length==2&&e&&G&&(A[e]=A[e]||G)}t="/"+f.join("/");H4S.test(t)||yN("invalid_prefix");f=0;for(X=a3T.length;f<X;++f)a3T[f].test(t)&&yN("invalid_prefix");f=Qwb(A,"k",!0);X=Qwb(A,"am");Q=Qwb(A,"rs");A=Qwb(A,"t");
return{pathPrefix:t,version:f,activeMods:X,resourceSig:Q,zcms:A}},f_K=function(A){for(var t=[],f=0,X=A.length;f<X;++f){var Q=A[f].replace(/\./g,"_").replace(/-/g,"_");
wQE.test(Q)&&t.push(Q)}return t.join(",")},Qwb=function(A,t,f){A=A[t];
!A&&f&&yN("missing: "+t);if(A){if(KiC.test(A))return A;yN("invalid: "+t)}return null},rOp=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,kOb=/\/cb=/g,siE=/\/\//g;
SvT.m=function(A,t,f,X){(A=A[0])||yN("missing_hint");return"https://apis.google.com"+X9i(A,t,f,X)};
var qIT=decodeURI("%73cript"),J4E=/^[-+_0-9\/A-Za-z]+={0,2}$/,U9l=function(A,t){for(var f=[],X=0;X<A.length;++X){var Q=A[X],q;if(q=Q){a:{for(q=0;q<t.length;q++)if(t[q]===Q)break a;q=-1}q=q<0}q&&f.push(Q)}return f},eME=function(){var A=bR.nonce;
return A!==void 0?A&&A===String(A)&&A.match(J4E)?A:bR.nonce=null:CL.querySelector?(A=CL.querySelector("script[nonce]"))?(A=A.nonce||A.getAttribute("nonce")||"",A&&A===String(A)&&A.match(J4E)?bR.nonce=A:bR.nonce=null):null:null},N$T=function(A){if(CL.readyState!="loading")GUw(A);
else{var t=eME(),f="";t!==null&&(f=' nonce="'+t+'"');A="<"+qIT+' src="'+encodeURI(A)+'"'+f+"></"+qIT+">";CL.write(l_T?l_T.createHTML(A):A)}},GUw=function(A){var t=CL.createElement(qIT);
t.setAttribute("src",l_T?l_T.createScriptURL(A):A);A=eME();A!==null&&t.setAttribute("nonce",A);t.async="true";(A=CL.getElementsByTagName(qIT)[0])?A.parentNode.insertBefore(t,A):(CL.head||CL.body||CL.documentElement).appendChild(t)},zM8=function(A,t,f){uAS(function(){var X=t===DAw()?hH(mm,"_",RP()):RP();
X=hH(I3E(t),"_",X);A(X)},f)},fuq=function(A,t){var f=t||{};
typeof t=="function"&&(f={},f.callback=t);var X=(t=f)&&t._c;if(X)for(var Q=0;Q<$AS.length;Q++){var q=$AS[Q][0],e=$AS[Q][1];e&&Object.prototype.hasOwnProperty.call(X,q)&&e(X[q],A,t)}t=[];A?t=A.split(":"):f.features&&(t=f.features);if(!(A=f.h)&&(A=DAw(),!A))throw Error("Va");PdT(t||[],f,A)},PdT=function(A,t,f){A=nBp(A)||[];
var X=t.callback,Q=t.config,q=t.timeout,e=t.ontimeout,G=t.onerror,N=void 0;typeof G=="function"&&(N=G);var z=null,T=!1;if(q&&!e||!q&&e)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";G=hH(I3E(f),"r",[]).sort();var O=hH(I3E(f),"L",[]).sort(),c=bR.le||[],B=[].concat(G),h=function(S,Z){if(T)return 0;M3.clearTimeout(z);O.push.apply(O,W);var d=((mm||{}).config||{}).update;d?d(Q):Q&&hH(bR,"cu",[]).push(Q);if(Z){dAp("me0",S,B);try{zM8(Z,f,N)}finally{dAp("me1",S,B)}}return 1};
q>0&&(z=M3.setTimeout(function(){T=!0;e()},q));
var W=U9l(A,O);if(W.length){W=U9l(A,G);var L=hH(bR,"CP",[]),E=L.length;L[E]=function(S){if(!S)return 0;dAp("ml1",W,B);var Z=function(K){L[E]=null;h(W,S)&&FiC(function(){X&&X();K()})},d=function(){var K=L[E+1];
K&&K()};
E>0&&L[E-1]?L[E]=function(){Z(d)}:Z(d)};
if(W.length){var D="loaded_"+bR.I++;mm[D]=function(S){L[E](S);mm[D]=null};
A=A4K(f,W,"gapi."+D,G,c);G.push.apply(G,W);dAp("ml0",W,B);t.sync||M3.___gapisync?N$T(A):GUw(A)}else L[E](pQC)}else h(W)&&X&&X()},T$k;
var iV8=null,OVK=_.Xb.trustedTypes;if(OVK&&OVK.createPolicy){try{iV8=OVK.createPolicy("goog#gapi",{createHTML:Og8,createScript:Og8,createScriptURL:Og8})}catch(A){_.Xb.console&&_.Xb.console.error(A.message)}T$k=iV8}else T$k=iV8;var l_T=T$k,uAS=function(A,t){if(bR.hee&&bR.hel>0)try{return A()}catch(f){t&&t(f),bR.hel--,fuq("debug_error",function(){try{window.___jsl.hefn(f)}catch(X){throw f;}})}else try{return A()}catch(f){throw t&&t(f),f;
}},c4i=mm.load;
c4i&&hH(bR,"ol",[]).push(c4i);mm.load=function(A,t){return uAS(function(){return fuq(A,t)})};var aUx;var MUb=function(A,t){var f=f||[];this.serviceId_=A;this.moduleId_=t||null;this.dependencies_=[];B$K(this,f)};
MUb.prototype.toString=function(){return this.serviceId_};
MUb.prototype.getModuleId=function(){return this.moduleId_};
var B$K=function(A,t){var f=!1;f=f===void 0?!1:f;A.dependencies_=A.dependencies_.concat(t);if(f){if(!A.moduleId_)throw Error("Wa`"+A.serviceId_);t.map(function(X){return X.getModuleId()}).forEach(function(X){Kys(function(Q){Q.addExtraEdge(A.moduleId_,X)})})}};var DPx=new MUb("MpJwZc","MpJwZc");var Wxb=new _.mk("a"),IfT=new _.mk("c"),Fj5=function(A,t,f){_.b6.call(this,A,t);this.node=t;this.kind=f};
_.R(Fj5,_.b6);var CdC=function(){this.JSC$10143_keys_={};this.urlPrefix_="";this.JSC$10143_queryData_={}};
CdC.prototype.toString=function(){var A=this.urlPrefix_+hMb(this),t=_.vx(this.JSC$10143_queryData_),f="";t!=""&&(f="?"+t);return A+f};
var RMk=function(A){A=vo(A,"md");return!!A&&A!=="0"},hMb=function(A){var t=[],f=function(X){A.JSC$10143_keys_[X]!==void 0&&t.push(X+"="+A.JSC$10143_keys_[X])};
RMk(A)?(f("md"),f("k"),f("ck"),f("am"),f("rs"),f("gssmodulesetproto"),f("slk"),f("dti")):(f("sdch"),f("k"),f("ck"),f("am"),f("rt"),"d"in A.JSC$10143_keys_||LL(A,"d","0"),f("d"),f("exm"),f("excm"),(A.JSC$10143_keys_.excm||A.JSC$10143_keys_.exm)&&t.push("ed=1"),f("im"),f("dg"),f("sm"),vo(A,"br")!="1"&&vo(A,"br")!="0"||f("br"),f("br-d"),vo(A,"rb")=="1"&&f("rb"),vo(A,"zs")!=="0"&&f("zs"),m9K(A)!==""&&f("wt"),f("gssmodulesetproto"),f("ujg"),f("sp"),f("rs"),f("cb"),f("ee"),f("slk"),f("dti"),f("m"));return t.join("/")},
vo=function(A,t){return A.JSC$10143_keys_[t]?A.JSC$10143_keys_[t]:null},LL=function(A,t,f){f?A.JSC$10143_keys_[t]=f:delete A.JSC$10143_keys_[t]},bVb=function(A,t){A.urlPrefix_=t},WEb=function(A,t){t&&t.length>0?(t.sort(),LL(A,"exm",t.join(","))):LL(A,"exm",null)},y48=function(A,t){t&&t.length>0?(t.sort(),LL(A,"excm",t.join(","))):LL(A,"excm",null)},vHk=function(A){return(A=vo(A,"m"))?A.split(","):[]},m9K=function(A){switch(vo(A,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},LEE=function(A,t){var f=Object.keys(t).filter(function(X){return!!Object.keys(t[X]).length}).map(function(X){var Q=Object.keys(t[X]);
Q.length>1&&Q.sort();return X+":"+Q.join(",")});
f.sort();LL(A,"ee",f.join(";"))},VCq=function(A){var t=vo(A,"ee");
if(!t)return{};A={};t=_.U(t.split(";"));for(var f=t.next();!f.done;f=t.next()){var X=_.U(f.value.split(":"));f=X.next().value;X=X.next().value;A[f]={};X=_.U(X.split(","));for(var Q=X.next();!Q.done;Q=X.next())A[f][Q.value]=!0}return A},p9K=function(A){delete A.JSC$10143_keys_.m;
delete A.JSC$10143_keys_.exm;delete A.JSC$10143_keys_.ed};
CdC.prototype.clone=function(){var A=new CdC;A.JSC$10143_keys_=Object.assign({},this.JSC$10143_keys_);A.urlPrefix_=this.urlPrefix_;A.JSC$10143_queryData_=Object.assign({},this.JSC$10143_queryData_);return A};
var ZUs=function(A,t){t=t===void 0?!0:t;var f=EHp(A),X=new CdC,Q=_.eJ(f)[5];_.VG.forEach(nHK,function(e){var G=Q.match("/"+e+"=([^/]+)");G&&LL(X,e,G[1])});
var q="";q=A.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";bVb(X,A.substr(0,A.indexOf(q)+q.length));if(!t)return X;(A=_.eJ(f)[6]||null)&&lAS(A,function(e,G){X.JSC$10143_queryData_[e]=G});
return X},xqb=function(A){A=_.Wx(EHp(A));
return A===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(A)?/\/k=/.test(A):!1},EHp=function(A){return A.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?A.substr(65):A},nHK={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"},D9T=RegExp("^loaded_(g|h)?[_\\d]+$");_.pL=function(A){this.JSC$10155_id_=A;this.opts={}};
_.pL.prototype.JSC$10157_setLabel=function(A){this.label_=A||void 0;return this};
_.pL.prototype.addUploadMetadata=function(A,t){var f=this.opts.data||{};f[A]=t;this.opts.data=f;return this};
var FET=function(A){var t=_.VG.filter(A.opts,function(f){return f!==null});
t=_.VG.isEmpty(t)?null:t;A=[A.JSC$10155_id_,A.label_,t];t=L55(A);return A=A.slice(0,t+1)};
_.pL.prototype.toString=function(){var A=FET(this);return"("+_.Zg(A,function(t){return JSON.stringify(t)}).join(",")+")"};
_.pL.prototype.getId=function(){return this.JSC$10155_id_};
_.pL.prototype.getOptions=function(){return _.VG.clone(this.opts)};var EE=function(){_.pL.call(this,"image-search")};
_.R(EE,_.pL);EE.prototype.setSize=function(A){this.opts.imgsz=A;return this};
EE.prototype.JSC$10157_setLabel=function(A){_.pL.prototype.JSC$10157_setLabel.call(this,A);return this};
EE.prototype.addUploadMetadata=function(A,t){_.pL.prototype.addUploadMetadata.call(this,A,t);return this};var nL=function(){_.pL.call(this,"maps")};
_.R(nL,_.pL);nL.prototype.setZoom=function(A){this.opts.zoom=A;return this};
nL.prototype.JSC$10157_setLabel=function(A){_.pL.prototype.JSC$10157_setLabel.call(this,A);return this};
nL.prototype.addUploadMetadata=function(A,t){_.pL.prototype.addUploadMetadata.call(this,A,t);return this};_.DW=function(){_.pL.call(this,"photos")};
_.R(_.DW,_.pL);_.DW.prototype.JSC$10157_setLabel=function(A){_.pL.prototype.JSC$10157_setLabel.call(this,A);return this};
_.DW.prototype.addUploadMetadata=function(A,t){_.pL.prototype.addUploadMetadata.call(this,A,t);return this};var Fo=function(){_.pL.call(this,"url")};
_.R(Fo,_.pL);var I_T=function(){var A=new Fo;A.opts.type="video";A.opts.site="youtube.com";return A};
Fo.prototype.JSC$10157_setLabel=function(A){_.pL.prototype.JSC$10157_setLabel.call(this,A);return this};
Fo.prototype.addUploadMetadata=function(A,t){_.pL.prototype.addUploadMetadata.call(this,A,t);return this};var IP=function(){_.pL.call(this,"video-search")};
_.R(IP,_.pL);var x9C=function(){var A=new IP;A.opts.site="youtube.com";return A};
IP.prototype.JSC$10157_setLabel=function(A){_.pL.prototype.JSC$10157_setLabel.call(this,A);return this};
IP.prototype.addUploadMetadata=function(A,t){_.pL.prototype.addUploadMetadata.call(this,A,t);return this};var jwC=function(){_.pL.call(this,"web")};
_.R(jwC,_.pL);jwC.prototype.JSC$10157_setLabel=function(A){_.pL.prototype.JSC$10157_setLabel.call(this,A);return this};
jwC.prototype.addUploadMetadata=function(A,t){_.pL.prototype.addUploadMetadata.call(this,A,t);return this};var xw=function(){this.items_=[];this.opts={}},YIw=function(A){switch(A){case "image-search":return new EE;
case "maps":return new nL;case "photos":return new _.DW;case "url":return new Fo;case "video-search":return new IP;case "web":return new jwC}return new _.pL(A)};
xw.prototype.addView=function(A){this.items_.push(typeof A==="string"?YIw(A):A);return this};
var VUl=function(A){return"("+_.Zg(A.items_,function(t){return t.toString()}).join(",")+")"};
xw.prototype.toString=function(){return VUl(this)};
xw.prototype.getViews=function(A,t){t=t===void 0?[]:t;for(var f=this.items_,X=0;X<f.length;X++){var Q=f[X];Q instanceof xw?Q.getViews(A,t):Q.getId()==A&&t.push(Q)}return t};
xw.prototype.getOptions=function(){return _.VG.clone(this.opts)};var Hf=function(A){this.basePickerUrl_=A||"https://docs.google.com/picker";this.nav_=new xw};
Hf.prototype.nav_=null;Hf.prototype.addView=function(A){this.nav_.addView(A);return this};
Hf.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Hf.prototype.getViews=function(A){return this.nav_.getViews(A)};
_.ZVf=function(A,t){A.callback_=t;return A};var oHT=new Map;oHT.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");oHT.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");oHT.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var d9S=new Set;d9S.add("application/vnd.google-apps.kix");d9S.add("application/vnd.google-apps.ritz");d9S.add("application/vnd.google-apps.punch");var t0l=function(A,t,f){var X=f&&_.Wz(f,1);f=SIT(f);var Q=A[0].getId();switch(_.ye(Q,2)){case 13:return $9C(A,t,X,f);case 3:return HVK(A,t,X,f);case 10:return a_C(A,t,X,f);case 27:return a_C(A,t,X,f);case 12:return KEp(A,t);case 2:return gHS(A,t,X,f);case 5:return w9C(A,t,X,f);case 9:return swb(A,t,X,f);case 6:return kUf(A,t,X,f);case 25:return r48(A,t,X,f);case 1:return _.Pz(A[0],W7i,26)?AWp(A,t,X,f):a_C(A,t,X,f);default:return{}}},kUf=function(A,t,f,X){A=A.map(function(Q){return{id:Q.getId().getId(),
serviceId:"youtube",name:Q.getName(),description:_.Wz(Q,3),type:jQ(Q),lastEditedUtc:_.bAp(_.Mq(Q,_.bM,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:_.Wz(Q,13),thumbnails:Yw(QW(Q))}});
return{action:t,docs:A,viewToken:X,view:f||"youtube",v2Translated:!0}},gHS=function(A,t,f,X){var Q=A.map(function(q){var e=q.getId().getId(),G=_.Wz(q,7),N=q.getName(),z=jQ(q),T=_.bAp(_.Mq(q,_.bM,12)).getTime(),O=q.getUrl(),c=Number(FlK(q)),B=_.Wz(q,3),h=_.Wz(q,11),W=Yw(QW(q));
var L=_.Mq(q,qU,21);L=_.hJ(L,1);var E=_.Mq(q,qU,21);E=_.Wz(E,10);var D=_.Wz(q,13);var S=_.Mq(q,qU,21);S=_.hJ(S,9);var Z=_.Mq(q,qU,21);Z=_.Wz(Z,11);e={id:e,serviceId:"docs",mimeType:G,name:N,type:z,lastEditedUtc:T,url:O,sizeBytes:c,description:B,iconUrl:h,thumbnails:W,isShared:L,downloadUrl:E,embedUrl:D,copyable:S,resourceKey:Z};G=_.Mq(q,qU,21);_.hJ(G,12)&&(e.uploadState="success",e.isNew=!0);G=_.Mq(q,qU,21);_.Pz(G,tU,3)&&(q=_.Mq(q,qU,21),q=_.Mq(q,tU,3),_.Pz(q,rU,2)&&(G=Se(q.getDuration().getSeconds()),
N=q.getDuration(),N=_.Pf(N,2),e.duration=G+N/1E9),e.aspectRatio=q.getAspectRatio());return e});
return{action:t,docs:Q,viewToken:X,view:f||"all",extraUserInputs:ffi(A),v2Translated:!0}},w9C=function(A,t,f,X){A=A.map(function(Q){var q=_.Mq(Q,IAp,15);
q=_.Mq(q,AU,1);Ev(Q,10,AU,q);return{id:Q.getId().getId(),serviceId:"web",mimeType:_.Wz(Q,7),name:Q.getName(),type:jQ(Q),url:Q.getUrl(),description:_.Wz(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Yw(QW(Q))}});
return{action:t,docs:A,viewToken:X,view:f||"image-search",v2Translated:!0}},swb=function(A,t,f,X){A=A.map(function(Q){return{serviceId:"url",
name:QW(Q)[0].getUrl().split("/").pop(),type:jQ(Q),mimeType:_.Wz(Q,7),url:Q.getUrl(),description:_.Wz(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Yw(QW(Q))}});
return{action:t,docs:A,viewToken:X,view:f||"url",v2Translated:!0}},AWp=function(A,t,f,X){A=A.map(function(Q){return{id:Q.getId().getId(),
serviceId:"picasa",name:Q.getName(),type:jQ(Q),description:_.Wz(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Yw(QW(Q))}});
return{action:t,docs:A,viewToken:X,view:f||"webcam",v2Translated:!0}},a_C=function(A,t,f,X){return{action:t,
docs:A.map(XVw),viewToken:X,view:QW7(f||"upload",A),extraUserInputs:ffi(A),v2Translated:!0}},QW7=function(A,t){return t.some(function(f){var X;
return((X=_.Mq(f,f_,30))==null?void 0:_.ye(X,3))===9})?A+"/gmailphotos":A},HVK=function(A,t,f,X){var Q=A.map(function(q){var e={id:q.getId().getId(),
serviceId:"picasa",mimeType:_.Wz(q,7),name:q.getName(),type:jQ(q),lastEditedUtc:_.bAp(_.Mq(q,_.bM,12)).getTime(),url:q.getUrl(),sizeBytes:Number(FlK(q)),description:_.Wz(q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Yw(QW(q)),mediaKey:q.getId().getId(),parentId:_.Wz(q,4)},G,N=(G=_.Mq(q,L7f,18))==null?void 0:_.Mq(G,vCl,3);N&&(e.latitude=ma(N,1),e.longitude=ma(N,2));var z;q=(z=_.Mq(q,L7f,18))==null?void 0:RD(z,6);z=q!=null?Se(q):void 0;z&&(e.version=
z);return e});
return{action:t,docs:Q,viewToken:X,view:f||"photos",extraUserInputs:ffi(A),v2Translated:!0}},$9C=function(A,t,f,X){A=A.map(function(Q){return{id:Q.getId().getId(),
serviceId:"et",name:QW(Q)[0].getUrl().split("/").pop(),description:_.Wz(Q,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Yw(QW(Q),"etjpg")}});
return{action:t,docs:A,viewToken:X,view:f||"et",v2Translated:!0}},r48=function(A,t,f,X){A=A.map(function(Q){var q=Q.getId().getId(),e=X["2"];
return{id:q,serviceId:e.type!=="gmail_themes"&&e.parent==="6226252643674576769"?"picasa":"static_themes",name:Q.getName(),mimeType:_.Wz(Q,7),type:jQ(Q),description:_.Wz(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:Q.getUrl(),thumbnails:Yw(QW(Q))}});
return{action:t,docs:A,viewToken:X,view:f||"photos",v2Translated:!0}},KEp=function(A,t){A=A.map(function(f){var X=_.Mq(f,yVS,27);
X=_.gd(X,1,_.Cw,_.uI())[0];return{id:f.getId().getId(),serviceId:"contacts",mimeType:_.Wz(f,7),name:f.getName(),description:_.Wz(f,3),url:"mailto:"+X,thumbnail:[{url:_.Wz(f,11)}],email:X}});
return{action:t,docs:A,view:"contacts",v2Translated:!0}},SIT=function(A){if(!A)return{};
var t=_.Wz(A,3);t=t&&JSON.parse(t)||{};return{0:_.Wz(A,1),1:_.Wz(A,2),2:t}},Yw=function(A,t){t=t===void 0?"":t;
if(!A.length)return null;t=="etjpg"&&(A=A.filter(function(f){return f.getUrl().includes("w1200-h300")}));
return A.map(function(f){return{url:f.getUrl(),height:f.getHeight(),width:f.getWidth(),type:t}})},ffi=function(A){return{isAttachment:A.some(function(t){return _.hJ(t,31)})}},XVw=function(A){var t,f={id:(t=A.getId())==null?void 0:t.getId(),
serviceId:qgT(A),mimeType:_.Wz(A,7),name:A.getName(),type:jQ(A),sizeBytes:Number(FlK(A)),description:_.Wz(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Yw(QW(A)),isNew:!0};if(t=_.Mq(A,f_,30)){f.dataUrl=_.Wz(t,1)||null;a:{var X=_.Mq(A,f_,30);switch(_.ye(X,3)){case 9:X=_.pd(X,Dcw,2,XZ);X={remoteRefs:X&&_.Wz(X,1)};break a;case 10:case 15:X=_.pd(X,nCT,4,XZ);var Q=QW(A);X={photo_id:X&&_.Wz(X,1),media_key:A.getId().getId(),media_type:_.ye(A,6)===1?1:2,image_url:Q&&
Q[0].getUrl(),width:Q&&String(Q[0].getWidth()),height:Q&&String(Q[0].getHeight())};break a}X=null}f.uploadMetadata=X;f.uploadId=_.Wz(t,9)||null;f.uploadState=JWb(t)||null}(X=t&&_.pd(t,nCT,4,XZ))&&(f.id=_.Wz(X,1));(X=t&&_.pd(t,F7b,5,XZ))&&(f.contentId=_.Wz(X,1));(X=t&&_.pd(t,pfp,7,XZ))&&(f.contentId=_.Wz(X,1));(X=t&&_.pd(t,ECK,6,XZ))&&(f.contentId=_.Wz(X,1));(t==null?void 0:_.ye(t,3))===1&&(f.mediaKey=A.getId().getId());return f},qgT=function(A){var t;
switch(((t=_.Mq(A,f_,30))==null?void 0:_.ye(t,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},jQ=function(A){switch(_.ye(A,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 _.Wz(A,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},JWb=function(A){switch(A==null?void 0:_.ye(A,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 lf8,UPT,esC,GST;_.N6T=function(A,t){var f=t||{};t=f.document||document;var X=_.Ei(A).toString(),Q=(new p3(t)).createElement("SCRIPT"),q={script_:Q,timeout_:void 0},e=new AH(UPT,q),G=null,N=f.timeout!=null?f.timeout:5E3;N>0&&(G=window.setTimeout(function(){esC(Q,!0);e.errback(new GST(1,"Timeout reached for loading script "+X))},N),q.timeout_=G);
Q.onload=Q.onreadystatechange=function(){Q.readyState&&Q.readyState!="loaded"&&Q.readyState!="complete"||(esC(Q,f.cleanupWhenDone||!1,G),e.callback(null))};
Q.onerror=function(){esC(Q,!0,G);e.errback(new GST(0,"Error while loading script "+X))};
q=f.attributes||{};_.VG.extend(q,{type:"text/javascript",charset:"UTF-8"});OnS(Q,q);_.UV(Q,A);lf8(t).appendChild(Q);return e};
lf8=function(A){var t=LA("HEAD",A);return t&&t.length!==0?t[0]:A.documentElement};
UPT=function(){if(this&&this.script_){var A=this.script_;A&&A.tagName=="SCRIPT"&&esC(A,!0,this.timeout_)}};
esC=function(A,t,f){f!=null&&_.Xb.clearTimeout(f);A.onload=function(){};
A.onerror=function(){};
A.onreadystatechange=function(){};
t&&window.setTimeout(function(){_.vf(A)},0)};
GST=function(A,t){var f="Jsloader error (code #"+A+")";t&&(f+=": "+t);_.Ab.call(this,f);this.code=A};
_.rS(GST,_.Ab);var uBf=_.dS(["https://apis.google.com/js/api.js"]),zsw=_.OP(uBf),OP8=function(A,t,f){f=f===void 0?{}:f;var X=!1,Q=Ps7(A,t,f).then(function(e){X=!0;return e}),q=_.ZaE(5E3).then(function(){return X?Ps7(A,t,f):T6w(t,f).then(function(e){return iPl(e,A)})});
return vkT([Q,q])},Ps7=function(A,t,f){f=f===void 0?{}:f;
return cWC(t,f).then(function(X){return iPl(X,A)})},iPl=function(A,t){var f=_.ql(t,"gapi.")?t.slice(5):t;
return A[f]?_.ff(A[f]):new _.yy(function(X,Q){var q=Ib(function(){Q(Error("Ya"))},3E4);
A.load(t,{callback:function(){_.Xb.clearTimeout(q);X(A[f])},
onerror:function(e){_.Xb.clearTimeout(q);Q(e)}})})},cWC=function(A,t){t=t===void 0?{}:t;
return A.gapi&&A.gapi.load?_.ff(A.gapi):T6w(A,t)},T6w=function(A,t){t=t===void 0?{}:t;
return _.N6T(zsw,{document:A.document,attributes:t}).then(function(){return A.gapi})},B6p=function(){};
B6p.prototype.load=function(A,t,f){t=t===void 0?window:t;f=f===void 0?{}:f;var X=Date.now();return OP8(A,t,f).then(function(Q){var q=Date.now();return{library:Q,loadStartMs:X,loadEndMs:q}},function(Q){throw Q instanceof Error?Q:Error(String(Q));
})};var Jqp=function(){_.DA.call(this);this.gapiLoader_=new B6p;this.origin_=null;this.gapiPickerIframeResolver_=_.YE();this.gapiIframesResolver_=_.YE();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.R(Jqp,_.DA);var M0w=function(A,t){var f=f===void 0?{}:f;var X=_.Ae("gapi.iframes",t);return X?(A=Date.now(),_.ff({library:X,loadStartMs:A,loadEndMs:A})):A.gapiLoader_.load("gapi.iframes",t,f)},Csp=function(A,t,f,X,Q,q){var e=!1;
e=e===void 0?!1:e;M0w(A,dG(t.ownerDocument)).then(function(G){var N=G.library;A.gapiIframesResolver_.resolve(N);G=A.gapiPickerIframeResolver_;var z=G.resolve,T=e;T=T===void 0?!1:T;var O={};O["host-message-handler"]=f;A.hostMessageHandlerInternal_=O;var c=_.kC(X);c=_.kC(c);c=_.GY(_.eQ(_.UE(new _.oq,c.scheme_),c.JSC$10115_domain_),c.JSC$10115_port_).toString();A.origin_=c;c=(new YvS).setUrl(X);c.JSC$10130_obj_.where=t;c.JSC$10130_obj_.allowPost=T;c.JSC$10130_obj_.messageHandlers=O;T=_.Ae("makeWhiteListIframesFilter",
N)([A.origin_]);c.JSC$10130_obj_.messageHandlersFilter=T;Q!=null&&(c.JSC$10130_obj_.id=Q);q!=null&&(c.JSC$10130_obj_.rpctoken=q);T=jii(c);T.JSC$10127_obj_.style={display:"block","min-width":"100%",width:"1px"};T.JSC$10127_obj_.height="100%";jii(c).value().allow="camera 'src' "+A.origin_;N=N.getContext().openChild(c.value());z.call(G,N)},function(G){A.gapiIframesResolver_.reject(G);
A.gapiPickerIframeResolver_.reject(G)});
return A.gapiPickerIframeResolver_.promise},hsT=function(A,t){return _.DX([A.gapiIframesResolver_.promise,
A.gapiPickerIframeResolver_.promise]).then(function(f){var X=_.U(f);f=X.next().value;return(X=X.next().value)?X.send("picker-message-handler",t,void 0,_.Ae("makeWhiteListIframesFilter",f)([A.origin_])):_.OX(Error("Za"))})};
Jqp.prototype.disposeInternal=function(){RsK(this);_.DA.prototype.disposeInternal.call(this)};
var RsK=function(A){A.gapiPickerIframeResolver_.promise.then(function(t){t&&(t.unregister("host-message-handler"),delete A.hostMessageHandlerInternal_["host-message-handler"])})};var mP8=function(){this.nextId=0};var WjT=function(A,t){switch(A.action){case "select-contacts":A=bPl(A.contacts);break;case "visibility":A=A.visible;var f=new GW;A=_.nd(f,1,7).setVisible(A);f={};f["iframe-command"]=A.serialize();A=f;break;default:A=null}return A?hsT(t,A):_.ff()},bPl=function(A){if(!A||A.length==0)return null;
var t=new GW;_.nd(t,1,11);var f=new mP8;A.forEach(function(X){if(X.email){var Q=new M1;Q=_.jM(Q,2,X.name?X.name:X.email);var q=new yVS;X=_.omx(q,1,_.iy,X.email,_.Cw);X=_.bi(Q,27,X);Q=new mcE;q=":"+(f.nextId++).toString(36);Q=_.jM(Q,1,q);Q=_.nd(Q,2,12);X=_.bi(X,1,Q)}else X=null;X&&Ev(t,7,M1,X)});
A={};A["iframe-command"]=t.serialize();return A};_.yW7=function(){if(gqT){var A=/Windows NT ([0-9.]+)/;return(A=A.exec(_.Ox()))?A[1]:"0"}return _.K5i?(A=/1[0|1][_.][0-9_.]+/,(A=A.exec(_.Ox()))?A[0].replace(/_/g,"."):"10"):dhp?(A=/Android\s+([^\);]+)(\)|;)/,(A=A.exec(_.Ox()))?A[1]:""):s0E||kzf||rbb?(A=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(A=A.exec(_.Ox()))?A[1].replace(/_/g,"."):""):""}();var VN;VN=function(A){return(A=A.exec(_.Ox()))?A[1]:""};
_.viE=function(){if(_.U1)return VN(/Firefox\/([0-9.]+)/);if(_.XG||Nq||$lC)return Jfk;if(_.e7){if(_.pg()||_.bgl()){var A=VN(/CriOS\/([0-9.]+)/);if(A)return A}return VN(/Chrome\/([0-9.]+)/)}if(_.kj&&!_.pg())return VN(/Version\/([0-9.]+)/);if(aNp||KPx){if(A=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Ox()))return A[1]+"."+A[2]}else if(NEE)return(A=VN(/Android\s+([0-9.]+)/))?A:VN(/Version\/([0-9.]+)/);return""}();var Lji=function(){};
_.su(Lji);Lji.prototype.nextId_=0;_.ZW=function(A){return":"+(A.nextId_++).toString(36)};var oP=function(A){_.p_.call(this);this.JSC$10225_dom_=A||nn();this.JSC$10225_id_=null;this.inDocument_=!1;this.JSC$10225_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.rS(oP,_.p_);oP.prototype.idGenerator_=Lji.getInstance();oP.prototype.getId=function(){return this.JSC$10225_id_||(this.JSC$10225_id_=_.ZW(this.idGenerator_))};
oP.prototype.getElement=function(){return this.JSC$10225_element_};
var dz=function(A){A.googUiComponentHandler_||(A.googUiComponentHandler_=new _.CP(A));return A.googUiComponentHandler_},pV7=function(A,t){if(A==t)throw Error("$a");
var f;if(f=t&&A.parent_&&A.JSC$10225_id_){f=A.parent_;var X=A.JSC$10225_id_;f=f.childIndex_&&X?_.VG.get(f.childIndex_,X)||null:null}if(f&&A.parent_!=t)throw Error("$a");A.parent_=t;oP.superClass_.setParentEventTarget.call(A,t)};
oP.prototype.setParentEventTarget=function(A){if(this.parent_&&this.parent_!=A)throw Error("ab");oP.superClass_.setParentEventTarget.call(this,A)};
oP.prototype.JSC$10227_createDom=function(){this.JSC$10225_element_=this.JSC$10225_dom_.createElement("DIV")};
oP.prototype.render=function(A){EiT(this,A)};
var EiT=function(A,t,f){if(A.inDocument_)throw Error("bb");A.JSC$10225_element_||A.JSC$10227_createDom();t?t.insertBefore(A.JSC$10225_element_,f||null):A.JSC$10225_dom_.JSC$9409_document_.body.appendChild(A.JSC$10225_element_);A.parent_&&!A.parent_.inDocument_||A.enterDocument()};
_.J=oP.prototype;_.J.decorate=function(A){if(this.inDocument_)throw Error("bb");if(A&&this.canDecorate(A)){this.wasDecorated_=!0;var t=_.Sn(A);this.JSC$10225_dom_&&this.JSC$10225_dom_.JSC$9409_document_==t||(this.JSC$10225_dom_=nn(A));this.decorateInternal(A);this.enterDocument()}else throw Error("cb");};
_.J.canDecorate=function(){return!0};
_.J.decorateInternal=function(A){this.JSC$10225_element_=A};
_.J.enterDocument=function(){this.inDocument_=!0;niS(this,function(A){!A.inDocument_&&A.getElement()&&A.enterDocument()})};
_.J.exitDocument=function(){niS(this,function(A){A.inDocument_&&A.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.J.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);niS(this,function(A){A.dispose()});
!this.wasDecorated_&&this.JSC$10225_element_&&_.vf(this.JSC$10225_element_);this.parent_=this.model_=this.JSC$10225_element_=this.childIndex_=this.children_=null;oP.superClass_.disposeInternal.call(this)};
_.J.getModel=function(){return this.model_};
_.J.addChild=function(A,t){var f=this.children_?this.children_.length:0;if(A.inDocument_&&(t||!this.inDocument_))throw Error("bb");if(f<0||f>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);A.parent_==this?(_.VG.set(this.childIndex_,A.getId(),A),_.o0(this.children_,A)):_.VG.add(this.childIndex_,A.getId(),A);pV7(A,this);_.DlT(this.children_,f,0,A);A.inDocument_&&this.inDocument_&&A.parent_==this?(t=this.getContentElement(),
(t.childNodes[f]||null)!=A.getElement()&&(A.getElement().parentElement==t&&t.removeChild(A.getElement()),f=t.childNodes[f]||null,t.insertBefore(A.getElement(),f))):t?(this.JSC$10225_element_||this.JSC$10227_createDom(),f=this.children_?this.children_[f+1]||null:null,EiT(A,this.getContentElement(),f?f.JSC$10225_element_:null)):this.inDocument_&&!A.inDocument_&&A.JSC$10225_element_&&A.JSC$10225_element_.parentNode&&A.JSC$10225_element_.parentNode.nodeType==1&&A.enterDocument()};
_.J.getContentElement=function(){return this.JSC$10225_element_};
var niS=function(A,t){A.children_&&A.children_.forEach(t,void 0)};
oP.prototype.removeChild=function(A,t){if(A){var f=typeof A==="string"?A:A.getId();A=this.childIndex_&&f?_.VG.get(this.childIndex_,f)||null:null;f&&A&&(_.VG.remove(this.childIndex_,f),_.o0(this.children_,A),t&&(A.exitDocument(),A.JSC$10225_element_&&_.vf(A.JSC$10225_element_)),pV7(A,null))}if(!A)throw Error("eb");return A};_.rS(sj5,wxp);_.rS(k7s,wxp);var DPw;_.VG.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var FjC=function(A,t){t?A.setAttribute("role",t):A.removeAttribute("role")},SQ=function(A,t,f){Array.isArray(f)&&(f=f.join(" "));
var X="aria-"+t;f===""||f==void 0?(DPw||(f={},DPw=(f.atomic=!1,f.autocomplete="none",f.dropeffect="none",f.haspopup=!1,f.live="off",f.multiline=!1,f.multiselectable=!1,f.orientation="vertical",f.readonly=!1,f.relevant="additions text",f.required=!1,f.sort="none",f.busy=!1,f.disabled=!1,f.hidden=!1,f.invalid="false",f)),f=DPw,t in f?A.setAttribute(X,f[t]):A.removeAttribute(X)):A.setAttribute(X,f)};var Ifi;_.$w=function(A,t,f){_.p_.call(this);this.target=A;this.handle=t||A;this.limits=f||new o1(NaN,NaN,NaN,NaN);this.JSC$10230_document_=_.Sn(A);this.JSC$10230_eventHandler_=new _.CP(this);_.hV(this,this.JSC$10230_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;_.TV(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Ifi};
_.rS(_.$w,_.p_);Ifi=_.Xb.document&&_.Xb.document.documentElement&&!!_.Xb.document.documentElement.setCapture&&!!_.Xb.document.releaseCapture;_.xP8=function(A,t){A.hysteresisDistanceSquared_=Math.pow(t,2)};
_.J=_.$w.prototype;_.J.setEnabled=function(A){this.enabled_=A};
_.J.disposeInternal=function(){_.$w.superClass_.disposeInternal.call(this);_.L_(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10230_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10230_document_.releaseCapture();this.handle=this.target=null};
_.J.startDrag=function(A){var t=A.type=="mousedown";if(!this.enabled_||this.dragging_||t&&(!A.isButton(0)||_.K5i&&A.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Ho("start",this,A.clientX,A.clientY,A)))this.dragging_=!0,t&&A.preventDefault();else return;else t&&A.preventDefault();t=this.JSC$10230_document_;var f=t.documentElement,X=!this.useSetCapture_;this.JSC$10230_eventHandler_.listen(t,["touchmove","mousemove"],this.handleMove_,
{capture:X,passive:!1});this.JSC$10230_eventHandler_.listen(t,["touchend","mouseup"],this.endDrag,X);this.useSetCapture_?(f.setCapture(!1),this.JSC$10230_eventHandler_.listen(f,"losecapture",this.endDrag)):this.JSC$10230_eventHandler_.listen(dG(t),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10230_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,X);this.clientX=this.startX=A.clientX;this.clientY=this.startY=A.clientY;this.screenX=A.screenX;this.screenY=A.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=EP(nn(this.JSC$10230_document_))}};
_.J.endDrag=function(A,t){this.JSC$10230_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10230_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Ho("end",this,A.clientX,A.clientY,A,jWl(this,this.deltaX),YgC(this,this.deltaY),t||A.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.J.handleMove_=function(A){if(this.enabled_){var t=A.clientX-this.clientX,f=A.clientY-this.clientY;this.clientX=A.clientX;this.clientY=A.clientY;this.screenX=A.screenX;this.screenY=A.screenY;if(!this.dragging_){var X=this.startX-this.clientX,Q=this.startY-this.clientY;if(X*X+Q*Q>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Ho("start",this,A.clientX,A.clientY,A)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(A);return}}f=V0i(this,t,f);t=f.x;f=f.y;this.dragging_&&this.dispatchEvent(new Ho("beforedrag",
this,A.clientX,A.clientY,A,t,f))&&(ZPC(this,A,t,f),A.preventDefault())}};
var V0i=function(A,t,f){var X=EP(nn(A.JSC$10230_document_));t+=X.x-A.pageScroll.x;f+=X.y-A.pageScroll.y;A.pageScroll=X;A.deltaX+=t;A.deltaY+=f;return new _.ok(jWl(A,A.deltaX),YgC(A,A.deltaY))};
_.$w.prototype.onScroll_=function(A){var t=V0i(this,0,0);A.clientX=this.clientX;A.clientY=this.clientY;ZPC(this,A,t.x,t.y)};
var ZPC=function(A,t,f,X){A.target.style.left=f+"px";A.target.style.top=X+"px";A.dispatchEvent(new Ho("drag",A,t.clientX,t.clientY,t,f,X))},jWl=function(A,t){var f=A.limits;
A=isNaN(f.left)?null:f.left;f=isNaN(f.width)?0:f.width;return Math.min(A!=null?A+f:Infinity,Math.max(A!=null?A:-Infinity,t))},YgC=function(A,t){var f=A.limits;
A=isNaN(f.top)?null:f.top;f=isNaN(f.height)?0:f.height;return Math.min(A!=null?A+f:Infinity,Math.max(A!=null?A:-Infinity,t))};
_.$w.prototype.isDragging=function(){return this.dragging_};
var Ho=function(A,t,f,X,Q,q,e){_.b6.call(this,A);this.clientX=f;this.clientY=X;this.browserEvent=Q;this.left=q!==void 0?q:t.deltaX;this.top=e!==void 0?e:t.deltaY};
_.rS(Ho,_.b6);var aP=function(A){this.JSC$10237_map_=new Map;var t=arguments.length;if(t>1){if(t%2)throw Error("ma");for(var f=0;f<t;f+=2)this.set(arguments[f],arguments[f+1])}else A&&this.addAll(A)};
_.J=aP.prototype;_.J.getCount=function(){return this.JSC$10237_map_.size};
_.J.getValues=function(){return Array.from(this.JSC$10237_map_.values())};
_.J.getKeys=function(){return Array.from(this.JSC$10237_map_.keys())};
_.J.containsKey=function(A){return this.JSC$10237_map_.has(A)};
_.J.containsValue=function(A){return this.getValues().some(function(t){return t==A})};
_.J.equals=function(A,t){var f=this;t=t===void 0?function(X,Q){return X===Q}:t;
return this===A?!0:this.JSC$10237_map_.size!=A.getCount()?!1:this.getKeys().every(function(X){return t(f.JSC$10237_map_.get(X),A.get(X))})};
_.J.isEmpty=function(){return this.JSC$10237_map_.size==0};
_.J.clear=function(){this.JSC$10237_map_.clear()};
_.J.remove=function(A){return this.JSC$10237_map_.delete(A)};
_.J.get=function(A,t){return this.JSC$10237_map_.has(A)?this.JSC$10237_map_.get(A):t};
_.J.set=function(A,t){this.JSC$10237_map_.set(A,t);return this};
_.J.addAll=function(A){if(A instanceof aP){A=_.U(A.JSC$10237_map_);for(var t=A.next();!t.done;t=A.next()){var f=_.U(t.value);t=f.next().value;f=f.next().value;this.JSC$10237_map_.set(t,f)}}else if(A)for(A=_.U(Object.entries(A)),t=A.next();!t.done;t=A.next())f=_.U(t.value),t=f.next().value,f=f.next().value,this.JSC$10237_map_.set(t,f)};
_.J.forEach=function(A,t){var f=this;t=t===void 0?this:t;this.JSC$10237_map_.forEach(function(X,Q){return A.call(t,X,Q,f)})};
_.J.clone=function(){return new aP(this)};(function(){for(var A=["ms","moz","webkit","o"],t,f=0;t=A[f]&&!_.Xb.requestAnimationFrame;++f)_.Xb.requestAnimationFrame=_.Xb[t+"RequestAnimationFrame"],_.Xb.cancelAnimationFrame=_.Xb[t+"CancelAnimationFrame"]||_.Xb[t+"CancelRequestAnimationFrame"];if(!_.Xb.requestAnimationFrame){var X=0;_.Xb.requestAnimationFrame=function(Q){var q=(new Date).getTime(),e=Math.max(0,16-(q-X));X=q+e;return _.Xb.setTimeout(function(){Q(q+e)},e)};
_.Xb.cancelAnimationFrame||(_.Xb.cancelAnimationFrame=function(Q){clearTimeout(Q)})}})();
var oiK=[[],[]],dPK=0,Sg8=!1,$PE=0,afS=function(A,t){var f=$PE++,X={measureTask:{id:f,fn:A.measure,context:t},mutateTask:{id:f,fn:A.mutate,context:t},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(X.args||(X.args=[]),X.args.length=0,X.args.push.apply(X.args,arguments),X.args.push(X.state)):X.args&&X.args.length!=0?(X.args[0]=X.state,X.args.length=1):X.args=[X.state];X.isScheduled||(X.isScheduled=!0,oiK[dPK].push(X));Sg8||(Sg8=!0,window.requestAnimationFrame(HPk))}},HPk=
function(){Sg8=!1;
var A=oiK[dPK],t=A.length;dPK=(dPK+1)%2;for(var f,X=0;X<t;++X){f=A[X];var Q=f.measureTask;f.isScheduled=!1;Q.fn&&Q.fn.apply(Q.context,f.args)}for(X=0;X<t;++X)f=A[X],Q=f.mutateTask,f.isScheduled=!1,Q.fn&&Q.fn.apply(Q.context,f.args),f.state={};A.length=0};var Kjb=_.dS(["about:blank"]),giS=_.dS(["javascript:undefined"]),wVT=_.OP(Kjb);_.Ei(wVT);var sWk=_.OP(giS);_.Ei(sWk);var KL=function(A){_.p_.call(this);this.JSC$10243_element_=A;this.listenKeyIn_=_.TV(this.JSC$10243_element_,"focus",this,!0);this.listenKeyOut_=_.TV(this.JSC$10243_element_,"blur",this,!0)};
_.rS(KL,_.p_);KL.prototype.handleEvent=function(A){var t=new _.W_(A.event_);t.type=A.type=="focusin"||A.type=="focus"?"focusin":"focusout";this.dispatchEvent(t)};
KL.prototype.disposeInternal=function(){KL.superClass_.disposeInternal.call(this);uP(this.listenKeyIn_);uP(this.listenKeyOut_);delete this.JSC$10243_element_};var kSC=function(A,t){this.JSC$10246_element_=A;this.JSC$10246_dom_=t};var gz=function(A,t){oP.call(this,t);this.useIframeMask_=!!A;this.lastFocus_=null;this.resizeBackgroundTask_=afS({mutate:this.resizeBackground_},this);afS({mutate:this.updateModalAndBackground_},this)};
_.rS(gz,oP);_.J=gz.prototype;_.J.focusHandler_=null;_.J.visible_=!1;_.J.bgEl_=null;_.J.bgIframeEl_=null;_.J.tabCatcherElement_=null;_.J.backwardTabWrapInProgress_=!1;_.J.getCssClass=function(){return"goog-modalpopup"};
_.J.getBackgroundElement=function(){return this.bgEl_};
_.J.JSC$10227_createDom=function(){gz.superClass_.JSC$10227_createDom.call(this);var A=this.getElement(),t=zz(this.getCssClass()).split(" ");kg(A,t);A.tabIndex=0;_.tZ(A,!1);rWl(this);AGp(this)};
var rWl=function(A){if(A.useIframeMask_&&!A.bgIframeEl_){var t=A.JSC$10225_dom_.JSC$9411_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.rW(t,wVT);A.bgIframeEl_=t;A.bgIframeEl_.className=A.getCssClass()+"-bg";_.tZ(A.bgIframeEl_,!1);ag8(A.bgIframeEl_,0)}A.bgEl_||(A.bgEl_=A.JSC$10225_dom_.JSC$9411_createDom("DIV",A.getCssClass()+"-bg"),_.tZ(A.bgEl_,!1))},AGp=function(A){A.tabCatcherElement_||(A.tabCatcherElement_=A.JSC$10225_dom_.createElement("SPAN"),_.tZ(A.tabCatcherElement_,
!1),A.tabCatcherElement_.tabIndex=0,A.tabCatcherElement_.style.position="absolute")};
_.J=gz.prototype;_.J.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.J.canDecorate=function(A){return!!A&&A.tagName=="DIV"};
_.J.decorateInternal=function(A){gz.superClass_.decorateInternal.call(this,A);A=zz(this.getCssClass()).split(" ");kg(this.getElement(),A);rWl(this);AGp(this);this.getElement().tabIndex=0;_.tZ(this.getElement(),!1)};
_.J.enterDocument=function(){this.bgIframeEl_&&_.jq(this.bgIframeEl_,this.getElement());_.jq(this.bgEl_,this.getElement());gz.superClass_.enterDocument.call(this);_.Y6(this.tabCatcherElement_,this.getElement());this.focusHandler_=new KL(this.JSC$10225_dom_.JSC$9409_document_);dz(this).listen(this.focusHandler_,"focusin",this.onFocus);tap(this,!1)};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.ee(this.focusHandler_);gz.superClass_.exitDocument.call(this);_.vf(this.bgIframeEl_);_.vf(this.bgEl_);_.vf(this.tabCatcherElement_)};
_.J.setVisible=function(A){if(A!=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_&&tap(this,A),A){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10225_dom_.JSC$9409_document_.activeElement}catch(Q){}this.updateModalAndBackground_();dz(this).listen(this.JSC$10225_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10225_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);fTS(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Nx(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){dz(this).unlisten(this.JSC$10225_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10225_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Nx(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var t=this.JSC$10225_dom_,f=t.JSC$9409_document_.body,X=t.JSC$9409_document_.activeElement||f;if(!this.lastFocus_||this.lastFocus_==f){this.lastFocus_=null;break a}(X==f||t.contains(this.getElement(),X))&&this.lastFocus_.focus()}catch(Q){}this.lastFocus_=
null}}};
var tap=function(A,t){A.modalAriaVisibilityHelper_||(A.modalAriaVisibilityHelper_=new kSC(A.JSC$10225_element_,A.JSC$10225_dom_));A=A.modalAriaVisibilityHelper_;if(t){A.hiddenElements_||(A.hiddenElements_=[]);t=A.JSC$10246_dom_.getChildren(A.JSC$10246_dom_.JSC$9409_document_.body);for(var f=0;f<t.length;f++){var X=t[f],Q;if(Q=X!=A.JSC$10246_element_)Q=X.getAttribute("aria-hidden"),Q=!(Q==null||Q==void 0?0:String(Q));Q&&(SQ(X,"hidden",!0),A.hiddenElements_.push(X))}}else if(A.hiddenElements_){for(t=
0;t<A.hiddenElements_.length;t++)A.hiddenElements_[t].removeAttribute("aria-hidden");A.hiddenElements_=null}};
gz.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var fTS=function(A,t){A.bgIframeEl_&&_.tZ(A.bgIframeEl_,t);A.bgEl_&&_.tZ(A.bgEl_,t);_.tZ(A.getElement(),t);_.tZ(A.tabCatcherElement_,t)};
_.J=gz.prototype;_.J.onShow=function(){this.dispatchEvent("show")};
_.J.onHide=function(){fTS(this,!1);this.dispatchEvent("hide")};
_.J.isVisible=function(){return this.visible_};
_.J.focus=function(){this.focusElement_()};
_.J.resizeBackground_=function(){this.bgIframeEl_&&_.tZ(this.bgIframeEl_,!1);this.bgEl_&&_.tZ(this.bgEl_,!1);var A=this.JSC$10225_dom_.JSC$9409_document_;var t=_.pn(dG(this.JSC$10225_dom_.JSC$9409_document_)||window);var f=Math.max(t.width,Math.max(A.body.scrollWidth,A.documentElement.scrollWidth));A=Math.max(t.height,Math.max(A.body.scrollHeight,A.documentElement.scrollHeight));this.bgIframeEl_&&(_.tZ(this.bgIframeEl_,!0),_.dwS(this.bgIframeEl_,f,A));this.bgEl_&&(_.tZ(this.bgEl_,!0),_.dwS(this.bgEl_,
f,A))};
_.J.reposition=function(){var A;if(_.oNb(this.getElement())=="fixed")var t=A=0;else t=EP(this.JSC$10225_dom_),A=t.x,t=t.y;var f=$wC(this.getElement());var X=_.pn(dG(this.JSC$10225_dom_.JSC$9409_document_)||window);A=Math.max(A+X.width/2-f.width/2,0);t=Math.max(t+X.height/2-f.height/2,0);$6(this.getElement(),A,t);$6(this.tabCatcherElement_,A,t)};
_.J.onFocus=function(A){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():A.target==this.tabCatcherElement_&&Ib(this.focusElement_,0,this)};
_.J.focusElement_=function(){try{this.getElement().focus()}catch(A){}};
_.J.disposeInternal=function(){_.ee(this.popupShowTransition_);this.popupShowTransition_=null;_.ee(this.popupHideTransition_);this.popupHideTransition_=null;_.ee(this.bgShowTransition_);this.bgShowTransition_=null;_.ee(this.bgHideTransition_);this.bgHideTransition_=null;gz.superClass_.disposeInternal.call(this)};var $C=function(A,t,f){gz.call(this,t,f);this.JSC$10256_class_=A||"modal-dialog";this.buttons_=(new wz).addButton(Xsb,!0).addButton(Qq7,!1,!0)};
_.rS($C,gz);_.J=$C.prototype;_.J.escapeToCancel_=!0;_.J.hasTitleCloseButton_=!0;_.J.modal_=!0;_.J.draggable_=!0;_.J.backgroundElementOpacity_=.5;_.J.title_="";_.J.JSC$10258_dragger_=null;_.J.JSC$10258_disposeOnHide_=!1;_.J.titleEl_=null;_.J.titleTextEl_=null;_.J.titleTextId_=null;_.J.titleCloseEl_=null;_.J.contentEl_=null;_.J.buttonEl_=null;_.J.getCssClass=function(){return this.JSC$10256_class_};
_.J.setTitle=function(A){this.title_=A;this.titleTextEl_&&_.ZC(this.titleTextEl_,A)};
_.J.getTitle=function(){return this.title_};
_.J.getContent=function(){return""};
_.J.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var q9w=function(A){A.getElement()||A.render();return A.getElement()};
$C.prototype.getBackgroundElement=function(){this.getElement()||this.render();return $C.superClass_.getBackgroundElement.call(this)};
var JGK=function(A,t){A.backgroundElementOpacity_=t;A.getElement()&&(t=A.getBackgroundElement())&&ag8(t,A.backgroundElementOpacity_)};
$C.prototype.setDraggable=function(A){this.draggable_=A;UiT(this,A&&this.inDocument_)};
$C.prototype.handleDrag=function(){};
var UiT=function(A,t){var f=zz(A.JSC$10256_class_+"-title-draggable").split(" ");A.getElement()&&(t?kg(A.titleEl_,f):FZw(A.titleEl_,f));t&&!A.JSC$10258_dragger_?(t=new _.$w(A.getElement(),A.titleEl_),A.JSC$10258_dragger_=t,kg(A.titleEl_,f),_.TV(A.JSC$10258_dragger_,"start",A.setDraggerLimits_,!1,A),_.TV(A.JSC$10258_dragger_,"drag",A.handleDrag,!1,A)):!t&&A.JSC$10258_dragger_&&(A.JSC$10258_dragger_.dispose(),A.JSC$10258_dragger_=null)};
_.J=$C.prototype;
_.J.JSC$10227_createDom=function(){$C.superClass_.JSC$10227_createDom.call(this);var A=this.getElement(),t=this.JSC$10225_dom_;this.titleTextId_=this.getId();var f=this.getId()+".contentEl";this.titleEl_=t.JSC$9411_createDom("DIV",this.JSC$10256_class_+"-title",this.titleTextEl_=t.JSC$9411_createDom("SPAN",{className:this.JSC$10256_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=t.JSC$9411_createDom("SPAN",this.JSC$10256_class_+"-title-close"));hwT(A,this.titleEl_,this.contentEl_=
t.JSC$9411_createDom("DIV",{className:this.JSC$10256_class_+"-content",id:f}),this.buttonEl_=t.JSC$9411_createDom("DIV",this.JSC$10256_class_+"-buttons"));FjC(this.titleTextEl_,"heading");FjC(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;SQ(this.titleCloseEl_,"label","Close");FjC(A,"dialog");SQ(A,"labelledby",this.titleTextId_||"");_.tZ(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(A=this.buttons_,A.JSC$10259_element_=this.buttonEl_,A.render());_.tZ(this.buttonEl_,!!this.buttons_);
JGK(this,this.backgroundElementOpacity_)};
_.J.decorateInternal=function(A){$C.superClass_.decorateInternal.call(this,A);A=this.getElement();var t=this.JSC$10256_class_+"-content";this.contentEl_=EL(document,null,t,A)[0];this.contentEl_||(this.contentEl_=this.JSC$10225_dom_.JSC$9411_createDom("DIV",t),A.appendChild(this.contentEl_));t=this.JSC$10256_class_+"-title";var f=this.JSC$10256_class_+"-title-text",X=this.JSC$10256_class_+"-title-close";(this.titleEl_=EL(document,null,t,A)[0])?(this.titleTextEl_=EL(document,null,f,this.titleEl_)[0],
this.titleCloseEl_=EL(document,null,X,this.titleEl_)[0]):(this.titleEl_=this.JSC$10225_dom_.JSC$9411_createDom("DIV",t),A.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=xw8(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.DC("SPAN",{className:f,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;SQ(A,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10225_dom_.JSC$9411_createDom("SPAN",X),this.titleEl_.appendChild(this.titleCloseEl_));_.tZ(this.titleCloseEl_,this.hasTitleCloseButton_);t=this.JSC$10256_class_+"-buttons";(this.buttonEl_=EL(document,null,t,A)[0])?(this.buttons_=new wz(this.JSC$10225_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10225_dom_.JSC$9411_createDom("DIV",t),A.appendChild(this.buttonEl_),this.buttons_&&(A=this.buttons_,A.JSC$10259_element_=this.buttonEl_,A.render()),_.tZ(this.buttonEl_,
!!this.buttons_));JGK(this,this.backgroundElementOpacity_)};
_.J.enterDocument=function(){$C.superClass_.enterDocument.call(this);dz(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);dz(this).listen(this.buttonEl_,"click",this.onButtonClick_);UiT(this,this.draggable_);dz(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var A=this.getElement();FjC(A,"dialog");this.titleTextEl_.id!==""&&SQ(A,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){A=this.JSC$10225_dom_;
var t=this.getBackgroundElement();A.removeNode(this.bgIframeEl_);A.removeNode(t)}this.isVisible()&&tap(this,!1)}};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);UiT(this,!1);$C.superClass_.exitDocument.call(this)};
_.J.setVisible=function(A){A!=this.isVisible()&&(this.inDocument_||this.render(),$C.superClass_.setVisible.call(this,A))};
_.J.onShow=function(){$C.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.J.onHide=function(){$C.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10258_disposeOnHide_&&this.dispose()};
_.J.setDraggerLimits_=function(){var A=this.JSC$10225_dom_.JSC$9409_document_,t=_.pn(dG(A)||window),f=Math.max(A.body.scrollWidth,t.width);A=Math.max(A.body.scrollHeight,t.height);var X=$wC(this.getElement());_.oNb(this.getElement())=="fixed"?this.JSC$10258_dragger_.limits=new o1(0,0,Math.max(0,t.width-X.width),Math.max(0,t.height-X.height)):this.JSC$10258_dragger_.limits=new o1(0,0,f-X.width,A-X.height)};
_.J.onTitleCloseClick_=function(){eZS(this)};
var eZS=function(A){if(A.hasTitleCloseButton_){var t=A.buttons_,f=t&&t.cancelButton_;f?(t=t.get(f),A.dispatchEvent(new sE(f,t))&&A.setVisible(!1)):A.setVisible(!1)}},Grw=function(A){A.hasTitleCloseButton_=!1;
A.titleCloseEl_&&_.tZ(A.titleCloseEl_,A.hasTitleCloseButton_)};
$C.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;$C.superClass_.disposeInternal.call(this)};
$C.prototype.onButtonClick_=function(A){a:{for(A=A.target;A!=null&&A!=this.buttonEl_;){if(A.tagName=="BUTTON")break a;A=A.parentNode}A=null}if(A&&!A.disabled){A=A.name;var t=this.buttons_.get(A);this.dispatchEvent(new sE(A,t))&&this.setVisible(!1)}};
$C.prototype.onKey_=function(A){var t=!1,f=!1,X=this.buttons_,Q=A.target;if(A.type=="keydown")if(this.escapeToCancel_&&A.keyCode==27){var q=X&&X.cancelButton_;Q=Q.tagName=="SELECT"&&!Q.disabled;q&&!Q?(f=!0,t=X.get(q),t=this.dispatchEvent(new sE(q,t))):Q||(t=!0)}else{if(A.keyCode==9&&A.shiftKey&&Q==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(T){}Ib(this.resetBackwardTabWrap_,0,this)}}else if(A.keyCode==13){if(Q.tagName=="BUTTON"&&!Q.disabled)q=Q.name;
else if(Q==this.titleCloseEl_)eZS(this);else if(X){var e=X.defaultButton_,G;if(G=e)a:{G=LA("BUTTON",X.JSC$10259_element_);for(var N,z=0;N=G[z];z++)if(N.name==e||N.id==e){G=N;break a}G=null}Q=(Q.tagName=="TEXTAREA"||Q.tagName=="SELECT"||Q.tagName=="A")&&!Q.disabled;!G||G.disabled||Q||(q=e)}q&&X&&(f=!0,t=this.dispatchEvent(new sE(q,String(X.get(q)))))}else Q!=this.titleCloseEl_||A.keyCode!=32&&A.key!=" "||eZS(this);if(t||f)A.stopPropagation(),A.preventDefault();t&&this.setVisible(!1)};
var sE=function(A,t){this.type="dialogselect";this.key=A;this.caption=t};
_.rS(sE,_.b6);var wz=function(A){aP.call(this);A||nn();this.cancelButton_=this.JSC$10259_element_=this.defaultButton_=null};
_.rS(wz,aP);_.J=wz.prototype;_.J.clear=function(){aP.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.J.set=function(A,t,f,X){aP.prototype.set.call(this,A,t);f&&(this.defaultButton_=A);X&&(this.cancelButton_=A);return this};
_.J.addButton=function(A,t,f){return this.set(A.key,A.caption,t,f)};
_.J.render=function(){if(this.JSC$10259_element_){_.eO(this.JSC$10259_element_,lsg);var A=nn(this.JSC$10259_element_);this.forEach(function(t,f){t=A.JSC$9411_createDom("BUTTON",{name:f},t);f==this.defaultButton_&&(t.className="goog-buttonset-default");this.JSC$10259_element_.appendChild(t)},this)}};
_.J.decorate=function(A){if(A&&A.nodeType==1){this.JSC$10259_element_=A;A=LA("BUTTON",this.JSC$10259_element_);for(var t,f,X,Q=0;t=A[Q];Q++)if(f=t.name||t.id,X=xw8(t)||t.value,f){var q=Q==0;this.set(f,X,q,t.name=="cancel");q&&_.Vx(t,"goog-buttonset-default")}}};
_.J.getElement=function(){return this.JSC$10259_element_};
var Xsb={key:"ok",caption:"OK"},Qq7={key:"cancel",caption:"Cancel"},lTC={key:"yes",caption:"Yes"},N2l={key:"no",caption:"No"},u5S={key:"save",caption:"Save"},zZC={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new wz).addButton(Xsb,!0,!0),(new wz).addButton(Xsb,!0).addButton(Qq7,!1,!0),(new wz).addButton(lTC,!0).addButton(N2l,!1,!0),(new wz).addButton(lTC).addButton(N2l,!0).addButton(Qq7,!1,!0),(new wz).addButton(zZC).addButton(u5S).addButton(Qq7,!0,!0));_.rS(re5,$C);_.rS(Aqx,Hf);var PS8=_.dS(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),T2E=_.dS(["//apis.google.com/js/rpc.js"]),Gm5=_.OP(PS8),eGu=_.OP(T2E),fsx=null;var ay=function(A,t){_.p_.call(this);this.JSC$10268_element_=A;A=_.lX(this.JSC$10268_element_)?this.JSC$10268_element_:this.JSC$10268_element_?this.JSC$10268_element_.body:null;this.isRtl_=!!A&&_.KSw(A);this.listenKey_=_.TV(this.JSC$10268_element_,_.Qe?"DOMMouseScroll":"mousewheel",this,t)};
_.rS(ay,_.p_);ay.prototype.handleEvent=function(A){var t=0,f=0,X=A.event_;X.type=="mousewheel"?(A=iGC(-X.wheelDelta),X.wheelDeltaX!==void 0?(t=iGC(-X.wheelDeltaX),f=iGC(-X.wheelDeltaY)):f=A):(A=X.detail,A>100?A=3:A<-100&&(A=-3),X.axis!==void 0&&X.axis===X.HORIZONTAL_AXIS?t=A:f=A);typeof this.maxDeltaX_==="number"&&(t=_.ps(t,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(f=_.ps(f,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(t=-t);t=new OGK(A,X,t,f);this.dispatchEvent(t)};
var iGC=function(A){return _.q1&&(_.K5i||wpw)&&A%40!=0?A:A/40};
ay.prototype.disposeInternal=function(){ay.superClass_.disposeInternal.call(this);uP(this.listenKey_);this.listenKey_=null};
var OGK=function(A,t,f,X){_.W_.call(this,t);this.type="mousewheel";this.detail=A;this.deltaX=f;this.deltaY=X};
_.rS(OGK,_.W_);_.K8=function(A){var t="instance_";if(A.instance_&&A.hasOwnProperty(t))return A.instance_;t=new A;return A.instance_=t};var Uqb;var cG7=_.dS(["https://about:blank"]),B2C=_.dS(['javascript:""']),MaT=_.dS(["about:blank"]);_.rS(XN,re5);_.J=XN.prototype;_.J.JSC$10276_url_="";_.J.JSC$10276_iframe_=null;_.J.iframeLoaded_=!1;_.J.loadedFired_=!1;_.J.callback_=function(){};
_.J.enterDocument=function(){XN.superClass_.enterDocument.call(this);qJq(this.getBackgroundElement(),dz(this))};
_.J.render=function(A){var t=this;XN.superClass_.render.call(this,A);this.useGapi_?M0w(this.iframeManager_,window).then(function(){return CSC(t)}).then(null,function(){t.callback_({action:"error"})}):hZE(this)};
var CSC=function(A){var t=A.JSC$10225_dom_.JSC$9411_createDom("div",["picker-dialog-content","picker-frame"]);_.tZ(t,!1);A.getContentElement().appendChild(t);return Csp(A.iframeManager_,t,function(f){var X=VeT(f["iframe-command"]);switch(X.getCommand()){case 1:f=A.callback_;X=_.Mq(X,e$,2);var Q="";switch(X.getStatus()){case 2:Q="cancel";break;case 1:Q="picked";break;case 3:Q="error"}var q=_.Nc(X,M1,2,_.uI(Mib));X=q.length===0?{action:Q}:t0l(q,Q,_.Mq(X,xck,7));f.call(A,X);A.setVisible(!1);break;case 4:Grw(A);
A.callback_({action:"loaded"});break;case 7:case 8:f=A.callback_;a:{Q=X.getCommand();q=_.Mq(X,e$,2);switch(Q){case 7:Q="uploadScheduled";break;case 8:Q="uploadStateChange";break;default:X={};break a}X=_.Nc(q,M1,2,_.uI(Mib));if(X.length===0)X={action:Q};else{var e=_.Mq(q,xck,7);q=e&&_.Wz(e,1);e=SIT(e);X=a_C(X,Q,q,e)}}f.call(A,X)}},A.JSC$10276_url_,A.targetId_,A.rpcToken_).then(function(f){A.JSC$10276_iframe_=f.getIframeEl();
RZp(A);_.tZ(A.JSC$10276_iframe_.parentElement,!0);_.Vx(A.getElement(),"picker-dialog");miw(A);return f})},hZE=function(A){A.JSC$10276_iframe_=A.JSC$10225_dom_.JSC$9411_createDom("IFRAME",{id:A.targetId_,
name:A.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.rW(A.JSC$10276_iframe_,bGp(A));_.Vx(A.getElement(),"picker-dialog");A.getContentElement().appendChild(A.JSC$10276_iframe_);dz(A).listen(A.JSC$10276_iframe_,"load",function(){return void RZp(A)});
A.JSC$10276_iframe_.src=A.JSC$10276_url_;miw(A)},yGp=function(A){Wxp(A,(0,_.F1)(function(t){t.setAuthToken(this.targetId_,this.rpcToken_)},A))},miw=function(A){var t=_.rw(_.kC(A.JSC$10276_url_),"title");
t&&A.setTitle(t)},bGp=function(A){return _.hxx("Internet Explorer")>=7&&_.ql(A.JSC$10276_url_,"https")?_.OP(cG7):_.XG?_.OP(B2C):_.OP(MaT)},RZp=function(A){yGp(A);
A.iframeLoaded_=!0;A.JSC$10276_iframe_.tabIndex=0;A.isVisible()&&A.focus()};
XN.prototype.handleKeydown_=function(A){A.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),A.stopPropagation(),A.preventDefault())};
var Wxp=function(A,t){var f=A.JSC$10274_gadgetsDomHelper_;XDl(function(){t(f.getWindow().gadgets.rpc)},f)};
XN.prototype.setUrl=function(A){A=_.AZ(new _.oq(A),"rpcService",this.targetId_);_.AZ(A,"rpctoken",this.rpcToken_);_.uR(A,"rpctoken="+this.rpcToken_);_.UE(A,"https");this.JSC$10276_url_=A.toString();this.JSC$10276_iframe_&&(this.JSC$10276_iframe_.src=this.JSC$10276_url_)};
var vJp=function(A,t){A.callback_=t;Wxp(A,(0,_.F1)(function(f){f.register(this.targetId_,(0,_.F1)(this.handlePickerAction_,this))},A))};
XN.prototype.handlePickerAction_=function(A){var t=A.action;t=="loaded"&&(this.loadedFired_=!0,Lxb(this,new k7s(this.isVisible())),psE(this),Grw(this),dz(this).unlisten(this.JSC$10225_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10276_iframe_.tabIndex=0);t!="picked"&&t!="cancel"||this.setVisible(!1);this.callback_(A)};
var psE=function(A){A.JSC$10276_appId_&&Lxb(A,new sj5(A.JSC$10276_appId_,window.location.protocol+"//"+window.location.host))};
XN.prototype.setRelayUrl=function(A){Wxp(this,(0,_.F1)(function(t){t.setRelayUrl(this.targetId_,A)},this))};
var Lxb=function(A,t){A.useGapi_&&WjT(t,A.iframeManager_).then(null,function(){A.callback_({action:"error"})});
Wxp(A,(0,_.F1)(function(f){f.call(this.targetId_,"picker",null,t)},A))};
XN.prototype.resizePicker_=function(){var A=dG(this.JSC$10225_dom_.JSC$9409_document_)||window;if(_.rw(_.kC(this.JSC$10276_url_),"ignoreLimits")=="true")A=new _.Ln(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.rw(_.kC(this.JSC$10276_url_),"shadeDialog")=="true"){var t=q9w(this);t=gNE(t);var f=_.pn(A);A=f.width-80;f=f.height-40;t&&(A-=t.left?t.left:0,A-=t.right?t.right:0,f-=t.top?t.top:0,f-=t.bottom?t.bottom:0);A=new _.Ln(A>0?A:0,f>0?f:0)}else(t=this.preferredDialogWidth_)?(t=Math.max(320,
Math.min(1051,t)),(f=this.preferredDialogHeight_)||(f=_.pn(A).height*.85),f=Math.max(480,Math.min(650,f))):(t=_.pn(A),f=t.width*.618,f=f<t.height?Math.round(Math.max(480,Math.min(650,f*.85))):Math.round(Math.max(480,Math.min(650,t.height*.85))),t=Math.round(f/.618)),A=_.pn(A),t=Math.min(t,Math.max(A.width,320)),f=Math.min(f,Math.max(A.height,480)),A=new _.Ln(t,f);_.dwS(this.getContentElement(),A);this.reposition()};
XN.prototype.reposition=function(){if(_.rw(_.kC(this.JSC$10276_url_),"shadeDialog")=="true"){var A=$wC(this.getElement()),t=_.pn(this.JSC$10225_dom_.getWindow());A=Math.floor(t.width/2-A.width/2);t=q9w(this);if(t=gNE(t)){var f=t.left?t.left:0;f+=t.right?t.right:0;A=Math.floor(A-f/2)}A=A>0?A:0;t=EP(this.JSC$10225_dom_).y;$6(this.getElement(),A,t)}else XN.superClass_.reposition.call(this)};
XN.prototype.setVisible=function(A){if(A!=this.isVisible()&&this.autoSizeDialog_){var t=this.JSC$10225_dom_.getWindow();A?(this.resizePicker_(),dz(this).listen(t,"resize",this.resizePicker_),this.iframeLoaded_||dz(this).listen(t,"keydown",this.handleKeydown_)):(dz(this).unlisten(t,"resize",this.resizePicker_),this.iframeLoaded_||dz(this).unlisten(t,"keydown",this.handleKeydown_))}XN.superClass_.setVisible.call(this,A);Lxb(this,new k7s(A))};
XN.prototype.focus=function(){XN.superClass_.focus.call(this);if(this.JSC$10276_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10276_iframe_.focus()}catch(A){}};var Pi=function(A,t){t=t===void 0?XN:t;Hf.call(this,A);this.pickerConstructor=t;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(A=window.location.origin)||(A=window.location.protocol+"//"+window.location.host);A&&this.urlParamMap_.set("origin",A);this.postProcessors_=[]};
_.R(Pi,Aqx);Pi.prototype.JSC$10281_disposeOnHide_=!1;
Pi.prototype.build=function(){this.JSC$10182_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10182_appId_);this.getRelayUrl()||this.setRelayUrl(_.lR(_.uR(_.N3(_.kC(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var A=new this.pickerConstructor(EJ7(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);A.JSC$10258_disposeOnHide_=this.JSC$10281_disposeOnHide_;
A.JSC$10276_appId_=this.JSC$10182_appId_;A.loadedFired_&&psE(A);vJp(A,this.callback_);return A};
var nJf=function(A){A.urlParamMap_.set("multiselectEnabled","true");return A};
_.J=Pi.prototype;_.J.getHeight=function(){return this.dialogHeight_};
_.J.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.J.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.J.getTitle=function(){return this.urlParamMap_.get("title")};
_.J.getWidth=function(){return this.dialogWidth_};
var DiK=function(A){A.JSC$10281_disposeOnHide_=void 0;return A};
Pi.prototype.setRelayUrl=function(A){this.urlParamMap_.set("parent",A);return this};
var Fxw=function(A,t){A.urlParamMap_.set("selectButtonLabel",t);return A};
Pi.prototype.setSize=function(A,t){this.dialogWidth_=A;this.dialogHeight_=t;return this};
Pi.prototype.setTitle=function(A){this.urlParamMap_.set("title",A);return this};
var EJ7=function(A){A.postProcessors_.length&&A.urlParamMap_.set("pp",JSON.stringify(A.postProcessors_));A.urlParamMap_.set("nav",VUl(A.nav_));var t=new _.oq(A.getBaseUrl());A.urlParamMap_.forEach(function(f,X){_.AZ(t,X,f)});
return t};var jqT=function(A,t){A.name!==void 0?(this.name=A.name,this.code=ITS[A.name]):(this.code=A=A.code,this.name=xi7(A));_.Ab.call(this,UWp("%s %s",this.name,t))};
_.rS(jqT,_.Ab);var xi7=function(A){var t=_.VG.findKey(ITS,function(f){return A==f});
if(t===void 0)throw Error("hb`"+A);return t},kw={},ITS=(kw.AbortError=3,kw.EncodingError=5,kw.InvalidModificationError=9,kw.InvalidStateError=7,kw.NotFoundError=1,kw.NotReadableError=4,kw.NoModificationAllowedError=6,kw.PathExistsError=12,kw.QuotaExceededError=10,kw.SecurityError=2,kw.SyntaxError=8,kw.TypeMismatchError=11,kw);var Y9l=function(A,t){_.b6.call(this,A.type,t);this.event_=A};
_.rS(Y9l,_.b6);var VaK=function(A,t,f){f===void 0&&(f=A.size);return A.slice?A.slice(t,f):null};var ui5=new WeakMap,Nbz=function(A,t){A=[A];for(var f=t.length-1;f>=0;--f)A.push(typeof t[f],t[f]);return A.join("\v")};_.Pnx(function(){if(!_.Xb.Blob)return!1;var A=new Uint8Array(100);try{var t=new Blob([A])}catch(f){return!1}return t.size!=100?!1:!0});
var ZGT=_.Pnx(function(){if(!_.Xb.Blob)return!1;var A=new Uint8Array(100);try{var t=new Blob([A])}catch(f){return!1}return VaK(t,0,1)===null?!1:!0});_.Xb.U3bHHf!=null||(_.Xb.U3bHHf=0);_.Xb.U3bHHf++;_.oJi=new WeakMap;_.dii=new WeakMap;var iUg={};var JZ=void 0;var cqu=Symbol("pb");var Et5=Gc("WizInjectionContext_Dispatcher");var P5=Symbol("qb");var yz,Dk;yz=function(){this.afterRenderCallbacks=null};
_.B25=Symbol("rb");Dk=function(A){this.props=A;this.__unmounted=!1};
Dk.prototype.didPatch=function(){};
Dk.prototype.didMount=function(){};
Dk.prototype.didUnmount=function(){};
Dk.prototype.didUpdate=function(){};_.WZx=Gc("WizInjectionContext_RootElement");var vt0=Gc("WizInjectionContext_AppContext"),yqx=Gc("WizInjectionContext_ModelRootElement"),LZz=Gc("WizInjectionContext_RendererData"),pD5=Gc("WizInjectionContext_InjectingConstructor"),bUT=Gc("WizInjectionContext_AsyncDeps"),ntq={};var YJz=!1;var dqg={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:oqw,enableLazyTsx:dlT,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:Zg7,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var N4=Object.assign({},{attributes:{},handleError:function(A){throw A;}},dqg);var S9k=Symbol("vb"),Io=Symbol("wb"),Svp=Symbol("xb"),oBs=Symbol("yb"),sis=Ip(function(A){return ux(A)&&S9k in A});var wDl=Symbol("zb"),rz={},KZx=(rz[wDl]=!0,rz.debugName="[component]",rz.getComponentStack=function(){for(var A=[],t=this;t;)s6q(t)&&A.push(t.debugName),t=t.parent;return A},rz.registerSignal=function(){},rz.registerEffect=function(){},rz);var zc=null,Tc=!1,OH=1,M4=Symbol("Db"),Wm={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var A9=Symbol("Eb"),t9=Symbol("Fb"),Bm=Symbol("Gb"),UAb=Object.assign({},Wm,{value:A9,dirty:!0,error:null,equal:km5,kind:"computed",producerMustRecompute:function(A){return A.value===A9||A.value===t9},
producerRecomputeValue:function(A){if(A.value===t9)throw Error("Z");var t=A.value;A.value=t9;var f=Qiq(A),X=!1;try{var Q=A.computation();Pm(null);X=t!==A9&&t!==Bm&&Q!==Bm&&A.equal(t,Q)}catch(q){Q=Bm,A.error=q}finally{Pm(f),A&&JOx(A)}X?A.value=t:(A.value=Q,A.version++)}});Object.assign({},Wm,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var NLg=function(){throw Error();};var zEz=null,GOz=Object.assign({},Wm,{equal:km5,value:void 0,kind:"signal"});var PXx=Object.assign({},Wm,{value:A9,dirty:!0,error:null,equal:km5,kind:"linkedSignal",producerMustRecompute:function(A){return A.value===A9||A.value===t9},
producerRecomputeValue:function(A){if(A.value===t9)throw Error("Z");var t=A.value;A.value=t9;var f=Qiq(A);try{var X=A.source();var Q=A.computation(X,t===A9||t===Bm?void 0:{source:A.sourceValue,value:t});A.sourceValue=X}catch(q){Q=Bm,A.error=q}finally{Pm(f),A&&JOx(A)}t!==A9&&Q!==Bm&&A.equal(t,Q)?A.value=t:(A.value=Q,A.version++)}});Object.assign({},Wm,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(A){A.schedule!==null&&A.schedule(A.ref)},
cleanupFn:function(){}});var O40=Symbol("Hb"),Ro=Symbol("Ib");var m$=Array.isArray;var Wip;var $iK={},vBq=b4g(Object.assign({},{consumerAllowSignalWrites:!0},$iK)),La=b4g(Object.assign({},{consumerAllowSignalWrites:!0},$iK));var EH=Symbol("Nb");var pF=null,EB0,nB0=null,DAx;var xf=0,Yf=!1,fr=function(){this.queue=new Set};
fr.prototype.schedule=function(A){this.queue.add(A)};
fr.prototype.remove=function(A){this.queue.delete(A)};
fr.prototype.clear=function(){this.queue.clear()};
var jiT=Symbol("Ob"),I3s=Symbol("Pb"),Xg=function(){fr.apply(this,arguments)};
_.R(Xg,fr);Xg.prototype.flush=function(){if(this.queue.size){Yf=!0;for(var A=_.U(this.queue),t=A.next();!t.done;t=A.next()){t=t.value;this.queue.delete(t);try{t.run()}catch(f){HGS(f)}}Yf=!1}};
var aT8=function(){Xg.apply(this,arguments)};
_.R(aT8,Xg);var xAb=new aT8,Kxi=function(){Xg.apply(this,arguments)};
_.R(Kxi,Xg);Kxi.prototype.schedule=function(A){return _.l(function(t){if(t.nextAddress==1)return t.yield(Promise.resolve(),2);A.run();_.LO(t)})};
Kxi.prototype.enqueue=function(A){this.queue.add(A)};
var Yvg=new Kxi,QM=function(){fr.apply(this,arguments)};
_.R(QM,fr);QM.prototype.flush=function(){this.queue.size&&kOl(this.queue)};
var gJw=function(){QM.apply(this,arguments)};
_.R(gJw,QM);gJw.prototype.schedule=function(A){A.hasRun?this.queue.add(A):A.run()};
gJw.prototype.flush=function(){if(this.queue.size)if(N4.flushRenderEffectsDuringRender){var A=this.queue;this.queue=new Set;kOl(A)}else kOl(this.queue)};
var Z4u=new gJw,wsf=function(){QM.apply(this,arguments)};
_.R(wsf,QM);wsf.prototype.schedule=function(A){return _.l(function(t){if(t.nextAddress==1)return t.yield(Promise.resolve(),2);A.run();_.LO(t)})};
wsf.prototype.enqueue=function(A){this.queue.add(A)};
var $Ag=new wsf,sqi=function(){QM.apply(this,arguments)};
_.R(sqi,QM);var dAb=new sqi,a3x=[Z4u,xAb,dAb],wQs=[Yvg,$Ag],krT=[Z4u,dAb,$Ag],iVq=[].concat(_.YV(a3x),_.YV(wQs)),rG8=[];zEz=function(){gBs();for(var A=_.U(rG8),t=A.next();!t.done;t=A.next())t=t.value,t()};
var HGS=Q5;var qH={},AlT=Object.assign({},Wm,(qH[S9k]=!0,qH.effectType=Io,qH.isResettableContext=!0,qH.hasRun=!1,qH.effectFn=null,qH.consumerIsAlwaysLive=!0,qH.consumerAllowSignalWrites=!0,qH.consumerMarkedDirty=H4g,qH.kind="effect",qH.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Tc)throw Error("Qb");this.dirty=!1;if(!this.hasRun||tYb(this)){this.hasRun=!0;mqq(this);var A=_.UH(this),t=Qiq(this);$qT("effectRun",this.debugName);try{FN(this.effectFn,this.componentStack,this)}catch(f){throw N4.enableContextBasedComponentStacks&&
DM(f),f;}finally{HUb("effectRun",this.debugName),Pm(t),this&&JOx(this),_.UH(A)}}}},qH.componentStack=void 0,qH.debugName="[effect]",qH[Symbol.dispose]=function(){if(ix(this))for(var A=this.producers;A!==void 0;)A=qv0(A);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;A=_.U(krT);for(var t=A.next();!t.done;t=A.next())t.value.remove(this);RGT(this)},qH));var c4T=Object.assign({},AlT,{effectType:Io});var B$u=Object.assign({},AlT,{effectType:Svp});var hMl=Symbol("Rb");var QWx=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var bVl={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,coords: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,inert:1,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,usemap:1,valign:1,value:1,width:1,wrap:1},m9u=
{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}]}},c9x={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},vHz=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],y4q={"*":{async:1,dir:0,loading:2,target:3}};var t5b=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,J9={},p9u=(J9[1]=null,J9[2]=function(A,t){return t instanceof gW?si(t):ZF.toString()},J9[3]=function(A,t){return xl(t)?_.j3(t):t5b.test(String(t))?String(t):ZF.toString()},J9[4]=function(A,t){return t instanceof Lb?_.Ei(t):ZF.toString()},J9[5]=function(A,t){return String(t)},J9[7]=null,J9[8]=null,J9[10]=null,J9);var mtu=Symbol("Ub");var ztu=function(A){var t=fN8,f=A,X="",Q="",q=1;A<0&&(A=-A);if(A===Infinity)A=(Infinity*Math.sign(f)).toString();else{for(var e=0;e<Xti.length;e++){var G=Xti[e];q=t[G];if(A>=q||q<=1&&A>.1*q){X=G;break}}X?(X+="B",Q=" "):q=1;A=Math.round(f/q*10)/10+Q+X}return A},Xti="Y Z E P T G M K  m u n".split(" "),fN8={"":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};_.Q78=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 Mp={};RegExp.prototype.hasOwnProperty("sticky");var JWl=function(A){A=String(A);for(var t=function(X,Q,q){for(var e=Math.min(Q.length-q,X.length),G=0;G<e;G++){var N=Q[q+G];if(X[G]!==("A"<=N&&N<="Z"?N.toLowerCase():N))return!1}return!0},f=0;(f=A.indexOf("<",f))!=-1;){if(t("\x3c/script",A,f)||t("\x3c!--",A,f))return"zSoyz";
f+=1}return A};var sH={default:"__default"};var x95=Object.prototype.hasOwnProperty;D9x.prototype=Object.create(null);var P9=VU5();var Gw=null;var swl=function(A){this.created=[];this.deleted=[];this.node=A};var kUb=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var A=this,t=A;A;)t=A,A=A.parentNode;return t};var oHp=function(A,t){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=A;this.key=t;this.text=void 0};var XE=null,Qz=null,t8=null,J8=null,a_5=[],HVu=SIp,U8=[],e2=[],Rqq=function(A){return r4q(function(t,f,X){t8=Qz=t;Qz=null;f(X);$95(null);Qz=t8;t8=t8.parentNode;return t},A)}(),hqb=function(A){return r4q(function(t,f,X){var Q={nextSibling:t};
Qz=Q;f(X);t8&&$95(t.nextSibling);return Q===Qz?null:Qz},A)}();var lk=[],t05=0;var Np=new D9x;var Bn=new D9x;var qOb=VU5(),GSx=qOb[sH.default],es5=qOb.style,qgx=["focusin","focusout"],uBb="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var kS5=function(){},ZP5=function(){},Xsl=function(){},AGb=function(){};var zw=Symbol("bc");var OPq,iP5=T6x;var mh=Symbol("cc");var fTg=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(" ")),
ta0=new Set(["a","font","script","style","title"]);_.Rh={setUp:pVx,tearDown:pVx,log:pVx,logNodeRange:pVx,graft:function(A,t){t()}};var pa={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var E8=null,na=function(A,t){Dk.call(this,A);var f=this;this.functionComponent=t;this.hooks=[];this.hookCounter=0;this.disposeEffects=SG(function(X){f.effectContext=X;_.dD(function(){$Ps(f,f.el)})},N4.alwaysTrackContexts||!!JZ)};
_.R(na,Dk);na.prototype.render=function(A){var t=E8;E8=this;this.hookCounter=0;var f=Pm(La),X=_.UH(this.effectContext);try{return $qT("render",this.componentName),this.functionComponent(A)}finally{HUb("render",this.componentName),_.UH(X),Pm(f),E8=t}};
_.PV.Object.defineProperties(na.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return LiT(this.functionComponent)}}});var Qqx=Symbol("qc"),wVp=function(A,t,f){this.afterRenderCallbacks=null;this.kind=A;this.props=t;this.children=f};
_.R(wVp,yz);wVp.prototype.render=function(){var A=gig(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var t=_.U(this.afterRenderCallbacks),f=t.next();!f.done;f=t.next())f=f.value,A=f(A);return A};
wVp.prototype.getChildren=function(){return this.children};var JGu=[];NLg=function(A){throw Error("ob`"+A.debugName);};
(function(){var A=Gw;Gw=function(t){A==null||A(t);Uix(t)}})();Object.assign({},AlT,{effectType:Io,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var A=this.elementRef;var t;A.element!=null||(A.element=(t=A.document.getElementById(A.value))!=null?t:void 0);A=A.element;for(t=this.attributes;t;){var f=t.signal();f!==t.prevValue&&(t.prevValue=f,t.namespace===1?A[t.name]=f:QWx.has(t.name)?wD(A,t.name,f?"":null):wD(A,t.name,f));t=t.next}}});_.FE.debugName="tbhMcf";_.Ih.debugName="zyMFzb";Object.assign({},AlT,{effectType:Io,hasRun:!0});_.P.debugName="RlDudd";var eZg={nonNullableCondIsNull:function(){return Error("vc")}};var T2s=function(){this.map=new Map};
T2s.prototype.push=function(A,t){var f=this.map;f.has(A)&&(this.multi||(this.multi=new Map),this.multi.set(t,f.get(A)));f.set(A,t)};
T2s.prototype.pop=function(A){var t=this.map,f=t.get(A),X;f!==void 0&&((X=this.multi)==null?0:X.has(f))?(t.set(A,this.multi.get(f)),this.multi.delete(f)):t.delete(A);return f};_.xk.debugName="nsTGHd";_.j2.debugName="vI1rtf";_.CS5={OUT_OF_ORDER_HOOK_CALL:function(A){return Error("wc`"+A)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(A,t){return Error("Ac`"+((t===void 0?0:t)?"IDOM":"Reactive")+"`"+(Yk(A)?A.description:A))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(A,t){return Error("Bc`"+(Yk(A)?A.description:A)+"`"+t)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(A){return Error("Cc`"+(Yk(A)?A.description:A))},
USE_ELEMENT_NOT_ASSIGNED:function(A){return Error("Dc`"+(Yk(A)?A.description:A))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(A){return Error("Ec`"+(Yk(A)?A.description:A))}};OPq=sWz;var yG0=Symbol("Fc");dPu({beforeRender:function(A){var t=_.UH(A.effectContext);try{var f;((f=A.__syncEffects)==null?0:f.length)&&pss(A.__syncEffects)}finally{_.UH(t)}},
didPatch:function(A){var t=_.UH(A.effectContext);try{var f;((f=A.__syncEffects)==null?0:f.length)&&pss(A.__syncEffects)}finally{_.UH(t)}},
didUnmount:function(A){var t;((t=A.hooks)==null?0:t.length)&&A.hooks.forEach(Lxl)}});var Jlp,UJb,e1p;Jlp=_.Xb.window;_.$k=(Jlp==null?void 0:(UJb=Jlp.yt)==null?void 0:UJb.config_)||(Jlp==null?void 0:(e1p=Jlp.ytcfg)==null?void 0:e1p.data_)||{};_.zm("yt.config_",_.$k);var Gtb={},ITg=[];_.xj=function(A){var t=_.Hu.apply(1,arguments);var f=Error.call(this,A);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.args=[].concat(_.YV(t));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.xj,Error);var t4x=function(A,t,f){this.actionName=A;this.optionalAction=t===void 0?!1:t;this.args=f===void 0?null:f;this.returnValue=[]};_.UA=function(A){this.name=A};_.A4=new _.UA("signalAction");var aTq=/^[\w.]*$/,ZGp={q:!0,search_query:!0},Vau=String(Y95);var T7;T7=Symbol("Gc");_.eh=function(A){this.name=A};
_.eh.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var KxT=function(A){this.key=A},rGq=function(A){this.deferredKey=A},wsb=function(){var A=this;
this.providers=new Map;this.JSC$10579_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(A.providers)}}};
wsb.prototype.addProvider=function(A){this.providers.set(A.provide,A);var t=this.JSC$10579_deferred.get(A.provide);if(t)try{t.resolver(this.resolve(A.provide))}catch(f){t.rejector(f)}};
wsb.prototype.resolve=function(A){return A instanceof rGq?lNK(this,A):A instanceof KxT?N0l(this,A.key,[],!0):N0l(this,A,[])};
var lNK=function(A,t){t=t.deferredKey;if(A.JSC$10579_deferred.has(t))return A.JSC$10579_deferred.get(t).promise;var f={};f.promise=new Promise(function(X,Q){f.resolver=X;f.rejector=Q});
A.JSC$10579_deferred.set(t,f);return f.promise},N0l=function(A,t,f,X){X=X===void 0?!1:X;
if(f.indexOf(t)>-1)throw Error("Hc`"+t);if(A.cachedValues.has(t))return A.cachedValues.get(t);if(!A.providers.has(t)){if(X)return;throw Error("Ic`"+t);}X=A.providers.get(t);f.push(t);if(X.useValue!==void 0)var Q=X.useValue;else if(X.useFactory)Q=X[T7]?udT(A,X[T7],f):[],Q=X.useFactory.apply(X,_.YV(Q));else if(X.useClass){Q=X.useClass;var q=Q[T7]?udT(A,Q[T7],f):[];Q=new (Function.prototype.bind.apply(Q,[null].concat(_.YV(q))))}else throw Error("Jc`"+t);f.pop();X.skipCache||A.cachedValues.set(t,Q);return Q},
udT=function(A,t,f){return t?t.map(function(X){return X instanceof KxT?N0l(A,X.key,f,!0):N0l(A,X,f)}):[]};var gJx;var t4=new _.eh("ENDPOINT_HANDLER_TOKEN");_.fV=new _.UA("urlEndpoint");var z1S=function(){this.data=[];this.cachedPackedInt52=-1};
z1S.prototype.set=function(A,t){t=t===void 0?!0:t;0<=A&&A<52&&Number.isInteger(A)&&this.data[A]!==t&&(this.data[A]=t,this.cachedPackedInt52=-1)};
z1S.prototype.get=function(A){return!!this.data[A]};
var P0S=function(A){A.cachedPackedInt52===-1&&(A.cachedPackedInt52=A.data.reduce(function(t,f,X){return t+(f?Math.pow(2,X):0)},0));
return A.cachedPackedInt52};var z1g=function(A){var t=T0i;A=A===void 0?_.Ae("yt.ads.biscotti.lastId_")||"":A;var f=Object,X=f.assign,Q={};Q.dt=zGT;Q.flash="0";a:{try{var q=t.JSC$10585_win_.top.location.href}catch(k){q=2;break a}q=q?q===t.doc_.location.href?0:1:2}Q=(Q.frm=q,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();try{var e=g_.history.length}catch(k){e=0}Q.u_his=e;var G;Q.u_h=(G=g_.screen)==null?void 0:G.height;var N;Q.u_w=(N=g_.screen)==null?void 0:N.width;var z;Q.u_ah=(z=g_.screen)==null?void 0:z.availHeight;var T;Q.u_aw=
(T=g_.screen)==null?void 0:T.availWidth;var O;Q.u_cd=(O=g_.screen)==null?void 0:O.colorDepth}catch(k){}e=t.JSC$10585_win_;try{var c=e.screenX;var B=e.screenY}catch(k){}try{var h=e.outerWidth;var W=e.outerHeight}catch(k){}try{var L=e.innerWidth;var E=e.innerHeight}catch(k){}try{var D=e.screenLeft;var S=e.screenTop}catch(k){}try{L=e.innerWidth,E=e.innerHeight}catch(k){}try{var Z=e.screen.availWidth;var d=e.screen.availTop}catch(k){}c=[D,S,c,B,Z,d,h,W,L,E];B=W7T(!1,t.JSC$10585_win_.top);h={};var K=K===
void 0?_.Xb:K;W=new z1S;"SVGElement"in K&&"createElementNS"in K.document&&W.set(0);L=lgk();L["allow-top-navigation-by-user-activation"]&&W.set(1);L["allow-popups-to-escape-sandbox"]&&W.set(2);K.crypto&&K.crypto.subtle&&W.set(3);"TextDecoder"in K&&"TextEncoder"in K&&W.set(4);K=P0S(W);t=(h.bc=K,h.bih=B.height,h.biw=B.width,h.brdim=c.join(),h.vis=Oag(t.doc_),h.wgl=!!g_.WebGLRenderingContext,h);f=X.call(f,Q,t);f.ca_type="image";A&&(f.bid=A);return f},T0i=new function(){var A=window.document;
this.JSC$10585_win_=window;this.doc_=A};
_.zm("yt.ads_.signals_.getAdSignalsString",function(A){return oJT(z1g(A))});_.k5();navigator.userAgent.indexOf(" (CrKey ");var Q7q="XMLHttpRequest"in _.Xb?function(){return new XMLHttpRequest}:null;var ifp="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),OfS=[].concat(_.YV(ifp),["client_dev_set_cookie"]);var udp={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"},UJl="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(_.YV(ifp)),h1u=!1,Gtl=_.P0g,B05=N05;var S75=[{messageFn:function(A){return"Cannot read property '"+A.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(A){return"Cannot call '"+A.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(A){return A.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var clC={messageWeights:[],callbackWeights:[{callback:WP0,weight:500},{callback:ylb,weight:500}]};var B0C=function(){this.callbackWeights=[];this.messageWeights=[]},M5b,dIu=function(){if(!M5b){var A=M5b=new B0C;
A.messageWeights.length=0;A.callbackWeights.length=0;zrb(A,clC)}return M5b},zrb=function(A,t){t.messageWeights&&A.messageWeights.push.apply(A.messageWeights,t.messageWeights);
t.callbackWeights&&A.callbackWeights.push.apply(A.callbackWeights,t.callbackWeights)};_.rS(_.Lk,_.DA);_.Lk.prototype.subscribe=function(A,t,f){var X=this.topics_[A];X||(X=this.topics_[A]=[]);var Q=this.JSC$10609_key_;this.subscriptions_[Q]=A;this.subscriptions_[Q+1]=t;this.subscriptions_[Q+2]=f;this.JSC$10609_key_=Q+3;X.push(Q);return Q};
var C0K=function(A){var t=sv,f=!1,X=t.subscribe("handleError",function(Q){f||(f=!0,this.unsubscribeByKey(X),A.apply(void 0,arguments))},t)};
_.Lk.prototype.unsubscribe=function(A,t,f){if(A=this.topics_[A]){var X=this.subscriptions_;if(A=A.find(function(Q){return X[Q+1]==t&&X[Q+2]==f}))return this.unsubscribeByKey(A)}return!1};
_.Lk.prototype.unsubscribeByKey=function(A){var t=this.subscriptions_[A];if(t){var f=this.topics_[t];this.publishDepth_!=0?(this.pendingKeys_.push(A),this.subscriptions_[A+1]=function(){}):(f&&_.o0(f,A),delete this.subscriptions_[A],delete this.subscriptions_[A+1],delete this.subscriptions_[A+2])}return!!t};
_.Lk.prototype.publish=function(A,t){var f=this.topics_[A];if(f){var X=Array(arguments.length-1),Q=arguments.length,q;for(q=1;q<Q;q++)X[q-1]=arguments[q];if(this.async_)for(q=0;q<f.length;q++)Q=f[q],h1K(this.subscriptions_[Q+1],this.subscriptions_[Q+2],X);else{this.publishDepth_++;try{for(q=0,Q=f.length;q<Q&&!this.isDisposed();q++){var e=f[q];this.subscriptions_[e+1].apply(this.subscriptions_[e+2],X)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;f=this.pendingKeys_.pop();)this.unsubscribeByKey(f)}}return q!=
0}return!1};
var h1K=function(A,t,f){_.n_(function(){A.apply(t,f)})};
_.Lk.prototype.clear=function(A){if(A){var t=this.topics_[A];t&&(t.forEach(this.unsubscribeByKey,this),delete this.topics_[A])}else this.subscriptions_.length=0,this.topics_={}};
_.Lk.prototype.getCount=function(A){if(A){var t=this.topics_[A];return t?t.length:0}A=0;for(t in this.topics_)A+=this.getCount(t);return A};
_.Lk.prototype.disposeInternal=function(){_.Lk.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var sv=new _.Lk;var R6=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(R6,_.e3);R6.prototype.getColdHashData=function(){return _.Wz(this,3)};
R6.prototype.getHotHashData=function(){return _.Wz(this,5)};
R6.prototype.setHotHashData=function(A){return _.Dg(this,5,A)};var VR5=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(VR5,_.e3);var PmT=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(PmT,_.e3);_.J=PmT.prototype;_.J.getDeviceId=function(){return _.Wz(this,6)};
_.J.getExperimentIds=function(A){var t=_.gd(this,9,_.ej,3,!0);rbl(t,A);return t[A]};
_.J.getPlayerType=function(){return _.ye(this,36)};
_.J.setHomeGroupInfo=function(A){return _.bi(this,81,A)};
_.J.clearLocationPlayabilityToken=function(){return _.hq(this,89)};var p4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(p4,_.e3);p4.prototype.setKey=function(A){return _.Dg(this,1,A)};
p4.prototype.getValue=function(){return Ld(this,2,i1b)};
var i1b=[2,3,4,5,6];var R1T=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(R1T,_.e3);R1T.prototype.setTrackingParams=function(A){return _.hq(this,1,_.nS(A,!1))};var Tez=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Tez,_.e3);var d_x=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(d_x,_.e3);d_x.prototype.getExperimentIds=function(A){var t=_.gd(this,5,_.CKT,3,!0);rbl(t,A);return t[A]};var FO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(FO,_.e3);FO.prototype.getToken=function(){return _.Wf(this,2)};
FO.prototype.setToken=function(A){return _.Dg(this,2,A)};var n4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(n4,_.e3);n4.prototype.setSafetyMode=function(A){return _.CU(this,5,A)};var L4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(L4,_.e3);L4.prototype.setClient=function(A){return _.bi(this,1,A)};var oIu={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 ZZs;_.Fc=function(){var A=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Xb.addEventListener("beforeinstallprompt",function(t){t.preventDefault();A.deferredInstallPrompt=t});
_.Xb.addEventListener("appinstalled",function(){A.appInstalledEventFired=!0},{once:!0})};
ZZs=function(){if(!_.Xb.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Xb.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Xb.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Xb.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Xb.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(A){return"WEB_DISPLAY_MODE_UNKNOWN"}};var HZb=function(){this.syncHeaders=!0},atg=function(A){var t={},f=[];
"USER_SESSION_ID"in _.$k&&f.push({key:"u",value:_.ah("USER_SESSION_ID")});if(f=_.Pob(f))t.Authorization=f,f=A=A==null?void 0:A.sessionIndex,f===void 0&&(f=Number(_.ah("SESSION_INDEX",0)),f=isNaN(f)?0:f),_.M("voice_search_auth_header_removal")||(t["X-Goog-AuthUser"]=f.toString()),"INNERTUBE_HOST_OVERRIDE"in _.$k||(t["X-Origin"]=window.location.origin),A===void 0&&"DELEGATED_SESSION_ID"in _.$k&&(t["X-Goog-PageId"]=_.ah("DELEGATED_SESSION_ID"));return t};var mJk={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var GE=_.Ae("ytglobal.prefsUserPrefsPrefs_")||{},bfK;_.zm("ytglobal.prefsUserPrefsPrefs_",GE);_.le=function(){this.cookieName=_.ah("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.ah("ALT_PREF_COOKIE_DOMAIN","youtube.com");var A=_.E0.get(this.cookieName,void 0);A&&this.parse(A)};
_.NJ=function(){bfK||(bfK=new _.le);return bfK};
_.le.prototype.get=function(A,t){WPp(A);ylf(A);A=GE[A]!==void 0?GE[A].toString():null;return A!=null?A:t?t:""};
_.le.prototype.set=function(A,t){WPp(A);ylf(A);if(t==null)throw Error("Mc");GE[A]=t.toString()};
_.le.prototype.getFlag=function(A){return!!((v7i("f"+(Math.floor(A/31)+1))||0)&1<<A%31)};
_.u0=function(A,t,f){A="f"+(Math.floor(t/31)+1);t=1<<t%31;var X=v7i(A)||0;X=f?X|t:X&~t;X===0?delete GE[A]:(f=X.toString(16),GE[A]=f.toString())};
_.le.prototype.remove=function(A){WPp(A);ylf(A);delete GE[A]};
_.le.prototype.save=function(){var A=!0;_.M("web_secure_pref_cookie_killswitch")&&(A=!1);_.nk(this.cookieName,this.dump(),63072E3,this.cookieDomain,A)};
_.le.prototype.clear=function(){_.VG.clear(GE)};
_.le.prototype.dump=function(){var A=[],t;for(t in GE)GE.hasOwnProperty(t)&&A.push(t+"="+encodeURIComponent(String(GE[t])));return A.join("&")};
var ylf=function(A){if(/^f([1-9][0-9]*)$/.test(A))throw Error("Nc`"+A);},WPp=function(A){if(!/^\w+$/.test(A))throw Error("Oc`"+A);
},v7i=function(A){A=GE[A]!==void 0?GE[A].toString():null;
return A!=null&&/^[A-Fa-f0-9]+$/.test(A)?parseInt(A,16):null};
_.le.prototype.parse=function(A){A=decodeURIComponent(A).split("&");for(var t=0;t<A.length;t++){var f=A[t].split("="),X=f[0];(f=f[1])&&(GE[X]=f.toString())}};var xJz={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"},Sp5={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},$_x={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},YOu={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var wt;_.NH=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.jY=function(A,t,f){return A.addJob(t,0,f)};
_.NH.prototype.addLowPriorityJob=function(A,t){return this.addJob(A,1,t)};
_.c1=function(A,t,f){return A.addJob(t,2,f)};
_.NB=function(A,t,f){return A.addJob(t,3,f)};
_.sX=function(A,t,f){return A.addJob(t,4,f)};
wt=function(A){var t=_.Ae("yt.scheduler.instance.addImmediateJob");t?t(A):A()};
_.NH.prototype.debounce=function(A,t,f){var X=this,Q=0,q=function(){Q&&X.cancelJob(Q);Q=X.addJob(A,t,f);X.cancelDebouncedJobMap.set(q,Q)};
return q};
_.NH.prototype.cancelThrottle=function(A){(A=this.cancelThrottledJobMap.get(A))&&A()};var ue=function(){_.NH.apply(this,arguments)},LPT;
_.R(ue,_.NH);_.m_=function(){ue.instance||(ue.instance=new ue);return ue.instance};
ue.prototype.addJob=function(A,t,f){f!==void 0&&Number.isNaN(Number(f))&&(f=void 0);var X=_.Ae("yt.scheduler.instance.addJob");return X?X(A,t,f):f===void 0?(A(),NaN):_.Rj(A,f||0)};
ue.prototype.cancelJob=function(A){if(A===void 0||!Number.isNaN(Number(A))){var t=_.Ae("yt.scheduler.instance.cancelJob");t?t(A):_.b2(A)}};
ue.prototype.start=function(){var A=_.Ae("yt.scheduler.instance.start");A&&A()};
ue.prototype.pause=function(){var A=_.Ae("yt.scheduler.instance.pause");A&&A()};
LPT=function(){_.m_();var A=_.Ae("yt.scheduler.instance.setPriorityThreshold");A&&A(4)};
_.a6=_.m_();_.jJ.prototype.set=function(A,t){t===void 0?this.mechanism.remove(A):this.mechanism.set(A,(0,_.j$)(t))};
_.jJ.prototype.get=function(A){try{var t=this.mechanism.get(A)}catch(f){return}if(t!==null)try{return JSON.parse(t)}catch(f){throw"Storage: Invalid value was encountered";}};
_.jJ.prototype.remove=function(A){this.mechanism.remove(A)};var zE=function(A){this.mechanism=A};
_.rS(zE,_.jJ);var pt8=function(A){this.data=A},E7p=function(A){return A===void 0||A instanceof pt8?A:new pt8(A)};
zE.prototype.set=function(A,t){zE.superClass_.set.call(this,A,E7p(t))};
zE.prototype.getWrapper=function(A){A=zE.superClass_.get.call(this,A);if(A===void 0||A instanceof Object)return A;throw"Storage: Invalid value was encountered";};
zE.prototype.get=function(A){if(A=this.getWrapper(A)){if(A=A.data,A===void 0)throw"Storage: Invalid value was encountered";}else A=void 0;return A};_.rS(Yj,zE);_.n7l=function(A){var t=A.creation;A=A.expiration;return!!A&&A<_.k5()||!!t&&t>_.k5()};
Yj.prototype.set=function(A,t,f){if(t=E7p(t)){if(f){if(f<_.k5()){Yj.prototype.remove.call(this,A);return}t.expiration=f}t.creation=_.k5()}Yj.superClass_.set.call(this,A,t)};
Yj.prototype.getWrapper=function(A,t){var f=Yj.superClass_.getWrapper.call(this,A);if(f)if(!t&&_.n7l(f))Yj.prototype.remove.call(this,A);else return f};var P0=function(){};
P0.prototype.next=function(){return TE};
var TE={done:!0,value:void 0},ie=function(A){return{value:A,done:!1}};
P0.prototype.__iterator__=function(){return this};
_.DJT=function(A){if(A instanceof P0)return A;if(typeof A.__iterator__=="function")return A.__iterator__(!1);if(_.ST(A)){var t=0,f=new P0;f.next=function(){for(;;){if(t>=A.length)return TE;if(t in A)return ie(A[t++]);t++}};
return f}throw Error("Pc");};var FPT=function(A){if(A instanceof OA||A instanceof c0||A instanceof B0)return A;if(typeof A.next=="function")return new OA(function(){return A});
if(typeof A[Symbol.iterator]=="function")return new OA(function(){return A[Symbol.iterator]()});
if(typeof A.__iterator__=="function")return new OA(function(){return A.__iterator__()});
throw Error("Qc");},OA=function(A){this.func_=A};
OA.prototype.__iterator__=function(){return new c0(this.func_())};
OA.prototype[Symbol.iterator]=function(){return new B0(this.func_())};
OA.prototype.toEs6=function(){return new B0(this.func_())};
var c0=function(A){this.JSC$10694_iter_=A};
_.R(c0,P0);c0.prototype.next=function(){return this.JSC$10694_iter_.next()};
c0.prototype[Symbol.iterator]=function(){return new B0(this.JSC$10694_iter_)};
c0.prototype.toEs6=function(){return new B0(this.JSC$10694_iter_)};
var B0=function(A){OA.call(this,function(){return A});
this.JSC$10697_iter_=A};
_.R(B0,OA);B0.prototype.next=function(){return this.JSC$10697_iter_.next()};var INl=function(){};var MH=function(){};
_.rS(MH,INl);MH.prototype.getCount=function(){for(var A=0,t=_.U(this),f=t.next();!f.done;f=t.next())A++;return A};
MH.prototype[Symbol.iterator]=function(){return FPT(this.__iterator__(!0)).toEs6()};
MH.prototype.clear=function(){var A=Array.from(this);A=_.U(A);for(var t=A.next();!t.done;t=A.next())this.remove(t.value)};_.rS(V$,MH);_.J=V$.prototype;_.J.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var A=this.storage_;if(A)try{A.setItem("__sak","1");A.removeItem("__sak");var t=!0}catch(f){t=f instanceof DOMException&&(f.name==="QuotaExceededError"||f.code===22||f.code===1014||f.name==="NS_ERROR_DOM_QUOTA_REACHED")&&A&&A.length!==0}else t=!1;this.cachedIsStorageAvailable_=t}return this.cachedIsStorageAvailable_};
_.J.set=function(A,t){Cr(this);try{this.storage_.setItem(A,t)}catch(f){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.J.get=function(A){Cr(this);A=this.storage_.getItem(A);if(typeof A!=="string"&&A!==null)throw"Storage mechanism: Invalid value was encountered";return A};
_.J.remove=function(A){Cr(this);this.storage_.removeItem(A)};
_.J.getCount=function(){Cr(this);return this.storage_.length};
_.J.__iterator__=function(A){Cr(this);var t=0,f=this.storage_,X=new P0;X.next=function(){if(t>=f.length)return TE;var Q=f.key(t++);if(A)return ie(Q);Q=f.getItem(Q);if(typeof Q!=="string")throw"Storage mechanism: Invalid value was encountered";return ie(Q)};
return X};
_.J.clear=function(){Cr(this);this.storage_.clear()};
_.J.key=function(A){Cr(this);return this.storage_.key(A)};
var Cr=function(A){if(A.storage_==null)throw Error("Rc");A.isAvailable()||Q5(Error("Rc"))};_.rS(Zfx,V$);_.rS(o7b,V$);_.rS(ZU,MH);ZU.prototype.set=function(A,t){this.mechanism_.set(this.JSC$10712_prefix_+A,t)};
ZU.prototype.get=function(A){return this.mechanism_.get(this.JSC$10712_prefix_+A)};
ZU.prototype.remove=function(A){this.mechanism_.remove(this.JSC$10712_prefix_+A)};
ZU.prototype.__iterator__=function(A){var t=this.mechanism_[Symbol.iterator](),f=this,X=new P0;X.next=function(){var Q=t.next();if(Q.done)return Q;for(Q=Q.value;Q.slice(0,f.JSC$10712_prefix_.length)!=f.JSC$10712_prefix_;){Q=t.next();if(Q.done)return Q;Q=Q.value}return ie(A?Q.slice(f.JSC$10712_prefix_.length):f.mechanism_.get(Q))};
return X};_.kt=function(A){this.expiringStorage_=(A=_.oj(A))?new Yj(A):null;this.JSC$10716_domain_=document.domain||window.location.hostname};
_.J=_.kt.prototype;_.J.hasLocalStorage=function(){return!!this.expiringStorage_};
_.J.set=function(A,t,f,X){f=f||31104E3;this.remove(A);if(this.hasLocalStorage())try{this.expiringStorage_.set(A,t,Date.now()+f*1E3);return}catch(q){}var Q="";if(X)try{Q=escape((0,_.j$)(t))}catch(q){return}else Q=escape(t);_.nk(A,Q,f,this.JSC$10716_domain_)};
_.J.get=function(A,t){var f=void 0,X=!this.hasLocalStorage();if(!X)try{f=this.expiringStorage_.get(A)}catch(Q){X=!0}if(X&&(f=_.E0.get(A,void 0))&&(f=unescape(f),t))try{f=JSON.parse(f)}catch(Q){this.remove(A),f=void 0}return f};
_.J.remove=function(A){this.hasLocalStorage()&&this.expiringStorage_.remove(A);_.DJx(A,"/",this.JSC$10716_domain_)};
_.J.getCreationTime=function(A){return this.hasLocalStorage()&&(A=(this.expiringStorage_.getWrapper(A)||{}).creation,typeof A==="number")?A:null};var SOq=function(){var A;return function(){A||(A=new _.kt("ytidb"));return A}}();var Hfu;_.SJ=[];Hfu=!1;var ltz=aNp||KPx;var h9={},xJk=(h9.AUTH_INVALID="No user identifier specified.",h9.EXPLICIT_ABORT="Transaction was explicitly aborted.",h9.IDB_NOT_SUPPORTED="IndexedDB is not supported.",h9.MISSING_INDEX="Index not created.",h9.MISSING_OBJECT_STORES="Object stores not created.",h9.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",h9.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",h9.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",h9.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",h9.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",h9.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",h9.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",h9),RR={},j7C=(RR.AUTH_INVALID="ERROR",RR.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",RR.EXPLICIT_ABORT="IGNORED",
RR.IDB_NOT_SUPPORTED="ERROR",RR.MISSING_INDEX="WARNING",RR.MISSING_OBJECT_STORES="ERROR",RR.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",RR.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",RR.QUOTA_EXCEEDED="WARNING",RR.QUOTA_MAYBE_EXCEEDED="WARNING",RR.UNKNOWN_ABORT="WARNING",RR.INCOMPATIBLE_DB_VERSION="WARNING",RR),m1={},YOK=(m1.AUTH_INVALID=!1,m1.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,m1.EXPLICIT_ABORT=!1,m1.IDB_NOT_SUPPORTED=!1,m1.MISSING_INDEX=!1,m1.MISSING_OBJECT_STORES=!1,m1.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,m1.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,m1.QUOTA_EXCEEDED=!1,m1.QUOTA_MAYBE_EXCEEDED=!0,m1.UNKNOWN_ABORT=!0,m1.INCOMPATIBLE_DB_VERSION=!1,m1),s0=function(A,t,f,X,Q){t=t===void 0?{}:t;f=f===void 0?xJk[A]:f;X=X===void 0?j7C[A]:X;Q=Q===void 0?YOK[A]:Q;_.xj.call(this,f,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:A},t));this.type=A;this.message=f;this.level=X;this.retryable=Q;Object.setPrototypeOf(this,s0.prototype)};
_.R(s0,_.xj);var V5p=function(A,t){s0.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:t,foundObjectStores:A},xJk.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,V5p.prototype)};
_.R(V5p,s0);var wtz=function(A,t){var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.index=A;this.objectStore=t;Object.setPrototypeOf(this,wtz.prototype)};
_.R(wtz,Error);var s7s=["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 tq=function(A){this.executor=A},Aq=function(A){var t=this;
this.state={status:"PENDING"};this.JSC$10744_onFulfilled=[];this.JSC$10744_onRejected=[];A=A.executor;var f=function(Q){if(t.state.status==="PENDING"){t.state={status:"FULFILLED",value:Q};Q=_.U(t.JSC$10744_onFulfilled);for(var q=Q.next();!q.done;q=Q.next())q=q.value,q()}},X=function(Q){if(t.state.status==="PENDING"){t.state={status:"REJECTED",
reason:Q};Q=_.U(t.JSC$10744_onRejected);for(var q=Q.next();!q.done;q=Q.next())q=q.value,q()}};
try{A(f,X)}catch(Q){X(Q)}};
Aq.all=function(A){return new Aq(new tq(function(t,f){var X=[],Q=A.length;Q===0&&t(X);for(var q={i$jscomp$468:0};q.i$jscomp$468<A.length;q={i$jscomp$468:q.i$jscomp$468},++q.i$jscomp$468)Aq.resolve(A[q.i$jscomp$468]).then(function(e){return function(G){X[e.i$jscomp$468]=G;Q--;Q===0&&t(X)}}(q)).catch(function(e){f(e)})}))};
Aq.resolve=function(A){return new Aq(new tq(function(t,f){A instanceof Aq?A.then(t,f):t(A)}))};
Aq.reject=function(A){return new Aq(new tq(function(t,f){f(A)}))};
Aq.prototype.then=function(A,t){var f=this,X=A!=null?A:ARx,Q=t!=null?t:rlq;return new Aq(new tq(function(q,e){f.state.status==="PENDING"?(f.JSC$10744_onFulfilled.push(function(){ZfT(f,f,X,q,e)}),f.JSC$10744_onRejected.push(function(){o7p(f,f,Q,q,e)})):f.state.status==="FULFILLED"?ZfT(f,f,X,q,e):f.state.status==="REJECTED"&&o7p(f,f,Q,q,e)}))};
Aq.prototype.catch=function(A){return this.then(void 0,A)};
var ZfT=function(A,t,f,X,Q){try{if(A.state.status!=="FULFILLED")throw Error("Uc");var q=f(A.state.value);q instanceof Aq?dJi(A,t,q,X,Q):X(q)}catch(e){Q(e)}},o7p=function(A,t,f,X,Q){try{if(A.state.status!=="REJECTED")throw Error("Vc");
var q=f(A.state.reason);q instanceof Aq?dJi(A,t,q,X,Q):X(q)}catch(e){Q(e)}},dJi=function(A,t,f,X,Q){t===f?Q(new TypeError("Wc")):f.then(function(q){q instanceof Aq?dJi(A,t,q,X,Q):X(q)},function(q){Q(q)})};var be;be=window;_.OJ=be.ytcsi&&be.ytcsi.now?be.ytcsi.now:be.performance&&be.performance.timing&&be.performance.now&&be.performance.timing.navigationStart?function(){return be.performance.timing.navigationStart+be.performance.now()}:function(){return(new Date).getTime()};var Xi=function(A,t){this.JSC$10756_wrapped=A;this.options=t;this.transactionCount=0;this.startedMs=Math.round((0,_.OJ)());this.hasUnknownAbortedTransaction=!1},W0=function(){return _.M("idb_immediate_commit")},HfK,aNT,Lr,wtk;
Xi.prototype.add=function(A,t,f){return _.eC(this,[A],{mode:"readwrite",enableRetries:!0,commit:W0()},function(X){return X.objectStore(A).add(t,f)})};
Xi.prototype.clear=function(A){return _.eC(this,[A],{mode:"readwrite",enableRetries:!0},function(t){return t.objectStore(A).clear()})};
Xi.prototype.close=function(){this.JSC$10756_wrapped.close();var A;((A=this.options)==null?0:A.closed)&&this.options.closed()};
Xi.prototype.count=function(A,t){return _.eC(this,[A],{mode:"readonly",enableRetries:!0,commit:W0()},function(f){return f.objectStore(A).count(t)})};
var AO=function(A,t,f){A=A.JSC$10756_wrapped.createObjectStore(t,f);return new yM(A)};
Xi.prototype.delete=function(A,t){return _.eC(this,[A],{mode:"readwrite",enableRetries:!0,commit:W0()&&!(t instanceof IDBKeyRange)},function(f){return f.objectStore(A).delete(t)})};
var SO8=function(A,t){return _.eC(A,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore("ResponseStore").index("byInterface").delete(t)})};
Xi.prototype.get=function(A,t){return _.eC(this,[A],{mode:"readonly",enableRetries:!0,commit:W0()},function(f){return f.objectStore(A).get(t)})};
Xi.prototype.getAll=function(A,t,f){return _.eC(this,[A],{mode:"readonly",enableRetries:!0},function(X){return X.objectStore(A).getAll(t,f)})};
Xi.prototype.put=function(A,t,f){return _.eC(this,[A],{mode:"readwrite",enableRetries:!0,commit:W0()},function(X){return X.objectStore(A).put(t,f)})};
Xi.prototype.objectStoreNames=function(){return Array.from(this.JSC$10756_wrapped.objectStoreNames)};
_.eC=function(A,t,f,X){var Q,q,e,G,N,z,T,O,c,B,h,W;return _.l(function(L){switch(L.nextAddress){case 1:var E={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof f==="string"?E.mode=f:Object.assign(E,f);Q=E;A.transactionCount++;q=Q.enableRetries?3:1;e=0;case 2:if(G){L.jumpTo(4);break}e++;N=Math.round((0,_.OJ)());_.ht(L,5);z=A.JSC$10756_wrapped.transaction(t,Q.mode);E=L.yield;var D=!!Q.commit;var S=new QU(z);D=$Jf(S,X,D);return E.call(L,D,7);case 7:return T=L.yieldResult,O=Math.round((0,_.OJ)()),
HfK(A,N,O,e,void 0,t.join(),Q),L.return(T);case 5:c=_.vC(L);B=Math.round((0,_.OJ)());h=ktT(c,A.JSC$10756_wrapped.name,t.join(),A.JSC$10756_wrapped.version);if((W=h instanceof s0&&!h.retryable)||e>=q)HfK(A,N,B,e,h,t.join(),Q),G=h;L.jumpTo(2);break;case 4:return L.return(Promise.reject(G))}})};
HfK=function(A,t,f,X,Q,q,e){t=f-t;Q?(Q instanceof s0&&(Q.type==="QUOTA_EXCEEDED"||Q.type==="QUOTA_MAYBE_EXCEEDED")&&aj("QUOTA_EXCEEDED",{dbName:gi(A.JSC$10756_wrapped.name),objectStoreNames:q,transactionCount:A.transactionCount,transactionMode:e.mode}),Q instanceof s0&&Q.type==="UNKNOWN_ABORT"&&(f-=A.startedMs,f<0&&f>=2147483648&&(f=0),aj("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:q,transactionDuration:t,transactionCount:A.transactionCount,dbDuration:f}),A.hasUnknownAbortedTransaction=!0),
aNT(A,!1,X,q,t,e.tag),_.Hx(Q)):aNT(A,!0,X,q,t,e.tag)};
aNT=function(A,t,f,X,Q,q){aj("TRANSACTION_ENDED",{objectStoreNames:X,connectionHasUnknownAbortedTransaction:A.hasUnknownAbortedTransaction,duration:Q,isSuccessful:t,tryCount:f,tag:q===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":q})};
Xi.prototype.getName=function(){return this.JSC$10756_wrapped.name};
var yM=function(A){this.JSC$10771_wrapped=A};
yM.prototype.add=function(A,t){return fU(this.JSC$10771_wrapped.add(A,t))};
yM.prototype.autoIncrement=function(){return this.JSC$10771_wrapped.autoIncrement};
yM.prototype.clear=function(){return fU(this.JSC$10771_wrapped.clear()).then(function(){})};
var tO=function(A,t,f){A.JSC$10771_wrapped.createIndex(t,f,{unique:!1})};
yM.prototype.count=function(A){return fU(this.JSC$10771_wrapped.count(A))};
var KPT=function(A,t){return ln(A,{query:t},function(f){return f.delete().then(function(){return f.continue()})}).then(function(){})};
yM.prototype.delete=function(A){return A instanceof IDBKeyRange?KPT(this,A):fU(this.JSC$10771_wrapped.delete(A))};
yM.prototype.get=function(A){return fU(this.JSC$10771_wrapped.get(A))};
yM.prototype.getAll=function(A,t){return"getAll"in IDBObjectStore.prototype?fU(this.JSC$10771_wrapped.getAll(A,t)):g7K(this,A,t)};
var g7K=function(A,t,f){var X=[];return ln(A,{query:t},function(Q){if(!(f!==void 0&&X.length>=f))return X.push(Q.getValue()),Q.continue()}).then(function(){return X})};
yM.prototype.index=function(A){try{return new v0(this.JSC$10771_wrapped.index(A))}catch(t){if(t instanceof Error&&t.name==="NotFoundError")throw new wtz(A,this.JSC$10771_wrapped.name);throw t;}};
yM.prototype.getName=function(){return this.JSC$10771_wrapped.name};
yM.prototype.keyPath=function(){return this.JSC$10771_wrapped.keyPath};
yM.prototype.put=function(A,t){return fU(this.JSC$10771_wrapped.put(A,t))};
var ln=function(A,t,f){A=A.JSC$10771_wrapped.openCursor(t.query,t.direction);return wtk(A).then(function(X){return XEz(X,f)})},QU=function(A){var t=this;
this.JSC$10779_wrapped=A;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(f,X){t.JSC$10779_wrapped.addEventListener("complete",function(){f()});
t.JSC$10779_wrapped.addEventListener("error",function(Q){Q.currentTarget===Q.target&&X(t.JSC$10779_wrapped.error)});
t.JSC$10779_wrapped.addEventListener("abort",function(){var Q=t.JSC$10779_wrapped.error;if(Q)X(Q);else if(!t.aborted){Q=s0;for(var q=t.JSC$10779_wrapped.objectStoreNames,e=[],G=0;G<q.length;G++){var N=q.item(G);if(N===null)throw Error("Xc");e.push(N)}Q=new Q("UNKNOWN_ABORT",{objectStoreNames:e.join(),dbName:t.JSC$10779_wrapped.db.name,mode:t.JSC$10779_wrapped.mode});X(Q)}})})},$Jf=function(A,t,f){var X=new Promise(function(Q,q){try{var e=t(A);
f&&A.commit();e.then(function(G){Q(G)}).catch(q)}catch(G){q(G),A.abort()}});
return Promise.all([X,A.done]).then(function(Q){return _.U(Q).next().value})};
QU.prototype.abort=function(){this.JSC$10779_wrapped.abort();this.aborted=!0;throw new s0("EXPLICIT_ABORT");};
QU.prototype.commit=function(){if(!this.aborted){var A,t;(t=(A=this.JSC$10779_wrapped).commit)==null||t.call(A)}};
QU.prototype.objectStore=function(A){A=this.JSC$10779_wrapped.objectStore(A);var t=this.objectStoreCache.get(A);t||(t=new yM(A),this.objectStoreCache.set(A,t));return t};
var v0=function(A){this.JSC$10781_wrapped=A};
v0.prototype.count=function(A){return fU(this.JSC$10781_wrapped.count(A))};
v0.prototype.delete=function(A){return _.cD(this,{query:A},function(t){return t.delete().then(function(){return t.continue()})})};
v0.prototype.get=function(A){return fU(this.JSC$10781_wrapped.get(A))};
v0.prototype.getAll=function(A,t){return"getAll"in IDBIndex.prototype?fU(this.JSC$10781_wrapped.getAll(A,t)):s7E(this,A,t)};
var s7E=function(A,t,f){var X=[];return _.cD(A,{query:t},function(Q){if(!(f!==void 0&&X.length>=f))return X.push(Q.getValue()),Q.continue()}).then(function(){return X})};
v0.prototype.keyPath=function(){return this.JSC$10781_wrapped.keyPath};
v0.prototype.unique=function(){return this.JSC$10781_wrapped.unique};
_.cD=function(A,t,f){A=A.JSC$10781_wrapped.openCursor(t.query===void 0?null:t.query,t.direction===void 0?"next":t.direction);return wtk(A).then(function(X){return XEz(X,f)})};
Lr=function(A,t){this.request=A;this.cursor=t};
wtk=function(A){return fU(A).then(function(t){return t?new Lr(A,t):null})};
Lr.prototype.continue=function(A){this.cursor.continue(A);return wtk(this.request)};
Lr.prototype.delete=function(){return fU(this.cursor.delete()).then(function(){})};
Lr.prototype.getValue=function(){return this.cursor.value};
Lr.prototype.update=function(A){return fU(this.cursor.update(A))};var pr=function(A,t){this.name=A;this.options=t;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},kti;
pr.prototype.openDb=function(A,t,f){f=f===void 0?{}:f;return qp0(A,t,f)};
pr.prototype.delete=function(A){A=A===void 0?{}:A;return _.Jq(this.name,A)};
kti=function(A,t){return new s0("INCOMPATIBLE_DB_VERSION",{dbName:A.name,oldVersion:A.options.version,newVersion:t})};
_.UJ=function(A,t){if(!t)throw ri("openWithToken",gi(A.name));return A.open()};
pr.prototype.open=function(){var A=this;if(!this.isCompatible)throw kti(this);if(this.connectionPromise)return this.connectionPromise;var t,f=function(){A.connectionPromise===t&&(A.connectionPromise=void 0)},X={blocking:function(q){q.close()},
closed:f,terminated:f,upgrade:this.options.upgrade},Q=function(){var q,e,G,N,z,T,O,c,B,h;return _.l(function(W){switch(W.nextAddress){case 1:return e=(q=Error().stack)!=null?q:"",_.ht(W,2),W.yield(A.openDb(A.name,A.options.version,X),4);case 4:for(var L=G=W.yieldResult,E=A.options,D=[],S=_.U(Object.keys(E.objectStores)),Z=S.next();!Z.done;Z=S.next()){Z=Z.value;var d=E.objectStores[Z],K=d.removedAtVersion===void 0?Number.MAX_VALUE:d.removedAtVersion;!(L.JSC$10756_wrapped.version>=d.addedAtVersion)||
L.JSC$10756_wrapped.version>=K||L.JSC$10756_wrapped.objectStoreNames.contains(Z)||D.push(Z)}N=D;if(N.length===0){W.jumpTo(5);break}z=Object.keys(A.options.objectStores);T=G.objectStoreNames();if(A.timesReopenedToFixMissingObjectStore<_.cx("ytidb_reopen_db_retries",0))return A.timesReopenedToFixMissingObjectStore++,G.close(),_.Hx(new s0("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:A.name,expectedObjectStores:z,foundObjectStores:T})),W.return(Q());if(!(A.timesDeletedToFixMissingObjectStore<_.cx("ytidb_remake_db_retries",
1))){W.jumpTo(6);break}A.timesDeletedToFixMissingObjectStore++;return W.yield(A.delete(),7);case 7:return _.Hx(new s0("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:A.name,expectedObjectStores:z,foundObjectStores:T})),W.return(Q());case 6:throw new V5p(T,z);case 5:return W.return(G);case 2:O=_.vC(W);if(O instanceof DOMException?O.name!=="VersionError":"DOMError"in self&&O instanceof DOMError?O.name!=="VersionError":!(O instanceof Object&&"message"in O)||O.message!=="An attempt was made to open a database using a lower version than the existing version."){W.jumpTo(8);
break}return W.yield(A.openDb(A.name,void 0,Object.assign({},X,{upgrade:void 0})),9);case 9:c=W.yieldResult;B=c.JSC$10756_wrapped.version;if(A.options.version!==void 0&&B>A.options.version+1)throw c.close(),A.isCompatible=!1,kti(A,B);return W.return(c);case 8:throw f(),O instanceof Error&&!_.M("ytidb_async_stack_killswitch")&&(O.stack=O.stack+"\n"+e.substring(e.indexOf("\n")+1)),ktT(O,A.name,"",(h=A.options.version)!=null?h:-1);}})};
return this.connectionPromise=t=Q()};var JRx=new pr("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(A,t){t(1)&&AO(A,"databases",{keyPath:"actualName"})}});var z$5,NFT=new function(){}(new function(){});new _.Qc;var rl8=function(A,t){pr.call(this,A,t);this.options=t;Kk(A)};
_.R(rl8,pr);var R$0=function(A,t){var f;return function(){f||(f=new rl8(A,t));return f}};
rl8.prototype.openDb=function(A,t,f){f=f===void 0?{}:f;return(this.options.shared?cRz:OZ5)(A,t,Object.assign({},f))};
rl8.prototype.delete=function(A){A=A===void 0?{}:A;return(this.options.shared?h$5:BFg)(this.name,A)};var AR7={},m_b=Tm("ytGcfConfig",{objectStores:(AR7.coldConfigStore={addedAtVersion:1},AR7.hotConfigStore={addedAtVersion:1},AR7),shared:!1,upgrade:function(A,t){t(1)&&(tO(AO(A,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),tO(AO(A,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var tRk=function(){_.DA.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var A=_.Ae("yt.gcf.config.hotUpdateCallbacks");A?(this.localHotConfigJobQueue=[].concat(_.YV(A)),this.sharedHotConfigJobQueue=A):(this.sharedHotConfigJobQueue=[],_.zm("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.R(tRk,_.DA);tRk.prototype.disposeInternal=function(){for(var A=_.U(this.localHotConfigJobQueue),t=A.next();!t.done;t=A.next()){var f=this.sharedHotConfigJobQueue;t=f.indexOf(t.value);t>=0&&f.splice(t,1)}this.localHotConfigJobQueue.length=0;_.DA.prototype.disposeInternal.call(this)};var YB=function(){var A=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new tRk;this.TEST_ONLY={initializeConfigDb:function(){A.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return A.coldGlobalConfigGroup},
setHotConfigGroup:function(t){ftT(A,t)},
setHotHashData:function(t){A.setHotHashData(t)},
setColdConfigGroup:function(t){XEk(A,t)},
getColdHashData:function(){return A.coldHashData},
getHotHashData:function(){return A.hotHashData},
getHotConfigGroup:function(){return A.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return QCb()},
getExportedHotConfigGroup:function(){return EA()},
getExportedColdHashData:function(){return _.Ae("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Ae("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){qpp(A)},
resetInstance:function(){A.setHotHashData(void 0);JRw(A);delete YB.instance},
setDebounceTimer:function(t){A.debounceTimer=t},
getDebounceTimer:function(){return A.debounceTimer}}},U_K=function(){if(!YB.instance){var A=new YB;
YB.instance=A}return YB.instance},ltk=function(A){var t;
_.l(function(f){if(f.nextAddress==1)return _.M("start_client_gcf")||_.M("delete_gcf_config_db")?_.M("start_client_gcf")?f.yield(_.PD(),3):f.jumpTo(2):f.return();f.nextAddress!=2&&((t=f.yieldResult)&&_.Ij()&&!_.M("delete_gcf_config_db")?(A.isConfigDbInitialized=!0,qpp(A)):(e$K(A),G$C(A)));return _.M("delete_gcf_config_db")?f.yield(pE0(),0):f.jumpTo(0)})},Vy=function(){var A;
return(A=EA())!=null?A:_.ah("RAW_HOT_CONFIG_GROUP")},NFi=function(A){var t,f,X,Q,q,e;
return _.l(function(G){switch(G.nextAddress){case 1:if(A.hotGlobalConfigGroup)return G.return(EA());if(!A.isConfigDbInitialized)return t=ri("getHotConfig IDB not initialized"),_.te(t),G.return(Promise.reject(t));f=un();X=_.ah("TIME_CREATED_MS");if(!f){Q=ri("getHotConfig token error");_.te(Q);G.jumpTo(2);break}return G.yield(Lvx(f),3);case 3:if((q=G.yieldResult)&&q.timestamp>X)return ftT(A,q.config),A.setHotHashData(q.hashData),G.return(EA());case 2:G$C(A);if(!(f&&A.hotGlobalConfigGroup&&A.hotHashData)){G.jumpTo(4);
break}return G.yield(Wvs(A.hotGlobalConfigGroup,A.hotHashData,f,X),4);case 4:return A.hotGlobalConfigGroup?G.return(EA()):(e=new _.xj("Config not available in ytConfig"),_.te(e),G.return(Promise.reject(e)))}})},z$l=function(A){var t,f,X,Q,q,e;
return _.l(function(G){switch(G.nextAddress){case 1:if(A.coldGlobalConfigGroup)return G.return(QCb());if(!A.isConfigDbInitialized)return t=ri("getColdConfig IDB not initialized"),_.te(t),G.return(Promise.reject(t));f=un();X=_.ah("TIME_CREATED_MS");if(!f){Q=ri("getColdConfig");_.te(Q);G.jumpTo(2);break}return G.yield(vIz(f),3);case 3:if((q=G.yieldResult)&&q.timestamp>X)return XEk(A,q.config),uCl(A,q.configData),JRw(A,q.hashData),G.return(QCb());case 2:e$K(A);if(!(f&&A.coldGlobalConfigGroup&&A.coldHashData&&
A.configData)){G.jumpTo(4);break}return G.yield(yRx(A.coldGlobalConfigGroup,A.coldHashData,A.configData,f,X),4);case 4:return A.coldGlobalConfigGroup?G.return(QCb()):(e=new _.xj("Config not available in ytConfig"),_.te(e),G.return(Promise.reject(e)))}})},qpp=function(A){if(!A.hotGlobalConfigGroup||!A.coldGlobalConfigGroup){if(!un()){var t=ri("scheduleGetConfigs");
_.te(t)}A.initJob||(A.initJob=_.a6.addLowPriorityJob(function(){return _.l(function(f){switch(f.nextAddress){case 1:return _.ht(f,2),f.yield(NFi(A),4);case 4:_.qq(f,3);break;case 2:_.vC(f);case 3:return _.ht(f,5),f.yield(z$l(A),7);case 7:_.qq(f,6);break;case 5:_.vC(f);case 6:A.initJob&&(A.initJob=0),_.LO(f)}})},100))}},yog=function(A,t,f){var X,Q,q;
return _.l(function(e){switch(e.nextAddress){case 1:if(!_.M("start_client_gcf")){e.jumpTo(0);break}f&&ftT(A,f);A.setHotHashData(t);X=un();if(!X){e.jumpTo(3);break}if(f){e.jumpTo(4);break}return e.yield(Lvx(X),5);case 5:Q=e.yieldResult,f=(q=Q)==null?void 0:q.config;case 4:return e.yield(Wvs(f,t,X),3);case 3:if(f)for(var G=f,N=_.U(A.configUpdateService.sharedHotConfigJobQueue),z=N.next();!z.done;z=N.next())z=z.value,z(G);_.LO(e)}})},vEb=function(A,t,f){var X,Q,q,e;
return _.l(function(G){if(G.nextAddress==1){if(!_.M("start_client_gcf"))return G.jumpTo(0);JRw(A,t);return(X=un())?f?G.jumpTo(4):G.yield(vIz(X),5):G.jumpTo(0)}G.nextAddress!=4&&(Q=G.yieldResult,f=(q=Q)==null?void 0:q.config);if(!f)return G.jumpTo(0);e=f.configData;return G.yield(yRx(f,t,e,X),0)})},gIq=function(){var A=U_K(),t=(0,_.OJ)()-A.debounceTimer;
if(!(A.debounceTimer!==0&&t<_.cx("send_config_hash_timer"))){t=_.Ae("yt.gcf.config.coldConfigData");var f=_.Ae("yt.gcf.config.hotHashData"),X=_.Ae("yt.gcf.config.coldHashData");t&&f&&X&&(A.debounceTimer=(0,_.OJ)());return{coldConfigData:t,hotHashData:f,coldHashData:X}}},e$K=function(A){XEk(A,_.ah("RAW_COLD_CONFIG_GROUP"));
JRw(A,_.ah("SERIALIZED_COLD_HASH_DATA"));var t;uCl(A,(t=A.coldGlobalConfigGroup)==null?void 0:t.configData)},G$C=function(A){ftT(A,_.ah("RAW_HOT_CONFIG_GROUP"));
A.setHotHashData(_.ah("SERIALIZED_HOT_HASH_DATA"))},ftT=function(A,t){A.hotGlobalConfigGroup=t;
_.zm("yt.gcf.config.hotConfigGroup",A.hotGlobalConfigGroup||null)},XEk=function(A,t){A.coldGlobalConfigGroup=t;
_.zm("yt.gcf.config.coldConfigGroup",A.coldGlobalConfigGroup||null)};
YB.prototype.setHotHashData=function(A){this.hotHashData=A;_.zm("yt.gcf.config.hotHashData",this.hotHashData||null)};
var JRw=function(A,t){A.coldHashData=t;_.zm("yt.gcf.config.coldHashData",A.coldHashData||null)},uCl=function(A,t){A.configData=t;
_.zm("yt.gcf.config.coldConfigData",A.configData||null)},EA=function(){return _.Ae("yt.gcf.config.hotConfigGroup")},QCb=function(){return _.Ae("yt.gcf.config.coldConfigGroup")};var vD={},P$p=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";vD.assign=function(A){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var f=t.shift();if(f){if(typeof f!=="object")throw new TypeError("$c`"+f);for(var X in f)Object.prototype.hasOwnProperty.call(f,X)&&(A[X]=f[X])}}return A};
vD.shrinkBuf=function(A,t){if(A.length===t)return A;if(A.subarray)return A.subarray(0,t);A.length=t;return A};
var TFE={arraySet:function(A,t,f,X,Q){if(t.subarray&&A.subarray)A.set(t.subarray(f,f+X),Q);else for(var q=0;q<X;q++)A[Q+q]=t[f+q]},
flattenChunks:function(A){var t,f;var X=f=0;for(t=A.length;X<t;X++)f+=A[X].length;var Q=new Uint8Array(f);X=f=0;for(t=A.length;X<t;X++){var q=A[X];Q.set(q,f);f+=q.length}return Q}},iZK={arraySet:function(A,t,f,X,Q){for(var q=0;q<X;q++)A[Q+q]=t[f+q]},
flattenChunks:function(A){return[].concat.apply([],A)}};
vD.setTyped=function(){P$p?(vD.Buf8=Uint8Array,vD.Buf16=Uint16Array,vD.Buf32=Int32Array,vD.assign(vD,TFE)):(vD.Buf8=Array,vD.Buf16=Array,vD.Buf32=Array,vD.assign(vD,iZK))};
vD.setTyped();var OZC=!0;try{new Uint8Array(1)}catch(A){OZC=!1}
var Ltx=function(A){var t,f,X=A.length,Q=0;for(t=0;t<X;t++){var q=A.charCodeAt(t);if((q&64512)===55296&&t+1<X){var e=A.charCodeAt(t+1);(e&64512)===56320&&(q=65536+(q-55296<<10)+(e-56320),t++)}Q+=q<128?1:q<2048?2:q<65536?3:4}var G=new vD.Buf8(Q);for(t=f=0;f<Q;t++)q=A.charCodeAt(t),(q&64512)===55296&&t+1<X&&(e=A.charCodeAt(t+1),(e&64512)===56320&&(q=65536+(q-55296<<10)+(e-56320),t++)),q<128?G[f++]=q:(q<2048?G[f++]=192|q>>>6:(q<65536?G[f++]=224|q>>>12:(G[f++]=240|q>>>18,G[f++]=128|q>>>12&63),G[f++]=
128|q>>>6&63),G[f++]=128|q&63);return G};var ips={};ips=function(A,t,f,X){var Q=A&65535|0;A=A>>>16&65535|0;for(var q;f!==0;){q=f>2E3?2E3:f;f-=q;do Q=Q+t[X++]|0,A=A+Q|0;while(--q);Q%=65521;A%=65521}return Q|A<<16|0};for(var o6={},nr,cRk=[],BFS=0;BFS<256;BFS++){nr=BFS;for(var MRS=0;MRS<8;MRS++)nr=nr&1?3988292384^nr>>>1:nr>>>1;cRk[BFS]=nr}o6=function(A,t,f,X){f=X+f;for(A^=-1;X<f;X++)A=A>>>8^cRk[(A^t[X])&255];return A^-1};var nU={};nU={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 qFl=[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],Uvq=[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],vOq=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],PYT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],xt=Array(576);mZ(xt);var jC=Array(60);mZ(jC);var pU=Array(512);mZ(pU);var LU=Array(256);mZ(LU);var JLx=Array(29);mZ(JLx);var e9g=Array(30);mZ(e9g);var bpx,Wts,yLx,mv5=!1;var HD;
HD=[new $t(0,0,0,0,function(A,t){var f=65535;for(f>A.pending_buf_size-5&&(f=A.pending_buf_size-5);;){if(A.lookahead<=1){db(A);if(A.lookahead===0&&t===0)return 1;if(A.lookahead===0)break}A.strstart+=A.lookahead;A.lookahead=0;var X=A.block_start+f;if(A.strstart===0||A.strstart>=X)if(A.lookahead=A.strstart-X,A.strstart=X,Yt(A,!1),A.strm.avail_out===0)return 1;if(A.strstart-A.block_start>=A.w_size-262&&(Yt(A,!1),A.strm.avail_out===0))return 1}A.insert=0;if(t===4)return Yt(A,!0),A.strm.avail_out===0?3:
4;A.strstart>A.block_start&&Yt(A,!1);return 1}),
new $t(4,4,8,4,Opl),new $t(4,5,16,8,Opl),new $t(4,6,32,32,Opl),new $t(4,4,16,16,SC),new $t(8,16,32,32,SC),new $t(8,16,128,128,SC),new $t(8,32,128,256,SC),new $t(32,128,258,1024,SC),new $t(32,258,258,4096,SC)];var R9g={};R9g=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 pip=Object.prototype.toString;
h9q.prototype.push=function(A,t){var f=this.strm,X=this.options.chunkSize;if(this.ended)return!1;var Q=t===~~t?t:t===!0?4:0;typeof A==="string"?f.input=Ltx(A):pip.call(A)==="[object ArrayBuffer]"?f.input=new Uint8Array(A):f.input=A;f.next_in=0;f.avail_in=f.input.length;do{f.avail_out===0&&(f.output=new vD.Buf8(X),f.next_out=0,f.avail_out=X);A=CYb(f,Q);if(A!==1&&A!==0)return C$T(this,A),this.ended=!0,!1;if(f.avail_out===0||f.avail_in===0&&(Q===4||Q===2))if(this.options.to==="string"){var q=vD.shrinkBuf(f.output,
f.next_out);t=q;q=q.length;if(q<65537&&(t.subarray&&OZC||!t.subarray))t=String.fromCharCode.apply(null,vD.shrinkBuf(t,q));else{for(var e="",G=0;G<q;G++)e+=String.fromCharCode(t[G]);t=e}this.chunks.push(t)}else t=vD.shrinkBuf(f.output,f.next_out),this.chunks.push(t)}while((f.avail_in>0||f.avail_out===0)&&A!==1);if(Q===4)return(f=this.strm)&&f.state?(X=f.state.status,X!==42&&X!==69&&X!==73&&X!==91&&X!==103&&X!==113&&X!==666?A=Ds(f,-2):(f.state=null,A=X===113?Ds(f,-3):0)):A=-2,C$T(this,A),this.ended=
!0,A===0;Q===2&&(C$T(this,0),f.avail_out=0);return!0};
var C$T=function(A,t){t===0&&(A.result=A.options.to==="string"?A.chunks.join(""):vD.flattenChunks(A.chunks));A.chunks=[];A.err=t;A.msg=A.strm.msg};var h$l=typeof TextEncoder!=="undefined"?new TextEncoder:null,JYz=h$l?function(A){return h$l.encode(A)}:function(A){A=_.nA(A);
for(var t=new Uint8Array(A.length),f=0;f<t.length;f++)t[f]=A[f];return t};var auT={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},g45={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Dz=function(A,t){this.version=A;this.args=t};
Dz.prototype.serialize=function(){return{version:this.version,args:this.args}};var I2p=function(A,t){this.topic=A;this.dataClass=t};
I2p.prototype.toString=function(){return this.topic};var R$p=_.Ae("ytPubsub2Pubsub2Instance")||new _.Lk;_.Lk.prototype.subscribe=_.Lk.prototype.subscribe;_.Lk.prototype.unsubscribeByKey=_.Lk.prototype.unsubscribeByKey;_.Lk.prototype.publish=_.Lk.prototype.publish;_.Lk.prototype.clear=_.Lk.prototype.clear;_.zm("ytPubsub2Pubsub2Instance",R$p);var Ftb=_.Ae("ytPubsub2Pubsub2SubscribedKeys")||{};_.zm("ytPubsub2Pubsub2SubscribedKeys",Ftb);var jOb=_.Ae("ytPubsub2Pubsub2TopicToKeys")||{};_.zm("ytPubsub2Pubsub2TopicToKeys",jOb);
var xvT=_.Ae("ytPubsub2Pubsub2IsAsync")||{};_.zm("ytPubsub2Pubsub2IsAsync",xvT);_.zm("ytPubsub2Pubsub2SkipSubKey",null);var Ktu=void 0,Hpb=void 0;var fKl=_.cx("max_body_size_to_compress",5E5),XU5=_.cx("min_body_size_to_compress",500),gb=!0,Ghl=0,wb=0,eFT=_.cx("compression_performance_threshold_lr",250),NRx=_.cx("slow_compressions_before_abandon_count",4),sOx=!1,kDl=new Map,qQ5=1,Qgl=!0;_.rS(sJ,zFb);sJ.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 m_f=function(A,t,f){f||(f=0);var X=A.W_;if(typeof t==="string")for(var Q=0;Q<16;Q++)X[Q]=t.charCodeAt(f)<<24|t.charCodeAt(f+1)<<16|t.charCodeAt(f+2)<<8|t.charCodeAt(f+3),f+=4;else for(Q=0;Q<16;Q++)X[Q]=t[f]<<24|t[f+1]<<16|t[f+2]<<8|t[f+3],f+=4;for(t=16;t<80;t++)f=X[t-3]^X[t-8]^X[t-14]^X[t-16],X[t]=(f<<1|f>>>31)&4294967295;t=A.chain_[0];f=A.chain_[1];Q=A.chain_[2];for(var q=A.chain_[3],e=A.chain_[4],G,N,z=0;z<80;z++)z<40?z<20?(G=q^f&(Q^q),N=1518500249):(G=f^Q^q,N=1859775393):z<60?(G=f&Q|q&(f|Q),
N=2400959708):(G=f^Q^q,N=3395469782),G=(t<<5|t>>>27)+G+e+N+X[z]&4294967295,e=q,q=Q,Q=(f<<30|f>>>2)&4294967295,f=t,t=G;A.chain_[0]=A.chain_[0]+t&4294967295;A.chain_[1]=A.chain_[1]+f&4294967295;A.chain_[2]=A.chain_[2]+Q&4294967295;A.chain_[3]=A.chain_[3]+q&4294967295;A.chain_[4]=A.chain_[4]+e&4294967295};
sJ.prototype.update=function(A,t){if(A!=null){t===void 0&&(t=A.length);for(var f=t-this.blockSize,X=0,Q=this.buf_,q=this.inbuf_;X<t;){if(q==0)for(;X<=f;)m_f(this,A,X),X+=this.blockSize;if(typeof A==="string")for(;X<t;){if(Q[q]=A.charCodeAt(X),++q,++X,q==this.blockSize){m_f(this,Q);q=0;break}}else for(;X<t;)if(Q[q]=A[X],++q,++X,q==this.blockSize){m_f(this,Q);q=0;break}}this.inbuf_=q;this.total_+=t}};
sJ.prototype.digest=function(){var A=[],t=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var f=this.blockSize-1;f>=56;f--)this.buf_[f]=t&255,t/=256;m_f(this,this.buf_);for(f=t=0;f<5;f++)for(var X=24;X>=0;X-=8)A[t]=this.chain_[f]>>X&255,++t;return A};var iNu;var IR=function(A){var t=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(T){t.databaseToken=T},
triggerThrottle:function(){t.throttledSend()},
cancelThrottle:function(){t.cancelThrottledSend()},
immediateSend:function(T){return _.l(function(O){return O.yield(t.immediateSend(T),0)})},
requestWithinAgeLimit:function(T,O){return t.requestWithinAgeLimit(T,O)},
retryQueuedRequests:function(){t.retryQueuedRequests()}};
var f;this.throttleTimeout=(f=A.throttleTimeout)!=null?f:100;var X;this.retryMaxAttempts=(X=A.retryMaxAttempts)!=null?X:1;var Q;this.requestAgeLimitMs=(Q=A.requestAgeLimitMs)!=null?Q:2592E6;var q;this.queuedRequestAgeLimitMs=(q=A.queuedRequestAgeLimitMs)!=null?q:12E4;var e;this.retryDelayMs=(e=A.retryDelayMs)!=null?e:5E3;var G;this.databaseToken=(G=A.databaseToken)!=null?G:void 0;this.enableCleaning=!!A.enableCleaning;var N;this.cleaningRate=(N=A.cleaningRate)!=null?N:.1;var z;this.potentialEsfErrorLimit=
(z=A.potentialEsfErrorLimit)!=null?z:10;A.handleError&&(this.handleError=A.handleError);A.handleWarning&&(this.handleWarning=A.handleWarning);A.disableYtIdbTransactions&&(this.disableYtIdbTransactions=A.disableYtIdbTransactions);A.bypassDbTokenDependency&&(this.bypassDbTokenDependency=A.bypassDbTokenDependency);this.getBooleanFlag=A.getBooleanFlag;this.jobManager=A.jobManager;this.logsStore=A.logsStore;this.networkManager=A.networkManager;this.sendFn=A.sendFn;this.onlineEvent=A.onlineEvent;this.offlineEvent=
A.offlineEvent;Fg(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&bZT(this)},bZT=function(A){Fg(A)&&!A.disableYtIdbTransactions&&(A.initialized=!0,A.enableCleaning&&Math.random()<=A.cleaningRate&&A.logsStore.cleanLogsStore(A.databaseToken),A.retryQueuedRequests(),A.networkManager.isNetworkAvailable()&&A.throttledSend(),A.networkManager.listen(A.onlineEvent,A.throttledSend.bind(A)),A.networkManager.listen(A.offlineEvent,A.cancelThrottledSend.bind(A)))};
_.J=IR.prototype;_.J.writeThenSend=function(A,t){var f=this;t=t===void 0?{}:t;if(Fg(this)&&this.initialized){var X={url:A,options:t,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(X,this.databaseToken).then(function(Q){X.id=Q;f.networkManager.isNetworkAvailable()&&f.immediateSend(X)}).catch(function(Q){f.immediateSend(X);
WvE(f,Q)})}else this.sendFn(A,t)};
_.J.sendThenWrite=function(A,t,f){var X=this;t=t===void 0?{}:t;if(Fg(this)&&this.initialized){var Q={url:A,options:t,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Q.skipRetry=f);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Q.skipRetry){if(!Q.skipRetry){var q=t.onError?t.onError:function(){};
t.onError=function(e,G){return _.l(function(N){if(N.nextAddress==1)return N.yield(X.logsStore.set(Q,X.databaseToken).catch(function(z){WvE(X,z)}),2);
q(e,G);_.LO(N)})}}this.sendFn(A,t,Q.skipRetry)}else this.logsStore.set(Q,this.databaseToken).catch(function(e){X.sendFn(A,t,Q.skipRetry);
WvE(X,e)})}else this.sendFn(A,t,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&f)};
_.J.sendAndWrite=function(A,t){var f=this;t=t===void 0?{}:t;if(Fg(this)&&this.initialized){var X={url:A,options:t,timestamp:this.now(),status:"NEW",sendCount:0},Q=!1,q=t.onSuccess?t.onSuccess:function(){};
X.options.onSuccess=function(e,G){X.id!==void 0?f.logsStore.deleteRequest(X.id,f.databaseToken):Q=!0;f.networkManager.networkStatusHint&&f.getBooleanFlag&&f.getBooleanFlag("vss_network_hint")&&f.networkManager.networkStatusHint(!0);q(e,G)};
this.sendFn(X.url,X.options,void 0,!0);this.logsStore.set(X,this.databaseToken).then(function(e){X.id=e;Q&&f.logsStore.deleteRequest(X.id,f.databaseToken)}).catch(function(e){WvE(f,e)})}else this.sendFn(A,t,void 0,!0)};
_.J.throttledSend=function(){var A=this;if(!Fg(this))throw Error("cd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var t;return _.l(function(f){if(f.nextAddress==1)return f.yield(A.logsStore.getMostRecentByStatus("NEW",A.databaseToken),2);if(f.nextAddress!=3)return t=f.yieldResult,t?f.yield(A.immediateSend(t),3):(A.cancelThrottledSend(),f.return());A.intervalJob&&(A.intervalJob=0,A.throttledSend());_.LO(f)})},this.throttleTimeout))};
_.J.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.J.immediateSend=function(A){var t=this,f;return _.l(function(X){switch(X.nextAddress){case 1:if(!Fg(t))throw Error("dd");if(A.id===void 0){X.jumpTo(2);break}return X.yield(t.logsStore.markAsQueued(A.id,t.databaseToken),3);case 3:(f=X.yieldResult)||t.handleWarning(Error("ed"));case 2:if(t.requestWithinAgeLimit(A,t.requestAgeLimitMs)){X.jumpTo(4);break}t.handleWarning(Error("fd"));if(A.id===void 0){X.jumpTo(5);break}return X.yield(t.logsStore.deleteRequest(A.id,t.databaseToken),5);case 5:return X.return();
case 4:A.skipRetry||(A=yRw(t,A));if(!A){X.jumpTo(0);break}if(!A.skipRetry||A.id===void 0){X.jumpTo(8);break}return X.yield(t.logsStore.deleteRequest(A.id,t.databaseToken),8);case 8:t.sendFn(A.url,A.options,!!A.skipRetry),_.LO(X)}})};
var yRw=function(A,t){if(!Fg(A))throw Error("gd");var f=t.options.onError?t.options.onError:function(){};
t.options.onError=function(Q,q){var e,G,N,z;return _.l(function(T){switch(T.nextAddress){case 1:e=Cob(q);(G=hF5(q))&&A.getBooleanFlag&&A.getBooleanFlag("web_enable_error_204")&&A.handleError(Error("hd"),t.url,q);if(!(A.getBooleanFlag&&A.getBooleanFlag("nwl_consider_error_code")&&e||A.getBooleanFlag&&!A.getBooleanFlag("nwl_consider_error_code")&&A.potentialEsfErrorCounter<=A.potentialEsfErrorLimit)){T.jumpTo(2);break}if(!A.networkManager.sendNetworkCheckRequest){T.jumpTo(3);break}return T.yield(A.networkManager.sendNetworkCheckRequest(),
3);case 3:if(A.networkManager.isNetworkAvailable()){T.jumpTo(2);break}f(Q,q);if(!A.getBooleanFlag||!A.getBooleanFlag("nwl_consider_error_code")||((N=t)==null?void 0:N.id)===void 0){T.jumpTo(6);break}return T.yield(A.logsStore.resetRequest(t.id,A.databaseToken,!1),6);case 6:return T.return();case 2:if(A.getBooleanFlag&&A.getBooleanFlag("nwl_consider_error_code")&&!e&&A.potentialEsfErrorCounter>A.potentialEsfErrorLimit)return T.return();A.potentialEsfErrorCounter++;if(((z=t)==null?void 0:z.id)===void 0){T.jumpTo(8);
break}return t.sendCount<A.retryMaxAttempts?T.yield(A.logsStore.resetRequest(t.id,A.databaseToken,!0,G?!1:void 0),12):T.yield(A.logsStore.deleteRequest(t.id,A.databaseToken),8);case 12:A.jobManager.addLowPriorityJob(function(){A.networkManager.isNetworkAvailable()&&A.throttledSend()},A.retryDelayMs);
case 8:f(Q,q),_.LO(T)}})};
var X=t.options.onSuccess?t.options.onSuccess:function(){};
t.options.onSuccess=function(Q,q){var e;return _.l(function(G){if(G.nextAddress==1)return((e=t)==null?void 0:e.id)===void 0?G.jumpTo(2):G.yield(A.logsStore.deleteRequest(t.id,A.databaseToken),2);A.networkManager.networkStatusHint&&A.getBooleanFlag&&A.getBooleanFlag("vss_network_hint")&&A.networkManager.networkStatusHint(!0);X(Q,q);_.LO(G)})};
return t};
IR.prototype.requestWithinAgeLimit=function(A,t){A=A.timestamp;return this.now()-A>=t?!1:!0};
IR.prototype.retryQueuedRequests=function(){var A=this;if(!Fg(this))throw Error("id");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(t){t&&!A.requestWithinAgeLimit(t,A.queuedRequestAgeLimitMs)?A.jobManager.addLowPriorityJob(function(){return _.l(function(f){if(f.nextAddress==1)return t.id===void 0?f.jumpTo(2):f.yield(A.logsStore.resetRequest(t.id,A.databaseToken),2);A.retryQueuedRequests();_.LO(f)})}):A.networkManager.isNetworkAvailable()&&A.throttledSend()})};
var WvE=function(A,t){A.writeError&&!A.networkManager.isNetworkAvailable()?A.writeError(t):A.handleError(t)},Fg=function(A){return!!A.databaseToken||A.bypassDbTokenDependency};var RFx;var EEp={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,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,producerMediaServicesResetDetails:522,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,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532};var vIk={},DLz=Tm("ServiceWorkerLogsDatabase",{objectStores:(vIk.SWHealthLog={addedAtVersion:1},vIk),shared:!0,upgrade:function(A,t){t(1)&&tO(AO(A,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var oFp={},ZNT=0;var HNp;var xd=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},JO=function(){if(!xd.instance){var A=_.Ae("yt.networkRequestMonitor.instance")||new xd;
_.zm("yt.networkRequestMonitor.instance",A);xd.instance=A}return xd.instance};
xd.prototype.requestComplete=function(A,t){t&&(this.anyRequestHasSucceeded=!0);A=this.removeParams(A);this.requestMap.get(A)||this.requestMap.set(A,t)};
xd.prototype.isEndpointCFR=function(A){A=this.removeParams(A);return(A=this.requestMap.get(A))?!1:A===!1&&this.anyRequestHasSucceeded?!0:null};
xd.prototype.removeParams=function(A){return A.split("?")[0]};
xd.prototype.removeParams=xd.prototype.removeParams;xd.prototype.isEndpointCFR=xd.prototype.isEndpointCFR;xd.prototype.requestComplete=xd.prototype.requestComplete;xd.getInstance=JO;var jh=function(A){_.p_.call(this);var t=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=A!=null?A:{addLowPriorityJob:function(Q,q){return setTimeout(Q,q)},
cancelJob:function(Q){clearTimeout(Q)}};
var f,X;this.isOnline=(X=(f=window.navigator)==null?void 0:f.onLine)!=null?X:!0;this.onNavigatorChange=function(){return _.l(function(Q){return Q.yield(Lv7(t),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||pEp(this)};
_.R(jh,_.p_);jh.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete jh.instance};
jh.prototype.isNetworkAvailable=function(){return this.isOnline};
var pEp=function(A){A.pollingJob=A.jobManager.addLowPriorityJob(function(){var t;return _.l(function(f){if(f.nextAddress==1)return A.isOnline?((t=window.navigator)==null?0:t.onLine)?f.jumpTo(3):f.yield(Lv7(A),3):f.yield(Lv7(A),3);pEp(A);_.LO(f)})},3E4)},Lv7=function(A,t){return A.networkRequestPromise?A.networkRequestPromise:A.networkRequestPromise=new Promise(function(f){var X,Q,q,e;
return _.l(function(G){switch(G.nextAddress){case 1:return X=window.AbortController?new window.AbortController:void 0,q=(Q=X)==null?void 0:Q.signal,e=!1,_.ht(G,2,3),X&&(A.abortTimeoutKey=A.jobManager.addLowPriorityJob(function(){X.abort()},t||2E4)),G.yield(fetch("/generate_204",{method:"HEAD",
signal:q}),5);case 5:e=!0;case 3:_.mz(G);A.networkRequestPromise=void 0;A.abortTimeoutKey&&(A.jobManager.cancelJob(A.abortTimeoutKey),A.abortTimeoutKey=0);e!==A.isOnline&&(A.isOnline=e,A.isOnline?A.dispatchEvent("networkstatus-online"):A.dispatchEvent("networkstatus-offline"));f(e);_.yP(G,0);break;case 2:_.vC(G),e=!1,G.jumpTo(3)}})})};var Yd=function(){_.p_.call(this);var A=this;this.shouldFlushErrors=!1;jh.instance||(jh.instance=new jh(_.a6));this.sharedNetworkStatusManager=jh.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(A.shouldFlushErrors&&_.M("offline_error_handling")){var t=aKT().get("errors",!0);if(t){for(var f in t)if(t[f]){var X=new _.xj(f,"sent via offline_errors");X.name=t[f].name;X.stack=t[f].stack;X.level=t[f].level;_.g9(X)}aKT().set("errors",{},2592E3,!0)}}})};
_.R(Yd,_.p_);var EIT=function(){if(!Yd.instance){var A=_.Ae("yt.networkStatusManager.instance")||new Yd;_.zm("yt.networkStatusManager.instance",A);Yd.instance=A}return Yd.instance};
_.J=Yd.prototype;_.J.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.J.networkStatusHint=function(A){this.sharedNetworkStatusManager.isOnline=A};
_.J.getWindowStatus=function(){var A=window.navigator.onLine;return A===void 0?!0:A};
_.J.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.J.listen=function(A,t){return this.sharedNetworkStatusManager.listen(A,t)};
_.J.sendNetworkCheckRequest=function(A){A=Lv7(this.sharedNetworkStatusManager,A);A.then(function(t){_.M("use_cfr_monitor")&&JO().requestComplete("generate_204",t)});
return A};
Yd.prototype.sendNetworkCheckRequest=Yd.prototype.sendNetworkCheckRequest;Yd.prototype.listen=Yd.prototype.listen;Yd.prototype.enableErrorFlushing=Yd.prototype.enableErrorFlushing;Yd.prototype.getWindowStatus=Yd.prototype.getWindowStatus;Yd.prototype.networkStatusHint=Yd.prototype.networkStatusHint;Yd.prototype.isNetworkAvailable=Yd.prototype.isNetworkAvailable;Yd.getInstance=EIT;_.qA=function(A){A=A===void 0?{}:A;_.p_.call(this);var t=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=EIT();var f=_.Ae("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);f&&(A.rateLimit?(this.rateLimit=A.rateLimit,f("networkstatus-online",function(){nIi(t,"publicytnetworkstatus-online")}),f("networkstatus-offline",function(){nIi(t,"publicytnetworkstatus-offline")})):(f("networkstatus-online",function(){t.dispatchEvent("publicytnetworkstatus-online")}),f("networkstatus-offline",
function(){t.dispatchEvent("publicytnetworkstatus-offline")})))};
_.R(_.qA,_.p_);_.qA.prototype.isNetworkAvailable=function(){var A=_.Ae("yt.networkStatusManager.instance.isNetworkAvailable");return A?A.bind(this.nsmInstance)():!0};
_.qA.prototype.networkStatusHint=function(A){var t=_.Ae("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);t&&t(A)};
_.qA.prototype.sendNetworkCheckRequest=function(A){var t=this,f;return _.l(function(X){f=_.Ae("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(t.nsmInstance);return _.M("skip_network_check_if_cfr")&&JO().isEndpointCFR("generate_204")?X.return(new Promise(function(Q){var q;t.networkStatusHint(((q=window.navigator)==null?void 0:q.onLine)||!0);Q(t.isNetworkAvailable())})):f?X.return(f(A)):X.return(!0)})};
var nIi=function(A,t){A.rateLimit?A.lastJobTime?(_.a6.cancelJob(A.schedulerJob),A.schedulerJob=_.a6.addLowPriorityJob(function(){A.lastPublicSignalSent!==t&&(A.dispatchEvent(t),A.lastPublicSignalSent=t,A.lastJobTime=(0,_.OJ)())},A.rateLimit-((0,_.OJ)()-A.lastJobTime))):(A.dispatchEvent(t),A.lastPublicSignalSent=t,A.lastJobTime=(0,_.OJ)()):A.dispatchEvent(t)};var kh5,VM=function(){IR.call(this,{logsStore:{cleanLogsStore:EFz,deleteRequest:pU5,getMostRecentByStatus:yYx,markAsQueued:vFx,resetRequest:LI0,set:WIx},networkManager:_.rYs(),handleError:function(A,t,f){var X,Q=f==null?void 0:(X=f.error)==null?void 0:X.code;if(Q===400||Q===415){var q;A=new _.xj(A.message,t,f==null?void 0:(q=f.error)==null?void 0:q.code);_.te(A,void 0,void 0,void 0,!0)}else _.g9(A)},
handleWarning:_.te,sendFn:wUx,now:_.OJ,writeError:KIx,jobManager:_.m_(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.cx("potential_esf_error_limit",10),getBooleanFlag:_.M,disableYtIdbTransactions:!(_.Ij()&&_.A7u())});this.initializationPromise=new _.Qc;_.M("networkless_immediately_drop_all_requests")&&nF5();h$5("LogsDatabaseV2")};
_.R(VM,IR);_.FvK=function(){var A=_.Ae("yt.networklessRequestController.instance");A||(A=new VM,_.zm("yt.networklessRequestController.instance",A),_.M("networkless_logging")&&_.PD().then(function(t){A.databaseToken=t;bZT(A);A.initializationPromise.resolve();A.enableCleaning&&Math.random()<=A.cleaningRate&&A.databaseToken&&IKq(A.databaseToken);_.M("networkless_immediately_drop_sw_health_store")&&D_T(A)}));
return A};
VM.prototype.writeThenSend=function(A,t){t||(t={});t=sgx(A,t);_.Ij()||(this.initialized=!1);IR.prototype.writeThenSend.call(this,A,t)};
VM.prototype.sendThenWrite=function(A,t,f){t||(t={});t=sgx(A,t);_.Ij()||(this.initialized=!1);IR.prototype.sendThenWrite.call(this,A,t,f)};
VM.prototype.sendAndWrite=function(A,t){t||(t={});t=sgx(A,t);_.Ij()||(this.initialized=!1);IR.prototype.sendAndWrite.call(this,A,t)};
VM.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var D_T=function(A){var t;_.l(function(f){if(!A.databaseToken)throw t=ri("clearSWHealthLogsDb"),t;return f.return(xLg(A.databaseToken).catch(function(X){A.handleError(X)}))})};_.fYb=!1;_.tr0=_.Xb.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.fYb};_.zm("ytNetworklessLoggingInitializationOptions",_.tr0);var dL=function(A){var t=this;this.config_=null;A?this.config_=A:EIx()&&(this.config_=_.BD());_.jY(_.a6,function(){Mv5(t)},5E3)};
dL.prototype.isReady=function(){!this.config_&&EIx()&&(this.config_=_.BD());return!!this.config_};
var BRl=function(A,t,f,X){!_.ah("VISITOR_DATA")&&t!=="visitor_id"&&Math.random()<.01&&_.te(new _.xj("Missing VISITOR_DATA when sending innertube request.",t,f,X));if(!A.isReady()){var Q=new _.xj("innertube xhrclient not ready",t,f,X);_.g9(Q);throw Q;}var q={headers:X.headers||{},method:"POST",postParams:f,postBody:X.postBody,postBodyFormat:X.postBodyFormat||"JSON",onTimeout:function(){X.onTimeout()},
onFetchTimeout:X.onTimeout,onSuccess:function(O,c){if(X.onSuccess)X.onSuccess(c)},
onFetchSuccess:function(O){if(X.onSuccess)X.onSuccess(O)},
onProgress:function(O){if(X.onProgress)X.onProgress(O)},
onError:function(O,c){if(X.onError)X.onError(c)},
onFetchError:function(O){if(X.onError)X.onError(O)},
timeout:X.timeout,withCredentials:!0,compress:X.compress};q.headers["Content-Type"]||(q.headers["Content-Type"]="application/json");var e="";(Q=A.config_.innertubeHostOverride)&&(e=Q);var G=A.config_.innertubeUseThirdPartyAuth||!1,N=_.Kvu(G,e,X);Object.assign(q.headers,N);q.headers.Authorization&&!e&&G&&(q.headers["x-origin"]=window.location.origin);var z=_.Je(e+("/youtubei/"+A.config_.innertubeApiVersion+"/"+t),{alt:"json"}),T=function(O){O=O===void 0?!1:O;var c;if(X.retry&&e!="www.youtube-nocookie.com"&&
(O||_.M("skip_ls_gel_retry")||q.headers["Content-Type"]!=="application/json"||(c=ONT(t,f,N,G)),c)){var B=q.onSuccess,h=q.onFetchSuccess;q.onSuccess=function(E,D){cYl(c);B(E,D)};
f.onFetchSuccess=function(E,D){cYl(c);h(E,D)}}try{if(O&&X.retry&&!X.networklessOptions.bypassNetworkless)q.method="POST",X.networklessOptions.writeThenSend?_.FvK().writeThenSend(z,q):_.FvK().sendAndWrite(z,q);
else if(X.compress){var W=!X.networklessOptions.writeThenSend;if(q.postBody){var L=q.postBody;typeof L!=="string"&&(L=JSON.stringify(q.postBody));ULq(z,L,q,_.y$,W)}else ULq(z,JSON.stringify(q.postParams),q,T0T,W)}else T0T(z,q)}catch(E){if(E.name==="InvalidAccessError")c&&(cYl(c),c=0),_.te(Error("jd"));else throw E;}c&&_.jY(_.a6,function(){Mv5(A)},5E3)};
_.Xn0()?P$0().then(function(O){T(O)}):T(!1)};var Rhx=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Rhx,_.e3);var Itb=0,qX5=_.q1?"webkit":_.Qe?"moz":_.XG?"ms":$lC?"o":"";_.zm("ytDomDomGetNextId",_.Ae("ytDomDomGetNextId")||function(){return++Itb});var x_p={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},uX=function(A){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(A=
A||window.event){this.event=A;for(var t in A)t in x_p||(this[t]=A[t]);this.scale=A.scale;this.rotation=A.rotation;var f=A.target||A.srcElement;f&&f.nodeType==3&&(f=f.parentNode);this.target=f;var X=A.relatedTarget;if(X)try{X=X.nodeName?X:null}catch(Q){X=null}else this.type=="mouseover"?X=A.fromElement:this.type=="mouseout"&&(X=A.toElement);this.relatedTarget=X;this.clientX=A.clientX!=void 0?A.clientX:A.pageX;this.clientY=A.clientY!=void 0?A.clientY:A.pageY;this.keyCode=A.keyCode?A.keyCode:A.which;
this.charCode=A.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=A.altKey;this.ctrlKey=A.ctrlKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.pageX_=A.pageX;this.pageY_=A.pageY}}catch(Q){}},jCp=function(A){if(document.body&&document.documentElement){var t=document.body.scrollTop+document.documentElement.scrollTop;
A.pageX_=A.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);A.pageY_=A.clientY+t}};
uX.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
uX.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
uX.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var NA=_.Xb.ytEventsEventsListeners||{};_.zm("ytEventsEventsListeners",NA);var Ntx=_.Xb.ytEventsEventsCounter||{count:0};_.zm("ytEventsEventsCounter",Ntx);var uHx=_.WI(function(){var A=!1;try{var t=Object.defineProperty({},"capture",{get:function(){A=!0}});
window.addEventListener("test",null,t)}catch(f){}return A});_.rS(PQ,_.DA);PQ.prototype.onMouseMove_=function(A){A.pageX_===void 0&&jCp(A);var t=A.pageX_;A.pageY_===void 0&&jCp(A);this.position_=new _.ok(t,A.pageY_)};
PQ.prototype.checkPosition_=function(){if(this.position_){var A=(0,_.OJ)();if(this.previousTime_!=0){var t=this.previousPosition_,f=this.position_,X=t.x-f.x;t=t.y-f.y;X=Math.sqrt(X*X+t*t)/(A-this.previousTime_);this.cycles_[this.index_]=Math.abs((X-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(f=t=0;f<4;f++)t+=this.cycles_[f]||0;t>=3&&this.callback_();this.previousVelocity_=X}this.previousTime_=A;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
PQ.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.zpb(this.mouseListenerKey_)};var c7s={};var Wf5=new _.UA("rawColdConfigGroup");var b1z=new _.UA("rawHotConfigGroup");var YpT=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(YpT,_.e3);var hhz=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(hhz,_.e3);var xB=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A,500)};
_.R(xB,_.e3);xB.prototype.getPayloadCase=function(){return _.cz(this,VRC)};
xB.prototype.getContext=function(){return _.Mq(this,hhz,33)};
var VRC=[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,522,523,524,525,526,527,528,529,530,531];var Be5=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Be5,_.e3);var gAl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(gAl,_.e3);gAl.prototype.setVideoId=function(A){return vQ(this,1,wnq,BA(A))};
gAl.prototype.getPlaylistId=function(){return _.Wf(this,D3(this,wnq,2))};
var wnq=[1,2];var zng=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(zng,_.e3);zng.prototype.getContext=function(){return _.Mq(this,L4,1)};
zng.prototype.getTier=function(){return _.ye(this,7)};var ZZE,cQ,BQ;ZZE=_.Xb.ytPubsubPubsubInstance||new _.Lk;cQ=_.Xb.ytPubsubPubsubSubscribedKeys||{};BQ=_.Xb.ytPubsubPubsubTopicToKeys||{};_.Btl=_.Xb.ytPubsubPubsubIsSynchronous||{};_.Lk.prototype.subscribe=_.Lk.prototype.subscribe;_.Lk.prototype.unsubscribeByKey=_.Lk.prototype.unsubscribeByKey;_.Lk.prototype.publish=_.Lk.prototype.publish;_.Lk.prototype.clear=_.Lk.prototype.clear;_.zm("ytPubsubPubsubInstance",ZZE);_.zm("ytPubsubPubsubTopicToKeys",BQ);_.zm("ytPubsubPubsubIsSynchronous",_.Btl);
_.zm("ytPubsubPubsubSubscribedKeys",cQ);var C4=window;var Zz=_.M("web_enable_lifecycle_monitoring")&&mx5()!==0,oIK=_.M("web_enable_lifecycle_monitoring");var d_7=function(A){var t=this;var f=f===void 0?0:f;var X=X===void 0?_.m_():X;this.JSC$10977_defaultPriority=f;this.scheduler=X;this.completedResolver=new _.Qc;this.scheduledPayloads=A;for(A={i$jscomp$492:0};A.i$jscomp$492<this.scheduledPayloads.length;A={payload$jscomp$20:void 0,i$jscomp$492:A.i$jscomp$492},A.i$jscomp$492++)A.payload$jscomp$20=this.scheduledPayloads[A.i$jscomp$492],f=function(Q){return function(){Q.payload$jscomp$20.job();t.scheduledPayloads[Q.i$jscomp$492].processed=!0;t.scheduledPayloads.every(function(q){return q.processed===
!0})&&t.completedResolver.resolve()}}(A),X=this.getPriority(A.payload$jscomp$20),X=this.scheduler.addJob(f,X),this.scheduledPayloads[A.i$jscomp$492]=Object.assign({},A.payload$jscomp$20,{job:f,
jobId:X})};
d_7.prototype.flushJobs=function(){var A=this,t=Array.from(this.scheduledPayloads.keys()).sort(function(X,Q){return A.getPriority(A.scheduledPayloads[Q])-A.getPriority(A.scheduledPayloads[X])});
t=_.U(t);for(var f=t.next();!f.done;f=t.next())f=this.scheduledPayloads[f.value],f.jobId===void 0||f.processed||(this.scheduler.cancelJob(f.jobId),this.scheduler.addJob(f.job,10))};
d_7.prototype.cancel=function(){for(var A=_.U(this.scheduledPayloads),t=A.next();!t.done;t=A.next())t=t.value,t.jobId===void 0||t.processed||this.scheduler.cancelJob(t.jobId),t.processed=!0;this.completedResolver.resolve()};
d_7.prototype.getPriority=function(A){var t;return(t=A.priority)!=null?t:this.JSC$10977_defaultPriority};var oR=function(A){this.state=A;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Zz&&bIT(this.state)};
oR.prototype.install=function(A){this.plugins.push(A);return this};
oR.prototype.uninstall=function(){var A=this;_.Hu.apply(0,arguments).forEach(function(t){t=A.plugins.indexOf(t);t>-1&&A.plugins.splice(t,1)})};
oR.prototype.transition=function(A,t){var f=this;Zz&&WGb(this.state);var X=this.transitions.find(function(q){return Array.isArray(q.from)?q.from.find(function(e){return e===f.state&&q.to===A}):q.from===f.state&&q.to===A});
if(X){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);SpC(this,A,t);this.state=A;Zz&&bIT(this.state);X=X.action.bind(this);var Q=this.plugins.filter(function(q){return q[A]}).map(function(q){return q[A]});
X($_7(this,Q),t)}else throw Error("kd`"+this.state+"`"+A);};
var $_7=function(A,t){var f=t.filter(function(Q){return HZp(A,Q)===10}),X=t.filter(function(Q){return HZp(A,Q)!==10});
return A.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Q=_.Hu.apply(0,arguments);return _.l(function(q){if(q.nextAddress==1)return q.yield(A.runImmediateJobsAsync.apply(A,[f].concat(_.YV(Q))),2);A.setJobSetWithScheduledJobs.apply(A,[X].concat(_.YV(Q)));_.LO(q)})}:function(){var Q=_.Hu.apply(0,arguments);
A.runImmediateJobsSync.apply(A,[f].concat(_.YV(Q)));A.setJobSetWithScheduledJobs.apply(A,[X].concat(_.YV(Q)))}};
oR.prototype.runImmediateJobsSync=function(A){var t=_.Hu.apply(1,arguments);_.m_();for(var f=_.U(A),X=f.next(),Q={};!X.done;Q={lifecycle$jscomp$2:void 0},X=f.next())Q.lifecycle$jscomp$2=X.value,wt(function(q){return function(){atS(q.lifecycle$jscomp$2.name);vA5(function(){return q.lifecycle$jscomp$2.callback.apply(q.lifecycle$jscomp$2,_.YV(t))});
d8(q.lifecycle$jscomp$2.name)}}(Q))};
oR.prototype.runImmediateJobsAsync=function(A){var t=_.Hu.apply(1,arguments),f,X,Q,q;return _.l(function(e){e.nextAddress==1&&(_.m_(),f=_.U(A),X=f.next(),Q={});if(e.nextAddress!=3){if(X.done)return e.jumpTo(0);Q.lifecycle$jscomp$3=X.value;Q.asyncJobCompletion=void 0;q=function(G){return function(){atS(G.lifecycle$jscomp$3.name);var N=vA5(function(){return G.lifecycle$jscomp$3.callback.apply(G.lifecycle$jscomp$3,_.YV(t))});
h78(N)?G.asyncJobCompletion=_.M("web_lifecycle_error_handling_killswitch")?N.then(function(){d8(G.lifecycle$jscomp$3.name)}):N.then(function(){d8(G.lifecycle$jscomp$3.name)},function(z){y7b(z);
d8(G.lifecycle$jscomp$3.name)}):d8(G.lifecycle$jscomp$3.name)}}(Q);
wt(q);return Q.asyncJobCompletion?e.yield(Q.asyncJobCompletion,3):e.jumpTo(3)}Q={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};X=f.next();return e.jumpTo(2)})};
oR.prototype.setJobSetWithScheduledJobs=function(A){var t=_.Hu.apply(1,arguments),f=this,X=A.map(function(Q){return{job:function(){atS(Q.name);vA5(function(){return Q.callback.apply(Q,_.YV(t))});
d8(Q.name)},
priority:HZp(f,Q)}});
X.length&&(this.jobSet=new d_7(X))};
var HZp=function(A,t){var f,X;return(X=(f=A.overridePriority)!=null?f:t.priority)!=null?X:0},atS=function(A){Zz&&A&&bIT(A)},d8=function(A){Zz&&A&&WGb(A)},SpC=function(A,t,f){oIK&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+A.constructor.name+"] '"+A.state+"' to '"+t+"'"),console.log("with message: ",f),console.groupEnd())};
_.PV.Object.defineProperties(oR.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var KvK=function(A){oR.call(this,A===void 0?"none":A);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(){}}]},gI8;
_.R(KvK,oR);KvK.prototype.runApplicationNavigationBegin=function(A,t){var f=this;this.navigationTimer=_.jY(_.a6,function(){f.currentState==="application_navigating"&&f.transition("none")},5E3);
A(t==null?void 0:t.event)};
KvK.prototype.runApplicationNavigationEnd=function(A,t){this.navigationTimer&&(_.a6.cancelJob(this.navigationTimer),this.navigationTimer=null);A(t==null?void 0:t.event)};
_.mIz=function(){gI8||(gI8=new KvK);return gI8};var Rnb=[];_.zm("yt.logging.transport.getScrapedGelPayloads",function(){return Rnb});var hO=function(){var A=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return A.totalEntries}}};
hO.prototype.storePayload=function(A,t){A=LGx(A);this.store[A]?this.store[A].push(t):(this.memoizedKeySequences={},this.store[A]=[t]);this.totalEntries++;_.M("more_accurate_gel_parser")&&(t=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(t));return A};
hO.prototype.smartExtractMatchingEntries=function(A){if(!A.keys.length)return[];for(var t=wE7(this,A.keys.splice(0,1)[0]),f=[],X=0;X<t.length;X++)this.store[t[X]]&&A.sizeLimit&&(this.store[t[X]].length<=A.sizeLimit?(f.push.apply(f,_.YV(this.store[t[X]])),delete this.store[t[X]]):f.push.apply(f,_.YV(this.store[t[X]].splice(0,A.sizeLimit))));this.totalEntries-=f.length;(A==null?0:A.sizeLimit)&&f.length<(A==null?void 0:A.sizeLimit)&&(A.sizeLimit-=f.length,f.push.apply(f,_.YV(this.smartExtractMatchingEntries(A))));
return f};
hO.prototype.extractMatchingEntries=function(A){A=wE7(this,A);for(var t=[],f=0;f<A.length;f++)this.store[A[f]]&&(t.push.apply(t,_.YV(this.store[A[f]])),delete this.store[A[f]]);this.totalEntries-=t.length;return t};
hO.prototype.getSequenceCount=function(A){A=wE7(this,A);for(var t=0,f=0;f<A.length;f++){var X=void 0;t+=((X=this.store[A[f]])==null?void 0:X.length)||0}return t};
var wE7=function(A,t){var f=LGx(t);if(A.memoizedKeySequences[f])return A.memoizedKeySequences[f];var X=Object.keys(A.store)||[];if(X.length<=1&&LGx(t)===X[0])return X;for(var Q=[],q=0;q<X.length;q++){var e=X[q].split("/");if(sCp(t.auth,e[0])){var G=t.isJspb;sCp(G===void 0?"undefined":G?"true":"false",e[1])&&sCp(t.cttAuthInfo,e[2])&&(G=t.tier,G=G===void 0?"undefined":JSON.stringify(G),sCp(G,e[3])&&Q.push(X[q]))}}return A.memoizedKeySequences[f]=Q},sCp=function(A,t){return A===void 0||A==="undefined"?
!0:A===t};
hO.prototype.getSequenceCount=hO.prototype.getSequenceCount;hO.prototype.extractMatchingEntries=hO.prototype.extractMatchingEntries;hO.prototype.smartExtractMatchingEntries=hO.prototype.smartExtractMatchingEntries;hO.prototype.storePayload=hO.prototype.storePayload;var q7z,XOz,Jox,WQ,k$k,pOl,Lfu,fn5,tlx,SXx,QMT,Cml,kVb;q7z=_.cx("initial_gel_batch_timeout",2E3);XOz=_.cx("gel_queue_timeout_max_ms",6E4);Jox=_.cx("gel_min_batch_size",5);WQ=void 0;k$k=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
pOl=new k$k;Lfu=new k$k;fn5=new k$k;tlx=new k$k;QMT=!0;Cml=1;_.Mlb=new Map;kVb=_.Xb.ytLoggingTransportTokensToCttTargetIds_||{};_.zm("ytLoggingTransportTokensToCttTargetIds_",kVb);var s8s=_.Xb.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.zm("ytLoggingTransportTokensToJspbCttTargetIds_",s8s);var bX={};var Z3=_.Xb.ytLoggingGelSequenceIdObj_||{};_.zm("ytLoggingGelSequenceIdObj_",Z3);var DIx=[];var H10=new Set,Y7l=0,gEx=0,Kfx=0,Z15=[],VlT=[],wOp=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var GaT=function(){};
GaT.prototype.getUrl=function(A,t){t=t===void 0?!1:t;return A.hasOwnProperty("shareEndpoint")?null:_.AEl(A,null,t)};
var hdx=function(A,t,f){A={endpoint:t,actions:[]};f=(f.path?f.path[0]:f.target).icon||"";t=f.indexOf(":");t>0&&(f=f.substr(t+1));f&&A.actions.push(f);return A};var JEz=/Command$/,qnb=/Endpoint$/,fBT=new Map;var rRf,ALp;rRf=1;_.XA=function(){this.actionRoutingMap=new Map};
_.XA.prototype.triggerAction=function(A){var t=new t4x(A,!1,_.Hu.apply(1,arguments));this.handleAction(t);return t.returnValue};
_.XA.prototype.triggerOptionalAction=function(A){var t=new t4x(A,!0,_.Hu.apply(1,arguments));this.handleAction(t);return t.returnValue};
_.Sh=function(A,t,f){t.forEach(function(X){var Q=Qvb(X);Q&&A.triggerOptionalAction(Q,X,f,void 0)})};
_.XA.prototype.handleAction=function(A){var t=this.actionRoutingMap.get(A.actionName);t&&ALp(A,t);A.optionalAction||A.returnValue.length!==0||(A=new _.xj("Unhandled action",A.actionName),_.te(A))};
ALp=function(A,t){t.forEach(function(f){var X=null;f?X=f.apply(null,A.args):(f=Error("ld"),f.params=A.actionName,_.g9(f));A.returnValue.push(X)})};
_.J4=function(A,t,f){f||(f=rRf++);for(var X=_.U(Object.keys(t)),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var q=A.actionRoutingMap.get(Q);q||(q=new Map,A.actionRoutingMap.set(Q,q));A.registerActionHandler(f,Q,t[Q],q)}return f};
_.XA.prototype.registerActionHandler=function(A,t,f,X){X.set(A,_.r9(f))};
_.UI=function(A,t,f){t=_.U(Object.keys(t));for(var X=t.next();!X.done;X=t.next())(X=A.actionRoutingMap.get(X.value))&&X.delete(f)};
_.su(_.XA);var ul0=function(A,t){var f=_.XA.getInstance();_.oh(function(){var X={},Q=_.J4(f,(X[A]=t,X));_.dD(function(){var q={};_.UI(f,(q[A]="",q),Q)})})};var WNT=Symbol("nd");OPq=sWz;var LLq=new Set(["For","If","Match","Watch"]),tIS={},f2C=(tIS[sH.default]=function(){return lfq},tIS.style=function(){return lfq},tIS),Xif;
for(Xif in f2C)N4.attributes[Xif]=f2C[Xif](N4.attributes[Xif]);var id=new _.eh("VISIBILITY_OBSERVER");var VLx={retrieve:function(A){return this.id.\u0275prov.token===A.\u0275prov.token?this.contextValue:this?_.eG(this,this.id):cqu}};var A35=function(A,t,f){if(A!==OWg)return!1;A=Rqq(document.createElement("div"),function(){var X=ik(!1);try{f[0]()}finally{ik(X)}});
A=Array.from(A.childNodes);A.length===1&&(A=A[0]);return A};var QOK=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(A){}var qFb=typeof WeakRef==="function";var JLT=function(A){this.value=A};
JLT.prototype.deref=function(){return this.value};
var Uv8=qFb?WeakRef:JLT,e9S=function(A){this.newKeyHandler=A;this.map=new WeakMap};
e9S.prototype.add=function(A,t){this.map.has(A)||(this.newKeyHandler(A),this.map.set(A,[]));this.map.get(A).push(new Uv8(t))};
e9S.prototype.get=function(A){var t=this;return function X(){var Q,q,e,G,N,z,T,O,c,B,h;return _.Ju(X,function(W){switch(W.nextAddress){case 1:_.WC(W,2);Q=t.map.get(A);if(!Q)return W.return();q=0;e=_.U(Q);G=e.next();case 4:if(G.done){W.jumpTo(6);break}N=G.value;z=N.deref();if(!z){W.jumpTo(5);break}q++;T=_.Uu;return W.yield(z,8);case 8:T(W.yieldResult);case 5:G=e.next();W.jumpTo(4);break;case 6:if(2*q<Q.length){O=0;c=_.U(Q);for(B=c.next();!B.done;B=c.next())h=B.value,h.deref()&&(Q[O++]=h);Q.length=
O}case 2:_.mz(W),_.yP(W,0)}})}()};var GDk=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},aB5=new e9S(function(A){A.addEventListener("abort",gu0,{once:!0})}),HWg=new WeakMap,l2C=function(A){A=A===void 0?$d:A;
this.signal=new A};
l2C.prototype.abort=function(A){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=A,A=new Event("abort"),this.signal.dispatchEvent(A))};
var $d=function(){this.target=GDk();this.aborted=!1;this.onabort=null};
$d.prototype.throwIfAborted=function(){$tx.call(this)};
$d.prototype.addEventListener=function(A,t,f){this.target.addEventListener(A,t,f)};
$d.prototype.removeEventListener=function(A,t,f){this.target.removeEventListener(A,t,f)};
$d.prototype.dispatchEvent=function(A){if(this.onabort&&A.type==="abort")this.onabort(A);return this.target.dispatchEvent(A)};
$d.abort=Sn5;$d.timeout=w15;$d.any=KLp;var dtx=QOK?AbortController:l2C,H0=QOK?AbortSignal:$d;typeof H0.abort!=="function"&&(H0.abort=Sn5);typeof H0.prototype.throwIfAborted!=="function"&&(H0.prototype.throwIfAborted=$tx);typeof H0.any!=="function"&&(H0.any=KLp);typeof H0.timeout!=="function"&&(H0.timeout=w15);var c9=null,kab=new Map;var NHp=function(A){A=A.clone();p9K(A);LL(A,"dg",null);LL(A,"d","0");WEb(A,null);y48(A,null);return A},ucp=!0,z9p=function(A,t,f){var X=f===void 0?{}:f;
f=X.cssRowKey===void 0?void 0:X.cssRowKey;var Q=X.combinedSignature===void 0?void 0:X.combinedSignature;var q=X.extraEdges===void 0?void 0:X.extraEdges;X=X.callback===void 0?void 0:X.callback;LL(A,"m",t.join(","));q&&LEE(A,q);f&&(LL(A,"ck",f),Q?LL(A,"rs",Q):ucp&&(ucp=!1));if(X){if(X!=null&&!D9T.test(X))throw Error("Xa`"+X);LL(A,"cb",X)}A=A.toString();_.ql(A,"/")&&(A=eLp(document.location.href)+A);return _.pb(A)};var THw=function(A){return PYi(A).then(function(t){return JSON.parse(t.responseText)})},PYi=function(A){var t={},f=t.xmlHttpFactory?t.xmlHttpFactory.createInstance():Kh8.createInstance();
return(new _.yy(function(X,Q){var q;try{f.open("GET",A,!0)}catch(N){Q(new aR("Error opening XHR: "+N.message,A,f))}f.onreadystatechange=function(){if(f.readyState==4){_.Xb.clearTimeout(q);var N;!(N=akE(f.status))&&(N=f.status===0)&&(N=Ucf(A),N=!(N=="http"||N=="https"||N==""));N?X(f):Q(new ipE(f.status,A,f))}};
f.onerror=function(){Q(new aR("Network error",A,f))};
if(t.headers)for(var e in t.headers){var G=t.headers[e];G!=null&&f.setRequestHeader(e,G)}t.withCredentials&&(f.withCredentials=t.withCredentials);t.responseType&&(f.responseType=t.responseType);t.mimeType&&f.overrideMimeType(t.mimeType);t.timeoutMs>0&&(q=_.Xb.setTimeout(function(){f.onreadystatechange=function(){};
f.abort();Q(new Opb(A,f))},t.timeoutMs));
try{f.send(null)}catch(N){f.onreadystatechange=function(){},_.Xb.clearTimeout(q),Q(new aR("Error sending XHR: "+N.message,A,f))}})).thenCatch(function(X){X instanceof _.Ej&&f.abort();
throw X;})},aR=function(A,t,f){_.Ab.call(this,A+", url="+t);
this.url=t;this.xhr=f};
_.rS(aR,_.Ab);aR.prototype.name="XhrError";var ipE=function(A,t,f){aR.call(this,"Request Failed, status="+A,t,f);this.status=A};
_.rS(ipE,aR);ipE.prototype.name="XhrHttpError";var Opb=function(A,t){aR.call(this,"Request timed out",A,t)};
_.rS(Opb,aR);Opb.prototype.name="XhrTimeoutError";wS=wS||{};var Kr=function(){_.DA.call(this)};
_.rS(Kr,_.DA);Kr.prototype.initialize=function(){};var cLb=function(A,t){this.fn_=A;this.handler_=t};
cLb.prototype.execute=function(A){this.fn_&&(this.fn_.call(this.handler_||null,A),this.fn_=this.handler_=null)};
cLb.prototype.abort=function(){this.handler_=this.fn_=null};var g8=function(A,t){_.DA.call(this);this.deps_=A;this.JSC$11132_id_=t;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.rS(g8,_.DA);g8.prototype.moduleConstructor_=Kr;g8.prototype.module_=null;g8.prototype.getId=function(){return this.JSC$11132_id_};
g8.prototype.registerCallback=function(A,t){return w8(this.onloadCallbacks_,A,t)};
var BHp=function(A,t){w8(A.onErrorCallbacks_,t)},w8=function(A,t,f){t=new cLb(t,f);
A.push(t);return t};
g8.prototype.isLoaded=function(){return!!this.module_};
g8.prototype.onLoad=function(A){var t=new this.moduleConstructor_;t.initialize(A());this.module_=t;t=(t=MIK(this.earlyOnloadCallbacks_,A()))||MIK(this.onloadCallbacks_,A());t||(this.onErrorCallbacks_.length=0);return t};
g8.prototype.onError=function(A){(A=MIK(this.onErrorCallbacks_,A))&&Q5(Error("sd`"+A));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var MIK=function(A,t){for(var f=[],X=0;X<A.length;X++)try{A[X].execute(t)}catch(Q){Q5(Q),f.push(Q)}A.length=0;return f.length?f:null};
g8.prototype.disposeInternal=function(){g8.superClass_.disposeInternal.call(this);_.ee(this.module_)};var CYf,yLw,bp7,WtE,R9S,mvC,nO7,piT,EOp;
_.M9=function(A,t,f,X,Q){X=X===void 0?!1:X;Q=Q===void 0?!1:Q;var q=q===void 0?!0:q;this.scsReferenceUrl_=ZUs(_.Ei(A).toString(),q);this.cssRowKey_=t;this.combinedSignature_=f;this.useNegativeLoading_=X;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(A=vo(this.scsReferenceUrl_,"excm"))?A.split(","):[];this.shouldScanForCss_=Q;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;otg();_.sA(this,vHk(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
CYf=function(A,t){if(t.href||t.getAttribute("data-href"))if(t=t.href||t.getAttribute("data-href"),xqb(t)&&!ZUs(t).urlPrefix_.endsWith("_/js/")){t=vHk(ZUs(t));t=_.U(t);for(var f=t.next();!f.done;f=t.next())f=f.value,A.loadedCssModuleList_.includes(f)||A.loadedCssModuleList_.push(f)}};
_.M9.prototype.JSC$11137_loadModules=function(A,t,f){var X=f===void 0?{}:f;t=X.extraEdges;f=X.onError;var Q=X.onSuccess;X=X.forceReload;if(!A)throw Error("td");if(this.shouldScanForCss_){for(var q=_.U(document.getElementsByTagName("style")),e=q.next();!e.done;e=q.next())CYf(this,e.value);q=_.U(document.getElementsByTagName("link"));for(e=q.next();!e.done;e=q.next())CYf(this,e.value)}h98(this,R9S(this,A),t,f,Q,X)};
var h98=function(A,t,f,X,Q,q){X=X===void 0?function(){}:X;
Q=Q===void 0?function(){}:Q;
q=q===void 0?!1:q;mvC(A,t,function(e,G,N){N=N===void 0?G:N;A.enableFallbackFetch&&q?A.loadWithFetch(e,G,X,Q,N):A.load(e,G,X,Q,N,f)},f)||X(-1)};
_.M9.prototype.loadWithFetch=function(){_.l(function(){throw Error("ud");})};
_.M9.prototype.maybeSetAdditionalFields=function(){};
yLw=function(A,t,f){if(A.useNegativeLoading_){var X=A.scsReferenceUrl_;A={cssRowKey:A.cssRowKey_,combinedSignature:A.combinedSignature_,extraEdges:f,requestedModuleIds:bp7(A),requestedCssModuleIds:WtE(A)};var Q=A===void 0?{}:A;A=Q.requestedModuleIds===void 0?[]:Q.requestedModuleIds;f=Q.requestedCssModuleIds===void 0?[]:Q.requestedCssModuleIds;var q=Q.cssRowKey===void 0?void 0:Q.cssRowKey;var e=Q.combinedSignature===void 0?void 0:Q.combinedSignature;var G=Q.extraEdges===void 0?void 0:Q.extraEdges;
Q=Q.callback===void 0?void 0:Q.callback;X=NHp(X);LL(X,"d","1");WEb(X,A);y48(X,f);t=z9p(X,t,{cssRowKey:q,combinedSignature:e,extraEdges:G,callback:Q})}else X=A.scsReferenceUrl_,A={cssRowKey:A.cssRowKey_,combinedSignature:A.combinedSignature_,requestedModuleIds:bp7(A),requestedCssModuleIds:WtE(A)},G=A===void 0?{}:A,A=G.requestedCssModuleIds===void 0?[]:G.requestedCssModuleIds,f=G.cssRowKey===void 0?void 0:G.cssRowKey,q=G.combinedSignature===void 0?void 0:G.combinedSignature,e=G.extraEdges===void 0?
void 0:G.extraEdges,G=G.callback===void 0?void 0:G.callback,X=NHp(X),y48(X,A),t=z9p(X,t,{cssRowKey:f,combinedSignature:q,extraEdges:e,callback:G});return t};
_.sA=function(A,t){for(var f=!1,X=[],Q=0;Q<t.length;++Q){var q=t[Q];A.requestedModuleMap_[q]||(A.requestedModuleMap_[q]=!0,A.requestedModuleList_.push(q),f=!0,X.push(q))}f&&(A.requestedModuleListSorted_=!1)};
_.kd=function(A,t){for(var f=[],X=0;X<t.length;++X){var Q=t[X];A.requestedModuleMap_[Q]&&(delete A.requestedModuleMap_[Q],_.o0(A.requestedModuleList_,Q),f.push(Q))}};
_.M9.prototype.load=function(A,t,f,X,Q){Q=Q===void 0?t:Q;_.Ei(A);var q=this.useCors_,e=this.corsMode_,G=this.fetchPriority,N=_.yT("SCRIPT");_.UV(N,A);q&&(N.crossOrigin=e);N.async=!1;G&&N.setAttribute("fetchpriority",G);_.sA(this,t);_.vO8(this,A,N,t,f,X,Q)};
_.vO8=function(A,t,f,X,Q,q,e){e=e===void 0?X:e;A.lastScript_=f;A.insertPos.insertBefore(f,A.insertPos.firstChild);_.LtT(f,X,function(){f.parentElement.removeChild(f);A.lastScript_==f&&(A.lastScript_=null);q()},function(G){f.parentElement.removeChild(f);
A.lastScript_==f&&(A.lastScript_=null);_.kd(A,G);A.pendingModuleGraphUpdate_?A.pendingModuleGraphUpdate_.then(function(){Q(-1,t)}):Q(-1,t)},e)};
_.LtT=function(A,t,f,X,Q){Q=Q===void 0?t:Q;var q=t.length,e=function(){q=0;A.onload=null;A.onerror=null;G=function(){}},G=function(){e();
var z=Q.filter(function(T){return!ZA().getModuleInfo(T).isLoaded()});
z.length!==0?X(z,"Response was successful but was missing module(s) "+z+"."):f()},N=function(){q--;
q==0&&G()};
t.forEach(function(z){z=ZA().getModuleInfo(z);z.isLoaded()?N():(w8(z.earlyOnloadCallbacks_,N),BHp(z,N))});
A.onload=function(){return G()};
A.onerror=function(){e();X(t)}};
bp7=function(A){A.requestedModuleListSorted_||(A.requestedModuleListSorted_=!0,A.requestedModuleList_.sort());return A.requestedModuleList_};
WtE=function(A){A=A.loadedCssModuleList_;A.sort();return A};
R9S=function(A,t){return t.filter(function(f){return!A.requestedModuleMap_[f]})};
mvC=function(A,t,f,X){if(A.pendingModuleGraphUpdate_)return A.pendingModuleGraphUpdate_.then(function(){mvC(A,t,f,X)}),!0;
if(!A.useNegativeLoading_){var Q=[],q=Object.assign({},A.requestedModuleMap_);piT(A,t,function(T){Q.push(T.getId())},X,function(T){return!T.isLoaded()},q);
t=Q}for(q=0;q<t.length;){for(var e=t.length-q,G=q==0?t:t.slice(q,t.length),N=yLw(A,G,X),z=_.Ei(N).toString();z.length>A.urlMaxLength;)if(e>1)e-=Math.ceil((z.length-A.urlMaxLength)/6),e=Math.max(e,1),G=t.slice(q,q+e),N=yLw(A,G,X),z=_.Ei(N).toString();else return A.useNegativeLoading_?(A.useNegativeLoading_=!1,A.pendingModuleGraphUpdate_=EOp(A).then(function(T){nO7(A,T,X)}),mvC(A,t.slice(q),f,X)):!1;
q+=e;A.useNegativeLoading_?f(N,G):f(N,G,q===t.length?t:[])}return!0};
nO7=function(A,t,f){ZA().setAllModuleInfoString((t||{}).moduleGraph);piT(A,bp7(A),function(X){_.sA(A,[X.getId()])},f);
A.pendingModuleGraphUpdate_=null};
piT=function(A,t,f,X,Q,q){q=q===void 0?{}:q;var e=ZA();t=_.U(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;var N=e.getModuleInfo(G);if(!(q[G]||Q&&!Q(N))){q[G]=!0;var z=N.deps_||[];if(X){var T=[];X[G]&&(T=Object.keys(X[G]));z=z.concat(T)}piT(A,z,f,X,Q,q);f(N)}}};
EOp=function(A){A=A.scsReferenceUrl_.clone();p9K(A);LL(A,"dg",null);LL(A,"md","1");return THw(A.toString())};var A05=new Uint8Array(123);var Dvf=[];var Ftp=function(){this.JSC$10137_loader_=null};
_.J=Ftp.prototype;_.J.setBatchModeEnabled=function(){};
_.J.setAllModuleInfoString=function(){};
_.J.addExtraEdge=function(){throw Error("vd");};
_.J.removeExtraEdge=function(){throw Error("wd");};
_.J.getModuleContext=function(){return null};
_.J.isActive=function(){return!1};
_.J.isUserActive=function(){return!1};
_.J.registerInitializationCallback=function(){};
_.J.registerCallback=function(){};var r8=function(A,t,f,X,Q){var q=Error.call(this);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.name="ModuleLoadFailure";this.type=A;this.status=t;this.requestedModuleIds=f;this.url=X;this.cause=Q;this.message=this.toString()};
_.R(r8,Error);r8.prototype.toString=function(){return I2T(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var I2T=function(A){switch(A.type){case r8.Type.UNAUTHORIZED:return"Unauthorized";case r8.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case r8.Type.TIMEOUT:return"Timed out";case r8.Type.OLD_CODE_GONE:return"Out of date module id";case r8.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+A.type}};
wS.ModuleLoadFailure=r8;wS.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Ah=function(){this.moduleIds_=this.JSC$10137_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11150_extraEdges_={};this.JSC$11150_callbackMap_={};this.JSC$11150_currentlyLoadingModule_=this.baseModuleInfo_=new g8([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new AH;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.rS(Ah,Ftp);var xvi=function(A,t){_.Ab.call(this,"Error loading "+A+": "+t)};
_.rS(xvi,_.Ab);Ah.prototype.setBatchModeEnabled=function(A){this.batchModeEnabled_=A};
Ah.prototype.setAllModuleInfoString=function(A,t){if(!(this instanceof Ah))this.setAllModuleInfoString(A,t);else if(typeof A==="string"){if(A.startsWith("d$")){A=A.substring(2);for(var f=[],X=0,Q=A.indexOf("/"),q=0,e=!1,G=0;;){var N=e?A.substring(q):A.substring(q,Q);if(N.length===0)X++,q="sy"+X.toString(36),N=[];else{var z=N.indexOf(":");if(z<0)q=N,N=[];else if(z===N.length-1)q=N.substring(0,z),N=Array(f[G-1]);else{q=N.substring(0,z);N=N.substring(z+1).split(",");z=G;for(var T=0;T<N.length;T++)z-=
N[T].length===0?1:Number(N[T]),N[T]=f[z]}z=0;if(q.length===0)z=1;else if(q.charAt(0)==="+"||q.charAt(0)==="-")z=Number(q);z!==0&&(X+=z,q="sy"+X.toString(36))}f.push(q);jOf(this,q,N);if(e)break;q=Q+1;Q=A.indexOf("/",q);Q===-1&&(e=!0);G++}this.moduleIds_=f}else if(A.startsWith("p$"))YFi(this,A);else{A=A.split("/");f=[];for(X=0;X<A.length;X++){G=A[X].split(":");Q=G[0];e=[];if(G[1])for(e=G[1].split(","),G=0;G<e.length;G++)e[G]=f[parseInt(e[G],36)];f.push(Q);jOf(this,Q,e)}this.moduleIds_=f}t&&t.length?
(_.$q(this.loadingModuleIds_,t),this.lastInitialModuleId_=_.Ex(t)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11150_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11150_currentlyLoadingModule_=null,(t=this.baseModuleInfo_.onLoad((0,_.F1)(this.getModuleContext,this)))&&t.length&&VIC(this,new wS.ModuleLoadFailure(wS.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,t[0])),th(this))}};
var YFi=function(A,t){var f=t.substring(2);for(t=0;t<64;t++)A05["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(t)]=t;var X={buf:f,pos:0};B9(X);var Q=B9(X),q=B9(X)+1;t=Array(Q);var e=Array(Q),G=Array(Q);q=Array(q);var N=0,z=0,T=X.pos,O=X.buf.indexOf("|",X.pos);X.pos=O+1;for(O=0;O<Q;O++){var c=B9(X),B=c&2,h=c&1;c>>>=2;h?(N+=c>>>1^-(c&1),c="sy"+N.toString(36)):(h=T,T+=c,c=f.substring(h,T));t[O]=c;B&&(q[z++]=c)}q[z]="";X.pos++;z=Q&-2;f=Q&1;for(N=0;N<z;N+=2)T=tMb(X),G[N]=
T&7,G[N+1]=T>>>3&7;f&&(f=tMb(X),G[z]=f&7);X.pos++;for(z=0;z<Q;z++)G[z]===7&&(G[z]=B9(X));X.pos++;for(f=z=0;f<Q;f++){N=G[f];T=N===0?Dvf:Array(N);e[f]=T;O=z;for(B=0;B<N;B++)O-=B9(X),T[B]=q[O];q[z]===t[f]&&z++}for(X=0;X<t.length;X++)jOf(A,t[X],e[X]);A.moduleIds_=t};
_.J=Ah.prototype;_.J.getModuleInfo=function(A){return this.moduleInfoMap[A]};
_.J.addExtraEdge=function(A,t){var f=this.getModuleInfo(A);f&&f.isLoaded()?this.load(t):(this.JSC$11150_extraEdges_[A]||(this.JSC$11150_extraEdges_[A]={}),this.JSC$11150_extraEdges_[A][t]=!0)};
_.J.removeExtraEdge=function(A,t){if(this.JSC$11150_extraEdges_[A]){delete this.JSC$11150_extraEdges_[A][t];for(var f in this.JSC$11150_extraEdges_[A])return;delete this.JSC$11150_extraEdges_[A]}};
_.J.isActive=function(){return this.loadingModuleIds_.length>0};
_.J.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var th=function(A){var t=A.lastActive_,f=A.isActive();f!=t&&(A.executeCallbacks_(f?"active":"idle"),A.lastActive_=f);t=A.isUserActive();t!=A.userLastActive_&&(A.executeCallbacks_(t?"userActive":"userIdle"),A.userLastActive_=t)},jOf=function(A,t,f){A.moduleInfoMap[t]?(A=A.moduleInfoMap[t].deps_,A!=f&&A.splice.apply(A,[0,
A.length].concat(_.YV(f)))):A.moduleInfoMap[t]=new g8(f,t)},oOK=function(A,t,f){var X=[];
F5b(t,X);t=[];for(var Q={},q=0;q<X.length;q++){var e=X[q],G=A.getModuleInfo(e);if(!G)throw Error("xd`"+e);var N=new AH;Q[e]=N;G.isLoaded()?N.callback(null):(ZpS(A,e,G,!!f,N),A.isModuleLoading(e)||t.push(e))}t.length>0&&(A.loadingModuleIds_.length===0?A.loadModules_(t):(A.requestedModuleIdsQueue_.push(t),th(A)));return Q},ZpS=function(A,t,f,X,Q){f.registerCallback(Q.callback,Q);
BHp(f,function(q){Q.errback(new xvi(t,q))});
A.isModuleLoading(t)?X&&(dvb(A,t),th(A)):X&&dvb(A,t)};
Ah.prototype.loadModules_=function(A,t,f){var X=this;t=t===void 0?0:t;var Q=SFw(this,A);this.loadingModuleIds_=Q;this.requestedLoadingModuleIds_=this.batchModeEnabled_?A:_.ds(Q);th(this);if(Q.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Q);A=this.JSC$10137_loader_;if(!A)throw Error("yd");if(Object.keys(this.JSC$11150_extraEdges_).length>0&&!A.supportsExtraEdges)throw Error("zd");f=(0,_.F1)(A.JSC$11137_loadModules,A,_.ds(Q),this.moduleInfoMap,{extraEdges:this.JSC$11150_extraEdges_,
forceReload:!!f,onError:function(q,e){var G=X.requestedLoadingModuleIds_;q=q!=null?q:void 0;var N=(t===void 0?0:t)+1,z=_.ds(Q);X.requestedLoadingModuleIds_=G;Q.forEach(_.l0(_.o0,X.requestedModuleIds_),X);q==401?(VIC(X,new wS.ModuleLoadFailure(wS.ModuleLoadFailure.Type.UNAUTHORIZED,q)),X.requestedModuleIdsQueue_.length=0):q==410?($vw(X,new wS.ModuleLoadFailure(wS.ModuleLoadFailure.Type.OLD_CODE_GONE,q)),Hpf(X)):N>=3?($vw(X,new wS.ModuleLoadFailure(wS.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,q,z,
e)),Hpf(X)):X.loadModules_(X.requestedLoadingModuleIds_,N,q==8001||!1)},
onTimeout:(0,_.F1)(this.handleLoadTimeout_,this)});(A=Math.pow(t,2)*5E3)?_.Xb.setTimeout(f,A):f()}};
var SFw=function(A,t){t=t.filter(function(Q){return A.moduleInfoMap[Q].isLoaded()?(_.Xb.setTimeout(function(){return Error("Ad`"+Q)},0),!1):!0});
for(var f=[],X=0;X<t.length;X++)f=f.concat(a28(A,t[X]));F5b(f);return!A.batchModeEnabled_&&f.length>1?(t=f.shift(),A.requestedModuleIdsQueue_=f.map(function(Q){return[Q]}).concat(A.requestedModuleIdsQueue_),[t]):f},a28=function(A,t){var f=_.VG.createSet(A.requestedModuleIds_),X=[];
f[t]||X.push(t);t=[t];for(var Q=0;Q<t.length;Q++)for(var q=A.getModuleInfo(t[Q]).deps_,e=q.length-1;e>=0;e--){var G=q[e];A.getModuleInfo(G).isLoaded()||f[G]||(X.push(G),t.push(G))}X.reverse();F5b(X);return X};
Ah.prototype.JSC$11145_setLoaded=function(){if(this.JSC$11150_currentlyLoadingModule_){var A=this.JSC$11150_currentlyLoadingModule_.getId(),t=[];if(this.JSC$11150_extraEdges_[A]){for(var f=_.U(Object.keys(this.JSC$11150_extraEdges_[A])),X=f.next();!X.done;X=f.next()){X=X.value;var Q=this.getModuleInfo(X);Q&&!Q.isLoaded()&&(this.removeExtraEdge(A,X),t.push(X))}this.loadMultiple(t)}this.isDisposed()||((t=this.moduleInfoMap[A].onLoad((0,_.F1)(this.getModuleContext,this)))&&t.length&&VIC(this,new wS.ModuleLoadFailure(wS.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,t[0])),_.o0(this.userInitiatedLoadingModuleIds_,A),_.o0(this.loadingModuleIds_,A),this.loadingModuleIds_.length===0&&Hpf(this),this.lastInitialModuleId_&&A==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),th(this),this.JSC$11150_currentlyLoadingModule_=null)}};
Ah.prototype.isModuleLoading=function(A){if(_.Zx(this.loadingModuleIds_,A))return!0;for(var t=0;t<this.requestedModuleIdsQueue_.length;t++)if(_.Zx(this.requestedModuleIdsQueue_[t],A))return!0;return!1};
Ah.prototype.load=function(A,t){return oOK(this,[A],t)[A]};
Ah.prototype.loadMultiple=function(A){return oOK(this,A)};
var dvb=function(A,t){_.Zx(A.userInitiatedLoadingModuleIds_,t)||A.userInitiatedLoadingModuleIds_.push(t)};
Ah.prototype.beforeLoadModuleCode=function(A){var t=this;this.JSC$11150_currentlyLoadingModule_&&this.JSC$11150_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11145_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[A]&&KtK(this,this.moduleInfoMap[A].deps_||[],function(f){f.module_=new Kr;_.o0(t.loadingModuleIds_,f.getId())},function(f){return!f.isLoaded()});
this.JSC$11150_currentlyLoadingModule_=this.getModuleInfo(A)};
Ah.prototype.registerInitializationCallback=function(A){this.JSC$11150_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new g8([],"synthetic_module_overhead"),this.JSC$11150_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);w8(this.JSC$11150_currentlyLoadingModule_.earlyOnloadCallbacks_,A)};
Ah.prototype.handleLoadTimeout_=function(){$vw(this,new wS.ModuleLoadFailure(wS.ModuleLoadFailure.Type.TIMEOUT));Hpf(this)};
var $vw=function(A,t){A.requestedLoadingModuleIds_.length>1?A.requestedModuleIdsQueue_=A.requestedLoadingModuleIds_.map(function(f){return[f]}).concat(A.requestedModuleIdsQueue_):VIC(A,t)},VIC=function(A,t){var f=A.requestedLoadingModuleIds_;
A.loadingModuleIds_.length=0;for(var X=[],Q=0;Q<A.requestedModuleIdsQueue_.length;Q++){var q=A.requestedModuleIdsQueue_[Q].filter(function(N){var z=a28(this,N);return Uv(f,function(T){return _.Zx(z,T)})},A);
_.$q(X,q)}for(Q=0;Q<f.length;Q++)_.pp5(X,f[Q]);for(Q=0;Q<X.length;Q++){for(q=0;q<A.requestedModuleIdsQueue_.length;q++)_.o0(A.requestedModuleIdsQueue_[q],X[Q]);_.o0(A.userInitiatedLoadingModuleIds_,X[Q])}if(Q=A.JSC$11150_callbackMap_.error)for(q=0;q<Q.length;q++)for(var e=Q[q],G=0;G<X.length;G++)e("error",X[G],t);for(X=0;X<f.length;X++)if(A.moduleInfoMap[f[X]])A.moduleInfoMap[f[X]].onError(t);A.requestedLoadingModuleIds_.length=0;th(A)},Hpf=function(A){for(;A.requestedModuleIdsQueue_.length;){var t=
A.requestedModuleIdsQueue_.shift().filter(function(f){return!this.getModuleInfo(f).isLoaded()},A);
if(t.length>0){A.loadModules_(t);return}}th(A)};
Ah.prototype.registerCallback=function(A,t){Array.isArray(A)||(A=[A]);for(var f=0;f<A.length;f++){var X=A[f],Q=t,q=this.JSC$11150_callbackMap_;q[X]||(q[X]=[]);q[X].push(Q)}};
Ah.prototype.executeCallbacks_=function(A){for(var t=this.JSC$11150_callbackMap_[A],f=0;t&&f<t.length;f++)t[f](A)};
var KtK=function(A,t,f,X,Q){X=X===void 0?function(){return!0}:X;
Q=Q===void 0?{}:Q;t=_.U(t);for(var q=t.next();!q.done;q=t.next()){q=q.value;var e=A.getModuleInfo(q);!Q[q]&&X(e)&&(Q[q]=!0,KtK(A,e.deps_||[],f,X,Q),f(e))}};
Ah.prototype.dispose=function(){_.G_(_.VG.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11150_callbackMap_={};this.isDisposed_=!0};
Ah.prototype.isDisposed=function(){return this.isDisposed_};
_.VT=function(){return new Ah};var gOp=[5E3,2E4],j3s=function(){this.JSC$10137_loader_=null;this.JSC$11158_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11158_queue_=[];this.JSC$11158_extraEdges_=Object.create(null);this.JSC$11158_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.R(j3s,Ftp);_.J=j3s.prototype;_.J.setAllModuleInfoString=function(){this.JSC$11158_currentlyLoadingModule_&&this.JSC$11158_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11145_setLoaded()};
_.J.getModuleInfo=function(A){var t=this.JSC$11158_moduleInfoMap_[A];t||(t=new g8([],A),this.JSC$11158_moduleInfoMap_[A]=t);return t};
_.J.addExtraEdge=function(A,t){this.getModuleInfo(A).isLoaded()?this.load(t):(this.JSC$11158_extraEdges_[A]||(this.JSC$11158_extraEdges_[A]={}),this.JSC$11158_extraEdges_[A][t]=!0)};
_.J.removeExtraEdge=function(A,t){if(this.JSC$11158_extraEdges_[A]){delete this.JSC$11158_extraEdges_[A][t];for(var f in this.JSC$11158_extraEdges_[A])return;delete this.JSC$11158_extraEdges_[A]}};
_.J.isModuleLoading=function(A){return!!this.loadingModules_[A]};
_.J.load=function(A){wi8(this,[A]);return sO7(this,A)};
_.J.loadMultiple=function(A){var t=this,f=Object.create(null),X=[];A.forEach(function(Q){f[Q]||(f[Q]=sO7(t,Q),X.push(Q))});
wi8(this,X);return f};
_.J.beforeLoadModuleCode=function(A){var t;((t=this.JSC$11158_currentlyLoadingModule_)==null?void 0:t.getId())==="synthetic_module_overhead"&&this.JSC$11145_setLoaded();var f,X;kDb(this,(X=(f=this.JSC$11158_moduleInfoMap_[A])==null?void 0:f.deps_)!=null?X:[],function(Q){Q.module_=new Kr},function(Q){return!Q.isLoaded()});
this.JSC$11158_currentlyLoadingModule_=this.getModuleInfo(A)};
_.J.JSC$11145_setLoaded=function(){if(this.JSC$11158_currentlyLoadingModule_){var A=this.JSC$11158_currentlyLoadingModule_.getId(),t=[];if(this.JSC$11158_extraEdges_[A]){for(var f=_.U(Object.keys(this.JSC$11158_extraEdges_[A])),X=f.next();!X.done;X=f.next())X=X.value,this.getModuleInfo(X).isLoaded()||(this.removeExtraEdge(A,X),t.push(X));this.loadMultiple(t)}this.JSC$11158_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11158_currentlyLoadingModule_=null;(!this.isModuleLoading(A)&&/^sy[0-9a-z]{0,4}$/.test(A)||A==="synthetic_module_overhead")&&delete this.JSC$11158_moduleInfoMap_[A];this.unsetModulesAsLoading(A)}};
_.J.registerInitializationCallback=function(A){this.JSC$11158_currentlyLoadingModule_||(this.JSC$11158_moduleInfoMap_.synthetic_module_overhead=new g8([],"synthetic_module_overhead"),this.JSC$11158_currentlyLoadingModule_=this.JSC$11158_moduleInfoMap_.synthetic_module_overhead);w8(this.JSC$11158_currentlyLoadingModule_.earlyOnloadCallbacks_,A)};
_.J.setModulesAsLoading=function(){var A=this;_.Hu.apply(0,arguments).forEach(function(t){A.loadingModules_[t]=!0})};
_.J.unsetModulesAsLoading=function(){var A=this;_.Hu.apply(0,arguments).forEach(function(t){delete A.loadingModules_[t]})};
var sO7=function(A,t){return new _.yy(function(f,X){var Q=A.getModuleInfo(t);Q.isLoaded()?f(null):(Q.registerCallback(function(){f(null)}),BHp(Q,function(q){var e="Error loading "+t+": "+q;
q instanceof wS.ModuleLoadFailure&&q.url&&(e=e+", requested url: "+q.url.toString());X(Error(e))}))})},wi8=function(A,t){t=t.filter(function(f){return!A.isModuleLoading(f)&&!A.getModuleInfo(f).isLoaded()});
t.length>0&&(A.setModulesAsLoading.apply(A,_.YV(t)),A.JSC$11158_queue_.push(t),rLT(A))},rLT=function(A){for(var t={};A.activeLoads_<Infinity&&A.JSC$11158_queue_.length>0;t={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})t.ids$jscomp$37=A.JSC$11158_queue_.shift().filter(function(f){return!A.getModuleInfo(f).isLoaded()}),t.ids$jscomp$37.length>0&&(A.activeLoads_++,t.finishLoad=function(f){return function(){A.activeLoads_--;
rLT(A);f.finishLoad=function(){}}}(t),_.DX(t.ids$jscomp$37.map(function(f){return sO7(A,f)})).then(function(f){return function(){(0,f.finishLoad)()}}(t)),t.attempt$jscomp$6=0,t.load$jscomp$1=function(f){return function(){if(Object.keys(A.JSC$11158_extraEdges_).length>0&&!A.JSC$10137_loader_.supportsExtraEdges)throw Error("zd");
A.JSC$10137_loader_.JSC$11137_loadModules(f.ids$jscomp$37,A.JSC$11158_moduleInfoMap_,{extraEdges:A.JSC$11158_extraEdges_,onError:function(X,Q){var q=gOp[f.attempt$jscomp$6++];q!==void 0?setTimeout(function(){(0,f.load$jscomp$1)()},q):(A.unsetModulesAsLoading.apply(A,_.YV(f.ids$jscomp$37)),(0,f.finishLoad)(),f.ids$jscomp$37.forEach(function(e){e=A.getModuleInfo(e);
if(!e.isLoaded())e.onError(new wS.ModuleLoadFailure(wS.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,X,f.ids$jscomp$37,Q))}))}})}}(t),(0,t.load$jscomp$1)())},kDb=function(A,t,f,X,Q){X=X===void 0?function(){return!0}:X;
Q=Q===void 0?{}:Q;t=_.U(t);for(var q=t.next();!q.done;q=t.next()){q=q.value;var e=A.getModuleInfo(q);!Q[q]&&X(e)&&(Q[q]=!0,kDb(A,e.deps_||[],f,X,Q),f(e))}};var AYK=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var qjb=Symbol("Cd");window.JSCompiler_renameProperty=function(A){return A};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var tvf=!AYK||HTMLElement.es5Shimmed||_.Xb.Reflect===void 0||_.Xb.customElements===void 0||_.Xb.customElements.polyfillWrapFlushCallback||!1,fKb,Ycx=function(){var A=HTMLElement;if(tvf)return A;if(fKb!==void 0)return fKb;var t=_.Xb.Reflect,f=function(){return t.construct(A,[],this.constructor)};
f.prototype=A.prototype;f.prototype.constructor=f;f.es5Shimmed=!0;Object.setPrototypeOf(f,A);return fKb=f},XUl=!1;tvf||XUl||(XUl=!0,_.Xb.HTMLElement=Ycx());/*

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 ldz=/(url\()([^)]*)(\))/g,ey5=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Gqx,CV;var r$=!window.ShadyDOM||!window.ShadyDOM.inUse,Qgb=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),qQC=!window.customElements.polyfillWrapFlushCallback,JYk;if(JYk=r$&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var UL8=new CSSStyleSheet;UL8.replaceSync("");var eFi=document.createElement("div");eFi.attachShadow({mode:"open"});eFi.shadowRoot.adoptedStyleSheets=[UL8];JYk=eFi.shadowRoot.adoptedStyleSheets[0]===UL8}catch(A){JYk=!1}
var Ghb=JYk,lKE=window.Polymer&&window.Polymer.rootPath||uIb(document.baseURI||window.location.href),Iw=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Mtx=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,qP=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,NRw=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,kH=window.Polymer&&window.Polymer.legacyOptimizations||!1,QV=window.Polymer&&window.Polymer.legacyWarnings||!1,uDK=window.Polymer&&window.Polymer.syncInitialRender||
!1,jU=window.Polymer&&window.Polymer.legacyUndefined||!1,zFf=window.Polymer&&window.Polymer.orderedComputed||!1,f6=window.Polymer&&window.Polymer.removeNestedTemplates||!1,XX=window.Polymer&&window.Polymer.fastDomIf||!1,Q7=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Pop=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,TRS=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var q$={},iNK={},Vk=function(){return HTMLElement.apply(this,arguments)||this};
_.R(Vk,HTMLElement);Vk.import=function(A,t){return A?(A=q$[A]||iNK[A.toLowerCase()])&&t?A.querySelector(t):A:null};
Vk.prototype.attributeChangedCallback=function(A,t,f){t!==f&&this.register()};
Vk.prototype.register=function(A){if(A=A||this.id){if(qP&&(q$[A]||iNK[A.toLowerCase()])!==void 0)throw q$[A]=iNK[A.toLowerCase()]=null,Error("Dd`"+A);this.id=A;q$[A]=iNK[A.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.PV.Object.defineProperties(Vk.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var A=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;A=_.h4(this.getAttribute("assetpath")||"",A.baseURI);this.__assetpath=uIb(A)}return this.__assetpath}}});
_.PV.Object.defineProperties(Vk,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Vk["import"]=Vk.import;Vk.prototype.modules=q$;customElements.define("dom-module",Vk);var ONi=0,PM5=0,Rw=[],cYb=0,zyx=!1,BRb=document.createTextNode(""),Mvl,w$;(new window.MutationObserver(TPT)).observe(BRb,{characterData:!0});_.Jh={after:function(A){return{run:function(t){return window.setTimeout(t,A)},
cancel:function(t){window.clearTimeout(t)}}},
run:function(A,t){return window.setTimeout(A,t)},
cancel:function(A){window.clearTimeout(A)}};
_.iP={run:function(A){return window.requestAnimationFrame(A)},
cancel:function(A){window.cancelAnimationFrame(A)}};
Mvl={run:function(A){return window.requestIdleCallback?window.requestIdleCallback(A):window.setTimeout(A,16)},
cancel:function(A){window.cancelIdleCallback?window.cancelIdleCallback(A):window.clearTimeout(A)}};
w$={run:function(A){zyx||(zyx=!0,BRb.textContent=cYb++);Rw.push(A);return ONi++},
cancel:function(A){var t=A-PM5;if(t>=0){if(!Rw[t])throw Error("Ed`"+A);Rw[t]=null}}};var Cof=0,UU=function(A){var t=A.__mixinApplications;t||(t=new WeakMap,A.__mixinApplications=t);var f=Cof++;return function(X){var Q=X.__mixinSet;if(Q&&Q[f])return X;var q=t,e=q.get(X);e||(e=A(X),q.set(X,e),X=Object.create(e.__mixinSet||Q||null),X[f]=!0,e.__mixinSet=X);return e}};_.FA=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(A){return ShadyDOM.patch(A)}:function(A){return A};var hFC=UU(function(A){var t=function(){var f=A.call(this)||this;f.__dataEnabled=!1;f.__dataReady=!1;f.__dataInvalid=!1;f.__data={};f.__dataPending=null;f.__dataOld=null;f.__dataInstanceProps=null;f.__dataCounter=0;f.__serializing=!1;f._initializeProperties();return f};
_.R(t,A);t.createProperties=function(f){var X=this.prototype,Q;for(Q in f)Q in X||X._createPropertyAccessor(Q)};
t.attributeNameForProperty=function(f){return f.toLowerCase()};
t.typeForProperty=function(){};
t.prototype._createPropertyAccessor=function(f,X){this._addPropertyToAttributeMap(f);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[f]||(this.__dataHasAccessor[f]=!0,this._definePropertyAccessor(f,X))};
t.prototype._addPropertyToAttributeMap=function(f){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var X=this.__dataAttributes[f];X||(X=this.constructor.attributeNameForProperty(f),this.__dataAttributes[X]=f);return X};
t.prototype._definePropertyAccessor=function(f,X){Object.defineProperty(this,f,{get:function(){return this.__data[f]},
set:X?function(){}:function(Q){this._setPendingProperty(f,Q,!0)&&this._invalidateProperties()}})};
t.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
t.prototype._initializeProperties=function(){for(var f in this.__dataHasAccessor)this.hasOwnProperty(f)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[f]=this[f],delete this[f])};
t.prototype._initializeInstanceProperties=function(f){Object.assign(this,f)};
t.prototype._setProperty=function(f,X){this._setPendingProperty(f,X)&&this._invalidateProperties()};
t.prototype._getProperty=function(f){return this.__data[f]};
t.prototype._setPendingProperty=function(f,X){var Q=this.__data[f],q=this._shouldPropertyChange(f,X,Q);q&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||f in this.__dataOld||(this.__dataOld[f]=Q),this.__data[f]=X,this.__dataPending[f]=X);return q};
t.prototype._isPropertyPending=function(f){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(f))};
t.prototype._invalidateProperties=function(){var f=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,w$.run(function(){f.__dataInvalid&&(f.__dataInvalid=!1,f._flushProperties())}))};
t.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
t.prototype._flushProperties=function(){this.__dataCounter++;var f=this.__data,X=this.__dataPending,Q=this.__dataOld;this._shouldPropertiesChange(f,X,Q)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(f,X,Q));this.__dataCounter--};
t.prototype._shouldPropertiesChange=function(f,X){return!!X};
t.prototype._propertiesChanged=function(){};
t.prototype._shouldPropertyChange=function(f,X,Q){return Q!==X&&(Q===Q||X===X)};
t.prototype.attributeChangedCallback=function(f,X,Q,q){X!==Q&&this._attributeToProperty(f,Q);A.prototype.attributeChangedCallback&&A.prototype.attributeChangedCallback.call(this,f,X,Q,q)};
t.prototype._attributeToProperty=function(f,X,Q){if(!this.__serializing){var q=this.__dataAttributes;f=q&&q[f]||f;this[f]=this._deserializeValue(X,Q||this.constructor.typeForProperty(f))}};
t.prototype._propertyToAttribute=function(f,X,Q){this.__serializing=!0;Q=arguments.length<3?this[f]:Q;this._valueToNodeAttribute(this,Q,X||this.constructor.attributeNameForProperty(f));this.__serializing=!1};
t.prototype._valueToNodeAttribute=function(f,X,Q){X=this._serializeValue(X);if(Q==="class"||Q==="name"||Q==="slot")f=(0,_.FA)(f);X===void 0?f.removeAttribute(Q):f.setAttribute(Q,X===""&&window.trustedTypes?window.trustedTypes.emptyScript:X)};
t.prototype._serializeValue=function(f){switch(typeof f){case "boolean":return f?"":void 0;default:return f!=null?f.toString():void 0}};
t.prototype._deserializeValue=function(f,X){switch(X){case Boolean:return f!==null;case Number:return Number(f);default:return f}};
return t});var RF7=0,i8T=[];var mL8=UU(function(A){function t(q){q=Object.getPrototypeOf(q);return q.prototype instanceof Q?q:null}
function f(q){if(!q.hasOwnProperty("__ownProperties")){var e=null;if(q.hasOwnProperty("properties")){var G=q.properties;if(G){e={};for(var N in G){var z=G[N];e[N]=typeof z==="function"?{type:z}:z}}}q.__ownProperties=e}return q.__ownProperties}
var X=hFC(A),Q=function(){return X.apply(this,arguments)||this};
_.R(Q,X);Q.finalize=function(){if(!this.hasOwnProperty("__finalized")){var q=t(this);q&&q.finalize();this.__finalized=!0;this._finalizeClass()}};
Q._finalizeClass=function(){var q=f(this);q&&this.createProperties(q)};
Q.typeForProperty=function(q){return(q=this._properties[q])&&q.type};
Q.prototype._initializeProperties=function(){RF7++;this.constructor.finalize();X.prototype._initializeProperties.call(this)};
Q.prototype.connectedCallback=function(){X.prototype.connectedCallback&&X.prototype.connectedCallback.call(this);this._enableProperties()};
Q.prototype.disconnectedCallback=function(){X.prototype.disconnectedCallback&&X.prototype.disconnectedCallback.call(this)};
_.PV.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var q=this;if(!this.hasOwnProperty("__observedAttributes")){O8x(this.prototype);var e=this._properties;this.__observedAttributes=e?Object.keys(e).map(function(G){return q.prototype._addPropertyToAttributeMap(G)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var q=t(this);this.__properties=Object.assign({},q&&q._properties,f(this))}return this.__properties}}});
return Q});var c0z={},BP5=/-[a-z]/g,MMs=/([A-Z])/g;for(var bNi={},WI7=HTMLElement.prototype;WI7;){for(var yYw=Object.getOwnPropertyNames(WI7),vF7=0;vF7<yYw.length;vF7++)bNi[yYw[vF7]]=!0;WI7=Object.getPrototypeOf(WI7)}var LIp=window.trustedTypes?function(A){return trustedTypes.isHTML(A)||trustedTypes.isScript(A)||trustedTypes.isScriptURL(A)}:function(){return!1},pUC=UU(function(A){var t=hFC(A);
A=function(){return t.apply(this,arguments)||this};
_.R(A,t);A.createPropertiesForAttributes=function(){for(var f=this.observedAttributes,X=0;X<f.length;X++)this.prototype._createPropertyAccessor(mE(f[X]))};
A.attributeNameForProperty=function(f){return bd(f)};
A.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);t.prototype._initializeProperties.call(this)};
A.prototype._initializeProtoProperties=function(f){for(var X in f)this._setProperty(X,f[X])};
A.prototype._ensureAttribute=function(f,X){this.hasAttribute(f)||this._valueToNodeAttribute(this,X,f)};
A.prototype._serializeValue=function(f){switch(typeof f){case "object":if(f instanceof Date)return f.toString();if(f){if(LIp(f))return f;try{return JSON.stringify(f)}catch(X){return""}}default:return t.prototype._serializeValue.call(this,f)}};
A.prototype._deserializeValue=function(f,X){switch(X){case Object:try{var Q=JSON.parse(f)}catch(q){Q=f}break;case Array:try{Q=JSON.parse(f)}catch(q){Q=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+f)}break;case Date:Q=isNaN(f)?String(f):Number(f);Q=new Date(Q);break;default:Q=t.prototype._deserializeValue.call(this,f,X)}return Q};
A.prototype._definePropertyAccessor=function(f,X){if(!bNi[f]){var Q=this[f];Q!==void 0&&(this.__data?this._setPendingProperty(f,Q):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[f]=Q))}t.prototype._definePropertyAccessor.call(this,f,X)};
A.prototype._hasAccessor=function(f){return this.__dataHasAccessor&&this.__dataHasAccessor[f]};
A.prototype._isPropertyPending=function(f){return!!(this.__dataPending&&f in this.__dataPending)};
return A});var EFk={"dom-if":!0,"dom-repeat":!0},nFl=!1,DLk=!1,FIw=function(){var A=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(t){return t}});
return function(t,f,X){f=f.getAttribute(X);A&&X.startsWith("on-")?t.setAttribute(X,A.createScript(f,X)):t.setAttribute(X,f)}}(),IK8=UU(function(A){var t=function(){return A.apply(this,arguments)||this};
_.R(t,A);t._parseTemplate=function(f,X){if(!f._templateInfo){var Q=f._templateInfo={};Q.nodeInfoList=[];Q.nestedTemplate=!!X;Q.stripWhiteSpace=X&&X.stripWhiteSpace||f.hasAttribute&&f.hasAttribute("strip-whitespace");this._parseTemplateContent(f,Q,{parent:null})}return f._templateInfo};
t._parseTemplateContent=function(f,X,Q){return this._parseTemplateNode(f.content,X,Q)};
t._parseTemplateNode=function(f,X,Q){var q=!1;f.localName!="template"||f.hasAttribute("preserve-content")?f.localName==="slot"&&(X.hasInsertionPoint=!0):q=this._parseTemplateNestedTemplate(f,X,Q)||q;if(!nFl){nFl=!0;var e=document.createElement("textarea");e.placeholder="a";DLk=e.placeholder===e.textContent}DLk&&f.localName==="textarea"&&f.placeholder&&f.placeholder===f.textContent&&(f.textContent=null);f.firstChild&&this._parseTemplateChildNodes(f,X,Q);f.hasAttributes&&f.hasAttributes()&&(q=this._parseTemplateNodeAttributes(f,
X,Q)||q);return q||Q.noted};
t._parseTemplateChildNodes=function(f,X,Q){if(f.localName!=="script"&&f.localName!=="style")for(var q=f.firstChild,e=0,G;q;q=G){if(q.localName=="template"){var N=q.getAttribute("is");if(N&&EFk[N])for(G=q,G.removeAttribute("is"),q=G.ownerDocument.createElement(N),G.parentNode.replaceChild(q,G),q.appendChild(G);G.attributes.length;)N=G.attributes[0].name,FIw(q,G,N),G.removeAttribute(N)}G=q.nextSibling;if(q.nodeType===Node.TEXT_NODE){for(N=G;N&&N.nodeType===Node.TEXT_NODE;)q.textContent+=N.textContent,
G=N.nextSibling,f.removeChild(N),N=G;if(X.stripWhiteSpace&&!q.textContent.trim()){f.removeChild(q);continue}}N={parentIndex:e,parentInfo:Q};this._parseTemplateNode(q,X,N)&&(N.infoIndex=X.nodeInfoList.push(N)-1);q.parentNode&&e++}};
t._parseTemplateNestedTemplate=function(f,X,Q){X=this._parseTemplate(f,X);(X.content=f.content.ownerDocument.createDocumentFragment()).appendChild(f.content);Q.templateInfo=X;return!0};
t._parseTemplateNodeAttributes=function(f,X,Q){for(var q=!1,e=Array.from(f.attributes),G=e.length-1,N;N=e[G];G--)q=this._parseTemplateNodeAttribute(f,X,Q,N.name,N.value)||q;return q};
t._parseTemplateNodeAttribute=function(f,X,Q,q,e){return q.slice(0,3)==="on-"?(f.removeAttribute(q),Q.events=Q.events||[],Q.events.push({name:q.slice(3),value:e}),!0):q==="id"?(Q.id=e,!0):!1};
t._contentForTemplate=function(f){var X=f._templateInfo;return X&&X.content||f.content};
t.prototype._stampTemplate=function(f,X){f&&!f.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(f);X=X||this.constructor._parseTemplate(f);var Q=X.nodeInfoList;f=document.importNode(X.content||f.content,!0);f.__noInsertionPoint=!X.hasInsertionPoint;var q=f.nodeList=Array(Q.length);f.$={};for(var e=0,G=Q.length,N=void 0;e<G&&(N=Q[e]);e++){var z=q[e]=CMu(f,N);N.id&&(f.$[N.id]=z);var T=z,O=N,c=X;O.templateInfo&&(T._templateInfo=O.templateInfo,T._parentTemplateInfo=
c);if(N.events&&N.events.length)for(T=0,O=N.events,c=void 0;T<O.length&&(c=O[T]);T++)this._addMethodEventListenerToNode(z,c.name,c.value,this)}return f};
t.prototype._addMethodEventListenerToNode=function(f,X,Q,q){Q=hyb(q||f,Q);this._addEventListenerToNode(f,X,Q);return Q};
t.prototype._addEventListenerToNode=function(f,X,Q){f.addEventListener(X,Q)};
t.prototype._removeEventListenerFromNode=function(f,X,Q){f.removeEventListener(X,Q)};
return t});var nV=0,xH=[],xLS={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},jgp=/[A-Z]/,YQC=function(A,t,f,X,Q){var q=Q?yk(A):A;if(t=t[q])for(q=0;q<t.length;q++){var e=t[q];if(e.info.lastRun!==nV&&(!Q||vY5(A,e.trigger))){e.info.lastRun=nV;e=e.info;for(var G=f,N=X,z=0,T=G.length-1,O=-1;z<=T;){var c=z+T>>1,B=N.get(G[c].methodInfo)-N.get(e.methodInfo);if(B<0)z=c+1;else if(B>0)T=c-1;else{O=c;break}}O<
0&&(O=T+1);G.splice(O,0,e)}}},SjT=[],VvS=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"),GI=UU(function(A){var t=IK8(pUC(A));
A=function(){var f=t.call(this)||this;f.__isPropertyEffectsClient=!0;return f};
_.R(A,t);A.prototype._initializeProperties=function(){t.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};
A.prototype._registerHost=function(){if(eP.length){var f=eP[eP.length-1];f._enqueueClient(this);this.__dataHost=f}};
A.prototype._initializeProtoProperties=function(f){this.__data=Object.create(f);this.__dataPending=Object.create(f);this.__dataOld={}};
A.prototype._initializeInstanceProperties=function(f){var X=this.__readOnly,Q;for(Q in f)X&&X[Q]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Q]=this.__dataPending[Q]=f[Q])};
A.prototype._addPropertyEffect=function(f,X,Q){this._createPropertyAccessor(f,X=="__readOnly");var q=y0b(this,X,!0)[f];q||(q=this[X][f]=[]);q.push(Q)};
A.prototype._removePropertyEffect=function(f,X,Q){f=y0b(this,X,!0)[f];Q=f.indexOf(Q);Q>=0&&f.splice(Q,1)};
A.prototype._hasPropertyEffect=function(f,X){X=this[X];return!(!X||!X[f])};
A.prototype._hasReadOnlyEffect=function(f){return this._hasPropertyEffect(f,"__readOnly")};
A.prototype._hasNotifyEffect=function(f){return this._hasPropertyEffect(f,"__notifyEffects")};
A.prototype._hasReflectEffect=function(f){return this._hasPropertyEffect(f,"__reflectEffects")};
A.prototype._hasComputedEffect=function(f){return this._hasPropertyEffect(f,"__computeEffects")};
A.prototype._setPendingPropertyOrPath=function(f,X,Q,q){if(q||yk(Array.isArray(f)?f[0]:f)!==f){if(!q&&(q=EI(this,f),f=W0x(this,f,X),!f||!t.prototype._shouldPropertyChange.call(this,f,X,q)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(f,X,Q)){if(Q=this.__dataLinkedPaths)for(var e in Q)q=Q[e],v9(e,f)?(q=LV(e,q,f),this._setPendingPropertyOrPath(q,X,!0,!0)):v9(q,f)&&(q=LV(q,e,f),this._setPendingPropertyOrPath(q,X,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[f])return this._setPendingProperty(f,
X,Q);this[f]=X}return!1};
A.prototype._setUnmanagedPropertyToNode=function(f,X,Q){if(Q!==f[X]||typeof Q=="object")X==="className"&&(f=(0,_.FA)(f)),f[X]=Q};
A.prototype._setPendingProperty=function(f,X,Q){var q=this.__dataHasPaths&&W9(f);if(this._shouldPropertyChange(f,X,(q?this.__dataTemp:this.__data)[f])){this.__dataPending||(this.__dataPending={},this.__dataOld={});f in this.__dataOld||(this.__dataOld[f]=this.__data[f]);q?this.__dataTemp[f]=X:this.__data[f]=X;this.__dataPending[f]=X;if(q||this.__notifyEffects&&this.__notifyEffects[f])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[f]=Q;return!0}return!1};
A.prototype._setProperty=function(f,X){this._setPendingProperty(f,X,!0)&&this._invalidateProperties()};
A.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
A.prototype._enqueueClient=function(f){this.__dataPendingClients=this.__dataPendingClients||[];f!==this&&this.__dataPendingClients.push(f)};
A.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
A.prototype.__enableOrFlushClients=function(){var f=this.__dataPendingClients;if(f){this.__dataPendingClients=null;for(var X=0;X<f.length;X++){var Q=f[X];Q.__dataEnabled?Q.__dataPending&&Q._flushProperties():Q._enableProperties()}}};
A.prototype._readyClients=function(){this.__enableOrFlushClients()};
A.prototype.setProperties=function(f,X){for(var Q in f)!X&&this.__readOnly&&this.__readOnly[Q]||this._setPendingPropertyOrPath(Q,f[Q],!0);this._invalidateProperties()};
A.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
A.prototype._propertiesChanged=function(f,X,Q){f=this.__dataHasPaths;this.__dataHasPaths=!1;var q;if(q=this.__computeEffects)if(zFf){nV++;var e=F0x(this),G=[],N;for(N in X)YQC(N,q,G,e,f);for(;N=G.shift();)xab(this,"",X,Q,N)&&YQC(N.methodInfo,q,G,e,f);Object.assign(Q,this.__dataOld);Object.assign(X,this.__dataPending);this.__dataPending=null}else for(e=X;D_(this,q,e,Q,f);)Object.assign(Q,this.__dataOld),Object.assign(X,this.__dataPending),e=this.__dataPending,this.__dataPending=null;q=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(X,Q,f);this._flushClients();D_(this,this.__reflectEffects,X,Q,f);D_(this,this.__observeEffects,X,Q,f);if(q){e=this.__notifyEffects;G=nV++;for(var z in q)if(q[z]){if(N=e){var T=e;N=G;var O=z,c=X,B=Q,h=f,W=!1,L=h?yk(O):O;if(T=T[L]){L=0;for(var E=T.length,D=void 0;L<E&&(D=T[L]);L++)D.info&&D.info.lastRun===N||h&&!vY5(O,D.trigger)||(D.info&&(D.info.lastRun=N),D.fn(this,O,c,B,D.info,h,void 0),W=!0)}N=W}if(N)var S=!0;else{if(N=f)N=z,O=X,c=yk(N),c!==
N?(c=bd(c)+"-changed",p$T(this,c,O[N],N),N=!0):N=!1;N&&(S=!0)}}var Z;S&&(Z=this.__dataHost)&&Z._invalidateProperties&&Z._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
A.prototype._propagatePropertyChanges=function(f,X,Q){this.__propagateEffects&&D_(this,this.__propagateEffects,f,X,Q);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,f,X,Q)};
A.prototype._runEffectsForTemplate=function(f,X,Q,q){var e=this,G=function(N,z){D_(e,f.propertyEffects,N,Q,z,f.nodeList);for(var T=f.firstChild;T;T=T.nextSibling)e._runEffectsForTemplate(T,N,Q,z)};
f.runEffects?f.runEffects(G,X,q):G(X,q)};
A.prototype.linkPaths=function(f,X){f=pV(f);X=pV(X);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[f]=X};
A.prototype.unlinkPaths=function(f){f=pV(f);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[f]};
A.prototype.notifySplices=function(f,X){var Q={path:""};f=EI(this,f,Q);K0s(this,f,Q.path,X)};
A.prototype.get=function(f,X){return EI(X||this,f)};
A.prototype.set=function(f,X,Q){Q?W0x(Q,f,X):this.__readOnly&&this.__readOnly[f]||this._setPendingPropertyOrPath(f,X,!0)&&this._invalidateProperties()};
A.prototype.push=function(f){var X=_.Hu.apply(1,arguments),Q={path:""},q=EI(this,f,Q),e=q.length,G=q.push.apply(q,_.YV(X));X.length&&YH(this,q,Q.path,e,X.length,[]);return G};
A.prototype.pop=function(f){var X={path:""};f=EI(this,f,X);var Q=!!f.length,q=f.pop();Q&&YH(this,f,X.path,f.length,0,[q]);return q};
A.prototype.splice=function(f,X,Q){var q=_.Hu.apply(3,arguments),e={path:""},G=EI(this,f,e);X<0?X=G.length-Math.floor(-X):X&&(X=Math.floor(X));var N=arguments.length===2?G.splice(X):G.splice.apply(G,[X,Q].concat(_.YV(q)));(q.length||N.length)&&YH(this,G,e.path,X,q.length,N);return N};
A.prototype.shift=function(f){var X={path:""};f=EI(this,f,X);var Q=!!f.length,q=f.shift();Q&&YH(this,f,X.path,0,0,[q]);return q};
A.prototype.unshift=function(f){var X=_.Hu.apply(1,arguments),Q={path:""},q=EI(this,f,Q),e=q.unshift.apply(q,_.YV(X));X.length&&YH(this,q,Q.path,0,X.length,[]);return e};
A.prototype.notifyPath=function(f,X){if(arguments.length==1){var Q={path:""};X=EI(this,f,Q);Q=Q.path}else Q=Array.isArray(f)?pV(f):f;this._setPendingPropertyOrPath(Q,X,!0,!0)&&this._invalidateProperties()};
A.prototype._createReadOnlyProperty=function(f,X){this._addPropertyEffect(f,"__readOnly");X&&(this["_set"+(f[0].toUpperCase()+f.substring(1))]=function(Q){this._setProperty(f,Q)})};
A.prototype._createPropertyObserver=function(f,X,Q){var q={property:f,method:X,dynamicFn:!!Q};this._addPropertyEffect(f,"__observeEffects",{fn:L0b,info:q,trigger:{name:f}});Q&&this._addPropertyEffect(X,"__observeEffects",{fn:L0b,info:q,trigger:{name:X}})};
A.prototype._createMethodObserver=function(f,X){var Q=H8s(f);if(!Q)throw Error("Fd`"+f);oYx(this,Q,"__observeEffects",Idq,null,X)};
A.prototype._createNotifyingProperty=function(f){this._addPropertyEffect(f,"__notifyEffects",{fn:EYx,info:{eventName:bd(f)+"-changed",property:f}})};
A.prototype._createReflectedProperty=function(f){var X=this.constructor.attributeNameForProperty(f);X[0]==="-"?console.warn("Property "+f+" cannot be reflected to attribute "+X+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(f,"__reflectEffects",{fn:nY0,info:{attrName:X}})};
A.prototype._createComputedProperty=function(f,X,Q){var q=H8s(X);if(!q)throw Error("Gd`"+X);X=oYx(this,q,"__computeEffects",xab,f,Q);y0b(this,"__computeInfo")[f]=X};
A.prototype._marshalArgs=function(f,X,Q){for(var q=this.__data,e=[],G=0,N=f.length;G<N;G++){var z=f[G],T=z.name,O=z.structured,c=z.wildcard,B=z.value;z.literal||(c?(z=v9(T,X),O=adx(q,Q,z?X:T),B={path:z?X:T,value:O,base:z?EI(q,T):O}):B=O?adx(q,Q,T):q[T]);if(jU&&!this._overrideLegacyUndefined&&B===void 0&&f.length>1)return xH;e[G]=B}return e};
A.addPropertyEffect=function(f,X,Q){this.prototype._addPropertyEffect(f,X,Q)};
A.createPropertyObserver=function(f,X,Q){this.prototype._createPropertyObserver(f,X,Q)};
A.createMethodObserver=function(f,X){this.prototype._createMethodObserver(f,X)};
A.createNotifyingProperty=function(f){this.prototype._createNotifyingProperty(f)};
A.createReadOnlyProperty=function(f,X){this.prototype._createReadOnlyProperty(f,X)};
A.createReflectedProperty=function(f){this.prototype._createReflectedProperty(f)};
A.createComputedProperty=function(f,X,Q){this.prototype._createComputedProperty(f,X,Q)};
A.bindTemplate=function(f){return this.prototype._bindTemplate(f)};
A.prototype._bindTemplate=function(f,X){var Q=this.constructor._parseTemplate(f),q=this.__preBoundTemplateInfo==Q;if(!q)for(var e in Q.propertyEffects)this._createPropertyAccessor(e);X?(Q=Object.create(Q),Q.wasPreBound=q,this.__templateInfo?(f=f._parentTemplateInfo||this.__templateInfo,X=f.lastChild,Q.parent=f,f.lastChild=Q,(Q.previousSibling=X)?X.nextSibling=Q:f.firstChild=Q):this.__templateInfo=Q):this.__preBoundTemplateInfo=Q;return Q};
A._addTemplatePropertyEffect=function(f,X,Q){(f.hostProps=f.hostProps||{})[X]=!0;f=f.propertyEffects=f.propertyEffects||{};(f[X]=f[X]||[]).push(Q)};
A.prototype._stampTemplate=function(f,X){X=X||this._bindTemplate(f,!0);eP.push(this);f=t.prototype._stampTemplate.call(this,f,X);eP.pop();X.nodeList=f.nodeList;if(!X.wasPreBound)for(var Q=X.childNodes=[],q=f.firstChild;q;q=q.nextSibling)Q.push(q);f.templateInfo=X;Q=X.nodeList;q=X.nodeInfoList;if(q.length)for(var e=0;e<q.length;e++){var G=Q[e],N=q[e].bindings;if(N)for(var z=0;z<N.length;z++){var T=N[z],O=G,c=T;if(c.isCompound){for(var B=O.__dataCompoundStorage||(O.__dataCompoundStorage={}),h=c.parts,
W=Array(h.length),L=0;L<h.length;L++)W[L]=h[L].literal;h=c.target;B[h]=W;c.literal&&c.kind=="property"&&(h==="className"&&(O=(0,_.FA)(O)),O[h]=c.literal)}Z8x(G,this,T)}G.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(X,this.__data,null,!1),this._flushClients());return f};
A.prototype._removeBoundDom=function(f){f=f.templateInfo;var X=f.previousSibling,Q=f.nextSibling,q=f.parent;X?X.nextSibling=Q:q&&(q.firstChild=Q);Q?Q.previousSibling=X:q&&(q.lastChild=X);f.nextSibling=f.previousSibling=null;f=f.childNodes;for(X=0;X<f.length;X++)Q=f[X],(0,_.FA)((0,_.FA)(Q).parentNode).removeChild(Q)};
A._parseTemplateNode=function(f,X,Q){var q=t._parseTemplateNode.call(this,f,X,Q);if(f.nodeType===Node.TEXT_NODE){var e=this._parseBindings(f.textContent,X);e&&(f.textContent=dag(e)||" ",VMu(this,X,Q,"text","textContent",e),q=!0)}return q};
A._parseTemplateNodeAttribute=function(f,X,Q,q,e){var G=this._parseBindings(e,X);if(G){e=q;var N="property";jgp.test(q)?N="attribute":q[q.length-1]=="$"&&(q=q.slice(0,-1),N="attribute");var z=dag(G);z&&N=="attribute"&&(q=="class"&&f.hasAttribute("class")&&(z+=" "+f.getAttribute(q)),f.setAttribute(q,z));N=="attribute"&&e=="disable-upgrade$"&&f.setAttribute(q,"");f.localName==="input"&&e==="value"&&f.setAttribute(e,"");f.removeAttribute(e);N==="property"&&(q=mE(q));VMu(this,X,Q,N,q,G,z);return!0}return t._parseTemplateNodeAttribute.call(this,
f,X,Q,q,e)};
A._parseTemplateNestedTemplate=function(f,X,Q){var q=t._parseTemplateNestedTemplate.call(this,f,X,Q),e=f.parentNode,G=Q.templateInfo,N=e.localName==="dom-if",z=e.localName==="dom-repeat";f6&&(N||z)&&(e.removeChild(f),Q=Q.parentInfo,Q.templateInfo=G,Q.noted=!0,q=!1);f=G.hostProps;if(XX&&N)f&&(X.hostProps=Object.assign(X.hostProps||{},f),f6||(Q.parentInfo.noted=!0));else for(var T in f)VMu(this,X,Q,"property","_host_"+T,[{mode:"{",source:T,dependencies:[T],hostProp:!0}]);return q};
A._parseBindings=function(f,X){for(var Q=[],q=0,e;(e=VvS.exec(f))!==null;){e.index>q&&Q.push({literal:f.slice(q,e.index)});q=e[1][0];var G=!!e[2];e=e[3].trim();var N=!1,z="",T=-1;q=="{"&&(T=e.indexOf("::"))>0&&(z=e.substring(T+2),e=e.substring(0,T),N=!0);T=H8s(e);var O=[];if(T){var c=T,B=c.args;c=c.methodName;for(var h=0;h<B.length;h++){var W=B[h];W.literal||O.push(W)}if((B=X.dynamicFns)&&B[c]||T.static)O.push(c),T.dynamicFn=!0}else O.push(e);Q.push({source:e,mode:q,negate:G,customEvent:N,signature:T,
dependencies:O,event:z});q=VvS.lastIndex}q&&q<f.length&&(f=f.substring(q))&&Q.push({literal:f});return Q.length?Q:null};
A._evaluateBinding=function(f,X,Q,q,e,G){f=X.signature?Idq(f,Q,q,e,X.signature):Q!=X.source?EI(f,X.source):G&&W9(Q)?EI(f,Q):f.__data[Q];X.negate&&(f=!f);return f};
_.PV.Object.defineProperties(A.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return xLS}}});
return A}),eP=[];var ZNi=window.ShadyCSS&&window.ShadyCSS.cssBuild,lA=UU(function(A){function t(X,Q,q,e){if(!ZNi){for(var G=Q.content.querySelectorAll("style"),N=kqx(Q),z=r0q(q),T=Q.content.firstElementChild,O=0;O<z.length;O++){var c=z[O];c.textContent=X._processStyleText(c.textContent,e);Q.content.insertBefore(c,T)}for(T=z=0;T<N.length;T++)O=N[T],c=G[z],c!==O?(O=O.cloneNode(!0),c.parentNode.insertBefore(O,c)):z++,O.textContent=X._processStyleText(O.textContent,e)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Q,
q);if(TRS&&ZNi&&Ghb&&(Q=Q.content.querySelectorAll("style"))){var B="";Array.from(Q).forEach(function(h){B+=h.textContent;h.parentNode.removeChild(h)});
X._styleSheet=new CSSStyleSheet;X._styleSheet.replaceSync(B)}}
var f=mL8(GI(A));A=function(){return f.call(this)||this};
_.R(A,f);A._finalizeClass=function(){f._finalizeClass.call(this);var X;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(X=this.__ownObservers)&&this.createObservers(X,this._properties);this._prepareTemplate()};
A._prepareTemplate=function(){var X=this.template;X&&(typeof X==="string"?(console.error("template getter must return HTMLTemplateElement"),X=null):kH||(X=X.cloneNode(!0)));this.prototype._template=X};
A.createProperties=function(X){for(var Q in X){var q=this.prototype,e=Q,G=X[Q],N=X;G.computed&&(G.readOnly=!0);G.computed&&(q._hasReadOnlyEffect(e)?console.warn("Cannot redefine computed property '"+e+"'."):q._createComputedProperty(e,G.computed,N));G.readOnly&&!q._hasReadOnlyEffect(e)?q._createReadOnlyProperty(e,!G.computed):G.readOnly===!1&&q._hasReadOnlyEffect(e)&&console.warn("Cannot make readOnly property '"+e+"' non-readOnly.");G.reflectToAttribute&&!q._hasReflectEffect(e)?q._createReflectedProperty(e):
G.reflectToAttribute===!1&&q._hasReflectEffect(e)&&console.warn("Cannot make reflected property '"+e+"' non-reflected.");G.notify&&!q._hasNotifyEffect(e)?q._createNotifyingProperty(e):G.notify===!1&&q._hasNotifyEffect(e)&&console.warn("Cannot make notify property '"+e+"' non-notify.");G.observer&&q._createPropertyObserver(e,G.observer,N[G.observer]);q._addPropertyToAttributeMap(e)}};
A.createObservers=function(X,Q){for(var q=this.prototype,e=0;e<X.length;e++)q._createMethodObserver(X[e],Q)};
A.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);f.prototype._initializeProperties.call(this);this.rootPath=lKE;this.importPath=this.constructor.importPath;var X=this.constructor;if(!X.hasOwnProperty("__propertyDefaults")){X.__propertyDefaults=null;var Q=X._properties,q;for(q in Q){var e=Q[q];"value"in e&&(X.__propertyDefaults=X.__propertyDefaults||{},X.__propertyDefaults[q]=e)}}if(X=X.__propertyDefaults)for(var G in X)Q=X[G],
this._canApplyPropertyDefault(G)&&(Q=typeof Q.value=="function"?Q.value.call(this):Q.value,this._hasAccessor(G)?this._setPendingProperty(G,Q,!0):this[G]=Q)};
A.prototype._canApplyPropertyDefault=function(X){return!this.hasOwnProperty(X)};
A._processStyleText=function(X,Q){return NPq(X,Q)};
A._finalizeTemplate=function(X){var Q=this.prototype._template;if(Q&&!Q.__polymerFinalized){Q.__polymerFinalized=!0;var q=this.importPath;q=q?_.h4(q):"";t(this,Q,X,q);this.prototype._bindTemplate(Q)}};
A.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);f.prototype.connectedCallback.call(this)};
A.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);f.prototype.ready.call(this)};
A.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));f.prototype._readyClients.call(this)};
A.prototype._attachDom=function(X){var Q=(0,_.FA)(this);if(Q.attachShadow)return X?(Q.shadowRoot||(Q.attachShadow({mode:"open",shadyUpgradeFragment:X}),Q.shadowRoot.appendChild(X),this.constructor._styleSheet&&(Q.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),uDK&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Q.shadowRoot),Q.shadowRoot):null;throw Error("Id");};
A.prototype.updateStyles=function(X){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,X)};
A.prototype.resolveUrl=function(X,Q){!Q&&this.importPath&&(Q=_.h4(this.importPath));return _.h4(X,Q)};
A._parseTemplateContent=function(X,Q,q){Q.dynamicFns=Q.dynamicFns||this._properties;return f._parseTemplateContent.call(this,X,Q,q)};
A._addTemplatePropertyEffect=function(X,Q,q){!QV||Q in this._properties||q.info.part.signature&&q.info.part.signature.static||q.info.part.hostProp||X.nestedTemplate||console.warn("Property '"+Q+"' used in template but not declared in 'properties'; attribute will not be observed.");return f._addTemplatePropertyEffect.call(this,X,Q,q)};
_.PV.Object.defineProperties(A,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var X=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof X==="function"&&(X=X());if(X===void 0){if(X=this.hasOwnProperty("is")){X=this.is;var Q=null;if(X&&(!qP||NRw)&&(Q=Vk.import(X,"template"),qP&&!Q))throw Error("Hd`"+X);X=Q}X=X||Object.getPrototypeOf(this.prototype).constructor.template}this._template=X}return this._template},
set:function(X){this._template=X}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var X=this.importMeta;X?this._importPath=uIb(X.url):this._importPath=(X=Vk.import(this.is))&&X.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return A});var oFT=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(A){return A}}),Juu=function(A,t){dLf(A,t);
this.value=t.reduce(function(f,X,Q){return f+UBz(X)+A[Q+1]},A[0]).toString()},dLf;
Juu.prototype.toString=function(){return this.value};
_.SQ7=function(A){var t=_.Hu.apply(1,arguments);dLf(A,t);var f=document.createElement("template");t=t.reduce(function(X,Q,q){if(Q instanceof HTMLTemplateElement)Q=Q.innerHTML;else if(Q instanceof Juu)Q=UBz(Q);else throw Error("Kd`"+Q);return X+Q+A[q+1]},A[0]);
oFT&&(t=oFT.createHTML(t));f.innerHTML=t;return f};
dLf=function(A,t){if(!Array.isArray(A)||!Array.isArray(A.raw)||t.length!==A.length-1)throw new TypeError("Ld");};var N$=lA(HTMLElement);var $Lp=UU(function(A){var t=lA(A);A=function(){var f=t.call(this)||this;f.__lastItems=null;f.__lastMulti=null;f.__selectedMap=null;return f};
_.R(A,t);A.prototype.__updateSelection=function(f,X){var Q=X.path;Q=="items"?(X=X.base||[],Q=this.__lastItems,f!==this.__lastMulti&&this.clearSelection(),Q&&(Q=qu5(X,Q),this.__applySplices(Q)),this.__lastItems=X,this.__lastMulti=f):X.path=="items.splices"?this.__applySplices(X.value.indexSplices):(f=Q.slice(6),X=parseInt(f,10),f.indexOf(".")<0&&f==X&&this.__deselectChangedIdx(X))};
A.prototype.__applySplices=function(f){for(var X=this,Q=this.__selectedMap,q={},e=0;e<f.length;q={s$jscomp$109:void 0},e++){q.s$jscomp$109=f[e];Q.forEach(function(T){return function(O,c){O<T.s$jscomp$109.index||(O>=T.s$jscomp$109.index+T.s$jscomp$109.removed.length?Q.set(c,O+T.s$jscomp$109.addedCount-T.s$jscomp$109.removed.length):Q.set(c,-1))}}(q));
for(var G=0;G<q.s$jscomp$109.addedCount;G++){var N=q.s$jscomp$109.index+G;Q.has(this.items[N])&&Q.set(this.items[N],N)}}this.__updateLinks();var z=0;Q.forEach(function(T,O){T<0?(X.multi?X.splice("selected",z,1):X.selected=X.selectedItem=null,Q.delete(O)):z++})};
A.prototype.__updateLinks=function(){var f=this;this.__dataLinkedPaths={};if(this.multi){var X=0;this.__selectedMap.forEach(function(Q){Q>=0&&f.linkPaths("items."+Q,"selected."+X++)})}else this.__selectedMap.forEach(function(Q){f.linkPaths("selected","items."+Q);
f.linkPaths("selectedItem","items."+Q)})};
A.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
A.prototype.isSelected=function(f){return this.__selectedMap.has(f)};
A.prototype.isIndexSelected=function(f){return this.isSelected(this.items[f])};
A.prototype.__deselectChangedIdx=function(f){var X=this,Q=this.__selectedIndexForItemIndex(f);if(Q>=0){var q=0;this.__selectedMap.forEach(function(e,G){Q==q++&&X.deselect(G)})}};
A.prototype.__selectedIndexForItemIndex=function(f){if(f=this.__dataLinkedPaths["items."+f])return parseInt(f.slice(9),10)};
A.prototype.deselect=function(f){var X=this.__selectedMap.get(f);if(X>=0){this.__selectedMap.delete(f);var Q;this.multi&&(Q=this.__selectedIndexForItemIndex(X));this.__updateLinks();this.multi?this.splice("selected",Q,1):this.selected=this.selectedItem=null}};
A.prototype.deselectIndex=function(f){this.deselect(this.items[f])};
A.prototype.select=function(f){this.selectIndex(this.items.indexOf(f))};
A.prototype.selectIndex=function(f){var X=this.items[f];this.isSelected(X)?this.toggle&&this.deselectIndex(f):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(X,f),this.__updateLinks(),this.multi?this.push("selected",X):this.selected=this.selectedItem=X)};
_.PV.Object.defineProperties(A,{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 A}),HNT=$Lp(N$),uA=function(){return HNT.apply(this,arguments)||this};
_.R(uA,HNT);_.PV.Object.defineProperties(uA,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(uA.is,uA);var aKi=window.Polymer;window.Polymer=function(A){return window.Polymer._polymerFn(A)};
aKi&&Object.assign(Polymer,aKi);Polymer._polymerFn=function(){throw Error("Md");};/*

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:NPq,resolveUrl:_.h4,pathFromUrl:uIb};Polymer.DomModule=Vk;Polymer.Async={timeOut:_.Jh,animationFrame:_.iP,idlePeriod:Mvl,microTask:w$};Polymer.dedupingMixin=UU;Polymer.wrap=_.FA;Polymer.PropertiesChanged=hFC;Polymer.telemetry={instanceCount:RF7,incrementInstanceCount:function(){RF7++},
registrations:i8T,register:O8x,dumpRegistrations:function(){i8T.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=mL8;Polymer.CaseMap={dashToCamelCase:mE,camelToDashCase:bd};Polymer.PropertyAccessors=pUC;Polymer.TemplateStamp=IK8;Polymer.Path={isPath:W9,root:yk,isAncestor:Ryb,isDescendant:v9,translate:LV,matches:maT,normalize:pV,split:b8z,get:EI,set:W0x,isDeep:W9};Polymer.Settings={useShadow:r$,useNativeCSSProperties:Qgb,useNativeCustomElements:qQC,get rootPath(){return lKE},setRootPath:function(A){lKE=A},
get sanitizeDOMValue(){return Iw},setSanitizeDOMValue:function(A){Iw=A},
get passiveTouchGestures(){return Mtx},setPassiveTouchGestures:function(A){Mtx=A},
get strictTemplatePolicy(){return qP},setStrictTemplatePolicy:function(A){qP=A},
get allowTemplateFromDomModule(){return NRw},setAllowTemplateFromDomModule:function(A){NRw=A},
get legacyOptimizations(){return kH},setLegacyOptimizations:function(A){kH=A},
get syncInitialRender(){return uDK},setSyncInitialRender:function(A){uDK=A},
get legacyUndefined(){return jU},setLegacyUndefined:function(A){jU=A},
get legacyWarnings(){return QV},setLegacyWarnings:function(A){QV=A},
get orderedComputed(){return zFf},setOrderedComputed:function(A){zFf=A},
get fastDomIf(){return XX},setFastDomIf:function(A){XX=A},
get removeNestedTemplates(){return f6},setRemoveNestedTemplates:function(A){f6=A},
get suppressTemplateNotifications(){return Q7},setSuppressTemplateNotifications:Q7};Polymer.rootPath!==void 0&&(lKE=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Iw=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Mtx=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(qP=Polymer.strictTemplatePolicy);NRw=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(kH=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(uDK=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(jU=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(QV=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(zFf=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(XX=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(f6=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Q7=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Iw},
set:function(A){Iw=A}});Polymer.PropertyEffects=GI;Polymer.StyleGather={stylesFromModules:sJb,stylesFromModule:w$z,stylesFromTemplate:kqx,stylesFromModuleImports:r0q,cssFromModules:ttx,cssFromModule:Au5,cssFromTemplate:fSx,cssFromModuleImports:function(A){return(A=Vk.import(A))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A):""}};Polymer.ElementMixin=lA;Polymer.updateStyles=function(A){window.ShadyCSS&&window.ShadyCSS.styleDocument(A)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:qu5};Polymer.html=_.SQ7;Polymer.htmlLiteral=function(A){return new Juu(A,_.Hu.apply(1,arguments))};Polymer.Element=N$;Polymer.ArraySelectorMixin=$Lp;Polymer.ArraySelector=uA;var KIw=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,gFw=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Zds=/@media\s(.*)/;var NSx=null,lSb=window.HTMLImports&&window.HTMLImports.whenReady||null,utq;var wU7=null,zI=null,Pr=function(){this.customStyles=[];this.enqueued=!1;zWx(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},sgT=function(A){!A.enqueued&&zI&&(A.enqueued=!0,zWx(zI))};
Pr.prototype.addCustomStyle=function(A){A.__seenByShadyCSS||(A.__seenByShadyCSS=!0,this.customStyles.push(A),sgT(this))};
Pr.prototype.getStyleForCustomStyle=function(A){if(A.__shadyCSSCachedStyle)return A.__shadyCSSCachedStyle;var t;A.getStyle?t=A.getStyle():t=A;return t};
Pr.prototype.processStyles=function(){for(var A=this.customStyles,t=0;t<A.length;t++){var f=A[t];if(!f.__shadyCSSCachedStyle){var X=this.getStyleForCustomStyle(f);X&&(X=X.__appliedElement||X,wU7&&wU7(X),f.__shadyCSSCachedStyle=X)}}return A};
Pr.prototype.addCustomStyle=Pr.prototype.addCustomStyle;Pr.prototype.getStyleForCustomStyle=Pr.prototype.getStyleForCustomStyle;Pr.prototype.processStyles=Pr.prototype.processStyles;Object.defineProperties(Pr.prototype,{transformCallback:{get:function(){return wU7},
set:function(A){wU7=A}},
validateCallback:{get:function(){return zI},
set:function(A){var t=!1;zI||(t=!0);zI=A;t&&sgT(this)}}});var TSx=!(window.ShadyDOM&&window.ShadyDOM.inUse),Pgu,zS;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(zS=window.ShadyCSS.cssBuild);var khl=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Pgu=window.ShadyCSS.nativeCss:window.ShadyCSS?(isp(window.ShadyCSS),window.ShadyCSS=void 0):isp(window.WebComponents&&window.WebComponents.flags);var jDq=Pgu;var rYE=new Pr;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(A,t){rYE.processStyles();eWx(A,t)},
styleElement:function(){rYE.processStyles()},
styleDocument:function(A){rYE.processStyles();eWx(document.body,A)},
getComputedStyleValue:function(A,t){return GF0(A,t)},
flushCustomStyles:function(){},
nativeCss:jDq,nativeShadow:TSx,cssBuild:zS,disableRuntime:khl});window.ShadyCSS.CustomStyleInterface=rYE;var A7K=window.ShadyCSS.CustomStyleInterface,TI=function(){var A=HTMLElement.call(this)||this;A._style=null;A7K.addCustomStyle(A);return A};
_.R(TI,HTMLElement);TI.prototype.getStyle=function(){if(this._style)return this._style;var A=this.querySelector("style");if(!A)return null;this._style=A;var t=A.getAttribute("include");t&&(A.removeAttribute("include"),A.textContent=ttx(t)+A.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
TI.prototype.getStyle=TI.prototype.getStyle;window.customElements.define("custom-style",TI);Polymer.CustomStyle=TI;var iA=function(){this._timer=this._callback=this._asyncModule=null},OU,fYp;
iA.prototype.setConfig=function(A,t){var f=this;this._asyncModule=A;this._callback=t;this._timer=this._asyncModule.run(function(){f._timer=null;OU.delete(f);f._callback()})};
iA.prototype.cancel=function(){this.isActive()&&(trp(this),OU.delete(this))};
var trp=function(A){A.isActive()&&(A._asyncModule.cancel(A._timer),A._timer=null)};
iA.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
iA.prototype.isActive=function(){return this._timer!=null};
_.cr=function(A,t,f){A instanceof iA?trp(A):A=new iA;A.setConfig(t,f);return A};
OU=new Set;_.Br=function(A){OU.add(A)};
fYp=function(){var A=!!OU.size;OU.forEach(function(t){try{t.flush()}catch(f){setTimeout(function(){throw f;})}});
return A};var cuu=typeof document.head.style.touchAction==="string",Osb=["mousedown","mousemove","mouseup","click"],yub=[0,1,4,2],Xnp;try{Xnp=(new MouseEvent("test",{buttons:1})).buttons===1}catch(A){Xnp=!1}var W_0=Xnp,BSx=!1;(function(){try{var A=Object.defineProperty({},"passive",{get:function(){BSx=!0}});
window.addEventListener("test",null,A);window.removeEventListener("test",null,A)}catch(t){}})();
var hWz=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),RWs=[],Q8K={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Vtl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},mBz=function(A){var t=A.sourceCapabilities;if(!t||t.firesTouchEvents)if(A.__polymerGesturesHandled={skip:!0},A.type==="click"){t=!1;for(var f=E5T(A),X=0;X<f.length;X++){if(f[X].nodeType===Node.ELEMENT_NODE)if(f[X].localName==="label")RWs.push(f[X]);
else if(Q8K[f[X].localName]){var Q=f[X];var q=Array.prototype.slice.call(Q.labels||[]);if(!q.length){q=[];try{var e=Q.getRootNode();if(Q.id){var G=e.querySelectorAll("label[for = '"+Q.id+"']");for(Q=0;Q<G.length;Q++)q.push(G[Q])}}catch(N){}}for(Q=0;Q<q.length;Q++)t=t||RWs.indexOf(q[Q])>-1}if(f[X]===qXl)return}t||(A.preventDefault(),A.stopPropagation())}},qXl=null,M$=null,DBl=0,F_T=0,n55=-1,ISq=!1;
document.addEventListener("touchend",function(A){M$||bsg(!0);qXl=E5T(A)[0];M$=_.cr(M$,_.Jh.after(2500),function(){bsg();M$=qXl=null})},BSx?{passive:!0}:!1);
var E5T=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(A){return A.composedPath&&A.composedPath()||[]},H9={},SU=[];
xBb({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){d$(this.info)},
mousedown:function(A){if(ow(A)){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),f=this;L_l(this.info,function(X){ow(X)||(sI("up",t,X),d$(f.info))},function(X){ow(X)&&sI("up",t,X);
d$(f.info)});
sI("down",t,A)}},
touchstart:function(A){sI("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),A.changedTouches[0],A)},
touchend:function(A){sI("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),A.changedTouches[0],A)}});
xBb({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(A){this.moves.length>2&&this.moves.shift();this.moves.push(A)},
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;d$(this.info)},
mousedown:function(A){if(ow(A)){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),f=this,X=function(Q){var q=Q.clientX,e=Q.clientY;jGp(f.info,q,e)&&(f.info.state=f.info.started?Q.type==="mouseup"?"end":"track":"start",f.info.state==="start"&&$H("tap"),f.info.addMove({x:q,y:e}),ow(Q)||(f.info.state="end",d$(f.info)),t&&Yub(f.info,t,Q),f.info.started=!0)};
L_l(this.info,X,function(Q){f.info.started&&X(Q);d$(f.info)});
this.info.x=A.clientX;this.info.y=A.clientY}},
touchstart:function(A){A=A.changedTouches[0];this.info.x=A.clientX;this.info.y=A.clientY},
touchmove:function(A){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A=A.changedTouches[0];var f=A.clientX,X=A.clientY;jGp(this.info,f,X)&&(this.info.state==="start"&&$H("tap"),this.info.addMove({x:f,y:X}),Yub(this.info,t,A),this.info.state="track",this.info.started=!0)},
touchend:function(A){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A=A.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:A.clientX,y:A.clientY}),Yub(this.info,t,A))}});
xBb({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(A){ow(A)&&(this.info.x=A.clientX,this.info.y=A.clientY)},
click:function(A){ow(A)&&Zss(this.info,A)},
touchstart:function(A){A=A.changedTouches[0];this.info.x=A.clientX;this.info.y=A.clientY},
touchend:function(A){Zss(this.info,A.changedTouches[0],A)}});var J7b=UU(function(A){var t=function(){return A.apply(this,arguments)||this};
_.R(t,A);t.prototype._addEventListenerToNode=function(f,X,Q){aw(f,X,Q)||A.prototype._addEventListenerToNode.call(this,f,X,Q)};
t.prototype._removeEventListenerFromNode=function(f,X,Q){KV(f,X,Q)||A.prototype._removeEventListenerFromNode.call(this,f,X,Q)};
return t});var C6=UU(function(A){var t=function(){return A.apply(this,arguments)||this};
_.R(t,A);t.prototype._shouldPropertyChange=function(f,X,Q){return o5x(this,f,X,Q,!0)};
return t}),UxC=UU(function(A){var t=function(){return A.apply(this,arguments)||this};
_.R(t,A);t.prototype._shouldPropertyChange=function(f,X,Q){return o5x(this,f,X,Q,this.mutableData)};
_.PV.Object.defineProperties(t,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return t});
C6._mutablePropertyChange=o5x;var dBb=!1;var epT=J7b(UxC(GI(HTMLElement))),hh=function(){var A=epT.call(this)||this;if(qP)throw Error("Nd");A.root=null;A.$=null;A.__children=null;return A};
_.R(hh,epT);_.J=hh.prototype;_.J.attributeChangedCallback=function(){this.mutableData=!0};
_.J.connectedCallback=function(){Suu()||(this.style.display="none");this.render()};
_.J.disconnectedCallback=function(){this.__removeChildren()};
_.J.__insertChildren=function(){(0,_.FA)((0,_.FA)(this).parentNode).insertBefore(this.root,this)};
_.J.__removeChildren=function(){if(this.__children)for(var A=0;A<this.__children.length;A++)this.root.appendChild(this.__children[A])};
_.J.render=function(){var A=this;if(!this.__children){var t=t||this.querySelector("template");if(!t){var f=new MutationObserver(function(){if(t=A.querySelector("template"))f.disconnect(),A.render();else throw Error("Od");});
f.observe(this,{childList:!0});return}this.root=this._stampTemplate(t);this.$=this.root.$;this.__children=[];for(var X=this.root.firstChild;X;X=X.nextSibling)this.__children[this.__children.length]=X;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.PV.Object.defineProperties(hh,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",hh);Polymer.Debouncer=iA;Polymer.Gestures={gestures:H9,recognizers:SU,deepTargetFind:pFb,addListener:aw,removeListener:KV,register:xBb,setTouchAction:_.g$,prevent:$H,resetMouseCanceller:function(){M$&&M$.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:aw,remove:KV};Polymer.GestureEventListeners=J7b;Polymer.MutableData=C6;Polymer.OptionalMutableData=UxC;Polymer.DomBind=hh;_.RY=function(){do{var A=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var t=fYp()}while(A||t)};var $Bb=null;Hsb.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Hsb,writable:!0}});var AJb=GI(Hsb),rul=C6(AJb),GVb=GI(function(){}),AW=function(A){var t=GVb.call(this)||this;
t._configureProperties(A);t.root=t._stampTemplate(t.__dataHost);var f=[];t.children=f;for(var X=t.root.firstChild;X;X=X.nextSibling)f.push(X),X.__templatizeInstance=t;t.__templatizeOwner&&t.__templatizeOwner.__hideTemplateChildren__&&t._showHideChildren(!0);f=t.__templatizeOptions;(A&&f.instanceProps||!f.instanceProps)&&t._enableProperties();return t};
_.R(AW,GVb);_.J=AW.prototype;_.J._configureProperties=function(A){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var f in A)this._setPendingProperty(f,A[f])};
_.J.forwardHostProp=function(A,t){this._setPendingPropertyOrPath(A,t,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.J._addEventListenerToNode=function(A,t,f){var X=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(A,t,function(q){q.model=X;f(q)});
else{var Q=this.__dataHost.__dataHost;Q&&Q._addEventListenerToNode(A,t,f)}};
_.J._showHideChildren=function(A){K_q(A,this.children)};
_.J._setUnmanagedPropertyToNode=function(A,t,f){A.__hideTemplateChildren__&&A.nodeType==Node.TEXT_NODE&&t=="textContent"?A.__polymerTextContent__=f:GVb.prototype._setUnmanagedPropertyToNode.call(this,A,t,f)};
_.J.dispatchEvent=function(){return!0};
_.PV.Object.defineProperties(AW.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var A=this.__parentModel;if(!A){var t;A=this;do A=A.__dataHost.__dataHost;while((t=A.__templatizeOptions)&&!t.parentModel);this.__parentModel=A}return A}}});
var wFp=C6(AW);var mb=function(){var A=N$.call(this)||this;A.__renderDebouncer=null;A._lastIf=!1;A.__hideTemplateChildren__=!1;return A};
_.R(mb,N$);_.J=mb.prototype;_.J.__debounceRender=function(){var A=this;this.__renderDebouncer=_.cr(this.__renderDebouncer,w$,function(){return A.__render()});
_.Br(this.__renderDebouncer)};
_.J.disconnectedCallback=function(){N$.prototype.disconnectedCallback.call(this);var A=(0,_.FA)(this).parentNode;A&&(A.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.FA)(A).host)||this.__teardownInstance()};
_.J.connectedCallback=function(){N$.prototype.connectedCallback.call(this);Suu()||(this.style.display="none");this.if&&this.__debounceRender()};
_.J.__ensureTemplate=function(){var A=this;if(!this.__template){var t=this._templateInfo?this:(0,_.FA)(this).querySelector("template");if(!t){var f=new MutationObserver(function(){if((0,_.FA)(A).querySelector("template"))f.disconnect(),A.__render();else throw Error("Rd");});
f.observe(this,{childList:!0});return!1}this.__template=t}return!0};
_.J.__ensureInstance=function(){var A=(0,_.FA)(this).parentNode;if(this.__hasInstance()){var t=this.__getInstanceNodes();if(t&&t.length&&(0,_.FA)(this).previousSibling!==t[t.length-1])for(var f=0,X=void 0;f<t.length&&(X=t[f]);f++)(0,_.FA)(A).insertBefore(X,this)}else{if(!A||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(A)}return!0};
_.J.render=function(){_.RY()};
_.J.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Q7&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.J.__hasInstance=function(){};
_.J.__getInstanceNodes=function(){};
_.J.__createAndInsertInstance=function(){};
_.J.__teardownInstance=function(){};
_.J._showHideChildren=function(){};
_.PV.Object.defineProperties(mb,{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:mb.prototype.__debounceRender},restamp:{type:Boolean,observer:mb.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var lYp=function(){var A=mb.call(this)||this;A.__instance=null;A.__syncInfo=null;return A};
_.R(lYp,mb);_.J=lYp.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.J.__createAndInsertInstance=function(A){var t=this,f=this.__dataHost||this;if(qP&&!this.__dataHost)throw Error("Pd");var X=f._bindTemplate(this.__template,!0);X.runEffects=function(Q,q,e){var G=t.__syncInfo;if(t.if)G&&(t.__syncInfo=null,t._showHideChildren(),q=Object.assign(G.changedProps,q)),Q(q,e);else if(t.__instance)if(G||(G=t.__syncInfo={runEffects:Q,changedProps:{}}),e)for(var N in q)Q=yk(N),G.changedProps[Q]=t.__dataHost[Q];else Object.assign(G.changedProps,q)};
this.__instance=f._stampTemplate(this.__template,X);(0,_.FA)(A).insertBefore(this.__instance,this)};
_.J.__syncHostProperties=function(){var A=this.__syncInfo;A&&(this.__syncInfo=null,A.runEffects(A.changedProps,!1))};
_.J.__teardownInstance=function(){var A=this.__dataHost||this;this.__instance&&(A._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.J._showHideChildren=function(){var A=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==A&&(this.__instance.__hidden=A,K_q(A,this.__instance.templateInfo.childNodes));A||this.__syncHostProperties()};
var Nt7=function(){var A=mb.call(this)||this;A.__ctor=null;A.__instance=null;A.__invalidProps=null;return A};
_.R(Nt7,mb);_.J=Nt7.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.children};
_.J.__createAndInsertInstance=function(A){this.__ctor||(this.__ctor=XB(this.__template,this,{mutableData:!0,forwardHostProp:function(t,f){this.__instance&&(this.if?this.__instance.forwardHostProp(t,f):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[yk(t)]=!0))}}));
this.__instance=new this.__ctor;(0,_.FA)(A).insertBefore(this.__instance.root,this)};
_.J.__teardownInstance=function(){if(this.__instance){var A=this.__instance.children;if(A&&A.length){var t=(0,_.FA)(A[0]).parentNode;if(t){t=(0,_.FA)(t);for(var f=0,X=void 0;f<A.length&&(X=A[f]);f++)t.removeChild(X)}}this.__instance=this.__invalidProps=null}};
_.J.__syncHostProperties=function(){var A=this.__invalidProps;if(A){this.__invalidProps=null;for(var t in A)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}};
_.J._showHideChildren=function(){var A=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==A&&(this.__instance.__hidden=A,this.__instance._showHideChildren(A));A||this.__syncHostProperties()};
_.Rg=XX?lYp:Nt7;customElements.define(_.Rg.is,_.Rg);Polymer.enqueueDebouncer=_.Br;Polymer.flush=_.RY;Polymer.Templatize={templatize:XB,modelForElement:JJx};Polymer.TemplateInstanceBase=AW;Polymer.DomIf=_.Rg;var uH7=UxC(N$),hY=function(){var A=uH7.call(this)||this;A.__instances=[];A.__renderDebouncer=null;A.__itemsIdxToInstIdx={};A.__chunkCount=null;A.__renderStartTime=null;A.__itemsArrayChanged=!1;A.__shouldMeasureChunk=!1;A.__shouldContinueChunking=!1;A.__chunkingId=0;A.__sortFn=null;A.__filterFn=null;A.__observePaths=null;A.__ctor=null;A.__isDetached=!0;A.template=null;return A};
_.R(hY,uH7);_.J=hY.prototype;_.J.disconnectedCallback=function(){uH7.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var A=0;A<this.__instances.length;A++)this.__detachInstance(A);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.J.connectedCallback=function(){uH7.prototype.connectedCallback.call(this);Suu()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var A=(0,_.FA)((0,_.FA)(this).parentNode),t=0;t<this.__instances.length;t++)this.__attachInstance(t,A);this.__chunkingId&&this.__render()}};
_.J.__ensureTemplatized=function(){var A=this;if(!this.__ctor){var t=this.template=this._templateInfo?this:this.querySelector("template");if(!t){var f=new MutationObserver(function(){if(A.querySelector("template"))f.disconnect(),A.__render();else throw Error("Sd");});
f.observe(this,{childList:!0});return!1}var X={};X[this.as]=!0;X[this.indexAs]=!0;X[this.itemsIndexAs]=!0;this.__ctor=XB(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:X,forwardHostProp:function(Q,q){for(var e=this.__instances,G=0,N=void 0;G<e.length&&(N=e[G]);G++)N.forwardHostProp(Q,q)},
notifyInstanceProp:function(Q,q,e){maT(this.as,q)&&(Q=Q[this.itemsIndexAs],q==this.as&&(this.items[Q]=e),q=LV(this.as,"items."+Q,q),this.notifyPath(q,e))}})}return!0};
_.J.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.J.__functionFromPropertyValue=function(A){if(typeof A==="string"){var t=this.__getMethodHost();return function(){return t[A].apply(t,arguments)}}return A};
_.J.__sortChanged=function(A){this.__sortFn=this.__functionFromPropertyValue(A);this.items&&this.__debounceRender(this.__render)};
_.J.__filterChanged=function(A){this.__filterFn=this.__functionFromPropertyValue(A);this.items&&this.__debounceRender(this.__render)};
_.J.__computeFrameTime=function(A){return Math.ceil(1E3/A)};
_.J.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.J.__handleObservedPaths=function(A){if(this.__sortFn||this.__filterFn)if(!A)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var t=this.__observePaths,f=0;f<t.length;f++)A.indexOf(t[f])===0&&this.__debounceRender(this.__render,this.delay)};
_.J.__itemsChanged=function(A){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(A.path,A.value)||(A.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.J.__debounceRender=function(A,t){t=t===void 0?0:t;this.__renderDebouncer=_.cr(this.__renderDebouncer,t>0?_.Jh.after(t):w$,A.bind(this));_.Br(this.__renderDebouncer)};
_.J.render=function(){this.__debounceRender(this.__render);_.RY()};
_.J.__render=function(){var A=this;if(this.__ensureTemplatized()){var t=this.items||[],f=this.__sortAndFilterItems(t),X=this.__calculateLimit(f.length);this.__updateInstances(t,X,f);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){A.__chunkingId=null;A.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Q7&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.J.__sortAndFilterItems=function(A){for(var t=this,f=Array(A.length),X=0;X<A.length;X++)f[X]=X;this.__filterFn&&(f=f.filter(function(Q,q,e){return t.__filterFn(A[Q],q,e)}));
this.__sortFn&&f.sort(function(Q,q){return t.__sortFn(A[Q],A[q])});
return f};
_.J.__calculateLimit=function(A){var t=A,f=this.__instances.length;if(this.initialCount){var X;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(A,this.initialCount),this.__chunkCount=(X=Math.max(t-f,0))||1):(X=Math.min(Math.max(A-f,0),this.__chunkCount),t=Math.min(f+X,A));this.__shouldMeasureChunk=X===this.__chunkCount;this.__shouldContinueChunking=t<A;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return t};
_.J.__continueChunking=function(){if(this.__shouldMeasureChunk){var A=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/A*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.J.__updateInstances=function(A,t,f){var X=this.__itemsIdxToInstIdx={},Q;for(Q=0;Q<t;Q++){var q=this.__instances[Q],e=f[Q],G=A[e];X[e]=Q;q?(q._setPendingProperty(this.as,G),q._setPendingProperty(this.indexAs,Q),q._setPendingProperty(this.itemsIndexAs,e),q._flushProperties()):this.__insertInstance(G,Q,e)}for(A=this.__instances.length-1;A>=Q;A--)this.__detachAndRemoveInstance(A)};
_.J.__detachInstance=function(A){A=this.__instances[A];for(var t=(0,_.FA)(A.root),f=0;f<A.children.length;f++)t.appendChild(A.children[f]);return A};
_.J.__attachInstance=function(A,t){t.insertBefore(this.__instances[A].root,this)};
_.J.__detachAndRemoveInstance=function(A){this.__detachInstance(A);this.__instances.splice(A,1)};
_.J.__stampInstance=function(A,t,f){var X={};X[this.as]=A;X[this.indexAs]=t;X[this.itemsIndexAs]=f;return new this.__ctor(X)};
_.J.__insertInstance=function(A,t,f){A=this.__stampInstance(A,t,f);f=(f=this.__instances[t+1])?f.children[0]:this;(0,_.FA)((0,_.FA)(this).parentNode).insertBefore(A.root,f);return this.__instances[t]=A};
_.J._showHideChildren=function(A){for(var t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(A)};
_.J.__handleItemPath=function(A,t){var f=A.slice(6),X=f.indexOf(".");A=X<0?f:f.substring(0,X);if(A==parseInt(A,10)){f=X<0?"":f.substring(X+1);this.__handleObservedPaths(f);if(A=this.__instances[this.__itemsIdxToInstIdx[A]])A._setPendingPropertyOrPath(this.as+(f?"."+f:""),t,!1,!0),A._flushProperties();return!0}};
_.J.itemForElement=function(A){return(A=this.modelForElement(A))&&A[this.as]};
_.J.indexForElement=function(A){return(A=this.modelForElement(A))&&A[this.indexAs]};
_.J.modelForElement=function(A){return JJx(this.template,A)};
_.PV.Object.defineProperties(hY,{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:hY.prototype.__sortChanged},filter:{type:Function,observer:hY.prototype.__filterChanged},observe:{type:String,observer:hY.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Q7,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.*)"]}}});
hY.prototype._setRenderedItemCount=function(){};
customElements.define(hY.is,hY);Polymer.DomRepeat=hY;var zpf=function(A,t){var f=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=A;this.callback=t;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){f._schedule()};
this.connect();this._schedule()},PPw=function(A){var t=(0,_.FA)(A);
if(JW(A))return t.assignedNodes({flatten:!0});A=[];for(var f=0;f<t.childNodes.length;f++){var X=t.childNodes[f];JW(X)?A.push.apply(A,_.YV((0,_.FA)(X).assignedNodes({flatten:!0}))):A.push(X)}return A};
_.J=zpf.prototype;_.J.connect=function(){var A=this;JW(this._target)?this._listenSlots([this._target]):(0,_.FA)(this._target).children&&(this._listenSlots((0,_.FA)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(t){A._processMutations(t)}):(this._nativeChildrenObserver=new MutationObserver(function(t){A._processMutations(t)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.J.disconnect=function(){JW(this._target)?this._unlistenSlots([this._target]):(0,_.FA)(this._target).children&&(this._unlistenSlots((0,_.FA)(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};
_.J._schedule=function(){var A=this;this._scheduled||(this._scheduled=!0,w$.run(function(){return A.flush()}))};
_.J._processMutations=function(A){this._processSlotMutations(A);this.flush()};
_.J._processSlotMutations=function(A){if(A)for(var t=0;t<A.length;t++){var f=A[t];f.addedNodes&&this._listenSlots(f.addedNodes);f.removedNodes&&this._unlistenSlots(f.removedNodes)}};
_.J.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 A={target:this._target,addedNodes:[],removedNodes:[]},t=PPw(this._target),f=qu5(t,this._effectiveNodes),X=0,Q=void 0;X<f.length&&(Q=f[X]);X++)for(var q=0,e=void 0;q<Q.removed.length&&(e=Q.removed[q]);q++)A.removedNodes.push(e);
X=0;for(Q=void 0;X<f.length&&(Q=f[X]);X++)for(q=Q.index;q<Q.index+Q.addedCount;q++)A.addedNodes.push(t[q]);this._effectiveNodes=t;t=!1;if(A.addedNodes.length||A.removedNodes.length)t=!0,this.callback.call(this._target,A);return t};
_.J._listenSlots=function(A){for(var t=0;t<A.length;t++){var f=A[t];JW(f)&&f.addEventListener("slotchange",this._boundSchedule)}};
_.J._unlistenSlots=function(A){for(var t=0;t<A.length;t++){var f=A[t];JW(f)&&f.removeEventListener("slotchange",this._boundSchedule)}};var bA=Element.prototype,Ttf=bA.matches||bA.matchesSelector||bA.mozMatchesSelector||bA.msMatchesSelector||bA.oMatchesSelector||bA.webkitMatchesSelector,iIS=function(A,t){return Ttf.call(A,t)},Ug=function(A){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(A);
this.node=A},Mrb;
_.J=Ug.prototype;_.J.observeNodes=function(A){return new zpf(this.node,A)};
_.J.unobserveNodes=function(A){A.disconnect()};
_.J.notifyObserver=function(){};
_.J.deepContains=function(A){if((0,_.FA)(this.node).contains(A))return!0;var t=A;for(A=A.ownerDocument;t&&t!==A&&t!==this.node;)t=(0,_.FA)(t).parentNode||(0,_.FA)(t).host;return t===this.node};
_.J.getOwnerRoot=function(){return(0,_.FA)(this.node).getRootNode()};
_.J.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.FA)(this.node).assignedNodes({flatten:!0}):[]};
_.J.getDestinationInsertionPoints=function(){for(var A=[],t=(0,_.FA)(this.node).assignedSlot;t;)A.push(t),t=(0,_.FA)(t).assignedSlot;return A};
_.J.importNode=function(A,t){return(0,_.FA)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(A,t)};
_.J.getEffectiveChildNodes=function(){return PPw(this.node)};
_.J.queryDistributedElements=function(A){for(var t=this.getEffectiveChildNodes(),f=[],X=0,Q=t.length,q=void 0;X<Q&&(q=t[X]);X++)q.nodeType===Node.ELEMENT_NODE&&iIS(q,A)&&f.push(q);return f};
_.PV.Object.defineProperties(Ug.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var A=this.node;return A._activeElement!==void 0?A._activeElement:A.activeElement}}});
var Wr=function(A){this.event=A};
_.PV.Object.defineProperties(Wr.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 OIC=Ug;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var c7E=window.ShadyDOM.Wrapper,Btb=function(){return c7E.apply(this,arguments)||this};
_.R(Btb,c7E);Object.getOwnPropertyNames(Ug.prototype).forEach(function(A){A!="activeElement"&&A!="constructor"&&(Btb.prototype[A]=Ug.prototype[A])});
eS5(Btb.prototype,["classList"]);OIC=Btb;Object.defineProperties(Wr.prototype,{localTarget:{get:function(){var A=this.event.currentTarget;A=A&&_.iS(A).getOwnerRoot();for(var t=this.path,f=0;f<t.length;f++){var X=t[f];if(_.iS(X).getOwnerRoot()===A)return X}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else U1l(),eS5(Ug.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),GR0();Mrb=OIC;_.iS=function(A){A=A||document;if(A instanceof OIC)return A;if(A instanceof Wr)return A;var t=A.__domApi;t||(A instanceof Event?t=new Wr(A):t=new OIC(A),A.__domApi=t);return t};var CPT=/:host\(:dir\((ltr|rtl)\)\)/g,hpl=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Rpi=/:dir\((?:ltr|rtl)\)/,mxC=!(!window.ShadyDOM||!window.ShadyDOM.inUse),GS=[],y7=null,e0="",bIi=UU(function(A){mxC||y7||(e0=document.documentElement.getAttribute("dir"),y7=new MutationObserver(lrq),y7.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var t=pUC(A);A=function(){var f=t.call(this)||this;f.__autoDirOptOut=!1;return f};
_.R(A,t);A._processStyleText=function(f,X){f=t._processStyleText.call(this,f,X);!mxC&&Rpi.test(f)&&(f=this._replaceDirInCssText(f),this.__activateDir=!0);return f};
A._replaceDirInCssText=function(f){f=f.replace(CPT,':host([dir="$1"])');return f=f.replace(hpl,':host([dir="$2"]) $1')};
A.prototype.ready=function(){t.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
A.prototype.connectedCallback=function(){t.prototype.connectedCallback&&t.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(y7&&y7.takeRecords().length&&lrq(),GS.push(this),this.__autoDirOptOut||this.setAttribute("dir",e0))};
A.prototype.disconnectedCallback=function(){t.prototype.disconnectedCallback&&t.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var f=GS.indexOf(this);f>-1&&GS.splice(f,1)}};
A.__activateDir=!1;return A});var WGf=function(A){for(;A;){var t=Object.getOwnPropertyDescriptor(A,"observedAttributes");if(t)return t.get;A=Object.getPrototypeOf(A.prototype).constructor}return function(){return[]}};
UU(function(A){var t=lA(A),f=WGf(t);A=function(){return t.call(this)||this};
_.R(A,t);A.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:t.prototype._initializeProperties.call(this)};
A.prototype._enableProperties=function(){this.__isUpgradeDisabled||t.prototype._enableProperties.call(this)};
A.prototype._canApplyPropertyDefault=function(X){return t.prototype._canApplyPropertyDefault.call(this,X)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(X))};
A.prototype.attributeChangedCallback=function(X,Q,q,e){X=="disable-upgrade"?this.__isUpgradeDisabled&&q==null&&(t.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.FA)(this).isConnected&&t.prototype.connectedCallback.call(this)):t.prototype.attributeChangedCallback.call(this,X,Q,q,e)};
A.prototype.connectedCallback=function(){this.__isUpgradeDisabled||t.prototype.connectedCallback.call(this)};
A.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||t.prototype.disconnectedCallback.call(this)};
_.PV.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return f.call(this).concat("disable-upgrade")}}});
return A});var ls=!1,uGz=[],NP=[];var idg=window.ShadyDOM,Odx=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",BVT):document.readyState==="interactive"||document.readyState==="complete"?BVT():window.addEventListener("DOMContentLoaded",BVT);var hSx=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=""},M7g=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Crz=/@import[^;]*;/gim,vp5=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Lau=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,pzb=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Epx=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Wax=/^@[^\s]*keyframes/,
bd5=/\s+/g;var npq={};var Irz=Promise.resolve();var y7f=new Set;var vAC=/;\s*/m,LGw=/^\s*(initial)|(inherit)\s*$/,pnK=/\s*!important/,EAp=function(){this._map={}};
EAp.prototype.set=function(A,t){A=A.trim();this._map[A]={properties:t,dependants:{}}};
EAp.prototype.get=function(A){A=A.trim();return this._map[A]||null};
var nAK=null,vr=function(){this._measureElement=this._currentElement=null;this._map=new EAp};
_.J=vr.prototype;_.J.detectMixin=function(A){A=gFw.test(A)||KIw.test(A);gFw.lastIndex=0;KIw.lastIndex=0;return A};
_.J.transformTemplate=function(A,t){if(A._gatheredStyle===void 0){var f=[];for(var X=A.content.querySelectorAll("style"),Q=0;Q<X.length;Q++){var q=X[Q];if(q.hasAttribute("shady-unscoped")){if(!TSx){var e=q.textContent;if(!y7f.has(e)){y7f.add(e);var G=document.createElement("style");G.setAttribute("shady-unscoped","");G.textContent=e;document.head.appendChild(G)}q.parentNode.removeChild(q)}}else f.push(q.textContent),q.parentNode.removeChild(q)}(f=f.join("").trim())?(X=document.createElement("style"),
X.textContent=f,A.content.insertBefore(X,A.content.firstChild),f=X):f=null;A._gatheredStyle=f}return(A=A._gatheredStyle)?this.JSC$11358_transformStyle(A,t):null};
_.J.JSC$11358_transformStyle=function(A,t){t=t===void 0?"":t;var f=V75(A);this.transformRules(f,t);A.textContent=Y1T(f);return f};
_.J.transformCustomStyle=function(A){var t=this,f=V75(A);opT(f,function(X){X.selector===":root"&&(X.selector="html");t.transformRule(X)});
A.textContent=Y1T(f);return f};
_.J.transformRules=function(A,t){var f=this;this._currentElement=t;opT(A,function(X){f.transformRule(X)});
this._currentElement=null};
_.J.transformRule=function(A){A.cssText=Dxl(this,A.parsedCssText,A);A.selector===":root"&&(A.selector=":host > *")};
var Dxl=function(A,t,f){t=t.replace(KIw,function(X,Q,q,e){return A._produceCssProperties(X,Q,q,e,f)});
return A._consumeCssProperties(t,f)};
_.J=vr.prototype;_.J._getInitialValueForProperty=function(A){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(A)};
_.J._fallbacksFromPreviousRules=function(A){for(var t=this,f=A;f.parent;)f=f.parent;var X={},Q=!1;opT(f,function(q){(Q=Q||q===A)||q.selector===A.selector&&Object.assign(X,t._cssTextToMap(q.parsedCssText))});
return X};
_.J._consumeCssProperties=function(A,t){for(var f;f=gFw.exec(A);){var X=f[0],Q=f[1];f=f.index;var q=f+X.indexOf("@apply"),e=f+X.length;X=A.slice(0,q);A=A.slice(e);q=t?this._fallbacksFromPreviousRules(t):{};Object.assign(q,this._cssTextToMap(X));Q=this._atApplyToCssProperties(Q,q);A=X+Q+A;gFw.lastIndex=f+Q.length}return A};
_.J._atApplyToCssProperties=function(A,t){A=A.replace(vAC,"");var f=[],X=this._map.get(A);X||(this._map.set(A,{}),X=this._map.get(A));if(X){this._currentElement&&(X.dependants[this._currentElement]=!0);var Q,q=X.properties;for(Q in q){var e=t&&t[Q];X=[Q,": var(",A,"_-_",Q];e&&X.push(",",e.replace(pnK,""));X.push(")");pnK.test(q[Q])&&X.push(" !important");f.push(X.join(""))}}return f.join("; ")};
_.J._replaceInitialOrInherit=function(A,t){var f=LGw.exec(t);f&&(t=f[1]?this._getInitialValueForProperty(A):"apply-shim-inherit");return t};
_.J._cssTextToMap=function(A,t){t=t===void 0?!1:t;A=A.split(";");for(var f,X,Q={},q=0;q<A.length;q++)if(f=A[q])X=f.split(":"),X.length>1&&(f=X[0].trim(),X=X.slice(1).join(":"),t&&(X=this._replaceInitialOrInherit(f,X)),Q[f]=X);return Q};
_.J._invalidateMixinEntry=function(A){if(nAK)for(var t in A.dependants)t!==this._currentElement&&nAK(t)};
_.J._produceCssProperties=function(A,t,f,X,Q){var q=this;f&&d1q(f,function(h,W){W&&q._map.get(W)&&(X="@apply "+W+";")});
if(!X)return A;var e=this._consumeCssProperties(""+X,Q);Q=A.slice(0,A.indexOf("--"));var G=e=this._cssTextToMap(e,!0),N=this._map.get(t),z=N&&N.properties;z?G=Object.assign(Object.create(z),e):this._map.set(t,G);var T=[],O,c=!1;for(O in G){var B=e[O];B===void 0&&(B="initial");!z||O in z||(c=!0);T.push(t+"_-_"+O+": "+B)}c&&this._invalidateMixinEntry(N);N&&(N.properties=G);f&&(Q=A+";"+Q);return Q+T.join("; ")+";"};
vr.prototype.detectMixin=vr.prototype.detectMixin;vr.prototype.transformStyle=vr.prototype.JSC$11358_transformStyle;vr.prototype.transformCustomStyle=vr.prototype.transformCustomStyle;vr.prototype.transformRules=vr.prototype.transformRules;vr.prototype.transformRule=vr.prototype.transformRule;vr.prototype.transformTemplate=vr.prototype.transformTemplate;vr.prototype._separator="_-_";Object.defineProperty(vr.prototype,"invalidCallback",{get:function(){return nAK},
set:function(A){nAK=A}});var L6=new vr,FGK=function(){this.customStyleInterface=null;L6.invalidCallback=D1g},p6=function(A){!A.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(A.customStyleInterface=window.ShadyCSS.CustomStyleInterface,A.customStyleInterface.transformCallback=function(t){L6.transformCustomStyle(t)},A.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){A.customStyleInterface.enqueued&&A.flushCustomStyles()})})};
_.J=FGK.prototype;_.J.prepareTemplate=function(A,t){p6(this);S1x(A)===""&&(npq[t]=A,t=L6.transformTemplate(A,t),A._styleAst=t)};
_.J.flushCustomStyles=function(){p6(this);if(this.customStyleInterface){var A=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var t=0;t<A.length;t++){var f=this.customStyleInterface.getStyleForCustomStyle(A[t]);f&&L6.transformCustomStyle(f)}this.customStyleInterface.enqueued=!1}}};
_.J.styleSubtree=function(A,t){p6(this);t&&eWx(A,t);if(A.shadowRoot)for(this.styleElement(A),A=A.shadowRoot.children||A.shadowRoot.childNodes,t=0;t<A.length;t++)this.styleSubtree(A[t]);else for(A=A.children||A.childNodes,t=0;t<A.length;t++)this.styleSubtree(A[t])};
_.J.styleElement=function(A){p6(this);var t=A.localName,f;t?t.indexOf("-")>-1?f=t:f=A.getAttribute&&A.getAttribute("is")||"":f=A.is;t=npq[f];if(!(t&&S1x(t)!==""||!t||Fax(t))){if(Fax(t)||t._applyShimValidatingVersion!==t._applyShimNextVersion)this.prepareTemplate(t,f),x1T(t);if(A=A.shadowRoot)if(A=A.querySelector("style"))A.__cssRules=t._styleAst,A.textContent=Y1T(t._styleAst)}};
_.J.styleDocument=function(A){p6(this);this.styleSubtree(document.body,A)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var EU=new FGK,IYf=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(A,t){EU.flushCustomStyles();EU.prepareTemplate(A,t)},
prepareTemplateStyles:function(A,t,f){window.ShadyCSS.prepareTemplate(A,t,f)},
prepareTemplateDom:function(){},
styleSubtree:function(A,t){EU.flushCustomStyles();EU.styleSubtree(A,t)},
styleElement:function(A){EU.flushCustomStyles();EU.styleElement(A)},
styleDocument:function(A){EU.flushCustomStyles();EU.styleDocument(A)},
getComputedStyleValue:function(A,t){return GF0(A,t)},
flushCustomStyles:function(){EU.flushCustomStyles()},
nativeCss:jDq,nativeShadow:TSx,cssBuild:zS,disableRuntime:khl};IYf&&(window.ShadyCSS.CustomStyleInterface=IYf)}window.ShadyCSS.ApplyShim=L6;var xxC;xxC=window.ShadyCSS;_.FX=UU(function(A){A=J7b(lA(A));var t=ZNi?A:bIi(A),f=WGf(t),X={x:"pan-x",y:"pan-y",none:"none",all:"auto"};A=function(){return t.call(this)||this};
_.R(A,t);A.prototype.created=function(){};
A.prototype.__attributeReaction=function(Q,q,e){(this.__dataAttributes&&this.__dataAttributes[Q]||Q==="disable-upgrade")&&this.attributeChangedCallback(Q,q,e,null)};
A.prototype.setAttribute=function(Q,q){if(Pop&&!this._legacyForceObservedAttributes){var e=this.getAttribute(Q);t.prototype.setAttribute.call(this,Q,q);this.__attributeReaction(Q,e,String(q))}else t.prototype.setAttribute.call(this,Q,q)};
A.prototype.removeAttribute=function(Q){if(Pop&&!this._legacyForceObservedAttributes){var q=this.getAttribute(Q);t.prototype.removeAttribute.call(this,Q);this.__attributeReaction(Q,q,null)}else t.prototype.removeAttribute.call(this,Q)};
A.prototype._enableProperties=function(){this.__isUpgradeDisabled||t.prototype._enableProperties.call(this)};
A.prototype._canApplyPropertyDefault=function(Q){return t.prototype._canApplyPropertyDefault.call(this,Q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Q))};
A.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(t.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
A.prototype.attached=function(){};
A.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(t.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
A.prototype.detached=function(){};
A.prototype.attributeChangedCallback=function(Q,q,e,G){q!==e&&(Q=="disable-upgrade"?this.__isUpgradeDisabled&&e==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.FA)(this).isConnected&&this.connectedCallback()):(t.prototype.attributeChangedCallback.call(this,Q,q,e,G),this.attributeChanged(Q,q,e)))};
A.prototype.attributeChanged=function(){};
A.prototype._initializeProperties=function(){if(kH&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Q=Object.getPrototypeOf(this);Q.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Q.__hasRegisterFinished=!0);t.prototype._initializeProperties.call(this);this.root=this;this.created();Pop&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
A.prototype._takeAttributes=function(){for(var Q=this.attributes,q=0,e=Q.length;q<e;q++){var G=Q[q];this.__attributeReaction(G.name,null,G.value)}};
A.prototype._registered=function(){};
A.prototype.ready=function(){this._ensureAttributes();t.prototype.ready.call(this)};
A.prototype._ensureAttributes=function(){};
A.prototype._applyListeners=function(){};
A.prototype.serialize=function(Q){return this._serializeValue(Q)};
A.prototype.deserialize=function(Q,q){return this._deserializeValue(Q,q)};
A.prototype.reflectPropertyToAttribute=function(Q,q,e){this._propertyToAttribute(Q,q,e)};
A.prototype.serializeValueToAttribute=function(Q,q,e){this._valueToNodeAttribute(e||this,Q,q)};
A.prototype.extend=function(Q,q){if(!Q||!q)return Q||q;for(var e=Object.getOwnPropertyNames(q),G=0,N=void 0;G<e.length&&(N=e[G]);G++){var z=Object.getOwnPropertyDescriptor(q,N);z&&Object.defineProperty(Q,N,z)}return Q};
A.prototype.mixin=function(Q,q){for(var e in q)Q[e]=q[e];return Q};
A.prototype.chainObject=function(Q,q){Q&&q&&Q!==q&&(Q.__proto__=q);return Q};
A.prototype.instanceTemplate=function(Q){Q=this.constructor._contentForTemplate(Q);return document.importNode(Q,!0)};
A.prototype.fire=function(Q,q,e){e=e||{};q=q===null||q===void 0?{}:q;Q=new Event(Q,{bubbles:e.bubbles===void 0?!0:e.bubbles,cancelable:!!e.cancelable,composed:e.composed===void 0?!0:e.composed});Q.detail=q;(0,_.FA)(e.node||this).dispatchEvent(Q);return Q};
A.prototype.listen=function(Q,q,e){Q=Q||this;var G=this.__boundListeners||(this.__boundListeners=new WeakMap),N=G.get(Q);N||(N={},G.set(Q,N));G=q+e;N[G]||(N[G]=this._addMethodEventListenerToNode(Q,q,e,this))};
A.prototype.unlisten=function(Q,q,e){Q=Q||this;var G=this.__boundListeners&&this.__boundListeners.get(Q);e=q+e;var N=G&&G[e];N&&(this._removeEventListenerFromNode(Q,q,N),G[e]=null)};
A.prototype.setScrollDirection=function(Q,q){_.g$(q||this,X[Q]||"auto")};
A.prototype.$$=function(Q){return this.root.querySelector(Q)};
A.prototype.distributeContent=function(){var Q=_.iS(this);window.ShadyDOM&&Q.shadowRoot&&ShadyDOM.flush()};
A.prototype.getEffectiveChildNodes=function(){return _.iS(this).getEffectiveChildNodes()};
A.prototype.queryDistributedElements=function(Q){return _.iS(this).queryDistributedElements(Q)};
A.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE})};
A.prototype.getEffectiveTextContent=function(){for(var Q=this.getEffectiveChildNodes(),q=[],e=0,G;G=Q[e];e++)G.nodeType!==Node.COMMENT_NODE&&q.push(G.textContent);return q.join("")};
A.prototype.queryEffectiveChildren=function(Q){return(Q=this.queryDistributedElements(Q))&&Q[0]};
A.prototype.queryAllEffectiveChildren=function(Q){return this.queryDistributedElements(Q)};
A.prototype.getContentChildNodes=function(Q){return(Q=this.root.querySelector(Q||"slot"))?_.iS(Q).getDistributedNodes():[]};
A.prototype.getContentChildren=function(Q){return this.getContentChildNodes(Q).filter(function(q){return q.nodeType===Node.ELEMENT_NODE})};
A.prototype.isLightDescendant=function(Q){return this!==Q&&(0,_.FA)(this).contains(Q)&&(0,_.FA)(this).getRootNode()===(0,_.FA)(Q).getRootNode()};
A.prototype.isLocalDescendant=function(Q){return this.root===(0,_.FA)(Q).getRootNode()};
A.prototype.scopeSubtree=function(Q,q){return cJp(Q,q===void 0?!1:q)};
A.prototype.getComputedStyleValue=function(Q){return xxC.getComputedStyleValue(this,Q)};
A.prototype.debounce=function(Q,q,e){this._debouncers=this._debouncers||{};return this._debouncers[Q]=_.cr(this._debouncers[Q],e>0?_.Jh.after(e):w$,q.bind(this))};
A.prototype.isDebouncerActive=function(Q){this._debouncers=this._debouncers||{};Q=this._debouncers[Q];return!(!Q||!Q.isActive())};
A.prototype.flushDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.flush()};
A.prototype.cancelDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.cancel()};
A.prototype.async=function(Q,q){return q>0?_.Jh.run(Q.bind(this),q):~w$.run(Q.bind(this))};
A.prototype.cancelAsync=function(Q){Q<0?w$.cancel(~Q):_.Jh.cancel(Q)};
A.prototype.create=function(Q,q){Q=document.createElement(Q);if(q)if(Q.setProperties)Q.setProperties(q);else for(var e in q)Q[e]=q[e];return Q};
A.prototype.elementMatches=function(Q,q){return iIS(q||this,Q)};
A.prototype.toggleAttribute=function(Q,q){var e=this;arguments.length===3&&(e=arguments[2]);arguments.length==1&&(q=!e.hasAttribute(Q));if(q)return(0,_.FA)(e).setAttribute(Q,""),!0;(0,_.FA)(e).removeAttribute(Q);return!1};
A.prototype.toggleClass=function(Q,q,e){e=e||this;arguments.length==1&&(q=!e.classList.contains(Q));q?e.classList.add(Q):e.classList.remove(Q)};
A.prototype.transform=function(Q,q){q=q||this;q.style.webkitTransform=Q;q.style.transform=Q};
A.prototype.translate3d=function(Q,q,e,G){this.transform("translate3d("+Q+","+q+","+e+")",G||this)};
A.prototype.arrayDelete=function(Q,q){if(Array.isArray(Q)){if(q=Q.indexOf(q),q>=0)return Q.splice(q,1)}else if(q=EI(this,Q).indexOf(q),q>=0)return this.splice(Q,q,1);return null};
A.prototype._logger=function(Q,q){Array.isArray(q)&&q.length===1&&Array.isArray(q[0])&&(q=q[0]);switch(Q){case "log":case "warn":case "error":console[Q].apply(console,_.YV(q))}};
A.prototype._log=function(){this._logger("log",_.Hu.apply(0,arguments))};
A.prototype._warn=function(){this._logger("warn",_.Hu.apply(0,arguments))};
A.prototype._error=function(){this._logger("error",_.Hu.apply(0,arguments))};
A.prototype._logf=function(Q){return["[%s::%s]",this.is,Q].concat(_.YV(_.Hu.apply(1,arguments)))};
_.PV.Object.defineProperties(A.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Q=(0,_.FA)(this).getRootNode();return Q instanceof DocumentFragment?Q.host:Q}}});
_.PV.Object.defineProperties(A,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Pop&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],O8x(this.prototype)),this.__observedAttributes):f.call(this).concat("disable-upgrade")}}});
A.prototype.is="";return A});Polymer.FlattenedNodesObserver=zpf;Polymer.DomApi=Mrb;Polymer.EventApi=Wr;Polymer.dom=_.iS;Polymer.dom.matchesSelector=iIS;Polymer.dom.flush=_.RY;Polymer.dom.addDebouncer=_.Br;Polymer.DirMixin=bIi;Polymer.RenderStatus={beforeNextRender:_.TVb,afterNextRender:_.us,flush:function(){for(;uGz.length||NP.length;)NVx(uGz),NVx(NP);ls=!1}};Polymer.LegacyElementMixin=_.FX;var j88;j88=C6._mutablePropertyChange;var YX7={properties:{mutableData:Boolean},_shouldPropertyChange:function(A,t,f){return j88(this,A,t,f,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(A,t,f){return j88(this,A,t,f,!0)}};
Polymer.OptionalMutableDataBehavior=YX7;var $10={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},wzs={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},gpx=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},wzs),Vrl=(0,_.FX)(HTMLElement),$mx=function(A,t){A||console.warn("Polymer.Class requires `info` argument");t=t?t(Vrl):Vrl;t=sDb(A,t,A.behaviors);t.is=t.prototype.is=
A.is;return t};Polymer.Class=$mx;Polymer.mixinBehaviors=function(A,t){return sDb({},(0,_.FX)(t),A)};
Polymer.GenerateClassFromInfo=sDb;_.CN=function(A){var t=typeof A==="function"?A:_.CN.Class(A);A._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=A._legacyForceObservedAttributes);customElements.define(t.is,t);return t};
_.CN.Class=$mx;Polymer._polymerFn=_.CN;var ZIT=window.onLegacyPolymerFunctionDefinedCallback;ZIT&&ZIT();var a9s={templatize:function(A,t){this._templatizerTemplate=A;this.ctor=XB(A,this,{mutableData:!!t,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(A){return new this.ctor(A)},
modelForElement:function(A){return JJx(this._templatizerTemplate,A)}};Polymer.Templatizer=a9s;_.IY=(0,_.FX)(HTMLElement).prototype;Polymer.Base=_.IY;var rJz=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.TS=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(_.TS,PolymerFakeBaseClass);var is=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(is,PolymerFakeBaseClass);var A1x=Symbol("Td"),eIg=[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 oAS=oAS||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},dxb;(function(A){function t(Z,d,K){var k=S.get(Z);if(!k){if(!K)return;k=new E;S.set(Z,k)}Z=k.get(d);if(!Z){if(!K)return;Z=new E;k.set(d,Z)}return Z}
function f(Z,d,K){if(X(Z,d,K))return!0;d=c(d);return d!==null?f(Z,d,K):!1}
function X(Z,d,K){d=t(d,K,!1);return d===void 0?!1:!!d.has(Z)}
function Q(Z,d,K){if(X(Z,d,K))return q(Z,d,K);d=c(d);if(d!==null)return Q(Z,d,K)}
function q(Z,d,K){d=t(d,K,!1);if(d!==void 0)return d.get(Z)}
function e(Z,d){var K=G(Z,d);Z=c(Z);if(Z===null)return K;var k=e(Z,d);if(k.length<=0)return K;if(K.length<=0)return k;d=new D;Z=[];K=_.U(K);for(var Gz=K.next();!Gz.done;Gz=K.next())Gz=Gz.value,d.has(Gz)||(d.add(Gz),Z.push(Gz));K=_.U(k);for(k=K.next();!k.done;k=K.next())k=k.value,d.has(k)||(d.add(k),Z.push(k));return Z}
function G(Z,d){Z=t(Z,d,!1);var K=[];Z&&Z.forEach(function(k,Gz){return K.push(Gz)});
return K}
function N(Z){return Z===void 0}
function z(Z){return typeof Z==="object"?Z!==null:typeof Z==="function"}
function T(Z){return typeof Z==="function"}
function O(Z){return typeof Z==="symbol"?Z:String(Z)}
function c(Z){var d=Object.getPrototypeOf(Z);if(typeof Z!=="function"||Z===L||d!==L)return d;var K=Object.getPrototypeOf(Z.prototype);if(K==null||K===Object.prototype)return d;K=K.constructor;return typeof K!=="function"||K===Z?d:K}
function B(){function Z(){this._keys=[];this._values=[];this._cache=d}
var d={};Z.prototype={get size(){return this._keys.length},has:function(K){return K===this._cache?!0:this._find(K)>=0?(this._cache=K,!0):!1},
get:function(K){var k=this._find(K);if(k>=0)return this._cache=K,this._values[k]},
set:function(K,k){this.delete(K);this._keys.push(K);this._values.push(k);this._cache=K;return this},
delete:function(K){K=this._find(K);return K>=0?(this._keys.splice(K,1),this._values.splice(K,1),this._cache=d,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=d},
forEach:function(K){for(var k=this.size,Gz=0;Gz<k;++Gz){var Tz=this._keys[Gz],y5=this._values[Gz];this._cache=Tz;K.call(this,y5,Tz,this)}},
_find:function(K){for(var k=this._keys,Gz=k.length,Tz=0;Tz<Gz;++Tz)if(k[Tz]===K)return Tz;return-1}};
return Z}
function h(){function Z(){this._map=new E}
Z.prototype={get size(){return this._map.length},has:function(d){return this._map.has(d)},
add:function(d){this._map.set(d,d);return this},
delete:function(d){return this._map.delete(d)},
clear:function(){this._map.clear()},
forEach:function(d,K){this._map.forEach(d,K)}};
return Z}
function W(){function Z(){this._key=K()}
function d(iu,Fb){for(var xq=0;xq<Fb;++xq)iu[xq]=Math.random()*255|0}
function K(){do{if(Gz)var iu=Gz.randomBytes(16);else typeof Uint8Array==="function"?(iu=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(iu):d(iu,16)):(iu=Array(16),d(iu,16));iu[6]=iu[6]&79|64;iu[8]=iu[8]&191|128;for(var Fb="",xq=0;xq<16;++xq){var Yq=iu[xq];if(xq===4||xq===6||xq===8)Fb+="-";Yq<16&&(Fb+="0");Fb+=Yq.toString(16).toLowerCase()}iu="@@WeakMap@@"+Fb}while(Tz.call(y5,iu));y5[iu]=!0;return iu}
function k(iu,Fb){if(!Tz.call(iu,cp)){if(!Fb)return;Object.defineProperty(iu,cp,{value:Object.create(null)})}return iu[cp]}
var Gz=typeof global!=="undefined"&&typeof oAS==="object"&&typeof require==="function"&&require("crypto"),Tz=Object.prototype.hasOwnProperty,y5={},cp=K();Z.prototype={has:function(iu){return(iu=k(iu,!1))?this._key in iu:!1},
get:function(iu){if(iu=k(iu,!1))return iu[this._key]},
set:function(iu,Fb){k(iu,!0)[this._key]=Fb;return this},
delete:function(iu){return(iu=k(iu,!1))&&this._key in iu?delete iu[this._key]:!1},
clear:function(){this._key=K()}};
return Z}
var L=Object.getPrototypeOf(Function),E=typeof Map==="function"?Map:B(),D=typeof Set==="function"?Set:h(),S=new (typeof WeakMap==="function"?WeakMap:W());A.decorate=function(Z,d,K,k){if(N(k)){if(N(K)){if(!Array.isArray(Z))throw new TypeError;if(!T(d))throw new TypeError;for(K=Z.length-1;K>=0;--K)if(k=(0,Z[K])(d),!N(k)){if(!T(k))throw new TypeError;d=k}return d}if(!Array.isArray(Z))throw new TypeError;if(!z(d))throw new TypeError;K=O(K);for(k=Z.length-1;k>=0;--k)(0,Z[k])(d,K)}else{if(Array.isArray(Z))if(z(d)){if(N(K))throw new TypeError;
if(!z(k))throw new TypeError;}else throw new TypeError;else throw new TypeError;K=O(K);for(var Gz=Z.length-1;Gz>=0;--Gz){var Tz=(0,Z[Gz])(d,K,k);if(!N(Tz)){if(!z(Tz))throw new TypeError;k=Tz}}return k}};
A.metadata=function(Z,d){return function(K,k){if(N(k)){if(!T(K))throw new TypeError;t(K,void 0,!0).set(Z,d)}else{if(!z(K))throw new TypeError;k=O(k);t(K,k,!0).set(Z,d)}}};
A.defineMetadata=function(Z,d){var K;if(z(d))N(K)||(K=O(K));else throw new TypeError;t(d,K,!0).set("parameters",Z)};
A.hasMetadata=function(Z,d,K){if(z(d))N(K)||(K=O(K));else throw new TypeError;return f(Z,d,K)};
A.hasOwnMetadata=function(Z,d,K){if(z(d))N(K)||(K=O(K));else throw new TypeError;return X(Z,d,K)};
A.getMetadata=function(Z,d,K){if(z(d))N(K)||(K=O(K));else throw new TypeError;return Q(Z,d,K)};
A.getOwnMetadata=function(Z,d,K){if(z(d))N(K)||(K=O(K));else throw new TypeError;return q(Z,d,K)};
A.getMetadataKeys=function(Z,d){if(z(Z))N(d)||(d=O(d));else throw new TypeError;return e(Z,d)};
A.getOwnMetadataKeys=function(Z,d){if(z(Z))N(d)||(d=O(d));else throw new TypeError;return G(Z,d)};
A.deleteMetadata=function(Z,d,K){if(z(d))N(K)||(K=O(K));else throw new TypeError;var k=t(d,K,!1);if(!N(k)){if(!k.delete(Z))return!1;if(k.size>0)return!0;Z=S.get(d);Z.delete(K);if(Z.size>0)return!0;S.delete(d);return!0}};
(function(Z){if(typeof Z.Reflect!=="undefined"){if(Z.Reflect!==A)for(var d in A)Z.Reflect[d]=A[d]}else Z.Reflect=A})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(dxb||(dxb={}));var MX5=self;var SXT=[0,_.aD,_.wV,_.aD];var $xp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R($xp,_.e3);var HIl=_.Bu($xp,[0,_.t1,_.rV,SXT,_.wV,_.Xy]);var KGS=[0,_.f3,-3,_.Xy,_.t1,_.aD,_.MjT,_.f3,h3C,OwE,Zr,_.Kd,_.aD,function(){return aYK},
_.wV],aYK=[0,_.rV,function(){return KGS},
_.t1,14,_.f3];_.rS(_.Og,_.DA);_.J=_.Og.prototype;_.J.start=function(){this.stop();this.usingListeners_=!1;var A=gAb(this),t=wn8(this);A&&!t&&this.JSC$11401_win_.mozRequestAnimationFrame?(this.JSC$11401_id_=_.TV(this.JSC$11401_win_,"MozBeforePaint",this.callback_),this.JSC$11401_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11401_id_=A&&t?A.call(this.JSC$11401_win_,this.callback_):this.JSC$11401_win_.setTimeout(oV8(this.callback_),20)};
_.J.stop=function(){if(this.isActive()){var A=gAb(this),t=wn8(this);A&&!t&&this.JSC$11401_win_.mozRequestAnimationFrame?uP(this.JSC$11401_id_):A&&t?t.call(this.JSC$11401_win_,this.JSC$11401_id_):this.JSC$11401_win_.clearTimeout(this.JSC$11401_id_)}this.JSC$11401_id_=null};
_.J.fire=function(){this.stop();this.JSC$11403_doAction_()};
_.J.isActive=function(){return this.JSC$11401_id_!=null};
_.J.JSC$11403_doAction_=function(){this.usingListeners_&&this.JSC$11401_id_&&uP(this.JSC$11401_id_);this.JSC$11401_id_=null;this.JSC$11401_listener_.call(this.handler_,_.k5())};
_.J.disposeInternal=function(){this.stop();_.Og.superClass_.disposeInternal.call(this)};
var gAb=function(A){A=A.JSC$11401_win_;return A.requestAnimationFrame||A.webkitRequestAnimationFrame||A.mozRequestAnimationFrame||A.oRequestAnimationFrame||A.msRequestAnimationFrame||null},wn8=function(A){A=A.JSC$11401_win_;
return A.cancelAnimationFrame||A.cancelRequestAnimationFrame||A.webkitCancelRequestAnimationFrame||A.mozCancelRequestAnimationFrame||A.oCancelRequestAnimationFrame||A.msCancelRequestAnimationFrame||null};_.qI=function(A,t,f){_.DA.call(this);this.JSC$11404_listener_=f!=null?A.bind(f):A;this.JSC$11404_interval_=t;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11404_timer_=null};
_.R(_.qI,_.DA);_.J=_.qI.prototype;_.J.fire=function(A){this.args_=arguments;this.JSC$11404_timer_||this.pauseCount_?this.shouldFire_=!0:s8E(this)};
_.J.stop=function(){this.JSC$11404_timer_&&(_.Xb.clearTimeout(this.JSC$11404_timer_),this.JSC$11404_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.J.pause=function(){this.pauseCount_++};
_.J.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11404_timer_||(this.shouldFire_=!1,s8E(this))};
_.J.disposeInternal=function(){_.DA.prototype.disposeInternal.call(this);this.stop()};
var s8E=function(A){A.JSC$11404_timer_=Ib(function(){A.JSC$11404_timer_=null;A.shouldFire_&&!A.pauseCount_&&(A.shouldFire_=!1,s8E(A))},A.JSC$11404_interval_);
var t=A.args_;A.args_=null;A.JSC$11404_listener_.apply(null,t)};var kVp=function(A,t){this.childIterator_=A[_.Xb.Symbol.iterator]();this.mapFn_=t};
kVp.prototype[Symbol.iterator]=function(){return this};
kVp.prototype.next=function(){var A=this.childIterator_.next();return{value:A.done?void 0:this.mapFn_.call(void 0,A.value),done:A.done}};
var r7p=function(A,t){return new kVp(A,t)};var AoS={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 e8x=function(A){var t=tlw(A);if(!t)throw Error("Xd`"+A);return t},tlw=function(A){var t={};
A=String(A);var f=A.charAt(0)=="#"?A:"#"+A;if(fnC.test(f))return t.hex=AD0(f),t.type="hex",t;f=uKb(A);return f.length?(t.hex=jSp(f[0],f[1],f[2]),t.type="rgb",t):AoS&&(A=AoS[A.toLowerCase()])?(t.hex=A,t.type="named",t):null},XOk=/#(.)(.)(.)/,AD0=function(A){if(!fnC.test(A))throw Error("Zd`"+A);
A.length==4&&(A=A.replace(XOk,"#$1$1$2$2$3$3"));return A.toLowerCase()},GCq=function(A){A=AD0(A);
A=parseInt(A.slice(1),16);return[A>>16,A>>8&255,A&255]},jSp=function(A,t,f){A=Number(A);
t=Number(t);f=Number(f);if(A!=(A&255)||t!=(t&255)||f!=(f&255))throw Error("$d`"+A+"`"+t+"`"+f);t=A<<16|t<<8|f;return A<16?"#"+(16777216|t).toString(16).slice(1):"#"+t.toString(16)},fnC=/^#(?:[0-9a-f]{3}){1,2}$/i,QMi=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,uKb=function(A){var t=A.match(QMi);
if(t){A=Number(t[1]);var f=Number(t[2]);t=Number(t[3]);if(A>=0&&A<=255&&f>=0&&f<=255&&t>=0&&t<=255)return[A,f,t]}return[]};var q7k={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},Uj=q7k;Uj=q7k;var kix,Jow,UIT;kix=function(A,t){switch(t){case 1:return A%4!=0||A%100==0&&A%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Jow=function(A,t,f,X,Q){A=new Date(A,t,f);Q=Q||0;return A.valueOf()+(((X!==void 0?X:3)-Q+7)%7-((A.getDay()+6)%7-Q+7)%7)*864E5};
_.x3=function(A,t,f){typeof A==="number"?(this.date=UIT(A,t||0,f||1),enf(this,f||1)):_.Hp(A)?(this.date=UIT(A.getFullYear(),A.getMonth(),A.getDate()),enf(this,A.getDate())):(this.date=new Date(_.k5()),A=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),enf(this,A))};
UIT=function(A,t,f){t=new Date(A,t,f);A>=0&&A<100&&t.setFullYear(t.getFullYear()-1900);return t};
_.J=_.x3.prototype;_.J.firstDayOfWeek_=Uj.FIRSTDAYOFWEEK;_.J.firstWeekCutOffDay_=Uj.FIRSTWEEKCUTOFFDAY;_.J.clone=function(){var A=new _.x3(this.date);A.firstDayOfWeek_=this.firstDayOfWeek_;A.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return A};
_.J.getFullYear=function(){return this.date.getFullYear()};
_.J.getYear=function(){return this.getFullYear()};
_.J.getMonth=function(){return this.date.getMonth()};
_.J.getDate=function(){return this.date.getDate()};
_.J.getTime=function(){return this.date.getTime()};
_.J.getDay=function(){return this.date.getDay()};
_.J.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.J.getUTCMonth=function(){return this.date.getUTCMonth()};
_.J.getUTCDate=function(){return this.date.getUTCDate()};
_.J.getUTCDay=function(){return this.date.getDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.J.set=function(A){this.date=new Date(A.getFullYear(),A.getMonth(),A.getDate())};
_.J.setFullYear=function(A){this.date.setFullYear(A)};
_.J.setYear=function(A){this.setFullYear(A)};
_.J.setMonth=function(A){this.date.setMonth(A)};
_.J.setDate=function(A){this.date.setDate(A)};
_.J.setTime=function(A){this.date.setTime(A)};
_.J.setUTCFullYear=function(A){this.date.setUTCFullYear(A)};
_.J.setUTCMonth=function(A){this.date.setUTCMonth(A)};
_.J.setUTCDate=function(A){this.date.setUTCDate(A)};
_.J.add=function(A){if(A.years||A.months){var t=this.getMonth()+A.months+A.years*12,f=this.getYear()+Math.floor(t/12);t%=12;t<0&&(t+=12);var X=Math.min(kix(f,t),this.getDate());this.setDate(1);this.setFullYear(f);this.setMonth(t);this.setDate(X)}A.days&&(f=this.getYear(),t=f>=0&&f<=99?-1900:0,A=new Date((new Date(f,this.getMonth(),this.getDate(),12)).getTime()+A.days*864E5),this.setDate(1),this.setFullYear(A.getFullYear()+t),this.setMonth(A.getMonth()),this.setDate(A.getDate()),enf(this,A.getDate()))};
_.J.JSC$11417_toIsoString=function(A){var t=this.getFullYear(),f=t<0?"-":t>=1E4?"+":"";return[f+_.lz(Math.abs(t),f?6:4),_.lz(this.getMonth()+1,2),_.lz(this.getDate(),2)].join(A?"-":"")};
_.J.equals=function(A){return!(!A||this.getYear()!=A.getYear()||this.getMonth()!=A.getMonth()||this.getDate()!=A.getDate())};
_.J.toString=function(){return this.JSC$11417_toIsoString()};
var enf=function(A,t){A.getDate()!=t&&A.date.setUTCHours(A.date.getUTCHours()+(A.getDate()<t?1:-1))};
_.x3.prototype.valueOf=function(){return this.date.valueOf()};var Y3=function(A,t,f,X,Q){this.reversed=!!t;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!f;A&&jP(this,A,X);this.depth=Q!=void 0?Q:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.rS(Y3,P0);var jP=function(A,t,f,X){if(A.node=t)A.tagType=typeof f==="number"?f:A.node.nodeType!=1?0:A.reversed?-1:1;typeof X==="number"&&(A.depth=X)};
_.J=Y3.prototype;_.J.JSC$11432_copyFrom=function(A){this.node=A.node;this.tagType=A.tagType;this.depth=A.depth;this.reversed=A.reversed;this.constrained=A.constrained};
_.J.clone=function(){return new Y3(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.J.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return TE;var A=this.node;var t=this.reversed?-1:1;if(this.tagType==t){var f=this.reversed?A.lastChild:A.firstChild;f?jP(this,f):jP(this,A,t*-1)}else(f=this.reversed?A.previousSibling:A.nextSibling)?jP(this,f):jP(this,A.parentNode,t*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(A=this.node)?ie(A):TE};
_.J.equals=function(A){return A.node==this.node&&(!this.node||A.tagType==this.tagType)};
_.J.splice=function(A){var t=this.node,f=this.reversed?1:-1;this.tagType==f&&(this.tagType=f*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Y3.prototype.next.call(this);this.reversed=!this.reversed;f=_.ST(arguments[0])?arguments[0]:arguments;for(var X=f.length-1;X>=0;X--)_.Y6(f[X],t);_.vf(t)};var G68=function(){},V7=function(A){for(var t=[],f=A.getTextRangeCount(),X=0;X<f;X++)t.push(A.getTextRange(X));
return t};
G68.prototype.isReversed=function(){return!1};
G68.prototype.getWindow=function(){return dG(_.Sn(this.JSC$11434_getStartNode()))};
var lnS=function(A,t){Y3.call(this,A,t,!0)};
_.rS(lnS,Y3);var Zo=function(A,t,f,X,Q){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Q;if(A){this.startNode_=A;this.startOffset_=t;this.endNode_=f;this.endOffset_=X;if(A.nodeType==1&&A.tagName!="BR")if(A=A.childNodes,t=A[t])this.startNode_=t,this.startOffset_=0;else{A.length&&(this.startNode_=_.Ex(A));var q=!0}f.nodeType==1&&((this.endNode_=f.childNodes[X])?this.endOffset_=0:this.endNode_=f)}Y3.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);q&&this.next()};
_.rS(Zo,lnS);_.J=Zo.prototype;_.J.JSC$11440_getStartNode=function(){return this.startNode_};
_.J.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)};
_.J.next=function(){return this.isLast()?TE:Zo.superClass_.next.call(this)};
_.J.JSC$11432_copyFrom=function(A){this.startNode_=A.startNode_;this.endNode_=A.endNode_;this.startOffset_=A.startOffset_;this.endOffset_=A.endOffset_;this.isReversed_=A.isReversed_;Zo.superClass_.JSC$11432_copyFrom.call(this,A)};
_.J.clone=function(){var A=new Zo(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);A.JSC$11432_copyFrom(this);return A};var Ne8=function(){};
Ne8.prototype.__iterator__=function(){return new Zo(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var oY=function(A){this.range_=A};
_.rS(oY,Ne8);var uRE=function(A){var t=_.Sn(A).createRange();if(A.nodeType==3)t.setStart(A,0),t.setEnd(A,A.length);else if(I1(A)||A.nodeType==3){for(var f,X=A;(f=X.firstChild)&&(I1(f)||f.nodeType==3);)X=f;t.setStart(X,0);for(X=A;(f=X.lastChild)&&(I1(f)||f.nodeType==3);)X=f;t.setEnd(X,X.nodeType==1?X.childNodes.length:X.length)}else f=A.parentNode,A=Array.prototype.indexOf.call(f.childNodes,A),t.setStart(f,A),t.setEnd(f,A+1);return t},znS=function(A,t,f,X){var Q=_.Sn(A).createRange();
Q.setStart(A,t);Q.setEnd(f,X);return Q};
_.J=oY.prototype;_.J.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.J.getContainer=function(){return this.range_.commonAncestorContainer};
_.J.compareBrowserRangeEndpoints=function(A,t,f){return this.range_.compareBoundaryPoints(f==1?t==1?_.Xb.Range.START_TO_START:_.Xb.Range.START_TO_END:t==1?_.Xb.Range.END_TO_START:_.Xb.Range.END_TO_END,A)};
_.J.isCollapsed=function(){return this.range_.collapsed};
_.J.select=function(A){this.selectInternal(dG(_.Sn(this.range_.startContainer)).getSelection(),A)};
_.J.selectInternal=function(A){A.removeAllRanges();A.addRange(this.range_)};
_.J.insertNode=function(A,t){var f=this.range_.cloneRange();f.collapse(t);f.insertNode(A);f.detach();return A};
_.J.collapse=function(A){this.range_.collapse(A)};_.rS(cV,oY);cV.prototype.selectInternal=function(A,t){!t||this.isCollapsed()?cV.superClass_.selectInternal.call(this,A,t):(A.collapse(this.range_.endContainer,this.range_.endOffset),A.extend(this.range_.startContainer,this.range_.startOffset))};_.rS(BV,oY);BV.prototype.compareBrowserRangeEndpoints=function(A,t,f){return BV.superClass_.compareBrowserRangeEndpoints.call(this,A,t,f)};
BV.prototype.selectInternal=function(A,t){t?A.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):A.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Pmi=function(A){return _.q1?new BV(A):_.Qe?new cV(A):new oY(A)};var dc=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Tek;
_.rS(dc,G68);Tek=function(A,t){var f=new dc;f.browserRangeWrapper_=A;f.isReversed_=!!t;return f};
_.i1f=function(A){A=_.q1?new BV(uRE(A)):_.Qe?new cV(uRE(A)):new oY(uRE(A));return Tek(A)};
_.SP=function(A,t,f,X){var Q=new dc;Q.isReversed_=O1f(A,t,f,X);if(_.lX(A)&&!I1(A)){var q=A.parentNode;t=Array.prototype.indexOf.call(q.childNodes,A);A=q}_.lX(f)&&!I1(f)&&(q=f.parentNode,X=Array.prototype.indexOf.call(q.childNodes,f),f=q);Q.isReversed_?(Q.startNode_=f,Q.startOffset_=X,Q.endNode_=A,Q.endOffset_=t):(Q.startNode_=A,Q.startOffset_=t,Q.endNode_=f,Q.endOffset_=X);return Q};
_.J=dc.prototype;_.J.clone=function(){var A=new dc;A.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();A.startNode_=this.startNode_;A.startOffset_=this.startOffset_;A.endNode_=this.endNode_;A.endOffset_=this.endOffset_;A.isReversed_=this.isReversed_;return A};
_.J.JSC$11434_getType=function(){return"text"};
_.J.getBrowserRangeObject=function(){return $3(this).range_};
_.J.getTextRangeCount=function(){return 1};
_.J.getTextRange=function(){return this};
var $3=function(A){var t;if(!(t=A.browserRangeWrapper_)){t=A.JSC$11434_getStartNode();var f=A.JSC$11434_getStartOffset(),X=A.JSC$11434_getEndNode(),Q=A.JSC$11434_getEndOffset();t=_.q1?new BV(znS(t,f,X,Q)):_.Qe?new cV(znS(t,f,X,Q)):new oY(znS(t,f,X,Q));t=A.browserRangeWrapper_=t}return t};
_.J=dc.prototype;_.J.getContainer=function(){return $3(this).getContainer()};
_.J.JSC$11434_getStartNode=function(){return this.startNode_||(this.startNode_=$3(this).range_.startContainer)};
_.J.JSC$11434_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=$3(this).range_.startOffset};
_.J.JSC$11434_getEndNode=function(){return this.endNode_||(this.endNode_=$3(this).range_.endContainer)};
_.J.JSC$11434_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=$3(this).range_.endOffset};
_.J.isReversed=function(){return this.isReversed_};
_.J.JSC$11434_containsRange=function(A,t){if(A.JSC$11434_getType()=="text"){var f=$3(this);A=$3(A);t=t&&!A.isCollapsed();A=A.range_;f=t?f.compareBrowserRangeEndpoints(A,0,1)>=0&&f.compareBrowserRangeEndpoints(A,1,0)<=0:f.compareBrowserRangeEndpoints(A,0,0)>=0&&f.compareBrowserRangeEndpoints(A,1,1)<=0}else f=!1;return f};
_.J.isCollapsed=function(){return $3(this).isCollapsed()};
_.J.JSC$11434_getText=function(){return $3(this).range_.toString()};
_.J.__iterator__=function(){return new Zo(this.JSC$11434_getStartNode(),this.JSC$11434_getStartOffset(),this.JSC$11434_getEndNode(),this.JSC$11434_getEndOffset())};
_.J.select=function(){$3(this).select(this.isReversed_)};
_.J.JSC$11434_removeContents=function(){var A=$3(this).range_;A.extractContents();if(A.startContainer.hasChildNodes()&&(A=A.startContainer.childNodes[A.startOffset])){var t=A.previousSibling;jkp(A)==""&&_.vf(A);t&&jkp(t)==""&&_.vf(t)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.J.insertNode=function(A,t){A=$3(this).insertNode(A,t);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return A};
_.J.collapse=function(A){A=this.isReversed()?!A:A;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(A);A?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var coT=function(){};
_.rS(coT,G68);coT.prototype.JSC$11434_containsRange=function(A,t){var f=V7(this);A=V7(A);return(t?Uv:_.Y5p)(A,function(X){return Uv(f,function(Q){return Q.JSC$11434_containsRange(X,t)})})};
coT.prototype.insertNode=function(A,t){t?_.jq(A,this.JSC$11434_getStartNode()):_.Y6(A,this.JSC$11434_getEndNode());return A};var Bel,Mlp=nn().JSC$9409_document_.documentElement;Bel=Mlp.requestFullscreen?"fullscreenchange":Mlp.webkitRequestFullscreen?"webkitfullscreenchange":Mlp.mozRequestFullScreen?"mozfullscreenchange":Mlp.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Cmb=function(){var A=nn().JSC$9409_document_;return!!(A.webkitIsFullScreen||A.mozFullScreen||A.msFullscreenElement||A.fullscreenElement)};var Hr=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.rS(Hr,coT);_.J=Hr.prototype;_.J.clone=function(){var A=new Hr;A.browserRanges_=_.ds(this.browserRanges_);return A};
_.J.JSC$11434_getType=function(){return"mutli"};
_.J.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.J.getTextRangeCount=function(){return this.browserRanges_.length};
_.J.getTextRange=function(A){this.ranges_[A]||(this.ranges_[A]=Tek(Pmi(this.browserRanges_[A])));return this.ranges_[A]};
_.J.getContainer=function(){if(!this.container_){for(var A=[],t=this.getTextRangeCount(),f=0;f<t;f++)A.push(this.getTextRange(f).getContainer());this.container_=pdT.apply(null,A)}return this.container_};
var aY=function(A){A.sortedRanges_||(A.sortedRanges_=V7(A),A.sortedRanges_.sort(function(t,f){var X=t.JSC$11434_getStartNode();t=t.JSC$11434_getStartOffset();var Q=f.JSC$11434_getStartNode();f=f.JSC$11434_getStartOffset();return X==Q&&t==f?0:O1f(X,t,Q,f)?1:-1}));
return A.sortedRanges_};
_.J=Hr.prototype;_.J.JSC$11434_getStartNode=function(){return aY(this)[0].JSC$11434_getStartNode()};
_.J.JSC$11434_getStartOffset=function(){return aY(this)[0].JSC$11434_getStartOffset()};
_.J.JSC$11434_getEndNode=function(){return _.Ex(aY(this)).JSC$11434_getEndNode()};
_.J.JSC$11434_getEndOffset=function(){return _.Ex(aY(this)).JSC$11434_getEndOffset()};
_.J.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.J.JSC$11434_getText=function(){return V7(this).map(function(A){return A.JSC$11434_getText()}).join("")};
_.J.__iterator__=function(){return new K6(this)};
_.J.select=function(){var A=this.getWindow().getSelection();A.removeAllRanges();for(var t=this.getTextRangeCount(),f=0;f<t;f++)A.addRange(this.getTextRange(f).getBrowserRangeObject())};
_.J.JSC$11434_removeContents=function(){V7(this).forEach(function(A){A.JSC$11434_removeContents()})};
_.J.collapse=function(A){if(!this.isCollapsed()){var t=A?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;t.collapse(A);this.ranges_=[t];this.sortedRanges_=[t];this.browserRanges_=[t.getBrowserRangeObject()]}};
var K6=function(A){this.iterators_=null;this.currentIdx_=0;A&&(this.iterators_=aY(A).map(function(t){return _.DJT(t)}));
Y3.call(this,A?this.JSC$11440_getStartNode():null,!1,!0)};
_.rS(K6,lnS);_.J=K6.prototype;_.J.JSC$11440_getStartNode=function(){return this.iterators_[0].JSC$11440_getStartNode()};
_.J.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.J.next=function(){for(;this.currentIdx_<this.iterators_.length;){var A=this.iterators_[this.currentIdx_],t=A.next();if(t.done)this.currentIdx_++;else return jP(this,A.node,A.tagType,A.depth),t}return TE};
_.J.JSC$11432_copyFrom=function(A){this.iterators_=_.ds(A.iterators_);K6.superClass_.JSC$11432_copyFrom.call(this,A)};
_.J.clone=function(){var A=new K6(null);A.JSC$11432_copyFrom(this);return A};var hni,O1f;_.f8=function(){var A=window.getSelection();return A&&hni(A)};
hni=function(A){var t=!1;if(A.createRange)try{var f=A.createRange()}catch(Q){return null}else if(A.rangeCount){if(A.rangeCount>1){f=new Hr;t=A.rangeCount;for(var X=0;X<t;X++)f.browserRanges_.push(A.getRangeAt(X));return f}f=A.getRangeAt(0);t=O1f(A.anchorNode,A.anchorOffset,A.focusNode,A.focusOffset)}else return null;return Tek(Pmi(f),t)};
_.wc=function(A,t){return _.SP(A,t,A,t)};
_.sU=function(A,t,f,X){return _.SP(A,t,f,X)};
O1f=function(A,t,f,X){if(A==f)return X<t;var Q;if(A.nodeType==1&&t)if(Q=A.childNodes[t])A=Q,t=0;else if(_.gw(A,f))return!0;if(f.nodeType==1&&X)if(Q=f.childNodes[X])f=Q,X=0;else if(_.gw(f,A))return!1;return(LSw(A,f)||t-X)>0};var k3=function(){_.p_.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.F1)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.F1)(this.dispatchProgressEvent_,this)};
_.rS(k3,_.p_);k3.prototype.abort=function(){try{this.reader_.abort()}catch(A){throw new jqT(A,"aborting read");}};
k3.prototype.getError=function(){return this.reader_.error&&new jqT(this.reader_.error,"reading file")};
k3.prototype.dispatchProgressEvent_=function(A){this.dispatchEvent(new Y9l(A,this))};
k3.prototype.disposeInternal=function(){k3.superClass_.disposeInternal.call(this);delete this.reader_};
var mIk=function(A){var t=new k3,f=Rnf(t);t.reader_.readAsArrayBuffer(A);return f},b1k=function(A){var t=new k3,f=Rnf(t);
t.reader_.readAsDataURL(A);return f},Rnf=function(A){var t=new AH;
A.listen("loadend",_.l0(function(f,X){var Q=X.reader_.result,q=X.getError();Q==null||q?f.errback(q):f.callback(Q);X.dispose()},t,A));
return t};var rc=function(){_.p_.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11474_eventHandler_=new _.CP(this);this.JSC$11474_isInitialized_=!1};
_.rS(rc,_.p_);var Wfl=new _.mk("d"),yoS=new _.mk("beforedragstart"),vEp=new _.mk("dragstart"),LfK=new _.mk("beforedragmove"),pOb=new _.mk("dragmove"),EET=new _.mk("beforedragend"),nET=new _.mk("dragend"),DIw=new _.mk("e");rc.prototype.isDragging=function(){return!!this.JSC$11474_dragger_};
var Ffp=function(A,t){t.dlgGrowthDirection_=0;t.dlgDragHoverClass_=void 0;t.dlgDragPermission=0;A.dragLists_.push(t)},Inp=function(A,t){A.getHandleForDragItem_=t};
rc.prototype.init=function(){if(!this.JSC$11474_isInitialized_){for(var A=this.dragLists_.length,t=0;t<A;t++)for(var f=_.VD(this.dragLists_[t]),X=f.length,Q=0;Q<X;++Q){var q=f[Q],e=this.getHandleForDragItem_(q),G=_.gs(e);this.dragItemForHandle_[G]=q;this.dragItemHoverClasses_&&(this.JSC$11474_eventHandler_.listen(q,"mouseover",this.handleDragItemMouseover_),this.JSC$11474_eventHandler_.listen(q,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11474_eventHandler_.listen(e,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11474_eventHandler_.listen(e,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(q);this.JSC$11474_eventHandler_.listen(e,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11474_isInitialized_=!0}};
rc.prototype.disposeInternal=function(){this.JSC$11474_eventHandler_.dispose();for(var A=this.dragLists_.length,t=0;t<A;t++){var f=this.dragLists_[t];f.dlgGrowthDirection_=void 0;f.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;xIT(this);rc.superClass_.disposeInternal.call(this)};
var jMp=function(A,t){for(var f=A.dragLists_.length,X=0;X<f;X++){var Q=A.dragLists_[X];Q.dlgBounds_=Pz5(Q)}f=A.dragItems_.length;for(X=0;X<f;X++)Q=A.dragItems_[X],Q!=t&&(Q.dlgBounds_=Pz5(Q))};
_.J=rc.prototype;
_.J.handlePotentialDragStart_=function(A){var t=_.gs(A.currentTarget);t=this.dragItemForHandle_[t];if(t.parentElement.dlgDragPermission!=2){this.currDragItem_=t;a:{t=this.currDragItem_;for(var f=t.cloneNode(!0),X=LA("TEXTAREA",t),Q=LA("TEXTAREA",f),q=0;q<X.length;q++)Q[q].value=X[q].value;switch(t.tagName){case "TR":t=_.DC("TABLE",null,_.DC("TBODY",null,f));break a;case "TD":case "TH":t=_.DC("TABLE",null,_.DC("TBODY",null,_.DC("TR",null,f)));break a;case "TEXTAREA":f.value=t.value;default:t=f;break a}t=
void 0}this.draggerEl_=t;this.draggerElClasses_&&kg(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Sn(this.currDragItem_).body.appendChild(this.draggerEl_);f=_.$N(this.currDragItem_);t=this.draggerEl_;X=_.$N(t);if(f instanceof _.ok){var e=f.y;f=f.x}$6(t,t.offsetLeft+(f-X.x),t.offsetTop+(Number(e)-X.y));this.JSC$11474_dragger_=new _.$w(this.draggerEl_);_.xP8(this.JSC$11474_dragger_,this.hysteresisDistance_);
_.TV(this.JSC$11474_dragger_,"start",this.handleDragStart_,!1,this);_.TV(this.JSC$11474_dragger_,"end",this.handleDragEnd_,!1,this);_.TV(this.JSC$11474_dragger_,"earlycancel",this.JSC$11476_cleanup_,!1,this);this.dispatchEvent(new A2(Wfl,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11474_dragger_));this.JSC$11474_dragger_.startDrag(A)}};
_.J.handleDragStart_=function(A){if(this.dispatchEvent(new A2(yoS,this,A.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.WSp(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?kg(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var t=SP7(this.draggerEl_);this.draggerEl_.halfWidth=t.width/2;this.draggerEl_.halfHeight=t.height/2;t=this.draggerEl_.getBoundingClientRect();
var f=A.clientY,X=jWl(this.JSC$11474_dragger_,A.clientX);if(X>t.right){var Q=this.currDragItem_.getBoundingClientRect();this.JSC$11474_dragger_.deltaX=X-(X-Q.left)/Q.width*t.width}f=YgC(this.JSC$11474_dragger_,f);f>t.bottom&&(this.JSC$11474_dragger_.deltaY+=f-t.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";jMp(this,this.currDragItem_);this.currDragItem_.style.display="";_.TV(this.JSC$11474_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new A2(vEp,
this,A.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11474_dragger_))}else A.preventDefault(),this.JSC$11476_cleanup_()};
_.J.handleDragMove_=function(A){var t=_.$N(this.draggerEl_);t=new _.ok(t.x+this.draggerEl_.halfWidth,t.y+this.draggerEl_.halfHeight);a:{var f=null;if(this.currDragItem_.style.display!="none"){f=this.currDragItem_.parentNode;var X=Pz5(f);if(Y7b(t,X))break a}X=this.dragLists_.length;for(var Q=0;Q<X;Q++){var q=this.dragLists_[Q];if(q!=f&&Y7b(t,q.dlgBounds_)){f=q;break a}}f=null}if(f){if(f==null)throw Error("ae");X=0;Q=!1;q=void 0;switch(f.dlgGrowthDirection_){case 0:X=t.y;var e=Vli;var G=Z1C;break;case 4:Q=
!0;case 2:X=t.x;e=oEf;G=Z1C;break;case 5:Q=!0;case 3:X=t.x,e=dIK,G=S7C}for(var N=null,z,T=_.VD(f),O=T.length,c=0;c<O;c++){var B=T[c];if(B!=this.currDragItem_){var h=e(B.dlgBounds_);if(Q){var W=$I7(B,t);q===void 0&&(q=W);G(X,h)&&(z==void 0||W<q||W==q&&(G(h,z)||h==z))&&(N=B,z=h);W<q&&(q=W)}else G(X,h)&&(z==void 0||G(h,z))&&(N=B,z=h)}}e=N!==null&&$I7(N,t)>q?null:N}else e=null;if(!this.dispatchEvent(new A2(LfK,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11474_dragger_,t,f,e)))return!1;if(f&&f.dlgDragPermission!=
1)this.currDragItem_.parentNode==f&&_.WSp(this.currDragItem_)==e||f.insertBefore(this.currDragItem_,e),this.currDragItem_.style.display="",f.dlgDragHoverClass_&&_.Vx(f,f.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",G=this.dragLists_.length,z=0;z<G;z++)X=this.dragLists_[z],X.dlgDragHoverClass_&&_.jr(X,X.dlgDragHoverClass_);f!=this.currHoverList_&&(this.currHoverList_=f,jMp(this,this.currDragItem_));this.dispatchEvent(new A2(pOb,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11474_dragger_,
t,f,e));return!1};
_.J.JSC$11476_cleanup_=function(){xIT(this);this.JSC$11474_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var A=this.dragLists_.length,t=0;t<A;t++)this.dragLists_[t].dlgBounds_=null;A=this.dragItems_.length;for(t=0;t<A;t++)this.dragItems_[t].dlgBounds_=null};
_.J.handleDragEnd_=function(A){if(!this.dispatchEvent(new A2(EET,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11474_dragger_)))return!1;xIT(this);this.dispatchEvent(new A2(nET,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11474_dragger_));this.JSC$11476_cleanup_();return!0};
var xIT=function(A){_.ee(A.JSC$11474_dragger_);var t=A.draggerEl_&&A.draggerEl_.parentElement;A.draggerEl_&&_.vf(A.draggerEl_);A.currDragItem_&&A.currDragItem_.style.display=="none"&&(A.origList_.insertBefore(A.currDragItem_,A.origNextItem_),A.currDragItem_.style.display="");A.currDragItemClasses_&&A.currDragItem_?FZw(A.currDragItem_,A.currDragItemClasses_||[]):A.currDragItem_&&(A.currDragItem_.style.visibility="");for(var f=A.dragLists_.length,X=0;X<f;X++){var Q=A.dragLists_[X];Q.dlgDragHoverClass_&&
_.jr(Q,Q.dlgDragHoverClass_)}t&&A.dispatchEvent(new A2(DIw,A,null,A.currDragItem_,A.draggerEl_,A.JSC$11474_dragger_))};
_.J=rc.prototype;_.J.getHandleForDragItem_=function(A){return A};
_.J.handleDragItemMouseover_=function(A){kg(A.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemMouseout_=function(A){FZw(A.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemHandleMouseover_=function(A){kg(A.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.J.handleDragItemHandleMouseout_=function(A){FZw(A.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Y7b=function(A,t){return A.x>t.left&&A.x<t.left+t.width&&A.y>t.top&&A.y<t.top+t.height},$I7=function(A,t){A=A.dlgBounds_;
return Math.abs(t.y-(A.top+(A.height-1)/2))},Vli=function(A){return A.top+A.height-1},oEf=function(A){return A.left+A.width-1},dIK=function(A){return A.left||0},Z1C=function(A,t){return A<t},S7C=function(A,t){return A>t},A2=function(A,t,f,X,Q,q){_.b6.call(this,A);
this.event=f;this.currDragItem=X;this.draggerEl=Q;this.JSC$11478_dragger=q};
_.rS(A2,_.b6);_.rS(hW,_.DA);var H1p=new _.ok(0,0);hW.prototype.JSC$11482_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
hW.prototype.JSC$11482_onMouseMove=function(A){var t=this.containerIsActuallyContent_?H1p:EP(nn(this.containerNode_)),f=this.horizontalScrolling_?this.calculateScrollDelta(A.clientX+t.x,this.scrollBounds_.left,this.scrollBounds_.width):0,X=this.calculateScrollDelta(A.clientY+t.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=f;this.scrollDelta_.y=X;!(f=!f&&!X)&&(f=this.constrainScroll_)&&(f=A.clientX+t.x,A=A.clientY+t.y,t=this.containerBounds_,f=!(t.left<=f&&t.left+t.width>=
f&&t.top<=A&&t.top+t.height>=A));f?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
hW.prototype.calculateScrollDelta=function(A,t,f){var X=0;A<t?X=-8:A>t+f&&(X=8);return X};
hW.prototype.disposeInternal=function(){hW.superClass_.disposeInternal.call(this);this.JSC$11480_eventHandler_.dispose();this.scrollTimer_.dispose()};var anb={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"}}},t2=anb;t2=anb;var f9={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 Kf7=function(){},VQ=function(A){if(typeof A=="number"){var t=new Kf7;
t.standardOffset_=A;var f=A;if(f==0)f="Etc/GMT";else{var X=["Etc/GMT",f<0?"-":"+"];f=Math.abs(f);X.push(Math.floor(f/60)%100);f%=60;f!=0&&X.push(":",_.lz(f,2));f=X.join("")}t.timeZoneId_=f;f=A;f==0?f="UTC":(X=["UTC",f<0?"+":"-"],f=Math.abs(f),X.push(Math.floor(f/60)%100),f%=60,f!=0&&X.push(":",f),f=X.join(""));A=gET(A);t.tzNames_=[f,f];t.tzNamesExt_={STD_LONG_NAME_GMT:A,STD_GENERIC_LOCATION:A};t.transitions_=[];return t}t=new Kf7;t.timeZoneId_=A.id;t.standardOffset_=-A.std_offset;t.tzNames_=A.names;
t.tzNamesExt_=A.names_ext;t.transitions_=A.transitions;return t},gET=function(A){var t=["GMT"];
t.push(A<=0?"+":"-");A=Math.abs(A);t.push(_.lz(Math.floor(A/60)%100,2),":",_.lz(A%60,2));return t.join("")},wOT=function(A,t){t=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes())/36E5;
for(var f=0;f<A.transitions_.length&&t>=A.transitions_[f];)f+=2;return f==0?0:A.transitions_[f-1]},sM8=function(A,t){A=A.standardOffset_-wOT(A,t);
return A===-1440?0:A};var Zt=function(A,t){this.patternParts_=[];this.JSC$11493_dateTimeSymbols_=t||Uj;typeof A=="number"?k6T(this,A):roE(this,A)},AEb=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],X9=function(A){return A.getHours?A.getHours():0},roE=function(A,t){for(MHp&&(t=t.replace(/\u200f/g,""));t;){for(var f=t,X=0;X<AEb.length;++X){var Q=t.match(AEb[X]);
if(Q){var q=Q[0];t=t.substring(q.length);X==0&&(q=="''"?q="'":(q=q.substring(1,Q[1]=="'"?q.length-1:q.length),q=q.replace(/''/g,"'")));A.patternParts_.push({text:q,type:X});break}}if(f===t)throw Error("be`"+t);}};
Zt.prototype.format=function(A,t){if(!A)throw Error("ce");var f=t?(A.getTimezoneOffset()-sM8(t,A))*6E4:0,X=f?new Date(A.getTime()+f):A,Q=X;t&&X.getTimezoneOffset()!=A.getTimezoneOffset()&&(X=new Date(X.getTime()+(X.getTimezoneOffset()-A.getTimezoneOffset())*6E4),Q=new Date(A.getTime()+(f+(f>0?-864E5:864E5))));f=[];for(var q=0;q<this.patternParts_.length;++q){var e=this.patternParts_[q].text;1==this.patternParts_[q].type?f.push(tLK(this,e,A,X,Q,t)):f.push(e)}return f.join("")};
var k6T=function(A,t){if(t<4)var f=A.JSC$11493_dateTimeSymbols_.DATEFORMATS[t];else if(t<8)f=A.JSC$11493_dateTimeSymbols_.TIMEFORMATS[t-4];else if(t<12)f=A.JSC$11493_dateTimeSymbols_.DATETIMEFORMATS[t-8],f=f.replace("{1}",A.JSC$11493_dateTimeSymbols_.DATEFORMATS[t-8]),f=f.replace("{0}",A.JSC$11493_dateTimeSymbols_.TIMEFORMATS[t-8]);else if(t===12)f=A.JSC$11493_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(t===13)f=A.JSC$11493_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{k6T(A,10);return}roE(A,f)},Qt=function(A,t){t=String(t);
A=A.JSC$11493_dateTimeSymbols_||Uj;if(A.ZERODIGIT!==void 0&&!BNz){for(var f=[],X=0;X<t.length;X++){var Q=t.charCodeAt(X);f.push(48<=Q&&Q<=57?String.fromCharCode(A.ZERODIGIT+Q-48):t.charAt(X))}t=f.join("")}return t},BNz=!1,MHp=!1,X1b=function(A,t,f,X){f=f.getFullYear();
f<=0&&X&&(f=1-f);return Qt(A,fBi(f,t))},fBi=function(A,t){t==2&&(A%=100);
A<0&&t++;return _.lz(A,t)},qh=function(A){if(!(A.getHours&&A.getSeconds&&A.getMinutes))throw Error("de");
},Qvf=function(A,t){qh(t);
t=X9(t);return A.JSC$11493_dateTimeSymbols_.AMPMS[t>=12&&t<24?1:0]},tLK=function(A,t,f,X,Q,q){var e=t.length;
switch(t.charAt(0)){case "G":return f=X.getFullYear()>0?1:0,e>=4?A.JSC$11493_dateTimeSymbols_.ERANAMES[f]:A.JSC$11493_dateTimeSymbols_.ERAS[f];case "y":return X1b(A,e,X,!0);case "Y":return f=(new Date(Jow(X.getFullYear(),X.getMonth(),X.getDate(),A.JSC$11493_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,A.JSC$11493_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),e==2&&(f%=100),Qt(A,fBi(f,e));case "u":return X1b(A,e,X,!1);case "M":a:switch(f=X.getMonth(),e){case 5:e=A.JSC$11493_dateTimeSymbols_.NARROWMONTHS[f];
break a;case 4:e=A.JSC$11493_dateTimeSymbols_.MONTHS[f];break a;case 3:e=A.JSC$11493_dateTimeSymbols_.SHORTMONTHS[f];break a;default:e=Qt(A,_.lz(f+1,e))}return e;case "k":return qh(Q),Qt(A,_.lz(X9(Q)||24,e));case "S":return Qt(A,(Q.getMilliseconds()/1E3).toFixed(Math.min(3,e)).slice(2)+(e>3?_.lz(0,e-3):""));case "E":return f=X.getDay(),e>=4?A.JSC$11493_dateTimeSymbols_.WEEKDAYS[f]:A.JSC$11493_dateTimeSymbols_.SHORTWEEKDAYS[f];case "a":return Qvf(A,Q);case "b":return Qvf(A,Q);case "B":return Qvf(A,
Q);case "h":return qh(Q),Qt(A,_.lz(X9(Q)%12||12,e));case "K":return qh(Q),Qt(A,_.lz(X9(Q)%12,e));case "H":return qh(Q),Qt(A,_.lz(X9(Q),e));case "c":a:switch(f=X.getDay(),e){case 5:e=A.JSC$11493_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[f];break a;case 4:e=A.JSC$11493_dateTimeSymbols_.STANDALONEWEEKDAYS[f];break a;case 3:e=A.JSC$11493_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[f];break a;default:e=Qt(A,_.lz(f,1))}return e;case "L":a:switch(f=X.getMonth(),e){case 5:e=A.JSC$11493_dateTimeSymbols_.STANDALONENARROWMONTHS[f];
break a;case 4:e=A.JSC$11493_dateTimeSymbols_.STANDALONEMONTHS[f];break a;case 3:e=A.JSC$11493_dateTimeSymbols_.STANDALONESHORTMONTHS[f];break a;default:e=Qt(A,_.lz(f+1,e))}return e;case "Q":return f=Math.floor(X.getMonth()/3),e<4?A.JSC$11493_dateTimeSymbols_.SHORTQUARTERS[f]:A.JSC$11493_dateTimeSymbols_.QUARTERS[f];case "d":return Qt(A,_.lz(X.getDate(),e));case "m":return qh(Q),Qt(A,_.lz(Q.getMinutes?Q.getMinutes():0,e));case "s":return qh(Q),Qt(A,_.lz(Q.getSeconds(),e));case "v":return(q||VQ(f.getTimezoneOffset())).timeZoneId_;
case "V":return A=q||VQ(f.getTimezoneOffset()),e<=2?A.timeZoneId_:wOT(A,f)>0?A.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?A.tzNamesExt_.DST_GENERIC_LOCATION:A.tzNamesExt_.DST_GENERIC_LOCATION:A.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?A.tzNamesExt_.STD_GENERIC_LOCATION:A.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return f=Jow(Q.getFullYear(),Q.getMonth(),Q.getDate(),A.JSC$11493_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,A.JSC$11493_dateTimeSymbols_.FIRSTDAYOFWEEK),Qt(A,_.lz(Math.floor(Math.round((f-(new Date((new Date(f)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,e));case "z":return A=q||VQ(f.getTimezoneOffset()),e<4?A.tzNames_[wOT(A,f)>0?2:0]:A.tzNames_[wOT(A,f)>0?3:1];case "Z":return t=q||VQ(f.getTimezoneOffset()),e<4?(e=-sM8(t,f),A=[e<0?"-":"+"],e=Math.abs(e),A.push(_.lz(Math.floor(e/60)%100,2),_.lz(e%60,2)),e=A.join("")):e=Qt(A,gET(sM8(t,f))),e;default:return""}};var qnf=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,JEk=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Rvp=function(A){this.patternParts_=[];this.JSC$11502_dateTimeSymbols_=Uj;if(typeof A=="number"){A>11&&(A=10);if(A<4)var t=this.JSC$11502_dateTimeSymbols_.DATEFORMATS[A];else A<8?t=this.JSC$11502_dateTimeSymbols_.TIMEFORMATS[A-4]:(t=this.JSC$11502_dateTimeSymbols_.DATETIMEFORMATS[A-8],t=t.replace("{1}",this.JSC$11502_dateTimeSymbols_.DATEFORMATS[A-8]),t=t.replace("{0}",this.JSC$11502_dateTimeSymbols_.TIMEFORMATS[A-
8]));Ut7(this,t)}else Ut7(this,A)},Ut7=function(A,t){for(var f=!1,X="",Q=0;Q<t.length;Q++){var q=t.charAt(Q);
if(qnf.test(q))for(X.length>0&&(A.patternParts_.push({text:X,count:0,abutStart:!1,numeric:!1}),X=""),A.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Q<t.length-1&&t.charAt(Q+1)==" ";)Q++;else if(f)q=="'"?Q+1<t.length&&t.charAt(Q+1)=="'"?(X+="'",Q++):f=!1:X+=q;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(q)>=0){X.length>0&&(A.patternParts_.push({text:X,count:0,abutStart:!1,numeric:!1}),X="");for(var e=t.charAt(Q),G=Q+1;G<t.length&&t.charAt(G)==e;)G++;e=G-Q;e<=0?G=!1:(G="MydhHmsSDkK".indexOf(q),
G=G>0||G==0&&e<3);A.patternParts_.push({text:q,count:e,abutStart:!1,numeric:G});Q+=e-1}else q=="'"?Q+1<t.length&&t.charAt(Q+1)=="'"?(X+="'",Q++):f=!0:X+=q}X.length>0&&A.patternParts_.push({text:X,count:0,abutStart:!1,numeric:!1});t=!1;for(f=0;f<A.patternParts_.length;f++)A.patternParts_[f].numeric?!t&&f+1<A.patternParts_.length&&A.patternParts_[f+1].numeric&&(t=!0,A.patternParts_[f].abutStart=!0):t=!1};
Rvp.prototype.parse=function(A,t,f){var X=!1,Q=!1;f&&(X=f.predictive||!1,Q=f.validate||!1);if(X)for(f=0;f<this.patternParts_.length;f++){var q=this.patternParts_[f];if(q.count>0&&("abBhHkKm".indexOf(q.text.charAt(0))<0||q.count>2||q.abutStart))throw Error("ee`"+q.text.charAt(0));}q=new eqw;f=[0];q.dayPeriodIndex=-1;for(var e=0;e<this.patternParts_.length&&!(X&&f[0]>=A.length);e++){if(this.patternParts_[e].count==0){a:{var G=A;var N=f,z=this.patternParts_[e],T=X;if(z.text.match(qnf)!=null){if(z=N[0],
Gai(G,N),N[0]>z){G=!0;break a}}else{if(G.indexOf(z.text,N[0])==N[0]){N[0]+=z.text.length;G=!0;break a}if(T&&z.text.indexOf(G.substring(N[0]))==0){N[0]+=G.length-N[0];G=!0;break a}}G=!1}if(G)continue;return 0}if(this.patternParts_[e].abutStart){a:{N=A;z=f;T=e;var O=z[0],c=0;for(G=T;G<this.patternParts_.length;G++){var B=this.patternParts_[G],h=B.count;if(h===0)break;if(G==T&&(h-=c,c++,h==0)){G=0;break a}var W=G>T&&B.numeric,L=z[0];if(!lBE(this,N,z,B,h,q,!1)||W&&z[0]-L<h)G=T-1,z[0]=O}G-=T}if(G<=0)return 0;
e+=G-1}else if(!lBE(this,A,f,this.patternParts_[e],0,q,X))return 0}a:{A=Q;if(t==null)throw Error("fe");q.era!=void 0&&q.year!=void 0&&q.era==0&&q.year>0&&(q.year=-(q.year-1));q.year!=void 0&&t.setFullYear(q.year);X=t.getDate();t.setDate(1);q.month!=void 0&&t.setMonth(q.month);q.day!=void 0?t.setDate(q.day):(Q=kix(t.getFullYear(),t.getMonth()),t.setDate(X>Q?Q:X));typeof t.setHours==="function"&&(q.hours==void 0&&(q.hours=t.getHours()),q.hours<12&&(q.ampm!=void 0&&q.ampm>0?q.hours+=12:q.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(q.dayPeriodName)||["night1","night2"].includes(q.dayPeriodName)&&q.hours>=6)&&(q.hours+=12)),t.setHours(q.hours));typeof t.setMinutes==="function"&&q.minutes!=void 0&&t.setMinutes(q.minutes);typeof t.setSeconds==="function"&&q.seconds!=void 0&&t.setSeconds(q.seconds);typeof t.setMilliseconds==="function"&&q.milliseconds!=void 0&&t.setMilliseconds(q.milliseconds);if(A&&(q.year&&q.year!=t.getFullYear()||q.month&&q.month!=
t.getMonth()||q.day&&q.day!=t.getDate()||q.hours&&q.hours>=24||q.minutes&&q.minutes>=60||q.seconds&&q.seconds>=60||q.milliseconds&&q.milliseconds>=1E3))t=!1;else{q.tzOffset!=void 0&&t.setTime(t.getTime()+(q.tzOffset-t.getTimezoneOffset())*60*1E3);q.ambiguousYear&&(A=new Date,A.setFullYear(A.getFullYear()-80),t.getTime()<A.getTime()&&t.setFullYear(A.getFullYear()+100));if(q.dayOfWeek!=void 0)if(q.day==void 0)q=(7+q.dayOfWeek-t.getDay())%7,q>3&&(q-=7),A=t.getMonth(),t.setDate(t.getDate()+q),t.getMonth()!=
A&&t.setDate(t.getDate()+(q>0?-7:7));else if(q.dayOfWeek!=t.getDay()){t=!1;break a}t=!0}}return t?f[0]:0};
var lBE=function(A,t,f,X,Q,q,e){Gai(t,f);if(X.numeric&&Q>0&&f[0]+Q>t.length)return!1;switch(X.text.charAt(0)){case "G":return J2(t,f,[A.JSC$11502_dateTimeSymbols_.ERAS],function(G){return q.era=G}),!0;
case "M":case "L":return Nff(A,t,f,Q,X,q);case "E":return J2(t,f,[A.JSC$11502_dateTimeSymbols_.WEEKDAYS,A.JSC$11502_dateTimeSymbols_.SHORTWEEKDAYS],function(G){return q.dayOfWeek=G});
case "B":case "b":return Q=[],A=[[].concat(A.JSC$11502_dateTimeSymbols_.AMPMS)],Q.push("isAm"),Q.push("isPm"),t=J2(t,f,A,function(G){return q.dayPeriodIndex=G},e),q.dayPeriodName=Q[q.dayPeriodIndex],e?t:!0;
case "a":return t=J2(t,f,[A.JSC$11502_dateTimeSymbols_.AMPMS],function(G){return q.ampm=G},e),e?t:!0;
case "y":return ulp(A,t,f,X,Q,q);case "Q":return J2(t,f,[A.JSC$11502_dateTimeSymbols_.QUARTERS,A.JSC$11502_dateTimeSymbols_.SHORTQUARTERS],function(G){q.month=G*3;q.day=1});
case "d":return Um(A,t,f,X,Q,function(G){q.day=G}),!0;
case "S":return zqT(A,t,f,Q,q);case "h":case "K":case "H":case "k":return t=Um(A,t,f,X,Q,function(G){q.hours=X.text.charAt(0)==="h"&&G===12?0:G},e),e?t:!0;
case "m":return t=Um(A,t,f,X,Q,function(G){q.minutes=G},e),e?t:!0;
case "s":return Um(A,t,f,X,Q,function(G){q.seconds=G}),!0;
case "z":case "Z":case "v":return Pji(A,t,f,q);default:return!1}},ulp=function(A,t,f,X,Q,q){var e=f[0];
Q=em(A,t,f,Q);Q===null&&(Q=em(A,t,f,0,!0));if(Q===null)return!1;Q>=0&&f[0]-e==2&&X.count==2?(A=Q,t=(new Date).getFullYear()-80,f=t%100,q.ambiguousYear=A==f,A+=Math.floor(t/100)*100+(A<f?100:0),q.year=A):q.year=Q;return!0},Nff=function(A,t,f,X,Q,q){return Q.numeric&&Um(A,t,f,Q,X,function(e){q.month=e-1})?!0:J2(t,f,[A.JSC$11502_dateTimeSymbols_.MONTHS,
A.JSC$11502_dateTimeSymbols_.STANDALONEMONTHS,A.JSC$11502_dateTimeSymbols_.SHORTMONTHS,A.JSC$11502_dateTimeSymbols_.STANDALONESHORTMONTHS],function(e){q.month=e})},zqT=function(A,t,f,X,Q){var q=f[0];
A=em(A,t,f,X);if(A===null)return!1;f=f[0]-q;Q.milliseconds=f<3?A*Math.pow(10,3-f):Math.round(A/Math.pow(10,f-3));return!0},Pji=function(A,t,f,X){t.indexOf("GMT",f[0])==f[0]&&(f[0]+=3);
if(f[0]>=t.length)return X.tzOffset=0,!0;var Q=f[0],q=em(A,t,f,0,!0);if(q===null)return!1;if(f[0]<t.length&&t.charAt(f[0])==":"){var e=q*60;f[0]++;q=em(A,t,f,0);if(q===null)return!1;e+=q}else e=q,e=e<24&&f[0]-Q<=3?e*60:e%100+e/100*60;X.tzOffset=-e;return!0},Um=function(A,t,f,X,Q,q,e){e=e||!1;
var G=f[0];A=em(A,t,f,Q);if(A===null)return!1;if(e&&f[0]-G<X.count){if(f[0]<t.length)return!1;A*=Math.pow(10,X.count-(f[0]-G))}q(A);return!0},J2=function(A,t,f,X,Q){Q=Q||!1;
for(var q,e=0;e<f.length;e++){q=t;for(var G=f[e],N=Q,z=0,T=null,O=A.substring(q[0]).toLowerCase(),c=0;c<G.length;c++){var B=G[c].toLowerCase();if(N&&B.indexOf(O)==0){z=O.length;T=c;break}G[c].length>z&&O.indexOf(B)==0&&(z=G[c].length,T=c)}T!==null&&(q[0]+=z);q=T;if(q!==null)return X(q),!0}return!1},Gai=function(A,t){(A=A.substring(t[0]).match(JEk))&&(t[0]+=A[0].length)},em=function(A,t,f,X,Q){t=X>0?t.substring(0,f[0]+X):t;
Q=Q||!1;if(A.JSC$11502_dateTimeSymbols_.ZERODIGIT){X=[];for(var q=f[0];q<t.length;q++){var e=t.charCodeAt(q)-A.JSC$11502_dateTimeSymbols_.ZERODIGIT;X.push(0<=e&&e<=9?String.fromCharCode(e+48):t.charAt(q))}t=X.join("")}else t=t.substring(f[0]);A=t.match(new RegExp("^"+(Q?"[+-]?":"")+"\\d+"));if(!A)return null;f[0]+=A[0].length;return parseInt(A[0],10)},eqw=function(){};
eqw.prototype.ambiguousYear=!1;var Tfp;
Tfp={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 iWl={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}"]};
iWl={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 OWS=function(){var A={type:"unit",style:"narrow"};this.listType_=A&&A.type?A.type:"conjunction";this.listStyle_=A&&A.style?A.style:"long";this.listSymbols_=iWl;A=0;switch(this.listStyle_){case "short":A=1;break;case "narrow":A=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[A];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[A];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[A];this.listEndPattern_=
this.listSymbols_.AND_END[A];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[A];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[A];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[A];this.listEndPattern_=this.listSymbols_.OR_END[A];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[A],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[A],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[A],this.listEndPattern_=this.listSymbols_.UNIT_END[A]}};
OWS.prototype.format=function(A){return cEE(this,A)};
var cEE=function(A,t){var f=t.length;switch(f){case 0:return"";case 1:return String(t[0]);case 2:return A.listTwoPattern_.replace("{0}",String(t[0])).replace("{1}",String(t[1]))}for(var X=A.listStartPattern_.replace("{0}",String(t[0])).replace("{1}",String(t[1])),Q=2;Q<f-1;++Q)X=A.listMiddlePattern_.replace("{0}",X).replace("{1}",String(t[Q]));return A.listEndPattern_.replace("{0}",X).replace("{1}",String(t[f-1]))};var Bf8={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"},MLk=Bf8,Cj8=Bf8;Cj8=MLk=Bf8;var Rq8,GJ,Nh,Gbb,la,hqp;
_.xI=function(A,t,f,X){var Q;if(Q=t){a:if(t&&t.length===3){for(Q=0;Q<3;Q++){var q=t[Q];if(q<"A"||q>"Z"&&q<"a"||q>"z"){Q=!1;break a}}Q=!0}else Q=!1;Q=!Q}if(Q)throw new TypeError("ge");this.intlCurrencyCode_=t?t.toUpperCase():null;this.currencyStyle_=f||0;this.overrideNumberFormatSymbols_=X||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_=GJ(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof A==="number")switch(A){case 1:la(this,GJ(this).DECIMAL_PATTERN);break;case 2:la(this,GJ(this).SCIENTIFIC_PATTERN);break;case 3:la(this,GJ(this).PERCENT_PATTERN);break;case 4:A=GJ(this).CURRENCY_PATTERN;t=["0"];if(f=
f9[Nh(this)]){f=f[0]&7;if(f>0)for(t.push("."),X=0;X<f;X++)t.push("0");A=A.replace(/0.00/g,t.join(""))}la(this,A);break;case 5:hqp(this,1);break;case 6:hqp(this,2);break;default:throw Error("je");}else la(this,A)};
Rq8=!1;GJ=function(A){return A.overrideNumberFormatSymbols_||(Rq8?Cj8:MLk)};
Nh=function(A){return A.intlCurrencyCode_||GJ(A).DEF_CURRENCY_CODE};
Gbb=function(A,t){if(t>308)throw Error("ie`"+t);A.maximumFractionDigits_=t;return A};
la=function(A,t){var f=[0];A.positivePrefix_=mtK(A,t,f);for(var X=f[0],Q=-1,q=0,e=0,G=0,N=-1,z=t.length,T=!0;f[0]<z&&T;f[0]++)switch(t.charAt(f[0])){case "#":e>0?G++:q++;N>=0&&Q<0&&N++;break;case "0":if(G>0)throw Error("pe`"+t);e++;N>=0&&Q<0&&N++;break;case ",":N>0&&A.groupingArray_.push(N);N=0;break;case ".":if(Q>=0)throw Error("qe`"+t);Q=q+e+G;break;case "E":if(A.useExponentialNotation_)throw Error("re`"+t);A.useExponentialNotation_=!0;A.minExponentDigits_=0;f[0]+1<z&&t.charAt(f[0]+1)=="+"&&(f[0]++,
A.useSignForPositiveExponent_=!0);for(;f[0]+1<z&&t.charAt(f[0]+1)=="0";)f[0]++,A.minExponentDigits_++;if(q+e<1||A.minExponentDigits_<1)throw Error("se`"+t);T=!1;break;default:f[0]--,T=!1}e==0&&q>0&&Q>=0&&(e=Q,e==0&&e++,G=q-e,q=e-1,e=1);if(Q<0&&G>0||Q>=0&&(Q<q||Q>q+e)||N==0)throw Error("te`"+t);G=q+e+G;A.maximumFractionDigits_=Q>=0?G-Q:0;Q>=0&&(A.minimumFractionDigits_=q+e-Q,A.minimumFractionDigits_<0&&(A.minimumFractionDigits_=0));A.minimumIntegerDigits_=(Q>=0?Q:G)-q;A.useExponentialNotation_&&(A.maximumIntegerDigits_=
q+A.minimumIntegerDigits_,A.maximumFractionDigits_==0&&A.minimumIntegerDigits_==0&&(A.minimumIntegerDigits_=1));A.groupingArray_.push(Math.max(0,N));A.decimalSeparatorAlwaysShown_=Q==0||Q==G;X=f[0]-X;A.positiveSuffix_=mtK(A,t,f);f[0]<t.length&&t.charAt(f[0])==";"?(f[0]++,A.multiplier_!=1&&(A.negativePercentSignExpected_=!0),A.negativePrefix_=mtK(A,t,f),f[0]+=X,A.negativeSuffix_=mtK(A,t,f)):(A.negativePrefix_+=A.positivePrefix_,A.negativeSuffix_+=A.positiveSuffix_)};
hqp=function(A,t){A.compactStyle_=t;la(A,GJ(A).DECIMAL_PATTERN);A.minimumFractionDigits_=0;Gbb(A,2);if(A.minimumFractionDigits_>0)throw Error("he");A.significantDigits_=2};
_.xI.prototype.parse=function(A,t){t=t||[0];if(this.compactStyle_!==0)throw Error("ke");A=A.replace(/ |\u202f/g,"\u00a0");var f=A.indexOf(this.positivePrefix_,t[0])==t[0],X=A.indexOf(this.negativePrefix_,t[0])==t[0];f&&X&&(this.positivePrefix_.length>this.negativePrefix_.length?X=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(f=!1));f?t[0]+=this.positivePrefix_.length:X&&(t[0]+=this.negativePrefix_.length);if(A.indexOf(GJ(this).INFINITY,t[0])==t[0]){t[0]+=GJ(this).INFINITY.length;var Q=
Infinity}else{Q=A;var q=!1,e=!1,G=!1,N=-1,z=1,T=GJ(this).DECIMAL_SEP,O=GJ(this).GROUP_SEP,c=GJ(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");O=O.replace(/\u202f/g,"\u00a0");for(var B="";t[0]<Q.length;t[0]++){var h=Q.charAt(t[0]),W=bWT(this,h);if(W>=0&&W<=9)B+=W,G=!0;else if(h==T.charAt(0)){if(q||e)break;B+=".";q=!0}else if(h==O.charAt(0)&&("\u00a0"!=O.charAt(0)||t[0]+1<Q.length&&bWT(this,Q.charAt(t[0]+1))>=0)){if(q||e)break}else if(h==c.charAt(0)){if(e)break;B+="E";e=!0;N=t[0]}else if(h==
"+"||h=="-"){if(G&&N!=t[0]-1)break;B+=h}else if(this.multiplier_==1&&h==GJ(this).PERCENT.charAt(0)){if(z!=1)break;z=100;if(G){t[0]++;break}}else if(this.multiplier_==1&&h==GJ(this).PERMILL.charAt(0)){if(z!=1)break;z=1E3;if(G){t[0]++;break}}else break}this.multiplier_!=1&&(z=this.multiplier_);Q=parseFloat(B)/z}if(f){if(A.indexOf(this.positiveSuffix_,t[0])!=t[0])return NaN;t[0]+=this.positiveSuffix_.length}else if(X){if(A.indexOf(this.negativeSuffix_,t[0])!=t[0])return NaN;t[0]+=this.negativeSuffix_.length}return X?
-Q:Q};
_.xI.prototype.format=function(A){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(A))return GJ(this).NAN;var t=[];var f=A;if(this.compactStyle_==0)f=ua;else{f=Math.abs(f);var X=WLE(this,f<=1?0:yE8(f)).divisorBase;f=WLE(this,X+yE8(vu7(this,zJ(f,-X)).intValue))}A=zJ(A,-f.divisorBase);(X=A<0||A==0&&1/A<0)?f.negative_prefix?t.push(f.negative_prefix):(t.push(f.prefix),t.push(this.negativePrefix_)):(t.push(f.prefix),t.push(this.positivePrefix_));if(isFinite(A))if(A*=
X?-1:1,A*=this.multiplier_,this.useExponentialNotation_){var Q=A;if(Q==0)LL8(this,Q,this.minimumIntegerDigits_,t),p1b(this,0,t);else{var q=Math.floor(Math.log(Q)/Math.log(10)+2E-15);Q=zJ(Q,-q);var e=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(e=q%this.maximumIntegerDigits_,e<0&&(e=this.maximumIntegerDigits_+e),Q=zJ(Q,e),q-=e,e=1):this.minimumIntegerDigits_<1?(q++,Q=zJ(Q,-1)):(q-=this.minimumIntegerDigits_-1,Q=zJ(Q,this.minimumIntegerDigits_-
1));LL8(this,Q,e,t);p1b(this,q,t)}}else LL8(this,A,this.minimumIntegerDigits_,t);else t.push(GJ(this).INFINITY);X?f.negative_suffix?t.push(f.negative_suffix):(isFinite(A)&&t.push(f.suffix),t.push(this.negativeSuffix_)):(isFinite(A)&&t.push(f.suffix),t.push(this.positiveSuffix_));return t.join("")};
var vu7=function(A,t){var f=zJ(t,A.maximumFractionDigits_);A.significantDigits_>0&&(f=EuS(f,A.significantDigits_,A.maximumFractionDigits_));f=Math.round(f);if(isFinite(f)){var X=Math.floor(zJ(f,-A.maximumFractionDigits_));f=Math.floor(f-zJ(X,A.maximumFractionDigits_));if(f<0||f>=zJ(1,A.maximumFractionDigits_))X=Math.round(t),f=0}else X=t,f=0;return{intValue:X,fracValue:f}},LL8=function(A,t,f,X){if(A.minimumFractionDigits_>A.maximumFractionDigits_)throw Error("me");
X||(X=[]);t=vu7(A,t);var Q=t.intValue,q=t.fracValue,e=A.minimumFractionDigits_>0||q>0||!1;t=A.minimumFractionDigits_;e&&(t=A.minimumFractionDigits_);for(var G="",N=Q;N>1E20;)G="0"+G,N=Math.round(zJ(N,-1));G=N+G;var z=GJ(A).DECIMAL_SEP;N=GJ(A).ZERO_DIGIT.codePointAt(0);var T=G.length,O=0;if(Q>0||f>0){for(Q=T;Q<f;Q++)X.push(String.fromCodePoint(N));if(A.groupingArray_.length>=2)for(f=1;f<A.groupingArray_.length;f++)O+=A.groupingArray_[f];f=T-O;if(f>0){Q=A.groupingArray_;O=T=0;for(var c,B=GJ(A).GROUP_SEP,
h=G.length,W=0;W<h;W++)if(X.push(String.fromCodePoint(N+Number(G.charAt(W)))),h-W>1)if(c=Q[O],W<f){var L=f-W;(c===1||c>0&&L%c===1)&&X.push(B)}else O<Q.length&&(W===f?O+=1:c===W-f-T+1&&(X.push(B),T+=c,O+=1))}else{f=G;G=A.groupingArray_;Q=GJ(A).GROUP_SEP;c=f.length;B=[];for(T=G.length-1;T>=0&&c>0;T--){O=G[T];for(h=0;h<O&&c-h-1>=0;h++)B.push(String.fromCodePoint(N+Number(f.charAt(c-h-1))));c-=O;c>0&&B.push(Q)}X.push.apply(X,B.reverse())}}else e||X.push(String.fromCodePoint(N));(A.decimalSeparatorAlwaysShown_||
e)&&X.push(z);q=String(q);e=q.split("e+");e.length==2&&(q=String(EuS(parseFloat(e[0]),A.significantDigits_,1)),q=q.replace(".",""),q+=(0,_.Nkl)("0",parseInt(e[1],10)-q.length+1));A.maximumFractionDigits_+1>q.length&&(q="1"+(0,_.Nkl)("0",A.maximumFractionDigits_-q.length)+q);for(A=q.length;q.charAt(A-1)=="0"&&A>t+1;)A--;for(t=1;t<A;t++)X.push(String.fromCodePoint(N+Number(q.charAt(t))))},p1b=function(A,t,f){f.push(GJ(A).EXP_SYMBOL);
t<0?(t=-t,f.push(GJ(A).MINUS_SIGN)):A.useSignForPositiveExponent_&&f.push(GJ(A).PLUS_SIGN);t=""+t;for(var X=GJ(A).ZERO_DIGIT,Q=t.length;Q<A.minExponentDigits_;Q++)f.push(X);A=X.codePointAt(0)-nuw;for(X=0;X<t.length;X++)f.push(String.fromCodePoint(A+t.codePointAt(X)))},bWT=function(A,t){t=t.codePointAt(0);
if(48<=t&&t<58)return t-48;A=GJ(A).ZERO_DIGIT.codePointAt(0);return A<=t&&t<A+10?t-A:-1},nuw="0".codePointAt(0),mtK=function(A,t,f){for(var X="",Q=!1,q=t.length;f[0]<q;f[0]++){var e=t.charAt(f[0]);
if(e=="'")f[0]+1<q&&t.charAt(f[0]+1)=="'"?(f[0]++,X+="'"):Q=!Q;else if(Q)X+=e;else switch(e){case "#":case "0":case ",":case ".":case ";":return X;case "\u00a4":if(f[0]+1<q&&t.charAt(f[0]+1)=="\u00a4")f[0]++,X+=Nh(A);else switch(A.currencyStyle_){case 0:e=Nh(A);X+=e in f9?f9[e][1]:e;break;case 2:e=Nh(A);var G=f9[e];X+=G?e==G[1]?e:e+" "+G[1]:e;break;case 1:e=Nh(A),X+=e in f9?f9[e][2]:e}break;case "%":if(!A.negativePercentSignExpected_&&A.multiplier_!=1)throw Error("ne");if(A.negativePercentSignExpected_&&
A.multiplier_!=100)throw Error("oe");A.multiplier_=100;A.negativePercentSignExpected_=!1;X+=GJ(A).PERCENT;break;case "\u2030":if(!A.negativePercentSignExpected_&&A.multiplier_!=1)throw Error("ne");if(A.negativePercentSignExpected_&&A.multiplier_!=1E3)throw Error("oe");A.multiplier_=1E3;A.negativePercentSignExpected_=!1;X+=GJ(A).PERMILL;break;default:X+=e}}return X},ua={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},WLE=function(A,t){A=A.compactStyle_==1?t2.COMPACT_DECIMAL_SHORT_PATTERN:t2.COMPACT_DECIMAL_LONG_PATTERN;A==null&&(A=t2.COMPACT_DECIMAL_SHORT_PATTERN);if(t<3)return ua;t=Math.min(14,t);var f=A[zJ(1,t)];for(--t;!f&&t>=3;)f=A[zJ(1,t)],t--;if(!f)return ua;f=f.other;var X=A="",Q=f.indexOf(";");Q>=0&&(f=f.substring(0,Q),Q=f.substring(Q+1))&&(X=/([^0]*)(0+)(.*)/.exec(Q),A=X[1],X=X[3]);return f&&f!="0"?(f=/([^0]*)(0+)(.*)/.exec(f))?{divisorBase:t+
1-(f[2].length-1),negative_prefix:A,negative_suffix:X,prefix:f[1],suffix:f[3]}:ua:ua},yE8=function(A){if(!isFinite(A))return A>0?A:0;
for(var t=0;(A/=10)>=1;)t++;return t},zJ=function(A,t){if(!A||!isFinite(A)||t==0)return A;
A=String(A).split("e");return parseFloat(A[0]+"e"+(parseInt(A[1]||0,10)+t))},Dtp=function(A,t){return A&&isFinite(A)?zJ(Math.round(zJ(A,t)),-t):A},EuS=function(A,t,f){if(!A)return A;
t=t-yE8(A)-1;return t<-f?Dtp(A,-f):Dtp(A,t)};var FLi=function(A){return A%10==1&&A%100!=11?"one":A%10==2&&A%100!=12?"two":A%10==3&&A%100!=13?"few":"other"},IBb=FLi;
IBb=FLi;var xt7=function(A,t){var f=A|0;if(void 0===t){t=Math;var X=t.min,Q=A+"",q=Q.indexOf(".");t=X.call(t,q===-1?0:Q.length-q-1,3)}X=Math.pow(10,t);A={v:t,f:(A*X|0)%X};return f==1&&A.v==0?"one":"other"},IC=xt7;
IC=xt7;var ZWl=function(A){this.JSC$11545_pattern_=A;this.parsedPattern_=this.literals_=this.initialLiterals_=null;A=MLk;var t=t2;if(jv7!==A||Yn7!==t)jv7=A,Yn7=t,VL7=new _.xI(1);this.numberFormatter_=VL7},jv7=null,Yn7=null,VL7=null,ou8=RegExp("'([{}#].*?)'","g"),dtw=RegExp("''","g");
ZWl.prototype.format=function(A){if(this.JSC$11545_pattern_){this.initialLiterals_=[];var t=SnC(this,this.JSC$11545_pattern_);this.parsedPattern_=$t7(this,t);this.JSC$11545_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.ds(this.initialLiterals_),t=[],HWS(this,this.parsedPattern_,A,!1,t),A=t.join("");this.literals_.length>0;)A=A.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else A="";return A};
var HWS=function(A,t,f,X,Q){for(var q=0;q<t.length;q++)switch(t[q].type){case 4:Q.push(t[q].value);break;case 3:var e=t[q].value;var G=A,N=Q,z=f[e];z===void 0?N.push("Undefined parameter - "+e):(G.literals_.push(z),N.push(G.buildPlaceholder_(G.literals_)));break;case 2:e=t[q].value;G=A;N=f;z=X;var T=Q,O=e.argumentIndex;N[O]===void 0?T.push("Undefined parameter - "+O):(O=e[N[O]],O===void 0&&(O=e.other),HWS(G,O,N,z,T));break;case 0:e=t[q].value;aBl(A,e,f,IC,X,Q);break;case 1:e=t[q].value,aBl(A,e,f,
IBb,X,Q)}},aBl=function(A,t,f,X,Q,q){var e=t.argumentIndex,G=t.argumentOffset,N=+f[e];
isNaN(N)?q.push("Undefined or invalid parameter - "+e):(G=N-G,e=t[f[e]],e===void 0&&(X=X(Math.abs(G)),e=t[X],e===void 0&&(e=t.other)),t=[],HWS(A,e,f,Q,t),f=t.join(""),Q?q.push(f):(A=A.numberFormatter_.format(G),q.push(f.replace(/#/g,A))))},SnC=function(A,t){var f=A.initialLiterals_,X=A.buildPlaceholder_.bind(A);
t=t.replace(dtw,function(){f.push("'");return X(f)});
return t=t.replace(ou8,function(Q,q){f.push(q);return X(f)})},KLT=function(A){var t=0,f=[],X=[],Q=/[{}]/g;
Q.lastIndex=0;for(var q;q=Q.exec(A);){var e=q.index;q[0]=="}"?(f.pop(),f.length==0&&(q={type:1},q.value=A.substring(t,e),X.push(q),t=e+1)):(f.length==0&&(t=A.substring(t,e),t!=""&&X.push({type:0,value:t}),t=e+1),f.push("{"))}A=A.substring(t);A!=""&&X.push({type:0,value:A});return X},gup=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,w1l=/^\s*(\w+)\s*,\s*selectordinal\s*,/,sv8=/^\s*(\w+)\s*,\s*select\s*,/,$t7=function(A,t){var f=[];
t=KLT(t);for(var X=0;X<t.length;X++){var Q={};if(0==t[X].type)Q.type=4,Q.value=t[X].value;else if(1==t[X].type){var q=t[X].value;switch(gup.test(q)?0:w1l.test(q)?1:sv8.test(q)?2:/^\s*\w+\s*/.test(q)?3:5){case 2:Q.type=2;Q.value=kaf(A,t[X].value);break;case 0:Q.type=0;Q.value=rEl(A,t[X].value);break;case 1:Q.type=1;Q.value=A0C(A,t[X].value);break;case 3:Q.type=3,Q.value=t[X].value}}f.push(Q)}return f},kaf=function(A,t){var f="";
t=t.replace(sv8,function(G,N){f=N;return""});
var X={};X.argumentIndex=f;t=KLT(t);for(var Q=0;Q<t.length;){var q=t[Q].value;Q++;var e=void 0;1==t[Q].type&&(e=$t7(A,t[Q].value));X[q.replace(/\s/g,"")]=e;Q++}return X},rEl=function(A,t){var f="",X=0;
t=t.replace(gup,function(N,z,T){f=z;T&&(X=parseInt(T,10));return""});
var Q={};Q.argumentIndex=f;Q.argumentOffset=X;t=KLT(t);for(var q=0;q<t.length;){var e=t[q].value;q++;var G=void 0;1==t[q].type&&(G=$t7(A,t[q].value));Q[e.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=G;q++}return Q},A0C=function(A,t){var f="";
t=t.replace(w1l,function(G,N){f=N;return""});
var X={};X.argumentIndex=f;X.argumentOffset=0;t=KLT(t);for(var Q=0;Q<t.length;){var q=t[Q].value;Q++;var e=void 0;1==t[Q].type&&(e=$t7(A,t[Q].value));X[q.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=e;Q++}return X};
ZWl.prototype.buildPlaceholder_=function(A){return"\ufddf_"+(A.length-1).toString(10)+"_"};var URp=function(){var A={style:1},t=tMp;this.style_=(A==null?void 0:A.style)||0;this.durationSymbols_=t||Tfp},fdk=function(A,t){switch(t){default:case "years":return A.durationSymbols_.YEAR;
case "months":return A.durationSymbols_.MONTH;case "weeks":return A.durationSymbols_.WEEK;case "days":return A.durationSymbols_.DAY;case "hours":return A.durationSymbols_.HOUR;case "minutes":return A.durationSymbols_.MINUTE;case "seconds":return A.durationSymbols_.SECOND}},PY=function(A,t,f){a:{f=fdk(A,f);
switch(A.style_){case 1:if(f.LONG!=void 0){A=f.LONG;break a}case 2:if(f.NARROW!=void 0){A=f.NARROW;break a}default:A=f.SHORT;break a}A=void 0}return A?(new ZWl("{DURATION_VALUE,plural,"+A+"}")).format({DURATION_VALUE:t}):""};
URp.prototype.format=function(A){var t=[],f=A.years,X=A.months,Q=A.weeks,q=A.days,e=A.hours,G=A.minutes;A=A.seconds;f!=null&&t.push(PY(this,f,"years"));X!=null&&t.push(PY(this,X,"months"));Q!=null&&t.push(PY(this,Q,"weeks"));q!=null&&t.push(PY(this,q,"days"));e!=null&&t.push(PY(this,e,"hours"));G!=null&&t.push(PY(this,G,"minutes"));A!=null&&t.push(PY(this,A,"seconds"));return(new OWS).format(t)};var X$8;
X$8={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 hz5=function(){this.rdtfSymbols_=QJT||X$8;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
hz5.prototype.format=function(A,t){a:{t=qjp(this,t);switch(this.style_){case 2:if(t.NARROW!=void 0){t=t.NARROW;break a}case 1:if(t.SHORT!=void 0){t=t.SHORT;break a}default:t=t.LONG;break a}t=void 0}if(!this.alwaysNumeric_&&t&&t.R&&t.R[""+A])A=t.R[""+A];else if(t){var f=Math.abs(A);A=(new ZWl("{N,plural,"+(A>0||A==0&&1/A==Infinity?t.F:t.P)+"}")).format({N:f})}else A="";return A};
var qjp=function(A,t){switch(t){default:case 0:return A.rdtfSymbols_.YEAR;case 1:return A.rdtfSymbols_.QUARTER;case 2:return A.rdtfSymbols_.MONTH;case 3:return A.rdtfSymbols_.WEEK;case 4:return A.rdtfSymbols_.DAY;case 5:return A.rdtfSymbols_.HOUR;case 6:return A.rdtfSymbols_.MINUTE;case 7:return A.rdtfSymbols_.SECOND}};var J0p=function(A,t,f,X,Q,q,e,G){this.x0=A;this.y0=t;this.x1=f;this.y1=X;this.x2=Q;this.y2=q;this.x3=e;this.y3=G};
J0p.prototype.clone=function(){return new J0p(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
J0p.prototype.equals=function(A){return this.x0==A.x0&&this.y0==A.y0&&this.x1==A.x1&&this.y1==A.y1&&this.x2==A.x2&&this.y2==A.y2&&this.x3==A.x3&&this.y3==A.y3};
var Uap=function(A,t){if(t==0)return A.x0;if(t==1)return A.x3;var f=L3(A.x0,A.x1,t),X=L3(A.x1,A.x2,t);A=L3(A.x2,A.x3,t);f=L3(f,X,t);X=L3(X,A,t);return L3(f,X,t)},eyC=function(A,t){var f=(t-A.x0)/(A.x3-A.x0);
if(f<=0)return 0;if(f>=1)return 1;for(var X=0,Q=1,q=0,e=0;e<8;e++){q=Uap(A,f);var G=(Uap(A,f+1E-6)-q)/1E-6;if(Math.abs(q-t)<1E-6)return f;if(Math.abs(G)<1E-6)break;else q<t?X=f:Q=f,f-=(q-t)/G}for(e=0;Math.abs(q-t)>1E-6&&e<8;e++)q<t?(X=f,f=(f+Q)/2):(Q=f,f=(f+X)/2),q=Uap(A,f);return f};var TJ=function(){_.p_.call(this);this.JSC$11566_name_="closure_frame"+Gq7++;this.iframesForDisposal_=[];ldk[this.JSC$11566_name_]=this},ia;
_.rS(TJ,_.p_);var ldk={},Gq7=0,NP8=function(A,t){var f=nn(A);TLT(t,function(X,Q){Array.isArray(X)||(X=[X]);_.X_(X,function(q){q=f.JSC$9411_createDom("INPUT",{type:"hidden",name:Q,value:q});A.appendChild(q)})})};
_.J=TJ.prototype;_.J.JSC$11568_form_=null;_.J.JSC$11568_iframe_=null;_.J.iframeName_=null;_.J.nextIframeId_=0;_.J.JSC$11568_active_=!1;_.J.complete_=!1;_.J.success_=!1;_.J.lastContent_=null;_.J.JSC$11568_lastErrorCode_=0;_.J.iframeDisposalTimer_=null;
_.J.send=function(A,t,f,X){if(this.JSC$11568_active_)throw Error("ue");A=new _.oq(A);t=t?t.toUpperCase():"GET";f&&_.iR(A);ia||(ia=_.DC("FORM"),ia.acceptCharset="utf-8",f=ia.style,f.position="absolute",f.visibility="hidden",f.top=f.left="-10px",f.width=f.height="10px",f.overflow="hidden",document.body.appendChild(ia));this.JSC$11568_form_=ia;t=="GET"&&NP8(this.JSC$11568_form_,A.JSC$10115_queryData_);X&&NP8(this.JSC$11568_form_,X);f=A.toString();f=dGg(f);X=this.JSC$11568_form_;f=_.af(Fx(f));f!==void 0&&
(X.action=f);this.JSC$11568_form_.method=t;uIp(this);zyw(this)};
_.J.abort=function(A){if(this.JSC$11568_active_){var t=Om(this);if(t)if(yW(t))t.removeAllListeners(void 0);else if(t=v_(t)){var f=0,X;for(X in t.listeners)for(var Q=t.listeners[X].concat(),q=0;q<Q.length;++q)uP(Q[q])&&++f}this.success_=this.JSC$11568_active_=this.complete_=!1;this.JSC$11568_lastErrorCode_=A||7;this.dispatchEvent("abort");PMC(this)}};
_.J.disposeInternal=function(){this.JSC$11568_active_&&this.abort();TJ.superClass_.disposeInternal.call(this);this.JSC$11568_iframe_&&TPi(this);zyw(this);this.JSC$11568_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11568_form_=null;this.JSC$11568_lastErrorCode_=0;delete ldk[this.JSC$11566_name_]};
_.J.isComplete=function(){return this.complete_};
_.J.isSuccess=function(){return this.success_};
_.J.isActive=function(){return this.JSC$11568_active_};
_.J.getResponseText=function(){return this.lastContent_};
_.J.getLastError=function(){return _.HaK(this.JSC$11568_lastErrorCode_)};
var uIp=function(A){A.JSC$11568_active_=!0;A.complete_=!1;A.JSC$11568_lastErrorCode_=0;A.iframeName_=A.JSC$11566_name_+"_"+(A.nextIframeId_++).toString(36);A.JSC$11568_iframe_=nn(A.JSC$11568_form_).JSC$9411_createDom("IFRAME",{name:A.iframeName_,id:A.iframeName_});var t=A.JSC$11568_iframe_.style;t.visibility="hidden";t.width=t.height="10px";t.display="none";_.q1?t.marginTop=t.marginLeft="-10px":(t.position="absolute",t.top=t.left="-10px");nn(A.JSC$11568_form_).JSC$9409_document_.body.appendChild(A.JSC$11568_iframe_);
t=A.iframeName_+"_inner";var f=ENK(A.JSC$11568_iframe_);if(document.baseURI){var X=fW(t);X='<head><base href="'+fW(document.baseURI)+'"></head><body><iframe id="'+X+'" name="'+X+'"></iframe>';X=wW(X)}else X=fW(t),X=wW('<body><iframe id="'+X+'" name="'+X+'"></iframe>');f.write(si(X));_.TV(f.getElementById(t),"load",A.onIframeLoaded_,!1,A);X=LA("TEXTAREA",A.JSC$11568_form_);for(var Q=0,q=X.length;Q<q;Q++){var e=X[Q].value;jkp(X[Q])!=e&&(_.ZC(X[Q],e),X[Q].value=e)}X=f.importNode(A.JSC$11568_form_,!0);
X.target=t;X.action=A.JSC$11568_form_.action;f.body.appendChild(X);Q=LA("SELECT",A.JSC$11568_form_);q=LA("SELECT",X);e=0;for(var G=Q.length;e<G;e++)for(var N=LA("OPTION",Q[e]),z=LA("OPTION",q[e]),T=0,O=N.length;T<O;T++)z[T].selected=N[T].selected;Q=LA("INPUT",A.JSC$11568_form_);q=LA("INPUT",X);e=0;for(G=Q.length;e<G;e++)if(Q[e].type=="file"&&Q[e].value!=q[e].value){A.JSC$11568_form_.target=t;X=A.JSC$11568_form_;break}try{A.errorHandled_=!1,X.submit(),f.close(),_.Qe&&setTimeout(A.testForFirefoxSilentError_.bind(A),
250)}catch(c){_.L_(f.getElementById(t),"load",A.onIframeLoaded_,!1,A),f.close(),cY(A,2)}};
TJ.prototype.onIframeLoaded_=function(){_.L_(Om(this),"load",this.onIframeLoaded_,!1,this);try{var A=this.JSC$11568_iframe_?ENK(Om(this)):null;this.complete_=!0;this.JSC$11568_active_=!1;try{var t=A.body;this.lastContent_=t.textContent||t.innerText}catch(Q){var f=1}var X;f||typeof this.errorChecker_!="function"||(X=this.errorChecker_(A))&&(f=4);f?cY(this,f):(this.success_=!0,this.JSC$11568_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),PMC(this))}catch(Q){cY(this,1)}};
var cY=function(A,t){A.errorHandled_||(A.success_=!1,A.JSC$11568_active_=!1,A.complete_=!0,A.JSC$11568_lastErrorCode_=t,A.dispatchEvent("complete"),A.dispatchEvent("error"),PMC(A),A.errorHandled_=!0)},PMC=function(A){TPi(A);
zyw(A);A.JSC$11568_form_=null;A.dispatchEvent("ready")},TPi=function(A){var t=A.JSC$11568_iframe_;
t&&(t.onreadystatechange=null,t.onload=null,t.onerror=null,A.iframesForDisposal_.push(t));A.iframeDisposalTimer_&&(clearTimeout(A.iframeDisposalTimer_),A.iframeDisposalTimer_=null);_.Qe?A.iframeDisposalTimer_=setTimeout(A.disposeIframes_.bind(A),2E3):A.disposeIframes_();A.JSC$11568_iframe_=null;A.iframeName_=null};
TJ.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var A=this.iframesForDisposal_.pop();_.vf(A)}};
var zyw=function(A){A.JSC$11568_form_&&A.JSC$11568_form_==ia&&_.x6(A.JSC$11568_form_)},Om=function(A){return A.JSC$11568_iframe_?ENK(A.JSC$11568_iframe_).getElementById(A.iframeName_+"_inner"):null};
TJ.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11568_active_){var A=this.JSC$11568_iframe_?ENK(Om(this)):null;A&&!Igx(A,"documentUri")?(_.L_(Om(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?cY(this,3):cY(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.BY=function(A){return A=="\r"||A=="\n"||A==" "||A=="\t"};var i8i;_.Mh=function(A){this.errorMessage_=null;this.result_=[];this.JSC$11570_buffer_="";this.stack_=[];this.JSC$11570_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!A||!A.deliverMessageAsRawString)};
i8i={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};_.Mh.prototype.isInputValid=function(){return this.streamState_!=3};
_.Mh.prototype.done=function(){return this.streamState_===2};
var C9=function(A,t,f){A.streamState_=3;A.errorMessage_="The stream is broken @"+A.JSC$11570_pos_+"/"+f+". With input:\n"+t;throw Error(A.errorMessage_);};
_.Mh.prototype.acceptsBinaryInput=function(){return!1};
_.Mh.prototype.parse=function(A){function t(){for(;c<A.length;)if(_.BY(A[c]))c++,q.JSC$11570_pos_++;else break;return c<z}
function f(){for(var h;;){h=A[c++];if(!h)break;q.JSC$11570_pos_++;switch(q.state_){case N.INIT:h==="{"?q.state_=N.OBJECT_OPEN:h==="["?q.state_=N.ARRAY_OPEN:_.BY(h)||C9(q,A,c);continue;case N.KEY_START:case N.OBJECT_OPEN:if(_.BY(h))continue;if(q.state_===N.KEY_START)e.push(N.KEY_END);else if(h==="}"){Q("{}");q.state_=X();continue}else e.push(N.OBJECT_END);h==='"'?q.state_=N.STRING:C9(q,A,c);continue;case N.KEY_END:case N.OBJECT_END:if(_.BY(h))continue;h===":"?(q.state_===N.OBJECT_END&&(e.push(N.OBJECT_END),
q.depth_++),q.state_=N.VALUE):h==="}"?(q.depth_--,Q(),q.state_=X()):h===","?(q.state_===N.OBJECT_END&&e.push(N.OBJECT_END),q.state_=N.KEY_START):C9(q,A,c);continue;case N.ARRAY_OPEN:case N.VALUE:if(_.BY(h))continue;if(q.state_===N.ARRAY_OPEN)if(q.depth_++,q.state_=N.VALUE,h==="]"){q.depth_--;if(q.depth_===0){q.state_=N.ARRAY_END;return}Q("[]");q.state_=X();continue}else e.push(N.ARRAY_END);h==='"'?q.state_=N.STRING:h==="{"?q.state_=N.OBJECT_OPEN:h==="["?q.state_=N.ARRAY_OPEN:h==="t"?q.state_=N.TRUE1:
h==="f"?q.state_=N.FALSE1:h==="n"?q.state_=N.NULL1:h!=="-"&&("0123456789".indexOf(h)!==-1?q.state_=N.NUM_DIGIT:C9(q,A,c));continue;case N.ARRAY_END:if(h===",")e.push(N.ARRAY_END),q.state_=N.VALUE,q.depth_===1&&(O=c);else if(h==="]"){q.depth_--;if(q.depth_===0)return;Q();q.state_=X()}else if(_.BY(h))continue;else C9(q,A,c);continue;case N.STRING:var W=c;a:for(;;){for(;q.unicodeCount_>0;)if(h=A[c++],q.unicodeCount_===4?q.unicodeCount_=0:q.unicodeCount_++,!h)break a;if(h==='"'&&!q.slashed_){q.state_=
X();break}if(h==="\\"&&!q.slashed_&&(q.slashed_=!0,h=A[c++],!h))break;if(q.slashed_)if(q.slashed_=!1,h==="u"&&(q.unicodeCount_=1),h=A[c++])continue;else break;G.lastIndex=c;h=G.exec(A);if(!h){c=A.length+1;break}c=h.index+1;h=A[h.index];if(!h)break}q.JSC$11570_pos_+=c-W;continue;case N.TRUE1:if(!h)continue;h==="r"?q.state_=N.TRUE2:C9(q,A,c);continue;case N.TRUE2:if(!h)continue;h==="u"?q.state_=N.TRUE3:C9(q,A,c);continue;case N.TRUE3:if(!h)continue;h==="e"?q.state_=X():C9(q,A,c);continue;case N.FALSE1:if(!h)continue;
h==="a"?q.state_=N.FALSE2:C9(q,A,c);continue;case N.FALSE2:if(!h)continue;h==="l"?q.state_=N.FALSE3:C9(q,A,c);continue;case N.FALSE3:if(!h)continue;h==="s"?q.state_=N.FALSE4:C9(q,A,c);continue;case N.FALSE4:if(!h)continue;h==="e"?q.state_=X():C9(q,A,c);continue;case N.NULL1:if(!h)continue;h==="u"?q.state_=N.NULL2:C9(q,A,c);continue;case N.NULL2:if(!h)continue;h==="l"?q.state_=N.NULL3:C9(q,A,c);continue;case N.NULL3:if(!h)continue;h==="l"?q.state_=X():C9(q,A,c);continue;case N.NUM_DECIMAL_POINT:h===
"."?q.state_=N.NUM_DIGIT:C9(q,A,c);continue;case N.NUM_DIGIT:if("0123456789.eE+-".indexOf(h)!==-1)continue;else c--,q.JSC$11570_pos_--,q.state_=X();continue;default:C9(q,A,c)}}}
function X(){var h=e.pop();return h!=null?h:N.VALUE}
function Q(h){q.depth_>1||(h||(h=O===-1?q.JSC$11570_buffer_+A.substring(T,c):A.substring(O,c)),q.deliverMessageAsRawString_?q.result_.push(h):q.result_.push(JSON.parse(h)),O=c)}
for(var q=this,e=q.stack_,G=q.stringInputPattern_,N=i8i,z=A.length,T=0,O=-1,c=0;c<z;)switch(q.streamState_){case 3:return C9(q,A,c),null;case 2:return t()&&C9(q,A,c),null;case 0:if(t()){var B=A[c++];q.JSC$11570_pos_++;if(B==="["){q.streamState_=1;T=c;q.state_=N.ARRAY_OPEN;continue}else C9(q,A,c)}return null;case 1:return f(),q.depth_===0&&q.state_==N.ARRAY_END?(q.streamState_=2,q.JSC$11570_buffer_=A.substring(c)):q.JSC$11570_buffer_=O===-1?q.JSC$11570_buffer_+A.substring(T):A.substring(O),q.result_.length>
0?(B=q.result_,q.result_=[],B):null}return null};_.rS(_.RW,Yj);mj.prototype.getValue=function(){return this.JSC$11578_value_};
mj.prototype.clone=function(){return new mj(this.JSC$11578_key_,this.JSC$11578_value_)};var h2=function(A){this.nodes_=[];if(A)a:{if(A instanceof h2){var t=A.getKeys();A=A.getValues();if(this.getCount()<=0){for(var f=this.nodes_,X=0;X<t.length;X++)f.push(new mj(t[X],A[X]));break a}}else t=_.VG.getKeys(A),A=_.VG.getValues(A);for(f=0;f<t.length;f++)this.insert(t[f],A[f])}};
_.J=h2.prototype;_.J.insert=function(A,t){var f=this.nodes_;f.push(new mj(A,t));A=f.length-1;t=this.nodes_;for(f=t[A];A>0;){var X=A-1>>1;if(t[X].JSC$11578_key_>f.JSC$11578_key_)t[A]=t[X],A=X;else break}t[A]=f};
_.J.remove=function(){var A=this.nodes_,t=A.length,f=A[0];if(!(t<=0)){if(t==1)A.length=0;else{A[0]=A.pop();A=0;t=this.nodes_;for(var X=t.length,Q=t[A];A<X>>1;){var q=A*2+1,e=A*2+2;q=e<X&&t[e].JSC$11578_key_<t[q].JSC$11578_key_?e:q;if(t[q].JSC$11578_key_>Q.JSC$11578_key_)break;t[A]=t[q];A=q}t[A]=Q}return f.getValue()}};
_.J.peek=function(){var A=this.nodes_;if(A.length!=0)return A[0].getValue()};
_.J.getValues=function(){for(var A=this.nodes_,t=[],f=A.length,X=0;X<f;X++)t.push(A[X].getValue());return t};
_.J.getKeys=function(){for(var A=this.nodes_,t=[],f=A.length,X=0;X<f;X++)t.push(A[X].JSC$11578_key_);return t};
_.J.containsValue=function(A){return this.nodes_.some(function(t){return t.getValue()==A})};
_.J.containsKey=function(A){return this.nodes_.some(function(t){return t.JSC$11578_key_==A})};
_.J.clone=function(){return new h2(this)};
_.J.getCount=function(){return this.nodes_.length};
_.J.isEmpty=function(){return this.nodes_.length===0};
_.J.clear=function(){this.nodes_.length=0};_.Rz=function(A,t){this.JSC$11584_map_={};this.JSC$11584_keys_=[];this.version_=this.size=0;var f=arguments.length;if(f>1){if(f%2)throw Error("ma");for(var X=0;X<f;X+=2)this.set(arguments[X],arguments[X+1])}else A&&this.addAll(A)};
_.J=_.Rz.prototype;_.J.getCount=function(){return this.size};
_.J.getValues=function(){mq(this);for(var A=[],t=0;t<this.JSC$11584_keys_.length;t++)A.push(this.JSC$11584_map_[this.JSC$11584_keys_[t]]);return A};
_.J.getKeys=function(){mq(this);return this.JSC$11584_keys_.concat()};
_.J.containsKey=function(A){return this.has(A)};
_.J.has=function(A){return ba(this.JSC$11584_map_,A)};
_.J.containsValue=function(A){for(var t=0;t<this.JSC$11584_keys_.length;t++){var f=this.JSC$11584_keys_[t];if(ba(this.JSC$11584_map_,f)&&this.JSC$11584_map_[f]==A)return!0}return!1};
_.J.equals=function(A,t){if(this===A)return!0;if(this.size!=A.getCount())return!1;t=t||O87;mq(this);for(var f,X=0;f=this.JSC$11584_keys_[X];X++)if(!t(this.get(f),A.get(f)))return!1;return!0};
var O87=function(A,t){return A===t};
_.Rz.prototype.isEmpty=function(){return this.size==0};
_.Rz.prototype.clear=function(){this.JSC$11584_map_={};this.version_=this.size=this.JSC$11584_keys_.length=0};
_.Rz.prototype.remove=function(A){return this.delete(A)};
_.Rz.prototype.delete=function(A){return ba(this.JSC$11584_map_,A)?(delete this.JSC$11584_map_[A],--this.size,this.version_++,this.JSC$11584_keys_.length>2*this.size&&mq(this),!0):!1};
var mq=function(A){if(A.size!=A.JSC$11584_keys_.length){for(var t=0,f=0;t<A.JSC$11584_keys_.length;){var X=A.JSC$11584_keys_[t];ba(A.JSC$11584_map_,X)&&(A.JSC$11584_keys_[f++]=X);t++}A.JSC$11584_keys_.length=f}if(A.size!=A.JSC$11584_keys_.length){t={};for(X=f=0;f<A.JSC$11584_keys_.length;){var Q=A.JSC$11584_keys_[f];ba(t,Q)||(A.JSC$11584_keys_[X++]=Q,t[Q]=1);f++}A.JSC$11584_keys_.length=X}};
_.J=_.Rz.prototype;_.J.get=function(A,t){return ba(this.JSC$11584_map_,A)?this.JSC$11584_map_[A]:t};
_.J.set=function(A,t){ba(this.JSC$11584_map_,A)||(this.size+=1,this.JSC$11584_keys_.push(A),this.version_++);this.JSC$11584_map_[A]=t};
_.J.addAll=function(A){if(A instanceof _.Rz)for(var t=A.getKeys(),f=0;f<t.length;f++)this.set(t[f],A.get(t[f]));else for(t in A)this.set(t,A[t])};
_.J.forEach=function(A,t){for(var f=this.getKeys(),X=0;X<f.length;X++){var Q=f[X],q=this.get(Q);A.call(t,q,Q,this)}};
_.J.clone=function(){return new _.Rz(this)};
_.J.transpose=function(){for(var A=new _.Rz,t=0;t<this.JSC$11584_keys_.length;t++){var f=this.JSC$11584_keys_[t];A.set(this.JSC$11584_map_[f],f)}return A};
_.J.keys=function(){return FPT(this.__iterator__(!0)).toEs6()};
_.J.values=function(){return FPT(this.__iterator__(!1)).toEs6()};
_.J.entries=function(){var A=this;return r7p(this.keys(),function(t){return[t,A.get(t)]})};
_.J.__iterator__=function(A){mq(this);var t=0,f=this.version_,X=this,Q=new P0;Q.next=function(){if(f!=X.version_)throw Error("ve");if(t>=X.JSC$11584_keys_.length)return TE;var q=X.JSC$11584_keys_[t++];return ie(A?q:X.JSC$11584_map_[q])};
return Q};
var ba=function(A,t){return Object.prototype.hasOwnProperty.call(A,t)};var BPl=function(){this.JSC$11587_map_=new _.Rz;this.JSC$11587_head_=new c0k("");this.JSC$11587_head_.next=this.JSC$11587_head_.prev=this.JSC$11587_head_},MME=function(A,t){if(t=A.JSC$11587_map_.get(t))t.remove(),A.insert_(t);
return t};
_.J=BPl.prototype;_.J.get=function(A,t){return(A=MME(this,A))?A.value:t};
_.J.set=function(A,t){var f=MME(this,A);f?f.value=t:(f=new c0k(A,t),this.JSC$11587_map_.set(A,f),this.insert_(f))};
_.J.peek=function(){return this.JSC$11587_head_.next.value};
_.J.shift=function(){return CMK(this,this.JSC$11587_head_.next)};
_.J.pop=function(){return CMK(this,this.JSC$11587_head_.prev)};
_.J.remove=function(A){return(A=this.JSC$11587_map_.get(A))?(this.removeNode(A),!0):!1};
_.J.removeNode=function(A){A.remove();this.JSC$11587_map_.remove(A.key)};
_.J.getCount=function(){return this.JSC$11587_map_.getCount()};
_.J.isEmpty=function(){return this.JSC$11587_map_.isEmpty()};
_.J.getKeys=function(){return this.map(function(A,t){return t})};
_.J.getValues=function(){return this.map(function(A){return A})};
_.J.contains=function(A){return this.some(function(t){return t==A})};
_.J.containsKey=function(A){return this.JSC$11587_map_.containsKey(A)};
_.J.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11587_head_.prev)};
_.J.forEach=function(A,t){for(var f=this.JSC$11587_head_.next;f!=this.JSC$11587_head_;f=f.next)A.call(t,f.value,f.key,this)};
_.J.map=function(A,t){for(var f=[],X=this.JSC$11587_head_.next;X!=this.JSC$11587_head_;X=X.next)f.push(A.call(t,X.value,X.key,this));return f};
_.J.some=function(A,t){for(var f=this.JSC$11587_head_.next;f!=this.JSC$11587_head_;f=f.next)if(A.call(t,f.value,f.key,this))return!0;return!1};
_.J.every=function(A,t){for(var f=this.JSC$11587_head_.next;f!=this.JSC$11587_head_;f=f.next)if(!A.call(t,f.value,f.key,this))return!1;return!0};
_.J.insert_=function(A){A.next=this.JSC$11587_head_.next;A.prev=this.JSC$11587_head_;this.JSC$11587_head_.next=A;for(A.next.prev=A;this.getCount()>100;)this.removeNode(this.JSC$11587_head_.prev)};
var CMK=function(A,t){A.JSC$11587_head_!=t&&A.removeNode(t);return t.value},c0k=function(A,t){this.key=A;
this.value=t};
c0k.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var hyf=function(){h2.apply(this,arguments)};
_.R(hyf,h2);hyf.prototype.enqueue=function(A,t){this.insert(A,t)};var Ryf=function(){var A=Error();A.name="SecurityError";throw A;},mEx=function(){return{get opener(){return null},
get closed(){return!0},get location(){Ryf()},get document(){Ryf()},postMessage:function(){},
close:function(){},
focus:function(){}}};var TUT={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 c10={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 mai={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(c10).join("|");var b8k=function(){function A(G){G.substr(-1)!==";"&&(G+=";");return e(G)}
for(var t=Object.keys(mai).sort(O3x),f=Object.keys(c10).sort(O3x),X=0,Q=0;X<f.length;X++)t[Q]===f[X]?(f[X]+=";?",Q++):f[X]+=";";var q=new RegExp("&(?:"+f.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),e=BUs();return function(G){return String(G).replace(q,A)}}();/*

 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 W0w={};var y0p=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"),vYC=/[\\&]/,L0f=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),p$i=RegExp('[&<>"]',"g"),EYw=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),nYp=function(A){return A.charCodeAt(0)===92?A.charAt(1):b8k(A)},DaE=function(A){return vYC.test(A)?A.replace(L0f,nYp):A},F07=function(A){try{var t,f="";
if(typeof Q!=="string"){var X=Q;var Q=";/?:@&=+$,-_.!~*'()#"}typeof X==="undefined"&&(X=!0);var q,e=W0w[Q];if(e)var G=e;else{e=W0w[Q]=[];for(q=0;q<128;q++){var N=String.fromCharCode(q);/^[0-9a-z]$/i.test(N)?e.push(N):e.push("%"+("0"+q.toString(16).toUpperCase()).slice(-2))}for(q=0;q<Q.length;q++)e[Q.charCodeAt(q)]=Q[q];G=e}var z=0;for(t=A.length;z<t;z++){var T=A.charCodeAt(z);if(X&&T===37&&z+2<t&&/^[0-9a-f]{2}$/i.test(A.slice(z+1,z+3)))f+=A.slice(z,z+3),z+=2;else if(T<128)f+=G[T];else if(T>=55296&&
T<=57343){if(T>=55296&&T<=56319&&z+1<t){var O=A.charCodeAt(z+1);if(O>=56320&&O<=57343){f+=encodeURIComponent(A[z]+A[z+1]);z++;continue}}f+="%EF%BF%BD"}else f+=encodeURIComponent(A[z])}return f}catch(c){return A}},Id8=function(A){switch(A){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return A}},WY=function(A,t){return p$i.test(A)?t?A.replace(EYw,Id8):A.replace(p$i,Id8):A};/*

 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 vY;if(String.fromCodePoint)vY=function(A){try{return String.fromCodePoint(A)}catch(t){if(t instanceof RangeError)return String.fromCharCode(65533);throw t;}};
else{var xaf=String.fromCharCode,jJT=Math.floor;vY=function(){var A=[],t=-1,f=arguments.length;if(!f)return"";for(var X="";++t<f;){var Q=Number(arguments[t]);if(!isFinite(Q)||Q<0||Q>1114111||jJT(Q)!==Q)return String.fromCharCode(65533);if(Q<=65535)A.push(Q);else{Q-=65536;var q=(Q>>10)+55296;Q=Q%1024+56320;A.push(q,Q)}if(t+1===f||A.length>16384)X+=xaf.apply(null,A),A.length=0}return X}};var YjT=function(A){this.root=this.current=A;this.entering=!0};
YjT.prototype.next=function(){var A=this.current,t=this.entering;if(A===null)return null;a:switch(A._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 f=!0;break a;default:f=!1}t&&f?A._firstChild?(this.current=A._firstChild,this.entering=!0):this.entering=!1:A===this.root?this.current=null:A._next===null?(this.current=
A._parent,this.entering=!1):(this.current=A._next,this.entering=!0);return{entering:t,node:A}};
var pP=function(A,t){this._type=A;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=t;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};
pP.prototype.appendChild=function(A){A.unlink();A._parent=this;this._lastChild?(this._lastChild._next=A,A._prev=this._lastChild):this._firstChild=A;this._lastChild=A};
pP.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var VMK=function(A,t){t.unlink();t._next=A._next;t._next&&(t._next._prev=t);t._prev=A;A._next=t;t._parent=A._parent;t._next||(t._parent._lastChild=t)};
pP.prototype.insertBefore=function(A){A.unlink();A._prev=this._prev;A._prev&&(A._prev._next=A);A._next=this;this._prev=A;A._parent=this._parent;A._prev||(A._parent._firstChild=A)};
_.PV.Object.defineProperties(pP.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(A){this._literal=A}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(A){this._destination=A}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(A){this._title=A}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(A){this._info=A}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(A){this._level=A}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(A){this._listData.type=A}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(A){this._listData.tight=A}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(A){this._listData.start=A}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(A){this._onEnter=A}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(A){this._onExit=A}}});var Mqx=/[ \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,
Czp={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 Z8w=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]/),
oY7=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),daS=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Sji=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),$aE=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),H8E=/`+/,adw=/^`+/,K0E=/\.\.\./g,gYT=/--+/g,w$k=/^<([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])?)*)>/,
sJp=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,kq7=/^ *(?:\n *)?/,r08=/^[ \t\n\x0b\x0c\x0d]/,Aul=/[ \t\n\x0b\x0c\x0d]+/g,ttT=/^\s/,fSw=/ *$/,XFS=/^ */,QGT=/^ *(?:\n|$)/,quC=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),JuK=/^[^\n`\[\]\\!<&*_'"]+/m,Em=function(A){var t=new pP("text");t._literal=A;return t},n9=function(A){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=A||{}};
n9.prototype.match=function(A){A=A.exec(this.subject.slice(this.pos));if(A===null)return null;this.pos+=A.index+A[0].length;return A[0]};
n9.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var De=function(A){A.match(kq7);return!0},UBk=function(A,t,f){var X=0;
var Q=A.pos;if(t===39||t===34)X++,A.pos++;else for(;A.peek()===t;)X++,A.pos++;if(X===0)X=null;else{var q=Q===0?"\n":A.subject.charAt(Q-1);var e=A.peek();e=e===-1?"\n":vY(e);var G=ttT.test(e);e=Z8w.test(e);var N=ttT.test(q);var z=Z8w.test(q);q=!G&&!(e&&!N&&!z);G=!N&&!(z&&!G&&!e);t===95?(N=q&&(!G||z),e=G&&(!q||e)):(N=t===39||t===34?q&&!G:q,e=G);A.pos=Q;X={numdelims:X,can_open:N,can_close:e}}if(!X)return!1;Q=X.numdelims;e=A.pos;A.pos+=Q;e=t===39?"\u2019":t===34?"\u201c":A.subject.slice(e,A.pos);e=Em(e);
f.appendChild(e);A.delimiters={cc:t,numdelims:Q,origdelims:Q,node:e,previous:A.delimiters,next:null,can_open:X.can_open,can_close:X.can_close};A.delimiters.previous!==null&&(A.delimiters.previous.next=A.delimiters);return!0},eWT=function(A,t){t.previous!==null&&(t.previous.next=t.next);
t.next===null?A.delimiters=t.previous:t.next.previous=t.previous},GFp=function(A,t){var f,X,Q=[],q=!1;
Q[95]=t;Q[42]=t;Q[39]=t;Q[34]=t;for(f=A.delimiters;f!==null&&f.previous!==t;)f=f.previous;for(;f!==null;){var e=f.cc;if(f.can_close){var G=f.previous;for(X=!1;G!==null&&G!==t&&G!==Q[e];){q=(f.can_open||G.can_close)&&(G.origdelims+f.origdelims)%3===0;if(G.cc===f.cc&&G.can_open&&!q){X=!0;break}G=G.previous}var N=f;if(e===42||e===95)if(X){var z=f.numdelims>=2&&G.numdelims>=2?2:1;var T=G.node;var O=f.node;G.numdelims-=z;f.numdelims-=z;T._literal=T._literal.slice(0,T._literal.length-z);O._literal=O._literal.slice(0,
O._literal.length-z);var c=new pP(z===1?"emph":"strong");for(z=T._next;z&&z!==O;){var B=z._next;z.unlink();c.appendChild(z);z=B}VMK(T,c);z=G;B=f;z.next!==B&&(z.next=B,B.previous=z);G.numdelims===0&&(T.unlink(),eWT(A,G));f.numdelims===0&&(O.unlink(),G=f.next,eWT(A,f),f=G)}else f=f.next;else e===39?(f.node._literal="\u2019",X&&(G.node._literal="\u2018"),f=f.next):e===34&&(f.node._literal="\u201d",X&&(G.node.literal="\u201c"),f=f.next);X||q||(Q[e]=N.previous,N.can_open||eWT(A,N))}else f=f.next}for(;A.delimiters!==
null&&A.delimiters!==t;)eWT(A,A.delimiters)},lSf=function(A){A=A.match(oY7);
return A===null?null:DaE(A.substr(1,A.length-2))},NS7=function(A){var t=A.match(daS);
if(t===null){t=A.pos;for(var f=0,X;(X=A.peek())!==-1;)if(X===92)A.pos+=1,A.peek()!==-1&&(A.pos+=1);else if(X===40)A.pos+=1,f+=1;else if(X===41)if(f<1)break;else A.pos+=1,--f;else if(r08.exec(vY(X))!==null)break;else A.pos+=1;t=A.subject.substr(t,A.pos-t);return F07(DaE(t))}return F07(DaE(t.substr(1,t.length-2)))},ut8=function(A){A=A.match(quC);
return A===null||A.length>1001?0:A.length},zWw=function(A,t,f,X){A.brackets!==null&&(A.brackets.bracketAfter=!0);
A.brackets={node:t,previous:A.brackets,previousDelimiter:A.delimiters,index:f,image:X,active:!0}},PgK=function(A,t){var f;
return(f=A.match(JuK))?(A.options.smart?t.appendChild(Em(f.replace(K0E,"\u2026").replace(gYT,function(X){var Q=0,q=0;X.length%3===0?q=X.length/3:X.length%2===0?Q=X.length/2:X.length%3===2?(Q=1,q=(X.length-2)/3):(Q=2,q=(X.length-4)/3);X="";var e;for(e=0;e<q;e++)X+="\u2014";for(e=0;e<Q;e++)X+="\u2013";return X}))):t.appendChild(Em(f)),!0):!1},TST=function(A,t,f){A.subject=t;
A.pos=0;t=A.pos;var X=ut8(A);if(X===0)return 0;var Q=A.subject.substr(0,X);if(A.peek()===58)A.pos++;else return A.pos=t,0;De(A);X=NS7(A);if(X===null||X.length===0)return A.pos=t,0;var q=A.pos;De(A);var e=lSf(A);e===null&&(e="",A.pos=q);var G=!0;A.match(QGT)===null&&(e===""?G=!1:(e="",A.pos=q,G=A.match(QGT)!==null));if(!G)return A.pos=t,0;Q=hIu(Q);if(Q==="")return A.pos=t,0;f[Q]||(f[Q]={destination:X,title:e});return A.pos-t},isT=function(A,t){var f,X=A.peek();
if(X===-1)return!1;switch(X){case 10:A.pos+=1;if((f=t._lastChild)&&f.type==="text"&&f._literal[f._literal.length-1]===" "){var Q=f._literal[f._literal.length-2]===" ";f._literal=f._literal.replace(fSw,"");t.appendChild(new pP(Q?"linebreak":"softbreak"))}else t.appendChild(new pP("softbreak"));A.match(XFS);f=!0;break;case 92:f=A.subject;A.pos+=1;A.peek()===10?(A.pos+=1,f=new pP("linebreak"),t.appendChild(f)):Sji.test(f.charAt(A.pos))?(t.appendChild(Em(f.charAt(A.pos))),A.pos+=1):t.appendChild(Em("\\"));
f=!0;break;case 96:a:if(f=A.match(adw),f===null)f=!1;else{Q=A.pos;for(var q;(q=A.match(H8E))!==null;)if(q===f){q=new pP("code");q._literal=A.subject.slice(Q,A.pos-f.length).trim().replace(Aul," ");t.appendChild(q);f=!0;break a}A.pos=Q;t.appendChild(Em(f));f=!0}break;case 42:case 95:f=UBk(A,X,t);break;case 39:case 34:f=A.options.smart&&UBk(A,X,t);break;case 91:f=A.pos;A.pos+=1;Q=Em("[");t.appendChild(Q);zWw(A,Q,f,!1);f=!0;break;case 33:f=A.pos;A.pos+=1;A.peek()===91?(A.pos+=1,Q=Em("!["),t.appendChild(Q),
zWw(A,Q,f+1,!0)):t.appendChild(Em("!"));f=!0;break;case 93:var e,G=!1,N;A.pos+=1;var z=A.pos;Q=A.brackets;if(Q===null)t.appendChild(Em("]"));else if(Q.active){f=Q.image;var T=A.pos;A.peek()===40&&(A.pos++,De(A)&&(q=NS7(A))!==null&&De(A)&&(r08.test(A.subject.charAt(A.pos-1))&&(e=lSf(A)),1)&&De(A)&&A.peek()===41?(A.pos+=1,G=!0):A.pos=T);if(!G){var O=A.pos,c=ut8(A);c>2?N=A.subject.slice(O,O+c):Q.bracketAfter||(N=A.subject.slice(Q.index,z));c===0&&(A.pos=T);N&&(N=A.refmap[hIu(N)])&&(q=N.destination,e=
N.title,G=!0)}if(G){z=new pP(f?"image":"link");z._destination=q;z._title=e||"";for(q=Q.node._next;q;)e=q._next,q.unlink(),z.appendChild(q),q=e;t.appendChild(z);GFp(A,Q.previousDelimiter);A.brackets=A.brackets.previous;Q.node.unlink();if(!f)for(Q=A.brackets;Q!==null;)Q.image||(Q.active=!1),Q=Q.previous}else A.brackets=A.brackets.previous,A.pos=z,t.appendChild(Em("]"))}else t.appendChild(Em("]")),A.brackets=A.brackets.previous;f=!0;break;case 60:(f=A.match(w$k))?(f=f.slice(1,f.length-1),Q=new pP("link"),
Q._destination=F07("mailto:"+f),Q._title="",Q.appendChild(Em(f)),t.appendChild(Q),f=!0):(f=A.match(sJp))?(f=f.slice(1,f.length-1),Q=new pP("link"),Q._destination=F07(f),Q._title="",Q.appendChild(Em(f)),t.appendChild(Q),f=!0):f=!1;f||(f=A.match(y0p),f===null?f=!1:(Q=new pP("html_inline"),Q._literal=f,t.appendChild(Q),f=!0));break;case 38:(f=A.match($aE))?(t.appendChild(Em(b8k(f))),f=!0):f=!1;break;default:f=PgK(A,t)}f||(A.pos+=1,t.appendChild(Em(vY(X))));return!0};
n9.prototype.parseInlines=function(A){this.subject=A._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;isT(this,A););A._string_content=null;GFp(this,null)};
n9.prototype.parse=n9.prototype.parseInlines;var Osf=[/./,/^<(?: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")],cuK=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],BSw=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Mtw=/^[#`~*+_=<>0-9-\|]|\|/,CgS=/[^ \t\f\v\r\n]/,hWk=/^[*+-]/,RWE=/^(\d{1,9})([.)])/,mBk=/^#{1,6}(?:[ \t]+|$)/,bsS=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,W_p=/^(?:`{3,}|~{3,})(?= *$)/,yuf=/^(?:=+|-+)[ \t]*$/,v5b=/\r\n|\n|\r/,mFs=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,b3x=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,L_b={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(A){return A!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(A,t){for(A=t._firstChild;A;){if(RIx(A)&&A._next){t._listData.tight=!1;break}for(var f=A._firstChild;f;){if(RIx(f)&&(A._next||f._next)){t._listData.tight=!1;break}f=f._next}A=A._next}},
canContain:function(A){return A==="item"},
acceptsLines:!1},block_quote:{continue:function(A){var t=A.currentLine;if(A.indented||vV(t,A.nextNonspace)!==62)return 1;F9(A);Iz(A,1,!1);yV(vV(t,A.offset))&&Iz(A,1,!0);return 0},
finalize:function(){},
canContain:function(A){return A!=="item"},
acceptsLines:!1},item:{continue:function(A,t){if(A.blank){if(t._firstChild==null)return 1;F9(A)}else if(A.indent>=t._listData.markerOffset+t._listData.padding)Iz(A,t._listData.markerOffset+t._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(A){return A!=="item"&&!W9p(A)},
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(A,t){var f=A.currentLine,X=A.indent;if(t._isFenced){if((X=X<=3&&f.charAt(A.nextNonspace)===t._fenceChar&&f.slice(A.nextNonspace).match(W_p))&&X[0].length>=t._fenceLength)return A.finalize(t,A.lineNumber),2;for(t=t._fenceOffset;t>0&&yV(vV(f,A.offset));)Iz(A,1,!0),t--}else if(X>=4)Iz(A,4,!0);else if(A.blank)F9(A);else return 1;return 0},
finalize:function(A,t){if(t._isFenced){var f=t._string_content,X=f.indexOf("\n");A=f.slice(0,X);f=f.slice(X+1);t.info=DaE(A.trim());t._literal=f}else t._literal=t._string_content.replace(/(\n *)+$/,"\n");t._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(A,t){return!A.blank||t._htmlBlockType!==6&&t._htmlBlockType!==7?0:1},
finalize:function(A,t){t._literal=t._string_content.replace(/(\n *)+$/,"");t._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(A){return A.blank?1:0},
finalize:function(A,t){for(var f,X=!1;vV(t._string_content,0)===91&&(f=TST(A.inlineParser,t._string_content,A.refmap));)t._string_content=t._string_content.slice(f),X=!0;X&&!CgS.test(t._string_content)&&t.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(A){return LP(A.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(A){return A=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(A,t){if(!t._rowIsDelimiter){A=t._isHeader?"th":"td";for(var f=t._parent._tableColumns,X=t._string_content,Q=0,q="",e,G=t._sourcepos[0][0];Q<X.length;){switch(X[Q]){case "|":e&&(e._string_content=q.trim(),q="",e=null,f--,f<=0&&(Q=X.length));break;default:if(!e){e=new pP(A,[[G,Q],[G,Q]]);var N=t._parent._columnAlignment,z=t._parent._tableColumns-f;N&&z<=N.length&&z>=0&&(e._alignment=N[z]);t.appendChild(e)}q+=X[Q];e._sourcepos[1][1]=Q}Q++}e&&(e._string_content=q.trim());t._string_content=
""}},
canContain:function(A){return A!=="row"},
acceptsLines:!1}},pFf=[function(A){if(A.indented||vV(A.currentLine,A.nextNonspace)!==62)return 0;F9(A);Iz(A,1,!1);yV(vV(A.currentLine,A.offset))&&Iz(A,1,!0);xD(A);A.addChild("block_quote",A.nextNonspace);return 1},
function(A){var t;if(!A.indented&&(t=A.currentLine.slice(A.nextNonspace).match(mBk))){F9(A);Iz(A,t[0].length,!1);xD(A);var f=A.addChild("heading",A.nextNonspace);f.level=t[0].trim().length;f._string_content=A.currentLine.slice(A.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Iz(A,A.currentLine.length-A.offset);return 2}return 0},
function(A){var t;if(!A.indented&&(t=A.currentLine.slice(A.nextNonspace).match(bsS))){var f=t[0].length;xD(A);var X=A.addChild("code_block",A.nextNonspace);X._isFenced=!0;X._fenceLength=f;X._fenceChar=t[0][0];X._fenceOffset=A.indent;F9(A);Iz(A,f,!1);return 2}return 0},
function(A,t){if(!A.indented&&vV(A.currentLine,A.nextNonspace)===60){var f=A.currentLine.slice(A.nextNonspace),X;for(X=1;X<=7;X++)if(Osf[X].test(f)&&(X<7||t.type!=="paragraph"))return xD(A),A.addChild("html_block",A.offset)._htmlBlockType=X,2}return 0},
function(A,t){var f;if(!A.indented&&t.type==="paragraph"&&(f=A.currentLine.slice(A.nextNonspace).match(yuf))){xD(A);var X=new pP("heading",t.sourcepos);X.level=f[0][0]==="="?1:2;X._string_content=t._string_content;VMK(t,X);t.unlink();A.tip=X;Iz(A,A.currentLine.length-A.offset,!1);return 2}return 0},
function(A){return!A.indented&&BSw.test(A.currentLine.slice(A.nextNonspace))?(xD(A),A.addChild("thematic_break",A.nextNonspace),Iz(A,A.currentLine.length-A.offset,!1),2):0},
function(A,t){var f,X;if(!(X=A.indented&&t.type!=="list")){a:{var Q=t,q=A.currentLine.slice(A.nextNonspace);X={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:A.indent};if(f=q.match(hWk))X.type="bullet",X.bulletChar=f[0][0];else{if(!(f=q.match(RWE))||Q.type==="paragraph"&&f[1]!=="1"){f=null;break a}X.type="ordered";X.start=parseInt(f[1],10);X.delimiter=f[2]}var e=vV(A.currentLine,A.nextNonspace+f[0].length);if(e!==-1&&e!==9&&e!==32||Q.type==="paragraph"&&!A.currentLine.slice(A.nextNonspace+
f[0].length).match(CgS))f=null;else{F9(A);Iz(A,f[0].length,!0);Q=A.column;q=A.offset;do Iz(A,1,!0),e=vV(A.currentLine,A.offset);while(A.column-Q<5&&yV(e));e=vV(A.currentLine,A.offset)===-1;var G=A.column-Q;G>=5||G<1||e?(X.padding=f[0].length+1,A.column=Q,A.offset=q,yV(vV(A.currentLine,A.offset))&&Iz(A,1,!0)):X.padding=f[0].length+G;f=X}}X=!f}if(X)return 0;xD(A);(X=A.tip.type!=="list")||(t=t._listData,X=!(t.type===f.type&&t.delimiter===f.delimiter&&t.bulletChar===f.bulletChar));X&&(t=A.addChild("list",
A.nextNonspace),t._listData=f);t=A.addChild("item",A.nextNonspace);t._listData=f;return 1},
function(A){var t;return((t=A.options.shouldParseIndentAsCodeBlock)!=null?t:1)&&A.indented&&A.tip.type!=="paragraph"&&!A.blank?(Iz(A,4,!0),xD(A),A.addChild("code_block",A.offset),2):0},
function(A,t){var f=LP(A.currentLine),X=LP(A.lookahead);if(f!==0&&X<0&&Math.abs(f)==Math.abs(X)&&!W9p(t.type)){xD(A);t=A.addChild("table",A.nextNonspace);t._tableRows=1;t._tableColumns=Math.abs(f);f=A.lookahead;if(b3x.test(f)){X=[];for(var Q=0,q=!1,e=0,G=void 0;Q<f.length;){var N=e>=3;switch(f[Q]){case "-":e++;break;case "|":q&&(X.push(G),G=void 0,e=0);q=!0;break;case ":":G||N||(G="left"),!G&&N&&(G="right"),G==="left"&&N&&(G="center")}Q++}f=X}else f=void 0;t._columnAlignment=f;t=A.addChild("row",
A.nextNonspace);t._isHeader=!0;Iz(A,A.currentLine.length-A.offset,!1);t._string_content=A.currentLine;return 1}return 0},
function(A,t){if(t.type=="table"&&LP(A.currentLine)!==0){xD(A);var f=t;t=A.addChild("row",A.nextNonspace);LP(A.currentLine)<0?t._rowIsDelimiter=!0:f._tableRows+=1;Iz(A,A.currentLine.length-A.offset,!1);t._string_content=A.currentLine;return 2}return 0}],mOg=function(){var A={shouldParseIndentAsCodeBlock:!1};
A=A===void 0?{}:A;this.lastMatchedContainer=this.doc=y1b();this.refmap={};this.lastLineLength=0;this.inlineParser=new n9(A);this.options=A;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=L_b;this.blockStarts=pFf},E5i=function(A){A.partiallyConsumedTab&&(A.offset+=1,A.tip._string_content+=" ".repeat(4-A.column%
4));
A.tip._string_content+=A.currentLine.slice(A.offset)+"\n"};
mOg.prototype.addChild=function(A,t){for(;!this.blocks[this.tip.type].canContain(A);)this.finalize(this.tip,this.lineNumber-1);A=new pP(A,[[this.lineNumber,t+1],[0,0]]);A._string_content="";this.tip.appendChild(A);return this.tip=A};
var xD=function(A){if(!A.allClosed){for(;A.oldtip!==A.lastMatchedContainer;){var t=A.oldtip._parent;A.finalize(A.oldtip,A.lineNumber-1);A.oldtip=t}A.allClosed=!0}},Iz=function(A,t,f){for(var X=A.currentLine,Q,q;t>0&&(q=X[A.offset]);)q==="\t"?(Q=4-A.column%4,f?(A.partiallyConsumedTab=Q>t,Q=Q>t?t:Q,A.column+=Q,A.offset+=A.partiallyConsumedTab?0:1,t-=Q):(A.partiallyConsumedTab=!1,A.column+=Q,A.offset+=1,--t)):(A.partiallyConsumedTab=!1,A.offset+=1,A.column+=1,--t)},F9=function(A){A.offset=A.nextNonspace;
A.column=A.nextNonspaceColumn;A.partiallyConsumedTab=!1},n5C=function(A){for(var t=A.currentLine,f=A.offset,X=A.column,Q;(Q=t.charAt(f))!=="";)if(Q===" ")f++,X++;
else if(Q==="\t")f++,X+=4-X%4;else break;A.blank=Q==="\n"||Q==="\r"||Q==="";A.nextNonspace=f;A.nextNonspaceColumn=X;A.indent=A.nextNonspaceColumn-A.column;A.indented=A.indent>=4};
mOg.prototype.finalize=function(A,t){var f=A._parent;A._open=!1;A.sourcepos[1]=[t,this.lastLineLength];this.blocks[A.type].finalize(this,A);this.tip=f};
mOg.prototype.parse=function(A){this.tip=this.doc=y1b();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!A)return this.doc;this.options.time&&console.time("preparing input");var t=A.split(v5b),f=t.length;A.charCodeAt(A.length-1)===10&&--f;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(A=0;A<f;A++)a:{var X=void 0,Q=t[A],q=t[A+1],e=!0,G=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Q.indexOf("\x00")!==-1&&(Q=Q.replace(/\0/g,"\ufffd"));this.currentLine=Q;for(this.lookahead=q;(X=G._lastChild)&&X._open;){G=X;n5C(this);switch(this.blocks[G.type].continue(this,G)){case 0:break;case 1:e=!1;break;case 2:this.lastLineLength=Q.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!e){G=G._parent;break}}this.allClosed=G===this.oldtip;this.lastMatchedContainer=
G;X=G.type!=="paragraph"&&L_b[G.type].acceptsLines;q=this.blockStarts;for(e=q.length;!X;){n5C(this);if(!this.indented&&!Mtw.test(Q.slice(this.nextNonspace))){F9(this);break}for(var N=0;N<e;){var z=q[N](this,G);if(z===1){G=this.tip;break}else if(z===2){G=this.tip;X=!0;break}else N++}if(N===e){F9(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){xD(this);this.blank&&G.lastChild&&(G.lastChild._lastLineBlank=!0);X=G.type;q=this.blank&&!(X==="block_quote"||X==="code_block"&&G._isFenced||
X==="item"&&!G._firstChild&&G.sourcepos[0][0]===this.lineNumber);for(e=G;e;)e._lastLineBlank=q,e=e._parent;this.blocks[X].acceptsLines?(E5i(this),X==="html_block"&&G._htmlBlockType>=1&&G._htmlBlockType<=5&&cuK[G._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(G,this.lineNumber)):this.offset<Q.length&&!this.blank&&(this.addChild("paragraph",this.offset),F9(this),E5i(this))}else E5i(this);this.lastLineLength=Q.length}for(;this.tip;)this.finalize(this.tip,f);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Q=new YjT(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;f=Q.next();)t=f.node,A=t.type,f.entering||A!=="paragraph"&&A!=="heading"&&A!=="th"&&A!="td"||this.inlineParser.parse(t);this.options.time&&console.timeEnd("inline parsing");return this.doc};v65.prototype.render=function(A){A=new YjT(A);var t;this.buffer="";for(this.lastOut="\n";t=A.next();){var f=t.node.type;if(this[f])this[f](t.node,t.entering)}return this.buffer};
v65.prototype.out=function(A){jm(this,A)};
var jm=function(A,t){A.buffer+=t;A.lastOut=t};
v65.prototype.cr=function(){this.lastOut!=="\n"&&jm(this,"\n")};var DBb=/^javascript:|vbscript:|file:|data:/i,F_i=/^data:image\/(?:png|gif|jpeg|webp)/i,IS8=function(A){return DBb.test(A)&&!F_i.test(A)};
Eg.prototype=Object.create(v65.prototype);_.J=Eg.prototype;_.J.text=function(A){this.out(A.literal)};
_.J.html_inline=function(A){this.options.safe?jm(this,"\x3c!-- raw HTML omitted --\x3e"):jm(this,A.literal)};
_.J.html_block=function(A){this.cr();this.options.safe?jm(this,"\x3c!-- raw HTML omitted --\x3e"):jm(this,A.literal);this.cr()};
_.J.softbreak=function(){jm(this,this.options.softbreak)};
_.J.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.J.link=function(A,t){var f=this.attrs(A);t?(this.options.safe&&IS8(A.destination)||f.push(["href",WY(A.destination,!0)]),A.title&&f.push(["title",WY(A.title,!0)]),this.tag("a",f)):this.tag("/a")};
_.J.image=function(A,t){t?(this.disableTags===0&&(this.options.safe&&IS8(A.destination)?jm(this,'<img src="" alt="'):jm(this,'<img src="'+WY(A.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(A.title&&jm(this,'" title="'+WY(A.title,!0)),jm(this,'" />')))};
_.J.emph=function(A,t){this.tag(t?"em":"/em")};
_.J.strong=function(A,t){this.tag(t?"strong":"/strong")};
_.J.paragraph=function(A,t){var f=A.parent.parent;A=this.attrs(A);f!==null&&f.type==="list"&&f.listTight||(t?(this.cr(),this.tag("p",A)):(this.tag("/p"),this.cr()))};
_.J.heading=function(A,t){var f="h"+A.level;A=this.attrs(A);t?(this.cr(),this.tag(f,A)):(this.tag("/"+f),this.cr())};
_.J.code=function(A){this.tag("code");this.out(A.literal);this.tag("/code")};
_.J.code_block=function(A){var t=A.info?A.info.split(/\s+/):[],f=this.attrs(A);t.length>0&&t[0].length>0&&f.push(["class","language-"+WY(t[0],!0)]);this.cr();this.tag("pre");this.tag("code",f);this.out(A.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.J.thematic_break=function(A){A=this.attrs(A);this.cr();this.tag("hr",A,!0);this.cr()};
_.J.block_quote=function(A,t){A=this.attrs(A);t?(this.cr(),this.tag("blockquote",A)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.J.list=function(A,t){var f=A.listType==="bullet"?"ul":"ol",X=this.attrs(A);t?(A=A.listStart,A!==null&&A!==1&&X.push(["start",A.toString()]),this.cr(),this.tag(f,X)):(this.cr(),this.tag("/"+f));this.cr()};
_.J.item=function(A,t){A=this.attrs(A);t?this.tag("li",A):(this.tag("/li"),this.cr())};
_.J.custom_inline=function(A,t){t&&A.onEnter?jm(this,A.onEnter):!t&&A.onExit&&jm(this,A.onExit)};
_.J.custom_block=function(A,t){this.cr();t&&A.onEnter?jm(this,A.onEnter):!t&&A.onExit&&jm(this,A.onExit);this.cr()};
_.J.table=function(A,t){A=this.attrs(A);t?(this.cr(),this.tag("table",A)):(this.tag("/table"),this.cr())};
_.J.row=function(A,t){A._rowIsDelimiter||(A=this.attrs(A),t?this.tag("tr",A):this.tag("/tr"))};
_.J.td=function(A,t){var f=this.attrs(A);A._alignment&&f.push(["align",A._alignment]);t?this.tag("td",f):this.tag("/td")};
_.J.th=function(A,t){var f=this.attrs(A);A._alignment&&f.push(["align",A._alignment]);t?this.tag("th",f):this.tag("/th")};
_.J.out=function(A){jm(this,WY(A,!1))};
_.J.tag=function(A,t,f){if(!(this.disableTags>0)){this.buffer+="<"+A;if(t&&t.length>0){A=0;for(var X;(X=t[A])!==void 0;)this.buffer+=" "+X[0]+'="'+X[1]+'"',A++}f&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.J.attrs=function(A){var t=[];this.options.sourcepos&&(A=A.sourcepos)&&t.push(["data-sourcepos",String(A[0][0])+":"+String(A[0][1])+"-"+String(A[1][0])+":"+String(A[1][1])]);return t};
Eg.prototype.text=Eg.prototype.text;Eg.prototype.html_inline=Eg.prototype.html_inline;Eg.prototype.html_block=Eg.prototype.html_block;Eg.prototype.softbreak=Eg.prototype.softbreak;Eg.prototype.linebreak=Eg.prototype.linebreak;Eg.prototype.link=Eg.prototype.link;Eg.prototype.image=Eg.prototype.image;Eg.prototype.emph=Eg.prototype.emph;Eg.prototype.strong=Eg.prototype.strong;Eg.prototype.paragraph=Eg.prototype.paragraph;Eg.prototype.heading=Eg.prototype.heading;Eg.prototype.code=Eg.prototype.code;
Eg.prototype.code_block=Eg.prototype.code_block;Eg.prototype.thematic_break=Eg.prototype.thematic_break;Eg.prototype.block_quote=Eg.prototype.block_quote;Eg.prototype.list=Eg.prototype.list;Eg.prototype.item=Eg.prototype.item;Eg.prototype.custom_inline=Eg.prototype.custom_inline;Eg.prototype.custom_block=Eg.prototype.custom_block;Eg.prototype.table=Eg.prototype.table;Eg.prototype.row=Eg.prototype.row;Eg.prototype.td=Eg.prototype.td;Eg.prototype.th=Eg.prototype.th;Eg.prototype.out=Eg.prototype.out;
Eg.prototype.tag=Eg.prototype.tag;Eg.prototype.attrs=Eg.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 xBp,jGT,Nrb;(function(){function A(p,v){return p<v?-1:p>v?1:p>=v?0:NaN}
function t(p){return function(v,x){return A(p(v),x)}}
function f(){for(var p=0,v=arguments.length,x={},tb;p<v;++p){if(!(tb=arguments[p]+"")||tb in x)throw Error("xe`"+tb);x[tb]=[]}return new X(x)}
function X(p){this._=p}
function Q(p,v){return p.trim().split(/^|\s+/).map(function(x){var tb="",Nl=x.indexOf(".");Nl>=0&&(tb=x.slice(Nl+1),x=x.slice(0,Nl));if(x&&!v.hasOwnProperty(x))throw Error("ye`"+x);return{type:x,name:tb}})}
function q(p,v,x){for(var tb=0,Nl=p.length;tb<Nl;++tb)if(p[tb].name===v){p[tb]=GdA;p=p.slice(0,tb).concat(p.slice(tb+1));break}x!=null&&p.push({name:v,value:x});return p}
function e(p){var v=p,x=v.indexOf(":");x>=0&&(v=p.slice(0,x))!=="xmlns"&&(p=p.slice(x+1));return sj.hasOwnProperty(v)?{space:sj[v],local:p}:p}
function G(p){return function(){var v=this.ownerDocument,x=this.namespaceURI;return x==="http://www.w3.org/1999/xhtml"&&v.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?v.createElement(p):v.createElementNS(x,p)}}
function N(p){return function(){return this.ownerDocument.createElementNS(p.space,p.local)}}
function z(p){p=e(p);return(p.local?N:G)(p)}
function T(){}
function O(p){return p==null?T:function(){return this.querySelector(p)}}
function c(p){return Array(p.length)}
function B(p,v){this.ownerDocument=p.ownerDocument;this.namespaceURI=p.namespaceURI;this._next=null;this._parent=p;this.__data__=v}
function h(p){return function(){return p}}
function W(p,v,x,tb,Nl,Bp){for(var bu=0,Dx,UT=v.length,tf=Bp.length;bu<tf;++bu)(Dx=v[bu])?(Dx.__data__=Bp[bu],tb[bu]=Dx):x[bu]=new B(p,Bp[bu]);for(;bu<UT;++bu)if(Dx=v[bu])Nl[bu]=Dx}
function L(p,v,x,tb,Nl,Bp,bu){var Dx,UT,tf={},Gk=v.length,cT=Bp.length,gE=Array(Gk),nw;for(Dx=0;Dx<Gk;++Dx)if(UT=v[Dx])gE[Dx]=nw="$"+bu.call(UT,UT.__data__,Dx,v),nw in tf?Nl[Dx]=UT:tf[nw]=UT;for(Dx=0;Dx<cT;++Dx)nw="$"+bu.call(p,Bp[Dx],Dx,Bp),(UT=tf[nw])?(tb[Dx]=UT,UT.__data__=Bp[Dx],tf[nw]=null):x[Dx]=new B(p,Bp[Dx]);for(Dx=0;Dx<Gk;++Dx)(UT=v[Dx])&&tf[gE[Dx]]===UT&&(Nl[Dx]=UT)}
function E(p,v){return p<v?-1:p>v?1:p>=v?0:NaN}
function D(p){return function(){this.removeAttribute(p)}}
function S(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function Z(p,v){return function(){this.setAttribute(p,v)}}
function d(p,v){return function(){this.setAttributeNS(p.space,p.local,v)}}
function K(p,v){return function(){var x=v.apply(this,arguments);x==null?this.removeAttribute(p):this.setAttribute(p,x)}}
function k(p,v){return function(){var x=v.apply(this,arguments);x==null?this.removeAttributeNS(p.space,p.local):this.setAttributeNS(p.space,p.local,x)}}
function Gz(p){return function(){this.style.removeProperty(p)}}
function Tz(p,v,x){return function(){this.style.setProperty(p,v,x)}}
function y5(p,v,x){return function(){var tb=v.apply(this,arguments);tb==null?this.style.removeProperty(p):this.style.setProperty(p,tb,x)}}
function cp(p,v){return p.style.getPropertyValue(v)||(p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView).getComputedStyle(p,null).getPropertyValue(v)}
function iu(p){return function(){delete this[p]}}
function Fb(p,v){return function(){this[p]=v}}
function xq(p,v){return function(){var x=v.apply(this,arguments);x==null?delete this[p]:this[p]=x}}
function Yq(){this.textContent=""}
function zk(p){return function(){this.textContent=p}}
function PT(p){return function(){var v=p.apply(this,arguments);this.textContent=v==null?"":v}}
function rs(){this.innerHTML=""}
function OT(p){return function(){this.innerHTML=p}}
function bK(p){return function(){var v=p.apply(this,arguments);this.innerHTML=v==null?"":v}}
function ET(){return null}
function m3(){var p=this.parentNode;p&&p.removeChild(this)}
function O2(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function eT(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function fS(p,v,x){p=hf(p,v,x);return function(tb){var Nl=tb.relatedTarget;Nl&&(Nl===this||Nl.compareDocumentPosition(this)&8)||p.call(this,tb)}}
function hf(p,v,x){return function(){p.call(this,this.__data__,v,x)}}
function wE(p){return p.trim().split(/^|\s+/).map(function(v){var x="",tb=v.indexOf(".");tb>=0&&(x=v.slice(tb+1),v=v.slice(0,tb));return{type:v,name:x}})}
function Rp(p){return function(){var v=this.__on;if(v){for(var x=0,tb=-1,Nl=v.length,Bp;x<Nl;++x)(Bp=v[x],p.type&&Bp.type!==p.type||Bp.name!==p.name)?v[++tb]=Bp:this.removeEventListener(Bp.type,Bp.listener,Bp.capture);++tb?v.length=tb:delete this.__on}}}
function rE(p,v,x){var tb=xTE.hasOwnProperty(p.type)?fS:hf;return function(Nl,Bp,bu){Nl=this.__on;var Dx;Bp=tb(v,Bp,bu);if(Nl){bu=0;for(var UT=Nl.length;bu<UT;++bu)if((Dx=Nl[bu]).type===p.type&&Dx.name===p.name){this.removeEventListener(Dx.type,Dx.listener,Dx.capture);this.addEventListener(Dx.type,Dx.listener=Bp,Dx.capture=x);Dx.value=v;return}}this.addEventListener(p.type,Bp,x);Dx={type:p.type,name:p.name,value:v,listener:Bp,capture:x};Nl?Nl.push(Dx):this.__on=[Dx]}}
function bL(p,v,x){var tb=p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView,Nl=tb.CustomEvent;typeof Nl==="function"?Nl=new Nl(v,x):(Nl=tb.document.createEvent("Event"),x?(Nl.initEvent(v,x.bubbles,x.cancelable),Nl.detail=x.detail):Nl.initEvent(v,!1,!1));p.dispatchEvent(Nl)}
function $8(p,v){return function(){return bL(this,p,v)}}
function Tk(p,v){return function(){return bL(this,p,v.apply(this,arguments))}}
function iK(p,v){this._groups=p;this._parents=v}
function Qh(){return new iK([[document.documentElement]],liA)}
function Kg(){this._="@"+(++NCw).toString(36)}
function fw(p,v,x){p.prototype=v.prototype=x;x.constructor=p}
function TH(p,v){p=Object.create(p.prototype);for(var x in v)p[x]=v[x];return p}
function Xx(){}
function cA(p){var v;p=(p+"").trim().toLowerCase();return(v=uv3.exec(p))?(v=parseInt(v[1],16),new by(v>>8&15|v>>4&240,v>>4&15|v&240,(v&15)<<4|v&15,1)):(v=zkj.exec(p))?$m(parseInt(v[1],16)):(v=POw.exec(p))?new by(v[1],v[2],v[3],1):(v=TCd.exec(p))?new by(v[1]*255/100,v[2]*255/100,v[3]*255/100,1):(v=imd.exec(p))?z_(v[1],v[2],v[3],v[4]):(v=Omm.exec(p))?z_(v[1]*255/100,v[2]*255/100,v[3]*255/100,v[4]):(v=ckh.exec(p))?gG(v[1],v[2]/100,v[3]/100,1):(v=BCc.exec(p))?gG(v[1],v[2]/100,v[3]/100,v[4]):jdK.hasOwnProperty(p)?
$m(jdK[p]):p==="transparent"?new by(NaN,NaN,NaN,0):null}
function $m(p){return new by(p>>16&255,p>>8&255,p&255,1)}
function z_(p,v,x,tb){tb<=0&&(p=v=x=NaN);return new by(p,v,x,tb)}
function Mw(p){p instanceof Xx||(p=cA(p));if(!p)return new by;p=p.rgb();return new by(p.r,p.g,p.b,p.opacity)}
function HT(p,v,x,tb){return arguments.length===1?Mw(p):new by(p,v,x,tb==null?1:tb)}
function by(p,v,x,tb){this.r=+p;this.g=+v;this.b=+x;this.opacity=+tb}
function qd(p){p=Math.max(0,Math.min(255,Math.round(p)||0));return(p<16?"0":"")+p.toString(16)}
function gG(p,v,x,tb){tb<=0?p=v=x=NaN:x<=0||x>=1?p=v=NaN:v<=0&&(p=NaN);return new fF(p,v,x,tb)}
function Gv(p){if(p instanceof fF)return new fF(p.h,p.s,p.l,p.opacity);p instanceof Xx||(p=cA(p));if(!p)return new fF;if(p instanceof fF)return p;p=p.rgb();var v=p.r/255,x=p.g/255,tb=p.b/255,Nl=Math.min(v,x,tb),Bp=Math.max(v,x,tb),bu=NaN,Dx=Bp-Nl,UT=(Bp+Nl)/2;Dx?(bu=v===Bp?(x-tb)/Dx+(x<tb)*6:x===Bp?(tb-v)/Dx+2:(v-x)/Dx+4,Dx/=UT<.5?Bp+Nl:2-Bp-Nl,bu*=60):Dx=UT>0&&UT<1?0:bu;return new fF(bu,Dx,UT,p.opacity)}
function yG(p,v,x,tb){return arguments.length===1?Gv(p):new fF(p,v,x,tb==null?1:tb)}
function fF(p,v,x,tb){this.h=+p;this.s=+v;this.l=+x;this.opacity=+tb}
function SO(p,v,x){return(p<60?v+(x-v)*p/60:p<180?x:p<240?v+(x-v)*(240-p)/60:v)*255}
function bs(p){if(p instanceof vp)return new vp(p.l,p.a,p.b,p.opacity);if(p instanceof LS){if(isNaN(p.h))return new vp(p.l,0,0,p.opacity);var v=p.h*YWp;return new vp(p.l,Math.cos(v)*p.c,Math.sin(v)*p.c,p.opacity)}p instanceof by||(p=Mw(p));var x=Rl(p.r),tb=Rl(p.g),Nl=Rl(p.b);v=V5(.2225045*x+.7168786*tb+.0606169*Nl);if(x===tb&&tb===Nl)var Bp=x=v;else Bp=V5((.4360747*x+.3850649*tb+.1430804*Nl)/.96422),x=V5((.0139322*x+.0971045*tb+.7141733*Nl)/.82521);return new vp(116*v-16,500*(Bp-v),200*(v-x),p.opacity)}
function vp(p,v,x,tb){this.l=+p;this.a=+v;this.b=+x;this.opacity=+tb}
function V5(p){return p>MKh?Math.pow(p,1/3):p/VkT+Z2T}
function a0(p){return p>Cc?p*p*p:VkT*(p-Z2T)}
function CS(p){return 255*(p<=.0031308?12.92*p:1.055*Math.pow(p,1/2.4)-.055)}
function Rl(p){return(p/=255)<=.04045?p/12.92:Math.pow((p+.055)/1.055,2.4)}
function If(p){if(p instanceof LS)return new LS(p.h,p.c,p.l,p.opacity);p instanceof vp||(p=bs(p));if(p.a===0&&p.b===0)return new LS(NaN,0,p.l,p.opacity);var v=Math.atan2(p.b,p.a)*oyp;return new LS(v<0?v+360:v,Math.sqrt(p.a*p.a+p.b*p.b),p.l,p.opacity)}
function pw(p,v,x,tb){return arguments.length===1?If(p):new LS(p,v,x,tb==null?1:tb)}
function LS(p,v,x,tb){this.h=+p;this.c=+v;this.l=+x;this.opacity=+tb}
function WT(p,v,x,tb){if(arguments.length===1){var Nl=p;if(Nl instanceof ol)Nl=new ol(Nl.h,Nl.s,Nl.l,Nl.opacity);else{Nl instanceof by||(Nl=Mw(Nl));var Bp=Nl.g/255,bu=Nl.b/255,Dx=(dTK*bu+Nl.r/255*-1.7884503806-3.5172982438*Bp)/(dTK+-1.7884503806-3.5172982438);bu-=Dx;var UT=(1.97294*(Bp-Dx)- -.29227*bu)/-.90649;bu=(Bp=Math.sqrt(UT*UT+bu*bu)/(1.97294*Dx*(1-Dx)))?Math.atan2(UT,bu)*oyp-120:NaN;Nl=new ol(bu<0?bu+360:bu,Bp,Dx,Nl.opacity)}}else Nl=new ol(p,v,x,tb==null?1:tb);return Nl}
function ol(p,v,x,tb){this.h=+p;this.s=+v;this.l=+x;this.opacity=+tb}
function S3(p,v,x,tb,Nl){var Bp=p*p,bu=Bp*p;return((1-3*p+3*Bp-bu)*v+(4-6*Bp+3*bu)*x+(1+3*p+3*Bp-3*bu)*tb+bu*Nl)/6}
function Mb(p){return function(){return p}}
function wG(p,v){return function(x){return p+x*v}}
function jG(p,v,x){return p=Math.pow(p,x),v=Math.pow(v,x)-p,x=1/x,function(tb){return Math.pow(p+tb*v,x)}}
function $l(p,v){var x=v-p;return x?wG(p,x>180||x<-180?x-360*Math.round(x/360):x):Mb(isNaN(p)?v:p)}
function gD(p){return(p=+p)===1?Qk:function(v,x){return x-v?jG(v,x,p):Mb(isNaN(v)?x:v)}}
function Qk(p,v){var x=v-p;return x?wG(p,x):Mb(isNaN(p)?v:p)}
function n8(p){return function(v){var x=v.length,tb=Array(x),Nl=Array(x),Bp=Array(x),bu;for(bu=0;bu<x;++bu){var Dx=HT(v[bu]);tb[bu]=Dx.r||0;Nl[bu]=Dx.g||0;Bp[bu]=Dx.b||0}tb=p(tb);Nl=p(Nl);Bp=p(Bp);Dx.opacity=1;return function(UT){Dx.r=tb(UT);Dx.g=Nl(UT);Dx.b=Bp(UT);return Dx+""}}}
function S2(p,v){return p=+p,v-=p,function(x){return p+v*x}}
function br(p){return function(){return p}}
function J6(p){return function(v){return p(v)+""}}
function MJ(p,v){var x=k4q.lastIndex=rBs.lastIndex=0,tb,Nl,Bp,bu=-1,Dx=[],UT=[];p+="";for(v+="";(tb=k4q.exec(p))&&(Nl=rBs.exec(v));)(Bp=Nl.index)>x&&(Bp=v.slice(x,Bp),Dx[bu]?Dx[bu]+=Bp:Dx[++bu]=Bp),(tb=tb[0])===(Nl=Nl[0])?Dx[bu]?Dx[bu]+=Nl:Dx[++bu]=Nl:(Dx[++bu]=null,UT.push({i:bu,x:S2(tb,Nl)})),x=rBs.lastIndex;x<v.length&&(Bp=v.slice(x),Dx[bu]?Dx[bu]+=Bp:Dx[++bu]=Bp);return Dx.length<2?UT[0]?J6(UT[0].x):br(v):(v=UT.length,function(tf){for(var Gk=0,cT;Gk<v;++Gk)Dx[(cT=UT[Gk]).i]=cT.x(tf);return Dx.join("")})}
function WR(p,v,x,tb,Nl,Bp){var bu,Dx,UT;if(bu=Math.sqrt(p*p+v*v))p/=bu,v/=bu;if(UT=p*x+v*tb)x-=p*UT,tb-=v*UT;if(Dx=Math.sqrt(x*x+tb*tb))x/=Dx,tb/=Dx,UT/=Dx;p*tb<v*x&&(p=-p,v=-v,UT=-UT,bu=-bu);return{translateX:Nl,translateY:Bp,rotate:Math.atan2(v,p)*SWp,skewX:Math.atan(UT)*SWp,scaleX:bu,scaleY:Dx}}
function q9(p,v,x,tb){function Nl(tf){return tf.length?tf.pop()+" ":""}
function Bp(tf,Gk,cT,gE,nw,mQ){tf!==cT||Gk!==gE?(nw=nw.push("translate(",null,v,null,x),mQ.push({i:nw-4,x:S2(tf,cT)},{i:nw-2,x:S2(Gk,gE)})):(cT||gE)&&nw.push("translate("+cT+v+gE+x)}
function bu(tf,Gk,cT,gE){tf!==Gk?(tf-Gk>180?Gk+=360:Gk-tf>180&&(tf+=360),gE.push({i:cT.push(Nl(cT)+"rotate(",null,tb)-2,x:S2(tf,Gk)})):Gk&&cT.push(Nl(cT)+"rotate("+Gk+tb)}
function Dx(tf,Gk,cT,gE){tf!==Gk?gE.push({i:cT.push(Nl(cT)+"skewX(",null,tb)-2,x:S2(tf,Gk)}):Gk&&cT.push(Nl(cT)+"skewX("+Gk+tb)}
function UT(tf,Gk,cT,gE,nw,mQ){tf!==cT||Gk!==gE?(nw=nw.push(Nl(nw)+"scale(",null,",",null,")"),mQ.push({i:nw-4,x:S2(tf,cT)},{i:nw-2,x:S2(Gk,gE)})):cT===1&&gE===1||nw.push(Nl(nw)+"scale("+cT+","+gE+")")}
return function(tf,Gk){var cT=[],gE=[];tf=p(tf);Gk=p(Gk);Bp(tf.translateX,tf.translateY,Gk.translateX,Gk.translateY,cT,gE);bu(tf.rotate,Gk.rotate,cT,gE);Dx(tf.skewX,Gk.skewX,cT,gE);UT(tf.scaleX,tf.scaleY,Gk.scaleX,Gk.scaleY,cT,gE);tf=Gk=null;return function(nw){for(var mQ=-1,a9=gE.length,pO;++mQ<a9;)cT[(pO=gE[mQ]).i]=pO.x(nw);return cT.join("")}}}
function vd(p){return function(v,x){var tb=p((v=yG(v)).h,(x=yG(x)).h),Nl=Qk(v.s,x.s),Bp=Qk(v.l,x.l),bu=Qk(v.opacity,x.opacity);return function(Dx){v.h=tb(Dx);v.s=Nl(Dx);v.l=Bp(Dx);v.opacity=bu(Dx);return v+""}}}
function C_(p){return function(v,x){var tb=p((v=pw(v)).h,(x=pw(x)).h),Nl=Qk(v.c,x.c),Bp=Qk(v.l,x.l),bu=Qk(v.opacity,x.opacity);return function(Dx){v.h=tb(Dx);v.c=Nl(Dx);v.l=Bp(Dx);v.opacity=bu(Dx);return v+""}}}
function hw(p){return function tb(x){function Nl(Bp,bu){var Dx=p((Bp=WT(Bp)).h,(bu=WT(bu)).h),UT=Qk(Bp.s,bu.s),tf=Qk(Bp.l,bu.l),Gk=Qk(Bp.opacity,bu.opacity);return function(cT){Bp.h=Dx(cT);Bp.s=UT(cT);Bp.l=tf(Math.pow(cT,x));Bp.opacity=Gk(cT);return Bp+""}}
x=+x;Nl.gamma=tb;return Nl}(1)}
function n6(){return Kh||($Tk(CT),Kh=zx.now()+rOb)}
function CT(){Kh=0}
function Do(){this._call=this._time=this._next=null}
function RS(p,v,x){var tb=new Do;tb.restart(p,v,x);return tb}
function WV(){Kh=(A4u=zx.now())+rOb;hg=Pe=0;try{n6();++hg;for(var p=tUb,v;p;)(v=Kh-p._time)>=0&&p._call.call(null,v),p=p._next;--hg}finally{hg=0;p=tUb;for(var x=Infinity;p;)if(p._call){x>p._time&&(x=p._time);var tb=p;p=p._next}else v=p._next,p._next=null,p=tb?tb._next=v:tUb=v;Tx=tb;y2(x);Kh=0}}
function hD(){var p=zx.now(),v=p-A4u;v>1E3&&(rOb-=v,A4u=p)}
function y2(p){hg||(Pe&&(Pe=clearTimeout(Pe)),p-Kh>24?(p<Infinity&&(Pe=setTimeout(WV,p-zx.now()-rOb)),iZ&&(iZ=clearInterval(iZ))):(iZ||(A4u=zx.now(),iZ=setInterval(hD,1E3)),hg=1,$Tk(WV)))}
function QC(p,v,x){var tb=new Do;v=v==null?0:+v;tb.restart(function(Nl){tb.stop();p(Nl+v)},v,x);
return tb}
function Md(p,v,x,tb,Nl,Bp){var bu=p.__transition;if(!bu)p.__transition={};else if(x in bu)return;YC(p,x,{name:v,index:tb,group:Nl,on:COh,tween:hkm,time:Bp.time,delay:Bp.delay,duration:Bp.duration,ease:Bp.ease,timer:null,state:0})}
function jj(p,v){p=VP(p,v);if(p.state>0)throw Error("ze");return p}
function Ui(p,v){p=VP(p,v);if(p.state>2)throw Error("Ae");return p}
function VP(p,v){p=p.__transition;if(!p||!(p=p[v]))throw Error("Be");return p}
function YC(p,v,x){function tb(UT){var tf,Gk;if(x.state!==1)return Bp();for(gE in bu){var cT=bu[gE];if(cT.name===x.name){if(cT.state===3)return QC(tb);cT.state===4?(cT.state=6,cT.timer.stop(),cT.on.call("interrupt",p,p.__data__,cT.index,cT.group),delete bu[gE]):+gE<v&&(cT.state=6,cT.timer.stop(),delete bu[gE])}}QC(function(){x.state===3&&(x.state=4,x.timer.restart(Nl,x.delay,x.time),Nl(UT))});
x.state=2;x.on.call("start",p,p.__data__,x.index,x.group);if(x.state===2){x.state=3;Dx=Array(Gk=x.tween.length);var gE=0;for(tf=-1;gE<Gk;++gE)if(cT=x.tween[gE].value.call(p,p.__data__,x.index,x.group))Dx[++tf]=cT;Dx.length=tf+1}}
function Nl(UT){UT=UT<x.duration?x.ease.call(null,UT/x.duration):(x.timer.restart(Bp),x.state=5,1);for(var tf=-1,Gk=Dx.length;++tf<Gk;)Dx[tf].call(null,UT);x.state===5&&(x.on.call("end",p,p.__data__,x.index,x.group),Bp())}
function Bp(){x.state=6;x.timer.stop();delete bu[v];for(var UT in bu)return;delete p.__transition}
var bu=p.__transition,Dx;bu[v]=x;x.timer=RS(function(UT){x.state=1;x.timer.restart(tb,x.delay,x.time);x.delay<=UT&&tb(UT-x.delay)},0,x.time)}
function w9(p,v){var x,tb;return function(){var Nl=Ui(this,p),Bp=Nl.tween;if(Bp!==x){tb=x=Bp;Bp=0;for(var bu=tb.length;Bp<bu;++Bp)if(tb[Bp].name===v){tb=tb.slice();tb.splice(Bp,1);break}}Nl.tween=tb}}
function $p(p,v,x){var tb,Nl;if(typeof x!=="function")throw Error();return function(){var Bp=Ui(this,p),bu=Bp.tween;if(bu!==tb){Nl=(tb=bu).slice();bu={name:v,value:x};for(var Dx=0,UT=Nl.length;Dx<UT;++Dx)if(Nl[Dx].name===v){Nl[Dx]=bu;break}Dx===UT&&Nl.push(bu)}Bp.tween=Nl}}
function L9(p,v,x){var tb=p._id;p.each(function(){var Nl=Ui(this,tb);(Nl.value||(Nl.value={}))[v]=x.apply(this,arguments)});
return function(Nl){return VP(Nl,tb).value[v]}}
function H2E(p,v){var x;return(typeof v==="number"?S2:v instanceof cA?alK:(x=cA(v))?(v=x,alK):MJ)(p,v)}
function RkA(p){return function(){this.removeAttribute(p)}}
function mV3(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function bm8(p,v,x){var tb,Nl;return function(){var Bp=this.getAttribute(p);return Bp===x?null:Bp===tb?Nl:Nl=v(tb=Bp,x)}}
function W6w(p,v,x){var tb,Nl;return function(){var Bp=this.getAttributeNS(p.space,p.local);return Bp===x?null:Bp===tb?Nl:Nl=v(tb=Bp,x)}}
function ykd(p,v,x){var tb,Nl,Bp;return function(){var bu=x(this);if(bu==null)return void this.removeAttribute(p);var Dx=this.getAttribute(p);return Dx===bu?null:Dx===tb&&bu===Nl?Bp:Bp=v(tb=Dx,Nl=bu)}}
function vPh(p,v,x){var tb,Nl,Bp;return function(){var bu=x(this);if(bu==null)return void this.removeAttributeNS(p.space,p.local);var Dx=this.getAttributeNS(p.space,p.local);return Dx===bu?null:Dx===tb&&bu===Nl?Bp:Bp=v(tb=Dx,Nl=bu)}}
function L63(p,v){function x(){var tb=this,Nl=v.apply(tb,arguments);return Nl&&function(Bp){tb.setAttributeNS(p.space,p.local,Nl(Bp))}}
x._value=v;return x}
function pgl(p,v){function x(){var tb=this,Nl=v.apply(tb,arguments);return Nl&&function(Bp){tb.setAttribute(p,Nl(Bp))}}
x._value=v;return x}
function EPl(p,v){return function(){jj(this,p).delay=+v.apply(this,arguments)}}
function nPj(p,v){return v=+v,function(){jj(this,p).delay=v}}
function DVd(p,v){return function(){Ui(this,p).duration=+v.apply(this,arguments)}}
function F68(p,v){return v=+v,function(){Ui(this,p).duration=v}}
function IiQ(p,v){if(typeof v!=="function")throw Error();return function(){Ui(this,p).ease=v}}
function xV_(p){return(p+"").trim().split(/^|\s+/).every(function(v){var x=v.indexOf(".");x>=0&&(v=v.slice(0,x));return!v||v==="start"})}
function jac(p,v,x){var tb,Nl,Bp=xV_(v)?jj:Ui;return function(){var bu=Bp(this,p),Dx=bu.on;if(Dx!==tb)(Nl=(tb=Dx).copy()).on(v,x);bu.on=Nl}}
function Y3l(p){return function(){var v=this.parentNode,x;for(x in this.__transition)if(+x!==p)return;v&&v.removeChild(this)}}
function VKd(p,v){var x,tb,Nl;return function(){var Bp=cp(this,p),bu=(this.style.removeProperty(p),cp(this,p));return Bp===bu?null:Bp===x&&bu===tb?Nl:Nl=v(x=Bp,tb=bu)}}
function Zm8(p){return function(){this.style.removeProperty(p)}}
function oPh(p,v,x){var tb,Nl;return function(){var Bp=cp(this,p);return Bp===x?null:Bp===tb?Nl:Nl=v(tb=Bp,x)}}
function dV3(p,v,x){var tb,Nl,Bp;return function(){var bu=cp(this,p),Dx=x(this);Dx==null&&(Dx=(this.style.removeProperty(p),cp(this,p)));return bu===Dx?null:bu===tb&&Dx===Nl?Bp:Bp=v(tb=bu,Nl=Dx)}}
function S3c(p,v,x){function tb(){var Nl=this,Bp=v.apply(Nl,arguments);return Bp&&function(bu){Nl.style.setProperty(p,Bp(bu),x)}}
tb._value=v;return tb}
function $V3(p){return function(){this.textContent=p}}
function Hm3(p){return function(){var v=p(this);this.textContent=v==null?"":v}}
function px(p,v,x,tb){this._groups=p;this._parents=v;this._name=x;this._id=tb}
function AsT(p){return{type:p}}
function tkx(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function f_u(){}
function KuC(p,v){var x=new f_u;if(p instanceof f_u)p.each(function(bu,Dx){x.set(Dx,bu)});
else if(Array.isArray(p)){var tb=-1,Nl=p.length,Bp;if(v==null)for(;++tb<Nl;)x.set(tb,p[tb]);else for(;++tb<Nl;)x.set(v(Bp=p[tb],tb,p),Bp)}else if(p)for(tb in p)x.set(tb,p[tb]);return x}
function X9T(){}
function gyw(p){return function(v){for(var x={},tb=0;tb<p.length;tb++)x[p[tb]]=v[tb]||"";return x}}
function ai3(p,v){var x=gyw(p);return function(tb,Nl){return v(x(tb),Nl,p)}}
function K68(p){var v=Object.create(null),x=[];p.forEach(function(tb){for(var Nl in tb)Nl in v||x.push(v[Nl]=Nl)});
return x}
function w7E(p){function v(bu,Dx){function UT(){if(mQ)return fl5;if(a9)return a9=!1,sdf;var ld,rD=cT,pf;if(bu.charCodeAt(rD)===34){for(;cT++<Gk&&bu.charCodeAt(cT)!==34||bu.charCodeAt(++cT)===34;);(ld=cT)>=Gk?mQ=!0:(pf=bu.charCodeAt(cT++))===10?a9=!0:pf===13&&(a9=!0,bu.charCodeAt(cT)===10&&++cT);return bu.slice(rD+1,ld-1).replace(/""/g,'"')}for(;cT<Gk;){if((pf=bu.charCodeAt(ld=cT++))===10)a9=!0;else if(pf===13)a9=!0,bu.charCodeAt(cT)===10&&++cT;else if(pf!==Bp)continue;return bu.slice(rD,ld)}return mQ=
!0,bu.slice(rD,Gk)}
var tf=[],Gk=bu.length,cT=0,gE=0,nw,mQ=Gk<=0,a9=!1;bu.charCodeAt(Gk-1)===10&&--Gk;for(bu.charCodeAt(Gk-1)===13&&--Gk;(nw=UT())!==fl5;){for(var pO=[];nw!==sdf&&nw!==fl5;)pO.push(nw),nw=UT();Dx&&(pO=Dx(pO,gE++))==null||tf.push(pO)}return tf}
function x(bu){return bu.map(tb).join(p)}
function tb(bu){return bu==null?"":Nl.test(bu)?'"'+bu.replace(/"/g,'""')+'"':bu}
var Nl=new RegExp('["'+p+"\n\r]"),Bp=p.charCodeAt(0);return{parse:function(bu,Dx){var UT,tf;bu=v(bu,function(Gk,cT){if(UT)return UT(Gk,cT-1);tf=Gk;UT=Dx?ai3(Gk,Dx):gyw(Gk)});
bu.columns=tf||[];return bu},
parseRows:v,format:function(bu,Dx){Dx==null&&(Dx=K68(bu));return[Dx.map(tb).join(p)].concat(bu.map(function(UT){return Dx.map(function(tf){return tb(UT[tf])}).join(p)})).join("\n")},
formatRows:function(bu){return bu.map(x).join("\n")}}}
function gPy(p){if(!p.ok)throw Error("Ce`"+p.status+"`"+p.statusText);return p.text()}
function kBp(p){return function(v,x,tb){arguments.length===2&&typeof x==="function"&&(tb=x,x=void 0);return fetch(v,x).then(gPy).then(function(Nl){return p(Nl,tb)})}}
function rsT(p,v,x,tb){if(isNaN(v)||isNaN(x))return p;var Nl,Bp=p._root;tb={data:tb};var bu=p._x0,Dx=p._y0,UT=p._x1,tf=p._y1,Gk,cT,gE,nw,mQ;if(!Bp)return p._root=tb,p;for(;Bp.length;)if((gE=v>=(Gk=(bu+UT)/2))?bu=Gk:UT=Gk,(nw=x>=(cT=(Dx+tf)/2))?Dx=cT:tf=cT,Nl=Bp,!(Bp=Bp[mQ=nw<<1|gE]))return Nl[mQ]=tb,p;var a9=+p._x.call(null,Bp.data);var pO=+p._y.call(null,Bp.data);if(v===a9&&x===pO)return tb.next=Bp,Nl?Nl[mQ]=tb:p._root=tb,p;do Nl=Nl?Nl[mQ]=Array(4):p._root=Array(4),(gE=v>=(Gk=(bu+UT)/2))?bu=Gk:UT=
Gk,(nw=x>=(cT=(Dx+tf)/2))?Dx=cT:tf=cT;while((mQ=nw<<1|gE)===(gE=(pO>=cT)<<1|a9>=Gk));return Nl[gE]=Bp,Nl[mQ]=tb,p}
function tY(p,v,x,tb,Nl){this.node=p;this.x0=v;this.y0=x;this.x1=tb;this.y1=Nl}
function wg3(p){return p[0]}
function sa_(p){return p[1]}
function X75(p,v,x,tb,Nl,Bp){this._x=p;this._y=v;this._x0=x;this._y0=tb;this._x1=Nl;this._y1=Bp;this._root=void 0}
function Ak7(p){for(var v={data:p.data},x=v;p=p.next;)x=x.next={data:p.data};return v}
function Qwl(p,v){if((v=(p=v?p.toExponential(v-1):p.toExponential()).indexOf("e"))<0)return null;var x=p.slice(0,v);return[x.length>1?x[0]+x.slice(2):x,+p.slice(v+1)]}
function kdj(p){return p=Qwl(Math.abs(p)),p?p[1]:NaN}
function rkh(p,v){return function(x,tb){for(var Nl=x.length,Bp=[],bu=0,Dx=p[0],UT=0;Nl>0&&Dx>0;){UT+Dx+1>tb&&(Dx=Math.max(1,tb-UT));Bp.push(x.substring(Nl-=Dx,Nl+Dx));if((UT+=Dx+1)>tb)break;Dx=p[bu=(bu+1)%p.length]}return Bp.reverse().join(v)}}
function Awj(p){return function(v){return v.replace(/[0-9]/g,function(x){return p[+x]})}}
function Qd5(p){return new qWT(p)}
function qWT(p){if(!(v=tXj.exec(p)))throw Error("De`"+p);var v;this.fill=v[1]||" ";this.align=v[2]||">";this.sign=v[3]||"-";this.symbol=v[4]||"";this.zero=!!v[5];this.width=v[6]&&+v[6];this.comma=!!v[7];this.precision=v[8]&&+v[8].slice(1);this.trim=!!v[9];this.type=v[10]||""}
function tK7(p,v){v=Qwl(p,v);if(!v)return p+"";p=v[0];v=v[1];return v<0?"0."+Array(-v).join("0")+p:p.length>v+1?p.slice(0,v+1)+"."+p.slice(v+1):p+Array(v-p.length+2).join("0")}
function fiK(p){return p}
function f7y(p){function v(Dx){function UT(kl){var mi=pf,al=qt,hr,Ny;if(rD==="c")al=A8(kl)+al,kl="";else{kl=+kl;var Il=kl<0;kl=A8(Math.abs(kl),pO);if(ld){var s8=kl.length,tW=1,N9=-1;a:for(;tW<s8;++tW)switch(kl[tW]){case ".":N9=hr=tW;break;case "0":N9===0&&(N9=tW);hr=tW;break;default:if(!+kl[tW])break a;N9>0&&(N9=0)}kl=N9>0?kl.slice(0,N9)+kl.slice(hr+1):kl}Il&&+kl===0&&(Il=!1);mi=(Il?cT==="("?cT:"-":cT==="-"||cT==="("?"":cT)+mi;al=(rD==="s"?Xgp[8+QaK/3]:"")+al+(Il&&cT==="("?")":"");if(Ry)for(Il=-1,
hr=kl.length;++Il<hr;)if(Ny=kl.charCodeAt(Il),48>Ny||Ny>57){al=(Ny===46?Nl+kl.slice(Il+1):kl.slice(Il))+al;kl=kl.slice(0,Il);break}}a9&&!nw&&(kl=x(kl,Infinity));Ny=mi.length+kl.length+al.length;Il=Ny<mQ?Array(mQ-Ny+1).join(tf):"";a9&&nw&&(kl=x(Il+kl,Il.length?mQ-al.length:Infinity),Il="");switch(Gk){case "<":kl=mi+kl+al+Il;break;case "=":kl=mi+Il+kl+al;break;case "^":kl=Il.slice(0,Ny=Il.length>>1)+mi+kl+al+Il.slice(Ny);break;default:kl=Il+mi+kl+al}return Bp(kl)}
Dx=Qd5(Dx);var tf=Dx.fill,Gk=Dx.align,cT=Dx.sign,gE=Dx.symbol,nw=Dx.zero,mQ=Dx.width,a9=Dx.comma,pO=Dx.precision,ld=Dx.trim,rD=Dx.type;rD==="n"?(a9=!0,rD="g"):q3T[rD]||(pO==null&&(pO=12),ld=!0,rD="g");if(nw||tf==="0"&&Gk==="=")nw=!0,tf="0",Gk="=";var pf=gE==="$"?tb[0]:gE==="#"&&/[boxX]/.test(rD)?"0"+rD.toLowerCase():"",qt=gE==="$"?tb[1]:/[%p]/.test(rD)?bu:"",A8=q3T[rD],Ry=/[defgprs%]/.test(rD);pO=pO==null?6:/[gprs]/.test(rD)?Math.max(1,Math.min(21,pO)):Math.max(0,Math.min(20,pO));UT.toString=function(){return Dx+
""};
return UT}
var x=p.grouping&&p.thousands?rkh(p.grouping,p.thousands):fiK,tb=p.currency,Nl=p.decimal,Bp=p.numerals?Awj(p.numerals):fiK,bu=p.percent||"%";return{format:v,formatPrefix:function(Dx,UT){var tf=v((Dx=Qd5(Dx),Dx.type="f",Dx));Dx=Math.max(-8,Math.min(8,Math.floor(kdj(UT)/3)))*3;var Gk=Math.pow(10,-Dx),cT=Xgp[8+Dx/3];return function(gE){return tf(Gk*gE)+cT}}}}
function Hz(){this.reset()}
function Jkp(p,v,x){var tb=p.s=v+x,Nl=tb-v;p.t=v-(tb-Nl)+(x-Nl)}
function qIx(p){return p>1?kY:p<-1?-kY:Math.asin(p)}
function XM_(){}
function UVp(p){var v=p[0];p=p[1];var x=rP(p);return[x*rP(v),x*FC(v),FC(p)]}
function ekS(p,v){return[p[1]*v[2]-p[2]*v[1],p[2]*v[0]-p[0]*v[2],p[0]*v[1]-p[1]*v[0]]}
function GdT(p){var v=J4s(p[0]*p[0]+p[1]*p[1]+p[2]*p[2]);p[0]/=v;p[1]/=v;p[2]/=v}
function QSy(){var p=[],v;return{point:function(x,tb){v.push([x,tb])},
lineStart:function(){p.push(v=[])},
lineEnd:XM_,rejoin:function(){p.length>1&&p.push(p.pop().concat(p.shift()))},
result:function(){var x=p;p=[];v=null;return x}}}
function U95(p,v,x,tb){this.x=p;this.z=v;this.o=x;this.e=tb;this.v=!1;this.n=this.p=null}
function q5c(p,v,x,tb,Nl){var Bp=[],bu=[];p.forEach(function(cT){if(!((gE=cT.length-1)<=0)){var gE,nw=cT[0],mQ=cT[gE],a9=nw;if(E$(a9[0]-mQ[0])<1E-6&&E$(a9[1]-mQ[1])<1E-6){Nl.lineStart();for(Dx=0;Dx<gE;++Dx)Nl.point((nw=cT[Dx])[0],nw[1]);Nl.lineEnd()}else Bp.push(gE=new U95(nw,cT,null,!0)),bu.push(gE.o=new U95(nw,null,gE,!1)),Bp.push(gE=new U95(mQ,cT,null,!1)),bu.push(gE.o=new U95(mQ,null,gE,!0))}});
if(Bp.length){bu.sort(v);liT(Bp);liT(bu);var Dx=0;for(p=bu.length;Dx<p;++Dx)bu[Dx].e=x=!x;x=Bp[0];for(var UT;;){for(var tf=x,Gk=!0;tf.v;)if((tf=tf.n)===x)return;v=tf.z;Nl.lineStart();do{tf.v=tf.o.v=!0;if(tf.e){if(Gk)for(Dx=0,p=v.length;Dx<p;++Dx)Nl.point((UT=v[Dx])[0],UT[1]);else tb(tf.x,tf.n.x,1,Nl);tf=tf.n}else{if(Gk)for(v=tf.p.z,Dx=v.length-1;Dx>=0;--Dx)Nl.point((UT=v[Dx])[0],UT[1]);else tb(tf.x,tf.p.x,-1,Nl);tf=tf.p}tf=tf.o;v=tf.z;Gk=!Gk}while(!tf.v);Nl.lineEnd()}}}
function liT(p){if(v=p.length){for(var v,x=0,tb=p[0],Nl;++x<v;)tb.n=Nl=p[x],Nl.p=tb,tb=Nl;tb.n=Nl=p[0];Nl.p=tb}}
function Jwd(p){return p.length>1}
function UM2(p,v){return((p=p.x)[0]<0?p[1]-kY-1E-6:kY-p[1])-((v=v.x)[0]<0?v[1]-kY-1E-6:kY-v[1])}
function Js5(){}
function NCS(p){return function(v,x){var tb=rP(v),Nl=rP(x);tb=p(tb*Nl);return[tb*Nl*FC(v),tb*FC(x)]}}
function OD(p){return function(v,x){var tb=J4s(v*v+x*x),Nl=p(tb),Bp=FC(Nl);Nl=rP(Nl);return[uv7(v*Bp,tb*Nl),qIx(tb&&x*Bp/tb)]}}
function eQh(p){var v=0,x=p.children,tb=x&&x.length;if(tb)for(;--tb>=0;)v+=x[tb].value;else v=1;p.value=v}
function zki(p,v){var x=new ce(p);p=+p.value&&(x.value=p.value);var tb,Nl=[x],Bp,bu,Dx,UT;for(v==null&&(v=GZy);tb=Nl.pop();)if(p&&(tb.value=+tb.data.value),(bu=v(tb.data))&&(UT=bu.length))for(tb.children=Array(UT),Dx=UT-1;Dx>=0;--Dx)Nl.push(Bp=tb.children[Dx]=new ce(bu[Dx])),Bp.parent=tb,Bp.depth=tb.depth+1;return x.eachBefore(l7d)}
function GZy(p){return p.children}
function Ng2(p){p.data=p.data.data}
function l7d(p){var v=0;do p.height=v;while((p=p.parent)&&p.height<++v)}
function ce(p){this.data=p;this.depth=this.height=0;this.parent=null}
function bS(p,v,x,tb){function Nl(Bp){return p(Bp=new Date(+Bp)),Bp}
Nl.floor=Nl;Nl.ceil=function(Bp){return p(Bp=new Date(Bp-1)),v(Bp,1),p(Bp),Bp};
Nl.round=function(Bp){var bu=Nl(Bp),Dx=Nl.ceil(Bp);return Bp-bu<Dx-Bp?bu:Dx};
Nl.offset=function(Bp,bu){return v(Bp=new Date(+Bp),bu==null?1:Math.floor(bu)),Bp};
Nl.range=function(Bp,bu,Dx){var UT=[],tf;Bp=Nl.ceil(Bp);Dx=Dx==null?1:Math.floor(Dx);if(!(Bp<bu&&Dx>0))return UT;do UT.push(tf=new Date(+Bp)),v(Bp,Dx),p(Bp);while(tf<Bp&&Bp<bu);return UT};
Nl.filter=function(Bp){return bS(function(bu){if(bu>=bu)for(;p(bu),!Bp(bu);)bu.setTime(bu-1)},function(bu,Dx){if(bu>=bu)if(Dx<0)for(;++Dx<=0;)for(;v(bu,-1),!Bp(bu););
else for(;--Dx>=0;)for(;v(bu,1),!Bp(bu););})};
x&&(Nl.count=function(Bp,bu){UTx.setTime(+Bp);eXp.setTime(+bu);p(UTx);p(eXp);return Math.floor(x(UTx,eXp))},Nl.every=function(Bp){Bp=Math.floor(Bp);
return isFinite(Bp)&&Bp>0?Bp>1?Nl.filter(tb?function(bu){return tb(bu)%Bp===0}:function(bu){return Nl.count(0,bu)%Bp===0}):Nl:null});
return Nl}
function go(p){return bS(function(v){v.setDate(v.getDate()-(v.getDay()+7-p)%7);v.setHours(0,0,0,0)},function(v,x){v.setDate(v.getDate()+x*7)},function(v,x){return(x-v-(x.getTimezoneOffset()-v.getTimezoneOffset())*6E4)/6048E5})}
function wo(p){return bS(function(v){v.setUTCDate(v.getUTCDate()-(v.getUTCDay()+7-p)%7);v.setUTCHours(0,0,0,0)},function(v,x){v.setUTCDate(v.getUTCDate()+x*7)},function(v,x){return(x-v)/6048E5})}
function uVd(p){if(0<=p.y&&p.y<100){var v=new Date(-1,p.m,p.d,p.H,p.M,p.S,p.L);v.setFullYear(p.y);return v}return new Date(p.y,p.m,p.d,p.H,p.M,p.S,p.L)}
function eMs(p){if(0<=p.y&&p.y<100){var v=new Date(Date.UTC(-1,p.m,p.d,p.H,p.M,p.S,p.L));v.setUTCFullYear(p.y);return v}return new Date(Date.UTC(p.y,p.m,p.d,p.H,p.M,p.S,p.L))}
function Be(p){return{y:p,m:0,d:1,H:0,M:0,S:0,L:0}}
function zQ3(p){function v(al,hr){return function(Ny){var Il=[],s8=-1,tW=0,N9=al.length,Ck,p9;for(Ny instanceof Date||(Ny=new Date(+Ny));++s8<N9;)if(al.charCodeAt(s8)===37){Il.push(al.slice(tW,s8));(tW=POS[Ck=al.charAt(++s8)])!=null?Ck=al.charAt(++s8):tW=Ck==="e"?" ":"0";if(p9=hr[Ck])Ck=p9(Ny,tW);Il.push(Ck);tW=s8+1}Il.push(al.slice(tW,s8));return Il.join("")}}
function x(al,hr){return function(Ny){var Il=Be(1900);if(tb(Il,al,Ny,0)!=Ny.length)return null;if("Q"in Il)return new Date(Il.Q);"p"in Il&&(Il.H=Il.H%12+Il.p*12);if("V"in Il){if(Il.V<1||Il.V>53)return null;"w"in Il||(Il.w=1);if("Z"in Il){Ny=eMs(Be(Il.y));var s8=Ny.getUTCDay();Ny=s8>4||s8===0?GBz.ceil(Ny):GBz(Ny);Ny=TCE.offset(Ny,(Il.V-1)*7);Il.y=Ny.getUTCFullYear();Il.m=Ny.getUTCMonth();Il.d=Ny.getUTCDate()+(Il.w+6)%7}else Ny=hr(Be(Il.y)),s8=Ny.getDay(),Ny=s8>4||s8===0?lls.ceil(Ny):lls(Ny),Ny=imE.offset(Ny,
(Il.V-1)*7),Il.y=Ny.getFullYear(),Il.m=Ny.getMonth(),Il.d=Ny.getDate()+(Il.w+6)%7}else if("W"in Il||"U"in Il)"w"in Il||(Il.w="u"in Il?Il.u%7:"W"in Il?1:0),s8="Z"in Il?eMs(Be(Il.y)).getUTCDay():hr(Be(Il.y)).getDay(),Il.m=0,Il.d="W"in Il?(Il.w+6)%7+Il.W*7-(s8+5)%7:Il.w+Il.U*7-(s8+6)%7;return"Z"in Il?(Il.H+=Il.Z/100|0,Il.M+=Il.Z%100,eMs(Il)):hr(Il)}}
function tb(al,hr,Ny,Il){for(var s8=0,tW=hr.length,N9=Ny.length,Ck;s8<tW;){if(Il>=N9)return-1;Ck=hr.charCodeAt(s8++);if(Ck===37){if(Ck=hr.charAt(s8++),Ck=mi[Ck in POS?hr.charAt(s8++):Ck],!Ck||(Il=Ck(al,Ny,Il))<0)return-1}else if(Ck!=Ny.charCodeAt(Il++))return-1}return Il}
var Nl=p.dateTime,Bp=p.date,bu=p.time,Dx=p.periods,UT=p.days,tf=p.shortDays,Gk=p.months,cT=p.shortMonths,gE=M0(Dx),nw=CB(Dx),mQ=M0(UT),a9=CB(UT),pO=M0(tf),ld=CB(tf),rD=M0(Gk),pf=CB(Gk),qt=M0(cT),A8=CB(cT),Ry={a:function(al){return tf[al.getDay()]},
A:function(al){return UT[al.getDay()]},
b:function(al){return cT[al.getMonth()]},
B:function(al){return Gk[al.getMonth()]},
c:null,d:Om8,e:Om8,f:P82,H:Tg_,I:ijl,j:Oj_,L:ckC,m:cwA,M:Bgd,p:function(al){return Dx[+(al.getHours()>=12)]},
Q:BCw,s:MKC,S:MX3,u:C8Q,U:hQy,V:RQj,w:mM_,W:bjd,x:null,X:null,y:WK2,Y:yw3,Z:vb_,"%":COC},kl={a:function(al){return tf[al.getUTCDay()]},
A:function(al){return UT[al.getUTCDay()]},
b:function(al){return cT[al.getUTCMonth()]},
B:function(al){return Gk[al.getUTCMonth()]},
c:null,d:hk8,e:hk8,f:LKj,H:pMy,I:Ebm,j:nby,L:RkT,m:DMd,M:FKl,p:function(al){return Dx[+(al.getUTCHours()>=12)]},
Q:BCw,s:MKC,S:I7m,u:xMj,U:jSA,V:Y5A,w:VXm,W:Zj8,x:null,X:null,y:oby,Y:dMw,Z:S5m,"%":COC},mi={a:function(al,hr,Ny){return(hr=pO.exec(hr.slice(Ny)))?(al.w=ld[hr[0].toLowerCase()],Ny+hr[0].length):-1},
A:function(al,hr,Ny){return(hr=mQ.exec(hr.slice(Ny)))?(al.w=a9[hr[0].toLowerCase()],Ny+hr[0].length):-1},
b:function(al,hr,Ny){return(hr=qt.exec(hr.slice(Ny)))?(al.m=A8[hr[0].toLowerCase()],Ny+hr[0].length):-1},
B:function(al,hr,Ny){return(hr=rD.exec(hr.slice(Ny)))?(al.m=pf[hr[0].toLowerCase()],Ny+hr[0].length):-1},
c:function(al,hr,Ny){return tb(al,Nl,hr,Ny)},
d:mVl,e:mVl,f:$MQ,H:bmp,I:bmp,j:Hj_,L:a7w,m:KKw,M:gbj,p:function(al,hr,Ny){return(hr=gE.exec(hr.slice(Ny)))?(al.p=nw[hr[0].toLowerCase()],Ny+hr[0].length):-1},
Q:wM3,s:sS2,S:kZh,u:rwl,U:AA3,V:t1j,w:fL3,W:Xa3,x:function(al,hr,Ny){return tb(al,Bp,hr,Ny)},
X:function(al,hr,Ny){return tb(al,bu,hr,Ny)},
y:QBd,Y:qh3,Z:JA2,"%":UKy};Ry.x=v(Bp,Ry);Ry.X=v(bu,Ry);Ry.c=v(Nl,Ry);kl.x=v(Bp,kl);kl.X=v(bu,kl);kl.c=v(Nl,kl);return{format:function(al){var hr=v(al,Ry);hr.toString=function(){return al};
return hr},
parse:function(al){var hr=x(al,uVd);hr.toString=function(){return al};
return hr},
utcFormat:function(al){var hr=v(al,kl);hr.toString=function(){return al};
return hr},
utcParse:function(al){var hr=x(al,eMs);hr.toString=function(){return al};
return hr}}}
function h8(p,v,x){var tb=p<0?"-":"";p=(tb?-p:p)+"";var Nl=p.length;return tb+(Nl<x?Array(x-Nl+1).join(v)+p:p)}
function em3(p){return p.replace(GuA,"\\$&")}
function M0(p){return new RegExp("^(?:"+p.map(em3).join("|")+")","i")}
function CB(p){for(var v={},x=-1,tb=p.length;++x<tb;)v[p[x].toLowerCase()]=x;return v}
function fL3(p,v,x){return(v=EO.exec(v.slice(x,x+1)))?(p.w=+v[0],x+v[0].length):-1}
function rwl(p,v,x){return(v=EO.exec(v.slice(x,x+1)))?(p.u=+v[0],x+v[0].length):-1}
function AA3(p,v,x){return(v=EO.exec(v.slice(x,x+2)))?(p.U=+v[0],x+v[0].length):-1}
function t1j(p,v,x){return(v=EO.exec(v.slice(x,x+2)))?(p.V=+v[0],x+v[0].length):-1}
function Xa3(p,v,x){return(v=EO.exec(v.slice(x,x+2)))?(p.W=+v[0],x+v[0].length):-1}
function qh3(p,v,x){return(v=EO.exec(v.slice(x,x+4)))?(p.y=+v[0],x+v[0].length):-1}
function QBd(p,v,x){return(v=EO.exec(v.slice(x,x+2)))?(p.y=+v[0]+(+v[0]>68?1900:2E3),x+v[0].length):-1}
function JA2(p,v,x){return(v=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(v.slice(x,x+6)))?(p.Z=v[1]?0:-(v[2]+(v[3]||"00")),x+v[0].length):-1}
function KKw(p,v,x){return(v=EO.exec(v.slice(x,x+2)))?(p.m=v[0]-1,x+v[0].length):-1}
function mVl(p,v,x){return(v=EO.exec(v.slice(x,x+2)))?(p.d=+v[0],x+v[0].length):-1}
function Hj_(p,v,x){return(v=EO.exec(v.slice(x,x+3)))?(p.m=0,p.d=+v[0],x+v[0].length):-1}
function bmp(p,v,x){return(v=EO.exec(v.slice(x,x+2)))?(p.H=+v[0],x+v[0].length):-1}
function gbj(p,v,x){return(v=EO.exec(v.slice(x,x+2)))?(p.M=+v[0],x+v[0].length):-1}
function kZh(p,v,x){return(v=EO.exec(v.slice(x,x+2)))?(p.S=+v[0],x+v[0].length):-1}
function a7w(p,v,x){return(v=EO.exec(v.slice(x,x+3)))?(p.L=+v[0],x+v[0].length):-1}
function $MQ(p,v,x){return(v=EO.exec(v.slice(x,x+6)))?(p.L=Math.floor(v[0]/1E3),x+v[0].length):-1}
function UKy(p,v,x){return(p=lL8.exec(v.slice(x,x+1)))?x+p[0].length:-1}
function wM3(p,v,x){return(v=EO.exec(v.slice(x)))?(p.Q=+v[0],x+v[0].length):-1}
function sS2(p,v,x){return(v=EO.exec(v.slice(x)))?(p.Q=+v[0]*1E3,x+v[0].length):-1}
function Om8(p,v){return h8(p.getDate(),v,2)}
function Tg_(p,v){return h8(p.getHours(),v,2)}
function ijl(p,v){return h8(p.getHours()%12||12,v,2)}
function Oj_(p,v){return h8(1+imE.count(RU(p),p),v,3)}
function ckC(p,v){return h8(p.getMilliseconds(),v,3)}
function P82(p,v){return ckC(p,v)+"000"}
function cwA(p,v){return h8(p.getMonth()+1,v,2)}
function Bgd(p,v){return h8(p.getMinutes(),v,2)}
function MX3(p,v){return h8(p.getSeconds(),v,2)}
function C8Q(p){p=p.getDay();return p===0?7:p}
function hQy(p,v){return h8(Nol.count(RU(p),p),v,2)}
function RQj(p,v){var x=p.getDay();p=x>=4||x===0?NAq(p):NAq.ceil(p);return h8(NAq.count(RU(p),p)+(RU(p).getDay()===4),v,2)}
function mM_(p){return p.getDay()}
function bjd(p,v){return h8(lls.count(RU(p),p),v,2)}
function WK2(p,v){return h8(p.getFullYear()%100,v,2)}
function yw3(p,v){return h8(p.getFullYear()%1E4,v,4)}
function vb_(p){p=p.getTimezoneOffset();return(p>0?"-":(p*=-1,"+"))+h8(p/60|0,"0",2)+h8(p%60,"0",2)}
function hk8(p,v){return h8(p.getUTCDate(),v,2)}
function pMy(p,v){return h8(p.getUTCHours(),v,2)}
function Ebm(p,v){return h8(p.getUTCHours()%12||12,v,2)}
function nby(p,v){return h8(1+TCE.count(mc(p),p),v,3)}
function RkT(p,v){return h8(p.getUTCMilliseconds(),v,3)}
function LKj(p,v){return RkT(p,v)+"000"}
function DMd(p,v){return h8(p.getUTCMonth()+1,v,2)}
function FKl(p,v){return h8(p.getUTCMinutes(),v,2)}
function I7m(p,v){return h8(p.getUTCSeconds(),v,2)}
function xMj(p){p=p.getUTCDay();return p===0?7:p}
function jSA(p,v){return h8(uSw.count(mc(p),p),v,2)}
function Y5A(p,v){var x=p.getUTCDay();p=x>=4||x===0?ufx(p):ufx.ceil(p);return h8(ufx.count(mc(p),p)+(mc(p).getUTCDay()===4),v,2)}
function VXm(p){return p.getUTCDay()}
function Zj8(p,v){return h8(GBz.count(mc(p),p),v,2)}
function oby(p,v){return h8(p.getUTCFullYear()%100,v,2)}
function dMw(p,v){return h8(p.getUTCFullYear()%1E4,v,4)}
function S5m(){return"+0000"}
function COC(){return"%"}
function BCw(p){return+p}
function MKC(p){return Math.floor(+p/1E3)}
function Tv(p){for(var v=p.length/6|0,x=Array(v),tb=0;tb<v;)x[tb]="#"+p.slice(tb*6,++tb*6);return x}
function kk(p){return zmd(p[p.length-1])}
function GUx(p){var v=p.length;return function(x){return p[Math.max(0,Math.min(v-1,Math.floor(x*v)))]}}
function W6S(p){this._context=p}
function ykE(p){this._curve=p}
function vPC(p,v,x){var tb=p._x1-p._x0;v-=p._x1;var Nl=(p._y1-p._y0)/(tb||v<0&&-0);p=(x-p._y1)/(v||tb<0&&-0);return((Nl<0?-1:1)+(p<0?-1:1))*Math.min(Math.abs(Nl),Math.abs(p),.5*Math.abs((Nl*v+p*tb)/(tb+v)))||0}
function L67(p,v){var x=p._x1-p._x0;return x?(3*(p._y1-p._y0)/x-v)/2:v}
function zXb(p,v,x){var tb=p._x0,Nl=p._x1,Bp=p._y1,bu=(Nl-tb)/3;p._context.bezierCurveTo(tb+bu,p._y0+bu*v,Nl-bu,Bp-bu*x,Nl,Bp)}
function PCq(p){this._context=p}
function pgp(p){this._context=p}
function hp(p,v,x){this.k=p;this.x=v;this.y=x}
(function(p){p.length===1&&(p=t(p));return{left:function(v,x,tb,Nl){tb==null&&(tb=0);Nl==null&&(Nl=v.length);for(;tb<Nl;){var Bp=tb+Nl>>>1;p(v[Bp],x)<0?tb=Bp+1:Nl=Bp}return tb},
right:function(v,x,tb,Nl){tb==null&&(tb=0);Nl==null&&(Nl=v.length);for(;tb<Nl;){var Bp=tb+Nl>>>1;p(v[Bp],x)>0?Nl=Bp:tb=Bp+1}return tb}}})(A);
var GdA={value:function(){}};
X.prototype=f.prototype={constructor:X,on:function(p,v){var x=this._,tb=Q(p+"",x),Nl,Bp=-1,bu=tb.length;if(arguments.length<2)for(;++Bp<bu;){var Dx;if(Dx=Nl=(p=tb[Bp]).type){a:{Dx=x[Nl];for(var UT=0,tf=Dx.length;UT<tf;++UT)if((Nl=Dx[UT]).name===p.name){Nl=Nl.value;break a}Nl=void 0}Dx=Nl}if(Dx)return Nl}else{if(v!=null&&typeof v!=="function")throw Error("Ee`"+v);for(;++Bp<bu;)if(Nl=(p=tb[Bp]).type)x[Nl]=q(x[Nl],p.name,v);else if(v==null)for(Nl in x)x[Nl]=q(x[Nl],p.name,null);return this}},
copy:function(){var p={},v=this._,x;for(x in v)p[x]=v[x].slice();return new X(p)},
call:function(p,v){if((Nl=arguments.length-2)>0)for(var x=Array(Nl),tb=0,Nl,Bp;tb<Nl;++tb)x[tb]=arguments[tb+2];if(!this._.hasOwnProperty(p))throw Error("ye`"+p);Bp=this._[p];tb=0;for(Nl=Bp.length;tb<Nl;++tb)Bp[tb].value.apply(v,x)},
apply:function(p,v,x){if(!this._.hasOwnProperty(p))throw Error("ye`"+p);p=this._[p];for(var tb=0,Nl=p.length;tb<Nl;++tb)p[tb].value.apply(v,x)}};
var sj={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/"},EPp=function(p){return function(){return this.matches(p)}};
if(typeof document!=="undefined"){var RL=document.documentElement;if(!RL.matches){var Pbj=RL.webkitMatchesSelector||RL.msMatchesSelector||RL.mozMatchesSelector||RL.oMatchesSelector;EPp=function(p){return function(){return Pbj.call(this,p)}}}}var nPi=EPp;
B.prototype={constructor:B,appendChild:function(p){return this._parent.insertBefore(p,this._next)},
insertBefore:function(p,v){return this._parent.insertBefore(p,v)},
querySelector:function(p){return this._parent.querySelector(p)},
querySelectorAll:function(p){return this._parent.querySelectorAll(p)}};
var xTE={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(xTE={mouseenter:"mouseover",mouseleave:"mouseout"}));var liA=[null];iK.prototype=Qh.prototype={constructor:iK,select:function(p){typeof p!=="function"&&(p=O(p));for(var v=this._groups,x=v.length,tb=Array(x),Nl=0;Nl<x;++Nl)for(var Bp=v[Nl],bu=Bp.length,Dx=tb[Nl]=Array(bu),UT,tf,Gk=0;Gk<bu;++Gk)(UT=Bp[Gk])&&(tf=p.call(UT,UT.__data__,Gk,Bp))&&("__data__"in UT&&(tf.__data__=UT.__data__),Dx[Gk]=tf);return new iK(tb,
this._parents)},
filter:function(p){typeof p!=="function"&&(p=nPi(p));for(var v=this._groups,x=v.length,tb=Array(x),Nl=0;Nl<x;++Nl)for(var Bp=v[Nl],bu=Bp.length,Dx=tb[Nl]=[],UT,tf=0;tf<bu;++tf)(UT=Bp[tf])&&p.call(UT,UT.__data__,tf,Bp)&&Dx.push(UT);return new iK(tb,this._parents)},
data:function(p,v){if(!p)return nw=Array(this.size()),tf=-1,this.each(function(rD){nw[++tf]=rD}),nw;
var x=v?L:W,tb=this._parents,Nl=this._groups;typeof p!=="function"&&(p=h(p));for(var Bp=Nl.length,bu=Array(Bp),Dx=Array(Bp),UT=Array(Bp),tf=0;tf<Bp;++tf){var Gk=tb[tf],cT=Nl[tf],gE=cT.length,nw=p.call(Gk,Gk&&Gk.__data__,tf,tb),mQ=nw.length,a9=Dx[tf]=Array(mQ),pO=bu[tf]=Array(mQ);gE=UT[tf]=Array(gE);x(Gk,cT,a9,pO,gE,nw,v);cT=Gk=0;for(var ld;Gk<mQ;++Gk)if(gE=a9[Gk]){for(Gk>=cT&&(cT=Gk+1);!(ld=pO[cT])&&++cT<mQ;);gE._next=ld||null}}bu=new iK(bu,tb);bu._enter=Dx;bu._exit=UT;return bu},
enter:function(){return new iK(this._enter||this._groups.map(c),this._parents)},
exit:function(){return new iK(this._exit||this._groups.map(c),this._parents)},
merge:function(p){var v=this._groups;p=p._groups;for(var x=v.length,tb=Math.min(x,p.length),Nl=Array(x),Bp=0;Bp<tb;++Bp)for(var bu=v[Bp],Dx=p[Bp],UT=bu.length,tf=Nl[Bp]=Array(UT),Gk,cT=0;cT<UT;++cT)if(Gk=bu[cT]||Dx[cT])tf[cT]=Gk;for(;Bp<x;++Bp)Nl[Bp]=v[Bp];return new iK(Nl,this._parents)},
order:function(){for(var p=this._groups,v=-1,x=p.length;++v<x;)for(var tb=p[v],Nl=tb.length-1,Bp=tb[Nl],bu;--Nl>=0;)if(bu=tb[Nl])Bp&&Bp!==bu.nextSibling&&Bp.parentNode.insertBefore(bu,Bp),Bp=bu;return this},
sort:function(p){function v(cT,gE){return cT&&gE?p(cT.__data__,gE.__data__):!cT-!gE}
p||(p=E);for(var x=this._groups,tb=x.length,Nl=Array(tb),Bp=0;Bp<tb;++Bp){for(var bu=x[Bp],Dx=bu.length,UT=Nl[Bp]=Array(Dx),tf,Gk=0;Gk<Dx;++Gk)if(tf=bu[Gk])UT[Gk]=tf;UT.sort(v)}return(new iK(Nl,this._parents)).order()},
call:function(){var p=arguments[0];arguments[0]=this;p.apply(null,arguments);return this},
nodes:function(){var p=Array(this.size()),v=-1;this.each(function(){p[++v]=this});
return p},
node:function(){for(var p=this._groups,v=0,x=p.length;v<x;++v)for(var tb=p[v],Nl=0,Bp=tb.length;Nl<Bp;++Nl){var bu=tb[Nl];if(bu)return bu}return null},
size:function(){var p=0;this.each(function(){++p});
return p},
empty:function(){return!this.node()},
each:function(p){for(var v=this._groups,x=0,tb=v.length;x<tb;++x)for(var Nl=v[x],Bp=0,bu=Nl.length,Dx;Bp<bu;++Bp)(Dx=Nl[Bp])&&p.call(Dx,Dx.__data__,Bp,Nl);return this},
attr:function(p,v){var x=e(p);if(arguments.length<2){var tb=this.node();return x.local?tb.getAttributeNS(x.space,x.local):tb.getAttribute(x)}return this.each((v==null?x.local?S:D:typeof v==="function"?x.local?k:K:x.local?d:Z)(x,v))},
style:function(p,v,x){return arguments.length>1?this.each((v==null?Gz:typeof v==="function"?y5:Tz)(p,v,x==null?"":x)):cp(this.node(),p)},
property:function(p,v){return arguments.length>1?this.each((v==null?iu:typeof v==="function"?xq:Fb)(p,v)):this.node()[p]},
text:function(p){return arguments.length?this.each(p==null?Yq:(typeof p==="function"?PT:zk)(p)):this.node().textContent},
html:function(p){return arguments.length?this.each(p==null?rs:(typeof p==="function"?bK:OT)(p)):this.node().innerHTML},
append:function(p){var v=typeof p==="function"?p:z(p);return this.select(function(){return this.appendChild(v.apply(this,arguments))})},
insert:function(p,v){var x=typeof p==="function"?p:z(p),tb=v==null?ET:typeof v==="function"?v:O(v);return this.select(function(){return this.insertBefore(x.apply(this,arguments),tb.apply(this,arguments)||null)})},
remove:function(){return this.each(m3)},
clone:function(p){return this.select(p?eT:O2)},
datum:function(p){return arguments.length?this.property("__data__",p):this.node().__data__},
on:function(p,v,x){var tb=wE(p+""),Nl=tb.length,Bp;if(arguments.length<2){var bu=this.node().__on;if(bu)for(var Dx=0,UT=bu.length,tf;Dx<UT;++Dx){var Gk=0;for(tf=bu[Dx];Gk<Nl;++Gk)if((Bp=tb[Gk]).type===tf.type&&Bp.name===tf.name)return tf.value}}else{bu=v?rE:Rp;x==null&&(x=!1);for(Gk=0;Gk<Nl;++Gk)this.each(bu(tb[Gk],v,x));return this}},
dispatch:function(p,v){return this.each((typeof v==="function"?Tk:$8)(p,v))}};
var NCw=0;Kg.prototype=function(){return new Kg}.prototype={constructor:Kg,
get:function(p){for(var v=this._;!(v in p);)if(!(p=p.parentNode))return;return p[v]},
set:function(p,v){return p[this._]=v},
remove:function(p){return this._ in p&&delete p[this._]},
toString:function(){return this._}};
var bh=1/.7,uv3=/^#([0-9a-f]{3})$/,zkj=/^#([0-9a-f]{6})$/,POw=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),TCd=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),imd=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Omm=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*\\)$"),
ckh=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),BCc=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*\\)$"),jdK={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};
fw(Xx,cA,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
fw(by,HT,TH(Xx,{brighter:function(p){p=p==null?bh:Math.pow(bh,p);return new by(this.r*p,this.g*p,this.b*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new by(this.r*p,this.g*p,this.b*p,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"#"+qd(this.r)+qd(this.g)+qd(this.b)},
toString:function(){var p=this.opacity;p=isNaN(p)?1:Math.max(0,Math.min(1,p));return(p===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))+(p===1?")":", "+p+")")}}));
fw(fF,yG,TH(Xx,{brighter:function(p){p=p==null?bh:Math.pow(bh,p);return new fF(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new fF(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=this.h%360+(this.h<0)*360,v=this.l,x=v+(v<.5?v:1-v)*(isNaN(p)||isNaN(this.s)?0:this.s);v=2*v-x;return new by(SO(p>=240?p-240:p+120,v,x),SO(p,v,x),SO(p<120?p+240:p-120,v,x),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 YWp=Math.PI/180,oyp=180/Math.PI,Z2T=4/29,Cc=6/29,VkT=3*Cc*Cc,MKh=Cc*Cc*Cc;fw(vp,function(p,v,x,tb){return arguments.length===1?bs(p):new vp(p,v,x,tb==null?1:tb)},TH(Xx,{brighter:function(p){return new vp(this.l+18*(p==null?1:p),this.a,this.b,this.opacity)},
darker:function(p){return new vp(this.l-18*(p==null?1:p),this.a,this.b,this.opacity)},
rgb:function(){var p=(this.l+16)/116,v=isNaN(this.a)?p:p+this.a/500,x=isNaN(this.b)?p:p-this.b/200;v=.96422*a0(v);p=1*a0(p);x=.82521*a0(x);return new by(CS(3.1338561*v-1.6168667*p-.4906146*x),CS(-.9787684*v+1.9161415*p+.033454*x),CS(.0719453*v-.2289914*p+1.4052427*x),this.opacity)}}));
fw(LS,pw,TH(Xx,{brighter:function(p){return new LS(this.h,this.c,this.l+18*(p==null?1:p),this.opacity)},
darker:function(p){return new LS(this.h,this.c,this.l-18*(p==null?1:p),this.opacity)},
rgb:function(){return bs(this).rgb()}}));
var dTK=1.78277*-.29227-.1347134789;fw(ol,WT,TH(Xx,{brighter:function(p){p=p==null?bh:Math.pow(bh,p);return new ol(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new ol(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=isNaN(this.h)?0:(this.h+120)*YWp,v=+this.l,x=isNaN(this.s)?0:this.s*v*(1-v),tb=Math.cos(p);p=Math.sin(p);return new by(255*(v+x*(-.14861*tb+1.78277*p)),255*(v+x*(-.29227*tb+-.90649*p)),255*(v+1.97294*tb*x),this.opacity)}}));
var alK=function x(v){function tb(Bp,bu){var Dx=Nl((Bp=HT(Bp)).r,(bu=HT(bu)).r),UT=Nl(Bp.g,bu.g),tf=Nl(Bp.b,bu.b),Gk=Qk(Bp.opacity,bu.opacity);return function(cT){Bp.r=Dx(cT);Bp.g=UT(cT);Bp.b=tf(cT);Bp.opacity=Gk(cT);return Bp+""}}
var Nl=gD(v);tb.gamma=x;return tb}(1),zmd=n8(function(v){var x=v.length-1;
return function(tb){var Nl=tb<=0?tb=0:tb>=1?(tb=1,x-1):Math.floor(tb*x),Bp=v[Nl],bu=v[Nl+1];return S3((tb-Nl/x)*x,Nl>0?v[Nl-1]:2*Bp-bu,Bp,bu,Nl<x-1?v[Nl+2]:2*bu-Bp)}});
n8(function(v){var x=v.length;return function(tb){var Nl=Math.floor(((tb%=1)<0?++tb:tb)*x);return S3((tb-Nl/x)*x,v[(Nl+x-1)%x],v[Nl%x],v[(Nl+1)%x],v[(Nl+2)%x])}});
var k4q=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rBs=new RegExp(k4q.source,"g"),SWp=180/Math.PI,TAx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},mn,i2b,DVb,l_p,To_=q9(function(v){if(v==="none")return TAx;mn||(mn=document.createElement("DIV"),i2b=document.documentElement,DVb=document.defaultView);mn.style.transform=v;v=DVb.getComputedStyle(i2b.appendChild(mn),null).getPropertyValue("transform");i2b.removeChild(mn);v=v.slice(7,-1).split(",");return WR(+v[0],+v[1],+v[2],+v[3],
+v[4],+v[5])},"px, ","px)","deg)"),ihl=q9(function(v){if(v==null)return TAx;
l_p||(l_p=document.createElementNS("http://www.w3.org/2000/svg","g"));l_p.setAttribute("transform",v);if(!(v=l_p.transform.baseVal.consolidate()))return TAx;v=v.matrix;return WR(v.a,v.b,v.c,v.d,v.e,v.f)},", ",")",")");
vd($l);vd(Qk);C_($l);C_(Qk);hw($l);var O2g=hw(Qk),hg=0,Pe=0,iZ=0,tUb,Tx,A4u=0,Kh=0,rOb=0,zx=typeof performance==="object"&&performance.now?performance:Date,$Tk=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(v){setTimeout(v,17)};
Do.prototype=RS.prototype={constructor:Do,restart:function(v,x,tb){if(typeof v!=="function")throw new TypeError("Fe");tb=(tb==null?n6():+tb)+(x==null?0:+x);this._next||Tx===this||(Tx?Tx._next=this:tUb=this,Tx=this);this._call=v;this._time=tb;y2()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,y2())}};
var COh=f("start","end","interrupt"),hkm=[],Ohd=Qh.prototype.constructor,F6p=0,Wb=Qh.prototype;px.prototype=function(v){return Qh().transition(v)}.prototype={constructor:px,
select:function(v){var x=this._name,tb=this._id;typeof v!=="function"&&(v=O(v));for(var Nl=this._groups,Bp=Nl.length,bu=Array(Bp),Dx=0;Dx<Bp;++Dx)for(var UT=Nl[Dx],tf=UT.length,Gk=bu[Dx]=Array(tf),cT,gE,nw=0;nw<tf;++nw)(cT=UT[nw])&&(gE=v.call(cT,cT.__data__,nw,UT))&&("__data__"in cT&&(gE.__data__=cT.__data__),Gk[nw]=gE,Md(Gk[nw],x,tb,nw,Gk,VP(cT,tb)));return new px(bu,this._parents,x,tb)},
filter:function(v){typeof v!=="function"&&(v=nPi(v));for(var x=this._groups,tb=x.length,Nl=Array(tb),Bp=0;Bp<tb;++Bp)for(var bu=x[Bp],Dx=bu.length,UT=Nl[Bp]=[],tf,Gk=0;Gk<Dx;++Gk)(tf=bu[Gk])&&v.call(tf,tf.__data__,Gk,bu)&&UT.push(tf);return new px(Nl,this._parents,this._name,this._id)},
merge:function(v){if(v._id!==this._id)throw Error();var x=this._groups;v=v._groups;for(var tb=x.length,Nl=Math.min(tb,v.length),Bp=Array(tb),bu=0;bu<Nl;++bu)for(var Dx=x[bu],UT=v[bu],tf=Dx.length,Gk=Bp[bu]=Array(tf),cT,gE=0;gE<tf;++gE)if(cT=Dx[gE]||UT[gE])Gk[gE]=cT;for(;bu<tb;++bu)Bp[bu]=x[bu];return new px(Bp,this._parents,this._name,this._id)},
selection:function(){return new Ohd(this._groups,this._parents)},
transition:function(){for(var v=this._name,x=this._id,tb=++F6p,Nl=this._groups,Bp=Nl.length,bu=0;bu<Bp;++bu)for(var Dx=Nl[bu],UT=Dx.length,tf,Gk=0;Gk<UT;++Gk)if(tf=Dx[Gk]){var cT=VP(tf,x);Md(tf,v,tb,Gk,Dx,{time:cT.time+cT.delay+cT.duration,delay:0,duration:cT.duration,ease:cT.ease})}return new px(Nl,this._parents,v,tb)},
call:Wb.call,nodes:Wb.nodes,node:Wb.node,size:Wb.size,empty:Wb.empty,each:Wb.each,on:function(v,x){var tb=this._id;return arguments.length<2?VP(this.node(),tb).on.on(v):this.each(jac(tb,v,x))},
attr:function(v,x){var tb=e(v),Nl=tb==="transform"?ihl:H2E;return this.attrTween(v,typeof x==="function"?(tb.local?vPh:ykd)(tb,Nl,L9(this,"attr."+v,x)):x==null?(tb.local?mV3:RkA)(tb):(tb.local?W6w:bm8)(tb,Nl,x+""))},
attrTween:function(v,x){var tb="attr."+v;if(arguments.length<2)return(tb=this.tween(tb))&&tb._value;if(x==null)return this.tween(tb,null);if(typeof x!=="function")throw Error();var Nl=e(v);return this.tween(tb,(Nl.local?L63:pgl)(Nl,x))},
style:function(v,x,tb){var Nl=v==="transform"?To_:H2E;return x==null?this.styleTween(v,VKd(v,Nl)).on("end.style."+v,Zm8(v)):this.styleTween(v,typeof x==="function"?dV3(v,Nl,L9(this,"style."+v,x)):oPh(v,Nl,x+""),tb)},
styleTween:function(v,x,tb){var Nl="style."+v;if(arguments.length<2)return(Nl=this.tween(Nl))&&Nl._value;if(x==null)return this.tween(Nl,null);if(typeof x!=="function")throw Error();return this.tween(Nl,S3c(v,x,tb==null?"":tb))},
text:function(v){return this.tween("text",typeof v==="function"?Hm3(L9(this,"text",v)):$V3(v==null?"":v+""))},
remove:function(){return this.on("end.remove",Y3l(this._id))},
tween:function(v,x){var tb=this._id;if(arguments.length<2){tb=VP(this.node(),tb).tween;for(var Nl=0,Bp=tb.length,bu;Nl<Bp;++Nl)if((bu=tb[Nl]).name===v)return bu.value;return null}return this.each((x==null?w9:$p)(tb,v,x))},
delay:function(v){var x=this._id;return arguments.length?this.each((typeof v==="function"?EPl:nPj)(x,v)):VP(this.node(),x).delay},
duration:function(v){var x=this._id;return arguments.length?this.each((typeof v==="function"?DVd:F68)(x,v)):VP(this.node(),x).duration},
ease:function(v){var x=this._id;return arguments.length?this.each(IiQ(x,v)):VP(this.node(),x).ease}};
var css={time:null,delay:0,duration:250,ease:function(v){return((v*=2)<=1?v*v*v:(v-=2)*v*v+2)/2}};
Qh.prototype.transition=function(v){var x;if(v instanceof px){var tb=v._id;v=v._name}else tb=++F6p,(x=css).time=n6(),v=v==null?null:v+"";for(var Nl=this._groups,Bp=Nl.length,bu=0;bu<Bp;++bu)for(var Dx=Nl[bu],UT=Dx.length,tf,Gk=0;Gk<UT;++Gk)if(tf=Dx[Gk]){var cT=tf,gE=v,nw=tb,mQ=Gk,a9=Dx,pO;if(!(pO=x))a:{pO=void 0;for(var ld=tb;!(pO=tf.__transition)||!(pO=pO[ld]);)if(!(tf=tf.parentNode)){pO=(css.time=n6(),css);break a}}Md(cT,gE,nw,mQ,a9,pO)}return new px(Nl,this._parents,v,tb)};
["e","w"].map(AsT);["n","s"].map(AsT);"n e s w nw ne se sw".split(" ").map(AsT);tkx.prototype=function(){return new tkx}.prototype={constructor:tkx,
moveTo:function(v,x){this._+="M"+(this._x0=this._x1=+v)+","+(this._y0=this._y1=+x)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(v,x){this._+="L"+(this._x1=+v)+","+(this._y1=+x)},
bezierCurveTo:function(v,x,tb,Nl,Bp,bu){this._+="C"+ +v+","+ +x+","+ +tb+","+ +Nl+","+(this._x1=+Bp)+","+(this._y1=+bu)},
rect:function(v,x,tb,Nl){this._+="M"+(this._x0=this._x1=+v)+","+(this._y0=this._y1=+x)+"h"+ +tb+"v"+ +Nl+"h"+-tb+"Z"},
toString:function(){return this._}};
f_u.prototype=KuC.prototype={constructor:f_u,has:function(v){return" "+v in this},
get:function(v){return this[" "+v]},
set:function(v,x){this[" "+v]=x;return this},
remove:function(v){v=" "+v;return v in this&&delete this[v]},
clear:function(){for(var v in this)v[0]===" "&&delete this[v]},
keys:function(){var v=[],x;for(x in this)x[0]===" "&&v.push(x.slice(1));return v},
values:function(){var v=[],x;for(x in this)x[0]===" "&&v.push(this[x]);return v},
entries:function(){var v=[],x;for(x in this)x[0]===" "&&v.push({key:x.slice(1),value:this[x]});return v},
size:function(){var v=0,x;for(x in this)x[0]===" "&&++v;return v},
empty:function(){for(var v in this)if(v[0]===" ")return!1;return!0},
each:function(v){for(var x in this)x[0]===" "&&v(this[x],x.slice(1),this)}};
var sh=KuC.prototype;X9T.prototype=function(v,x){var tb=new X9T;if(v instanceof X9T)v.each(function(bu){tb.add(bu)});
else if(v){var Nl=-1,Bp=v.length;if(x==null)for(;++Nl<Bp;)tb.add(v[Nl]);else for(;++Nl<Bp;)tb.add(x(v[Nl],Nl,v))}return tb}.prototype={constructor:X9T,
has:sh.has,add:function(v){this[" "+v]=v;return this},
remove:sh.remove,clear:sh.clear,values:sh.keys,size:sh.size,empty:sh.empty,each:sh.each};var sdf={},fl5={},cAj=w7E(",").parse,Bow=w7E("\t").parse;kBp(cAj);kBp(Bow);var fN=function(v,x,tb){x=new X75(x==null?wg3:x,tb==null?sa_:tb,NaN,NaN,NaN,NaN);return v==null?x:x.addAll(v)}.prototype=X75.prototype;
fN.copy=function(){var v=new X75(this._x,this._y,this._x0,this._y0,this._x1,this._y1),x=this._root,tb,Nl;if(!x)return v;if(!x.length)return v._root=Ak7(x),v;for(tb=[{source:x,target:v._root=Array(4)}];x=tb.pop();)for(var Bp=0;Bp<4;++Bp)if(Nl=x.source[Bp])Nl.length?tb.push({source:Nl,target:x.target[Bp]=Array(4)}):x.target[Bp]=Ak7(Nl);return v};
fN.add=function(v){var x=+this._x.call(null,v),tb=+this._y.call(null,v);return rsT(this.cover(x,tb),x,tb,v)};
fN.addAll=function(v){var x,tb,Nl=v.length,Bp,bu,Dx=Array(Nl),UT=Array(Nl),tf=Infinity,Gk=Infinity,cT=-Infinity,gE=-Infinity;for(tb=0;tb<Nl;++tb)isNaN(Bp=+this._x.call(null,x=v[tb]))||isNaN(bu=+this._y.call(null,x))||(Dx[tb]=Bp,UT[tb]=bu,Bp<tf&&(tf=Bp),Bp>cT&&(cT=Bp),bu<Gk&&(Gk=bu),bu>gE&&(gE=bu));cT<tf&&(tf=this._x0,cT=this._x1);gE<Gk&&(Gk=this._y0,gE=this._y1);this.cover(tf,Gk).cover(cT,gE);for(tb=0;tb<Nl;++tb)rsT(this,Dx[tb],UT[tb],v[tb]);return this};
fN.cover=function(v,x){if(isNaN(v=+v)||isNaN(x=+x))return this;var tb=this._x0,Nl=this._y0,Bp=this._x1,bu=this._y1;if(isNaN(tb))Bp=(tb=Math.floor(v))+1,bu=(Nl=Math.floor(x))+1;else if(tb>v||v>Bp||Nl>x||x>bu){var Dx=Bp-tb,UT=this._root,tf;switch(tf=(x<(Nl+bu)/2)<<1|v<(tb+Bp)/2){case 0:do{var Gk=Array(4);Gk[tf]=UT;UT=Gk}while(Dx*=2,Bp=tb+Dx,bu=Nl+Dx,v>Bp||x>bu);break;case 1:do Gk=Array(4),Gk[tf]=UT,UT=Gk;while(Dx*=2,tb=Bp-Dx,bu=Nl+Dx,tb>v||x>bu);break;case 2:do Gk=Array(4),Gk[tf]=UT,UT=Gk;while(Dx*=
2,Bp=tb+Dx,Nl=bu-Dx,v>Bp||Nl>x);break;case 3:do Gk=Array(4),Gk[tf]=UT,UT=Gk;while(Dx*=2,tb=Bp-Dx,Nl=bu-Dx,tb>v||Nl>x)}this._root&&this._root.length&&(this._root=UT)}else return this;this._x0=tb;this._y0=Nl;this._x1=Bp;this._y1=bu;return this};
fN.data=function(){var v=[];this.visit(function(x){if(!x.length){do v.push(x.data);while(x=x.next)}});
return v};
fN.extent=function(v){return arguments.length?this.cover(+v[0][0],+v[0][1]).cover(+v[1][0],+v[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
fN.find=function(v,x,tb){var Nl=this._x0,Bp=this._y0,bu,Dx,UT,tf,Gk=this._x1,cT=this._y1,gE=[],nw=this._root,mQ;nw&&gE.push(new tY(nw,Nl,Bp,Gk,cT));tb==null?tb=Infinity:(Nl=v-tb,Bp=x-tb,Gk=v+tb,cT=x+tb,tb*=tb);for(;mQ=gE.pop();)if(!(!(nw=mQ.node)||(bu=mQ.x0)>Gk||(Dx=mQ.y0)>cT||(UT=mQ.x1)<Nl||(tf=mQ.y1)<Bp))if(nw.length){mQ=(bu+UT)/2;var a9=(Dx+tf)/2;gE.push(new tY(nw[3],mQ,a9,UT,tf),new tY(nw[2],bu,a9,mQ,tf),new tY(nw[1],mQ,Dx,UT,a9),new tY(nw[0],bu,Dx,mQ,a9));if(nw=(x>=a9)<<1|v>=mQ)mQ=gE[gE.length-
1],gE[gE.length-1]=gE[gE.length-1-nw],gE[gE.length-1-nw]=mQ}else if(mQ=v-+this._x.call(null,nw.data),a9=x-+this._y.call(null,nw.data),mQ=mQ*mQ+a9*a9,mQ<tb){var pO=Math.sqrt(tb=mQ);Nl=v-pO;Bp=x-pO;Gk=v+pO;cT=x+pO;pO=nw.data}return pO};
fN.remove=function(v){if(isNaN(tf=+this._x.call(null,v))||isNaN(Gk=+this._y.call(null,v)))return this;var x,tb=this._root,Nl,Bp=this._x0,bu=this._y0,Dx=this._x1,UT=this._y1,tf,Gk,cT,gE,nw,mQ,a9;if(!tb)return this;if(tb.length)for(;;){(nw=tf>=(cT=(Bp+Dx)/2))?Bp=cT:Dx=cT;(mQ=Gk>=(gE=(bu+UT)/2))?bu=gE:UT=gE;if(!(x=tb,tb=tb[a9=mQ<<1|nw]))return this;if(!tb.length)break;if(x[a9+1&3]||x[a9+2&3]||x[a9+3&3]){var pO=x;var ld=a9}}for(;tb.data!==v;)if(!(Nl=tb,tb=tb.next))return this;(v=tb.next)&&delete tb.next;
if(Nl)return v?Nl.next=v:delete Nl.next,this;if(!x)return this._root=v,this;v?x[a9]=v:delete x[a9];(tb=x[0]||x[1]||x[2]||x[3])&&tb===(x[3]||x[2]||x[1]||x[0])&&!tb.length&&(pO?pO[ld]=tb:this._root=tb);return this};
fN.removeAll=function(v){for(var x=0,tb=v.length;x<tb;++x)this.remove(v[x]);return this};
fN.root=function(){return this._root};
fN.size=function(){var v=0;this.visit(function(x){if(!x.length){do++v;while(x=x.next)}});
return v};
fN.visit=function(v){var x=[],tb,Nl=this._root,Bp,bu,Dx,UT,tf;for(Nl&&x.push(new tY(Nl,this._x0,this._y0,this._x1,this._y1));tb=x.pop();)if(!v(Nl=tb.node,bu=tb.x0,Dx=tb.y0,UT=tb.x1,tf=tb.y1)&&Nl.length){tb=(bu+UT)/2;var Gk=(Dx+tf)/2;(Bp=Nl[3])&&x.push(new tY(Bp,tb,Gk,UT,tf));(Bp=Nl[2])&&x.push(new tY(Bp,bu,Gk,tb,tf));(Bp=Nl[1])&&x.push(new tY(Bp,tb,Dx,UT,Gk));(Bp=Nl[0])&&x.push(new tY(Bp,bu,Dx,tb,Gk))}};
fN.visitAfter=function(v){var x=[],tb=[],Nl;for(this._root&&x.push(new tY(this._root,this._x0,this._y0,this._x1,this._y1));Nl=x.pop();){var Bp=Nl.node;if(Bp.length){var bu,Dx=Nl.x0,UT=Nl.y0,tf=Nl.x1,Gk=Nl.y1,cT=(Dx+tf)/2,gE=(UT+Gk)/2;(bu=Bp[0])&&x.push(new tY(bu,Dx,UT,cT,gE));(bu=Bp[1])&&x.push(new tY(bu,cT,UT,tf,gE));(bu=Bp[2])&&x.push(new tY(bu,Dx,gE,cT,Gk));(bu=Bp[3])&&x.push(new tY(bu,cT,gE,tf,Gk))}tb.push(Nl)}for(;Nl=tb.pop();)v(Nl.node,Nl.x0,Nl.y0,Nl.x1,Nl.y1);return this};
fN.x=function(v){return arguments.length?(this._x=v,this):this._x};
fN.y=function(v){return arguments.length?(this._y=v,this):this._y};
var tXj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Qd5.prototype=qWT.prototype;qWT.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 QaK,q3T={"%":function(v,x){return(v*100).toFixed(x)},
b:function(v){return Math.round(v).toString(2)},
c:function(v){return v+""},
d:function(v){return Math.round(v).toString(10)},
e:function(v,x){return v.toExponential(x)},
f:function(v,x){return v.toFixed(x)},
g:function(v,x){return v.toPrecision(x)},
o:function(v){return Math.round(v).toString(8)},
p:function(v,x){return tK7(v*100,x)},
r:tK7,s:function(v,x){var tb=Qwl(v,x);if(!tb)return v+"";var Nl=tb[0];tb=tb[1];tb=tb-(QaK=Math.max(-8,Math.min(8,Math.floor(tb/3)))*3)+1;var Bp=Nl.length;return tb===Bp?Nl:tb>Bp?Nl+Array(tb-Bp+1).join("0"):tb>0?Nl.slice(0,tb)+"."+Nl.slice(tb):"0."+Array(1-tb).join("0")+Qwl(v,Math.max(0,x+tb-1))[0]},
X:function(v){return Math.round(v).toString(16).toUpperCase()},
x:function(v){return Math.round(v).toString(16)}},Xgp="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),M1Q;
(function(v){return M1Q=f7y(v)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Hz.prototype={constructor:Hz,reset:function(){this.s=this.t=0},
add:function(v){Jkp(N$x,v,this.t);Jkp(this,N$x.s,this.s);this.s?this.t+=N$x.t:this.s=N$x.t},
valueOf:function(){return this.s}};
var N$x=new Hz,fP=Math.PI,kY=fP/2,Iik=fP/4,Cbw=fP*2,BAT=fP/180,E$=Math.abs,Mkx=Math.atan,uv7=Math.atan2,rP=Math.cos,FC=Math.sin,J4s=Math.sqrt;new Hz;new Hz;new Hz;var CCx=new Hz;(function(v,x,tb,Nl){return function(Bp){function bu(A8,Ry){v(A8,Ry)&&Bp.point(A8,Ry)}
function Dx(A8,Ry){nw.point(A8,Ry)}
function UT(){qt.point=Dx;nw.lineStart()}
function tf(){qt.point=bu;nw.lineEnd()}
function Gk(A8,Ry){pf.push([A8,Ry]);a9.point(A8,Ry)}
function cT(){a9.lineStart();pf=[]}
function gE(){Gk(pf[0][0],pf[0][1]);a9.lineEnd();var A8=a9.clean(),Ry=mQ.result(),kl=Ry.length,mi;pf.pop();ld.push(pf);pf=null;if(kl)if(A8&1){if(kl=Ry[0],(Ry=kl.length-1)>0){pO||(Bp.polygonStart(),pO=!0);Bp.lineStart();for(A8=0;A8<Ry;++A8)Bp.point((mi=kl[A8])[0],mi[1]);Bp.lineEnd()}}else kl>1&&A8&2&&Ry.push(Ry.pop().concat(Ry.shift())),rD.push(Ry.filter(Jwd))}
var nw=x(Bp),mQ=QSy(),a9=x(mQ),pO=!1,ld,rD,pf,qt={point:bu,lineStart:UT,lineEnd:tf,polygonStart:function(){qt.point=Gk;qt.lineStart=cT;qt.lineEnd=gE;rD=[];ld=[]},
polygonEnd:function(){qt.point=bu;qt.lineStart=UT;qt.lineEnd=tf;var A8=rD,Ry=A8.length;var kl=-1;for(var mi=0,al,hr;++kl<Ry;)mi+=A8[kl].length;for(al=Array(mi);--Ry>=0;)for(hr=A8[Ry],kl=hr.length;--kl>=0;)al[--mi]=hr[kl];rD=al;A8=ld;Ry=Nl[0];mi=Nl[1];var Ny=FC(mi);kl=[FC(Ry),-rP(Ry),0];hr=al=0;CCx.reset();Ny===1?mi=kY+1E-6:Ny===-1&&(mi=-kY-1E-6);Ny=0;for(var Il=A8.length;Ny<Il;++Ny)if(tW=(s8=A8[Ny]).length){var s8,tW,N9=s8[tW-1],Ck=N9[0],p9=N9[1]/2+Iik,uAg=FC(p9),xVf=rP(p9);for(p9=0;p9<tW;++p9,Ck=
hXx,uAg=jaw,xVf=bZ,N9=zMq){var zMq=s8[p9],hXx=zMq[0];bZ=zMq[1]/2+Iik;var jaw=FC(bZ),bZ=rP(bZ),yo=hXx-Ck,RXs=yo>=0?1:-1,mT0=RXs*yo,Pdp=mT0>fP;uAg*=jaw;CCx.add(uv7(uAg*RXs*FC(mT0),xVf*bZ+uAg*rP(mT0)));al+=Pdp?yo+RXs*Cbw:yo;Pdp^Ck>=Ry^hXx>=Ry&&(N9=ekS(UVp(N9),UVp(zMq)),GdT(N9),Ck=ekS(kl,N9),GdT(Ck),Ck=(Pdp^yo>=0?-1:1)*qIx(Ck[2]),mi>Ck||mi===Ck&&(N9[0]||N9[1]))&&(hr+=Pdp^yo>=0?1:-1)}}A8=(al<-1E-6||al<1E-6&&CCx<-1E-6)^hr&1;rD.length?(pO||(Bp.polygonStart(),pO=!0),q5c(rD,UM2,A8,tb,Bp)):A8&&(pO||(Bp.polygonStart(),
pO=!0),Bp.lineStart(),tb(null,null,1,Bp),Bp.lineEnd());pO&&(Bp.polygonEnd(),pO=!1);rD=ld=null},
sphere:function(){Bp.polygonStart();Bp.lineStart();tb(null,null,1,Bp);Bp.lineEnd();Bp.polygonEnd()}};
return qt}})(function(){return!0},function(v){var x=NaN,tb=NaN,Nl=NaN,Bp;
return{lineStart:function(){v.lineStart();Bp=1},
point:function(bu,Dx){var UT=bu>0?fP:-fP,tf=E$(bu-x);if(E$(tf-fP)<1E-6)v.point(x,tb=(tb+Dx)/2>0?kY:-kY),v.point(Nl,tb),v.lineEnd(),v.lineStart(),v.point(UT,tb),v.point(bu,tb),Bp=0;else if(Nl!==UT&&tf>=fP){E$(x-Nl)<1E-6&&(x-=Nl*1E-6);E$(bu-UT)<1E-6&&(bu-=UT*1E-6);tf=x;var Gk=tb,cT=bu,gE,nw,mQ=FC(tf-cT);tb=E$(mQ)>1E-6?Mkx((FC(Gk)*(nw=rP(Dx))*FC(cT)-FC(Dx)*(gE=rP(Gk))*FC(tf))/(gE*nw*mQ)):(Gk+Dx)/2;v.point(Nl,tb);v.lineEnd();v.lineStart();v.point(UT,tb);Bp=0}v.point(x=bu,tb=Dx);Nl=UT},
lineEnd:function(){v.lineEnd();x=tb=NaN},
clean:function(){return 2-Bp}}},function(v,x,tb,Nl){v==null?(tb*=kY,Nl.point(-fP,tb),Nl.point(0,tb),Nl.point(fP,tb),Nl.point(fP,0),Nl.point(fP,-tb),Nl.point(0,-tb),Nl.point(-fP,-tb),Nl.point(-fP,0),Nl.point(-fP,tb)):E$(v[0]-x[0])>1E-6?(v=v[0]<x[0]?fP:-fP,tb=tb*v/2,Nl.point(-v,tb),Nl.point(0,tb),Nl.point(v,tb)):Nl.point(x[0],x[1])},[-fP,
-kY]);new Hz;new Hz;new Hz;new Hz;Js5.prototype={constructor:Js5,point:function(v,x){this.stream.point(v,x)},
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()}};
rP(30*BAT);(function(v){return function(x){var tb=new Js5,Nl;for(Nl in v)tb[Nl]=v[Nl];tb.stream=x;return tb}})({point:function(v,x){this.stream.point(v*BAT,x*BAT)}});
NCS(function(v){return J4s(2/(1+v))}).invert=OD(function(v){return 2*qIx(v/2)});
NCS(function(v){return(v=v>1?0:v<-1?fP:Math.acos(v))&&v/FC(v)}).invert=OD(function(v){return v});
J4s(3);OD(Mkx);OD(qIx);OD(function(v){return 2*Mkx(v)});
ce.prototype=zki.prototype={constructor:ce,count:function(){return this.eachAfter(eQh)},
each:function(v){var x,tb=[this],Nl;do{var Bp=tb.reverse();for(tb=[];x=Bp.pop();)if(v(x),x=x.children){var bu=0;for(Nl=x.length;bu<Nl;++bu)tb.push(x[bu])}}while(tb.length);return this},
eachAfter:function(v){for(var x,tb=[this],Nl=[],Bp,bu;x=tb.pop();)if(Nl.push(x),x=x.children)for(Bp=0,bu=x.length;Bp<bu;++Bp)tb.push(x[Bp]);for(;x=Nl.pop();)v(x);return this},
eachBefore:function(v){for(var x,tb=[this],Nl;x=tb.pop();)if(v(x),x=x.children)for(Nl=x.length-1;Nl>=0;--Nl)tb.push(x[Nl]);return this},
sum:function(v){return this.eachAfter(function(x){for(var tb=+v(x.data)||0,Nl=x.children,Bp=Nl&&Nl.length;--Bp>=0;)tb+=Nl[Bp].value;x.value=tb})},
sort:function(v){return this.eachBefore(function(x){x.children&&x.children.sort(v)})},
path:function(v){var x=this;var tb=x;var Nl=v;if(tb!==Nl){var Bp=tb.ancestors(),bu=Nl.ancestors(),Dx=null;tb=Bp.pop();for(Nl=bu.pop();tb===Nl;)Dx=tb,tb=Bp.pop(),Nl=bu.pop();tb=Dx}for(Nl=[x];x!==tb;)x=x.parent,Nl.push(x);for(x=Nl.length;v!==tb;)Nl.splice(x,0,v),v=v.parent;return Nl},
ancestors:function(){for(var v=this,x=[v];v=v.parent;)x.push(v);return x},
links:function(){var v=this,x=[];v.each(function(tb){tb!==v&&x.push({source:tb.parent,target:tb})});
return x},
copy:function(){return zki(this).eachBefore(Ng2)}};
(function(v,x){this._=v;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=x}).prototype=Object.create(ce.prototype);
var UTx=new Date,eXp=new Date,Y3p=bS(function(){},function(v,x){v.setTime(+v+x)},function(v,x){return x-v});
Y3p.every=function(v){v=Math.floor(v);return isFinite(v)&&v>0?v>1?bS(function(x){x.setTime(Math.floor(x/v)*v)},function(x,tb){x.setTime(+x+tb*v)},function(x,tb){return(tb-x)/v}):Y3p:null};
bS(function(v){v.setTime(Math.floor(v/1E3)*1E3)},function(v,x){v.setTime(+v+x*1E3)},function(v,x){return(x-v)/1E3},function(v){return v.getUTCSeconds()});
bS(function(v){v.setTime(Math.floor(v/6E4)*6E4)},function(v,x){v.setTime(+v+x*6E4)},function(v,x){return(x-v)/6E4},function(v){return v.getMinutes()});
bS(function(v){var x=v.getTimezoneOffset()*6E4%36E5;x<0&&(x+=36E5);v.setTime(Math.floor((+v-x)/36E5)*36E5+x)},function(v,x){v.setTime(+v+x*36E5)},function(v,x){return(x-v)/36E5},function(v){return v.getHours()});
var imE=bS(function(v){v.setHours(0,0,0,0)},function(v,x){v.setDate(v.getDate()+x)},function(v,x){return(x-v-(x.getTimezoneOffset()-v.getTimezoneOffset())*6E4)/864E5},function(v){return v.getDate()-1}),Nol=go(0),lls=go(1);
go(2);go(3);var NAq=go(4);go(5);go(6);bS(function(v){v.setDate(1);v.setHours(0,0,0,0)},function(v,x){v.setMonth(v.getMonth()+x)},function(v,x){return x.getMonth()-v.getMonth()+(x.getFullYear()-v.getFullYear())*12},function(v){return v.getMonth()});
var RU=bS(function(v){v.setMonth(0,1);v.setHours(0,0,0,0)},function(v,x){v.setFullYear(v.getFullYear()+x)},function(v,x){return x.getFullYear()-v.getFullYear()},function(v){return v.getFullYear()});
RU.every=function(v){return isFinite(v=Math.floor(v))&&v>0?bS(function(x){x.setFullYear(Math.floor(x.getFullYear()/v)*v);x.setMonth(0,1);x.setHours(0,0,0,0)},function(x,tb){x.setFullYear(x.getFullYear()+tb*v)}):null};
bS(function(v){v.setUTCSeconds(0,0)},function(v,x){v.setTime(+v+x*6E4)},function(v,x){return(x-v)/6E4},function(v){return v.getUTCMinutes()});
bS(function(v){v.setUTCMinutes(0,0,0)},function(v,x){v.setTime(+v+x*36E5)},function(v,x){return(x-v)/36E5},function(v){return v.getUTCHours()});
var TCE=bS(function(v){v.setUTCHours(0,0,0,0)},function(v,x){v.setUTCDate(v.getUTCDate()+x)},function(v,x){return(x-v)/864E5},function(v){return v.getUTCDate()-1}),uSw=wo(0),GBz=wo(1);
wo(2);wo(3);var ufx=wo(4);wo(5);wo(6);bS(function(v){v.setUTCDate(1);v.setUTCHours(0,0,0,0)},function(v,x){v.setUTCMonth(v.getUTCMonth()+x)},function(v,x){return x.getUTCMonth()-v.getUTCMonth()+(x.getUTCFullYear()-v.getUTCFullYear())*12},function(v){return v.getUTCMonth()});
var mc=bS(function(v){v.setUTCMonth(0,1);v.setUTCHours(0,0,0,0)},function(v,x){v.setUTCFullYear(v.getUTCFullYear()+x)},function(v,x){return x.getUTCFullYear()-v.getUTCFullYear()},function(v){return v.getUTCFullYear()});
mc.every=function(v){return isFinite(v=Math.floor(v))&&v>0?bS(function(x){x.setUTCFullYear(Math.floor(x.getUTCFullYear()/v)*v);x.setUTCMonth(0,1);x.setUTCHours(0,0,0,0)},function(x,tb){x.setUTCFullYear(x.getUTCFullYear()+tb*v)}):null};
var POS={"-":"",_:" ",0:"0"},EO=/^\s*\d+/,lL8=/^%/,GuA=/[\\^$*+?|[\]().{}]/g,T$z;(function(v){T$z=zQ3(v);xBp=T$z.utcFormat;jGT=T$z.utcParse;return T$z})({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||xBp("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||jGT("%Y-%m-%dT%H:%M:%S.%LZ");Tv("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Tv("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Tv("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Tv("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Tv("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Tv("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Tv("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Tv("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Tv("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Tv("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Tv("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Tv("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var hm3=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Tv);kk(hm3);var Rmh=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Tv);kk(Rmh);var mK3=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Tv);kk(mK3);var bhc=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Tv);
kk(bhc);var Ws3=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Tv);kk(Ws3);var yAc=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Tv);kk(yAc);var vc3=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Tv);kk(vc3);var Ls8=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Tv);kk(Ls8);var pa3=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Tv);kk(pa3);var Ec3=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Tv);kk(Ec3);var nch=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Tv);kk(nch);var DKh=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Tv);kk(DKh);var Fs8=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Tv);kk(Fs8);var ILd=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Tv);kk(ILd);var xKc=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Tv);kk(xKc);var jB_=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Tv);kk(jB_);var Yhd=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Tv);kk(Yhd);var V1j=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Tv);kk(V1j);var Zhw=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Tv);kk(Zhw);var ocj=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Tv);kk(ocj);var dKQ=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Tv);kk(dKQ);var Shj=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Tv);kk(Shj);var $Km=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Tv);kk($Km);var Hh2=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Tv);kk(Hh2);var aL3=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Tv);kk(aL3);var KsQ=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Tv);kk(KsQ);var gcw=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Tv);kk(gcw);O2g(WT(300,.5,0),WT(-240,.5,1));O2g(WT(-100,.75,.35),WT(80,1.5,.8));O2g(WT(260,.75,.35),WT(80,1.5,.8));WT();HT();GUx(Tv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
GUx(Tv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
GUx(Tv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
GUx(Tv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
W6S.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(v,x){v=+v;x=+x;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(v,x):this._context.moveTo(v,x);break;case 1:this._point=2;default:this._context.lineTo(v,x)}}};
(function(v){function x(tb){return new ykE(v(tb))}
x._curve=v;return x})(function(v){return new W6S(v)});
ykE.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(v,x){this._curve.point(x*Math.sin(v),x*-Math.cos(v))}};
PCq.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:zXb(this,this._t0,L67(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(v,x){var tb=NaN;v=+v;x=+x;if(v!==this._x1||x!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(v,x):this._context.moveTo(v,x);break;case 1:this._point=2;break;case 2:this._point=3;zXb(this,L67(this,tb=vPC(this,v,x)),tb);break;default:zXb(this,this._t0,tb=vPC(this,v,x))}this._x0=this._x1;this._x1=v;this._y0=this._y1;this._y1=x;this._t0=tb}}};
(function(v){this._context=new pgp(v)}.prototype=Object.create(PCq.prototype)).point=function(v,x){PCq.prototype.point.call(this,x,v)};
pgp.prototype={moveTo:function(v,x){this._context.moveTo(x,v)},
closePath:function(){this._context.closePath()},
lineTo:function(v,x){this._context.lineTo(x,v)},
bezierCurveTo:function(v,x,tb,Nl,Bp,bu){this._context.bezierCurveTo(x,v,Nl,tb,bu,Bp)}};
hp.prototype={constructor:hp,scale:function(v){return v===1?this:new hp(this.k*v,this.x,this.y)},
translate:function(v,x){return v===0&x===0?this:new hp(this.k,this.x+this.k*v,this.y+this.k*x)},
apply:function(v){return[v[0]*this.k+this.x,v[1]*this.k+this.y]},
invert:function(v){return[(v[0]-this.x)/this.k,(v[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new hp(1,0,0);Nrb=cA;sj.svg=sj.svg;sj.xhtml=sj.xhtml;sj.xlink=sj.xlink;sj.xml=sj.xml;sj.xmlns=sj.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 Yup="hammer_"+(Math.random()*1E6|0),Vtb=function(){var A=document||document;if(!A[Yup]){var t=function(){(function(f,X,Q,q){function e(vp,V5,a0){return setTimeout(c(vp,a0),V5)}
function G(vp,V5,a0){return Array.isArray(vp)?(N(vp,a0[V5],a0),!0):!1}
function N(vp,V5,a0){var CS;if(vp)if(vp.forEach)vp.forEach(V5,a0);else if(vp.length!==q){var Rl=0;for(CS=vp.length;Rl<CS;Rl++)V5.call(a0,vp[Rl],Rl,vp)}else for(Rl in vp)vp.hasOwnProperty(Rl)&&V5.call(a0,vp[Rl],Rl,vp)}
function z(vp,V5,a0){for(var CS=Object.keys(V5),Rl=0,If=CS.length;Rl<If;Rl++)if(!a0||a0&&vp[CS[Rl]]===q)vp[CS[Rl]]=V5[CS[Rl]];return vp}
function T(vp,V5){return z(vp,V5,!0)}
function O(vp,V5,a0){V5=V5.prototype;var CS=vp.prototype=Object.create(V5);CS.constructor=vp;CS._super=V5;a0&&z(CS,a0)}
function c(vp,V5){return function(){return vp.apply(V5,arguments)}}
function B(vp,V5){return typeof vp=="function"?vp.apply(V5?V5[0]||q:q,V5):vp}
function h(vp,V5,a0){N(L(V5),function(CS){vp.addEventListener(CS,a0,!1)})}
function W(vp,V5,a0){N(L(V5),function(CS){vp.removeEventListener(CS,a0,!1)})}
function L(vp){return vp.trim().split(/\s+/g)}
function E(vp,V5,a0){if(vp.indexOf&&!a0)return vp.indexOf(V5);for(var CS=0,Rl=vp.length;CS<Rl;CS++)if(a0&&vp[CS][a0]==V5||!a0&&vp[CS]===V5)return CS;return-1}
function D(vp,V5,a0){for(var CS=[],Rl=[],If=0,pw=vp.length;If<pw;If++){var LS=V5?vp[If][V5]:vp[If];E(Rl,LS)<0&&CS.push(vp[If]);Rl[If]=LS}a0&&(CS=V5?CS.sort(function(WT,ol){return WT[V5]>ol[V5]}):CS.sort());
return CS}
function S(vp,V5){for(var a0,CS=V5[0].toUpperCase()+V5.slice(1),Rl=0,If=Tk.length;Rl<If;Rl++)if(a0=(a0=Tk[Rl])?a0+CS:V5,a0 in vp)return a0;return q}
function Z(vp,V5){var a0=this;this.manager=vp;this.callback=V5;this.element=vp.element;this.target=vp.options.inputTarget;this.domHandler=function(CS){B(vp.options.enable,[vp])&&a0.handler(CS)};
this.evEl&&h(this.element,this.evEl,this.domHandler);this.evTarget&&h(this.target,this.evTarget,this.domHandler);this.evWin&&h(f,this.evWin,this.domHandler)}
function d(vp){var V5;$m?V5=Fb:z_?V5=xq:cA?V5=Yq:V5=iu;return new V5(vp,K)}
function K(vp,V5,a0){var CS=a0.pointers.length,Rl=a0.changedPointers.length,If=V5&1&&CS-Rl===0;a0.isFirst=!!If;a0.isFinal=!!(V5&12&&CS-Rl===0);If&&(vp.session={});a0.eventType=V5;V5=vp.session;CS=a0.pointers;Rl=CS.length;V5.firstInput||(V5.firstInput=k(a0));Rl>1&&!V5.firstMultiple?V5.firstMultiple=k(a0):Rl===1&&(V5.firstMultiple=!1);If=V5.firstInput;var pw=(Rl=V5.firstMultiple)?Rl.center:If.center,LS=a0.center=Gz(CS);a0.timeStamp=fw();a0.deltaTime=a0.timeStamp-If.timeStamp;a0.angle=cp(pw,LS);a0.distance=
y5(pw,LS);If=a0.center;pw=V5.offsetDelta||{};LS=V5.prevDelta||{};var WT=V5.prevInput||{};if(a0.eventType===1||WT.eventType===4)LS=V5.prevDelta={x:WT.deltaX||0,y:WT.deltaY||0},pw=V5.offsetDelta={x:If.x,y:If.y};a0.deltaX=LS.x+(If.x-pw.x);a0.deltaY=LS.y+(If.y-pw.y);a0.offsetDirection=Tz(a0.deltaX,a0.deltaY);Rl?(If=Rl.pointers,If=y5(CS[0],CS[1],HT)/y5(If[0],If[1],HT)):If=1;a0.scale=If;Rl?(Rl=Rl.pointers,CS=cp(CS[1],CS[0],HT)-cp(Rl[1],Rl[0],HT)):CS=0;a0.rotation=CS;pw=V5.lastInterval||a0;CS=a0.timeStamp-
pw.timeStamp;a0.eventType!=8&&(CS>25||pw.velocity===q)?(If=pw.deltaX-a0.deltaX,pw=pw.deltaY-a0.deltaY,LS=If/CS||0,WT=pw/CS||0,CS=LS,Rl=WT,LS=Kg(LS)>Kg(WT)?LS:WT,If=Tz(If,pw),V5.lastInterval=a0):(LS=pw.velocity,CS=pw.velocityX,Rl=pw.velocityY,If=pw.direction);a0.velocity=LS;a0.velocityX=CS;a0.velocityY=Rl;a0.direction=If;V5=vp.element;a:{for(CS=a0.srcEvent.target;CS;){if(CS==V5){CS=!0;break a}CS=CS.parentNode}CS=!1}CS&&(V5=a0.srcEvent.target);a0.target=V5;vp.emit("hammer.input",a0);vp.recognize(a0);
vp.session.prevInput=a0}
function k(vp){for(var V5=[],a0=0;a0<vp.pointers.length;a0++)V5[a0]={clientX:Qh(vp.pointers[a0].clientX),clientY:Qh(vp.pointers[a0].clientY)};return{timeStamp:fw(),pointers:V5,center:Gz(V5),deltaX:vp.deltaX,deltaY:vp.deltaY}}
function Gz(vp){var V5=vp.length;if(V5===1)return{x:Qh(vp[0].clientX),y:Qh(vp[0].clientY)};for(var a0=0,CS=0,Rl=0;Rl<V5;Rl++)a0+=vp[Rl].clientX,CS+=vp[Rl].clientY;return{x:Qh(a0/V5),y:Qh(CS/V5)}}
function Tz(vp,V5){return vp===V5?1:Kg(vp)>=Kg(V5)?vp>0?2:4:V5>0?8:16}
function y5(vp,V5,a0){a0||(a0=Mw);var CS=V5[a0[0]]-vp[a0[0]];vp=V5[a0[1]]-vp[a0[1]];return Math.sqrt(CS*CS+vp*vp)}
function cp(vp,V5,a0){a0||(a0=Mw);return Math.atan2(V5[a0[1]]-vp[a0[1]],V5[a0[0]]-vp[a0[0]])*180/Math.PI}
function iu(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Z.apply(this,arguments)}
function Fb(){this.evEl=Gv;this.evWin=yG;Z.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function xq(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Z.apply(this,arguments)}
function Yq(){Z.apply(this,arguments);var vp=c(this.handler,this);this.touch=new xq(this.manager,vp);this.mouse=new iu(this.manager,vp)}
function zk(vp,V5){this.manager=vp;this.set(V5)}
function PT(vp){if(vp.indexOf("none")>-1)return"none";var V5=vp.indexOf("pan-x")>-1,a0=vp.indexOf("pan-y")>-1;return V5&&a0?"pan-x pan-y":V5||a0?V5?"pan-x":"pan-y":vp.indexOf("manipulation")>-1?"manipulation":"auto"}
function rs(vp){this.id=TH++;this.manager=null;this.options=T(vp||{},this.defaults);vp=this.options.enable;this.options.enable=vp===q?!0:vp;this.state=1;this.simultaneous={};this.requireFail=[]}
function OT(vp){return vp==16?"down":vp==8?"up":vp==2?"left":vp==4?"right":""}
function bK(vp,V5){return(V5=V5.manager)?V5.get(vp):vp}
function ET(){rs.apply(this,arguments)}
function m3(){ET.apply(this,arguments);this.pY=this.pX=null}
function O2(){ET.apply(this,arguments)}
function eT(){rs.apply(this,arguments);this._input=this._timer=null}
function fS(){ET.apply(this,arguments)}
function hf(){ET.apply(this,arguments)}
function wE(){rs.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Rp(vp,V5){V5=V5||{};var a0=V5.recognizers;V5.recognizers=a0===q?Rp.defaults.preset:a0;return new rE(vp,V5)}
function rE(vp,V5){V5=V5||{};this.options=T(V5,Rp.defaults);this.options.inputTarget=this.options.inputTarget||vp;this.handlers={};this.session={};this.recognizers=[];this.element=vp;this.input=d(this);this.touchAction=new zk(this,this.options.touchAction);bL(this,!0);N(V5.recognizers,function(a0){var CS=this.add(new a0[0](a0[1]));a0[2]&&CS.recognizeWith(a0[2]);a0[3]&&CS.requireFailure(a0[2])},this)}
function bL(vp,V5){var a0=vp.element;N(vp.options.cssProps,function(CS,Rl){a0.style[S(a0.style,Rl)]=V5?CS:""})}
function $8(vp,V5){var a0=X.createEvent("Event");a0.initEvent(vp,!0,!0);a0.gesture=V5;V5.target.dispatchEvent(a0)}
var Tk=" webkit moz MS ms o".split(" "),iK=X.createElement("div"),Qh=Math.round,Kg=Math.abs,fw=Date.now,TH=1,Xx=/mobile|tablet|ip(ad|hone|od)|android/i,cA="ontouchstart"in f,$m=S(f,"PointerEvent")!==q,z_=cA&&Xx.test(navigator.userAgent),Mw=["x","y"],HT=["clientX","clientY"];Z.prototype={handler:function(){},
destroy:function(){this.evEl&&W(this.element,this.evEl,this.domHandler);this.evTarget&&W(this.target,this.evTarget,this.domHandler);this.evWin&&W(f,this.evWin,this.domHandler)}};
var by={mousedown:1,mousemove:2,mouseup:4};O(iu,Z,{handler:function(vp){var V5=by[vp.type];V5&1&&vp.button===0&&(this.pressed=!0);V5&2&&vp.which!==1&&(V5=4);this.pressed&&this.allow&&(V5&4&&(this.pressed=!1),this.callback(this.manager,V5,{pointers:[vp],changedPointers:[vp],pointerType:"mouse",srcEvent:vp}))}});
var qd={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},gG={2:"touch",3:"pen",4:"mouse",5:"kinect"},Gv="pointerdown",yG="pointermove pointerup pointercancel";f.MSPointerEvent&&(Gv="MSPointerDown",yG="MSPointerMove MSPointerUp MSPointerCancel");O(Fb,Z,{handler:function(vp){var V5=this.store,a0=!1,CS=vp.type.toLowerCase().replace("ms","");CS=qd[CS];var Rl=gG[vp.pointerType]||vp.pointerType;CS&1&&(vp.button===0||Rl=="touch")?V5.push(vp):CS&12&&(a0=!0);var If=E(V5,vp.pointerId,"pointerId");
If<0||(V5[If]=vp,this.callback(this.manager,CS,{pointers:V5,changedPointers:[vp],pointerType:Rl,srcEvent:vp}),a0&&V5.splice(If,1))}});
var fF={touchstart:1,touchmove:2,touchend:4,touchcancel:8};O(xq,Z,{handler:function(vp){var V5=fF[vp.type];var a0=Array.prototype.slice.call(vp.touches,0);var CS=this.targetIds;if(V5&3&&a0.length===1)CS[a0[0].identifier]=!0,CS=[a0,a0];else{var Rl,If=Array.prototype.slice.call(vp.targetTouches,0),pw=Array.prototype.slice.call(vp.changedTouches,0),LS=[];if(V5===1)for(a0=0,Rl=If.length;a0<Rl;a0++)CS[If[a0].identifier]=!0;a0=0;for(Rl=pw.length;a0<Rl;a0++)CS[pw[a0].identifier]&&LS.push(pw[a0]),V5&12&&
delete CS[pw[a0].identifier];CS=LS.length?[D(If.concat(LS),"identifier",!0),LS]:void 0}CS&&this.callback(this.manager,V5,{pointers:CS[0],changedPointers:CS[1],pointerType:"touch",srcEvent:vp})}});
O(Yq,Z,{handler:function(vp,V5,a0){var CS=a0.pointerType=="mouse";if(a0.pointerType=="touch")this.mouse.allow=!1;else if(CS&&!this.mouse.allow)return;V5&12&&(this.mouse.allow=!0);this.callback(vp,V5,a0)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var SO=S(iK.style,"touchAction"),bs=SO!==q;zk.prototype={set:function(vp){vp=="compute"&&(vp=this.compute());bs&&(this.manager.element.style[SO]=vp);this.actions=vp.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var vp=[];N(this.manager.recognizers,function(V5){B(V5.options.enable,[V5])&&(vp=vp.concat(V5.getTouchAction()))});
return PT(vp.join(" "))},
preventDefaults:function(vp){if(!bs){var V5=vp.srcEvent;vp=vp.offsetDirection;if(this.manager.session.prevented)V5.preventDefault();else{var a0=this.actions,CS=a0.indexOf("none")>-1,Rl=a0.indexOf("pan-y")>-1;a0=a0.indexOf("pan-x")>-1;if(CS||Rl&&a0||Rl&&vp&6||a0&&vp&24)return this.preventSrc(V5)}}},
preventSrc:function(vp){this.manager.session.prevented=!0;vp.preventDefault()}};
rs.prototype={defaults:{},set:function(vp){z(this.options,vp);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(vp){if(G(vp,"recognizeWith",this))return this;var V5=this.simultaneous;vp=bK(vp,this);V5[vp.id]||(V5[vp.id]=vp,vp.recognizeWith(this));return this},
dropRecognizeWith:function(vp){if(G(vp,"dropRecognizeWith",this))return this;vp=bK(vp,this);delete this.simultaneous[vp.id];return this},
requireFailure:function(vp){if(G(vp,"requireFailure",this))return this;var V5=this.requireFail;vp=bK(vp,this);E(V5,vp)===-1&&(V5.push(vp),vp.requireFailure(this));return this},
dropRequireFailure:function(vp){if(G(vp,"dropRequireFailure",this))return this;vp=bK(vp,this);vp=E(this.requireFail,vp);vp>-1&&this.requireFail.splice(vp,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(vp){return!!this.simultaneous[vp.id]},
emit:function(vp){function V5(Rl){a0.manager.emit(a0.options.event+(Rl?CS&16?"cancel":CS&8?"end":CS&4?"move":CS&2?"start":"":""),vp)}
var a0=this,CS=this.state;CS<8&&V5(!0);V5();CS>=8&&V5(!0)},
tryEmit:function(vp){if(this.canEmit())return this.emit(vp);this.state=32},
canEmit:function(){for(var vp=0;vp<this.requireFail.length;vp++)if(!(this.requireFail[vp].state&33))return!1;return!0},
recognize:function(vp){vp=z({},vp);B(this.options.enable,[this,vp])?(this.state&56&&(this.state=1),this.state=this.process(vp),this.state&30&&this.tryEmit(vp)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
O(ET,rs,{defaults:{pointers:1},attrTest:function(vp){var V5=this.options.pointers;return V5===0||vp.pointers.length===V5},
process:function(vp){var V5=this.state,a0=vp.eventType,CS=V5&6;vp=this.attrTest(vp);return CS&&(a0&8||!vp)?V5|16:CS||vp?a0&4?V5|8:V5&2?V5|4:2:32}});
O(m3,ET,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var vp=this.options.direction;if(vp===30)return["none"];var V5=[];vp&6&&V5.push("pan-y");vp&24&&V5.push("pan-x");return V5},
directionTest:function(vp){var V5=this.options,a0=!0,CS=vp.distance,Rl=vp.direction,If=vp.deltaX,pw=vp.deltaY;Rl&V5.direction||(V5.direction&6?(Rl=If===0?1:If<0?2:4,a0=If!=this.pX,CS=Math.abs(vp.deltaX)):(Rl=pw===0?1:pw<0?8:16,a0=pw!=this.pY,CS=Math.abs(vp.deltaY)));vp.direction=Rl;return a0&&CS>V5.threshold&&Rl&V5.direction},
attrTest:function(vp){return ET.prototype.attrTest.call(this,vp)&&(this.state&2||!(this.state&2)&&this.directionTest(vp))},
emit:function(vp){this.pX=vp.deltaX;this.pY=vp.deltaY;var V5=OT(vp.direction);V5&&this.manager.emit(this.options.event+V5,vp);this._super.emit.call(this,vp)}});
O(O2,ET,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(vp){return this._super.attrTest.call(this,vp)&&(Math.abs(vp.scale-1)>this.options.threshold||this.state&2)},
emit:function(vp){this._super.emit.call(this,vp);vp.scale!==1&&this.manager.emit(this.options.event+(vp.scale<1?"in":"out"),vp)}});
O(eT,rs,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(vp){var V5=this.options,a0=vp.pointers.length===V5.pointers,CS=vp.distance<V5.threshold,Rl=vp.deltaTime>V5.time;this._input=vp;if(!CS||!a0||vp.eventType&12&&!Rl)this.reset();else if(vp.eventType&1)this.reset(),this._timer=e(function(){this.state=8;this.tryEmit()},V5.time,this);
else if(vp.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(vp){this.state===8&&(vp&&vp.eventType&4?this.manager.emit(this.options.event+"up",vp):(this._input.timeStamp=fw(),this.manager.emit(this.options.event,this._input)))}});
O(fS,ET,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(vp){return this._super.attrTest.call(this,vp)&&(Math.abs(vp.rotation)>this.options.threshold||this.state&2)}});
O(hf,ET,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return m3.prototype.getTouchAction.call(this)},
attrTest:function(vp){var V5=this.options.direction;if(V5&30)var a0=vp.velocity;else V5&6?a0=vp.velocityX:V5&24&&(a0=vp.velocityY);return this._super.attrTest.call(this,vp)&&V5&vp.direction&&Kg(a0)>this.options.velocity&&vp.eventType&4},
emit:function(vp){var V5=OT(vp.direction);V5&&this.manager.emit(this.options.event+V5,vp);this.manager.emit(this.options.event,vp)}});
O(wE,rs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(vp){var V5=this.options,a0=vp.pointers.length===V5.pointers,CS=vp.distance<V5.threshold,Rl=vp.deltaTime<V5.time;this.reset();if(vp.eventType&1&&this.count===0)return this.failTimeout();if(CS&&Rl&&a0){if(vp.eventType!=4)return this.failTimeout();a0=this.pTime?vp.timeStamp-this.pTime<V5.interval:!0;CS=!this.pCenter||y5(this.pCenter,vp.center)<V5.posThreshold;this.pTime=vp.timeStamp;this.pCenter=vp.center;CS&&a0?this.count+=1:this.count=1;this._input=vp;if(this.count%V5.taps===0)return this.hasRequireFailures()?
(this._timer=e(function(){this.state=8;this.tryEmit()},V5.interval,this),2):8}return 32},
failTimeout:function(){this._timer=e(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))}});
Rp.VERSION="2.0.2";Rp.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[fS,{enable:!1}],[O2,{enable:!1},["rotate"]],[hf,{direction:6}],[m3,{direction:6},["swipe"]],[wE],[wE,{event:"doubletap",taps:2},["tap"]],[eT]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};rE.prototype={set:function(vp){z(this.options,vp);return this},
stop:function(vp){this.session.stopped=vp?2:1},
recognize:function(vp){var V5=this.session;if(!V5.stopped){this.touchAction.preventDefaults(vp);var a0=this.recognizers,CS=V5.curRecognizer;if(!CS||CS&&CS.state&8)CS=V5.curRecognizer=null;for(var Rl=0,If=a0.length;Rl<If;Rl++){var pw=a0[Rl];V5.stopped===2||CS&&pw!=CS&&!pw.canRecognizeWith(CS)?pw.reset():pw.recognize(vp);!CS&&pw.state&14&&(CS=V5.curRecognizer=pw)}}},
get:function(vp){if(vp instanceof rs)return vp;for(var V5=this.recognizers,a0=0;a0<V5.length;a0++)if(V5[a0].options.event==vp)return V5[a0];return null},
add:function(vp){if(G(vp,"add",this))return this;var V5=this.get(vp.options.event);V5&&this.remove(V5);this.recognizers.push(vp);vp.manager=this;this.touchAction.update();return vp},
remove:function(vp){if(G(vp,"remove",this))return this;var V5=this.recognizers;vp=this.get(vp);V5.splice(E(V5,vp),1);this.touchAction.update();return this},
on:function(vp,V5){var a0=this.handlers;N(L(vp),function(CS){a0[CS]=a0[CS]||[];a0[CS].push(V5)});
return this},
off:function(vp,V5){var a0=this.handlers;N(L(vp),function(CS){V5?a0[CS].splice(E(a0[CS],V5),1):delete a0[CS]});
return this},
emit:function(vp,V5){this.options.domEvents&&$8(vp,V5);var a0=this.handlers[vp]&&this.handlers[vp].slice();if(a0&&a0.length){V5.type=vp;V5.preventDefault=function(){V5.srcEvent.preventDefault()};
vp=0;for(var CS=a0.length;vp<CS;vp++)a0[vp](V5)}},
destroy:function(){this.element&&bL(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
z(Rp,{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:rE,Input:Z,TouchAction:zk,Recognizer:rs,AttrRecognizer:ET,Tap:wE,Pan:m3,Swipe:hf,Pinch:O2,Rotate:fS,Press:eT,on:h,off:W,each:N,merge:T,extend:z,inherit:O,bindFn:c,prefixed:S});
f[Q]=Rp})(window,document,"Hammer");
return window.Hammer}.call({});
t.DOCUMENT=A;A[Yup]=t}return A[Yup]};/*

 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 ZsE=function(A,t){if(A.length!==t.length)return!1;for(var f=0;f<A.length;++f)if(A[f]!==t[f])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var o5T=_.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"]),dBp=o5T.next();!dBp.done;dBp=o5T.next()){var SuK=dBp.value,$Bf=document.createElement("link");$Bf.rel="stylesheet";$Bf.href=SuK;document.head.appendChild($Bf)};var F9T,xFu,YL5,E6b,ICb,n6b,L9u,pIq;F9T={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};xFu={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:"*"};YL5={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};E6b=/[a-z0-9*]/;ICb=/U\+/;n6b=/^arrow/;L9u=/^space(bar)?/;pIq=/^escape$/;_.YD={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(A,t){this._imperativeKeyBindings[A]=t;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(A,t){t=Z3b(t);for(var f=0;f<t.length;++f)if(j1b(t[f],A))return!0;return!1},
_collectKeyBindings:function(){var A=this.behaviors.map(function(t){return t.keyBindings});
A.indexOf(this.keyBindings)===-1&&A.push(this.keyBindings);return A},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(f){for(var X in f)this._addKeyBinding(X,f[X])},this);
for(var A in this._imperativeKeyBindings)this._addKeyBinding(A,this._imperativeKeyBindings[A]);for(var t in this._keyBindings)this._keyBindings[t].sort(function(f,X){f=f[0].hasModifiers;return f===X[0].hasModifiers?0:f?-1:1})},
_addKeyBinding:function(A,t){Z3b(A).forEach(function(f){this._keyBindings[f.event]=this._keyBindings[f.event]||[];this._keyBindings[f.event].push([f,t])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(A){var t=this._onKeyBindingEvent.bind(this,this._keyBindings[A]);this._boundKeyHandlers.push([this.keyEventTarget,A,t]);this.keyEventTarget.addEventListener(A,t)},this)},
_unlistenKeyEventListeners:function(){for(var A,t,f;this._boundKeyHandlers.length;)A=this._boundKeyHandlers.pop(),t=A[0],f=A[1],A=A[2],t.removeEventListener(f,A)},
_onKeyBindingEvent:function(A,t){this.stopKeyboardEventPropagation&&t.stopPropagation();if(!t.defaultPrevented)for(var f=0;f<A.length;f++){var X=A[f][0],Q=A[f][1];if(j1b(X,t)&&(this._triggerKeyHandler(X,Q,t),t.defaultPrevented))break}},
_triggerKeyHandler:function(A,t,f){var X=Object.create(A);X.keyboardEvent=f;A=new CustomEvent(A.event,{detail:X,cancelable:!0});this[t].call(this,A);A.defaultPrevented&&f.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
*/
_.CN({is:"iron-a11y-keys",_template:null,behaviors:[_.YD],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(A){this.keyEventTarget=A},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(A){this.fire("keys-pressed",A.detail,{})}});_.Vt={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(A){this._setFocused(A.type==="focus")},
_disabledChanged:function(A){this.setAttribute("aria-disabled",A?"true":"false");this.style.pointerEvents=A?"none":"";A?(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 Ze={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(A){this._detectKeyboardFocus(A);A||this._setPressed(!1)},
_detectKeyboardFocus:function(A){this._setReceivedFocusFromKeyboard(!this.pointerDown&&A)},
_userActivate:function(A){this.active!==A&&(this.active=A,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(A){A=A.detail.keyboardEvent;var t=_.iS(A).localTarget;this.isLightDescendant(t)||(A.preventDefault(),A.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(A){A=_.iS(A.detail.keyboardEvent).localTarget;this.isLightDescendant(A)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(A,t){t&&t!=A&&this.hasAttribute(t)&&this.removeAttribute(t)},
_activeChanged:function(A){this.toggles?this.setAttribute(this.ariaActiveAttribute,A?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},Hsp=[_.YD,
Ze];_.oz={IronButtonState:Hsp,IronButtonStateImpl:Ze};_.dO={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Sm=function(A){_.Sm[" "](A);this.type=A&&A.type||"default";this.key=A&&A.key;A&&"value"in A&&(this.value=A.value)};
_.Sm.prototype.byKey=function(A){this.key=A;return this.value};
_.PV.Object.defineProperties(_.Sm.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var A=this.type,t=this.key;if(A&&t)return $D[A]&&$D[A][t]},
set:function(A){var t=this.type,f=this.key;t&&f&&(t=$D[t]=$D[t]||{},A==null?delete t[f]:t[f]=A)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var A=$D[this.type];return A?Object.keys(A).map(function(t){return $D[this.type][t]},this):[]}}});
_.Sm[" "]=function(){};
var $D={};_.CN({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(A,t,f){A=new _.Sm({type:A,key:t});f!==void 0&&f!==A.value?A.value=f:this.value!==A.value&&(this.value=A.value);return A},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(A){A&&(this.value=this)},
byKey:function(A){return(new _.Sm({type:this.type,key:A})).value}});var aS7;aS7=null;_.HY={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){aS7=new _.Sm({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return aS7&&aS7.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(A){this.invalid=A===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(A);return!this.invalid},
_getValidity:function(A){return this.hasValidator()?this._validator.validate(A):!0}};var K_8={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"}},g5p=[_.dO,
_.HY,K_8];_.CN({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 _.Sm({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(A){return this.name+":"+A},this)},
applyIcon:function(A,t){this.removeIcon(A);if(t=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(A))){var f=_.iS(A.root||A);f.insertBefore(t,f.childNodes[0]);return A._svgIcon=t}return null},
removeIcon:function(A){A._svgIcon&&(_.iS(A.root||A).removeChild(A._svgIcon),A._svgIcon=null)},
_targetIsRTL:function(A){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(A&&A.nodeType!==Node.ELEMENT_NODE&&(A=A.host),this.__targetIsRTL=A&&window.getComputedStyle(A).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 A=Object.create(null);_.iS(this).querySelectorAll("[id]").forEach(function(t){A[t.id]=t});
return A},
_cloneIcon:function(A,t){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[A],this.size,t)},
_prepareSvgClone:function(A,t,f){if(A){A=A.cloneNode(!0);var X=document.createElementNS("http://www.w3.org/2000/svg","svg");t=A.getAttribute("viewBox")||"0 0 "+t+" "+t;var Q="pointer-events: none; display: block; width: 100%; height: 100%;";f&&A.hasAttribute("mirror-in-rtl")&&(Q+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");X.setAttribute("viewBox",t);X.setAttribute("preserveAspectRatio","xMidYMid meet");X.setAttribute("focusable","false");X.style&&(X.style.cssText=
Q);X.appendChild(A).removeAttribute("id");return X}return null}});var wFT=function(A){this.multi=!1;this.selection=[];this.selectCallback=A};
_.J=wFT.prototype;_.J.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.J.clear=function(A){this.selection.slice().forEach(function(t){(!A||A.indexOf(t)<0)&&this.setItemSelected(t,!1)},this)};
_.J.isSelected=function(A){return this.selection.indexOf(A)>=0};
_.J.setItemSelected=function(A,t){if(A!=null&&t!==this.isSelected(A)){if(t)this.selection.push(A);else{var f=this.selection.indexOf(A);f>=0&&this.selection.splice(f,1)}this.selectCallback&&this.selectCallback(A,t)}};
_.J.select=function(A){this.multi?this.toggle(A):this.get()!==A&&(this.setItemSelected(this.get(),!1),this.setItemSelected(A,!0))};
_.J.toggle=function(A){this.setItemSelected(A,!this.isSelected(A))};_.jv={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 wFT(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.iS(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(A){return this.items?this.items.indexOf(A):-1},
select:function(A){this.selected=A},
selectPrevious:function(){var A=this.items.length,t=A-1;this.selected!==void 0&&(t=(Number(this._valueToIndex(this.selected))-1+A)%A);this.selected=this._indexToValue(t)},
selectNext:function(){var A=0;this.selected!==void 0&&(A=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(A)},
selectIndex:function(A){this.select(this._indexToValue(A))},
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(A){this.listen(this,A,"_activateHandler")},
_removeListener:function(A){this.unlisten(this,A,"_activateHandler")},
_activateEventChanged:function(A,t){this._removeListener(t);this._addListener(A)},
_updateItems:function(){var A=_.iS(this).queryDistributedElements(this.selectable||"*");A=Array.prototype.filter.call(A,this._bindFilterItem);this._setItems(A)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var A=this._valueToItem(this.selected);A?this._selection.select(A):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(A){return!this._excludedLocalNames[A.localName]},
_valueToItem:function(A){return A==null?null:this.items[this._valueToIndex(A)]},
_valueToIndex:function(A){if(this.attrForSelected)for(var t=0,f;f=this.items[t];t++){if(this._valueForItem(f)==A)return t}else return Number(A)},
_indexToValue:function(A){if(this.attrForSelected){if(A=this.items[A])return this._valueForItem(A)}else return A},
_valueForItem:function(A){if(!A)return null;if(!this.attrForSelected)return A=this.indexOf(A),A===-1?null:A;var t=A[mE(this.attrForSelected)];return t!=void 0?t:A.getAttribute(this.attrForSelected)},
_applySelection:function(A,t){this.selectedClass&&this.toggleClass(this.selectedClass,t,A);this.selectedAttribute&&this.toggleAttribute.call(A,this.selectedAttribute,t);this._selectionChange();this.fire("iron-"+(t?"select":"deselect"),{item:A})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(A){return _.iS(A).observeNodes(function(t){this._updateItems();this._updateSelected();this.fire("iron-items-changed",t,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(A){A=A.target;for(var t=this.items;A&&A!=this;){var f=t.indexOf(A);if(f>=0){t=this._indexToValue(f);this._itemActivate(t,A);break}A=A.parentNode}},
_itemActivate:function(A,t){this.fire("iron-activate",{selected:A,item:t},{cancelable:!0}).defaultPrevented||this.select(A)}};var sGf={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(A){this.multi?this._toggleSelected(A):this.selected=A},
multiChanged:function(A){this._selection.multi=A;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(A){return this._indexToValue(this.indexOf(A))},this).filter(function(A){return A!=null},this)):_.jv._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(A){A=A||[];A=(this._valuesToItems(A)||[]).filter(function(f){return f!==null&&f!==void 0});
this._selection.clear(A);for(var t=0;t<A.length;t++)this._selection.setItemSelected(A[t],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var A=this._selection.get();this.multi?(this._setSelectedItems(A),this._setSelectedItem(A.length?A[0]:null)):A!==null&&A!==void 0?(this._setSelectedItems([A]),this._setSelectedItem(A)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(A){var t=this.selectedValues.indexOf(A);t<0?this.push("selectedValues",A):this.splice("selectedValues",t,1)},
_valuesToItems:function(A){return A==null?null:A.map(function(t){return this._valueToItem(t)},this)}},kFT=[_.jv,
sGf];var rub;
_.az={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(A){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var t=this._valueToItem(A);t&&t.hasAttribute("disabled")||(this._setFocusedItem(t),sGf.select.apply(this,arguments))},
_resetTabindices:function(){var A=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(t){t.setAttribute("tabindex",t===A?"0":"-1");t.setAttribute("aria-selected",this._selection.isSelected(t))},this)},
_updateMultiselectable:function(A){A?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(A){if(this._MODIFIER_KEYS.indexOf(A.key)===-1){this.cancelDebouncer("_clearSearchText");var t=this._searchText||"";t+=(A.key&&A.key.length==1?A.key:String.fromCharCode(A.keyCode)).toLocaleLowerCase();A=t.length;for(var f=0,X;X=this.items[f];f++)if(!X.hasAttribute("disabled")){var Q=this.attrForItemTitle||"textContent";Q=(X[Q]||X.getAttribute(Q)||"").trim();if(!(Q.length<A)&&Q.slice(0,A).toLocaleLowerCase()==t){this._setFocusedItem(X);break}}this._searchText=t;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var A=this.items.length,t=Number(this.indexOf(this.focusedItem)),f=1;f<A+1;f++){var X=this.items[(t-f+A)%A];if(!X.hasAttribute("disabled")){var Q=_.iS(X).getOwnerRoot()||document;this._setFocusedItem(X);if(_.iS(Q).activeElement==X)break}}},
_focusNext:function(){for(var A=this.items.length,t=Number(this.indexOf(this.focusedItem)),f=1;f<A+1;f++){var X=this.items[(t+f)%A];if(!X.hasAttribute("disabled")){var Q=_.iS(X).getOwnerRoot()||document;this._setFocusedItem(X);if(_.iS(Q).activeElement==X)break}}},
_applySelection:function(A,t){t?A.setAttribute("aria-selected","true"):A.setAttribute("aria-selected","false");_.jv._applySelection.apply(this,arguments)},
_focusedItemChanged:function(A,t){t&&t.setAttribute("tabindex","-1");!A||A.hasAttribute("disabled")||this.disabled||(A.setAttribute("tabindex","0"),A.focus())},
_onIronItemsChanged:function(A){A.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var A=this.getAttribute("tabindex");_.az._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",A);_.az._shiftTabPressed=!1},1)},
_onFocus:function(A){!_.az._shiftTabPressed&&(A=_.iS(A).rootTarget,A===this||typeof A.tabIndex==="undefined"||this.isLightDescendant(A))&&(this._defaultFocusAsync=this.async(function(){var t=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);t?this._setFocusedItem(t):this.items[0]&&this._focusNext()}))},
_onUpKey:function(A){this._focusPrevious();A.detail.keyboardEvent.preventDefault()},
_onDownKey:function(A){this._focusNext();A.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var A=this.focusedItem;A&&A.blur()},
_onKeydown:function(A){this.keyboardEventMatchesKeys(A,"up down esc")||this._focusWithKeyboardEvent(A);A.stopPropagation()},
_activateHandler:function(A){_.jv._activateHandler.call(this,A);A.stopPropagation()},
_disabledChanged:function(A){A?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};rub=[kFT,_.YD,_.az];_.AJf={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(A){this.focusedItem&&(this.focusedItem.click(),A.detail.keyboardEvent.preventDefault())},
_onDownKey:function(A){this.focusedItem&&(this.focusedItem.click(),A.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(A){return A.ctrlKey||A.shiftKey||A.altKey||A.metaKey},
_onLeftKey:function(A){this._isSpecialKey(A.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),A.detail.keyboardEvent.preventDefault())},
_onRightKey:function(A){this._isSpecialKey(A.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),A.detail.keyboardEvent.preventDefault())},
_onKeydown:function(A){this.keyboardEventMatchesKeys(A,"up down left right esc")||this._focusWithKeyboardEvent(A)}};
_.t7l=[rub,_.AJf];var frp;frp=new Set;_.K9={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):(frp.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(A){this.resizerShouldNotify(A)&&this._notifyDescendant(A)},this),this._fireResize())},
assignParentResizable:function(A){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=A)&&A._interestedResizables.indexOf(this)===-1&&(A._interestedResizables.push(this),A._subscribeIronResize(this))},
stopResizeNotificationsFor:function(A){var t=this._interestedResizables.indexOf(A);t>-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(A))},
_subscribeIronResize:function(A){A.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(A){A.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(A){this._notifyingDescendant?A.stopPropagation():r$||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(A){var t=_.iS(A).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),A.stopPropagation())},
_parentResizableChanged:function(A){A&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(A){this.isAttached&&(this._notifyingDescendant=!0,A.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var A=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function f(){document.removeEventListener("readystatechange",f);A()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(t){t!==this&&t._findParent()},this):(frp.forEach(function(t){t!==this&&t._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?frp.delete(this):frp.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
*/
_.Xzp={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(A,t){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);t&&(A==="document"?this.scrollTarget=this._doc:typeof A==="string"?this.scrollTarget=(t=this.domHost)&&t.$?t.$[A]:_.iS(this.ownerDocument).querySelector("#"+A):this._isValidScrollTarget()&&(this._oldScrollTarget=A,this._toggleScrollListener(this._shouldHaveListener,A)))},
_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(A){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,A):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
A)},set _scrollLeft(A){this.scrollTarget===this._doc?window.scrollTo(A,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=A)},scroll:function(A,t){if(typeof A==="object"){var f=A.left;t=A.top}else f=A;f=f||0;t=t||0;this.scrollTarget===this._doc?window.scrollTo(f,t):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=f,this.scrollTarget.scrollTop=t)},
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(A,t){t=t===this._doc?window:t;A?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),t.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(t.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(A){this._shouldHaveListener=A;this._toggleScrollListener(A,this.scrollTarget)}};_.CN({is:"iron-selector",_template:null,behaviors:[kFT]});var gO={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(A){if(A.timing)for(var t in A.timing)this.animationTiming[t]=A.timing[t];return this.animationTiming},
setPrefixedProperty:function(A,t,f){for(var X={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[t],Q,q=0;Q=X[q];q++)A.style[Q]=f;A.style[t]=f},
complete:function(){}};_.CN({is:"fade-in-animation",_template:null,behaviors:[gO],configure:function(A){return this._effect=new KeyframeEffect(A.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(A))}});_.CN({is:"fade-out-animation",_template:null,behaviors:[gO],configure:function(A){return this._effect=new KeyframeEffect(A.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(A))}});var QDl=[{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(A,t){for(var f in t)A[f]=t[f]},
_cloneConfig:function(A){var t={isClone:!0};this._copyProperties(t,A);return t},
_getAnimationConfigRecursive:function(A,t,f){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 X=A?this.animationConfig[A]:this.animationConfig;Array.isArray(X)||(X=[X]);if(X)for(var Q,q=0;Q=X[q];q++)if(Q.animatable)Q.animatable._getAnimationConfigRecursive(Q.type||A,t,f);else if(Q.id){var e=t[Q.id];
e?(e.isClone||(t[Q.id]=this._cloneConfig(e),e=t[Q.id]),this._copyProperties(e,Q)):t[Q.id]=Q}else f.push(Q)}},
getAnimationConfig:function(A){var t={},f=[];this._getAnimationConfigRecursive(A,t,f);for(var X in t)f.push(t[X]);return f}},
{_configureAnimations:function(A){var t=[],f=[];if(A.length>0)for(var X,Q=0;X=A[Q];Q++){var q=document.createElement(X.name);if(q.isNeonAnimation){var e=null;q.configure||(q.configure=function(){return null});
e=q.configure(X);f.push({result:e,config:X})}else console.warn(this.is+":",X.name,"not found!")}for(A=0;A<f.length;A++){e=f[A].result;X=f[A].config;try{typeof e.cancel!="function"&&(e=document.timeline.play(e))}catch(G){e=null,console.warn("Couldnt play","(",X.name,").",G)}e&&t.push({neonAnimation:q,config:X,animation:e})}return t},
_shouldComplete:function(A){for(var t=!0,f=0;f<A.length;f++)if(A[f].animation.playState!="finished"){t=!1;break}return t},
_complete:function(A){for(var t=0;t<A.length;t++)A[t].neonAnimation.complete(A[t].config);for(t=0;t<A.length;t++)A[t].animation.cancel()},
playAnimation:function(A,t){var f=this.getAnimationConfig(A);if(f){this._active=this._active||{};this._active[A]&&(this._complete(this._active[A]),delete this._active[A]);var X=this._configureAnimations(f);if(X.length==0)this.fire("neon-animation-finish",t,{bubbles:!1});else for(this._active[A]=X,f=0;f<X.length;f++)X[f].animation.onfinish=function(){this._shouldComplete(X)&&(this._complete(X),delete this._active[A],this.fire("neon-animation-finish",t,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var A in this._active){var t=this._active[A],f;for(f in t)t[f].animation&&t[f].animation.cancel&&t[f].animation.cancel()}this._active={}}}];var nP=function(A,t){A=Error.call(this,A);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.arg=t;this.name=this.constructor.name;this.constructor=nP;this.__proto__=nP.prototype};
_.R(nP,Error);var q1i=UU(function(A){var t=function(){return A.apply(this,arguments)||this};
_.R(t,A);t.prototype._marshalArgs=function(f,X,Q){X=A.prototype._marshalArgs.call(this,f,X,Q);if(this._legacyUndefinedCheck&&X.length>1)for(Q=0;Q<X.length;Q++)if(X[Q]===void 0||f[Q].wildcard&&X[Q].base===void 0)throw f=f[Q].name,new nP("Argument '"+f+"' is undefined.",f);return X};
t.prototype._addPropertyEffect=function(f,X,Q){return A.prototype._addPropertyEffect.call(this,f,X,o6x(Q,Q&&Q.info&&Q.info.methodName))};
t._addTemplatePropertyEffect=function(f,X,Q){return A._addTemplatePropertyEffect.call(this,f,X,o6x(Q))};
return t}),JJw=_.CN.Class;
_.CN.Class=function(A,t){return JJw(A,function(f){return t?t(q1i(f)):q1i(f)})};
var U1b=UU(function(A){var t=q1i(A);A=function(){return t.apply(this,arguments)||this};
_.R(A,t);_.PV.Object.defineProperties(A.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return A}),eSC=XB.mixin;
XB.mixin=eSC?function(A){return U1b(eSC(A))}:U1b;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.wO=_.oz.IronButtonState;var HQx=kH;_.dF5="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var K9s=function(){return Math.random().toString(36).substring(7).split("").join(".")},aC5="@@redux/INIT"+K9s(),s1s="@@redux/REPLACE"+K9s();var kKu=typeof Symbol==="function"&&Symbol.observable||"@@observable";var GRp=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var lr8="top right bottom left width height size weight".split(" "),NVw=typeof MutationObserver!=="undefined",uGk=GRp&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,zS8=function(){this.mutationEventsAdded_=this.JSC$11843_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=r1s(this.refresh.bind(this))},Prf=function(A,
t){var f=A.observers_;
t=f.indexOf(t);~t&&f.splice(t,1);!f.length&&A.JSC$11843_connected_&&GRp&&A.JSC$11843_connected_&&(document.removeEventListener("transitionend",A.onTransitionEnd_),window.removeEventListener("resize",A.refresh),A.mutationsObserver_&&(A.mutationsObserver_.disconnect(),uGk&&(HTMLElement.prototype.attachShadow=uGk)),A.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",A.refresh),A.mutationsObserver_=null,A.mutationEventsAdded_=!1,A.JSC$11843_connected_=!1)};
zS8.prototype.refresh=function(){TVp(this)&&this.refresh()};
var TVp=function(A){A=A.observers_.filter(function(t){return idS(t),t.activeObservations_.length>0});
A.forEach(function(t){return Odw(t)});
return A.length>0},cJT=function(A){if(GRp&&!A.JSC$11843_connected_){document.addEventListener("transitionend",A.onTransitionEnd_);
window.addEventListener("resize",A.refresh);if(NVw){A.mutationsObserver_=new MutationObserver(A.refresh);var t={attributes:!0,childList:!0,characterData:!0,subtree:!0};A.mutationsObserver_.observe(document,t);uGk&&(function Q(X){var q=X.shadowRoot;q&&(A.mutationsObserver_.observe(q,t),Q(q));for(X=X.firstElementChild;X;)Q(X),X=X.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var X=uGk.apply(this,_.Hu.apply(0,arguments));
A.mutationsObserver_.observe(X,t);return X})}else document.addEventListener("DOMSubtreeModified",A.refresh),A.mutationEventsAdded_=!0;
A.JSC$11843_connected_=!0}};
zS8.prototype.onTransitionEnd_=function(A){var t=A.propertyName===void 0?"":A.propertyName;lr8.some(function(f){return!!~t.indexOf(f)})&&this.refresh()};
var BVi=null;var M7S=function(A,t){for(var f=_.U(Object.keys(t)),X=f.next();!X.done;X=f.next())X=X.value,Object.defineProperty(A,X,{value:t[X],enumerable:!1,writable:!1,configurable:!0})};var sm=function(A){var t;return(A==null?void 0:(t=A.ownerDocument)==null?void 0:t.defaultView)||globalThis};var Crk={x:0,y:0,width:0,height:0},hSw=typeof SVGGraphicsElement!=="undefined"?function(A){return A instanceof sm(A).SVGGraphicsElement}:function(A){return A instanceof sm(A).SVGElement&&typeof A.getBBox==="function"};var RSp=function(A){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=A};
RSp.prototype.isActive=function(){var A=this.target;if(GRp)if(hSw(A)){var t=A.getBBox();t={x:0,y:0,width:t.width,height:t.height}}else{var f=A.clientWidth,X=A.clientHeight;if(f||X){var Q=sm(A).getComputedStyle(A);t=FB(Q["padding-top"]);var q=FB(Q["padding-left"]),e=q+FB(Q["padding-right"]),G=t+FB(Q["padding-bottom"]),N=FB(Q.width),z=FB(Q.height);Q.boxSizing==="border-box"&&(Math.round(N+e)!==f&&(N-=AUq(Q,"left","right")+e),Math.round(z+G)!==X&&(z-=AUq(Q,"top","bottom")+G));A!==sm(A).document.documentElement&&
(A=Math.round(N+e)-f,X=Math.round(z+G)-X,Math.abs(A)!==1&&(N-=A),Math.abs(X)!==1&&(z-=X));t={x:q,y:t,width:N,height:z}}else t=Crk}else t=Crk;this.contentRect_=t;return t.width!==this.broadcastWidth||t.height!==this.broadcastHeight};var m1i=function(A,t){var f=t.x;var X=t.y;var Q=t.width;t=t.height;var q=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);M7S(q,{x:f,y:X,width:Q,height:t,top:X,right:f+Q,bottom:t+X,left:f});M7S(this,{target:A,contentRect:q})};var bdC=function(A,t){var f=BVi;this.activeObservations_=[];this.observations_=new Map;if(typeof A!=="function")throw new TypeError("We");this.callback_=A;this.controller_=f;this.callbackCtx_=t};
bdC.prototype.observe=function(A){if(A===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(A instanceof sm(A).Element))throw new TypeError("Ye");var t=this.observations_;t.has(A)||(t.set(A,new RSp(A)),A=this.controller_,~A.observers_.indexOf(this)||A.observers_.push(this),A.JSC$11843_connected_||cJT(A),this.controller_.refresh())}};
bdC.prototype.unobserve=function(A){if(A===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(A instanceof sm(A).Element))throw new TypeError("Ye");var t=this.observations_;t.has(A)&&(t.delete(A),t.size||Prf(this.controller_,this))}};
bdC.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();Prf(this.controller_,this)};
var idS=function(A){A.activeObservations_.splice(0);A.observations_.forEach(function(t){t.isActive()&&A.activeObservations_.push(t)})},Odw=function(A){if(A.activeObservations_.length>0){var t=A.callbackCtx_,f=A.activeObservations_.map(function(X){var Q=X.target,q=X.contentRect_;
X.broadcastWidth=q.width;X.broadcastHeight=q.height;return new m1i(Q,q)});
A.callback_.call(t,f,t);A.activeObservations_.splice(0)}};var kD=function(A){if(!(this instanceof kD))throw new TypeError("Ze");if(!arguments.length)throw new TypeError("Xe");BVi||(BVi=new zS8);this.observer_=new bdC(A,this)};
kD.prototype.observe=function(A){this.observer_.observe(A)};
kD.prototype.unobserve=function(A){this.observer_.unobserve(A)};
kD.prototype.disconnect=function(){this.observer_.disconnect()};var b5g=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:kD;var tG={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchMove_Departed:8,TouchEnd:9,TouchCancel:10,0:"MouseUp",1:"MouseDown",2:"Click",3:"ContextMenu",4:"DblClick",5:"Focus",6:"Blur",7:"TouchStart",8:"TouchMove_Departed",9:"TouchEnd",10:"TouchCancel"},QX={"2D":0,WebGL:1,WebGL2:2};QX[QX["2D"]]="2D";QX[1]="WebGL";QX[2]="WebGL2";var fXq={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},X_5={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},t$z={},qY5={},JUx={},d6=function(A){return IW("Node",A,"childNodes")},oW=function(A){return IW("Node",A,"parentNode")},S0=function(A){return IW("Node",A,"parentElement")},Z_0=function(A){return IW("Node",A,
"textContent")},tQb=function(A){return UUz(A,"getRootNode")()},j0=function(A){return A&&"host"in A?IW("ShadowRoot",A,"host"):null},Yi=function(A){return A&&"shadowRoot"in A?IW("Element",A,"shadowRoot"):null};var KP=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
KP.prototype.getId=function(A){if(!A)return-1;var t,f;return(f=(t=this.nodeMetaMap.get(A)||null)==null?void 0:t.id)!=null?f:-1};
KP.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var WaT=function(A,t){var f=A.getId(t);A.idNodeMap.delete(f);t.childNodes&&t.childNodes.forEach(function(X){return WaT(A,X)})};
KP.prototype.has=function(A){return this.idNodeMap.has(A)};
KP.prototype.add=function(A,t){this.idNodeMap.set(t.id,A);this.nodeMetaMap.set(A,t)};
KP.prototype.replace=function(A,t){var f=this.idNodeMap.get(A)||null;f&&(f=this.nodeMetaMap.get(f))&&this.nodeMetaMap.set(t,f);this.idNodeMap.set(A,t)};
KP.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var i_z=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,O_s=/^(?:[a-z+]+:)?\/\//i,cUz=/^www\..*/i,B_0=/^(data:)([^,]*),(.*)/i;var his=1,mUx=RegExp("[^a-z0-9-_:]"),$i,dUs,yUz=/^[^ \t\n\r\u000c]+/,Wkg=/^[, \t\n\r\u000c]+/,Egz=new WeakMap;var qi,AG=function(A){return qi?function(){var t=_.Hu.apply(0,arguments);try{return A.apply(null,_.YV(t))}catch(f){if(!qi||qi(f)!==!0)throw f;}}:A};var rO=function(A){this.generateIdFn=A;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
rO.prototype.getId=function(A,t,f,X){f=f||yJl(this,A);A=X||vpC(this,A);X=f.get(t);X||(X=this.generateIdFn(),f.set(t,X),A.set(X,t));return X};
rO.prototype.getIds=function(A,t){var f=this,X=yJl(this,A),Q=vpC(this,A);return t.map(function(q){return f.getId(A,q,X,Q)})};
rO.prototype.reset=function(A){A?(this.iframeIdToRemoteIdMap.delete(A),this.iframeRemoteIdToIdMap.delete(A)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var yJl=function(A,t){var f=A.iframeIdToRemoteIdMap.get(t);f||(f=new Map,A.iframeIdToRemoteIdMap.set(t,f));return f},vpC=function(A,t){var f=A.iframeRemoteIdToIdMap.get(t);
f||(f=new Map,A.iframeRemoteIdToIdMap.set(t,f));return f};var SEx=function(A){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new rO(RiT);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=A.mutationCb;this.wrappedEmit=A.wrappedEmit;this.stylesheetManager=A.stylesheetManager;this.recordCrossOriginIframes=A.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new rO(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=A.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11907_handleMessage.bind(this))},gwT=function(A,t){A.iframes.set(t,!0);
t.contentWindow&&A.crossOriginIframeMap.set(t.contentWindow,t)},thx=function(A,t){A.loadListener=t},kY5=function(A,t,f){A.mutationCb({adds:[{parentId:A.mirror.getId(t),
nextId:null,node:f}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(A.recordCrossOriginIframes){var X;(X=t.contentWindow)==null||X.addEventListener("message",A.JSC$11907_handleMessage.bind(A))}var Q;(Q=A.loadListener)==null||Q.call(A,t);t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&R0l(A.stylesheetManager,t.contentDocument.adoptedStyleSheets,A.mirror.getId(t.contentDocument))};
SEx.prototype.JSC$11907_handleMessage=function(A){if(A.data.type==="rrweb"&&A.origin===A.data.origin&&A.source){var t=this.crossOriginIframeMap.get(A.source);t&&(t=LaK(this,t,A.data.event))&&this.wrappedEmit(t,A.data.isCheckout)}};
var LaK=function(A,t,f){switch(f.type){case 2:A.crossOriginIframeMirror.reset(t);A.crossOriginIframeStyleMirror.reset(t);pzp(A,f.data.node,t);var X=f.data.node.id;A.crossOriginIframeRootIdMap.set(t,X);Ep7(A,f.data.node,X);return{timestamp:f.timestamp,type:3,data:{source:0,adds:[{parentId:A.mirror.getId(t),nextId:null,node:f.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return f;case 5:return AS(A,f.data.payload,t,["id","parentId","previousId","nextId"]),f;case 3:switch(f.data.source){case 0:return f.data.adds.forEach(function(Q){AS(A,
Q,t,["parentId","nextId","previousId"]);pzp(A,Q.node,t);var q=A.crossOriginIframeRootIdMap.get(t);q&&Ep7(A,Q.node,q)}),f.data.removes.forEach(function(Q){AS(A,Q,t,["parentId",
"id"])}),f.data.attributes.forEach(function(Q){AS(A,Q,t,["id"])}),f.data.texts.forEach(function(Q){AS(A,Q,t,["id"])}),f;
case 12:case 6:case 1:return f.data.positions.forEach(function(Q){AS(A,Q,t,["id"])}),f;
case 7:case 2:case 3:case 9:case 5:return AS(A,f.data,t,["id"]),f;case 8:case 13:return AS(A,f.data,t,["id"]),np8(A,f.data,t,["styleId"]),f;case 10:return f;case 14:return f.data.ranges.forEach(function(Q){AS(A,Q,t,["start","end"])}),f;
case 15:return AS(A,f.data,t,["id"]),np8(A,f.data,t,["styleIds"]),(X=f.data.styles)==null||X.forEach(function(Q){np8(A,Q,t,["styleId"])}),f}}return!1};
SEx.prototype.replace=function(A,t,f,X){X=_.U(X);for(var Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,Array.isArray(t[Q])||typeof t[Q]==="number")Array.isArray(t[Q])?t[Q]=A.getIds(f,t[Q]):t[Q]=A.getId(f,t[Q]);return t};
var AS=function(A,t,f,X){A.replace(A.crossOriginIframeMirror,t,f,X)},np8=function(A,t,f,X){A.replace(A.crossOriginIframeStyleMirror,t,f,X)},pzp=function(A,t,f){AS(A,t,f,["id",
"rootId"]);"childNodes"in t&&t.childNodes.forEach(function(X){pzp(A,X,f)})},Ep7=function(A,t,f){t.type===0||t.rootId||(t.rootId=f);
"childNodes"in t&&t.childNodes.forEach(function(X){Ep7(A,X,f)})};var Nzs=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},D1S=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.J=D1S.prototype;_.J.getId=function(A){var t;return(t=this.styleIDMap.get(A))!=null?t:-1};
_.J.has=function(A){return this.styleIDMap.has(A)};
_.J.add=function(A,t){if(this.has(A))return this.getId(A);t=t===void 0?this.id++:t;this.styleIDMap.set(A,t);this.idStyleMap.set(t,A);return t};
_.J.getStyle=function(A){return this.idStyleMap.get(A)||null};
_.J.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.J.generateId=function(){return this.id++};var Fa7=function(){this.length=0;this.tail=this.head=null};
Fa7.prototype.get=function(A){if(A>=this.length)throw Error("$e");for(var t=this.head,f=0;f<A;f++){var X=void 0;t=((X=t)==null?void 0:X.next)||null}return t};
var Irk=function(A,t){var f={value:t,previous:null,next:null};t.__ln=f;if(t.previousSibling&&"__ln"in t.previousSibling){var X=t.previousSibling.__ln.next;f.next=X;f.previous=t.previousSibling.__ln;t.previousSibling.__ln.next=f;X&&(X.previous=f)}else t.nextSibling&&"__ln"in t.nextSibling&&t.nextSibling.__ln.previous?(X=t.nextSibling.__ln.previous,f.previous=X,f.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=f,X&&(X.next=f)):(A.head&&(A.head.previous=f),f.next=A.head,A.head=f);f.next===null&&
(A.tail=f);A.length++};
Fa7.prototype.removeNode=function(A){var t=A.__ln;this.head&&(t.previous?(t.previous.next=t.next)?t.next.previous=t.previous:this.tail=t.previous:(this.head=t.next)?this.head.previous=null:this.tail=null,A.__ln&&delete A.__ln,this.length--)};
var x1i=function(A,t){return A+"@"+t},GYx=function(){var A=this;
this.locked=this.JSC$11938_frozen=!1;this.texts=[];this.attributes=[];this.attributeMap=new WeakMap;this.removes=[];this.mapRemoves=[];this.movedMap={};this.addedSet=new Set;this.movedSet=new Set;this.droppedSet=new Set;this.removesSubTreeCache=new Set;this.processMutations=function(t){t.forEach(A.JSC$11938_processMutation);A.emit()};
this.emit=function(){if(!A.JSC$11938_frozen&&!A.locked){for(var t=[],f=new Set,X=new Fa7,Q=function(O){for(var c=-2;c===-2;)c=(O=O&&O.nextSibling)&&A.mirror.getId(O);return c},q=function(O){var c=oW(O);
if(c&&Xoz(O)){var B=!1;if(O.nodeType===Node.TEXT_NODE){var h=c.tagName;if(h==="TEXTAREA")return;h==="STYLE"&&A.addedSet.has(c)&&(B=!0)}c=VV(c)?A.mirror.getId(fWx(O)):A.mirror.getId(c);h=Q(O);if(c===-1||h===-1)return Irk(X,O);if(B=aW(O,{doc:A.doc,mirror:A.mirror,blockClass:A.blockClass,blockSelector:A.blockSelector,maskTextClass:A.maskTextClass,maskTextSelector:A.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:A.inlineStylesheet,maskInputOptions:A.maskInputOptions,maskTextFn:A.maskTextFn,
maskInputFn:A.maskInputFn,slimDOMOptions:A.slimDOMOptions,dataURLOptions:A.dataURLOptions,recordCanvas:A.recordCanvas,inlineImages:A.inlineImages,onSerialize:function(W){W.nodeName==="IFRAME"&&A.mirror.nodeMetaMap.get(W)&&gwT(A.iframeManager,W);AH5(W,A.mirror)&&wos(A.stylesheetManager,W);O&&Yi(O)&&sPq(A.shadowDomManager,Yi(O),A.doc)},
onIframeLoad:function(W,L){kY5(A.iframeManager,W,L);W.contentWindow&&W.contentDocument&&rHb(A.shadowDomManager,W.contentWindow.Element,W.contentDocument)},
onStylesheetLoad:function(W,L){A95(A.stylesheetManager,W,L)},
cssCaptured:B}))t.push({parentId:c,nextId:h,node:B}),f.add(B.id)}};A.mapRemoves.length;)WaT(A.mirror,A.mapRemoves.shift());
for(var e=_.U(A.movedSet),G=e.next();!G.done;G=e.next())G=G.value,JHs(A.removesSubTreeCache,G)&&!A.movedSet.has(oW(G))||q(G);e=_.U(A.addedSet);for(G=e.next();!G.done;G=e.next())G=G.value,e00(A.droppedSet,G)||JHs(A.removesSubTreeCache,G)?e00(A.movedSet,G)?q(G):A.droppedSet.add(G):q(G);for(G=null;X.length;){e=null;if(G){var N=A.mirror.getId(oW(G.value)),z=Q(G.value);N!==-1&&z!==-1&&(e=G)}if(!e)for(G=X.tail;G;){var T=G;G=G.previous;if(T&&(N=A.mirror.getId(oW(T.value)),Q(T.value)!==-1))if(N!==-1){e=T;
break}else if((N=oW(T.value))&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(N=j0(N),A.mirror.getId(N)!==-1)){e=T;break}}if(!e){for(;X.head;)X.removeNode(X.head.value);break}G=e.previous;X.removeNode(e.value);q(e.value)}q={texts:A.texts.map(function(O){var c=O.node,B=oW(c);B&&B.tagName==="TEXTAREA"&&A.genTextAreaValueMutation(B);return{id:A.mirror.getId(c),value:O.value}}).filter(function(O){return!f.has(O.id)}).filter(function(O){return A.mirror.has(O.id)}),
attributes:A.attributes.map(function(O){var c=O.attributes;if(typeof c.style==="string"){var B=JSON.stringify(O.styleDiff),h=JSON.stringify(O._unchangedStyles);B.length<c.style.length&&(B+h).split("var(").length===c.style.split("var(").length&&(c.style=O.styleDiff)}return{id:A.mirror.getId(O.node),attributes:c}}).filter(function(O){return!f.has(O.id)}).filter(function(O){return A.mirror.has(O.id)}),
removes:A.removes,adds:t};if(q.texts.length||q.attributes.length||q.removes.length||q.adds.length)A.texts=[],A.attributes=[],A.attributeMap=new WeakMap,A.removes=[],A.addedSet=new Set,A.movedSet=new Set,A.droppedSet=new Set,A.removesSubTreeCache=new Set,A.movedMap={},A.mutationCb(q)}};
this.genTextAreaValueMutation=function(t){var f=A.attributeMap.get(t);f||(f={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},A.attributes.push(f),A.attributeMap.set(t,f));var X=Array.from(d6(t),function(Q){return Z_0(Q)||""}).join("");
f.attributes.value=uZz({element:t,maskInputOptions:A.maskInputOptions,tagName:t.tagName,type:P65(t),value:X,maskInputFn:A.maskInputFn})};
this.JSC$11938_processMutation=function(t){if(!sbs(t.target,A.mirror,A.slimDOMOptions))switch(t.type){case "characterData":var f=Z_0(t.target);sg(t.target,A.blockClass,A.blockSelector,!1)||f===t.oldValue||A.texts.push({value:xU5(t.target,A.maskTextClass,A.maskTextSelector,!0)&&f?A.maskTextFn?A.maskTextFn(f,w_x(t.target)):f.replace(/[\S]/g,"*"):f,node:t.target});break;case "attributes":f=t.target;var X=t.attributeName,Q=t.target.getAttribute(X);if(X==="value"){var q=P65(f);Q=uZz({element:f,maskInputOptions:A.maskInputOptions,
tagName:f.tagName,type:q,value:Q,maskInputFn:A.maskInputFn})}if(sg(t.target,A.blockClass,A.blockSelector,!1)||Q===t.oldValue)break;q=A.attributeMap.get(t.target);if(f.tagName==="IFRAME"&&X==="src"&&!A.keepIframeSrcFn(Q))if(f.contentDocument)break;else X="rr_src";q||(q={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},A.attributes.push(q),A.attributeMap.set(t.target,q));X==="type"&&f.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&f.setAttribute("data-rr-is-password","true");
if(!DUb(f.tagName,X))if(q.attributes[X]=ngb(A.doc,f.tagName.toLowerCase(),X.toLowerCase(),Q),X==="style"){if(!A.unattachedDoc)try{A.unattachedDoc=document.implementation.createHTMLDocument()}catch(z){A.unattachedDoc=A.doc}X=A.unattachedDoc.createElement("span");t.oldValue&&X.setAttribute("style",t.oldValue);Q=_.U(Array.from(f.style));for(var e=Q.next();!e.done;e=Q.next()){e=e.value;var G=f.style.getPropertyValue(e),N=f.style.getPropertyPriority(e);G!==X.style.getPropertyValue(e)||N!==X.style.getPropertyPriority(e)?
q.styleDiff[e]=N===""?G:[G,N]:q._unchangedStyles[e]=[G,N]}X=_.U(Array.from(X.style));for(Q=X.next();!Q.done;Q=X.next())Q=Q.value,f.style.getPropertyValue(Q)===""&&(q.styleDiff[Q]=!1)}else X==="open"&&f.tagName==="DIALOG"&&(f.matches("dialog:modal")?q.attributes.rr_open_mode="modal":q.attributes.rr_open_mode="non-modal");break;case "childList":sg(t.target,A.blockClass,A.blockSelector,!0)||(t.target.tagName==="TEXTAREA"?A.genTextAreaValueMutation(t.target):(t.addedNodes.forEach(function(z){return A.genAdds(z,
t.target)}),t.removedNodes.forEach(function(z){var T=A.mirror.getId(z),O=VV(t.target)?A.mirror.getId(j0(t.target)):A.mirror.getId(t.target);
sg(t.target,A.blockClass,A.blockSelector,!1)||sbs(z,A.mirror,A.slimDOMOptions)||A.mirror.getId(z)===-1||(A.addedSet.has(z)?(QP5(A.addedSet,z),A.droppedSet.add(z)):A.addedSet.has(t.target)&&T===-1||kWx(t.target,A.mirror)||(A.movedSet.has(z)&&A.movedMap[T+"@"+O]?QP5(A.movedSet,z):(A.removes.push({parentId:O,id:T,isShadow:VV(t.target)&&Zf(t.target)?!0:void 0}),qEu(z,A.removesSubTreeCache))),A.mapRemoves.push(z))})))}};
this.genAdds=function(t,f){if(!jD8(A.processedNodeManager,t,A)&&!A.addedSet.has(t)&&!A.movedSet.has(t)){if(A.mirror.nodeMetaMap.has(t)){if(sbs(t,A.mirror,A.slimDOMOptions))return;A.movedSet.add(t);var X=null;f&&A.mirror.nodeMetaMap.has(f)&&(X=A.mirror.getId(f));X&&X!==-1&&(A.movedMap[x1i(A.mirror.getId(t),X)]=!0)}else A.addedSet.add(t),A.droppedSet.delete(t);sg(t,A.blockClass,A.blockSelector,!1)||(d6(t).forEach(function(Q){return A.genAdds(Q)}),t&&Yi(t)&&d6(Yi(t)).forEach(function(Q){A.processedNodeManager.add(Q,
A);
A.genAdds(Q,t)}))}}};
_.J=GYx.prototype;_.J.init=function(A){var t=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(f){t[f]=A[f]})};
_.J.freeze=function(){this.JSC$11938_frozen=!0;this.canvasManager.freeze()};
_.J.unfreeze=function(){this.JSC$11938_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.J.isFrozen=function(){return this.JSC$11938_frozen};
_.J.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.J.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.J.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var r6=[],X5=window.Proxy,iLu=["INPUT","TEXTAREA","SELECT"],OLg=new WeakMap;var Y1i=new Map,IWx=function(A,t,f){if(A&&(Fm5(A,t)||typeof A==="object")){t=A.constructor.name;var X=Y1i.get(f);X||(X=new Map,Y1i.set(f,X));X.has(t)||X.set(t,[]);f=X.get(t);t=f.indexOf(A);t===-1&&(t=f.length,f.push(A));return t}},x3z=function(A,t,f){return A.map(function(X){return D3x(X,t,f)})},Fm5=function(A,t){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(f){return typeof t[f]===
"function"}).find(function(f){return A instanceof t[f]})};var V7l=oG(["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = `${width}-${height}`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for `converToBlobs`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// `as any` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"],
["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = \\`\\${width}-\\${height}\\`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for \\`converToBlobs\\`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// \\`as any\\` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"]),
$w5=_.QP(V7l.join(""));var aWs=function(A){var t=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11980_frozen=!1;this.JSC$11980_processMutation=function(N,z){if(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)t.rafStamps.invokeId=t.rafStamps.latestId;t.pendingCanvasMutations.has(N)||t.pendingCanvasMutations.set(N,[]);t.pendingCanvasMutations.get(N).push(z)};
var f=A.sampling===void 0?"all":A.sampling,X=A.win,Q=A.blockClass,q=A.blockSelector,e=A.recordCanvas,G=A.dataURLOptions;this.mutationCb=A.mutationCb;this.mirror=A.mirror;e&&f==="all"&&ZdE(this,X,Q,q);e&&typeof f==="number"&&opi(this,f,X,Q,q,{dataURLOptions:G})};
_.J=aWs.prototype;_.J.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.J.freeze=function(){this.JSC$11980_frozen=!0};
_.J.unfreeze=function(){this.JSC$11980_frozen=!1};
_.J.lock=function(){this.locked=!0};
_.J.unlock=function(){this.locked=!1};
var opi=function(A,t,f,X,Q,q){var e=YE5(f,X,Q,!0),G=new Map,N=Bkx(Hns());N.onmessage=function(h){var W=h.data.id;G.set(W,!1);"base64"in h.data&&(h=h.data,A.mutationCb({id:W,type:QX["2D"],commands:[{property:"clearRect",args:[0,0,h.width,h.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:h.base64}],type:h.type}]},0,0]}]}))};
var z=1E3/t,T=0,O=function(){var h=[];f.document.querySelectorAll("canvas").forEach(function(W){sg(W,X,Q,!0)||h.push(W)});
return h},c=function(h){T&&h-T<z||(T=h,O().forEach(function(W){var L,E,D,S,Z;
return _.l(function(d){if(d.nextAddress==1){L=A.mirror.getId(W);if(G.get(L)||W.width===0||W.height===0)return d.return();G.set(L,!0);["webgl","webgl2"].includes(W.__context)&&(E=W.getContext(W.__context),((D=E)==null?void 0:(S=D.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&E.clear(E.COLOR_BUFFER_BIT));return d.yield(createImageBitmap(W),2)}Z=d.yieldResult;N.postMessage({id:L,bitmap:Z,width:W.width,height:W.height,dataURLOptions:q.dataURLOptions},[Z]);_.LO(d)})}));
B=requestAnimationFrame(c)};
var B=requestAnimationFrame(c);A.resetObservers=function(){e();cancelAnimationFrame(B)}},ZdE=function(A,t,f,X){d18(A);
S17(A);var Q=YE5(t,f,X,!1),q=jP0(A.JSC$11980_processMutation.bind(A),t,f,X),e=ZLs(A.JSC$11980_processMutation.bind(A),t,f,X);A.resetObservers=function(){Q();q();e()}},S17=function(A){requestAnimationFrame(function(){return $1p(A)})},d18=function(A){var t=function(f){A.rafStamps.latestId=f;
requestAnimationFrame(t)};
requestAnimationFrame(t)},$1p=function(A){A.pendingCanvasMutations.forEach(function(t,f){var X=A.mirror.getId(f);
HdK(A,f,X)});
requestAnimationFrame(function(){return $1p(A)})},HdK=function(A,t,f){if(!A.JSC$11980_frozen&&!A.locked){var X=A.pendingCanvasMutations.get(t);
if(X&&f!==-1){var Q=X.map(function(q){q=Object.assign({},q);return delete q.type,q});
A.mutationCb({id:f,type:X[0].type,commands:Q});A.pendingCanvasMutations.delete(t)}}};var $3u=function(){this.nodeMap=new WeakMap;this.active=!1},jD8=function(A,t,f){return(A=A.nodeMap.get(t))&&Array.from(A).some(function(X){return X!==f})};
$3u.prototype.add=function(A,t){var f=this;this.active||(this.active=!0,requestAnimationFrame(function(){f.nodeMap=new WeakMap;f.active=!1}));
this.nodeMap.set(A,(this.nodeMap.get(A)||new Set).add(t))};
$3u.prototype.destroy=function(){};var Kmx=function(A){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=A.mutationCb;this.scrollCb=A.scrollCb;this.bypassOptions=A.bypassOptions;this.mirror=A.mirror;this.init()};
Kmx.prototype.init=function(){this.reset();rHb(this,Element,document)};
var sPq=function(A,t,f){if(Zf(t)&&!A.shadowDoms.has(t)){A.shadowDoms.add(t);var X=lWg(Object.assign({},A.bypassOptions,{doc:f,mutationCb:A.mutationCb,mirror:A.mirror,shadowDomManager:A}),t);A.restoreHandlers.push(function(){return X.disconnect()});
A.restoreHandlers.push(PRz(Object.assign({},A.bypassOptions,{scrollCb:A.scrollCb,doc:t,mirror:A.mirror})));setTimeout(function(){t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&R0l(A.bypassOptions.stylesheetManager,t.adoptedStyleSheets,A.mirror.getId(j0(t)));A.restoreHandlers.push(m3x({mirror:A.mirror,stylesheetManager:A.bypassOptions.stylesheetManager},t))},0)}},rHb=function(A,t,f){A.restoreHandlers.push(xi(t.prototype,"attachShadow",function(X){return function(Q){Q=X.call(this,Q);
var q=Yi(this);q&&Xoz(this)&&sPq(A,q,f);return Q}}))};
Kmx.prototype.reset=function(){this.restoreHandlers.forEach(function(A){try{A()}catch(t){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var d35=function(A){this.trackedLinkElements=new WeakSet;this.styleMirror=new D1S;this.mutationCb=A.mutationCb;this.adoptedStyleSheetCb=A.adoptedStyleSheetCb},A95=function(A,t,f){"_cssText"in f.attributes&&A.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:f.id,attributes:f.attributes}]});wos(A,t)},wos=function(A,t){A.trackedLinkElements.has(t)||A.trackedLinkElements.add(t)},R0l=function(A,t,f){if(t.length!==0){f={id:f,
styleIds:[]};var X=[];t=_.U(t);for(var Q=t.next(),q={};!Q.done;q={sheet$jscomp$3:void 0},Q=t.next())q.sheet$jscomp$3=Q.value,Q=void 0,A.styleMirror.has(q.sheet$jscomp$3)?Q=A.styleMirror.getId(q.sheet$jscomp$3):(Q=A.styleMirror.add(q.sheet$jscomp$3),X.push({styleId:Q,rules:Array.from(q.sheet$jscomp$3.rules||CSSRule,function(e){return function(G,N){return{rule:GWz(G,e.sheet$jscomp$3.href),index:N}}}(q))})),f.styleIds.push(Q);
X.length>0&&(f.styles=X);A.adoptedStyleSheetCb(f)}};
d35.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var U9,ow5,HLx;try{if(Array.from([1],function(A){return A*2})[0]!==2){var arK=document.createElement("iframe");
document.body.appendChild(arK);var Ka8;Array.from=((Ka8=arK.contentWindow)==null?void 0:Ka8.Array.from)||Array.from;document.body.removeChild(arK)}}catch(A){console.debug("Unable to override Array.from",A)}var JG=new KP;var lzz="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(" "),GEq={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},e6l=null,X0g=null;var N8p={},ugx=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 B8l={text:1},T8b={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var gpT=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,wzE={CONSTANT:{isUnwrappable:function(A){return A instanceof wL},
unwrap:zw7},JAVASCRIPT:{isUnwrappable:function(A){return A instanceof _.X3},
unwrap:qW},HTML:{isUnwrappable:function(A){return A instanceof gW},
unwrap:function(A){return si(A)}},
RESOURCE_URL:{isUnwrappable:function(A){return A instanceof Lb},
unwrap:_.Ei},STRING:{isUnwrappable:function(A){return A instanceof Object},
unwrap:function(A){return String(A)}},
STYLE:{isUnwrappable:function(A){return typeof A==="string"},
unwrap:function(A){return A}},
URL:{isUnwrappable:function(A){return xl(A)},
unwrap:_.j3}},sDf={CONSTANT:Mh0,JAVASCRIPT:Mh0,HTML:function(A){A=A instanceof gW?A:wW(String(A).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return si(A)},
RESOURCE_URL:Mh0,STRING:String,STYLE:Mh0,URL:function(A,t){A=gpT.test(A)?A:void 0;return A===void 0?t:A}};var Edb=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,CeT=/[\t\n\f\r ]+/,R6u=/[\t\n\f\r ,]+/g,brx=function(A,t,f){return f},Ni={},kRl=function(){var A=function(){var X={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",X):X}(),t=A.createHTML(""),f=A.createScript("");
A=A.createScriptURL("");return{INNOCUOUS_STRING:t,INNOCUOUS_SCRIPT:f,INNOCUOUS_URL:A}}(),lS=kRl.INNOCUOUS_STRING,p0z=kRl.INNOCUOUS_SCRIPT,L1z=kRl.INNOCUOUS_URL;var rJk=function(A){var t=ndx(A);return function(f,X,Q,q){return q?t(q,X,Q,f):lS}}({reportHandler:function(A,t){if(A)try{throw Error(t);
}catch(f){_.HQ(f)}},
safeTypesBridge:function(A,t,f){var X=wzE[t];return X.isUnwrappable(A)&&(X=X.unwrap(A,f),X!==f)?X:(0,sDf[t])(String(A),f)},
allowedIdentifierPrefixes:[""]});if(Iw!==void 0)throw Error("bf");Iw=rJk;if(Iw!==rJk)throw Error("cf");uS("Injectable",[]);var qUu=uS("Inject",[["token",void 0]]),U$T=uS("Optional",[]);uS("Injectable",[]);var eAp=uS("Self",[]),GI0=uS("SkipSelf",[]);uS("Host",[]);var A1w={},tqS=function(){};
tqS.prototype.resolve=function(){throw Error("ef");};
tqS.prototype.addProvider=function(){throw Error("ef");};var Xr0=Function;var fCT=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,XIT=function(){this._reflect=window.Reflect};
_.J=XIT.prototype;_.J.factory=function(A){return function(){return new (Function.prototype.bind.apply(A,[null].concat(_.YV(_.Hu.apply(0,arguments)))))}};
_.J._zipTypesAndAnnotations=function(A,t){var f=typeof A==="undefined"?Array(t.length):Array(A.length);for(var X=0;X<f.length;X++)f[X]=typeof A==="undefined"?[]:A[X]!=Object?[A[X]]:[],t&&F1x(t[X])&&(f[X]=f[X].concat(t[X]));return f};
_.J._ownParameters=function(A,t){if(fCT.exec(A.toString()))return null;if(A.parameters&&A.parameters!==t.parameters)return A.parameters;var f=A.ctorParameters;return f&&f!==t.ctorParameters?(t=typeof f==="function"?f():f,A=t.map(function(X){return X&&X.type}),t=t.map(function(X){return X&&xHx(X.decorators)}),this._zipTypesAndAnnotations(A,t)):F1x(this._reflect)&&F1x(this._reflect.getOwnMetadata)&&(t=this._reflect.getOwnMetadata("parameters",A),(f=this._reflect.getOwnMetadata("design:paramtypes",A))||
t)?this._zipTypesAndAnnotations(f,t):Array(A.length).fill(void 0)};
_.J.parameters=function(A){if(!A.prototype)return[];var t=Object.getPrototypeOf(A.prototype).constructor;(A=this._ownParameters(A,t))||t===Object||(A=this.parameters(t));return A||[]};
_.J._ownAnnotations=function(A,t){if(A.annotations&&A.annotations!==t.annotations)return A=A.annotations,typeof A==="function"&&A.annotations&&(A=A.annotations),A;if(A.decorators&&A.decorators!==t.decorators)return xHx(A.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",A)};
_.J.annotations=function(A){var t=Object.getPrototypeOf(A.prototype).constructor;A=this._ownAnnotations(A,t)||[];return(t!==Object?this.annotations(t):[]).concat(A)};
_.J._ownPropMetadata=function(A,t){if(A.propMetadata&&A.propMetadata!==t.propMetadata)return A=A.propMetadata,typeof A==="function"&&A.propMetadata&&(A=A.propMetadata),A;if(A.propDecorators&&A.propDecorators!==t.propDecorators){var f=A.propDecorators,X={};Object.keys(f).forEach(function(Q){X[Q]=xHx(f[Q])});
return X}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",A)};
_.J.propMetadata=function(A){var t=Object.getPrototypeOf(A.prototype).constructor,f={};if(t!==Object){var X=this.propMetadata(t);Object.keys(X).forEach(function(q){f[q]=X[q]})}var Q=this._ownPropMetadata(A,t);
Q&&Object.keys(Q).forEach(function(q){var e=[];f.hasOwnProperty(q)&&e.push.apply(e,_.YV(f[q]));e.push.apply(e,_.YV(Q[q]));f[q]=e});
return f};
_.J.getter=function(A){return function(t){return t[A]}};
_.J.setter=function(A){return function(t,f){return t[A]=f}};
_.J.method=function(A){return function(t,f){if(!t[A])throw Error("ff`"+A);return t[A].apply(t,f)}};var Q1T=function(){};var qLT=function(A){this.reflectionCapabilities=A};
_.R(qLT,Q1T);_.J=qLT.prototype;_.J.factory=function(A){return this.reflectionCapabilities.factory(A)};
_.J.parameters=function(A){return this.reflectionCapabilities.parameters(A)};
_.J.annotations=function(A){return this.reflectionCapabilities.annotations(A)};
_.J.propMetadata=function(A){return this.reflectionCapabilities.propMetadata(A)};
_.J.getter=function(A){return this.reflectionCapabilities.getter(A)};
_.J.setter=function(A){return this.reflectionCapabilities.setter(A)};
_.J.method=function(A){return this.reflectionCapabilities.method(A)};var Hr5=new qLT(new XIT);var tS=function(A,t){this.token=A;this.id=t;if(A===void 0||A===null)throw Error("lf");};
_.PV.Object.defineProperties(tS.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return zr(this.token)}}});
_.PV.Object.defineProperties(tS,{JSC$12036_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Tr.JSC$12040_numberOfKeys}}});
var J1T=function(){this._allKeys=new Map};
J1T.prototype.get=function(A){if(A instanceof tS)return A;if(this._allKeys.has(A))return this._allKeys.get(A);var t=new tS(A,tS.JSC$12036_numberOfKeys);this._allKeys.set(A,t);return t};
_.PV.Object.defineProperties(J1T.prototype,{JSC$12040_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Tr=new J1T;var lo5=function(A,t,f){this.key=A;this.optional=t;this.visibility=f},K1T=function(A){return new lo5(A,!1,null)},w0z=[],r95=function(A,t,f){this.key=A;
this.resolvedFactories=t;this.multiProvider=f},sRT=function(A,t,f,X){this.factory=A;
this.dependencies=t;this.providerClass=f;this.providerValue=X};var fX={},XL=function(A,t){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=t===void 0?null:t;A=_.U(A);for(t=A.next();!t.done;t=A.next())this.addProvider(t.value)};
_.J=XL.prototype;_.J.addProvider=function(A){this.keyIdToIndex.set(A.key.id,this.keyIds.length);this.providers.push(A);this.keyIds.push(A.key.id);this.objs.push(fX)};
_.J.resolve=function(A,t){t=t===void 0?A1w:t;return this._getByKey(Tr.get(Ps(A)),null,t)};
_.J._new=function(A){if(this.constructedKeyIds[A.key.id])throw dH5(this,A.key);this.constructedKeyIds[A.key.id]=!0;return this._instantiateProvider(A)};
_.J._instantiateProvider=function(A){if(A.multiProvider){for(var t=Array(A.resolvedFactories.length),f=0;f<A.resolvedFactories.length;++f)t[f]=this._instantiate(A,A.resolvedFactories[f]);return t}return this._instantiate(A,A.resolvedFactories[0])};
_.J._instantiate=function(A,t){var f=this,X=t.factory;try{var Q=t.dependencies.map(function(e){return f._getByReflectiveDependency(e)})}catch(e){throw e.addKey&&e.addKey(this,A.key),e;
}try{var q=X.apply(null,_.YV(Q))}catch(e){throw SAx(this,e,A.key);}return q};
_.J._getByReflectiveDependency=function(A){return this._getByKey(A.key,A.visibility,A.optional?null:A1w)};
_.J._getByKey=function(A,t,f){return A===UFp?this:t instanceof eAp?this._getByKeySelf(A,f):this._getByKeyDefault(A,f,t)};
_.J._getObjByKeyId=function(A){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===A)return this.objs[t]===fX&&(this.objs[t]=this._new(this.providers[t])),this.objs[t];return fX};
_.J._throwOrNull=function(A,t){if(t!==A1w)return t;throw odp(this,A);};
_.J._getByKeySelf=function(A,t){var f=this._getObjByKeyId(A.id);return f!==fX?f:this._throwOrNull(A,t)};
_.J._getByKeyDefault=function(A,t,f){for(var X=f=f instanceof GI0?this.parent:this;f instanceof XL;){var Q=f._getObjByKeyId(A.id);if(Q!==fX)return Q;f=f.parent}Q=void 0;if(f!==null)try{var q=f.resolve(A.token,t);if(q!==fX)return q}catch(e){Q=e}if(!(X instanceof XL&&uXz(A.token))){if(Q)throw Q;return this._throwOrNull(A,t)}for(q=X;q.parent instanceof XL;)q=q.parent;q.addProvider(Ah5({provide:A.token,useClass:A.token}));return q.resolve(A.token,t)};
_.J.toString=function(){return this.displayName};
_.PV.Object.defineProperties(XL.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Ncx(this,function(A){return' "'+A.key.displayName+'" '}).join(", ")+"])"}}});
var UFp=Tr.get(Ps(tqS));(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,m,n){if(e==Array.prototype||e==Object.prototype)return e;e[m]=n.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 m=0;m<e.length;++m){var n=e[m];if(n&&n.Math==Math)return n}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$";var JSCompiler_inline_result$jscomp$0,classes$jscomp$inline_5="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");$jscomp.global.BigInt64Array&&(classes$jscomp$inline_5.push("BigInt64"),
classes$jscomp$inline_5.push("BigUint64"));JSCompiler_inline_result$jscomp$0=classes$jscomp$inline_5;$jscomp.TYPED_ARRAY_CLASSES=JSCompiler_inline_result$jscomp$0;$jscomp.polyfillTypedArrayMethod=function(e,m,n,b){if(m)for(var q=0;q<$jscomp.TYPED_ARRAY_CLASSES.length;q++){var t=$jscomp.TYPED_ARRAY_CLASSES[q]+"Array.prototype."+e;$jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,m,n,b):$jscomp.polyfillUnisolated(t,m,n,b)}};
$jscomp.polyfill=function(e,m,n,b){m&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,m,n,b):$jscomp.polyfillUnisolated(e,m,n,b))};
$jscomp.polyfillUnisolated=function(e,m){var n=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in n))return;n=n[q]}e=e[e.length-1];b=n[e];m=m(b);m!=b&&m!=null&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:m})};
$jscomp.polyfillIsolated=function(e,m,n){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var t=0;t<b.length-1;t++){var u=b[t];if(!(u in e))return;e=e[u]}b=b[b.length-1];n=$jscomp.IS_SYMBOL_NATIVE&&n==="es6"?e[b]:null;m=m(n);m!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:m}):m!==n&&($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:m})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},m=Object.create(new $jscomp.global.Proxy(e,{get:function(n,b,q){return n==e&&b=="q"&&q==m}}));
return m.q===!0}catch(n){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 m=0;return function(){return m<e.length?{done:!1,value:e[m++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var m=function(t,u){this.$jscomp$symbol$id_=t;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:u})};
m.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var n="jscomp_symbol_"+e+"_",b=0,q=function(t){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new m(n+(t||"")+"_"+b++,t)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");$jscomp.defineProperty(Array.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 m=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(m)return m.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,m){return Object.prototype.hasOwnProperty.call(e,m)};
$jscomp.polyfill("WeakMap",function(e){function m(){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 n(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,u)){var h=new n;$jscomp.defineProperty(f,u,{value:h})}}
function t(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof n)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(m())return e;var u="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("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,u))throw Error("WeakMap key fail: "+f);f[u][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,u)?f[u][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)?delete f[u][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function m(){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(m())return e;var n=new WeakMap,b=function(d){this[0]={};this[1]=u();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=u();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 t(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return t(this,function(d){return d.key})};
b.prototype.values=function(){return t(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"?n.has(h)?h=n.get(h):(k=""+ ++A,n.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}},t=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}})},u=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function m(){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 t=q.entries(),u=t.next();if(u.done||u.value[0]!=b||u.value[1]!=b)return!1;u=t.next();return u.done||u.value[0]==b||u.value[0].x!=4||u.value[1]!=u.value[0]?!1:t.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var n=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};
n.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
n.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
n.prototype.clear=function(){this.map_.clear();this.size=0};
n.prototype.has=function(b){return this.map_.has(b)};
n.prototype.entries=function(){return this.map_.entries()};
n.prototype.values=function(){return this.map_.values()};
n.prototype.keys=n.prototype.values;n.prototype[Symbol.iterator]=n.prototype.values;n.prototype.forEach=function(b,q){var t=this;this.map_.forEach(function(u){return b.call(q,u,u,t)})};
return n},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function m(n){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(n);var b=new Set(this);n=$jscomp.checkIsValidIterator(n.keys());for(var q=n.next();!q.done;)b.add(q.value),q=n.next();return b}
return e?e:m},"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,m){return e.size<=m.size?{smallerSetIterator:e.keys(),largerSet:m}:{smallerSetIterator:$jscomp.checkIsValidIterator(m.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 m=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;m.XRegExp=e()}})(function(){return function q(m,n,b){function t(d,f){if(!n[d]){if(!m[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(u)return u(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=n[d]={exports:{}};m[d][0].call(f.exports,function(k){var r=m[d][1][k];return t(r?r:k)},f,f.exports,q,m,n,b)}return n[d].exports}
for(var u=typeof require=="function"&&require,A=0;A<b.length;A++)t(b[A]);return t}({1:[function(m,n){n.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 t(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var u=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,u],"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 v={},B;for(B in f)f.hasOwnProperty(B)&&(r=t(f[B],k),v[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=t(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(!v.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+v[L].pattern.replace(u,function(T,U,O){if(U){if(M=v[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,v[L].names[P]?"\\k<"+v[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(m,n){n.exports=function(b){function q(t,u,A,d){return{name:t,value:u,start:A,end:d}}
b.matchRecursive=function(t,u,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),v=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;u=b(u,r);A=b(A,r);if(v){if(v.length>1)throw Error("Cannot use more than one escape character");v=b.escape(v);var E=new RegExp("(?:"+v+"[\\S\\s]|(?:(?!"+b.union([u,A],"",{conjunction:"or"}).source+")[^"+v+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){v&&(p+=(b.exec(t,E,p,"sticky")||[""])[0].length);d=b.exec(t,u,p);r=b.exec(t,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],t.slice(I,F),I,F)),f[1]&&B.push(q(f[1],t.slice(F,J),F,J)),f[2]&&B.push(q(f[2],t.slice(J,D),J,D)),f[3]&&B.push(q(f[3],t.slice(D,p),D,p))):B.push(t.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&t.length>I&&B.push(q(f[0],t.slice(I),I,t.length));
return B}}},
{}],3:[function(m,n){n.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function t(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function u(k){var r="",v=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=t(B[1]);C>v+1&&(r+="\\u"+h(f(v+1)),C>v+2&&(r+="-\\u"+h(f(C-1))));v=t(B[2]||B[1])});
v<65535&&(r+="\\u"+h(f(v+1)),v<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,v){var B=k[1]==="P"||!!k[2],C=v.indexOf("A")>-1;v=q(k[4]||k[3]);var D=A[v];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(v))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){v=q(D.inverseOf);if(!A.hasOwnProperty(v))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[v];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[v][k])||(r=A[v],v=A[v],C="",v.bmp&&!v.isBmpLast&&(C="["+v.bmp+"]"+(v.astral?"|":"")),v.astral&&(C+=v.astral),v.isBmpLast&&v.bmp&&(C+=(v.astral?"|":"")+"["+v.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[v]["b!"]||(A[v]["b!"]=u(A[v].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,v=0;v<k.length;++v){r=k[v];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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){var b=m("./xregexp");m("./addons/build")(b);m("./addons/matchrecursive")(b);m("./addons/unicode-base")(b);m("./addons/unicode-blocks")(b);m("./addons/unicode-categories")(b);m("./addons/unicode-properties")(b);m("./addons/unicode-scripts")(b);n.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(m,n){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 t(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function u(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=t(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?t(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 v(a,c){var g;if(t(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=t(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 u(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=v(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=t;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:u(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]=u(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]=u(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]=u(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=u(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:"("});n.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var eIS=globalThis.XRegExp;var GKS=-1,lCi=function(A){addEventListener("pageshow",function(t){t.persisted&&(GKS=t.timeStamp,A(t))},!0)};var uyb=function(A,t,f){var X=NUi,Q,q;return function(e){if(t.value>=0&&(e||f)){var G;if((q=t.value-((G=Q)!=null?G:0))||Q===void 0)Q=t.value,t.delta=q,e=t.value,t.rating=e>X[1]?"poor":e>X[0]?"needs-improvement":"good",A(t)}}};var zIb=function(A){requestAnimationFrame(function(){return requestAnimationFrame(function(){return A()})})};var Pzl=function(){var A=performance.getEntriesByType("navigation")[0];if(A&&A.responseStart>0&&A.responseStart<performance.now())return A};var TUi=function(){var A,t;return(t=(A=Pzl())==null?void 0:A.activationStart)!=null?t:0};var QO=-1,i3T=new Set,O37=function(A){if(document.visibilityState==="hidden"){if(A.type==="visibilitychange")for(var t=_.U(i3T),f=t.next();!f.done;f=t.next())f=f.value,f();isFinite(QO)||(QO=A.type==="visibilitychange"?A.timeStamp:0,removeEventListener("prerenderingchange",O37,!0))}},c1p=function(){if(QO<0){var A=TUi(),t,f;
QO=(f=document.prerendering?void 0:(t=globalThis.performance.getEntriesByType("visibility-state").filter(function(X){return X.name==="hidden"&&X.startTime>A})[0])==null?void 0:t.startTime)!=null?f:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",O37,!0);addEventListener("prerenderingchange",O37,!0);lCi(function(){setTimeout(function(){QO=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return QO},
onHidden:function(X){i3T.add(X)}}};var BUE=function(){var A=A===void 0?-1:A;var t=Pzl(),f="navigate";GKS>=0?f="back-forward-cache":t&&(document.prerendering||TUi()>0?f="prerender":document.wasDiscarded?f="restore":t.type&&(f=t.type.replace(/_/g,"-")));return{name:"LCP",value:A,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:f}};var PAx=new WeakMap;var Mq7=function(A){var t=t===void 0?{}:t;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var f=new PerformanceObserver(function(X){Promise.resolve().then(function(){A(X.getEntries())})});
f.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},t));return f}}catch(X){}};var CzT=function(A){var t=!1;return function(){t||(A(),t=!0)}};var hIK=function(A){document.prerendering?addEventListener("prerenderingchange",function(){return A()},!0):A()};var RI7=function(A){var t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?A():(A=CzT(A),addEventListener("visibilitychange",A,{once:!0,capture:!0}),t(function(){A();removeEventListener("visibilitychange",A,{capture:!0})}))};var zAq=function(){};
zAq.prototype._processEntry=function(A){var t;(t=this._onBeforeProcessingEntry)==null||t.call(this,A)};var NUi=[2500,4E3],u4z=function(A){var t=t===void 0?{}:t;hIK(function(){var f=c1p(),X=BUE(),Q=Tcb(t),q=function(c){t.reportAllChanges||(c=c.slice(-1));c=_.U(c);for(var B=c.next();!B.done;B=c.next())B=B.value,Q._processEntry(B),B.startTime<f.firstHiddenTime&&(X.value=Math.max(B.startTime-TUi(),0),X.entries=[B],G())},e=Mq7(q);
if(e){var G=uyb(A,X,t.reportAllChanges);for(var N=CzT(function(){q(e.takeRecords());e.disconnect();G(!0)}),z=function(c){c.isTrusted&&(RI7(N),removeEventListener(c.type,z,{capture:!0}))},T=_.U(["keydown",
"click","visibilitychange"]),O=T.next();!O.done;O=T.next())addEventListener(O.value,z,{capture:!0});lCi(function(c){X=BUE();G=uyb(A,X,t.reportAllChanges);zIb(function(){X.value=performance.now()-c.timeStamp;G(!0)})})}})};var mFE;var b37;_.a=function(){return b37!==void 0?b37:b37=document.createElement("template")};
document.head.appendChild(_.a().content);var W9T;_.CN({_template:function(){if(W9T!==void 0)return W9T;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
var t=A.content,f=t.insertBefore;mFE===void 0&&(mFE=document.createElement("template"));var X=mFE;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return W9T=A},
is:"tp-yt-app-toolbar"});var y1p;var v6l;_.q2=function(){};
_.q2=_.CN({_template:function(){if(v6l!==void 0)return v6l;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;y1p===void 0&&(y1p=document.createElement("template"));var X=y1p;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return v6l=A},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.q2.instance||(_.q2.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(A){this._text===A&&(A+="\u00a0");this._text="";this.async(function(){this._text=A},this.timeout)},
_onIronAnnounce:function(A){A.detail&&A.detail.text&&this.announce(A.detail.text)}});
_.q2.instance=null;_.q2.requestAvailability=function(){_.q2.instance||(_.q2.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.q2.instance):document.addEventListener("load",function(){document.body.appendChild(_.q2.instance)})};var L9K;var pI8;/*

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
*/
_.CN({_template:function(){if(pI8!==void 0)return pI8;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;L9K===void 0&&(L9K=document.createElement("template"));var X=L9K;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return pI8=A},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.HY,_.Vt],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(A){this.$.textarea.selectionStart=A},set selectionEnd(A){this.$.textarea.selectionEnd=A},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var A=this.$.textarea.validity.valid;A&&(this.required&&this.value===""?A=!1:this.hasValidator()&&(A=_.HY.validate.call(this,this.value)));this.invalid=!A;this.fire("iron-input-validate");return A},
_bindValueChanged:function(A){this.value=A},
_valueChanged:function(A){var t=this.textarea;t&&(t.value!==A&&(t.value=A||A===0?A:""),this.bindValue=A,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(A){var t=_.iS(A).path;this.value=t?t[0].value:A.target.value},
_constrain:function(A){var t;A=A||[""];for(t=this.maxRows>0&&A.length>this.maxRows?A.slice(0,this.maxRows):A.slice(0);this.rows>0&&t.length<this.rows;)t.push("");return t.join("\n")+"\u00a0"},
_valueForMirror:function(){var A=this.textarea;if(A)return this.tokens=A&&A.value?A.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var E6f;var n6p;_.CN({_template:function(){if(n6p!==void 0)return n6p;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
var t=A.content,f=t.insertBefore;E6f===void 0&&(E6f=document.createElement("template"));var X=E6f;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return n6p=A},
is:"tp-yt-iron-collapse",behaviors:[_.K9],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(A,t){A=A==="auto"?"":A;t=t&&!this.noAnimation&&this.isAttached&&this._desiredSize!==A;this._desiredSize=A;this._updateTransition(!1);t&&(t=this._calcSize(),A===""&&(this.style[this._dimensionMax]="",A=this._calcSize()),this.style[this._dimensionMax]=t,this.scrollTop=this.scrollTop,this._updateTransition(!0),t=A!==t);this.style[this._dimensionMax]=A;t||this._transitionEnd()},
enableTransition:function(A){_.IY._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!A},
_updateTransition:function(A){this.style.transitionDuration=A&&!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(A){_.iS(A).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var DFK;var F9i;var ICp=void 0,xFK={properties:{sizingTarget:{type:Object,value:function(){var A;return(A=this.hostElement)!=null?A: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 A,t=_.iS((A=this.hostElement)!=null?A:
this).parentNode;t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t=t.host);return t},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 A;this._memoizedIsRTL=window.getComputedStyle((A=this.hostElement)!=null?A:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var A;window.getComputedStyle((A=this.hostElement)!=null?A: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 A,t=window.getComputedStyle((A=this.hostElement)!=null?A:this);A=window.getComputedStyle(this.sizingTarget);var f,X,Q;this._fitInfo={inlineStyle:{top:((f=this.hostElement)!=null?f:this).style.top||"",left:((X=this.hostElement)!=null?X:this).style.left||"",position:((Q=this.hostElement)!=null?Q:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:t.top!=="auto"?"top":t.bottom!=="auto"?"bottom":null,horizontally:t.left!=="auto"?"left":t.right!=="auto"?"right":null},sizedBy:{height:A.maxHeight!=="none",width:A.maxWidth!=="none",minWidth:parseInt(A.minWidth,10)||0,minHeight:parseInt(A.minHeight,10)||0},margin:{top:parseInt(t.marginTop,10)||0,right:parseInt(t.marginRight,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0}}}},
resetFit:function(){var A=this._fitInfo||{},t;for(t in A.sizerInlineStyle)this.sizingTarget.style[t]=A.sizerInlineStyle[t];for(t in A.inlineStyle){var f=void 0;((f=this.hostElement)!=null?f:this).style[t]=A.inlineStyle[t]}this._fitInfo=null},
refit:function(){var A=this.sizingTarget.scrollLeft,t=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=A;this.sizingTarget.scrollTop=t},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var A;((A=this.hostElement)!=null?A:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var t;((t=this.hostElement)!=null?t:this).style.left="0px";var f;((f=this.hostElement)!=null?f:this).style.top="0px";var X,Q=((X=this.hostElement)!=null?X:this).getBoundingClientRect();t=this.__getNormalizedRect(this.positionTarget);X=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(X={left:X.left+24,right:X.right-24,top:X.top+24,bottom:X.bottom-24});if(this.expandSizingTargetForScrollbars){var q=this.sizingTarget.offsetWidth;var e=this.sizingTarget.offsetHeight;var G=this.sizingTarget.clientWidth;var N=this.sizingTarget.clientHeight}A=this._fitInfo.margin;t=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:Q.width+A.left+A.right,height:Q.height+A.top+A.bottom},Q,t,X);var z=t.left+A.left,T=t.top+A.top;f=Math.min(X.right-A.right,z+Q.width);var O=Math.min(X.bottom-
A.bottom,T+Q.height);z=Math.max(X.left+A.left,Math.min(z,f-this._fitInfo.sizedBy.minWidth));T=Math.max(X.top+A.top,Math.min(T,O-this._fitInfo.sizedBy.minHeight));f=Math.max(f-z,this._fitInfo.sizedBy.minWidth);O=Math.max(O-T,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=f+"px";this.sizingTarget.style.maxHeight=O+"px";z-=Q.left;Q=T-Q.top;var c;((c=this.hostElement)!=null?c:this).style.left=z+"px";var B;((B=this.hostElement)!=null?B:this).style.top=Q+"px";if(this.expandSizingTargetForScrollbars){c=
this.sizingTarget.offsetHeight;e=c-this.sizingTarget.clientHeight-(e-N);if(e>0){this.sizingTarget.style.maxHeight=Math.min(X.height-A.top-A.bottom,O+e)+"px";e=this.sizingTarget.offsetHeight;N=e-c;var h;t.verticalAlign==="top"?h=Q:t.verticalAlign==="middle"?h=Q-N/2:t.verticalAlign==="bottom"&&(h=Q-N);h=Math.max(X.top+A.top,Math.min(h,X.bottom-A.bottom-e));var W;((W=this.hostElement)!=null?W:this).style.top=h+"px"}h=this.sizingTarget.offsetWidth;q=h-this.sizingTarget.clientWidth-(q-G);if(q>0){ICp!==
void 0?G=ICp:(G=document.createElement("div"),Object.assign(G.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),W=document.createElement("div"),W.style.width="200px",W.style.height="200px",G.appendChild(W),document.body.appendChild(G),ICp=Math.abs(G.offsetWidth-100)>1?G.offsetWidth-G.clientWidth:0,document.body.removeChild(G),G=ICp);this.sizingTarget.style.maxWidth=Math.min(X.width-A.left-A.right,f+q-G)+"px";q=this.sizingTarget.offsetWidth+G;G=q-h;var L;
t.horizontalAlign==="left"?L=z:t.horizontalAlign==="center"?L=z-G/2:t.horizontalAlign==="right"&&(L=z-G);L=Math.max(X.left+A.left,Math.min(L,X.right-A.right-q));var E;((E=this.hostElement)!=null?E:this).style.left=L+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var A=this._fitInfo;if(!A.positionedBy.vertically){var t;((t=this.hostElement)!=null?t:this).style.position="fixed";var f;((f=this.hostElement)!=null?f:this).style.top="0px"}if(!A.positionedBy.horizontally){var X;((X=this.hostElement)!=null?X:this).style.position="fixed";var Q;((Q=this.hostElement)!=null?Q:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var q;t=((q=this.hostElement)!=null?q:this).getBoundingClientRect();
A.sizedBy.height||this.__sizeDimension(t,A.positionedBy.vertically,"top","bottom","Height");A.sizedBy.width||this.__sizeDimension(t,A.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(A,t,f,X,Q){this.__sizeDimension(A,t,f,X,Q)},
__sizeDimension:function(A,t,f,X,Q){var q=this._fitInfo,e=this.__getNormalizedRect(this.fitInto);e=Q==="Width"?e.width:e.height;A=(t=t===X)?e-A[X]:A[f];f=q.margin[t?f:X];X="offset"+Q;var G;q=((G=this.hostElement)!=null?G:this)[X]-this.sizingTarget[X];this.sizingTarget.style["max"+Q]=e-f-A-q+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var A=this._fitInfo.positionedBy;if(!A.vertically||!A.horizontally){var t;((t=this.hostElement)!=null?t:this).style.position="fixed";if(!A.vertically){var f;((f=this.hostElement)!=null?f:this).style.top="0px"}if(!A.horizontally){var X;((X=this.hostElement)!=null?X:this).style.left="0px"}var Q;t=((Q=this.hostElement)!=null?Q:this).getBoundingClientRect();Q=this.__getNormalizedRect(this.fitInto);if(!A.vertically){f=Q.top-t.top+(Q.height-
t.height)/2;var q;((q=this.hostElement)!=null?q:this).style.top=f+"px"}if(!A.horizontally){A=Q.left-t.left+(Q.width-t.width)/2;var e;((e=this.hostElement)!=null?e:this).style.left=A+"px"}}}},
__getNormalizedRect:function(A){return A===document.documentElement||A===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:A.getBoundingClientRect()},
__getOffscreenArea:function(A,t,f){return Math.abs(Math.min(0,A.top)+Math.min(0,f.bottom-(A.top+t.height)))*t.width+Math.abs(Math.min(0,A.left)+Math.min(0,f.right-(A.left+t.width)))*t.height},
__getPosition:function(A,t,f,X,Q,q){var e=[{verticalAlign:"top",horizontalAlign:"left",top:Q.top+this.verticalOffset,left:Q.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:Q.top+this.verticalOffset,left:Q.right-f.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:Q.bottom-f.height-this.verticalOffset,left:Q.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:Q.bottom-f.height-this.verticalOffset,left:Q.right-f.width-
this.horizontalOffset}];if(this.noOverlap){for(var G=0,N=e.length;G<N;G++){var z={},T;for(T in e[G])z[T]=e[G][T];e.push(z)}e[0].top=e[1].top+=Q.height;e[2].top=e[3].top-=Q.height;e[4].left=e[6].left+=Q.width;e[5].left=e[7].left-=Q.width}t=t==="auto"?null:t;A=A==="auto"?null:A;A&&A!=="center"||(e.push({verticalAlign:"top",horizontalAlign:"center",top:Q.top+this.verticalOffset+(this.noOverlap?Q.height:0),left:Q.left-X.width/2+Q.width/2+this.horizontalOffset}),e.push({verticalAlign:"bottom",horizontalAlign:"center",
top:Q.bottom-f.height-this.verticalOffset-(this.noOverlap?Q.height:0),left:Q.left-X.width/2+Q.width/2+this.horizontalOffset}));t&&t!=="middle"||(e.push({verticalAlign:"middle",horizontalAlign:"left",top:Q.top-X.height/2+Q.height/2+this.verticalOffset,left:Q.left+this.horizontalOffset+(this.noOverlap?Q.width:0)}),e.push({verticalAlign:"middle",horizontalAlign:"right",top:Q.top-X.height/2+Q.height/2+this.verticalOffset,left:Q.right-f.width-this.horizontalOffset-(this.noOverlap?Q.width:0)}));t==="middle"&&
A==="center"&&e.push({verticalAlign:"middle",horizontalAlign:"center",top:Q.top-X.height/2+Q.height/2+this.verticalOffset,left:Q.left-X.width/2+Q.width/2+this.horizontalOffset});for(G=0;G<e.length;G++){X=e[G];Q=X.verticalAlign===t;N=X.horizontalAlign===A;if(!this.dynamicAlign&&!this.noOverlap&&Q&&N){var O=X;break}z=(!t||Q)&&(!A||N);if(this.dynamicAlign||z){X.offscreenArea=this.__getOffscreenArea(X,f,q);if(X.offscreenArea===0&&z){O=X;break}X.alignsOk=Q+N;O=O||X;Q=X.offscreenArea-O.offscreenArea;if(Q<
0||Q===0&&X.alignsOk>O.alignsOk)O=X}}return O}};/*

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 JS,j1f,YLC;JS=Element.prototype;j1f=JS.matches||JS.matchesSelector||JS.mozMatchesSelector||JS.msMatchesSelector||JS.oMatchesSelector||JS.webkitMatchesSelector;YLC=function(){};
_.Z3f=function(A){var t=Vq7,f=[];return t._collectTabbableNodes(A,f)?t._sortByTabIndex(f):f};
_.J=YLC.prototype;_.J.isFocusable=function(A){return j1f.call(A,"input, select, textarea, button, object")?j1f.call(A,":not([disabled])"):j1f.call(A,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.J._normalizedTabIndex=function(A){return this.isFocusable(A)?(A=A.getAttribute("tabindex")||0,Number(A)):-1};
_.J._collectTabbableNodes=function(A,t){if(A.nodeType!==Node.ELEMENT_NODE||!this._isVisible(A))return!1;var f=this._normalizedTabIndex(A),X=f>0;f>=0&&t.push(A);if(A.localName==="content"||A.localName==="slot")f=_.iS(A).getDistributedNodes();else{var Q;f=((Q=_.iS(A).shadowRoot)!=null?Q:_.iS(A.root||A)).children}for(A=0;A<f.length;A++)X=this._collectTabbableNodes(f[A],t)||X;return X};
_.J._isVisible=function(A){var t=A.style;return t.visibility!=="hidden"&&t.display!=="none"?(t=window.getComputedStyle(A),t.visibility!=="hidden"&&t.display!=="none"):!1};
_.J._sortByTabIndex=function(A){var t=A.length;if(t<2)return A;var f=Math.ceil(t/2);t=this._sortByTabIndex(A.slice(0,f));A=this._sortByTabIndex(A.slice(f));return this._mergeSortByTabIndex(t,A)};
_.J._mergeSortByTabIndex=function(A,t){for(var f=[];A.length>0&&t.length>0;)this._hasLowerTabOrder(A[0],t[0])?f.push(t.shift()):f.push(A.shift());return f.concat(A,t)};
_.J._hasLowerTabOrder=function(A,t){A=Math.max(A.tabIndex,0);t=Math.max(t.tabIndex,0);return A===0||t===0?t>A:A>t};
var Vq7=new YLC;var o6T;var dFC;_.CN({_template:function(){if(dFC!==void 0)return dFC;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;o6T===void 0&&(o6T=document.createElement("template"));var X=o6T;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return dFC=A},
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&&_.iS(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.iS(this.parentNode).removeChild(this)},
_onTransitionend:function(A){A&&A.target===this&&this.complete()},
_openedChanged:function(A){A?this.prepare():(A=window.getComputedStyle(this),A.transitionDuration!=="0s"&&A.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 Uw=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;aw(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)};
Uw.prototype._bringOverlayAtIndexToFront=function(A){var t=this._overlays[A];if(t){var f=this._overlays.length-1,X=this._overlays[f];X&&this._shouldBeBehindOverlay(t,X)&&f--;if(!(A>=f)){X=Math.max(this._getZ(_.SLC(this)),this._minimumZ);for(this._getZ(t)<=X&&this._applyOverlayZ(t,X);A<f;)this._overlays[A]=this._overlays[A+1],A++;this._overlays[f]=t}}};
Uw.prototype.addOverlay=function(A){var t=this._overlays.indexOf(A);if(t>=0)this._bringOverlayAtIndexToFront(t);else{t=this._overlays.length;var f=this._overlays[t-1],X=Math.max(this._getZ(f),this._minimumZ),Q=this._getZ(A);f&&this._shouldBeBehindOverlay(A,f)&&(this._applyOverlayZ(f,X),t--,X=Math.max(this._getZ(this._overlays[t-1]),this._minimumZ));Q<=X&&this._applyOverlayZ(A,X);this._overlays.splice(t,0,A)}this.trackBackdrop()};
Uw.prototype.removeOverlay=function(A){A=this._overlays.indexOf(A);A!==-1&&(this._overlays.splice(A,1),this.trackBackdrop())};
_.SLC=function(A){return A._overlays[A._overlays.length-1]};
_.J=Uw.prototype;_.J.trackBackdrop=function(){var A=this._overlayWithBackdrop();if(A||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(A)-1,this.backdropElement.opened=!!A,this.backdropElement.prepare()};
_.J._overlayWithBackdrop=function(){for(var A=this._overlays.length-1;A>=0;A--)if(this._overlays[A].withBackdrop)return this._overlays[A]};
_.J._getZ=function(A){var t=this._minimumZ;if(A){var f,X,Q=Number(((f=A.hostElement)!=null?f:A).style.zIndex||window.getComputedStyle((X=A.hostElement)!=null?X:A).zIndex);Q===Q&&(t=Q)}return t};
_.J._setZ=function(A,t){var f;((f=A.hostElement)!=null?f:A).style.zIndex=t};
_.J._applyOverlayZ=function(A,t){this._setZ(A,t+2)};
_.J._overlayInPath=function(A){A=A||[];for(var t=0;t<A.length;t++){var f=void 0;if(((f=A[t].polymerController)!=null?f:A[t])._manager===this)return A[t]}};
_.J._onCaptureClick=function(A){var t=this._overlays.length-1;if(t!==-1)for(var f=_.iS(A).path,X,Q;(X=this._overlays[t])&&this._overlayInPath(f)!==((Q=X.hostElement)!=null?Q:X);)if(X._onCaptureClick(A),X.allowClickThrough)t--;else break};
_.J._onCaptureFocus=function(A){var t=_.SLC(this);t&&t._onCaptureFocus(A)};
_.J._onCaptureKeyDown=function(A){var t=_.SLC(this);t&&(_.YD.keyboardEventMatchesKeys(A,"esc")?t._onCaptureEsc(A):_.YD.keyboardEventMatchesKeys(A,"tab")&&t._onCaptureTab(A))};
_.J._shouldBeBehindOverlay=function(A,t){return!A.alwaysOnTop&&t.alwaysOnTop&&!t.contains(A)};
_.PV.Object.defineProperties(Uw.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 A=document.activeElement;A&&A instanceof Element!==!1||(A=document.body);for(;A.root&&_.iS(A.root).activeElement;)A=_.iS(A.root).activeElement;return A}}});
_.e4=new Uw;var i6b=0,O6u=0,chb=null,Bcx=[],O9=["wheel","mousewheel","DOMMouseScroll"],MPx;_.M("web_no_lock_on_touchstart_killswitch")&&(O9.push("touchstart"),O9.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;_.Gn={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:_.e4},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var A;return this._focusedChild||_.iS((A=this.hostElement)!=null?A:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var A;return _.Z3f((A=this.hostElement)!=null?A: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 A;this._observer=_.iS((A=this.hostElement)!=null?A:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var A;_.iS((A=this.hostElement)!=null?A:this).unobserveNodes(this._observer)}this._observer=null;for(var t in this.__rafs)this.__rafs[t]!==null&&cancelAnimationFrame(this.__rafs[t]);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(A){this.fire("iron-overlay-canceled",A,{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 A;((A=this.hostElement)!=null?A:this).style.outline="none";var t;((t=this.hostElement)!=null?t:this).style.display="none"}},
_openedChanged:function(A){if(A){var t;((t=this.hostElement)!=null?t:this).removeAttribute("aria-hidden")}else{var f;((f=this.hostElement)!=null?f: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 A;if(this.withBackdrop&&!((A=this.hostElement)!=null?A:this).hasAttribute("tabindex")){var t;((t=this.hostElement)!=null?t:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var f;((f=this.hostElement)!=null?f: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 A;((A=this.hostElement)!=null?A:this).style.display="none";var t;((t=this.hostElement)!=null?t:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var A,t;((A=this.hostElement)!=null?A:this).style.transition=((t=this.hostElement)!=null?t:this).style.webkitTransition="none";var f,X;((f=this.hostElement)!=null?f:this).style.transform=((X=this.hostElement)!=null?X:this).style.webkitTransform="none";var Q;((Q=this.hostElement)!=null?Q:this).style.display=""},
_finishPositioning:function(){var A;((A=this.hostElement)!=null?A:this).style.display="none";this.scrollTop=this.scrollTop;var t,f;((t=this.hostElement)!=null?t:this).style.transition=((f=this.hostElement)!=null?f:this).style.webkitTransition="";var X,Q;((X=this.hostElement)!=null?X:this).style.transform=((Q=this.hostElement)!=null?Q:this).style.webkitTransform="";var q;((q=this.hostElement)!=null?q:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var A=this._manager.deepActiveElement,t;if(!(t=A===document.body))a:{for(;A;A=A.assignedSlot||A.parentNode||A.host)if(A===this){t=!0;break a}t=!1}t&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(A){this.noCancelOnOutsideClick||this.cancel(A)},
_onCaptureFocus:function(A){if(this.withBackdrop){var t=_.iS(A).path;t.indexOf(this)===-1?(A.stopPropagation(),this._applyFocus()):this._focusedChild=t[0]}},
_onCaptureEsc:function(A){this.noCancelOnEscKey||this.cancel(A)},
_onCaptureTab:function(A){if(this.withBackdrop){this.__ensureFirstLastFocusables();var t=A.shiftKey,f=t?this.__firstFocusableNode:this.__lastFocusableNode;t=t?this.__lastFocusableNode:this.__firstFocusableNode;if(f===t)f=!0;else{var X=this._manager.deepActiveElement;f=X===f||X===this}f&&(A.preventDefault(),this._focusedChild=t,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 A=this._focusableNodes;this.__firstFocusableNode=A[0];this.__lastFocusableNode=A[A.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(A,t){var f=this.__rafs;f[A]!==null&&cancelAnimationFrame(f[A]);f[A]=requestAnimationFrame(function(){f[A]=null;t.call(this)}.bind(this))},
__updateScrollObservers:function(A,t,f){A&&t&&this.__isValidScrollAction(f)?(f==="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),MPx=_._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()):(A=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),A!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(A,1),MPx=_._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(r$)for(var A=this;A;)A.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&A.host&&this.__rootNodes.push(A),A=A.host||A.assignedSlot||A.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(t){t.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(A){A.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(A){return A==="lock"||A==="refit"||A==="cancel"},
__onCaptureScroll:function(A){if(!(this.__isAnimating||_.iS(A).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(A)}},
__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)}};
_.lJ=[xFK,_.K9,_.Gn];_.CN({_template:function(){if(F9i!==void 0)return F9i;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;DFK===void 0&&(DFK=document.createElement("template"));var X=DFK;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return F9i=A},
is:"tp-yt-iron-dropdown",behaviors:[_.Vt,_.YD,_.lJ,QDl],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 A=_.iS(this.$.content).getDistributedNodes(),t=0,f=A.length;t<f;t++)if(A[t].nodeType===Node.ELEMENT_NODE)return A[t]},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(),_.Gn._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Gn._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Gn._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var A=this.containedElement,t=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),f=0;f<t.length;f++)t[f].node=A;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(A){this._readied&&(A?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var A=this.focusTarget||this.containedElement;A&&this.opened&&!this.noAutoFocus?A.focus():_.Gn._applyFocus.apply(this,arguments)}});var $F8;var H3p;/*

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 aCC=new _.Sm({type:"iconset"});
_.CN({_template:function(){if(H3p!==void 0)return H3p;var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;$F8===void 0&&($F8=document.createElement("template"));
var X=$F8;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return H3p=A},
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(A){A=(A||"").split(":");this._iconName=A.pop();this._iconsetName=A.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&&_.iS(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=aCC.byKey(this._iconsetName)){var A=this._iconset.applyIcon(this,this._iconName,this.theme);A&&A.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,_.iS(this.root).appendChild(this._img)}});var K9E;var g6i;_.CN({_template:function(){if(g6i!==void 0)return g6i;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
var t=A.content,f=t.insertBefore;K9E===void 0&&(K9E=document.createElement("template"));var X=K9E;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return g6i=A},
is:"tp-yt-iron-input",behaviors:[_.HY],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(){_.q2.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.iS(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.iS(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 A=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":A=/[0-9.,e-]/}return A},_bindValueChanged:function(A,t){t&&(A===void 0?t.value=null:A!==t.value&&(this.inputElement.value=A),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:A}))},
_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(A){var t=A.keyCode==19||A.keyCode==20||A.keyCode==45||A.keyCode==46||A.keyCode==144||A.keyCode==145||A.keyCode>32&&A.keyCode<41||A.keyCode>111&&A.keyCode<124;return!(A.keyCode==8||A.keyCode==9||A.keyCode==13||A.keyCode==27)&&!(A.charCode==0&&t)},
_onKeypress:function(A){if(this.allowedPattern||this.inputElement.type==="number"){var t=this._patternRegExp;if(t&&!(A.metaKey||A.ctrlKey||A.altKey)){this._patternAlreadyChecked=!0;var f=String.fromCharCode(A.charCode);this._isPrintable(A)&&!t.test(f)&&(A.preventDefault(),this._announceInvalidCharacter("Invalid character "+f+" not entered."))}}},
_checkPatternValidity:function(){var A=this._patternRegExp;if(!A)return!0;for(var t=0;t<this.inputElement.value.length;t++)if(!A.test(this.inputElement.value[t]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var A=this.inputElement.checkValidity();A&&(this.required&&this.bindValue===""?A=!1:this.hasValidator()&&(A=_.HY.validate.call(this,this.bindValue)));this.invalid=!A;this.fire("iron-input-validate");return A},
_announceInvalidCharacter:function(A){this.fire("iron-announce",{text:A})},
_computeValue:function(A){return A}});var wIw;var s1E;var kKK=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),r1E=kKK&&kKK[1]>=8;
_.CN({_template:function(){if(s1E!==void 0)return s1E;var A=document.createElement("template");_.m(A,'\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 aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;wIw===void 0&&(wIw=document.createElement("template"));var X=wIw;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return s1E=A},
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},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[a9s,_.K9,_.Xzp,YX7],_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 _.iS(_.iS(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var A=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,A-this._physicalCount)},set _virtualStart(A){A=this._clamp(A,0,this._maxVirtualStart);this.grid&&(A-=A%this._itemsPerRow);this._virtualStartVal=A},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(A){A%=this._physicalCount;A<0&&(A=this._physicalCount+A);this.grid&&(A-=A%this._itemsPerRow);this._physicalStartVal=A},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(A){this._physicalCountVal=A},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 A=this._firstVisibleIndexVal;if(A==null){var t=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
A=this._iterateItems(function(f,X){t+=this._getPhysicalSizeIncrement(f);if(t>this._scrollPosition)return this.grid?X-X%this._itemsPerRow:X;if(this.grid&&this._virtualCount-1===X)return X-X%this._itemsPerRow})||0}return A},
get lastVisibleIndex(){var A=this._lastVisibleIndexVal;if(A==null){if(this.grid)A=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var t=this._physicalTop+this._scrollOffset;this._iterateItems(function(f,X){t<this._scrollBottom&&(A=X);t+=this._getPhysicalSizeIncrement(f)})}this._lastVisibleIndexVal=A}return A},
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,_.iP);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(A){this.style.webkitOverflowScrolling=A===this?"touch":"";this.style.overflowY=A===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.iP)},
updateViewportBoundaries:function(){var A=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(A["padding-top"],10);this._isRTL=A.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var A=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),t=A-this._scrollPosition,f=t>=0;this._scrollPosition=A;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(t)>this._physicalSize&&this._physicalSize>0?(t-=this._scrollOffset,f=Math.round(t/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=f,this._physicalStart+=f,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(A=this._getReusables(f),f?(this._physicalTop=A.physicalTop,this._virtualStart+=A.indexes.length,this._physicalStart+=A.indexes.length):(this._virtualStart=this._virtualStart-A.indexes.length,this._physicalStart=this._physicalStart-A.indexes.length),this._update(A.indexes,f?null:A.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),w$))},
_getReusables:function(A){var t=[],f=this._hiddenContentSize*this._ratio,X=this._virtualStart,Q=this._virtualEnd,q=this._physicalCount,e=this._physicalTop+this._scrollOffset;var G=this._physicalBottom+this._scrollOffset;var N=this._scrollPosition,z=this._scrollBottom;if(A){var T=this._physicalStart;G=N-e}else T=this._physicalEnd,G-=z;for(;;){var O=this._getPhysicalSizeIncrement(T);G-=O;if(t.length>=q||G<=f)break;if(A){if(Q+t.length+1>=this._virtualCount)break;if(e+O>=N-this._scrollOffset)break;t.push(T);
e+=O;T=(T+1)%q}else{if(X-t.length<=0)break;if(e+this._physicalSize-O<=z)break;t.push(T);e-=O;T=T===0?q-1:T-1}}return{indexes:t,physicalTop:e-this._scrollOffset}},
_update:function(A,t){if(!(A&&A.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(A);this._updateMetrics(A);if(t)for(;t.length;)A=t.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(A);this._positionItems();this._updateScrollerSize()}},
_createPool:function(A){this._ensureTemplatized();var t,f=Array(A);for(t=0;t<A;t++){var X=this.stamp(null);f[t]=X.root.querySelector("*");this._itemsParent.appendChild(X.root)}return f},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(A){A=this._clamp(this._physicalCount+A,3,this._virtualCount-this._virtualStart);A=this._convertIndexToCompleteRow(A);if(this.grid){var t=A%this._itemsPerRow;t&&A-t<=this._physicalCount&&(A+=this._itemsPerRow);A-=t}A-=this._physicalCount;t=Math.round(this._physicalCount*.5);if(!(A<0)){if(A>0){t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(A));for(var f=0;f<A;f++)this._physicalSizes.push(0);this._physicalCount+=A;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=A);this._update();this._templateCost=(window.performance.now()-t)/A;t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Mvl):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,t),w$))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var A=this._getReusables(!0);this._physicalTop=A.physicalTop;this._virtualStart+=A.indexes.length;this._physicalStart+=A.indexes.length;this._update(A.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 A={__key__:!0};A[this.as]=!0;A[this.indexAs]=!0;A[this.selectedAs]=!0;A.tabIndex=!0;this._instanceProps=A;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(A,t){typeof t!=="undefined"&&(this.notifyResize(),_.RY(),A&&this._updateGridMetrics())},
_itemsChanged:function(A){if(A.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,
_.iP);else if(A.path==="items.splices"){this._adjustVirtualIndex(A.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(A.value.indexSplices.some(function(f){return f.addedCount>0||f.removed.length>0})){var t=this._getActiveElement();
this.contains(t)&&t.blur()}A=A.value.indexSplices.some(function(f){return f.index+f.addedCount>=this._virtualStart&&f.index<=this._virtualEnd},this);
this._isClientFull()&&!A||this._debounce("_render",this._render,_.iP)}else A.path!=="items.length"&&this._forwardItemPath(A.path,A.value)},
_forwardItemPath:function(A,t){A=A.slice(6);var f=A.indexOf(".");f===-1&&(f=A.length);var X,Q=this.modelForElement(this._offscreenFocusedItem),q=parseInt(A.substring(0,f),10);if(X=this._isIndexRendered(q)){var e=this._getPhysicalIndex(q);var G=this.modelForElement(this._physicalItems[e])}else Q&&(G=Q);G&&G[this.indexAs]===q&&(A=A.substring(f+1),A=this.as+(A?"."+A:""),G._setPendingPropertyOrPath(A,t,!1,!0),G._flushProperties&&G._flushProperties(),X&&(this._updateMetrics([e]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(A){A.forEach(function(t){t.removed.forEach(this._removeItem,this);t.index<this._virtualStart&&(t=Math.max(t.addedCount-t.removed.length,t.index-this._virtualStart),this._virtualStart+=t,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=t))},this)},
_removeItem:function(A){this.$.selector.deselect(A);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===A&&this._removeFocusedItem()},
_iterateItems:function(A,t){var f,X;if(arguments.length===2&&t)for(X=0;X<t.length;X++){var Q=t[X];var q=this._computeVidx(Q);if((f=A.call(this,Q,q))!=null)return f}else{Q=this._physicalStart;for(q=this._virtualStart;Q<this._physicalCount;Q++,q++)if((f=A.call(this,Q,q))!=null)return f;for(Q=0;Q<this._physicalStart;Q++,q++)if((f=A.call(this,Q,q))!=null)return f}},
_computeVidx:function(A){return A>=this._physicalStart?this._virtualStart+(A-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+A},
_assignModels:function(A){this._iterateItems(function(t,f){var X=this._physicalItems[t],Q=this.items&&this.items[f];if(Q!=null){var q=this.modelForElement(X);q.__key__=null;this._forwardProperty(q,this.as,Q);this._forwardProperty(q,this.selectedAs,this.$.selector.isSelected(Q));this._forwardProperty(q,this.indexAs,f);this._forwardProperty(q,"tabIndex",this._focusedVirtualIndex===f?0:-1);this._physicalIndexForKey[q.__key__]=t;q._flushProperties&&q._flushProperties(!0);X.removeAttribute("hidden")}else X.setAttribute("hidden",
"")},A)},
_updateMetrics:function(A){_.RY();var t=0,f=0,X=this._physicalAverageCount,Q=this._physicalAverage;this._iterateItems(function(q){f+=this._physicalSizes[q];this._physicalSizes[q]=this._physicalItems[q].offsetHeight;t+=this._physicalSizes[q];this._physicalAverageCount+=this._physicalSizes[q]?1:0},A);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(f=this._itemsPerRow===1?f:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+t-f,this._itemsPerRow=1);this._physicalAverageCount!==X&&(this._physicalAverage=Math.round((Q*X+t)/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 A=this._physicalTop;if(this.grid){var t=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(f,X){var Q=Math.floor(X%this._itemsPerRow*this._itemWidth+t);this._isRTL&&(Q*=-1);this.translate3d(Q+"px",A+"px",0,this._physicalItems[f]);this._shouldRenderNextRow(X)&&(A+=this._rowHeight)})}else this._iterateItems(function(f){this.translate3d(0,A+"px",0,this._physicalItems[f]);
A+=this._physicalSizes[f]})},
_getPhysicalSizeIncrement:function(A){return this.grid?this._computeVidx(A)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[A]},
_shouldRenderNextRow:function(A){return A%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var A=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(A!==0){this._physicalTop=this._physicalTop-A;var t=this._scrollPosition;!r1E&&t>0&&this._resetScrollPosition(t-A)}},
_resetScrollPosition:function(A){this.scrollTarget&&A>=0&&(this._scrollPosition=this._scrollTop=A)},
_updateScrollerSize:function(A){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((A=(A=(A=A||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(A){return this.scrollToIndex(this.items.indexOf(A))},
scrollToIndex:function(A){if(!(typeof A!=="number"||A<0||A>this.items.length-1)&&(_.RY(),this._physicalCount!==0)){A=this._clamp(A,0,this._virtualCount-1);if(!this._isIndexRendered(A)||A>=this._maxVirtualStart)this._virtualStart=this.grid?A-this._itemsPerRow*2:A-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var t=this._physicalStart,f=this._virtualStart,X=0,Q=this._hiddenContentSize;f<A&&
X<=Q;)X+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,f++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+X);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)},_.iP)},
selectItem:function(A){return this.selectIndex(this.items.indexOf(A))},
selectIndex:function(A){if(!(A<0||A>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(A)){var t=this.modelForElement(this._physicalItems[this._getPhysicalIndex(A)]);t&&(t[this.selectedAs]=!0);this.updateSizeForIndex(A)}this.$.selector.selectIndex(A)}},
deselectItem:function(A){return this.deselectIndex(this.items.indexOf(A))},
deselectIndex:function(A){A<0||A>=this._virtualCount||(this._isIndexRendered(A)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(A)])[this.selectedAs]=!1,this.updateSizeForIndex(A)),this.$.selector.deselectIndex(A))},
toggleSelectionForItem:function(A){return this.toggleSelectionForIndex(this.items.indexOf(A))},
toggleSelectionForIndex:function(A){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(A):this.$.selector.isSelected(this.items[A]))?this.deselectIndex(A):this.selectIndex(A)},
clearSelection:function(){this._iterateItems(function(A){this.modelForElement(this._physicalItems[A])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(A){(A?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(A){var t=this.modelForElement(A.target);if(t){var f=_.iS(A).path[0];A=this._getActiveElement();var X=this._physicalItems[this._getPhysicalIndex(t[this.indexAs])];if(f.localName!=="input"&&f.localName!=="button"&&f.localName!=="select"){f=t.tabIndex;t.tabIndex=-100;var Q=A?A.tabIndex:-1;t.tabIndex=f;A&&X!==A&&X.contains(A)&&Q!==-100||this.toggleSelectionForItem(t[this.as])}}},
_multiSelectionChanged:function(A){this.clearSelection();this.$.selector.multi=A},
updateSizeForItem:function(A){return this.updateSizeForIndex(this.items.indexOf(A))},
updateSizeForIndex:function(A){if(!this._isIndexRendered(A))return null;this._updateMetrics([this._getPhysicalIndex(A)]);this._positionItems();return null},
_manageFocus:function(){var A=this._focusedVirtualIndex;A>=0&&A<this._virtualCount?this._isIndexRendered(A)?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(A){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(A/this._itemsPerRow)*this._itemsPerRow:A},
_isIndexRendered:function(A){return A>=this._virtualStart&&A<=this._virtualEnd},
_isIndexVisible:function(A){return A>=this.firstVisibleIndex&&A<=this.lastVisibleIndex},
_getPhysicalIndex:function(A){return(this._physicalStart+(A-this._virtualStart))%this._physicalCount},
focusItem:function(A){this._focusPhysicalItem(A)},
_focusPhysicalItem:function(A){if(!(A<0||A>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(A)||this.scrollToIndex(A);var t=this._physicalItems[this._getPhysicalIndex(A)],f=this.modelForElement(t),X;f.tabIndex=-100;t.tabIndex===-100&&(X=t);X||(X=_.iS(t).querySelector('[tabindex="-100"]'));f.tabIndex=0;this._focusedVirtualIndex=A;X&&X.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 A=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var t=this.stamp(null);this._focusBackfillItem=t.root.querySelector("*");this._itemsParent.appendChild(t.root)}this._offscreenFocusedItem=this._physicalItems[A];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[A]=this._focusBackfillItem;this._focusedPhysicalIndex=A;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var A=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),t=this._physicalItems[A];if(t){var f=this.modelForElement(t),X=this.modelForElement(this._offscreenFocusedItem);f[this.as]===X[this.as]?(this._focusBackfillItem=t,f.tabIndex=-1,this._physicalItems[A]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(A){A=this.modelForElement(A.target);var t=this.modelForElement(this._focusedItem),f=this._offscreenFocusedItem!==null,X=this._focusedVirtualIndex;A&&(t===A?this._isIndexVisible(X)||this.scrollToIndex(X):(this._restoreFocusedItem(),t&&(t.tabIndex=-1),A.tabIndex=0,this._focusedVirtualIndex=X=A[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(X),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],f&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(A){switch(A.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&A.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&&A.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(A)}},
_clamp:function(A,t,f){return Math.min(f,Math.max(t,A))},
_debounce:function(A,t,f){this._debouncers=this._debouncers||{};this._debouncers[A]=_.cr(this._debouncers[A],f,t.bind(this));_.Br(this._debouncers[A])},
_forwardProperty:function(A,t,f){A._setPendingProperty(t,f)},
_forwardHostPropV2:function(A,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(f){f&&this.modelForElement(f).forwardHostProp(A,t)},this)},
_notifyInstancePropV2:function(A,t,f){maT(this.as,t)&&(A=A[this.indexAs],t==this.as&&(this.items[A]=f),this.notifyPath(LV(this.as,"items."+A,t),f))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(A,t,f){t.indexOf(this.as+".")===0&&this.notifyPath("items."+A.__key__+"."+t.slice(this.as.length+1),f)},
_forwardParentPath:function(A,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(f){f&&this.modelForElement(f).notifyPath(A,t)},this)},
_forwardParentProp:function(A,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(f){f&&(this.modelForElement(f)[A]=t)},this)},
_getActiveElement:function(){var A=this._itemsParent.node.domHost;return _.iS(A?A.root:document).activeElement},
_scrollTargetChanged:function(A,t){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(t)if(A==="document")this.scrollTarget=this._doc;else if(typeof A==="string"){var f,X;this.scrollTarget=(t=(X=(f=this.domHost)==null?void 0:f.polymerController)!=null?X:this.domHost)&&t.$?t.$[A]:_.iS(this.ownerDocument).querySelector("#"+A)}else this._isValidScrollTarget()&&(this._oldScrollTarget=A,this._toggleScrollListener(this._shouldHaveListener,A))}});var AU8;var t$k;var fX8=function(A,t,f,X){A-=f;t-=X;return Math.sqrt(A*A+t*t)},X_l=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
CAz.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var hAl=function(A){A.maxRadius=0;A.mouseDownStart=0;A.mouseUpStart=0;A.xStart=0;A.yStart=0;A.xEnd=0;A.yEnd=0;A.containerMetrics=new CAz(A.element)};
RA5.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var A=X_l()-this.mouseDownStart;this.mouseUpStart&&(A-=this.mouseUpElapsed);return A},get mouseUpElapsed(){return this.mouseUpStart?X_l()-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 A=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(A*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-A/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===0&&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 A=this.radius/(this.containerMetrics.size/2);var t=this.xNow-this.containerMetrics.width/2;var f=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+t+"px, "+f+"px)";this.waveContainer.style.transform="translate3d("+t+"px, "+f+"px, 0)";this.wave.style.webkitTransform="scale("+A+","+A+")";this.wave.style.transform="scale3d("+A+","+A+",1)"},
downAction:function(A){var t=this.containerMetrics.width/2,f=this.containerMetrics.height/2;hAl(this);this.mouseDownStart=X_l();this.center?(this.xStart=t,this.yStart=f):(this.xStart=A?A.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=A?A.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=t,this.yEnd=f);A=this.containerMetrics;t=this.xStart;f=this.yStart;this.maxRadius=Math.max(fX8(t,f,0,0),fX8(t,f,
A.width,0),fX8(t,f,0,A.height),fX8(t,f,A.width,A.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=X_l())},
remove:function(){_.iS(_.iS(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.CN({_template:function(){if(t$k!==void 0)return t$k;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;AU8===void 0&&(AU8=document.createElement("template"));var X=AU8;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return t$k=A},
is:"tp-yt-paper-ripple",behaviors:[_.YD],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(){_.iS(this).parentNode.nodeType==11?this.keyEventTarget=_.iS(this).getOwnerRoot().host:this.keyEventTarget=_.iS(this).parentNode;var A=this.keyEventTarget;this.listen(A,"up","uiUpAction");this.listen(A,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(A){A.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var A=0;A<this.ripples.length;++A)if(!this.ripples[A].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(A){this.noink||this.downAction(A)},
downAction:function(A){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(A),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(A){this.noink||this.upAction(A)},
upAction:function(A){this.holdDown||(this.ripples.forEach(function(t){t.upAction(A)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var A=0;A<this.ripples.length;++A){var t=this.ripples[A];t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var A=new RA5(this);_.iS(this.$.waves).appendChild(A.waveContainer);this.$.background.style.backgroundColor=A.color;this.ripples.push(A);this._setAnimating(!0);return A},
removeRipple:function(A){var t=this.ripples.indexOf(A);t<0||(this.ripples.splice(t,1),A.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var A;for(A=0;A<this.ripples.length;++A){var t=this.ripples[A];t.draw();this.$.background.style.opacity=t.outerOpacity;t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t)}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(A,t){t!==void 0&&(A?this.downAction():this.upAction())}});var N2={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(A){Ze._downHandler.call(this,A);this.pressed&&this.ensureRipple(A)},
ensureRipple:function(A){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var t=this._rippleContainer||this.root;t&&_.iS(t).appendChild(this._ripple);if(A){t=_.iS(this._rippleContainer||this);var f=_.iS(A).rootTarget;t.deepContains(f)&&this._ripple.uiDownAction(A)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(A){this.hasRipple()&&(this._ripple.noink=A)}};var QbT={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 A=1;this.disabled?A=0:this.active||this.pressed?A=4:this.receivedFocusFromKeyboard&&(A=3);this._setElevation(A)},
_computeKeyboardClass:function(A){this.toggleClass("keyboard-focus",A)},
_spaceKeyDownHandler:function(A){Ze._spaceKeyDownHandler.call(this,A);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(A){Ze._spaceKeyUpHandler.call(this,A);this.hasRipple()&&this._ripple.uiUpAction()}},qYl=[Hsp,
_.Vt,N2,QbT];_.JU7={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(A){A&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=A)},
_createRipple:function(){var A=N2._createRipple();A.id="ink";A.setAttribute("center","");A.classList.add("circle");return A}};
_.UUk=[Hsp,_.Vt,N2,_.JU7];_.eiS=[_.UUk,g5p,{_checkedChanged:function(){K_8._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){N2._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var GWk;var lXE;var N_p=function(){};
_.J=N_p.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._createRipple=function(){};
_.J._noinkChanged=function(){};
_.J._computeKeyboardClass=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setElevation=function(){};
N_p=_.CN({_template:function(){if(lXE!==void 0)return lXE;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
var t=A.content,f=t.insertBefore;GWk===void 0&&(GWk=document.createElement("template"));var X=GWk;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return lXE=A},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[qYl],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?QbT._calculateElevation.apply(this):this._setElevation(0)}});var uZk;var zip;var P6l={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(A){_.M("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(A)},
_onDialogClickWrapped:function(A){_.M("dialog_behavior_no_tap_killswitch")||this._onDialogClick(A)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(A,t){t&&(A?(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))},
isAriaModalChanged:function(A){if(A){var t;((t=this.hostElement)!=null?t:this).setAttribute("aria-modal","true")}else{var f;((f=this.hostElement)!=null?f:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(A){this.closingReason=this.closingReason||{};this.closingReason.confirmed=A},
_onDialogClick:function(A){for(var t=_.iS(A).path,f=0,X,Q=t.indexOf((X=this.hostElement)!=null?X:this);f<Q;f++)if(X=t[f],X.hasAttribute&&(X.hasAttribute("dialog-dismiss")||X.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(X.hasAttribute("dialog-confirm"));this.close();A.stopPropagation();break}}},T_p=[_.lJ,
P6l];var i_k=document.createElement("template");_.m(i_k,'<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(i_k.content);var O_E=document.createElement("template");_.m(O_E,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(O_E.content);_.CN({_template:function(){if(zip!==void 0)return zip;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
var t=A.content,f=t.insertBefore;uZk===void 0&&(uZk=document.createElement("template"));var X=uZk;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return zip=A},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[T_p,QDl],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 cUk;var B_p;_.CN({_template:function(){if(B_p!==void 0)return B_p;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;cUk===void 0&&(cUk=document.createElement("template"));var X=cUk;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return B_p=A},
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 A,t,f;if(((A=window.ShadyDOM)==null?void 0:A.noPatch)!==!0&&((t=window.ShadyDOM)==null?void 0:t.noPatch)!=="on-demand"||((f=this.__shady_parentNode)==null?void 0:f.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(P6l)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var M$T=_.dS(['<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>']),C6i=_.SQ7(M$T);C6i.setAttribute("style","display: none;");document.head.appendChild(C6i.content);var hiE;var Rii;var mUT;var b_p;_.CN({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[gO],configure:function(A){var t=A.node,f=t.getBoundingClientRect().height;return this._effect=new KeyframeEffect(t,[{height:f/2+"px"},{height:f+"px"}],this.timingFromConfig(A))}});
_.CN({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[gO],configure:function(A){var t=A.node,f=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:f/2+"px"},{width:f+"px"}],this.timingFromConfig(A))}});
_.CN({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[gO],configure:function(A){var t=A.node,f=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:f+"px"},{width:f-f/20+"px"}],this.timingFromConfig(A))}});
_.CN({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[gO],configure:function(A){var t=A.node,f=t.getBoundingClientRect().height;this.setPrefixedProperty(t,"transformOrigin","0 0");return this._effect=new KeyframeEffect(t,[{height:f+"px",transform:"translateY(0)"},{height:f/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(A))}});var uJ={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},WkS=function(){};
_.J=WkS.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._focusBlurHandler=function(){};
_.J._changedControlState=function(){};
_.J._setFocused=function(){};
WkS=_.CN({_template:function(){if(b_p!==void 0)return b_p;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;mUT===void 0&&(mUT=document.createElement("template"));var X=mUT;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return b_p=A},
is:"tp-yt-paper-menu-button",behaviors:[_.YD,_.Vt],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:uJ.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:uJ.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:uJ.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 A=_.iS(this.$.content).getDistributedNodes(),t=0,f=A.length;t<f;t++)if(A[t].nodeType===Node.ELEMENT_NODE)return A[t]},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(A,t){A?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):t!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(A){_.Vt._disabledChanged.apply(this,arguments);A&&this.opened&&this.close()},
__onIronOverlayCanceled:function(A){var t=this.$.trigger;_.iS(A.detail).path.indexOf(t)>-1&&A.preventDefault()}});
Object.keys(uJ).forEach(function(A){WkS[A]=uJ[A]});var yUk=_.oz.IronButtonState,vgT=(0,_.FX)(HTMLElement);
_.CN({_template:function(){if(Rii!==void 0)return Rii;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;hiE===void 0&&(hiE=document.createElement("template"));var X=hiE;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return Rii=A},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[yUk,_.Vt,N2,_.dO,_.HY],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(A){var t=(0,_.FA)(this);t.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:A});t.shadowRoot.appendChild(A);return vgT.prototype._attachDom.call(this,A)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var A=this.contentElement;A&&A.selectedItem&&this._setSelectedItem(A.selectedItem)},
get contentElement(){for(var A=_.iS(this.$.content).getDistributedNodes(),t=0,f=A.length;t<f;t++)if(A[t].nodeType===Node.ELEMENT_NODE)return A[t]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(A){this._setSelectedItem(A.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(A){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)===this&&this.open()},
_selectedItemChanged:function(A){var t="";A?t=A.label||A.getAttribute("label")||A.textContent.trim():t="";this.value=t;this._setSelectedItemLabel(t)},
_computeMenuVerticalOffset:function(A,t){return t?t:A?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var A=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",A)},
_computeLabelClass:function(A,t,f){var X="label";if(A)f&&(X+=" label-is-hidden");else if(f||t)X+=" label-is-floating";return X},
_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 Lkp;var p_E;_.CN({is:"tp-yt-paper-icon-button",_template:function(){if(p_E!==void 0)return p_E;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Lkp===void 0&&(Lkp=document.createElement("template"));var X=Lkp;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return p_E=A},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.UUk],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(A,t){var f=this.getAttribute("aria-label");f&&t!=f||this.setAttribute("aria-label",A)}});var Egk;var ngp;_.zn=[Hsp,_.Vt,{hostAttributes:{role:"option",tabindex:"0"}}];_.CN({_template:function(){if(ngp!==void 0)return ngp;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Egk===void 0&&(Egk=document.createElement("template"));var X=Egk;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return ngp=A},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.zn]});var DUf;var FkC;var IXw={attached:function(){this.fire("addon-attached")},
update:function(){}};var xUC=1,jb8=1,YYE=1,V$C=[_.Vt,_.YD,{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();!N$&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(A,t){A?A=A+" "+t:A=t;return A},
_onAddonAttached:function(A){A=_.iS(A).rootTarget;if(A.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,A.id);else{var t="paper-input-add-on-"+jb8++;A.id=t;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(A){_.Vt._focusBlurHandler.call(this,A);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var A=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",A);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(A){try{var t=this.inputElement.selectionStart;this.value=A;this.inputElement.selectionStart=t;this.inputElement.selectionEnd=t}catch(f){this.value=A}},
_computeAlwaysFloatLabel:function(A,t){return t||A},
_updateAriaLabelledBy:function(){var A=_.iS(this.root).querySelector("label");if(A){if(A.id)var t=A.id;else t="paper-input-label-"+xUC++,A.id=t;this._ariaLabelledBy=t}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+YYE++)},
_onChange:function(A){this.shadowRoot&&this.fire(A.type,{sourceEvent:A},{node:this,bubbles:A.bubbles,cancelable:A.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var A=document.activeElement;A instanceof HTMLElement&&A!==document.body&&A!==document.documentElement||this._focusableElement.focus()}}}];var Z_p;var og8;_.CN({_template:function(){if(og8!==void 0)return og8;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Z_p===void 0&&(Z_p=document.createElement("template"));var X=Z_p;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return og8=A},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[IXw],properties:{_charCounterStr:{type:String,value:"0"}},update:function(A){if(A.inputElement){A.value=A.value||"";var t=A.value.toString().length.toString();A.inputElement.hasAttribute("maxlength")&&(t+="/"+A.inputElement.getAttribute("maxlength"));this._charCounterStr=t}}});var dUE;var SYT;_.CN({_template:function(){if(SYT!==void 0)return SYT;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;dUE===void 0&&(dUE=document.createElement("template"));var X=dUE;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return SYT=A},
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 mE(this.attrForValue)},get _inputElement(){return _.iS(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(A){this._addons||(this._addons=[]);A=A.target;this._addons.indexOf(A)===-1&&(this._addons.push(A),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(A){this._handleValueAndAutoValidate(A.target)},
_onValueChanged:function(A){var t=A.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,t.value===void 0||t.value===""))return;this._handleValueAndAutoValidate(A.target)},
_handleValue:function(A){var t=this._inputElementValue;t||t===0||A.type==="number"&&!A.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:A,value:t,invalid:this.invalid})},
_handleValueAndAutoValidate:function(A){this.autoValidate&&A&&(this.invalid=!(A.validate?A.validate(this._inputElementValue):A.checkValidity()));this._handleValue(A)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(A){if(this._addons)for(var t,f=0;t=this._addons[f];f++)t.update(A)},
_computeInputContentClass:function(A,t,f,X,Q){var q="input-content";A?(Q&&(q+=" label-is-hidden"),X&&!this.noUnfloatedLabelError&&(q+=" is-invalid")):(A=this.querySelector("label"),t||Q?(q+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",X?q+=" is-invalid":f&&(q+=" label-is-highlighted")):(A&&(this.$.labelAndInputContainer.style.position="relative"),X&&!this.noUnfloatedLabelError&&(q+=" is-invalid")));f&&(q+=" focused");return q},
_computeUnderlineClass:function(A,t){var f="underline";t?f+=" is-invalid":A&&(f+=" is-highlighted");return f},
_computeAddOnContentClass:function(A,t){var f="add-on-content";t?f+=" is-invalid":A&&(f+=" is-highlighted");return f}});var $U7;var H_i;_.CN({_template:function(){if(H_i!==void 0)return H_i;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;$U7===void 0&&($U7=document.createElement("template"));var X=$U7;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return H_i=A},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[IXw],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(A){this._setInvalid(A.invalid)}});_.CN({is:"tp-yt-paper-input",_template:function(){if(FkC!==void 0)return FkC;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;DUf===void 0&&(DUf=document.createElement("template"));var X=DUf;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return FkC=A},
behaviors:[V$C,_.dO],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 aXp;var Kkf;_.CN({_template:function(){if(Kkf!==void 0)return Kkf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=
A.content,f=t.insertBefore;aXp===void 0&&(aXp=document.createElement("template"));var X=aXp;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return Kkf=A},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.zn]});var ggw;var w_7;_.CN({_template:function(){if(w_7!==void 0)return w_7;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
var t=A.content,f=t.insertBefore;ggw===void 0&&(ggw=document.createElement("template"));var X=ggw;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return w_7=A},
is:"tp-yt-paper-item-body"});var sbE;var kWw;var rUK=function(){};
_.J=rUK.prototype;_.J.indexOf=function(){};
_.J.selectPrevious=function(){};
_.J.selectNext=function(){};
_.J.selectIndex=function(){};
_.J.forceSynchronousItemUpdate=function(){};
_.J._checkFallback=function(){};
_.J._addListener=function(){};
_.J._removeListener=function(){};
_.J._activateEventChanged=function(){};
_.J._updateItems=function(){};
_.J._selectSelected=function(){};
_.J._filterItem=function(){};
_.J._valueToItem=function(){};
_.J._valueToIndex=function(){};
_.J._indexToValue=function(){};
_.J._valueForItem=function(){};
_.J._observeItems=function(){};
_.J._itemActivate=function(){};
_.J.multiChanged=function(){};
_.J._updateAttrForSelected=function(){};
_.J._updateSelected=function(){};
_.J._selectMulti=function(){};
_.J._selectionChange=function(){};
_.J._toggleSelected=function(){};
_.J._valuesToItems=function(){};
_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J.select=function(){};
_.J._resetTabindices=function(){};
_.J._updateMultiselectable=function(){};
_.J._focusWithKeyboardEvent=function(){};
_.J._clearSearchText=function(){};
_.J._focusPrevious=function(){};
_.J._focusNext=function(){};
_.J._applySelection=function(){};
_.J._focusedItemChanged=function(){};
_.J._onIronItemsChanged=function(){};
_.J._onShiftTabDown=function(){};
_.J._onFocus=function(){};
_.J._onUpKey=function(){};
_.J._onDownKey=function(){};
_.J._onEscKey=function(){};
_.J._onKeydown=function(){};
_.J._activateHandler=function(){};
_.J._disabledChanged=function(){};
_.J._setSelectedItem=function(){};
_.J._setItems=function(){};
_.J._setSelectedItems=function(){};
_.J._setFocusedItem=function(){};
rUK=_.CN({_template:function(){if(kWw!==void 0)return kWw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
var t=A.content,f=t.insertBefore;sbE===void 0&&(sbE=document.createElement("template"));var X=sbE;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return kWw=A},
is:"tp-yt-paper-listbox",behaviors:[rub],hostAttributes:{role:"listbox"}});var AHl;var tQf;var fW7={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(A,t){return[A||t?"active":"",t?"cooldown":""].join(" ")},
__activeChanged:function(A,t){this.__setAriaHidden(!A);this.__coolingDown=!A&&t},
__altChanged:function(A){this.setAttribute("aria-label",A||"loading")},
__setAriaHidden:function(A){A?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.CN({_template:function(){if(tQf!==void 0)return tQf;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;AHl===void 0&&(AHl=document.createElement("template"));var X=AHl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return tQf=A},
is:"tp-yt-paper-spinner",behaviors:[fW7]});var Xok;var QPl;_.CN({_template:function(){if(QPl!==void 0)return QPl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Xok===void 0&&(Xok=document.createElement("template"));var X=Xok;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return QPl=A},
is:"tp-yt-paper-spinner-lite",behaviors:[fW7]});var qEK;var JHE;_.CN({_template:function(){if(JHE!==void 0)return JHE;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;qEK===void 0&&(qEK=document.createElement("template"));var X=qEK;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return JHE=A},
is:"tp-yt-paper-tab",behaviors:[_.Vt,_.oz.IronButtonState,N2],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 A=_.iS(this).parentNode;return!!A&&!!A.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(A){if(this.link){var t=this.queryEffectiveChildren("a");t&&A.target!==t&&t.click()}}});var U3S;var e0p;var GYw=_.dS(['<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>']),lWS=_.SQ7(GYw);document.head.appendChild(lWS.content);_.CN({_template:function(){if(e0p!==void 0)return e0p;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;U3S===void 0&&(U3S=document.createElement("template"));var X=U3S;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return e0p=A},
is:"tp-yt-paper-tabs",behaviors:[_.K9,_.t7l],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(A){_.iS(this).querySelectorAll("tp-yt-paper-tab").forEach(A?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(A){A.setAttribute("noink","")},
_removeNoinkAttribute:function(A){A.removeAttribute("noink")},
_computeScrollButtonClass:function(A,t,f,X){return!t||f?"hidden":A?X?"hidden":"not-visible":""},
_computeTabsContentClass:function(A,t){var f="tabs-content";A&&(f+=" scrollable");if(!A||t)f+=" fit-container";return f},
_computeSelectionBarClass:function(A,t){var f="selection-bar";A?f+=" hidden":t&&(f+=" align-bottom");return f},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(A){return""+A},
_onIronSelect:function(A){this._tabChanged(A.detail.item,this._previousTab);this._previousTab=A.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();_.az._activateHandler.apply(this,arguments)},
_scheduleActivation:function(A,t){this._pendingActivationItem=A;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,t)},
_delayedActivationHandler:function(){var A=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;A.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(A){A.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(A,t){this.scrollable&&this._affectScroll(t&&-t.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(A){this.$.tabsContainer.scrollLeft+=A;A=this.$.tabsContainer.scrollLeft;this._leftHidden=A===0||this.hideScrollButtons;this._rightHidden=A===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(A,t){if(A){var f=this.$.tabsContent.getBoundingClientRect(),X=f.width,Q=A.getBoundingClientRect();f=Q.left-f.left;this._pos={width:this._calcPercent(Q.width,X),left:this._calcPercent(f,X)};if(this.noSlide||t==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var q=t.getBoundingClientRect();t=this.items.indexOf(t);A=this.items.indexOf(A);this.$.selectionBar.classList.add("expand");
A=t<A;this._isRTL&&(A=!A);A?this._positionBar(this._calcPercent(Q.left+Q.width-q.left,X)-5,this._left):this._positionBar(this._calcPercent(q.left+q.width-Q.left,X)-5,this._calcPercent(f,X)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Q.width,f)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(A,t){t-=this.$.tabsContainer.scrollLeft;t<0?this.$.tabsContainer.scrollLeft+=t:(t+=A-this.$.tabsContainer.offsetWidth,t>0&&(this.$.tabsContainer.scrollLeft+=t))},
_calcPercent:function(A,t){return 100*A/t},
_positionBar:function(A,t){A=A||0;t=t||0;this._width=A;this._left=t;this.transform("translateX("+t+"%) scaleX("+A/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var A=this.$.selectionBar.classList;A.contains("expand")?(A.remove("expand"),A.add("contract"),this._positionBar(this._pos.width,this._pos.left)):A.contains("contract")&&A.remove("contract")}});var NzE;var uoT;_.CN({_template:function(){if(uoT!==void 0)return uoT;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;NzE===void 0&&(NzE=document.createElement("template"));var X=NzE;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return uoT=A},
is:"tp-yt-paper-textarea",behaviors:[V$C,_.dO],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(A){this.$.input.textarea.selectionStart=A},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(A){this.$.input.textarea.selectionEnd=A},_ariaLabelledByChanged:function(A){this._focusableElement.setAttribute("aria-labelledby",A)},
_ariaDescribedByChanged:function(A){this._focusableElement.setAttribute("aria-describedby",A)},
get _focusableElement(){return this.inputElement.textarea}});var z0b;var PRk;/*

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 TzE=function(){};
_.J=TzE.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
TzE=_.CN({is:"tp-yt-paper-toggle-button",_template:function(){if(PRk!==void 0)return PRk;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;z0b===void 0&&(z0b=document.createElement("template"));var X=z0b;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return PRk=A},
behaviors:[_.eiS],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");_.us(this,function(){_.g$(this,"pan-y")})},
_ontrack:function(A){A=A.detail;A.state==="start"?this._trackStart(A):A.state==="track"?this._trackMove(A):A.state==="end"&&this._trackEnd(A)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(A){A=A.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+A:A)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+A:A));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 A=N2._createRipple();A.id="ink";A.setAttribute("recenters","");A.classList.add("circle","toggle-ink");return A}});var iLK;var OLS;_.CN({_template:function(){if(OLS!==void 0)return OLS;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;iLK===void 0&&(iLK=document.createElement("template"));var X=iLK;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return OLS=A},
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 A=_.iS(this).parentNode,t=_.iS(this).getOwnerRoot(),f;this.for?f=_.iS(t).querySelector("#"+this.for):f=A.nodeType==Node.DOCUMENT_FRAGMENT_NODE?t.host:A;return f},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(A){A==="entry"?this.show():A==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.iS(this).textContent.trim()===""){for(var A=!0,t=_.iS(this).getEffectiveChildNodes(),f=0;f<t.length;f++)if(t[f].textContent.trim()!==""){A=!1;break}if(A)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 A=this.offset;this.marginTop!=14&&this.offset==14&&(A=this.marginTop);var t=this.offsetParent.getBoundingClientRect(),f=this._target.getBoundingClientRect(),X=this.getBoundingClientRect(),Q=(f.width-X.width)/2,q=(f.height-X.height)/2,e=f.left-t.left,G=f.top-t.top;switch(this.position){case "top":var N=e+Q;var z=G-X.height-A;break;case "bottom":N=e+Q;z=G+f.height+A;break;case "left":N=e-X.width-A;z=G+q;break;case "right":N=e+f.width+
A,z=G+q}this.fitToVisibleBounds?(t.left+N+X.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,N)+"px",this.style.right="auto"),t.top+z+X.height>window.innerHeight?(this.style.bottom=t.height+"px",this.style.top="auto"):(this.style.top=Math.max(-t.top,z)+"px",this.style.bottom="auto")):(this.style.left=N+"px",this.style.top=z+"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(A){A!==500&&this.updateStyles({"--paper-tooltip-delay-in":A+"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(A){if(A==="entry"&&this.animationEntry!=="")return this.animationEntry;if(A==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[A]&&typeof this.animationConfig[A][0].name==="string"){if(this.animationConfig[A][0].timing&&this.animationConfig[A][0].timing.delay&&this.animationConfig[A][0].timing.delay!==0){var t=this.animationConfig[A][0].timing.delay;A==="entry"?this.updateStyles({"--paper-tooltip-delay-in":t+"ms"}):A==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":t+
"ms"})}return this.animationConfig[A][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 cHC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(cHC,_.e3);var Bzf=_.Bu(cHC,[0,_.Xy]);var PL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(PL,_.e3);var MQT=[3,4],CRf=[5,6];var h0T=[0,MQT,CRf,_.JU,-1,_.A1,_.UY,-1,pAS,EmK];var R0b=_.Bu(PL,h0T),m3T=_.My(h0T);var bLl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(bLl,_.e3);var Wml=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Wml,_.e3);var yHE=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(yHE,_.e3);var vw7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(vw7,_.e3);var Lm7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Lm7,_.e3);var Tn=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Tn,_.e3);Tn.prototype.getSource=function(){return _.ye(this,1)};
Tn.prototype.getMessage=function(){return _.Wz(this,4)};
Tn.prototype.getData=function(){return _.Mq(this,Lm7,8)};var pob=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(pob,_.e3);var iJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(iJ,_.e3);var Ow=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Ow,_.e3);var cL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(cL,_.e3);cL.prototype.getUrl=function(){return _.Wz(this,1)};
cL.prototype.setUrl=function(A){return _.Dg(this,1,A)};
cL.prototype.hasUrl=function(){return _.Cw(_.zR(this,1))!=null};var Ewk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Ewk,_.e3);var nwE=[3];var D3w=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(D3w,_.e3);var BL=function(A){var t=new D3w;return _.CU(t,2,A)};
D3w.prototype.getLanguage=function(){return Ld(this,4,M2)};
var Fml=function(A){var t=BL(1);return _.Wu(t,6,M2,A)},M2=[3,
4,5,6];var IWw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(IWw,_.e3);var CX=function(A){var t=new IWw;return _.CU(t,1,A)},hS=function(A,t){return _.Wu(A,2,x3k,t)},x3k=[2,
3,4,5];var jPp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(jPp,_.e3);var RX=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(RX,_.e3);var YEC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(YEC,_.e3);var VQT=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(VQT,_.e3);var ZLE=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(ZLE,_.e3);var owC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(owC,_.e3);var d3C=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(d3C,_.e3);var mM=function(A){return _.Mq(A,Ow,5)};var SET=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(SET,_.e3);SET.prototype.getValue=function(){return RD(this,1)};var $3K=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R($3K,_.e3);var bJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(bJ,_.e3);bJ.prototype.getMetadata=function(){return _.pd(this,ZLE,7,WL)};
bJ.prototype.hasMetadata=function(){return _.TR(this,ZLE,7,WL)};
var HLT=_.KQq(bJ),WL=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var yO=function(A){this.JSC$12260_name_=A;this.files_=[];this.directories_=[];this.directoryMap_={}};
yO.prototype.getName=function(){return this.JSC$12260_name_};var LX=function(A,t){this.callback_=t;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new yO("");aWE(this,A,this.rootDirectory_);vL(this)},aWE=function(A,t,f){for(var X=0;X<t.length;X++){var Q=t[X];
Q.isFile?(A.fileOps_++,Q.file((0,_.F1)(A.handleFileSuccess_,A,f),(0,_.F1)(A.handleFileError_,A))):A.unscannedDirectories_.push(new Kmw(Q,f))}},vL=function(A){if(A.unscannedDirectories_.length>0&&A.directoryOps_<5&&!A.hasError_){A.directoryOps_++;
var t=A.unscannedDirectories_.shift(),f=t.entry,X=new yO(f.name);t=t.parent;t.directoryMap_[X.getName()]=X;t.directories_.push(X);f=f.createReader();f.readEntries((0,_.F1)(A.handleDirectorySuccess_,A,f,X),(0,_.F1)(A.handleDirectoryError_,A))}A.directoryOps_!=0||A.fileOps_!=0||A.unscannedDirectories_.length!=0&&!A.hasError_||A.callback_(A.rootDirectory_.files_,A.rootDirectory_.directories_,A.hasError_)};
LX.prototype.handleDirectorySuccess_=function(A,t,f){aWE(this,f,t);f.length==0?(this.directoryOps_--,vL(this)):A.readEntries((0,_.F1)(this.handleDirectorySuccess_,this,A,t),(0,_.F1)(this.handleDirectoryError_,this))};
LX.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;vL(this)};
LX.prototype.handleFileSuccess_=function(A,t){A.files_.push(t);this.fileOps_--;vL(this)};
LX.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;vL(this)};
var Kmw=function(A,t){this.entry=A;this.parent=t};var pX=function(A){_.p_.call(this);_.TV(A,"drop",this.onObjectsDropped_,!1,this);_.TV(A,"dragenter",this.onFilesDragged_,!1,this);_.TV(A,"dragover",this.onFilesDragged_,!1,this);_.TV(A,"dragleave",this.onDragLeave_,!1,this);_.TV(A,"dragend",this.onDragLeave_,!1,this)};
_.rS(pX,_.p_);var gwi=function(A,t){_.b6.call(this,"f");this.files=A;this.directories=t};
_.rS(gwi,_.b6);var woE=function(){_.b6.call(this,"h")};
_.rS(woE,_.b6);var sP8=function(){_.b6.call(this,"i")};
_.rS(sP8,_.b6);var kYC=function(){_.b6.call(this,"g")};
_.rS(kYC,_.b6);pX.prototype.onObjectsDropped_=function(A){var t=this;A.preventDefault();var f=A.event_.dataTransfer;if((A=f&&f.items)&&A.length>0&&A[0].webkitGetAsEntry){f=[];for(var X=[],Q=0;Q<A.length;Q++){var q=A[Q].webkitGetAsEntry();q?f.push(q):X.push(A[Q])}new LX(f,function(e,G,N){N?t.dispatchEvent(new kYC("Error occurred while reading from the file system.")):t.dispatchEvent(new gwi(e,G,X))})}else(A=f&&f.files)&&this.dispatchEvent(new gwi(Array.from(A),[]))};
pX.prototype.onFilesDragged_=function(A){A.type==="dragenter"&&this.dispatchEvent(new woE);A.preventDefault()};
pX.prototype.onDragLeave_=function(){this.dispatchEvent(new sP8)};var rHf=function(A,t){this.JSC$12283_name_=A;this.inputElement_=t};
rHf.prototype.getName=function(){return this.JSC$12283_name_};
rHf.prototype.getInputElement=function(){return this.inputElement_};var Ew=function(A,t,f){t=t===void 0?"single_file":t;f=f===void 0?[]:f;_.p_.call(this);this.overlayTarget_=A;this.parentOverlay_=A!=null?A.parentNode:_.yT("scotty-overlay-parent");this.selectorType_=t;this.acceptTypes_=f;this.overlay_=A9l(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.R(Ew,_.p_);
var A9l=function(A,t,f,X){var Q=document.createElement("input");Q.setAttribute("type","file");Q.setAttribute("name","Filedata");_.TV(Q,"change",A.onFilesSelected_,!1,A);f==="multiple_file"&&(Q.multiple="true");f==="single_directory"&&(Q.webkitdirectory="true");X.length>0&&Q.setAttribute("accept",X.join(","));Q.style.position="absolute";Q.style.overflow="hidden";Q.style.height="0px";Q.style.width="0px";Q.style.opacity="0";Q.setAttribute("aria-hidden","true");Q.setAttribute("tabIndex",-1);if(A.overlayTarget_!=
null)return Q.style.height=t.offsetHeight+"px",Q.style.width=t.offsetWidth+"px",A.parentOverlay_&&(A.parentOverlay_.style.position="relative"),_.Y6(Q,t),$6(Q,new _.ok(t.offsetLeft,t.offsetTop)),Q;A.parentOverlay_.appendChild(Q);return Q};
Ew.prototype.click=function(){this.overlay_.click()};
Ew.prototype.onFilesSelected_=function(A){a:{try{var t=(new XMLHttpRequest).upload!==void 0;break a}catch(z){}t=!1}if(t){var f;A=Array.from((f=A.target.files)!=null?f:[]);f=[];if(this.selectorType_==="single_directory"&&(_.q1||Nq||_.Qe)){f=new yO("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(t=0;t<A.length;t++)for(var X=A[t],Q=X.webkitRelativePath.split("/"),q=f,e=0;e<Q.length;e++){var G=Q[e];if(e==Q.length-1){G!="."&&q.files_.push(X);break}var N=q.directoryMap_[G];N==void 0&&(G=
N=new yO(G),q.directoryMap_[G.getName()]=G,q.directories_.push(G));q=N}f=f.directories_}this.dispatchEvent(new th7(A,f,null))}else A=A.target.value,A.match(/^c:\\fakepath\\/i)&&(A=A.substring(12)),this.dispatchEvent(new th7([],[],new rHf(A,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=A9l(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var th7=function(A,t){_.b6.call(this,"j");this.files=A;this.directories=t};
_.R(th7,_.b6);var fzp=function(A){this.uploadUrl_=A};var X0S=function(){_.p_.call(this)};
_.rS(X0S,_.p_);var nX=function(A){_.b6.call(this,A)};
_.rS(nX,_.b6);var Du=function(A){_.b6.call(this,A)};
_.rS(Du,_.b6);var QR7=function(A,t,f,X,Q){_.p_.call(this);f=document.createElement("form");f.setAttribute("method",t);f.setAttribute("enctype","multipart/form-data");f.setAttribute("encoding","multipart/form-data");t=document.createElement("input");t.setAttribute("type","hidden");t.setAttribute("name","metadata");t.setAttribute("value",Q);f.appendChild(t);f.appendChild(X);this.JSC$12300_form_=f;A=new _.oq(A);_.AZ(A,"upload_protocol","multipart");this.JSC$12300_url_=A.toString();this.JSC$12300_request_=new TJ;this.state_=
"Ready";this.JSC$12300_errorDescription_=null;this.JSC$12300_eventHandler_=new _.CP(this);_.hV(this,this.JSC$12300_eventHandler_);this.JSC$12300_eventHandler_.listen(this.JSC$12300_request_,"success",this.onTransferSuccess_);this.JSC$12300_eventHandler_.listen(this.JSC$12300_request_,"error",this.onTransferError_)};
_.R(QR7,X0S);_.J=QR7.prototype;_.J.run=function(){this.state_="Transferring";var A=this.JSC$12300_request_,t=this.JSC$12300_form_;if(A.JSC$11568_active_)throw Error("ue");var f=new _.oq(this.JSC$12300_url_||t.action);A.JSC$11568_form_=t;t=A.JSC$11568_form_;f=_.af(f.toString());f!==void 0&&(t.action=f);uIp(A)};
_.J.getResponseCode=function(){return null};
_.J.getResponseText=function(){return this.JSC$12300_request_&&this.JSC$12300_request_.getResponseText()||null};
_.J.JSC$30038_getErrorDescription=function(){return this.JSC$12300_errorDescription_};
_.J.cancel=function(){this.JSC$12300_request_&&this.JSC$12300_request_.abort();this.state_="Cancelled";this.dispatchEvent(new nX("o"))};
_.J.pause=function(){};
_.J.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new nX("l"))};
_.J.onTransferError_=function(){this.JSC$12300_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new nX("n"))};var FL=function(){_.Yg.call(this)};
_.R(FL,_.Yg);FL.prototype.createXhr=function(){var A=_.Yg.prototype.createXhr.call(this);A.upload&&(A.upload.onprogress=(0,_.F1)(this.onProgress_,this));return A};
FL.prototype.onProgress_=function(A){this.dispatchEvent(A)};var qAS=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},UH7=function(A,t){var f=A.attempt_+1;
if(A.maxAttempts_>0&&f>A.maxAttempts_)return!1;f==0?t():A.delayCallId_=Ib(function(){A.delayCallId_=null;t()},J9k(A),A);
A.attempt_=f;return!0};
qAS.prototype.reset=function(){this.delayCallId_&&_.Xb.clearTimeout(this.delayCallId_);this.attempt_=-1};
var J9k=function(A){var t=250*Math.pow(2,A.attempt_);A.maxDelayMs_>=0&&(t=Math.min(t,A.maxDelayMs_));return t};var b6p=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var IX=function(){_.p_.call(this);this.JSC$12310_request_=this.state_=null;this.JSC$12310_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12310_bytesTransferred_=0;this.retryIterator_=new qAS;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12310_errorDescription_=null;this.JSC$12310_eventHandler_=new _.CP(this);_.hV(this,this.JSC$12310_eventHandler_);this.JSC$12310_url_=this.blob_=null;this.JSC$12310_method_=void 0;this.chunkSize_=this.JSC$12310_metadata_=
this.JSC$12310_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12310_responseText_=this.JSC$12310_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.rS(IX,X0S);_.J=IX.prototype;_.J.run=function(){x4(this)};
_.J.getResponseCode=function(){return this.JSC$12310_responseCode_};
_.J.getResponseText=function(){return this.JSC$12310_responseText_};
_.J.JSC$30038_getErrorDescription=function(){return this.JSC$12310_errorDescription_};
_.J.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12310_eventHandler_.removeAll();this.JSC$12310_request_&&this.JSC$12310_request_.abort();this.retryIterator_.reset();var A=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(A==="Upload"||A==="Query")A=new FL,A.JSC$9879_withCredentials_=this.JSC$12310_withCredentials_,A.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12310_bytesTransferred_=
0;this.dispatchEvent(new nX("o"))}};
_.J.pause=function(){this.pauseRequested_=!0};
var x4=function(A){var t=A.state_;A.pauseRequested_?(A.pauseRequested_=!1,A.stateAfterUnpausing_=t,A.state_="Paused"):UH7(A.retryIterator_,function(){switch(A.state_){case "Start":A.JSC$12310_request_=new FL;var f=_.VG.clone(A.JSC$12310_headers_);A.blob_.size!=null&&(f["Content-Length"]=A.blob_.size);f=Wbx(f);f["X-Goog-Upload-Protocol"]="resumable";f["X-Goog-Upload-Command"]="start";A.JSC$12310_eventHandler_.removeAll();A.JSC$12310_eventHandler_.listen(A.JSC$12310_request_,"complete",A.onStartComplete_);
A.JSC$12310_request_.JSC$9879_withCredentials_=A.JSC$12310_withCredentials_;A.JSC$12310_request_.send(A.JSC$12310_url_,A.JSC$12310_method_,A.JSC$12310_metadata_,f);A.lastCommandResponseCode_=null;A.dispatchEvent(new Du("q"));break;case "Upload":f=A.transferHandle_.uploadUrl_;var X=A.blob_.size;if(ZGT()){var Q=A.chunkSize_;var q=A.offset_+Q>=X;X=VaK(A.blob_,A.offset_,q?X:A.offset_+Q)}else A.offset_=0,X=A.blob_,q=!0;A.JSC$12310_request_=new FL;A.JSC$12310_request_.JSC$9879_withCredentials_=A.JSC$12310_withCredentials_;
A.JSC$12310_eventHandler_.removeAll();A.JSC$12310_eventHandler_.listen(A.JSC$12310_request_,"progress",A.onUploadProgress_);Q=(0,_.F1)(A.JSC$12312_onUploadComplete_,A,A.offset_+X.size,q);A.JSC$12310_eventHandler_.listen(A.JSC$12310_request_,"complete",Q);A.lastCommandResponseCode_=null;A.dispatchEvent(new Du("q"));q=Object.assign({},A.JSC$12310_headers_||{},{"X-Goog-Upload-Command":"upload"+(q?", finalize":""),"X-Goog-Upload-Offset":A.offset_});A.JSC$12310_request_.send(f,"POST",X,q);break;case "Query":A.JSC$12310_request_=
new FL;A.JSC$12310_eventHandler_.removeAll();A.JSC$12310_eventHandler_.listen(A.JSC$12310_request_,"complete",A.onQueryComplete_);f=Object.assign({},A.JSC$12310_headers_||{},{"X-Goog-Upload-Command":"query"});A.JSC$12310_request_.send(A.transferHandle_.uploadUrl_,"POST","",f);A.lastCommandResponseCode_=null;A.dispatchEvent(new Du("q"));break;default:throw Error("mf");}})||j4(A,"Transfer encountered too many consecutive failures.")},j4=function(A,t){A.state_="Error";
A.JSC$12310_errorDescription_=t;A.dispatchEvent(new nX("n"))};
IX.prototype.onStartComplete_=function(A){var t=A.target;this.lastCommandResponseCode_=t.getStatus();this.dispatchEvent(new Du("r"));if(e6b(t))GE8(this,t);else if(lzk(t)){A=q4(A.target.getAllResponseHeaders());for(var f in A)_.ql(f.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new nX("m"));f=cs(A,"X-Goog-Upload-URL");A=(A=cs(A,"X-Goog-Upload-Chunk-Granularity"))?parseInt(A,10):1;f===void 0||isNaN(A)||A<=0?j4(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
A)*A,this.transferHandle_=new fzp(f),this.dispatchEvent(new nX("p")),this.state_="Upload",this.retryIterator_.reset(),x4(this))}else x4(this)};
IX.prototype.onUploadProgress_=function(A){this.JSC$12310_bytesTransferred_=this.offset_+A.loaded;this.dispatchEvent(new nX("k"))};
IX.prototype.JSC$12312_onUploadComplete_=function(A,t,f){var X=this,Q,q;return _.l(function(e){switch(e.nextAddress){case 1:Q=f.target;X.lastCommandResponseCode_=Q.getStatus();X.dispatchEvent(new Du("r"));if(N8T(Q)||Q.getStatus()==404)return X.JSC$12310_bytesTransferred_=A,GE8(X,Q),e.return();if(lzk(Q)){e.jumpTo(2);break}if(!(q=X.detectCorruptedBlobEnabled_)){e.jumpTo(3);break}return e.yield(ug7(X),4);case 4:q=e.yieldResult;case 3:if(q)return j4(X,"Blob has been modified or corrupted."),e.return();
X.requireUploadRequestModification_=Q.getStatus()==400;X.state_="Query";x4(X);return e.return();case 2:if(t)return j4(X,"Got a non-final success response after issuing a finalize command."),e.return();X.JSC$12310_bytesTransferred_=A;X.offset_=A;X.retryIterator_.reset();x4(X);return e.return()}})};
IX.prototype.onQueryComplete_=function(A){var t=A.target;this.lastCommandResponseCode_=t.getStatus();this.dispatchEvent(new Du("r"));e6b(t)?(t.getStatus()===200&&(this.JSC$12310_bytesTransferred_=this.blob_.size),GE8(this,t)):lzk(t)?(A=q4(A.target.getAllResponseHeaders()),A=parseInt(cs(A,"X-Goog-Upload-Size-Received"),10),isNaN(A)?j4(this,"Server did not respond with current offset."):A<this.offset_?j4(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
A+"."):this.requireUploadRequestModification_&&this.offset_===A?j4(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<A&&this.retryIterator_.reset(),this.offset_=this.JSC$12310_bytesTransferred_=A,this.state_="Upload",x4(this))):x4(this)};
var GE8=function(A,t){A.JSC$12310_responseCode_=t.getStatus();var f=q4(t.getAllResponseHeaders());yhb(f);A.JSC$12310_responseText_=t.getResponseText();A.state_="Response received";A.dispatchEvent(new nX("l"))},lzk=function(A){var t=A.getStatus();
A=q4(A.getAllResponseHeaders());A=cs(A,"X-Goog-Upload-Status");return t===200&&A==="active"},N8T=function(A){A=q4(A.getAllResponseHeaders());
return cs(A,"X-Goog-Upload-Status")==="final"},e6b=function(A){if(N8T(A))return!0;
A=A.getStatus();return A>=400&&A<500},ug7=function(A){var t;
return _.l(function(f){if(f.nextAddress==1){if(!A.blob_||A.originalBlobSize_<=0)return f.return(!1);if(A.blob_.size!==A.originalBlobSize_)return f.return(!0);_.ht(f,2);if(t=VaK(A.blob_,0,1)){var X=f.yield,Q=new k3,q=Rnf(Q);Q.reader_.readAsBinaryString(t);f=X.call(f,q,4)}else f=f.return(!0);return f}if(f.nextAddress!=2)return f.return(A.blob_.size!==A.originalBlobSize_);_.vC(f);return f.return(!0)})};var z6T=function(A,t,f,X,Q,q){_.p_.call(this);this.payload_=X;this.JSC$12313_url_=A;this.JSC$12313_method_=t;this.JSC$12313_headers_=f;this.JSC$12313_metadata_=Q;this.encoding_=q||"binary";A=new _.x3;this.boundary_="uploader-"+sB()+"-"+A.JSC$11417_toIsoString();this.JSC$12313_responseText_=this.JSC$12313_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12313_errorDescription_=null;this.JSC$12313_eventHandler_=new _.CP(this);_.hV(this,this.JSC$12313_eventHandler_)};
_.R(z6T,X0S);_.J=z6T.prototype;
_.J.run=function(){var A=_.VG.clone(this.JSC$12313_headers_);this.payload_.length!=null&&(A["Content-Length"]=this.payload_.length);A=Wbx(A);A["X-Goog-Upload-Protocol"]="multipart";A["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new FL;this.JSC$12313_eventHandler_.removeAll();this.JSC$12313_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12313_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12313_url_,this.JSC$12313_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12313_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",A)};
_.J.getResponseCode=function(){return this.JSC$12313_responseCode_};
_.J.getResponseText=function(){return this.JSC$12313_responseText_};
_.J.JSC$30038_getErrorDescription=function(){return this.JSC$12313_errorDescription_};
_.J.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12313_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new nX("o")))};
_.J.pause=function(){};
_.J.onTransferProgress_=function(){this.dispatchEvent(new nX("k"))};
_.J.onTransferComplete_=function(A){var t=A.target.getStatus();t===void 0||t===-1?(this.JSC$12313_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new nX("n"))):(this.JSC$12313_responseCode_=t,A=A.target,t=q4(A.getAllResponseHeaders()),yhb(t),this.JSC$12313_responseText_=A.getResponseText(),this.state_="Complete",this.dispatchEvent(new nX("l")))};_.Pe7=function(A,t,f,X){X=X===void 0?!1:X;if(f instanceof rHf)return new QR7(A,"POST",t,f.getInputElement(),"");if(typeof f==="string"||f instanceof String)return new z6T(A,"POST",t,f,"");var Q=new IX(void 0);Q.JSC$12310_url_=A;Q.JSC$12310_method_="POST";Q.JSC$12310_headers_=t;Q.blob_=f;Q.originalBlobSize_=f.size;Q.JSC$12310_metadata_="";X&&(Q.JSC$12310_withCredentials_=X);Q.state_="Start";return Q};var Y4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Y4,_.e3);_.J=Y4.prototype;_.J.getEnableSsEngine=function(){return _.hJ(this,2)};
_.J.getEnableAwr=function(){return _.hJ(this,3)};
_.J.getAlohaAutoGaRollout=function(){return _.hJ(this,5)};
_.J.getEnableConfigurator=function(){return _.hJ(this,6)};
_.J.getEnableMweb=function(){return _.hJ(this,7)};
var iri=function(){var A=T8p();return _.CG(A,7,!0)};
Y4.prototype.getEnableCtlConsentCheckbox=function(){return _.hJ(this,8)};
Y4.prototype.getEnableIframe=function(){return _.hJ(this,9)};
var T8p=function(){var A=new Y4;A=_.CG(A,5,!0);A=_.CG(A,2,!0);A=_.CG(A,4,!1);A=_.CG(A,8,!0);return _.CG(A,9,!0)};
Y4.prototype.getEnableScreenshotNudge=function(){return _.hJ(this,10)};
var OrK=function(){var A=iri();return _.CG(A,10,!0)};
Y4.prototype.getEnableWebStartupConfigEndpoint=function(){return _.hJ(this,11)};
Y4.prototype.getEnableJunkNudge=function(){return _.hJ(this,12)};
var aoT=function(){var A=OrK();return _.CG(A,12,!0)};
_.J=Y4.prototype;_.J.getEnableConfiguratorLocale=function(){return _.hJ(this,13)};
_.J.getEnableTinyNoPointer=function(){return _.hJ(this,14)};
_.J.getEnableSupportSessionLogging=function(){return _.hJ(this,15)};
_.J.getEnableFileUploadForScreenshot=function(){return _.hJ(this,16)};
_.J.getEnableDirectDeflectionForSingleCategory=function(){return _.hJ(this,17)};
_.J.getEnableImageSanitization=function(){return _.hJ(this,18)};
_.J.getEnableAlohaBinarySplit=function(){return _.hJ(this,19)};
_.J.getEnableDbFeedbackIntents=function(){return _.hJ(this,20)};
_.J.getEnableMarkMandatoryFieldsWithRequired=function(){return _.hJ(this,21)};
_.J.getEnableFeedbackCategoryCustomUi=function(){return _.hJ(this,22)};
_.J.getEnableRealtimeCtl=function(){return _.hJ(this,23)};var H6g=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(H6g,_.e3);var v3b=[/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 prT="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 E3g=_.dS(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),n3q=_.dS(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Bs=function(){var A=Error.call(this,"Form is either loading or already opened");this.message=A.message;"stack"in A&&(this.stack=A.stack);this.name="DuplicateFormError"};
_.R(Bs,Error);var Fbz,jYx,Ioz,YU5;var VO,c97;
VO=function(A,t,f){A.timeOfStartCall=(new Date).getTime();var X=f||_.Xb,Q=X.document,q=A.nonce||_.fO(X.document);q&&!A.nonce&&(A.nonce=q);if(A.flow=="help"){var e=_.Ae("document.location.href",X);!A.helpCenterContext&&e&&(A.helpCenterContext=e.substring(0,1200));e=!0;if(t&&JSON&&JSON.stringify){var G=JSON.stringify(t);(e=G.length<=1200)&&(A.psdJson=G)}e||(t={invalidPsd:!0})}t=[A,t,f];X.GOOGLE_FEEDBACK_START_ARGUMENTS=t;f=A.feedbackServerUri||"//www.google.com/tools/feedback";if(e=X.GOOGLE_FEEDBACK_START)e.apply(X,t);
else{X=f+"/load.js?";for(var N in A)t=A[N],t==null||_.Hp(t)||(X+=encodeURIComponent(N)+"="+encodeURIComponent(t)+"&");A=nn(Q).createElement("SCRIPT");q&&A.setAttribute("nonce",q);_.UV(A,_.pb(X));Q.body.appendChild(A)}};
c97=function(A,t,f,X){var Q,q;return _.l(function(e){Q=f||_.Xb;var G=A.serverEnvironment==="DEV",N=f||_.Xb;N=A.nonce||_.fO(N.document);G={integrationKeys:{productId:A.productId,feedbackBucket:A.bucket,triggerId:A.triggerId},callbacks:{onClose:A.callback,onLoad:A.onLoadCallback},formContent:{locale:A.locale,disableScreenshot:A.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:A.abuseLink,additionalDataConsent:A.additionalDataConsent},initializationData:{isLocalServer:G,nonce:N,useNightlyRelease:G,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:A.feedbackServerUri,colorScheme:A.colorScheme},extraData:{productVersion:A.productVersion,authUser:A.authuser,configuratorId:A.configuratorId,customZIndex:A.customZIndex,tinyNoPointer:A.tinyNoPointer,
allowNonLoggedInFeedback:A.allowNonLoggedInFeedback,enableAnonymousFeedback:A.enableAnonymousFeedback}};t&&(N=new Map(Object.entries(t)),G.extraData.productSpecificData=N);q=G;return e.yield(d$5(q,X,Q),0)})};
_.B8b=function(A,t,f){try{if(A.flow==="help"){var X=A.helpCenterPath.replace(/^\//,"");_.tt(f||window,"https://support.google.com/"+X)}else A.flow==="submit"?VO(A,t,f):Kbx(A.productId,A.feedbackServerUri).then(function(Q){Q=_.Mq(Q,Y4,1);var q=!axC||(Q==null?void 0:Q.getEnableMweb()),e=!A.tinyNoPointer||(Q==null?void 0:Q.getEnableTinyNoPointer());!Q||Q.getAlohaAutoGaRollout()&&q&&e?c97(A,t,f,Q).catch(function(G){!G||G instanceof Bs||VO(A,t,f)}):VO(A,t,f)},function(Q){!Q||Q instanceof Bs||VO(A,t,f)})}catch(Q){c97(A,
t,f,null).catch(function(q){!q||q instanceof Bs||VO(A,t,f)})}};
_.zm("userfeedback.api.startFeedback",_.B8b);var g3T=/https?:\/\/\S+\.\S+/,wr5=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],sYT=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Yq5=function(A){var t=A.split(""),f=[-263237435,15,t,function(X,Q,q){var e=Q.length;q.forEach(function(G,N,z){this.push(z[N]=Q[(Q.indexOf(G)-Q.indexOf(this[N])+N+e--)%Q.length])},X.split(""))},
function(X,Q){X=(X%Q.length+Q.length)%Q.length;Q.splice(-X).reverse().forEach(function(q){Q.unshift(q)})},
"response",function(){for(var X=64,Q=[];++X-Q.length-32;){switch(X){case 58:X-=14;case 91:case 92:case 93:continue;case 123:X=47;case 94:case 95:case 96:continue;case 46:X=95}Q.push(String.fromCharCode(X))}return Q},
null,12,1540023973,65941107,null,t,function(X,Q){for(X=(X%Q.length+Q.length)%Q.length;X--;)Q.unshift(Q.pop())},
695603893,function(X){for(var Q=X.length;Q;)X.push(X.splice(--Q,1)[0])},
"'[;'[(",function(X,Q){X.push(Q)},
null,function(X,Q,q,e,G){return Q(q,e,G)},
"continuation",t,function(X,Q){if(X.length!=0){Q=(Q%X.length+X.length)%X.length;var q=X[0];X[0]=X[Q];X[Q]=q}},
function(){for(var X=64,Q=[];++X-Q.length-32;){switch(X){case 91:X=44;continue;case 123:X=65;break;case 65:X-=18;continue;case 58:X=96;continue;case 46:X=95}Q.push(String.fromCharCode(X))}return Q},
'"),/]];'];f[7]=f;f[11]=f;f[18]=f;try{(((0,f[15])(f[21]),f[22])(f[11],f[9]),f[22])(f[new Date("1970-01-01T04:30:12.000+04:30")/1E3],f[1]),((0,f[22])(f[11],f[23]),f[4])(f[10],f[18]),(0,f[20])(f[21],f[14])<<(0,f[17])(f[18],f[1]),(0,f[4])(f[8],f[21]),(0,f[19])((0,f[19])((0,f[17])(f[7],f[9]),f[3],f[20],(0,f[6])(),f[2]),f[3],f[5],(0,f[15])(),f[2])}catch(X){return"aTlOUOubTO4AP____8P_"+A}return t.join("")};_.Mhp=new _.UA("runAttestationCommand");var Cei=new _.UA("verifyCommand");_.Tq=new _.UA("accessibilityContext");var h6K=new _.UA("accessibilityData");var R6K=new _.UA("profileCardCommand");var vM5=new _.UA("signInEndpoint");var yxb=new _.UA("signOutEndpoint");var br7;_.mHw=new _.UA("accountItemSectionRenderer");br7=new _.UA("accountItemRenderer");_.W1f=new _.UA("saveCommandToSessionStorageAction");var y9S=new _.UA("crossAccountChannelTransferEndpoint");var Mfl=new _.UA("getAccountMenuEndpoint");_.CVp=new _.UA("getAccountSwitcherEndpoint");var Byb=new _.UA("getAccountsListEndpoint");var vdk=new _.UA("getAccountsListInnertubeEndpoint");_.L1k=new _.UA("addToToastAction");var p0k=new _.UA("hideEnclosingAction");_.Zu=new _.UA("replaceEnclosingAction");var Edf=new _.UA("buttonRefreshAction");var nd7=new _.UA("adsControlFlowOpportunityReceivedCommand");var DHS=new _.UA("openAdAllowlistInstructionCommand");var F1T=new _.UA("videoMastheadAdPrimaryVideoRenderer");var Izk=new _.UA("displayAdRenderer");_.xH7=new _.UA("inFeedAdLayoutRenderer");var jRT=new _.UA("sequenceItemInPlayerAdLayoutRenderer");_.YAw=new _.UA("adSlotRenderer");var Vhi=new _.UA("adAvatarViewModel");var Zrl=new _.UA("adBadgeViewModel");var odT=new _.UA("adButtonViewModel");var dHC=new _.UA("adImageViewModel");var Sax=new _.UA("reelsAdCardButtonedViewModel");var SAw=new _.UA("reelsPlayerOverlayLayoutViewModel");var $HS=new _.UA("formDataDecoratorCommand");var HrC=new _.UA("updateConversationIdCommand");var azp=new _.UA("showSchedulingPanelCommand");var K1i=new _.UA("backstageCommentsRenderer");var gdS=new _.UA("backstageImageRenderer");var w0k=new _.UA("backstagePostRenderer");var sRi=new _.UA("backstageZeroStateRenderer");var kEf=new _.UA("postRenderer");var r9l=new _.UA("sharedPostRenderer");var AhC=new _.UA("createBackstagePostEndpoint");var tPi=new _.UA("getPostVideoPreviewEndpoint");var fof=new _.UA("updateBackstagePostEndpoint");var Xrp=new _.UA("filterChipTransformCommand");var QY7=new _.UA("insertRichSectionCommand");var iz5=new _.UA("talkToRecsDeselectCommand");var qUK=new _.UA("talkToRecsNextCommand");var Tux=new _.UA("talkToRecsSelectCommand");var Stx=new _.UA("talkToRecsUpdateTextCommand");_.GD=new _.UA("browseEndpoint");_.JhE=new _.UA("confirmDialogEndpoint");var U$i=new _.UA("expandOnHoverCardRenderer");var eAT=new _.UA("lumiereShelfDetailsRenderer");var GIp=new _.UA("revealBusinessEmailCommand");var loC=new _.UA("validateChannelHandleCommand");var Nc7=new _.UA("channelCreationFormEndpoint");var uXk=new _.UA("aboutChannelViewModel");var zA8=new _.UA("channelThumbnailWithLinkRenderer");var PA7=new _.UA("channelCreationServiceEndpoint");var Tcf=new _.UA("updateChannelPageSettingsEndpoint");var oX=function(A){this.delegate=A},dB=function(){oX.apply(this,arguments)};
_.R(dB,oX);_.PV.Object.defineProperties(dB.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(A){this.delegate.entityMetadata=A}}});var i6p=function(){dB.apply(this,arguments)};
_.R(i6p,dB);i6p.prototype.getAssociations=function(){return[]};
i6p.prototype.getTypeName=function(){return"channelHandle"};var m70=new _.UA("webThumbnailDetailsExtensionData");_.y9=new _.UA("commandContext");var O6K=new _.UA("addVideoLinkAction");var chf=new _.UA("banAuthorAction");var Bcw=new _.UA("createCommentAction");var MPT=new _.UA("createCommentReplyAction");var CAk=new _.UA("createPollAction");var hAb=new _.UA("hideIdentityChipAction");var RAl=new _.UA("openUpdateCommentDialogAction");var m$l=new _.UA("pinCommentAction");var b6T=new _.UA("removeCommentAction");var Wb7=new _.UA("unpinCommentAction");var S4=new _.UA("updateBackstagePollAction");var yhf=new _.UA("updateCommentVoteAction");var v3f=new _.UA("commentThreadRenderer");var LbT=function(){dB.apply(this,arguments)};
_.R(LbT,dB);LbT.prototype.getAssociations=function(){return[]};
LbT.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var pri=function(){dB.apply(this,arguments)};
_.R(pri,dB);pri.prototype.getAssociations=function(){return[]};
pri.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.E3S=new _.UA("commentDialogRenderer");var n38=new _.UA("reloadCommentsCommand");var D$E=new _.UA("updateCommentsSettingsEndpoint");var Fbk=new _.UA("commentViewModel");var Iok=new _.UA("triStateButtonViewModel");var x$T=new _.UA("voiceReplyContainerViewModel");_.Xd=new _.UA("commandExecutorCommand");var h7=new _.UA("emoji");var jYw=new _.UA("updateCreatorChannelInnertubeCommand");_.YUC=new _.UA("appendContinuationItemsAction");_.VPi=new _.UA("changeEngagementPanelVisibilityAction");_.L1=new _.UA("continuationCommand");var Z6C=new _.UA("hideReportedCommentAction");var o3k=new _.UA("listMutationCommand");_.$4=new _.UA("openPopupAction");var d$l=new _.UA("persistSubscriptionsDisplayPreferencesCommand");var sYi;_.SUp=new _.UA("playlistRemoveVideosAction");_.$$8=new _.UA("updatePlaylistAction");_.H6S=new _.UA("addToPlaylistCommand");_.aoi=new _.UA("endPlaylistCommand");_.KbT=new _.UA("recoverPlaylistCommand");_.g3i=new _.UA("refreshPlaylistCommand");_.wrl=new _.UA("refreshFormCommand");sYi=new _.UA("openOnePickAddVideoModalCommand");_.yig=new _.UA("reloadContinuationItemsCommand");_.kIS=new _.UA("scrollToEngagementPanelCommand");var rh7=new _.UA("selectCountryCommand");var A2E=new _.UA("showReloadUiCommand");var tm7=new _.UA("undoFeedbackAction");var fek=new _.UA("updateButtonAction");var XYp=new _.UA("updateSubscribeButtonAction");var Qzw=new _.UA("updateToggleAction");var qmC=new _.UA("webNativeShareCommand");_.Jl=new _.UA("webCommandMetadata");_.HL=new _.UA("webHandleServiceEndpointExtension");var OTz=new _.UA("webNavigationEndpointData");var J2T=new _.UA("backgroundAudioPlaybackCommand");var UhC=new _.UA("copyLinkCommand");var e2K=new _.UA("playlistVotingRefreshPopupCommand");var GJb=new _.UA("selectChipCommand");var lel=new _.UA("setCookieCommand");var NO8=new _.UA("setLocalStorageCommand");var u9i=new _.UA("setPrefStorageEntryCommand");var i9K;_.z27=new _.UA("settingsUpdateCheckboxCommand");_.PaK=new _.UA("settingsUpdateTextCommand");_.TOT=new _.UA("settingsUpdateOptionsCommand");i9K=new _.UA("settingsUpdateSwitchCommand");_.O9C=new _.UA("settingsUpdateConnectedAppRendererCommand");var c2i=new _.UA("showCreatorChatbotEngagementPanelCommand");var BOE=new _.UA("updateTextInputFormFieldRendererCommand");var Mmp=new _.UA("updateToggleButtonStateCommand");var Cai=new _.UA("updateUrlParamCommand");var h2l=new _.UA("webSubmitFormCommand");var R2T=new _.UA("channelSwitcherPageRenderer"),mhT=new _.UA("updateChannelSwitcherPageAction");_.H$=new _.UA("continuationItemRenderer");_.aX=new _.UA("richItemRenderer");var b98=new _.UA("richSectionRenderer");_.WqK=new _.UA("richShelfRenderer");_.y2k=new _.UA("metadataBadgeRenderer");_.vDw=new _.UA("multiPageMenuNotificationSectionRenderer");_.Lqp=new _.UA("playlistLoopButtonStateRenderer");var pYT=new _.UA("claimLegacyYoutubeChannelEndpoint");var EDC=new _.UA("getNotificationMenuEndpoint");var nDC=new _.UA("getSearchInVideoCommand");_.DhK=new _.UA("getTranscriptEndpoint");_.qJ=new _.UA("signalServiceEndpoint");var Fq7=new _.UA("verifyAgeEndpoint");var ovg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(ovg,_.e3);ovg.prototype.getPath=function(){return _.Wz(this,1)};
ovg.prototype.getValue=function(){return _.Wz(this,2)};var IeT=[0,_.wV,-1];var xhk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(xhk,_.e3);var Ztp=_.Bu(xhk,[0,_.rV,IeT]);var jzT=new _.UA("dismissalEndpoint");var Ymp=new _.UA("elementsCommand");_.mG=new _.UA("innertubeCommand");var VmS=new _.UA("multipleInlinePlaybackCommand");var tVx=new _.UA("loggingDirectives");var Z9l=new _.UA("acknowledgeChannelTouStrikeCommand");var oDk=function(){dB.apply(this,arguments)};
_.R(oDk,dB);oDk.prototype.getAssociations=function(){return[]};
oDk.prototype.getTypeName=function(){return"booleanEntity"};var dhT=function(){dB.apply(this,arguments)};
_.R(dhT,dB);dhT.prototype.getAssociations=function(){return[]};
dhT.prototype.getTypeName=function(){return"stringEntity"};var Zn=new _.UA("entityBatchUpdate");_.Sm7=new _.UA("entityUpdateCommand");var $hp=function(){dB.apply(this,arguments)};
_.R($hp,dB);$hp.prototype.getAssociations=function(){var A=[];this.delegate.alternateChannel&&A.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&A.push.apply(A,_.YV(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&A.push(this.delegate.oneofChannelEntity);return[].concat(_.YV(new Set(A)))};
$hp.prototype.getTypeName=function(){return"fakeChannel"};var H9p=function(){dB.apply(this,arguments)};
_.R(H9p,dB);H9p.prototype.getAssociations=function(){var A=[];this.delegate.entryCollection&&A.push(this.delegate.entryCollection);return[].concat(_.YV(new Set(A)))};
H9p.prototype.getTypeName=function(){return"fakePlaylist"};
var aep=function(){dB.apply(this,arguments)};
_.R(aep,dB);aep.prototype.getAssociations=function(){var A=[];this.delegate.parentPlaylist&&A.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var t=_.U(this.delegate.entries),f=t.next();!f.done;f=t.next())A.push.apply(A,_.YV((new KqE(f.value)).getAssociations()));return[].concat(_.YV(new Set(A)))};
aep.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var KqE=function(){oX.apply(this,arguments)};
_.R(KqE,oX);KqE.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);return[].concat(_.YV(new Set(A)))};var gDK=function(){dB.apply(this,arguments)};
_.R(gDK,dB);gDK.prototype.getAssociations=function(){var A=[];this.delegate.descriptionEntity&&A.push(this.delegate.descriptionEntity);this.delegate.creators&&A.push.apply(A,_.YV(this.delegate.creators));this.delegate.theBiggestFan&&A.push(this.delegate.theBiggestFan);return[].concat(_.YV(new Set(A)))};
gDK.prototype.getTypeName=function(){return"fakeVideo"};
var wYT=function(){dB.apply(this,arguments)};
_.R(wYT,dB);wYT.prototype.getAssociations=function(){return[]};
wYT.prototype.getTypeName=function(){return"fakeVideoDescription"};var szl=new _.UA("fantasyRosterViewModel");var kJb=new _.UA("addFollowUpSurveyCommand");var r2K=new _.UA("getSurveyCommand");var ASK=new _.UA("ratingSurveyOptionRenderer");_.vF=new _.UA("feedbackEndpoint");var t47=new _.UA("reportHistoryTableCellRenderer"),fu8=new _.UA("reportHistoryTableTextCellRenderer"),XLl=new _.UA("reportHistoryTableReasonCellRenderer");_.QXl=new _.UA("flagEndpoint");_.qwS=new _.UA("flowNextStepCommand");_.JSE=new _.UA("flowPrevStepCommand");var U2b=new _.UA("getFlowCommand");var ehb=new _.UA("submitFormWithValidationFlowCommand");_.GnT=new _.UA("updateFlowCommand");var luw=function(){dB.apply(this,arguments)};
_.R(luw,dB);luw.prototype.getAssociations=function(){return[]};
luw.prototype.getTypeName=function(){return"flowStateEntity"};var NBp=new _.UA("flowFormState");_.KX=new _.UA("flowStepRenderer");var uL8=new _.UA("gameCardRenderer");var zhf=new _.UA("accountLinkingStateChangedCommand");var PJ7=function(){dB.apply(this,arguments)};
_.R(PJ7,dB);PJ7.prototype.getAssociations=function(){return[]};
PJ7.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var TBK=new _.UA("changeMiniAppPlayStateCommand");var iXl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(iXl,_.e3);var gB=[1,2,3];var OX8=[0,gB,y_E,_.kp,BdS];var cS8=_.Bu(iXl,OX8),BBS=_.My(OX8);var M4l=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(M4l,_.e3);var CJf=[0,_.oD,_.wV];var hhk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(hhk,_.e3);var Rh7=[0,_.wV,_.oD,-1];var wB=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(wB,_.e3);var m2b=_.My([0,1,CJf,_.Xy,Rh7]);var bXS=new _.UA("miniAppScoreChallengeViewModel");var WMT=new _.UA("miniGameCardViewModel");var ySp=new _.UA("teaserCardViewModel");var v4K=function(){dB.apply(this,arguments)};
_.R(v4K,dB);v4K.prototype.getAssociations=function(){return[]};
v4K.prototype.getTypeName=function(){return"logoEntity"};var LMT=new _.UA("feedbackItemRenderer");var pLC=function(){dB.apply(this,arguments)};
_.R(pLC,dB);pLC.prototype.getAssociations=function(){return[]};
pLC.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.E4k=new _.UA("playerInterstitialRenderer");var n4S=new _.UA("getKidsBlocklistPickerCommand");_.D2T=new _.UA("updateKidsBlacklistEndpoint");_.p8=new _.UA("likeEndpoint");var FMT,Iup,x2T;FMT=new _.UA("addChatItemAction");Iup=new _.UA("removeChatItemAction");x2T=new _.UA("markChatItemAsDeletedAction");_.jXp=new _.UA("setLiveChatCollapsedStateAction");var Ywb=function(){dB.apply(this,arguments)};
_.R(Ywb,dB);Ywb.prototype.getAssociations=function(){return[]};
Ywb.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var V4b=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(V4b,_.e3);V4b.prototype.getPayloadCase=function(){return _.cz(this,ZXp)};
var ZXp=[3,4];var o4l=[0,_.rV,[0,[1,2],_.kp,_.A1,[0,_.s1,1,_.s1]]];var d2p=[0,_.wV,-1];var Swp=[0,[1],_.kp];var sw=[0,[1,2],_.kp,_.A1,[0,_.Xy]];var k4=[0,_.wV];var $2f=[0,[0,_.Kd,_.aD,[0,_.s1,_.QD,_.s1]],1,[0,_.Kd]];var HX8=[0,dV];var aui=[0,dV];var KMT=[0,aui,HX8];var g4C=[0,_.rV,[0,[1,2],_.kp,-1],_.Kd];var wLi=[0,[2],1,_.A1,[0,_.s1,-1,g4C]];var sXT=[0,[1],_.A1,[0,_.s1,_.wV,_.QD,1,g4C]];var knE=[0,_.aD,-1,c_T,_.Xy];var rSp=[0,[0,Zr,-3],-4];var rB=[0,_.Kd,-3,_.wV,_.Kd,_.JU,_.Kd,o4l,_.Kd,-2];var AM=[0,_.rV,[0,[1,2],_.kp,-1],_.Kd,_.wV];var AMK=[0,[3],sw,[0,[2,3,4],nmp,_.kp,-2],_.A1,[0,_.wV],_.oD];var tNC=[0,[3,5],_.wV,_.S7,_.A1,[0,1,_.oD,_.Xy],_.Xy,_.A1,[0,_.Xy,_.oD]];var fvf=[0,2,_.S7,_.wV,-1];var XXp=[0,bwp];var Qrp=[0,[3,4],2,CyT,_.kp,_.wV];var q_8=[0,_.Xy,-2,1,_.wV];var JM8=[0,_.wV,-1,_.Xy];var UNp=[0,k4,function(){return tM},
k4,_.wV],elC=[0,_.Xy,k4,sw,function(){return tM},
_.wV],tM=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],k4,_.S7,[0,_.Kd,1,_.Kd,1,_.Kd,1,_.Xy,-1,k4],[0,1,_.Kd,2,_.Kd,_.Xy,_.Kd],1,_.S7,-1,_.wV,_.S7,2,Zr,[0,Zr,_.S7],_.wV,1,$2f,1,sw,_.JU,1,[0,[0,_.rV,[0,_.wV,_.Kd,_.Xy]]],[0,_.Kd,[0,_.oD,[0,_.QD]],_.oD,1,[0,R3k,-1]],_.wV,[0,1,_.wV],76,_.A1,[0,sw,AM,$2f,1,[0,_.rV,AM]],1,_.A1,[0,sw,_.wV,_.Kd],
_.A1,[0,sw,Swp],_.A1,[0,sw,Swp,_.S7],_.A1,[0,sw,Swp],_.A1,[0,sw,_.rV,k4,sw,vmf],_.A1,[0,sw,k4,_.wV],_.A1,[0,sw,_.Kd,rB,-1,_.Kd],4,_.A1,[0,sw,_.Kd,_.S7,rB,_.Kd],_.A1,[0,[4,9],sw,_.Xy,_.S7,_.kp,AM,1,$2f,_.wV,_.kp,q_8],_.A1,[0,sw,k4,sw,_.Xy,_.wV],_.A1,[0,_.Kd,sw,rB,_.Kd,_.wV],_.A1,[0,sw,k4,sw,_.Xy,_.wV],1,_.A1,[0,sw,_.Xy,_.wV,rB],_.A1,[0,sw,_.Xy,[0,_.wV,_.S7],_.wV,_.S7,_.wV,_.f3,-2,3,JM8,_.rV,JM8,JM8,q_8],_.A1,[0,sw,_.Xy,sXT,_.rV,[0,aui,wLi],k4,_.rV,KMT,_.wV,1,_.Xy,knE,rSp,OwE,-1],_.A1,[0,sw,[0,_.QD,
-1,sXT,_.rV,[0,aui,wLi,HX8],[0,_.UY],1,_.s1],k4,_.wV],_.A1,[0,sw,AM,_.wV,[0,_.aD]],_.A1,function(){return elC},
_.A1,[0,sw,_.S7,_.wV,-1,_.Kd],_.A1,[0,[6,7],sw,_.rV,fvf,_.Xy,AM,1,_.A1,Qrp,_.A1,XXp],_.A1,[0,_.rV,fvf,_.Xy,_.Kd],_.A1,[0,_.wV,yqw,-1],_.A1,[0,k4,_.rV,KMT,_.wV],_.A1,[0,sw,k4,_.wV],_.A1,[0,_.f3,_.wV],_.A1,[0,d2p],_.A1,[0,d2p],_.A1,[0,AM],_.A1,[0,k4,AM],_.A1,function(){return UNp},
_.A1,[0,k4,_.wV],_.A1,[0,k4,_.wV],1,_.A1,[0,_.Kd,sw,rB,_.Kd,rB],_.A1,[0,_.UY],1,_.A1,[0],1,_.A1,[0,k4,_.Xy,sw,_.Xy],_.A1,[0,[1,2],_.A1,Qrp,_.A1,XXp,_.S7],_.A1,[0,_.UY,AM,tNC,_.wV,_.S7],_.A1,[0,tNC,_.wV,_.S7],_.A1,[0,knE,AM,_.Kd,rSp],_.A1,AMK,_.A1,[0],_.A1,[0,_.wV,-1,_.oD],_.A1,[0,k4,_.wV],_.A1,[0,AMK,_.oD,_.wV],_.A1,[0,sw,rB,_.Kd],_.A1,[0,sw,rB,_.Kd],_.A1,[0,knE,rSp,AM,_.JU,_.Kd,OwE,-1],_.A1,[0,sw,rB,_.Kd]];var Gfi=[0,_.rV,tM];var lvT=_.Bu(V4b,[0,ZXp,1,_.oD,_.A1,[0,[18,22,24],Gfi,3,[0,Gfi],1,_.oD,[0,_.rV,[0,_.S7,Zr],_.S7],1,tM,-1,[0,_.gV,-2,_.JU,_.gV,-1,_.JU,_.gV,o4l,_.gV,-2],TdC,[!0,_.wV,[0,Swp,2,_.wV,_.S7,_.Kd,2,_.wV,_.f3]],[0,[1,2,3],[5,6],_.A1,[0,_.s1],_.A1,[0,_.s1,-1],_.A1,[0,_.s1],1,_.A1,d2p,_.A1,[0,_.wV]],[0,tM,-1],_.UY,tM,_.A1,tM,[0,Gfi],_.oD,tM,_.A1,tM,_.wV,_.A1,tM],_.A1,aYK,_.oD]);var NKK=new _.UA("liveChatEndpoint");var uw7=new _.UA("liveChatItemContextMenuEndpoint");var zlE=new _.UA("liveChatReplayEndpoint");_.P1K=new _.UA("emojiPickerRenderer");var TKT=new _.UA("liveChatAuthorBadgeViewModel");var ilf=new _.UA("deleteLiveChatMessageCommand");var Ol7=new _.UA("liveChatActionEndpoint");var cMw=new _.UA("createLiveChatPollEndpoint");var BKp=new _.UA("manageLiveChatUserEndpoint");var MNb=new _.UA("moderateLiveChatEndpoint");_.C1T=new _.UA("sendLiveChatMessageEndpoint");var hlf=new _.UA("sendLiveChatVoteEndpoint");var Rlf=new _.UA("clearLocationCommand");var mNE=new _.UA("resolveLocationCommand");var blT=new _.UA("interactionLoggingCommandMetadata");var WO7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(WO7,_.e3);var yMl=function(A,t){return _.cf(A,1,t)};var vzK=[0,_.Kd];var LOi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(LOi,_.e3);var pXE=function(A,t){return Ev(A,1,WO7,t)};LOi.prototype.JSC$12409_serializeBinary=aFz([0,_.rV,vzK]);var BOs={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 Ezf={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"},
nzk={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 ti5={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",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT"};_.oQq=new _.UA("logFlowLoggingEventCommand");_.GV=new _.UA("loggingContext");var DNw=new _.UA("audioTrackSelectActionCommand");var FOS=new _.UA("captionLanguageSelectActionCommand");var Ivp=new _.UA("showAudioTrackPickerActionCommand");var xNS=new _.UA("showCaptionLanguageSelectActionCommand");var jr8=new _.UA("dismissDialogEndpoint");var Y_E=new _.UA("dismissPlayerOverlayCommand");var VNT=new _.UA("hideItemSectionVideosByIdCommand");var Zlf=new _.UA("showMiniplayerCommand");var oz7=function(){dB.apply(this,arguments)};
_.R(oz7,dB);oz7.prototype.getAssociations=function(){return[]};
oz7.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var dNp=function(){dB.apply(this,arguments)};
_.R(dNp,dB);dNp.prototype.getAssociations=function(){return[]};
dNp.prototype.getTypeName=function(){return"downloadStatusEntity"};var S_T=function(){dB.apply(this,arguments)};
_.R(S_T,dB);S_T.prototype.getAssociations=function(){return[]};
S_T.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var $NC=function(){dB.apply(this,arguments)};
_.R($NC,dB);$NC.prototype.getAssociations=function(){var A=[];this.delegate.downloadsList&&A.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&A.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&A.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&A.push(this.delegate.refresh);return[].concat(_.YV(new Set(A)))};
$NC.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var Hlp=function(){dB.apply(this,arguments)};
_.R(Hlp,dB);Hlp.prototype.getAssociations=function(){var A=[];this.delegate.refresh&&A.push(this.delegate.refresh);if(this.delegate.downloads)for(var t=_.U(this.delegate.downloads),f=t.next();!f.done;f=t.next())A.push.apply(A,_.YV((new avT(f.value)).getAssociations()));return[].concat(_.YV(new Set(A)))};
Hlp.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var avT=function(){oX.apply(this,arguments)};
_.R(avT,oX);avT.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.playlist&&A.push(this.delegate.playlist);this.delegate.videoItem&&A.push(this.delegate.videoItem);this.delegate.playlistItem&&A.push(this.delegate.playlistItem);return[].concat(_.YV(new Set(A)))};var KOT=function(){dB.apply(this,arguments)};
_.R(KOT,dB);KOT.prototype.getAssociations=function(){var A=[];this.delegate.localImageEntities&&A.push.apply(A,_.YV(this.delegate.localImageEntities));return[].concat(_.YV(new Set(A)))};
KOT.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var gz7=function(){dB.apply(this,arguments)};
_.R(gz7,dB);gz7.prototype.getAssociations=function(){var A=[];this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.localImageEntities&&A.push.apply(A,_.YV(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.YV(new Set(A)))};
gz7.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var wX7=function(){dB.apply(this,arguments)};
_.R(wX7,dB);wX7.prototype.getAssociations=function(){return[]};
wX7.prototype.getTypeName=function(){return"offlineabilityEntity"};var sr8=function(){dB.apply(this,arguments)};
_.R(sr8,dB);sr8.prototype.getAssociations=function(){var A=[];this.delegate.fakeChildren&&A.push.apply(A,_.YV(this.delegate.fakeChildren));return[].concat(_.YV(new Set(A)))};
sr8.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var kfT=function(){dB.apply(this,arguments)};
_.R(kfT,dB);kfT.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&A.push(this.delegate.offlineVideoPolicy);return[].concat(_.YV(new Set(A)))};
kfT.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var rMw=function(){dB.apply(this,arguments)};
_.R(rMw,dB);rMw.prototype.getAssociations=function(){return[]};
rMw.prototype.getTypeName=function(){return"continuationTokenEntity"};var Azl=function(){dB.apply(this,arguments)};
_.R(Azl,dB);Azl.prototype.getAssociations=function(){var A=[];this.delegate.channelOwner&&A.push(this.delegate.channelOwner);this.delegate.videos&&A.push.apply(A,_.YV(this.delegate.videos));this.delegate.collaboratorChannels&&A.push.apply(A,_.YV(this.delegate.collaboratorChannels));this.delegate.downloadState&&A.push(this.delegate.downloadState);this.delegate.refresh&&A.push(this.delegate.refresh);return[].concat(_.YV(new Set(A)))};
Azl.prototype.getTypeName=function(){return"mainPlaylistEntity"};var tdC=function(){dB.apply(this,arguments)};
_.R(tdC,dB);tdC.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.channelContributor&&A.push(this.delegate.channelContributor);return[].concat(_.YV(new Set(A)))};
tdC.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var fQp=function(){oX.apply(this,arguments)};
_.R(fQp,oX);fQp.prototype.getAssociations=function(){var A=[];this.delegate.recommendedVideoMetadata&&A.push.apply(A,_.YV((new XRl(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.YV(new Set(A)))};
var XRl=function(){oX.apply(this,arguments)};
_.R(XRl,oX);XRl.prototype.getAssociations=function(){var A=[];this.delegate.localImageEntities&&A.push.apply(A,_.YV(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.YV(new Set(A)))};var QFT=function(){oX.apply(this,arguments)};
_.R(QFT,oX);QFT.prototype.getAssociations=function(){var A=[];this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);return[].concat(_.YV(new Set(A)))};var qdp=function(){dB.apply(this,arguments)};
_.R(qdp,dB);qdp.prototype.getAssociations=function(){var A=[];this.delegate.owner&&A.push(this.delegate.owner);this.delegate.downloadState&&A.push(this.delegate.downloadState);this.delegate.userState&&A.push.apply(A,_.YV((new QFT(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&A.push.apply(A,_.YV((new fQp(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.YV(new Set(A)))};
qdp.prototype.getTypeName=function(){return"mainVideoEntity"};var Jzp=function(){dB.apply(this,arguments)};
_.R(Jzp,dB);Jzp.prototype.getAssociations=function(){var A=[];this.delegate.userChannelDetails&&A.push(this.delegate.userChannelDetails);return[].concat(_.YV(new Set(A)))};
Jzp.prototype.getTypeName=function(){return"ytMainChannelEntity"};var UrT=function(){dB.apply(this,arguments)};
_.R(UrT,dB);UrT.prototype.getAssociations=function(){var A=[];this.delegate.channelOwner&&A.push(this.delegate.channelOwner);this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&A.push.apply(A,_.YV(this.delegate.localImageEntities));this.delegate.downloadStatus&&A.push(this.delegate.downloadStatus);return[].concat(_.YV(new Set(A)))};
UrT.prototype.getTypeName=function(){return"ytMainVideoEntity"};var Oxz=new _.UA("downloadsPageSmartDownloadsOptInBannerParams");var Ccb=new _.UA("downloadsPageUpsellBannerParams");var eow=function(){dB.apply(this,arguments)};
_.R(eow,dB);eow.prototype.getAssociations=function(){return[]};
eow.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var GTl=function(){dB.apply(this,arguments)};
_.R(GTl,dB);GTl.prototype.getAssociations=function(){return[]};
GTl.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var lQp=function(){dB.apply(this,arguments)};
_.R(lQp,dB);lQp.prototype.getAssociations=function(){return[]};
lQp.prototype.getTypeName=function(){return"macroMarkerEntity"};var Nak=function(){dB.apply(this,arguments)};
_.R(Nak,dB);Nak.prototype.getAssociations=function(){return[]};
Nak.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var ujK=function(){dB.apply(this,arguments)};
_.R(ujK,dB);ujK.prototype.getAssociations=function(){return[]};
ujK.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var zoi=function(){dB.apply(this,arguments)};
_.R(zoi,dB);zoi.prototype.getAssociations=function(){return[]};
zoi.prototype.getTypeName=function(){return"playerStateEntity"};var PES=function(){dB.apply(this,arguments)};
_.R(PES,dB);PES.prototype.getAssociations=function(){return[]};
PES.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var TaK=function(){dB.apply(this,arguments)};
_.R(TaK,dB);TaK.prototype.getAssociations=function(){return[]};
TaK.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var iyb=function(){dB.apply(this,arguments)};
_.R(iyb,dB);iyb.prototype.getAssociations=function(){return[]};
iyb.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.fl=new _.UA("dislikeButtonViewModel");_.Xw=new _.UA("likeButtonViewModel");var OyT=new _.UA("videoSummaryContentViewModel");var czK=new _.UA("videoSummaryParagraphViewModel");var Bab=new _.UA("changeTimelyActionVisibilityCommand");var MdC=new _.UA("hideEngagementPanelEndpoint");var CE7=new _.UA("refreshPanelEndpoint");var hok=new _.UA("scrollToSectionEndpoint");var Rol=new _.UA("seekToVideoTimestampCommand");_.ys=new _.UA("showEngagementPanelEndpoint");var mrC=new _.UA("showTransientPlayerScrimOverlayCommand");var byT=new _.UA("toggleEngagementPanelCommand");_.Wdf=new _.UA("createBroadcastCommand");var yzk=new _.UA("metadataUpdateCommand");var vxK=function(){dB.apply(this,arguments)};
_.R(vxK,dB);vxK.prototype.getAssociations=function(){return[]};
vxK.prototype.getTypeName=function(){return"featuredProductsEntity"};var LdK=function(){dB.apply(this,arguments)};
_.R(LdK,dB);LdK.prototype.getAssociations=function(){return[]};
LdK.prototype.getTypeName=function(){return"pinnedProductEntity"};var pRS=function(){dB.apply(this,arguments)};
_.R(pRS,dB);pRS.prototype.getAssociations=function(){return[]};
pRS.prototype.getTypeName=function(){return"trendingOfferEntity"};_.Exf=new _.UA("merchandiseShelfRenderer");var nxb=new _.UA("shoppingContentLineItemViewModel");var DrT=new _.UA("gridMovieRenderer");_.FdT=new _.UA("movieRenderer");var IQw=function(){dB.apply(this,arguments)};
_.R(IQw,dB);IQw.prototype.getAssociations=function(){return[]};
IQw.prototype.getTypeName=function(){return"compositeSourceEntity"};var xrS=function(){dB.apply(this,arguments)};
_.R(xrS,dB);xrS.prototype.getAssociations=function(){var A=[];this.delegate.compositeSourceKeys&&A.push.apply(A,_.YV(this.delegate.compositeSourceKeys));return[].concat(_.YV(new Set(A)))};
xrS.prototype.getTypeName=function(){return"multiviewStagingEntity"};var jF7=function(){dB.apply(this,arguments)};
_.R(jF7,dB);jF7.prototype.getAssociations=function(){var A=[];this.delegate.trackDownloadMetadatas&&A.push.apply(A,_.YV(this.delegate.trackDownloadMetadatas));return[].concat(_.YV(new Set(A)))};
jF7.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var YdT=function(){dB.apply(this,arguments)};
_.R(YdT,dB);
YdT.prototype.getAssociations=function(){var A=[];this.delegate.downloadedTracks&&A.push.apply(A,_.YV(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&A.push.apply(A,_.YV(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&A.push.apply(A,_.YV(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&A.push.apply(A,_.YV(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&A.push.apply(A,_.YV(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
A.push.apply(A,_.YV(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&A.push.apply(A,_.YV(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&A.push.apply(A,_.YV(this.delegate.metadataOnlyTracks));return[].concat(_.YV(new Set(A)))};
YdT.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var VdS=function(){dB.apply(this,arguments)};
_.R(VdS,dB);VdS.prototype.getAssociations=function(){var A=[];this.delegate.trackDownloadMetadatas&&A.push.apply(A,_.YV(this.delegate.trackDownloadMetadatas));return[].concat(_.YV(new Set(A)))};
VdS.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var Zyl=function(){dB.apply(this,arguments)};
_.R(Zyl,dB);Zyl.prototype.getAssociations=function(){var A=[];this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.localImageEntities&&A.push.apply(A,_.YV(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.YV(new Set(A)))};
Zyl.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var oxp=function(){dB.apply(this,arguments)};
_.R(oxp,dB);
oxp.prototype.getAssociations=function(){var A=[];this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&A.push.apply(A,_.YV(this.delegate.primaryArtists));this.delegate.details&&A.push(this.delegate.details);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.tracks&&A.push.apply(A,_.YV(this.delegate.tracks));this.delegate.share&&A.push(this.delegate.share);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.refresh&&
A.push(this.delegate.refresh);return[].concat(_.YV(new Set(A)))};
oxp.prototype.getTypeName=function(){return"musicAlbumRelease"};
var dr7=function(){dB.apply(this,arguments)};
_.R(dr7,dB);dr7.prototype.getAssociations=function(){var A=[];this.delegate.albumRelease&&A.push(this.delegate.albumRelease);this.delegate.tracks&&A.push.apply(A,_.YV(this.delegate.tracks));return[].concat(_.YV(new Set(A)))};
dr7.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var SdE=function(){dB.apply(this,arguments)};
_.R(SdE,dB);SdE.prototype.getAssociations=function(){var A=[];this.delegate.albumRelease&&A.push(this.delegate.albumRelease);return[].concat(_.YV(new Set(A)))};
SdE.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var $r7=function(){dB.apply(this,arguments)};
_.R($r7,dB);$r7.prototype.getAssociations=function(){var A=[];this.delegate.details&&A.push(this.delegate.details);this.delegate.userDetails&&A.push(this.delegate.userDetails);return[].concat(_.YV(new Set(A)))};
$r7.prototype.getTypeName=function(){return"musicArtist"};
var Hyi=function(){dB.apply(this,arguments)};
_.R(Hyi,dB);Hyi.prototype.getAssociations=function(){var A=[];this.delegate.parentArtist&&A.push(this.delegate.parentArtist);return[].concat(_.YV(new Set(A)))};
Hyi.prototype.getTypeName=function(){return"musicArtistDetail"};
var aQl=function(){dB.apply(this,arguments)};
_.R(aQl,dB);aQl.prototype.getAssociations=function(){var A=[];this.delegate.parentArtist&&A.push(this.delegate.parentArtist);return[].concat(_.YV(new Set(A)))};
aQl.prototype.getTypeName=function(){return"musicArtistUserDetail"};var Kd8=function(){dB.apply(this,arguments)};
_.R(Kd8,dB);Kd8.prototype.getAssociations=function(){return[]};
Kd8.prototype.getTypeName=function(){return"musicLibraryEdit"};var gxS=function(){dB.apply(this,arguments)};
_.R(gxS,dB);gxS.prototype.getAssociations=function(){return[]};
gxS.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var wR7=function(){dB.apply(this,arguments)};
_.R(wR7,dB);
wR7.prototype.getAssociations=function(){var A=[];this.delegate.tracks&&A.push.apply(A,_.YV(this.delegate.tracks));this.delegate.refresh&&A.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&A.push(this.delegate.details);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&A.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.entryCollection&&
A.push(this.delegate.entryCollection);this.delegate.share&&A.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&A.push.apply(A,_.YV((new sF7(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.YV(new Set(A)))};
wR7.prototype.getTypeName=function(){return"musicPlaylist"};
var sF7=function(){oX.apply(this,arguments)};
_.R(sF7,oX);sF7.prototype.getAssociations=function(){var A=[];this.delegate.creatorEntity&&A.push(this.delegate.creatorEntity);return[].concat(_.YV(new Set(A)))};var kTk=function(){dB.apply(this,arguments)};
_.R(kTk,dB);kTk.prototype.getAssociations=function(){return[]};
kTk.prototype.getTypeName=function(){return"musicShare"};var rzT=function(){dB.apply(this,arguments)};
_.R(rzT,dB);
rzT.prototype.getAssociations=function(){var A=[];this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&A.push.apply(A,_.YV(this.delegate.artists));this.delegate.audioModeVersion&&A.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&A.push(this.delegate.videoModeVersion);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.details&&A.push(this.delegate.details);this.delegate.albumRelease&&A.push(this.delegate.albumRelease);this.delegate.share&&
A.push(this.delegate.share);this.delegate.libraryEdit&&A.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);this.delegate.lyrics&&A.push(this.delegate.lyrics);return[].concat(_.YV(new Set(A)))};
rzT.prototype.getTypeName=function(){return"musicTrack"};
var Aa8=function(){dB.apply(this,arguments)};
_.R(Aa8,dB);Aa8.prototype.getAssociations=function(){var A=[];this.delegate.parentTrack&&A.push(this.delegate.parentTrack);return[].concat(_.YV(new Set(A)))};
Aa8.prototype.getTypeName=function(){return"musicTrackDetail"};
var tD7=function(){dB.apply(this,arguments)};
_.R(tD7,dB);tD7.prototype.getAssociations=function(){var A=[];this.delegate.parentTrack&&A.push(this.delegate.parentTrack);return[].concat(_.YV(new Set(A)))};
tD7.prototype.getTypeName=function(){return"musicTrackUserDetail"};var dP=new _.UA("musicResponsiveListItemRenderer");var p3x=new _.UA("addToPlaylistEndpoint");var fmK=new _.UA("captionPickerEndpoint");var XSp=new _.UA("suggestStats");var Q4E=new _.UA("backstageImageUploadEndpoint");var q$8=new _.UA("createBackstagePostDialogEndpoint");_.Jaf=new _.UA("createCommentReplyDialogEndpoint");_.UXT=new _.UA("updateCommentDialogEndpoint");_.egw=new _.UA("updateCommentReplyDialogEndpoint");var GLS=new _.UA("menuEndpoint");var Pfq=new _.UA("modalEndpoint");var lmi=new _.UA("playlistEditorEndpoint");var NxK=new _.UA("copyTextEndpoint");var ukp,zg8;ukp=new _.UA("shareEndpoint");zg8=new _.UA("shareEntityEndpoint");_.PcE=new _.UA("shareEntityServiceEndpoint");_.Rdz=new _.UA("userFeedbackEndpoint");_.ZT=new _.UA("watchEndpoint");var XMb=new _.UA("watchPlaylistEndpoint");var TxS=new _.UA("addUpcomingEventReminderEndpoint");_.QA=new _.UA("getCommentsFromInboxCommand");var ixE=new _.UA("notificationOptOutEndpoint");var Oxk=new _.UA("recordNotificationInteractionsEndpoint");var caS=new _.UA("removeUpcomingEventReminderEndpoint");_.de=new _.UA("getDownloadActionCommand");_.Bxi=new _.UA("offlineOrchestrationActionCommand");var MDC=function(){dB.apply(this,arguments)};
_.R(MDC,dB);MDC.prototype.getAssociations=function(){return[]};
MDC.prototype.getTypeName=function(){return"captionTrack"};var Ccp=function(){dB.apply(this,arguments)};
_.R(Ccp,dB);Ccp.prototype.getAssociations=function(){return[]};
Ccp.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var hgl=function(){dB.apply(this,arguments)};
_.R(hgl,dB);hgl.prototype.getAssociations=function(){return[]};
hgl.prototype.getTypeName=function(){return"offlineVideoPolicy"};var Rgi=function(){dB.apply(this,arguments)};
_.R(Rgi,dB);Rgi.prototype.getAssociations=function(){return[]};
Rgi.prototype.getTypeName=function(){return"offlineVideoStreams"};var mXk=function(){dB.apply(this,arguments)};
_.R(mXk,dB);mXk.prototype.getAssociations=function(){var A=[];this.delegate.transfer&&A.push(this.delegate.transfer);this.delegate.adsPlaybackData&&A.push.apply(A,_.YV(this.delegate.adsPlaybackData));this.delegate.drmLicense&&A.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&A.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.YV(new Set(A)))};
mXk.prototype.getTypeName=function(){return"playbackData"};var bxl=function(){dB.apply(this,arguments)};
_.R(bxl,dB);bxl.prototype.getAssociations=function(){return[]};
bxl.prototype.getTypeName=function(){return"refresh"};var WJl=function(){dB.apply(this,arguments)};
_.R(WJl,dB);WJl.prototype.getAssociations=function(){var A=[];this.delegate.offlineVideoStreams&&A.push.apply(A,_.YV(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&A.push.apply(A,_.YV(this.delegate.captionTrack));return[].concat(_.YV(new Set(A)))};
WJl.prototype.getTypeName=function(){return"transfer"};var yaC=function(){dB.apply(this,arguments)};
_.R(yaC,dB);yaC.prototype.getAssociations=function(){return[]};
yaC.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var va8=new _.UA("showMoreDrawerCommand");var LJ7=new _.UA("updateEngagementPanelContentCommand");var pSl=new _.UA("getPdgBuyFlowCommand");var EaS=new _.UA("liveChatPurchaseMessageEndpoint");var naC=new _.UA("openSuperStickerBuyFlowCommand");var DX8=new _.UA("updatePdgFeatureEnablementCommand");var FJT=function(){dB.apply(this,arguments)};
_.R(FJT,dB);FJT.prototype.getAssociations=function(){return[]};
FJT.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var Imb=function(){dB.apply(this,arguments)};
_.R(Imb,dB);Imb.prototype.getAssociations=function(){return[]};
Imb.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.xXp=new _.UA("pdgCommentChipRenderer");_.j4T=new _.UA("permissionRoleBottomBarRenderer");_.Y$p=new _.UA("updatePermissionRoleCommand");var VD7=new _.UA("prefetchWatchCommand");var ZxC=new _.UA("updatePlayerErrorMessageCommand");var h_u=new _.UA("toggleCaptionsVisibilityCommand");var oaS=new _.UA("playerDisclosureViewModel");_.dX7=new _.UA("quickActionsViewModel");var S$p=new _.UA("playerResponse");var $Xw=new _.UA("playlistRenderer");_.HxE=new _.UA("playlistVideoListRenderer");_.qN=new _.UA("playlistEditEndpoint");var amE=new _.UA("createImagePollCommand");var KJK=new _.UA("createQuizCommand");var ga8=new _.UA("quizRenderer");var wSi=new _.UA("uploadedVideoRenderer");var s4S=new _.UA("decorateMessageEndpoint");var kLp=new _.UA("lpOfferCardOptionViewModel");var rai=new _.UA("sfvAudioItemPlaybackCommand");var ABk=function(){dB.apply(this,arguments)};
_.R(ABk,dB);ABk.prototype.getAssociations=function(){return[]};
ABk.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.JM=new _.UA("reelNonVideoContentEndpoint");_.zD=new _.UA("reelWatchEndpoint");_.U_=new _.UA("reelItemRenderer");var tHp=new _.UA("reelMetapanelViewModel");_.eN=new _.UA("reelNonVideoContentRenderer");_.f07=new _.UA("reelPlayerOverlayRenderer");var X4T=new _.UA("shortsLockupViewModel");var QHp=new _.UA("sponsorButtonViewModel");var qlp=new _.UA("reelItemWatchResponse");var JBS=new _.UA("textBadgeRenderer");_.Gf=new _.UA("buttonRenderer");_.l1=new _.UA("toggleButtonRenderer");var IRx=new _.UA("switchButtonViewModel");_.URT=new _.UA("confirmDialogRenderer");var ezT;ezT=new _.UA("menuRenderer");_.G4l=new _.UA("menuFlexibleItemRenderer");var l0p=new _.UA("pollRenderer");_.NNT=new _.UA("backgroundPromoRenderer");var zzf;_.uWE=new _.UA("chipCloudRenderer");zzf=new _.UA("chipCloudChipRenderer");var PwK=new _.UA("dropdownRenderer");var TNp=new _.UA("gridVideoRenderer");_.iRT=new _.UA("itemSectionRenderer");_.ORi=new _.UA("messageRenderer");var cBb=new _.UA("sortFilterHeaderRenderer");_.NN=new _.UA("videoRenderer");var BNk=new _.UA("resolveUrlCommandMetadata");var MHT=function(){dB.apply(this,arguments)};
_.R(MHT,dB);MHT.prototype.getAssociations=function(){return[]};
MHT.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.Cwi=new _.UA("getAnswerCommand");_.lY=new _.UA("searchEndpoint");var hzC=new _.UA("genAiRichTextViewModel");var vSg=new _.UA("overviewAnswerViewModel");var RzT=new _.UA("videoOverviewViewModel");var mRE=new _.UA("addToPlaylistServiceEndpoint");var bRT=new _.UA("clearSearchHistoryEndpoint");var WUT=new _.UA("clearWatchHistoryEndpoint");var yBC=new _.UA("webSerializedServiceEndpointExtension");_.voC=new _.UA("createCommentEndpoint");var LUE=new _.UA("createCommentReplyEndpoint");var p4f=new _.UA("performCommentActionEndpoint");var Eob=new _.UA("updateCommentEndpoint");var noE=new _.UA("updateCommentReplyEndpoint");_.u1=new _.UA("createPlaylistServiceEndpoint");var DRT=new _.UA("deletePlaylistEndpoint");var FUC=new _.UA("deleteVideoEndpoint");var L8q=new _.UA("getReportFormEndpoint");var I0i=new _.UA("modifyChannelNotificationPreferenceEndpoint");var oMb;_.lj=new _.UA("offlinePlaylistEndpoint");oMb={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 dEq;_.Ga=new _.UA("offlineVideoEndpoint");dEq={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 xRl=new _.UA("pingingEndpoint");_.jHf=new _.UA("selectActiveIdentityEndpoint");var YlT=new _.UA("setSettingEndpoint");var Ozb=new _.UA("undoFeedbackEndpoint");var VHK=new _.UA("unsubscribeEndpoint");_.ZRK=new _.UA("updatedMetadataEndpoint");var ooK=function(){dB.apply(this,arguments)};
_.R(ooK,dB);ooK.prototype.getAssociations=function(){return[]};
ooK.prototype.getTypeName=function(){return"settingEntity"};_.dRC=new _.UA("updateLocalAppSettingCommand");var Sl7=new _.UA("saveImageToDeviceEndpoint");var $Rf=new _.UA("shareImageCommand");var HRE=new _.UA("sharingProviderDataCommand");var a0T=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(a0T,_.e3);var KUp=[0,_.wV,-1];a0T.prototype.JSC$12616_serializeBinary=aFz(KUp);var gop=_.My(KUp);var w4E=new _.UA("userMentionSuggestionRenderer");var sHp=new _.UA("liveChatTunnelCommand");var k48=new _.UA("showSponsorshipsGiftOfferDialogCommand");var rBE=new _.UA("sponsorshipsScrollableShelfViewModel");var Asi=new _.UA("updateUpcomingEventReminderButtonStateCommand");var tkw=new _.UA("upcomingEventReminderButtonStateRenderer");var flC=new _.UA("subscribeEndpoint");var X7l=new _.UA("registerTasksCommand");var Qdl=new _.UA("hideSheetCommand");var qWi=new _.UA("hideSnackbarCommand");var JsC=new _.UA("showDialogCommand");_.ij=new _.UA("showSheetCommand");var UTT=new _.UA("showSnackbarCommand");var eXT=function(){dB.apply(this,arguments)};
_.R(eXT,dB);eXT.prototype.getAssociations=function(){return[]};
eXT.prototype.getTypeName=function(){return"chipEntity"};var GBk=function(){dB.apply(this,arguments)};
_.R(GBk,dB);GBk.prototype.getAssociations=function(){return[]};
GBk.prototype.getTypeName=function(){return"dismissState"};_.v1=new _.UA("avatarViewModel");var llE=new _.UA("badgeViewModel");_.zf=new _.UA("buttonViewModel");_.PX=new _.UA("chipViewModel");var G2x=new _.UA("collectionThumbnailViewModel");var NA8=new _.UA("contentPreviewImageViewModel");var uf7=new _.UA("decoratedAvatarViewModel");_.Xe5=new _.UA("engagementBarViewModel");_.zXp=new _.UA("imageBannerViewModel");var PC8=new _.UA("lockupContentMetadataRowExtension");_.TAw=new _.UA("lockupMetadataViewModel");_.i2p=new _.UA("lockupViewModel");var O2S=new _.UA("avatarStackViewModel");_.csE=new _.UA("contentMetadataViewModel");var BAi=function(){dB.apply(this,arguments)};
_.R(BAi,dB);BAi.prototype.getAssociations=function(){return[]};
BAi.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Mk7=new _.UA("pageHeaderViewModel");var CC7=new _.UA("snackbarViewModel");var hXT=new _.UA("thumbnailHoverOverlayToggleActionsViewModel");_.Tf=new _.UA("toggleButtonViewModel");var RXE=function(){dB.apply(this,arguments)};
_.R(RXE,dB);RXE.prototype.getAssociations=function(){return[]};
RXE.prototype.getTypeName=function(){return"votingEntity"};_.QLb=new _.UA("votingViewModel");var mTp=new _.UA("sectionHeaderViewModel");var b2f=new _.UA("notifyDropdownOptionSelectedCommand");var GsT=new _.UA("listViewModel");_.On=new _.UA("listItemViewModel");var eUT=new _.UA("toggleableListItemViewModel");var WuT=new _.UA("dialogHeaderViewModel");var ysK=function(){dB.apply(this,arguments)};
_.R(ysK,dB);ysK.prototype.getAssociations=function(){return[]};
ysK.prototype.getTypeName=function(){return"dataFreshnessEntity"};var cFp=new _.UA("suspenseViewModel");var vy7=new _.UA("tooltipViewModel");var Luw=function(){dB.apply(this,arguments)};
_.R(Luw,dB);Luw.prototype.getAssociations=function(){return[]};
Luw.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var p78=function(){dB.apply(this,arguments)};
_.R(p78,dB);p78.prototype.getAssociations=function(){return[]};
p78.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var Ey8=function(){dB.apply(this,arguments)};
_.R(Ey8,dB);Ey8.prototype.getAssociations=function(){return[]};
Ey8.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.nyT=new _.UA("transcriptSubmitCaptionCorrectionCommand");var DT8=function(){dB.apply(this,arguments)};
_.R(DT8,dB);DT8.prototype.getAssociations=function(){return[]};
DT8.prototype.getTypeName=function(){return"buttonEntity"};var f15=new _.UA("unpluggedStringRunImage");var Fu7=new _.UA("tabViewModel");var IlC=new _.UA("tabbedViewModel");var VKE=function(){dB.apply(this,arguments)};
_.R(VKE,dB);VKE.prototype.getAssociations=function(){return[]};
VKE.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Zmp=new _.UA("updateDescriptionAction");var oPC=new _.UA("updateToggleButtonTextAction");var dVl=new _.UA("showFullscreenPlayerControlsCommand");var S3w=new _.UA("updateVideoMetadataCommand");_.$V7=new _.UA("autoplaySwitchButtonRenderer");var Eu;_.Hml=new _.UA("multiMarkersPlayerBarRenderer");Eu=new _.UA("chapterRenderer");var ai7=new _.UA("heatMarkerRenderer");var v20=new _.UA("heatmapRenderer");var K6p=new _.UA("smartSkipPlayerScrimOverlayRenderer");var gPK=new _.UA("timedMarkerDecorationRenderer");var dO5=new _.UA("postWebToNativeMessageCommand");var W$=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(W$,_.e3);W$.prototype.getMethodName=function(){return _.Wz(this,1)};var wg7=[0,_.wV,-2];W$.prototype.JSC$12638_serializeBinary=aFz(wg7);var saf=_.Bu(W$,wg7);var kdi=new _.UA("whitelistEditEndpoint");var rkC=new _.UA("clearUrlParamCommand");var Awi=new _.UA("commerceActionCommand");_.tXi=new _.UA("getPaymentInstrumentsParamsCommand");var f7K=new _.UA("getPaymentsClientTokenCommand");var XMf=new _.UA("googlePaymentBillingCommand");var QSK=new _.UA("googlePaymentPurchaseManagerCommand");_.q5w=new _.UA("logGtmCommand");var Jwb=new _.UA("updateCardItemOnClickCommand");_.UMT=new _.UA("ypcPauseSubscriptionCommand");_.eQC=new _.UA("ypcResumeSubscriptionCommand");var GZK=function(){dB.apply(this,arguments)};
_.R(GZK,dB);GZK.prototype.getAssociations=function(){return[]};
GZK.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var l7E=function(){dB.apply(this,arguments)};
_.R(l7E,dB);l7E.prototype.getAssociations=function(){return[]};
l7E.prototype.getTypeName=function(){return"commerceCartListEntity"};var NgT=function(){dB.apply(this,arguments)};
_.R(NgT,dB);NgT.prototype.getAssociations=function(){return[]};
NgT.prototype.getTypeName=function(){return"iconBadgeEntity"};var uVE=function(){dB.apply(this,arguments)};
_.R(uVE,dB);uVE.prototype.getAssociations=function(){return[]};
uVE.prototype.getTypeName=function(){return"pdpStateEntity"};var zQl=function(){dB.apply(this,arguments)};
_.R(zQl,dB);zQl.prototype.getAssociations=function(){return[]};
zQl.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var Oo0=new _.UA("ypcOffersEndpoint");var P8T=new _.UA("cardItemRenderer"),Tgf=new _.UA("cardItemTextRenderer");var ijp=new _.UA("commerceCartItemQuantityPickerRenderer");var Ojf=new _.UA("linkCardRenderer");var Ijb=new _.UA("quantityIncrementerButtonViewModel");var cwT=new _.UA("quantityIncrementerViewModel");var BgE=new _.UA("themedImageViewModel");_.MXl=new _.UA("ypcCancelRecurrenceEndpoint");var C8k=new _.UA("ypcCompleteTransactionEndpoint");_.hQK=new _.UA("ypcGetCartEndpoint");_.ZB=new _.UA("ypcGetOffersEndpoint");_.i1=new _.UA("ypcHandleTransactionEndpoint");var RQi=new _.UA("ypcLogWalletAnalyticDataEndpoint");_.mMf=new _.UA("ypcRedeemCodeEndpoint");var bjE=new _.UA("ypcUpdateFopEndpoint");hS(CX(1),BL(4));Uyk((new MessageChannel).port2);var WKT=function(){this.register=new Map},CaT=function(A,t,f){A=A+"_"+t;
O_.register.has(A)?f=O_.register.get(A):(f=f(),O_.register.set(A,f));return f},ywl=function(A){A=_.U(A.register.values());
for(var t=A.next();!t.done;t=A.next())_.GF(t.value,"ABORTED")};
WKT.prototype.clear=function(){ywl(this);this.register.clear()};
var O_=new WKT;var tmx=Date.now().toString();var Qzx=XYb();var u9T={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 vbf,Rq;vbf=1;Rq=function(A){this.veData=A};
_.zV=function(A){return new Rq({trackingParams:A})};
_.Xl=function(A,t,f,X,Q,q){var e=vbf++;return new Rq({veType:A,veCounter:e,elementIndex:f,dataElement:t,youtubeData:X,jspbYoutubeData:Q,loggingDirectives:q})};
_.J=Rq.prototype;
_.J.getAsJson=function(){var A={};this.veData.trackingParams!==void 0?A.trackingParams=this.veData.trackingParams:(A.veType=this.veData.veType,this.veData.veCounter!==void 0&&(A.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(A.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(A.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(A.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(A.isCounterfactual=!0);
return A};
_.J.getAsJspb=function(){var A=new R1T;this.veData.trackingParams!==void 0?A.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.E1(A,2,this.veData.veType),this.veData.veCounter!==void 0&&_.E1(A,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.E1(A,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.cf(A,5,!0));if(this.veData.dataElement!==void 0){var t=this.veData.dataElement.getAsJspb();_.bi(A,7,t)}this.veData.youtubeData!==void 0&&_.bi(A,8,this.veData.jspbYoutubeData);
return A};
_.J.toString=function(){return JSON.stringify(this.getAsJson())};
_.J.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.J.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.zm("yt_logging_screen.getRootVeType",GJl);_.zm("yt_logging_screen.getCurrentCsn",_.Ws);_.zm("yt_logging_screen.getCttAuthInfo",yX);_.zm("yt_logging_screen.setCurrentScreen",_.vs);var LKi=function(){this.events=new Map},pMK=function(A){var t=[];
A=_.U(A.events.values());for(var f=A.next();!f.done;f=A.next())t.push(f.value);return t};
LKi.prototype.clear=function(){this.events.clear()};var nbK=function(){this.logTransport=new Eb8;this.loggedEventRegister=new LKi;this.unloggedEventRegister=new LKi;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12675_flushTimer=new _.MP(this.flushInterval);this.JSC$12675_flushTimer.listen("tick",this.flush,!1,this)};
nbK.prototype.flush=function(){if(this.eventsCount){var A={loggedEvents:pMK(this.loggedEventRegister),unloggedEvents:pMK(this.unloggedEventRegister)};if(_.M("export_player_version_to_ytconfig")){var t;(t=_.ah("PLAYER_CLIENT_VERSION"))?(t=t.split("-")[0].replace(/\./g,""),t=isNaN(Number(t))?"0":t):t="";var f=_.ah("PLAYER_CLIENT_VERSION");if(f){f=f.split("-");var X="";f.length>1&&(X=f[f.length-1]);f=A2s(X.startsWith("canary_experiment")?"canary":X.startsWith("canary_control")?"control":"none")}else f=
"CLIENT_CANARY_STATE_UNKNOWN";A.dimensions={playerClientVersion:t,playerCanaryState:f}}this.logTransport.flush(A);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12675_flushTimer.enabled&&this.JSC$12675_flushTimer.stop()}};
var DME=function(A){cX==null&&(cX=new nbK);var t=cX;var f=t.loggedEventRegister;A.dimensions=A.dimensions||{};A.dimensions.csn=_.Ws()||"";var X=TOx(A.dimensions).join(";");if(A.records!=null)if(f.events.has(X)){var Q;(Q=f.events.get(X).records)==null||Q.push.apply(Q,_.YV(A.records))}else f.events.set(X,A);t.JSC$12675_flushTimer.enabled||t.JSC$12675_flushTimer.start();t.eventsCount++;t.eventsCount>=100&&t.flush()};var Eb8=function(){};
Eb8.prototype.flush=function(A,t){_.M("enable_client_sli_logging")&&_.SY("sliEventBatch",A,{sendIsolatedPayload:!!t})};var cX;var I78;I78=function(A){var t=FKp;A=A===void 0?{}:A;t=t.name;var f=Mm0("SUCCESS");DME({dimensions:A,records:[{name:t,state:"SLI_STATE_END",status:f}]})};
_.h25=function(A,t,f,X){this.name=A;this.sliId=t;this.timeoutMs=f;this.statusOnTimeout=X;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.h25.prototype.getId=function(){return this.sliId};
_.et=function(A,t){t=t===void 0?{}:t;A.ongoing||(A.ongoing=!0,A.dimensions=t,A.logSliId=SL5(),DME({dimensions:A.dimensions,records:[{name:A.name,state:"SLI_STATE_START",sliId:A.logSliId}]}),A.timeoutMs>0&&(A.timeoutHandle=setTimeout(function(){_.GF(A,A.statusOnTimeout)},A.timeoutMs)))};
_.GF=function(A,t){A.ongoing&&(A.timeoutMs>0&&clearTimeout(A.timeoutHandle),A.ongoing=!1,t={dimensions:A.dimensions,records:[{name:A.name,status:Mm0(t),state:"SLI_STATE_END",sliId:A.logSliId}]},O_.register.delete(A.name+"_"+A.sliId),DME(t))};var FKp=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var xMi=function(){dB.apply(this,arguments)};
_.R(xMi,dB);xMi.prototype.getAssociations=function(){return[]};
xMi.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var Yyl=new _.UA("highlightTextDecoratorColorMapExtension");var x85=new _.UA("styleRunColorMapExtension");var Lq0=_.dS(["data-"]),nD5={};var Fqx={};var BX=function(A){this.wrappedPromise_=A===void 0?null:A;this.state_=0;this.JSC$12706_value_=null};
BX.prototype.then=function(A,t,f){return this.wrappedPromise_?this.wrappedPromise_.then(A,t,f):this.state_===1&&A?(A=A.call(f,this.JSC$12706_value_))&&typeof A.then==="function"?A:_.MN(A):this.state_===2&&t?(A=t.call(f,this.JSC$12706_value_))&&typeof A.then==="function"?A:_.jST(A):this};
BX.prototype.getValue=function(){return this.JSC$12706_value_};
BX.prototype.isRejected=function(){return this.state_==2};
M2l(BX);_.jST=function(A){var t=new BX;A=A===void 0?null:A;t.state_=2;t.JSC$12706_value_=A===void 0?null:A;return t};
_.MN=function(A){var t=new BX;A=A===void 0?null:A;t.state_=1;t.JSC$12706_value_=A===void 0?null:A;return t};var wYp="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Y5T=["load","abort","error"],Cl=function(A,t,f){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12726_maxAspectRatio_=A;this.disableAnimation_=t===void 0?!1:t;this.disableExifRotation_=f===void 0?!1:f;this.JSC$12726_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12726_reject_=this.resolve_=null};
Cl.prototype.transform=function(A){var t=this;this.mime_=A.type;fL(b1k(A),this.dataUrlRead_,this.readError_,this);fL(mIk(A.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(f,X){t.resolve_=f;t.JSC$12726_reject_=X})};
Cl.prototype.dataUrlRead_=function(A){this.dataUrl_=A;this.angle_!=null&&VX8(this)};
Cl.prototype.exifRead_=function(A){if(this.disableExifRotation_)this.angle_=0;else{a:if(A=new DataView(A),A.byteLength<2||A.getUint16(0)!==65496)A=-2;else{for(var t=2,f=A.byteLength;t<f;){var X=A.getUint16(t),Q=A.getUint16(t+2);if(X===65505){t+=4;X=A.getUint32(t);Q=A.getUint16(t+4);if(X!==1165519206||Q!==0)break;t+=6;X=A.getUint16(t)===18761;t+=A.getUint32(t+4,X);Q=A.getUint16(t,X);t+=2;for(var q=0;q<Q;q++){if(A.getUint16(t,X)===274){t+=8;A=A.getUint16(t,X);break a}t+=12}}else if(X>>8!==255)break;
else t+=Q+2}A=-1}switch(A){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&&VX8(this)};
Cl.prototype.readError_=function(){this.JSC$12726_reject_()};
var VX8=function(A){Nx(A.JSC$12726_image_,Y5T,A.completeTransform_,!1,A);A.JSC$12726_image_.src=_.of(A.dataUrl_).toString();A.JSC$12726_image_.src!=ZF.toString()&&A.JSC$12726_image_.src.substr(0,11)==="data:image/"||A.JSC$12726_reject_()};
Cl.prototype.completeTransform_=function(){if(this.JSC$12726_image_.src!=ZF.toString()){var A=_.of(this.dataUrl_),t=this.JSC$12726_image_.naturalHeight?this.JSC$12726_image_.naturalWidth/this.JSC$12726_image_.naturalHeight:null;this.invalidAspectRatio=t>this.JSC$12726_maxAspectRatio_||t<1/this.JSC$12726_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var f=this.JSC$12726_image_.naturalWidth,X=this.JSC$12726_image_.naturalHeight,Q=t=0,q=this.JSC$12726_image_.naturalHeight?this.JSC$12726_image_.naturalWidth/
this.JSC$12726_image_.naturalHeight:null;q>this.JSC$12726_maxAspectRatio_?(f=this.JSC$12726_maxAspectRatio_*X,t=(f-this.JSC$12726_image_.naturalWidth)/2,this.cropped=!0):q<1/this.JSC$12726_maxAspectRatio_?(X=this.JSC$12726_maxAspectRatio_*f,Q=(X-this.JSC$12726_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)q=f,f=X,X=q,q=t,t=Q,Q=q;switch(this.angle_){case 90:Q-=f;break;case 180:t-=f;Q-=X;break;case 270:t-=
X}this.cropped||this.angle_%360!==0?(A=document.createElement("canvas"),A.width=f||1,A.height=X||1,this.JSC$12726_image_.naturalWidth&&this.JSC$12726_image_.naturalHeight&&(f=A.getContext("2d"),f.rotate(Math.PI/180*this.angle_),f.drawImage(this.JSC$12726_image_,t,Q,this.JSC$12726_image_.naturalWidth,this.JSC$12726_image_.naturalHeight)),this.transformedData=_.of(A.toDataURL(this.mime_))):this.transformedData=A}else this.transformedData=A;this.resolve_(this)}};var hM=function(A,t){_.b6.call(this,A);this.value=t};
_.R(hM,_.b6);
var Rr=function(A,t,f,X,Q,q,e){e=e===void 0?!1:e;_.p_.call(this);var G=this;this.JSC$12731_url_=A;this.channelId_=t;this.maxFileSizeMb_=f;this.JSC$12731_maxAspectRatio_=X;this.dropZoneEl_=Q;this.rejectInvalidAspectRatio_=e;this.selectButtonEl_=q;this.JSC$12731_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new pX(this.dropZoneEl_);this.selectOverlay_=new Ew(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12731_image_=this.transfer_=null;this.handler_=new _.CP(this);_.hV(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(q,"click",function(){G.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.R(Rr,_.p_);Rr.prototype.disposeInternal=function(){for(var A=this.selectButtonEl_.nextSibling;A&&A.parentNode&&A.tagName=="INPUT";)A.parentNode.removeChild(A),A=this.selectButtonEl_.nextSibling;this.cancel();_.p_.prototype.disposeInternal.call(this)};
Rr.prototype.uploadPromise=function(){if(this.JSC$12731_image_==null)return null;this.uploadPromise_||Zjp(this);return this.uploadPromise_};
Rr.prototype.cancel=function(){obK(this);this.JSC$12731_image_=null};
var obK=function(A){A.transfer_&&A.transfer_.cancel();A.transfer_=null;A.uploadPromise_=null;A.resolve_=null;A.JSC$12731_reject_=null},Zjp=function(A){obK(A);
A.transfer_=_.Pe7(A.JSC$12731_url_,{"X-YouTube-ChannelId":A.channelId_},A.JSC$12731_image_);A.handler_.listenOnce(A.transfer_,"l",A.JSC$12733_onUploadComplete_);A.handler_.listenOnce(A.transfer_,"n",A.onUploadError_);A.transfer_.run();A.uploadPromise_=new Promise(function(t,f){A.resolve_=t;A.JSC$12731_reject_=f})};
_.J=Rr.prototype;_.J.onChange_=function(A){A.files.length&&(this.JSC$12731_image_=A.files[0],this.JSC$12731_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12731_image_=null,this.dispatchEvent(new hM("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Zjp(this),(new Cl(this.JSC$12731_maxAspectRatio_)).transform(this.JSC$12731_image_).then((0,_.F1)(this.onPreview_,this),(0,_.F1)(this.onPreviewError_,this))))};
_.J.onPreview_=function(A){if(A.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12731_image_=null),this.dispatchEvent(new hM("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;A.cropped&&this.dispatchEvent(new hM("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new hM("yt.comments.ImageUploadOverlay.CHANGE_EVENT",A.transformedData))};
_.J.onPreviewError_=function(){this.JSC$12731_image_=null;this.dispatchEvent(new hM("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.J.onHover_=function(A){A.stopPropagation();A.preventDefault();if(A.type==="dragover")A=!0;else if(A.type==="dragleave")A=!1;else return;this.dispatchEvent(new hM("yt.comments.ImageUploadOverlay.HOVER_EVENT",A))};
_.J.JSC$12733_onUploadComplete_=function(){var A=(0,_.$pK)(this.transfer_.getResponseText());this.resolve_(A.encryptedBlobId)};
_.J.onUploadError_=function(){this.JSC$12731_reject_();obK(this)};var dMS=function(A){A=A||{};var t={},f={};this.url=A.url||"";this.args=A.args||_.VG.clone(t);this.assets=A.assets||{};this.attrs=A.attrs||_.VG.clone(f);this.fallback=A.fallback||null;this.fallbackMessage=A.fallbackMessage||null;this.html5=!!A.html5;this.disable=A.disable||{};this.loaded=!!A.loaded;this.messages=A.messages||{}};
dMS.prototype.clone=function(){var A=new dMS,t;for(t in this)if(this.hasOwnProperty(t)){var f=this[t];_.k8(f)=="object"?A[t]=_.VG.clone(f):A[t]=f}return A};var S58,$Mk,Hjf,oJ,KKS,gbi,wMl,sST,kZC,rwp,AAl,t1i,fL7,Xal,QBE,qhl,JAT,UKK,eml,GuT,lLp,Nop,uSS,zmE,Pbi,Tof,ihp,OhE,cAi,ry0,BoS,M1k,CbS,hml,RmC,mK7,bhw,Wsl,yAw,vcl,kbg,Lsp,pa7,Ec7,ncC,DKC,Fsp,ILb,xKw,jBf,Yhb,V1i,ZhS,oci,dKk,Shi,mO,$K8,HhT,aLl,Ksk,gcS,wal,sBK,kuK,rAk,AKE,tAp,f9f,XlT,QVp,qRE,JKC,UmK,ebE,GAl,w6g,l9b,Nhw,uF8,zbE,Pv7,Thf,iQ8,OQp,cK7,Bhp,MA7,CvK,hbC,RbK,mmi,bQb,WTp,yKp,v1l,LTk,plb,E1C,n1T,Dmp,FTS;S58=["account/accounts_list"];$Mk=["acknowledge_channel_tou_strike"];Hjf=["notification/add_upcoming_event_reminder"];
_.a7S=["att/get"];oJ=["browse","music/browse","streaming_browse","unplugged/browse"];KKS=["channel/claim_legacy_youtube_channel"];gbi=["history/clear_search_history"];wMl=["history/clear_watch_history"];sST=["comment/perform_comment_action"];kZC=["comment/get_comment_replies"];rwp=["ypc/commerce_action"];AAl=["backstage/create_post"];t1i=["live/create_broadcast"];fL7=["channel/create_channel"];Xal=["comment/create_comment_reply"];QBE=["comment/create_comment"];qhl=["live_chat/create_poll"];JAT=["playlist/create"];
UKK=["decorate_message"];eml=["live_chat/delete_message"];GuT=["playlist/delete"];lLp=["video/delete"];Nop=["like/dislike"];uSS=["dismissal/dismiss"];zmE=["flag/flag"];Pbi=["flow"];Tof=["account/account_menu"];ihp=["playlist/get_add_to_playlist"];OhE=["get_answer"];cAi=["channel/get_channel_creation_form"];ry0=["offline/get_download_action"];BoS=["kids/get_kids_blocklist_picker"];M1k=["live_chat/get_item_context_menu"];CbS=["live_chat/get_live_chat_message_buy_flow"];hml=["live_chat/get_live_chat_replay"];
RmC=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];mK7=["live_chat/get_live_chat_super_sticker_buy_flow"];bhw=["notification/get_notification_menu"];Wsl=["playlist/get_settings_editor"];yAw=["backstage/get_post_video_preview"];vcl=["account/get_profile_card"];kbg=["share/get_share_panel"];Lsp=["share/get_sharing_provider_data"];pa7=["get_survey"];Ec7=["notification/get_unseen_count"];ncC=["get_user_mention_suggestions"];DKC=["get_watch"];Fsp=["guide"];
ILb=["feedback"];xKw=["kids/update_blacklist"];jBf=["like/like"];Yhb=["live_chat/live_chat_action"];V1i=["live_chat/manage_user"];ZhS=["video_manager/metadata_update"];oci=["live_chat/moderate"];dKk=["notification/modify_channel_preference"];Shi=["notification/opt_out"];mO=["get_panel","get_posts_by_host_panel"];$K8=["player"];HhT=["browse/edit_playlist"];aLl=["notification/record_interactions"];Ksk=["reel/reel_item_watch"];gcS=["reel/reel_watch_sequence"];wal=["like/removelike"];sBK=["notification/remove_upcoming_event_reminder"];
kuK=["flag/get_form"];rAk=["miniapp/report_value"];AKE=["navigation/resolve_url"];tAp=["channel/reveal_business_email"];f9f=["in_video/search"];XlT=["search","sfv/search","unplugged/search"];QVp=["live_chat/send_message"];qRE=["live_chat/send_live_chat_vote"];JKC=["account/set_setting"];UmK=["submit_caption_correction"];ebE=["submit_form"];GAl=["subscription/subscribe"];w6g=["get_transcript"];l9b=["resolve_location","unplugged/resolve_location"];Nhw=["subscription/unsubscribe"];uF8=["backstage/update_post"];
zbE=["channel_edit/update_channel_page_settings"];Pv7=["comment/update_comment_reply"];Thf=["comment/update_comment"];iQ8=["comment/update_comments_settings"];OQp=["creator/update_creator_channel"];cK7=["pdg/update_enablement"];Bhp=["updated_metadata"];MA7=["channel_edit/validate_channel_handle"];CvK=["verify_age"];hbC=["next","unplugged/watch_next"];RbK=["whitelist/edit"];mmi=["ypc/cancel_recurrence"];bQb=["ypc/complete_transaction"];WTp=["ypc/get_cart"];yKp=["ypc/get_fix_instrument_params"];
v1l=["ypc/get_offers"];LTk=["ypc/get_payment_instruments_params"];plb=["ypc/handle_transaction"];E1C=["ypc/log_payment_server_analytics"];n1T=["ypc/pause_subscription"];Dmp=["ypc/redeem_code"];FTS=["ypc/resume_subscription"];var I98=[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,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,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,276200,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,273905,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,282159,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,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,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,282181,278926,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,264349,264351,264350,264352,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,279531,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,
65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,282472,277848,
173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,281127,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,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,
30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,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,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,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,267645,275782,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,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,
39305,18046,221057,269990,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,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var UO=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.zm("yt.msgs_",UO);var b1=new _.eh("ACTION_ROUTER_TOKEN");_.WX=function(){this.autonavState_=_.M("kevlar_is_pupi_enabled")?2:ehl()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.WX.prototype.getState=function(){return this.autonavState_};
_.WX.prototype.pause=function(A){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=A):this.autonavState_==1&&(this.disabledAutonavPauseReason_=A)};
_.WX.prototype.setState=function(A,t,f){t&&(this.autoplayChangedByUser=!0);t=this.autonavState_===3||A===3;this.autonavState_!=A&&(this.autonavState_=A,A!=3&&_.Gnx(A==2),A=_.M("kevlar_is_pupi_enabled")?f||t:!0,_.XA.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,A,f))};
_.WX.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.su(_.WX);var yA=function(){this.hasRun=!1};var vX={},M45=(vX.auto_search="LATENCY_ACTION_AUTO_SEARCH",vX.ad_to_ad="LATENCY_ACTION_AD_TO_AD",vX.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",vX.app_startup="LATENCY_ACTION_APP_STARTUP",vX.browse="LATENCY_ACTION_BROWSE",vX.cast_splash="LATENCY_ACTION_CAST_SPLASH",vX.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",vX.channels="LATENCY_ACTION_CHANNELS",vX.chips="LATENCY_ACTION_CHIPS",vX.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",vX.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
vX.editor="LATENCY_ACTION_EDITOR",vX.embed="LATENCY_ACTION_EMBED",vX.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",vX.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",vX.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",vX.explore="LATENCY_ACTION_EXPLORE",vX.favorites="LATENCY_ACTION_FAVORITES",vX.home="LATENCY_ACTION_HOME",vX.inboarding="LATENCY_ACTION_INBOARDING",vX.landing="LATENCY_ACTION_LANDING",vX.learning="LATENCY_ACTION_LEARNING",
vX.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",vX.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",vX.library="LATENCY_ACTION_LIBRARY",vX.live="LATENCY_ACTION_LIVE",vX.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",vX.management="LATENCY_ACTION_MANAGEMENT",vX.mini_app="LATENCY_ACTION_MINI_APP_PLAY",vX.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",vX.onboarding="LATENCY_ACTION_ONBOARDING",vX.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
vX.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",vX.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",vX.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",vX.prebuffer="LATENCY_ACTION_PREBUFFER",vX.prefetch="LATENCY_ACTION_PREFETCH",vX.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",vX.profile_switcher="LATENCY_ACTION_LOGIN",vX.projects="LATENCY_ACTION_PROJECTS",vX.reel_watch="LATENCY_ACTION_REEL_WATCH",vX.results="LATENCY_ACTION_RESULTS",vX.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
vX.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",vX.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",vX.review="LATENCY_ACTION_REVIEW",vX.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",vX.search_ui="LATENCY_ACTION_SEARCH_UI",vX.search_suggest="LATENCY_ACTION_SUGGEST",vX.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",vX.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",vX.seek="LATENCY_ACTION_PLAYER_SEEK",vX.settings="LATENCY_ACTION_SETTINGS",vX.store="LATENCY_ACTION_STORE",
vX.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",vX.tenx="LATENCY_ACTION_TENX",vX.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",vX.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",vX.watch="LATENCY_ACTION_WATCH",vX.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",vX["watch,watch7"]="LATENCY_ACTION_WATCH",vX["watch,watch7_html5"]="LATENCY_ACTION_WATCH",vX["watch,watch7ad"]="LATENCY_ACTION_WATCH",vX["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",vX.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
vX.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",vX.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",vX.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",vX.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",vX.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",vX.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",vX.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",vX),xm8=0;var V4l=function(A,t){Dz.call(this,1,arguments);this.timer=t};
_.R(V4l,Dz);var Ywl=new I2p("aft-recorded",V4l);var m2l=_.Xb.ytLoggingGelSequenceIdObj_||{};_.zm("ytLoggingGelSequenceIdObj_",m2l);var Ll=_.Xb.ytLoggingLatencyUsageStats_||{};_.zm("ytLoggingLatencyUsageStats_",Ll);var pl=function(){this.cleanupJob=0},ySb=function(){pl.instance||(pl.instance=new pl);
return pl.instance};
_.J=pl.prototype;_.J.baseline=function(A,t,f){E_(this,"baseline_"+A)||_.SY("latencyActionBaselined",{clientActionNonce:A},{timestamp:t,cttAuthInfo:f})};
_.J.tick=function(A,t,f,X){E_(this,"tick_"+A+"_"+t)||_.SY("latencyActionTicked",{tickName:A,clientActionNonce:t},{timestamp:f,cttAuthInfo:X})};
_.J.info=function(A,t,f){var X=Object.keys(A).join("");E_(this,"info_"+X+"_"+t)||(A=Object.assign({},A),A.clientActionNonce=t,_.SY("latencyActionInfo",A,{cttAuthInfo:f}))};
_.J.jspbInfo=function(A,t,f){for(var X="",Q=0;Q<Dc(A).length;Q++)Dc(A)[Q]!==void 0&&(X=Q===0?X.concat(""+Q):X.concat("_"+Q));E_(this,"info_"+X+"_"+t)||(_.Dg(A,2,t),t={cttAuthInfo:f},f=_.M("jspb_sparse_encoded_pivot")?new xB([{}]):new xB,_.Wu(f,7,VRC,A),bXg("latencyActionInfo",f,t))};
_.J.span=function(A,t,f){var X=Object.keys(A).join("");E_(this,"span_"+X+"_"+t)||(A.clientActionNonce=t,_.SY("latencyActionSpan",A,{cttAuthInfo:f}))};
var E_=function(A,t){Ll[t]=Ll[t]||{count:0};var f=Ll[t];f.count++;f.time=(0,_.OJ)();A.cleanupJob||(A.cleanupJob=_.jY(_.a6,function(){var X=(0,_.OJ)(),Q;for(Q in Ll)Ll[Q]&&X-Ll[Q].time>6E4&&delete Ll[Q];A&&(A.cleanupJob=0)},5E3));
return f.count>5?(f.count===6&&Math.random()*1E5<1&&(f=new _.xj("CSI data exceeded logging limit with key",t.split("_")),t.indexOf("plev")>=0||_.K4(f)),!0):!1};var jVw,YRT;jVw=window;YRT=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.i0=jVw.performance||jVw.mozPerformance||jVw.msPerformance||jVw.webkitPerformance||new YRT;var jX0=!1,LMx=!1,ZXb=(0,_.F1)(_.i0.clearResourceTimings||_.i0.webkitClearResourceTimings||_.i0.mozClearResourceTimings||_.i0.msClearResourceTimings||_.i0.oClearResourceTimings||_.bz,_.i0);var AdT=_.r9(function(A,t,f,X,Q,q,e){if(!_.M("web_csi_action_sampling_enabled")||!_.zt(q).actionDisabled){e=e==null?void 0:e.spanStatus;var G=_.Pt(q);if(G.gelSpans)G.gelSpans[A]=!0;else{var N={};G.gelSpans=(N[A]=!0,N)}xm8++;A={spanName:A,spanLengthUsec:String(Math.round(t*1E3)),spanNonce:xm8};e&&(A.spanStatus=e);X&&(A.spanInfo=X);Q&&(A.parentSpanNonce=Q);f&&(A.spanStartTimeUsec=String(Math.round(f*1E3)));_.Tt(q||"").span[String(A.spanName)]=A;f=_.Pt(q);f.gelSpans||(f.gelSpans={});_.pG(f.gelSpans,
A);f=iX5(q);q=_.zt(q).cttAuthInfo;ySb().span(A,f,q);return A.spanNonce}}),VAl=window;
VAl.ytcsi&&(VAl.ytcsi.infoGel=_.R7,VAl.ytcsi.tick=_.Wt);var kns=function(A){Dz.call(this,1,arguments);this.csn=A};
_.R(kns,Dz);var Zpg=new I2p("screen-created",kns),P1u=[],sXx=zls,TKx=0,DN=new Map,rSb=new Map,AMu=new Map;var g0b=Symbol("Df"),$7=new WeakMap;var nl=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},lP=function(){nl.instance||(nl.instance=new nl);
return nl.instance};
_.J=nl.prototype;_.J.setClient=function(A){this.client=A};
_.J.JSC$12815_newScreen=function(){this.clear();this.csn=_.Ws()};
_.J.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.J.reportShown=function(A,t,f,X){var Q=this.JSC$12815_getTrackingParams(A),q=A.visualElement?A.visualElement:Q;t=this.shownElements.has(q);var e=this.visibleState.get(q);this.shownElements.add(q);this.visibleState.set(q,!0);A.impressionLog&&!t&&A.impressionLog();if(Q||A.visualElement)if(f=ZQS(this,A,f))if(q=o1C(this,A),Dv(this,A)||q){Q=A.visualElement?A.visualElement:_.zV(Q);var G=A.interactionLoggingClientData;q||t?Dv(this,A)&4?e||el5(this.client,f,Q,G):Dv(this,A)&1&&!t&&q_q(this.client,f,Q,G,X):
q_q(this.client,f,Q,G,X)}};
_.J.reportHidden=function(A,t,f,X){var Q=this.JSC$12815_getTrackingParams(A),q=A.visualElement?A.visualElement:Q;t=this.hiddenElements.has(q);var e=this.visibleState.get(q);this.hiddenElements.add(q);this.visibleState.set(q,!1);if(e===!1)return!0;if(!Q&&!A.visualElement)return!1;f=ZQS(this,A,f);if(!f||!Dv(this,A)&&o1C(this,A))return!1;Q=A.visualElement?A.visualElement:_.zV(Q);Dv(this,A)&8?GfT(this.client,f,Q,void 0,void 0,X):Dv(this,A)&2&&!t&&(A=this.client,X=nf({cttAuthInfo:yX(f)||void 0,automatedLogEventSource:X},
f),t={csn:f,ve:Q.getAsJson(),eventType:2},f==="UNDEFINED_CSN"?I7("visualElementHidden",X,t):A?oi("visualElementHidden",t,A,X):_.SY("visualElementHidden",t,X));return!0};
_.J.JSC$12815_getTrackingParams=function(A){var t=this.getData(A),f,X;if(_.M("il_use_view_model_logging_context")&&(t==null?0:(f=t.context)==null?0:(X=f.loggingContext)==null?0:X.loggingDirectives))return t.context.loggingContext.loggingDirectives.trackingParams||"";var Q,q;if(t==null?0:(Q=t.rendererContext)==null?0:(q=Q.loggingContext)==null?0:q.loggingDirectives)return t.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(t==null?0:t.loggingDirectives)return t.loggingDirectives.trackingParams||
"";var e;return((e=A.veContainer)==null?0:e.trackingParams)?A.veContainer.trackingParams:(t==null?void 0:t.trackingParams)||""};
_.J.JSC$12815_elementShouldLogGesture=function(A,t){A=this.getData(A);return!!((Math.floor(Number(A&&A.loggingDirectives&&A.loggingDirectives.gestures&&A.loggingDirectives.gestures.types||""))||0)&t)};
_.J.JSC$12815_getNearestParentVe=function(A){var t=this.JSC$12815_getTrackingParams(A);return A.visualElement?A.visualElement:t?_.zV(t):A.parentElement?this.JSC$12815_getNearestParentVe(A.parentElement):null};
var ZQS=function(A,t,f){var X=_.Ws(f);return A.csn===null||X===A.csn||f?X:(A=new _.xj("VisibilityLogger called before newScreen",{caller:t.tagName,previous_csn:A.csn,current_csn:X}),_.K4(A),null)};
nl.prototype.getData=function(A){var t,f=A.data||((t=A.props)==null?void 0:t.data);if(!f||A.isWebComponentWrapper){var X;f=(X=$7.get(A))==null?void 0:X[g0b]}return f};
var o1C=function(A,t){var f;return!((f=A.getData(t))==null||!f.loggingDirectives)},Dv=function(A,t){A=A.getData(t);
return Math.floor(Number(A&&A.loggingDirectives&&A.loggingDirectives.visibility&&A.loggingDirectives.visibility.types||""))||1};var Fw;Fw=function(){};
_.J7=function(){Fw.instance||(Fw.instance=new Fw);return Fw.instance};
Fw.prototype.setClient=function(A){_.r9(lP().setClient).bind(lP())(A)};
_.dmp=function(){_.J7();_.r9(lP().JSC$12815_newScreen).bind(lP())()};
Fw.prototype.clear=function(){_.r9(lP().clear).bind(lP())()};
Fw.prototype.reportShown=function(A,t,f,X){_.r9(lP().reportShown).bind(lP())(A,t,f,X)};
Fw.prototype.reportHidden=function(A,t,f,X){return _.r9(lP().reportHidden).bind(lP())(A,t,f,X)};
var j2p=function(A,t){return _.r9(lP().JSC$12815_getTrackingParams).bind(lP())(t)},wqu=function(A,t){return _.r9(lP().JSC$12815_getNearestParentVe).bind(lP())(t)};var Ir,SRS;Ir=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};
_.er=function(){Ir.instance||(Ir.instance=new Ir);return Ir.instance};
Ir.prototype.setClient=function(A){this.client=A};
SRS=function(A,t,f){f=f===void 0?{}:f;_.r9(function(){var X,Q,q,e=((X=_.C(t==null?void 0:t.commandMetadata,_.Jl))==null?void 0:X.rootVe)||((Q=_.C(t==null?void 0:t.commandMetadata,blT))==null?void 0:(q=Q.screenVisualElement)==null?void 0:q.uiType);if(e){X=_.C(t==null?void 0:t.commandMetadata,BNk);if(X==null?0:X.parentTrackingParams){var G=_.zV(X.parentTrackingParams);if(X.parentCsn)var N=X.parentCsn}else f.clickedVisualElement?G=f.clickedVisualElement:t.clickTrackingParams&&(G=_.zV(t.clickTrackingParams));
a:{X=_.C(t,_.ZT);Q=_.C(t,XMb);if(X){if(Q=lux(X,"VIDEO")){X={token:Q,videoId:X.videoId};break a}}else if(Q&&(X=lux(Q,"PLAYLIST"))){X={token:X,playlistId:Q.playlistId};break a}X=void 0}f=Object.assign({},{cttAuthInfo:X,parentCsn:N},f);if(_.M("expectation_logging")){var z;f.loggingExpectations=((z=_.C(t==null?void 0:t.commandMetadata,blT))==null?void 0:z.loggingExpectations)||void 0}_.xz(A,e,G,f)}else _.K4(new _.xj("Error: Trying to create a new screen without a rootVeType",t))})()};
_.xz=function(A,t,f,X){X=X===void 0?{}:X;_.r9(function(){I98.includes(t)||(_.K4(new _.xj("createClientScreen() called with a non-page VE",t)),t=83769);X.isHistoryNavigation||(A.forwardHistoryStack=[],A.backHistoryStack.push({rootVe:t,key:X.key||""}));A.graftQueue=[];A.stateChangedQueue=[];X.dataPromises?$mw(A,t,f,X):HQT(A,t,f,X)})()};
_.a9E=function(A,t,f){f=f===void 0?0:f;_.r9(function(){t.then(function(X){A.pendingScreenCreation.has(f)&&A.pendingScreenFn&&A.pendingScreenFn();var Q=_.Ws(f),q=_.mx(f);if(Q&&q){var e={automatedLogEventSource:3},G;(X==null?0:(G=X.response)==null?0:G.trackingParams)&&Fd(A.client,Q,q,_.zV(X.response.trackingParams),!1,e);var N;(X==null?0:(N=X.playerResponse)==null?0:N.trackingParams)&&Fd(A.client,Q,q,_.zV(X.playerResponse.trackingParams),!1,e)}})})()};
Ir.prototype.graftServerVe=function(A,t,f){var X=this;return _.r9(function(){var Q=_.zV(A);_.jN(X,Q,t,f);return Q})()};
_.ss0=function(A,t,f,X){return _.M("enable_client_ve_spec")&&t.clientVeSpec?(t=_.Xl(t.clientVeSpec.uiType,void 0,t.clientVeSpec.elementIndex,t.clientVeSpec.clientYoutubeData,void 0,t),_.jN(A,t,f,X)?t:null):t.trackingParams?A.graftServerVe(t.trackingParams,f,X):null};
_.UX=function(A,t,f,X){return _.r9(function(){if(!t.veType)return _.ai(new _.xj("Error: Trying to graft a client VE without a veType.")),null;if(t.visibilityTypes){var Q=t.visibilityTypes.reduce(function(q,e){return q|e});
Q={visibility:{types:String(Q)}}}Q=_.Xl(t.veType,t.visualElement,t.elementIndex,t.clientYouTubeData,void 0,Q);return _.jN(A,Q,f,X)?Q:null})()};
_.jN=function(A,t,f,X){X=X===void 0?0:X;return _.r9(function(){if(A.pendingScreenCreation.has(X))return A.graftQueue.push([t,f]),!0;var Q=_.Ws(X),q=f||_.mx(X);if(Q&&q){if(_.M("combine_ve_grafts")){var e=A.cachedVisualElements.get(q.toString());e?e.push(t):(A.cachedRootVisualElements.set(q.toString(),q),A.cachedVisualElements.set(q.toString(),[t]));A.attachTimeout||(A.attachTimeout=_.jY(_.a6,function(){KTb(A,Q)},1200))}else Fd(A.client,Q,q,t);
return!0}return!1})()};
_.Yz=function(A,t,f){f=f===void 0?0:f;var X=A.recurringGrafts.get(f)||new Map;if(_.M("smarter_ve_dedupping"))for(var Q=Array.from(X.keys()),q=0;q<Q.length;q++){var e=void 0,G=void 0;var N=t;var z=Q[q];z.isClientVe()&&N.isClientVe()?(e=N.getAsJson(),G=z.getAsJson(),N=e.veType!==G.veType||e.elementIndex!==G.elementIndex||e.dataElement!==G.dataElement||N.getLoggingDirectives()!==z.getLoggingDirectives()?!1:!0):N=z.veData.trackingParams!==void 0&&N.veData.trackingParams!==void 0?((G=N.veData)==null?void 0:
G.trackingParams)===((e=z.veData)==null?void 0:e.trackingParams):!1;if(N)return}else if(X.has(t))return;X.set(t,void 0);A.recurringGrafts.set(f,X);_.Ws(f)==="UNDEFINED_CSN"||A.pendingScreenCreation.has(f)||_.jN(A,t,void 0,f)};
_.VA=function(A,t,f,X){X=_.Ws(X===void 0?0:X);if(!X)return!1;NKu(A.client,X,t,f);return!0};
_.Zv=function(A,t,f,X){if(!t)return!1;X=_.Ws(X===void 0?0:X);if(!X)return!1;NKu(A.client,X,_.zV(t),f);return!0};
_.FR=function(A,t){var f=t.getScreenLayer&&t.getScreenLayer();if(t.visualElement)return _.VA(A,t.visualElement,void 0,f);t=j2p(_.J7(),t);return _.Zv(A,t,void 0,f)};
Ir.prototype.clickCommand=function(A,t,f){return _.Zv(this,A.clickTrackingParams,t,f===void 0?0:f)};
Ir.prototype.stateChanged=function(A,t,f){this.visualElementStateChanged(_.zV(A),t,f===void 0?0:f)};
Ir.prototype.visualElementStateChanged=function(A,t,f){f=f===void 0?0:f;f===0&&this.pendingScreenCreation.has(f)?this.stateChangedQueue.push([A,t]):this.logStateChanged(A,t,f)};
Ir.prototype.logStateChanged=function(A,t,f){f=f===void 0?0:f;var X=_.Ws(f);A=A||_.mx(f);return X&&A?(uwx(this.client,X,A,t),!0):!1};
var $mw=function(A,t,f,X){X=X===void 0?{}:X;A.pendingScreenCreation.add(X.layer||0);A.pendingScreenFn=function(){HQT(A,t,f,X);var e=_.mx(X.layer);if(e){for(var G=_.U(A.graftQueue),N=G.next();!N.done;N=G.next())N=N.value,_.jN(A,N[0],N[1]||e,X.layer);e=_.U(A.stateChangedQueue);for(G=e.next();!G.done;G=e.next())G=G.value,A.logStateChanged(G[0],G[1])}};
f||_.Ws(X.layer)||A.pendingScreenFn();if(X.dataPromises)for(var Q=_.U(X.dataPromises),q=Q.next();!q.done;q=Q.next())_.a9E(A,q.value,X.layer);else _.HQ(Error("Ef"))},HQT=function(A,t,f,X){X=X===void 0?{}:X;
var Q=void 0;X.layer||(X.layer=0);Q=X.parentLayer!==void 0?X.parentLayer:X.layer;var q=_.Ws(Q);Q=_.mx(Q);var e=f||Q,G;e&&(X.parentCsn!==void 0?G={clientScreenNonce:X.parentCsn,visualElement:e}:q&&q!=="UNDEFINED_CSN"&&(G={clientScreenNonce:q,visualElement:e}));var N,z=_.ah("EVENT_ID");q==="UNDEFINED_CSN"&&z&&(N={servletData:{serializedServletEventId:z}});_.M("combine_ve_grafts")&&q&&KTb(A,q);_.M("no_client_ve_attach_unless_shown")&&e&&q&&Qrb(e,q);try{var T=_.tN5(A.client,t,G,X.csnToClone,X.cttAuthInfo,
N,X.implicitGestureType,void 0,X.loggingExpectations,X.automatedLogEventSource)}catch(B){_.gL(B,{rootVeType:t,rootVe:Q,parentVisualElement:f,currentCsn:q,parentEl:G,csnToClone:X.csnToClone});_.HQ(B);return}_.vs(T,t,X.layer,X.cttAuthInfo);q&&q!=="UNDEFINED_CSN"&&Q&&!z2x(q)&&GfT(A.client,q,Q,!0);A.backHistoryStack[A.backHistoryStack.length-1]&&!A.backHistoryStack[A.backHistoryStack.length-1].csn&&(A.backHistoryStack[A.backHistoryStack.length-1].csn=T||"");_.R7({clientScreenNonce:T});_.dmp();var O=_.mx(X.layer);
q&&q!=="UNDEFINED_CSN"&&O&&_.M("music_web_mark_root_visible")&&_.Y7(T,O);A.pendingScreenCreation.delete(X.layer||0);A.pendingScreenFn=void 0;var c;(c=A.recurringGrafts.get(X.layer))==null||c.forEach(function(B,h){B?_.jN(A,h,B,X.layer):O&&_.jN(A,h,O,X.layer)});
g1w(A)},g1w=function(A){for(var t=0;t<A.afterNewScreenOneOffJobs.length;t++){var f=A.afterNewScreenOneOffJobs[t];
try{f()}catch(X){_.HQ(X)}}for(t=A.afterNewScreenOneOffJobs.length=0;t<A.afterNewScreenRecurringJobs.length;t++){f=A.afterNewScreenRecurringJobs[t];try{f()}catch(X){_.HQ(X)}}},KTb=function(A,t){if(t===void 0)for(var f=NOq(),X=0;X<f.length;X++)f[X]!==void 0&&KTb(A,f[X]);
else A.cachedVisualElements.forEach(function(Q,q){(q=A.cachedRootVisualElements.get(q))&&fvb(A.client,t,q,Q)}),A.cachedVisualElements.clear(),A.cachedRootVisualElements.clear(),A.attachTimeout=void 0};var or=function(A){A=A===void 0?{layer:0}:A;this.hasRun=!1;this.createScreenConfig=A;A={};this.s7Y=(A.response=!1,A.playerResponse=!1,A)};
_.R(or,yA);or.prototype.validate=function(A){return!(!A.data||!A.data.response&&!A.data.playerResponse)};
or.prototype.handle=function(A){var t=_.er(),f=this.createScreenConfig.layer;A.data.response&&A.data.response.trackingParams&&!this.s7Y.response&&(t.graftServerVe(A.data.response.trackingParams,void 0,f),this.s7Y.response=!0);A.data.playerResponse&&A.data.playerResponse.trackingParams&&!this.s7Y.playerResponse&&(t.graftServerVe(A.data.playerResponse.trackingParams,void 0,f),this.s7Y.playerResponse=!0)};var dK=function(){this.wg=_.YE();this.zh=[];this.kaa=0};
dK.prototype.processChunk=function(A){if(A){for(var t=_.U(this.zh),f=t.next();!f.done;f=t.next())f=f.value,f.validate(A)&&(f.handle(A),f.hasRun=!0);_.Wt("np"+this.kaa);this.kaa++}};var C1p=function(A,t,f){f=f===void 0?{}:f;this.name=A;this.id=Ht.nextSpanId++;this.sessionId=Ht.sessionId;this.attributes=t;this.status="SPAN_STATUS_UNSET";var X;this.startTime=(X=f.startTime)!=null?X:(0,_.OJ)();this.isActiveSpan=f.active;if(A=Ht.stack[Ht.stack.length-1])this.parentId=A.id,A.children||(A.children=[]),A.children.push(this);A=_.U(Ht.processors);for(t=A.next();!t.done;t=A.next()){t=t.value;try{var Q=X=void 0;(Q=(X=t).onSpanStart)==null||Q.call(X,this)}catch(q){_.K4(q)}}f.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",f.endTime))};
C1p.prototype.end=function(A,t){A=A===void 0?"SPAN_STATUS_OK":A;this.endTime=t=t===void 0?(0,_.OJ)():t;this.duration=this.endTime-this.startTime;this.status=A;this.isActiveSpan!==!1&&(Ht.stack[Ht.stack.length-1]===this?Ht.stack.pop():_.K4(Error("Ff`"+String(this.name))));A=_.U(Ht.processors);for(t=A.next();!t.done;t=A.next()){t=t.value;try{var f=void 0,X=void 0;(X=(f=t).onSpanEnd)==null||X.call(f,this)}catch(Q){_.K4(Q)}}};
C1p.prototype.addAttributes=function(A){Object.assign(this.attributes,A)};
var hlb={end:function(){},
addAttributes:function(){}},Ht={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},MNl={rootSpan:function(){return Ht.stack[0]}};var blp={};var qKx=function(A){this.observers=[];this.value=A};
_.J=qKx.prototype;_.J.subscribe=function(A){var t=this;if(A.idx!=null)throw Error("Hf");A.idx=this.observers.length;this.observers.push(A);try{A(this.value)}catch(f){}return function(){var f=t.observers[t.observers.length-1];t.observers[A.idx]=f;f.idx=A.idx;t.observers.pop()}};
_.J.update=function(A){this.value=A(this.value);this.notify()};
_.J.mutate=function(A){A(this.value);this.notify()};
_.J.set=function(A){this.value=A;this.notify()};
_.J.notify=function(){for(var A=_.U(this.observers),t=A.next();!t.done;t=A.next()){t=t.value;try{t(this.value)}catch(f){}}};var c3b,wl7,rKE;_.XH=function(A,t,f,X,Q,q,e,G){e=e===void 0?[]:e;G=G===void 0?[]:G;this.buildCommandPayload=A;this.navigate=t;this.handleServiceRequest=f;this.sendAction=X;this.JSC$12864_screenManager=Q;this.commandResolverMap=q;this.autoLogResolverAllowlist=e;this.metaCommandClickLoggingDenylist=G;this.pendingCommands=new Set;this.isTracingEnabled=!1;wl7(this)};
c3b=function(A,t,f){var X=[_.Sm7,qUK],Q=QTb,q=qf5,e=_.er(),G=sVT;f=f===void 0?[]:f;X=X===void 0?[]:X;_.XH.instance=new _.XH(A,t,Q,q,e,G,f,X)};
wl7=function(A){if(!A.isTracingEnabled&&BK0("command")){var t=A.resolveCommand;A.resolveCommand=function(f,X){a:{for(Q in f)if(Object.prototype.hasOwnProperty.call(f,Q)){var Q={commandType:Q};break a}Q={}}return mNs("command",Q,t.bind(this,f,X))};
A.isTracingEnabled=!0}};
rKE=function(A,t,f){if(!A.commandResolverMap)return!1;var X=Ezb(t,A.commandResolverMap);return X?((A.autoLogResolverAllowlist.some(function(Q){return!!_.C(t,Q)})||(f==null?0:f.forceClickLogging))&&kAE(A,t,f),X instanceof Promise?X.then(function(Q){Q.resolve(t,f)}):X.resolve(t,f),!0):!1};
_.XH.prototype.resolveCommand=function(A,t){var f=this,X=ATT(A);if(rKE(this,A,t))return!0;if(X)return t9p(this,A,t);if(!this.buildCommandPayload)return vzu(A,"Unhandled command by buildCommandPayload"),!1;var Q=this.buildCommandPayload(A,t);if(t==null?0:t.commandController)Q.commandController=t.commandController;if(Q.type===0){if(!this.navigate)return LOT(A,"navigate"),!1;if(!fGl(Q.command))return vzu(A,"Page requests need to specify a url"),!1;_.M("logging_avoid_blocking_during_navigation")&&_.mIz().transition("application_navigating");
A=this.navigate(Q)||[];y8T(A).then(function(){f.pendingCommands.delete(Q.command)});
return!0}if(Q.type===1){if(!this.handleServiceRequest)return LOT(A,"handleServiceRequest"),!1;(t==null?0:t.forceClickLogging)&&kAE(this,Q.command,t);A=this.handleServiceRequest(Q);y8T(A).then(function(){f.pendingCommands.delete(Q.command)});
return!0}if(Q.type===2){if(!this.sendAction)return LOT(A,"sendAction"),!1;kAE(this,Q.command,t);this.sendAction(Q);return!0}return!1};
var kAE=function(A,t,f){if((f==null||!f.disableClickTracking)&&A.JSC$12864_screenManager)if(t.clickTrackingParams&&_.M("log_click_with_layer_from_element_in_command_handler")){var X;f=f==null?void 0:(X=f.form)==null?void 0:X.element;A.JSC$12864_screenManager.clickCommand(t,null,f&&f.getScreenLayer&&f.getScreenLayer())}else t.clickTrackingParams?A.JSC$12864_screenManager.clickCommand(t):!_.M("disable_clicked_visual_element_in_command_handler")&&(f==null?0:f.clickedVisualElement)&&_.VA(A.JSC$12864_screenManager,
f.clickedVisualElement)},ATT=function(A){var t=!!_.C(A,_.Xd),f;
A=((f=_.C(A,_.qJ))==null?void 0:f.signal)==="CLIENT_SIGNAL";return t||A},t9p=function(A,t,f){var X=_.C(t,_.Xd);
if(X)var Q=(X==null?void 0:X.commands)||[];else{var q;if(((q=_.C(t,_.qJ))==null?void 0:q.signal)==="CLIENT_SIGNAL"){var e;Q=((e=_.C(t,_.qJ))==null?void 0:e.actions)||[]}}if(Q){(X=XNf(A,Q))&&kAE(A,t,f);t=_.U(Q);for(Q=t.next();!Q.done;Q=t.next()){Q=Q.value;try{var G=Object.assign({},f);X&&(G.disableClickTracking=!0);A.resolveCommand(Q,G)}catch(N){N instanceof Error&&_.HQ(N)}}return!0}vzu(t,"Could not handle the meta command");return!1},XNf=function(A,t){return t.every(function(f){return A.metaCommandClickLoggingDenylist.some(function(X){return!!_.C(f,
X)})})},fGl=function(A){var t;
return!((t=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null||!t.url)};var SN=function(){yA.apply(this,arguments)};
_.R(SN,yA);SN.prototype.validate=function(A){var t,f;return!this.hasRun&&!!((t=A.data.response)==null?0:(f=t.onResponseReceivedEndpoints)==null?0:f.length)};
SN.prototype.handle=function(A){var t=_.XH.instance;A=_.U(A.data.response.onResponseReceivedEndpoints);for(var f=A.next();!f.done;f=A.next())t.resolveCommand(f.value)};var QQf,qzp,JTK;
QQf=function(){this.companionCanvasActivation=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=_.ff();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.$z=function(){qzp||(qzp=new QQf);return qzp};
JTK=function(){var A=_.$z();A.miniplayerButtonActivation=!1;A.userActivation=!1;A.playlistWatchPageActivation=!1;A.productDetailsPageActivation=!1;A.miniAppPageActivation=!1;A.playablesDestPageActivation=!1;A.lockupActivation=!1;A.showMiniplayerCommandActivation=!1;A.playlistSuggestionsShelfActivation=!1;A.mediaSessionPipActivation=!1;A.watchPipActivation=!1;A.watchWhileActivation=!1;A.shortsPipActivation=!1;A.companionCanvasActivation=!1};
_.Unp=function(){var A=_.$z(),t=A.mediaSessionPipActivation,f=A.watchPipActivation,X=A.watchWhileActivation,Q=A.playlistWatchPageActivation,q=A.lockupActivation,e=A.showMiniplayerCommandActivation,G=A.navigatingAwayFromWatchDeletedVideo,N=A.shortsPipActivation,z=A.playlistSuggestionsShelfActivation,T=A.productDetailsPageActivation,O=A.miniAppPageActivation,c=A.playablesDestPageActivation,B=A.companionCanvasActivation;return!A.miniplayerButtonActivation&&!Q&&!z&&!T&&!O&&!c&&!q&&!e&&!t&&!f&&!X&&!N&&
!B||G};var HYu;_.HX=_.Kf("FEwhat_to_watch","/",3854);_.ahq=_.Kf("FEdownloads","/feed/downloads",42352);HYu=_.Kf("FEmusic_offline","browse/FEmusic_offline",42352);var SR=function(A,t){t=t===void 0?[]:t;var f=f===void 0?[]:f;t=$Fq.apply(null,[H30.apply(null,_.YV(t))].concat(_.YV(f)));this.store=wIx(A,void 0,t)};
SR.prototype.getState=function(){return this.store.getState()};
SR.prototype.dispatch=function(A){return this.store.dispatch(A)};
SR.prototype.subscribe=function(A){return this.store.subscribe(A)};
SR.prototype.replaceReducer=function(A){return this.store.replaceReducer(A)};
SR.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.ar=function(A,t,f){var X=t(A.getState());return A.subscribe(function(){var Q=t(A.getState());if(Q!==X){var q=X;X=Q;f(Q,q)}})};var hoz;_.Ta=function(A,t,f){return _.r0({type:"REPLACE_ENTITY",payload:{entityPayload:f,entityType:A,key:t}})};
hoz=function(A){return _.r0({type:"REPLACE_ENTITIES",payload:A})};
_.m0=function(A,t,f,X){return _.r0({type:"UPDATE_ENTITY",payload:{entityPayload:f,entityType:A,key:t,mergeOption:X}})};var $N5=function(A){var t=this;A=A===void 0?[]:A;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;A.forEach(function(f){t.append(f)})};
_.J=$N5.prototype;_.J.getLength=function(){return this.totalLength};
_.J.append=function(A){var t=this.arrays.length===0?!1:(t=this.arrays[this.arrays.length-1])&&t.buffer===A.buffer&&t.byteOffset+t.length===A.byteOffset;t?(t=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(t.buffer,t.byteOffset,t.length+A.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(A);this.totalLength+=A.length};
_.J.split=function(A){for(var t=new $N5,f=new $N5,X=_.U(this.arrays),Q=X.next();!Q.done;Q=X.next())Q=Q.value,A>=Q.length?(t.append(Q),A-=Q.length):A?(t.append(new Uint8Array(Q.buffer,Q.byteOffset,A)),f.append(new Uint8Array(Q.buffer,Q.byteOffset+A,Q.length-A)),A=0):f.append(Q);return{headView:t,tailView:f}};
_.J.isFocused=function(A){return A>=this.arrayPos&&A<this.arrayPos+this.arrays[this.arrayIdx].length};
_.J.focus=function(A){if(!this.isFocused(A))for(A<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=A&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var eDk=function(A,t){A.focus(t);return A.arrays[A.arrayIdx][t-A.arrayPos]};(function(){var A=function(X){return new Uint8Array(X)},t=function(X){for(var Q=new Uint8Array(X.length),q=0;q<X.length;q++)Q[q]=X[q];
return Q},f=new Uint8Array([1]);
return f.length===1&&f[0]===1?A:t})();
var Y_s=Array(1024),jrq=window.TextDecoder?new TextDecoder:void 0,Zlb=window.TextEncoder?new TextEncoder:void 0;var S_p=function(A){this.arrayView=A;this.pos=0;this.pendingTagAndType=-1},AR=function(A){var t=eDk(A.arrayView,A.pos);
++A.pos;if(t<128)return t;for(var f=t&127,X=1;t>=128;)t=eDk(A.arrayView,A.pos),++A.pos,X*=128,f+=(t&127)*X;return f},Hl0=function(A,t){var f=A.pendingTagAndType;
for(A.pendingTagAndType=-1;A.pos+1<=A.arrayView.totalLength;){f<0&&(f=AR(A));var X=f>>3,Q=f&7;if(X===t)return!0;if(X>t){A.pendingTagAndType=f;break}f=-1;switch(Q){case 0:AR(A);break;case 1:A.pos+=8;break;case 2:X=AR(A);A.pos+=X;break;case 5:A.pos+=4}}return!1};var KOp=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=dNb(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},XC=function(A,t){t=A.pos+t;
if(!(A.buf.length>=t)){for(var f=A.buf.length*2;f<t;)f*=2;A.buf=dNb(f,A.wasm,A.buf.subarray(0,A.pos));A.view=new DataView(A.buf.buffer,A.buf.byteOffset,A.buf.byteLength)}},fZ=function(A,t){if(t>268435455){XC(A,4);
for(var f=t&1073741823,X=0;X<4;X++)A.view.setUint8(A.pos,f&127|128),f>>=7,A.pos+=1;t=Math.floor(t/268435456)}for(XC(A,4);t>127;)A.view.setUint8(A.pos,t&127|128),t>>=7,A.pos+=1;A.view.setUint8(A.pos,t);A.pos+=1};for(var gzx={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,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},avp={},GyS=_.U(Object.entries(gzx)),lGT=GyS.next();!lGT.done;lGT=GyS.next()){var N4p=_.U(lGT.value),uzK=N4p.next().value,zDT=N4p.next().value,PGK=uzK,T48=zDT;T48&&(avp[T48]=PGK)};var srq=function(A,t){A=A===void 0?{}:A;switch(t.type){case "ENTITY_LOADED":return t.payload.reduce(function(X,Q){var q,e=(q=Q.options)==null?void 0:q.persistenceOption;if(e&&e!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&e!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return X;if(!Q.entityKey)return _.HQ(Error("Jf")),X;if(Q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Q.payload)return Q=new _.xj("REPLACE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.HQ(Q),X;var G=(0,_.VG.getAnyKey)(Q.payload);
return rMx(X,G,Q.entityKey,Q.payload[G])}if(Q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Q=Q.entityKey;try{var N=_.tR(Q).entityType;G=rMx(X,N,Q);break a}catch(O){if(O instanceof Error){Q=new _.xj("Failed to deserialize entity key",{entityKey:Q,originalMessage:O.message});_.HQ(Q);G=X;break a}throw O;}G=void 0}return G}if(Q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Q.payload)return Q=new _.xj("UPDATE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.HQ(Q),X;G=(0,_.VG.getAnyKey)(Q.payload);
var z,T;return Az5(X,G,Q.entityKey,Q.payload[G],(z=Q.fieldMask)==null?void 0:(T=z.mergeOptions)==null?void 0:T.repeatedFieldsMergeOption)}return X},A);
case "REPLACE_ENTITY":var f=t.payload;return rMx(A,f.entityType,f.key,f.entityPayload);case "REPLACE_ENTITIES":return Object.keys(t.payload).reduce(function(X,Q){var q=t.payload[Q];return Object.keys(q).reduce(function(e,G){return rMx(e,Q,G,q[G])},X)},A);
case "UPDATE_ENTITY":return f=t.payload,Az5(A,f.entityType,f.key,f.entityPayload,f.mergeOption);default:return A}};var td5;var i$l=!1,Kl,gK,wK,s_,kz,O$b=function(A){_.DA.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!i$l){var t,f=new Uint8Array(256),X=new Uint8Array(256);var Q=1;for(t=0;t<256;t++)f[Q]=t,X[t]=Q,Q^=Q<<1^(Q>>7&&283);Kl=new Uint8Array(256);gK=JR(256);wK=JR(256);s_=JR(256);kz=JR(256);for(var q=0;q<256;q++){Q=q?X[255^f[q]]:0;Q^=Q<<1^Q<<2^Q<<3^Q<<4;Q=Q&255^Q>>>8^99;Kl[q]=Q;t=Q<<1^(Q>>7&&283);var e=t^Q;gK[q]=t<<24|Q<<16|Q<<8|e;wK[q]=e<<24|gK[q]>>>8;s_[q]=Q<<24|wK[q]>>>
8;kz[q]=Q<<24|s_[q]>>>8}i$l=!0}Q=JR(44);for(f=0;f<4;f++)Q[f]=A[4*f]<<24|A[4*f+1]<<16|A[4*f+2]<<8|A[4*f+3];for(X=1;f<44;f++)A=Q[f-1],f%4||(A=(Kl[A>>16&255]^X)<<24|Kl[A>>8&255]<<16|Kl[A&255]<<8|Kl[A>>>24],X=X<<1^(X>>7&&283)),Q[f]=Q[f-4]^A;this.key=Q};
_.R(O$b,_.DA);
O$b.prototype.encrypt=function(A){var t=A.length;A=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+t));for(var f=this.cipherBlock,X=0;X<t&&this.blockOffset<16;)A[X++]^=f[this.blockOffset++];for(var Q=t-(t-X)%16;X<Q;)cT8(this),A[X++]^=f[0],A[X++]^=f[1],A[X++]^=f[2],A[X++]^=f[3],A[X++]^=f[4],A[X++]^=f[5],A[X++]^=f[6],A[X++]^=f[7],A[X++]^=f[8],A[X++]^=f[9],A[X++]^=f[10],A[X++]^=f[11],A[X++]^=f[12],A[X++]^=f[13],A[X++]^=f[14],A[X++]^=f[15];if(X<t)for(cT8(this),this.blockOffset=0;X<t;)A[X++]^=
f[this.blockOffset++];return A};
var cT8=function(A){for(var t=A.key,f=A.counter[0]^t[0],X=A.counter[1]^t[1],Q=A.counter[2]^t[2],q=A.counter[3]^t[3],e=3;e>=0&&!(A.counter[e]=-~A.counter[e]);e--);for(var G,N,z=4;z<40;)e=gK[f>>>24]^wK[X>>16&255]^s_[Q>>8&255]^kz[q&255]^t[z++],G=gK[X>>>24]^wK[Q>>16&255]^s_[q>>8&255]^kz[f&255]^t[z++],N=gK[Q>>>24]^wK[q>>16&255]^s_[f>>8&255]^kz[X&255]^t[z++],q=gK[q>>>24]^wK[f>>16&255]^s_[X>>8&255]^kz[Q&255]^t[z++],f=e,X=G,Q=N;A=A.cipherBlock;e=t[40];A[0]=Kl[f>>>24]^e>>>24;A[1]=Kl[X>>16&255]^e>>16&255;A[2]=
Kl[Q>>8&255]^e>>8&255;A[3]=Kl[q&255]^e&255;e=t[41];A[4]=Kl[X>>>24]^e>>>24;A[5]=Kl[Q>>16&255]^e>>16&255;A[6]=Kl[q>>8&255]^e>>8&255;A[7]=Kl[f&255]^e&255;e=t[42];A[8]=Kl[Q>>>24]^e>>>24;A[9]=Kl[q>>16&255]^e>>16&255;A[10]=Kl[f>>8&255]^e>>8&255;A[11]=Kl[X&255]^e&255;e=t[43];A[12]=Kl[q>>>24]^e>>>24;A[13]=Kl[f>>16&255]^e>>16&255;A[14]=Kl[X>>8&255]^e>>8&255;A[15]=Kl[Q&255]^e&255};var B4i=!1;(function(){var A=function(X){return new Uint8Array(X)},t=function(X){for(var Q=new Uint8Array(X.length),q=0;q<X.length;q++)Q[q]=X[q];
return Q},f=new Uint8Array([1]);
return f.length===1&&f[0]===1?A:t})();
var rK;var hDw=function(A){a:{if(!B4i&&!Nq){if(rK){var t=rK;break a}rK=(t=window.crypto)==null?void 0:t.subtle;var f,X,Q;if(((f=rK)==null?0:f.importKey)&&((X=rK)==null?0:X.sign)&&((Q=rK)==null?0:Q.encrypt)){t=rK;break a}rK=void 0}t=void 0}t&&(this.nativeEncryptor=new M9k(A,t));this.encryptorPolyfill=new CGk(A)};
hDw.prototype.encrypt=function(A,t){var f=this,X;return _.l(function(Q){switch(Q.nextAddress){case 1:if(!f.nativeEncryptor){Q.jumpTo(2);break}_.ht(Q,3);return Q.yield(f.nativeEncryptor.encrypt(A,t),5);case 5:return Q.return(Q.yieldResult);case 3:X=_.vC(Q),_.K4(X),B4i=!0,f.nativeEncryptor=void 0;case 2:return Q.return(f.encryptorPolyfill.encrypt(A,t))}})};
hDw.prototype.decrypt=function(A,t){return this.encrypt(A,t)};
var M9k=function(A,t){this.JSC$12937_aesKey=A;this.subtleCrypto=t};
M9k.prototype.encrypt=function(A,t){var f=this,X;return _.l(function(Q){if(Q.nextAddress==1)return _.ht(Q,2),Q.yield(RDC(f,A,t),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);X=_.vC(Q);_.K4(X);B4i=!0;throw X;})};
var RDC=function(A,t,f){var X,Q;return _.l(function(q){switch(q.nextAddress){case 1:if(A.cryptoKey){q.jumpTo(2);break}return q.yield(A.subtleCrypto.importKey("raw",A.JSC$12937_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:A.cryptoKey=q.yieldResult;case 2:return X={name:"AES-CTR",counter:f,length:128},q.yield(A.subtleCrypto.encrypt(X,A.cryptoKey,t),4);case 4:return Q=q.yieldResult,q.return(new Uint8Array(Q))}})},CGk=function(A){this.JSC$12940_aesKey=A};
CGk.prototype.encrypt=function(A,t){this.encryptor||(this.encryptor=new O$b(this.JSC$12940_aesKey));for(var f=this.encryptor,X=0;X<4;X++)f.counter[X]=t[X*4]<<24|t[X*4+1]<<16|t[X*4+2]<<8|t[X*4+3];f.blockOffset=16;return this.encryptor.encrypt(A)};
CGk.prototype.decrypt=function(A,t){return this.encrypt(A,t)};var mnp={},QFx=Tm("yt-idb-pref-storage",{objectStores:(mnp.prefs={addedAtVersion:1},mnp),shared:!1,upgrade:function(A,t){t(1)&&tO(AO(A,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Az=function(A){this.token=A};
_.Az.getInstance=function(){return _.l(function(A){return A.return(new Promise(function(t){_.PD().then(function(f){f?(_.Az.instance||(_.Az.instance=new _.Az(f)),t(_.Az.instance)):t(void 0)})}))})};
_.Az.prototype.get=function(A){var t=this,f,X,Q;return _.l(function(q){if(q.nextAddress==1)return q.yield(qd0(t.token),2);if(q.nextAddress!=3)return f=q.yieldResult,q.yield(f.get("prefs",A),3);X=q.yieldResult;if(!X)return q.return();Q=(0,_.OJ)();return X.expirationTimestampMs<=Q?q.return():q.return(X.value)})};
_.Az.prototype.set=function(A,t,f){f=f===void 0?31536E3:f;var X=this,Q,q,e;return _.l(function(G){if(G.nextAddress==1)return Q=(0,_.OJ)(),q={key:A,value:t,expirationTimestampMs:Q+f*1E3},G.yield(qd0(X.token),2);e=G.yieldResult;return G.yield(e.put("prefs",q),0)})};
_.Az.prototype.remove=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(qd0(t.token),2);f=X.yieldResult;return X.yield(f.delete("prefs",A),0)})};var tz={},b$p=(tz.INVALID_ENCODER_VERSION="Invalid encoder version",tz.KEY_CREATION_FAILED="Failed to create encoder key",tz.UNKNOWN_DECODE_ERROR="Failed to decode PES data",tz.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",tz.WRONG_DATA_TYPE="Encoder cannot process the data type",tz),Up=function(A,t){t=t===void 0?{}:t;_.xj.call(this,b$p[A],Object.assign({},{name:"PESEncoderError",type:A},t));this.type=A;this.level="WARNING";Object.setPrototypeOf(this,Up.prototype)};
_.R(Up,_.xj);var fy=function(){};
fy.prototype.encode=function(A,t){try{return this.encodeImpl(A,t)}catch(f){GT5(f,Urx)}};
fy.prototype.decode=function(A,t){try{return this.decodeImpl(A,t)}catch(f){GT5(f,eox)}};
var WRK=function(A,t,f){var X;return _.l(function(Q){if(Q.nextAddress==1)return _.ht(Q,2),Q.yield(A.decodeAsyncImpl(t,f),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);X=_.vC(Q);GT5(X,eox);_.LO(Q)})};
fy.prototype.decodeAsyncImpl=function(A,t){return Promise.resolve(this.decodeImpl(A,t))};var Xj=function(A,t){this.aesEncryptor=A;this.aesEncryptorAsync=t};
_.R(Xj,fy);Xj.prototype.encodeImpl=function(A,t){t=lQb(t);A=(new TextEncoder).encode(JSON.stringify(A));return this.aesEncryptor.encrypt(A,t)};
Xj.prototype.decodeImpl=function(A,t){if(!(A instanceof Uint8Array))throw Jz0(1);var f=new TextDecoder;t=lQb(t);A=this.aesEncryptor.decrypt(A,t);return JSON.parse(f.decode(A))};
Xj.prototype.decodeAsyncImpl=function(A,t){var f=this,X,Q,q;return _.l(function(e){if(e.nextAddress==1){if(!(A instanceof Uint8Array))throw Jz0(1);X=new TextDecoder;Q=lQb(t);return e.yield(f.aesEncryptorAsync.decrypt(A,Q),2)}q=e.yieldResult;return e.return(JSON.parse(X.decode(q)))})};var Naz={accountLinkStatusEntity:PJ7,booleanEntity:oDk,buttonEntity:DT8,captionTrack:MDC,channelHandle:i6p,chipEntity:eXT,commerceAcquisitionClientPayloadEntity:GZK,commerceCartListEntity:l7E,compositeSourceEntity:IQw,multiviewStagingEntity:xrS,contextNoteFeedEntityPayload:LbT,contextNoteUserRatingEntityPayload:pri,continuationTokenEntity:rMw,downloadQualityPickerEntity:oz7,downloadsPageRefreshTokenEntity:S_T,downloadsPageViewConfigurationEntity:eow,downloadStatusEntity:dNp,dismissState:GBk,sfvAudioItemCurrentlyPlayingEntity:ABk,
emojiFountainDataEntity:p78,emojiCustomizationSetEntity:Luw,fakeChannel:$hp,fakePlaylist:H9p,fakePlaylistEntryCollection:aep,fakeVideo:gDK,fakeVideoDescription:wYT,featuredProductsEntity:vxK,flowStateEntity:luw,iconBadgeEntity:NgT,interstitialInteractionStateEntity:pLC,likeButtonAnimationEntity:GTl,liveChatPollStateEntity:Ywb,dataFreshnessEntity:ysK,liveViewerLeaderboardChatEntryPointStateEntity:FJT,liveViewerLeaderboardPointsEntity:Imb,liveReactionsDataEntity:Ey8,logoEntity:v4K,macroMarkerEntity:lQp,
mainDownloadsLibraryEntity:$NC,mainDownloadsListEntity:Hlp,mainPlaylistDownloadStateEntity:KOT,mainPlaylistEntity:Azl,mainPlaylistVideoEntity:tdC,mainVideoDownloadStateEntity:gz7,mainVideoEntity:qdp,markersEngagementPanelSyncEntity:Nak,markersVisibilityOverrideEntity:ujK,musicAlbumReleaseDetail:dr7,musicAlbumReleaseDownloadMetadataEntity:jF7,musicAlbumRelease:oxp,musicAlbumReleaseUserDetail:SdE,musicArtistDetail:Hyi,musicArtist:$r7,musicArtistUserDetail:aQl,musicDownloadsLibraryEntity:YdT,musicLibraryEdit:Kd8,
musicLibraryStatusEntity:gxS,musicPlaylist:wR7,musicPlaylistDownloadMetadataEntity:VdS,musicShare:kTk,musicTrackDetail:Aa8,musicTrackDownloadMetadataEntity:Zyl,musicTrack:rzT,musicTrackUserDetail:tD7,offlineOrchestrationActionWrapperEntity:Ccp,offlineVideoPolicy:hgl,offlineVideoStreams:Rgi,offlineabilityEntity:wX7,orchestrationWebSamplingEntity:sr8,pageHeaderEntity:BAi,pdpStateEntity:uVE,pinnedProductEntity:LdK,playbackData:mXk,playerStateEntity:zoi,quantityIncrementerEntity:zQl,refresh:bxl,saveToPlaylistListEntity:MHT,
selectedChipIndexEntityPayload:PES,settingEntity:ooK,stringEntity:dhT,suggestedFeedbackChipStateEntity:TaK,transfer:WJl,trendingOfferEntity:pRS,videoDownloadContextEntity:yaC,videoOverviewAsyncDataEntity:xMi,videoPlaybackPositionEntity:VKE,votingEntity:RXE,ytMainChannelEntity:Jzp,youchatPendingResponseEntity:iyb,ytMainDownloadedVideoEntity:kfT,ytMainVideoEntity:UrT};var yT8,LR8,u$,Bal,Md5,nGl,FRb,Dn7,EGp;yT8=function(A,t){this.JSC$12959_wrapped=A;this.JSC$12959_encoderRegistry=t;this.changedKeys={}};
LR8=function(A,t){return vGi(A.JSC$12959_encoderRegistry,t.version).decode(t.data,t.key)};
_.pNS=function(A,t,f){return A.JSC$12959_wrapped.objectStore("EntityStore").get(t).then(function(X){if(X){if(f&&X.entityType!==f)throw Error("Kf");return LR8(A,X)}})};
u$=function(A,t,f){return f?(f=f.map(function(X){return _.pNS(A,X,t)}),Aq.all(f)):A.JSC$12959_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(t)).then(function(X){return X.map(function(Q){return LR8(A,Q)})})};
_.czu=function(A,t,f){var X=wXx(t),Q=vGi(A.JSC$12959_encoderRegistry,1),q=Object.assign({},t);return A.JSC$12959_wrapped.objectStore("EntityStore").get(X).then(function(e){if(e){if(e.entityType!==f)throw Error("Kf");q.entityMetadata||(e=LR8(A,e),q.entityMetadata=e.entityMetadata)}}).then(function(){var e={key:X,
entityType:f,data:Q.encode(q,X),version:1};return Aq.all([A.JSC$12959_wrapped.objectStore("EntityStore").put(e),EGp(A,q,f)])}).then(function(){nGl(A,X,f);
return X})};
Bal=function(A,t){var f=_.tR(t).entityType;return Aq.all([A.JSC$12959_wrapped.objectStore("EntityStore").delete(t),Dn7(A,t)]).then(function(){nGl(A,t,f)})};
Md5=function(A,t,f,X){var Q=vGi(A.JSC$12959_encoderRegistry,1);return _.pNS(A,t,X).then(function(q){if(q){q=xNg(q,f);var e={key:t,entityType:X,data:Q.encode(q,t),version:1};return Aq.all([A.JSC$12959_wrapped.objectStore("EntityStore").put(e),EGp(A,q,X)])}}).then(function(){nGl(A,t,X);
return t})};
nGl=function(A,t,f){var X=A.changedKeys[f];X||(X=new Set,A.changedKeys[f]=X);X.add(t)};
FRb=function(A,t,f){var X=wXx(t);f=uju(f);if(!f)return Aq.resolve([]);f=new f(t);A=A.JSC$12959_wrapped.objectStore("EntityAssociationStore");t=[];f=_.U(f.getAssociations());for(var Q=f.next();!Q.done;Q=f.next())t.push(A.put({parentEntityKey:X,childEntityKey:Q.value}));return Aq.all(t).then(function(q){return q.map(function(e){return e[1]})})};
Dn7=function(A,t){return A.JSC$12959_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(t))};
EGp=function(A,t,f){var X=wXx(t);return Dn7(A,X).then(function(){return FRb(A,t,f)})};var IGT=function(){};
_.R(IGT,fy);IGT.prototype.encodeImpl=function(A){return A};
IGT.prototype.decodeImpl=function(A){if(A instanceof Uint8Array)throw Jz0(0);return A};var Tau=function(){this.cacheMap={};this.cacheMap[0]=new IGT;if(!_.M("aes_pes_encoder_killswitch")){var A=this.cacheMap;try{var t=_.F_();var f=lQb(t);var X=new Xj(new CGk(f),new hDw(f))}catch(Q){throw A=Q instanceof Error?new Up("KEY_CREATION_FAILED",{originalMessage:Q.message}):new Up("KEY_CREATION_FAILED"),_.HQ(A),A;}A[1]=X}},vGi=function(A,t){t=t===void 0?0:t;
A=A.cacheMap[t];if(!A)throw t=new Up("INVALID_ENCODER_VERSION",{encoderVersion:t}),_.HQ(t),t;return A};var G$=function(A,t){_.DA.call(this);this.token=A;this.JSC$12973_encoderRegistry=t;this.observers=[];A=new _.Xb.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.F_());A.onmessage=this.JSC$12973_handleMessage.bind(this);this.channel=A};
_.R(G$,_.DA);_.N_=function(A,t,f){var X,Q,q,e;return _.l(function(G){if(G.nextAddress==1)return G.yield(XR5(A.token),2);if(G.nextAddress!=3)return X=G.yieldResult,G.yield(_.eC(X,["EntityStore","EntityAssociationStore"],t,function(N){Q=new yT8(N,A.JSC$12973_encoderRegistry);return f(Q)}),3);
q=G.yieldResult;Q&&(e=Q.changedKeys,Object.keys(e).length>0&&(A.channel.postMessage(e),xnC(A,e)));return G.return(q)})};
G$.prototype.observe=function(A){var t=this;this.observers.push(A);return function(){var f=t.observers.indexOf(A);f>=0&&t.observers.splice(f,1)}};
var c$g=function(A){var t;return _.l(function(f){if(f.nextAddress==1)return f.yield(_.N_(A,{mode:"readonly",enableRetries:!0},function(X){return X.JSC$12959_wrapped.objectStore("EntityStore").getAll()}),2);
t=f.yieldResult;return f.return(Promise.all(t.filter(function(X){return!!X}).map(function(X){var Q,q;
return _.l(function(e){if(e.nextAddress==1){Q=X.key;q=X.entityType;var G=e.yield;var N=WRK(vGi(A.JSC$12973_encoderRegistry,X.version),X.data,X.key);return G.call(e,N,2)}return e.return({key:Q,entityType:q,data:e.yieldResult})})})))})};
G$.prototype.JSC$12973_handleMessage=function(A){xnC(this,A.data)};
var xnC=function(A,t){A=_.U(A.observers);for(var f=A.next();!f.done;f=A.next())f=f.value,f(t)};
G$.prototype.disposeInternal=function(){this.channel.close()};
var zoT;var Q2,Yzb,Vdg;Q2={};_.jQk=(Q2.mainVideoEntity="mainVideoEntityActionMetadata",Q2.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Q2.musicTrack="musicTrackEntityActionMetadata",Q2.musicPlaylist="musicPlaylistEntityActionMetadata",Q2);Yzb=new _.eh("DOWNLOADS_ENTITY_TYPE_MAP");_.M_=_.QQ("","downloadsPageViewConfigurationEntity");Vdg=_.QQ("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.BxT=_.QQ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.QQ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.QQ("SMART_DOWNLOADS_ENABLED","settingEntity");_.QQ("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var byp=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var nxl=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var V9f={isLeaderTab:!0};var UXp={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var qr=window,Dt=qr.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",JBg=qr.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||IC,NNx=qr.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Uj,QJT=qr.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||X$8,tMp=qr.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||Tfp,lJq=qr.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Cj8;var qlb;VQ({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 mRs=uWs(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(A){return A}}}),v$b=uWs(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(A){return A}}}),iRp=new Map;var WUp=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],CwT;var Z$f=function(A){return _.r0({type:"SET_EPHEMERAL_ACTION",payload:A})};var oGT={ephemeralAction:null};var dnl=Df({ephemeralAction:function(A,t){A=A===void 0?oGT.ephemeralAction:A;switch(t.type){case "SET_EPHEMERAL_ACTION":return t.payload;default:return A}}});var Sz7=function(A){return _.r0({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:A})};var $nk={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var H$p={sharedUi:$nk,a11y:oGT,entities:{}},b2b={sharedUi:function(A,t){A=A===void 0?$nk:A;switch(t.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},A,{animatedThumbnailEnabled:t.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},A,{inlinePreviewEnabled:t.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},A,{currentPageType:t.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},A,{currentPageSubType:t.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},A,{persistentPanelVisible:t.payload});default:return A}},
a11y:dnl,entities:kfx};var nos={playlistId:"",inviteLinkURL:""};var aGw={continuationCommand:{}};var Slx=Df({continuationCommand:function(A,t){A=A===void 0?aGw.continuationCommand:A;switch(t.type){case "SET_CONTINUATION_COMMAND":return t.payload.continuationCommand;default:return A}}});var FU5={currentFormId:"",commandsMap:{}};var $Rb=Df({isLeaderTab:function(A,t){A=A===void 0?V9f.isLeaderTab:A;switch(t.type){case "SET_IS_LEADER_TAB":var f,X;return(X=t==null?void 0:(f=t.payload)==null?void 0:f.isLeaderTab)!=null?X:A;default:return A}}});var gGE;_.KRp=function(A){return _.r0({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:A}})};
gGE=function(A){return _.r0({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:A}})};var Jz={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var sHb=Df({isDesktopSmallWidth:function(A,t){A=A===void 0?Jz.isDesktopSmallWidth:A;switch(t.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return t.payload.isDesktopSmallWidth;default:return A}},
isShortsActive:function(A,t){A=A===void 0?Jz.isShortsActive:A;switch(t.type){case "SET_IS_SHORTS_ACTIVE":return t.payload.isShortsActive;default:return A}},
isWatchWhileMode:function(A,t){A=A===void 0?Jz.isWatchWhileMode:A;switch(t.type){case "SET_IS_WATCH_WHILE_MODE":return t.payload.isWatchWhileMode;default:return A}},
playerState:function(A,t){A=A===void 0?Jz.playerState:A;switch(t.type){case "SET_PLAYER_STATE":return t.payload.playerState;default:return A}},
isFullscreen:function(A,t){A=A===void 0?Jz.isFullscreen:A;switch(t.type){case "SET_IS_FULLSCREEN":return t.payload.isFullscreen;default:return A}},
isSmallScreenSqueezeback:function(A,t){A=A===void 0?Jz.isSmallScreenSqueezeback:A;switch(t.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return t.payload.isSmallScreenSqueezeback;default:return A}},
isShortsPipActive:function(A,t){A=A===void 0?Jz.isShortsPipActive:A;switch(t.type){case "SET_IS_SHORTS_PIP_ACTIVE":return t.payload.isShortsPipActive;default:return A}},
isPlaybackStarted:function(A,t){A=A===void 0?Jz.isPlaybackStarted:A;switch(t.type){case "SET_IS_PLAYBACK_STARTED":return t.payload.isPlaybackStarted;default:return A}}});var xR5={currentMode:"canvas-hidden"};var ysu=function(){return function(A){return function(t){var f=A(t);_.kJ(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[t],!0);return f}}};var wN8,DEu;wN8=new _.Qc;_.re=new _.eh("WATCH_PLAYER_PROMISE_TOKEN");_.sQ7=new _.Qc;_.kyi=new _.eh("SHORTS_PLAYER_PROMISE_TOKEN");DEu=new _.eh("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var vyx=function(){return function(A){return function(t){t.type==="ENTITY_LOADED"&&_.Px().resolve(_.re).then(function(f){var X;(X=f.dispatchReduxAction)==null||X.call(f,t)});
return A(t)}}};var rTC={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var HRs=Df({additionalContext:function(A,t){A=A===void 0?rTC.additionalContext:A;switch(t.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var f;return(f=t.payload)!=null?f:"";default:return A}},
impersonatedChannelUrl:function(A,t){A=A===void 0?rTC.impersonatedChannelUrl:A;switch(t.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var f;return(f=t.payload)!=null?f:"";default:return A}},
selectedVideoIds:function(A,t){A=A===void 0?rTC.selectedVideoIds:A;switch(t.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var f={};return Object.assign({},A,(f[t.payload]=!0,f));case "VIDEO_UNSELECTED":return t=t.payload,A=Object.assign({},A),delete A[t],A;default:return A}}});var AnC={parentClickTrackingParams:""};var a0x=Df({parentClickTrackingParams:function(A,t){A=A===void 0?AnC.parentClickTrackingParams:A;switch(t.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return t.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return A}}});var tBE=function(A){return _.r0({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:A})},fZk=function(A){return _.r0({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:A})};var Xyi={stepStates:{}};var KU0=Df({stepStates:function(A,t){A=A===void 0?Xyi.stepStates:A;switch(t.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var f=A,X=t.payload,Q,q,e;A={};t={selectionStates:Object.assign({},(e=(Q=f[X.stepId])==null?void 0:Q.selectionStates)!=null?e:{},(A[X.token]={isSelected:X.isSelected},A)),userQuery:(q=f[X.stepId])==null?void 0:q.userQuery};Q={};return Object.assign({},f,(Q[X.stepId]=t,Q));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Q=A,q=t.payload,e=
{selectionStates:Object.assign({},(X=(f=Q[q.stepId])==null?void 0:f.selectionStates)!=null?X:{}),userQuery:{userQuery:q.userQuery,token:q.userQueryToken}},f={},Object.assign({},Q,(f[q.stepId]=e,f));default:return A}}});var QZp,qkE,Usl;QZp=function(A){return _.r0({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:A})};
qkE=function(A){return _.r0({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:A})};
_.bg=function(A){return _.r0({type:"SET_CURRENT_PAGE_TYPE",payload:A})};
_.Jnl=function(A){return _.r0({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:A})};
Usl=function(A){return _.r0({type:"SET_CHIP_BAR_IS_STICKY",payload:A})};var Ylx={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"};_.eep=function(A){return _.r0({type:"SET_PLAYER_STATE",payload:{playerState:A}})};var Ud={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:ZRu(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var gob=Df({isTheaterMode:function(A,t){A=A===void 0?ZRu():A;switch(t.type){case "SET_IS_THEATER_MODE":return t.payload.isTheaterMode;default:return A}},
isWatchActive:function(A,t){A=A===void 0?Ud.isWatchActive:A;switch(t.type){case "SET_IS_WATCH_ACTIVE":return t.payload.isWatchActive;default:return A}},
isLearningJourneyActive:function(A,t){A=A===void 0?Ud.isLearningJourneyActive:A;switch(t.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return t.payload.isLearningJourneyActive;default:return A}},
isWatchFullscreen:function(A,t){A=A===void 0?Ud.isWatchFullscreen:A;switch(t.type){case "SET_IS_WATCH_FULLSCREEN":return t.payload.isWatchFullscreen;default:return A}},
isWatchNarrowWidth:function(A,t){A=A===void 0?Ud.isWatchNarrowWidth:A;switch(t.type){case "SET_IS_WATCH_NARROW_WIDTH":return t.payload.isWatchNarrowWidth;default:return A}},
isSwatcherooActive:function(A,t){A=A===void 0?Ud.isSwatcherooActive:A;switch(t.type){case "SET_IS_SWATCHEROO_ACTIVE":return t.payload.isSwatcherooActive;default:return A}},
isWatchRetroMode:function(A,t){A=A===void 0?Ud.isWatchRetroMode:A;switch(t.type){case "SET_IS_WATCH_RETRO_MODE":return t.payload.isWatchRetroMode;default:return A}},
isLiveChatCollapsed:function(A,t){A=A===void 0?Ud.isLiveChatCollapsed:A;switch(t.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return t.payload.isLiveChatCollapsed;default:return A}},
openEngagementPanels:function(A,t){A=A===void 0?Ud.openEngagementPanels:A;var f=[].concat(_.YV(A));switch(t.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return f.push(t.payload.panelToAdd),f;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return f.splice(f.indexOf(t.payload.panelToRemove),1),f;default:return A}},
playerState:function(A,t){A=A===void 0?Ud.playerState:A;switch(t.type){case "SET_PLAYER_STATE":return t.payload.playerState;default:return A}},
watchScrollTop:function(A,t){A=A===void 0?Ud.watchScrollTop:A;switch(t.type){case "SET_WATCH_SCROLL_TOP":return t.payload.watchScrollTop;default:return A}},
watchWindowSize:function(A,t){A=A===void 0?Ud.watchWindowSize:A;switch(t.type){case "SET_WATCH_WINDOW_SIZE":return t.payload.watchWindowSize;default:return A}}});var G9T={surveyFeedbackData:{feedbackTokens:[]}};var w4s=Df({surveyFeedbackData:function(A,t){A=A===void 0?G9T.surveyFeedbackData:A;switch(t.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return t.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},A,t.payload);default:return A}}});var oou={};var p7q=void 0;_.M("web_enable_redux_store_on_demand")||(p7q=Lux());var lZf=function(A,t,f){var X=this;this.listId=A;this.JSC$13117_updateCallback=t;this.isOfflineVideoCallback=f;_.$I().subscribe(function(){X.handleUpdate()})};
lZf.prototype.getPlaylistData=function(){var A=_.$I().getState().entities;if(this.listId&&this.listId!=="PPSV"){var t=wRx(A,this.listId,!0),f=_.QQ(this.listId,"mainPlaylistEntity"),X,Q;A=A==null?void 0:(X=A.mainPlaylistEntity)==null?void 0:(Q=X[f])==null?void 0:Q.title;return Eyq(t,A,this.listId)}t=_.Drp(bx5(A));A=_.Drp(_.CZ(A));A=t.concat(A);return Eyq(A)};
lZf.prototype.getPlaylistId=function(){return this.listId};
lZf.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13117_updateCallback(this.listId,this.getPlaylistData(),{})};var ed=function(A,t,f,X){X=X===void 0?[]:X;this.JSC$13120_playlistNetworkManager=A;this.listId=t;this.JSC$13120_updateCallback=f;this.videoIds=X;this.pendingUpdates=[];this.currentIndex=0};
ed.prototype.JSC$13120_setCurrentIndex=function(A){this.currentIndex=A};
ed.prototype.setListId=function(A){this.listId=A};
var NZf=function(A,t){A.currentCreateRequest&&A.currentCreateRequest.cancel(t);A.currentUpdateRequest&&A.currentUpdateRequest.cancel(t);A.currentRefreshRequest&&A.currentRefreshRequest.cancel(t)};
ed.prototype.delete=function(){NZf(this,"PROXY DELETED")};
ed.prototype.addVideos=function(A,t,f){var X=this;f!==void 0?this.videoIds.splice.apply(this.videoIds,[f,0].concat(_.YV(A))):this.videoIds.push.apply(this.videoIds,_.YV(A));this.listId||this.currentCreateRequest?(A.forEach(function(Q,q){Q={addedVideoId:Q,action:"ACTION_ADD_VIDEO"};f&&(Q.addedVideoPosition=f+q);X.pendingUpdates.push(Q)}),GT(this)):usl(this,t.onCreateListCommand)};
var zeK=function(A,t,f,X,Q){Yxs(A.videoIds,t,f);t>A.currentIndex&&f<=A.currentIndex?A.JSC$13120_setCurrentIndex(A.currentIndex+1):t===A.currentIndex?A.JSC$13120_setCurrentIndex(f):t<A.currentIndex&&f>=A.currentIndex&&A.JSC$13120_setCurrentIndex(A.currentIndex-1);A.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:X,movedSetVideoIdPredecessor:Q});GT(A)},usl=function(A,t){NZf(A,"OBSOLETE");
A.currentCreateRequest=PNi(A.JSC$13120_playlistNetworkManager,t,A.videoIds);_.FZ(A.currentCreateRequest,function(){A.currentCreateRequest=void 0}).then(function(f){A.setListId(f.playlistId);
A.pendingUpdates.length>0?GT(A):TZC(A)})},GT=function(A){if(A.pendingUpdates.length!==0&&(A.currentRefreshRequest&&A.currentRefreshRequest.cancel("OBSOLETE"),!A.currentUpdateRequest&&!A.currentCreateRequest)){var t=A.pendingUpdates.splice(0,A.pendingUpdates.length);
A.currentUpdateRequest=A.JSC$13120_playlistNetworkManager.updatePlaylist(A.listId,t);_.FZ(A.currentUpdateRequest,function(){A.currentUpdateRequest=void 0}).then(function(){A.pendingUpdates.length>0?GT(A):TZC(A)}).thenCatch(function(){A.pendingUpdates.unshift.apply(A.pendingUpdates,_.YV(t))})}},TZC=function(A){A.currentRefreshRequest=_.i7p(A.JSC$13120_playlistNetworkManager,A.listId,A.currentIndex,A.videoIds[A.currentIndex]);
_.FZ(A.currentRefreshRequest,function(){A.currentRefreshRequest=void 0}).then(function(t){A.JSC$13120_updateCallback(t.playlistId,t.playlistPanelRenderer,t.autoplayRenderer)})};
ed.prototype.size=function(){return this.videoIds.length};var O7w=function(A,t,f,X){X=X===void 0?[]:X;ed.call(this,A,t,f,X);this.JSC$13120_playlistNetworkManager=A;this.listId=t;this.JSC$13120_updateCallback=f;this.videoIds=X};
_.R(O7w,ed);_.lE=function(A,t,f,X,Q,q,e){Q=Q===void 0?[]:Q;e=e===void 0?zW:e;ed.call(this,A,t,f,Q);this.JSC$13120_playlistNetworkManager=A;this.listId=t;this.JSC$13120_updateCallback=f;this.onAuthChange=X;this.videoIds=Q;this.storage=q;this.cookieReader=e;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.sX(_.a6,this.checkLoggedInStatusChange.bind(this),1E3)};
_.R(_.lE,ed);_.J=_.lE.prototype;_.J.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.sX(_.a6,this.checkLoggedInStatusChange.bind(this),1E3)};
_.J.JSC$13120_setCurrentIndex=function(A){ed.prototype.JSC$13120_setCurrentIndex.call(this,A);this.store()};
_.J.delete=function(){_.a6.cancelJob(this.queueSapisIdJob);ed.prototype.delete.call(this)};
_.J.setListId=function(A){ed.prototype.setListId.call(this,A);this.store()};
_.J.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var cn8=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],BZp=["playerResponse","videoDetails"],MBT=["response","currentVideoEndpoint","watchEndpoint","videoId"],CNK=["response","currentVideoEndpoint","watchEndpoint","playlistId"],hep=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Rep=["response","contents","twoColumnWatchNextResults","playlist","playlist"],msT=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
b7b=["response","contents","twoColumnWatchNextResults"];var Nr={},xTs=(Nr.WEB_UNPLUGGED="^unplugged/",Nr.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Nr.WEB_UNPLUGGED_OPS="^unplugged/",Nr.WEB_UNPLUGGED_PUBLIC="^unplugged/",Nr.WEB_CREATOR="^creator/",Nr.WEB_KIDS="^kids/",Nr.WEB_EXPERIMENTS="^experiments/",Nr.WEB_MUSIC="^music/",Nr.WEB_REMIX="^music/",Nr.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Nr.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Nr);var eQ5,PNi;eQ5=function(A,t){this.networkManager=A;this.innertubeTransportService=t};
PNi=function(A,t,f){if(!_.C(t,_.u1))return _.OX(Error("Of"));_.C(t,_.u1).videoIds=f;f={create_playlist_title:_.e5("QUEUE",void 0,"Queue")};return Fux(_.jl(A.innertubeTransportService,t,f),nyx)};
_.i7p=function(A,t,f,X){t={videoId:X,playlistId:t,playlistIndex:f};f=_.HE(hbC);return Fux(_.uE(A.innertubeTransportService,t,f),Il5)};
eQ5.prototype.updatePlaylist=function(A,t){return Fux(_.jl(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:A,actions:t}}),DTq)};var WBC=function(A){this.storage=A},ynE;
WBC.prototype.store=function(A,t){t=t===void 0?0:t;if(this.storage&&A.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",A),this.storage.set("TLPQindex",String(t)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(f){}};
WBC.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
WBC.prototype.getPlaylistId=function(){if(!this.storage)return null;var A=null;try{A=this.storage.get("TLPQplaylist")}catch(t){}return A};var Z2x=["navigationEndpoint","watchEndpoint","videoId"],Vkx=["nextButtonVideo","watchEndpoint","videoId"];_.TD=new _.eh("NETWORK_TOKEN");_.HO=new _.eh("PAGE_TOKEN");_.zT=new _.eh("PLAYLIST_TOKEN");var v98;v98=new _.eh("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.iY=new _.eh("INNERTUBE_TRANSPORT_TOKEN");var LBi,PR,E9k,n9T,FBi,IZk;LBi=new Set(["ci","cr","carml"]);PR=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13167_parkedJobs=new Map;this.parkedProcessors=new Map};
_.TT=function(){PR.instance||(PR.instance=new PR);return PR.instance};
PR.prototype.onAny=function(A){return _.pyS(this,A,2)};
PR.prototype.parkOrScheduleJob=function(A,t,f,X,Q){_.iE(this,f)?_.m_().addJob(A,t,X):(Q&&(A=E9k(A),n9T(this,A,t,f,Q)),Q=this.JSC$13167_parkedJobs.get(f),Q||(this.JSC$13167_parkedJobs.set(f,[]),Q=this.JSC$13167_parkedJobs.get(f)),Q.push({job:A,priority:t,delay:X}))};
PR.prototype.addListener=function(A,t,f){f&&(t=E9k(t),n9T(this,t,0,A,f));f=this.parkedProcessors.get(A);f||(this.parkedProcessors.set(A,[]),f=this.parkedProcessors.get(A));f.push(t)};
PR.prototype.processSignal=function(A){if(!_.iE(this,A)){this.inProgressSignals.add(A);var t=this.JSC$13167_parkedJobs.get(A);if(t){t=_.U(t);for(var f=t.next();!f.done;f=t.next())f=f.value,_.m_().addJob(f.job,f.priority,f.delay);this.JSC$13167_parkedJobs.delete(A)}if(t=this.parkedProcessors.get(A)){t=_.U(t);for(f=t.next();!f.done;f=t.next())f=f.value,f();this.parkedProcessors.delete(A)}this.signals.push(A);this.inProgressSignals.delete(A)}};
_.iE=function(A,t){return LBi.has(t)||_.Ka("IS_HOMEPAGE_COLD")||_.Ka("IS_RESULTS_PAGE_COLD")||_.Ka("IS_WATCH_PAGE_COLD")?A.signals.indexOf(t)>=0:!0};
E9k=function(A){var t=!1;return function(){t||(t=!0,A())}};
n9T=function(A,t,f,X,Q){if(DsC.has(X))_.m_().addJob(t,f,Q);else{var q=A.compoundSignals.get(X);q&&_.m_().addJob(function(){_.iE(A,X)||(q.isTimeoutConditionSatisfied?_.m_().addJob(t,f):q.timeoutConditionObservers.push(function(){_.m_().addJob(t,f)}))},f,Q)}};
_.pyS=function(A,t,f){if(t.length>1){var X=[],Q=Object.create(null);t=_.U(t);for(var q=t.next();!q.done;q=t.next())q=q.value,Q[q]||(X.push(q),Q[q]=!0);t=X}if(t.length===1)return t[0];q=t;X="";Q=f===2?"|":"&";q.sort();q=_.U(q);for(var e=q.next();!e.done;e=q.next())X+=e.value+Q;if(!A.compoundSignals.get(X)){Q=0;q=[];e=_.U(t);for(var G=e.next();!G.done;G=e.next())G=G.value,Q++,_.iE(A,G)||q.push(G);(f=f===2)&&Q>q.length||!f&&!q.length?A.signals.push(X):FBi(A,X,f,t,q)}return X};
FBi=function(A,t,f,X,Q){var q=Q.length,e=function(){f||--q===0?A.processSignal(t):IZk(A,t)};
Q=_.U(Q);for(var G=Q.next();!G.done;G=Q.next())A.addListener(G.value,e);A.compoundSignals.set(t,{signals:X,isOnAny:f,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});IZk(A,t)};
IZk=function(A,t){if(!_.iE(A,t)){var f=A.compoundSignals.get(t);if(f&&!f.isTimeoutConditionSatisfied){for(var X=!1,Q=0,q=0,e=_.U(f.signals),G=e.next();!G.done;G=e.next()){var N=G.value;G=!_.iE(A,N);DsC.has(N)?X=!0:(N=A.compoundSignals.get(N))?G&&!N.isTimeoutConditionSatisfied&&(q++,f.isInitialized||N.timeoutConditionObservers.push(function(){IZk(A,t)})):G&&Q++}f.isInitialized=!0;
f.isOnAny?X&&(f.isTimeoutConditionSatisfied=!0):Q===0&&q===0&&(f.isTimeoutConditionSatisfied=!0);if(f.isTimeoutConditionSatisfied)for(f=_.U(f.timeoutConditionObservers),X=f.next();!X.done;X=f.next())X=X.value,X()}}};
PR.prototype.processSignal=PR.prototype.processSignal;PR.prototype.parkOrScheduleJob=PR.prototype.parkOrScheduleJob;PR.prototype.onAny=PR.prototype.onAny;_.zm("ytsignals.getInstance",_.TT);PR.prototype.onAny=PR.prototype.onAny;PR.prototype.parkOrScheduleJob=PR.prototype.parkOrScheduleJob;PR.prototype.processSignal=PR.prototype.processSignal;var DsC=new Set(["eop","eocs","dl","pcl"]);_.DS=new _.eh("MINIPLAYER_SERVICE");var Od,xsp,jZC;Od=function(A,t,f){var X=_.XA.getInstance();if(!ynE){var Q=new o7b;var q=void 0,e=_.ah("ID_TOKEN");e&&Q.isAvailable()&&(q=new ZU(Q,"yt-queue"+e));ynE=new WBC(q)}Q=ynE;q=_.TT();this.JSC$13174_actionRouter=X;this.JSC$13174_pageManager=A;this.playlistManager=t;this.JSC$13174_playlistNetworkManager=f;this.storage=Q;this.signals=q;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.cR=function(){if(!xsp){var A=_.Px(),t=A.resolve(_.z7(_.HO)),f=A.resolve(_.z7(_.TD)),X=A.resolve(_.z7(_.zT));A=A.resolve(_.iY);xsp=new Od(t,X,new eQ5(f,A))}return xsp};
jZC=function(A,t,f){if(f){var X;if(((X=A.responsePlaylistData)==null?void 0:X.playlistId)!==f)return}A.responsePlaylistData&&(f=alu(t,A.responsePlaylistData),A.responsePlaylistData=(0,_.VG.unsafeClone)(A.responsePlaylistData),gyx(A.responsePlaylistData,f));f=A.temporaryItems.findIndex(function(Q){return Q.videoId===t});
f>-1&&A.temporaryItems.splice(f,1);_.BR(A,_.Mr(A,A.response?A.response.autoplayRenderer:void 0))};
_.Ykl=function(A,t){if(A.responsePlaylistData){var f=Ku5(t,A.responsePlaylistData);gyx(A.responsePlaylistData,f);if(A.queueProxy){var X=A.queueProxy;f<0||(X.videoIds.splice(f,1),f<X.currentIndex&&X.JSC$13120_setCurrentIndex(X.currentIndex-1),X.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:t}),GT(X))}}_.BR(A,_.Mr(A,A.response?A.response.autoplayRenderer:void 0))};
Od.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.BR(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Od.prototype.setPlaylistData=function(A,t,f){this.temporaryItems=[];this.listId=A;this.responsePlaylistData=t;_.BR(this,_.Mr(this,f))};
var VBC=function(A){return(A==null?0:A.playlistId)?A.playlistId:"PPSV"},Z7i=function(A){return A&&A.playlistId?A.playlistId==="PPSV"?!0:Kdq(_.$I().getState().entities,A.playlistId):!1};
Od.prototype.isPlayingOfflineVideo=function(){return this.response?Z7i(this.response):!1};
Od.prototype.closeMiniplayer=function(A){var t=this.queueProxy&&this.queueProxy.size()<=1,f=_.Px().resolve(_.DS);if(!this.queueProxy||t)this.queueProxy&&this.clearQueue(),f.close(!0);else{f.pipController.getWindow()&&window.focus();t=this.responsePlaylistData;var X=this.temporaryItems.length+(t&&t.contents?t.contents.length:0);t=_.e5("QUEUE_CLEARED_UNPLURALIZED")||_.Gt("QUEUE_CLEARED",X);t=_.KZ(t);f=_.e5("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");X=_.e5("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Gt("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",X);var Q=_.e5("MINIPLAYER_CLOSE",void 0,"Close"),q=_.e5("CANCEL",void 0,"Cancel");_.Sh(this.JSC$13174_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.oC(f),dialogMessages:[_.oC(X)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.oC(Q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
t]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.oC(q)}}}}}}],A)}};
_.Mr=function(A,t){var f={},X=A.response;f.autoplayRenderer=t;if(!A.responsePlaylistData&&!A.temporaryItems.length)return!X||!X.hasRelatedVideoData&&_.M("kevlar_prefetch_data_augments_network_data")||(f.playerData={rvs:X.relatedVideoArgs,endScreenRenderer:X.endScreenRenderer}),f;f.playerData={};if(A.index===void 0)return _.HQ(Error("Qf")),f;f.panel=A.responsePlaylistData?(0,_.VG.unsafeClone)(A.responsePlaylistData):{titleText:_.oC(_.e5("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
t=f.panel;if(t.contents)for(var Q=_.U(A.temporaryItems),q=Q.next();!q.done;q=Q.next())t.contents.push({playlistPanelVideoRenderer:q.value});A.queueProxy&&X&&X.playingVideo&&X.playingVideoId&&!H2s(X.playingVideoId,f.panel)&&(t=X.playingVideo,Q=f.panel,q=A.index,Q.contents&&Q.contents.splice(q===void 0?0:q,0,{playlistPanelVideoRenderer:t}));X&&X.playingVideoId&&(t=A.index,Q=f.panel,t=!Q.contents||t>=Q.contents.length?void 0:Q.contents[t].playlistPanelVideoRenderer,t&&t.videoId===X.playingVideoId||(t=
alu(X.playingVideoId,f.panel),A.index=t!==-1?t:A.index?A.index-1:0));t=$Tz(A.index+1,f.panel);Q=void 0;A.index>0&&(Q=$Tz(A.index-1,f.panel));if(Q||t)f.autoplayRenderer=oyb(t,Q,f.autoplayRenderer);!t&&(X==null?0:X.relatedVideoArgs)&&(f.playerData.rvs=X.relatedVideoArgs);X=X?X.playlistIndexOffset:0;A.queueProxy?kBb(f.panel,A.index,X,SWb,!0,!0,!0):kBb(f.panel,A.index,X);f.playerData.playlistPanelRenderer=f.panel;return f};
Od.prototype.openToast=function(A){_.Px().resolve(_.DS).openToast(A,_.e5("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Od.prototype.isMiniplayerActive=function(){return _.Px().resolve(_.DS).isMiniplayerActive()};
_.BR=function(A,t){A.playlistManager.setAutoplayRenderer(t.autoplayRenderer||null);A.playlistManager.setPlaylistData(t.panel||null);t.playerData&&A.playlistManager.setPlayerPlaybackControlData(t.playerData)};var Akx="#";var o9C={},dsC={},SkS={},$sp={},H7C={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:(o9C.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",o9C),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:(dsC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",dsC),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:(SkS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",SkS),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:($sp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",$sp),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 xVb=[{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:H7C},{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:H7C}}];var W6g;_.Xc=[[["OXJ2OXl0dWlneG1ia2luZCM=","dmtibzhrZjlmbTEydmFsdWUj"],"a2J6aXR4ZDRmOWd5QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQj"]];
W6g=[[["YjBoamR4ZjZraHR0cHJpbWFyeSM=",null,null],[null,["cTUwOWVjMjhiN3pieXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","aHBvNm9wNjdtZW45c3R5bGUtc2NvcGUj"],null],["YzYxbDNpY3FxZnV1bWFzdGhlYWQtYWQj",["bHZtaDBiZHVmYXJueXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM="],null],[null,["bTRhM3FqdHEyNjZreXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM=","MXl6NTFwcmhtMWg0c3R5bGUtc2NvcGUj"],null],[null,["bHE1NXk2dWQzcXpxeXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","NDNhZmRkbXpqaDUwc3R5bGUtc2NvcGUj"],null],[null,["ajlpbmc4MXlmcjlqeXRkLWFkLXNsb3QtcmVuZGVyZXIj"],
null]],[["amdyM2pyM3k0dDIwcGxheWVyLWFkcyM=",null,null]]];_.fp=["eDZzaDdlM3lldWh1Z2xvYmFsQ2FsbGJhY2tzIw==","NjE3Z2VxaWtyaGN5b25BYm5vcm1hbGl0eURldGVjdGVkIw==","Zm16ZG44OHBsMWkzb25BZFNraXAj","cjMwd3AzdDc3eDMzcmF3X3BsYXllcl9yZXNwb25zZSM=","bjl3N2o1dDM3MW9tYWRTbG90cyM="];_.Cy="eDZzaDdlM3lldWh1Z2xvYmFsQ2FsbGJhY2tzIw== NjE3Z2VxaWtyaGN5b25BYm5vcm1hbGl0eURldGVjdGVkIw== Zm16ZG44OHBsMWkzb25BZFNraXAj cjMwd3AzdDc3eDMzcmF3X3BsYXllcl9yZXNwb25zZSM= NXRrMmVxOGEwNHBjd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIw== bnowZ3hnNGliNGJyYWJfc2FfZWYj bjl3N2o1dDM3MW9tYWRTbG90cyM=".split(" ");var hz;hz=function(A,t,f){this.ehl=A;this.lhl=t;this.btq=f};
_.gPu=[new hz("b.f_",!1,0),new hz("j.s_",!1,2),new hz("r.s_",!1,4),new hz("e.h_",!1,6),new hz("i.s_",!0,8),new hz("s.t_",!1,10),new hz("p.h_",!1,12),new hz("s.i_",!1,14),new hz("f.i_",!1,16),new hz("a.b_",!1,18),new hz("a.o_",!1),new hz("g.o_",!1,22),new hz("p.i_",!1,24),new hz("p.m_",!1),new hz("n.k_",!0,20),new hz("i.f_",!1),new hz("a.s_",!0),new hz("m.c_",!1),new hz("n.h_",!1,26),new hz("o.p_",!1),new hz("m.p_",!0,28),new hz("o.a_",!1),new hz("d.p_",!1),new hz("e.i_",!1)].reduce(function(A,t){A[t.ehl]=
t;return A},{});var aZK=function(){};
aZK.prototype.flush=function(A,t){A=A===void 0?[]:A;t=t===void 0?!1:t;if(_.M("enable_client_streamz_web")){A=_.U(A);for(var f=A.next();!f.done;f=A.next())f=OFp(f.value),this.rootSpec&&_.bi(f,2,this.rootSpec),f={serializedIncrementBatch:_.E2(f.JSC$9690_serializeBinary())},_.SY("streamzIncremented",f,{sendIsolatedPayload:t})}};
var q3p=function(){};
_.R(q3p,aZK);var KB7=function(A){var t=new lMi;var f=new U4K;f=_.Dg(f,1,"botguard");A=_.Dg(f,2,A);this.rootSpec=_.Wu(t,1,NDl,A)};
_.R(KB7,aZK);var rF,g9f=new Map;var pg0,UV0,ims,lip,zkT,mV5,nPT,hkq;pg0=2;UV0=2;ims=2;lip=2;zkT=2;mV5=2;nPT=2;hkq=new Nbk;var sZK,k9f;sZK=function(){this.ongoingFlowNonces=new Map};
_.JL=function(){k9f||(k9f=new sZK);return k9f};
_.qv=function(A,t,f){return{eventType:{flowEventNamespace:A,flowEventType:t},metadata:f,statusCode:void 0,csn:void 0,can:void 0}};
_.sab=function(A,t){var f=_.JL(),X=rnT(f,t,!0);f.logFlowEvent(A,t,X,void 0)};
sZK.prototype.logFlowEvent=function(A,t,f,X){t={flowNonce:f||rnT(this,t),flowType:t,flowEventType:A.eventType};A.metadata&&(t.flowMetadata=A.metadata);A.statusCode!==void 0&&(t.flowEventStatus=A.statusCode);A.csn&&(t.csn=A.csn);A.can&&(t.can=A.can);_.SY("flowEvent",t,X)};
var rnT=function(A,t,f){f=f===void 0?!1:f;var X=A.ongoingFlowNonces.get(t);if(!X||f)X=hG(16),A.ongoingFlowNonces.set(t,X);return X};_.AcT=new lsS;var f7u={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:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var RF=function(A,t,f,X,Q,q,e){f=f===void 0?!1:f;X=X===void 0?!1:X;q=q===void 0?_.cR():q;this.hasRun=!1;this.sI4=A;this.zc6=t;this.iqv=f;this.fromHistory=X;this.previousVideoId=Q;this.h1n=q;this.tempData=e;this.q8s=new _.uiC};
_.R(RF,yA);RF.prototype.validate=function(A){return!(!A.data.playerResponse||A.data.page!=="watch"&&A.data.page!=="learning_journey_watch"&&A.data.page!=="shorts"||this.hasRun)};
RF.prototype.handle=function(A){var t=this,f=_.C(A.endpoint,_.ZT),X=_.C(A.endpoint,_.zD);if(_.M("kevlar_continue_playback_without_player_response")&&(f==null?0:f.videoId)&&this.previousVideoId&&(f==null?void 0:f.videoId)===this.previousVideoId&&(f==null?0:f.continuePlayback)&&!this.fromHistory)this.sI4.resolve();else{var Q={};f?Q.watch_endpoint=f:X&&(Q.watch_endpoint=X,X.endTimeSeconds&&(Q.end=X.endTimeSeconds));A.data.page==="watch"?(A.data.filler||this.iqv||(_.yg("cfg"),_.XA.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Q,tbT(this,A.endpoint)),_.M("enable_masthead_quartile_ping_fix")&&Object.assign(Q,fbT(this)),Object.assign(Q,void 0),A.data.forceExternalPlaylist&&(Q.external_list=!0)):A.data.page==="shorts"?_.XA.getInstance().triggerAction("yt-start-loading-shorts"):A.data.page==="learning_journey_watch"&&_.XA.getInstance().triggerAction("yt-start-loading-learning-journey");if(f=this.zc6()){try{f.loadVideoWithPlayerResponse(A.data.playerResponse,Q),f.getPlayerPromise().then(this.sI4.resolve)}catch(q){_.HQ(q),
this.sI4.resolve()}this.hasRun=!0;f.getPlayerPromise().then(function(q){q.addEventListener("onAbnormalityDetected",function(){var e=A.data.playerResponse,G=q.getVideoData().cpn;nPT=0;_.wyp=G;if(G=K6b(e))t.q8s.increment("IN_PLAYER"),_.UF(5),_.M("ab_st_vid_ks")?q.pauseVideo(!0):q.stopVideo(),e.playabilityStatus=Object.assign({},e.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:G}}),e.videoDetails=void 0,_.XA.getInstance().triggerOptionalAction("yt-updated-playability-status",
e.playabilityStatus)})})}else _.K4(Error("Tf"))}};
var tbT=function(A,t){var f=_.C(t,_.ZT);if(t&&f&&f.playlistId&&f.videoId&&(A=A.h1n,A.queueProxy?(A=A.queueProxy,f=A.listId===f.playlistId?A.attributionData.get(f.videoId):void 0):f=void 0,f))return{queue_info:f}},fbT=function(A){var t;
if((t=A.tempData)==null?0:t.adpings)return{adpings:A.tempData.adpings}};var md=function(A,t,f){this.hasRun=!1;this.dX5=A;this.qtz=t;this.pY4=f};
_.R(md,yA);md.prototype.validate=function(A){return!!_.VG.getValueByKeys.apply(null,[A.data].concat(_.YV(b7b)))};
md.prototype.handle=function(A){var t=this;this.dX5.promise.then(function(){var f=A.data;var X=_.VG.getValueByKeys.apply(null,[f].concat(_.YV(cn8))),Q=_.VG.getValueByKeys.apply(null,[f].concat(_.YV(Rep))),q=_.VG.getValueByKeys.apply(null,[f].concat(_.YV(MBT)));var e=(e=_.VG.getValueByKeys.apply(null,[f].concat(_.YV(BZp))))?{videoId:e.videoId,thumbnail:e.thumbnail,title:e.title?_.oC(e.title):void 0,shortBylineText:e.author?_.oC(e.author):void 0}:void 0;var G=void 0;_.M("web_get_playlist_id_from_current_endpoint_ks")||
(G=_.VG.getValueByKeys.apply(null,[f].concat(_.YV(CNK))));var N=_.VG.getValueByKeys.apply(null,[f].concat(_.YV(msT))),z=_.VG.getValueByKeys.apply(null,[f].concat(_.YV(hep))),T=!!N||!!z&&!!z.results&&z.results.length>0,O=0;Q&&Q.currentIndex&&Q.localCurrentIndex&&(O=Q.currentIndex-Q.localCurrentIndex);Q&&Q.playlistId&&(G=Q.playlistId);f={rawResponse:f,autoplayRenderer:X,hasRelatedVideoData:T,playingVideo:e,playingVideoId:q,playlistPanelRenderer:Q,playlistId:G,playlistIndex:Q&&Q.currentIndex,relatedVideoArgs:N,
endScreenRenderer:z,playlistIndexOffset:O};a:{X=t.pY4;Q=t.qtz;X.response=f;if(Z7i(f))X.downloadPlaylistProxy&&X.downloadPlaylistProxy.getPlaylistId()===VBC(f)||(X.downloadPlaylistProxy=new lZf(VBC(f),X.setPlaylistData.bind(X),X.isPlayingOfflineVideo.bind(X))),X.responsePlaylistData=X.downloadPlaylistProxy.getPlaylistData(),X.listId=VBC(f),X.index=0;else if(f.playlistPanelRenderer&&f.playlistId&&f.autoplayRenderer)f.playlistId.startsWith("TLPQ")?X.queueProxy?X.listId===f.playlistId?(X.index=f.playlistIndex,
X.responsePlaylistData=f.playlistPanelRenderer,X.queueProxy.JSC$13120_setCurrentIndex(X.index)):f.playingVideoId&&X.index!==void 0&&Q.clientParams.autoSaveToQueue&&(X.index+=1,X.queueProxy.JSC$13120_setCurrentIndex(X.index),X.queueProxy.addVideos([f.playingVideoId],{},X.index)):(X.queueProxy=new _.lE(X.JSC$13174_playlistNetworkManager,f.playlistId,X.setPlaylistData.bind(X),X.clearQueue.bind(X),_.w7s(f.playlistPanelRenderer),X.storage),X.responsePlaylistData=f.playlistPanelRenderer,X.listId=f.playlistId,
X.index=f.playlistIndex):(X.index=f.playlistIndex,X.listId!==f.playlistId&&X.clearQueue(),X.responsePlaylistData=f.playlistPanelRenderer,X.listId=f.playlistId,X.playlistProxy=new O7w(X.JSC$13174_playlistNetworkManager,f.playlistId,X.setPlaylistData.bind(X),_.w7s(f.playlistPanelRenderer)));else if(!X.queueProxy)X.responsePlaylistData=void 0;else if(f.playingVideoId&&Q.clientParams.autoSaveToQueue){if(X.index===void 0){_.HQ(Error("Pf"));X.clearQueue();break a}X.queueProxy.videoIds.includes(f.playingVideoId)||
(X.index+=1,X.queueProxy.JSC$13120_setCurrentIndex(X.index),X.queueProxy.addVideos([f.playingVideoId],{},X.index))}_.BR(X,_.Mr(X,X.response.autoplayRenderer))}})};var Xc7=function(A,t){t=t===void 0?_.cR():t;dK.call(this);this.zh.push(new md(this.wg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},t));this.zh.push(new RF(this.wg,A,!1,!1));_.M("web_response_commands_chunk_processor")&&this.zh.push(new SN)};
_.R(Xc7,dK);Xc7.prototype.processChunk=function(A){A&&A.data.player===void 0&&this.wg.resolve();dK.prototype.processChunk.call(this,A)};var bE=function(A,t){A=A===void 0?{layer:0}:A;this.hasRun=!1;this.createScreenConfig=A;this.nCV=t};
_.R(bE,yA);bE.prototype.validate=function(A){return!(this.hasRun||!A.endpoint)};
bE.prototype.handle=function(A){var t=_.er(),f,X,Q=(X=_.C((f=A.endpoint)==null?void 0:f.commandMetadata,_.Jl))==null?void 0:X.rootVe;this.nCV&&Q?_.xz(t,Q,this.nCV,this.createScreenConfig):SRS(t,A.endpoint,this.createScreenConfig);this.hasRun=!0};var vR=function(A,t){this.hasRun=!1;this.kOn=A;this.previousVideoId=t};
_.R(vR,yA);vR.prototype.validate=function(A){return _.M("kevlar_continue_playback_without_player_response")&&(A=_.C(A.endpoint,_.ZT),(A==null?0:A.videoId)&&this.previousVideoId&&(A==null?void 0:A.videoId)===this.previousVideoId&&(A==null?0:A.continuePlayback))?!1:this.kOn.kaa===0};
vR.prototype.handle=function(A){_.XA.getInstance().triggerAction("yt-stop-old-player",A.data,!0)};var Q$8=function(A){A=A===void 0?{layer:0}:A;dK.call(this);this.zh.push(new vR(this));this.zh.push(new bE(A));this.zh.push(new or(A))};
_.R(Q$8,dK);var Ly=function(){yA.apply(this,arguments)};
_.R(Ly,yA);Ly.prototype.validate=function(A){return!!A.data.preconnect};
Ly.prototype.handle=function(A){_.Wt("bc");A=_.U(A.data.preconnect);for(var t=A.next();!t.done;t=A.next())t=t.value,(new Image).src=t};var qsi=function(A,t,f,X,Q,q,e){f=f===void 0?{layer:0}:f;q=q===void 0?_.cR():q;dK.call(this);if(X)if(Q){Q=q;this.zh.push(new md(this.wg,t,Q));this.zh.push(new Ly);var G,N;this.zh.push(new RF(this.wg,A,!1,!((G=t.clientParams)==null||!G.fromHistory),(N=t.clientParams)==null?void 0:N.previousVideoId,Q,t.tempData));var z;this.zh.push(new vR(this,(z=t.clientParams)==null?void 0:z.previousVideoId));var T;(T=t.clientParams)!=null&&T.fromHistory||(f.layer||(f=Object.assign({},f,{layer:0})),this.zh.push(new bE(f,
e)),this.zh.push(new or(f)))}else this.zh.push(new md(this.wg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},q)),this.zh.push(new RF(this.wg,A,!1,!1));else this.zh.push(new vR(this)),this.zh.push(new bE(f)),this.zh.push(new or(f));_.M("web_response_commands_chunk_processor")&&X&&this.zh.push(new SN)};
_.R(qsi,dK);qsi.prototype.processChunk=function(A){A&&A.data.player===void 0&&this.wg.resolve();dK.prototype.processChunk.call(this,A)};var Jck=function(){this.hasRun=this.hasRun=!1};
_.R(Jck,yA);Jck.prototype.validate=function(A){return!this.hasRun&&!(!A.data.csn||!A.data.rootVe)};
Jck.prototype.handle=function(A){this.hasRun=!0;_.vs(A.data.csn,A.data.rootVe,3)};var U5T=function(A,t,f){f=f===void 0?{layer:0}:f;dK.call(this);this.zh.push(new RF(this.wg,A));this.zh.push(new bE(f));this.zh.push(new or(f))};
_.R(U5T,dK);var eOE=function(A,t,f,X,Q){f=f===void 0?{layer:0}:f;X=X===void 0?_.cR():X;dK.call(this);var q=!!t&&!!t.clientParams&&!!t.clientParams.miniplayer;q&&this.zh.push(new Jck);this.zh.push(new md(this.wg,t,X));this.zh.push(new Ly);var e,G;this.zh.push(new RF(this.wg,A,q,!((e=t.clientParams)==null||!e.fromHistory),(G=t.clientParams)==null?void 0:G.previousVideoId,X,t.tempData));var N;this.zh.push(new vR(this,(N=t.clientParams)==null?void 0:N.previousVideoId));var z;(z=t.clientParams)!=null&&z.fromHistory||
(f.layer||(f=Object.assign({},f,{layer:q?3:0})),this.zh.push(new bE(f,Q)),this.zh.push(new or(f)));_.M("web_response_commands_chunk_processor")&&this.zh.push(new SN)};
_.R(eOE,dK);var py,NIC;py={};
_.GNp=(py["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},py["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},py["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},py["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},py["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},py["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},py["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},py);_.Ed=new _.kt("yt-edu");_.lbl=function(){this.JSC$13272_eduDisplayedThisLoad_={}};
NIC=function(A){var t=_.lbl.getInstance();var f=_.cx("kevlar_tooltip_impression_cap");t=f&&parseInt(_.Ed.get(A+"-impression")||0,10)>=f||_.Ed.get(A+"-dismissed")?!1:(f=_.GNp[A])&&!t.JSC$13272_eduDisplayedThisLoad_[f.setKey||A]&&(f.titleText&&_.e5(f.titleText)||f.bodyText&&_.e5(f.bodyText))?!0:!1;if(!t)return null;t=_.GNp[A];if(!t)return null;f=t.bodyText?_.e5(t.bodyText):void 0;var X=t.titleText?_.e5(t.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:t.position,popup:{bubbleHintRenderer:{text:X?
_.oC(X):void 0,detailsText:f?_.oC(f):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.oC(_.e5("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:A}}]}}}}}}}},{eduImpressionAction:{key:A}}]};
_.su(_.lbl);var kdT=!1;for(var uYK="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),zOT=[],ny=6;ny>=1;ny--)zOT.push({columnCount:ny,query:ny==1?0:ny*2*107-4+32,className:"grid-"+ny+"-columns",width:ny*2*107+"px"});_.DQ=function(A){this.actionRouter_=A=A===void 0?_.XA.getInstance():A;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Pqp(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Pqp=function(A){var t=A.documentWidth_-(A.miniGuideVisible_?72:0)-(A.guidePersistentAndVisible_?240:0)-(A.persistentPanelVisible_?400:0);return zOT.find(function(f){return t>f.query})};
_.su(_.DQ);var TIp=function(){var A=this;this.JSC$13284_keyboardInUse=!1;document.addEventListener("keydown",function(){A.onKeydown()});
document.addEventListener("mousedown",function(){A.JSC$13284_keyboardInUse=!1})},iDl;
TIp.prototype.isKeyBoardInUse=function(){return this.JSC$13284_keyboardInUse};
TIp.prototype.onKeydown=function(){this.JSC$13284_keyboardInUse=!0};var ODK,xx;_.Fj=new _.kt("yt-mentions");_.IF=function(){};
ODK=function(A,t){return xx(t,"drag-to-reorder-edu-displayed")};
xx=function(A,t,f,X,Q,q){f=f===void 0?"OPEN_POPUP_POSITION_TOP":f;if(t){if(_.Fj.get(t))return;_.Fj.set(t,!0,X)}if(Q&&q!==void 0){t=Number(_.Fj.get(Q)||0);if(t>=q)return;_.Fj.set(Q,t+1)}return[{openPopupAction:{popupType:"HINT",position:f,popup:{bubbleHintRenderer:{detailsText:A,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.su(_.IF);var ccT,BIC,Mbi;ccT=function(A,t,f,X){this.JSC$13294_taskManager_=A;this.onFulfilled_=typeof t==="function"?t:null;this.onRejected_=typeof f==="function"?f:null;this.JSC$13294_context_=X};
BIC=function(A,t){A.onFulfilled_&&_.c1(A.JSC$13294_taskManager_,function(){A.onFulfilled_.call(A.JSC$13294_context_,t)})};
Mbi=function(A,t){A.onRejected_&&_.c1(A.JSC$13294_taskManager_,function(){A.onRejected_.call(A.JSC$13294_context_,t)})};
_.jd=function(A){this.JSC$13297_taskManager_=A;this.callbacks_=[]};
_.jd.prototype.then=function(A,t,f){this.callbacks_.push(new ccT(this.JSC$13297_taskManager_,A,t,f));return this};
_.jd.prototype.onSuccess=function(A){this.callbacks_.forEach(function(t){BIC(t,A)})};
_.jd.prototype.onFailure=function(A){this.callbacks_.forEach(function(t){Mbi(t,A)})};
_.jd.prototype.cancel=function(){this.callbacks_.length=0};
M2l(_.jd);_.QSu=null;_.PO=new _.eh("ACTIVITY_TOKEN");var Cqp;_.Cs=new _.eh("PAGE_REQUEST_TOKEN");Cqp=new _.eh("FETCH_PBJ_TOKEN");_.hOS=function(A){if(A.validatedFragments_.length==0)return null;if(!A.mergedPrefetchedData_){for(var t=[],f=_.U(A.validatedFragments_),X=f.next();!X.done;X=f.next()){X=_.U(A.fragmentConfiguration_[X.value].graftedKeys);for(var Q=X.next();!Q.done;Q=X.next())(Q=A.prefetchedData_[Q.value].trackingParams)&&t.push(Q)}A.mergedPrefetchedData_={};Object.assign(A.mergedPrefetchedData_,A.prefetchedData_,{clientSideGrafts:t})}return A.mergedPrefetchedData_};var ROw;_.Yx=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
ROw=function(A,t,f){if(_.q5x(t))return A.prefetchCache_.get(_.Jwl(t,f))};_.V2=new _.eh("NAVIGATION_TOKEN");var m5C=function(A){var t=this;var f=f===void 0?GZu():f;var X=X===void 0?_.Px().resolve(_.V2):X;this.onePickCommand=A;this.JSC$13369_playlistNetworkManager=f;this.navigationManager=X;this.videoPickerBuilder=_.UMx("yt-addtoplaylist");_.ZVf(DiK(Fxw(nJf(this.videoPickerBuilder.setTitle(A.modalTitle).setSize(1E3).addView(x9C()).addView(I_T())).addView("youtube"),A.selectButtonLabel)),function(Q){t.handleAction(Q)})};
m5C.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
m5C.prototype.handleAction=function(A){var t=this;if(A&&this.onePickCommand.listId&&A.action==="picked"&&A.docs){var f=[];A.docs.forEach(function(X){f.push({addedVideoId:X.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13369_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,f).then(function(){_.M("playlist_add_video_hard_reload_killswitch")?t.navigationManager.reload():bDp(t.navigationManager)})}};var Www=function(){if(this.constructor===Www)throw new TypeError("Vf");};
_.J=Www.prototype;_.J.dispose=function(){};
_.J.disconnect=function(){};
_.J.reconnect=function(){};
_.J.observe=function(A,t,f){return{element:A,option:f}};
_.J.unobserveByKey=function(){};var l7s=function(A,t){t=t===void 0?0:t;Www.call(this);this.viewroot=A;this.defaultPrescanHeight=t;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),A?{root:A,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.R(l7s,Www);_.J=l7s.prototype;_.J.dispose=function(){this.disconnect();this.handlers.clear()};
_.J.disconnect=function(A){this.isConnected=!1;this.pauseObservingUntilReconnect=A===void 0?!1:A;this.observer.disconnect();A=_.U(this.prescanObservers.values());for(var t=A.next();!t.done;t=A.next())t.value.disconnect()};
_.J.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var A=_.U(this.handlers),t=A.next();!t.done;t=A.next()){var f=_.U(t.value);t=f.next().value;var X=f.next().value;f=!1;X=_.U(X.keys());for(var Q=X.next();!Q.done;Q=X.next())if((Q=Q.value)&&Q.state==="prescan"){f=!0;break}f&&yc8(this,t).observe(t);this.observer.observe(t)}}};
_.J.handleObserveEvent=function(A){A=_.U(A);for(var t=A.next();!t.done;t=A.next()){t=t.value;var f=this.handlers.get(t.target);if(f){var X=t.isIntersecting;f=_.U(f);for(var Q=f.next();!Q.done;Q=f.next()){var q=_.U(Q.value);Q=q.next().value;q=q.next().value;Q&&(Q.state==="visible"&&X||Q.state==="hidden"&&!X)&&(q(t.target,Q.state),Q.calledOnce&&this.unobserveByKey({element:t.target,option:Q}))}}}};
_.J.handlePrescanEvent=function(A){A=_.U(A);for(var t=A.next();!t.done;t=A.next()){t=t.value;var f=this.handlers.get(t.target);if(f&&t.isIntersecting){f=_.U(f);for(var X=f.next();!X.done;X=f.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;X&&X.state==="prescan"&&(Q(t.target,X.state),X.calledOnce&&this.unobserveByKey({element:t.target,option:X}))}}}};
_.J.observe=function(A,t,f){var X=(X=this.handlers.get(A))&&X.has(f)?{element:A,option:f}:void 0;if(X)return X;X={element:A,option:f};this.handlers.has(A)||this.handlers.set(A,new Map);var Q=this.handlers.get(A);Q&&!Q.has(f)&&Q.set(f,t);this.pauseObservingUntilReconnect||(f.state==="prescan"&&yc8(this,A).observe(A),this.observer.observe(A));return X};
_.J.unobserveByKey=function(A){var t=this.handlers.get(A.element);if(t&&t.has(A.option)){t.delete(A.option);if(A&&A.option.state==="prescan")for(var f=_.U(this.prescanObservers.values()),X=f.next();!X.done;X=f.next())X.value.unobserve(A.element);t.size===0&&(this.handlers.delete(A.element),this.observer.unobserve(A.element))}};
var yc8=function(A,t){var f=A.defaultPrescanHeight;t.hasAttribute("prescan-height")&&(t=Number(t.getAttribute("prescan-height")),isNaN(t)||(f=t));if(A.prescanObservers.has(f))return A.prescanObservers.get(f);t="-0.1px -0.1px "+f+"px -0.1px";t=new IntersectionObserver(A.handlePrescanEvent.bind(A),A.viewroot?{root:A.viewroot,rootMargin:t}:{rootMargin:t});A.prescanObservers.set(f,t);return t};var vKk=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],LwT=function(){var A,t=this;this.JSC$13386_actionRouter=A=A===void 0?_.XA.getInstance():A;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return t.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return t.visibilityObservedElementHandlerKeys}}},pcE,nKb,IbS;
LwT.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.M("kevlar_use_vimio_behavior")&&_.ah("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Ngx())};
LwT.prototype.dispose=function(){this.visibilityMonitor&&_.L_(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
LwT.prototype.handleVisibilityRefreshed=function(){for(var A=_.U(this.targetMap.entries()),t=A.next();!t.done;t=A.next()){var f=_.U(t.value);t=f.next().value;f=f.next().value;_.EKp(this,t,f)}};
_.Fwi=function(A,t,f){nKb(A,f);var X=_.D5i(A,t);X.element=f;A.targetedElements.set(f,t);_.EKp(A,t,X)};
nKb=function(A,t){var f=A.targetedElements.get(t);if(f){var X=A.targetMap.get(f);X&&(delete X.element,A.targetMap.set(f,X));A.targetedElements.delete(t);A.visibilityObserver&&A.visibilityObservedElementHandlerKeys&&(f=A.visibilityObservedElementHandlerKeys.get(t))&&(A.visibilityObserver.unobserveByKey(f),A.visibilityObservedElementHandlerKeys.delete(t))}};
_.EKp=function(A,t,f){var X=f.action,Q=f.element;Q&&X&&(vKk.includes(t)||_.ah("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||A.visibilityMonitor&&A.visibilityMonitor.isNodeVisible(Q)?IbS(A,t,f):A.visibilityObserver&&(A.visibilityObservedElementHandlerKeys||(A.visibilityObservedElementHandlerKeys=new WeakMap),X=A.visibilityObserver.observe(Q,function(){IbS(A,t,f);A.visibilityObservedElementHandlerKeys.delete(Q)},{calledOnce:!0,
state:"visible"}),A.visibilityObservedElementHandlerKeys.set(Q,X)))};
IbS=function(A,t,f){var X=f.action;(f=f.element)&&X&&(_.Sh(A.JSC$13386_actionRouter,[X],f),A.targetMap.delete(t),A.targetedElements.delete(f),A.triggeredTargets.add(t))};
_.D5i=function(A,t){var f=A.targetMap.get(t);f||(f={},A.targetMap.set(t,f));return f};
_.ZQ=function(){pcE||(pcE=new LwT);return pcE};var x5E=document.createElement("div");x5E.style.touchAction="pan-down";var uVs=x5E.style.touchAction==="pan-down";var j$K,Ys7;j$K=function(){this.hammerFn=Vtb();this.JSC$13394_screenManager=_.er();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Xl(83615);_.Yz(this.JSC$13394_screenManager,this.ve);zQ5()};
_.oF=function(){Ys7||(Ys7=new j$K);return Ys7};
j$K.prototype.registerTouchEvents=function(A,t,f){var X=_.Hu.apply(3,arguments),Q=this.hammerFn(A,{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}]]});f&&Q.set({touchAction:f});this.nodeManagerMapping.set(A,Q);var q=
P8x(t);X=_.U(X);for(var e=X.next();!e.done;e=X.next()){e=e.value;if(e.includes("swipe")||e.includes("pinch")||e.includes("pan"))e.includes("swipe")?Q.get("swipe").set({enable:!0,direction:q,velocity:.2}):e.includes("pinch")?Q.get("pinch").set({enable:!0}):e.includes("pan")&&(Q.get("pan").set({enable:!0,direction:q}),Q.get("swipe").set({enable:!0,direction:q,velocity:.2}),Q.get("swipe").recognizeWith("pan"));Vbp(this,A,Q,e)}};
var Vbp=function(A,t,f,X){f.on(X,function(Q){if(X.includes("pinch"))A.lastPinchTime=Date.now();else if(X.includes("swipe")&&Date.now()-A.lastPinchTime<400)return;Q.pointerType!=="mouse"&&(Q=X==="doubletap"?{coordinates:Q.center}:X.includes("pan")?Q:X.includes("swipe")?{target:Q.target}:{},t.dispatchEvent(new CustomEvent(X,{bubbles:!0,composed:!0,detail:Q})))})};
j$K.prototype.unregisterTouchEvents=function(A){var t=_.Hu.apply(1,arguments),f=this.nodeManagerMapping.get(A);if(f){t=_.U(t);for(var X=t.next();!X.done;X=t.next())f.off(X.value);this.nodeManagerMapping.delete(A);A.style.touchAction="unset"}};var ZD7=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Tgb=null;_.OF={getLocalStorage:_.WI(function(){try{var A=new Zfx;var t=A.isAvailable()?A:null}catch(f){return null}return t?new _.RW(t):null}),
getSessionStorage:_.WI(function(){var A=new o7b;return A.isAvailable()?new _.RW(A):null})};var oKb=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},DMs=function(){oKb.instance||(oKb.instance=new oKb);
return oKb.instance},FK0=function(A){var t=A.networkEvents;
A.networkEvents=[];return _.M("enable_network_monitoring")?t:[]};var d5T;d5T={};_.SsT=Tm("yt-serviceworker-metadata",{objectStores:(d5T.auth={addedAtVersion:1},d5T["resource-manifest-assets"]={addedAtVersion:2},d5T),shared:!0,upgrade:function(A,t){t(1)&&AO(A,"resource-manifest-assets");t(2)&&AO(A,"auth")},
version:2});var C8z=self.location.origin+"/";hQu([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);hQu([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);hQu([/\.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\//]);hQu([/purge_shell=1/]);var $5E=void 0;$5E=$5E===void 0?[]:$5E;
for(var HDp=[],abl=_.U(OfS),KwT=abl.next();!KwT.done;KwT=abl.next())HDp.push({key:KwT.value});for(var gKS=_.U($5E),wcp=gKS.next();!wcp.done;wcp=gKS.next())HDp.push(wcp.value);var s$8,Cp=_.Xb==null?void 0:(s$8=_.Xb.performance)==null?void 0:s$8.memory,bjs=!1,I7q={},vbb={},hL={},RO=navigator;var da=function(A){this.JSC$13439_expiringStorage=new Yj(A)};
da.prototype.set=function(A,t,f){f=f!==void 0?Date.now()+f:void 0;this.JSC$13439_expiringStorage.set(A,t,f)};
da.prototype.get=function(A){return this.JSC$13439_expiringStorage.get(A)};
da.prototype.remove=function(A){this.JSC$13439_expiringStorage.remove(A)};var S5q=_.dS(["https://www.youtube.com/",""]),$Mz=_.dS(["https://studio.youtube.com/",""]),wM5="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",a7g=null,t1T;var kNC=_.dS(["https://www.youtube.com/iframe_api"]),Sd=function(){this.playerResolver_=_.YE();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.bz;this.playbackDurationSeconds_=0},rc8=function(A){var t=function(){return window.YT&&typeof window.YT.ready==="function"};
if(t())return _.ff(window.YT);var f=_.YE(),X=_.yT("SCRIPT");X.onload=X.onreadystatechange=function(){X.readyState&&X.readyState!="loaded"&&X.readyState!="complete"||(X.onload=_.bz,X.onreadystatechange=_.bz,X.onerror=_.bz,t()?f.resolve(window.YT):f.reject(new _.xj("Failed to load the iframe player library","script.onload",X.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
X.onerror=function(Q){X.onload=_.bz;X.onreadystatechange=_.bz;X.onerror=_.bz;f.reject(new _.xj("Failed to load the iframe player library","script.onerror",Q&&Q.target&&Q.target.src))};
_.UV(X,_.OP(kNC));A.insertBefore(X,A.firstChild);return f.promise},AmS=function(A,t,f){var X,Q;
_.l(function(q){switch(q.nextAddress){case 1:return A.playbackEndedCallback_=f,_.ht(q,2),q.yield(rc8(t.parentElement||null),4);case 4:X=q.yieldResult;_.qq(q,3);break;case 2:return Q=_.vC(q),Q instanceof _.xj&&Q.args&&Q.args[0]=="script.onerror"?_.K4(Q):_.HQ(Q),q.return();case 3:X.ready(function(){return new X.Player(t,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:A.onPlayerReady_.bind(A),onStateChange:A.onPlayerStateChange_.bind(A),
onCueRangeExit:A.onCueRangeExit_.bind(A)}})}),_.LO(q)}})};
_.J=Sd.prototype;_.J.getPlayerPromise=function(){return this.playerPromise_};
_.J.onPlayerReady_=function(A){this.playerResolver_.resolve(A.target)};
_.J.onPlayerStateChange_=function(A){if(A.data==YT.PlayerState.PLAYING){A=A.target;var t=A.getCurrentTime();A.addCueRange("playback",t,t+this.playbackDurationSeconds_)}};
_.J.onCueRangeExit_=function(A){A.data=="playback"&&(A.target.stopVideo(),this.playbackEndedCallback_())};
_.J.stopVideo=function(){this.playerPromise_.then(function(A){A.stopVideo()})};
var ts7=function(A){A.playerVars_&&A.playerPromise_.then(function(t){typeof t.cueVideoByPlayerVars!="function"?_.K4(new _.xj("vmh: player API not ready","cueVideoByPlayerVars",typeof t.cueVideoByPlayerVars)):t.cueVideoByPlayerVars(A.playerVars_)})};
Sd.prototype.playVideo=function(){var A=this;this.playerVars_&&this.playerPromise_.then(function(t){typeof t.loadVideoByPlayerVars!="function"?(t=new _.xj("vmh: player API not ready","loadVideoByPlayerVars",typeof t.loadVideoByPlayerVars),_.HQ(t)):t.loadVideoByPlayerVars(A.playerVars_)})};
var fO8=function(A,t,f,X,Q){t&&(f===void 0&&(f=0),X===void 0&&(X=0),A.playbackDurationSeconds_=X/1E3,A.playerVars_={adformat:"17_8",videoId:t,suggestedQuality:"hd720",startSeconds:f/1E3,player_params:Q})};
Sd.prototype.mute=function(){this.playerPromise_.then(function(A){A.mute()})};
Sd.prototype.unMute=function(){this.playerPromise_.then(function(A){A.unMute()})};var em5=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var $x;$x=function(){this.tokenJars={};if(this.cookiesEnabled=_.DU()){var A=_.E0.get("CONSISTENCY",void 0);A&&Xkk(this,{encryptedTokenJarContents:A})}};
_.lLb=function(){$x.instance||($x.instance=new $x);return $x.instance};
$x.prototype.handleResponse=function(A,t){if(!t)throw Error("$f");var f,X;t=((f=t.innerTubeRequest.context)==null?void 0:(X=f.request)==null?void 0:X.consistencyTokenJars)||[];var Q;(A=(Q=A.responseContext)==null?void 0:Q.consistencyTokenJar)&&this.replace(t,A)};
$x.prototype.replace=function(A,t){A=_.U(A);for(var f=A.next();!f.done;f=A.next())delete this.tokenJars[f.value.encryptedTokenJarContents];Xkk(this,t)};
var Xkk=function(A,t){if(t.encryptedTokenJarContents&&(A.tokenJars[t.encryptedTokenJarContents]=t,typeof t.expirationSeconds==="string")){var f=Number(t.expirationSeconds);setTimeout(function(){delete A.tokenJars[t.encryptedTokenJarContents]},f*1E3);
A.cookiesEnabled&&_.nk("CONSISTENCY",t.encryptedTokenJarContents,f,void 0,!0)}};var Q2f,HR;Q2f=window.location.hostname.split(".").slice(-2).join(".");_.IO=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var A=_.ah("LOCATION_PLAYABILITY_TOKEN");_.ah("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=qNT(this))&&(A=this.localStorage.get("yt-location-playability-token"));A&&(this.locationPlayabilityToken=A,this.mostRecentPosition=void 0)};
_.IO.getInstance=function(){HR=_.Ae("yt.clientLocationService.instance");HR||(HR=new _.IO,_.zm("yt.clientLocationService.instance",HR));return HR};
_.IO.prototype.setLocationOnInnerTubeContext=function(A){A.client||(A.client={});if(this.mostRecentPosition)A.client.locationInfo||(A.client.locationInfo={}),A.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),A.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),A.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),A.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)A.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.IO.prototype.handleResponse=function(A){var t;A=(t=A.responseContext)==null?void 0:t.locationPlayabilityToken;A!==void 0&&(this.locationPlayabilityToken=A,this.mostRecentPosition=void 0,_.ah("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=qNT(this))&&this.localStorage.set("yt-location-playability-token",A,15552E3):_.nk("YT_CL",JSON.stringify({loctok:A}),15552E3,Q2f,!0))};
var qNT=function(A){return A.localStorage===void 0?new _.kt("yt-client-location"):A.localStorage};
_.IO.prototype.clearLocationPlayabilityToken=function(A){A==="TVHTML5"?(this.localStorage=qNT(this))&&this.localStorage.remove("yt-location-playability-token"):_.DJx("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.IO.prototype.getCurrentPositionFromGeolocation=function(){var A=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var t=!1,f=1E4;_.ah("INNERTUBE_CLIENT_NAME")==="MWEB"&&(t=!0,f=15E3);return new Promise(function(X,Q){navigator.geolocation.getCurrentPosition(function(q){A.mostRecentPosition=q;X(q)},function(q){Q(q)},{enableHighAccuracy:t,
maximumAge:0,timeout:f})})};
_.IO.prototype.createUnpluggedLocationInfo=function(A){var t={};A=A.coords;if(A==null?0:A.latitude)t.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)t.longitudeE7=Math.floor(A.longitude*1E7);if(A==null?0:A.accuracy)t.locationRadiusMeters=Math.round(A.accuracy);return t};
_.IO.prototype.createLocationInfo=function(A){var t={};A=A.coords;if(A==null?0:A.latitude)t.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)t.longitudeE7=Math.floor(A.longitude*1E7);return t};var JmK=function(A,t){var f=nG();A||(A="unknown");t||(t="unknown");A="MAIN_APP_WEB_PAGE_TYPE_"+A.toUpperCase();A in Ezf||(A="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");t="MAIN_APP_WEB_REQUEST_TYPE_"+t.toUpperCase();t in nzk||(t="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.et(f,{mainAppWeb:{pageType:A,requestType:t,isShellLoad:_.Ka("IS_SHELL_LOAD",!1)}})},Ug8={start:function(){_.et(mhx(),{mainAppWeb:_.xO()})},
success:function(){_.GF(mhx(),"SUCCESS")},
failure:function(){_.GF(mhx(),"FAILURE")},
cancelled:function(){_.GF(mhx(),"CANCELLED")}};var e8T,GC8,Tob;e8T=_.dS(["/sw.js"]);GC8=_.dS(["/sw.js?0"]);_.lO7=_.OP(e8T);Tob=_.OP(GC8);var Nrp=function(){var A=Error.apply(this,arguments);this.message=A.message;"stack"in A&&(this.stack=A.stack)};
_.R(Nrp,Error);_.Vc.prototype.load=function(A){this.megabloxUrl_=_.ah("YPC_MB_URL");_.DT(this.megabloxUrl_,(0,_.F1)(function(){A&&A()},this))};
_.osb=function(A,t,f,X,Q,q,e,G,N,z,T){_.Ohs(N);A.load((0,_.F1)(function(){try{var O=q?q:_.ah("HL"),c=_.ah("SESSION_INDEX");_.XL5("client",function(){mq8("59",{helpCenterPath:"/youtube",locale:O,window:window}).JSC$10058_loadChatSupport({authuser:String(c)})})}catch(B){throw jI(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Q&&Q(B),_.HQ(B),B;
}uKf(this,t,f,X,Q,q,e,G,N,z,T)},A))};
_.Vc.prototype.openFixFlowDialog=function(A,t,f,X){this.load((0,_.F1)(function(){try{z88(this,_.Ae("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(A).withIntegratorCallback(t).load(f,X)}catch(Q){throw _.HQ(Q),Q;}},this))};
var z88=function(A,t,f,X){var Q=t.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.M("enable_window_constrained_buy_flow_dialog")&&(Q=Q.usingPopupStyle(_.Ae("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));X&&(Q=Q.usingCloseCallback(X));t.bootstrap.fromPaymentsUrl(A.megabloxUrl_);A=t.bootstrap.asMashupMode(Q);f=f?f:_.ah("HL");A.usingGaiaIndex(_.ah("SESSION_INDEX")).usingLocale(f).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.M("enable_google_payments_buyflow_material2_style_web")?
A.usingStyle(":m2;pc=#444;ac=#065fd4"):A.usingStyle(":md;pc=#444;ac=#065fd4");return A},uKf=function(A,t,f,X,Q,q,e,G,N,z,T){try{var O=_.Ae("payments.business.integration");
if(!O)throw new Nrp("payments.business.integration is undefined");var c=O.standaloneContextAuthId.forUserId(),B=z88(A,O,q,function(){Bog(!1);G&&G()});
e&&B.usingServerAnalyticsEventHandler(e);var h=B.inStandaloneContext(c).buyFlow(function(W){if(W&&(!W.integratorData||W.integratorData===""||W.error))if(W.error!=null)if(String(W.error)==="-1")_.cAT(N);else{var L=String(W.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";jI(10,T,L,W.debugCode);_.YO(L,N,W.debugCode);L=new _.xj("PAYMENT_ERROR_MESSAGE::"+W.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+W.internalErrorDetails);
_.HQ(L)}else jI(10,T,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.YO("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",N,"EMPTY_INTEGRATOR_DATA"),_.HQ(Error("cg"));f&&(Bog(!1),f(W))}).withEncryptedParameters(t);
z&&h.withClientParameters(bgb(_.V_q(z)));h.load(function(){jI(24,T);_.vt("ttc",void 0,"commerce_transaction");mP("commerce_transaction");X&&(X(),Bog(!0))},function(W){if(W==null?0:W.debugCode)var L=W==null?void 0:W.debugCode;
else if(!W||(W==null?0:W.debugCode))L="EMPTY_LOAD_FAILURE_ERROR",_.HQ(Error(L));else{L="EMPTY_LOAD_FAILURE_DEBUG_CODE";var E=new _.xj("LOAD_FAILURE:"+W.message," DEBUG_CODE:"+L);_.HQ(E)}jI(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",L);_.YO("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",N,L);_.HQ(W);Q&&Q(W)})}catch(W){throw W instanceof Nrp&&(jI(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Q&&Q(W)),_.HQ(W),W;
}};var PDb;PDb=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.YDp=function(A,t){t=t===void 0?!1:t;A=PDb.test(A)?_.pb(A):null;!t&&window.payments||!A?(A=_.YE(),t=A.promise,A.resolve()):t=_.N6T(A,{attributes:{"data-payments-main":"",id:"payment-lib"}});return t};var TrT;TrT=_.dS(["//www.googletagmanager.com/gtm.js?id=",""]);_.aF=function(A,t){_.we(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:t}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.ah("GL")}),t=_.yT("SCRIPT"),t.async=!0,_.UV(t,_.OP(TrT,A)),t.id="gtm",A=document.getElementsByTagName("script"),A.length==0?document.head.appendChild(t):(A=A[0],A.parentNode.insertBefore(t,A)))};
_.Ky=function(A){if(A=JSON.parse(A))window.dataLayer=window.dataLayer||[],window.dataLayer.push(A)};var ieb,Oeb;ieb=_.dS(["https://clients2.google.com/gr/gr_sync.js"]);_.x00=function(){};
_.x00.prototype.init=function(){if(Oeb()){var A=_.YE();A.resolve();return A.promise}return _.N6T(_.OP(ieb)).then(function(){if(!Oeb())throw Error("dg");},function(){throw Error("eg");
})};
_.jL5=function(){if(!Oeb())return"";var A=window.google.gr;A.init({async:{schedule:"sync"},merchantId:"youtube"});A.start();A=A.finish();return A==null?"":A};
Oeb=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.F=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.F,PolymerFakeBaseClassWithoutHtml);_.uo=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.uo,PolymerFakeBaseClassWithoutHtml);var M1z=window.ShadyDOM;var QVb,f9b,JK5,Umu,GA5,l9l,wa,wH;QVb=_.M("enable_shadydom_free_scoped_query_methods");f9b=_.M("enable_shadydom_free_scoped_node_methods");JK5=_.M("enable_shadydom_free_scoped_readonly_properties_batch_one");Umu=_.M("enable_shadydom_free_parent_node");GA5=_.M("enable_shadydom_free_children");l9l=_.M("enable_shadydom_free_last_child");wa=window.ShadyDOM;_.XD=wa&&wa.noPatch&&wa.wrap?wa.wrap:wa?function(A){return wa.patch(A)}:function(A){return A};
wH=function(A){if(A instanceof ShadowRoot)this.host=(0,_.XD)(A.host),this.root=A;else if(A.$$){this.host=(0,_.XD)(A);var t;this.root=(t=A.root)!=null?t:this.host}else if(A.polymerController){this.host=(0,_.XD)(A);var f;this.root=(f=this.host.shadowRoot)!=null?f:this.host}else this.root=this.host=(0,_.XD)(A)};
Xlx();qRs();Nhx();uFq();ebs();var cmk={querySelector:function(A,t){t=DK5(t,$O(A));return _.M("sunnydom_native_scoped_query_selectors")?hm5(A,t):hm5(_.Hi(A),t)},
querySelectorAll:function(A,t){t=DK5(t,$O(A));return _.M("sunnydom_native_scoped_query_selectors")?Array.from(Rm5(A,t)):Rm5(_.Hi(A),t)}},Brp={appendChild:function(A,t){var f=$O(A),X=_.SI(t);
return _.AKs(_.Hi(A),f?_.Kp(t,f,X):t)},
cloneNode:function(A,t){var f=_.SI(A);A=_.Hi(A);t=dH(A).prototype.cloneNode.call(A,t);return f?gH(t,f):t},
contains:function(A,t){var f=$O(A),X=_.SI(t);return f!==X?!1:tA0(A,t)},
insertBefore:function(A,t,f){var X=$O(A),Q=_.SI(t);A=_.Hi(A);t=X?_.Kp(t,X,Q):t;return dH(A).prototype.insertBefore.call(A,t,f)},
removeChild:function(A,t){var f=$O(A);A=_.Hi(A);t=f?gH(t,f):t;return dH(A).prototype.removeChild.call(A,t)},
replaceChild:function(A,t,f){var X=$O(A),Q=_.SI(t);t=X?_.Kp(t,X,Q):Q?gH(t,Q):t;f=X?gH(f,X):f;A=_.Hi(A);return dH(A).prototype.replaceChild.call(A,t,f)},
getRootNode:function(A,t){t=t===void 0?{composed:!0}:t;var f;if(((f=t)!=null?f:{}).composed)A=rAz(A);else{t=A;for(A=bhx(A);A;)t=A,A=ILl(A);A=t}return A}},Pvx=JK5?{firstChild:aL5,
nextSibling:ShT,previousSibling:Hhx,firstElementChild:Ksz,lastElementChild:wa5,nextElementSibling:dKz,previousElementSibling:$Kq,childNodes:sBu}:{};Umu&&(Pvx.parentNode=ocT);GA5&&(Pvx.children=kuu);l9l&&(Pvx.lastChild=gcg);QVb&&zbs(cmk);f9b&&zbs(Brp);Thb();var iQq=function(A){this.node=A instanceof ShadowRoot?A.host:A};
OQ0();cKx();var Cvu=new WeakMap;var Rbu=Symbol("Cd");var v15=new Set(["tap","track","down","up"]),LTz=_.M("pbcm_fi_query_decorators");var sd=function(){return _.uo.apply(this,arguments)||this};
_.R(sd,_.uo);_.J=sd.prototype;_.J.getState=function(){return this.store.getState()};
_.J.dispatch=function(A){this.store.dispatch(A)};
_.J.beforeRegister=function(){if(this&&typeof this==="object"){var A;var t=!!this.useSignals||!((A=this.polymerController)==null||!A.useSignals)}else t=!1;if(!t&&this.properties)for(t=_.U(Object.keys(this.properties)),A=t.next();!A.done;A=t.next()){var f=A.value;A=this.properties[f];if(A.selector){if(A.computed)throw Error("lg");f=["reduxPropertiesRecomputeTrigger",'"'+f+'"'].concat(_.YV(A.selectorArgs||[])).join(",");A.computed="recomputeReduxSelector("+f+")"}}};
_.J.attached=function(){var A=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){A.reduxPropertiesRecomputeTrigger++}));
_.M("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.J.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.J.recomputeReduxSelector=function(A,t){var f=_.Hu.apply(2,arguments),X=this.properties[t].selector;if(!X)throw Error("jg`"+t);return X.apply(null,[this.store.getState()].concat(_.YV(f)))};
_.J.select=function(A){var t=_.Hu.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return A.apply(null,[this.store.getState()].concat(_.YV(t)))};
_.PV.Object.defineProperties(sd.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
sd.prototype.recomputeReduxSelector=sd.prototype.recomputeReduxSelector;_.V([_.n(),_.H("design:type",Number)],sd.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.V([_.zh()],sd);var kx=[],Dm0={},bo=function(){return is.apply(this,arguments)||this};
_.R(bo,is);bo.prototype._addPropertyEffect=function(A,t,f){if(t==="__observeEffects"&&f){var X,Q=(X=f.info.method)!=null?X:f.info.methodName;if(Q){var q=this[Q];this[Q]=function(){kx.push(Q);try{q==null||q.apply(this,arguments)}finally{kx.pop()}}}}_.IY._addPropertyEffect.apply(this,[A,
t,f])};
bo.prototype._setPendingProperty=function(A,t,f){if(kx.length){var X=kx[kx.length-1],Q;(Q=Dm0[this.is])!=null&&Q.has(X)||(FTg(this.is,X),_.SY("polymerPropertyChangedInObserver",{componentName:this.is,observerName:X}))}return _.IY._setPendingProperty.apply(this,[A,t,f])};
_.V([fCx()],bo);var I9q=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),jVx,io={};_.M("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=io);var BU=function(){return _.uo.apply(this,arguments)||this};
_.R(BU,_.uo);BU.prototype._setUnmanagedPropertyToNode=function(A,t,f){A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!0);if(f!==A[t]||typeof f==="object")A[t]=f;A.is&&A.polymerController&&A.polymerController!==A&&OQ(A.is,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!1)};
_.V([_.zh()],BU);xmq()&&(AW.prototype._setUnmanagedPropertyToNode=(new BU)._setUnmanagedPropertyToNode);_.kAs={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(A){},set polymerController(A){}}]};var mI=function(){var A=is.apply(this,arguments)||this;A.json=function(){};
return A};
_.R(mI,is);mI.prototype.equals=function(A,t){return A===t};
mI.prototype.isEmpty=function(A){var t;(t=!A)||(t=_.ST(A)&&A.length===0);return t};
_.V([fCx()],mI);var Msp=function(A){A=fob(A);XL.call(this,A)};
_.R(Msp,XL);Msp.prototype.addProvider=function(A){A=A.key?A:fob([A])[0];var t=this.keyIdToIndex.get(A.key.id);if(t){if(dmb(A,this.providers[t]))throw Error("mg`"+A.key.displayName);}else XL.prototype.addProvider.call(this,A)};
var CDE=new Msp([]);var h87=!1;var g1x={};h87||(KTl(),h87=!0);
g1x.InjectBehavior={initializeInjection:function(){var A=this.provide;try{if((A=A!=null?A:[])&&A.length>0)for(var t=fob(A),f=_.U(t),X=f.next();!X.done;X=f.next())CDE.addProvider(X.value);var Q=new Set;SRg(this.behaviors||[],Q);t={};for(var q=_.U(Q),e=q.next();!e.done;e=q.next()){var G=e.value;G.inject&&Object.assign(t,G.inject)}this.inject&&Object.assign(t,this.inject);for(var N=_.U(Object.keys(t)),z=N.next();!z.done;z=N.next()){var T=z.value,O=t[T];try{this[T]=CDE.resolve(O)}catch(c){throw c;}}}catch(c){throw Error(c.message);
}}};var sVp;var rKs=/\bclass\b/.test(function(){}.toString()),fG5=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var R8p=function(A){this.wasDefined=!0;Array.isArray(A)||A instanceof Array?(this.JSC$13597_getImpl=A[0],this.JSC$13597_setImpl=A[1]):this.JSC$13597_getImpl=A};
_.J=R8p.prototype;_.J.getWithPath=function(A){return qzb(this.JSC$13597_getImpl(),A)};
_.J.setWithPath=function(A,t){var f=this;if(A.length)throw Error("ng");if(!this.JSC$13597_setImpl)throw Error("og");LF(function(){f.JSC$13597_setImpl(t)})};
_.J.notifyPath=function(){throw Error("pg");};
_.J.notifySplices=function(){throw Error("qg");};
_.J.getChangeRecordSignal=function(A,t){var f=this;if(A.length)throw Error("rg");return function(){var X=f.getWithPath(A);return{path:t!=null?t:"",base:X,value:X}}};
_.J.getSplicesSignal=function(){throw Error("sg");};
_.J.getPathMutationSignal=function(){throw Error("tg");};
_.J.pop=function(){throw Error("ug");};
_.J.push=function(){throw Error("vg");};
_.J.splice=function(){throw Error("wg");};
_.J.unshift=function(){throw Error("xg");};var ra=function(A){var t=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(A)||A instanceof Array?(this.JSC$13602_getImpl=A[0],this.JSC$13602_setImpl=A[1]):this.JSC$13602_getImpl=A;this.wasDefined=!1;_.CF(function(){t.wasDefined=t.JSC$13602_getImpl()!==void 0})};
ra.prototype.getWithPath=function(A){return qzb(this.JSC$13602_getImpl(),A)};
ra.prototype.setWithPath=function(A,t){var f=this;if(A[A.length-1]!=="*"&&A[A.length-1]!=="splices"){var X=_.CF(function(){return f.getWithPath([])});
if(A.length===0){if(!this.JSC$13602_setImpl)throw Error("yg");if(X===t)return;this.wasDefined||(this.wasDefined=t!==void 0);LF(function(){f.JSC$13602_setImpl(t)})}else{for(var Q=0;Q<A.length-1;Q++){if(!X)return;
X=X[A[Q]]}Q=A[A.length-1];X&&(X[Q]=t);this.wasDefined||(this.wasDefined=A.length>1||t!==void 0)}mgp(this,A,{pathComponents:A,value:t})}};
ra.prototype.notifyPath=function(A,t){A.length===0?t&&this.setWithPath(A,t.value):mgp(this,A,{pathComponents:A,value:t==null?void 0:t.value,fallbackWhenUndefined:t==null?void 0:t.value})};
var mgp=function(A,t,f,X){if(A.setMutationSignal){var Q=++A.mutationIndex,q=[A.observedPath],e=A.observedPath,G;t.length===0&&(G=e);for(var N=0;N<t.length;N++){var z=e.subPaths[t[N]];if(!z)break;q.push(z);e=z;N===t.length-1&&(G=z)}for(t=!1;q.length;)e=q.shift(),e.data={index:Q,mutation:f,spliceMutationIndex:X},t||(t=e===G),t&&q.push.apply(q,_.YV(Object.values(e.subPaths)));LF(function(){A.setMutationSignal(Q)})}};
ra.prototype.notifySplices=function(A,t){var f=this,X=_.CF(function(){return f.getWithPath(A)}),Q=[].concat(_.YV(A),["splices"]);
mgp(this,Q,{pathComponents:Q,value:{indexSplices:t}});if(X==null?0:X.length)t=this.mutationIndex,Q=[].concat(_.YV(A),["length"]),mgp(this,Q,{pathComponents:Q,value:X.length},t)};
var beE=function(A,t,f,X,Q,q){A.notifySplices(f,[{index:X,addedCount:Q,removed:q,object:t,type:"splice"}])},WCw=function(A,t){A=A.observedPath;
for(var f=0;f<t.length;f++){var X=t[f],Q=A.subPaths[X];Q||(Q={pathComponents:t.slice(0,f+1),subPaths:{}},A.subPaths[X]=Q);A=Q}},vQp=function(A,t,f){WCw(A,t);
if(!A.getMutationSignal){var X=_.U(_.hZ(A.mutationIndex,void 0,"sNBMCd"));A.getMutationSignal=X.next().value;A.setMutationSignal=X.next().value}var Q=A.getMutationSignal;return _.yq(function(){Q();return f(ymb(A,t))},void 0,"zvsXEd")};
ra.prototype.getChangeRecordSignal=function(A,t){var f=this,X=this.mutationIndex,Q;return vQp(this,A,function(q){if(q&&q.index>X){var e=q.mutation;X=q.index;Q=void 0}q=_.CF(function(){return f.getWithPath(A)});
if(e){var G=e.pathComponents[e.pathComponents.length-1],N=[].concat(_.YV(e.pathComponents));if(G==="splices"||G==="length")return{base:q,path:(t?[t].concat(_.YV(N)):N).join("."),value:e.value};var z=A.length>N.length?A:N,T;return{base:q!=null?q:e.fallbackWhenUndefined,path:(t?[t].concat(_.YV(z)):z).join("."),value:(T=_.CF(function(){return f.getWithPath(z)}))!=null?T:e.fallbackWhenUndefined}}Q||(Q={base:q,
path:(t?[t].concat(_.YV(A)):A).join("."),value:q});return Q})};
ra.prototype.getSplicesSignal=function(A){var t=this.mutationIndex,f;return vQp(this,A,function(X){if(X&&X.index>t&&X.spliceMutationIndex!==t){var Q=X.mutation;t=X.index;f=void 0}return Q&&Q.pathComponents[Q.pathComponents.length-1]==="splices"?f=X=Q.value:f})};
ra.prototype.getPathMutationSignal=function(A){var t=this;WCw(this,A);if(!this.getMutationSignal){var f=_.U(_.hZ(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=f.next().value;this.setMutationSignal=f.next().value}var X=this.getMutationSignal,Q=this.mutationIndex,q;return _.yq(function(){X();var e=ymb(t,A);if(e&&e.index>Q&&e.mutation&&JTu(e.mutation.pathComponents,A)){var G=e.mutation;Q=e.index}if(!q||Q!==q.index){var N,z;e=(z=_.CF(function(){return t.getWithPath(A)}))!=null?z:(N=G)==null?
void 0:N.fallbackWhenUndefined;
q={index:Q,value:e}}return q},void 0,"RXYC9b")};
var ymb=function(A,t){A=A.observedPath;t=_.U(t);for(var f=t.next();!f.done;f=t.next())A=A.subPaths[f.value];return A.data};
ra.prototype.pop=function(A){var t=this,f=_.CF(function(){return t.getWithPath(A)});
if(!(f instanceof Array))throw Error("zg");var X=f.length>0,Q=f.pop();X&&beE(this,f,A,f.length,0,[Q]);return Q};
ra.prototype.push=function(A){var t=_.Hu.apply(1,arguments),f=this,X=_.CF(function(){return f.getWithPath(A)});
if(!(X instanceof Array))throw Error("Ag");var Q=X.length,q=X.push.apply(X,_.YV(t));t.length&&beE(this,X,A,Q,t.length,[]);return q};
ra.prototype.splice=function(A,t,f){var X=_.Hu.apply(3,arguments),Q=this,q=_.CF(function(){return Q.getWithPath(A)});
if(!(q instanceof Array))throw Error("Bg");t<0?t=q.length-Math.floor(-t):t&&(t=Math.floor(t));var e=q.splice.apply(q,[t,f].concat(_.YV(X)));(X.length||e.length)&&beE(this,q,A,t,X.length,e);return e};
ra.prototype.unshift=function(A){var t=_.Hu.apply(1,arguments),f=this,X=_.CF(function(){return f.getWithPath(A)});
if(!(X instanceof Array))throw Error("Cg");var Q=X.unshift.apply(X,_.YV(t));t.length&&beE(this,X,A,0,t.length,[]);return Q};var Aa=function(A,t,f){this.model=A;this.unknownSignalResolver=t;this.options=f;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];t=_.U(T4q());A=t.next().value;t=t.next().value;this.owner=A;this.disposeImpl=t};
Aa.prototype.dispose=function(){if(!this.isDisposed){for(var A=_.U(this.childSignalProxies),t=A.next();!t.done;t=A.next())t.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var LCT=function(A,t){A=_.UH(A.owner);try{t()}finally{_.UH(A)}};
Aa.prototype.effect=function(A){LCT(this,function(){_.ZM(A,"h")})};
var pkp=function(A,t){A.options!=null||(A.options={});var f;(f=A.options).immutableProps!=null||(f.immutableProps=new Set);A.options.immutableProps.add(t)},Z$b=function(A,t){t=""+t;
EQ7(A,t);var f,X;if((f=A.options)==null?0:(X=f.immutableProps)==null?0:X.has(t))return!0;var Q;if((Q=A.model.__signalCache)==null?0:Q.has(t))f=A.model.__signalCache.get(t),Array.isArray(f)&&pkp(A,t);var q,e,G;return(G=(q=A.options)==null?void 0:(e=q.immutableProps)==null?void 0:e.has(t))!=null?G:!1},nQT=function(A,t){var f;
A.unknownSignalResolver&&(f=A.unknownSignalResolver(t));var X,Q;((X=A.options)==null?0:(Q=X.immutableProps)==null?0:Q.has(t))?f!=null||(f=new R8p(_.hZ(A.model[t],void 0,"By5iP"))):f!=null||(f=new ra(_.hZ(A.model[t],void 0,"CXghNc")));var q=A.model.hostElement;Object.defineProperty(A.model,t,{get:function(){VA5(q,t);return f.getWithPath([])},
set:function(e){cU(q,t);A.setWithPath([t],e)},
configurable:!0});return f},EQ7=function(A,t){var f,X,Q;
((f=A.model.__signalCache)==null||!f.has(t))&&((X=A.options)==null?0:(Q=X.externalSignalProps)==null?0:Q.has(t))&&A.model[t]},pN=function(A,t){t=""+t;
var f=A.signalCache[t];if(f!==void 0)return f;f=!1;EQ7(A,t);var X;if((X=A.model.__signalCache)==null?0:X.has(t))if(f=A.model.__signalCache.get(t),Array.isArray(f))f=!0,pkp(A,t);else return A.signalCache[t]=A.model.__signalCache.get(t).signal,A.signalCache[t];var Q,q;X=(q=(Q=A.options)==null?void 0:Q.reactivityMode)!=null?q:0;var e,G;if(!((e=A.options)==null?0:(G=e.reactiveProps)==null?0:G.has(t))&&!f&&X===1)throw Error("Dg`"+t);Q=f?Dgp(A,t):nQT(A,t);return A.signalCache[t]=Q},Dgp=function(A,t){var f=
Object.getOwnPropertyDescriptor(A.model.constructor.prototype,t),X=function(){return A.model[t]};
return new R8p(f&&f.get&&!f.set?X:[X,function(Q){A.model[t]=Q}])};
Aa.prototype.getWithPath=function(A){var t=_.U(A);A=t.next().value;t=Qq(t);VA5(this.model.hostElement,""+A);return pN(this,A).getWithPath(t)};
Aa.prototype.setWithPath=function(A,t){if(A.length){cU(this.model.hostElement,A.join("."));var f=_.U(A);A=f.next().value;f=Qq(f);pN(this,A).setWithPath(f,t)}};
Aa.prototype.getPathMutationSignal=function(A){var t=_.U(A);A=t.next().value;t=Qq(t);return pN(this,A).getPathMutationSignal(t)};
Aa.prototype.notifyPath=function(A,t){var f=_.U(A);A=f.next().value;f=Qq(f);pN(this,A).notifyPath(f,t)};
var FCb=function(A,t){if(t.type==="literal")return function(){return{rootWasDefined:!0,value:t.value}};
var f=vU(t.path),X=_.U(f),Q=X.next().value;X=Qq(X);var q,e;if(t.type==="path"&&(f.length===1||((q=A.options)==null?0:(e=q.immutableProps)==null?0:e.has(Q))))return function(){var O=A.getWithPath(f.slice(0,1));O=qzb(O,f.slice(1));return{rootWasDefined:pN(A,f[0]).wasDefined,value:O}};
var G=pN(A,Q);if(t.type==="path"){var N=G.getPathMutationSignal(X);return function(){var O,c=(O=N())==null?void 0:O.value;return{rootWasDefined:G.wasDefined,value:c}}}if(t.type==="splices"){var z=G.getSplicesSignal(X);
return function(){var O=z();return{rootWasDefined:G.wasDefined,value:O}}}var T=G.getChangeRecordSignal(X,""+Q);
return function(){var O=T();return{rootWasDefined:G.wasDefined,value:O}}},uzu=function(A,t,f){var X=f.map(function(G){return FCb(A,G)}),Q=f.length===0,q=[],e=f.length!==1||f[0].type!=="path"?!1:!0;
A.effect(function(){for(var G=X.length,N=[],z=!!q.length,T=0;T<G;T++){var O=X[T](),c=O.rootWasDefined;O=O.value;Q||(Q=c);N[T]=O;e&&(N[T+G]=z?q[T]:N[T],q[T]=O)}Q&&Hm(A.owner,function(){return void t.apply(null,_.YV(N))})})},Unb=function(A,t,f,X,Q){var q=pN(A,t);
Q!==void 0&&q.setWithPath([],Q);uzu(A,function(){var e=_.Hu.apply(0,arguments);cU(A.model.hostElement,t,!0);q.setWithPath([],f.apply(null,_.YV(e)))},X)};
Aa.prototype.arrayPush=function(A){var t=_.Hu.apply(1,arguments),f=_.U(A),X=f.next().value;f=Qq(f);X=pN(this,X);return X.push.apply(X,[f].concat(_.YV(t)))};
Aa.prototype.arraySplice=function(A,t,f){var X=_.Hu.apply(3,arguments),Q=_.U(A),q=Q.next().value;Q=Qq(Q);q=pN(this,q);return q.splice.apply(q,[Q,t,f].concat(_.YV(X)))};
Aa.prototype.arrayUnshift=function(A){var t=_.Hu.apply(1,arguments),f=_.U(A),X=f.next().value;f=Qq(f);X=pN(this,X);return X.unshift.apply(X,[f].concat(_.YV(t)))};
Aa.prototype.notifySplices=function(A,t){var f=_.U(A);A=f.next().value;f=Qq(f);pN(this,A).notifySplices(f,t)};var IOT=!0,xgT=!1,o95=!1,j2T=!1,YNT=0;j2T=!1;YNT=0;IOT=!0;xgT=o95=!1;var CGz=/([^\s]+?)\(([\s\S]*)\)/,cTq=/\.([^.]+)$/,RD5=/\\,/g,i$5=/&comma;/g,O$l=/\\(.)/g,hDx=[],B4T={"*":"wildcard",splices:"splices"};var Dnx=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"),LRq=/[A-Z]/,Vsp=["class","hidden","id","on-dom-change"],IGx=new Set([].concat(_.YV(Vsp),
["if","notify-dom-change","restamp"])),xn5=new Set([].concat(_.YV(Vsp),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),jQz=new Set(["restamp"]);var Ibg=new Set(["className","id"]);var dn5=Symbol(),wNq=window;var QZb=window;var NZb=0,Us5=0,EQ=[],lZb=0,Jn5=!1,G9x=document.createTextNode("");(new window.MutationObserver(ee0)).observe(G9x,{characterData:!0});var DK=new Map,nN=0,ZeT=function(A){this.mappedHandleId=A},zeu=function(A,t,f,X){this.mappedHandleId=A;
var Q=this;this.mappedHandleId=A;this.callback=t;this.waitTime=f;this.schedulerPriority=X;this.handleId=_.a6.addJob(function(){Q.callback();DK.delete(Q.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.R(zeu,ZeT);zeu.prototype.cancel=function(){_.a6.cancelJob(this.handleId);DK.delete(this.mappedHandleId)};
var PNT=function(A,t){this.mappedHandleId=A;var f=this;this.mappedHandleId=A;this.callback=t;this.handleId=us5(function(){f.callback();DK.delete(f.mappedHandleId)})};
_.R(PNT,ZeT);PNT.prototype.cancel=function(){var A=this.handleId-Us5;A<0||EQ.length<=A||(EQ[A]=null);DK.delete(this.mappedHandleId)};var cnq=function(){};
cnq.prototype.cancel=function(){this.jobHandle!==void 0&&(TZ5(this.jobHandle),this.jobHandle=void 0)};
cnq.prototype.run=function(A,t,f){var X=this;this.cancel();this.callback=A;this.jobHandle=_.FD(function(){A();X.callback=void 0},t,f)};
cnq.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var i70=new WeakMap;var oQ8=UU(function(A){for(var t=A,f=0;f<3;f++)t=Object.getPrototypeOf(t);delete t.prototype.connectedCallback;var X=function(){return A.apply(this,arguments)||this};
_.R(X,A);X.prototype._attachDom=function(Q){if(!Q)return null;var q=(0,_.XD)(this.hostElement);q.attachShadow({mode:"open",shadyUpgradeFragment:Q});q.shadowRoot.appendChild(Q);return q.shadowRoot};
X.prototype._takeAttributes=function(){for(var Q=this.hostElement.attributes,q=0;q<Q.length;q++){var e=Q[q],G=void 0,N=void 0;(N=(G=this).__attributeReaction)==null||N.call(G,e.name,null,e.value)}};
X.prototype._readyClients=function(){A.prototype._readyClients.call(this);this.root=this};
X.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);A.prototype.connectedCallback.call(this)};
_.PV.Object.defineProperties(X,{template:{configurable:!0,enumerable:!0,get:function(){return X.prototype._template}}});
return X}),dgT=UU(function(A){var t=function(){return A.apply(this,arguments)||this};
_.R(t,A);t.prototype.created=function(){if(this.__notifyEffects)for(var f=_.U(Object.values(this.__notifyEffects)),X=f.next();!X.done;X=f.next()){X=_.U(X.value);for(var Q=X.next();!Q.done;Q=X.next())Q.value.fn=he0}if(this.__reflectEffects)for(f=_.U(Object.values(this.__reflectEffects)),X=f.next();!X.done;X=f.next())for(X=_.U(X.value),Q=X.next();!Q.done;Q=X.next())Q.value.fn=Reb};
t.prototype._addEventListenerToNode=function(f,X,Q){f=xF(f);aw(f,X,Q)||A.prototype._addEventListenerToNode.call(this,f,X,Q)};
t.prototype._removeEventListenerFromNode=function(f,X,Q){f=xF(f);KV(f,X,Q)||A.prototype._removeEventListenerFromNode.call(this,f,X,Q)};
t.prototype._propertiesChanged=function(f,X,Q){if(this.__dataToNotify&&this.__notifyEffects)for(var q=_.U(Object.keys(this.__dataToNotify)),e=q.next();!e.done;e=q.next()){e=e.value;var G=CNu(e);this.__notifyEffects[G]||delete this.__dataToNotify[e]}else this.__dataToNotify=null;A.prototype._propertiesChanged.call(this,f,X,Q)};
t.prototype.fire=function(f,X,Q){X=X===void 0?{}:X;var q;return _.s9(xF((q=Q==null?void 0:Q.node)!=null?q:this),f,X,Q)};
t.prototype._ensureAttribute=function(f,X){var Q=xF(this);Q.hasAttribute(f)||LN(Q,X,f)};
t.prototype.isLightDescendant=function(f){var X=xF(this);return xF(X)!==f&&_.sF(X).contains(f)&&_.sF(X).getRootNode()===_.sF(f).getRootNode()};
return t});
_.Vt.ready=function(){var A;((A=this.hostElement)!=null?A:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var t;((t=this.hostElement)!=null?t:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.K9._subscribeIronResize=function(A){var t;((t=A.hostElement)!=null?t:A).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.K9._unsubscribeIronResize=function(A){var t;((t=A.hostElement)!=null?t:A).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var WB5=[Array,Boolean,Date,Number,Object,String],YF=function(A,t,f,X){this.polySiInfo=A;this.polySiParams=t;this.polySiContext=f;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;X||this instanceof HTMLElement&&(X=this);if(!X)throw Error("Kg");this.allowedProps=t.allowedProps;this.hostElement=X;this.is=A.is;this.upgradeDisabled=!!t.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");A=new Set(t.reactiveSchemas.filter(function(Q){return Q.type!==
"observe"}).map(function(Q){return Q.propertyKey}));
this.signalProxy=new Aa(this,void 0,{reactiveProps:A,reactivityMode:t.reactivityMode});this.__dataHasAccessor={};t=_.U(t.reactiveSchemas);for(A=t.next();!A.done;A=t.next())A=A.value,A.type==="signal"&&(this.__dataHasAccessor[A.propertyKey]=!0);this.upgradeDisabled||SNK(this)};
YF.prototype.getExtraMethodsToForward=function(){return[]};
var SNK=function(A){A.polySiContext.didRegister||(A.registered(),A.polySiContext.didRegister=!0);A.polySiContext.finalizedTemplate||(A.polySiContext.finalizedTemplate={},A.polySiParams.templateGetter&&(A.polySiContext.finalizedTemplate.processedTemplate=qks(A.polySiParams.templateGetter,A.polySiParams.is)));$gp(A);var t=A.hostElement;t.loggingStatus!=null||(t.loggingStatus={});t.loggingStatus.isInitializing=!0;_.CF(function(){return void A.created()});
t.loggingStatus.isInitializing=!1;A.isPolySiElementConnected&&Hei(A)},Hei=function(A){A.didCallReady||(_.CF(function(){return void A.ready()}),A.didCallReady=!0);
A.isAttached=!0;A.attached()};
_.J=YF.prototype;_.J.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Hei(this)};
_.J.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.J.attributeChangedCallback=function(A,t,f){if(this.upgradeDisabled)A==="disable-upgrade"&&f===null&&(this.upgradeDisabled=!1,SNK(this));else if(t!==f){var X=_.Gr(A),Q=this.polySiContext.typesForSignals[X];if(Q&&(!this.reflecting||_.M("polysi_attribute_changed_serializing_killswitch"))){switch(Q){case Object:try{var q=JSON.parse(f)}catch(G){q=f}break;case Array:try{q=JSON.parse(f)}catch(G){q=null}break;case Date:q=isNaN(f)?String(f):Number(f);q=new Date(q);break;case Boolean:q=f!==null;break;case Number:q=
Number(f);break;default:q=f}this[X]=q}X=_.U(this.polySiParams.behaviors);for(Q=X.next();!Q.done;Q=X.next())q=void 0,(q=Q.value.attributeChanged)==null||q.call(this,A,t,f);var e;(e=this.attributeChanged)==null||e.call(this,A,t,f)}};
_.J.attributeChangedCallbackWrapper=function(A,t,f){this.attributeChangedCallback(A,t,f)};
_.J.setPropertiesFromInitialAttributeValues=function(){for(var A=0;A<this.hostElement.attributes.length;A++){var t=this.hostElement.attributes[A];(t.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(t.name))&&this.attributeChangedCallback(t.name,null,t.value)}};
_.J.created=function(){this.provide=this.polySiParams.provide;var A;(A=this.initializeInjection)==null||A.call(this);A=_.U(this.polySiParams.reactiveSchemas);for(var t=A.next();!t.done;t=A.next())t=t.value,t.type==="signal"&&(this.mutablePropNames.add(t.propertyKey),pN(this.signalProxy,t.propertyKey));b7l(this,this.polySiInfo,this.polySiParams.behaviors);A=_.U(this.polySiParams.reactiveSchemas);for(t=A.next();!t.done;t=A.next())t=t.value,t.type==="signal"&&t.value!==void 0&&(this.signalProxy.model[t.propertyKey]=
typeof t.value==="function"?t.value.call(this):t.value);if(this.polySiParams.signalProperties)for(A=_.U(this.polySiParams.signalProperties),t=A.next();!t.done;t=A.next()){t=t.value;var f=void 0;((f=this.__signalCache)==null?0:f.has(t))||(this.signalProxy.model[t]=void 0)}j2T||aOw(this);msp(this);A=_.U(this.polySiParams.behaviors);for(t=A.next();!t.done;t=A.next())f=void 0,(f=t.value.created)==null||f.call(this);var X;(X=this.polySiInfo.created)==null||X.call(this)};
_.J.registered=function(){var A=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var t=Object.getPrototypeOf(this);t.addReactiveSchema=function(G){A.polySiParams.reactiveSchemas.push(G)};
for(var f=_.U(this.polySiParams.behaviors),X=f.next();!X.done;X=f.next()){var Q=void 0;(Q=X.value.beforeRegister)==null||Q.call(t)}var q;(q=this.polySiInfo.beforeRegister)==null||q.call(t);t.addReactiveSchema=v9q;f=_.U(this.polySiParams.behaviors);for(X=f.next();!X.done;X=f.next())Q=void 0,(Q=X.value.registered)==null||Q.call(t);var e;(e=this.polySiInfo.registered)==null||e.call(t)};
_.J.ready=function(){var A;(A=this.beforeReady)==null||A.call(this);j2T&&aOw(this);var t;if(A=(t=this.polySiContext.finalizedTemplate)==null?void 0:t.processedTemplate){A=XyT(A.template,A.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:A.hasInsertionPoint,thisCtx:this});t=A.nodesById;A=A.root;var f=this.hostElement;var X=X===void 0?!1:X;f=(0,_.XD)(f);if(!f.attachShadow)throw Error("Id");if(!f.shadowRoot||X)f.attachShadow({mode:"open",shadyUpgradeFragment:A}),f.shadowRoot.appendChild(A);
this.root=f.shadowRoot;this.$=t}KCw(this);X=_.U(this.polySiParams.behaviors);for(t=X.next();!t.done;t=X.next())A=void 0,(A=t.value.ready)==null||A.call(this);var Q;(Q=this.polySiInfo.ready)==null||Q.call(this)};
_.J.attached=function(){for(var A=_.U(this.polySiParams.behaviors),t=A.next();!t.done;t=A.next()){var f=void 0;(f=t.value.attached)==null||f.call(this)}var X;(X=this.polySiInfo.attached)==null||X.call(this)};
_.J.detached=function(){for(var A=_.U(this.polySiParams.behaviors),t=A.next();!t.done;t=A.next()){var f=void 0;(f=t.value.detached)==null||f.call(this)}var X;(X=this.polySiInfo.detached)==null||X.call(this)};
var $gp=function(A){for(var t=_.U(A.polySiParams.behaviors),f=t.next();!f.done;f=t.next())if(f=f.value,f.listeners)for(var X in f.listeners)fZz(A,A.hostElement,X,f.listeners[X]);if(A.polySiInfo.listeners)for(var Q in A.polySiInfo.listeners)fZz(A,A.hostElement,Q,A.polySiInfo.listeners[Q])},fZz=function(A,t,f,X,Q){A=QQb(A,X,Q);
aw(t,f,A)||t.addEventListener(f,A);return A},aOw=function(A){for(var t=_.U(A.polySiParams.reactiveSchemas),f=t.next();!f.done;f=t.next())f=f.value,f.type==="compute"||f.type==="computeWithMethod"?eDz(A.signalProxy,f,A):f.type==="redux"?N4b(A.signalProxy,f,A.store):f.type==="signal"&&f.readOnly&&lGx(A.signalProxy,f)},KCw=function(A){for(var t=_.U(A.polySiParams.reactiveSchemas),f=t.next(),X={};!f.done;X={schema$jscomp$12:void 0},f=t.next())X.schema$jscomp$12=f.value,X.schema$jscomp$12.type==="notify"?
zDp(A.signalProxy,X.schema$jscomp$12,A.hostElement):X.schema$jscomp$12.type==="observe"?PGu(A.signalProxy,X.schema$jscomp$12,A):X.schema$jscomp$12.type==="reflect"&&A.signalProxy.effect(function(q){return function(){var e=A.signalProxy.getWithPath([q.schema$jscomp$12.propertyKey]);
A.reflecting=!0;b$0(A.hostElement,q.schema$jscomp$12.propertyKey,e,!0);A.reflecting=!1}}(X));
if(A.reflectedAttributes)for(t=_.U(Object.entries(A.reflectedAttributes)),X=t.next(),f={};!X.done;f={key$jscomp$938:void 0,value$jscomp$10189:void 0},X=t.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;f.key$jscomp$938=X;f.value$jscomp$10189=Q;A.signalProxy.effect(function(q){return function(){A.reflecting=!0;b$0(A.hostElement,q.key$jscomp$938,(0,q.value$jscomp$10189)(),!0);A.reflecting=!1}}(f))}};
_.J=YF.prototype;_.J._setPendingProperty=function(A,t){this.set(A,t);return!1};
_.J._enableProperties=function(){};
_.J._setPendingPropertyOrPath=function(A,t){this.notifyPath(A,t);return!1};
_.J._addPropertyEffect=function(){};
_.J._stampTemplate=function(){throw Error("Lg");};
_.J.fire=function(A,t,f){t=t===void 0?{}:t;f=f===void 0?{}:f;var X,Q,q={bubbles:(X=f.bubbles)!=null?X:!0,cancelable:!!f.cancelable,composed:(Q=f.composed)!=null?Q:!0},e;return _.s9(LBT((e=f.node)!=null?e:this.hostElement),A,t,q)};
_.J.get=function(A,t){var f=vU(A);return t?qzb(t,f):A==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(f)};
_.J.linkPaths=function(){};
_.J.listen=function(A,t,f){A=LBT(A);this.boundListeners!=null||(this.boundListeners=new WeakMap);var X=this.boundListeners.get(A);X||(X={},this.boundListeners.set(A,X));var Q=t+f;X[Q]||(X[Q]=fZz(this,A,t,f))};
_.J.notifyPath=function(A,t){this.signalProxy.notifyPath(vU(A),arguments.length===2?{value:t}:void 0)};
_.J.canNotifyPath=function(A){return this.mutablePropNames.has(A)&&!Z$b(this.signalProxy,A)};
_.J.notifySplices=function(A,t){this.signalProxy.notifySplices(vU(A),t)};
_.J.pop=function(A){var t=this.signalProxy;A=vU(A);var f=_.U(A);A=f.next().value;f=Qq(f);return pN(t,A).pop(f)};
_.J.push=function(A){var t=_.Hu.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[vU(A)].concat(_.YV(t)))};
_.J.set=function(A,t,f){if(f)throw Error("Mg");A==="hidden"?this.hostElement.hidden=!!t:this.signalProxy.setWithPath(vU(A),t)};
_.J.setProperties=function(A){A=_.U(Object.entries(A));for(var t=A.next();!t.done;t=A.next()){var f=_.U(t.value);t=f.next().value;f=f.next().value;this[t]=f}};
_.J.splice=function(A,t,f){var X=_.Hu.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[vU(A),t,f].concat(_.YV(X)))};
_.J.unlinkPaths=function(){};
_.J.unlisten=function(A,t,f){A=LBT(A);if(this.boundListeners){var X=this.boundListeners.get(A);if(X){f=t+f;var Q=X[f];Q&&(KV(A,t,Q)||A.removeEventListener(t,Q),delete X[f])}}};
_.J.unshift=function(A){var t=_.Hu.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[vU(A)].concat(_.YV(t)))};
_.PV.Object.defineProperties(YF.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 Z7T=[Array,Boolean,Date,Number,Object,String];var Skg=!1;var ta=function(){var A=HTMLElement.apply(this,arguments)||this;A.restamp=!1;A.notifyDomChange=!1;A.JSC$13710_didCallConnected=!1;A.JSC$13710_renderDebouncer=null;A.disableTemplateUpdateSignalImpl=V_()?void 0:_.hZ(!1,void 0,"Ofhkwb");var t;A.getDisableTemplateUpdate=(t=A.disableTemplateUpdateSignalImpl)==null?void 0:t[0];var f;A.setDisableTemplateUpdate=(f=A.disableTemplateUpdateSignalImpl)==null?void 0:f[1];return A};
_.R(ta,HTMLElement);var gQT=function(A){A.conditionSignalImpl!=null||(A.conditionSignalImpl=new ra(_.hZ(!1,void 0,"gE52Fb")));return A.conditionSignalImpl};
_.J=ta.prototype;_.J.showHideChildren=function(A){wkS(this,A,this.if)};
_.J.attributeChangedCallback=function(A,t,f){if(this.JSC$13710_didCallConnected)throw Error("Qg`"+A);A==="notify-dom-change"?this.notifyDomChange=f!==null:A==="restamp"&&(this.restamp=f!==null)};
_.J.debounceRender=function(){this.JSC$13710_renderDebouncer=_.cr(this.JSC$13710_renderDebouncer,w$,this.JSC$13710_renderImpl.bind(this));_.Br(this.JSC$13710_renderDebouncer)};
_.J.disconnectedCallback=function(){var A=(0,_.XD)(this).parentNode;(!A||A.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in A&&!A.host)&&s2T(this)};
_.J.connectedCallback=function(){var A=this;this.JSC$13710_didCallConnected=!0;IOT?$s0():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.M("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){gQT(A).getWithPath([]);A.debounceRender()})};
_.J.render=function(){_.RY()};
_.J.JSC$13710_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var A=this.if,t=!1;if(A){this.hasInstance()||(kCK(this),t=!0);a:{var f=(0,_.XD)(this).parentNode;if(this.hasInstance()){var X=this.instance.children;if((X==null?0:X.length)&&(0,_.XD)(this).previousSibling!==X[X.length-1])for(var Q=0;Q<X.length;Q++)(0,_.XD)(f).insertBefore(X[Q],this)}else{if(!f){f=!1;break a}rm7(this,f)}f=!0}if(!f)return}else this.restamp&&s2T(this);wkS(this,!1,A);A&&!t&&kCK(this);xgT&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.J.hasInstance=function(){return!!this.instance};
var rm7=function(A,t){var f=A.parentSignalProxy;if(V_()){var X=_.U(_.hZ(!0,void 0,"dkzufd"));var Q=X.next().value;X=X.next().value;f=A.parentSignalProxy}else{var q;var e=new Aa((q=ADp(A))!=null?q:{},function(N){var z=pN(A.parentSignalProxy,N).getChangeRecordSignal([]);N=_.hZ(void 0,void 0,"iG8Uwe");var T=new ra(N);e.effect(function(){if(A.getDisableTemplateUpdate&&!A.getDisableTemplateUpdate()){var O=z();T.notifyPath(vU(O.path),{value:O.value})}});
return T});
A.parentSignalProxy.childSignalProxies.push(e);var G=f=e}f=XyT(A.templateInfo,A.templateInfo.nodeInfoList,f,{eventListenerHost:A.eventListenerHost,hasInsertionPoint:A.templateInfo.hasInsertionPoint,thisCtx:A.eventListenerHost,enabledSignal:V_()?Q:void 0,getModel:function(){return ADp(A)}}).root;
A.instance={root:f,children:[],hidden:!1,signalProxy:G,getTemplateUpdatesEnabled:Q,setTemplateUpdatesEnabled:X};G=_.U(f.childNodes);for(Q=G.next();!Q.done;Q=G.next())A.instance.children.push(Q.value);(0,_.XD)(t).insertBefore(A.instance.root,A)},ADp=function(A){if((A=A.parentSignalProxy.model)&&!A.hostElement){var t={},f;
for(f in A)A.hasOwnProperty(f)&&(t[f]=A[f]);return t}},s2T=function(A){if(A.instance){var t=A.instance.children;
if(t.length){var f=(0,_.XD)(t[0]).parentNode;if(f){f=(0,_.XD)(f);for(var X=0;X<t.length;X++)f.removeChild(t[X])}}V_()?A.instance.setTemplateUpdatesEnabled(!1):A.instance.signalProxy.dispose();A.instance=void 0}},wkS=function(A,t,f){t=t||!f;
A.instance&&A.instance.hidden!==t&&(A.instance.hidden=t,ds5(t,A.instance.children))},kCK=function(A){if(V_()){var t=A.instance;
t&&Hm(A.parentSignalProxy.owner,function(){return!t.getTemplateUpdatesEnabled()})&&t.setTemplateUpdatesEnabled(!0)}else A.setDisableTemplateUpdate(!1)};
_.PV.Object.defineProperties(ta.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var A=this;return Hm(this.parentSignalProxy.owner,function(){return gQT(A).getWithPath([])})},
set:function(A){A||(V_()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));gQT(this).setWithPath([],!!A)}}});
_.PV.Object.defineProperties(ta,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",ta);var tV7=[],fx=function(){var A=HTMLElement.apply(this,arguments)||this;A.as="item";A.indexAs="index";A.itemsIndexAs="itemsIndex";A.targetFramerate=20;A.notifyDomChange=!1;A.isDetached=!1;A.JSC$13717_renderDebouncer=null;A.instances=[];A.chunkingId=null;A.chunkCount=null;A.shouldMeasureChunk=!1;A.shouldContinueChunking=!1;A.renderStartTime=null;A.JSC$13717_didCallConnected=!1;return A};
_.R(fx,HTMLElement);var f1l=function(A){A.itemSignalImpl!=null||(A.itemSignalImpl=new ra(_.hZ(tV7,void 0,"YBrqgf")));return A.itemSignalImpl},Xwi=function(A,t){Array.isArray(t)||(t=tV7);
f1l(A).setWithPath([],t)};
_.J=fx.prototype;_.J.showHideChildren=function(A){for(var t=_.U(this.instances),f=t.next();!f.done;f=t.next())ds5(A,f.value.children)};
_.J.notifyPath=function(A,t){A=vU(A);A[0]==="items"&&(A.length===1?Xwi(this,t):f1l(this).setWithPath(A.slice(1),t))};
_.J.canNotifyPath=function(A){return A==="items"};
_.J.attributeChangedCallback=function(A,t,f){if(this.JSC$13717_didCallConnected)throw Error("Rg`"+A);A==="as"?this.as=f:A==="index-as"?this.indexAs=f:A==="items-index-as"?this.itemsIndexAs=f:A==="initial-count"?this.initialCount=Number(f):A==="notify-dom-change"?this.notifyDomChange=f!==null:A==="target-framerate"&&(this.targetFramerate=Number(f))};
_.J.disconnectedCallback=function(){this.isDetached=!0;for(var A=0;A<this.instances.length;A++)QAi(this,A);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.J.connectedCallback=function(){var A=this,t=f1l(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Q=t(),q=vU(Q.path);if(q[0]===void 0||q[0]==="splices"||q[0]==="length")A.debounceRender();else{var e=q[0];if(e=A.instances[typeof e==="string"?Math.floor(Number(e)):e])q=[A.as].concat(_.YV(q.slice(1))),e.signalProxy.notifyPath(q,Q)}});
this.JSC$13717_didCallConnected=!0;IOT?$s0():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var f=(0,_.XD)((0,_.XD)(this).parentNode),X=0;X<this.instances.length;X++)f.insertBefore(this.instances[X].root,this);this.chunkingId&&this.render()}};
_.J.debounceRender=function(){this.JSC$13717_renderDebouncer=_.cr(this.JSC$13717_renderDebouncer,w$,this.JSC$13717_renderImpl.bind(this));_.Br(this.JSC$13717_renderDebouncer)};
_.J.render=function(){this.debounceRender();_.RY()};
_.J.JSC$13717_renderImpl=function(){var A=this;if(!this.parentSignalProxy.isDisposed){var t=this.items,f=qyC(this,t.length);JDi(this,t,f);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){A.chunkingId=null;if(A.shouldMeasureChunk){var X=performance.now()-A.renderStartTime;A.chunkCount=Math.round(Math.ceil(1E3/A.targetFramerate)/X*A.chunkCount)||1}A.shouldContinueChunking&&A.debounceRender()}));
xgT&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var qyC=function(A,t){var f=t,X=A.instances.length;if(A.initialCount){if(A.chunkCount){var Q=Math.min(Math.max(t-X,0),A.chunkCount);f=Math.min(X+Q,t)}else f=Math.min(t,A.initialCount),Q=Math.max(f-X,0),A.chunkCount=Q||1;A.shouldMeasureChunk=Q===A.chunkCount;A.shouldContinueChunking=f<t;A.renderStartTime=performance.now()}return f},JDi=function(A,t,f){for(var X=0;X<f;X++){var Q=A.instances[X],q=t[X];
Q?(Q.signalProxy.setWithPath([A.as],q),Q.signalProxy.setWithPath([A.indexAs],X)):U8T(A,q,X)}for(t=A.instances.length-1;t>=X;t--)f=A,Q=t,QAi(f,Q),_.U(f.instances.splice(Q,1)).next().value.signalProxy.dispose()},QAi=function(A,t){A=A.instances[t];
t=(0,_.XD)(A.root);for(var f=0;f<A.children.length;f++)t.appendChild(A.children[f])},U8T=function(A,t,f){var X={};
t=Object.assign({},eJp(A),(X[A.as]=t,X[A.indexAs]=f,X[A.itemsIndexAs]=f,X));var Q=new Aa(t,function(e){if(e!==A.as&&e!==A.indexAs){if(e===A.itemsIndexAs)return pN(Q,A.indexAs);var G=pN(A.parentSignalProxy,e).getChangeRecordSignal([]);e=_.hZ(void 0,void 0,"T21Pqc");var N=new ra(e);Q.effect(function(){var z=G();N.notifyPath(vU(z.path),{value:z.value})});
return N}});
A.parentSignalProxy.childSignalProxies.push(Q);X=XyT(A.templateInfo,A.templateInfo.nodeInfoList,Q,{eventListenerHost:A.eventListenerHost,getModel:function(){var e={};return Object.assign({},eJp(A),(e[A.as]=Q.model[A.as],e[A.indexAs]=Q.model[A.indexAs],e[A.itemsIndexAs]=Q.model[A.indexAs],e))},
hasInsertionPoint:A.templateInfo.hasInsertionPoint,thisCtx:A.eventListenerHost,methodInvocationRequirement:YNT,enabledSignal:A.stampingEnabled}).root;t={root:X,children:[],signalProxy:Q};X=_.U(X.childNodes);for(var q=X.next();!q.done;q=X.next())t.children.push(q.value);X=(X=A.instances[f+1])?X.children[0]:A;(0,_.XD)((0,_.XD)(A).parentNode).insertBefore(t.root,X);A.instances[f]=t},eJp=function(A){if((A=A.parentSignalProxy.model)&&!A.hostElement){var t={},f;
for(f in A)A.hasOwnProperty(f)&&(t[f]=A[f]);return t}};
fx.prototype.itemForElement=function(A){var t=this,f=this.instances.find(function(X){return X.children.includes(A)});
if(f)return Hm(this.parentSignalProxy.owner,function(){return f.signalProxy.getWithPath([t.as])})};
fx.prototype.indexForElement=function(A){var t=this.instances.findIndex(function(f){return f.children.includes(A)});
return t>=0?t:void 0};
_.PV.Object.defineProperties(fx.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var A=this;return Hm(this.parentSignalProxy.owner,function(){return f1l(A).getWithPath([])})},
set:function(A){Xwi(this,A)}},
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}}});
_.PV.Object.defineProperties(fx,{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",fx);var G5p,l18;_.Xk=new _.eh("STATE_STORE_TOKEN");G5p=new _.eh("SELECT_TOKEN");l18=new _.eh("DISPATCH_TOKEN");var sZu={getSelectFn:function(){var A;return(A=_.Px().resolve(_.z7(G5p)))!=null?A:H75},
getDispatchFn:function(){var A;return(A=_.Px().resolve(_.z7(l18)))!=null?A:_.ZK().dispatch.bind(_.ZK())},
getAppStore:function(){return _.Px().resolve(_.Xk)}},aZu,wyb=!1;var Q$q=function(){};var tbp=void 0;var N3p=function(){};
N3p.prototype.hasAttribute=function(A){if(A==="dir")return!1;if(A==="disable-upgrade"){var t,f;return(f=(t=this.hostElement)==null?void 0:t.hasAttribute("disable-upgrade"))!=null?f:!1}throw Error("Sg`"+A);};
N3p.prototype.attributeChangedCallbackWrapper=function(A,t,f){if(A==="disable-upgrade"&&this.__isUpgradeDisabled&&f===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var X;((X=this.hostElement)!=null?X:this).isConnected&&this.connectedCallback()}else t===f||this.__isReflecting||this.attributeChangedCallback(A,t,f)};
N3p.prototype.getExtraMethodsToForward=function(){for(var A=this,t=[],f=_.U(uhp),X=f.next(),Q={};!X.done;Q={tagName$jscomp$67:void 0,name$jscomp$629:void 0},X=f.next())Q.name$jscomp$629=X.value,X=void 0,Q.name$jscomp$629==="_setPendingProperty"?(Q.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),X=function(q){return function(e,G,N){OQ(q.tagName$jscomp$67,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return A._setPendingProperty(e,G,N)}}(Q)):X=function(q){return function(){return A[q.name$jscomp$629].apply(A,
_.YV(_.Hu.apply(0,arguments)))}}(Q),t.push([Q.name$jscomp$629,
X]);return t};
for(var U5p=dgT(oQ8((0,_.FX)(N3p))),NI5=["disabled","disable-upgrade"],zJk=(0,_.FX)(function(){}),Pf8=new Set(Object.getOwnPropertyNames(zJk.prototype)),iD5=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.YV(Pf8))),zOx=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),uhp=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),T3p=new Set([].concat(_.YV(zOx),_.YV(uhp),_.YV(Pf8))),iTK=_.U(T3p),OTk=iTK.next();!OTk.done;OTk=iTK.next())I9q.add(OTk.value);var TIb={created:function(){msp(this);this.initializeInjection()}};var bD0=!1,KN=window.ShadyDOM,D5T=["appendChild","insertBefore","removeChild","replaceChild"],nKl=[Node];KN&&nKl.push(KN.Wrapper);var ZDx,oKl,$5s={};var gR,wc0=new WeakMap,ab5=new Set;var tsx=new Set("context didCallReady is info params signalProxy".split(" ")),Xkz="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Q2b="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var cDT=Df({entities:kfx}),B3K=new SR(cDT);var MVp=function(){return _.uo.apply(this,arguments)||this};
_.R(MVp,_.uo);_.PV.Object.defineProperties(MVp.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return B3K}}});
_.V([_.zh()],MVp);_.Qv=[sd.prototype,MVp.prototype];_.qX={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var A=this,t={};setTimeout(function(){var f;return _.s9((f=A.hostElement)!=null?f:A,"yt-live-chat-add-tooltip-target",t)},0);
this.handler_=t.handler},
detached:function(){if(this.handler_){var A;this.handler_.removeElementFromSupportingTooltips((A=this.hostElement)!=null?A:this)}this.handler_=null}}};_.fI=new _.eh("ICON_MANAGER_TOKEN");var Cfw=[48,20,18,16,15,13,12],mgb=new Map,Ms0=new Set,Oel=new Set,Brb=new Set,iel=new Set,cmz=new Set,h8x=new Promise(function(A){var t=!1,f=!1,X=!1,Q=[],q=function(e){if("detail"in e)if(e=e.detail,e.name==="yt-icons")CDs(e),t=!0;else if(e.name==="yt-sys-icons")CDs(e),f=!0;else{var G;((G=e.name)==null?0:G.includes("yt-sys-icons"))&&e.size!==24&&(CDs(e,!0),Q.push(e.size),Q.length===Cfw.length&&(X=!0))}t&&f&&X&&(window.removeEventListener("iron-iconset-added",q),A())};
window.addEventListener("iron-iconset-added",q)}),hJS=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"]]);_.Ja={};_.Ja.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.dF,computeHref_:function(A,t){t=t===void 0?!1:t;if(!A||A.commandExecutorCommand)return null;var f=lBs(A,t);return t||f!==null?f?_.M("enable_polymer_resin")?_.of(f).toString():f:null:(_.K4(new _.xj("computeHref was null",this.is,A)),null)},
computeOptionalHref_:function(A){return this.computeHref_(A,!0)},
computeNofollow_:function(A){return A?tLu(A)?"nofollow":null:null},
computeIcon_:function(A){return A&&A.iconType?_.t7(A.iconType):""},
resolveCommand:function(A,t,f){t=t===void 0?{}:t;return _.Qx(A,this.hostElement,t,f===void 0?!1:f)}};var m8S,U$;_.RJp={};m8S=null;
U$={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_=Ngx(this.viewroot));_.FD(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var A=this;this.unobserve_();if(_.M("kevlar_vimio_use_shared_monitor"))LCx(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 t=[];this.visibilityOptionVisible_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=t}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){bes(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 A=_.Hd(this.parentNode,function(f){var X,Q=(X=f.polymerController)!=null?X:f;return!!Q.getVisibilityObserverForChild&&Q.getVisibilityObserverForChild()},!0);
if(A){var t;this.localVisibilityObserver_=((t=A.polymerController)!=null?t:A).getVisibilityObserverForChild()}else m8S||(m8S=Ngx()),this.localVisibilityObserver_=m8S;return this.localVisibilityObserver_},visibilityCallback:function(A){A?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.M("kevlar_use_vimio_behavior")||(U$={});U$&&!_.M("kevlar_use_vimio_behavior")&&(delete U$.attached,delete U$.detached);_.RJp.YtVisibilityObserverBehavior=[U$];var bTT={};bTT.YtVisualElementBehavior=[_.RJp.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.M("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.M("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var A=this.getScreenLayer&&this.getScreenLayer(),t=this.getVisibilityLogger();t&&t.reportShown(this,void 0,A)}},
onHidden:function(){if(_.M("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.M("kevlar_vimio_use_shared_monitor")){var A=this.getScreenLayer&&this.getScreenLayer(),t=this.getVisibilityLogger();t&&t.reportHidden(this,void 0,A)}},
getVisibilityLogger:function(){return _.M("kevlar_use_vimio_behavior")?_.J7():null},
shouldSkipLogging:function(){if(_.ah("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var A=this.getParentRenderer&&this.getParentRenderer();if(!A)return!1;var t,f=(t=A.polymerController)!=null?t:A;if(!f.data)return!1;A=this.data.trackingParams;A=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:A;var X;t=(X=f.data)==null?void 0:X.trackingParams;var Q,q;t=((Q=f.data)==null?0:Q.loggingDirectives)?(q=f.data)==null?void 0:q.loggingDirectives.trackingParams:t;return A&&t&&A===
t}}];var nQx=new Map,Pn;var KoT=function(A){this.layer=A},lg=function(A){return A.layer!==void 0?A.layer:A.parent?lg(A.parent):A.layer=0};var YNp;_.g={};YNp=0;_.g.YtRendererBehavior=[_.Ja.YtComponentBehavior,bTT.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_:_.M("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var A,t;(t=(A=this.monitorScrollElement)!=null?A:this.hostElement)==null||t.removeEventListener("scroll",_.JY(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();pkb(this.hostElement);nKb(_.ZQ(),this.hostElement);$7.delete(this.hostElement)},
registerRenderer:function(A){var t;((t=A.polymerController)!=null?t:A).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(A),this.markDirty())},
unregisterRenderer_:function(A){this.useVimio_||(this.childCache_.delete(A),this.markDirty())},
attached:function(){var A=this,t=this.getParentRenderer();if(t){var f,X,Q;(X=(f=(Q=t.polymerController)!=null?Q:t).registerRenderer)==null||X.call(f,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var q,e;(e=(q=this.monitorScrollElement)!=null?q:this.hostElement)==null||e.addEventListener("scroll",_.JY(this,this.onScroll))}_.a6.addJob(function(){Dg0(A.hostElement)},8);
f=new KoT(this.screenLayer||void 0);(t=$7.get(t))&&t.layerNode&&(f.parent=t.layerNode);t={};ilb(this.hostElement,(t.isRenderer=!0,t.layerNode=f,t[g0b]=this.data,t))},
getParentRenderer:function(){for(var A=this.hostElement.parentNode,t,f;A&&((t=$7.get(A))==null||!t.isRenderer)&&!((f=A.polymerController)!=null?f:A).isRenderer_;)A=A.parentNode||A.host;return A},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.M("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Ka("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.M("debug_web_ve_data")&&this.data.trackingParams){var A="";try{A=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(f){_.HQ(f)}if(A){var t=LPp(A,1);t!==void 0&&(this.hostElement.dataset.veIndex=String(t));A=LPp(A,2);
A!==void 0&&(this.hostElement.dataset.ve=String(A))}}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,_.M("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.zV(this.data.loggingDirectives.trackingParams)),this.visualElement=_.UX(_.er(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var A=this.data.targetId;_.Fwi(_.ZQ(),A,this.hostElement)}else nKb(_.ZQ(),this.hostElement)},
onScroll:function(){var A=Date.now();A-this.lastHandledScroll_<50||(this.lastHandledScroll_=A,this.markDirty())},
markDirty:function(){_.M("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Vs0(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var A=this.getParentRenderer();if(A&&(A=$7.get(A))&&A.layerNode)return lg(A.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.YV(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var A=0;A<this.data.impressionEndpoints.length;A++)this.sendImpression(this.data.impressionEndpoints[A]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(A){A.clickTrackingParams&&delete A.clickTrackingParams;var t,f;(A==null?0:(t=A.commandMetadata)==null?0:(f=t.webCommandMetadata)==null?0:f.sendPost)?_.Al(this.hostElement,[A,{impression:!0}]):_.tl(this.hostElement,[A],this.hostElement)},
logExplicitClick:function(A){var t=_.Ws(this.getScreenLayer());if(t){var f,X=(f=A.polymerController)!=null?f:A;A=X.visualElement;X=X.trackingParams||X.clickTrackingParams;!A&&X&&(A=_.zV(X));A&&_.o7(t,A)}}}];var WWE={},eD=function(){return _.uo.apply(this,arguments)||this};
_.R(eD,_.uo);eD.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
eD.prototype.onPdgItemBehaviorClick=eD.prototype.onPdgItemBehaviorClick;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],eD.prototype,"data",void 0);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],eD.prototype,"onPdgItemBehaviorClick",null);_.V([_.zh()],eD);WWE.YtPdgLiveChatItemBehavior=[eD.prototype,_.g.YtRendererBehavior];var yDS;var vhk;_.GL={};_.GL.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var lc=function(){var A=is.apply(this,arguments)||this;A.switchTemplateAtRegistration=!1;return A};
_.R(lc,is);lc.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||SNu(this),_.BZb(this,"doRender"),this.doRender())};
lc.prototype.debounceRender=function(){this.templatingFn&&_.Ig(this,"doRender",this.doRender)};
lc.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.HQ(Error("bh"))};
lc.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.V([fCx()],lc);var LW8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,NX={},KCx=(NX[1]={filterString:null,isUnwrappable:null,unwrap:null},NX[2]={filterString:function(A,t,f){return fW(f)},
isUnwrappable:function(A){return A instanceof gW},
unwrap:function(A){return si(A)}},NX[3]={filterString:function(A,t,f){return LW8.test(f)?f:ZF.toString()},
isUnwrappable:function(A){return xl(A)},
unwrap:function(A){return _.j3(A)}},NX[4]={filterString:function(){return ZF.toString()},
isUnwrappable:function(A){return A instanceof Lb},
unwrap:function(A){return _.Ei(A).toString()}},NX[5]={filterString:function(A,t,f){return f},
isUnwrappable:function(A){return typeof A==="string"},
unwrap:function(A){return A.toString()}},NX[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(A){return A instanceof _.X3},
unwrap:function(A){return qW(A)}},NX[8]={filterString:function(A,t,f){f=String(f).toLowerCase();
return LEs(A,t,f)?f:"zClosurez"},
isUnwrappable:null,unwrap:null},NX[10]={filterString:null,isUnwrappable:null,unwrap:null},NX);P9[sH["default"]]=wkg;var s2x=[];(function(){var A=Gw;Gw=function(t){A==null||A(t);cn(function(){for(var f=0;f<t.length;f++)kCu(t[f])})}})();var pwp=function(){var A=_.uo.apply(this,arguments)||this;A.hasUnmounted=!1;return A};
_.R(pwp,_.uo);_.J=pwp.prototype;_.J.beforeRegister=function(){var A=this.doIdomRender;this.templatingFn?_.HQ(Error("ah")):(this.templatingFn=A,this.switchTemplateAtRegistration=!0,aOx(this))};
_.J.attached=function(){};
_.J.detached=function(){kCu(this.hostElement)};
_.J.renderIdom=function(){throw Error("dh");};
_.J.doIdomRender=function(){var A=this;Rqq(this.hostElement,function(){A.renderIdom()})};
_.V([_.zh()],pwp);var Eh7=[lc.prototype,pwp.prototype];var nhi,D88=function(){return nhi!==void 0?nhi:nhi=document.createElement("template")};
document.head.appendChild(D88().content);var FWT;var I1f,x8C=function(){return I1f!==void 0?I1f:I1f=document.createElement("template")};
document.head.appendChild(x8C().content);var jAl;var Yyb=document.head,VVp=Yyb.appendChild,ZTi;if(jAl===void 0){var ohk=document.createElement("template");_.m(ohk,"\x3c!--css-build:shady--\x3e");ohk.content.insertBefore(x8C().content.cloneNode(!0),ohk.content.firstChild);jAl=ohk}ZTi=jAl;VVp.call(Yyb,ZTi.content);var d8f,SyE=function(){return d8f!==void 0?d8f:d8f=document.createElement("template")};
document.head.appendChild(SyE().content);var $8K;var HTT=document.head,a1i=HTT.appendChild,KWi;if($8K===void 0){var ghT=document.createElement("template");_.m(ghT,"\x3c!--css-build:shady--\x3e");ghT.content.insertBefore(SyE().content.cloneNode(!0),ghT.content.firstChild);$8K=ghT}KWi=$8K;a1i.call(HTT,KWi.content);var wwl=document.head,sAw=wwl.appendChild,k5T;if(FWT===void 0){var rDT=document.createElement("template");_.m(rDT,"\x3c!--css-build:shady--\x3e");rDT.content.insertBefore(D88().content.cloneNode(!0),rDT.content.firstChild);FWT=rDT}k5T=FWT;sAw.call(wwl,k5T.content);var AP8,t6p=function(){return AP8!==void 0?AP8:AP8=document.createElement("template")};
document.head.appendChild(t6p().content);var fP7;_.FH=new _.eh("DARK_THEME_TOKEN");var ZTT=new _.UA("accessibilityProperties");var VVb=new _.UA("layoutProperties");var ohz=new _.UA("imageType");var XWC={};if("ytAttributedStringLinkHoverColor"in XWC)throw Error("gh`ytAttributedStringLinkHoverColor");(function(A,t){XWC[A]="value"in t&&"unit"in t?QAT(A,t):function(f){try{return t(f)}catch(X){throw Error("eh`"+A+"`"+X.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Qnp=function(A){var t=this;this.holdTime=A===void 0?500:A;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(f){var X=new CustomEvent("LONG_PRESS"),Q;(Q=f.changedTouches[0].target)==null||Q.dispatchEvent(X)};
this.ontouchstart=function(f){t.longPressTimeout=_.NB(_.a6,function(){t.onlongpress(f);t.longPressOccurred=!0},t.holdTime)};
this.ontouchmove=function(){_.a6.cancelJob(t.longPressTimeout);t.longPressTimeout=NaN;t.longPressOccurred=!1;t.moveOccurred=!0};
this.ontouchend=function(f){if(t.longPressTimeout&&!t.longPressOccurred&&!t.moveOccurred){var X;(X=f.changedTouches[0].target)==null||X.dispatchEvent(new Event("click"))}_.a6.cancelJob(t.longPressTimeout);t.longPressTimeout=NaN;t.longPressOccurred=!1;t.moveOccurred=!1}};var hJg=function(A,t){Qnp.call(this,t);var f=this;this.callback=A;this.onlongpress=function(X){var Q;(Q=f.callback)==null||Q.call(f,X)}};
_.R(hJg,Qnp);var RJ0=function(A,t){var f=Object.assign({},t);A=_.U(new Map([["ontouchstart",A.ontouchstart],["ontouchend",A.ontouchend],["ontouchmove",A.ontouchmove]]));for(var X=A.next(),Q={};!X.done;Q={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},X=A.next()){var q=_.U(X.value);X=q.next().value;q=q.next().value;Q.eventName$jscomp$103=X;Q.eventHandler$jscomp$2=q;t[Q.eventName$jscomp$103]=function(e){return function(G){var N;(N=f[e.eventName$jscomp$103])==null||N.call(f,G);(0,e.eventHandler$jscomp$2)(G)}}(Q)}};_.i2=new _.eh("COMMAND_HANDLER_TOKEN");var JDT=new _.UA("parallelCommand");var G5b=new _.UA("performOnceCommand");var eJb=new _.UA("serialCommand");var l1q=void 0;var qci=function(){this.data=[];this.consumer=null};
qci.prototype.push=function(A){this.consumer?this.consumer(A):this.data.push(A)};var V9={};_.hZ(V9,void 0,"sgPmTd");_.hZ(null,void 0,"jypsq");_.hZ(null,void 0,"mWiOof");var Vxz=new qci;var cDx=[wuK,sf8,kHE,At7,rrT,glp,tOT,fHk];var jA5=new _.UA("bracketTextDecorator");var nI=new _.UA("highlightTextDecorator");_.xA=new _.eh("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var nhT=function(){},JP7;
(JP7=window.requestIdleCallback)==null||JP7.bind(window);var FWp={calledOnce:!1,state:"visible"},D8q={calledOnce:!1,state:"hidden"};var U7l=new _.eh("ICON_WIZ_COMPONENT_TOKEN");_.el=_.I(function(A){var t=A.icon;var f=A.active;var X=A.className;var Q=A.style;var q=A.dataSelected;var e=A.dataDisabled;var G=A.role;var N=A.animateIcon;var z=A.themeOverride;var T=A.ariaHidden;var O=A.ariaExpanded;var c=A.ariaLabel;var B=A.tabindex;var h=A.id;var W=A.size;var L=A.iconFilter;var E=A.gradientColor;var D=A.onKeydown;var S=A.title;return _.u(_.P,{cond:t,then:function(){var Z=_.Px().resolve(U7l);return _.u(Z,{icon:t,dataSelected:q,dataDisabled:e,animateIcon:N,themeOverride:z,ariaExpanded:O,
tabindex:B,id:h,active:f,size:W,role:G,className:X,ariaHidden:T,ariaLabel:c,style:function(){return Q!=null&&Q()||W==null||!W()?Q==null?void 0:Q():"width: "+(W==null?void 0:W())+"px;height: "+((W==null?void 0:W())+"px;")},
title:S,iconFilter:L,gradientColor:E,onKeydown:D})}})},"l");
_.el.idomCompat={callbacks:{onKeydown:!0}};var Qnb=new _.UA("borderImageProcessor");var U75=window.devicePixelRatio||1;var N1z=new Map([["yt_outline_bag_black_24","bag"]]);var uc=function(A){var t=this;this.margin=.1;this.whenInViewportWithMargin=A;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){t.requestScan()});
window.addEventListener("touchend",function(){t.requestScan()});
window.addEventListener("updateui",function(){t.requestScan()});
var f=new _.qI((0,_.F1)(this.requestScan,this),100);window.addEventListener("scroll",function(){f.fire()},!0);
window.addEventListener("resize",(0,_.F1)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){t.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.F1)(this.requestScan,this))};
uc.prototype.observe=function(A){this.observationTargets.includes(A)||this.observationTargets.push(A)};
uc.prototype.unobserve=function(A){this.observationTargets=this.observationTargets.filter(function(t){return t!==A})};
uc.prototype.requestScan=function(){var A=this;this.scanRequested||(cn(function(){eVi(A)}),this.scanRequested=!0)};
var eVi=function(A){var t=(1+A.margin)*(document.documentElement.clientHeight||window.innerHeight);A.observationTargets=A.observationTargets.filter(function(f){var X=f.getBoundingClientRect();(X=t>X.top&&!!X.height)&&A.whenInViewportWithMargin(f);return!X&&f.parentNode});
A.scanRequested=!1};
uc.prototype.disconnect=function(){this.observationTargets=[]};var GXi,N1k;GXi=_.U(_.hZ(iiu(),void 0,"O3X2wd"));_.lPp=GXi.next().value;N1k=GXi.next().value;window.addEventListener("resize",function(){N1k(iiu())});var uep={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},zVb=void 0,P47=window.innerWidth,T1T=window.innerHeight;window.addEventListener("resize",function(){zVb=void 0});var iiK;if("IntersectionObserver"in window)iiK=B1q();else{if(zVb===void 0){var OiK;OiK="matchMedia"in window?window.matchMedia(uep.landscape+","+uep.portrait).matches:void 0;zVb=OiK!==void 0?OiK:P47>=930&&T1T>=550||P47>=550&&T1T>=930}iiK=zVb?{observe:function(A){cn(function(){var t;(t=A.onViewportEntered)==null||t.call(A)})},
unobserve:function(){}}:new uc(function(A){cn(function(){var t;
(t=A.onViewportEntered)==null||t.call(A)})})}var Oiu=iiK;var cPk=_.I(function(A){var t=!1,f=_.GU("img",function(X){_.dD(function(){t=!0;X.onload=null})});
_.oo(function(){var X,Q=(X=A.data)==null?void 0:X.call(A),q,e=(q=A.getSrc)==null?void 0:q.call(A).cb,G;X=(G=A.config)==null?void 0:G.call(A);if(G=f.value)if(q=function(z,T){if(!t)return e?e(z,T):z},hV0(G,X),_.M("web_image_dont_reload_same_src")&&C4x(G,Q,q))_.M("web_image_dont_reload_same_src_simulate_load")&&G.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var N;M6T(G,Q||null,q,X,(N=A.lazy)==null?void 0:N.call(A))}},"zS0jKb");
return _.u("img",{el:f})},"n");
cPk.idomCompat=!0;_.YA=_.I(function(A){var t=function(){var f,X=A.data(),Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K,k,Gz,Tz,y5,cp,iu,Fb,xq,Yq,zk;var PT={contentMode:(Q=A.contentMode)==null?void 0:Q.call(A),loadedClass:(q=A.loadedClass)==null?void 0:q.call(A),isPreloaded:(e=A.isPreloaded)==null?void 0:e.call(A),notifyOnLoaded:(G=A.notifyOnLoaded)==null?void 0:G.call(A),notifyOnUnloaded:(N=A.notifyOnUnloaded)==null?void 0:N.call(A),preferredThumbnail:(z=A.preferredThumbnail)==null?void 0:z.call(A),preserveHeight:(T=A.preserveHeight)==
null?void 0:T.call(A),preserveWidth:(O=A.preserveWidth)==null?void 0:O.call(A),objectPosition:(c=A.objectPosition)==null?void 0:c.call(A),targetWidth:(B=A.targetWidth)==null?void 0:B.call(A),targetHeight:(h=A.targetHeight)==null?void 0:h.call(A),shouldShowPlaceholder:(W=A.shouldShowPlaceholder)==null?void 0:W.call(A),useWidth:(L=A.useWidth)==null?void 0:L.call(A),isToggled:(E=A.isToggled)==null?void 0:E.call(A),alt:(D=A.alt)==null?void 0:D.call(A),className:(S=A.className)==null?void 0:S.call(A),
onerror:A.onerror,onload:A.onload,style$:((Z=A.style$)==null?void 0:Z.call(A))||((d=A.style)==null?void 0:d.call(A)),color:(K=A.color)==null?void 0:K.call(A),width:(k=A.width)==null?void 0:k.call(A),height:(Gz=A.height)==null?void 0:Gz.call(A),"aria-hidden$":(Yq=(Tz=A["aria-hidden$"])==null?void 0:Tz.call(A))!=null?Yq:(y5=A.ariaHidden)==null?void 0:y5.call(A),draggable:(cp=A.draggable)==null?void 0:cp.call(A),"data-disabled$":(zk=(iu=A["data-disabled$"])==null?void 0:iu.call(A))!=null?zk:(Fb=A.dataDisabled)==
null?void 0:Fb.call(A),size:(xq=A.size)==null?void 0:xq.call(A)};return biT(X,PT,(f=A.hideOn404)==null?void 0:f.call(A))};
return _.u(_.j2,null,_.u(_.FE,{when:function(){var f;return((f=t())==null?void 0:f.type)==="image"}},function(){return _.u(cPk,{data:function(){return t().image},
getSrc:{cb:function(f,X){var Q=t().image.sources,q=t().config.isPreloaded,e=t().config.useWidth,G=t().config.targetWidth,N=t().config.targetHeight,z=t().config.preferredThumbnail;return _.eVT(X,Q,q,e,G,N,z)||""}},
config:function(){var f=t().config,X;for(X in f)f[X]===void 0&&delete f[X];return f},
lazy:A.renderLazy})}),_.u(_.FE,{when:function(){var f;
return((f=t())==null?void 0:f.type)==="icon"}},function(){return _.u(_.el,{icon:function(){return t().iconName},
role:function(){return t().config.role},
className:function(){return t().config.className},
style:function(){return t().config.style$+";width: "+(t().config.width+"px;height: ")+(t().config.height+"px;color: ")+(t().config.color+";")},
ariaLabel:function(){return t().config["aria-label$"]},
ariaHidden:function(){return t().config["aria-hidden$"]},
dataDisabled:function(){return t().config["data-disabled$"]},
active:function(){return t().config.isToggled},
size:function(){return t().config.size}})}))},"o");
_.YA.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var B18=function(A){return function(t){return _.u(ZW5,null,function(){var f=t.data(),X=_.$f(t.config);return _.u(OWg,null,function(){return void A(f,X)})})}}(pWx),vWx=_.I(function(A){var t=function(Q){var q=_.M("web_wiz_attributed_string_skip_empty")?Q:o8(function(){return Sys(Q())},{isEqual:yP5});
var e,G,N=_.ZY(function(h){e=q();G=SG(function(){for(var W=_.U(c()),L=W.next();!L.done;L=W.next()){L=EWp(L.value);L=typeof L==="string"?document.createTextNode(L):L;if(!(L instanceof Node)){W=new _.xj("Part is not a node",L,typeof L);_.HQ(W);break}h.appendChild(L)}})}),z=_.dR(A.config),T=function(){var h;
return HTp(q(),(h=z())==null?void 0:h.ariaLabel)},O=o8(z,{isEqual:D7l}),c=function(){var h=d8b(q(),O());
a1T(h,O());return q().content?rDp(q().content,h).parts:[]},B=!0;
_.oo(function(){q();O();if(B){B=!1;var h=yP5(q(),e);if(!_.M("web_attributed_string_race_fix")||h)return}var W=c();Promise.resolve().then(function(){var L=N.value;if(L){L.innerText="";var E;(E=G)==null||E();G=_.Vz(L,function(){return _.u(nWq,{parts:W})},"p")}})},"vCZ0fd");
return _.u("span",{el:N,class:function(){return q()&&vhz(q(),z())},
dir:function(){var h;return((h=z())==null?0:h.userInput)?"auto":void 0},
"aria-label":function(){var h;return T()?(h=z())==null?void 0:h.ariaLabel:void 0},
role:function(){return T()?"text":void 0}})},f=_.M("web_wiz_attributed_string_skip_empty")?o8(function(){var Q,q=(Q=A.text)==null?void 0:Q.call(A);
if(q)return Q=Sys(q),(Q==null?0:Q.content)?Q:void 0},{isEqual:yP5}):A.text,X;
return((X=A.config)==null?0:X.contentAsserted)?t(f):_.u(_.P,{cond:f,then:t})},"r");
vWx.idomCompat=!0;_.zL=_.I(function(A){var t=_.dR(A.text),f=FNu(A);A.contentAsserted!==void 0&&(f.contentAsserted=!0);return _.M("attr_string_reactive")?_.u(vWx,{text:t,config:f}):_.u(_.P,{cond:function(){var X;return t()&&((X=Sys(t()))==null?void 0:X.content)},
then:function(){return _.u(B18,{data:A.text,config:f})},
debugInstance:"Apcuac"})},"s");
_.zL.idomCompat=!0;var IPq=function(A,t,f){t=t===void 0?"unknown":t;f=f===void 0?{}:f;_.xj.call(this,A+" ("+t+")",Object.assign({},{name:"YtWcwError",tagName:t},f));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(IPq,_.xj);_.$A=new WeakMap;_.Sr=!1;var Ziu,oWq,V6s;_.PS=Symbol("ih");_.dt=Symbol("jh");Ziu=Symbol("kh");oWq=new Set(Object.getOwnPropertyNames(Element.prototype));V6s=Symbol("lh");var M6i=_.I(function(A){return _.u("yt-attributed-string",{"aria-label":A.ariaLabel,hidden:A.hidden,id:A.id,class:A.className,"force-default-style":A.forceDefaultStyle},_.u(_.zL,{text:A.data,ariaLabel:A.ariaLabel,ellipsisTruncate:A.ellipsisTruncate,isOverlay:A.isOverlay,linkInheritColor:A.linkInheritColor,noPreWrap:A.noPreWrap,noWrap:A.noWrap,userInput:A.userInput,noEndpoints:A.noEndpoints,headerRuns:A.headerRuns,isHeadline:A.isHeadline}))},"t");
_.M("web_wiz_attributed_string")&&_.Hn(M6i,"yt-attributed-string",{props:{ariaHidden:_.PS,ariaLabel:_.PS,className:_.PS,ellipsisTruncate:_.PS,isOverlay:_.PS,linkInheritColor:_.PS,noEndpoints:_.PS,noStyleRuns:_.PS,noLinkColor:_.PS,noPreWrap:_.PS,noWrap:_.PS,skipOnClick:_.PS,userInput:_.PS,headerRuns:_.PS,isHeadline:_.PS,id:_.PS,data:_.PS,hidden:_.PS,forceDefaultStyle:_.PS,text:_.dt,disableUpgrade:_.dt,disable:_.dt,slot:_.dt}});var TL=function(){return _.F.apply(this,arguments)||this};
_.R(TL,_.F);TL.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},pWx(this.data,this.config))};
_.V([_.b(Eh7),_.H("design:type",Object)],TL.prototype,"ytIdomTemplatingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],TL.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],TL.prototype,"ariaLabel",void 0);_.V([_.n(),_.H("design:type",Boolean)],TL.prototype,"disable",void 0);_.V([_.n(),_.H("design:type",Boolean)],TL.prototype,"ellipsisTruncate",void 0);_.V([_.n(),_.H("design:type",Boolean)],TL.prototype,"isOverlay",void 0);
_.V([_.n(),_.H("design:type",Boolean)],TL.prototype,"linkInheritColor",void 0);_.V([_.n(),_.H("design:type",Boolean)],TL.prototype,"noPreWrap",void 0);_.V([_.n(),_.H("design:type",Boolean)],TL.prototype,"noWrap",void 0);_.V([_.n(),_.H("design:type",Boolean)],TL.prototype,"userInput",void 0);_.V([_.n(),_.H("design:type",Boolean)],TL.prototype,"noEndpoints",void 0);_.V([_.n(),_.H("design:type",Array)],TL.prototype,"headerRuns",void 0);
_.V([_.WU({is:"yt-attributed-string",disableElementRegistration:!0})],TL);
_.M("web_wiz_attributed_string")||_.Y(TL,"yt-attributed-string",function(){if(fP7===void 0){var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
A.content.insertBefore(t6p().content.cloneNode(!0),A.content.firstChild);fP7=A}A=fP7;return A},{mode:2});var C4T,hVp,gWg;C4T=function(){this.firstThumbnailLoaded=!1};
_.RVl=function(){hVp||(hVp=new C4T);return hVp};
gWg=function(A){var t=_.RVl();t.firstThumbnailLoaded||(t.firstThumbnailLoaded=!0,_.Wt("ftl",A))};
C4T.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Scg=0,KNg=new WeakMap,Hix=0,gt=new Set;var m7p,bii=function(){return m7p!==void 0?m7p:m7p=document.createElement("template")};
document.head.appendChild(bii().content);var WNi;var rPb,tFu,ic;_.kA=_.Xb.caches;ic=function(){};
ic.prototype.open=function(A){return _.kA.open(yPC(A))};
ic.prototype.has=function(A){return _.kA.has(yPC(A))};
ic.prototype.delete=function(A){return _.kA.delete(yPC(A))};
ic.prototype.match=function(A,t){var f=this,X,Q,q,e,G,N;return _.l(function(z){switch(z.nextAddress){case 1:return z.yield(f.keys(),2);case 2:X=z.yieldResult,Q=_.U(X),q=Q.next();case 3:if(q.done){z.jumpTo(5);break}e=q.value;return z.yield(f.open(e),6);case 6:return G=z.yieldResult,z.yield(G.match(A,t),7);case 7:if(N=z.yieldResult)return z.return(N);q=Q.next();z.jumpTo(3);break;case 5:return z.return()}})};
var fDx=function(){};
_.R(fDx,ic);var yPC=function(A){if(A.includes(":"))throw Error("oh`"+A);return A+":"+_.F_("CacheStorage get")};
fDx.prototype.keys=function(){var A,t,f,X,Q,q,e,G,N;return _.l(function(z){if(z.nextAddress==1)return A=[],t=_.F_("CacheStorage keys"),z.yield(_.kA.keys(),2);f=z.yieldResult;X=_.U(f);for(Q=X.next();!Q.done;Q=X.next())q=Q.value,e=_.kXp(q),G=e.originalName,N=e.datasyncId,N===t&&A.push(G);return z.return(A)})};var O$=function(){var A=_.F.apply(this,arguments)||this;A.objectURL=null;A.loadTime=Infinity;return A};
_.R(O$,_.F);_.J=O$.prototype;_.J.renderIdom=function(){sn0(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&RV5(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.J.objectFitToContentMode=function(A){switch(A){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.J.logThumbnailFailureVe=function(){var A=_.Xl(197497);_.jN(_.er(),A);var t=_.Ws();t&&A&&t&&_.Vg(t,[A])};
_.J.loadImageFromCacheIfExists=function(A){var t=this,f=A.target;(f==null?0:f.src)&&QUp(f.src).then(function(X){t.objectURL=_.dW(X).toString();t.setSrc(f,t.objectURL)}).catch(function(){})};
_.J.onError=function(A){var t=this;if(_.M("web_use_cache_for_image_fallback")){var f=A.target;f&&QUp(f.src).then(function(X){t.objectURL=_.dW(X).toString();t.setSrc(f,t.objectURL)}).catch(function(){_.M("kevlar_woffle_log_thumbnail_failure_ve")&&t.logThumbnailFailureVe();
_.M("kevlar_woffle_fallback_image")&&t.setSrc(f,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.J.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.J.setConfig=function(){var A=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(t){A.loadImageFromCacheIfExists(t);A.revokeObjectURL();wW5(A.hostElement)},
onerror:function(t){A.onError(t)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.M("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.J.setSrc=function(A,t){t&&(A.src=t)};
_.V([_.b(Eh7),_.H("design:type",Object)],O$.prototype,"ytIdomTemplatingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],O$.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],O$.prototype,"alt",void 0);_.V([_.n(),_.H("design:type",Boolean)],O$.prototype,"ftlEligible",void 0);_.V([_.n(),_.H("design:type",Number)],O$.prototype,"height",void 0);_.V([_.n(),_.H("design:type",Boolean)],O$.prototype,"notifyOnLoaded",void 0);
_.V([_.n(),_.H("design:type",Boolean)],O$.prototype,"notifyOnUnloaded",void 0);_.V([_.n(),_.H("design:type",String)],O$.prototype,"objectFit",void 0);_.V([_.n(),_.H("design:type",String)],O$.prototype,"objectPosition",void 0);_.V([_.n(),_.H("design:type",String)],O$.prototype,"preferredThumbnail",void 0);_.V([_.n(),_.H("design:type",Boolean)],O$.prototype,"preserveHeight",void 0);_.V([_.n(),_.H("design:type",Boolean)],O$.prototype,"preserveWidth",void 0);
_.V([_.n({value:!0}),_.H("design:type",Boolean)],O$.prototype,"useWidth",void 0);_.V([_.n({value:function(){return!_.Ka("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.H("design:type",Boolean)],O$.prototype,"shouldRenderLazy",void 0);_.V([_.n(),_.H("design:type",Number)],O$.prototype,"width",void 0);_.V([_.WU({is:"yt-image",disableElementRegistration:!0})],O$);
_.Y(O$,"yt-image",function(){if(WNi===void 0){var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);A.content.insertBefore(bii().content.cloneNode(!0),A.content.firstChild);
WNi=A}A=WNi;return A},{mode:2});var cS=function(){return _.F.apply(this,arguments)||this};
_.R(cS,_.F);cS.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var A=_.bP(this.data.onVisibleCommand);A&&this.ytComponentBehavior.resolveCommand(A)}};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],cS.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.GL.YtVisibilityBehavior),_.H("design:type",Object)],cS.prototype,"ytVisibilityBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cS.prototype,"data",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],cS);
_.Y(cS,"yt-bumper-user-edu-content-view-model",function(){if(vhk===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;yDS===void 0&&(yDS=document.createElement("template"));var X=yDS;f.call(t,X.content.cloneNode(!0),A.content.firstChild);vhk=A}A=vhk;return A},{mode:0});var vWw;var LNp,pW7=function(){if(LNp!==void 0)return LNp;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;vWw===void 0&&(vWw=document.createElement("template"));var X=vWw;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return LNp=A};var EWT;_.BS={};EWT=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"]);_.BS.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var A=this.getContext_();return A?A.getTaskManager():_.a6},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var A=_.s9(this.hostElement,"yt-get-context-provider",{});A.detail&&A.detail.contextProvider?this.cachedProviderNode_=A.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return EWT.has(this.hostElement.localName)},
getNetworkManager:function(){var A=this.getContext_();if(A)return A.getNetworkManager()}};var lDu,nW8,FNK,D7b;_.MX=function(A){var t=nW8.get(A);if(t&&(t=t.pop()))return D7b++,t;FNK++;try{var f=document.createElement(A)}catch(X){throw new _.xj("ElementPool failed to create element",A,X.message);}return f};
lDu=function(A){var t=A.is;if(t){var f=nW8.get(t);f||(f=[],nW8.set(t,f));var X=_.ah("ELEMENT_POOL_CONFIG")||{};f.length>=(X[t]!==void 0?X[t]:_.ah("ELEMENT_POOL_DEFAULT_CAP",0))||f.push(A)}else _.K4(new _.xj("Element pool should only handle custom elements:",A.nodeName))};
nW8=new Map;FNK=0;D7b=0;var rt=new WeakMap,GMg=new WeakMap;var x7S;_.Cx=function(A,t,f){f=f===void 0?_.m_():f;this.JSC$13984_defaultPriority=A;this.signal=t;this.scheduler=f;this.nextJobDescriptor=0;this.JSC$13984_parkedJobs=[];this.scheduledJobs=new Map};
_.ha=function(A,t){if(t){var f=_.TT();A.signal&&!_.iE(f,A.signal)?(f.addListener(A.signal,function(){A.processSignal()}),A.JSC$13984_parkedJobs.push({job:t,
priority:void 0})):IP8(A,t)}};
x7S=function(A,t){if(t!==A.JSC$13984_defaultPriority){A.JSC$13984_defaultPriority=t;for(var f=_.U(A.scheduledJobs.values()),X=f.next();!X.done;X=f.next())X=X.value,A.scheduler.cancelJob(X.jobId),X.jobId=A.scheduler.addJob(X.jobWrapper,t)}};
_.Cx.prototype.flushJobs=function(){x7S(this,10);this.processSignal()};
_.Cx.prototype.cancel=function(){for(var A=_.U(this.scheduledJobs),t=A.next();!t.done;t=A.next()){var f=_.U(t.value);t=f.next().value;f=f.next().value;this.scheduler.cancelJob(f.jobId);this.scheduledJobs.delete(t)}this.JSC$13984_parkedJobs=[]};
_.Cx.prototype.processSignal=function(){for(var A=_.U(this.JSC$13984_parkedJobs),t=A.next();!t.done;t=A.next())t=t.value,IP8(this,t.job,t.priority);this.JSC$13984_parkedJobs=[]};
var IP8=function(A,t,f){f=f||A.JSC$13984_defaultPriority;if(f===10)wt(t);else{var X=A.nextJobDescriptor++,Q=function(){t();A.scheduledJobs.delete(X)},q=A.scheduler.addJob(Q,f);
A.scheduledJobs.set(X,{jobWrapper:Q,jobId:q,priority:f})}};var jnE;_.R4={};jnE={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.R4.YtRendererstamperBehavior=[_.BS.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 A in this.stampDom){var t=this.stampDom[A];t&&t.id&&this.addReactiveSchema({type:"observe",method:{methodName:Jgx(t.id),args:[{type:"wildcard",path:A}]}})}else{(A=(this.constructor.generatedFrom||this).observers)||(A=[]);for(t in this.stampDom){var f=this.stampDom[t];f&&f.id&&A.push(Jgx(f.id)+"("+t+".*)")}this.constructor.generatedFrom.observers=A}},
addStampDomObserverFns_:function(){for(var A in this.stampDom){var t=this.stampDom[A];t.id?(this[Jgx(t.id)]=this.rendererStamperObserver_.bind(this,A,t.id),this.hasDataPath_[A]=!1):(t=new _.xj("Bad rendererstamper config",this.is+":"+A),_.HQ(t))}},
rendererStamperObserver_:function(A,t,f){if(f.path==A){if(f.value===void 0&&!this.hasDataPath_[A])return;this.hasDataPath_[A]=f.value!==void 0}this.rendererStamperApplyChangeRecord_(A,t,f)},
rendererStamperApplyChangeRecord_:function(A,t,f){var X=this.renderJobsMap_[t],Q=null;A==f.path?(f=f.value,_.ST(f)||(f=f===void 0||f===null?[]:[f]),A=this.stampDom[A],A.mapping&&(Q=this.stampDomArray_.bind(this,f,t,A.mapping,A.reuseComponents,A.events,A.stamperStableList)),X&&X.cancel(),f=A.usePageScheduler?this.getTaskManager():void 0,X||A.initialRenderPriority==void 0)?A.renderPriority==void 0||X||(X=new _.Cx(A.renderPriority,A.waitForSignal,f),this.renderJobsMap_[t]=X):(X=new _.Cx(A.initialRenderPriority,
A.waitForSignal,f),this.renderJobsMap_[t]=X,Q=function(q,e){q();x7S(e,10)}.bind(this,Q,X)):Q=A+".splices"==f.path?this.stampDomArraySplices_.bind(this,A,t,f.value):this.forwardRendererStamperChanges_.bind(this,A,t,f);
X?_.ha(X,Q):Q()},
forwardRendererStamperChanges_:function(A,t,f){var X=f.path.slice(A.length+1),Q=this.getStampContainer_(t),q=X.indexOf("."),e=X.substring(0,q),G=!1,N=0,z=parseInt(e,0);if(e[0]=="#"){G=parseInt(e.substring(1),0);z=this.get(A);var T=this.get([A,e]);z[G]==T?N=G:N=z.indexOf(T);G=!0}else isNaN(z)||(N=z,G=!0);G&&(X=X.substring(e.length+1),q=X.indexOf("."));e=this.polymerDom(Q).children[N];var O;if(Q=(O=e==null?void 0:e.polymerController)!=null?O:e)X="data"+X.slice(q),typeof Q.notifyPath!=="function"?_.K4(new _.xj("notifyPath missing",
this.is+": "+A+", "+t)):f.value?Q.notifyPath(X,f.value):Q.notifyPath(X)},
stampDomArraySplices_:function(A,t,f){if(f&&f.indexSplices){var X=this.getStampContainer_(t);if(X){for(var Q=this.polymerDom(X),q=eaT(this.stampDom[A].reuseComponents),e=f.indexSplices.length,G=0;G<e;G++){for(var N=f.indexSplices[G],z=Q.children[N.index],T=N.removed.length;T>0;T--)z&&z.parentElement&&(this.polymerDom(z.parentElement).removeChild(z),q&&lDu(z),z=Q.children[N.index]);T=this.stampDom[A].mapping;for(var O=N.index+N.addedCount,c=document.createDocumentFragment(),B=q,h=N.index;h<O;h++){var W=
N.object[h],L=qCs(T,W);if(L){var E=T[L];W=W[L];L=this.getComponentName_(E,W);var D=z?rt.has(z):!1;B&&z&&z.is==L&&D?(L=z,this.telemetry_.reuse++,z=z.nextElementSibling):B&&z&&D?(L=this.createComponent_(E,W,q),D=this.polymerDom(z).nextElementSibling,Q.insertBefore(L,D),uqg(this.is,Q,z,q),z=D):(B=!1,L=this.createComponent_(E,W,q),c.appendChild(L));this.deferRenderStamperBinding_(L,E,W)}else E=new _.xj("Unimplemented type",A,t,X.tagName,Object.keys(W)[0]),_.HQ(E)}Q.insertBefore(c,z)}this.flushRenderStamperComponentBindings_();
this.stampDom[A].events&&_.s9(this.hostElement,"yt-rendererstamper-finished",{container:X})}else A=new _.xj("Container object not found",t,this.hostElement?this.hostElement.is:""),_.HQ(A)}},
stampDomArray_:function(A,t,f,X,Q,q){var e=this.getStampContainer_(t);if(e)if(t=this.polymerDom(e),X=eaT(X),A){var G=0,N=0,z;if(q=q===void 0?_.Ka("STAMPER_STABLE_LIST",!1):q||!1)for(z=t.firstElementChild;z&&!rt.has(z)&&A.length>N;){q=A[N];var T=qCs(f,q);if(T){if(this.getComponentName_(f[T],q[T])!=z.is){var O=this.createComponent_(f[T],q[T],X),c=this.polymerDom(z).nextElementSibling;c?t.insertBefore(O,c):t.appendChild(O);uqg(this.is,t,z,X);z=O}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(z,
f[T],q[T]);G++;N++;z=this.polymerDom(z).nextElementSibling}else N++}zab(this.is,t,G,X);G=z;if(A.length>N){q=document.createDocumentFragment();for(T=A.length;N<T;N++)if(O=A[N],c=qCs(f,O))z=this.createComponent_(f[c],O[c],X),this.deferRenderStamperBinding_(z,f[c],O[c]),q.appendChild(z);if(G&&this.polymerDom(G).parentNode&&z&&!rt.has(z))t.insertBefore(q,G);else try{t.appendChild(q)}catch(B){_.K4(new _.xj("Error in RendererStamperBehavior: appendChild failed.",{componentName:this.hostElement.is}))}}this.flushRenderStamperComponentBindings_();
this.markDirty&&this.markDirty();Q&&_.s9(this.hostElement,"yt-rendererstamper-finished",{container:e})}else zab(this.is,t,0,X);else A=new _.xj("Container object not found",t,this.hostElement?this.hostElement.is:""),_.HQ(A)},
polymerDom:function(A){return this.minimizePipBreakages?A:_.iS(A)},
getStampContainer_:function(A){return this.$&&this.$[A]||_.sF(this.hostElement).querySelector("#"+A)},
getComponentName_:function(A,t){return typeof A==="string"?A:A.matcher?A.matcher.call(this,t):A.component},
createComponent_:function(A,t,f){A=this.getComponentName_(A,t);try{var X=ab5.has(A);if(f&&!X){var Q=_.MX(A);try{_.Q_(Q)}catch(q){f="Failed to clear styles for "+A+".",q.message&&(f+=" Original error: "+q.message),_.K4(new _.xj(f))}}else Q=document.createElement(A)}catch(q){return Q="YtRendererStamperBehavior failed to create "+A+".",q.message&&(Q+=" Original description: "+q.message),q.message="YtRendererStamperBehavior failed to create element",_.gL(q,Q),jnE.hasOwnProperty(A)?_.K4(q):_.HQ(q),document.createElement("SPAN")}this.telemetry_.create++;
return Q},
deferRenderStamperBinding_:function(A,t,f){this.deferredBindingTasks_.push({component:A,typeOrConfig:t,data:f})},
flushRenderStamperComponentBindings_:function(){for(var A=0,t=this.deferredBindingTasks_.length;A<t;A++){var f=this.deferredBindingTasks_[A];if(!f)break;var X=void 0,Q=void 0,q=void 0,e=void 0,G=f.component,N=f.typeOrConfig;f=f.data;var z=(e=G.polymerController)!=null?e:G;e=G.loggingStatus;try{e&&(e.isRendererStamper=!0);if(typeof N!=="string"){for(q in N.attributes)N.attributes[q]===!0?G.setAttribute(q,""):N.attributes[q]===!1?G.removeAttribute(q):G.setAttribute(q,N.attributes[q]);for(Q in N.params)z[Q]=
N.params[Q],G!==z&&OQ(G.localName,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(X in N.properties){var T=N.properties[X];if(T){var O=Ue5(T);z[X]=this.get(O);G!==z&&OQ(G.localName,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(X==="on-tap"||X==="on-click"){var c=this.get(O);G.addEventListener("click",c);GMg.set(G,{property:X,listener:{type:"element",eventName:"click",handler:c}})}}else{var B=new _.xj("Undefined property binding",X);_.HQ(B)}}}if(N.classListBinding){var h=Ue5(N.classListBinding),
W=h?this[h]:null;if(W)for(X=0;X<W.length;X++)_.rH(G,W[X],!0)}z.data=f}finally{e&&(e.isRendererStamper=!1)}if(X=rt.get(G))G.hidden=!1,rt.delete(G),_.a6.cancelJob(X)}this.deferredBindingTasks_.length=0}}];_.Hn(_.I(function(A){function t(){f().seconds&&q(f0x({seconds:Number(f().seconds)-Date.now()/1E3}))}
var f=A.targetTimestamp;A=A.className;var X=_.U(_.hZ("",void 0,"U1Q8Ae")),Q=X.next().value,q=X.next().value;_.Zk(function(){t();var e=setInterval(function(){t()},1E3);
_.dD(function(){clearInterval(e)})});
return _.u("yt-countdown",{class:_.Ao("ytCountDownHost",A)},_.u("div",null,Q))},"v"),"yt-countdown",{props:{targetTimestamp:_.PS,
className:_.dt}});_.mJ=new _.eh("KEY_MANAGER_TOKEN");var Chx={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.bc=_.I(function(A){var t=_.GU("a",A.ref),f=A.aTagConfig?A.aTagConfig:_.yq(function(){var X,Q,q,e,G;var N=(G=_.bP((q=A.command)==null?void 0:q.call(A)))!=null?G:(e=A.command)==null?void 0:e.call(A);return _.yx({innertubeCommand:N,skipOnClick:(X=A.skipOnClick)==null?void 0:X.call(A),defaultTarget:(Q=A.target)==null?void 0:Q.call(A)})||{}},void 0,"TAvz0");
_.oo(function(){_.M("mweb_get_endpoint_from_atag_command")||(t.value._data=f()._data,t.value.params=f().params)},"dcjvAe");
return _.u("a",{el:t,href:function(){return f().href$},
rel:function(){return f().rel$},
class:function(){var X,Q;return(Q=f().className)!=null?Q:(X=A.className)==null?void 0:X.call(A)},
style:function(){var X;if((X=A.style)==null?0:X.call(A))return A.style();var Q;return((Q=A.disabled)==null?0:Q.call(A))?"pointer-events:none":""},
"aria-haspopup":function(){return!!f()["aria-haspopup$"]},
"force-new-state":Q6(function(){return f()["force-new-state$"]}),
title:Q6(function(){var X,Q;return(Q=f().title$)!=null?Q:(X=A.title)==null?void 0:X.call(A)}),
role:Q6(function(){var X;return((X=A.role)==null?void 0:X.call(A))||f().role$}),
target:Q6(function(){return f().target$}),
dir:Q6(function(){var X;return((X=A.dir)==null?void 0:X.call(A))||f().dir}),
tabindex:function(){var X;return f().tabindex$?Number(f().tabindex$):(X=A.tabIndex)==null?void 0:X.call(A)},
"aria-hidden":function(){var X,Q;return(Q=f()["aria-hidden$"])!=null?Q:(X=A.ariaHidden)==null?void 0:X.call(A)},
"aria-label":function(){var X,Q;return(Q=f()["aria-label$"])!=null?Q:(X=A.ariaLabel)==null?void 0:X.call(A)},
"aria-current":A.ariaCurrent,"aria-disabled":A.disabled,"aria-labelledby":A.ariaLabelledby,"aria-describedby":A.ariaDescribedby,"aria-selected":A.ariaSelected,"tab-identifier":A.tabIdentifier,"on:pointerdown":_.f1(function(X){var Q,q;return void((q=(Q=f()).onpointerdown)==null?void 0:q.call(Q,X))}),
"on:click":_.f1(function(X){var Q,q;(q=(Q=f()).onclick)==null||q.call(Q,X);var e;(e=A.onClick)==null||e.call(A,X)}),
"on:focusin":_.f1(function(X){var Q;(Q=A.onFocusin)==null||Q.call(A,X)}),
"on:focusout":_.f1(function(X){var Q;(Q=A.onFocusout)==null||Q.call(A,X)})},A.children)},"x");var Lcg={duration:1E3,easing:"ease",fill:"forwards"};v_x.componentType=EH;var n_5={duration:1E3,easing:"ease",fill:"forwards"},ZiK=_.I(function(A){var t=_.GU("animated-rolling-character"),f=void 0,X=function(){var G,N;return d2((G=A.character)==null?void 0:G.call(A))||d2((N=A.previousCharacter)==null?void 0:N.call(A))},Q=_.U(_.hZ(0,void 0,"CYT8Ob")),q=Q.next().value,e=Q.next().value;
_.Zk(function(){if(window.ResizeObserver&&_.M("web_fix_rolling_numbers_zoom_safari")){var G=new _.qI(function(){var z,T,O=Math.round(((T=(z=t.value.querySelector("div"))==null?void 0:z.getBoundingClientRect().height)!=null?T:0)*100)/100;O&&e(O)},500),N=new ResizeObserver(function(){G.fire()});
N.observe(t.value);_.dD(function(){N.disconnect();G.dispose()})}});
_.oo(function(){var G=_.M("web_fix_rolling_numbers_zoom_safari")?q:A.marginMultiplier;if(G()){var N;(N=f)==null||N.cancel();if(X()){var z;N=((z=A.previousCharacter)==null?0:z.call(A))?Number(A.previousCharacter())+10:A.rollUp()?0:30;var T;if((T=A.shouldAnimate)==null||!T.call(A)){var O,c;N-=E_T((O=A.character)==null?void 0:O.call(A),(c=A.previousCharacter)==null?void 0:c.call(A),A.rollUp(),N)}}else{N=A.rollUp()?0:2;var B;(B=A.shouldAnimate)!=null&&B.call(A)||(z=N,T=A.rollUp()?-1:1,N=z-T)}t.value.style.marginTop=
"-"+N*G()+"px";var h;if((h=A.shouldAnimate)==null?0:h.call(A)){var W,L;f=Dez(t.value,(W=A.character)==null?void 0:W.call(A),(L=A.previousCharacter)==null?void 0:L.call(A),A.rollUp(),N,X(),G())}else{var E;t.value.style.display=((E=A.character)==null?0:E.call(A))?"":"none"}}},"CA6Pmf");
return _.u("animated-rolling-character",{el:t,class:"animatedRollingCharacterHost"},_.u(_.P,{cond:X,then:function(){return _.u(Ycw,null)},
else:function(){return _.u(V6E,{character:A.character})}}))},"A");
ZiK.idomCompat=!0;var Fcz=_.M("web_enable_sink_animated_rolling_character_and_number")?ZiK:v_x,oW8=_.M("web_enable_sink_animated_rolling_character_and_number")?ZiK:pbx(v_x),Ycw=_.I(function(){for(var A=[],t=1;t<30;t++)A.push(_.u("div",null,t%10));return _.u(_.Tw,null,_.u("div",null,"\u00a0"),A,_.u("div",null,"\u00a0"))},"B"),V6E=_.I(function(A){var t=A.character;
return _.u(_.Tw,null,_.u("div",null,"\u00a0"),_.u(_.P,{cond:function(){return!(t==null?0:t())||_.Ux(t==null?void 0:t())},
then:function(){return _.u("div",null,"\u00a0")},
else:function(){return _.u("div",null,t)}}),_.u("div",null,"\u00a0"))},"C");IDb.componentType=EH;var d7K=_.I(function(A){var t=void 0,f=void 0,X=function(){var q;return((q=A.fontSizeMultiplier)==null?0:q.call(A))?A.heightPx()*A.fontSizeMultiplier():A.heightPx()},Q=_.yq(function(){if(!A.numberText())return[];
var q,e,G=((q=A.forceRollUp)==null?void 0:q.call(A))||!f||!((e=A.numberValue)==null?0:e.call(A))||f<A.numberValue(),N,z=A.numberText();q=X();e=!((N=A.shouldAnimate)==null||!N.call(A));N=[];var T=0,O=0,c=(t?t.replace(/\D/g,"").length:0)-(z?z.replace(/\D/g,"").length:0),B=t?t.split(/(\d)/).filter(Boolean):[];for(z=z.split(/(\d)/).filter(Boolean);c<0;){var h=z[O];N.push({character:h,rollUp:G,marginMultiplier:q,shouldAnimate:e});O++;d2(h)&&c++}for(;T<c;)h=B[T],N.push({previousCharacter:h,rollUp:G,marginMultiplier:q,
shouldAnimate:e}),T++,d2(h)||c++;for(;O<z.length;)c=z[O],h=B[T],d2(c)===d2(h)?(O++,T++):d2(c)?(T++,c=void 0):d2(h)&&(O++,h=void 0),N.push({character:c,previousCharacter:h,rollUp:G,marginMultiplier:q,shouldAnimate:e});t=A.numberText();var W;f=(W=A.numberValue)==null?void 0:W.call(A);return N},void 0,"kWiBv");
return _.u("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return A.numberText()?["height: "+X()+"px;","line-height: "+A.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.u(_.xk,{each:Q,keyBy:"INDEX"},function(q){return _.u(oW8,{character:function(){return q().character},
previousCharacter:function(){return q().previousCharacter},
marginMultiplier:function(){return q().marginMultiplier},
rollUp:function(){return q().rollUp},
shouldAnimate:function(){return q().shouldAnimate}})}))},"D");
d7K.idomCompat=!0;_.ScS=_.M("web_enable_sink_animated_rolling_character_and_number")?d7K:pbx(IDb);var $7b=function(A,t){this.fillAnimation=new Animation(VF5(A),document.timeline);this.strokeAnimation=new Animation(Zcs(t),document.timeline)};
$7b.prototype.play=function(){var A,t;(t=(A=this.fillAnimation).play)==null||t.call(A);var f,X;(X=(f=this.strokeAnimation).play)==null||X.call(f)};
$7b.prototype.cancel=function(){var A,t;(t=(A=this.fillAnimation).cancel)==null||t.call(A);var f,X;(X=(f=this.strokeAnimation).cancel)==null||X.call(f)};_.WS=_.I(function(A){var t=A.model;var f=A.pointerDownEvent;var X=A.pointerUpEvent;var Q=A.pointerLeaveEvent;var q=A.hovered;A=_.GU("yt-touch-feedback-shape");var e=_.GU("div"),G=_.GU("div"),N=_.U(_.Jo(function(){return(X==null?0:X())||(Q==null?0:Q())?!1:!(f==null||!f())||!1})),z=N.next().value,T=N.next().value,O=void 0,c=function(){!O&&G.value&&e.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(O=new $7b(G.value,e.value));
var D;(D=O)==null||D.play()},B=function(){var D;
(D=O)==null||D.cancel()},h=function(){var D;
(D=O)==null||D.cancel()};
_.oo(function(){(X==null?0:X())&&c()},"bg756c");
_.oo(function(){(f==null?0:f())&&B()},"QAes8c");
_.oo(function(){(Q==null?0:Q())&&h()},"YaFbrc");
N=_.f1(function(){c();T(!1)});
var W=_.f1(function(){B();T(!0)}),L=_.f1(function(){h();
T(!1)});
_.dD(function(){if(O){var D;(D=O)==null||D.cancel();O=void 0}});
var E={};z=_.Ao("yt-spec-touch-feedback-shape",function(){return o_b(t().color)},function(){return deu(t().thumbnailSize,!!t().isExtended)},(E["yt-spec-touch-feedback-shape--focused"]=function(){return!!t().focused&&!t().disabled},E["yt-spec-touch-feedback-shape--circular"]=function(){return!!t().circular},E["yt-spec-touch-feedback-shape--down"]=z,E["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!t().triggerEvents},E["yt-spec-touch-feedback-shape--hovered"]=function(){return q==
null?void 0:q()},E));
return _.u("yt-touch-feedback-shape",{el:A,class:z,style:_.U7({"margin-top":function(){return t().customTopExtend?"-"+t().customTopExtend+"px":void 0}}),
"on:mousedown":W,"on:mouseup":N,"on:pointerleave":L,"on:touchstart":W,"on:touchend":N,"aria-hidden":!0},_.u(_.P,{cond:function(){return!!t().hoverEffect},
then:function(){return _.u("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.U7({"border-radius":function(){return t().borderRadius},
background:function(){var D;if(D=t().hoverEffect){for(var S=[],Z=_.U((D==null?void 0:D.lightingTechniques)||[]),d=Z.next();!d.done;d=Z.next())switch(d.value){case 2:var K=d=void 0,k=void 0,Gz=void 0;S.push("linear-gradient(180deg, "+((d=D)==null?void 0:(K=d.palette)==null?void 0:K.keyLight)+", "+((k=D)==null?void 0:(Gz=k.palette)==null?void 0:Gz.background)+")")}var Tz,y5;S.push((Tz=t().hoverEffect)==null?void 0:(y5=Tz.palette)==null?void 0:y5.background);D=S.join(", ")}else D=void 0;return D}})})}}),
_.u("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.U7({"border-radius":function(){return t().borderRadius},
"border-color":function(){var D,S;return(D=t().touchEffect)==null?void 0:(S=D.palette)==null?void 0:S.background}}),
el:e}),_.u("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.U7({"border-radius":function(){return t().borderRadius},
"background-color":function(){var D,S;return(D=t().touchEffect)==null?void 0:(S=D.palette)==null?void 0:S.background}}),
el:G}))},"J");
_.WS.idomCompat=!0;var HiT={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 yv=_.Ox();yv=yv.toLowerCase();if(_.lu(yv,"android")){var aPf=yv.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);aPf&&parseFloat(aPf[1])<100||yv.match("("+Object.keys(HiT).join("|")+")")};var KNS=_.I(function(A){return _.u(_.P,{cond:A.aTagConfig,then:function(t){return _.u(_.bc,{aTagConfig:t,disabled:A.disabled,className:A.className,style:A.style,title:A.title,ariaLabel:A.ariaLabel,ariaCurrent:function(){var f,X;return((f=A.toggleable)==null?void 0:f.call(A))&&((X=A.toggled)==null?void 0:X.call(A))},
ref:A.ref},A.children)},
else:function(){return _.u("button",{el:_.ZY(A.ref),"on:click":_.f1(function(t){var f;return(f=A.onClick)==null?void 0:f.call(A,t)}),
class:A.className,title:A.title,style:A.style,disabled:A.disabled,"aria-pressed":function(){var t,f;return((t=A.toggleable)==null?0:t.call(A))?!((f=A.toggled)==null||!f.call(A)):void 0},
"aria-label":A.ariaLabel,"aria-disabled":A.visiblyDisabled,"aria-hidden":A.ariaHidden,tabindex:A.tabIndex},A.children)}})},"K"),wWC=_.I(function(A){var t=A.data;
var f=A.hasIconLeading;var X=A.hasIconLeadingTrailing;var Q=A.hasIconTrailing;var q=A.iconButton;var e=A.iconClassName;var G=A.secondaryIconClassName;var N=A.icon;var z=A.secondaryIcon;var T=A.textContentClassName;return _.u(vS,{className:"",style:"display: inherit; justify-content: center"},_.u(_.P,{debugInstance:"V4z1Uc",cond:function(){return N&&(f()||X()||(q==null?void 0:q()))},
then:function(){return _.u(vS,null,_.u("div",{class:e,"aria-hidden":"true"},N==null?void 0:N()))}}),_.u(_.P,{debugInstance:"ok3btb",
cond:function(){return(t().buttonText||t().animatedTextProps||t().formattedButtonText)&&!(q==null?0:q())},
then:function(){return _.u(vS,null,_.u(gWS,{className:T,iconPosition:function(){return t().iconPosition},
text:function(){return t().buttonText},
oneOffCustomTextWrap:function(){return t().oneOffCustomTextWrap},
formattedButtonText:function(){return t().formattedButtonText},
animatedTextProps:function(){return t().animatedTextProps}}))}}),_.u(_.P,{debugInstance:"DO5Rz",
cond:Q,then:function(){return _.u(vS,null,_.u("div",{class:e},N==null?void 0:N()))}}),_.u(_.P,{debugInstance:"bnojSc",
cond:X,then:function(){return _.u(vS,null,_.u("div",{class:G},z==null?void 0:z()))}}),_.u(_.P,{debugInstance:"HN3kad",
cond:function(){return!t().disabled&&!0},
then:function(){return _.u(_.WS,{model:function(){var O=t();return{color:O.style==="overlay-dark"?4:O.style==="overlay"?O.type==="filled"?4:3:O.type==="filled"||O.style==="call-to-action-inverse"||O.style==="mono-inverse"?2:1}}})}}))},"L"),gWS=_.I(function(A){var t=function(){var f,X;
return((f=A.iconPosition)==null?void 0:f.call(A))==="icon-with-label"||((X=A.oneOffCustomTextWrap)==null?void 0:X.call(A))};
return _.u("div",{class:A.className,"aria-hidden":function(){var f,X,Q;return((f=A.ariaHidden)==null?void 0:f.call(A))&&(!((X=A.animatedTextProps)==null||!X.call(A))||!((Q=A.formattedButtonText)==null||!Q.call(A)))}},_.u(_.j2,null,_.u(_.FE,{when:function(){var f;
return(f=A.animatedTextProps)==null?void 0:f.call(A)}},function(){return _.u(_.ScS,{numberText:function(){return A.animatedTextProps().numberText},
numberValue:function(){return A.animatedTextProps().numberValue},
heightPx:function(){return A.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return A.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return A.animatedTextProps().shouldAnimate},
forceRollUp:function(){return A.animatedTextProps().forceRollUp}})}),_.u(_.FE,{when:function(){var f;
return(f=A.formattedButtonText)==null?void 0:f.call(A)}},function(){return _.u(_.zL,{text:function(){return Object.assign({},A.formattedButtonText(),{lineBreakMode:t()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":A.formattedButtonText().lineBreakMode,
alignment:t()?"TEXT_ALIGNMENT_CENTER":A.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!t()}})}),_.u(_.FE,{when:function(){var f,X;
return((f=A.iconPosition)==null?void 0:f.call(A))==="icon-with-label"&&((X=A.text)==null?void 0:X.call(A))}},function(){return _.u(_.zL,{text:function(){return{content:A.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.u(_.Ih,null,function(){return A.text})))},"M"),snp=_.I(function(A){return _.u(_.P,{debugInstance:"kM7Sgc",
cond:A.hasLabel,then:function(){var t;return _.u("label",{class:A.className},A.children,(t=A.textContent)==null?void 0:t.call(A))},
else:function(){return A.children}})},"N"),vS=_.I(function(A){return A.children},"O");var kXT=_.I(function(A){function t(){q(void 0);G(void 0);z(void 0)}
var f=_.ZY(),X=_.U(_.hZ(void 0,void 0,"Ug77pc")),Q=X.next().value,q=X.next().value;X=_.U(_.hZ(void 0,void 0,"XGf7Zb"));var e=X.next().value,G=X.next().value,N=_.U(_.hZ(void 0,void 0,"w55oqd"));X=N.next().value;var z=N.next().value;N=_.U(_.hZ(0,void 0,"rBgpzc"));var T=N.next().value,O=N.next().value;N=_.f1(function(){switch(T()){case 1:O(2);break;case 3:var B,h;(h=(B=f.value).hidePopover)==null||h.call(B);O(0);t()}});
_.oo(function(){if(A.show()){var B;q((B=A.children)==null?void 0:B.call(A));var h;G((h=A.location)==null?void 0:h.call(A));var W;z((W=A.classNames)==null?void 0:W.call(A));switch(T()){case 0:var L,E;(E=(L=f.value).showPopover)==null||E.call(L);O(1);break;case 3:O(1);var D,S;(S=(D=f.value).hidePopover)==null||S.call(D);var Z,d;(d=(Z=f.value).showPopover)==null||d.call(Z)}}else switch(T()){case 2:O(3);break;case 1:var K,k;(k=(K=f.value).hidePopover)==null||k.call(K);t();O(0)}},"Z8V4Qb");
_.oh(function(){});
var c={};return _.u("yt-popover",{popover:"manual",el:f,style:_.U7({left:function(){var B;return(B=e())==null?void 0:B.left},
top:function(){var B;return(B=e())==null?void 0:B.top},
bottom:function(){var B;return(B=e())==null?void 0:B.bottom},
right:function(){var B;return(B=e())==null?void 0:B.right}}),
class:_.Ao("ytPopoverComponentHost",X,(c.ytPopoverComponentHostClosing=function(){return T()===3},c.ytPopoverComponentHostSeeThrough=function(){var B;
return((B=A.seeThrough)==null?void 0:B.call(A))===!0},c)),
"on:animationend":N},Q)},"Q");var rPp={left:"0px",right:"auto",top:"0px",bottom:"auto"},Agp=function(){var A=this;this.registerTooltipElement=function(f){var X;A.tooltipElement=(X=f.querySelector("yt-popover"))!=null?X:void 0};
var t=_.U(_.hZ(void 0,void 0,"EIh5sc"));this.state=t.next().value;this.setState=t.next().value;t=_.U(_.hZ(void 0,void 0,"PC1M0b"));this.schedulerJobID=t.next().value;this.setSchedulerJobID=t.next().value},kMx=function(A,t){var f=lm,X=_.a6.addJob(function(){var Q=tFK(f,A,t);
f.currentConfig=t;f.setState({text:t.text,location:_.M("web_tooltip_location_fix")?void 0:Q,anchor:A,offset:t.offset,style:t.style})},4,t.delay);
f.setSchedulerJobID(X)},rgT=function(){var A=lm,t=A.schedulerJobID();
t&&(_.a6.cancelJob(t),A.setSchedulerJobID(void 0));A.setState(void 0);A.currentConfig=void 0};
Agp.prototype.notify=function(A,t){var f;((f=this.state())==null?void 0:f.anchor)===A&&(f=tFK(this,A,t),this.currentConfig=t,this.setState({text:t.text,location:_.M("web_tooltip_location_fix")?void 0:f,anchor:A,offset:t.offset,style:t.style}))};
var tFK=function(A,t,f){var X=t.getBoundingClientRect();t=window.innerWidth;var Q=window.innerHeight,q=f.location,e=f.offset;f=f.text;if(A=A.tooltipElement){var G=getComputedStyle(A);A=G.font;var N=G6(G.lineHeight),z=G6(G.paddingLeft),T=G6(G.paddingRight),O=G6(G.paddingTop);G=G6(G.paddingBottom);var c=document.createElement("canvas").getContext("2d");c.font=A;f={width:c.measureText(f).width+z+T,height:N+O+G}}else f=void 0;A=f;if(!A)return rPp;f=A.width;A=A.height;z=e+A;O=e+f;N=X.top>=z;z=Q-X.bottom>=
z;T=X.left>=O;O=t-X.right>=O;G=q;switch(q){case "top":!N&&z&&(G="bottom");break;case "bottom":!z&&N&&(G="top");break;case "left":!T&&O&&(G="right");break;case "right":!O&&T&&(G="left")}switch(G){case "top":q=X.left+X.width/2-f/2;X=X.top-A-e;break;case "bottom":q=X.left+X.width/2-f/2;X=X.bottom+e;break;case "left":q=X.left-f-e;X=X.top+X.height/2-A/2;break;case "right":q=X.right+e;X=X.top+X.height/2-A/2;break;default:q=X.left+X.width/2-f/2,X=X.bottom+e}e=Object.assign({},rPp);q+f>t?(e.right="0px",e.left=
"auto"):(e.left=Math.round(Math.max(0,q)+window.scrollX)+"px",e.right="auto");X+A>Q?(e.bottom="0px",e.top="auto"):(e.top=Math.round(Math.max(0,X)+window.scrollY)+"px",e.bottom="auto");return e};var lm;lm=new Agp;_.fDT=_.I(function(){var A=_.yq(function(){var Q;return(Q=lm.state())==null?void 0:Q.anchor},void 0,"tiGUn"),t=_.yq(function(){var Q;
return(Q=lm.state())==null?void 0:Q.text},void 0,"TA2GQe"),f=_.yq(function(){var Q;
return(Q=lm.state())==null?void 0:Q.style},void 0,"ucvFsf"),X=_.M("web_tooltip_location_fix")?_.yq(function(){var Q=A();
var q=lm.currentConfig;if(Q&&q)return tFK(lm,Q,q)},void 0,"EpDz6"):_.yq(function(){var Q;
return(Q=lm.state())==null?void 0:Q.location},void 0,"aRJtfd");
return _.u("yt-tooltip",{class:"ytTooltipContainerHost",el:_.ZY(lm.registerTooltipElement),"aria-hidden":"true"},_.u(kXT,{classNames:function(){switch(f()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:X,show:function(){return!!t()&&!!X()},
seeThrough:!0},t))},"R");var IBl=Gc("stamper-context");_.Lx=_.I(function(A){var t=A.data;var f=A.icon;var X=A.iconName;var Q=A.animateIcon;var q=A.secondaryIcon;var e=A.secondaryIconName;var G=A.focusedOverride;var N=A.clientOnlyWizTooltipsEnabled;tZx();var z=SCT(t),T=z.size,O=z.style;A=z.disabled;var c=z.onTap,B=z.alignByText,h=z.aTagConfig,W=z.customColors,L=z.segmentedPosition,E=z.toggled,D=z.toggleable,S=z.accessibilityLabel,Z=z.onToggle,d=z.iconPosition,K=z.oneOffCustomTextWrap,k=z.disableTextEllipsis,Gz=z.disableBackdropFilter,Tz=z.tooltipText,
y5=z.ariaHidden,cp=z.tabIndex,iu=z.buttonText,Fb=z.formattedButtonText,xq=z.animatedTextProps,Yq=z.onClickRateLimitMs,zk=Kcb(t,f,q,X,e,G,Q),PT=zk.type;f=zk.shouldFocus;X=zk.hasIconLeading;Q=zk.hasIconTrailing;var rs=zk.hasIconLeadingTrailing,OT=zk.hasIconOnly;q=zk.hasIconOnly40;var bK=zk.hasIconWithLabel;e=zk.iconButton;var ET=zk.visiblyDisabled;G=zk.overrideSmallSizeIcon;var m3=zk.iconToRender;zk=zk.secondaryIconToRender;var O2=_.U(AIx(Tz,z.tooltipShape)).next().value,eT=function(Rp){c==null||c(Rp);
D()&&(Z==null||Z(Rp))},fS=_.yq(function(){return Yq==null?void 0:Yq()},void 0,"siKywb"),hf=_.yq(function(){return fS()?dW7(eT,fS()):eT},void 0,"wDTcN");
z={};var wE={};return _.u(snp,{className:_.Ao("yt-spec-button-shape-with-label",(z["yt-spec-button-shape-with-label--is-overlay"]=function(){return O()==="overlay"||O()==="overlay-dark"},z)),
hasLabel:bK,textContent:function(){return _.u(gWS,{text:iu,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:K,iconPosition:d,formattedButtonText:Fb,animatedTextProps:xq})}},_.u(KNS,{aTagConfig:h,
className:_.Ao("yt-spec-button-shape-next",function(){return g_b(PT())},function(){return ET()?void 0:wb5(O())},function(){return sU5(T())},(wE["yt-spec-button-shape-next--disabled"]=ET,wE["yt-spec-button-shape-next--focused"]=f,wE["yt-spec-button-shape-next--icon-trailing"]=Q,wE["yt-spec-button-shape-next--icon-leading"]=X,wE["yt-spec-button-shape-next--icon-leading-trailing"]=rs,wE["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return rs()&&!(iu()||Fb())},wE["yt-spec-button-shape-next--icon-button"]=
function(){return OT()||bK()},wE["yt-spec-button-shape-next--icon-only-default"]=q,wE["yt-spec-button-shape-next--align-by-text"]=B,wE["yt-spec-button-shape-next--segmented-start"]=function(){return L()==="start"},wE["yt-spec-button-shape-next--segmented-end"]=function(){return L()==="end"},wE["yt-spec-button-shape-next--override-small-size-icon"]=G,wE["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=K,wE["yt-spec-button-shape-next--disable-text-ellipsis"]=k,wE["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Gz()&&!_.M("web_disable_backdrop_filter")},wE)),
style:function(){var Rp=W();if(Rp){var rE=Rp.color;var bL=Rp.backgroundColor;Rp=Rp.borderColor;var $8="";rE&&($8+="color: "+rE+";");bL&&($8+="background-color: "+bL+";");Rp&&($8+="border-color: "+Rp+";");rE={style:$8}}else rE={};return rE.style},
onClick:function(Rp){hf()(Rp)},
disabled:A,ariaLabel:S,toggleable:D,toggled:E,title:function(){return(N==null?0:N())||!Tz()?"":Tz()},
visiblyDisabled:ET,ariaHidden:y5,tabIndex:cp,ref:function(Rp){(N==null?0:N())&&O2(Rp)}},_.u(wWC,{data:t,
hasIconLeading:X,hasIconLeadingTrailing:rs,hasIconTrailing:Q,iconButton:e,icon:m3,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:zk})))},"T");
_.Lx.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.nx=_.I(function(A){var t=A.data;var f=A.className;var X=A.style;var Q=A.useOutlinedIcon;var q=A.buttonOverrides;var e=A.animatedTextProps;var G=A.onClick;var N=A.target;var z=_.GU("button-view-model",function(Z){Z.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var d=t().targetId;d&&_.Fwi(_.ZQ(),d,Z);return function(){nKb(_.ZQ(),Z)}}),T=function(){return t().iconName},O=_.um(function(Z){a:{var d=t().entityKey,K=t().buttonEntitySelectorType;
if(K&&d)switch(K){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":Z=(Z=_.to(Z,d))?{isHidden:Z.adsState==="ADS_STATE_NONE"||Z.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:Z={isHidden:!1};break a}Z=void 0}return Z}),c,B=(c=_.Px().resolve(_.z7(_.FH)))==null?void 0:c(),h=function(){var Z=t();
var d=q==null?void 0:q(),K=e==null?void 0:e(),k=N==null?void 0:N();if(Z){var Gz=Gjx(Z.type);var Tz=!!Z.title||!!Z.titleFormatted;var y5=!(!Z.iconName&&!Z.iconImage);Tz=y5&&!Tz?"icon-only":y5?Z.iconTrailing||Z.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Tz==="icon-only-40"&&(Gz="text");var cp;y5=(cp=d==null?void 0:d.state)!=null?cp:lIz(Z.state);var iu,Fb=(iu=d==null?void 0:d.disabled)!=null?iu:Z.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Z.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.M("web_button_vm_refactor_disabled")){var xq;Fb=(xq=d==null?void 0:d.disabled)!=null?xq:y5==="disabled"}K=K&&K.numberText&&!isNaN(Number(K.numberValue))?K:void 0;iu=Object;xq=iu.assign;cp=Z.title;var Yq=Z.titleFormatted,zk=Z.accessibilityText,PT=ed5(Z.style),rs=Njg(Z.buttonSize);k=UYb(Z,z,Fb,G,k);Fb=Fb&&!Z.onDisabledTap;var OT=qb0(Z,z),bK=Z.customFontColor,ET=Z.customBackgroundColor;var m3=Z.customBorderColor;var O2=Z.customDarkThemeFontColor,eT=Z.customDarkThemeBackgroundColor,fS=Z.customDarkThemeBorderColor;
bK=B&&O2?O2:bK;ET=B&&eT?eT:ET;m3=B&&fS?fS:m3;m3={color:bK?_.bY(bK):void 0,backgroundColor:ET?_.bY(ET):void 0,borderColor:m3?_.bY(m3):void 0};if(fS=_.C(Z.tooltipData,vy7)){var hf;ET={text:(hf=fS.tooltipText)!=null?hf:"",location:Xju(fS.placement),style:fS.style}}else ET=void 0;Z=xq.call(iu,{},{buttonText:cp,formattedButtonText:Yq,animatedTextProps:K,accessibilityLabel:zk,style:PT,type:Gz,state:y5,size:rs,iconPosition:Tz,onTap:k,disabled:Fb,aTagConfig:OT,customColors:m3,tooltipText:Z.tooltip,tooltipShape:ET},
d)}else Z={style:"mono",type:"text",state:"active",size:"M"};Z.focused=E();return Z},W=function(){return Hcg(h(),!!t().iconName)};
A=_.U(_.hZ(!1,void 0,"yZ8hab"));c=A.next().value;var L=A.next().value,E=c;A=_.f1(function(){var Z=_.Px().resolve(_.z7(_.mJ));Z&&L(Z.isKeyBoardInUse());return!1});
c=_.f1(function(){L(!1);return!1});
_.oo(function(){var Z,d=_.C(t==null?void 0:(Z=t())==null?void 0:Z.onVisible,_.mG);d&&_.Wn(d,{disableClickTracking:!0})},"G9MlKd");
var D=function(){var Z;return(t==null?0:(Z=t())==null?0:Z.iconImage)?{sources:[t().iconImage]}:void 0},S=_.M("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.u("button-view-model",{el:z,class:_.Ao("ytSpecButtonViewModelHost",f),"on:focusin":A,"on:focusout":c},_.u(_.P,{cond:function(){var Z,d;return!((d=t().entityKey&&t().buttonEntitySelectorType&&((Z=O())==null?void 0:Z.isHidden))!=null&&d)},
then:function(){return _.u(_.P,{cond:D,then:function(Z){return _.u(_.Lx,{data:h,icon:function(){return _.u(_.YA,{data:Z,alt:"",targetWidth:W,targetHeight:W,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:S})},
else:function(){return _.u(_.Lx,{data:h,icon:function(){return _.u(_.el,{icon:T,active:function(){return(Q==null?0:Q())?!1:h().toggled},
animateIcon:function(){var Z;return!!(X==null?0:(Z=X())==null?0:Z.animateIcon)},
size:W})},
clientOnlyWizTooltipsEnabled:S})}})}}))},"V");
_.nx.idomCompat={callbacks:{onClick:!0}};_.Hn(_.I(function(A){return _.u("yt-button-view-model",{id:A.id,class:_.Ao(A.scopingClassName,A.classes),icon:function(){var t;return(t=A.icon)==null?void 0:t.call(A)},
"dialog-dismiss":function(){var t;return((t=A.dialogDismiss)==null?0:t.call(A))?"":void 0}},_.u(_.nx,{data:function(){var t;
return(t=A.data)==null?void 0:t.call(A)},
className:function(){var t;return(t=A.className)==null?void 0:t.call(A)},
style:function(){var t;return(t=A.style)==null?void 0:t.call(A)},
useOutlinedIcon:function(){var t;return(t=A.useOutlinedIcon)==null?void 0:t.call(A)},
buttonOverrides:function(){var t;return(t=A.buttonOverrides)==null?void 0:t.call(A)},
animatedTextProps:function(){var t;return(t=A.animatedTextProps)==null?void 0:t.call(A)},
onClick:function(t){var f;return(f=A.onClick)==null?void 0:f.call(A,t)}}))},"W"),"yt-button-view-model",{props:{data:_.PS,
className:_.PS,style:_.PS,useOutlinedIcon:_.PS,buttonOverrides:_.PS,animatedTextProps:_.PS,onClick:_.dt,scopingClassName:_.PS,id:_.PS,icon:_.PS,dialogDismiss:_.PS,classes:_.PS,target:_.dt}});_.Hn(_.I(function(A){var t=A.data;var f=A.id;var X=A.className;var Q=A.iconName;var q=A.animateIcon;var e=A.secondaryIconName;A=_.U(_.hZ(!1,void 0,"TtJl8"));var G=A.next().value,N=A.next().value,z=function(){var O=_.Px().resolve(_.z7(_.mJ));O&&N(O.isKeyBoardInUse())},T=function(){N(!1)};
A=_.GU("yt-button-shape",function(O){if(_.Px().resolve(_.z7(_.mJ)))return O.addEventListener("focusin",z),O.addEventListener("focusout",T),function(){O.removeEventListener("focusin",z);O.removeEventListener("focusout",T)}});
return _.u("yt-button-shape",{el:A,id:f,class:X},_.u(_.P,{cond:t,then:function(){return _.u(_.Lx,{data:t,iconName:Q,secondaryIconName:e,focusedOverride:G,animateIcon:q})}}))},"X"),"yt-button-shape",{props:{data:_.PS,
id:_.PS,className:_.PS,iconName:_.PS,animateIcon:_.PS,secondaryIconName:_.PS,clientOnlyWizTooltipsEnabled:_.PS,disableUpgrade:_.PS},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Dm=function(){var A=_.F.apply(this,arguments)||this;A.isGoalActive=!0;return A};
_.R(Dm,_.F);Dm.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Dm.prototype.progressBarChanged=function(){var A=_.sF(this.hostElement).querySelector("#progress-bar-progress"),t,f,X,Q=(X=Number((t=this.creatorGoalState)==null?void 0:t.currentGoalCount)/Number((f=this.creatorGoalState)==null?void 0:f.totalGoalCount)*100)!=null?X:0,q;A.style.width=((q=Math.min(Q,100))!=null?q:0)+"%"};
Dm.prototype.goalStateChanged=function(){var A;this.isGoalActive=((A=this.creatorGoalState)==null?void 0:A.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var t;A={"--yt-progress-bar-color":Zex((t=this.creatorGoalState)==null?void 0:t.progressBarColor)};_.Q_(this.hostElement,A)};
Dm.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.PV.Object.defineProperties(Dm.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var A;return this.isGoalActive&&!((A=this.creatorGoalState)==null||!A.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.creatorGoalState)==null?0:A.endTimestampMs){var t;A=Number((t=this.creatorGoalState)==null?void 0:t.endTimestampMs)/1E3;return{seconds:String(A)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.creatorGoalState)==null?0:A.themedTargetImage){var t;A=_.C((t=this.creatorGoalState)==null?void 0:t.themedTargetImage,BgE);return this.isAppDarkTheme()?A==null?void 0:A.imageDark:A==null?void 0:A.imageLight}}}});
_.PV.Object.defineProperties(Dm,{template:{configurable:!0,enumerable:!0,get:function(){return pW7()}}});
Dm.prototype.goalStateChanged=Dm.prototype.goalStateChanged;Dm.prototype.progressBarChanged=Dm.prototype.progressBarChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],Dm.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);
_.V([_.n({selectorArgs:["data.creatorGoalEntityKey"],selector:function(A,t){return _.q_(A.entities,"creatorGoalEntity",t)}}),
_.H("design:type",Object)],Dm.prototype,"creatorGoalState",void 0);_.V([_.n(),_.H("design:type",Object)],Dm.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Dm.prototype,"isGoalActive",void 0);_.V([_.y("creatorGoalState","isGoalActive"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Dm.prototype,"shouldShowCountdown",null);_.V([_.y("creatorGoalState"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dm.prototype,"endTimestamp",null);
_.V([_.y("creatorGoalState"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dm.prototype,"targetIconThemedImage",null);_.V([_.ev("creatorGoalState.currentGoalCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dm.prototype,"progressBarChanged",null);_.V([_.ev("creatorGoalState.creatorGoalState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dm.prototype,"goalStateChanged",null);
_.V([_.WU({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Dm);_.Y(Dm,"yt-creator-goal-progress-flow-view-model",function(){return pW7()},{mode:0});var Xbp;var QUT;var Fk=function(){return _.F.apply(this,arguments)||this};
_.R(Fk,_.F);Fk.prototype.attached=function(){var A,t,f;if(this==null?0:(A=this.data)==null?0:(t=A.pdgPurchasedBumperLoggingDirectives)==null?0:(f=t.loggingDirectives)==null?0:f.trackingParams){var X,Q,q;PWx(this==null?void 0:(X=this.data)==null?void 0:(Q=X.pdgPurchasedBumperLoggingDirectives)==null?void 0:(q=Q.loggingDirectives)==null?void 0:q.trackingParams)}};
Fk.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Fk.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Fk.prototype,"data",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Fk);
_.Y(Fk,"yt-live-chat-item-bumper-view-model",function(){if(QUT===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Xbp===void 0&&(Xbp=document.createElement("template"));var X=Xbp;f.call(t,X.content.cloneNode(!0),A.content.firstChild);QUT=A}A=QUT;return A},{mode:0});var qCE;var JgT;_.oM=function(A,t){this.data=A;this.actions=t;this.data=A;this.actions=t};
_.Dn=function(){};_.I4={};_.I4.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(A,t){Tj0(this.hostElement,A,t)},
getNavigationEndpointPopupAction:function(A){return iE0(A,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(A,t){OEs(this.hostElement,A,t,this.openPopupConfig)}};var yIs=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.xa={};
_.xa.YtEndpointBehavior=[_.I4.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.ah("openPopupConfig");(this.useClickHandler=_.Ka("useClickHandler",!1))?this.hostElement.addEventListener("click",qL(this,this.onEndpointClick_)):(aw(this.hostElement,"tap",qL(this,this.onEndpointTap_)),aw(this.hostElement,"touchend",qL(this,this.onEndpointTouchEnd_)));aw(this.hostElement,"touchstart",qL(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
qL(this,this.onEndpointTapStart_))},
onEndpointClick_:function(A){MZx(this.hostElement,A,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(A){var t=this.hostElement,f=this.openPopupConfig,X=this.disableCommandHandlerOverride;X=X===void 0?!1:X;var Q=cI5(A);if(Q){Q.href&&Lp(Q.href);var q=A.detail;var e=q.sourceEvent;q=q.preventer;e=e.button!==void 0?e.button===0&&!z6(e):q?!z6(q):!0;Q.data&&e&&BjT(t,Q,A,f,X)}},
onEndpointTouchEnd_:function(A){z6(A)||cI5(A)&&A.preventDefault()},
onEndpointTapStart_:function(A){bEx(A)}}];_.jD={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(A){for(var t=_.XA.getInstance(),f=_.U(Object.keys(A)),X=f.next();!X.done;X=f.next()){var Q=X.value;X=A[Q];if(this&&this[X]){var q=t.actionRoutingMap.get(Q);q||(q=new Map,t.actionRoutingMap.set(Q,q));t.registerActionHandler(this,Q,this[X].bind(this),q)}else Q=Error("md"),Q.params=X,_.g9(Q)}},
unregisterActionMap:function(A){_.UI(_.XA.getInstance(),A,this)}}]};var im=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_"+(_.M("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.M("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.M("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.M("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.M("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"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:_.M("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var T6;var O7=new Map;var DYs=window.matchMedia("(forced-colors: active)").matches;var UeC;var eai;var GMS=new _.eh("LOTTIE_LOADER_TOKEN");_.Ya=_.I(function(A){var t=A.data;var f=A.className;var X=A.animationName;var Q=A.animationRef;var q=A.elRefForInterop;var e=_.ud("lottie-component"),G;_.dD(function(){var z;return void((z=G)==null?void 0:z.destroy())});
var N;_.oo(function(){var z=_.$f(X);if(z!==N){N=z;var T=Object.assign({},{animationName:z,animationRef:_.$f(Q)},_.$f(t));try{_.Px().resolve(GMS)().then(function(B){var h;(h=G)==null||h.destroy();var W,L;h=(L=q==null?void 0:(W=q())==null?void 0:W.value)!=null?L:e.value;W=T.animationRef;L=T.listeners;B=B.loadAnimation(Object.assign({},{container:h},T.animationConfig));W&&(W.lottieEl=B);if(L)for(h=_.U(Object.entries(L)),W=h.next();!W.done;W=h.next())L=_.U(W.value),W=L.next().value,(L=L.next().value)&&
B.addEventListener(W,L);G=B})}catch(B){z=B;
var O="LottieComponent error.";z.message&&(O+=" Original description: "+z.message);_.gL(z,O);_.K4(z);var c;((c=T.listeners)==null?0:c.error)&&T.listeners.error(z)}}},"nrJISd");
return _.u(Grx,{cond:function(){return!(q==null?0:q())},
then:function(){return _.u("lottie-component",{class:_.Ao("ytLottieComponentHost",f),el:e})}})},"Z");_.Hn(_.I(function(A){return _.u("ytd-lottie-player",{id:A.id,hidden:A.hidden,class:A.className,"aria-label":A.ariaLabel,style:"display: block;"},_.u(_.Ya,{data:A.data,animationName:function(){var t;return((t=A.data().animationConfig)==null?void 0:t.name)||""},
animationRef:function(){return A.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.PS,
id:_.PS,hidden:_.PS,className:_.PS,ariaLabel:_.PS}});var Vv=function(){var A=_.F.apply(this,arguments)||this;A.animationRef={};A.delhiIconsEnabled=_.M("enable_web_delhi_icons");return A};
_.R(Vv,_.F);_.J=Vv.prototype;
_.J.handlePropertyChange=function(){var A=this.animatedIcon,t=this.active,f=this.isDarkTheme;if(A){var X=this.previousActive!==t;this.previousActive=t;this.animationRef.lottieEl?X&&this.toggleAnimation(t,A.totalFrames):t?this.initializeAnimationAsToggled(A.lottiePlayerProps,A.totalFrames):this.initializeAnimationAsUntoggled(A.lottiePlayerProps);A.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=A.type;this.lottiePlayerProps=this.computeLottiePlayerProps(A,f)}};
_.J.computeLottiePlayerProps=function(A,t){var f=this.deepCloneLottiePlayerProps(A);t?(t=A.nameDarkTheme,A=A.pathDarkTheme):(t=A.name,A=A.path);f.animationConfig.name=t;(t=O7.get(A))?f.animationConfig.animationData=t:f.animationConfig.path=A;return f};
_.J.initializeAnimationAsToggled=function(A,t){A.animationConfig.initialSegment=[t-1,t]};
_.J.initializeAnimationAsUntoggled=function(A){A.animationConfig.initialSegment=void 0};
_.J.toggleAnimation=function(A,t){if(A){var f;(f=this.animationRef.lottieEl)==null||f.playSegments([0,t],!0)}else{var X;(X=this.animationRef.lottieEl)==null||X.playSegments([0,1],!0)}};
_.J.deepCloneLottiePlayerProps=function(A){var t=Object.assign({},A.lottiePlayerProps.animationConfig);A=Object.assign({},A.lottiePlayerProps);A.animationConfig=t;return A};
Vv.prototype.handlePropertyChange=Vv.prototype.handlePropertyChange;_.V([_.n(),_.H("design:type",Object)],Vv.prototype,"animatedIcon",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Vv.prototype,"active",void 0);_.V([_.n(),_.H("design:type",Boolean)],Vv.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Vv.prototype,"animatedIconType",void 0);_.V([_.n(),_.H("design:type",Boolean)],Vv.prototype,"previousActive",void 0);
_.V([_.n(),_.H("design:type",Object)],Vv.prototype,"lottiePlayerProps",void 0);_.V([_.n(),_.H("design:type",Object)],Vv.prototype,"animationRef",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Vv.prototype,"delhiIconsEnabled",void 0);_.V([_.ev("animatedIcon","active","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vv.prototype,"handlePropertyChange",null);_.V([_.WU({is:"yt-animated-icon",disableElementRegistration:!0})],Vv);
_.Y(Vv,"yt-animated-icon",function(){if(eai===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;UeC===void 0&&(UeC=document.createElement("template"));var X=UeC;f.call(t,X.content.cloneNode(!0),A.content.firstChild);eai=A}A=eai;return A},{mode:2});var lDK;var NTS;_.cO=_.I(function(A){var t={value:null,cancelled:!1};_.dD(function(){t.cancelled=!0});
var f=_.yq(A.data,{equals:function(X,Q){return X.iconName===Q.iconName&&X.iconStyle===Q.iconStyle&&X.iconSize===Q.iconSize&&X.iconSetName===Q.iconSetName&&X.iconSelected===Q.iconSelected}},"ck24jb");
return _.u("span",{class:"yt-icon-shape",el:_.ZY(function(X){_.oo(function(){var Q,q=(Q=A.options)==null?void 0:Q.call(A);Q=f();Ybq(X,t,Q,q)},"v878Je")})})},"ba");
_.cO.idomCompat=!0;var U0p=["youtube_fill","youtube_outline"];var uqS=new _.Sm({type:"iconset",value:void 0}),Zm=function(){var A=_.F.apply(this,arguments)||this;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.iconName="";A.iconsetName="yt-icons";A.iconset=null;A.missingIconSet=!1;A.iconType=null;A.iconShapeDataSignal=_.hZ(void 0,void 0,"TaEgXd");A.renderingOptionsSignal=_.hZ({iconWidth:"100%",iconHeight:"100%",iconFilter:A.iconFilter,iconColor:A.gradientColor},void 0,"a1vqYe");A.wizHasRendered=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return A};
_.R(Zm,_.F);Zm.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
Zm.prototype.handlePropertyChange=function(){var A=this,t,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E;return _.l(function(D){switch(D.nextAddress){case 1:if(t=!A.icon&&!A.iconName||!A.isAttached)return D.return();f=A;X=f.icon;Q=f.size;q=f.defaultToFilled;e=f.active;G=f.targetContainer;A.toggleContainerClass(G);_.M("kevlar_use_wil_icons")&&X&&(N=Trx(X),A.iconType=N.length?N[1]:null);if(X){D.jumpTo(2);break}A.iconsetName="";A.iconName="";return D.yield(A.renderIcon(G,X),3);case 3:return D.return();case 2:z=zaf(X);
T=Trx(z);T.length&&(A.iconsetName=T[0],A.iconName=T[1]);if(!_.M("kevlar_use_wil_icons")){D.jumpTo(4);break}O=Zm;c=PhC;B=A.iconType;h=A.active;W=A.defaultToFilled;L=A.size;E=A.iconsetName;return D.yield(TTE(),6);case 6:return D.yield(c.call(O,B,h,W,L,E,D.yieldResult),5);case 5:A.iconShapeData=D.yieldResult;case 4:if(A.shouldRenderIconShape(G)){D.jumpTo(7);break}return D.yield(A.determineIconSet(z,e,q,Q,G),7);case 7:return D.yield(A.renderIcon(G,X),0)}})};
Zm.prototype.toggleContainerClass=function(A){A?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var zaf=function(A){return!_.M("default_to_innertube_icon")||A.indexOf(":")>0?A:_.t7(A)};
_.J=Zm.prototype;_.J.determineIconSet=function(A,t,f,X){var Q=this;return _.l(function(q){return q.nextAddress==1?_.M("kevlar_system_icons")||_.ah("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.ah("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?q.yield(Q.switchToYtSysIconset(A,t,f,X),3):q.jumpTo(2):q.nextAddress!=2?q.return():q.yield(Q.useYtSysIconsetForMissingIcons(A,t,f,X),0)})};
_.J.switchToYtSysIconset=function(A,t,f,X){var Q=this,q,e,G,N,z,T,O;return _.l(function(c){switch(c.nextAddress){case 1:if(!A||Q.iconsetName!=="yt-icons"&&Q.iconsetName!=="yt-sys-icons"){c.jumpTo(0);break}q=Trx(A);e=q[1];var B=e;if(R80(B))e=B;else{var h=B=B.toLowerCase();(B=hJS.get(B))&&(h=B);e=h}_.M("enable_polymer_icons_replace_underscores_dash")&&e.includes("_filled")&&(e=e.replace(/_filled/g,"-filled"));return c.yield(A7(e,!0),3);case 3:return G=c.yieldResult,c.yield(A7(e,!1),4);case 4:if((N=
c.yieldResult)||t&&G)Q.iconsetName="yt-sys-icons";Q.iconName=Q.getIconName(e,t,f,N,G);if(X===24){c.jumpTo(0);break}z="yt-sys-icons"+X+":"+Q.iconName;return c.yield(A7(z,!1,!0),6);case 6:return T=c.yieldResult,c.yield(A7(z,!0,!0),7);case 7:O=c.yieldResult;Q.iconName=Q.getIconName(e,t,f,T,O);if(!t&&T||t&&O)Q.iconsetName="yt-sys-icons"+X;_.LO(c)}})};
_.J.getIconName=function(A,t,f,X,Q){A.includes("-filled")&&(A=A.replace("-filled",""));return Q&&(t||f)?A+"-filled":A};
_.J.useYtSysIconsetForMissingIcons=function(A,t,f,X){var Q=this,q,e;return _.l(function(G){if(G.nextAddress==1)return Q.iconsetName!=="yt-icons"?G.jumpTo(0):G.yield(A7(Q.iconName,!1,!1,!0),3);if(G.nextAddress!=4)return q=G.yieldResult,G.yield(A7(Q.iconName,!1),4);e=G.yieldResult;if(q||!e)return G.jumpTo(0);Q.iconsetName="yt-sys-icons";return G.yield(Q.switchToYtSysIconset(A,t,f,X),0)})};
_.J.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var TTE=function(){return _.l(function(A){try{return A.return(_.Px().resolve(_.fI))}catch(t){return A.return(new Promise(function(f){_.TT().parkOrScheduleJob(function(){f(_.Px().resolve(_.fI))},2,"ci")}))}})},PhC=function(A,t,f,X,Q,q){X=X===void 0?24:X;
if(A){A=A.toLowerCase();var e=A.endsWith("_filled")||A.endsWith("-filled");t={iconName:A,iconStyle:(t===void 0?0:t)||(f===void 0?0:f)||e?"youtube_fill":"youtube_outline",iconSize:X,iconSetName:Q===void 0?"yt-icons":Q};f=!!q.resolveIcon(t);f||(t.iconSize=void 0,f=!!q.resolveIcon(t));!f&&e&&(t.iconName=A.substring(0,A.length-7),t.iconSize=X,f=!!q.resolveIcon(t),f||(t.iconSize=void 0,f=!!q.resolveIcon(t)));f||(t.iconStyle=void 0,f=!!q.resolveIcon(t));f||_.K4(new _.xj("Icon not supported",{iconName:t.iconName,
iconStyle:t.iconStyle,iconSize:t.iconSize,iconType:A}));return f?t:void 0}};
_.J=Zm.prototype;_.J.shouldRenderIconShape=function(A){if(!_.M("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;A=this.getContainer(A);return!FHx(A,this.icon)};
_.J.renderIcon=function(A,t){var f=this,X,Q,q,e,G,N,z,T;return _.l(function(O){switch(O.nextAddress){case 1:if(t&&f.icon!==t)return O.return();X=f.getContainer(A);Q=FHx(X,f.icon);if(f.shouldRenderIconShape(A)&&f.iconType)return f.applyIconShape(Q,X),O.return();f.removeIconShape();if(!X)return O.return();f.iconName===""&&f.iconset&&X&&(f.removeStaticIcon(f.iconset,X),Q&&f.removeAnimatedIcon(X));if(f.iconName===""&&f.iconset||!f.iconsetName||!uqS)return O.return();f.iconset=uqS.byKey(f.iconsetName);
if(!f.iconset)return f.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.JY(f,f.onIconsetAdded)),O.return();f.missingIconSet&&(f.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.JY(f,f.onIconsetAdded)));e=(q=Q||f.isAnimatedIcon?EZ5(f.icon):void 0)&&!q.lazyLoad;N=q&&((G=q)==null?void 0:G.lazyLoad)&&(q.lottiePlayerProps.animationConfig.animationData?!0:O7.get(f.isDarkTheme?q.pathDarkTheme:q.path)?!0:!1);if(e||N)return f.applyAnimatedIcon(X,q,f.iconset),O.return();if(N||
(z=q)==null||!z.lazyLoad){O.jumpTo(2);break}T=xYz(q,f.isDarkTheme);f.applyStaticIcon(f.iconset,X,f.iconName,A,Q);return O.yield(T,3);case 3:return O.yield(f.renderIcon(f.targetContainer,f.icon),4);case 4:return O.return();case 2:f.applyStaticIcon(f.iconset,X,f.iconName,A,Q),_.LO(O)}})};
_.J.getContainer=function(A){var t,f=(t=rAz(this.hostElement))==null?void 0:t.host;t=!!f&&!!f.polymerController;if(!A||t)return A?this.getTargetContainer(A,f):this.hostElement};
_.J.getTargetContainer=function(A,t){var f=_.sF(t).querySelector("#"+A);f||(A=new _.xj("yt-icon container missing",t.is,A),_.HQ(A));return f};
_.J.applyStaticIcon=function(A,t,f,X,Q){Q&&this.removeAnimatedIcon(t);this.removeIconShape();Q=Q&&!!this.iconType&&!!this.iconShapeData&&_.M("kevlar_use_wil_icons");try{Q?this.applyIconShape(!1,t):A.applyIcon(t,f)}catch(q){this.handleError(q,X,t)}};
_.J.applyIconShape=function(A,t){this.iconset&&t&&(this.removeStaticIcon(this.iconset,t),A&&this.removeAnimatedIcon(t));A={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var f=_.U(this.iconShapeDataSignal);t=f.next().value;f=f.next().value;var X=_.U(this.renderingOptionsSignal),Q=X.next().value;X=X.next().value;f(this.iconShapeData);X(A);if(!this.wizHasRendered)for(this.wizHasRendered=!0,A=_.U(VZb(t,Q)).next().value;A.firstChild;)_.sF(this.hostElement).appendChild(A.firstChild)};
_.J.removeIconShape=function(){if(_.M("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.J.removeStaticIcon=function(A,t){A.removeIcon(t)};
_.J.applyAnimatedIcon=function(A,t,f){this.removeStaticIcon(f,A);this.removeIconShape();var X;f=this.animatedIconElement&&((X=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:X.type)===t.type;if(this.animatedIconElement&&f){this.animatedIconElement.polymerController.animatedIcon=t;var Q;((Q=this.animatedIconElement)==null?void 0:Q.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(A),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=t,this.animatedIconElement.polymerController.active=this.active,_.M("delhi_modern_web_player_icons")?(t=nZb(A,this.icon)&&A.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=t?t.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.M("kevlar_use_wil_icons")?
A.insertBefore(this.animatedIconElement,A.childNodes[0]):(A=_.sF(A),A.insertBefore(this.animatedIconElement,A.childNodes[0]))};
_.J.removeAnimatedIcon=function(A){_.M("kevlar_use_wil_icons")?this.animatedIconElement&&A.contains(this.animatedIconElement)&&A.removeChild(this.animatedIconElement):(A=_.sF(A),this.animatedIconElement&&A.contains(this.animatedIconElement)&&A.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.J.handleError=function(A,t,f){_.gL(A,this.iconName,t,f);t=FHx(f,this.icon);var X=!1;window.location.href.includes("JpymaW6Lh2w")?X=!0:f._svgIcon&&(f=(f=f._svgIcon.parentNode)?f.tagName:"unknown",_.gL(A,f),f==="YT-ICON"&&A.name==="NotFoundError"?X=!0:A.name==="NotFoundError"&&t&&(X=!0));X?_.K4(A):_.HQ(A)};
_.PV.Object.defineProperties(Zm,{template:{configurable:!0,enumerable:!0,get:function(){if(NTS===void 0){var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;
lDK===void 0&&(lDK=document.createElement("template"));var X=lDK;f.call(t,X.content.cloneNode(!0),A.content.firstChild);NTS=A}A=NTS;return A}}});
Zm.prototype.handlePropertyChange=Zm.prototype.handlePropertyChange;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Zm.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",String)],Zm.prototype,"icon",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Zm.prototype,"active",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Zm.prototype,"defaultToFilled",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Zm.prototype,"isAnimatedIcon",void 0);
_.V([_.n({value:24}),_.H("design:type",Number)],Zm.prototype,"size",void 0);_.V([_.n({value:""}),_.H("design:type",String)],Zm.prototype,"targetContainer",void 0);_.V([_.n(),_.H("design:type",Object)],Zm.prototype,"animatedIconElement",void 0);_.V([_.n(),_.H("design:type",Object)],Zm.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Zm.prototype,"ariaHidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Zm.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Zm.prototype,"role",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Zm.prototype,"tabindex",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Zm.prototype,"title",void 0);_.V([_.n(),_.H("design:type",String)],Zm.prototype,"style",void 0);_.V([_.n(),_.H("design:type",String)],Zm.prototype,"iconFilter",void 0);_.V([_.n(),_.H("design:type",String)],Zm.prototype,"gradientColor",void 0);
_.V([_.ev("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],Zm.prototype,"handlePropertyChange",null);_.V([_.WU({is:"yt-icon",noInjection:!0})],Zm);var ZEx="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),dYx=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var icE={};icE.YtPlaintextBehavior=[_.YD,{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(A){A.preventDefault();A=A.clipboardData.getData("text/plain");document.execCommand("insertText",!1,A)},
preventRichTextFormatting_:function(A){_.e7&&(A=A.detail.keyboardEvent,A.stopImmediatePropagation(),A.preventDefault())}}];var Ock;var cgp;var o4=function(){var A=_.F.apply(this,arguments)||this;A.ignoreShadyDom=!1;A.hasChange_=!1;A.hasSetTitle_=!1;A.useIOObserverForVisibilityLogging_=_.M("kevlar_use_vimio_behavior")&&_.ah("INNERTUBE_CLIENT_NAME")==="WEB";A.ytFormattedStringObserverHandlerKeys_=void 0;return A};
_.R(o4,_.F);_.J=o4.prototype;_.J.created=function(){this.useIOObserverForVisibilityLogging_=_.M("kevlar_use_vimio_behavior")&&_.ah("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.J.ready=function(){_.ah("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_()};
_.J.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.J.detached=function(){this.unobserveIOObservers_()};
_.J.clearContents_=function(){for(var A=this.getRoot(),t=A.lastChild;t&&t.tagName!=="STYLE";){try{A.removeChild(t)}catch(f){break}t=A.lastChild}};
_.J.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var A=_.U(this.ytFormattedStringObserverHandlerKeys_),t=A.next();!t.done;t=A.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(t.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.J.resetForAttributedString=function(){var A=this.getRoot();!A.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),A.appendChild(this.ytAttributedStringElementRef))};
_.J.resetForFormattedString=function(){var A=this.getRoot(),t=A.querySelector("yt-attributed-string");t&&(this.ytAttributedStringElementRef=A.removeChild(t))};
_.J.textChanged=function(){this.textChanged_(this.text)};
_.J.textChanged_=function(A){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!A||!A.runs&&!A.simpleText;if(_.M("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var t=this.hostElement.firstChild;t&&t.nodeName==="FONT";){var f=t;t=t.nextSibling;this.hostElement.removeChild(f)}t=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
f=A.simpleText;var X;!f&&((X=A.runs)==null?void 0:X.length)===1&&this.isSimpleString_(A.runs[0])&&(f=A.runs[0].text);f!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.ah("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(f!==void 0){try{t.textContent=f}catch(Q){}t.textContent||(this.isEmpty=!0)}else A=A.runs,f!==void 0&&(A=[{text:f}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),A&&this.updateText_(A),
t.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.J.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)};
_.J.computeAriaLabel_=function(A){return A};
_.J.computeEllipsisTruncateStyling=function(A,t){return A&&!t};
_.J.computeUseAttributedString=function(A){return _.M("web_replace_formatted_with_attributed_string")&&XwT(A)&&!this.disableAttributedString&&!this.enableContentEditable};
_.J.setNodeStyle_=function(A,t){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.M("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?t.removeAttribute("dir"):t.setAttribute("dir","auto");t.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");t.style.color="";var f=null;this.noStyles||(A.bold&&(t.classList.add("bold"),f="bold"),A.deemphasize&&(t.classList.add("deemphasize"),f="deemphasize"),A.italics&&t.classList.add("italic"),
A.strikethrough&&t.classList.add("strikethrough"),A.errorUnderline&&(t.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),A.bracket&&t.classList.add("bracket"),A.textColor&&(t.style.color=_.mt(A.textColor)));f!==t.getAttribute("style-target")&&(f?t.setAttribute("style-target",f):t.removeAttribute("style-target"))};
_.J.setUpVisibilityLogging_=function(A,t){var f=this;this.setNodeTrackingParams_(A,t);var X;((X=t.data)==null?0:X.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(A=this.ytRendererBehavior.visibilityObserver.observe(t,function(Q){var q=f.ytRendererBehavior.getVisibilityLogger();q&&q.reportShown(Q)},this.ytRendererBehavior.visibilityOptionVisible_),t=this.ytRendererBehavior.visibilityObserver.observe(t,function(Q){var q=f.ytRendererBehavior.getVisibilityLogger();
q&&q.reportHidden(Q)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(A),this.ytFormattedStringObserverHandlerKeys_.push(t))};
_.J.setNodeTrackingParams_=function(A,t){t.data||(t.data={});if((A=A.loggingDirectives?A.loggingDirectives.trackingParams:null)||t.data.trackingParams)t.data.trackingParams=A};
_.J.computeHasLinkOnly_=function(A){return!(!A||A.length!==1||this.noEndpoints||!A[0].navigationEndpoint)};
_.J.getRoot=function(){var A=this.buildScopeDomOptions();return this.enableContentEditable?_.sF(_.sF(this.hostElement,A).querySelector("[contenteditable]")):_.sF(this.hostElement,A)};
_.J.fixContenteditableScope=function(){var A=function(t){t&&(t.nodeType===1&&t.classList&&(t.classList.add("style-scope"),t.classList.add("yt-formatted-string")),t.childNodes&&t.childNodes.forEach(function(f){A(f)}))};
A(this.getRoot())};
_.J.updateText_=function(A){for(var t=A.length,f=this.getRoot(),X=f.firstChild;X&&X.nodeName==="STYLE";)X=X.nextSibling;for(var Q=0;Q<t&&X;){var q=A[Q],e=_.M("remove_cr_char")&&q.text?q.text.replace("\r",""):q.text;if(this.isSimpleString_(q)&&!this.useMixedDirectionFormattedStrings)if(X.nodeName==="#text"){X.textContent!=e&&(X.textContent=e);Q++;X=X.nextSibling;continue}else break;if(_.C(q,h7))break;else if(!this.noEndpoints&&q.navigationEndpoint){if(X.nodeName!=="A")break;this.setDataOnAnchor_(X,
q.navigationEndpoint)}else if(X.nodeName!=="SPAN")break;this.setNodeStyle_(q,X);this.setUpVisibilityLogging_(q,X);X.textContent!=e&&(X.textContent=e);Q++;X=X.nextSibling}if(X)for(q=f.lastChild,X=Q?X.previousSibling:null;q&&q!=X;){try{f.removeChild(q)}catch(G){break}q=f.lastChild}Q!==t&&this.addTextNodes_(A,Q)};
_.J.addTextNodes_=function(A,t){for(var f=document.createDocumentFragment(),X=A.length;t<X;t++){var Q=A[t],q=_.M("remove_cr_char")&&Q.text?Q.text.replace("\r",""):Q.text;if(this.isSimpleString_(Q)&&!this.useMixedDirectionFormattedStrings)f.appendChild(document.createTextNode(q));else{var e=_.C(Q,h7);if(e){if(e.image){var G=document.createElement("img");e.isCustomEmoji||G.classList.add("small-emoji");G.classList.add("emoji");e.isCustomEmoji&&(G.dataset.emojiId=e.emojiId);G.src=_.a8(e.image.thumbnails,
this.emojiSize);(Q=this.get("image.accessibility.accessibilityData.label",e))?G.alt=Q:e.shortcuts&&e.shortcuts.length>0?G.alt=e.shortcuts[0]:e.emojiId&&(G.alt=e.emojiId);f.appendChild(G);this.hasEmoji=!0}}else!this.noEndpoints&&Q.navigationEndpoint?(G=document.createElement("a"),G.classList.add("yt-simple-endpoint"),G.setAttribute("spellcheck","false"),this.setDataOnAnchor_(G,Q.navigationEndpoint)):G=document.createElement("span"),this.setNodeStyle_(Q,G),this.setUpVisibilityLogging_(Q,G),G.appendChild(document.createTextNode(q)),
f.appendChild(G)}}this.getRoot().appendChild(f)};
_.J.isSimpleString_=function(A){return(this.noEndpoints||!A.navigationEndpoint)&&!_.C(A,h7)&&(this.noStyles||!(A.bold||A.deemphasize||A.italics||A.strikethrough||A.errorUnderline||A.bracket||A.textColor))&&!A.loggingDirectives};
_.J.getRawText=function(){return _.dF(this.text)};
_.J.getFirstRunText=function(){var A;if(((A=this.text)==null?0:A.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.J.setFirstRunText=function(A){var t;((t=this.text)==null?0:t.runs)&&this.text.runs[0]&&(this.text.runs[0].text=A,this.textChanged_(this.text))};
_.J.setDataOnAnchor_=function(A,t){var f=this;!_.M("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(t)||this.isSignalServiceEndpoint_(t)?(A.onclick=this.serviceEndpointHandler_(t),Kb(A,"#")):ros({text:this.text,command:t},function(){Nfb(A,t,f.target)})};
_.J.isServiceEndpoint_=function(A){var t;return!((t=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null||!t.sendPost)};
_.J.isSignalServiceEndpoint_=function(A){return!!_.C(A,_.qJ)};
_.J.serviceEndpointHandler_=function(A){var t=this;return function(f){_.Al(t.hostElement,[A]);f.preventDefault()}};
_.J.overrideAriaLabelChanged_=function(){var A=this.getRoot();this.enableContentEditable&&A&&A.setAttribute("aria-label",this.overrideAriaLabel)};
_.J.enableContentEditableChanged_=function(){var A=this,t=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),t=_.sF(this.hostElement,t),!t.lastChild||t.lastChild instanceof HTMLElement&&t.lastChild.id!=="contenteditable-root"){var f=document.createElement("div");f.id="contenteditable-root";f.setAttribute("contenteditable","true");f.setAttribute("dir","auto");f.onfocus=function(){A.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
t.appendChild(f);this.overrideAriaLabel&&f.setAttribute("aria-label",this.overrideAriaLabel)}}else f=_.kO(this.hostElement).firstChild,f instanceof HTMLElement&&f.id==="contenteditable-root"&&_.sF(this.hostElement,t).removeChild(f)};
_.J.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.J.getNodesForVisibilityLogging_=function(){return _.tJ(this.getRoot().childNodes,function(A){var t;return!((t=A.data)==null||!t.trackingParams)})};
_.J.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.J.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var A=this.ytRendererBehavior.getVisibilityLogger();A&&this.getNodesForVisibilityLogging_().forEach(function(t){A.reportShown(t)})}};
_.J.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var A=this.ytRendererBehavior.getVisibilityLogger();A&&this.getNodesForVisibilityLogging_().forEach(function(t){A.reportHidden(t)})}};
_.PV.Object.defineProperties(o4.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.M("enable_mixed_direction_formatted_strings")}}});
o4.prototype.enableContentEditableChanged_=o4.prototype.enableContentEditableChanged_;o4.prototype.overrideAriaLabelChanged_=o4.prototype.overrideAriaLabelChanged_;o4.prototype.ellipsisTruncateChanged_=o4.prototype.ellipsisTruncateChanged_;o4.prototype.textChanged=o4.prototype.textChanged;_.V([_.b(icE.YtPlaintextBehavior),_.H("design:type",Object)],o4.prototype,"ytPlaintextBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],o4.prototype,"ytComponentBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],o4.prototype,"text",void 0);_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"noEndpoints",void 0);_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"noStyles",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],o4.prototype,"isDarkTheme",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],o4.prototype,"splitLines",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],o4.prototype,"forceDefaultStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],o4.prototype,"ellipsisTruncate",void 0);_.V([_.n(),_.H("design:type",Object)],o4.prototype,"ignoreShadyDom",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.H("design:type",Boolean)],o4.prototype,"ellipsisTruncateStyling",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.H("design:type",String)],o4.prototype,"ariaLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],o4.prototype,"isEmpty",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.H("design:type",Boolean)],o4.prototype,"hasLinkOnly_",void 0);_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"hasEmoji",void 0);_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"disableAttributedString",void 0);_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"isOverlay",void 0);_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"linkInheritColor",void 0);
_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"noPreWrap",void 0);_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"userInput",void 0);_.V([_.n({value:16}),_.H("design:type",Number)],o4.prototype,"emojiSize",void 0);_.V([_.n(),_.H("design:type",String)],o4.prototype,"target",void 0);_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"enableContentEditable",void 0);_.V([_.n(),_.H("design:type",String)],o4.prototype,"overrideAriaLabel",void 0);
_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"respectHtmlDir",void 0);_.V([_.n(),_.H("design:type",Boolean)],o4.prototype,"respectLangDir",void 0);_.V([_.y("plaintextOnly"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],o4.prototype,"useMixedDirectionFormattedStrings",null);_.V([_.n({computed:"computeUseAttributedString(text)"}),_.H("design:type",Boolean)],o4.prototype,"useYtAttributedString",void 0);
_.V([_.ev("text"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o4.prototype,"textChanged",null);_.V([_.ev("ellipsisTruncate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o4.prototype,"ellipsisTruncateChanged_",null);_.V([_.ev("overrideAriaLabel"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o4.prototype,"overrideAriaLabelChanged_",null);
_.V([_.ev("enableContentEditable"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o4.prototype,"enableContentEditableChanged_",null);_.V([_.WU({is:"yt-formatted-string",disableElementRegistration:!0})],o4);
_.Y(o4,"yt-formatted-string",function(){if(cgp===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Ock===void 0&&(Ock=document.createElement("template"));var X=Ock;f.call(t,X.content.cloneNode(!0),A.content.firstChild);cgp=A}A=cgp;return A});var BTS;var MFK;var Chw;var haT;var dx=function(){var A=_.F.apply(this,arguments)||this;A.focused=!1;A.disabled=!1;A.isOverlay=!1;return A};
_.R(dx,_.F);dx.prototype.triggerDown=function(){if(!this.disabled){_.rH(this.hostElement,"down",!0);var A;(A=this.currentAnimation)==null||A.cancel()}};
dx.prototype.triggerUp=function(){if(!this.disabled){_.rH(this.hostElement,"down",!1);var A=this.fillElement;var t=this.strokeElement;typeof GroupEffect==="function"?(A=new GroupEffect([VF5(A),Zcs(t)]),A=new Animation(A,document.timeline)):A=new $7b(A,t);this.currentAnimation=A;var f;(f=this.currentAnimation)==null||f.play()}};
_.V([_.lo(".stroke"),_.H("design:type",HTMLElement)],dx.prototype,"strokeElement",void 0);_.V([_.lo(".fill"),_.H("design:type",HTMLElement)],dx.prototype,"fillElement",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dx.prototype,"focused",void 0);_.V([_.n(),_.H("design:type",Object)],dx.prototype,"disabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dx.prototype,"isOverlay",void 0);_.V([_.WU({is:"yt-interaction",disableElementRegistration:!0})],dx);
_.Y(dx,"yt-interaction",function(){if(haT===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Chw===void 0&&(Chw=document.createElement("template"));var X=Chw;f.call(t,X.content.cloneNode(!0),A.content.firstChild);haT=A}A=haT;return A},{mode:2});var SD=function(){return _.F.apply(this,arguments)||this};
_.R(SD,_.F);_.J=SD.prototype;_.J.ready=function(){var A=this,t=_.sF(this.hostElement).querySelector("#button");t.addEventListener("focus",function(){iDl||(iDl=new TIp);A.keyboardFocused=iDl.isKeyBoardInUse()});
t.addEventListener("blur",function(){A.keyboardFocused=!1;A.rippleUp_()})};
_.J.computeTabIndex_=function(A){return A?-1:0};
_.J.computeButtonAriaPressed_=function(A){if(this.toggleable)return A?"true":"false"};
_.J.rippleDown_=function(){_.sF(this.hostElement).querySelector("#interaction").triggerDown()};
_.J.rippleUp_=function(){_.sF(this.hostElement).querySelector("#interaction").triggerUp()};
_.J.onPressedChanged_=function(){var A=_.kO(_.sF(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.kO(_.sF(this.hostElement).querySelector("#button")).children[0];A&&(A.active=this.pressed)};
SD.prototype.onPressedChanged_=SD.prototype.onPressedChanged_;SD.prototype.rippleUp_=SD.prototype.rippleUp_;SD.prototype.rippleDown_=SD.prototype.rippleDown_;_.V([_.n(),_.H("design:type",String)],SD.prototype,"label",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],SD.prototype,"disabled",void 0);_.V([_.n(),_.H("design:type",Boolean)],SD.prototype,"pressed",void 0);_.V([_.n(),_.H("design:type",Object)],SD.prototype,"toggleable",void 0);
_.V([_.n(),_.H("design:type",Boolean)],SD.prototype,"untabbable",void 0);_.V([_.n(),_.H("design:type",Boolean)],SD.prototype,"keyboardFocused",void 0);_.V([_.UQ("down"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SD.prototype,"rippleDown_",null);_.V([_.UQ("up"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SD.prototype,"rippleUp_",null);
_.V([_.ev("pressed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SD.prototype,"onPressedChanged_",null);_.V([_.WU({is:"yt-icon-button",disableElementRegistration:!0})],SD);
_.Y(SD,"yt-icon-button",function(){if(MFK===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;BTS===void 0&&(BTS=document.createElement("template"));var X=BTS;f.call(t,X.content.cloneNode(!0),A.content.firstChild);MFK=A}A=MFK;return A},{mode:2});var Ral;var mei=function(){var A=document.body,t=A.appendChild;if(Ral===void 0){var f=document.createElement("template");_.m(f,'\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>');
Ral=f}f=Ral;t.call(A,f.content)};
document.body?mei():window.addEventListener("DOMContentLoaded",mei);var bcl=_.dS(["aria-"]),$a={};$a.YtRenderButtonBehavior=[_.g.YtRendererBehavior,_.xa.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!!_.Px().resolve(_.z7(_.mJ))&&_.M("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 A=this.computeHref_(this.endpoint,!0);A?Kb(this.elements_.endpoint,A):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){A=this.buttonClass.split(" ");A=_.U(A);for(var t=A.next();!t.done;t=A.next())t=t.value,_.rH(this.hostElement,t,!0),this.elements_.button&&_.rH(this.elements_.button,t,!0),this.elements_.text&&_.rH(this.elements_.text,t,!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&&(A=null,this.buttonAccessibility&&(A=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=A:A?_.GG([_.Pd(bcl)],this.elements_.button,"aria-label",A):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var A=_.Px().resolve(_.z7(_.mJ));A&&(this.keyboardFocused=A.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.MX("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,_.iS(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.iS(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(A,t){if(t)for(A=t.split(" "),A=_.U(A),t=A.next();!t.done;t=A.next())t=t.value,_.rH(this.hostElement,t,!1),this.elements_.button&&_.rH(this.elements_.button,t,!1),this.elements_.text&&_.rH(this.elements_.text,t,!1)},
buttonIconChanged_:function(A){this.elements_.icon?A?(this.elements_.icon.icon=A,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.iS(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.AY(this.hostElement,"is-paper-button-with-icon",!1)):A&&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"&&_.iS(this.elements_.button).appendChild(this.elements_.icon):_.iS(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.AY(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(A){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,A){var t=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(A){case "yt_icon_button_with_label":t=!0;_.rH(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();A=_.iS(this.elements_.button).firstElementChild;
this.elements_.icon=A;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.iS(this.elements_.endpoint).appendChild(this.elements_.button);_.iS(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.MX("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;_.iS(this.elements_.button).appendChild(this.elements_.text);_.iS(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":t=!0,this.elements_.button=this.getYtIconButton_(),A=_.iS(this.elements_.button).firstElementChild,this.elements_.icon=A,this.setIconActive_(this.elements_.icon),
_.iS(this.elements_.endpoint).appendChild(this.elements_.button)}_.AY(this.hostElement,"is-icon-button",t);_.AY(this.hostElement,"is-paper-button",!t);_.AY(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 f;_.sF((f=this.container.hostElement)!=null?f:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.iS(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(A){if(A!=void 0||this.disabled)this.disabled=A,this.elements_.button&&(this.elements_.button.disabled=A)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(A){_.M("kevlar_system_icons")&&A&&this.data&&(this.data.isSelected!==void 0?A.active=this.data.isSelected:this.data.isToggled!==void 0&&(A.active=this.data.isToggled))},
observeBasicPalette_:function(A){_.BO(this.hostElement,A)},
disabledChanged_:function(A){this.data&&this.set("data.isDisabled",A)},
onYtButtonTap_:function(A){if(this.disabled)A.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Al(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(A=this.disableCommandHandlerOverride,!this.data||!this.data.command||A||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.M("handle_service_request_actions")||_.Al(this.hostElement,[this.serviceEndpoint]),
_.s9(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.M("handle_service_request_actions")?(A=[],this.serviceEndpoint&&A.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&A.push(this.data.command),A.length&&_.tl(this.hostElement,A,this.hostElement)):this.data&&this.data.command&&(A=this.data.command,A.accountUnlinkCommand||A.accountLinkCommand||A.insertAdCommand||A.insertHighlightMarkerCommand||
A.createLivestreamHighlightClipCommand||A.getVideoUploadFeedbackCommand||A.musicDeletePrivatelyOwnedEntityCommand||A.ypcCancelRecurrenceEndpoint||A.getMultiSelectCommandEndpoint?_.Al(this.hostElement,[A]):_.tl(this.hostElement,[A],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 A,t=_.sF((A=this.container.hostElement)!=null?A:this.container);t.lastChild&&t.lastChild.tagName!="STYLE";)try{t.removeChild(t.lastChild)}catch(f){break}},
getYtIconButton_:function(){var A=this.reuseEnabled_()?_.MX("yt-icon-button"):document.createElement("yt-icon-button"),t=_.iS(A).firstElementChild;if(t&&t.is!="yt-icon"){for(t=_.iS(A);t.lastChild;)t.removeChild(t.lastChild);t=null}t||(t=this.getIcon_(),this.setIconActive_(t),_.iS(A).appendChild(t));return A},
reuseEnabled_:function(){return _.M("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.MX("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.MX("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.WcE={};
_.WcE.YtButtonBehavior=[$a.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var A=this.data;A&&(this._setEndpoint(this.computeEndpoint_(A)),this._setServiceEndpoint(this.computeServiceEndpoint_(A)),this._setCommand(this.computeCommand_(A)),this._setButtonIcon(this.computeButtonIcon_(A)),this._setButtonText(this.computeButtonText_(A,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(A)),this._setButtonTooltip(this.computeTooltip_(A)),this._setButtonClass(this.computeButtonClass_(A)),this._setIconPositionType(this.computeIconPositionType_(A)),this.updateRenderedElements())},
setPressedState:function(A){var t;if((t=this.elements_)==null?0:t.button)this.elements_.button.pressed=!!A},
computeIconPositionType_:function(A){return A&&A.iconPosition||null},
computeEndpoint_:function(A){var t=A&&A.navigationEndpoint,f=this.get("data.command.commandMetadata.webCommandMetadata.url"),X=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:A&&A.command&&A.command.modalEndpoint?A.command:f&&!X&&A.command?A.command:null},
computeServiceEndpoint_:function(A){var t=A&&A.serviceEndpoint,f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:f&&A.command?A.command:null},
computeCommand_:function(A){return A&&A.command||null},
computeButtonIcon_:function(A){return A&&A.icon&&A.icon.iconType?_.t7(A.icon.iconType):null},
computeButtonText_:function(A,t){return!t&&A&&A.text||null},
computeAccessibility_:function(A){return this.get("accessibilityData.accessibilityData",A)||A&&A.accessibility||(A&&A.text?{label:this.getSimpleString(A.text)}:null)},
computeTooltip_:function(A){return A?A.isDisabled&&A.disabledTooltip||A.tooltip||null:null},
computeButtonClass_:function(A){var t=A&&A.style?A.style.toLowerCase().replace(/_/g,"-")+" ":"";t+=A&&A.size?A.size.toLowerCase().replace(/_/g,"-")+" ":"";A.colorData&&A.colorData.basicColorPaletteData&&A.colorData.basicColorPaletteData.borderColor&&(t+="palette-with-border");return t.trim()}}];var MI={};var ygT;var v_w;var LcS,pb7=function(){return LcS!==void 0?LcS:LcS=document.createElement("template")};
document.head.appendChild(pb7().content);var E_i;var n_C,Dek=function(){return n_C!==void 0?n_C:n_C=document.createElement("template")};
document.head.appendChild(Dek().content);var Fck;var IDp,xeE=function(){return IDp!==void 0?IDp:IDp=document.createElement("template")};
document.head.appendChild(xeE().content);var jUi;var YCT=document.head,VFl=YCT.appendChild,ZcE;if(jUi===void 0){var o_p=document.createElement("template");_.m(o_p,"\x3c!--css-build:shady--\x3e");o_p.content.insertBefore(xeE().content.cloneNode(!0),o_p.content.firstChild);jUi=o_p}ZcE=jUi;VFl.call(YCT,ZcE.content);var deK=document.head,SCi=deK.appendChild,$ei;if(Fck===void 0){var HcS=document.createElement("template");_.m(HcS,"\x3c!--css-build:shady--\x3e");HcS.content.insertBefore(Dek().content.cloneNode(!0),HcS.content.firstChild);Fck=HcS}$ei=Fck;SCi.call(deK,$ei.content);var aDi=document.head,Kcp=aDi.appendChild,g_p;if(E_i===void 0){var wbl=document.createElement("template");_.m(wbl,"\x3c!--css-build:shady--\x3e");wbl.content.insertBefore(pb7().content.cloneNode(!0),wbl.content.firstChild);E_i=wbl}g_p=E_i;Kcp.call(aDi,g_p.content);var sUl;_.C1("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");sUl=_.M("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.M("web_button_rework_with_live");_.HS=function(){return _.F.apply(this,arguments)||this};
_.R(_.HS,_.F);_.HS.prototype.created=function(){this.openPopupConfig=_.ah("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.HS.prototype.onYtNavigate_=function(A){var t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);t&&(this.ytOpenPopupBehavior.openPopup(t),A.stopPropagation(),A.preventDefault())};
_.PV.Object.defineProperties(_.HS,{template:{configurable:!0,enumerable:!0,get:function(){if(v_w===void 0){var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
var t=A.content,f=t.insertBefore;ygT===void 0&&(ygT=document.createElement("template"));var X=ygT;f.call(t,X.content.cloneNode(!0),A.content.firstChild);v_w=A}A=v_w;return A}}});
_.HS.prototype.onYtNavigate_=_.HS.prototype.onYtNavigate_;_.V([_.b(_.I4.YtOpenPopupBehavior),_.H("design:type",Object)],_.HS.prototype,"ytOpenPopupBehavior",void 0);_.V([_.b(_.WcE.YtButtonBehavior),_.H("design:type",Object)],_.HS.prototype,"ytButtonBehavior",void 0);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],_.HS.prototype,"onYtNavigate_",null);
_.V([_.WU({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:sUl})],_.HS);var kM7;var rgi=_.M("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.M("web_button_rework_with_live"),a4=function(){var A=_.F.apply(this,arguments)||this;A.isPressed=!1;A.forceIconButton=!1;A.forceIconOnly=!1;A.forceModernIconButton=!1;A.skipCommandHandling=!1;A.alignByText=!1;A.fitToVisibleBounds=!0;A.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};A.onTap=function(t){_.s9(A.hostElement,"yt-service-request-sent-button-renderer",t)};
return A};
_.R(a4,_.F);_.J=a4.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.J.onClick=function(A){var t,f=this.disabled||((t=this.data)==null?void 0:t.isDisabled);t=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");f&&t&&A.stopPropagation()};
_.J.computeIcon=function(){var A,t,f=(A=this.data)==null?void 0:(t=A.icon)==null?void 0:t.iconType;if(f)return _.t7(f)};
_.J.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.J.handleUpdateButtonAction=function(A){A=_.C(A,fek);var t=_.C(A==null?void 0:A.updatedButton,_.Gf);if(this.data&&A&&t){var f=this.data;f.targetId&&A.targetId&&f.targetId===A.targetId&&(this.data=t)}};
_.PV.Object.defineProperties(a4.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var A=this;if(this.data){var t=gZs({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.s9(A.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.s9(A.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});t.alignByText=this.alignByText;return t}}}});
_.PV.Object.defineProperties(a4,{template:{configurable:!0,enumerable:!0,get:function(){if(kM7===void 0){var A=document.createElement("template");_.m(A,'\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>');kM7=A}A=kM7;return A}}});
a4.prototype.onClick=a4.prototype.onClick;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],a4.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],a4.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],a4.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],a4.prototype,"isPressed",void 0);
_.V([_.n(),_.H("design:type",Object)],a4.prototype,"forceIconButton",void 0);_.V([_.n(),_.H("design:type",Object)],a4.prototype,"forceIconOnly",void 0);_.V([_.n(),_.H("design:type",Object)],a4.prototype,"forceModernIconButton",void 0);_.V([_.n(),_.H("design:type",Object)],a4.prototype,"skipCommandHandling",void 0);_.V([_.n(),_.H("design:type",Object)],a4.prototype,"alignByText",void 0);_.V([_.n(),_.H("design:type",Object)],a4.prototype,"buttonTooltipPosition",void 0);
_.V([_.n(),_.H("design:type",Object)],a4.prototype,"fitToVisibleBounds",void 0);_.V([_.n({computed:"computeTooltip(data)"}),_.H("design:type",Object)],a4.prototype,"tooltip",void 0);_.V([_.n(),_.H("design:type",Object)],a4.prototype,"overrides",void 0);_.V([_.n(),_.H("design:type",Boolean)],a4.prototype,"disabled",void 0);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],a4.prototype,"onClick",null);
_.V([_.y("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.H("design:type",Object),_.H("design:paramtypes",[])],a4.prototype,"computedButtonShape",null);_.V([_.WU({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!rgi,cssBuildOptOut:!0}),_.WU({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!rgi,cssBuildOptOut:!0})],a4);var AI7;var tZ7;var Kx=function(){var A=_.F.apply(this,arguments)||this;A.empty_=!0;A.loadTime=Infinity;A.pendingPaint=!1;A.hasChange_=!1;A.oldThumbnail_=null;A.oldDelayedSrc_="";A.objectURL_=null;return A};
_.R(Kx,_.F);_.J=Kx.prototype;_.J.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.J.ready=function(){var A=this.shouldShowPlaceholder_();_.rH(this.hostElement,"no-transition",!0);A&&this.hostElement.classList.add("with-placeholder")};
_.J.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.J.isThumbPreloaded_=function(A){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",A)};
_.J.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||fIS};
_.J.computeThumbnailSrc_=function(A){return A&&A.thumbnails?_.a8(A.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.J.computeAlt_=function(){var A=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&A||""};
_.J.thumbnailChanged_=function(){var A=_.U([this.thumbnail,this.oldThumbnail_]),t=A.next().value;A=A.next().value;this.oldThumbnail_=t;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(A=this.computeThumbnailSrc_(A),this.computeThumbnailSrc_(t)===A))return;_.M("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(t)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):t&&_.Ka("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.us(this,this.onReload_):_.us(this,this.onShow_):this.resetImage_();t&&(this.hostElement.style.opacity=""+t.opacity)}};
_.J.delayedSrcChanged_=function(){var A=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===A||this.resetImage_()};
_.J.setSrc_=function(A){A?(_.sF(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.sF(this.hostElement).querySelector("#img").src=A):(_.sF(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.J.resetImage_=function(){sn0(this.hostElement);this.empty_=!0;this.setSrc_(fIS);this.ytRendererBehavior.invalidate(!1)};
_.J.observePlaceholderColor_=function(){var A=this.thumbnail&&this.thumbnail.placeholderColor;A?this.hostElement.style.backgroundColor=_.mt(A):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.J.onLoad_=function(){_.sF(this.hostElement).querySelector("#img").src&&_.sF(this.hostElement).querySelector("#img").src!==fIS&&(wW5(this.hostElement),this.notifyOnLoaded&&_.s9(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.J.onError_=function(){var A=this;if(_.M("web_use_cache_for_image_fallback"))QUp(_.sF(this.hostElement).querySelector("#img").src).then(function(t){A.objectURL_=_.dW(t).toString();A.setSrc_(A.objectURL_)}).catch(function(){_.M("kevlar_woffle_fallback_image")&&A.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.J.onPrescanVisible=function(){this.onShow_()};
_.J.onVisible=function(){if(_.M("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.J.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var A=this.computeSrc_();A!==_.sF(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(A))}};
_.J.onReload_=function(){this.empty_=!1;var A=this.computeSrc_();A!==_.sF(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(A))};
_.J.shouldShowPlaceholder_=function(){return _.M("kevlar_thumbnail_bg")};
Kx.prototype.observePlaceholderColor_=Kx.prototype.observePlaceholderColor_;Kx.prototype.delayedSrcChanged_=Kx.prototype.delayedSrcChanged_;Kx.prototype.thumbnailChanged_=Kx.prototype.thumbnailChanged_;_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Kx.prototype,"alt",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Kx.prototype,"ariaHidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Kx.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Kx.prototype,"hidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Kx.prototype,"id",void 0);_.V([_.b(_.GL.YtVisibilityBehavior),_.H("design:type",Object)],Kx.prototype,"ytVisibilityBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",String)],Kx.prototype,"delayedSrc",void 0);
_.V([_.n(),_.H("design:type",Object)],Kx.prototype,"thumbnail",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Kx.prototype,"loaded",void 0);_.V([_.n(),_.H("design:type",Boolean)],Kx.prototype,"notifyOnLoaded",void 0);_.V([_.n(),_.H("design:type",Number)],Kx.prototype,"height",void 0);_.V([_.n(),_.H("design:type",Number)],Kx.prototype,"width",void 0);_.V([_.n({value:function(){return"width"}}),
_.H("design:type",String)],Kx.prototype,"dimension",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Kx.prototype,"fit",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Kx.prototype,"fitHeight",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Kx.prototype,"fitWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Kx.prototype,"objectFit",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Kx.prototype,"objectPosition",void 0);_.V([_.n(),_.H("design:type",String)],Kx.prototype,"preferredThumbnail",void 0);_.V([_.n({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.H("design:type",String)],Kx.prototype,"alt_",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Kx.prototype,"sharedTooltipText",void 0);
_.V([_.n(),_.H("design:type",Boolean)],Kx.prototype,"ftlEligible",void 0);_.V([_.n({value:void 0}),_.H("design:type",String)],Kx.prototype,"observeHiddenOption",void 0);_.V([_.n({value:"observe_once"}),_.H("design:type",String)],Kx.prototype,"observePrescanOption",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Kx.prototype,"roundedContainer",void 0);
_.V([_.PU("thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kx.prototype,"thumbnailChanged_",null);_.V([_.PU("delayedSrc"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kx.prototype,"delayedSrcChanged_",null);_.V([_.ev("thumbnail.placeholderColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kx.prototype,"observePlaceholderColor_",null);
_.V([_.WU({is:"yt-img-shadow",disableElementRegistration:!0})],Kx);var fIS=_.Ka("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.wR()(Kx,"yt-img-shadow",function(){if(tZ7===void 0){var A=document.createElement("template");_.m(A,'\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">');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;AI7===void 0&&(AI7=document.createElement("template"));var X=AI7;f.call(t,X.content.cloneNode(!0),A.content.firstChild);tZ7=A}A=tZ7;return A},{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 l8g;_.gx=new _.eh("SCREEN_MANAGER_TOKEN");l8g=new _.eh("LOG_INITIAL_SCREEN_TOKEN");var XjK=RM({entities:{}});_.wx=mf(XjK)(XjK.entities,{selectSfvAudioItemPlaybackState:function(A,t){var f,X;A=(X=_.q_(A,"sfvAudioItemCurrentlyPlayingEntity",t))!=null?X:void 0;return(f=A==null?void 0:A.sfvAudioItemPlaybackState)!=null?f:void 0},
playlistLoopStateEntitySelector:kjx,toggleMenuServiceItemEntitySelector:rIx});_.s$=_.I(function(A){function t(k){return _.C(k,_.zf)}
function f(){var k=X().isTogglingDisabled||W()&&X().toggledIsTogglingDisabled,Gz=k||c()?W():!W();L(Gz);D(!1);if(!k){var Tz;(Tz=e)==null||Tz(!!Gz)}var y5;((y5=q)==null?0:y5())||_.Zv(_.Px().resolve(_.gx),X().trackingParams);var cp;if(!Gz||!t(X().defaultButtonViewModel)||(cp=q)!=null&&cp()){var iu;!t(X().toggledButtonViewModel)||((iu=q)==null?0:iu())||_.Zv(_.Px().resolve(_.gx),t(X().toggledButtonViewModel).trackingParams)}else _.Zv(_.Px().resolve(_.gx),t(X().defaultButtonViewModel).trackingParams)}
var X=A.data,Q=A.buttonShapeOverrides,q=A.disableExplicitClickLogging,e=A.onToggle,G=A.style,N=A.useOutlinedIcon,z=A.className,T=function(){var k,Gz;return W()?(k=A.animatedTextPropsToggled)==null?void 0:k.call(A):(Gz=A.animatedTextPropsDefault)==null?void 0:Gz.call(A)},O=_.yq(function(){return T()?Object.assign({},T(),{shouldAnimate:E()}):void 0},void 0,"Zp4uoe"),c=function(){var k;
return((k=d())==null?void 0:k.isToggled)!==void 0},B=_.U(_.Jo(function(){var k,Gz,Tz;
return c()?(k=d())==null?void 0:k.isToggled:(Tz=Q==null?void 0:(Gz=Q())==null?void 0:Gz.toggled)!=null?Tz:X().isToggled})),h=B.next().value;
B=B.next().value;var W=h,L=B;B=_.U(_.Jo(function(){var k,Gz;return(k=A.animatedTextPropsToggled)==null?void 0:(Gz=k.call(A))==null?void 0:Gz.shouldAnimate}));
h=B.next().value;B=B.next().value;var E=h,D=B;h=_.U(_.hZ(!1,void 0,"mq3Zfe"));var S=h.next().value,Z=h.next().value,d=_.um(function(k){a:{var Gz=X().entityKey,Tz=X().toggledStateEntitySelectorType;if(Tz)switch(Tz){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Gz)break;k=_.wx.selectSfvAudioItemPlaybackState(k,Gz);if(k==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){k={isToggled:!0};break a}if(k){k={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":k={isToggled:_.f6b(k).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":k={isToggled:_.f6b(k).includes("engagement-panel-live-chat-item-section")};break a;default:_.K4(new _.xj("Error: entitySelectorType defined but not matched in selector.",k,Tz))}k=void 0}return k}),K=function(){return Object.assign({},Q==null?void 0:Q(),{onToggle:f,
toggleable:!0,toggled:W(),focused:S()})};
return _.u("toggle-button-view-model",{"on:focusin":_.f1(function(){var k=_.Px().resolve(_.z7(_.mJ));k&&Z(k.isKeyBoardInUse());return!1}),
"on:focusout":_.f1(function(){Z(!1);return!1})},_.u(_.P,{cond:function(){return W()?t(X().toggledButtonViewModel):t(X().defaultButtonViewModel)},
then:function(k){return _.u(_.nx,{data:k,className:z,style:G,useOutlinedIcon:N,buttonOverrides:K,animatedTextProps:O})}}))},"da");
_.s$.idomCompat={callbacks:{onToggle:!0}};_.Hn(_.I(function(A){return _.u("yt-toggle-button-view-model",{class:function(){var t;return(t=A.scopingClassName)==null?void 0:t.call(A)}},_.u(_.s$,{data:function(){var t;
return(t=A.data)==null?void 0:t.call(A)},
buttonShapeOverrides:function(){var t;return(t=A.overrides)==null?void 0:t.call(A)},
animatedTextPropsDefault:function(){var t;return(t=A.animatedTextPropsDefault)==null?void 0:t.call(A)},
animatedTextPropsToggled:function(){var t;return(t=A.animatedTextPropsToggled)==null?void 0:t.call(A)},
disableExplicitClickLogging:function(){var t;return(t=A.disableExplicitClickLogging)==null?void 0:t.call(A)},
onToggle:function(t){var f;return(f=A.onToggle)==null?void 0:f.call(A,t)},
style:function(){var t;return(t=A.style)==null?void 0:t.call(A)},
useOutlinedIcon:function(){var t;return(t=A.useOutlinedIcon)==null?void 0:t.call(A)},
className:function(){var t;return(t=A.className)==null?void 0:t.call(A)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.PS,
buttonShapeOverrides:_.PS,overrides:_.PS,animatedTextPropsDefault:_.PS,animatedTextPropsToggled:_.PS,disableExplicitClickLogging:_.PS,onToggle:_.dt,style:_.PS,useOutlinedIcon:_.PS,className:_.PS,scopingClassName:_.PS}});var ka=function(){return _.F.apply(this,arguments)||this};
_.R(ka,_.F);ka.prototype.onTap=function(A){A.stopPropagation();A=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.m0("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:A})):this.ytLiveChatReduxBehavior.dispatch(_.Ta("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:A}))};
_.PV.Object.defineProperties(ka.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.engagementState)==null?void 0:A.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=_.C(this.data.toggleButton,_.Tf),t;if(Number(((t=this.likeCountState)==null?void 0:t.likeCountIfIndifferentNumber)||"0")===0){var f;t=((f=this.data.likeCountPlaceholder)==null?void 0:f.content)||""}else{var X,Q,q;t=((X=this.likeCountState)==null?void 0:(Q=X.likeCountIfIndifferent)==null?void 0:Q.content)||((q=this.data.likeCountPlaceholder)==null?void 0:q.content)||""}var e,G;f=((e=this.likeCountState)==null?void 0:(G=
e.likeCountIfLiked)==null?void 0:G.content)||"1";e=_.C(A.toggledButtonViewModel,_.zf);return Object.assign({},A,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.C(A.defaultButtonViewModel,_.zf),{title:t})},toggledButtonViewModel:{buttonViewModel:Object.assign({},e,{title:f})}})}}}});
ka.prototype.onTap=ka.prototype.onTap;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ka.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],ka.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ka.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.likeCountEntityKey"],selector:X35}),_.H("design:type",Object)],ka.prototype,"likeCountState",void 0);_.V([_.n({selectorArgs:["data.engagementStateKey"],selector:uuz}),_.H("design:type",Object)],ka.prototype,"engagementState",void 0);_.V([_.y("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ka.prototype,"isLiked",null);
_.V([_.y("data","likeCountState","isLiked"),_.H("design:type",Object),_.H("design:paramtypes",[])],ka.prototype,"toggleButton",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],ka.prototype,"onTap",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],ka);
_.Y(ka,"yt-live-chat-like-button-view-model",function(){if(JgT===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;qCE===void 0&&(qCE=document.createElement("template"));var X=qCE;f.call(t,X.content.cloneNode(!0),A.content.firstChild);JgT=A}A=JgT;return A},{mode:0});var Qeb;var qbp;var rx=function(){return _.F.apply(this,arguments)||this};
_.R(rx,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rx.prototype,"data",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],rx);
_.Y(rx,"yt-live-chat-paid-message-footer-renderer",function(){if(qbp===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Qeb===void 0&&(Qeb=document.createElement("template"));var X=Qeb;f.call(t,X.content.cloneNode(!0),A.content.firstChild);qbp=A}A=qbp;return A},{mode:0});var JIk;var UYp;var edl;var Gjw,lIk=function(){if(Gjw!==void 0)return Gjw;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;edl===void 0&&(edl=document.createElement("template"));var X=edl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return Gjw=A};var AB=function(){return _.F.apply(this,arguments)||this};
_.R(AB,_.F);AB.prototype.onTap=function(A){A.stopPropagation()};
_.PV.Object.defineProperties(AB.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=_.C(this.data.replyButton,_.zf),t,f,X,Q,q,e,G,N=Number(((t=this.replyCountState)==null?void 0:t.replyCountNumber)||"0")===0?(f=this.data)==null?void 0:(X=f.replyCountPlaceholder)==null?void 0:X.content:((Q=this.replyCountState)==null?void 0:(q=Q.replyCount)==null?void 0:q.content)||((e=this.data)==null?void 0:(G=e.replyCountPlaceholder)==null?void 0:G.content)||"",z;return Object.assign({},
A,{title:N,accessibilityText:(z=this.replyCountState)==null?void 0:z.replyButtonAccessibilityText})}}}});
_.PV.Object.defineProperties(AB,{template:{configurable:!0,enumerable:!0,get:function(){return lIk()}}});
AB.prototype.onTap=AB.prototype.onTap;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],AB.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],AB.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],AB.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.replyCountEntityKey"],selector:function(A,t){return _.q_(A.entities,"replyCountEntity",t)}}),
_.H("design:type",Object)],AB.prototype,"replyCountState",void 0);_.V([_.y("data","replyCountState"),_.H("design:type",Object),_.H("design:paramtypes",[])],AB.prototype,"buttonViewModel",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],AB.prototype,"onTap",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],AB);_.Y(AB,"yt-live-chat-reply-button-view-model",function(){return lIk()},{mode:0});var NjS;var uuk;var tB=function(){var A=_.F.apply(this,arguments)||this;A.ariaLabel="";return A};
_.R(tB,_.F);
tB.prototype.dataChanged=function(){for(var A=(0,_.XD)(_.sF(this.hostElement).querySelector("#image"));A.firstChild;)A.removeChild(A.firstChild);if(this.data)if(this.data.icon){var t=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(t.polymerController.icon="yt-sys-icons:shield-filled",t.polymerController.defaultToFilled=!0):t.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();A.appendChild(t)}else if(this.data.customThumbnail){t=document.createElement("img");
var f=_.d7u(this.data.customThumbnail.thumbnails,16);f?(t.src=f,A.appendChild(t),t.setAttribute("alt",this.hostElement.ariaLabel||"")):_.K4(new _.xj("Could not compute URL for thumbnail",this.data.customThumbnail))}};
tB.prototype.identity=function(A){return A};
tB.prototype.computeType=function(A){return kF(A||void 0)};
tB.prototype.dataChanged=tB.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],tB.prototype,"data",void 0);_.V([_.n({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.H("design:type",Object)],tB.prototype,"ariaLabel",void 0);_.V([_.n({computed:"computeType(data)",reflectToAttribute:!0}),_.H("design:type",String)],tB.prototype,"type",void 0);
_.V([_.n({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.H("design:type",String)],tB.prototype,"sharedTooltipText",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("live_chat_enable_new_moderator_badge")}}),
_.H("design:type",Boolean)],tB.prototype,"enableNewModeratorBadge",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tB.prototype,"dataChanged",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],tB);
_.Y(tB,"yt-live-chat-author-badge-renderer",function(){if(uuk===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;NjS===void 0&&(NjS=document.createElement("template"));var X=NjS;f.call(t,X.content.cloneNode(!0),A.content.firstChild);uuk=A}A=uuk;return A},{mode:0});var zdi;var PWw;var fR=function(){return _.F.apply(this,arguments)||this};
_.R(fR,_.F);_.J=fR.prototype;_.J.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"}}}}};
_.J.computeBadgesInsideChip=function(A){return A?A.filter(function(t){return kF(t.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.J.computeBadgesOutsideChip=function(A){return this.prependChatBadges||!A?[]:A.filter(function(t){t=kF(t.liveChatAuthorBadgeRenderer);return t!=="verified"&&t!=="owner"})};
_.J.computeBadgesBeforeChip=function(A){return this.prependChatBadges&&A?A.filter(function(t){t=kF(t.liveChatAuthorBadgeRenderer);return t!=="verified"&&t!=="owner"}):[]};
_.J.computeIsHighlighted=function(A,t){var f=!!Ugq(A,"owner"),X=!!Ugq(A,"verified");A=!!Ugq(A,"moderator");return(f||X&&!A)&&!t};
_.J.computeAuthorType=function(A){return Jmu(A)};
_.J.computeAuthorClass=function(A,t){return t?(A?A+" ":"")+"single-line":A};
_.J.onSeedColorChanged=function(){_.M("live_chat_author_name_color_usernames")||_.M("live_chat_seed_color_usernames")||_.M("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):_.M("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
fR.prototype.onSeedColorChanged=fR.prototype.onSeedColorChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],fR.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fR.prototype,"authorName",void 0);_.V([_.n(),_.H("design:type",Array)],fR.prototype,"authorBadges",void 0);
_.V([_.n({computed:"computeAuthorType(authorBadges)"}),_.H("design:type",String)],fR.prototype,"authorType",void 0);_.V([_.n({computed:"computeAuthorClass(authorType, singleLine)"}),_.H("design:type",String)],fR.prototype,"authorClass",void 0);_.V([_.n({computed:"computeBadgesInsideChip(authorBadges)"}),_.H("design:type",Array)],fR.prototype,"badgesInsideChip",void 0);_.V([_.n({computed:"computeBadgesOutsideChip(authorBadges)"}),_.H("design:type",Array)],fR.prototype,"badgesOutsideChip",void 0);
_.V([_.n({computed:"computeBadgesBeforeChip(authorBadges)"}),_.H("design:type",Array)],fR.prototype,"badgesBeforeChip",void 0);_.V([_.n({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.H("design:type",Boolean)],fR.prototype,"isHighlighted",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],fR.prototype,"singleLine",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],fR.prototype,"disableHighlighting",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],fR.prototype,"dashboardMoneyFeed",void 0);_.V([_.n({value:_.M("live_chat_prepend_badges"),reflectToAttribute:!0}),_.H("design:type",Boolean)],fR.prototype,"prependChatBadges",void 0);_.V([_.n(),_.H("design:type",String)],fR.prototype,"authorNameColor",void 0);_.V([_.lo("#author-name"),_.H("design:type",HTMLDivElement)],fR.prototype,"username",void 0);
_.V([_.ev("authorNameColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fR.prototype,"onSeedColorChanged",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],fR);
_.Y(fR,"yt-live-chat-author-chip",function(){if(PWw===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;zdi===void 0&&(zdi=document.createElement("template"));var X=zdi;f.call(t,X.content.cloneNode(!0),A.content.firstChild);PWw=A}A=PWw;return A},{mode:0});var Tjp;var iEp;var XW=function(){var A=_.F.apply(this,arguments)||this;A.debounceCommand=_.yD(function(t){A.ytComponentBehavior.resolveCommand(t)},1500);
return A};
_.R(XW,_.F);XW.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var A=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",t,f,X=this.isHearted?(t=this.data)==null?void 0:t.unheartCommand:(f=this.data)==null?void 0:f.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.m0("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:A}));(A=_.bP(X))&&this.debounceCommand(A)}};
_.PV.Object.defineProperties(XW.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var A,t;if(!((A=this.data)==null?0:(t=A.creatorThumbnail)==null?0:t.sources))return{};A={thumbnails:[]};t={};t.url=this.data.creatorThumbnail.sources[0].url;A.thumbnails.push(t);return A}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((f=this.engagementState)==null?void 0:f.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}}});
XW.prototype.onTap=XW.prototype.onTap;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],XW.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],XW.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],XW.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.engagementStateKey"],selector:uuz}),_.H("design:type",Object)],XW.prototype,"engagementState",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],XW.prototype,"thumbnailDetails",null);_.V([_.y("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],XW.prototype,"isHearted",null);_.V([_.y("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],XW.prototype,"isEditable",null);
_.V([_.y("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],XW.prototype,"showCreatorView",null);_.V([_.y("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],XW.prototype,"showButton",null);_.V([_.y("data","isHearted"),_.H("design:type",String),_.H("design:paramtypes",[])],XW.prototype,"label",null);_.V([_.y("data","isHearted"),_.H("design:type",Object),_.H("design:paramtypes",[])],XW.prototype,"heartHoverText",null);
_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XW.prototype,"onTap",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],XW);
_.Y(XW,"yt-live-chat-creator-heart-view-model",function(){if(iEp===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Tjp===void 0&&(Tjp=document.createElement("template"));var X=Tjp;f.call(t,X.content.cloneNode(!0),A.content.firstChild);iEp=A}A=iEp;return A},{mode:0});var QH=function(A,t){this.serviceId=new MUb(A,t)};
QH.prototype.toString=function(){return this.serviceId.toString()};var OEE=function(){this.internalMap={}};
_.J=OEE.prototype;_.J.contains=function(A){return Object.prototype.hasOwnProperty.call(this.internalMap,A)};
_.J.get=function(A){if(this.contains(A))return this.internalMap[A]};
_.J.set=function(A,t){this.internalMap[A]=t};
_.J.getKeys=function(){return Object.keys(this.internalMap)};
_.J.remove=function(A){delete this.internalMap[A]};var qR=function(){this.mappings=new OEE;this.errorCallbacks=new Set};
qR.prototype.getModuleId=function(A){return A.serviceId.getModuleId()};
qR.prototype.get=function(A){var t=this.mappings.get(A.toString());return cIC(this,t,A)};
qR.prototype.getMultipleAsync=function(){var A=_.Hu.apply(0,arguments),t=this,f=A.map(function(N){return t.getModuleId(N)}),X=A.map(function(N){return t.mappings.get(N.toString())}).filter(function(N){return N});
if(X.length===A.length)return _.ff(X.map(function(N,z){return cIC(t,N,A[z])}));
var Q=ZA().loadMultiple(f);X=_.DX(f.map(function(N){return Q[N]}));
var q=document.hidden,e=-1,G=_.cx("get_async_timeout_ms",-1);G>-1&&(e=setTimeout(function(){_.K4(new _.xj("Module timeout.",f,q,document.hidden))},G));
return _.FZ(X.then(function(){return A.map(function(N){return cIC(t,t.mappings.get(N.toString()),N)})}).thenCatch(function(N){for(var z=_.U(t.errorCallbacks),T=z.next();!T.done;T=z.next())T=T.value,T(N);
throw N;}),function(){clearTimeout(e)})};
qR.prototype.registerService=function(A,t){this.mappings.set(A.toString(),{type:"mapping",value:t});return A};
var cIC=function(A,t,f){switch(t.type){case "mapping":return t.value;case "factory":return t=t.value(),A.mappings.set(f.toString(),{type:"mapping",value:t}),t;default:return _.ap(t)}};
qR.prototype.onLoadError=function(A){var t=this;this.errorCallbacks.add(A);return function(){t.errorCallbacks.delete(A)}};
_.JB=new qR;var Bji=function(){};
_.J=Bji.prototype;
_.J.JSC$14261_getRequest=function(A,t,f){t=t===void 0?{}:t;f=f===void 0?mJk:f;var X=t;if(this.isNavigationCommand()){var Q,q=(Q=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null?void 0:Q.url;X=_.No0(A.clickTrackingParams,!0,!1,q,this.JSC$14261_getClientScreen(X))}else X=_.No0(A.clickTrackingParams,!1,this.includeCsn);X={context:X};if(Q=this.getExtension(A))return this.JSC$14261_buildRequest(X,Q,t),Q=this.getApiUrl(A),q=Object.assign({},{command:A},this.getRequestConfig(A,t)),X={input:Q,requestShell:YJ(Q),
innerTubeRequest:X,config:q},X.config.authStrategy?X.config.authStrategy.identity=f:X.config.authStrategy={identity:f},(A=this.JSC$14261_getRequestKey(A,t))&&!X.config.requestKey&&(X.config.requestKey=A),X;A=new _.xj("Error: Failed to create Request from Command.",A);_.HQ(A)};
_.J.getApiUrl=function(A){var t=_.HE(this.getApiPaths(A)),f;(A=(f=_.C(A.commandMetadata,_.Jl))==null?void 0:f.apiUrl)&&(t=A);return Vmg(Ym0(t))};
_.J.isNavigationCommand=function(){return!1};
_.J.JSC$14261_getClientScreen=function(){};
_.J.JSC$14261_getRequestKey=function(){};
_.J.getRequestConfig=function(){};
_.PV.Object.defineProperties(Bji.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Ul=function(){};
_.R(Ul,Bji);Ul.prototype.JSC$14268_getStoreKey=function(){};
Ul.prototype.JSC$14261_getRequestKey=function(A,t){t=t===void 0?{}:t;return this.JSC$14268_getStoreKey(A,t)};var eH=function(){};
_.R(eH,Ul);eH.prototype.JSC$14261_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:YJ("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
eH.prototype.getApiPaths=function(){return[]};
eH.prototype.getExtension=function(){};
eH.prototype.JSC$14261_buildRequest=function(){};var MZw={},CWf=(MZw.GET_DATASYNC_IDS=p1(eH),MZw);var hdw,Rdk,mYT,pjT,G4,vZ7,bEw,yIE,WHl;hdw="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");Rdk=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.IM=function(A,t,f,X,Q,q,e,G,N){this.endpointMap=A;this.networkManager=t;this.authService=f;this.responseProcessorMap=X;this.innertubeResponseStore=Q;this.contextProcessors=q;this.asyncContextProcessors=e;this.localInnertubeRouter=G;this.requestSequencer=N;this.inflightRequests=new Map;A.signalEndpointMap||(A.signalEndpointMap={});A.signalEndpointMap=Object.assign({},CWf,A.signalEndpointMap)};
mYT=function(A,t,f,X,Q,q,e,G,N){if(_.IM.instance!==void 0){if(X=_.IM.instance,A=[A!==X.endpointMap,t!==X.networkManager,f!==X.authService,Q!==X.innertubeResponseStore,q!==X.contextProcessors,e!==X.asyncContextProcessors,G!==X.localInnertubeRouter],A.some(function(z){return z}))throw new _.xj("InnerTubeTransportService is already initialized",A);
}else _.IM.instance=new _.IM(A,t,f,X,Q,q,e,G,N)};
_.jl=function(A,t,f){var X=X===void 0?mJk:X;var Q=bEw(A,t);return Q?new _.yy(function(q,e){var G,N,z,T,O;return _.l(function(c){switch(c.nextAddress){case 1:return c.yield(Q,2);case 2:G=c.yieldResult;N=G.JSC$14261_getRequest(t,f,X);if(!N){e(new _.xj("Error: Failed to build request for command.",t));c.jumpTo(0);break}Lp(N.input);T=((z=N.requestShell)==null?void 0:z.mode)==="cors"?"cors":void 0;if(A.authService.syncHeaders){O=WHl(N.config,T);c.jumpTo(4);break}return c.yield(yIE(N.config,T),5);case 5:O=
c.yieldResult;case 4:q(vZ7(A,N,O)),_.LO(c)}})}):_.OX(new _.xj("Error: No request builder found for command.",t))};
pjT=function(A,t,f,X){var Q=Q===void 0?mJk:Q;var q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K;return _.l(function(k){switch(k.nextAddress){case 1:q=Uks(t,A.endpointMap);if(!q)throw new _.xj("Error: No streaming request builder found for command",t);e=q.JSC$14261_getRequest(t,f,Q);if(!e)throw new _.xj("Failed to build YtRequest for streaming Command",t);if((G=A.localInnertubeRouter)==null||!G.shouldPreferLocalResponse(e.input,e.innerTubeRequest)){k.jumpTo(2);break}return k.yield(A.localInnertubeRouter.localInnertubeResponse(e.input,
e.innerTubeRequest),3);case 3:return N=k.yieldResult,z={},N.playerResponse&&(G4(A,N.playerResponse,e),z.player=N.playerResponse,(T=X)==null||T(z,N)),N.watchNextResponse&&(G4(A,N.watchNextResponse,e),z.content=N.watchNextResponse,(O=X)==null||O(z,N)),k.return(z);case 2:B=((c=e.requestShell)==null?void 0:c.mode)==="cors"?"cors":void 0;if(A.authService.syncHeaders){h=WHl(e.config,B);k.jumpTo(4);break}return k.yield(yIE(e.config,B),5);case 5:h=k.yieldResult;case 4:return E=(L=(W=e.requestShell)==null?
void 0:W.headers)!=null?L:{},e.requestShell=Object.assign({},e.requestShell,{headers:Object.assign({},E,h)}),D=Object.assign({},e.requestShell),S=JSON.stringify(e.innerTubeRequest),e.requestShell.method==="POST"&&(D=Object.assign({},D,{body:S})),Z=function(Gz,Tz){G4(A,Tz.playerResponse||Tz.watchNextResponse||Tz.reelItemWatchResponse||Tz.reelWatchSequenceResponse,e);X==null||X(Gz,Tz);_.M("web_watch_stop_scheduler_on_player_response")&&Tz.playerResponse&&LPT()},d={},k.yield(LHE(A.networkManager,e.input,
D,Z),6);
case 6:return d=k.yieldResult,((K=e.config)==null?0:K.responseTick)&&_.Wt(e.config.responseTick),k.return(d)}})};
_.uE=function(A,t,f,X,Q){Q=Q===void 0?{authStrategy:{identity:mJk}}:Q;var q=q===void 0?!0:q;var e=function(){};
e=wLT(KMx(f));t.context||(t.context=_.No0(X,q));return new _.yy(function(G){var N,z,T,O,c;return _.l(function(B){if(B.nextAddress==1)return N=Ym0(f),z=_.ja(N),A.authService.syncHeaders?(T=WHl(Q,z),B.jumpTo(2)):B.yield(yIE(Q,z),3);B.nextAddress!=2&&(T=B.yieldResult);O=Vmg(Ym0(f));c={input:O,requestShell:YJ(O),innerTubeRequest:t,config:Q};G(vZ7(A,c,T,e));_.LO(B)})})};
G4=function(A,t,f){var X;if(t&&!(t==null?0:(X=t.sequenceMetaData)==null?0:X.skipProcessing)&&A.responseProcessorMap){X=_.U(hdw);for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,A.responseProcessorMap[Q]&&A.responseProcessorMap[Q].handleResponse(t,f)}};
vZ7=function(A,t,f,X){X=X===void 0?function(){}:X;
var Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K,k,Gz,Tz,y5,cp,iu,Fb,xq,Yq,zk,PT,rs,OT,bK,ET,m3,O2,eT,fS,hf,wE;return _.l(function(Rp){switch(Rp.nextAddress){case 1:e=(Q=t.config)==null?void 0:(q=Q.storeStrategy)==null?void 0:q.storeKey;if(!(e&&A.innertubeResponseStore&&A.innertubeResponseStore.has(e))||((G=t.config)==null?0:(N=G.storeStrategy)==null?0:N.disableCache)){Rp.jumpTo(2);break}return Rp.yield(A.innertubeResponseStore.get(e),3);case 3:if((z=Rp.yieldResult)&&!z.isExpired())return Rp.return(Promise.resolve(_.wP(z)));
case 2:if(!((T=t)==null?0:(O=T.innerTubeRequest)==null?0:O.context)){Rp.jumpTo(4);break}c=t.innerTubeRequest.context;if(!(A.asyncContextProcessors&&A.asyncContextProcessors.length>0)){Rp.jumpTo(5);break}B=[];h=_.U(A.asyncContextProcessors);for(W=h.next();!W.done;W=h.next())L=W.value,E=L.processContext(t),E.wrappedPromise_&&B.push(E.wrappedPromise_);if(!(B.length>0)){Rp.jumpTo(5);break}return Rp.yield(Promise.all(B),5);case 5:D=_.U(A.contextProcessors||[]),S=D.next();case 8:if(S.done){Rp.jumpTo(4);
break}Z=S.value;return Rp.yield(Z.processContext(c),9);case 9:S=D.next();Rp.jumpTo(8);break;case 4:if((d=A.localInnertubeRouter)==null||!d.shouldPreferLocalResponse(t.input,t.innerTubeRequest)){Rp.jumpTo(12);break}return Rp.yield(A.localInnertubeRouter.localInnertubeResponse(t.input,t.innerTubeRequest),13);case 13:return K=Rp.yieldResult,G4(A,K,t),Rp.return(K);case 12:return(Tz=(Gz=t.config)==null?void 0:Gz.requestKey)&&A.inflightRequests.has(Tz)?k=A.inflightRequests.get(Tz):(y5=JSON.stringify(t.innerTubeRequest),
Fb=(iu=(cp=t.requestShell)==null?void 0:cp.headers)!=null?iu:{},t.requestShell=Object.assign({},t.requestShell,{headers:Object.assign({},Fb,f)}),xq=Object.assign({},t.requestShell),t.requestShell.method==="POST"&&(xq=Object.assign({},xq,{body:y5})),((Yq=t.config)==null?0:Yq.requestTick)&&_.Wt(t.config.requestTick),zk=function(){return A.networkManager.fetch(t.input,xq,t.config)},k=A.requestSequencer?EZC(A.requestSequencer,t,zk):zk(),Tz&&A.inflightRequests.set(Tz,k)),Rp.yield(k,14);
case 14:(PT=Rp.yieldResult)&&_.M("web_streaming_player")&&Array.isArray(PT)&&(PT=PT[0].playerResponse);if(PT&&"error"in PT&&((rs=PT)==null?0:(OT=rs.error)==null?0:OT.details))for(bK=PT.error.details,ET=_.U(bK),m3=ET.next();!m3.done;m3=ET.next())O2=m3.value,(eT=O2["@type"])&&Rdk.indexOf(eT)>-1&&(delete O2["@type"],PT=O2);Tz&&A.inflightRequests.has(Tz)&&A.inflightRequests.delete(Tz);((fS=t.config)==null?0:fS.responseTick)&&_.Wt(t.config.responseTick);if(PT||(hf=A.localInnertubeRouter)==null||!hf.canProvideFallbackResponse(t.input,
t.innerTubeRequest)){Rp.jumpTo(15);break}return Rp.yield(A.localInnertubeRouter.localFallbackInnertubeResponse(t.input,t.innerTubeRequest),16);case 16:PT=Rp.yieldResult;case 15:return G4(A,PT,t),((wE=t.config)==null?0:wE.processorTick)&&_.Wt(t.config.processorTick),X(),Rp.return(PT||void 0)}})};
_.xE=function(A,t){return Jip(t,A.endpointMap)};
bEw=function(A,t){A=e_x(t,A.endpointMap);if(A!==void 0)return Promise.resolve(A)};
yIE=function(A,t){var f,X,Q,q;return _.l(function(e){if(e.nextAddress==1){Q=(f=A)==null?void 0:(X=f.authStrategy)==null?void 0:X.sessionIndex;var G=e.yield;var N=_.ff(atg({sessionIndex:Q}));return G.call(e,N,2)}q=e.yieldResult;return e.return(Promise.resolve(Object.assign({},G05(t),q)))})};
WHl=function(A,t){var f;A=A==null?void 0:(f=A.authStrategy)==null?void 0:f.sessionIndex;f=atg({sessionIndex:A});return Object.assign({},G05(t),f)};var nZp,DYE,FHT,IIk,xYk,jeK,ZEw,oZp,uw,dY7,Sbw,VZf,$YC;nZp=0;DYE=/tone[1-5]/;FHT=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");IIk="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
xYk=Number.MAX_SAFE_INTEGER;jeK=RegExp("\ufe0f","g");_.lw=function(A){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;A&&_.Yb8(this,A)};
_.Yb8=function(A,t){try{_.y$(t,{context:A,onSuccess:function(X,Q){Array.isArray(Q)?A.load(Q):(X=new _.xj("Emoji manager JSON response was not an array!",{response:Q}),_.HQ(X))},
onError:function(X){X=new _.xj("Failed to retrieve emoji manager initial JSON data!",{url:t,statusCode:_.he(X).toString()});_.K4(X)}})}catch(X){var f=new _.xj("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:t});
_.K4(f)}};
_.lw.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.lw.prototype.load=function(A,t){if(t)if(A.length)A=A.concat(t.emojis);else{this.emojis=t.emojis;this.emojiMap=t.emojiMap;this.emojiShortcutMap=t.emojiShortcutMap;this.emojiShortcutCharMap=VZf(t);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=t.emojiRegex;return}this.emojis=[].concat(_.YV(new Set(this.emojis.concat(A))));this.hasInitializedShortcutCharMap=!1;A=Array(this.emojis.length);for(t=0;t<this.emojis.length;t++){var f=this.emojis[t];if(f.emojiId){this.emojiMap[f.emojiId]=f;this.emojiMap[f.emojiId].index=
t;for(var X=0;f.shortcuts&&X<f.shortcuts.length;X++)this.emojiShortcutMap[f.shortcuts[X].toLocaleLowerCase()]=f;A[t]=f.isCustomEmoji&&f.shortcuts?f.shortcuts[0]:f.emojiId}}A.sort(function(Q,q){return q.length-Q.length});
if(A.length)try{this.emojiRegex=new RegExp(A.join("|").replace("*","\\*"),"gi")}catch(Q){this.emojiRegex=/$./}else this.emojiRegex=/$./};
ZEw=function(A,t){t=_.U(t);for(var f=t.next();!f.done;f=t.next()){var X=f.value;if(X.emojiId&&A.emojiMap[X.emojiId]){f=Object.assign({},A.emojiMap[X.emojiId],X);A.emojiMap[X.emojiId]=f;var Q=void 0;f.index&&((Q=A.emojis[f.index])==null?void 0:Q.emojiId)===X.emojiId&&(A.emojis[f.index]=f);X=void 0;if((X=f.shortcuts)==null?0:X.length)for(A.hasInitializedShortcutCharMap=!1,X=_.U(f.shortcuts),Q=X.next();!Q.done;Q=X.next())A.emojiShortcutMap[Q.value.toLocaleLowerCase()]=f}}};
oZp=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(_.Az.getInstance(),2);if(X.nextAddress!=3)return(t=X.yieldResult)?X.yield(t.get("ytlc-emoji-pref"),3):X.return();(f=X.yieldResult)&&ZEw(A,Object.keys(f).map(function(Q){return{emojiId:Q,stickyPrefId:f[Q]}}).filter(function(Q){return!!Q.emojiId&&!!Q.stickyPrefId}));
_.LO(X)})};
_.NR=function(A,t,f){return(A=A.emojiMap[t])&&(!A.isLocked||f!==void 0&&f)?A:void 0};
uw=function(A,t,f){f=_.NR(A,t,f===void 0?!1:f);var X=t.match("\u200d");f&&A.skinTone!==0&&(A=(X==null?void 0:X.length)===1?_.NR(A,t.replace("\u200d",FHT[A.skinTone]+"\u200d")):_.NR(A,t+FHT[A.skinTone]))&&(f=A);return f};
dY7=function(A,t){var f=A.emojiMap[t];return(f==null?0:f.stickyPrefId)?A.emojiMap[f.stickyPrefId]:uw(A,t)};
_.A0=function(A,t){A=A.emojiShortcutMap[t.toLocaleLowerCase()];return!A||A.isLocked?null:A};
Sbw=function(A,t,f){return VZf(A,f===void 0?!1:f)[t]||{}};
VZf=function(A,t){t=t===void 0?!1:t;if(!A.hasInitializedShortcutCharMap){A.hasInitializedShortcutCharMap=!0;for(var f=0;f<A.emojis.length;f++){var X=A.emojis[f];if(!(X.isLocked||t&&X.isCustomEmoji&&X.emojiId&&!A.pickerCustomEmojiIds.includes(X.emojiId)))for(var Q=0;X.shortcuts&&Q<X.shortcuts.length;Q++){var q=X.shortcuts[Q];q.startsWith(":_")&&X.isCustomEmoji&&(A.emojiShortcutCharMap[":_"]==null&&(A.emojiShortcutCharMap[":_"]=Object.create(null)),A.emojiShortcutCharMap[":_"][q]=X);if(!(q.length<3||
!X.isCustomEmoji&&DYE.test(q))){var e=q.substr(0,3).toLocaleLowerCase();A.emojiShortcutCharMap[e]==null&&(A.emojiShortcutCharMap[e]=Object.create(null));A.emojiShortcutCharMap[e][q]=X}}}}return A.emojiShortcutCharMap};
_.lw.prototype.createEmoji=function(A,t){t=t===void 0?!0:t;var f=document.createElement("img");A.isCustomEmoji||f.classList.add("small-emoji");f.classList.add("emoji");f.classList.add("yt-formatted-string");f.src=A.image?_.a8(A.image.thumbnails,this.emojiSize)||"":"";var X=void 0;A.image&&A.image.accessibility&&A.image.accessibility.accessibilityData&&(X=A.image.accessibility.accessibilityData.label);f.alt=X?X:(A.isCustomEmoji&&A.shortcuts?A.shortcuts[0]:A.emojiId)||"";A.isCustomEmoji&&(f.dataset.emojiId=
A.emojiId);_.XG&&(f.setAttribute("contenteditable","false"),f.setAttribute("unselectable","on"));t&&(A.shortcuts&&A.shortcuts.length&&f.setAttribute("shared-tooltip-text",A.shortcuts[0]),f.id="emoji-"+nZp++);return f};
_.lw.prototype.createDocumentFragment=function(A,t,f,X){t=t===void 0?!1:t;f=f===void 0?!0:f;X=X===void 0?!1:X;A=A.replace(jeK,"");for(var Q=document.createDocumentFragment(),q=0,e,G=0;(e=this.emojiRegex.exec(A))!=null;){var N=_.NR(this,e[0])||_.A0(this,e[0]);!N||N.isCustomEmoji&&!t||(N=this.createEmoji(N,f),q!==e.index&&Q.appendChild(document.createTextNode(A.substring(q,e.index))),Q.appendChild(N),q=e.index+e[0].length,G++)}if(!X||G)return Q.appendChild(document.createTextNode(A.substr(q))),Q};
$YC=function(A,t,f){var X,Q,q,e,G,N,z,T,O;return _.l(function(c){if(c.nextAddress==1){if(!t.emojiId||!A.emojiMap[t.emojiId])return c.return();X=Object.assign({},A.emojiMap[t.emojiId],{stickyPrefId:f});A.emojiMap[t.emojiId]=X;t.index&&((Q=A.emojis[t.index])==null?void 0:Q.emojiId)===t.emojiId&&(A.emojis[t.index]=X);if((q=t.shortcuts)==null?0:q.length)for(A.hasInitializedShortcutCharMap=!1,e=_.U(t.shortcuts),G=e.next();!G.done;G=e.next())N=G.value,A.emojiShortcutMap[N.toLocaleLowerCase()]=X;return c.yield(_.Az.getInstance(),
2)}if(c.nextAddress!=4)return(z=c.yieldResult)?c.yield(z.get("ytlc-emoji-pref"),4):c.jumpTo(0);O=(T=c.yieldResult)!=null?T:{};O[t.emojiId]=f;return c.yield(z.set("ytlc-emoji-pref",O,xYk),0)})};
_.z4=new _.lw;var KHl;_.P4={};
KHl={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.M("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:_.M("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 Zt(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 A=_.sF(this.hostElement||this).querySelector("#inline-action-button-container");A&&A.setAttribute("aria-hidden","true");this.menuButton=_.sF(this.hostElement).querySelector("#menu-button")},
attached:function(){var A=this.menuButton;A&&(A.addEventListener("focusin",_.JY(this,this.onMenuButtonFocus_)),A.addEventListener("focusout",_.JY(this,this.onMenuButtonBlur_)))},
detached:function(){var A=this.menuButton;A&&(A.removeEventListener("focusin",_.JY(this,this.onMenuButtonFocus_)),A.removeEventListener("focusout",_.JY(this,this.onMenuButtonBlur_)))},
identity:_.I0,truthy:function(A){return!!A},
computeTimestampString:function(A){return A?A.timestampText?this.getSimpleString(A.timestampText):this.TIME_FORMATTER.format(new Date(A.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(A){return A},
computeMenuVisible_:function(A,t){return A||t},
computeHasInlineActionButtons:function(A){if(!A)return!1;var t,f;return!((t=A.inlineActionButtons)==null||!t.length)||!((f=A.additionalInlineActionButtons)==null||!f.length)},
createDocumentFragmentFromString:function(A){var t=_.z4.createDocumentFragment.bind(_.z4),f;if((f=this.participantsManager)==null||!f.viewerRegex)return t(A);f=document.createDocumentFragment();for(var X=0,Q;(Q=this.participantsManager.viewerRegex.exec(A))!=null;){if(Q.index>0){var q=":"+Q[0]+":";if((_.NR(_.z4,q)||_.A0(_.z4,q))&&A.indexOf(q)===Q.index-1)continue}f.appendChild(t(A.substring(X,Q.index)));X=document.createElement("span");X.appendChild(t(Q[0]));X.classList.add("mention");f.appendChild(X);
X=Q.index+Q[0].length}f.appendChild(t(A.substring(X)));return f},
createDocumentFragment:function(A){var t=document.createDocumentFragment();if(A.simpleText)return t.appendChild(this.createDocumentFragmentFromString(A.simpleText)),t;if(!A.runs)return t;for(var f=0;f<A.runs.length;f++){var X=A.runs[f];if(X.emoji)t.appendChild(_.z4.createEmoji(X.emoji));else if(X.text)if(X.navigationEndpoint){var Q=document.createElement("a");Q.classList.add("yt-simple-endpoint");Nfb(Q,X.navigationEndpoint);_.sF(Q).appendChild(this.createDocumentFragmentFromString(X.text));t.appendChild(Q)}else t.appendChild(this.createDocumentFragmentFromString(X.text))}return t},
hasModerationOverlayVisible:function(){var A;return((A=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:A.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(A){A.composedPath().some(function(t){return(t=t instanceof Element?t:null)?t.tagName&&(t.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||t.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.M("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(A)},
colorFromDecimal:function(A){return Zex(A)},
markAsDeleted:function(A,t){this.set("data.deletedStateMessage",A);this.set("data.showOriginalContentMessage",t)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(A){if(this.data.contextMenuEndpoint){var t=_.Px().resolve(_.TD),f=this.data.contextMenuEndpoint,X;(X=_.IM.instance)&&_.xE(X,f)?(t=HEC(t,f),X=_.uE(X,{},t)):X=_.aIT(t,f);X.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);A&&A.stopPropagation()}},
handleGetContextMenuResponse_:function(A){var t=_.IM.instance;t&&_.xE(t,{liveChatEndpoint:{}})||(A=A.response);A.liveChatItemContextMenuSupportedRenderers&&A.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(A.liveChatItemContextMenuSupportedRenderers.menuRenderer);A.actions&&_.kJ(this.hostElement,"yt-live-chat-actions",[A.actions])},
handleGetContextMenuError:function(A){if(A instanceof Error||A instanceof Object||A instanceof String)var t=A;_.HQ(new _.xj("Error encountered calling GetLiveChatItemContextMenu",t))},
showContextMenu_:function(A){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:A}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.s9(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.s9(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.P4.YtLiveChatItemBehavior=[KHl,_.Ja.YtComponentBehavior,_.I4.YtOpenPopupBehavior];_.T4=function(){};var gZE;var wj7;var sew;var kj7;var iw=function(){var A=_.F.apply(this,arguments)||this;A.active=!1;A.identity=_.I0;return A};
_.R(iw,_.F);iw.prototype.dataChanged=function(){this.active=!1};
iw.prototype.onClick=function(){_.s9(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
iw.prototype.dataChanged=iw.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],iw.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],iw.prototype,"active",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iw.prototype,"dataChanged",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],iw);
_.Y(iw,"yt-live-chat-text-input-field-suggestion",function(){if(kj7===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;sew===void 0&&(sew=document.createElement("template"));var X=sew;f.call(t,X.content.cloneNode(!0),A.content.firstChild);kj7=A}A=kj7;return A},{mode:0});_.Ol=function(A,t,f){return CustomEvent.call(this,A,{detail:{value:t,path:f}})||this};
_.R(_.Ol,CustomEvent);_.c4=function(){var A=_.F.apply(this,arguments)||this;A.viewerName=null;A.actionMap={"yt-live-chat-actions":"onChatMessage_"};A.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];A.PARTICIPANT_TIME_USEC_=3E8;return A};
_.R(_.c4,_.F);_.J=_.c4.prototype;_.J.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.J.addParticipant=function(A){var t=_.xlx(this.participants,A,function(X,Q){X=X[Object.keys(X)[0]];Q=Q[Object.keys(Q)[0]];X=String(_.dF(X.authorName)).toLowerCase();Q=String(_.dF(Q.authorName)).toLowerCase();return X<Q?-1:X==Q?0:1}.bind(this));
if(t>=0){var f=this.participants[t];f[Object.keys(f)[0]].timestampUsec&&this.splice("participants",t,1,A)}else this.splice("participants",-t-1,0,A);A=A[Object.keys(A)[0]];t=_.dF(A.authorName).toLocaleLowerCase();f=t.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(f)||(this.allParticipantsCharMap_[f]={});this.allParticipantsCharMap_[f][t]=A};
_.J.getAuthorsFromPrefix=function(A){return this.allParticipantsCharMap_.hasOwnProperty(A)?this.allParticipantsCharMap_[A]:null};
_.J.computeViewerRegex_=function(A){if(!A)return null;A=A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var t=A.indexOf("@")===0&&_.M("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(t+A.replace(/ /g,"\\s*")+"|^"+A.replace(/ /g,"\\s*")+"$|^"+A.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+A.replace(/ /g,"\\s*")+"$|(?<=\\s)"+A.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.J.checkForStaleParticipants_=function(){var A=this;this.trimOldParticipants_();this.asyncHandle_&&TZ5(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.FD(function(){A.checkForStaleParticipants_()},3E4))};
_.J.onChatMessage_=function(A){var t=this,f=Date.now()*1E3;A.forEach(function(X){if(X=_.C(X,FMT)){X=X.item;var Q=Object.keys(X)[0];t.SUPPORTED_ITEM_TYPES_.indexOf(Q)!=-1&&X[Q].timestampUsec>=f-t.PARTICIPANT_TIME_USEC_&&t.addParticipant(X)}},this);
this.checkForStaleParticipants_()};
_.J.trimOldParticipants_=function(){for(var A=Date.now()*1E3,t=this.participants.length-1;t>=0;t--){var f=this.participants[t];f=f[Object.keys(f)[0]];f.timestampUsec&&f.timestampUsec<A-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",t,1)}};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],_.c4.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],_.c4.prototype,"viewerName",void 0);_.V([_.n({computed:"computeViewerRegex_(viewerName)"}),_.H("design:type",Object)],_.c4.prototype,"viewerRegex",void 0);_.V([_.n({value:function(){return[]},
notify:!0}),_.H("design:type",Array)],_.c4.prototype,"participants",void 0);_.V([_.WU({is:"yt-live-chat-participants-manager",noInjection:!0})],_.c4);var rIw=/.*([:@#].*?)$/,B4=/\u00a0/g,AiE=String.fromCharCode(160),tfb={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"},MR=function(){var A=_.F.apply(this,arguments)||this;A.disabled=!1;A.liveChatRichMessageInput=null;A.messageInput=null;A.isValidWithNoInputText=!1;A.suggestions=[];A.emojiManager=_.z4;A.inputMethodEditorActive=
!1;A.suggestionIndex=-1;A.JSC$14319_lastSuggestionRange=null;return A};
_.R(MR,_.F);_.J=MR.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.J.attached=function(){_.Qe&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.J.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.J.dataChanged=function(){if(!this.ignoreColorMapping){var A=!1,t={},f;for(f in tfb)this.data&&this.data.hasOwnProperty(f)&&(t[tfb[f]]=this.colorFromDecimal(this.data[f]),A=!0);A&&_.Q_(this.hostElement,t)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.J.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.J.colorFromDecimal=function(A){A=Math.floor(Number(A));return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
_.J.preventDrag=function(A){A.dataTransfer&&(A.dataTransfer.dropEffect="none");A.preventDefault()};
_.J.preventResize=function(A){A.returnValue=!1};
_.J.onInputChange=function(){var A=this.characterCount,t=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&t&&t.remove();if(!t&&this.characterCount>this.maxCharacterLimit){var f=window.getSelection();if(f){var X=f.getRangeAt(0);f.removeAllRanges();f.addRange(X)}}if(f=this.getCurrentRange())X=this.calculateTextBeforeRange(f),this.completeEmojisInRange(f,X,!0)||this.updateSuggestions(f,X);X=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(X);
_.s9(this.hostElement,"yt-live-chat-message-input-change",X);t&&this.characterCount===0&&t.remove();f&&f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>A):f&&!f.collapsed&&f.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(A=this.input.childNodes.length-1;A>=0;A--)this.input.childNodes[A].nodeName==="BR"&&this.input.childNodes[A].remove()};
_.J.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.J.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var A=this.getCurrentRange();A&&A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.J.mergeOverflowText=function(A){if(A){var t=document.createRange();t.selectNodeContents(A);t=t.extractContents();this.input.insertBefore(t,A)}};
_.J.checkRangeAtEndOfInput=function(){var A=this.getCurrentRange();if(A){var t=_.sF(this.hostElement).querySelector("#overflow-text"),f=document.createRange();t&&t.previousSibling?t.previousSibling instanceof HTMLImageElement?f.selectNode(t.previousSibling):f.selectNodeContents(t.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?f.selectNode(this.input.lastChild):f.selectNodeContents(this.input.lastChild));f.collapse(!1);return f.isPointInRange(A.startContainer,
A.startOffset)}return!1};
_.J.handleOverflowText=function(A){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var t=_.sF(this.hostElement).querySelector("#overflow-text"),f=this.getCurrentRange();this.input.normalize();A=this.checkRangeAtEndOfInput()&&A;this.mergeOverflowText(t);for(var X,Q=0,q=0,e,G=this.input.childNodes,N=0;N<G.length;N++){var z=G[N];z instanceof Text?(q+=z.textContent.length,q>this.maxCharacterLimit&&(X=z,Q=this.maxCharacterLimit+z.textContent.length-q)):z instanceof HTMLImageElement&&
(X=void 0,q=z.dataset.emojiId&&((X=this.data)==null?0:X.emojiCharacterCount)?q+this.data.emojiCharacterCount:q+z.alt.length,X=this.input,Q=N);if(q>this.maxCharacterLimit&&X){e=document.createRange();e.collapse(!1);t?(q=this.input.lastChild.previousSibling,q instanceof Text?e.setEnd(this.input.lastChild.previousSibling,q.textContent.length):q instanceof HTMLImageElement&&e.setEnd(this.input,this.input.childNodes.length-1)):e.selectNodeContents(this.input);e.setStart(X,Q);break}}e&&(X=!1,f&&(A=e.isPointInRange(f.startContainer,
f.startOffset-1)),t||(t=document.createElement("span"),t.id="overflow-text",t.textContent="",t.setAttribute("contenteditable","true"),_.sF(_.sF(this.hostElement).querySelector("#input")).appendChild(t),X=!0),t&&(f=e.extractContents(),t.insertBefore(f,t.firstChild),A&&t.firstChild&&(f=document.createRange(),X?f.setStartAfter(t.lastChild):f.setStartAfter(t.firstChild),f.collapse(!0),t=window.getSelection(),t.removeAllRanges(),t.addRange(f))))}};
_.J.checkForDuplicateSpans=function(){for(var A=0;A<this.input.childNodes.length;A++){var t=this.input.childNodes[A];if(t.nodeName==="SPAN"){var f=document.createRange();f.selectNodeContents(t);f=f.extractContents();this.input.insertBefore(f,t);t.remove()}}this.handleOverflowText(!0)};
_.J.getCurrentRange=function(){var A=window.getSelection();return A&&A.rangeCount?A.getRangeAt(0).cloneRange():null};
_.J.getInputRange=function(){var A=this.getCurrentRange();if(A){for(var t=A.commonAncestorContainer,f=!1,X=_.sF(this.hostElement).querySelector("#input");t;){if(t===X){f=!0;break}t=t.parentNode}f||(A=null)}A||(A=this.getRangeAtEnd());return A};
_.J.getRangeAtEnd=function(){var A=document.createRange(),t=_.sF(this.hostElement).querySelector("#input").lastChild;!t||t.nodeName!=="#text"&&t.nodeName!=="SPAN"?(A.selectNodeContents(_.sF(this.hostElement).querySelector("#input")),A.collapse(!1)):t.nodeName==="#text"?A.setStart(t,t.textContent.length):A.setStart(t,t.childNodes.length);return A};
_.J.getChatParticipantSuggestions=function(A,t,f,X){var Q=_.M("live_chat_enable_handles_web_text_input_update");if(t)for(var q in t)if(q.indexOf(A)===0||Q&&q.indexOf(f+A)===0){var e=t[q],G=_.dF(e.authorName);X.push({suggestion:{author:!0,authorType:f,image:e.authorPhoto,alt:G,text:G}});if(X.length>=64)break}};
_.J.getSuggestions=function(A){var t=[],f=A.substring(0,3),X=Sbw(_.z4,f,!0);if(X)for(var Q in X)if(Q.toLocaleLowerCase().indexOf(A)===0){var q=X[Q];if(q&&q.emojiId){if(q=dY7(_.z4,q.emojiId)){var e=void 0,G=void 0,N=void 0,z=void 0,T=((e=q.image)==null?0:(G=e.accessibility)==null?0:(N=G.accessibilityData)==null?0:N.label)||q.isCustomEmoji?(z=q.shortcuts)==null?void 0:z[0]:q.emojiId;t.push({suggestion:{emoji:!0,image:q.image,alt:T,text:Q,textToInsertWhenSelected:q.isCustomEmoji?Q:T}})}if(t.length>=
64)break}}if(!this.participantsManager)return null;if(f.indexOf("@")===0||f.indexOf("#")===0)X=f.charAt(0),A=A.substring(1),Q=_.M("live_chat_enable_handles_web_text_input_update"),f.indexOf("@")===0&&Q&&(Q=this.participantsManager.getAuthorsFromPrefix(f.substring(0,2)),this.getChatParticipantSuggestions(A,Q,X,t)),f=f.substring(1),f=this.participantsManager.getAuthorsFromPrefix(f),this.getChatParticipantSuggestions(A,f,X,t);return t?t.sort(function(O,c){return c.suggestion.text<O.suggestion.text?-1:
c.suggestion.text===O.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(A){var t=_.M("live_chat_enable_handles_web_text_input_update"),f=A.authorType;t=A.text.indexOf(f)===0&&t?A.text+AiE:f+A.text+AiE;A.emoji?this.insertTextAtRange(this.JSC$14319_lastSuggestionRange,A.textToInsertWhenSelected||""):A.author&&this.insertTextAtRange(this.JSC$14319_lastSuggestionRange,t)};
_.J.updateSuggestionsAtCaret=function(){var A=this.getCurrentRange();A&&this.updateSuggestions(A,this.calculateTextBeforeRange(A))};
_.J.offsetStartOfRangeBy=function(A,t){for(;t>0;)if(A.startOffset-t>=0){A.setStart(A.startContainer,A.startOffset-t);break}else{t=A.startContainer instanceof HTMLImageElement?t-A.startContainer.alt.length:t-A.startOffset;var f=A.startContainer.previousSibling;if(!f){A.setStart(A.startContainer,0);break}if(_.M("live_chat_require_space_for_autocomplete_emoji")){var X=void 0,Q=void 0;A.setStart(f,((X=f)==null?void 0:(Q=X.textContent)==null?void 0:Q.length)||0)}else A.setStart(f,f.childNodes.length||
0)}};
_.J.updateSuggestions=function(A,t){var f=this;this.JSC$14319_lastSuggestionRange&&(this.JSC$14319_lastSuggestionRange.detach(),this.JSC$14319_lastSuggestionRange=null);if((t=rIw.exec(t))&&t.length&&(t=t[t.length-1].toLocaleLowerCase(),t.length>2&&(this.offsetStartOfRangeBy(A,t.length),this.JSC$14319_lastSuggestionRange=A,(A=this.getSuggestions(t))&&A.length))){this.suggestions=A;_.us(this,function(){_.sF(f.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(A.length-1);return}this.dropdown.opened=!1};
_.J.completeEmojisInRange=function(A,t,f){var X=t.replace(/[\s\xa0]+$/,"");t=t.length-X.length;X=X.split(" ");X=X[X.length-1].trim().toLocaleLowerCase();var Q=X.lastIndexOf(":");if(f&&!t&&Q!==X.length-1)return!1;Q!==-1&&(f=X.lastIndexOf(":",Q-1),f!==-1&&(X=X.substring(f)));if((f=_.A0(_.z4,X))&&f.emojiId){f=dY7(_.z4,f.emojiId)||null;this.offsetStartOfRangeBy(A,X.length+t);var q,e,G,N;X=(((q=f)==null?0:q.isCustomEmoji)?(e=f)==null?void 0:(G=e.shortcuts)==null?void 0:G[0]:(N=f)==null?void 0:N.emojiId)||
"";t&&(X+=AiE);this.insertTextAtRange(A,X);this.dropdown.opened=!1;return!0}return!1};
_.J.onSuggestion=function(A){this.insertSuggestion(A.detail);this.dropdown.opened=!1};
_.J.onKeyPress=function(A){A.keyCode===13&&(A.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.s9(this.hostElement,"yt-live-chat-send-message"))};
_.J.completeEmojis=function(){var A=document.createRange(),t=_.sF(this.hostElement).querySelector("#input").lastChild;t?A.setStart(t,t.childNodes.length):(A.selectNodeContents(_.sF(this.hostElement).querySelector("#input")),A.collapse(!1));this.completeEmojisInRange(A,this.calculateTextBeforeRange(A),_.M("live_chat_require_space_for_autocomplete_emoji"))};
_.J.maybePreventTextFormatting=function(A){!_.e7||!A.ctrlKey&&!A.metaKey||A.keyCode!==66&&A.keyCode!==73||(A.stopImmediatePropagation(),A.preventDefault())};
_.J.onKeyDown=function(A){this.maybePreventTextFormatting(A);if(this.dropdown.opened)switch(A.keyCode){case 27:this.dropdown.opened=!1;A.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;A.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);A.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),A.preventDefault()}};
_.J.onKeyUp=function(A){switch(A.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.XG)this.onInputChange()};
_.J.changeSuggestionIndex=function(A){if(this.dropdown.opened){var t=_.sF(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<t.children.length&&(t.children[this.suggestionIndex].active=!1);var f=this.suggestions.length;this.suggestionIndex=(A+f)%f;A=t.children[this.suggestionIndex];A.active=!0;t.scrollTop=A.offsetTop}};
_.J.onInputPaste=function(A){A.preventDefault();(A=A.clipboardData)&&A.types&&(A=A.getData("text/plain")||"",A=A.replace(/\n/g,""),this.insertText(A));(A=this.getCurrentRange())&&A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.J.onFocus=function(){this._setFocused(!0)};
_.J.onBlur=function(){this._setFocused(!1)};
_.J.insertText=function(A){this.insertTextAtRange(this.getInputRange(),A)};
_.J.insertTextAtRange=function(A,t){if(A&&(A.collapsed||A.deleteContents(),t=_.z4.createDocumentFragment(t,!0,!1))){for(var f=_.U((t==null?void 0:t.childNodes)||[]),X=f.next();!X.done;X=f.next()){X=X.value;var Q=void 0,q=void 0,e=void 0,G=void 0,N=void 0;(e=(Q=window)==null?void 0:(q=Q.ShadyCSS)==null?void 0:q.ScopingShim)==null||(N=(G=e).scopeNode)==null||N.call(G,X,this.hostElement.localName)}f=t.lastChild;A.insertNode(t);this.focused||this.input.focus();if(this.focused){A=A.cloneRange();A.selectNodeContents(f);
A.collapse(!1);if(t=window.getSelection())t.removeAllRanges(),t.addRange(A);A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}A=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(A);_.s9(this.hostElement,"yt-live-chat-message-input-change",A)}};
_.J.setLiveChatRichMessageInput=function(A){_.sF(_.sF(this.hostElement).querySelector("#input")).textContent="";if(A&&A.textSegments){for(var t=0;t<A.textSegments.length;t++){var f=A.textSegments[t];f.text?_.sF(_.sF(this.hostElement).querySelector("#input")).appendChild(_.z4.createDocumentFragment(f.text,!0,!1)):f.emojiId&&(f=_.NR(_.z4,f.emojiId))&&_.sF(_.sF(this.hostElement).querySelector("#input")).appendChild(_.z4.createEmoji(f,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.J.setText=function(A){this.setLiveChatRichMessageInput(A?{textSegments:[{text:A}]}:null)};
_.J.calculateTextBeforeRange=function(A){var t="",f=A.startContainer;if(f&&f instanceof Text){var X;t=((X=f.textContent)==null?void 0:X.substring(0,A.startOffset))||"";f=f.previousSibling}for(;f&&f instanceof Text;)t=f.textContent+t,f=f.previousSibling;return t.replace(B4," ")};
_.J.calculateLiveChatRichMessageInput=function(){for(var A=[],t="",f=_.sF(_.sF(this.hostElement).querySelector("#input")).childNodes,X=0;X<f.length;X++){var Q=f[X];Q instanceof Text?t+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(t&&(A.push({text:t.replace(B4," ")}),t=""),A.push({emojiId:Q.dataset.emojiId})):t+=Q.alt)}t&&A.push({text:t.replace(B4," ")});if(f=_.sF(this.hostElement).querySelector("#overflow-text")){t="";f=f.childNodes;for(X=0;X<f.length;X++)Q=f[X],Q instanceof Text?
t+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(t&&(A.push({text:t.replace(B4," ")}),t=""),A.push({emojiId:Q.dataset.emojiId})):t+=Q.alt);t&&A.push({text:t.replace(B4," ")})}return{textSegments:A}};
_.J.computeCharacterCount=function(A){if(!A||!A.textSegments)return 0;for(var t=0,f=0;f<A.textSegments.length;f++){var X=A.textSegments[f];if(X.text)t+=X.text.length;else if(X.emojiId){var Q=void 0;if((Q=this.data)==null?0:Q.emojiCharacterCount)t+=this.data.emojiCharacterCount;else{var q=Q=void 0,e=void 0;t+=((q=_.NR(_.z4,(Q=X)==null?void 0:Q.emojiId))==null?void 0:(e=q.shortcuts)==null?void 0:e[0].length)||0}}}return t};
_.J.characterCountChanged=function(){_.s9(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.J.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Ol("focused-changed",this.focused))};
_.J.focus=function(){this.setFocus(!1)};
_.J.focusAtEnd=function(){this.setFocus(!0)};
_.J.setFocus=function(A){A=A?this.getRangeAtEnd():this.getInputRange();_.sF(this.hostElement).querySelector("#input").focus();var t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(A))};
_.J.insertEmoji=function(A){var t,f=((A==null?0:A.isCustomEmoji)?(t=A.shortcuts)==null?void 0:t[0]:A==null?void 0:A.emojiId)||"";this.insertText(f)};
_.J.computeText=function(A){if(!A||!A.textSegments)return"";for(var t="",f=0;f<A.textSegments.length;f++){var X=A.textSegments[f];if(X.text)t+=X.text;else if(X.emojiId){var Q=void 0,q=void 0,e=void 0;t+=((q=_.NR(_.z4,(Q=X)==null?void 0:Q.emojiId))==null?void 0:(e=q.shortcuts)==null?void 0:e[0])||""}}return t};
_.J.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.PV.Object.defineProperties(MR.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
MR.prototype.focusedChanged=MR.prototype.focusedChanged;MR.prototype.characterCountChanged=MR.prototype.characterCountChanged;MR.prototype.onSuggestion=MR.prototype.onSuggestion;MR.prototype.onMessageSet=MR.prototype.onMessageSet;MR.prototype.dataChanged=MR.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],MR.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],MR.prototype,"disabled",void 0);_.V([_.y("disabled"),_.H("design:type",Number),_.H("design:paramtypes",[])],MR.prototype,"inputTabIndex",null);_.V([_.y("data.maxCharacterLimit"),_.n({readOnly:!0,notify:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],MR.prototype,"maxCharacterLimit",null);
_.V([_.y("liveChatRichMessageInput"),_.n({readOnly:!0,notify:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],MR.prototype,"characterCount",null);_.V([_.y("maxCharacterLimit, characterCount"),_.n({readOnly:!0,notify:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],MR.prototype,"remainingCharacterCount",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],MR.prototype,"isChatMessageInput",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],MR.prototype,"inputExpanded",void 0);_.V([_.n({readOnly:!0,notify:!0}),_.H("design:type",Object)],MR.prototype,"liveChatRichMessageInput",void 0);_.V([_.n(),_.H("design:type",Object)],MR.prototype,"messageInput",void 0);_.V([_.n(),_.H("design:type",Boolean)],MR.prototype,"ignoreColorMapping",void 0);_.V([_.y("characterCount"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],MR.prototype,"hasText",null);
_.V([_.n(),_.H("design:type",Object)],MR.prototype,"isValidWithNoInputText",void 0);_.V([_.y("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.n(),_.H("design:type",Boolean),_.H("design:paramtypes",[])],MR.prototype,"isInputValid",null);_.V([_.n({readOnly:!0,value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],MR.prototype,"focused",void 0);_.V([_.n(),_.H("design:type",Array)],MR.prototype,"suggestions",void 0);
_.V([_.n(),_.H("design:type",_.lw)],MR.prototype,"emojiManager",void 0);_.V([_.n(),_.H("design:type",_.c4)],MR.prototype,"participantsManager",void 0);_.V([_.n(),_.H("design:type",Boolean)],MR.prototype,"noUnderline",void 0);_.V([_.n(),_.H("design:type",Object)],MR.prototype,"inputMethodEditorActive",void 0);_.V([_.lo("#dropdown"),_.H("design:type",Object)],MR.prototype,"dropdown",void 0);_.V([_.lo("#input"),_.H("design:type",HTMLElement)],MR.prototype,"input",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MR.prototype,"dataChanged",null);_.V([_.ev("messageInput"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MR.prototype,"onMessageSet",null);_.V([_.UQ("yt-live-chat-select-suggestion"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],MR.prototype,"onSuggestion",null);
_.V([_.ev("characterCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MR.prototype,"characterCountChanged",null);_.V([_.ev("focused"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MR.prototype,"focusedChanged",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],MR);
_.f6p=_.Y(MR,"yt-live-chat-text-input-field-renderer",function(){if(wj7===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;gZE===void 0&&(gZE=document.createElement("template"));var X=gZE;f.call(t,X.content.cloneNode(!0),A.content.firstChild);wj7=A}A=wj7;return A},{mode:0});var CR=function(){var A=_.F.apply(this,arguments)||this;A.buttonOverrides={style:"overlay",type:"filled"};A.allowAnimations=!1;A.modern=_.M("web_button_rework_with_live");A.noPadding=!1;return A};
_.R(CR,_.F);_.J=CR.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.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"}}}}};
_.J.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.attached=function(){this.allowAnimations=!1};
_.J.dataChanged=function(){if(this.data){var A={"--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)};_.Q_(this.hostElement,A);this.allowAnimations=!0}};
_.J.messageChanged=function(){var A,t=(A=this.data)==null?void 0:A.message;A=_.sF(_.sF(this.hostElement).querySelector("#message"));A.textContent="";t&&A.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.J.computeShowOnlyHeader=function(A,t){return!A||A.pdgLikeButton||A.replyButton||A.buyFlowButton?!1:this.isEmpty(A,t)&&!A.footer};
_.J.computeShowFooterDivider=function(A,t,f){return A?!!A.footer&&!this.isEmpty(A,t)&&!f:!1};
_.J.computeIsUserEditable=function(A){return!!A.inputField};
_.J.computeHasHeartButton=function(A){return(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.J.computeNoveltyImage=function(A){if(A.headerOverlayImage&&A.headerOverlayImage.thumbnails.length){var t=A.headerOverlayImage.thumbnails[0],f,X;if((f=A.pdgPurchasedNoveltyLoggingDirectives)==null?0:(X=f.loggingDirectives)==null?0:X.trackingParams){var Q,q;PWx((Q=A.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(q=Q.loggingDirectives)==null?void 0:q.trackingParams)}return t.width||0}return 0};
_.J.computeAuthorPhotoSize=function(A){return(A==null?0:A.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.J.inputFocus=function(){var A=_.sF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");A&&A.focus()};
_.J.inputInsertEmoji=function(A){var t=_.sF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");t&&t.insertEmoji(A)};
_.J.inputMessage=function(){var A=_.sF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),t;return A&&((t=this.data)==null?0:t.inputField)?(A.completeEmojis(),_.n1(A.liveChatRichMessageInput)):null};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.J.isEmpty=function(A,t){return A?A.empty||!(A.message||A.inputField||t):!0};
_.J.onLowerBuyButtonClick=function(){var A,t=_.C((A=this.data)==null?void 0:A.buyButton,_.Gf);t&&t.trackingParams&&!dgx(t.command)&&(A=_.zV(t.trackingParams))&&(t=_.Ws())&&_.o7(t,A)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.PV.Object.defineProperties(CR.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
CR.prototype.isDeletedChanged=CR.prototype.isDeletedChanged;CR.prototype.messageChanged=CR.prototype.messageChanged;CR.prototype.dataChanged=CR.prototype.dataChanged;_.V([_.b(WWE.YtPdgLiveChatItemBehavior),_.H("design:type",Object)],CR.prototype,"ytPdgLiveChatItemBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],CR.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],CR.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],CR.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:uuz}),_.H("design:type",Object)],CR.prototype,"engagementState",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.H("design:type",Boolean)],CR.prototype,"isUserEditable",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.H("design:type",Boolean)],CR.prototype,"hasHeartButton",void 0);_.V([_.n({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.H("design:type",Boolean)],CR.prototype,"showOnlyHeader",void 0);
_.V([_.n({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.H("design:type",Boolean)],CR.prototype,"showFooterDivider",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Object)],CR.prototype,"allowAnimations",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],CR.prototype,"dashboardMoneyFeed",void 0);_.V([_.n({computed:"computeNoveltyImage(data)"}),_.H("design:type",Number)],CR.prototype,"noveltyWidth",void 0);
_.V([_.n({computed:"computeAuthorPhotoSize(data)"}),_.H("design:type",Number)],CR.prototype,"authorPhotoSize",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],CR.prototype,"modern",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],CR.prototype,"noPadding",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CR.prototype,"dataChanged",null);
_.V([_.ev("data.message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CR.prototype,"messageChanged",null);_.V([_.y("data","dashboardMoneyFeed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CR.prototype,"hideLowerBumper",null);_.V([_.ev("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CR.prototype,"isDeletedChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],CR);
_.Y(CR,"yt-live-chat-paid-message-renderer",function(){if(UYp===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;JIk===void 0&&(JIk=document.createElement("template"));var X=JIk;f.call(t,X.content.cloneNode(!0),A.content.firstChild);UYp=A}A=UYp;return A},{mode:0});var X3l;var QIl;var hB=function(){var A=_.uo.apply(this,arguments)||this;A._noAccessors=!0;return A};
_.R(hB,_.uo);hB.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.ah("openPopupConfig")};
_.V([_.b(_.I4.YtOpenPopupBehavior),_.H("design:type",Object)],hB.prototype,"ytOpenPopupBehavior",void 0);_.V([_.zh()],hB);_.RH=[_.I4.YtOpenPopupBehavior,hB.prototype];var q4E;var V6=[_.GD,Nc7,_.vF,_.Cwi,_.de,_.DhK,_.qN,_.zD,_.lY,_.ZRK,_.ZT];_.M("web_continuation_response_processing")&&V6.push(_.L1);_.M("web_show_ep_endpoint_response_received")&&V6.push(_.ys);var Fgz=new _.eh("RESPONSE_RECEIVED_COMMANDS"),bv5=new _.eh("RESPONSE_RECEIVED_COMMANDS");var ciT="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Ov5=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],ivx=["GET_UNSEEN_NOTIFICATION_COUNT"];var mU=function(){var A=_.uo.apply(this,arguments)||this;A._noAccessors=!0;A.serviceEndpointHandlers=[];return A};
_.R(mU,_.uo);mU.prototype.created=function(){var A=this;this.endpointHandlerActionMap={"yt-service-request":function(t,f,X,Q){var q;return Tyx(A.hostElement,t,f,X,Q,A.serviceEndpointHandlers,(q=A.onEntitiesUpdated)==null?void 0:q.bind(A))}}};
mU.prototype.attached=function(){_.J4(_.XA.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
mU.prototype.detached=function(){_.UI(_.XA.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.V([_.zh()],mU);_.JiT=[mU.prototype];var UkE,e_T=function(){return UkE!==void 0?UkE:UkE=document.createElement("template")};
document.head.appendChild(e_T().content);var G0C;var l6p=document.head,Nyw=l6p.appendChild,uPE;if(G0C===void 0){var z_S=document.createElement("template");_.m(z_S,"\x3c!--css-build:shady--\x3e");z_S.content.insertBefore(e_T().content.cloneNode(!0),z_S.content.firstChild);G0C=z_S}uPE=G0C;Nyw.call(l6p,uPE.content);var PVT,TyT=function(){return PVT!==void 0?PVT:PVT=document.createElement("template")};
document.head.appendChild(TyT().content);var ivw;var OvC=document.head,cii=OvC.appendChild,Byf;if(ivw===void 0){var Mfb=document.createElement("template");_.m(Mfb,"\x3c!--css-build:shady--\x3e");Mfb.content.insertBefore(TyT().content.cloneNode(!0),Mfb.content.firstChild);ivw=Mfb}Byf=ivw;cii.call(OvC,Byf.content);var CVT;_.C1("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.C1("sharingRendererButtons","buttonRenderer","ytd-button-renderer");CVT=_.M("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.M("web_button_rework_with_live");_.bw=function(){var A=_.F.apply(this,arguments)||this;A.isPressed=!1;A.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return A};
_.R(_.bw,_.F);_.J=_.bw.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.onHintIdChanged=function(){var A=this,t,f,X=(t=this.ytButtonBehavior.data)==null?void 0:(f=t.hint)==null?void 0:f.hintRenderer;if(X&&X.hintId){t=_.r2(this.hostElement,"yt-get-opened-popups-action");t=(t&&t.length===1?t[0]:[]).length>0;var Q=null;X.hintId!=="sponsor-pre-purchase"||t?X.hintId.startsWith("sponsor-post-purchase")&&!t?Q=NIC("membership-manage"):X.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!t&&(Q=NIC("membership-freebie-join")):Q=NIC("membership-join");Q&&_.a6.addLowPriorityJob(function(){for(var q=
_.U(Q),e=q.next();!e.done;e=q.next())A.ytComponentBehavior.resolveCommand(e.value)})}};
_.J.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.J.onYtNavigate=function(A){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);t&&(A.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(t))};
_.J.onYtServiceRequestSent=function(A,t){this.handleServiceRequestActions(t);_.s9(this.hostElement,"yt-service-request-sent-button-renderer")};
_.J.onServiceRequestCompleted=function(A,t){this.handleServiceRequestActions(t);_.s9(this.hostElement,"yt-service-request-completed-button-renderer")};
_.J.updateButton=function(A){var t;if(A=(t=_.C(A,fek))==null?void 0:t.updatedButton)this.ytButtonBehavior.data=_.C(A,_.Gf)};
_.J.handleUpdateButtonAction=function(A){var t=this.ytButtonBehavior.data;t.targetId&&A.updateButtonAction.targetId&&t.targetId===A.updateButtonAction.targetId&&this.updateButton(A)};
_.J.handleServiceRequestActions=function(A){if(A=A.actions)for(var t=0;t<A.length;t++)this.updateButton(A[t])};
_.PV.Object.defineProperties(_.bw,{template:{configurable:!0,enumerable:!0,get:function(){if(q4E===void 0){var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);q4E=A}A=q4E;return A}}});
_.bw.prototype.onServiceRequestCompleted=_.bw.prototype.onServiceRequestCompleted;_.bw.prototype.onYtServiceRequestSent=_.bw.prototype.onYtServiceRequestSent;_.bw.prototype.onYtNavigate=_.bw.prototype.onYtNavigate;_.bw.prototype.onPressedStateChanged=_.bw.prototype.onPressedStateChanged;_.bw.prototype.onHintIdChanged=_.bw.prototype.onHintIdChanged;_.V([_.n(),_.H("design:type",Object)],_.bw.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],_.bw.prototype,"isPressed",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],_.bw.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.WcE.YtButtonBehavior),_.H("design:type",Object)],_.bw.prototype,"ytButtonBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],_.bw.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],_.bw.prototype,"ytComponentBehavior",void 0);
_.V([_.b($a.YtRenderButtonBehavior),_.H("design:type",Object)],_.bw.prototype,"ytRenderButtonBehavior",void 0);_.V([_.ev("data.hint.hintRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],_.bw.prototype,"onHintIdChanged",null);_.V([_.ev("isPressed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],_.bw.prototype,"onPressedStateChanged",null);
_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],_.bw.prototype,"onYtNavigate",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],_.bw.prototype,"onYtServiceRequestSent",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],_.bw.prototype,"onServiceRequestCompleted",null);_.V([_.y_({is:"ytd-button-renderer",disableElementRegistration:CVT})],_.bw);var W4=function(){var A=_.F.apply(this,arguments)||this;A.modern=_.M("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.R(W4,_.F);_.J=W4.prototype;_.J.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"}}}}};
_.J.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.dataChanged=function(){if(this.data&&this.data.sticker){var A=_.a8(this.data.sticker.thumbnails,this.stickerWidth);A||_.ES5(A).thenCatch(function(){_.K4(new _.xj("Failed to load Super Sticker with url",A))})}};
_.J.computeAuthorPhotoSize=function(A){return(A==null?0:A.isV2Style)?32:40};
_.J.computeIsV2Style=function(A){return(A==null?0:A.isV2Style)?!0:!1};
_.J.onStickerLoaded=function(A){var t,f,X;(t=_.oO(A))==null||(f=t.parentNode)==null||(X=f.classList)==null||X.add("sticker-loaded")};
_.J.computeNoveltyImageWidth=function(A){var t,f;if(A==null?0:(t=A.headerOverlayImage)==null?0:(f=t.thumbnails)==null?0:f.length){t=A.headerOverlayImage.thumbnails[0];var X,Q;if((X=A.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Q=X.loggingDirectives)==null?0:Q.trackingParams){var q,e;PWx((q=A.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(e=q.loggingDirectives)==null?void 0:e.trackingParams)}return t.width||0}return 0};
_.J.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.J.updateStickerStyles=function(){var A=this.data;A&&(A={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.authorNameTextColor)},
_.Q_(this.hostElement,A))};
_.J.onBuyButtonClick=function(){var A,t=_.C((A=this.data)==null?void 0:A.buyButton,_.Gf);t&&!dgx(t.command)&&this.ytRendererBehavior.logExplicitClick(t)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.PV.Object.defineProperties(W4.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 A;return((A=this.data)==null?0:A.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
W4.prototype.updateStickerStyles=W4.prototype.updateStickerStyles;W4.prototype.isDeletedChanged=W4.prototype.isDeletedChanged;W4.prototype.onStickerLoaded=W4.prototype.onStickerLoaded;W4.prototype.dataChanged=W4.prototype.dataChanged;_.V([_.b(WWE.YtPdgLiveChatItemBehavior),_.H("design:type",Object)],W4.prototype,"ytPdgLiveChatItemBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],W4.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],W4.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],W4.prototype,"data",void 0);
_.V([_.n({computed:"computeAuthorPhotoSize(data)"}),_.H("design:type",Number)],W4.prototype,"authorPhotoSize",void 0);_.V([_.n(),_.H("design:type",Boolean)],W4.prototype,"isDeleted",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],W4.prototype,"dashboardMoneyFeed",void 0);_.V([_.n({computed:"computeNoveltyImageWidth(data)"}),_.H("design:type",Number)],W4.prototype,"noveltyWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],W4.prototype,"modern",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.H("design:type",Boolean)],W4.prototype,"isV2Style",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W4.prototype,"dataChanged",null);_.V([_.UQ("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],W4.prototype,"onStickerLoaded",null);
_.V([_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],W4.prototype,"stickerWidth",null);_.V([_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],W4.prototype,"stickerHeight",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],W4.prototype,"hasHeartButton",null);_.V([_.y("data","dashboardMoneyFeed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],W4.prototype,"hideLowerBumper",null);
_.V([_.ev("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W4.prototype,"isDeletedChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W4.prototype,"updateStickerStyles",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],W4);
_.Y(W4,"yt-live-chat-paid-sticker-renderer",function(){if(QIl===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;X3l===void 0&&(X3l=document.createElement("template"));var X=X3l;f.call(t,X.content.cloneNode(!0),A.content.firstChild);QIl=A}A=QIl;return A},{mode:0});var h_K;var R_7;var mkp,bvC=function(){return mkp!==void 0?mkp:mkp=document.createElement("template")};
document.head.appendChild(bvC().content);var W8E,yiS=function(){return W8E!==void 0?W8E:W8E=document.createElement("template")};
document.head.appendChild(yiS().content);var vSS;var L88,p37=function(){return L88!==void 0?L88:L88=document.createElement("template")};
document.head.appendChild(p37().content);var ESC;var nSE=document.head,DkT=nSE.appendChild,F8i;if(ESC===void 0){var I6T=document.createElement("template");_.m(I6T,"\x3c!--css-build:shady--\x3e");I6T.content.insertBefore(p37().content.cloneNode(!0),I6T.content.firstChild);ESC=I6T}F8i=ESC;DkT.call(nSE,F8i.content);var xkS=document.head,jIC=xkS.appendChild,Y4p;if(vSS===void 0){var yH=document.createElement("template");_.m(yH,"\x3c!--css-build:shady--\x3e");yH.content.insertBefore(yiS().content.cloneNode(!0),yH.content.firstChild);yH.content.insertBefore(bvC().content.cloneNode(!0),yH.content.firstChild);vSS=yH}Y4p=vSS;jIC.call(xkS,Y4p.content);var v4=function(){var A=_.uo.apply(this,arguments)||this;A.focusedIndex=0;A.verticalOffset=0;A.verticalAlign="top";A.dynamicAlign=!0;return A};
_.R(v4,_.uo);v4.prototype.emojiUrl=function(A){A=_.NR(this.emojiManager,A);if(!A)return"";var t;A=(t=A.image)==null?void 0:t.thumbnails;return _.a8(A,24)||""};
var Vff=function(A){var t;A.emojiVariants&&(t=A.data)!=null&&t.target&&_.us(A,function(){A.set("verticalOffset",-1*A.hostElement.clientHeight);var f=_.sF(A.hostElement).querySelector("img");f&&f.focus()})};
_.J=v4.prototype;_.J.onKeyboardEnter=function(){};
_.J.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.J.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.J.onKeyDown=function(A){switch(A.keyCode){case 13:this.onKeyboardEnter();A.preventDefault();break;case 40:this.changeFocus(1);A.preventDefault();break;case 38:this.changeFocus(-1);A.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.J.onYtEmojiSelect=function(A){var t=this,f,X,Q,q,e,G,N,z;return _.l(function(T){if(T.nextAddress==1)return X=(f=t.data)==null?void 0:f.emoji,e=((Q=X)==null?void 0:Q.stickyPrefId)||((q=X)==null?void 0:q.emojiId),N=(G=A.detail)==null?void 0:G.emojiId,e&&N&&e!==N?T.yield((z=t.emojiManager)==null?void 0:$YC(z,X,N),2):T.return();_.kJ(t.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[X,N]);_.LO(T)})};
_.J.changeFocus=function(A){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+A+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(A=_.sF(this.hostElement).querySelector("#variants"))&&A.children[this.focusedIndex].focus())};
_.PV.Object.defineProperties(v4.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
v4.prototype.onYtEmojiSelect=v4.prototype.onYtEmojiSelect;v4.prototype.onKeyDown=v4.prototype.onKeyDown;v4.prototype.onEmojiVariantsChanged=v4.prototype.onEmojiVariantsChanged;v4.prototype.onVerticalOffsetOrPositionTargetChanged=v4.prototype.onVerticalOffsetOrPositionTargetChanged;_.V([_.b(_.lJ),_.H("design:type",Object)],v4.prototype,"ironOverlayBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],v4.prototype,"data",void 0);_.V([_.n(),_.H("design:type",_.lw)],v4.prototype,"emojiManager",void 0);
_.V([_.n(),_.H("design:type",Object)],v4.prototype,"emojiVariants",void 0);_.V([_.n(),_.H("design:type",Object)],v4.prototype,"focusedIndex",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],v4.prototype,"positionTarget",null);_.V([_.n({reflectToAttribute:!0}),_.y("verticalOffset","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],v4.prototype,"isPositioned",null);_.V([_.n(),_.H("design:type",Object)],v4.prototype,"verticalOffset",void 0);
_.V([_.n(),_.H("design:type",Object)],v4.prototype,"verticalAlign",void 0);_.V([_.n(),_.H("design:type",Object)],v4.prototype,"dynamicAlign",void 0);_.V([_.ev("verticalOffset","positionTarget"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],v4.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.V([_.ev("emojiVariants"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],v4.prototype,"onEmojiVariantsChanged",null);
_.V([_.UQ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],v4.prototype,"onKeyDown",null);_.V([_.UQ("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype",Promise)],v4.prototype,"onYtEmojiSelect",null);_.V([_.zh()],v4);var Zvp=[v4.prototype];var oSp;var dkS;var S4p=/medium-light|medium-dark|light|medium|dark/,$kk=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Hvw=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),LR=function(){var A=_.F.apply(this,arguments)||this;A.userSelection={left:null,right:null};A.scrollAction="lock";A.isEmojiDraftInProgress=!1;return A};
_.R(LR,_.F);_.J=LR.prototype;_.J.onClick=function(A){A=_.oO(A);A instanceof HTMLImageElement&&this.selectOrUpdateEmoji(A)};
_.J.selectOrUpdateEmoji=function(A){var t=A.getAttribute("selection");t&&(t==="default"?_.s9(this.hostElement,"yt-emoji-select",_.NR(this.emojiManager,A.id)):t==="left"?this.userSelection=Object.assign({},this.userSelection,{left:A.src}):t==="right"?this.userSelection=Object.assign({},this.userSelection,{right:A.src}):t==="user"&&this.userSelection.left&&this.userSelection.right&&_.s9(this.hostElement,"yt-emoji-select",_.NR(this.emojiManager,A.id)))};
_.J.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.J.onMultiSelectorThumbnailRowChanged=function(){var A,t,f;((A=this.data)==null?0:(t=A.emoji)==null?0:(f=t.multiSelectorThumbnailRow)==null?0:f.length)&&this.openSelector()};
_.J.getThumbnailFromEmojiRow=function(A){var t,f;return(A==null?void 0:(t=A.thumbnails)==null?void 0:(f=t[0])==null?void 0:f.url)||""};
_.J.getEmojiAltTextForPartialSelector=function(A){var t;return((t=this.getThumbnailFromEmojiRow(A).match($kk))==null?void 0:t[0])||""};
_.J.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.J.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.J.getRowSelection=function(A){return["left","right"][A]};
_.J.getIdFromComposedEmoji=function(A){return(A==null?void 0:A.emojiId)||""};
_.J.getEmojiFromPartialSelections=function(A,t){if(!A&&!t)return null;var f,X,Q=(f=this.data)==null?void 0:(X=f.emoji)==null?void 0:X.variantIds;if(!Q||!Q.length)return null;var q;A=(q=A.match(S4p))==null?void 0:q[0];var e;t=(e=t.match(S4p))==null?void 0:e[0];if(!A||!t)return null;var G=Hvw.get(A);e=Hvw.get(t);if(G===e){e=Array.from(Hvw.values()).filter(function(z){return z!==G}).join("|");
var N=new RegExp("^((?!("+e+")).)*"+G+"$")}else N=new RegExp(G+".*"+e);return(Q=Q.find(function(z){return N.test(z)}))&&_.NR(this.emojiManager,Q)||null};
_.J.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var A,t=this.ytEmojiSelectorBehavior.emojiUrl(((A=this.data.emoji)==null?void 0:A.emojiId)||"");_.sF(this.hostElement).querySelector('[selection="user"]').src.includes(t)||(this.isEmojiDraftInProgress=!0)}};
_.J.onDomChange=function(){Vff(this.ytEmojiSelectorBehavior)};
_.J.getFocusableElements=function(){return _.sF(this.hostElement).querySelectorAll("img").filter(function(A){return A.getAttribute("role")==="option"})};
_.J.changeFocus=function(A){var t=this.getFocusableElements();t!=null&&t.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+A+t.length)%t.length,this.ytEmojiSelectorBehavior.focusedIndex<t.length&&(A=t[this.ytEmojiSelectorBehavior.focusedIndex])&&A.focus())};
_.J.onKeyboardEnter=function(){var A=this.getFocusableElements();A!=null&&A.length&&(A=A[this.ytEmojiSelectorBehavior.focusedIndex])&&A instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(A),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.PV.Object.defineProperties(LR.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var A=this,t,f,X;return this.emojiManager&&((t=this.data)==null?0:(f=t.emoji)==null?0:(X=f.variantIds)==null?0:X.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.NR(A.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var A,t=(A=this.userSelection)==null?void 0:A.left,f;A=(f=this.userSelection)==null?void 0:f.right;return t&&A?this.getEmojiFromPartialSelections(t,A):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.composedEmojiSelection)==null?0:A.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var t;A=(t=this.userSelection)==null?void 0:t.left;var f;t=(f=this.userSelection)==null?void 0:f.right;if(!A&&!t){var X;return this.ytEmojiSelectorBehavior.emojiUrl(((X=this.data.emoji)==null?void 0:X.emojiId)||"")}return A&&!t?A:!A&&t?t:""}}});
LR.prototype.onMultiSelectorThumbnailRowChanged=LR.prototype.onMultiSelectorThumbnailRowChanged;LR.prototype.onClick=LR.prototype.onClick;_.V([_.b(_.lJ),_.H("design:type",Object)],LR.prototype,"ironOverlayBehavior",void 0);_.V([_.b(Zvp),_.H("design:type",Object)],LR.prototype,"ytEmojiSelectorBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],LR.prototype,"data",void 0);_.V([_.n(),_.H("design:type",_.lw)],LR.prototype,"emojiManager",void 0);
_.V([_.n(),_.H("design:type",Object)],LR.prototype,"userSelection",void 0);_.V([_.n(),_.H("design:type",Object)],LR.prototype,"scrollAction",void 0);_.V([_.n(),_.H("design:type",Object)],LR.prototype,"isEmojiDraftInProgress",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LR.prototype,"emojiVariants",null);_.V([_.y("data","userSelection"),_.H("design:type",Object),_.H("design:paramtypes",[])],LR.prototype,"composedEmojiSelection",null);
_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],LR.prototype,"onClick",null);_.V([_.ev("data.emoji.multiSelectorThumbnailRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LR.prototype,"onMultiSelectorThumbnailRowChanged",null);_.V([_.y("data","userSelection","composedEmojiSelection"),_.H("design:type",String),_.H("design:paramtypes",[])],LR.prototype,"draftEmojiUrl",null);
_.V([_.WU({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],LR);
_.Y(LR,"yt-emoji-multi-person-selector",function(){if(dkS===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;oSp===void 0&&(oSp=document.createElement("template"));var X=oSp;f.call(t,X.content.cloneNode(!0),A.content.firstChild);dkS=A}A=dkS;return A},{mode:2});var a6T;var K8T;var pR=function(){var A=_.F.apply(this,arguments)||this;A.tooltip_=null;return A};
_.R(pR,_.F);_.J=pR.prototype;_.J.dataChanged_=function(){var A;if((A=this.data)==null?0:A.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.sF(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.XD)(this.tooltip_).textContent=this.data.tooltip};
_.J.computeTargetId=function(){var A;return((A=this.data)==null?void 0:A.targetId)||""};
_.J.computeId_=function(A){return A};
_.J.computeIcon_=function(A){return _.t7(A)};
_.J.onTap_=function(){this.active=!this.active;_.s9(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.J.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("active-changed",this.active))};
_.PV.Object.defineProperties(pR.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var A,t;if((A=this.data)==null?0:(t=A.icon)==null?0:t.iconType)return this.data.icon.iconType==="SUPER_STICKER";var f,X;return((f=this.data)==null?void 0:(X=f.icon)==null?void 0:X.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
pR.prototype.activeChangedForBinding=pR.prototype.activeChangedForBinding;pR.prototype.dataChanged_=pR.prototype.dataChanged_;_.V([_.b(_.qX.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],pR.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],pR.prototype,"data",void 0);_.V([_.n({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.H("design:type",String)],pR.prototype,"id",void 0);
_.V([_.n({computed:"computeTargetId(data.targetId)"}),_.H("design:type",String)],pR.prototype,"targetId",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"active",void 0);_.V([_.n({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.H("design:type",String)],pR.prototype,"icon",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"dataChanged_",null);
_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],pR.prototype,"iconFilled",null);_.V([_.ev("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"activeChangedForBinding",null);_.V([_.WU({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],pR);
_.Y(pR,"yt-emoji-picker-category-button-renderer",function(){if(K8T===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;a6T===void 0&&(a6T=document.createElement("template"));var X=a6T;f.call(t,X.content.cloneNode(!0),A.content.firstChild);K8T=A}A=K8T;return A},{mode:2});var gST;var w3b;var El=function(){var A=_.F.apply(this,arguments)||this;A.ariaLabel=null;A.ariaActivedescendant=null;A.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};A.JSC$14384_ignoreNextFocus_=!1;A.longPressTimeoutId=-1;return A};
_.R(El,_.F);_.J=El.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var A=_.er(),t=0;t<this.emoji.length;t++){var f={veType:88013,elementIndex:t},X=this.emoji[t];X.isCustomEmoji&&(X=document.querySelector(("#"+X.emojiId).replace("/","\\/")))&&(f=_.UX(A,f))&&(X.visualElement=f)}};
_.J.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.J.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.J.emojiSkinToneChanged_=function(A){this.skinTone=A};
_.J.dataChanged=function(){this.data&&this.data.emojiData&&ZEw(this.emojiManager,this.data.emojiData)};
_.J.emojiUrl=function(A){A=this.getEmoji(A);if(!A)return"";var t;A=(t=A.image)==null?void 0:t.thumbnails;return _.a8(A,24)||""};
_.J.emojiAlt=function(A){var t=this.get("image.accessibility.accessibilityData.label",A);return t?t:A.isCustomEmoji?A.shortcuts[0]:A.emojiId};
_.J.emojiAriaLabel=function(A){return A.shortcuts?A.shortcuts[0]:""};
_.J.emojiAriaSelected=function(A,t,f){return A&&f==t?"true":"false"};
_.J.getEmoji=function(A){if(this.emojiManager)return this.shouldUseStickyPreferences?dY7(this.emojiManager,A):uw(this.emojiManager,A)};
_.J.computeId_=function(A){return A.categoryId||""};
_.J.computeEmoji=function(A){var t=this;return this.emojiManager?A.emojiIds?A.emojiIds.map(function(f){return f?_.NR(t.emojiManager,f):null}).filter(nSs):A.emojiData?A.emojiData.map(function(f){var X=!!f.emojiId&&_.NR(t.emojiManager,f.emojiId);
return X?Object.assign({},X,f):null}).filter(nSs):[]:[]};
_.J.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.J.computeAriaLabel_=function(A){return _.dF(A)};
_.J.computeAriaActivedescendant_=function(A,t){return A&&A[t]?A[t].emojiId||"":""};
_.J.handleLongPressEmojiWithVariants=function(A,t){this.changeFocusToEmoji(A.emojiId,!1);this.openVariantSelector(A,t)};
_.J.onMouseDown=function(A){var t=this;this.hostElement!==document.activeElement&&(this.JSC$14384_ignoreNextFocus_=!0);if(A.button===0){var f=_.oO(A);if(f instanceof HTMLImageElement){var X=_.sF(this.hostElement).querySelector("#repeat").itemForElement(f);this.emojiContainsVariants(X)&&(this.longPressTimeoutId=setTimeout(function(){t.handleLongPressEmojiWithVariants(X,f)},500))}}};
_.J.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.J.onFocus=function(){this.JSC$14384_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14384_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.emojiContainsVariants=function(A){return!!(A&&A.variantIds&&A.variantIds.length)};
_.J.onClick=function(A){clearTimeout(this.longPressTimeoutId);A=_.oO(A);if(A instanceof HTMLImageElement){var t=A.id;this.changeFocusToEmoji(t,!1);var f=this.getEmoji(t),X;if(X=this.shouldUseStickyPreferences&&this.emojiContainsVariants(f)){var Q;X=!((Q=this.emojiManager.emojiMap[t])!=null&&Q.stickyPrefId)}X?(Q=_.sF(this.hostElement).querySelector("#repeat").itemForElement(A),this.openVariantSelector(Q,A)):_.s9(this.hostElement,"yt-emoji-select",f)}};
_.J.isActiveEmojiWithVariants=function(A,t){return A&&t?t.stickyPrefId?A===t.stickyPrefId:A===t.emojiId:!1};
_.J.onCloseEmojiVariantSelector=function(A){this.activeEmojiWithVariantsId===A&&(this.activeEmojiWithVariantsId="")};
_.J.onMouseOver_=function(A){A=_.oO(A);A instanceof HTMLImageElement&&_.s9(this.hostElement,"yt-emoji-hover",_.NR(this.emojiManager,A.id))};
_.J.changeFocus_=function(A,t){this.focusedIndex=(this.focusedIndex+A+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(A=this.emoji[this.focusedIndex],t&&(this.showFocus=!0,_.sF(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.s9(this.hostElement,"yt-emoji-hover",A)))};
_.J.changeFocusToEmoji=function(A,t){if(A){var f=this.emoji.findIndex(function(X){return X.emojiId===A});
f!==-1&&this.changeFocus_(f-this.focusedIndex,t)}};
_.J.onKeyDown_=function(A){switch(A.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var t=this.emoji[this.focusedIndex];if(t&&t.emojiId){if(this.emojiContainsVariants(t)){var f=_.sF(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(t,f)}else _.s9(this.hostElement,"yt-emoji-select",uw(this.emojiManager,t.emojiId)),this.hostElement.focus();A.preventDefault()}}break;case 40:this.changeFocus_(1,!0);A.preventDefault();break;case 38:this.changeFocus_(-1,!0),
A.preventDefault()}};
_.J.onEmojiStickyPreferenceChanged=function(A,t){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&A.emojiId&&A.variantIds&&A.variantIds.includes(t)&&this.activeEmojiWithVariantsId!==t&&this.setStickyEmojiPreference(A.emojiId,t)};
_.J.openVariantSelector=function(A,t){this.activeEmojiWithVariantsId=A.stickyPrefId||A.emojiId||"";_.s9(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:A,target:t})};
_.J.setStickyEmojiPreference=function(A,t){if(this.data){var f=this.emoji.findIndex(function(Q){return Q.emojiId===A});
if(f!==-1){var X=this.emoji[f];X.stickyPrefId=t;this.set("emoji."+f,Object.assign({},X));this.activeEmojiWithVariantsId=t}}};
El.prototype.onKeyDown_=El.prototype.onKeyDown_;El.prototype.onMouseOver_=El.prototype.onMouseOver_;El.prototype.onClick=El.prototype.onClick;El.prototype.onBlur_=El.prototype.onBlur_;El.prototype.onFocus=El.prototype.onFocus;El.prototype.onMouseUp=El.prototype.onMouseUp;El.prototype.onMouseDown=El.prototype.onMouseDown;El.prototype.dataChanged=El.prototype.dataChanged;El.prototype.disableIncrementalLoadingChanged_=El.prototype.disableIncrementalLoadingChanged_;El.prototype.emojiManagerChanged_=El.prototype.emojiManagerChanged_;
El.prototype.emojiChanged_=El.prototype.emojiChanged_;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],El.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],El.prototype,"data",void 0);_.V([_.n({computed:"computeId_(data)"}),_.H("design:type",String)],El.prototype,"id",void 0);_.V([_.n({computed:"computeEmoji(data)"}),_.H("design:type",Array)],El.prototype,"emoji",void 0);_.V([_.n(),_.H("design:type",Number)],El.prototype,"skinTone",void 0);
_.V([_.n(),_.H("design:type",_.lw)],El.prototype,"emojiManager",void 0);_.V([_.n(),_.H("design:type",Boolean)],El.prototype,"disableIncrementalLoading",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],El.prototype,"focusedIndex",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],El.prototype,"showFocus",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.H("design:type",Object)],El.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.H("design:type",Object)],El.prototype,"ariaActivedescendant",void 0);_.V([_.n({value:60}),_.H("design:type",Number)],El.prototype,"domRepeatTargetFramerate",void 0);_.V([_.n({value:1}),_.H("design:type",Number)],El.prototype,"domRepeatInitialCount",void 0);_.V([_.n({value:""}),_.H("design:type",String)],El.prototype,"activeEmojiWithVariantsId",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],El.prototype,"shouldUseStickyPreferences",void 0);_.V([_.ev("emoji"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],El.prototype,"emojiChanged_",null);_.V([_.ev("emojiManager"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],El.prototype,"emojiManagerChanged_",null);
_.V([_.ev("disableIncrementalLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],El.prototype,"disableIncrementalLoadingChanged_",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],El.prototype,"dataChanged",null);_.V([_.UQ("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],El.prototype,"onMouseDown",null);
_.V([_.UQ("mouseup"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],El.prototype,"onMouseUp",null);_.V([_.UQ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],El.prototype,"onFocus",null);_.V([_.UQ("blur"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],El.prototype,"onBlur_",null);
_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],El.prototype,"onClick",null);_.V([_.UQ("mouseover"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],El.prototype,"onMouseOver_",null);_.V([_.UQ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],El.prototype,"onKeyDown_",null);
_.V([_.WU({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],El);
_.Y(El,"yt-emoji-picker-category-renderer",function(){if(w3b===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;gST===void 0&&(gST=document.createElement("template"));var X=gST;f.call(t,X.content.cloneNode(!0),A.content.firstChild);w3b=A}A=w3b;return A},{mode:2});var sI7;var k0C;var rik;var Axi;var nR=function(){var A=_.F.apply(this,arguments)||this;A.ariaLabel=null;A.ariaActivedescendant=null;A.getFormattedStringRawText=_.dF;A.JSC$14390_ignoreNextFocus_=!1;return A};
_.R(nR,_.F);_.J=nR.prototype;_.J.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")};
_.J.emojiUrl=function(A){var t,f;A=(t=uw(this.emojiManager,A,!0))==null?void 0:(f=t.image)==null?void 0:f.thumbnails;return _.a8(A,24)||""};
_.J.emojiAlt=function(A){var t=this.get("image.accessibility.accessibilityData.label",A);return t?t:A.isCustomEmoji?A.shortcuts[0]:A.emojiId};
_.J.emojiId=function(A){return"emoji"+A};
_.J.computeId_=function(A){return A.categoryId||""};
_.J.computeAriaActivedescendant_=function(A){return this.emoji&&A<this.emoji.length?this.emojiId(A):""};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var A=_.er(),t=0;t<this.emoji.length;t++){var f={veType:88013,elementIndex:t},X=this.emoji[t];X.isCustomEmoji&&(X=document.querySelector(("#"+X.emojiId).replace("/","\\/")))&&(f=_.UX(A,f))&&(X.visualElement=f)}};
_.J.computeEmoji_=function(A){var t=this;return this.emojiManager?A.emojiIds.map(function(f){return _.NR(t.emojiManager,f,!0)}).filter(Dkp):[]};
_.J.titleOffsetChanged_=function(){var A=this.hostElement.getBoundingClientRect(),t=_.sF(this.hostElement).querySelector("#title").getBoundingClientRect();A=Math.max(0,Math.min(this.titleOffset,A.height-t.height));_.sF(this.hostElement).querySelector("#title").style.top=A+"px"};
_.J.onEmojiMouseOver_=function(A){_.s9(this.hostElement,"yt-emoji-hover",A.model.item)};
_.J.onEmojiTap_=function(A){this.data.command&&(A=hdx(_.Px().resolve(_.z7(t4)),this.data.command,A),_.s9(this.hostElement,"yt-navigate",A))};
_.J.emojiAriaLabel=function(A){return A.shortcuts[0]};
_.J.emojiAriaSelected=function(A,t,f){return A&&f==t?"true":"false"};
_.J.changeFocus_=function(A,t){var f=this.emoji.length;this.focusedIndex=(this.focusedIndex+A+f)%f;A=this.emoji[this.focusedIndex];if(t){var X;(X=_.sF(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||X.scrollIntoView(!1);_.s9(this.hostElement,"yt-emoji-hover",A)}};
_.J.onMouseDown_=function(){this.JSC$14390_ignoreNextFocus_=!0};
_.J.onFocus_=function(){this.JSC$14390_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14390_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.onKeyDown_=function(A){switch(A.keyCode){case 13:this.onEmojiTap_(A);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);A.preventDefault();break;case 38:this.changeFocus_(-1,!0),A.preventDefault()}};
nR.prototype.onKeyDown_=nR.prototype.onKeyDown_;nR.prototype.onBlur_=nR.prototype.onBlur_;nR.prototype.onFocus_=nR.prototype.onFocus_;nR.prototype.onMouseDown_=nR.prototype.onMouseDown_;nR.prototype.onEmojiTap_=nR.prototype.onEmojiTap_;nR.prototype.titleOffsetChanged_=nR.prototype.titleOffsetChanged_;nR.prototype.emojiChanged_=nR.prototype.emojiChanged_;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],nR.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],nR.prototype,"data",void 0);_.V([_.n({computed:"computeId_(data)"}),_.H("design:type",String)],nR.prototype,"id",void 0);_.V([_.n({computed:"computeEmoji_(data)"}),_.H("design:type",Array)],nR.prototype,"emoji",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],nR.prototype,"titleOffset",void 0);_.V([_.n({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.H("design:type",Object)],nR.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.H("design:type",Object)],nR.prototype,"ariaActivedescendant",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],nR.prototype,"showFocus",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],nR.prototype,"focusedIndex",void 0);_.V([_.n(),_.H("design:type",_.lw)],nR.prototype,"emojiManager",void 0);
_.V([_.ev("emoji"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nR.prototype,"emojiChanged_",null);_.V([_.ev("titleOffset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nR.prototype,"titleOffsetChanged_",null);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],nR.prototype,"onEmojiTap_",null);
_.V([_.UQ("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nR.prototype,"onMouseDown_",null);_.V([_.UQ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nR.prototype,"onFocus_",null);_.V([_.UQ("blur"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nR.prototype,"onBlur_",null);
_.V([_.UQ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],nR.prototype,"onKeyDown_",null);_.V([_.WU({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],nR);
_.Y(nR,"yt-emoji-picker-upsell-category-renderer",function(){if(Axi===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;rik===void 0&&(rik=document.createElement("template"));var X=rik;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Axi=A}A=Axi;return A},{mode:2});var toT;var fV7;var D0=function(){var A=_.F.apply(this,arguments)||this;A.scrollAction="lock";A.verticalAlign="top";return A};
_.R(D0,_.F);_.J=D0.prototype;_.J.onClick=function(A){A=_.oO(A);A instanceof HTMLImageElement&&_.s9(this.hostElement,"yt-emoji-select",_.NR(this.emojiManager,A.id))};
_.J.openSelector=function(){this.ironOverlayBehavior.open()};
_.J.onDomChange=function(){Vff(this.ytEmojiSelectorBehavior)};
_.J.computeIsFamilySelector=function(A){var t;return(A==null?void 0:(t=A.emoji)==null?void 0:t.emojiId)==="\ud83d\udc6a"};
_.J.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var A=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];A&&A.emojiId&&(_.s9(this.hostElement,"yt-emoji-select",_.NR(this.emojiManager,A.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.PV.Object.defineProperties(D0.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var A=this,t,f,X;return this.emojiManager&&((t=this.data)==null?0:(f=t.emoji)==null?0:(X=f.variantIds)==null?0:X.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.NR(A.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}}});
D0.prototype.onClick=D0.prototype.onClick;_.V([_.b(_.lJ),_.H("design:type",Object)],D0.prototype,"ironOverlayBehavior",void 0);_.V([_.b(Zvp),_.H("design:type",Object)],D0.prototype,"ytEmojiSelectorBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],D0.prototype,"data",void 0);_.V([_.n(),_.H("design:type",_.lw)],D0.prototype,"emojiManager",void 0);_.V([_.n(),_.H("design:type",Object)],D0.prototype,"scrollAction",void 0);_.V([_.n(),_.H("design:type",Object)],D0.prototype,"verticalAlign",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.H("design:type",Boolean)],D0.prototype,"isFamilySelector",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],D0.prototype,"emojiVariants",null);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],D0.prototype,"onClick",null);_.V([_.WU({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],D0);
_.Y(D0,"yt-emoji-variant-selector",function(){if(fV7===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;toT===void 0&&(toT=document.createElement("template"));var X=toT;f.call(t,X.content.cloneNode(!0),A.content.firstChild);fV7=A}A=fV7;return A},{mode:2});var XBT=/:/g,Q5E=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],FW=function(){var A=_.F.apply(this,arguments)||this;A.emojiVariantSelector=null;A.emojiMultiPersonSelector=null;A.identity=_.I0;A.lastAnimationTime_=0;A.animationStart_=null;A.animationEnd_=null;return A};
_.R(FW,_.F);_.J=FW.prototype;
_.J.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}}};
_.J.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.z4)};
_.J.attached=function(){_.XG&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&oZp(this.emojiManager)};
_.J.dataChanged=function(){var A;if((A=this.data)==null?0:A.categories){A=this.emojiManager;var t=this.getCustomEmojiIds();A.pickerCustomEmojiIds=[].concat(_.YV(IIk),_.YV(t))}};
_.J.getCustomEmojiIds=function(){var A,t=(A=this.data.categories)==null?void 0:A.find(function(q){var e;return((e=q.emojiPickerCategoryRenderer)==null?void 0:e.categoryId)&&Q5E.includes(q.emojiPickerCategoryRenderer.categoryId)}),f;
A=(f=this.data.categories)==null?void 0:f.find(function(q){return q.emojiPickerUpsellCategoryRenderer});
var X,Q;return[t==null?void 0:(X=t.emojiPickerCategoryRenderer)==null?void 0:X.emojiIds,A==null?void 0:(Q=A.emojiPickerUpsellCategoryRenderer)==null?void 0:Q.emojiIds].flat().filter(function(q){return!!q})};
_.J.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.J.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.J.updateCategoriesAndPlaceholderInternal=function(A,t){var f=this;A&&t&&(this.categories=A.categories||[],this.categoryButtons=A.categoryButtons||[],this.resetPlaceholder(),this.search="",_.FD(function(){f.updateButtons_()}))};
_.J.computeId_=function(A){return A.id||""};
_.J.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(A){return A.emojiPickerCategoryRenderer&&A.emojiPickerCategoryRenderer.emojiData}):!1};
_.J.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.J.onShowEmojiVariantSelector=function(A){var t=A.detail.emojiData;t.variantIds&&t.variantIds.length&&(t.multiSelectorThumbnailRow&&t.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:t,target:A.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:t,target:A.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onIronOverlayClosed=function(A){var t=dY7(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");t&&A.composedPath&&(A.composedPath().includes(_.sF(this.hostElement).querySelector("#emoji-variant-selector"))||A.composedPath().includes(_.sF(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.kJ(this.hostElement,"yt-close-emoji-variant-selector",[t.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onEmojiVariantSelectorMouseup=function(A){var t=A.target.firstChild;this.variantSelectorOpened&&t&&_.FD(function(){t.noCancelOnOutsideClick=!1},100)};
_.J.onEmojiVariantSelectorMousedown=function(A){A=A.target.firstChild;this.variantSelectorOpened&&A&&(A.noCancelOnOutsideClick=!1)};
_.J.onSelectCategory_=function(A){var t=this.search!="";this.search="";for(var f=_.sF(this.hostElement).querySelector("#categories").children,X=0;X<f.length;X++){var Q=f[X];if(Q.id==A.detail.categoryId){t?(_.sF(this.hostElement).querySelector("#categories").scrollTop=Q.offsetTop,this.updateButtons_()):(this.animationStart_=_.sF(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Q.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.J.onEmojiHover_=function(A){this.placeholder=A.detail.shortcuts?A.detail.shortcuts[0]:""};
_.J.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.J.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.J.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.J.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.J.computeSearchCategory_=function(A){A=A.replace(XBT,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();A=A.split(" ");for(var t=[],f=this.emojiManager.emojis,X=0;X<f.length;X++){var Q=f[X];if(Q.searchTerms)for(var q=0;q<Q.searchTerms.length;q++){for(var e=Q.searchTerms[q].toLocaleLowerCase(),G=!1,N=0;N<A.length;N++)if(e.indexOf(A[N])!=-1){G=!0;break}if(G&&(!Q.isCustomEmoji||!Q.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Q.emojiId))){t.push(Q.emojiId);
break}}}return{categoryId:-1,emojiIds:t}};
_.J.computeSearchEmptyMessage_=function(A,t){return A&&t&&t.emojiIds&&t.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.J.computeSearching_=function(A){return this.emojiManager&&A.replace(XBT,"").length>1};
_.J.computeSkinToneHidden=function(){var A;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((A=this.data)==null||!A.hideSkinTonePicker)};
_.J.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.J.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.J.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.J.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.J.selectSkinTone_=function(A){A=Number(A.target.getAttribute("tone"));this.set("emojiManager.skinTone",A);_.kJ(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[A]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.J.skinToneChanged_=function(){_.sF(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var A=_.sF(this.hostElement).querySelector("#dropdown-content").children,t=0;t<A.length;t++)t===this.skinTone?A[t].setAttribute("selected",""):A[t].removeAttribute("selected")};
_.J.animateScroll_=function(A){this.lastAnimationTime_||(this.lastAnimationTime_=A);A-=this.lastAnimationTime_;A<200?(_.sF(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*A/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.sF(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.J.searchChanged_=function(){this.updateButtons_()};
_.J.updateButtons_=function(){var A=null;if(!this.search)for(var t=_.sF(this.hostElement).querySelector("#categories").scrollTop,f=_.sF(this.hostElement).querySelector("#categories").children,X=0;X<f.length;X++){var Q=f[X];Q.offsetTop<=t&&(A=Q.id)}t=_.sF(this.hostElement).querySelector("#category-buttons").children;for(f=0;f<t.length;f++)X=t[f],X.active=X.id===A};
FW.prototype.searchChanged_=FW.prototype.searchChanged_;FW.prototype.skinToneChanged_=FW.prototype.skinToneChanged_;FW.prototype.onEmojiHover_=FW.prototype.onEmojiHover_;FW.prototype.onSelectCategory_=FW.prototype.onSelectCategory_;FW.prototype.onShowEmojiVariantSelector=FW.prototype.onShowEmojiVariantSelector;FW.prototype.updateCategoriesAndPlaceholder_=FW.prototype.updateCategoriesAndPlaceholder_;FW.prototype.dataChanged=FW.prototype.dataChanged;
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],FW.prototype,"data",void 0);_.V([_.n({value:function(){return[]}}),
_.H("design:type",Array)],FW.prototype,"categories",void 0);_.V([_.n({value:function(){return[]}}),
_.H("design:type",Array)],FW.prototype,"categoryButtons",void 0);_.V([_.n({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.H("design:type",Boolean)],FW.prototype,"disableScroll",void 0);_.V([_.n({computed:"computeId_(data)",reflectToAttribute:!0}),_.H("design:type",String)],FW.prototype,"id",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],FW.prototype,"selected",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],FW.prototype,"disableIncrementalLoading",void 0);_.V([_.n(),_.H("design:type",String)],FW.prototype,"placeholder",void 0);_.V([_.n({value:""}),_.H("design:type",String)],FW.prototype,"search",void 0);_.V([_.n({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.H("design:type",Boolean)],FW.prototype,"searching",void 0);_.V([_.n({computed:"computeSearchCategory_(search)"}),_.H("design:type",Object)],FW.prototype,"searchCategory",void 0);
_.V([_.n({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.H("design:type",Object)],FW.prototype,"searchEmptyMessage",void 0);_.V([_.n({computed:"identity(emojiManager.skinTone)"}),_.H("design:type",Number)],FW.prototype,"skinTone",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],FW.prototype,"skinToneOpened",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],FW.prototype,"variantSelectorOpened",void 0);
_.V([_.n({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.H("design:type",Boolean)],FW.prototype,"skinToneHidden",void 0);_.V([_.n(),_.H("design:type",_.lw)],FW.prototype,"emojiManager",void 0);_.V([_.n(),_.H("design:type",Object)],FW.prototype,"emojiVariantSelector",void 0);_.V([_.n(),_.H("design:type",Object)],FW.prototype,"emojiMultiPersonSelector",void 0);
_.V([_.n({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.H("design:type",Boolean)],FW.prototype,"shouldUseStickyPreferences",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FW.prototype,"dataChanged",null);_.V([_.ev("data","selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FW.prototype,"updateCategoriesAndPlaceholder_",null);
_.V([_.UQ("yt-show-emoji-variant-selector"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],FW.prototype,"onShowEmojiVariantSelector",null);_.V([_.UQ("yt-emoji-picker-select-category"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],FW.prototype,"onSelectCategory_",null);_.V([_.UQ("yt-emoji-hover"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],FW.prototype,"onEmojiHover_",null);
_.V([_.ev("skinTone"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FW.prototype,"skinToneChanged_",null);_.V([_.ev("search"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FW.prototype,"searchChanged_",null);_.V([_.WU({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],FW);
_.Y(FW,"yt-emoji-picker-renderer",function(){if(k0C===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;sI7===void 0&&(sI7=document.createElement("template"));var X=sI7;f.call(t,X.content.cloneNode(!0),A.content.firstChild);k0C=A}A=k0C;return A},{mode:2});var IH=function(){var A=_.F.apply(this,arguments)||this;A.emojiManager=_.z4;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.selectedIndex=1;A.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return A};
_.R(IH,_.F);_.J=IH.prototype;_.J.handleEmojiCustomizationVisible=function(A){this.emojiPickerRenderer.selected=A;this.selectedIndex=1;A?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.J.emojiCustomizationSetChanged=function(){var A;(A=this.data)!=null&&A.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.ws(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.J.updateSaveButtonState=function(A){var t;(t=this.data)!=null&&t.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Ta("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:A}))};
_.J.emojiUrl=function(A){A=_.NR(this.emojiManager,A);if(!A)return"";var t;A=(t=A.image)==null?void 0:t.thumbnails;return _.a8(A,24)||""};
_.J.emojiAlt=function(A){var t=_.NR(this.emojiManager,A);if(!t)return A;var f,X,Q,q=(t==null?void 0:(f=t.image)==null?void 0:(X=f.accessibility)==null?void 0:(Q=X.accessibilityData)==null?void 0:Q.label)||"";return q?q:t.isCustomEmoji?t.shortcuts[0]:t.emojiId||A};
_.J.emojiAriaLabel=function(A){var t,f;return((t=_.NR(this.emojiManager,A))==null?void 0:(f=t.shortcuts)==null?void 0:f[0])||A};
_.J.onEmojiClick=function(A){A.model.index!==0&&(this.selectedIndex=A.model.index)};
_.J.onEmojiSelect=function(A){A=A.detail;var t,f;((t=this.data)==null?0:t.emojiCustomizationSetEntityKey)&&((f=this.emojiCustomizationSet)==null?0:f.emojiId)&&A.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,A.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Ta("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,A.emojiId,this.selectedIndex)}))};
_.J.canEditEmoji=function(A,t,f){A=A.indexOf(t);return A===f||A===0||f===0?!1:!0};
_.J.getUpdatedEmojiIdList=function(A,t,f){var X=A.indexOf(t);A=[].concat(_.YV(A));X>=0&&(A[X]=A[f]);A[f]=t;return A};
_.PV.Object.defineProperties(IH,{template:{configurable:!0,enumerable:!0,get:function(){if(R_7===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;h_K===void 0&&(h_K=document.createElement("template"));var X=h_K;f.call(t,X.content.cloneNode(!0),A.content.firstChild);R_7=A}A=R_7;return A}}});
IH.prototype.onEmojiSelect=IH.prototype.onEmojiSelect;_.V([_.b(_.Qv),_.H("design:type",Object)],IH.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],IH.prototype,"ytActionHandlerBehavior",void 0);_.V([_.lo("yt-emoji-picker-renderer"),_.H("design:type",Object)],IH.prototype,"emojiPickerRenderer",void 0);
_.V([_.n({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(A,t){return _.q_(A.entities,"emojiCustomizationSetEntity",t)},
observer:"emojiCustomizationSetChanged"}),_.H("design:type",Object)],IH.prototype,"emojiCustomizationSet",void 0);_.V([_.n(),_.H("design:type",Object)],IH.prototype,"originalEmojiSet",void 0);_.V([_.n(),_.H("design:type",_.lw)],IH.prototype,"emojiManager",void 0);_.V([_.n(),_.H("design:type",Object)],IH.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],IH.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",Object)],IH.prototype,"selectedIndex",void 0);
_.V([_.UQ("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],IH.prototype,"onEmojiSelect",null);_.V([_.WU({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],IH);var qST;var Jxk;var UET;var ePb;var xo=function(){var A=_.F.apply(this,arguments)||this;A.authorBadges=[];return A};
_.R(xo,_.F);_.J=xo.prototype;_.J.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.J.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]]"}}}}}};
_.J.dataChanged=function(){var A=Jmu(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",A)};
_.J.updateMessage=function(){var A=this.data.message,t=_.sF(_.sF(this.hostElement).querySelector("#message"));t.textContent="";A&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A))};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.J.onShowOriginalClick=function(A){A.preventDefault();this.showOriginal=!0};
_.J.computeShowBar=function(A,t,f){return A&&t||f};
_.J.computeAuthorBadges=function(A){return A.authorBadges||[]};
_.J.computeAuthorIsOwner=function(A){return!!Ugq(A.authorBadges,"owner")};
_.J.computeAuthorNameColor=function(A){var t;if(_.M("live_chat_author_name_color_usernames")&&(A==null?0:(t=A.authorName)==null?0:t.simpleText))return _.z8q(_.PDl(A.authorName.simpleText));if(_.M("live_chat_seed_color_usernames")&&(A==null?0:A.authorSeedColorArgb))return _.z8q(_.rR(A.authorSeedColorArgb));if(_.M("live_chat_colored_usernames"))return"#cc0000";var f;return _.M("live_chat_simple_color_usernames")&&(A==null?0:(f=A.authorName)==null?0:f.simpleText)&&(A==null?0:A.authorUsernameColorLight)&&
(A==null?0:A.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.rR(A.authorUsernameColorDark):_.rR(A.authorUsernameColorLight):""};
xo.prototype.updateMessage=xo.prototype.updateMessage;xo.prototype.dataChanged=xo.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],xo.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],xo.prototype,"data",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],xo.prototype,"showOriginal",void 0);_.V([_.n({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.H("design:type",Boolean)],xo.prototype,"isDimmed",void 0);_.V([_.n({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.H("design:type",Boolean)],xo.prototype,"showBar",void 0);
_.V([_.n({computed:"computeAuthorBadges(data)"}),_.H("design:type",Array)],xo.prototype,"authorBadges",void 0);_.V([_.n({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],xo.prototype,"authorIsOwner",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],xo.prototype,"inCollapsedBanner",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],xo.prototype,"inBanner",void 0);
_.V([_.n({value:_.M("live_chat_hide_avatars"),reflectToAttribute:!0}),_.H("design:type",Boolean)],xo.prototype,"avatarHidden",void 0);_.V([_.n({computed:"computeAuthorNameColor(data)"}),_.H("design:type",String)],xo.prototype,"authorNameColor",void 0);_.V([_.n(),_.H("design:type",_.c4)],xo.prototype,"participantsManager",void 0);_.V([_.n({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.H("design:type",Object)],xo.prototype,"filledButtonOverrides",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xo.prototype,"dataChanged",null);_.V([_.ev("data.message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xo.prototype,"updateMessage",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],xo);
_.Y(xo,"yt-live-chat-text-message-renderer",function(){if(ePb===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;UET===void 0&&(UET=document.createElement("template"));var X=UET;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ePb=A}A=ePb;return A},{mode:0});var jH=function(){var A=_.F.apply(this,arguments)||this;A.tonalButtonOverrides={type:"tonal",style:"overlay"};return A};
_.R(jH,_.F);
jH.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]]"}}}}}};
jH.prototype.shouldSupportInlineActionButtons=function(){return!0};
jH.prototype.shouldSupportWholeItemClick=function(){return!0};
_.PV.Object.defineProperties(jH.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],jH.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],jH.prototype,"data",void 0);_.V([_.n(),_.H("design:type",_.c4)],jH.prototype,"participantsManager",void 0);
_.V([_.n(),_.H("design:type",Object)],jH.prototype,"tonalButtonOverrides",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.infoDialogButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],jH.prototype,"hasInfoDialogButton",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],jH);
_.Y(jH,"yt-live-chat-auto-mod-message-renderer",function(){if(Jxk===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;qST===void 0&&(qST=document.createElement("template"));var X=qST;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Jxk=A}A=Jxk;return A},{mode:0});var Ge8;var lVT;var Nlp;var uai=function(){return _.F.apply(this,arguments)||this};
_.R(uai,_.F);_.V([_.n(),_.H("design:type",Object)],uai.prototype,"data",void 0);_.V([_.y_({is:"ytd-factoid-renderer",disableElementRegistration:!0})],uai);
_.Y(uai,"ytd-factoid-renderer",function(){if(Nlp!==void 0)return Nlp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Nlp=A},{mode:1});var Yo=function(){return _.F.apply(this,arguments)||this};
_.R(Yo,_.F);Yo.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.V([_.n(),_.H("design:type",Object)],Yo.prototype,"data",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Yo);
_.Y(Yo,"yt-live-chat-channel-activity-reputation-renderer",function(){if(lVT===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Ge8===void 0&&(Ge8=document.createElement("template"));var X=Ge8;f.call(t,X.content.cloneNode(!0),A.content.firstChild);lVT=A}A=lVT;return A},{mode:0});var zPi;var P3w;var VH=function(){return _.F.apply(this,arguments)||this};
_.R(VH,_.F);VH.prototype.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Boolean)],VH.prototype,"menuFocused",void 0);_.V([_.n(),_.H("design:type",Object)],VH.prototype,"data",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],VH.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],VH);
_.Y(VH,"yt-live-chat-donation-announcement-renderer",function(){if(P3w===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;zPi===void 0&&(zPi=document.createElement("template"));var X=zPi;f.call(t,X.content.cloneNode(!0),A.content.firstChild);P3w=A}A=P3w;return A},{mode:0});var Tlf;var iuk,OuE=function(){if(iuk!==void 0)return iuk;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Tlf===void 0&&(Tlf=document.createElement("template"));var X=Tlf;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return iuk=A};var Z0=function(){return _.F.apply(this,arguments)||this};
_.R(Z0,_.F);_.PV.Object.defineProperties(Z0,{template:{configurable:!0,enumerable:!0,get:function(){return OuE()}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Z0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Z0.prototype,"data",void 0);_.V([_.WU({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Z0);_.Y(Z0,"yt-live-chat-empty-feed-view-model",function(){return OuE()},{mode:0});var cx7;var Blw;var oH=function(){return _.F.apply(this,arguments)||this};
_.R(oH,_.F);oH.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"}}}}}};
_.PV.Object.defineProperties(oH.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var A,t;return{runs:[{text:(A=this.data)==null?void 0:(t=A.channelName)==null?void 0:t.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var A=[],t;if((t=this.data)==null||!t.channelBadges)return A;var f;t=_.U((f=this.data)==null?void 0:f.channelBadges);for(f=t.next();!f.done;f=t.next()){f=_.C(f.value,TKT);var X=void 0,Q=void 0;if((X=f)==null?0:(Q=X.badgeImage)==null?0:Q.sources)X=void 0,Q={liveChatAuthorBadgeRenderer:{tooltip:f.tooltip,accessibility:{accessibilityData:{label:(X=_.C(f.rendererContext,_.Tq))==null?void 0:X.label}}}},f.badgeImage.sources[0].clientResource?Q.liveChatAuthorBadgeRenderer.icon=
{iconType:f.badgeImage.sources[0].clientResource.imageName}:Q.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:f.badgeImage.sources},A.push(Q)}return A}}});
_.V([_.n(),_.H("design:type",Object)],oH.prototype,"data",void 0);_.V([_.y("data.channelName"),_.H("design:type",Object),_.H("design:paramtypes",[])],oH.prototype,"channelName",null);_.V([_.y("data.channelBadges"),_.H("design:type",Array),_.H("design:paramtypes",[])],oH.prototype,"channelBadges",null);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],oH);
_.Y(oH,"yt-live-chat-identity-view-model",function(){if(Blw===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;cx7===void 0&&(cx7=document.createElement("template"));var X=cx7;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Blw=A}A=Blw;return A},{mode:0});var Mo7;var C3E;var hPC;var RPf;var dN=function(){var A=_.F.apply(this,arguments)||this;A.hidden=!1;A.supportsInlineActionButtons=!0;return A};
_.R(dN,_.F);dN.prototype.ready=function(){var A;((A=document.querySelector("yt-live-chat-app"))==null?0:A.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
dN.prototype.dataChanged=function(A){var t=(0,_.XD)(_.sF(this.hostElement).querySelector("#detail-text"));t.textContent="";(A==null?0:A.detailText)&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A.detailText))};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],dN.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({observer:"dataChanged"}),_.H("design:type",Object)],dN.prototype,"data",void 0);
_.V([_.n({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.H("design:type",Object)],dN.prototype,"hidden",void 0);_.V([_.y_({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],dN);
_.Y(dN,"yt-live-chat-legacy-paid-message-renderer",function(){if(RPf===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;hPC===void 0&&(hPC=document.createElement("template"));var X=hPC;f.call(t,X.content.cloneNode(!0),A.content.firstChild);RPf=A}A=RPf;return A},{mode:0});var mET;var buC;var Wew={},SH=function(){return _.uo.apply(this,arguments)||this};
_.R(SH,_.uo);SH.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
SH.prototype.onLiveChatMembershipItemBehaviorClick=SH.prototype.onLiveChatMembershipItemBehaviorClick;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],SH.prototype,"data",void 0);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],SH.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.V([_.zh()],SH);
Wew.YtLiveChatMembershipItemBehavior=[SH.prototype,_.g.YtRendererBehavior];var $o=function(){var A=_.F.apply(this,arguments)||this;A.supportsInlineActionButtons=!0;A.hasPrimaryHeaderText=!1;A.showOnlyHeader=!1;A.authorBadges=[];A.modern=_.M("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.R($o,_.F);_.J=$o.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.J.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.J.messageChanged=function(){var A=this.data.message,t=(0,_.XD)(_.sF(this.hostElement).querySelector("#message"));t.textContent="";A&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A))};
_.J.computeHasPrimaryHeaderText=function(A){return!(!A||!A.headerPrimaryText)};
_.J.computeShowOnlyHeader=function(A,t){return this.isMessageEmpty(A,t)};
_.J.computeAuthorBadges=function(A){return A.authorBadges||[]};
_.J.isMessageEmpty=function(A,t){return!A||A.empty?!0:!A.message&&!A.inputField&&!t};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.J.getInputElement=function(){return _.sF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.J.inputFocus=function(){var A=this.getInputElement();A&&A.focus()};
_.J.inputInsertEmoji=function(A){var t=this.getInputElement();t&&t.insertEmoji(A)};
_.J.inputMessage=function(){var A=this.getInputElement();return A&&this.data.inputField?(A.completeEmojis(),_.n1(A.liveChatRichMessageInput)):null};
_.J.onFooterButtonClick=function(){this.data.footerButton&&_.s9(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.J.shouldSupportWholeItemClick=function(){return!0};
$o.prototype.isDeletedChanged=$o.prototype.isDeletedChanged;$o.prototype.messageChanged=$o.prototype.messageChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],$o.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.b(Wew.YtLiveChatMembershipItemBehavior),_.H("design:type",Object)],$o.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$o.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$o.prototype,"data",void 0);_.V([_.n({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.H("design:type",Object)],$o.prototype,"hasPrimaryHeaderText",void 0);_.V([_.n({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.H("design:type",Object)],$o.prototype,"showOnlyHeader",void 0);
_.V([_.n({computed:"computeAuthorBadges(data)"}),_.H("design:type",Array)],$o.prototype,"authorBadges",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$o.prototype,"modern",void 0);_.V([_.ev("data.message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$o.prototype,"messageChanged",null);_.V([_.ev("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$o.prototype,"isDeletedChanged",null);
_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],$o);
_.Y($o,"yt-live-chat-membership-item-renderer",function(){if(buC===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;mET===void 0&&(mET=document.createElement("template"));var X=mET;f.call(t,X.content.cloneNode(!0),A.content.firstChild);buC=A}A=buC;return A},{mode:0});var yxp;var vMl;var H4=function(){return _.F.apply(this,arguments)||this};
_.R(H4,_.F);H4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],H4.prototype,"data",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],H4);
_.Y(H4,"yt-live-chat-mode-change-message-renderer",function(){if(vMl===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;yxp===void 0&&(yxp=document.createElement("template"));var X=yxp;f.call(t,X.content.cloneNode(!0),A.content.firstChild);vMl=A}A=vMl;return A},{mode:0});var Lei;var pBK;var aH=function(){return _.F.apply(this,arguments)||this};
_.R(aH,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],aH.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],aH.prototype,"data",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],aH);
_.Y(aH,"yt-live-chat-moderation-message-renderer",function(){if(pBK===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Lei===void 0&&(Lei=document.createElement("template"));var X=Lei;f.call(t,X.content.cloneNode(!0),A.content.firstChild);pBK=A}A=pBK;return A},{mode:0});var EM7;var nMT;var KR=function(){return _.F.apply(this,arguments)||this};
_.R(KR,_.F);KR.prototype.onClick=function(){var A;if((A=this.data)!=null&&A.onClickCommand){var t;_.XH.instance.resolveCommand((t=this.data)==null?void 0:t.onClickCommand)}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],KR.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],KR.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],KR.prototype,"data",void 0);
_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],KR);
_.Y(KR,"yt-live-chat-offer-click-count-message-renderer",function(){if(nMT===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;EM7===void 0&&(EM7=document.createElement("template"));var X=EM7;f.call(t,X.content.cloneNode(!0),A.content.firstChild);nMT=A}A=nMT;return A},{mode:0});var DEK;var FeK=function(){return _.F.apply(this,arguments)||this};
_.R(FeK,_.F);_.V([_.n(),_.H("design:type",Object)],FeK.prototype,"data",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],FeK);
_.Y(FeK,"yt-live-chat-placeholder-item-renderer",function(){if(DEK===void 0){var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);DEK=A}A=DEK;return A},{mode:0});var IVT;var xET;var j5b=new Zt(7),gN=function(){var A=_.F.apply(this,arguments)||this;A.data={};return A};
_.R(gN,_.F);gN.prototype.dataChanged=function(){var A;((A=this.data)==null?0:A.class)&&_.rH(this.hostElement,this.data.class,!0);var t;((t=this.oldData)==null?0:t.class)&&_.rH(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
gN.prototype.computeTimestampString=function(A){return j5b.format(new Date(A/1E3))};
gN.prototype.dataChanged=gN.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],gN.prototype,"data",void 0);_.V([_.n({computed:"computeTimestampString(data.timestampUsec)"}),_.H("design:type",String)],gN.prototype,"timestampString",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gN.prototype,"dataChanged",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],gN);
_.Y(gN,"yt-live-chat-server-error-message",function(){if(xET===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;IVT===void 0&&(IVT=document.createElement("template"));var X=IVT;f.call(t,X.content.cloneNode(!0),A.content.firstChild);xET=A}A=xET;return A},{mode:0});var YSk;var Vol;var wN=function(){var A=_.F.apply(this,arguments)||this;A.defaultToFilledIcon=!1;return A};
_.R(wN,_.F);wN.prototype.computeHasPrimaryColorIcon=function(A){return A==="SPARK"||A==="SPONSORSHIP_STAR"};
wN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],wN.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wN.prototype,"defaultToFilledIcon",void 0);_.V([_.n(),_.H("design:type",Object)],wN.prototype,"data",void 0);
_.V([_.n({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.H("design:type",Boolean)],wN.prototype,"hasPrimaryColorIcon",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],wN);
_.Y(wN,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Vol===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;YSk===void 0&&(YSk=document.createElement("template"));var X=YSk;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Vol=A}A=Vol;return A},{mode:0});var ZuS;var sl=function(){var A=_.F.apply(this,arguments)||this;A.modernUpdate=!1;A.buttonStyle="overlay";A.buttonType="filled";return A};
_.R(sl,_.F);sl.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
sl.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sl.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],sl.prototype,"modernUpdate",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],sl.prototype,"buttonStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],sl.prototype,"buttonType",void 0);
_.V([_.y_({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],sl);
_.Y(sl,"ytd-ad-hover-text-button-renderer",function(){if(ZuS!==void 0)return ZuS;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ZuS=A},{mode:1});var oMp;var ko=function(){var A=_.F.apply(this,arguments)||this;A.buttonOverrides={size:"XS"};return A};
_.R(ko,_.F);ko.prototype.onHelpTap=function(A){this.data&&this.data.informationDialog&&(_.s9(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),A.preventDefault(),A.stopPropagation())};
_.V([_.n(),_.H("design:type",Object)],ko.prototype,"buttonOverrides",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ko.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],ko);
_.Y(ko,"ytd-live-chat-purchased-product-message-renderer",function(){if(oMp!==void 0)return oMp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return oMp=A},{mode:1});var dE8;var SSp;var rN=function(){var A=_.F.apply(this,arguments)||this;A.isContainerDeleted=!1;return A};
_.R(rN,_.F);rN.prototype.onContextMenuClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
rN.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))};
rN.prototype.isContainerDeletedChanged=rN.prototype.isContainerDeletedChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],rN.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rN.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],rN.prototype,"isContainerDeleted",void 0);
_.V([_.n(),_.H("design:type",String)],rN.prototype,"deletedStateMessage",void 0);_.V([_.ev("isContainerDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rN.prototype,"isContainerDeletedChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],rN);
_.Y(rN,"ytd-sponsorships-live-chat-header-renderer",function(){if(SSp!==void 0)return SSp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return SSp=A},{mode:1});var As=function(){var A=_.F.apply(this,arguments)||this;A.modern=_.M("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.R(As,_.F);As.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]]"}}}}}};
As.prototype.onCtaButtonClick=function(){var A,t=_.C((A=this.data)==null?void 0:A.optInPrompt,_.Gf);if(A=this.maybeGetButtonCommand(t)){var f;(f=_.er())==null||f.clickCommand(A)}};
As.prototype.maybeGetButtonCommand=function(A){return!A||!A.command||_.C(A.command,k48)===void 0&&_.C(A.command,sHp)===void 0?null:A.command};
As.prototype.shouldHideOptinPrompt=function(A,t){return!A||t};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],As.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],As.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],As.prototype,"modern",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],As);
_.Y(As,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(dE8!==void 0)return dE8;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return dE8=A},{mode:1});var $ES;var ts=function(){return _.F.apply(this,arguments)||this};
_.R(ts,_.F);ts.prototype.onContextMenuClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
ts.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))};
ts.prototype.isDeletedChanged=ts.prototype.isDeletedChanged;_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],ts.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ts.prototype,"data",void 0);_.V([_.ev("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ts.prototype,"isDeletedChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],ts);
_.Y(ts,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if($ES!==void 0)return $ES;var A=document.createElement("template");_.m(A,'\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="star_circle_ribbon" 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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return $ES=A},{mode:1});var f2=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return A};
_.R(f2,_.F);_.J=f2.prototype;
_.J.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"}}}};
_.J.handleLiveChatAction=function(A){_.C(A,x2T)?this.handleMarkChatItemAsDeletedAction(_.C(A,x2T)):_.C(A,Iup)&&this.handleRemoveChatItemAction(_.C(A,Iup))};
_.J.handleLiveChatActions=function(A){A.forEach(this.handleLiveChatAction,this)};
_.J.handleMarkChatItemAsDeletedAction=function(A){var t=this,f;((f=this.data)==null?0:f.items)&&this.data.items.forEach(function(X,Q){var q=Object.keys(X)[0];Object.values(X)[0].id===A.targetItemId&&t.markAsDeleted("data.items",Q,q,A.deletedStateMessage,A.showOriginalContentMessage)})};
_.J.handleRemoveChatItemAction=function(A){var t=this,f;((f=this.data)==null?0:f.items)&&this.data.items.forEach(function(X,Q){Object.values(X)[0].id===A.targetItemId&&t.splice("data.items",Q,1)})};
_.J.markAsDeleted=function(A,t,f,X,Q){A=[A,t,f].join(".");this.set(A+".deletedStateMessage",X);this.set(A+".showOriginalContentMessage",Q)};
_.V([_.n(),_.H("design:type",Object)],f2.prototype,"data",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],f2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],f2.prototype,"ytActionHandlerBehavior",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],f2);
_.Y(f2,"yt-live-chat-item-display-list-renderer",function(){if(C3E===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Mo7===void 0&&(Mo7=document.createElement("template"));var X=Mo7;f.call(t,X.content.cloneNode(!0),A.content.firstChild);C3E=A}A=C3E;return A},{mode:0});var Huk;var aV7,Kep=function(){if(aV7!==void 0)return aV7;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Huk===void 0&&(Huk=document.createElement("template"));var X=Huk;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return aV7=A};var Xf=function(){var A=_.F.apply(this,arguments)||this;A.isHeader=!1;return A};
_.R(Xf,_.F);Xf.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.PV.Object.defineProperties(Xf,{template:{configurable:!0,enumerable:!0,get:function(){return Kep()}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Xf.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Xf.prototype,"isHeader",void 0);_.V([_.WU({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Xf);_.Y(Xf,"yt-live-chat-item-display-renderer",function(){return Kep()},{mode:0});var gMK,wBK,tgp,ANp;
gMK={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}};wBK={home:"eohps",search:"eosps",watch:"eowps"};_.s5i=["watch","search","home"];
_.Qn=function(){this.JSC$14501_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14501_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.ah("PRECONSTRUCTION_DELAY",0);this.signals_=_.TT();this.targetPage_=""};
_.Qn.prototype.init=function(A,t){A=A===void 0?"":A;t=t===void 0?null:t;if(this.JSC$14501_isInitialized_)this.abort();else if(this.JSC$14501_isInitialized_=!0,A&&_.keK(this,A),t){var f=_.iE(this.signals_,"pcl")?0:10,X=function(){for(var Q=0,q;q=_.s5i[Q++];)q!=A&&q!=t&&this.pendingPages_.push(q);_.rx8(this)}.bind(this);
this.signals_.parkOrScheduleJob(X,f,"pcl")}};
_.Qn.prototype.abort=function(){this.fragmentJobId_&&(_.a6.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);ANp(this)};
_.keK=function(A,t){A.JSC$14501_isInitialized_&&!A.targetPage_&&(A.targetPage_=t,tgp(A,t),A.isInitialPass_=!1,tgp(A,t),A.signals_.processSignal(wBK[A.targetPage_]),ANp(A),_.rx8(A))};
_.rx8=function(A){A.pendingPages_.length&&!A.pagePreparerJobId_&&(A.pagePreparerJobId_=_.jY(_.a6,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.keK(this,this.pendingPages_.shift())}.bind(A),A.DEFAULT_DELAY_))};
tgp=function(A,t){if(t=gMK[t])for(var f in t){var X=!1,Q=f;f.charAt(0)=="~"&&(X=!0,Q=f.substring(1));var q=t[f];q=typeof q=="object"?q:{count:q};t[f]=q;q.componentName=Q;q.count>0&&(A.isInitialPass_?X||A.isSeenDuringInitialPass_[Q]||(A.JSC$14501_queue_.push({componentName:Q,count:1,signals:q.signals}),A.isSeenDuringInitialPass_[Q]=!0,q.count--):A.JSC$14501_queue_.push(q))}};
ANp=function(A){A.JSC$14501_queue_.length=0;A.targetPage_="";A.isInitialPass_=!0;A.signals_.processSignal("eop")};
_.Qn.getInstance=function(){return _.K8(_.Qn)};var fpf=function(){this.signals=_.TT();this.init()};
fpf.prototype.startPreconstruction=function(){_.Qn.getInstance().init(_.Ka("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
fpf.prototype.init=function(){Xv7(this);window.Polymer&&Gtb&&rk5();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var A=_.Xb.ytcsi;if(A&&A.gt&&(A=A.gt())&&A.tick&&(A.tick.aft>0||A.tick.pbs>0)&&(_.Ka("IS_HOMEPAGE_COLD")||_.Ka("IS_RESULTS_PAGE_COLD")||_.Ka("IS_WATCH_PAGE_COLD"))){Qm7(this);break a}YFT(Ywl,this.onNotifications,this)}};
var Xv7=function(A){var t=function(){A.signals.processSignal("dl")};
document.readyState==="complete"?(_.te(Error("uh"),"WARNING"),t()):_.PPx(window,"load",t)};
fpf.prototype.onNotifications=function(A){A.timer||(_.Ka("IS_HOMEPAGE_COLD")||_.Ka("IS_RESULTS_PAGE_COLD")||_.Ka("IS_WATCH_PAGE_COLD"))&&Qm7(this)};
var Qm7=function(A){A.signals.parkOrScheduleJob(function(){A.signals.processSignal("eocs")},10,"eor")};
new fpf;var qM7=function(){return _.uo.apply(this,arguments)||this};
_.R(qM7,_.uo);_.PV.Object.defineProperties(qM7.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_entity_store_from_dependency_injection")?_.ZK():_.$I()}}});
_.V([_.zh()],qM7);_.qT=[sd.prototype,qM7.prototype];var JNK=["ytd-rich-shelf-renderer"],Js=function(){var A=_.uo.apply(this,arguments)||this;A._noAccessors=!0;A.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";A.followUpDialogPromise=null;A.followUpDialogPromiseResolve=null;A.followUpDialogPromiseReject=null;return A};
_.R(Js,_.uo);_.J=Js.prototype;_.J.dismissibleItemIsDismissedChanged_=function(A){_.M("kevlar_fluid_dismiss")&&(A?_.s9(this.hostElement,"yt-dismissible-item-dismissed"):_.s9(this.hostElement,"yt-dismissible-item-undismissed"))};
_.J.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.J.dismissibleItemReset_=function(){var A=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 _.yy(function(t,f){A.followUpDialogPromiseResolve=t;A.followUpDialogPromiseReject=f});
_.s9(this.hostElement,"yt-enable-lockup-interaction")};
_.J.dismissibleItemOnYtServiceRequestSent_=function(A,t){t.actions&&this.dismissibleItemProcessActions(t.actions,A)};
_.J.dismissibleItemOnRequestSent=function(A){for(var t=_.U(A.detail),f=t.next();!f.done;f=t.next()){var X=void 0;(f=(X=_.C(f.value,_.qJ))==null?void 0:X.actions)&&this.dismissibleItemProcessActions(f,A)}};
_.J.dismissibleItemOnCommandSent=function(A,t){t&&this.dismissibleItemProcessActions(t,A)};
_.J.setAndGetDismissedContentId=function(A){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+A};
_.J.replayDismissAction=function(A){this.dismissibleItemProcessActions([A])};
_.J.dismissibleItemProcessActions=function(A,t){for(var f=0;f<A.length;f++){var X=A[f],Q=void 0;((Q=_.C(X,_.Xd))==null?0:Q.commands)&&this.dismissibleItemProcessActions(_.C(X,_.Xd).commands,t);if(_.C(X,_.Zu)){if(Q=_.C(X,_.Zu),!Q.replaceParentSection||JNK.includes(this.hostElement.nodeName.toLowerCase()))Q.groupDismissal&&F8T(this,Q.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Q),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Ta("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:X})),X=void 0,(X=t)==null||X.stopPropagation()}else if(_.C(X,p0k))this.dismissibleItemHandleHideEnclosingAction_(),X=void 0,(X=t)==null||X.stopPropagation();else if(_.C(X,tm7))X=_.C(X,tm7),Q=void 0,((Q=X)==null?0:Q.targetGroupId)&&F8T(this,{targetGroupId:X.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Ta("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
X=void 0,(X=t)==null||X.stopPropagation();else if(_.C(X,_.qJ))(X=_.C(X,_.qJ).actions)&&_.tl(this.hostElement,X,this.hostElement),X=void 0,(X=t)==null||X.stopPropagation();else{var q=Q=void 0;((Q=_.C(X,_.A4))==null?void 0:Q.signal)!=="TELL_US_WHY"||((q=_.C(X,_.A4))==null?0:q.targetId)&&_.M("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),X=void 0,(X=t)==null||X.stopPropagation())}}};
_.J.dismissibleItemOnYtServiceRequestCompleted_=function(A,t){var f=this.get("feedbackResponses.0.followUpDialog",t.data);f?this.followUpDialogPromiseResolve(f):t.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(t.actions,A)};
_.J.dismissibleItemHandleReplaceEnclosingAction_=function(A){this.dismissedRenderer=A.item;this.isDismissed=!0;var t=null;(t=_.sF(this.hostElement).querySelector("#dismissed"))&&_.us(this,function(){_.GO(t)});
_.s9(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.J.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.J.dismissibleItemHandleUndoFeedbackAction_=function(){_.s9(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.J.dismissibleItemHandleTellUsWhySignalAction_=function(){var A=this;this.followUpDialogPromise.then(function(t){A.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:t}})})};
Js.prototype.dismissibleItemOnYtServiceRequestCompleted_=Js.prototype.dismissibleItemOnYtServiceRequestCompleted_;Js.prototype.dismissibleItemOnCommandSent=Js.prototype.dismissibleItemOnCommandSent;Js.prototype.dismissibleItemOnRequestSent=Js.prototype.dismissibleItemOnRequestSent;Js.prototype.dismissibleItemOnYtServiceRequestSent_=Js.prototype.dismissibleItemOnYtServiceRequestSent_;Js.prototype.dismissibleItemDataChanged_=Js.prototype.dismissibleItemDataChanged_;
Js.prototype.dismissibleItemIsDismissedChanged_=Js.prototype.dismissibleItemIsDismissedChanged_;_.V([_.b(_.RH),_.H("design:type",Object)],Js.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Js.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Js.prototype,"isDismissed",void 0);_.V([_.n(),_.H("design:type",Object)],Js.prototype,"dismissedRenderer",void 0);
_.V([_.ev("isDismissed"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean]),_.H("design:returntype")],Js.prototype,"dismissibleItemIsDismissedChanged_",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Js.prototype,"dismissibleItemDataChanged_",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],Js.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.V([_.UQ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Js.prototype,"dismissibleItemOnRequestSent",null);
_.V([_.UQ("yt-dismissible-item-action"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Array]),_.H("design:returntype")],Js.prototype,"dismissibleItemOnCommandSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],Js.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.V([_.zh()],Js);_.UW=[_.RH,_.qT,Js.prototype];var ek=function(){var A=_.uo.apply(this,arguments)||this;A.disableGridStateAware=!1;A.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};A.currentGridClass="";return A};
_.R(ek,_.uo);ek.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.us(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var A=this.gridStateAwareGetElement();_.rH(A,"grid",!0)}};
ek.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
ek.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.sF(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
ek.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var A="grid-disabled";else{A=_.DQ.getInstance();var t=this.get("pageSubtype");A=t&&uYK.includes(t)?"grid-disabled":A.currentSnapState_?A.currentSnapState_.className:null}(t=this.gridStateAwareGetElement())&&A!==this.currentGridClass&&(A&&_.rH(t,A,!0),this.currentGridClass&&_.rH(t,this.currentGridClass,!1),this.currentGridClass=A)};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],ek.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",String)],ek.prototype,"gridStateAwareSizingElementSelector",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ek.prototype,"disableGridStateAware",void 0);_.V([_.zh()],ek);_.GB=[ek.prototype,_.jD.YtActionHandlerBehavior];_.lC=new _.eh("GUIDE_TOKEN");var uC;_.NT={};uC=function(){var A=_.uo.apply(this,arguments)||this;A.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 A};
_.R(uC,_.uo);_.J=uC.prototype;_.J.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var A=_.Px().resolve(_.z7(_.lC));A&&(this.guidePersistentAndVisible=A.getGuidePersistentAndVisible(),this.activeEndpoint=A.getActiveEndpoint(),this.guideOpened=A.getGuideOpened(),this.miniGuideVisible=A.getMiniGuideVisible())};
_.J.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.J.handleGuideStateAction=function(A){this.guidePersistentAndVisible=A};
_.J.handleMiniGuideStateAction=function(A){this.miniGuideVisible=A};
_.J.handleGuideOpenedAction=function(A){this.guideOpened=A};
_.J.handleActiveEndpointAction=function(A){this.activeEndpoint=A};
uC.prototype.onActiveEndpointChange=uC.prototype.onActiveEndpointChange;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],uC.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],uC.prototype,"guidePersistentAndVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],uC.prototype,"miniGuideVisible",void 0);_.V([_.n(),_.H("design:type",Object)],uC.prototype,"activeEndpoint",void 0);
_.V([_.ev("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uC.prototype,"onActiveEndpointChange",null);_.V([_.n(),_.H("design:type",Boolean)],uC.prototype,"guideOpened",void 0);_.V([_.zh()],uC);_.NT.YtdGuideStateAwareBehavior=[];_.NT.YtdGuideStateAwareBehavior.push(uC.prototype,_.jD.YtActionHandlerBehavior);var U6p=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],zB=function(){var A=_.uo.apply(this,arguments)||this;A.hoverJobId=0;A.JSC$14528_touched=!1;return A};
_.R(zB,_.uo);_.J=zB.prototype;_.J.created=function(){this.useExpandableTooltip=!U6p.includes(this.is)};
_.J.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.J.detached=function(){this.useExpandableTooltip=!1};
_.J.lockupOnDown=function(A){this.interactionElement&&!_.Sl(_.Z2(A),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.J.lockupOnUp=function(A){this.interactionElement&&!_.Sl(_.Z2(A),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.J.onTouchStart=function(){this.JSC$14528_touched=!0};
_.J.lockupOnMouseEnter=function(){var A=this,t=_.cx("kevlar_lockup_hover_delay",-1);this.JSC$14528_touched&&t>=0?(_.a6.cancelJob(this.hoverJobId),this.hoverJobId=_.a6.addJob(function(){A.lockupIsHovered=!0},8,t),this.JSC$14528_touched=!1):this.lockupIsHovered=!0};
_.J.lockupOnMouseLeave=function(){this.hoverJobId&&(_.a6.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.J.lockupOnPopupClosed=function(A,t){var f;((f=t.popupRenderer)==null?void 0:f.is)==="ytd-menu-popup-renderer"&&(A=t.popupRenderer.veData,t=_.Ws(),A&&t&&_.ZN(t,[A]))};
_.J.lockupOnLockupRequested=function(A){var t=A.detail.videoIds[0],f;A.detail&&t===((f=this.data)==null?void 0:f.videoId)&&(A.detail.returnValue=[this.data])};
_.J.lockupOnYtServiceRequestSent=function(A,t){if(A=t.actions)for(var f=0;f<A.length;f++){var X=A[f];if(X.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&t.ajaxPromise){var Q=void 0,q=(Q=_.C(t.endpoint,_.qN))==null?void 0:Q.playlistId;Q=void 0;X=(Q=X.removedVideoId)!=null?Q:"";jZC(_.cR(),X,q)}else X.action==="ACTION_REMOVE_VIDEO"&&t.ajaxPromise&&(q=void 0,X=(q=X.setVideoId)!=null?q:"",_.Ykl(_.cR(),X))}};
_.J.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.J.lockupOnLockupEnabled=function(){if(!this.$){var A=_.Px().resolve(_.HO).getCurrentPage(),t=this.getParentRenderer?this.getParentRenderer():void 0;_.K4(new _.xj("component not ready",this.is,this.isAttached,A==null?void 0:A.is,t==null?void 0:t.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
zB.prototype.lockupOnLockupEnabled=zB.prototype.lockupOnLockupEnabled;zB.prototype.lockupOnLockupDisabled=zB.prototype.lockupOnLockupDisabled;zB.prototype.lockupOnYtServiceRequestSent=zB.prototype.lockupOnYtServiceRequestSent;zB.prototype.lockupOnLockupRequested=zB.prototype.lockupOnLockupRequested;zB.prototype.lockupOnPopupClosed=zB.prototype.lockupOnPopupClosed;zB.prototype.lockupOnMouseLeave=zB.prototype.lockupOnMouseLeave;zB.prototype.lockupOnMouseEnter=zB.prototype.lockupOnMouseEnter;
zB.prototype.onTouchStart=zB.prototype.onTouchStart;zB.prototype.lockupOnUp=zB.prototype.lockupOnUp;zB.prototype.lockupOnDown=zB.prototype.lockupOnDown;_.V([_.n(),_.H("design:type",Object)],zB.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],zB.prototype,"lockupIsHovered",void 0);_.V([_.n(),_.H("design:type",Boolean)],zB.prototype,"lockupTouchTriggered",void 0);_.V([_.n(),_.H("design:type",Boolean)],zB.prototype,"useExpandableTooltip",void 0);
_.V([_.lo("#interaction"),_.H("design:type",Object)],zB.prototype,"interactionElement",void 0);_.V([_.UQ("down"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zB.prototype,"lockupOnDown",null);_.V([_.UQ("up"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zB.prototype,"lockupOnUp",null);
_.V([_.UQ("touchstart"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zB.prototype,"onTouchStart",null);_.V([_.UQ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zB.prototype,"lockupOnMouseEnter",null);_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zB.prototype,"lockupOnMouseLeave",null);
_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],zB.prototype,"lockupOnPopupClosed",null);_.V([_.UQ("yt-lockup-requested"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zB.prototype,"lockupOnLockupRequested",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],zB.prototype,"lockupOnYtServiceRequestSent",null);_.V([_.UQ("yt-disable-lockup-interaction"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zB.prototype,"lockupOnLockupDisabled",null);
_.V([_.UQ("yt-enable-lockup-interaction"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zB.prototype,"lockupOnLockupEnabled",null);_.V([_.zh()],zB);_.P7=[zB.prototype];_.eK7={YtdReduxBehavior:[]};_.eK7.YtdReduxBehavior.push.apply(_.eK7.YtdReduxBehavior,_.qT);var TB=function(){var A=_.uo.apply(this,arguments)||this;A._noAccessors=!0;A.disableNowPlaying=!1;A.disableTooltips=!1;A.useHoveredProperty=!1;A.hovered=!1;A.isThumbnailHovered_=!1;A.addBackground=_.M("kevlar_thumbnail_bg");A.nowPlaying=!1;A.disableRounding=!1;A.size="small";return A};
_.R(TB,_.uo);_.J=TB.prototype;_.J.computeThumbnailOverlaySidePanelWidth_=function(A,t){return A-t};
_.J.computeSize=function(A,t){if(!this.disableRounding){if(!A&&!t)return"small";A=Math.max(A||0,t||0);return A>=256?"large":A>=96?"medium":"small"}};
_.J.computeFinalHoveredState_=function(A,t,f){return this.nowPlaying?!1:_.M("kevlar_thumbnail_fluid")&&A?t:f};
_.J.computeHoverOverlays_=function(A,t){return A&&t?t:void 0};
_.J.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.J.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.J.checkMiniplayer_=function(){var A;if(((A=this.data)==null?0:A.playlistSetVideoId)&&_.M("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{A=_.$z();var t=A.currentEndpoint;!this.disableNowPlaying&&t&&_.C(t,_.ZT)&&this.data?(t=_.C(t,_.ZT),this.nowPlaying=this.data.playlistId?t.playlistId===this.data.playlistId:t.videoId===this.data.videoId,this.isVideoPlaying=A==null?void 0:A.isVideoPlaying):this.nowPlaying=!1}};
TB.prototype.checkMiniplayer_=TB.prototype.checkMiniplayer_;TB.prototype.onMouseLeave_=TB.prototype.onMouseLeave_;TB.prototype.onMouseEnter_=TB.prototype.onMouseEnter_;TB.prototype.computeHoverOverlays_=TB.prototype.computeHoverOverlays_;TB.prototype.computeFinalHoveredState_=TB.prototype.computeFinalHoveredState_;TB.prototype.computeSize=TB.prototype.computeSize;TB.prototype.computeThumbnailOverlaySidePanelWidth_=TB.prototype.computeThumbnailOverlaySidePanelWidth_;
_.V([_.b(_.qT),_.H("design:type",Object)],TB.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],TB.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],TB.prototype,"height",void 0);_.V([_.n(),_.H("design:type",Boolean)],TB.prototype,"bottomSidePanel",void 0);_.V([_.n(),_.H("design:type",Number)],TB.prototype,"width",void 0);_.V([_.n(),_.H("design:type",Object)],TB.prototype,"disableNowPlaying",void 0);
_.V([_.n({selector:_.WE}),_.H("design:type",Boolean)],TB.prototype,"miniplayerIsActive",void 0);_.V([_.n(),_.H("design:type",Object)],TB.prototype,"disableTooltips",void 0);_.V([_.n(),_.H("design:type",Object)],TB.prototype,"useHoveredProperty",void 0);_.V([_.n(),_.H("design:type",Object)],TB.prototype,"hovered",void 0);_.V([_.n(),_.H("design:type",Object)],TB.prototype,"isThumbnailHovered_",void 0);
_.V([_.n({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.H("design:type",Boolean)],TB.prototype,"finalHoveredState_",void 0);_.V([_.n({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.H("design:type",Number)],TB.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],TB.prototype,"addBackground",void 0);
_.V([_.n({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.H("design:type",Object)],TB.prototype,"hoverOverlays_",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],TB.prototype,"nowPlaying",void 0);_.V([_.n(),_.H("design:type",Boolean)],TB.prototype,"isVideoPlaying",void 0);_.V([_.n(),_.H("design:type",Object)],TB.prototype,"disableRounding",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.H("design:type",Object)],TB.prototype,"size",void 0);_.V([_.UQ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TB.prototype,"onMouseEnter_",null);_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TB.prototype,"onMouseLeave_",null);
_.V([_.ev("data","disableNowPlaying","miniplayerIsActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TB.prototype,"checkMiniplayer_",null);_.V([_.zh()],TB);var Gpk=[TB.prototype];_.iC={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(A,t){return A+":"+_.gs(t)},
getPlayerListener_:function(A,t,f){A=this.getPlayerListenerKey_(A,t);t=this.playerListeners_.get(A);f&&this.playerListeners_.delete(A);return t},
savePlayerListener_:function(A,t){var f=t.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(A,t),f);return f},
listenToPlayerEvent:function(A,t,f){f=this.savePlayerListener_(t,f);A.addEventListener(t,f)},
listenToPlayerEvents:function(A,t){t.forEach(function(f,X){this.listenToPlayerEvent(A,X,f)}.bind(this))},
unlistenFromPlayerEvent:function(A,t,f){f=this.getPlayerListener_(t,f,!0);A.removeEventListener(t,f)},
unlistenFromPlayerEvents:function(A,t){t.forEach(function(f,X){this.unlistenFromPlayerEvent(A,X,f)}.bind(this))}}};
_.OW=function(){};_.lp8=new _.eh("PLAYER_API_TOKEN");var Y40=!1,dkg,Zvb=!1,$kz;var s7=function(A,t,f,X,Q){_.DA.call(this);var q=this;this.playerId=t;this.webPlayerContextConfig=X;this.k90=Q;this.g9Y=!1;this.api={};this.vd4=this.p4a=null;this.fyq=new _.Lk;this.cZ={};this.lj9=this.zaa=this.elementId=this.lHP=this.config=null;this.cr9=!1;this.s1=this.yz4=null;this.xGM={};this.n0n=["onReady"];this.lastError=null;this.cni=NaN;this.rP9={};this.aLq=0;this.hv=this.targetElement=A;_.hV(this,this.fyq);NpC(this);f?this.aLq=setTimeout(function(){q.loadNewVideoConfig(f)},0):X&&(urC(this),
zKk(this))};
_.R(s7,_.DA);s7.prototype.getId=function(){return this.playerId};
s7.prototype.loadNewVideoConfig=function(A){if(!this.isDisposed()){this.aLq&&(clearTimeout(this.aLq),this.aLq=0);var t=A||{};t instanceof dMS||(t=new dMS(t));this.config=t;this.setConfig(A);zKk(this);this.isReady()&&PFp(this)}};
var urC=function(A){var t;A.webPlayerContextConfig?t=A.webPlayerContextConfig.rootElementId:t=A.config.attrs.id;A.elementId=t||A.elementId;A.elementId==="video-player"&&(A.elementId=A.playerId,A.webPlayerContextConfig?A.webPlayerContextConfig.rootElementId=A.playerId:A.config.attrs.id=A.playerId);var f;((f=A.hv)==null?void 0:f.id)===A.elementId&&(A.elementId+="-player",A.webPlayerContextConfig?A.webPlayerContextConfig.rootElementId=A.elementId:A.config.attrs.id=A.elementId)};
s7.prototype.setConfig=function(A){this.lHP=A;this.config=Tpk(A);urC(this);if(!this.zaa){var t;this.zaa=iCE(this,((t=this.config.args)==null?void 0:t.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var f;if((f=this.config)==null?0:f.attrs)A=this.config.attrs,(t=A.width)&&this.hv&&(this.hv.style.width=Sq(Number(t)||t,!0)),(A=A.height)&&this.hv&&(this.hv.style.height=Sq(Number(A)||A,!0))};
s7.prototype.getConfig=function(){return this.lHP};
var PFp=function(A){if(A.config&&A.config.loaded!==!0)if(A.config.loaded=!0,!A.config.args||A.config.args.autoplay!=="0"&&A.config.args.autoplay!==0&&A.config.args.autoplay!==!1){var t;A.api.loadVideoByPlayerVars((t=A.config.args)!=null?t:null)}else A.api.cueVideoByPlayerVars(A.config.args)},cNk=function(A){var t=!0,f=A.getPlayerElement();
f&&A.config&&(t=f.dataset.version===OC7(A));return t&&!!_.Ae("yt.player.Application.create")},zKk=function(A){if(!A.isDisposed()&&!A.cr9){var t=cNk(A);
if(t&&(A.getPlayerElement()?"html5":null)==="html5")A.lj9="html5",A.isReady()||BpS(A);else if(Mg7(A),A.lj9="html5",t&&A.s1&&A.targetElement)A.targetElement.appendChild(A.s1),BpS(A);else{A.config&&(A.config.loaded=!0);var f=!1;A.yz4=function(){f=!0;var X=CFT(A,"player_bootstrap_method")?_.Ae("yt.player.Application.createAlternate")||_.Ae("yt.player.Application.create"):_.Ae("yt.player.Application.create");var Q=A.config?Tpk(A.config):void 0;X&&X(A.targetElement,Q,A.webPlayerContextConfig,A.k90);BpS(A)};
A.cr9=!0;t?A.yz4():(_.DT(OC7(A),A.yz4),(t=hKE(A))&&U2l(t||""),RKT(A)&&!f&&_.zm("yt.player.Application.create",null))}}};
s7.prototype.getPlayerElement=function(){var A=_.we(document,this.elementId);!A&&this.hv&&this.hv.querySelector&&(A=this.hv.querySelector("#"+this.elementId));return A};
var BpS=function(A){if(!A.isDisposed()){var t=A.getPlayerElement(),f=!1;t&&t.getApiInterface&&t.getApiInterface()&&(f=!0);if(f){A.cr9=!1;if(!CFT(A,"html5_remove_not_servable_check_killswitch")){var X;if((t==null?0:t.isNotServable)&&A.config&&(t==null?0:t.isNotServable((X=A.config.args)==null?void 0:X.video_id)))return}m6T(A)}else A.cni=setTimeout(function(){BpS(A)},50)}},m6T=function(A){NpC(A);
A.g9Y=!0;var t=A.getPlayerElement();if(t){A.p4a=bCb(A,t,"addEventListener");A.vd4=bCb(A,t,"removeEventListener");var f=t.getApiInterface();f=f.concat(t.getInternalApiInterface());for(var X=A.api,Q=0;Q<f.length;Q++){var q=f[Q];X[q]||(X[q]=bCb(A,t,q))}}for(var e in A.cZ)A.cZ.hasOwnProperty(e)&&A.p4a&&A.p4a(e,A.cZ[e]);PFp(A);A.zaa&&A.zaa(A.api);A.fyq.publish("onReady",A.api)},bCb=function(A,t,f){var X=t[f];
return function(){var Q=_.Hu.apply(0,arguments);try{return A.lastError=null,X.apply(t,Q)}catch(q){if(f!=="sendAbandonmentPing")throw q.params=f,A.lastError=q,Q=new _.xj("PlayerProxy error in method call",{error:q,method:f,playerId:A.playerId}),Q.level="WARNING",Q;}}},NpC=function(A){A.g9Y=!1;
if(A.vd4)for(var t in A.cZ)A.cZ.hasOwnProperty(t)&&A.vd4(t,A.cZ[t]);for(var f in A.rP9)A.rP9.hasOwnProperty(f)&&clearTimeout(Number(f));A.rP9={};A.p4a=null;A.vd4=null;t=A.api;for(var X in t)t.hasOwnProperty(X)&&(t[X]=null);t.addEventListener=function(Q,q){A.addEventListener(Q,q)};
t.removeEventListener=function(Q,q){A.removeEventListener(Q,q)};
t.destroy=function(){A.dispose()};
t.getLastError=function(){return A.getLastError()};
t.getPlayerType=function(){return A.getPlayerType()};
t.getCurrentVideoConfig=function(){return A.getConfig()};
t.loadNewVideoConfig=function(Q){A.loadNewVideoConfig(Q)};
t.isReady=function(){return A.isReady()}};
s7.prototype.isReady=function(){return this.g9Y};
s7.prototype.addEventListener=function(A,t){var f=this;this.isDisposed();var X=iCE(this,t);X&&(_.Zx(this.n0n,A)||this.cZ[A]||(t=WAk(this,A),this.p4a&&this.p4a(A,t)),this.fyq.subscribe(A,X),A==="onReady"&&this.isReady()&&setTimeout(function(){X(f.api)},0))};
s7.prototype.removeEventListener=function(A,t){this.isDisposed()||(t=iCE(this,t))&&this.fyq.unsubscribe(A,t)};
var iCE=function(A,t){var f=t;if(typeof t==="string"){if(A.xGM[t])return A.xGM[t];f=function(){var X=_.Hu.apply(0,arguments),Q=_.Ae(t);if(Q)try{Q.apply(_.Xb,X)}catch(q){throw X=new _.xj("PlayerProxy error when executing callback",{error:q}),X.level="ERROR",X;}};
A.xGM[t]=f}return f?f:null},WAk=function(A,t){var f=function(X){var Q=function(){A.isDisposed();
if(!A.isDisposed())try{A.fyq.publish(t,X!=null?X:void 0)}catch(G){var e=new _.xj("PlayerProxy error when creating global callback",{error:G.message,event:t,playerId:A.playerId,data:X,originalStack:G.stack,componentStack:G.componentStack});e.level="WARNING";throw e;}};
if(CFT(A,"web_player_publish_events_immediately"))Q();else{var q=setTimeout(function(){Q();_.VG.remove(A.rP9,String(q))},0);
_.VG.add(A.rP9,String(q),!0)}};
return A.cZ[t]=f};
s7.prototype.getPlayerType=function(){return this.lj9||(this.getPlayerElement()?"html5":null)};
s7.prototype.getLastError=function(){return this.lastError};
var Mg7=function(A){A.cancel();NpC(A);A.lj9=null;A.config&&(A.config.loaded=!1);var t=A.getPlayerElement();t&&(cNk(A)||!RKT(A)?A.s1=t:(t&&t.destroy&&t.destroy(),A.s1=null));A.targetElement&&_.x6(A.targetElement)};
s7.prototype.cancel=function(){this.yz4&&_.Iex(OC7(this),this.yz4);clearTimeout(this.cni);this.cr9=!1};
s7.prototype.disposeInternal=function(){Mg7(this);if(this.s1&&this.config&&this.s1.destroy)try{this.s1.destroy()}catch(t){var A=new _.xj("PlayerProxy error during disposal",{error:t});A.level="ERROR";throw A;}this.xGM=null;for(A in this.cZ)this.cZ.hasOwnProperty(A)&&delete this.cZ[A];this.lHP=this.config=this.api=null;delete this.targetElement;delete this.hv;_.DA.prototype.disposeInternal.call(this)};
var RKT=function(A){var t,f;A=(t=A.config)==null?void 0:(f=t.args)==null?void 0:f.fflags;return!!A&&A.indexOf("player_destroy_old_version=true")!==-1},OC7=function(A){return A.webPlayerContextConfig?A.webPlayerContextConfig.jsUrl:(A=A.config.assets)?A.js:""},hKE=function(A){return A.webPlayerContextConfig?A.webPlayerContextConfig.cssUrl:(A=A.config.assets)?A.css:""},CFT=function(A,t){if(A.webPlayerContextConfig)var f=A.webPlayerContextConfig.serializedExperimentFlags;
else{var X;if((X=A.config)==null?0:X.args)f=A.config.args.fflags}return(f||"").split("&").includes(t+"=true")},Tpk=function(A){for(var t={},f=_.U(Object.keys(A)),X=f.next();!X.done;X=f.next()){X=X.value;
var Q=A[X];t[X]=typeof Q==="object"?_.VG.clone(Q):Q}return t};var w3l={},gSx="player_uid_"+(Math.random()*1E9>>>0);var c7=function(A,t,f,X,Q,q){t=t===void 0?document.createElement("div"):t;this.webPlayerContextConfig=A;this.container=t;this.commandResolver=f;this.apiResolver=riz();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Qc;X||q?yNi(this):vXC(this);this.pendingPlayerResponse=X;this.pendingWatchNextResponse=Q;this.pendingPlayerVars=q;LAT(this)};
c7.prototype.loadVideoWithPlayerResponse=function(A,t,f){this.loadVideo(A,t,f)};
c7.prototype.loadVideoWithPlayerVars=function(A){return this.loadVideo(void 0,void 0,A)};
c7.prototype.destroy=function(A){if(A=_.we(document,A))A=gSx+"_"+_.gs(A),(A=w3l[A])&&A.dispose()};
var EXp=function(A,t){var f;_.l(function(X){if(X.nextAddress==1)return A.pendingWatchNextResponse=t,A.synchronousApi?(f=A.synchronousApi,X.jumpTo(2)):X.yield(A.api,3);X.nextAddress!=2&&(f=X.yieldResult);if(!pvb(A,f))return X.return();A.pendingWatchNextResponse&&(f.updateVideoData({raw_watch_next_response:A.pendingWatchNextResponse}),A.pendingWatchNextResponse=void 0);_.LO(X)})},pvb=function(A,t){var f;
if(!(t==null?0:(f=t.isReady)==null?0:f.call(t))){var X;_.K4(new _.xj("playerApi is falsey",{synchronousApi:A.synchronousApi,apiResolved:A.apiResolver.resolved,playerApiUndefined:t===void 0,playerApiNull:t===null,playerApiReady:(t==null?void 0:(X=t.isReady)==null?void 0:X.call(t))===!0,playerApiMethods:t?Object.keys(t):[]}));return!1}return!0},nXp=function(A,t){if(typeof A[t]==="function")return A[t]()},D6K=function(A){var t=window,f,X=(f=t.ytplayer)==null?void 0:f.bootstrapPlayerContainer;
if((f=X==null?void 0:X.firstElementChild)&&_.sY(f,"html5-video-player")){var Q,q,e=(Q=t.ytplayer)==null?void 0:(q=Q.bootstrapWebPlayerContextConfig)==null?void 0:q.contextId;Q=A.webPlayerContextConfig.contextId;if(e&&e===Q){X!==A.container&&(X=!1,nXp(f,"getPlayerState")===2&&(X=!0),A.container.appendChild(f),X||nXp(f,"playVideo"));var G;if((G=t.ytplayer)==null?0:G.bootstrapPlayerResponse)A.bootstrapPlayerResponse=t.ytplayer.bootstrapPlayerResponse}}},LAT=function(A){var t,f,X,Q,q;
_.l(function(e){if(e.nextAddress==1)return A.pageReadyOrDataAvailable?e.jumpTo(2):e.yield(A.pageReadyOrDataAvailableResolver.promise,2);if(e.nextAddress!=4)return!_.M("kevlar_player_unified_player_loading")||Vfb()&&oSb()?e.jumpTo(4):e.yield(a6x(),4);D6K(A);if(A.pendingPlayerResponse||A.pendingPlayerVars)t=K8x(A.pendingPlayerResponse,A.pendingWatchNextResponse,A.pendingPlayerVars),A.pendingPlayerResponse&&A.pendingPlayerResponse===A.bootstrapPlayerResponse&&(t.loaded=!0),A.bootstrapPlayerResponse=
void 0;f=k05(A.container,t,A.webPlayerContextConfig);((X=t)==null?0:X.loaded)&&A.pendingWatchNextResponse?(EXp(A,A.pendingWatchNextResponse),A.pendingPlayerResponse=void 0,A.pendingPlayerVars=void 0):FAT(A);Q=function(G){f.removeEventListener("onReady",Q);A.synchronousApi=G;A.apiResolver.resolve(G)};
f.addEventListener("onReady",Q);A.commandResolver!==void 0&&(q=A.commandResolver,f.addEventListener("innertubeCommand",function(G){q(G)}));
_.LO(e)})};
c7.prototype.loadVideo=function(A,t,f){var X=this,Q,q,e,G,N,z,T,O,c;return _.l(function(B){if(B.nextAddress==1)return X.pendingPlayerResponse=A,X.pendingWatchNextResponse=t,X.pendingPlayerVars=f,yNi(X),X.synchronousApi?(Q=X.synchronousApi,B.jumpTo(2)):B.yield(X.api,3);B.nextAddress!=2&&(Q=B.yieldResult);if(!pvb(X,Q))return B.return(new Promise(function(){}));
e=new Promise(function(h){q=h});
G=function(){var h=Q.getPlayerResponse();h&&(Q.removeEventListener("onVideoDataChange",G),q(h))};
Q.addEventListener("onVideoDataChange",G);if(X.pendingPlayerResponse||X.pendingPlayerVars)X.pendingPlayerResponse&&X.pendingPlayerResponse===X.bootstrapPlayerResponse?(q(X.pendingPlayerResponse),X.pendingWatchNextResponse&&EXp(X,X.pendingWatchNextResponse)):(N=K8x(X.pendingPlayerResponse,X.pendingWatchNextResponse,X.pendingPlayerVars),(c=(z=X.pendingPlayerResponse)==null?void 0:(T=z.playerConfig)==null?void 0:(O=T.playbackStartConfig)==null?void 0:O.startPaused)?Q.cueVideoByPlayerVars(N.args):Q.loadVideoByPlayerVars(N.args)),
FAT(X),X.bootstrapPlayerResponse=void 0;return B.return(e)})};
var vXC=function(A){if(document.readyState==="complete"||document.readyState==="interactive")yNi(A);else{var t=function(){document.removeEventListener("DOMContentLoaded",t);yNi(A)};
document.addEventListener("DOMContentLoaded",t)}},yNi=function(A){A.pageReadyOrDataAvailable=!0;
A.pageReadyOrDataAvailableResolver.resolve()},FAT=function(A){A.pendingPlayerResponse=void 0;
A.pendingWatchNextResponse=void 0;A.pendingPlayerVars=void 0};
_.PV.Object.defineProperties(c7.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var B7=function(A){oR.call(this,A===void 0?"document_active":A);var t=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(f){t.transition("document_disposed",{event:f})});
window.addEventListener("beforeunload",function(f){t.transition("document_disposed_preventable",{event:f})});
window.addEventListener("unload",function(f){t.transition("document_disposed",{event:f});t.hasRun=new Map})};
_.R(B7,oR);
B7.prototype.runPreventableDispose=function(A,t){if(!this.hasRun.get("document_disposed_preventable")){A(t==null?void 0:t.event);var f,X;if((t==null?0:(f=t.event)==null?0:f.defaultPrevented)||(t==null?0:(X=t.event)==null?0:X.returnValue)){t.event.returnValue||(t.event.returnValue=!0);t.event.defaultPrevented||t.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")};
B7.prototype.runDispose=function(A,t){this.hasRun.get("document_disposed")?this.transition("document_active"):(A(t==null?void 0:t.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
B7.prototype.runFlush=function(A,t){A(t==null?void 0:t.event);this.transition("document_active")};
B7.prototype.runActive=function(){};var MT=function(A){oR.call(this,A===void 0?"document_visibility_unknown":A);var t=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(f){document.visibilityState==="visible"?t.transition("document_visible",{event:f}):t.transition("document_hidden",
{event:f})});
_.M("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(f){t.transition("document_backgrounded",{event:f})}),window.addEventListener("focus",function(f){t.transition("document_foregrounded",{event:f})}))};
_.R(MT,oR);MT.prototype.runVisible=function(A,t){A(t==null?void 0:t.event);_.M("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
MT.prototype.runHidden=function(A,t){A(t==null?void 0:t.event);_.M("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
MT.prototype.runBackgrounded=function(A,t){A(t==null?void 0:t.event)};
MT.prototype.runForegrounded=function(A,t){A(t==null?void 0:t.event)};var C2=function(){this.teardownLifecycle=new B7;this.visibilityLifecycle=new MT};
C2.prototype.install=function(){var A=_.Hu.apply(0,arguments),t=this;A.forEach(function(f){t.teardownLifecycle.install(f)});
A.forEach(function(f){t.visibilityLifecycle.install(f)})};var hs=function(){C2.call(this);var A={};this.install((A.document_disposed={callback:this.abortSlisAndFlush},A));_.M("combine_ve_grafts")&&(A={},this.install((A.document_disposed={callback:this.flushInteractionLoggingAttachVes},A)));A={};this.install((A.flush_logs={callback:this.logFinalPayload},A));_.M("web_log_cfg_cee_ks")||_.jY(_.a6,Ipp)};
_.R(hs,C2);var AxT=function(){hs.loggingInstance||(hs.loggingInstance=new hs);return hs.loggingInstance};
hs.prototype.logFinalPayload=function(){if(_.M("web_fp_via_jspb")){var A=new YpT,t=_.Ws();t&&_.Dg(A,1,t);t=_.M("jspb_sparse_encoded_pivot")?new xB([{}]):new xB;_.Wu(t,380,VRC,A);bXg("finalPayload",t);_.M("web_fp_via_jspb_and_json")&&_.SY("finalPayload",{csn:_.Ws()})}else _.SY("finalPayload",{csn:_.Ws()})};
hs.prototype.abortSlisAndFlush=function(){ywl(O_);cX!=null&&cX.flush()};
hs.prototype.flushInteractionLoggingAttachVes=function(){KTb(_.er())};
var Ipp=function(){var A=_.ah("CLIENT_EXPERIMENT_EVENTS");if(A){var t=fw5();A=_.U(A);for(var f=A.next();!f.done;f=A.next())f=f.value,t(f)&&_.SY("genericClientExperimentEvent",{eventType:f});delete _.$k.CLIENT_EXPERIMENT_EVENTS}};var x6T={};
x6T.YtPlayerBehavior=[_.iC.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 A=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Qc;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;fVx(function(){A.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.g$(this,"pan-down"),_.M("kevlar_pinch_fullscreen")&&_.oF().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.M("kevlar_pinch_fullscreen")&&_.oF().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(A,t,f){var X=this;kE(this.useUnifiedPlayer_());if(this.mainAppPlayer_)kE(!1,"MainAppPlayer already created.");else{var Q=_.M("kevlar_player_container_query_killswitch")?this.$.container:_.sF(this.hostElement).querySelector("#container");this.mainAppPlayer_=new c7(this.getWebPlayerContextConfig_(),Q,function(q){return _.Qx(q,X.hostElement)},A,t,f);
this.mainAppPlayer_.api.then(function(q){X.player_=q;X.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&wN8.resolve(q)})}},
loadVideoWithPlayerResponse:function(A,t){var f=this;if(this.useUnifiedPlayer_()){var X=this.watchNextData,Q,q=(Q=A.videoDetails)==null?void 0:Q.videoId,e,G,N;(Q=(e=this.watchNextData)==null?void 0:(G=e.currentVideoEndpoint)==null?void 0:(N=G.watchEndpoint)==null?void 0:N.videoId)&&q!=Q&&(X=void 0,_.M("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(A,X,t):this.createMainAppPlayer_(A,X,t);this.mainAppPlayer_.api.then(function(){_.s9(f.hostElement,
"yt-player-updated")})}else this.update(I6p(A,t))},
loadVideoWithPlayerVars:function(A){var t=this;this.useUnifiedPlayer_()?(_.M("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(A):this.createMainAppPlayer_(void 0,void 0,A),this.mainAppPlayer_.api.then(function(){_.s9(t.hostElement,"yt-player-updated")})):this.update({args:A})},
update:function(A){var t=this;if(this.useUnifiedPlayer_())kE(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(A);var f=$hb(A.args);f&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==f&&Object.assign(A.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(A).then(function(X){_.s9(t.hostElement,"yt-player-updated",_.M("kevlar_player_updated_obsolete_player_killswitch")?
X:void 0)})}_.ai(new _.xj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(t.getPlayerPromise(),2);f=X.yieldResult;if(!f)throw Error("wh");A&&t.updatePlayerPlaylist_(A);_.LO(X)})},
acquireApi_:function(A){var t=this;if(this.useUnifiedPlayer_())kE(!1,"Invalid method call in kevlar_unified_player.");else return _.a6.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(kE(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(f){t.shouldAutoplay_(A)?f.loadVideoByPlayerVars(A.args):f.cueVideoByPlayerVars(A.args)})):this.initPlayerPromise_=this.initPlayerContainer_(A),this.initPlayerPromise_},
initPlayerContainer_:function(A){var t=this;if(this.useUnifiedPlayer_())kE(!1,"Invalid method call in kevlar_unified_player.");else return kE(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.K4(Error("xh")),kE(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.M("kevlar_player_container_query_killswitch")?this.$.container:_.sF(this.hostElement).querySelector("#container"),a6x().then(function(){var f=t.initPlayer_(A);t.playerResolver_.resolve(f);
return f})},
onPlayerReady_:function(A,t){this.useUnifiedPlayer_()?kE(!1,"Invalid method call in kevlar_unified_player."):(A.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&wN8.resolve(A),t(A))},
maybeCallApiMethodOnElement_:function(A,t){if(typeof A[t]==="function")return A[t]()},
maybeAdoptBootstrapPlayer_:function(){var A=window,t,f=(t=A.ytplayer)==null?void 0:t.bootstrapPlayerContainer;if((t=f==null?void 0:f.firstElementChild)&&t.classList.contains("html5-video-player")){var X,Q,q=(X=A.ytplayer)==null?void 0:(Q=X.bootstrapWebPlayerContextConfig)==null?void 0:Q.contextId;X=this.getWebPlayerContextConfig_().contextId;if(q&&q===X){f!==this.playerContainer_&&(f=!1,this.maybeCallApiMethodOnElement_(t,"getPlayerState")===2&&(f=!0),this.playerContainer_.appendChild(t),f||this.maybeCallApiMethodOnElement_(t,
"playVideo"));var e;if((e=A.ytplayer)==null?0:e.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=A.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(A){var t=this;if(this.useUnifiedPlayer_())kE(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(f){t.maybeAdoptBootstrapPlayer_();var X=A?xkg(A):void 0;X&&X==t.bootstrapPlayerResponse_&&(A.loaded=!0);X=t.playerContainer_;var Q=t.getWebPlayerContextConfig_();X=k05(X,A,Q);t.player_=X;t.onPlayerReadyEvent_=t.onPlayerReady_.bind(t,t.player_,f);t.player_.addEventListener("onReady",t.onPlayerReadyEvent_);t.player_.addEventListener("innertubeCommand",
t.onPlayerInnerTubeCommand_.bind(t))})},
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(A){A.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(A){A.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var A=_.Px().resolve(_.HO).getCurrentPage();A&&A.getScrollTop()<=0?_.g$(this,"pan-down"):_.g$(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(A){A.isFullscreen()||A.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(A){A.isFullscreen()&&A.toggleFullscreen()})},
updatePlayerPlaylist_:function(A){var t=this,f,X,Q;return _.l(function(q){if(q.nextAddress==1)return f=_.Px().resolve(_.z7(_.zT)),X=!!(f&&f.playlistComponent&&f.playlistComponent.loopOn),q.yield(t.getPlayerPromise(),2);var e=Q=q.yieldResult,G=e.updatePlaylist,N=[];if(_.M("kevlar_player_playlist_use_local_index")){var z,T;var O=(T=(z=A.localCurrentIndex)!=null?z:A.currentIndex)!=null?T:0}else{var c;O=(c=A.currentIndex)!=null?c:0}if(A.contents)for(z=0;z<A.contents.length;z++)if((T=A.contents[z])&&T.playlistPanelVideoRenderer)if(dTu(T)){T=
T.playlistPanelVideoRenderer;c="";T.shortBylineText&&(c=_.dF(T.shortBylineText));var B="";T.title?B=_.dF(T.title):T.unplayableText&&(B=_.dF(T.unplayableText));N.push({author:c,title:B,encrypted_id:T.videoId})}else z<O&&--O;G.call(e,{index:O,list:A.playlistId?A.playlistId:"",loop:X,playlist_title:A.title,playlist_length:N.length,video:N,fetch:0,external_list:"1",title:A.title?A.title:"",playlist_author:A.ownerName?_.dF(A.ownerName):void 0});_.LO(q)})},
focusOnPlayer:function(){_.us(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var A=this.playerContainer_.querySelector(".html5-video-player");A&&(_.Rd(_.Px().resolve(_.PO)),A.focus())}})},
preparePlayer:function(){var A=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(t){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")t();else{var f=function(){document.removeEventListener("DOMContentLoaded",f);t()};
document.addEventListener("DOMContentLoaded",f)}})).then(function(){return a6x()}).then(function(){A.initPlayerPromise_||A.preparePlayerJobId_||(A.preparePlayerJobId_=_.jY(_.a6,function(){A.initPlayerPromise_||(A.initPlayerPromise_=A.initPlayerContainer_())}))}):_.ai(new _.xj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(A){this.useUnifiedPlayer_()?kE(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(A)||(A.args.autoplay="0")},
shouldAutoplay_:function(A){if(this.useUnifiedPlayer_())kE(!1,"Invalid method call in kevlar_unified_player.");else{var t=this.get("args.el",A);return t&&t!="detailpage"&&this.isMiniplayerActive_()||t&&(t=="sponsorshipsoffer"||t=="handlesclaiming")&&this.get("args.autoplay",A)=="0"?!1:(A=xkg(A))&&this.get("playerConfig.playbackStartConfig.startPaused",A)?!1:!0}},
isMiniplayerActive_:function(){return _.Px().resolve(_.DS).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var A=this.getPlayer();if(A){var t=A.getPlayerState();_.M("kevlar_player_check_ad_state_on_stop")&&(t=A.getPlayerState(A.getPresentingPlayerType()));t!=5&&A.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(A,t,f){f=f===void 0?!1:f;var X=this,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1)return t||(t=X.hostElement),Q=X.useUnifiedPlayer_()?!!X.mainAppPlayer_:!!X.initPlayerPromise_,Q?N.yield(X.getPlayerPromise(),2):(f?A.insertBefore(t,A.firstChild):A.appendChild(t),N.return());q=N.yieldResult;e=q.getPlayerState(q.getPresentingPlayerType());G=!1;if(e==-1||e==1||e==3)G=!0;f?A.insertBefore(t,A.firstChild):A.appendChild(t);G&&q.playVideo();q.setSize(NaN,NaN);_.LO(N)})},
watchNextDataChanged_:function(A){var t=this;A&&(this.useUnifiedPlayer_()&&_.M("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&EXp(this.mainAppPlayer_,A):this.getPlayerPromise().then(function(f){f.updateVideoData(t.computeWatchNextPlayerVars_(A))}))},
computeWatchNextPlayerVars_:function(A){if(this.useUnifiedPlayer_()&&_.M("kevlar_unified_player_update_watch_next_killswitch"))kE(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:A}},
maybeSendAbandonmentPing_:function(){var A=this.getPlayer();A&&A.getPlayerState()!=5&&A.getPlayerState()!=0&&A.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var A=_.ah("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(A=Object.assign({},A),A.rootElementId=this.playerId);A.serializedExperimentIds&&A.serializedExperimentFlags||_.K4(Error("yh"));return A},
hasWebPlayerContextConfig_:function(){return!!_.ah("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(A){this.useUnifiedPlayer_()?kE(!1,"Invalid method call in kevlar_unified_player."):_.Qx(A,this.hostElement)},
useUnifiedPlayer_:function(){var A=_.M("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.M("kevlar_unified_player")||A}}];var jmp={};jmp.YtPlaylistPanelBehavior=[_.g.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(A){A=A.detail;if(A.actions.loop!=void 0||A.actions["yt-icons:loop"]!=void 0)this.loopOn=A.actions.loop||A.actions["yt-icons:loop"];if(A.actions.shuffle!=void 0||A.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=A.actions.shuffle||A.actions["yt-icons:shuffle"]},
setMenuData_:function(A){if(!A||!A.playlistButtons||A.isInfinite)return null;for(var t=A.playlistButtons.menuRenderer.topLevelButtons,f=t.length,X=0;X<f;X++)if(t[X].toggleButtonRenderer){var Q=t[X].toggleButtonRenderer;Q.defaultIcon.iconType=="LOOP"&&this.loopOn?Q.isToggled=this.loopOn:Q.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Q.isToggled=this.shuffleOn)}return A.playlistButtons}}];_.mu={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(A,t,f){var X=this.getClickTarget_(t);if(X&&this.isClickAllowed_(X)){t.preventDefault();A=(0,_.VG.unsafeClone)(A);var Q=this.getContainerBoundingRect();t=this.getRelativeClickXy_(t,Q);this.expandEndpointUrlMacros_(A,{NX:t[0],NY:t[1],NB:X.code});f&&this.truncateWebCommendMetadataUrl_(A);_.s9(this.hostElement,"yt-navigate",{endpoint:A})}},
getClickTarget_:function(A){if(!this.clickTargetMap)return null;A=_.Z2(A)||[];A=_.U(A);for(var t=A.next();!t.done;t=A.next()){t=t.value;if(t===_.sF(this.hostElement).querySelector("#menu"))break;if(t=this.clickTargetMap.get(t.id))return t}return null},
getRelativeClickXy_:function(A,t){var f=Math.round(A.detail.x-t.left);A=Math.round(A.detail.y-t.top);return f<0||A<0?[null,null]:[f,A]},
getContainerBoundingRect:function(){return _.sF(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(A,t){for(var f=_.U(A.loggingUrls||[]),X=f.next();!X.done;X=f.next())X=X.value,X.baseUrl&&(X.baseUrl=uNz(X.baseUrl,t));A.urlEndpoint&&A.urlEndpoint.url&&(A.urlEndpoint.url=uNz(A.urlEndpoint.url,t));A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url&&(A.commandMetadata.webCommandMetadata.url=uNz(A.commandMetadata.webCommandMetadata.url,t))},
truncateWebCommendMetadataUrl_:function(A){if(A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url){var t=A.commandMetadata.webCommandMetadata.url,f=t.indexOf("&pp=");if(f>0){var X=t.indexOf("&",f+1);A.commandMetadata.webCommandMetadata.url=X>f&&X<t.length?t.slice(0,f)+t.slice(X):t.slice(0,f)}}},
configureClickTargets:function(A,t,f){this.containerId=A;this.clickTargetMap=new Map;A=_.U(t);for(t=A.next();!t.done;t=A.next())if(t=t.value,t.location){var X=f.get(t.location);X&&(_.rH(_.sF(this.hostElement).querySelector("#"+X),"yt-simple-endpoint",this.isClickAllowed_(t)),this.clickTargetMap.set(X,t))}},
isClickAllowed_:function(A){return A.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.bC={};
_.bC.YtLazyListBehavior=[_.BS.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 A=(this.constructor.generatedFrom||this).observers;A||(A=[]);A.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
A}},
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 A=this.renderElementsOutsideVisibleArea_;A&&(x7S(A,4),A.processSignal())},
deepLazyListObserver_:function(A){var t=this;if(A){var f=A.value||[];if(this.itemsPath==A.path){var X=this.nonDeferredItemCount;A=0;X>-1&&f.length>X&&(A=_.ah("REMAINING_DOVA_DEFERRED_CHUNKS",-1));A>0?(X>0&&(X=f.slice(0,X),this.setInitialItemsOnDataChanged(X)),(X=this.renderElementsOutsideVisibleArea_)?X.cancel():(X=this.renderElementsOutsideVisibleArea_=new _.Cx(2,"eocs"),_.PPx(window,"scroll",function(){return t.renderDeferredElements()})),_.ha(X,function(){t.setInitialItemsOnDataChanged(f)}),_.H5("REMAINING_DOVA_DEFERRED_CHUNKS",
A-1)):this.setInitialItemsOnDataChanged(f)}else if(this.itemsPath+".splices"==A.path)this.onItemsUpdated_(f);
else X="shownItems"+A.path.substr(this.itemsPath.length),this.useSignals&&X==="shownItems.length"||this.notifyPath(X,A.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(A){A&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(A),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(A){A=A.indexSplices;for(var t=0,f=A.length;t<f;t++){var X=A[t];if(X.index<this.shownCount&&(X.removed&&this.splice("shownItems",X.index,X.removed.length),X.addedCount)){var Q=X.object.slice(X.index,X.index+X.addedCount);X=["shownItems",X.index,0];X.push.apply(X,Q);this.splice.apply(this,X)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(A){this.cancelPendingTasks_();A||(A=[]);this.items_=A;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&&(_.Ka("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.us(this,this.tryRenderChunk_)))},
fillRange_:function(A,t){this.canShowMore&&this.items_&&(A=this.items_.slice(A,t),A.unshift("shownItems"),this.push.apply(this,A),this.shownCount=t,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var A=this;this.canShowMore&&_.Ig(this,"renderChunk",function(){A.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Ka("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.c1(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var A=this.renderElementsOutsideVisibleArea_;A&&(A.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var A=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(A-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=A;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(A){return Math.ceil(1E3/A)},
onCanShowMoreUpdated_:function(A){this.data&&this.items_!==null&&(A?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(A){!this.shouldUseTaskManager()&&this.data&&(!A&&this.canShowMore?(_.BZb(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):A&&this.partiallyRenderedItems_.has(this.items_)&&(_.M("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var v7;_.W7={};
v7=function(){var A=_.uo.apply(this,arguments)||this;A.atStart=!0;A.atEnd=!0;A.startIndex=0;A.endIndex=0;A.scrollCount=0;A.initialStartIndex=0;A.disableScrollEventListener=!1;A.useFloorScrolling=!1;A.isSearch=!1;A.dragging=!1;A.dragMouseStart=0;A.dragOffsetStart=0;A.disableWheelScroll=!1;A.centerListItems=!1;A.offset=0;A.minComponentWidth=0;A.marginWidthRight=0;A.marginWidthLeft=0;A.setButtonsStateRequested=!1;A.itemsVisibilityObserver=null;A.fullyVisibleItemsIndices=[];A.JSC$14590_onWheelScroll=function(t){if(A.isSearch&&
!A.disableWheelScroll&&_.M("desktop_enable_dmpanel_wheel_scroll")){var f=t.shiftKey?Math.abs(t.deltaY)>Math.abs(t.deltaX)?t.deltaY:t.deltaX:t.deltaX;f!==0&&(t.preventDefault(),A.ytLazyListBehavior.fillRemainingListItems(),A.offset+=f,yn(A),A.reposition_())}};
A.onPointerDown=function(t){YMK(A)&&(A.dragMouseStart=t.clientX,A.dragOffsetStart=A.offset,A.dragging=!0)};
A.onPointerMove=function(t){YMK(A)&&A.dragging&&(A.ytLazyListBehavior.fillRemainingListItems(),A.offset=A.dragOffsetStart-(t.clientX-A.dragMouseStart),yn(A),A.reposition_())};
A.onPointerUp=function(){YMK(A)&&(A.dragging=!1)};
return A};
_.R(v7,_.uo);var Vgb=function(A){var t=_.sF(A.hostElement).querySelector("#items").children;if(!t)return 0;var f=0;A=_.U(A.fullyVisibleItemsIndices);for(var X=A.next();!X.done;X=A.next())f+=t[X.value].clientWidth;return f},YMK=function(A){return A.isSearch&&_.M("desktop_enable_dmpanel_click_drag_scroll")};
v7.prototype.created=function(){this.cachedViewportWidth=_.ah("initialInnerWidth")||window.innerWidth;this.JSC$14590_cachedViewportHeight=_.ah("initialInnerHeight")||window.innerHeight;_.ah("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.H5("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
v7.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.M("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();ZCT(this)};
v7.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.M("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var A;(A=this.itemsVisibilityObserver)==null||A.disconnect();this.itemsVisibilityObserver=null;var t;(t=this.itemsObserver)==null||t.disconnect()};
var ZCT=function(A){var t=_.sF(A.hostElement).querySelector("#scroll-container");if(t){if(!A.itemsVisibilityObserver){var f=window.getComputedStyle(t).marginRight;A.itemsVisibilityObserver=new IntersectionObserver(function(X){oXp(A,X)},{root:t,
rootMargin:f,threshold:.98})}if(t=_.sF(A.hostElement).querySelector("#items"))A.itemsObserver=new zpf(t,function(X){d6E(A,X)})}},d6E=function(A,t){SMl(A)&&(Array.from(t.addedNodes).filter(function(f){return f.nodeType===Node.ELEMENT_NODE}).forEach(function(f){A.itemsVisibilityObserver&&A.itemsVisibilityObserver.observe(f)}),Array.from(t.removedNodes).filter(function(f){return f.nodeType===Node.ELEMENT_NODE}).forEach(function(f){A.itemsVisibilityObserver&&A.itemsVisibilityObserver.unobserve(f)}))},
oXp=function(A,t){var f=new Set(A.fullyVisibleItemsIndices);
t=_.U(t);for(var X=t.next();!X.done;X=t.next()){X=X.value;var Q=X.target.parentElement;Q?(Q=Array.from(Q.children).indexOf(X.target),X.isIntersecting?f.add(Q):f.has(Q)&&f.delete(Q)):_.K4(new _.xj("Parent element not found",X.target.nodeName))}A.fullyVisibleItemsIndices=Array.from(f).sort(function(q,e){return q-e});
f.size===0?_.K4(new _.xj("No visible entries in horizontal list")):(A.startIndex=A.fullyVisibleItemsIndices[0],A.endIndex=A.fullyVisibleItemsIndices[A.fullyVisibleItemsIndices.length-1])},SMl=function(A){A.data?A=(A=A.data)&&A.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===A.itemSizeConstraint:!1:A=!1;
return A};
_.J=v7.prototype;_.J.addScrollEventListeners=function(){var A=_.sF(this.hostElement).querySelector("#scroll-container");A.style.touchAction="pan-y";A.addEventListener("wheel",this.JSC$14590_onWheelScroll);A.addEventListener("pointerdown",this.onPointerDown);A.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.J.removeScrollEventListeners=function(){var A=_.sF(this.hostElement).querySelector("#scroll-container");A.removeEventListener("wheel",this.JSC$14590_onWheelScroll);A.removeEventListener("pointerdown",this.onPointerDown);A.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.J.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.us(this,this.setStartIndex,[this.initialStartIndex])};
_.J.reposition_=function(){var A=_.ah("HTML_DIR")=="rtl"?"":"-",t=_.sF(this.hostElement).querySelector("#items");t&&(t.style.transform="translateX("+A+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.J.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.us(this,this.setButtonsState_))};
_.J.setButtonsState_=function(){this.setButtonsStateRequested=!1;var A=_.sF(this.hostElement).querySelector("#items").firstElementChild;if(A){this.minComponentWidth||(this.minComponentWidth=$6p(this,A));A=_.sF(this.hostElement).querySelector("#scroll-container").clientWidth;var t=_.sF(this.hostElement).querySelector("#items");t=_.M("kevlar_horizontal_list_scroll_width_killswitch")?t.clientWidth:t.scrollWidth;var f=this.get(this.ytLazyListBehavior.itemsPath,this);if(f){var X=Math.round(A/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+X,f.length)-1)}this.ytLazyListBehavior.canShowMore?t+this.minComponentWidth>=this.offset+A&&(this.atEnd=!1):this.atEnd=this.offset+A>=t-20?!0:!1;this.atStart=this.offset<=20}};
_.J.setStartIndex=function(A){if(!this.minComponentWidth){var t=_.sF(this.hostElement).querySelector("#items").firstElementChild;if(!t)return;this.minComponentWidth=$6p(this,t)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*A;yn(this);this.reposition_()};
_.J.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.RY();var A=_.sF(this.hostElement).querySelector("#scroll-container").clientWidth;_.M("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=$6p(this,_.sF(this.hostElement).querySelector("#items").firstElementChild));A=this.useFloorScrolling?Math.floor(A/this.minComponentWidth)||1:Math.round(A/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&HC8(this);this.offset+=SMl(this)?
Vgb(this):A*this.minComponentWidth;yn(this);this.reposition_();this.scrollCount++};
_.J.prevClick_=function(){var A=_.sF(this.hostElement).querySelector("#scroll-container").clientWidth;A=this.useFloorScrolling?Math.floor(A/this.minComponentWidth)||1:Math.round(A/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=SMl(this)?Vgb(this):this.minComponentWidth*this.scrollCount-1):this.offset-=SMl(this)?Vgb(this):A*this.minComponentWidth;this.centerListItems&&HC8(this);yn(this);this.reposition_()};
_.J.onIronResize_=function(){this.resizeSupportEnabled&&_.us(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.J.onItemsTransitionEnd_=function(A){_.oO(A)===_.sF(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.J.onChildElementFocus_=function(A){A=A.target.closest("#items > *");var t=_.sF(this.hostElement).querySelector("#scroll-container");if(t.contains(A)){if(_.M("web_horizontal_list_behavior_focus_killswitch"))if(A.offsetLeft<this.offset)this.offset=Math.abs(A.offsetLeft)<A.clientWidth?0:A.offsetLeft;else if(A.offsetLeft+A.clientWidth>this.offset+t.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.RY(),this.offset=A.offsetLeft+A.clientWidth-t.clientWidth;else return;else{var f=_.sF(this.hostElement).querySelector("#items"),
X=_.ah("HTML_DIR")==="rtl",Q=X?f.clientWidth-A.offsetLeft:A.offsetLeft;f=X?f.clientWidth-(A.offsetLeft+A.clientWidth):A.offsetLeft+A.clientWidth;var q=X?Q>this.offset+t.clientWidth:Q<this.offset,e=X?f<this.offset:f>this.offset+t.clientWidth,G=X?q:e;if(X?e:q)t=X?f:Q,this.offset=Math.abs(t)<A.clientWidth?0:t;else if(G)this.ytLazyListBehavior.fillRemainingListItems(),_.RY(),this.offset=(X?Q:f)-t.clientWidth;else return}yn(this);this.reposition_()}};
_.J.observeShownItems_=function(){this.reset()};
_.J.checkComponentWidthResize=function(){var A=_.sF(this.hostElement).querySelector("#items").firstElementChild;A&&(A=$6p(this,A),this.centerListItems||A!==this.minComponentWidth)&&(this.minComponentWidth=A,this.offset=A*this.scrollCount,this.centerListItems&&HC8(this),yn(this),this.reposition_())};
var $6p=function(A,t){var f=window.getComputedStyle(t).marginRight;f=Math.floor(Number(f.replace("px","")));var X=window.getComputedStyle(t).marginLeft;X=Math.floor(Number(X.replace("px","")));A.centerListItems&&!A.marginWidthRight&&(A.marginWidthRight=f,A.marginWidthLeft=X);return A.resizeSupportEnabled?t.getBoundingClientRect().width+f:t.offsetWidth+f},yn=function(A){var t=_.sF(A.hostElement).querySelector("#scroll-container").clientWidth,f=_.sF(A.hostElement).querySelector("#items").clientWidth;
A.offset<0?A.offset=0:A.offset+t>=f&&(A.offset=f-t)},HC8=function(A){A.offset-=(_.sF(A.hostElement).querySelector("#scroll-container").clientWidth+A.marginWidthRight-A.minComponentWidth)/2-A.marginWidthLeft};
_.PV.Object.defineProperties(v7.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var A=_.ah("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(A==-1)A=this.JSC$14590_cachedViewportHeight,A=A>1320?5:A>1020?4:A>730?3:A>430?2:1;else if(A==0)return 0;_.H5("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",A-1);A=_.ah("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(A>-1)return A;A=this.cachedViewportWidth;A=A>1600?6:A>1400?5:A>1300?4:A>1090?5:A>870?4:A>660?3:2;_.H5("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
A);return A},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.M("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
v7.prototype.observeShownItems_=v7.prototype.observeShownItems_;v7.prototype.onChildElementFocus_=v7.prototype.onChildElementFocus_;v7.prototype.onItemsTransitionEnd_=v7.prototype.onItemsTransitionEnd_;v7.prototype.onIronResize_=v7.prototype.onIronResize_;v7.prototype.prevClick_=v7.prototype.prevClick_;v7.prototype.nextClick_=v7.prototype.nextClick_;v7.prototype.setButtonsState_=v7.prototype.setButtonsState_;v7.prototype.requestButtonsStateUpdate_=v7.prototype.requestButtonsStateUpdate_;
v7.prototype.reposition_=v7.prototype.reposition_;v7.prototype.reset=v7.prototype.reset;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.bC.YtLazyListBehavior),_.H("design:type",Object)],v7.prototype,"ytLazyListBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],v7.prototype,"atStart",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],v7.prototype,"atEnd",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"startIndex",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"endIndex",void 0);_.V([_.n({value:6}),_.H("design:type",Number)],v7.prototype,"initialCount",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"scrollCount",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"initialStartIndex",void 0);
_.V([_.n(),_.H("design:type",Object)],v7.prototype,"disableScrollEventListener",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"supportComponentResize",void 0);_.V([_.n({value:function(){var A=this;return function(){return A.prevClick_()}}}),
_.H("design:type",Function)],v7.prototype,"boundPrevClick",void 0);_.V([_.n({value:function(){var A=this;return function(){return A.nextClick_()}}}),
_.H("design:type",Function)],v7.prototype,"boundNextClick",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"useFloorScrolling",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"isSearch",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"dragging",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"dragMouseStart",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"dragOffsetStart",void 0);
_.V([_.n(),_.H("design:type",Object)],v7.prototype,"disableWheelScroll",void 0);_.V([_.n(),_.H("design:type",Object)],v7.prototype,"centerListItems",void 0);_.V([_.UQ("iron-resize"),_.ev("guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],v7.prototype,"onIronResize_",null);_.V([_.UQ("transitionend"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],v7.prototype,"onItemsTransitionEnd_",null);
_.V([_.UQ("focusin"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],v7.prototype,"onChildElementFocus_",null);_.V([_.ev("shownItems"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],v7.prototype,"observeShownItems_",null);_.V([_.zh()],v7);_.W7.YtdHorizontalListBehavior=[];_.W7.YtdHorizontalListBehavior.push(_.K9,_.g.YtRendererBehavior,_.bC.YtLazyListBehavior,_.NT.YtdGuideStateAwareBehavior,v7.prototype);var Q5s=["APP_STATE","PI"];var L2,p2=function(A){this.hostElement=A},EW=function(A,t){if(t&&(ePl(t.viewableCommands)||ePl(t.endOfSessionCommands))){var f=lVx(t.viewableCommands);
t=lVx(t.endOfSessionCommands);if(!L2){var X=_.cx("custom_active_view_tos_timeout_ms");L2=X>0&&X!==36E5?new DCb(Geq(),X):new DCb(Geq())}I5q(L2,A.hostElement);xCu(L2,A.hostElement,f,t)}},n2=function(A){L2&&I5q(L2,A.hostElement)};var apK=_.dS(["about:blank"]),KAb={pushState:window.history.pushState,replaceState:window.history.replaceState};var Dl=function(A){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=A;this.internalPushState=A.pushState.bind(A);this.internalReplaceState=A.replaceState.bind(A)};
Dl.prototype.init=function(){this.initialized=!0};
Dl.prototype.pushState=function(A,t){this.initialized||this.init();this.internalPushState&&this.internalPushState(A,"",t)};
Dl.prototype.replaceState=function(A,t){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(A,"",t)};
Dl.prototype.getState=function(){return this.history&&this.history.state};var gXi=function(A){var t=function(){var f=A.apply(this,arguments)||this;f.boundHistoryPushState=!1;f.boundHistoryReplaceState=!1;f.debugInfo={};return f};
_.R(t,A);t.prototype.init=function(){var f=_.yT("IFRAME");_.rW(f,_.OP(apK));f.sandbox="allow-same-origin";f.style.display="none";this.iframe=f;document.body.appendChild(f);this.bindHistoryStateFunctions();A.prototype.init.call(this)};
t.prototype.bindHistoryStateFunctions=function(){var f=this,X=[],Q;this.iframe&&((Q=this.iframe.contentWindow)==null?0:Q.history)&&(Q=this.iframe.contentWindow.history)&&(X.push(Q),Object.getPrototypeOf(Q)&&X.push(Object.getPrototypeOf(Q)));window.history&&X.push(window.history);Q=window.history;Object.getPrototypeOf(Q)&&X.push(Object.getPrototypeOf(Q));X.push(KAb);Q=function(e){for(var G=null,N=0;N<X.length;N++){var z=X[N][e];if(typeof z==="function"){G=z.bind(window.history);f.debugInfo[e]=N;break}}return G};
if(!this.boundHistoryReplaceState){var q=Q("replaceState");q&&(this.internalReplaceState=q,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Q=Q("pushState"))&&(this.internalPushState=Q,this.boundHistoryPushState=!0)};
return t}(Dl),wvp=function(){return gXi.call(this,window.history)||this};
_.R(wvp,gXi);wvp.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Ff=function(A){this.browserHistory=A;this.initialized=!1};
Ff.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Ff.prototype.pushState=function(A,t){this.initialized||this.init();this.browserHistory.pushState(A,t)};
Ff.prototype.replaceState=function(A,t){this.initialized||this.init();this.browserHistory.replaceState(A,t)};
Ff.prototype.handlePopstate=function(A){return A.state};_.smK=function(A,t,f,X,Q){this.endpoint=A;this.forward=t;this.historyEntry=f;this.JSC$30734_savedComponentState=X;this.legacyBorder=Q===void 0?!1:Q};var kpb=function(A,t){this.rootData=A;this.scrollTop=t};_.Id=new _.eh("EPHEMERAL_STORE_TOKEN");_.xy=function(A){this.data=Object.assign({},A);var t;(t=this.data.innertubeResponse)==null||delete t.frameworkUpdates};
_.xy.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.OJ)()};
_.wP=function(A){return Object.assign({},A.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var rNK=function(){this.maxSize=100;this.timeToDataCache=new Map};
rNK.prototype.get=function(A){var t=this.timeToDataCache.get(A);t&&(this.timeToDataCache.delete(A),this.timeToDataCache.set(A,t));if(t&&t.rootData&&(_.M("web_use_response_store_for_history_cache")||_.M("mweb_use_new_history_manager"))){var f=_.Px().resolve(_.Id),X=ACi(t),Q=!!X;if(X){if(X.content){var q=jk(f,X.content);Q&&q?t.rootData.response=_.wP(q):Q=!1}X.player&&(q=jk(f,X.player),Q&&q?t.rootData.playerResponse=_.wP(q):Q=!1);X.reelSequence&&(f=jk(f,X.reelSequence),Q&&f?t.rootData.reelWatchSequenceResponse=
_.wP(f):Q=!1)}Q||(this.timeToDataCache.delete(A),t=void 0)}return t};
rNK.prototype.set=function(A,t){if(t.rootData&&(_.M("web_use_response_store_for_history_cache")||_.M("mweb_use_new_history_manager"))){var f=ACi(t),X=Object.assign({},t.rootData);f&&(f.content&&t.rootData.response&&(tEK(this,f.content,t.rootData.response),X.response=null),f.player&&t.rootData.playerResponse&&(tEK(this,f.player,t.rootData.playerResponse),X.playerResponse=null),f.reelSequence&&t.rootData.reelWatchSequenceResponse&&(tEK(this,f.reelSequence,t.rootData.reelWatchSequenceResponse),X.reelWatchSequenceResponse=
null));t=new kpb(X,t.scrollTop)}this.timeToDataCache.has(A)?this.timeToDataCache.delete(A):this.timeToDataCache.size>=this.maxSize&&(f=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(f.value));this.maxSize!==0&&this.timeToDataCache.set(A,t)};
rNK.prototype.clear=function(){this.timeToDataCache.clear()};
var ACi=function(A){var t=_.Px().resolve(_.z7(_.Cs)),f;if((f=A.rootData)==null?0:f.endpoint)return t==null?void 0:vTp(t,A.rootData.endpoint);var X;_.K4(new _.xj("History snapshot response data does not contain endpoint",(X=A.rootData)==null?void 0:X.url));return null},tEK=function(A,t,f){if(A.maxSize>0){var X;
(A=(X=f.responseContext)==null?void 0:X.maxAgeSeconds)&&Number(A)>0&&(X=_.Px().resolve(_.Id),f=tE(f,A),X.put(t,new _.xy(f)))}};var fEl=function(A,t,f){this.endpoint=t;this.JSC$30740_savedComponentState=f===void 0?null:f;this.entryTime=A};var zPT=1;var Yy=function(A){var t=function(){var f=A.apply(this,[].concat(_.YV(_.Hu.apply(0,arguments))))||this;f.historyEntryTime=0;f.historySnapshotCache=f.createHistoryCache();return f};
_.R(t,A);t.prototype.createHistoryCache=function(){return new rNK};
t.prototype.saveAndReplace=function(f,X,Q){var q=window.location.href;var e=e===void 0?{}:e;var G=(G=this.browserHistory.getState())&&G.entryTime?G.entryTime:P3x();f=this.createNewHistoryEntry(f,e,G);this.saveSnapshot(G,X,Q);this.replaceState(f,q||window.location.href)};
t.prototype.saveAndPush=function(f,X,Q,q,e){e=e===void 0?{}:e;this.saveSnapshot(this.historyEntryTime,Q,q);Q=this.historySnapshotCache;q=this.historyEntryTime;var G=Q.timeToDataCache.keys();G=_.U(G);for(var N=G.next();!N.done;N=G.next())N=N.value,N>q&&Q.timeToDataCache.delete(N);X=this.createNewHistoryEntry(X,e);this.pushState(X,f)};
t.prototype.saveSnapshot=function(f,X,Q){this.historySnapshotCache.set(f,new kpb(X,Q))};
t.prototype.createNewHistoryEntry=function(f,X,Q){Q=Q===void 0?P3x():Q;return new fEl(Q,f,X)};
t.prototype.handlePopstate=function(f){var X=A.prototype.handlePopstate.call(this,f),Q=null,q=null,e=!1,G=null;X&&X.entryTime&&(G=this.historySnapshotCache.get(X.entryTime)||null,e=X.entryTime>this.historyEntryTime,this.historyEntryTime=X.entryTime,Q=X.endpoint,q=X.JSC$30740_savedComponentState);this.handleHistoryCacheLoad(new _.smK(Q,e,G,q),f);return X};
t.prototype.pushState=function(f,X){Number(f==null?void 0:f.entryTime)>=0&&(this.historyEntryTime=f.entryTime);A.prototype.pushState.call(this,f,X)};
t.prototype.replaceState=function(f,X){Number(f==null?void 0:f.entryTime)>=0&&(this.historyEntryTime=f.entryTime);A.prototype.replaceState.call(this,f,X)};
t.prototype.handleHistoryCacheLoad=function(){};
return t}(Ff),XK8=function(){var A=Yy.call(this,new wvp)||this;
A.dispatchElement=null;A.entryIndex=0;return A};
_.R(XK8,Yy);_.J=XK8.prototype;_.J.init=function(A){A=A===void 0?!0:A;Yy.prototype.init.call(this);this.initialized||(A||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.J.handlePopstate=function(A){var t=null;A.state||(t="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Yy.prototype.handlePopstate.call(this,A);var f=new CustomEvent("yt-history-pop",{cancelable:!0});_.kJ(this.dispatchElement,"yt-history-pop",[f,{errorMsg:t}]);_.r2(this.dispatchElement,"yt-close-all-popups-action");if(!f.defaultPrevented){f=_.Px().resolve(_.HO);t=f.getCurrentData();var X=f.getCurrentPage();f=0;X?(X=_.kJ(this.dispatchElement,"yt-get-page-offset",
[X]),X.length>0&&(f=X[0])):_.K4(new _.xj("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:t?t.page:"undefined"}));t&&(t.csn=_.Ws());this.saveSnapshot(this.historyEntryTime,t,f)}return Yy.prototype.handlePopstate.call(this,A)};
_.J.handleHistoryCacheLoad=function(A,t){A.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.U(_.r2(this.dispatchElement,"yt-history-will-navigate",[t])).next().value||_.kJ(this.dispatchElement,"yt-history-load",[t,A]))};
_.J.pushState=function(A,t){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var f=new _.xj("history.pushState is not a function",this.getDebugString());_.HQ(f)}Yy.prototype.pushState.call(this,A,t)};
_.J.replaceState=function(A,t){if(!this.browserHistory.boundHistoryReplaceState){var f=new _.xj("history.replaceState is not a function",this.getDebugString());_.HQ(f)}Yy.prototype.replaceState.call(this,A,t)};
_.J.saveAndPush=function(A,t,f,X,Q){Q=Q===void 0?{}:Q;f&&(f.csn=_.Ws());Yy.prototype.saveAndPush.call(this,A,t,f,X,Q)};
_.J.getDebugString=function(){var A=[];this.initialized&&A.push("i");this.browserHistory.boundHistoryReplaceState&&A.push("bhr");this.browserHistory.boundHistoryPushState&&A.push("bhs");"replaceState"in this.browserHistory.debugInfo&&A.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&A.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&A.push("ei:"+String(this.entryIndex));return A.join(",")};
_.Vn=function(A,t){A.init(!0);var f=A.browserHistory.getState();A.replaceState(f,AE(t))};
XK8.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Zl=new _.eh("DESKTOP_HISTORY_MANAGER_TOKEN");var QET=[10,20,30,40,50,60],od=function(){this.currentPartitionIndex=0},qrT=function(A){I78({mainAppWeb:_.xO(),
survivalSli:{partitionMinute:A,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},JCp=function(A){I78({mainAppWeb:_.xO(),
survivalSli:{partitionMinute:A,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},USp=function(A){return A.currentPartitionIndex>=0&&A.currentPartitionIndex<QET.length?QET[A.currentPartitionIndex]:-1},eYb=function(A){return A.currentPartitionIndex>0&&A.currentPartitionIndex-1<QET.length?QET[A.currentPartitionIndex-1]:-1};
od.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var A=eYb(this);A>0&&JCp(A);A=USp(this);A>0&&qrT(A);Gsi(this)}};
var Gsi=function(A){var t=USp(A);if(t>0){var f=eYb(A);f<0&&(f=0);A.intervalId=_.a6.addJob(function(){var X=eYb(A);X>0&&JCp(X);X=USp(A);X>0&&qrT(X);Gsi(A)},3,(t-f)*6E4);
A.currentPartitionIndex+=1}else A.currentPartitionIndex=-1};var lEk=function(A){hW.call(this,A,132);this.isDocument=A===document.documentElement};
_.R(lEk,hW);lEk.prototype.calculateScrollDelta=function(A,t,f){var X=0;A<t?X=A<t-100?-48:-8:A>t+f&&(X=A>t+f+100?48:8);return X};
lEk.prototype.JSC$11482_onMouseMove=function(A){this.isDocument||(A.clientX=A.event_.pageX,A.clientY=A.event_.pageY);hW.prototype.JSC$11482_onMouseMove.call(this,A)};_.NQf=function(A,t){var f=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14644_dragListGroup=null;this.onDraggerCreated=function(X){var Q=X.JSC$11478_dragger;Q.scrollTarget_=f.scrollElement;X=X.draggerEl;Q&&X.menuOpened&&Q.setEnabled(!1)};
this.onDragStart=function(X){var Q=X.draggerEl;X=X.currDragItem;var q=Object.assign({},X==null?void 0:X.data);q.trackingParams=void 0;Q.data=q;Q.style.position="absolute";Q.style.width=(X==null?void 0:X.clientWidth)+"px";Q.style.zIndex="2030";Q.onDrag&&Q.onDrag();X=_.Sn(Q);(q=X.querySelector("ytd-app"))?_.sF(q).appendChild(Q):X.body.appendChild(Q);f.dragScrollSupport=new lEk(f.scrollElement);f.dragScrollSupport.horizontalScrolling_=!1;Q=f.dragScrollSupport;Q.constrainScroll_=!!Q.margin_&&!1};
this.onDrop=function(X){f.handleDrop(X);f.dragScrollSupport&&(_.ee(f.dragScrollSupport),f.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(f.JSC$14644_dragListGroup){var X=f.JSC$14644_dragListGroup;jMp(X,X.currDragItem_)}};
this.handleDrop=t};
_.dA=function(A){A.JSC$14644_dragListGroup&&(_.L_(A.JSC$14644_dragListGroup,vEp,A.onDragStart),_.L_(A.JSC$14644_dragListGroup,nET,A.onDragStart),A.JSC$14644_dragListGroup.dispose(),A.JSC$14644_dragListGroup=null);A.dragScrollSupport&&(_.ee(A.dragScrollSupport),A.dragScrollSupport=null);A.scrollElement.removeEventListener("scroll",A.onReorderableScroll)};
_.u7S=function(A,t,f,X){X=X===void 0?"":X;_.dA(A);f&&(A.scrollElement=f);A.JSC$14644_dragListGroup=new rc;A.JSC$14644_dragListGroup.hysteresisDistance_=2;Ffp(A.JSC$14644_dragListGroup,t);A.JSC$14644_dragListGroup.draggerElClasses_=zz("dragging").split(" ");X&&Inp(A.JSC$14644_dragListGroup,function(Q){var q=Q||document,e=null;q.getElementsByClassName?e=q.getElementsByClassName(X)[0]:e=PUf("*",X,Q);return e||Q});
_.TV(A.JSC$14644_dragListGroup,Wfl,A.onDraggerCreated);_.TV(A.JSC$14644_dragListGroup,vEp,A.onDragStart);_.TV(A.JSC$14644_dragListGroup,nET,A.onDrop);A.JSC$14644_dragListGroup.init();A.scrollElement.addEventListener("scroll",A.onReorderableScroll,{passive:!0})};
_.PV.Object.defineProperties(_.NQf.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var zYf=function(){this.skipNextNavigation=!1},Plk=function(A,t,f){if(!t)return!1;
if(A.skipNextNavigation)return A.skipNextNavigation=!1;if(_.C(f,_.fV))return!1;var X,Q,q;if((X=_.C(f,_.GD))==null?0:(Q=X.browseEndpointContextSupportedConfigs)==null?0:(q=Q.browseEndpointContextMainConfig)==null?0:q.skipConfirmation)return!1;var e;return((e=_.C(t.commandMetadata,_.Jl))==null?void 0:e.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
zYf.prototype.showConfirmationDialog=function(A,t){this.navigateParams=t;this.customConfirmationCommand?_.Px().resolve(_.i2).resolveCommand(this.customConfirmationCommand):(t={openPopupAction:{popup:{confirmDialogRenderer:{title:_.oC(_.e5("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.oC(_.e5("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.oC(_.e5("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.oC(_.e5("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.XA.getInstance().triggerAction("yt-open-popup-action",t,A))};
zYf.prototype.cancelPendingNavigation=function(){var A;((A=this.navigateParams)==null?void 0:A.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var TQ7=function(){},OKS=function(A,t,f,X,Q,q,e){f=f===void 0?{}:f;
e=e===void 0?{}:e;var G=_.Px().resolve(_.Cs),N,z=(N=_.C(t,_.fV))==null?void 0:N.url;return z?eCT(G,z,f,window.location.href,function(T,O){iKi(A,T,O,!1,!0,f,q,X)},function(){return!1}):x5(G,t,f,window.location.href,Nv(t),function(T,O){iKi(A,T,O,!1,!0,f,q,X)},Q,e)},iKi=function(A,t,f,X,Q,q,e,G){if(!A.JSC$14659_chunkHandler)if(f.page==="learning_journey_watch"&&_.M("web_enable_canvas_on_learning_journey")){var N=!_.C(G,_.GD);
Q=Q||X;if(N)if(Q){if(_.M("kevlar_continue_playback_without_player_response")){var z;var T=(z=_.C(G,_.ZT))==null?void 0:z.videoId}X={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:X,previousVideoId:T},tempData:q}}else X={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else X={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};A.JSC$14659_chunkHandler=new qsi(_.K1,X,e,N,Q)}else if(f.page==="watch"||f.page==="learning_journey_watch")if(Q||X){if(_.M("kevlar_continue_playback_without_player_response")){var O;
N=(O=_.C(G,_.ZT))==null?void 0:O.videoId}A.JSC$14659_chunkHandler=new eOE(_.K1,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:X,previousVideoId:N},tempData:q},e)}else A.JSC$14659_chunkHandler=new Xc7(_.K1);else f.page==="shorts"&&Q&&!X?A.JSC$14659_chunkHandler=new U5T(_.K1,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:q},e):A.JSC$14659_chunkHandler=new Q$8(e);A.JSC$14659_chunkHandler.processChunk({endpoint:t,data:f});return A.JSC$14659_chunkHandler.wg.promise},
cCl=function(A,t,f,X,Q){(f=_.hOS(f))&&iKi(A,t,f,!1,!0,X,void 0,Q)};_.BQT=new _.eh("NAVIGATION_SERVICE_TOKEN");var MET=function(){this.pendingNavigationPromise=null};
_.J=MET.prototype;_.J.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.J.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.J.addEventListener=function(){throw Error("zh");};
_.J.dispatchEvent=function(){throw Error("zh");};
_.J.removeEventListener=function(){throw Error("zh");};var Clw=new _.eh("APP_ROOT");var iuz=null;var hYT=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Sk=function(){_.p_.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];RYT(this)};
_.R(Sk,_.p_);Sk.prototype.verifyUser=function(){var A=RYT(this),t=A.logout;if(!A.sessionChange)return!0;this.dispatchEvent("ytsessionchange");t&&this.dispatchEvent("ytuserinvalid");return!1};
var RYT=function(A){var t=hYT.map(function(Q){var q;return(q=_.E0.get(Q))!=null?q:""}),f=t.some(function(Q,q){return A.sessionCookies&&A.sessionCookies[q]!==""&&Q===""}),X=t.some(function(Q,q){return A.sessionCookies&&A.sessionCookies[q]!==Q});
A.sessionCookies=t;return{logout:f,sessionChange:X}};
Sk.prototype.clearTimeout=function(){this.scheduledJobId&&(_.a6.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var hP5=new _.eh("POSTMESSAGE_TUNNEL_TOKEN");var Blx=["/parent_tools","/file_download","/artist_roster"],bu5=[wuK,sf8,kHE,At7,rrT,glp,tOT,fHk];var $y=new _.eh("NAVIGATION_CONFIRMATION_SERVICE");var mSb="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /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(" "),bKT=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],H7=function(A,t){this.pendingNavigationPromise=null;this.JSC$14682_clientRoot=A;this.historyManager=t;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 TQ7;this.debugString=A.is;A={"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};_.J4(_.XA.getInstance(),A,this.JSC$14682_clientRoot)},pKE,E$7,n$7,DSb,LVp;
_.R(H7,MET);H7.prototype.reload=function(){_.pp(window.location.href)};
var bDp=function(A){A.currentEndpoint&&_.C(A.currentEndpoint,_.zD)?A.reload():A.currentEndpoint&&A.navigate(A.currentEndpoint,!0,void 0,{disableCache:!0})};
H7.prototype.navigate=function(A,t,f,X,Q,q,e,G){t=t===void 0?!1:t;f=f===void 0?{}:f;X=X===void 0?{}:X;var N=_.Px().resolve($y),z;if(!e&&Plk(N,(z=this.currentEndpoint)!=null?z:void 0,A))return N.showConfirmationDialog(this.JSC$14682_clientRoot.parentElement,{endpoint:A,reload:t,params:f,tempData:X,requestType:Q,createScreenConfig:q}),!1;var T=_.TT();_.iE(T,"eocs")||T.parkOrScheduleJob(function(){T.processSignal("eocs")},10,"eor");
Ous();e=Nv(A);N=X.autonav==="1";z=_.Ws();Sk.instance||(Sk.instance=new Sk);var O=Sk.instance.verifyUser(),c;if(_.M("enable_dark_theme_only_on_shorts")){var B=document.documentElement.hasAttribute("dark"),h=_.np(!0)==="USER_INTERFACE_THEME_DARK";if(e==="shorts"){if(!B)if(_.M("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var W;_.pp((W=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null?void 0:W.url,void 0,void 0,window.top)}}else{var L;_.pp(_.Je((L=_.C(A==
null?void 0:A.commandMetadata,_.Jl))==null?void 0:L.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.M("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!B){var E;_.pp(_.Je((E=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null?void 0:E.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(h!==B){var D;_.pp(_.Je((D=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null?void 0:D.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(e==="watch"){if(WVE(_.Px().resolve(_.DS),
A)&&(O||_.M("fix_miniplayer_navigation_killswitch")))return!1;_.M("block_all_player_prefetch_requests")||(c=ROw(_.K8(_.Yx),A,N))}else{var S,Z=(S=_.C(this.currentEndpoint,_.ZT))==null?void 0:S.videoId;Z&&_.Az.getInstance().then(function(Fb){Fb&&Fb.set("yt-miniplayer-shown-video-id",Z)})}c&&(f.frags=c.missingFragments_.join(","));
W=null;var d;L=(d=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null?void 0:d.ignoreNavigation;if(!L)if(_.M("kevlar_command_url")){var K;W=(K=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null?void 0:K.url}else W=_.AEl(A,f);if(W&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&W==this.lastNavigationUrl)return _.R7({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.GF(nG(),"CANCELLED")}W&&(this.lastNavigationUrl=W);wgx();_.H5("IS_HOMEPAGE_COLD",
!1);_.H5("IS_RESULTS_PAGE_COLD",!1);_.H5("IS_WATCH_PAGE_COLD",!1);A.loggingUrls&&A.loggingUrls.forEach(function(Fb){Fb.baseUrl&&_.XO(Fb.baseUrl)});
_.LeT(A,q?q.layer:0)&&_.M("kevlar_flush_logs_on_away_navigation")&&_.$B();if(Wex(A))return!1;JmK(e,Q);if(!W)return L||_.K4(new _.xj("Can't construct url for endpoint",A)),_.GF(nG(),"FAILURE"),!1;_.cxx();d=A&&_.C(A,_.GD)&&_.C(A,_.GD).browseId.startsWith("UC");f=(K=_.M("enable_dark_theme_only_on_shorts")&&e==="shorts"?!1:_.D2()&&document.documentElement.hasAttribute("dark")!==_.EF())?{themeRefresh:1}:{};K&&!_.DU()&&_.np()==="USER_INTERFACE_THEME_DARK"&&(f.theme="dark");d=K||yCp(W)&&!d&&!_.M("kevlar_disable_url_allowlist");
O||(d=!0);if(d||_.ah("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var k;var Gz=(k=window.top)==null?void 0:k.location.href}catch(Fb){var Tz;Gz=(Tz=Fb)==null?void 0:Tz.message}_.K4(new _.xj("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Gz}))}A=_.M("kevlar_redirect_on_window_killswitch")?window.top:window;Lp(W);_.pp(_.Je(W,f),void 0,void 0,A);_.GF(nG(),"ABORTED");return!1}_.M("kevlar_early_popup_close")&&_.kJ(this.JSC$14682_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14659_chunkHandler=void 0;var y5;Gz=Nv((y5=this.currentEndpoint)!=null?y5:void 0);(y5=e==="shorts"&&Gz==="shorts")||_.d2b();_.r9(pL5)("nr",void 0);N&&_.R7({webInfo:{navigationReason:"an"}});A.clickTrackingParams&&(X.itct=A.clickTrackingParams,X.csn=z);gbT(X);X.endpoint=JSON.stringify(A);_.M("enable_unknown_lact_fix_on_html5")&&(_.Px().resolve(_.PO),X.lact=_.iX());_.VG.isEmpty(X)||_.$J(W,X);!_.M("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(q=Object.assign({},{layer:0},q,{parentLayer:3}));this.pendingNavigationPromise=q=OKS(this.pageFetcher,A,X,this.currentEndpoint,this.JSC$14682_isNetworkPromiseStale.bind(this),q,G);q=q.then(this.handleNavigateSuccess.bind(this,q,A,c,X),this.handleNavigateFail.bind(this,q,A));_.$z().navigationFinishPromise=q;t={endpoint:A,pageType:e,url:AE(W),reload:!!t,noProgressBar:y5};Q&&(t.type=Q);var cp;Q=_.eI((cp=this.currentEndpoint)!=null?cp:null);cp=_.eI(A!=null?A:null);this.fireEvent("yt-navigate-start",
t);var iu;(iu=_.Px().resolve(_.z7(_.BQT)))==null||iu.publish("navigation-start",{sourcePageSubtype:Q,destinationPageSubtype:cp});c&&cCl(this.pageFetcher,A,c,X,this.currentEndpoint);return!0};
H7.prototype.JSC$14682_isNetworkPromiseStale=function(A){return A!=this.pendingNavigationPromise};
var v$p=function(A,t,f,X,Q){var q=Nv(t);t={endpoint:t,pageType:q};Q&&(t.errorMessage=Q);_.K4(f);t.navigationDoneMs=_.Wt("nd");t.navigationErrorReason=X;A.fireEvent("yt-navigate-error",t)};
H7.prototype.handleNavigateFail=function(A,t,f){var X=void 0;f instanceof _.Ej&&(X=f,k6x(f));if(this.JSC$14682_isNetworkPromiseStale(A))return _.OX(X);_.GF(nG(),"FAILURE");v$p(this,t,f,"101");return _.OX(f)};
H7.prototype.handleNavigateSuccess=function(A,t,f,X,Q){if(this.JSC$14682_isNetworkPromiseStale(A))return _.ff();this.pendingNavigationPromise=null;if(!Q)return t=new _.xj("Missing data in response for navigation endpoint",t),_.OX(t);if(Q.reload)return window.location.reload(!0),_.ff();f&&(A={},_.VG.extend(A,_.hOS(f),Q),Q=A);var q,e;f=(q=Q)==null?void 0:(e=q.timing)==null?void 0:e.responseStart;f!=null&&_.Wt("srt",f);_.Wt("pdc");var G,N;q=(G=Q)==null?void 0:(N=G.timing)==null?void 0:N.info;q!=null&&
(G=_.r9(_.FMx)(q),_.R7(G));_.GF(nG(),"SUCCESS");LVp(this,t,Q,1,X);return _.ff()};
var yCp=function(A){var t=A;_.M("kevlar_no_redirect_to_classic_2_ks")||(t=(new _.oq(A)).getPath());if(t==="/"||t==="/red")return!1;var f=!0;mSb.forEach(function(X){A.indexOf(X)===0&&(f=!1)});
bKT.forEach(function(X){var Q=X.url;_.M(X.expFlag)&&A.indexOf(Q)===0&&(f=!1)});
return f};
H7.prototype.publishPageData=function(A){this.fireEvent("yt-page-data-fetched",{pageData:A})};
pKE=function(A,t,f,X,Q,q){var e=null;t.page!=="watch"&&t.page!=="learning_journey_watch"||X?t.filler||_.kJ(A.JSC$14682_clientRoot,"yt-stop-old-player",[t]):e=iKi(A.pageFetcher,Q,t,f,!1,q,void 0,A.currentEndpoint);if(e)return e.then(A.publishPageData.bind(A,t));A.publishPageData(t);return _.ff()};
E$7=function(A,t,f){var X=null;if(!f)return X=new _.xj("Empty data",A.debugString,t);var Q=f.response;if(!Q)return X;var q={endpointType:Nv(t)||"unknown"};Q.responseContext?(Q=Q.responseContext.errors)&&(X=new _.xj("Errors in response context",A.debugString,t,Q,q)):X=Q.error||Q.errorMetadata?new _.xj("Errors in response",A.debugString,t,Q.error,Q.errorMetadata,q):new _.xj("responseContext missing",A.debugString,t,Object.keys(Q).sort().join(","),q);var e,G,N,z;if(A=f==null?void 0:(e=f.response)==null?
void 0:(G=e.responseContext)==null?void 0:(N=G.webResponseContextExtensionData)==null?void 0:(z=N.webResponseContextDebugData)==null?void 0:z.debugErrorMessages)for(e=0;e<A.length;e++);return X};
n$7=function(A){var t,f,X,Q;return A==null?void 0:(t=A.response)==null?void 0:(f=t.responseContext)==null?void 0:(X=f.errors)==null?void 0:(Q=X.error)==null?void 0:Q["0"]};
DSb=function(A,t){var f;if(f=t.url&&!t.url.startsWith("/clip"))f=t.url,f=!_.M("webfe_parse_debug_param_in_resolveurl_service")&&A.searchDebugUrlMatcher.test(f)||e10(f)?!0:!1;if(f)e10(t.url)&&_.qG(window.location.href).themeRefresh?(t=_.Hs(t.url,"themeRefresh"),_.Vn(A.historyManager,t)):t.url&&!Nlb(t.url)&&_.Vn(A.historyManager,t.url);else if(t.endpoint){var X,Q,q;(f=(X=t.endpoint)==null?void 0:(Q=X.commandMetadata)==null?void 0:(q=Q.webCommandMetadata)==null?void 0:q.url)&&!Nlb(f)&&_.Vn(A.historyManager,
f);f&&t.url&&f!=t.url&&!t.url.match("playnext=1")&&new _.xj("Response url mismatch in response data",A.debugString,f,t.url)}};
_.FVi=function(A,t,f,X,Q,q,e,G){q=q===void 0?!1:q;var N=_.Px().resolve($y),z;if(!G&&Plk(N,(z=A.currentEndpoint)!=null?z:void 0,t))return N.showConfirmationDialog(A.JSC$14682_clientRoot.parentElement,{endpoint:t,data:f,navigationType:X,tempData:Q,isMiniplayer:q,isForwardHistoryNavigation:e==null?void 0:e.forward}),_.ff();A.pageFetcher.JSC$14659_chunkHandler=void 0;return LVp(A,t,f,X,Q,q)};
LVp=function(A,t,f,X,Q,q){q=q===void 0?!1:q;A.isMiniplayerExpansion=q;var e=X===2;A.currentEndpoint=t;A.numNavigations++;A.numNavigations&&(I7q.navigationCount=A.numNavigations);_.H5("NUM_NAV",A.numNavigations);var G=E$7(A,t,f);if(G)return v$p(A,t,G,"102",n$7(f)),_.OX(G);var N,z,T,O;G=f.rootVe||(f==null?void 0:(N=f.response)==null?void 0:(z=N.responseContext)==null?void 0:(T=z.webResponseContextExtensionData)==null?void 0:(O=T.ytConfigData)==null?void 0:O.rootVisualElementType);!e&&f&&DSb(A,f);var c,
B;N=f==null?void 0:(c=f.response)==null?void 0:(B=c.responseContext)==null?void 0:B.maxAgeSeconds;if(!e&&!isNaN(N)){var h;_.M("kevlar_use_response_ttl_to_invalidate_cache")?h=(0,_.OJ)()+1E3*N:_.M("kevlar_always_invalidate_cache")&&(h=0);isNaN(h)||(f.expirationTime=h)}_.K8(_.Yx).prefetchCache_.clear();e||f.page!=="watch"||f.type!=="reduced"&&X!==1?X=pKE(A,f,e,!!q,t,Q):(A.publishPageData(f),X=_.ff());Q=X.then(function(){var W=Nv(t);W={endpoint:t,pageType:W,fromHistory:e,response:f};W.navigationDoneMs=
_.Wt("nd");A.fireEvent("yt-navigate-finish",W);var L;(L=_.Px().resolve(_.z7(_.BQT)))==null||L.publish("navigation-end")});
f.csn&&G&&f.clientSideGrafts&&X.then(A.attachClientSideGrafts.bind(A,f,_.mx()));return Q};
_.J=H7.prototype;_.J.attachClientSideGrafts=function(A,t){A.clientSideGrafts&&t&&A.clientSideGrafts.forEach(function(f){if(t&&f){var X=_.zV(f);_.M("combine_ve_grafts")?_.er().graftServerVe(f,t):_.x7(A.csn,t,X)}})};
_.J.handleSignalActionHistoryBack=function(){window.history.back()};
_.J.handleSignalActionCloseWindow=function(){window.close()};
_.J.handleSignalActionReloadPage=function(){this.reload()};
_.J.handleSignalActionSoftReloadPage=function(){bDp(this)};
_.J.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.J.fireEvent=function(A,t){A=new CustomEvent(A,{bubbles:!0,cancelable:!1,composed:!0,detail:t});this.dispatchEvent(A)};
_.J.addEventListener=function(A,t){this.JSC$14682_clientRoot.addEventListener(A,t)};
_.J.dispatchEvent=function(A){return this.JSC$14682_clientRoot.dispatchEvent(A)};
_.J.removeEventListener=function(A,t){this.JSC$14682_clientRoot.removeEventListener(A,t)};
H7[T7]=[Clw,_.Zl];_.zuu=new QH("browse","h8y2qb");_.PB5=new QH("search","JzFVk");_.TJz=new QH("shorts","xwEKAe");_.i0z=new QH("watchFixie","nmfa2d");_.O0b=new QH("watchFlexy","CF909");_.cQb=new QH("watchGrid","Tm0L3c");_.BJg=new QH("watchLearningJourney","L3n37");var IE7;var xSi=function(){return _.F.apply(this,arguments)||this};
_.R(xSi,_.F);_.PV.Object.defineProperties(xSi,{template:{configurable:!0,enumerable:!0,get:function(){if(IE7===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);IE7=A}A=IE7;return A}}});
_.V([_.b(x6T.YtPlayerBehavior),_.H("design:type",Object)],xSi.prototype,"ytPlayerBehavior",void 0);_.V([_.y_({is:"ytd-player"})],xSi);var jES;var YrE;var VE8;var ad=function(){var A=_.F.apply(this,arguments)||this;A.forceModernIconButton=!1;A.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return A};
_.R(ad,_.F);ad.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]]"}}}}}};
ad.prototype.handleAccountLinkingStateChangedCommand=function(A){if(A=_.C(A,zhf)){var t,f=(t=this.data)==null?void 0:t.providerKey;t=A.providerKey;f&&t&&f.id===t.id&&f.subject===t.subject&&(A=A.linked,A!==void 0&&(this.set("data.linked",A),this.notifyPath("data.linked"),_.M("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(A)))}};
ad.prototype.setPlayerAccountLinkState=function(A){var t=new LOi;pXE(t,yMl(new WO7,A));var f=_.K1();f&&f.getPlayerPromise().then(function(X){X.setAccountLinkState(_.E2(t.JSC$12409_serializeBinary(),4));X.updateAccountLinkingConfig(A)})};
ad.prototype.handleShowAccountLinkDialog=function(){var A=this.get("button.buttonRenderer.command");A&&_.Qg([A],this.hostElement)};
_.PV.Object.defineProperties(ad.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}}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.V([_.b([_.jD.YtActionHandlerBehavior]),_.H("design:type",Object)],ad.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ad.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],ad.prototype,"overrides",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ad.prototype,"forceModernIconButton",void 0);_.V([_.n({value:"bottom"}),_.H("design:type",String)],ad.prototype,"buttonTooltipPosition",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],ad.prototype,"forceIconButton",void 0);_.V([_.n(),_.H("design:type",Boolean)],ad.prototype,"disableTextTransform",void 0);
_.V([_.y("data","data.linked","data.isWarning"),_.H("design:type",Object),_.H("design:paramtypes",[])],ad.prototype,"button",null);_.V([_.y_({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],ad);
_.Y(ad,"ytd-account-link-button-renderer",function(){if(VE8!==void 0)return VE8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return VE8=A},{mode:1});var ZKT;var o$i=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],K2=function(){return _.F.apply(this,arguments)||this};
_.R(K2,_.F);K2.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
K2.prototype.updateButtonActiveState=function(){var A=this,t=!!o$i.find(function(f){return A.currentState===f});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.M("enable_web_delhi_icons")&&(t=!1);this.button&&(this.button.isPressed=t)};
_.PV.Object.defineProperties(K2.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.playlistLoopStateEntity)==null?void 0:A.state)||((t=this.data)==null?void 0:t.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var A=void 0,t;if(this.currentState&&((t=this.data)==null?0:t.states)){t=_.U(this.data.states);for(var f=t.next();!f.done;f=t.next()){f=_.C(f.value,_.Lqp);var X=void 0;if(((X=f)==null?void 0:X.state)===this.currentState){A=f;break}}}return A}}});
K2.prototype.updateButtonActiveState=K2.prototype.updateButtonActiveState;_.V([_.b(_.qT),_.H("design:type",Object)],K2.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.wx.playlistLoopStateEntitySelector}),_.H("design:type",Object)],K2.prototype,"playlistLoopStateEntity",void 0);_.V([_.n(),_.H("design:type",Object)],K2.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],K2.prototype,"forceIconOnly",void 0);_.V([_.lo("ytd-button-renderer"),_.H("design:type",_.bw)],K2.prototype,"button",void 0);
_.V([_.y("data","playlistLoopStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],K2.prototype,"currentState",null);_.V([_.ev("currentButtonStateRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K2.prototype,"updateButtonActiveState",null);_.V([_.y("currentState"),_.H("design:type",Object),_.H("design:paramtypes",[])],K2.prototype,"currentButtonStateRenderer",null);
_.V([_.y_({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],K2);
_.Y(K2,"ytd-playlist-loop-button-renderer",function(){if(ZKT!==void 0)return ZKT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return ZKT=A},
{mode:1});var dSS;var Srl=_.e5("DOWNLOAD",{},"Download"),$Sp=_.e5("DOWNLOADING",{},"Downloading"),HKf=_.e5("DOWNLOADED",{},"Downloaded"),aET=_.e5("RETRY",{},"Retry"),gA=function(){var A=_.F.apply(this,arguments)||this;A.forceIconButton=!1;A.forceIconOnly=!1;A.overrides=!1;A.buttonTooltipPosition=!1;A.styleActionButton=!1;A.disableTextTransform=!1;A.downloadProgress=0;A.isDownloadComplete=!1;A.isHidden=!0;A.transferState="TRANSFER_STATE_UNKNOWN";A.isVideoDeletedByUser=!1;A.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return A};
_.R(gA,_.F);_.J=gA.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var A;(A=this.data)!=null&&A.text||(A=_.LZ(_.$I().getState(),this.videoId),this.updateButtonState(A))};
_.J.computeVideoId=function(A){return A};
_.J.computePlayerStateEntityKey=function(A){return A};
_.J.showHideButton=function(){this.updateButtonVisibility()};
_.J.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var A;((A=this.playerStateEntity)==null?void 0:A.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0: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};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(A){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==$Sp||!_.PE(A))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(A){case "TRANSFER_STATE_UNKNOWN":A=Srl;var t="OFFLINE_DOWNLOAD";var f="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":A=aET;t="OFFLINE_DOWNLOAD";f="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":A=HKf;t="OFFLINE_PIN";f="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":A=
$Sp;t="OFFLINE_DOWNLOADING_ZERO";f="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":A=aET;t="OFFLINE_DOWNLOAD";f="ACTION_RETRY";break;default:A=Srl,t="OFFLINE_DOWNLOAD",f="ACTION_ADD"}this.isVideoDeletedByUser&&(A=Srl,t="OFFLINE_DOWNLOAD",f="ACTION_ADD");var X=Object.assign({},this.data);X.text=_.oC(A);X.tooltip=A;X.icon={iconType:t};X.size="SIZE_DEFAULT";X.style="STYLE_DEFAULT";_.C(X.command,_.Ga)&&(_.C(X.command,_.Ga).action=f);this.set("data",X)}};
_.J.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var A="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?A="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?A="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?A="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?A="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?A="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(A="OFFLINE_PIN",this.isDownloadComplete=!0);var t;A!==((t=this.data.icon)==null?void 0:t.iconType)&&(t=Object.assign({},this.data),t.text=_.oC($Sp),t.tooltip=$Sp,t.icon={iconType:A},_.C(t.command,_.Ga)&&(_.C(t.command,_.Ga).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",t))}};
gA.prototype.updateProgress=gA.prototype.updateProgress;gA.prototype.onTransferStateChanged=gA.prototype.onTransferStateChanged;gA.prototype.showHideButton=gA.prototype.showHideButton;gA.prototype.dataChanged=gA.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gA.prototype,"forceIconButton",void 0);
_.V([_.n(),_.H("design:type",Object)],gA.prototype,"forceIconOnly",void 0);_.V([_.n(),_.H("design:type",Object)],gA.prototype,"overrides",void 0);_.V([_.n(),_.H("design:type",Object)],gA.prototype,"buttonTooltipPosition",void 0);_.V([_.n(),_.H("design:type",Object)],gA.prototype,"styleActionButton",void 0);_.V([_.n(),_.H("design:type",Object)],gA.prototype,"disableTextTransform",void 0);
_.V([_.n({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.H("design:type",String)],gA.prototype,"videoId",void 0);_.V([_.n({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.H("design:type",String)],gA.prototype,"playerStateEntityKey",void 0);_.V([_.n(),_.H("design:type",Object)],gA.prototype,"data",void 0);_.V([_.n({selector:Ep,selectorArgs:["videoId"]}),_.H("design:type",Object)],gA.prototype,"downloadProgress",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gA.prototype,"isDownloadComplete",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gA.prototype,"isHidden",void 0);_.V([_.n({selector:_.LZ,selectorArgs:["videoId"]}),_.H("design:type",String)],gA.prototype,"transferState",void 0);_.V([_.n({selector:_.s4g,selectorArgs:["videoId"]}),_.H("design:type",Object)],gA.prototype,"isVideoDeletedByUser",void 0);
_.V([_.n({selector:$Xx,selectorArgs:["videoId"]}),_.H("design:type",Object)],gA.prototype,"offlineabilityState",void 0);_.V([_.n({selector:_.to,selectorArgs:["playerStateEntityKey"]}),_.H("design:type",Object)],gA.prototype,"playerStateEntity",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],gA.prototype,"showTooltips",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],gA.prototype,"sendCommandWhenDisabled",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],gA.prototype,"disabled",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gA.prototype,"dataChanged",null);_.V([_.PU("offlineabilityState","playerStateEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gA.prototype,"showHideButton",null);
_.V([_.PU("transferState","isVideoDeletedByUser"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gA.prototype,"onTransferStateChanged",null);_.V([_.PU("downloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gA.prototype,"updateProgress",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],gA);
_.Y(gA,"ytd-download-button-renderer",function(){if(dSS!==void 0)return dSS;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return dSS=A},{mode:2});var KVC;var g$l,wKC=function(){if(g$l!==void 0)return g$l;var A=document.createElement("template");_.m(A,'\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 g$l=A};var sET=_.M("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.M("web_button_rework_with_live"),ksb=_.cx("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,wA=function(){var A=_.F.apply(this,arguments)||this;A.isPressed=!1;A.forceIconButton=!1;A.forceIconOnly=!1;A.forceModernIconButton=!1;A.alignByText=!1;A.isShorts=!1;A.animatedText=!1;A.shouldAnimate=!1;A.JSC$14720_browserSupportsAnimation=_.M("web_supports_animations_api");A.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};A.onTap=function(){var t;if((t=A.data)==null||!t.defaultNavigationEndpoint){var f;t=!((f=A.data)==null?0:f.isToggled);var X;if((X=A.data)==null||!X.preventAutoToggle){A.shouldAnimate=!1;A.disableTextUpdateJobId&&_.a6.cancelJob(A.disableTextUpdateJobId);A.disableTextUpdateJobId=_.a6.addLowPriorityJob(function(){A.disableTextUpdateJobId=void 0},ksb);
var Q;A.set("data.isToggled",!((Q=A.data)==null?0:Q.isToggled));f=A.getInnertubeIcon();X={toggled:t,actions:{}};f&&(X.actions[f.toLowerCase()]=t);_.s9(A.hostElement,"yt-toggle-button",X)}}};
return A};
_.R(wA,_.F);_.J=wA.prototype;_.J.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.a6.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.toggle=function(A){var t;this.set("data.isToggled",A!==void 0?A:!((t=this.data)==null?0:t.isToggled))};
_.J.handleUpdateToggleButtonStateCommand=function(A){if(this.data){A=_.C(A,Mmp);var t,f,X,Q=(t=this.data)==null?void 0:(f=t.toggleButtonSupportedData)==null?void 0:(X=f.toggleButtonIdData)==null?void 0:X.id;Q&&A&&Q===(A==null?void 0:A.buttonId)&&this.set("data.isToggled",A.toggled)}};
_.J.handleUpdateToggleButtonTextAction=function(A){if(this.data){A=_.C(A,oPC);var t,f,X,Q=(t=this.data)==null?void 0:(f=t.toggleButtonSupportedData)==null?void 0:(X=f.toggleButtonIdData)==null?void 0:X.id;Q&&A&&Q===(A==null?void 0:A.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=A.defaultNumericalValue,this.set("data.defaultText",A.defaultText),this.set("data.toggledText",A.toggledText),this.shouldAnimate=!1)}};
_.J.getInnertubeIcon=function(){var A=this.data;if(A){var t,f,X=((t=A.defaultIcon)==null?0:t.iconType)?(f=A.defaultIcon)==null?void 0:f.iconType:null,Q,q;t=((Q=A.toggledIcon)==null?0:Q.iconType)?(q=A.toggledIcon)==null?void 0:q.iconType:X;return A.isToggled?t:X}};
_.J.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.PV.Object.defineProperties(wA.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A={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$14720_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var t=A.renderer;var f=A.element;var X=A.toggled;var Q=A.onTapCallback;var q=A.commandClientArgs;var e=A.overrides;var G=A.forceIcon;var N=A.forceModernIconButton;var z=A.forceDisabled;var T=A.useAnimatedText;var O=A.animatedTextProps;A=nMx(t,X);G=!t.defaultIcon||!G&&t.defaultText?t.defaultIcon?"leading":void 0:N?"icon-only":"icon-only-40";G==="icon-only-40"&&(A.type="text");var c;N=Object;var B=N.assign,h;a:switch((h=
t.style)==null?void 0:h.styleType){case "STYLE_COMPACT_GRAY":h={size:"S"};break a;default:h={size:"M"}}var W=!!X;var L=(L=X&&t.toggledText||t.defaultText)?_.CI(L):void 0;T?(T=_.dF(X&&t.toggledText||t.defaultText))&&O&&!isNaN(Number(O.numberValue))?(O.numberText=T,X&&(O.numberValue+=1),T=O):T=void 0:T=void 0;var E,D,S,Z;var d=(O=((D=X?t.toggledAccessibilityData||((d=t.toggledText)==null?void 0:d.accessibility):t.accessibilityData||((E=t.defaultText)==null?void 0:E.accessibility))==null?void 0:(S=D.accessibilityData)==
null?void 0:S.label)||((Z=t.accessibility)==null?void 0:Z.label))?O:_.dF(X&&t.toggledText||t.defaultText);z=z===void 0?t.isDisabled:z;f=EMx(t,X,Q,f,q);X=pBu(t,X);X!=null&&X.length?(X=_.yx({innertubeCommand:iTu(X),forceNewState:!0}),X=vn(X)?X:void 0):X=void 0;t=B.call(N,{},A,h,{iconPosition:G},e,{focused:!1,toggled:W,toggleable:!0,formattedButtonText:L,animatedTextProps:T,accessibilityLabel:d,disabled:z,onTap:f,aTagConfig:X},Sbx((c=t.colorData)==null?void 0:c.basicColorPaletteData));t.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(t.type="filled");return t}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var A=this.getInnertubeIcon();if(A)return _.t7(A)}}});
wA.prototype.resetAnimation=wA.prototype.resetAnimation;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],wA.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],wA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wA.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],wA.prototype,"isPressed",void 0);_.V([_.n(),_.H("design:type",Object)],wA.prototype,"forceIconButton",void 0);_.V([_.n(),_.H("design:type",Object)],wA.prototype,"forceIconOnly",void 0);_.V([_.n(),_.H("design:type",Object)],wA.prototype,"forceModernIconButton",void 0);_.V([_.n(),_.H("design:type",Object)],wA.prototype,"alignByText",void 0);_.V([_.n(),_.H("design:type",Object)],wA.prototype,"overrides",void 0);
_.V([_.n(),_.H("design:type",Boolean)],wA.prototype,"disabled",void 0);_.V([_.n(),_.H("design:type",Object)],wA.prototype,"isShorts",void 0);_.V([_.n(),_.H("design:type",Object)],wA.prototype,"buttonTooltipPosition",void 0);_.V([_.n(),_.H("design:type",Object)],wA.prototype,"animatedText",void 0);_.V([_.n(),_.H("design:type",String)],wA.prototype,"textNumberValue",void 0);_.V([_.n({computed:"computeTooltip(data, data.isToggled)"}),_.H("design:type",Object)],wA.prototype,"tooltip",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wA.prototype,"resetAnimation",null);_.V([_.y("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.H("design:type",Object),_.H("design:paramtypes",[])],wA.prototype,"computedButtonShape",null);_.V([_.y("data.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],wA.prototype,"computedIcon",null);
_.V([_.y_({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],wA);sET&&_.Y(wA,"ytd-toggle-button-renderer",wKC,{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var rCl=_.I(function(A){function t(z){var T;return _.l(function(O){if(O.nextAddress==1)return(T=!Feu(z,G())||!G().enabled)?O.jumpTo(2):O.yield(Vo5(),3);O.nextAddress!=2&&(T=O.yieldResult);if(T)return O.return();f();setTimeout(function(){e(!1)},1500);
_.LO(O)})}
function f(){setTimeout(function(){e(!0);var z;(z=X.lottieEl)==null||z.goToAndPlay(0)},150)}
var X=_.Un(),Q=_.U(_.hZ(!1,void 0,"UfUosc")),q=Q.next().value,e=Q.next().value,G=_.dR(A.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.oh(function(){var z,T;((z=A.settings)==null?void 0:(T=z.call(A))==null?void 0:T.uniqueId)==="this is not intended behavior"&&_.K4(new _.xj("Smartimation Settings is undefined"))});
_.oo(function(){G().experimentEnabled&&(G().enabled?IVx(t):(e(!1),xEx(t)),_.dD(function(){xEx(t)}))},"IHhVmc");
_.oo(function(){G().timings.join("");G().experimentEnabled&&(j5l(G()),_.dD(function(){YSz(G())}))},"fsfhOe");
var N=_.yq(function(){var z=X,T=G().uniqueId+"-border",O,c;var B="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((c=(O=_.Px().resolve(_.z7(_.FH)))==null?void 0:O())!=null&&c?"dark":"light")+"_v2.json";return{animationRef:z,animationConfig:{name:T,autoplay:!1,loop:!1,path:B}}},void 0,"UWvUGe");
Q={};return _.u("yt-smartimation",{class:_.Ao(A.className,"smartimation",(Q["smartimation--experiment-enabled"]=function(){return G().experimentEnabled},Q["smartimation--active-border"]=q,Q["smartimation--enable-masking"]=Zug(),Q))},_.u(_.P,{cond:function(){return G().experimentEnabled},
then:function(){return _.u("div",{class:"smartimation__border"},_.u(_.Ya,{className:"smartimation__border-gradient",data:N,animationName:function(){return N().animationConfig.name}}))}}),_.u("div",{class:"smartimation__content"},A.children))},"ha");
rCl.idomCompat=!0;_.Hn(rCl,"yt-smartimation",{props:{className:_.PS,settings:_.PS}});var sW=function(){var A=_.F.apply(this,arguments)||this;A.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};A.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};A.shouldEnableSmartimation=!1;return A};
_.R(sW,_.F);sW.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
sW.prototype.onDataChanged=function(){var A,t;this.shouldEnableSmartimation=(((A=this.data)==null?void 0:(t=A.timedAnimationData)==null?void 0:t.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
sW.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var A=_.C(this.data.likeButton,_.l1),t=_.C(this.data.dislikeButton,_.l1);return!!((A==null?0:A.isToggled)||(t==null?0:t.isToggled))};
sW.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]]"}}}}}};
_.PV.Object.defineProperties(sW.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var A,t,f=((A=this.data)==null?void 0:(t=A.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"like-dislike",timings:f,enabled:this.shouldEnableSmartimation,experimentEnabled:f.length>0}}}});
sW.prototype.onDataChanged=sW.prototype.onDataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sW.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],sW.prototype,"likeButtonOverride",void 0);_.V([_.n(),_.H("design:type",Object)],sW.prototype,"dislikeButtonOverride",void 0);
_.V([_.y("shouldEnableSmartimation"),_.H("design:type",Object),_.H("design:paramtypes",[])],sW.prototype,"smartimationSettings",null);_.V([_.ev("data"),_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sW.prototype,"onDataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],sW);
_.Y(sW,"ytd-segmented-like-dislike-button-renderer",function(){if(KVC!==void 0)return KVC;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return KVC=A},{mode:1});var AvC;var tzS;(tzS=document.body)==null||tzS.setAttribute("rounded-container","");var fqT={};fqT.YtToggleButtonBehavior=[_.jD.YtActionHandlerBehavior,$a.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 A=this.data.isToggled;if(!this.isModal_(A)){if(!this.data.preventAutoToggle){this.toggle();var t={toggled:this.data.isToggled,actions:{}};t.actions[this.buttonIcon]=this.data.isToggled;_.s9(this.hostElement,"yt-toggle-button",t)}t=this.data.defaultServiceEndpoint||null;var f=this.data.toggledServiceEndpoint||null;if(t&&f||t&&this.data.preventAutoToggle)A=A?f:t,t=this.disableCommandHandlerOverride,_.M("killswitch_toggle_button_behavior_resolve_command")||t?_.Al(this.hostElement,
[A]):_.Qx(A,this.hostElement),_.s9(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:A})}},
stateChanged_:function(){var A=this.data;if(A){var t=A.isToggled;this._setEndpoint(this.computeEndpoint_(A));this._setServiceEndpoint(this.computeServiceEndpoint_(A));this._setButtonIcon(this.computeButtonIcon_(A,t));this._setButtonText(this.computeButtonText_(A,t));this._setButtonAccessibility(this.computeAccessibility_(A,t));this._setButtonTooltip(this.computeTooltip_(A,t));this._setButtonClass(this.computeButtonClass_(A,t));this._setIconPositionType(this.computeIconPositionType_(A));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=t):this.elements_.button.setAttribute("aria-pressed",t));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=t)}},
shouldSetIconActiveState_:function(){return _.M("kevlar_system_icons")},
toggle:function(A){this.set("data.isToggled",A!==void 0?A:!this.data.isToggled);_.M("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(A){if(A){var t,f;return!!((t=this.data)==null?0:(f=t.toggledServiceEndpoint)==null?0:f.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(A){return A&&A.defaultNavigationEndpoint||null},
computeButtonIcon_:function(A,t){var f=A&&A.defaultIcon?_.t7(A.defaultIcon.iconType):null;A=A&&A.toggledIcon?_.t7(A.toggledIcon.iconType):f;return t?A:f},
handleUpdateToggleButtonStateCommand_:function(A){A=A.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==A.buttonId&&this.toggle(A.toggled)},
computeButtonText_:function(A,t){return A?t&&A.toggledText||A.defaultText||null:null},
computeAccessibility_:function(A,t){return A?(t?this.get("toggledAccessibilityData.accessibilityData",A):this.get("accessibilityData.accessibilityData",A))||A.accessibility||null:null},
computeTooltip_:function(A,t){return A?t&&A.toggledTooltip||A.defaultTooltip||null:null},
computeButtonClass_:function(A,t){if(!A)return"";var f="",X=A.toggledStyle||A.style;if(t=t?X:A.style){t.styleType&&(t=t.styleType);try{f+=t.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.gL(Q,t,typeof t),_.K4(Q)}}if(A=A.size){A.sizeType&&(A=A.sizeType);try{f+=A.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.gL(Q,A,typeof A),_.K4(Q)}}return f.trim()},
computeIconPositionType_:function(A){return A&&A.iconPosition||null},
computeServiceEndpoint_:function(A){var t=A&&A.serviceEndpoint,f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:f&&A.command?A.command:null},
handleUpdateToggleButtonTextAction_:function(A){A=A.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==A.buttonId&&(this.set("data.defaultText",A.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",A.toggledText),this.notifyPath("data.toggledText"))}}];_.C1("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var X2E=_.M("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.M("web_button_rework_with_live"),ky=function(){var A=_.F.apply(this,arguments)||this;A.systemIcons=_.M("kevlar_system_icons");A.roundedContainer=!0;return A};
_.R(ky,_.F);ky.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ky.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var A=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var t={toggled:!!this.data.isToggled,actions:{}};t.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var f,X;t.actions.playlistId=(f=this.data.defaultServiceEndpoint)==null?void 0:(X=f.playlistEditEndpoint)==null?void 0:X.playlistId;_.s9(this.hostElement,"yt-toggle-button",t)}(A=A?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(A)}};
ky.prototype.onYtNavigate=function(A){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);t&&(A.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(t))};
_.PV.Object.defineProperties(ky,{template:{configurable:!0,enumerable:!0,get:function(){if(AvC===void 0){var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);AvC=A}A=AvC;return A}}});
ky.prototype.onYtNavigate=ky.prototype.onYtNavigate;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ky.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],ky.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(fqT.YtToggleButtonBehavior),_.H("design:type",Object)],ky.prototype,"ytToggleButtonBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],ky.prototype,"data",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],ky.prototype,"showTooltips",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ky.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ky.prototype,"roundedContainer",void 0);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ky.prototype,"onYtNavigate",null);
_.V([_.y_({is:"ytd-toggle-button-renderer",disableElementRegistration:X2E})],ky);var QNp,q6K;_.rA=new _.eh("PANEL_CONTROLLER_TOKEN");_.Ak=new _.eh("SHEET_CONTROLLER_TOKEN");_.tk=new _.eh("DIALOG_CONTROLLER_TOKEN");QNp=new _.eh("DIALOG_CONTAINER_TOKEN");q6K=new _.eh("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.fm=new _.eh("PERSISTENT_PANEL_CONTROLLER_TOKEN");var wBu=_.e5("DOWNLOAD",{},"Download"),s5T=_.e5("DOWNLOADING",{},"Downloading"),keu=_.e5("DOWNLOADED",{},"Downloaded"),rxq=_.e5("RETRY",{},"Retry");var JvT=_.I(function(A){var t=Qmx,f=function(){return""},X=AN0(A.data),Q=tgb(A.data),q=fpb(A.data),e=Xvx(A.data);
t=function(){var G=A.data(),N=Ke0(G,X(),Q(),q(),e()),z=!!G.videoId,T=N.text;return{title:z?T:void 0,tooltip:z?void 0:T,accessibilityText:T,onTap:N.onTap,iconName:N.iconType,style:G.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:N.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:G.buttonSize}};
f={};f=_.Ao("ytDownloadButtonViewModelHost",(f.ytDownloadButtonViewModelIsHidden=function(){var G=A.data(),N=e();return G.playlistId||N()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||N()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},f));
return _.u("download-button-view-model",{class:f},_.u(_.nx,{data:t}))},"ia");
JvT.idomCompat=!0;var zKz=new _.eh("SUBMIT_API_SERVICE_TOKEN");var lpq,Np5,PFb={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var EXb=new _.eh("RENDERER_LOGGER_TOKEN");var yNT=new _.eh("RENDERER_STAMPER_OPTIONS_TOKEN");var iCs;_.za=new BPl;iCs=new Map;var vX5="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),pvl=["notificationTextRenderer","notificationMultiActionRenderer"],
LAp="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),WAz=OCx(function(A){return _.$f(A==null?void 0:A.targetId)}).useUpdatableData;var bCl=0;_.P1.debugName="EjJbCe";var UQb=_.I(function(A){var t=A.data;A=A.className;_.Zk(function(){t().formId||_.HQ(Error("Dh"))});
var f=_.Gpz(function(){return t().formId},function(){return t().beforeSubmitCommand},function(){return t().afterSubmitCommand}),X=f.submitForm,Q=f.isValid,q=f.isSubmitting,e=function(){return{state:t().isDisabled||!Q()||q()?"disabled":"active"}};
return _.u("yt-submit-button-view-model",{class:_.Ao("ytSubmitButtonViewModelHost",A)},_.u(_.P1,{data:function(){return t().button}},{buttonViewModel:function(G){return _.u(_.nx,{data:G.data,
buttonOverrides:e,onClick:X})}}))},"la");var GlS=_.I(function(A){var t=A.backgroundLottieRef;var f=A.foregroundLottieRef;var X=A.children;var Q=A.wrapperClass;var q=A.disableAnimation;A=function(){return(_.M("web_animated_actions")||_.M("web_animated_actions_v2"))&&!(q==null?0:q())};
return _.u("yt-animated-action",{class:_.Ao("ytAnimatedActionHost",Q)},_.u("div",{class:"ytAnimatedActionContentWithBackground"},_.u(_.P,{cond:A,then:function(){return _.u(eBS,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:t==null?void 0:t(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(nX0()?"dark":"light")+"_v5.json"}}}})}}),X),_.u(_.P,{cond:A,
then:function(){return _.u(eBS,{lottiePlayerProps:function(){return{animationRef:f==null?void 0:f(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(nX0()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
GlS.idomCompat=!0;var eBS=_.I(function(A){var t=A.wrapperClass;var f=A.lottieClass;var X=A.lottiePlayerProps;return _.u("div",{class:_.Ao("ytAnimatedActionLottie",t),"aria-hidden":"true"},_.u(_.Ya,{className:f,data:X,animationName:function(){return X().animationConfig.name}}))},"na");var D6u={isOpen:!1};var Ip0={isAllowed:!1};var jmb={errorMessage:"",title:"",privacy:"",isDisabled:!0};var Vgl={isOpen:!1};var oXb={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var lqS={response:void 0};var SM5=function(A,t){A=A===void 0?lqS:A;switch(t.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},A,{response:t.payload});default:return A}};var N7l={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var $6b=function(A,t){A=A===void 0?N7l:A;switch(t.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},A,{nextDisabled:t.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},A,{nextCommand:t.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},A,{footerSubmissionData:t.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},A,{isImpersonationValid:t.payload});default:return A}};var uni={reportFormData:void 0,reportDetailsFormData:void 0};var HCq=function(A,t){A=A===void 0?uni:A;switch(t.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},A,{reportFormData:t.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},A,{reportDetailsFormData:t.payload});default:return A}};var zBS=void 0;_.M("mweb_enable_redux_store_on_demand")||(zBS=new SR(apu()));var Xv=_.M("enable_web_delhi_icons");var P_f=_.I(function(A){A=_.Sv(A,{themeOverride:void 0,animationRef:{}});var t=A.animatedIconType,f=A.active,X=A.themeOverride,Q=A.animationRef;A=A.staticIconFn;var q=_.U(_.hZ(void 0,void 0,"l48agc")),e=q.next().value,G=q.next().value,N=function(){a:{var L=t();var E=X==null?void 0:X();var D;E=(E==null?void 0:E.useDarkTheme)||((D=_.Px().resolve(_.z7(_.FH)))==null?void 0:D());switch(L){case "LIKE":zBS||(zBS=new SR(apu()));L=(L=MFu(zBS.getState()))&&L.animationLightUrl&&L.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:E?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:E?L.animationDarkUrl:L.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(L){E=L;break a}E="animated_like_icon_"+(E?"dark":"light")+"_"+(Xv?"v5":"v4");E={lottiePlayerProps:{animationConfig:{name:E,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+E+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Xv?" animated-like-icon-delhi":"")}}},totalFrames:Xv?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":E={lottiePlayerProps:{animationConfig:{name:E?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(E?"dark":"light")+(Xv?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Xv?" animated-subscribe-icon-delhi":"")}}},totalFrames:Xv?120:79,lazyLoad:!1};break a}E=
void 0}return E},z=function(){var L,E;
return(E=(L=N())==null?void 0:L.lottiePlayerProps.animationConfig.name)!=null?E:""},T=function(){if(N()){var L=N().lottiePlayerProps.animationConfig.path;
return O7.get(L)||e()}};
q=_.U(_.hZ(!1,void 0,"sDrGId"));var O=q.next().value;q=q.next().value;var c=gXT(q),B=function(){var L=N(),E,D,S;return(S=L==null?void 0:(E=L.lottiePlayerProps.animationConfig)==null?void 0:(D=E.rendererSettings)==null?void 0:D.className)!=null?S:""},h=void 0,W=void 0;
_.oo(function(){var L=N(),E=z(),D=T(),S=O(),Z=f();if(L&&(W!==E&&(W=E,h=Z,E=Q(),c.animationConfig=L.lottiePlayerProps.animationConfig,c.animationRef=E,D&&(c.animationConfig.animationData=D,c.animationConfig.path=void 0),E=L.lottiePlayerProps.animationConfig.path,!O7.get(E)&&L.lazyLoad&&E&&KAl(E,G)),!(S||L.lazyLoad&&!D))){if(D=!Q().lottieEl)Z?(S=L.totalFrames,c.animationConfig.initialSegment=[S-1,S]):c.animationConfig.initialSegment=void 0;if(h!==Z&&!D)if(D=Q(),Z){var d;(d=D.lottieEl)==null||d.playSegments([0,
L.totalFrames],!0)}else{var K;(K=D.lottieEl)==null||K.playSegments([0,1],!0)}h=Z}},"RQVZ1d");
return _.u("animated-icon",{class:"ytAnimatedIconHost"},_.u(_.P,{cond:function(){var L,E;return!((L=N())==null||!L.lottiePlayerProps.animationConfig.path||((E=N())==null?0:E.lazyLoad)&&!T()||O())},
then:function(){return _.u(_.Ya,{data:c,animationName:z,className:B,animationRef:Q})},
else:A}))},"pa");_.Qj=_.I(function(A){var t=_.GU("yt-subscribe-button-view-model"),f=_.GU("div"),X=_.GU("div"),Q=_.Un(),q=_.Un(),e=_.Un(),G=_.Nt(rNu,function(){return A.data().stateEntityStoreKey}),N=_.Nt(ACT,function(){var rs,OT;
return(OT=(rs=A.data().notificationStateEntityStoreKeys)==null?void 0:rs.subsNotificationStateKey)!=null?OT:""}),z=function(){return!A.data().enableSubscribeButtonPostClickAnimation},T=_.U(_.hZ(0,void 0,"YtsSKb")),O=T.next().value,c=T.next().value;
T=_.U(_.hZ(0,void 0,"V6JxRe"));var B=T.next().value,h=T.next().value;T=_.U(_.hZ(!1,void 0,"JUCSZ"));var W=T.next().value,L=T.next().value;T=_.U(_.hZ(!1,void 0,"oV6jwf"));var E=T.next().value,D=T.next().value;T=_.U(_.hZ(!1,void 0,"hK1Whe"));var S=T.next().value,Z=T.next().value,d;T=_.U(_.hZ(!1,void 0,"Asaolf"));var K=T.next().value,k=T.next().value,Gz=function(){D(!0);_.c1(_.a6,function(){D(!1)},1500)};
_.oo(function(){var rs=E();_.CF(function(){rs&&!z()&&G()&&zYb(Q,q,e)})},"Qq6Hsf");
_.oo(function(){var rs=G();_.CF(function(){if(!z()&&rs){var OT;((OT=A.animateWidth)==null?0:OT.call(A))&&u7g(t.value,!!rs.subscribed,O(),B());var bK,ET;((bK=d)==null?0:bK.subscribed)||!rs.subscribed||rs.key!==((ET=d)==null?void 0:ET.key)||Gz();d=rs}})},"hog8te");
T=_.yq(function(){var rs,OT,bK,ET=A.data(),m3=!((rs=G())==null||!rs.subscribed);rs=!((OT=A.isOverlay)==null||!OT.call(A));OT=W()?t:void 0;var O2=(bK=N())==null?void 0:bK.state;bK=K();NQb(ET,O2);return kpl({model:ET,subscribed:m3,isOverlay:rs,element:OT,notificationState:O2,disableTextEllipsis:!0,focused:bK})},void 0,"hc1PRd");
var Tz=function(){var rs;if(!z()&&((rs=A.animateWidth)==null?0:rs.call(A))&&(f==null?0:f.value)&&(X==null?0:X.value)&&!S()){rs=G();var OT=_.U((rs==null?0:rs.subscribed)?[f,X]:[X,f]),bK=OT.next().value;OT=OT.next().value;bK=Math.ceil(bK.value.getBoundingClientRect().width);OT=Math.ceil(OT.value.getBoundingClientRect().width);c(bK);h(OT);u7g(t.value,!(rs==null||!rs.subscribed),bK,OT);Z(!0)}},y5=_.f1(function(rs){Tz();
var OT=G();OT&&(rs.detail.endpoint.subscribeEndpoint||rs.detail.endpoint.unsubscribeEndpoint)&&eYl(t.value,!OT.subscribed,OT)}),cp=function(){var rs=_.Px().resolve(_.z7(_.mJ));
rs&&k(rs.isKeyBoardInUse())},iu=function(){k(!1)};
_.eU("yt-player-subscribe",function(rs){var OT=G();OT&&rs===A.data().channelId&&eYl(t.value,!0,OT)});
_.eU("yt-player-unsubscribe",function(rs){var OT=G();OT&&rs===A.data().channelId&&eYl(t.value,!1,OT)});
_.eU("yt-update-subscribe-button-action",function(rs){rs=_.C(rs,XYp);var OT=G();OT&&rs&&rs.channelId===A.data().channelId&&eYl(t.value,!!rs.subscribed,OT)});
_.oh(function(){t.value&&(t.value.addEventListener("focusin",cp),t.value.addEventListener("focusout",iu));var rs=_.jY(_.a6,function(){Tz()});
L(!0);_.dD(function(){_.a6.cancelJob(rs);t.value&&(t.value.removeEventListener("focusin",cp),t.value.removeEventListener("focusout",iu))})});
var Fb=function(){var rs,OT,bK;if(bK=!((rs=G())==null||!rs.subscribed))rs=!!A.data().disableNotificationBell,bK=(OT=N())==null?void 0:OT.state,bK=!rs&&!!bK;return bK},xq=function(){var rs;
return!((rs=G())==null?0:rs.subscribed)},Yq=function(){var rs,OT;
if(OT=xq()){OT=!!A.data().disableNotificationBell;var bK=(rs=N())==null?void 0:rs.state;OT=!OT&&!!bK}return OT},zk={},PT={};
return _.u("yt-subscribe-button-view-model",{class:_.Ao(A.className,"ytSubscribeButtonViewModelHost",(zk.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var rs,OT;return!((rs=G())==null||!rs.subscribed)&&((OT=A.animateWidth)==null?void 0:OT.call(A))&&E()},zk.ytSubscribeButtonViewModelHostHidden=function(){var rs;
return!((rs=G())==null?0:rs.subscribed)&&A.data().hideWhenUnsubscribed},zk)),
el:t,"on:yt-service-request-sent":y5},_.u(GlS,{backgroundLottieRef:Q,foregroundLottieRef:q,wrapperClass:_.Ao("ytSubscribeButtonViewModelAnimatedActionWrapper",(PT.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var rs;return((rs=A.animateWidth)==null?void 0:rs.call(A))&&E()},PT.ytSubscribeButtonViewModelStaticWidth=function(){var rs;
return!((rs=A.animateWidth)==null?0:rs.call(A))},PT)),
disableAnimation:z},_.u("div",{el:f,class:"ytSubscribeButtonViewModelContainer"},_.u(_.Lx,{data:T,icon:function(){return _.u(_.P,{cond:Fb,then:function(){var rs=function(){var OT;return USb((OT=N())==null?void 0:OT.state)};
return _.u(_.P,{cond:function(){return z()||rs()!=="NOTIFICATIONS_NONE"},
then:function(){return _.u(_.el,{icon:rs})},
else:function(){return _.u(P_f,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:e})}})}})},
secondaryIconName:function(){return Fb()?"EXPAND":void 0}}))),_.u("div",{el:X,
class:"ytSubscribeButtonViewModelInvisible"},_.u(_.P,{cond:function(){var rs;return((rs=A.animateWidth)==null?void 0:rs.call(A))&&!z()&&!S()},
then:function(){return _.u(_.Lx,{data:_.yq(function(){var rs;return kpl({model:A.data(),subscribed:xq(),isOverlay:!((rs=A.isOverlay)==null||!rs.call(A)),element:t,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var rs;return Yq()?USb((rs=N())==null?void 0:rs.state):void 0},
secondaryIconName:function(){return Yq()?"EXPAND":void 0}})}})))},"sa");
_.Qj.idomCompat=!0;var T7k=_.I(function(A){var t=A.data;var f=_.Nt(rNu,function(){return t().subscriptionStateEntityKey});
return _.u(_.P,{cond:function(){var X=t(),Q=f();return!X.hideWhenUnsubscribed||(Q==null?0:Q.subscribed)?_.C(t().button,_.zf):void 0},
then:function(X){return _.u("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.u(_.nx,{data:X,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
T7k.idomCompat=!0;var iHf,qV;iHf=_.I(function(A){return _.u(_.P1,{data:function(){return A.actionRow().actions}},{buttonViewModel:function(t){var f=t.data;
return _.u(qV,{isRow:A.isRow,isIconOnlyButton:function(){return Plz(f())},
useIntrinsicWidth:A.useIntrinsicWidth},_.u(_.nx,{data:f}))},
subscribeButtonViewModel:function(t){return _.u(qV,{isRow:A.isRow},_.u(_.Qj,{data:t.data,isOverlay:!1,animateWidth:function(){return!A.isRow()}}))},
downloadButtonViewModel:function(t){var f=t.data;return _.u(qV,{isRow:A.isRow,isIconOnlyButton:function(){return!!f().playlistId}},_.u(JvT,{data:f}))},
submitButtonViewModel:function(t){var f=t.data;return _.u(qV,{isRow:A.isRow,isIconOnlyButton:function(){var X=f();return Plz(_.C(X==null?void 0:X.button,_.zf))}},_.u(UQb,{data:f}))},
toggleButtonViewModel:function(t){var f=t.data;return _.u(qV,{isRow:A.isRow,isIconOnlyButton:function(){var X=f();return Plz(_.C(X.isToggled?X.toggledButtonViewModel:X.defaultButtonViewModel,_.zf))}},_.u(_.s$,{data:f}))},
subscribePlusButtonViewModel:function(t){return _.u(qV,{isRow:A.isRow},_.u(T7k,{data:t.data}))}})},"ua");
qV=_.I(function(A){var t={};return _.u("div",{class:_.Ao("ytFlexibleActionsViewModelAction",(t.ytFlexibleActionsViewModelActionRowAction=A.isRow,t.ytFlexibleActionsViewModelActionIntrinsicWidth=A.useIntrinsicWidth,t.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,t.ytFlexibleActionsViewModelActionIconOnlyButton=A.isIconOnlyButton,t))},A.children)},"va");
_.Jk=_.I(function(A){var t=function(){var X;return((X=A.layout)==null?void 0:X.call(A))===1},f={};
return _.u("yt-flexible-actions-view-model",{class:_.Ao("ytFlexibleActionsViewModelHost",A.className,(f.ytFlexibleActionsViewModelInline=function(){return!t()},f.ytFlexibleActionsViewModelScrollable=function(){return A.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},f))},_.u(_.xk,{each:function(){return A.data().actionsRows||[]}},function(X){return _.u(_.P,{cond:t,
then:function(){return _.u("div",{class:"ytFlexibleActionsViewModelActionRow"},_.u(iHf,{actionRow:X,isRow:t,useIntrinsicWidth:function(){return!!A.data().respectActionIntrinsicWidth}}))},
else:function(){return _.u(iHf,{actionRow:X,isRow:t})}})}))},"wa");_.Hn(_.Jk,"yt-flexible-actions-view-model",{props:{data:_.PS,layout:_.PS,justifyContentOverride:_.PS,className:_.PS}});_.U3=_.I(function(A){var t=_.Nt(vO,function(){var Q;return(Q=A.data().dislikeEntityKey)!=null?Q:""}),f=_.yq(function(){var Q=t();
return Q?Q.likeStatus==="DISLIKE":_.C(A.data().toggleButtonViewModel,_.Tf).isToggled},void 0,"fNr9he"),X=_.yq(function(){return Object.assign({},_.C(A.data().toggleButtonViewModel,_.Tf),{isToggled:f()})},void 0,"AezoCc");
return _.u("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.u(_.s$,{data:X,buttonShapeOverrides:A.buttonShapeOverrideables,onToggle:function(Q){var q=t();q&&Q!==(q.likeStatus==="DISLIKE")&&q.key&&_.og(_.m0("likeStatusEntity",q.key,{likeStatus:Q?"DISLIKE":"INDIFFERENT",hadUserInteraction:Q}))}}))},"xa");
_.U3.idomCompat=!0;_.eK=_.I(function(A){var t=_.M("web_supports_animations_api"),f=o8(function(c){var B=z();if(!c){var h,W;return{numberText:(W=B==null?void 0:(h=B.likeCountIfIndifferent)==null?void 0:h.content)!=null?W:"",numberValue:Number(B==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var L;h=(B==null?void 0:(L=B.likeCountIfIndifferent)==null?void 0:L.content)!==c.numberText;if(G()||!h)return c;var E;return{numberText:(B==null?void 0:(E=B.likeCountIfIndifferent)==null?void 0:E.content)||
"",numberValue:Number(B==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!B}}),X=o8(function(c){var B=z();
if(!c){var h,W;return{numberText:(W=B==null?void 0:(h=B.likeCountIfLiked)==null?void 0:h.content)!=null?W:"",numberValue:Number(B==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var L;h=(B==null?void 0:(L=B.likeCountIfIndifferent)==null?void 0:L.content)!==c.numberText;if(G()||!h)return c;var E;return{numberText:(B==null?void 0:(E=B.likeCountIfLiked)==null?void 0:E.content)||"",numberValue:Number(B==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!B}}),Q=_.U(_.hZ(void 0,
void 0,"xYSlUe")),q=Q.next().value,e=Q.next().value,G=q,N=_.Nt(vO,function(){var c,B;
return(B=(c=A.data())==null?void 0:c.likeStatusEntityKey)!=null?B:""}),z=_.Nt(X35,function(){var c,B;
return((c=A.likeCountEntity)==null?void 0:(B=c.call(A))==null?void 0:B.key)||""}),T=_.yq(function(){var c;
return((c=N())==null?void 0:c.likeStatus)==="LIKE"},void 0,"DG5Osd"),O=function(){var c;
return t&&!((c=A.likeCountEntity)==null||!c.call(A))};
return _.u("like-button-view-model",{class:_.Ao("ytLikeButtonViewModelHost",A.className)},_.u(_.s$,{data:function(){var c=Object,B=c.assign,h;var W=_.C((h=A.data())==null?void 0:h.toggleButtonViewModel,_.Tf);return B.call(c,{},W||{},{isToggled:T()})},
buttonShapeOverrides:A.buttonShapeOverrideables,animatedTextPropsDefault:function(){return O()?f():void 0},
animatedTextPropsToggled:function(){return O()?X():void 0},
onToggle:function(c){TQx(c,N(),G(),e)},
style:function(){var c;return((c=A.disableIconAnimation)==null?0:c.call(A))?void 0:{animateIcon:"true"}}}))},"ya");
_.eK.idomCompat=!0;var OHT=_.I(function(A){var t=function(){return _.C(A.data().likeButtonViewModel,_.Xw)},f=function(){var Q;
return((Q=t())==null?void 0:Q.likeStatusEntityKey)||""},X=_.yq(function(){var Q,q;
var e=(q=_.Nt(vO,f)())!=null?q:(Q=t())==null?void 0:Q.likeStatusEntity;Q=A.data();var G;Q=(Q==null?void 0:(G=Q.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"like-dislike",timings:Q,enabled:(e==null?void 0:e.likeStatus)==="INDIFFERENT"&&Q.length>0,experimentEnabled:Q.length>0}},void 0,"zZ3GQb");
return _.u("segmented-like-dislike-button-view-model",{class:_.Ao("ytSegmentedLikeDislikeButtonViewModelHost",A.className),"button-renderer":!0},_.u(rCl,{settings:X},_.u("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.u(_.P,{cond:t,then:function(Q){return _.u(_.eK,{data:Q,likeCountEntity:function(){return A.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.M("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.u(_.P,{cond:function(){return _.C(A.data().dislikeButtonViewModel,_.fl)},
then:function(Q){return _.u(_.U3,{data:Q,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
OHT.idomCompat=!0;_.Hn(OHT,"segmented-like-dislike-button-view-model",{props:{data:_.PS,className:_.PS}});var cvp=_.I(function(A){var t=A.data;var f=A.className;var X=A.setMinWidth;var Q=A.forceIconOnly;var q=_.GU("account-link-button-view-model"),e=_.Nt(_.iKT,function(){var c;return(c=t().accountLinkStatusEntityKey)!=null?c:""}),G=_.Nt(_.iKT,function(){var c;
return(c=t().accountLinkStatusSecondaryEntityKey)!=null?c:""}),N=function(){if(!_.M("web_account_link_secondary_killswitch")){var c,B;
return((c=e())==null?void 0:c.linked)||((B=G())==null?void 0:B.linked)}var h;return(h=e())==null?void 0:h.linked};
_.oo(function(){var c=e();if(c){var B=pXE(new LOi,yMl(new WO7,!!c.linked));_.Q9().then(function(h){h&&(h.setAccountLinkState(_.E2(B.JSC$12409_serializeBinary(),4)),h.updateAccountLinkingConfig(!!c.linked))})}},"IvZF7");
var z=function(){return _.C(t().toggleButtonViewModel,_.Tf)};
_.eU("yt-signal-action-show-account-link-dialog",function(){if(z()){var c=N()?z().toggledButtonViewModel:z().defaultButtonViewModel;c=_.C(c,_.zf);var B;if((B=e())==null?0:B.isWarning){B=_.C(t().warningButtonViewModel,_.zf);if(!B){_.te(Error("Eh"));return}c=B}var h;(B=_.bP((h=c)==null?void 0:h.onTap))&&_.Qg([B],q.value)}else _.te(Error("Fh"))});
var T=function(){var c=z();return Object.assign({},c,{isToggled:N()})},O=function(){return(Q==null?0:Q())?{iconPosition:"icon-only"}:{}};
return _.u("account-link-button-view-model",{class:_.Ao("ytwAccountLinkButtonViewModelHost",f,function(){return(X==null?0:X())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:q,"button-renderer":!0},_.u("div",null,_.u(_.P,{cond:function(){var c;if((c=e())==null?0:c.isWarning)return(c=_.C(t().warningButtonViewModel,_.zf))||_.te(Error("Eh")),c},
then:function(c){return _.u(_.nx,{data:c,buttonOverrides:O})},
else:function(){return _.u(_.s$,{data:T,buttonShapeOverrides:O})}})))},"Ba");_.Hn(cvp,"account-link-button-view-model",{props:{data:_.PS,className:_.dt,setMinWidth:_.dt,forceIconOnly:_.dt}});_.C1("menuRenderer","menuRenderer","ytd-menu-renderer");
var B7k={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"}},
Mzf=_.M("web_fix_missing_action_buttons")?100:200,Gd=function(){var A=_.F.apply(this,arguments)||this;A.safeArea=!_.M("kevlar_flex_menu_safe_area_killswitch");A.tonalOverride=!1;A.threeDotSize="M";A.isOverlay=!1;A.useOverlayDark=!1;A.topLevelIconsOnly=!1;A.JSC$14853_lastWidth=0;A.maybeUpdateFlexibleMenu=function(){_.M("web_fix_missing_action_buttons")?requestAnimationFrame(A.maybeUpdateFlexibleMenuImpl):A.maybeUpdateFlexibleMenuImpl()};
A.maybeUpdateFlexibleMenuImpl=function(){var t;if((t=A.data)!=null&&t.flexibleItems){A.maybeFlushDebouncer();t=A.hostElement.clientWidth;var f=t>A.JSC$14853_lastWidth,X,Q=((X=A.topLevelButtonsContainer)==null?void 0:X.scrollHeight)||0,q;X=((q=A.flexibleItemButtonsContainer)==null?void 0:q.scrollHeight)||0;q=A.hostElement.scrollHeight>Math.max(Q,X)+8;f?(A.resetFlexibleItems(),A.JSC$14853_lastWidth=A.hostElement.clientWidth,A.maybeUpdateFlexibleMenu()):q&&(A.shrinkFlexibleMenu(),A.JSC$14853_lastWidth=
t)}};
A.computeThreeDotButtonShape=function(){if(A.tonalOverride)return Object.assign({},{onTap:function(){A.onOverflowTap()},
iconPosition:"icon-only",style:A.isOverlay?A.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:A.threeDotSize,state:"active",accessibilityLabel:A.computeAccessibilityLabel(A.data)},A.threeDotButtonOverride)};
A.onOverflowTap=function(){if(A.data.fetchMenuCommand)_.Px().resolve(_.i2).resolveCommand(A.data.fetchMenuCommand,{form:{element:A.hostElement}});else if(A.data.isDisabled&&A.data.disabledCommand)_.Qx(A.data.disabledCommand,A.hostElement);else{var t=A.createMenuRendererVe(),f={items:A.items};A.data.menuPopupAccessibility&&(f.menuPopupAccessibility=A.data.menuPopupAccessibility);A.data.footer&&(f.footer=A.data.footer);t={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:f},veData:t}};
_.Px().resolve(_.Ak).openSheet({openPopupActionCommand:t},A.hostElement)}};
return A};
_.R(Gd,_.F);_.J=Gd.prototype;_.J.updateButtonOverrides=function(){if(!_.M("menu_renderer_label_update_upkillswitch")){var A=_.sF(this.hostElement).querySelector("yt-button-view-model");A&&(A.buttonOverrides=this.buttonOverrides)}};
_.J.computeHasItems=function(){var A;return((A=this.topLevelButtonData)==null?void 0:A.length)||this.hasFlexibleItems};
_.J.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.J.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Q_(this.hostElement,{"--ytd-menu-renderer-button-color":_.mt(this.data.iconColor)}))};
_.J.onStamperFinished=function(){this.JSC$14853_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.J.setupFlexibleMenu=function(){var A=this,t;(t=this.data)!=null&&t.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.qI(this.maybeUpdateFlexibleMenu,Mzf,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){A.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))};
_.J.maybeFlushDebouncer=function(){if(_.M("web_replace_formatted_with_attributed_string")){var A;(A=this.topLevelButtons)==null||A.forEach(function(f){var X;(f=(X=f.getElementsByTagName("yt-attributed-string"))==null?void 0:X[0])&&MBx(f)});
var t;(t=this.flexibleItemButtons)==null||t.forEach(function(f){var X;(f=(X=f.getElementsByTagName("yt-attributed-string"))==null?void 0:X[0])&&MBx(f)})}};
_.J.resetFlexibleItems=function(){var A;if((A=this.data)!=null&&A.flexibleItems){_.M("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var t;this.flexAsTopLevelButtons=(t=this.data.flexibleItems)==null?void 0:t.map(function(f){return _.C(f,_.G4l).topLevelButton});
_.M("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.J.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.J.shrinkFlexibleMenu=function(){var A;(A=this.flexAsTopLevelButtons)!=null&&A.length&&(this.flexAsTopLevelButtons=[].concat(_.YV(this.flexAsTopLevelButtons.slice(0,-1))))};
_.J.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:B7k,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:B7k,events:!0}}};
_.J.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.detached=function(){this.icon="MORE_VERT"};
_.J.computeTopLevelButtonData=function(A){if(!A)return[];var t;A=(t=A==null?void 0:A.topLevelButtons)!=null?t:[];return _.VG.unsafeClone([].concat(_.YV(A)))};
_.J.computeItems=function(A,t){if(!A)return[];var f=[];if(t){var X=(A.flexibleItems||[]).map(function(e){return _.C(e,_.G4l)});
X=_.U(X);for(var Q=X.next();!Q.done;Q=X.next())Q=Q.value,t.includes(Q.topLevelButton)||(Q=Q.menuItem)&&f.push(Q)}var q;A=(q=A==null?void 0:A.items)!=null?q:[];return[].concat(_.YV(f),_.YV(A))};
_.J.computeMenuActive=function(A,t){return A||t};
_.J.onPopupOpened=function(){this.overlayOpen=!0;_.s9(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.J.onPopupClosed=function(){this.overlayOpen=!1;_.s9(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.onPopupCanceled=function(){this.overlayOpen=!1;_.s9(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.computeAccessibilityLabel=function(A){return this.get("accessibility.accessibilityData.label",A)};
_.J.isHidden=function(A,t){return this.tonalOverride||!A?!0:A.fetchMenuCommand||A.isDisabled&&A.disabledCommand?!1:!(t==null?0:t.length)};
_.J.isModernOverflowHidden=function(A,t){return this.tonalOverride&&A?A.fetchMenuCommand?!1:!(t==null?0:t.length):!0};
_.J.createMenuRendererVe=function(){var A=this.data.trackingParams,t=_.Ws(),f=_.mx();return A&&t&&f?(A=_.zV(A),f=_.Xl(7591),_.M("combine_ve_grafts")?_.jN(_.er(),f,A):_.x7(t,A,f),f):null};
_.PV.Object.defineProperties(Gd.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.flexAsTopLevelButtons)==null||!A.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Gd.prototype.onPopupCanceled=Gd.prototype.onPopupCanceled;Gd.prototype.onPopupClosed=Gd.prototype.onPopupClosed;Gd.prototype.onPopupOpened=Gd.prototype.onPopupOpened;Gd.prototype.tonalOverrideChanged=Gd.prototype.tonalOverrideChanged;Gd.prototype.resetFlexibleItems=Gd.prototype.resetFlexibleItems;Gd.prototype.setupFlexibleMenu=Gd.prototype.setupFlexibleMenu;Gd.prototype.iconButtonColorChanged=Gd.prototype.iconButtonColorChanged;Gd.prototype.updateButtonOverrides=Gd.prototype.updateButtonOverrides;
_.V([_.b(_.RH),_.H("design:type",Object)],Gd.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Gd.prototype,"ytRendererstamperBehavior",void 0);_.V([_.lo("#button-shape"),_.H("design:type",HTMLElement)],Gd.prototype,"buttonShape",void 0);_.V([_.lo("#button"),_.H("design:type",Object)],Gd.prototype,"button",void 0);
_.V([_.n(),_.H("design:type",Object)],Gd.prototype,"data",void 0);_.V([_.n({computed:"computeTopLevelButtonData(data)"}),_.H("design:type",Array)],Gd.prototype,"topLevelButtonData",void 0);_.V([_.n(),_.H("design:type",Array)],Gd.prototype,"flexAsTopLevelButtons",void 0);_.V([_.n({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.H("design:type",Array)],Gd.prototype,"items",void 0);_.V([_.n({value:"MORE_VERT"}),_.H("design:type",String)],Gd.prototype,"icon",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Gd.prototype,"safeArea",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.H("design:type",Boolean)],Gd.prototype,"menuActive",void 0);_.V([_.n(),_.H("design:type",Boolean)],Gd.prototype,"menuFocused",void 0);_.V([_.n({value:"bottom"}),_.H("design:type",String)],Gd.prototype,"buttonTooltipPosition",void 0);_.V([_.n(),_.H("design:type",Boolean)],Gd.prototype,"overlayOpen",void 0);
_.V([_.n({value:!0}),_.H("design:type",Boolean)],Gd.prototype,"forceIconButton",void 0);_.V([_.n(),_.H("design:type",Boolean)],Gd.prototype,"styleActionButton",void 0);_.V([_.n(),_.H("design:type",Boolean)],Gd.prototype,"disableTextTransformOnButtons",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Gd.prototype,"tonalOverride",void 0);_.V([_.n(),_.H("design:type",Object)],Gd.prototype,"threeDotSize",void 0);
_.V([_.n(),_.H("design:type",Object)],Gd.prototype,"threeDotButtonOverride",void 0);_.V([_.n(),_.H("design:type",Object)],Gd.prototype,"isOverlay",void 0);_.V([_.n(),_.H("design:type",Object)],Gd.prototype,"useOverlayDark",void 0);_.V([_.n({computed:"computeButtonOverride(tonalOverride)"}),_.H("design:type",Object)],Gd.prototype,"buttonOverride",void 0);_.V([_.n(),_.H("design:type",Boolean)],Gd.prototype,"minimizePipBreakages",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Gd.prototype,"hasCustomIconColor",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("flexAsTopLevelButtons"),_.H("design:type",Object),_.H("design:paramtypes",[])],Gd.prototype,"hasFlexibleItems",null);_.V([_.n({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.H("design:type",Boolean)],Gd.prototype,"hasItems",void 0);_.V([_.n(),_.H("design:type",Object)],Gd.prototype,"topLevelIconsOnly",void 0);
_.V([_.ev("topLevelIconsOnly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gd.prototype,"updateButtonOverrides",null);_.V([_.y("topLevelIconsOnly"),_.H("design:type",Object),_.H("design:paramtypes",[])],Gd.prototype,"buttonOverrides",null);_.V([_.lo("#top-level-buttons-computed"),_.H("design:type",HTMLElement)],Gd.prototype,"topLevelButtonsContainer",void 0);_.V([_.NL(".top-level-buttons > *"),_.H("design:type",Array)],Gd.prototype,"topLevelButtons",void 0);
_.V([_.lo("#flexible-item-buttons"),_.H("design:type",HTMLElement)],Gd.prototype,"flexibleItemButtonsContainer",void 0);_.V([_.NL("#flexible-item-buttons > *"),_.H("design:type",Array)],Gd.prototype,"flexibleItemButtons",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gd.prototype,"iconButtonColorChanged",null);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gd.prototype,"setupFlexibleMenu",null);_.V([_.PU("topLevelIconsOnly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gd.prototype,"resetFlexibleItems",null);_.V([_.ev("tonalOverride"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gd.prototype,"tonalOverrideChanged",null);
_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gd.prototype,"onPopupOpened",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gd.prototype,"onPopupClosed",null);_.V([_.UQ("yt-popup-canceled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gd.prototype,"onPopupCanceled",null);
_.Y(Gd,"ytd-menu-renderer",function(){if(YrE===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);YrE=A}A=YrE;return A},{mode:2});var C_w;var hBl;_.lO=_.I(function(A){var t=A.data;var f=function(){if(t().icon)a:{var Q={iconName:t().icon};for(var q=_.Px().resolve(_.fI),e=_.U([12,24]),G=e.next();!G.done;G=e.next()){var N=G.value;G=Object.assign({},Q,{iconStyle:"youtube_fill",iconSize:N});N=Object.assign({},Q,{iconStyle:"youtube_outline",iconSize:N});if(q.resolveIcon(G)){Q=G;break a}if(q.resolveIcon(N)){Q=N;break a}}Q=void 0}else Q=void 0;return Q};
A={};var X={};return _.u("badge-shape",{class:_.Ao("yt-badge-shape",function(){return hYp(t().type)},(A["yt-badge-shape--overlay"]=function(){return t().isOverlay},A["yt-badge-shape--ads-include-dot"]=function(){return t().adsIncludeDot},A["yt-badge-shape--thumbnail-badge"]=function(){a:switch(t().type){case 17:case 18:case 19:var Q=!0;
break a;default:Q=!1}return Q},A["yt-badge-shape--status-badge"]=function(){a:switch(t().type){case 12:case 13:case 14:case 15:case 16:var Q=!0;
break a;default:Q=!1}return Q},A["yt-badge-shape--no-text"]=function(){return!t().text},A["yt-badge-shape--modern"]=function(){return t().modern||_.M("web_modern_badge_shape")},A)),
style:_.U7({"background-color":function(){var Q;return(Q=t().customColors)==null?void 0:Q.backgroundColor}}),
role:function(){return t().accessibilityText?"img":void 0},
"aria-label":function(){return t().accessibilityText}},_.u(_.P,{cond:function(){return t().animation},
then:function(Q){return _.u(_.Ya,{className:"yt-badge-shape__icon",data:Q,animationName:function(){return Q().animationConfig.name||""}})}}),_.u(_.P,{cond:function(){var Q;
return f()&&!((Q=t())==null?0:Q.animation)},
then:function(){return _.u("div",{class:"yt-badge-shape__icon"},_.u(_.cO,{data:function(){return f()}}))}}),_.u("div",{class:_.Ao("yt-badge-shape__text",(X["yt-badge-shape__text--clip-text-overflow"]=function(){return t().clipTextOverflow},X["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(t().numBadgesInRow||0)>1},X))},function(){var Q;
return(Q=t())==null?void 0:Q.text}))},"Ca");
_.lO.idomCompat=!0;_.Hn(_.lO,"badge-shape",{props:{data:_.PS}});var NV=function(){var A=_.F.apply(this,arguments)||this;A.systemIcons=_.M("kevlar_system_icons");A.animated=_.M("animated_live_badge_icon");A.useBadgeShape=_.M("web_badge_shape_defrag");return A};
_.R(NV,_.F);_.J=NV.prototype;_.J.addTooltips=function(){for(var A=_.sF(this.hostElement).querySelectorAll(".badge"),t=0,f;f=A[t++];){var X=this.repeatElement.itemForElement(f);f=_.sF(f);f.lastChild&&f.lastChild.is==="tp-yt-paper-tooltip"&&f.removeChild(f.lastChild);if(X=X.metadataBadgeRenderer&&X.metadataBadgeRenderer.tooltip){var Q=_.MX("tp-yt-paper-tooltip");(0,_.XD)(Q).textContent=X;Q.setAttribute("position","top");Q.setAttribute("aria-hidden","true");f.appendChild(Q)}}};
_.J.badgesChanged=function(){var A=this;_.TT().parkOrScheduleJob(function(){A.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.J.standaloneRoundedBadgeChanged=function(){var A=this.useRoundedBadge?this.useRoundedBadge:void 0;A&&(this.useRoundedBadge=A)};
_.J.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.computeStyle=function(A){_.M("enable_html5_teal_ad_badge")&&A==="BADGE_STYLE_TYPE_AD"&&(A="badge-style-type-ad-alternate");_.M("kevlar_ytb_live_badges")&&A==="BADGE_STYLE_TYPE_LIVE_NOW"&&(A="badge-style-type-live-now-alternate");return A?A.toLowerCase().replace(/_/g,"-"):""};
_.J.computeRole=function(A){return this.computeAriaLabel(A)?"img":"status"};
_.J.computeAriaLabel=function(A){var t;return(A==null?void 0:(t=A.accessibilityData)==null?void 0:t.label)||(A==null?void 0:A.label)};
_.J.computeBadgeShape=function(A){if(A){var t,f;var X=MEx(A.style);var Q=Clx(A.style),q=A.label,e=((t=A.accessibilityData)==null?void 0:t.label)||A.label;a:switch(A.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":t=!0;break a;default:t=!1}var G=(f=A.icon)==null?void 0:f.iconType;a:switch(A.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":A=!0;break a;default:A=!1}X={type:X,brNzRatingBadgeType:Q,text:q,accessibilityText:e,
isOverlay:t,icon:G!=="PREMIUM"?G:void 0,modern:_.M("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:A}}else X={};return X};
_.J.updateComputedBadges=function(A,t,f){var X=this;(t=t?[t]:f?[f]:void 0)?this.computedBadges=t:this.computedBadges=A==null?void 0:A.filter(function(Q){var q;if((q=Q.metadataBadgeRenderer)==null?0:q.groups){q=!1;Q=_.U(Q.metadataBadgeRenderer.groups);for(var e=Q.next();!e.done;e=Q.next()){e=e.value;var G=void 0;q=q||((G=X.hiddenBadgeGroups)==null?void 0:G.includes(e))}return!q}return!0})};
_.J.useFilledIcons=function(A){return _.M("kevlar_system_icons")&&(A==="AUDIO_BADGE"||A==="CHECK_CIRCLE_THICK"||A==="OFFICIAL_ARTIST_BADGE"||A==="SPONSORSHIP_STAR"||A==="PERSON_RADAR_FILLED"||A==="PERSON_RADAR")};
_.J.computeBadgeShapeStyle=function(A){return this.useBadgeShape?A==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||A==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":A==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.J.computeIcon=function(A){var t,f;A=A==null?void 0:(t=A.metadataBadgeRenderer)==null?void 0:(f=t.icon)==null?void 0:f.iconType;if(A!=="PREMIUM"&&A)return _.t7(A)};
_.J.computeStandaloneBadge=function(A){var t;A=A==null?void 0:(t=A.icon)==null?void 0:t.iconType;return A==="PREMIUM_STANDALONE"||A==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
NV.prototype.hiddenBadgeGroupsChanged=NV.prototype.hiddenBadgeGroupsChanged;NV.prototype.standaloneBadgeChanged=NV.prototype.standaloneBadgeChanged;NV.prototype.standaloneRoundedBadgeChanged=NV.prototype.standaloneRoundedBadgeChanged;NV.prototype.badgesChanged=NV.prototype.badgesChanged;_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"hidden",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],NV.prototype,"componentBehavior",void 0);
_.V([_.n(),_.H("design:type",Array)],NV.prototype,"badges",void 0);_.V([_.n(),_.H("design:type",Object)],NV.prototype,"topStandaloneBadge",void 0);_.V([_.n(),_.H("design:type",Object)],NV.prototype,"bottomStandaloneBadge",void 0);_.V([_.n(),_.H("design:type",Object)],NV.prototype,"computedBadges",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"mediumFontAdBadge",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"useRoundedBadge",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"largeFontAdBadge",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"overlayAd",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"overlayPremium",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"noDotAdBadge",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"collectionTruncate",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"isThumbnailBadge",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NV.prototype,"wrapBadges",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Number)],NV.prototype,"numBadgesInRow",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],NV.prototype,"systemIcons",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],NV.prototype,"animated",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],NV.prototype,"useBadgeShape",void 0);_.V([_.n({value:[]}),_.H("design:type",Array)],NV.prototype,"hiddenBadgeGroups",void 0);_.V([_.lo("#repeat"),_.H("design:type",hY)],NV.prototype,"repeatElement",void 0);_.V([_.PU("badges"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NV.prototype,"badgesChanged",null);
_.V([_.PU("useRoundedBadge"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NV.prototype,"standaloneRoundedBadgeChanged",null);_.V([_.PU("topStandaloneBadge","bottomStandaloneBadge"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NV.prototype,"standaloneBadgeChanged",null);_.V([_.PU("hiddenBadgeGroups"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NV.prototype,"hiddenBadgeGroupsChanged",null);
_.V([_.y_({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],NV);
var RBk=_.wR()(NV,"ytd-badge-supported-renderer",function(){if(hBl===void 0){var A=document.createElement("template");_.m(A,'\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"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);hBl=A}A=hBl;return A},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.sQ("kevlar_poly_si_batch_j053")?1:2});var uO=function(){var A=_.F.apply(this,arguments)||this;A.iconType="STAR";A.plaMedium=_.M("enable_pla_resizing_for_desktop_medium");A.plaLarge=_.M("enable_pla_resizing_for_desktop_large");A.plaExtraLarge=_.M("enable_pla_resizing_for_desktop_extra_large");A.standardizeIconSize=_.M("kevlar_system_icons");A.mediaHoverOverlayInitialVisibility=_.M("enable_top_landscape_image_button_command_web");A.noBottomMargin=!1;A.thumbnailObjectFit="CONTAIN";A.thumbnailFitHeight=!0;A.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return A};
_.R(uO,_.F);_.J=uO.prototype;_.J.created=function(){this.activeView=new p2(this.hostElement)};
_.J.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"}}}};
_.J.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",uO.JSC$14865_DEFAULT_CLICK_LOCATION_BEHAVIOR,uO.JSC$14865_CLICK_LOCATION_ID_MAP))};
_.J.onTap=function(A){this.onTapOrClick(A)};
_.J.onTapOrClick=function(A){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,A,!1)};
_.J.updateMediaBackgroundImage=function(){var A=this.get("data.image.thumbnail.thumbnails");A&&(A=_.a8(A,0))&&_.Q_(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+A+")"})};
_.J.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var A=0;A<this.data.impressionEndpoints.length;A++){var t=this.data.impressionEndpoints[A];t.clickTrackingParams&&delete t.clickTrackingParams;_.Px().resolve(_.i2).resolveCommand(t,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var f;((f=this.data)==null?0:f.activeView)&&EW(this.activeView,this.data.activeView)}};
_.J.handleMuteAd=function(){};
_.J.attached=function(){var A=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&n2(A.activeView)})};
_.J.detached=function(){_.M("stop_av_measurement_on_detach")&&n2(this.activeView)};
_.PV.Object.defineProperties(uO.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.titleText)return"";var t;return _.e5("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((t=this.data)==null?void 0:t.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.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 A;return!((A=this.data)==null||!A.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"}}});
uO.prototype.onTap=uO.prototype.onTap;uO.prototype.dataChanged=uO.prototype.dataChanged;
uO.JSC$14865_CLICK_LOCATION_ID_MAP=_.M("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"]]);
uO.JSC$14865_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.M("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"}];_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.UW),_.H("design:type",Object)],uO.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],uO.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],uO.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.b([_.jD.YtActionHandlerBehavior]),_.H("design:type",Object)],uO.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],uO.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],uO.prototype,"clickCommand",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],uO.prototype,"miniMode",void 0);_.V([_.n(),_.H("design:type",String)],uO.prototype,"iconType",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uO.prototype,"plaMedium",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uO.prototype,"plaLarge",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uO.prototype,"plaExtraLarge",void 0);_.V([_.y("data.titleText"),_.H("design:type",String),_.H("design:paramtypes",[])],uO.prototype,"titleAriaLabel",null);_.V([_.y("data.rating"),_.H("design:type",Object),_.H("design:paramtypes",[])],uO.prototype,"getRating",null);_.V([_.y("data.price"),_.H("design:type",Object),_.H("design:paramtypes",[])],uO.prototype,"getPrice",null);
_.V([_.y("data.thirdLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],uO.prototype,"getThirdLine",null);_.V([_.y("data.fourthLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],uO.prototype,"getFourthLine",null);_.V([_.y("data.fifthLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],uO.prototype,"getFifthLine",null);_.V([_.y("getRating"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uO.prototype,"computeRatingHidden",null);
_.V([_.y("getPrice"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uO.prototype,"computePriceHidden",null);_.V([_.y("getThirdLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uO.prototype,"computeThirdLineHidden",null);_.V([_.y("getFourthLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uO.prototype,"computeFourthLineHidden",null);_.V([_.y("getFifthLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uO.prototype,"computeFifthLineHidden",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data.energyIcon"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uO.prototype,"hasEnergyIcon",null);_.V([_.y("computePriceHidden","computeRatingHidden"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uO.prototype,"computeSecondaryTextHidden",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uO.prototype,"standardizeIconSize",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uO.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uO.prototype,"noBottomMargin",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.layout"),_.H("design:type",String),_.H("design:paramtypes",[])],uO.prototype,"layout",null);_.V([_.y("data.layout"),_.H("design:type",Object),_.H("design:paramtypes",[])],uO.prototype,"mediaThumbnailWidth",null);
_.V([_.y("layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uO.prototype,"useRoundedBadge",null);_.V([_.n(),_.H("design:type",String)],uO.prototype,"thumbnailObjectFit",void 0);_.V([_.n(),_.H("design:type",Object)],uO.prototype,"thumbnailFitHeight",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uO.prototype,"dataChanged",null);
_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],uO.prototype,"onTap",null);_.V([_.y_({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],uO);
_.Y(uO,"ytd-display-ad-renderer",function(){if(C_w!==void 0)return C_w;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return C_w=A},{mode:1});var mQl;var bHf;var WXp;var RYx=new Map;var yvl=!1;var zd=function(){var A=_.F.apply(this,arguments)||this;A.DEFAULT_TOOLTIP_OFFSET="10";A.TOOLTIP_OFFSET_NO_BANNER="-8";A.badges=null;A.noEndpoints=!1;A.wrapText=!1;A.forceVerified=!1;A.tooltipPosition="top";A.compactStyle=!1;A.height=0;A.lineHeight=0;return A};
_.R(zd,_.F);_.J=zd.prototype;_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.J.attached=function(){var A=this;this.observer=new MutationObserver(function(t,f){A.handleResized();f.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.J.detached=function(){this.observer&&this.observer.disconnect()};
_.J.logTooltipEvent=function(){_.M("kevlar_wiz_tooltip_event_killswitch")||yvl||(_.mSl("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),yvl=!0)};
_.J.handleWindowResized=function(){this.handleResized()};
_.J.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")))};
_.J.onHeightChanged=function(){if(this.verified){var A=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.ah("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=A:this.textContainerEl.style.marginRight=A}};
_.J.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.ah("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.J.handleResized=function(){var A=this;this.verified&&_.a6.addLowPriorityJob(function(){A.fitBackgroundToText();var t=getComputedStyle(A.hostElement).lineHeight;t&&(t=t.match(/\d+/))&&t.length&&(A.lineHeight=Number(t[0]));A.height=A.lineHeight&&!A.wrapText?A.lineHeight:A.textEl.offsetHeight})};
_.J.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var A=document.createRange(),t=_.sF(this.textEl).children;t.length>0?A.selectNodeContents(t[0]):A.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(A.getBoundingClientRect().width)+"px"}};
_.J.computeChannelBadgeStyle=function(A){var t;if((A==null?0:(t=A.runs)==null?0:t.length)&&A.runs[0].textColor)return"--ytd-badge-icon-color:"+_.mt(A.runs[0].textColor)+";"};
_.PV.Object.defineProperties(zd.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"?_.oC(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var A=this.get("badges.0.metadataBadgeRenderer.tooltip");if(A)return A}return _.dF(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
zd.prototype.onLineHeightChanged=zd.prototype.onLineHeightChanged;zd.prototype.onHeightChanged=zd.prototype.onHeightChanged;zd.prototype.onChannelNameChanged=zd.prototype.onChannelNameChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],zd.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],zd.prototype,"badges",void 0);_.V([_.n(),_.H("design:type",Object)],zd.prototype,"channelName",void 0);
_.V([_.n(),_.H("design:type",Object)],zd.prototype,"noEndpoints",void 0);_.V([_.n(),_.H("design:type",Object)],zd.prototype,"wrapText",void 0);_.V([_.n(),_.H("design:type",Object)],zd.prototype,"forceVerified",void 0);_.V([_.n(),_.H("design:type",Object)],zd.prototype,"tooltipPosition",void 0);_.V([_.n(),_.H("design:type",String)],zd.prototype,"tooltip",void 0);_.V([_.n(),_.H("design:type",Boolean)],zd.prototype,"hasChannelArt",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],zd.prototype,"compactStyle",void 0);_.V([_.lo("#text-container"),_.H("design:type",HTMLElement)],zd.prototype,"textContainerEl",void 0);_.V([_.lo("#text"),_.H("design:type",Object)],zd.prototype,"textEl",void 0);_.V([_.lo("#verified-tooltip"),_.H("design:type",HTMLElement)],zd.prototype,"verifiedTooltip",void 0);_.V([_.n(),_.H("design:type",Object)],zd.prototype,"height",void 0);
_.V([_.n(),_.H("design:type",Object)],zd.prototype,"lineHeight",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("badges","forceVerified"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],zd.prototype,"verified",null);_.V([_.y("badges","verified"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],zd.prototype,"hideBadges",null);_.V([_.y("channelName"),_.H("design:type",Object),_.H("design:paramtypes",[])],zd.prototype,"formattedName",null);
_.V([_.y("badges","verified","formattedName"),_.H("design:type",String),_.H("design:paramtypes",[])],zd.prototype,"tooltipText",null);_.V([_.y("hasChannelArt"),_.H("design:type",String),_.H("design:paramtypes",[])],zd.prototype,"tooltipOffset",null);_.V([_.ev("channelName"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zd.prototype,"onChannelNameChanged",null);
_.V([_.ev("height"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zd.prototype,"onHeightChanged",null);_.V([_.ev("lineHeight","height"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zd.prototype,"onLineHeightChanged",null);_.V([_.y_({is:"ytd-channel-name",disableElementRegistration:!0})],zd);
_.Y(zd,"ytd-channel-name",function(){if(WXp!==void 0)return WXp;var A=document.createElement("template");_.m(A,'\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 aria-hidden="true" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return WXp=A},{mode:_.sQ("kevlar_poly_si_batch_j036")?1:2});var Pg=function(){var A=_.F.apply(this,arguments)||this;A.standardizeIconSize=_.M("kevlar_system_icons");return A};
_.R(Pg,_.F);Pg.prototype.basicPaletteChanged=function(){var A;(A=this.data.color)!=null&&A.basicColorPaletteData&&_.BO(this.hostElement,this.data.color.basicColorPaletteData)};
Pg.prototype.useFilledIcons=function(A){return _.M("kevlar_system_icons")&&(A==="CHECK_CIRCLE_THICK"||A==="OFFICIAL_ARTIST_BADGE")};
_.PV.Object.defineProperties(Pg.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return this.data.authorCreator||((A=this.data)==null?void 0:(t=A.color)==null?void 0:(f=t.basicColorPaletteData)==null?void 0:f.backgroundColor)}}});
Pg.prototype.basicPaletteChanged=Pg.prototype.basicPaletteChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Pg.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Pg.prototype,"standardizeIconSize",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.authorUnifiedVerified"),_.H("design:type",Object),_.H("design:paramtypes",[])],Pg.prototype,"verified",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Pg.prototype,"creator",null);_.V([_.ev("data.color.basicColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pg.prototype,"basicPaletteChanged",null);_.V([_.y_({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Pg);
_.Y(Pg,"ytd-author-comment-badge-renderer",function(){if(bHf!==void 0)return bHf;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return bHf=A},{mode:1});var vRT;var Td=function(){return _.F.apply(this,arguments)||this};
_.R(Td,_.F);Td.prototype.computeThumbnailWidth=function(A){if(A==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Td.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],Td.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Td.prototype,"surface",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.M("enable_shrink_image_size_on_web_posts_singleton")}),_.H("design:type",Boolean)],Td.prototype,"searchSxsUx",void 0);_.V([_.n({reflectToAttribute:!0,value:_.M("enable_community_page_on_desktop")}),_.H("design:type",Boolean)],Td.prototype,"useSmallerPostImageAttachments",void 0);_.V([_.y_({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Td);
_.Y(Td,"ytd-backstage-image-renderer",function(){if(vRT!==void 0)return vRT;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return vRT=A},{mode:1});var LXE;var iO=function(){var A=_.F.apply(this,arguments)||this;A.isLoading=!1;A.selectedItemIndex=-1;return A};
_.R(iO,_.F);_.J=iO.prototype;_.J.computeIsChannelOwner=function(A){if(!A)return!0;A=A[0];return!(A&&(A.signinEndpoint||A.selectServiceEndpoint))};
_.J.computeIsImagePoll=function(A){return(A==null?void 0:A.type)==="POLL_TYPE_IMAGE"};
_.J.computeIsTotalVotesDisabled=function(A){return!(A==null?0:A.totalVotes)};
_.J.thumbnailSrc=function(A){var t,f,X,Q;return(A==null?0:(t=A.thumbnails)==null?0:(f=t[0])==null?0:f.url)?_.of((X=A.thumbnails)==null?void 0:(Q=X[0])==null?void 0:Q.url):void 0};
_.J.progressWidth=function(A){return"width:"+(A?A*100:0)+"%;"};
_.J.textAreaWidth=function(A){return this.isImagePoll?null:"width:"+(A?A*100:0)+"%;"};
_.J.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.J.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var A=this.data.choices,t=0;t<A.length;t++)if(A[t].selected){this.selectedItemIndex=t;break}};
_.J.onPopupClosed=function(A,t){A=Number(this.pollVotes.selected);t.confirmed&&(this.selectChoice(A,!1),_.kJ(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.J.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.J.onYtCommentPollRevert=function(A,t){t&&(this.selectChoice(t.selectedChoiceIndex,!0),this.set("data.totalVotes",t.totalVotes))};
_.J.onYtServiceRequestSent=function(A,t){if(t.actions)for(A=0;A<t.actions.length;A++){var f=t.actions[A];_.C(f,S4)&&this.set("data.totalVotes",_.C(f,S4).totalVotes)}};
_.J.onYtServiceRequestCompleted=function(A){var t=this.get("detail.data.actionResults.0.feedback",A);A=this.get("detail.data.actionResults.0.status",A);if(t==="FEEDBACK_DESELECT"||t==="FEEDBACK_SELECT")this.isLoading=!1,A==="STATUS_FAILED"?_.s9(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.J.getEndpoint=function(A,t){return t===A?this.data.choices[t].deselectServiceEndpoint||null:this.data.choices[A].selectServiceEndpoint||null};
_.J.selectChoice=function(A,t){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var f=0;f<this.data.choices.length;f++){var X;if(A===this.selectedItemIndex){var Q=!1;var q=X=null}else X=(Q=f===A)?this.data.choices[f].voteRatioIfSelected:this.data.choices[f].voteRatioIfNotSelected,q=Q?this.data.choices[f].votePercentageIfSelected:this.data.choices[f].votePercentageIfNotSelected;this.set("data.choices."+f+".voteRatio",X);
this.set("data.choices."+f+".votePercentage",q);this.set("data.choices."+f+".selected",Q)}t||(this.isLoading=!0,(t=this.getEndpoint(A,this.selectedItemIndex))&&_.Px().resolve(_.i2).resolveCommand(t,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===A?-1:A};
_.PV.Object.defineProperties(iO.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
iO.prototype.onYtServiceRequestCompleted=iO.prototype.onYtServiceRequestCompleted;iO.prototype.onYtServiceRequestSent=iO.prototype.onYtServiceRequestSent;iO.prototype.onYtCommentPollRevert=iO.prototype.onYtCommentPollRevert;iO.prototype.onPopupClosed=iO.prototype.onPopupClosed;iO.prototype.dataChanged=iO.prototype.dataChanged;_.V([_.b(_.zn),_.H("design:type",Object)],iO.prototype,"paperItemBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],iO.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],iO.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],iO.prototype,"isLoading",void 0);_.V([_.n({computed:"computeIsChannelOwner(data.choices)"}),_.H("design:type",Boolean)],iO.prototype,"isChannelOwner",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.H("design:type",Boolean)],iO.prototype,"isImagePoll",void 0);_.V([_.n({computed:"computeIsTotalVotesDisabled(data)"}),_.H("design:type",Boolean)],iO.prototype,"isTotalVotesDisabled",void 0);_.V([_.n(),_.H("design:type",Object)],iO.prototype,"previousPollInfo",void 0);_.V([_.n(),_.H("design:type",Object)],iO.prototype,"selectedItemIndex",void 0);_.V([_.lo("#poll-votes"),_.H("design:type",Object)],iO.prototype,"pollVotes",void 0);
_.V([_.y("isChannelOwner"),_.H("design:type",Object),_.H("design:paramtypes",[])],iO.prototype,"endpointStyle",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iO.prototype,"dataChanged",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],iO.prototype,"onPopupClosed",null);
_.V([_.UQ("yt-comment-poll-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],iO.prototype,"onYtCommentPollRevert",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],iO.prototype,"onYtServiceRequestSent",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],iO.prototype,"onYtServiceRequestCompleted",null);_.V([_.y_({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],iO);
_.Y(iO,"ytd-backstage-poll-renderer",function(){if(LXE!==void 0)return LXE;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return LXE=A},{mode:2});var p2C;var ERl={autoplay:!1,loop:!1},nRS={simpleText:""},O3=function(){var A=_.F.apply(this,arguments)||this;A.isLoading=!1;A.usesPanelLockup=!1;A.selectedItemIndex=-1;A.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},ERl,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});A.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},ERl,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});A.correctnessAnimationProps=[];A.correctnessAnimationRefs=[];return A};
_.R(O3,_.F);_.J=O3.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.J.computeIsChannelOwner=function(A){if(!A)return!0;A=A[0];return!(A&&(A.signinEndpoint||A.selectServiceEndpoint))};
_.J.computeIsTotalVotesDisabled=function(A){return!(A==null?0:A.totalVotes)};
_.J.computeIsImageQuiz=function(A){return(A==null?void 0:A.type)==="POLL_TYPE_IMAGE"};
_.J.onExplanationChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var A=this.data.choices;if(A){this.maybeInitializeQuizLotties(A);for(var t=0;t<A.length;t++)if(A[t].isSelected||this.isChannelOwner&&A[t].isCorrect){this.selectedItemIndex=t;return}this.selectedItemIndex=-1}}};
_.J.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var A=this.selectedItemIndex,t=Number(this.quizVotes.selected);this.selectChoice(t);this.sendVoteAction(t,A);this.quizVotes.selected=-1;var f;A=!((f=this.data)==null?0:f.enableAnimation);this.maybePlayAnswerAnimations(A)}};
_.J.onYtCommentPollRevert=function(A,t){t&&(this.selectChoice(t.selectedChoiceIndex),this.set("data.totalVotes",t.totalVotes))};
_.J.onYtServiceRequestSent=function(A,t){if(t.actions)for(A=_.U(t.actions),t=A.next();!t.done;t=A.next())(t=_.C(t.value,S4))&&this.set("data.totalVotes",t.totalVotes)};
_.J.onYtServiceRequestCompleted=function(A){var t=this.get("detail.data.actionResults.0.feedback",A);A=this.get("detail.data.actionResults.0.status",A);if(t==="FEEDBACK_DESELECT"||t==="FEEDBACK_SELECT")this.isLoading=!1,A==="STATUS_FAILED"?_.s9(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.J.getAnimationPropsForChoiceIndex=function(A,t){return t[A]};
_.J.maybePlayAnswerAnimations=function(A){A=A===void 0?!1:A;var t;if((t=this.data)!=null&&t.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){t=_.U(this.correctnessAnimationRefs);for(var f=t.next();!f.done;f=t.next()){var X=void 0,Q=void 0;(X=f.value)==null||(Q=X.lottieEl)==null||Q.stop()}if(!(this.selectedItemIndex<0)){t=0;A&&(t=this.isCorrect?37:25);var q,e;(q=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(e=q.lottieEl)==null||e.goToAndPlay(A?t:0,!0);if(!(this.isCorrect||
(q=this.data.choices.findIndex(function(T){return T.isCorrect}),q<0))){var G,N;
(N=(G=this.correctnessAnimationRefs[q])==null?void 0:G.lottieEl)==null||N.goToAndPlay(37,!0);var z;G=(z=this.fadeContainers)==null?void 0:z.item(q);!A&&G&&this.fadeIn(G)}}}};
_.J.thumbnailSrc=function(A){var t,f,X,Q;return(A==null?0:(t=A.thumbnails)==null?0:(f=t[0])==null?0:f.url)?_.of((X=A.thumbnails)==null?void 0:(Q=X[0])==null?void 0:Q.url):void 0};
_.J.a11yVotedText=function(A,t){var f,X,Q=((f=this.data)==null?void 0:(X=f.correctVotedText)==null?void 0:X.simpleText)||"",q,e;f=((q=this.data)==null?void 0:(e=q.votedText)==null?void 0:e.simpleText)||"";if(!t)return"";var G,N;if((G=this.data)==null?0:(N=G.choices)==null?0:N[A].isCorrect)return Q;var z,T;return((z=this.data)==null?0:(T=z.choices)==null?0:T[A].isSelected)?f:""};
_.J.getEndpoint=function(A,t){return t===A?this.data.choices[A].deselectServiceEndpoint||null:this.data.choices[A].selectServiceEndpoint||null};
_.J.sendVoteAction=function(A,t){if(A=this.getEndpoint(A,t))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(A)};
_.J.selectChoice=function(A){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var t=0;t<this.data.choices.length;t++)this.set("data.choices."+t+".isSelected",A===this.selectedItemIndex?!1:t===A);this.selectedItemIndex=this.selectedItemIndex===A?-1:A};
_.J.maybeInitializeQuizLotties=function(A){var t=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=A.map(function(f){return{animationConfig:f.isCorrect?t.baseCorrectLottiePlayerAnimationConfig:t.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){t.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(f){return f.animationRef||{}})};
_.J.fadeIn=function(A){A.classList.add("fade-in");_.sX(_.a6,function(){A.classList.remove("fade-in")},900)};
_.PV.Object.defineProperties(O3.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.dF(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 A,t;return((A=this.data)==null?void 0:(t=A.choices)==null?void 0:t.some(function(f){return f.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null||!A.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?nRS:this.data.choices[this.selectedItemIndex].explanation||nRS}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null||!A.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
O3.prototype.onYtServiceRequestCompleted=O3.prototype.onYtServiceRequestCompleted;O3.prototype.onYtServiceRequestSent=O3.prototype.onYtServiceRequestSent;O3.prototype.onYtCommentPollRevert=O3.prototype.onYtCommentPollRevert;O3.prototype.dataChanged=O3.prototype.dataChanged;O3.prototype.onExplanationChanged=O3.prototype.onExplanationChanged;_.V([_.b(_.zn),_.H("design:type",Object)],O3.prototype,"paperItemBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],O3.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.BS.YtTaskEmitterBehavior),_.H("design:type",Object)],O3.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],O3.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],O3.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],O3.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",Object)],O3.prototype,"usesPanelLockup",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.H("design:type",Boolean)],O3.prototype,"isChannelOwner",void 0);_.V([_.n({computed:"computeIsTotalVotesDisabled(data)"}),_.H("design:type",Boolean)],O3.prototype,"isTotalVotesDisabled",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.H("design:type",Boolean)],O3.prototype,"isImageQuiz",void 0);_.V([_.n(),_.H("design:type",Object)],O3.prototype,"previousQuizInfo",void 0);_.V([_.n(),_.H("design:type",Object)],O3.prototype,"selectedItemIndex",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data","usesPanelLockup"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O3.prototype,"shouldUseModernUi",null);
_.V([_.NL(".fade-container"),_.H("design:type",Object)],O3.prototype,"fadeContainers",void 0);_.V([_.n(),_.H("design:type",Array)],O3.prototype,"correctnessAnimationProps",void 0);_.V([_.y("explanation","showCorrectAnswer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O3.prototype,"showExplanation",null);_.V([_.y("isChannelOwner","isAttempted"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O3.prototype,"showCorrectAnswer",null);
_.V([_.y("isChannelOwner","isAttempted","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O3.prototype,"isQuizAnsweringDisabled",null);_.V([_.y("isQuizAnsweringDisabled"),_.H("design:type",Object),_.H("design:paramtypes",[])],O3.prototype,"endpointStyle",null);_.V([_.y("data","selectedItemIndex"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O3.prototype,"isAttempted",null);
_.V([_.y("data","selectedItemIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],O3.prototype,"explanation",null);_.V([_.y("data","selectedItemIndex"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],O3.prototype,"isCorrect",null);_.V([_.lo("ytd-expander"),_.H("design:type",Object)],O3.prototype,"expander",void 0);_.V([_.lo("#quiz-votes"),_.H("design:type",Object)],O3.prototype,"quizVotes",void 0);
_.V([_.ev("explanation"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],O3.prototype,"onExplanationChanged",null);_.V([_.ev("data","isChannelOwner"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],O3.prototype,"dataChanged",null);_.V([_.UQ("yt-comment-quiz-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],O3.prototype,"onYtCommentPollRevert",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],O3.prototype,"onYtServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],O3.prototype,"onYtServiceRequestCompleted",null);_.V([_.y_({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],O3);
_.Y(O3,"ytd-backstage-quiz-renderer",function(){if(p2C!==void 0)return p2C;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return p2C=A},{mode:1});var DQ7;var cg=function(){return _.F.apply(this,arguments)||this};
_.R(cg,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cg.prototype,"data",void 0);_.V([_.y_({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],cg);
_.Y(cg,"ytd-post-uploaded-video-renderer",function(){if(DQ7!==void 0)return DQ7;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return DQ7=A},{mode:1});var FX8;var Bg=function(){return _.F.apply(this,arguments)||this};
_.R(Bg,_.F);Bg.prototype.useFilledIcons=function(A){return A==="SPONSORSHIP_STAR"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Bg.prototype,"data",void 0);_.V([_.y_({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Bg);
var IqC=_.wR()(Bg,"ytd-sponsors-only-badge-renderer",function(){if(FX8===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);FX8=A}A=FX8;return A},{allowedProps:["data"],
mode:1});var xQT;var MV=function(){return _.F.apply(this,arguments)||this};
_.R(MV,_.F);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],MV.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],MV.prototype,"data",void 0);_.V([_.y_({is:"ytd-child-video-renderer",disableElementRegistration:!0})],MV);
_.Y(MV,"ytd-child-video-renderer",function(){if(xQT!==void 0)return xQT;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return xQT=A},{mode:1});var jNC;var Y68;var Cm=function(){var A=_.F.apply(this,arguments)||this;A.size=0;A.fallbackImageSize={height:void 0,width:9999};A.webModernCollections=!1;return A};
_.R(Cm,_.F);_.J=Cm.prototype;_.J.computeBlurredImageSize=function(A){return A?{height:A*2,width:A*2}:this.fallbackImageSize};
_.J.computeImageSize=function(A){return A?{height:A,width:A}:this.fallbackImageSize};
_.J.computeObjectFit=function(A){return A?"FILL":"CONTAIN"};
_.J.computePreserve=function(A){return A?!0:!1};
_.J.setBackground=function(){var A,t;if((A=this.data)==null?0:(t=A.thumbnail)==null?0:t.sampledThumbnailColor)A=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+A.red+","+A.green+","+A.blue+",1)"};
Cm.prototype.setBackground=Cm.prototype.setBackground;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Cm.prototype,"watchFeedThumbnail",void 0);_.V([_.n(),_.H("design:type",Object)],Cm.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Cm.prototype,"size",void 0);
_.V([_.n({computed:"computeBlurredImageSize(size)"}),_.H("design:type",Object)],Cm.prototype,"blurredImageSize",void 0);_.V([_.n({computed:"computeImageSize(size)"}),_.H("design:type",Object)],Cm.prototype,"imageSize",void 0);_.V([_.n({computed:"computePreserve(size)"}),_.H("design:type",String)],Cm.prototype,"preserve",void 0);_.V([_.n({computed:"computeObjectFit(size)"}),_.H("design:type",String)],Cm.prototype,"objectFit",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Cm.prototype,"webModernCollections",void 0);_.V([_.ev("data.thumbnail.sampledThumbnailColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cm.prototype,"setBackground",null);_.V([_.y_({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Cm);
_.Y(Cm,"ytd-playlist-custom-thumbnail-renderer",function(){if(Y68!==void 0)return Y68;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Y68=A},{mode:1});var Vzl;var hk=function(){return _.F.apply(this,arguments)||this};
_.R(hk,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],hk.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],hk.prototype,"width",void 0);_.V([_.y_({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],hk);
_.Y(hk,"ytd-playlist-video-thumbnail-renderer",function(){if(Vzl!==void 0)return Vzl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Vzl=A},{mode:1});var ZHk;var Ra=function(){return _.F.apply(this,arguments)||this};
_.R(Ra,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ra.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],Ra.prototype,"width",void 0);_.V([_.y_({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Ra);
_.Y(Ra,"ytd-show-custom-thumbnail-renderer",function(){if(ZHk!==void 0)return ZHk;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ZHk=A},{mode:1});var oRS;var m6=function(){return _.F.apply(this,arguments)||this};
_.R(m6,_.F);m6.prototype.useFilledIcons=function(A){return A==="MUSIC"||A==="COURSE"};
m6.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Wi(this.overlayColor,"0.8");else if(this.overlayColor){var A=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+A.red+","+A.green+","+A.blue+",0.8)"}};
_.PV.Object.defineProperties(m6.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)}}});
m6.prototype.overlayColorChanged=m6.prototype.overlayColorChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],m6.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],m6.prototype,"overlayColor",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.icon","data.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],m6.prototype,"overlayStyle",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data.icon","data.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],m6.prototype,"overlayTextStyle",null);_.V([_.ev("overlayColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m6.prototype,"overlayColorChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],m6);
_.Y(m6,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(oRS!==void 0)return oRS;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return oRS=A},{mode:1});var dQT;var bO=function(){var A=_.F.apply(this,arguments)||this;A.active=!1;return A};
_.R(bO,_.F);bO.prototype.computeIsSpinnerHidden=function(A){return(A==null?void 0:A.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
bO.prototype.computeOverlayIcon=function(A){return(A==null?void 0:A.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(A==null?void 0:A.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bO.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],bO.prototype,"active",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],bO);
_.Y(bO,"ytd-thumbnail-overlay-downloading-renderer",function(){if(dQT!==void 0)return dQT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return dQT=A},{mode:1});var S6i;var Wg=function(){return _.F.apply(this,arguments)||this};
_.R(Wg,_.F);_.PV.Object.defineProperties(Wg.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Wg.prototype,"data",void 0);_.V([_.y("data.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wg.prototype,"text",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Wg);
_.Y(Wg,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(S6i!==void 0)return S6i;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return S6i=A},{mode:1});var $QK,HHk=function(){if($QK!==void 0)return $QK;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return $QK=A};var yj=function(){return _.F.apply(this,arguments)||this};
_.R(yj,_.F);_.PV.Object.defineProperties(yj,{template:{configurable:!0,enumerable:!0,get:function(){return HHk()}}});
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],yj.prototype,"animateEqualizer",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],yj);_.wR()(yj,"ytd-thumbnail-overlay-equalizer",function(){return HHk()},{allowedProps:["animateEqualizer"],
mode:1});var aq8;var vg=function(){var A=_.F.apply(this,arguments)||this;A.nowPlayingBadge=_.M("web_now_playing_badge");A.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return A};
_.R(vg,_.F);vg.prototype.activeChanged=function(){var A=this;_.M("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.us(this,function(){_.s9(A.hostElement,"yt-playlist-lockup-now-playing-active",A)})};
vg.prototype.onMiniplayerPlayStateChanged=function(A){var t,f=(t=_.C(_.$z().currentEndpoint,_.ZT))==null?void 0:t.videoId;this.isVideoPlaying=A&&(_.M("web_limit_now_playing_animation_killswitch")||this.videoId===f)};
vg.prototype.activeChanged=vg.prototype.activeChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],vg.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],vg.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],vg.prototype,"isVideoPlaying",void 0);_.V([_.n(),_.H("design:type",String)],vg.prototype,"videoId",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],vg.prototype,"equalizerOnly",void 0);_.V([_.n(),_.H("design:type",Boolean)],vg.prototype,"isActive",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],vg.prototype,"nowPlayingBadge",void 0);_.V([_.ev("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vg.prototype,"activeChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],vg);
_.Y(vg,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(aq8!==void 0)return aq8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return aq8=A},{mode:1});var KXT;var Lm=function(){return _.F.apply(this,arguments)||this};
_.R(Lm,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Lm.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Lm);
_.Y(Lm,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(KXT!==void 0)return KXT;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return KXT=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var gRk;var pm=function(){return _.F.apply(this,arguments)||this};
_.R(pm,_.F);pm.prototype.onDurationChanged=function(){var A,t;_.sF(this.hostElement).querySelector("#progress").style.width=((t=(A=this.data)==null?void 0:A.percentDurationWatched)!=null?t:0)+"%"};
pm.prototype.onDurationChanged=pm.prototype.onDurationChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],pm.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],pm.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],pm.prototype,"isLive",void 0);_.V([_.ev("data.percentDurationWatched"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pm.prototype,"onDurationChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],pm);
_.Y(pm,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(gRk!==void 0)return gRk;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return gRk=A},{mode:1});var w28;var E3=function(){var A=_.F.apply(this,arguments)||this;A.bottomPanel=!1;A.richGridOverlay=!1;A.watchFeedOverlay=!1;A.isCompact=!1;return A};
_.R(E3,_.F);E3.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.PV.Object.defineProperties(E3.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:(t=A.icon)==null?void 0:t.iconType)==="PLAY_ALL"&&_.M("kevlar_system_icons")}}});
E3.prototype.widthChanged=E3.prototype.widthChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],E3.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],E3.prototype,"width",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],E3.prototype,"bottomPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],E3.prototype,"richGridOverlay",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],E3.prototype,"watchFeedOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],E3.prototype,"isCompact",void 0);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],E3.prototype,"isIconFilled",null);_.V([_.ev("width","watchFeedOverlay"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E3.prototype,"widthChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],E3);
_.Y(E3,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(w28!==void 0)return w28;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return w28=A},{mode:1});var sNT;var klk=["CLIP","SHORTS"],nm=function(){var A=_.F.apply(this,arguments)||this;A.animated=_.M("animated_live_badge_icon");A.hasIcon=!1;A.updateTimerIntervalId=0;A.timeSinceLive=0;return A};
_.R(nm,_.F);_.J=nm.prototype;_.J.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.J.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.J.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.J.hasIconOrText=function(){var A,t;return!!(((A=this.data)==null?0:A.icon)||((t=this.data)==null?0:t.text))};
_.J.initializeLiveBadgeTimer=function(){var A=this,t,f=(t=this.liveBadgeData)==null?void 0:t.startTimestampSec;if(f&&this.canShowLiveBadgeTimer()){var X;t=Number((X=this.liveBadgeData)==null?void 0:X.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(f);this.updateTimerIntervalId=_.my(function(){A.canShowLiveBadgeTimer()?A.timeSinceLive++:(A.timeSinceLive=0,window.clearInterval(A.updateTimerIntervalId))},t)}else this.timeSinceLive=0};
_.J.canShowLiveBadgeTimer=function(){var A=Date.now(),t,f;return A<(Number((t=this.liveBadgeData)==null?void 0:t.endTimestampSec)-1)*1E3&&A>Number((f=this.liveBadgeData)==null?void 0:f.startTimestampSec)*1E3};
_.PV.Object.defineProperties(nm.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.bKp(this.data,this.timeSinceLive):{}}},
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 A;return(A=this.data)==null?void 0:A.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 klk.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
nm.prototype.initializeLiveBadgeTimer=nm.prototype.initializeLiveBadgeTimer;nm.prototype.dataChanged=nm.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],nm.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],nm.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],nm.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],nm.prototype,"animated",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.H("design:type",Boolean)],nm.prototype,"hideTimeStatus",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],nm.prototype,"hasIcon",void 0);_.V([_.n(),_.H("design:type",Object)],nm.prototype,"timeSinceLive",void 0);_.V([_.y("data","timeSinceLive"),_.H("design:type",Object),_.H("design:paramtypes",[])],nm.prototype,"badgeShapeData",null);
_.V([_.y("data","overlayType"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],nm.prototype,"hideBadgeShape",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nm.prototype,"dataChanged",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.style"),_.H("design:type",Object),_.H("design:paramtypes",[])],nm.prototype,"overlayStyle",null);
_.V([_.y("data.liveBadgeData"),_.H("design:type",Object),_.H("design:paramtypes",[])],nm.prototype,"liveBadgeData",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.type"),_.H("design:type",Object),_.H("design:paramtypes",[])],nm.prototype,"overlayType",null);_.V([_.y("overlayType","overlayStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],nm.prototype,"useFilledIcon",null);
_.V([_.PU("liveBadgeData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nm.prototype,"initializeLiveBadgeTimer",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],nm);
_.Y(nm,"ytd-thumbnail-overlay-time-status-renderer",function(){if(sNT!==void 0)return sNT;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return sNT=A},{mode:_.sQ("kevlar_poly_si_batch_j035")?1:2});var rvp;var Di=function(){return _.F.apply(this,arguments)||this};
_.R(Di,_.F);Di.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"}}}}};
Di.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(A){if(this.hasPlaybackProgressBar)return{percentDurationWatched:A.percentDurationWatched}};
Di.prototype.computeHasPlaybackProgressBar=function(A){return!!A.percentDurationWatched&&A.percentDurationWatched>0};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Di.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.H("design:type",Boolean)],Di.prototype,"hasPlaybackProgressBar",void 0);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Di);
_.Y(Di,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(rvp!==void 0)return rvp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return rvp=A},{mode:1});var AFT;var tcf=_.I(function(A){var t=A.data;var f=A.children;var X=function(){return!!t().doubleStack},Q=function(){return!!t().includeStackHeight};
return _.u("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!t().experimentEnabled}},_.u(_.P,{cond:t,
then:function(){var q={};return _.u(_.Tw,null,_.u(_.P,{cond:Q,then:function(){var e={};return _.u("div",{class:_.Ao("ytCollectionsStackSpacer",(e.ytCollectionsStackSpacerDoubleStack=X,e))})}}),_.u("div",{class:_.Ao((q.ytCollectionsStackRelativeStack=Q,q))},_.u(_.P,{cond:X,
then:function(){var e={};return _.u("div",{class:_.Ao("ytCollectionsStackCollectionStack2",function(){return t().customClassName2ndStack},(e.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return t().enableResponsiveMode},e)),
style:_.U7({"background-color":function(){return yCb(t())}})})}}),_.u("div",{class:_.Ao("ytCollectionsStackCollectionStack1",function(){return t().customClassName1stStack},function(){return WVs(t().thumbnailSize?t().thumbnailSize:"medium")}),
style:_.U7({"background-color":function(){return yCb(t())}})}),f))}}))},"Da");_.Hn(tcf,"yt-collections-stack",{props:{data:_.PS}});var Fv=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};A.webModernCollections=!1;A.isSearch=!1;A.isDoubleStack=!1;A.thumbnailSize="medium";return A};
_.R(Fv,_.F);_.J=Fv.prototype;
_.J.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]]"}}}}}};
_.J.getThumbnailDetails=function(A){if(A!=null&&A.thumbnailRenderer){var t=A.thumbnailRenderer,f;if((f=t.playlistVideoThumbnailRenderer)==null?0:f.thumbnail)return t.playlistVideoThumbnailRenderer.thumbnail;var X;if((X=t.playlistCustomThumbnailRenderer)==null?0:X.thumbnail)return t.playlistCustomThumbnailRenderer.thumbnail;A=A.thumbnailRenderer;var Q;if((Q=A.showCustomThumbnailRenderer)==null?0:Q.thumbnail)return A.showCustomThumbnailRenderer.thumbnail}};
_.J.computeOverlayColor=function(A){var t,f;if((t=this.getThumbnailDetails(A))==null?0:(f=t.darkColorPalette)==null?0:f.section2Color)return this.getThumbnailDetails(A).darkColorPalette.section2Color;var X;return(X=this.getThumbnailDetails(A))==null?void 0:X.sampledThumbnailColor};
_.J.computeWebModernCollections=function(A){if(A==null||!A.thumbnailOverlays)return!1;A=_.U(A.thumbnailOverlays);for(var t=A.next();!t.done;t=A.next()){var f=void 0;if((f=t.value)==null?0:f.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.J.computeNavigationEndpoint=function(A){return FOg(A==null?void 0:A.navigationEndpoint)};
_.PV.Object.defineProperties(Fv.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:A==null?void 0:A.sampledThumbnailColor,vibrantColorPalette:A==null?void 0:A.vibrantColorPalette,darkColorPalette:A==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Fv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(Gpk),_.H("design:type",Object)],Fv.prototype,"ytdThumbnailBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Fv.prototype,"componentBehavior",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],Fv.prototype,"watchFeedThumbnail",void 0);_.V([_.n(),_.H("design:type",Number)],Fv.prototype,"customThumbnailSize",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],Fv.prototype,"hideAria",void 0);_.V([_.n(),_.H("design:type",Object)],Fv.prototype,"data",void 0);_.V([_.n({computed:"computeOverlayColor(data)"}),_.H("design:type",Object)],Fv.prototype,"overlayColor",void 0);
_.V([_.n({computed:"computeWebModernCollections(data)"}),_.H("design:type",Object)],Fv.prototype,"webModernCollections",void 0);_.V([_.n({computed:"computeNavigationEndpoint(data)"}),_.H("design:type",Object)],Fv.prototype,"computedNavigationEndpoint",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Fv.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Fv.prototype,"isDoubleStack",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Fv.prototype,"thumbnailSize",void 0);_.V([_.y("data","isDoubleStack","thumbnailSize"),_.H("design:type",Object),_.H("design:paramtypes",[])],Fv.prototype,"collectionStack",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Fv);
_.Y(Fv,"ytd-playlist-thumbnail",function(){if(AFT!==void 0)return AFT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return AFT=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var f5K;_.Hn(_.I(function(A){return _.u("yt-text-view-model",{class:_.Ao("ytTextViewModelHost")},_.u(_.zL,{text:function(){return A.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.PS}});var Ia=function(){var A=_.F.apply(this,arguments)||this;A.noEndpoints=!1;A.amsterdamPostMvp=_.M("web_amsterdam_post_mvp_playlists");A.badges=[];A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.R(Ia,_.F);_.J=Ia.prototype;_.J.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.J.getMetadata=function(A){if(!A)return[];var t=[],f=A.shortViewCountText||A.viewCountText;f&&t.push(_.dF(f));A.publishedTimeText&&t.push(_.dF(A.publishedTimeText));A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&t.push(_.B1(_.dF(A.upcomingEventData.upcomingEventText),Number(A.upcomingEventData.startTime)));return t};
_.J.observeDataForBylineSeparator=function(){this.data&&_.rH(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.J.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.mt(this.metadataColor)};
_.J.getSimpleString=function(A){return _.dF(A)};
_.J.isBylineHidden=function(A){return this.noByline||!((A==null?0:A.longBylineText)||(A==null?0:A.shortBylineText))};
_.J.isMetadataHidden=function(A){var t;return((t=this.getMetadata(A))==null?void 0:t.length)===0};
_.J.isBylineMetadataSeparatorHidden=function(A){return this.isMetadataHidden(A)||!this.shouldShowVideoInfo};
_.J.isLongByline=function(A,t){return t&&!(A==null||!A.longBylineText)};
_.PV.Object.defineProperties(Ia.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var A;return this.amsterdamPostMvp&&!((A=this.data)==null||!A.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}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Ia.prototype.metadataColorChanged=Ia.prototype.metadataColorChanged;Ia.prototype.observeDataForBylineSeparator=Ia.prototype.observeDataForBylineSeparator;_.V([_.b(_.qT),_.H("design:type",Object)],Ia.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ia.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Ia.prototype,"noEndpoints",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ia.prototype,"isSlimShort",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ia.prototype,"radioMeta",void 0);_.V([_.n({selector:_.y6}),_.H("design:type",Object)],Ia.prototype,"isGridViewEnabled",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ia.prototype,"richMeta",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ia.prototype,"amsterdamPostMvp",void 0);
_.V([_.n(),_.H("design:type",Boolean)],Ia.prototype,"noByline",void 0);_.V([_.n({computed:"isLongByline(data, radioMeta)"}),_.H("design:type",Boolean)],Ia.prototype,"longByline",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ia.prototype,"truncateMetadataLine",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ia.prototype,"miniMode",void 0);_.V([_.n(),_.H("design:type",Number)],Ia.prototype,"metadataColor",void 0);
_.V([_.n(),_.H("design:type",Array)],Ia.prototype,"badges",void 0);_.V([_.n({selector:_.LZ,selectorArgs:["data.videoId"]}),_.H("design:type",String)],Ia.prototype,"transferState",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ia.prototype,"isDownloading",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ia.prototype,"typographyBump",void 0);_.V([_.lo("#metadata-line"),_.H("design:type",HTMLElement)],Ia.prototype,"metadataLine",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ia.prototype,"observeDataForBylineSeparator",null);_.V([_.ev("metadataColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ia.prototype,"metadataColorChanged",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ia.prototype,"shouldShowVideoInfo",null);
_.V([_.y("badges"),_.H("design:type",String),_.H("design:paramtypes",[])],Ia.prototype,"inlineBadgeClass",null);_.V([_.y("longByline"),_.H("design:type",String),_.H("design:paramtypes",[])],Ia.prototype,"longBylineClass",null);_.V([_.y("data","longByline"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ia.prototype,"bylineText",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ia.prototype,"hasAttributedBylineText",null);
_.V([_.y("isGridViewEnabled","data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ia.prototype,"watchFeedBigThumbs",null);_.V([_.y_({is:"ytd-video-meta-block",disableElementRegistration:!0})],Ia);
_.Y(Ia,"ytd-video-meta-block",function(){if(f5K!==void 0)return f5K;var A=document.createElement("template");_.m(A,'\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    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return f5K=A},{mode:_.sQ("kevlar_poly_si_batch_j080")?1:2});_.C1("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var xP=function(){var A=_.F.apply(this,arguments)||this;A.displayItemCount=2;A.isBackstagePlaylist=!1;A.isPostCompactPlaylist=!1;A.shouldShowChannelThumbnail=!1;return A};
_.R(xP,_.F);_.J=xP.prototype;_.J.computeFirstVideos=function(A,t){return A===void 0||t===void 0?[]:A.slice(0,t)};
_.J.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var A=this.data.thumbnailRenderer;A.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",A.playlistVideoThumbnailRenderer.thumbnail);A.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",A.playlistCustomThumbnailRenderer.thumbnail)}};
_.J.computeThumbnailHeight=function(A,t,f,X,Q){return X?Q==="BIG"?280:Q==="MASSIVE"?337:234:f?240:t?72:A?118:138};
_.J.computeThumbnailWidth=function(A,t,f,X,Q){return X?Q==="MEDIUM"?450:Q==="BIG"?500:Q==="MASSIVE"?600:420:f?360:t?128:A?210:246};
_.J.computeUseBiggerThumbs=function(A){return A&&_.M("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelThumbnail=function(A,t){return A&&!(t==null||!t.channelThumbnail)};
_.PV.Object.defineProperties(xP.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
xP.prototype.dataChanged=xP.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],xP.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],xP.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],xP.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],xP.prototype,"displayItemCount",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],xP.prototype,"isBackstagePlaylist",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],xP.prototype,"isPostCompactPlaylist",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],xP.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.H("design:type",Boolean)],xP.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Bx("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],xP.prototype,"biggerThumbsStyle",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],xP.prototype,"isDownloads",void 0);_.V([_.n({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.H("design:type",Object)],xP.prototype,"shouldShowChannelThumbnail",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xP.prototype,"dataChanged",null);
_.V([_.y("isSearch"),_.H("design:type",String),_.H("design:paramtypes",[])],xP.prototype,"stackThumbnailSize",null);_.V([_.y_({is:"ytd-playlist-renderer",disableElementRegistration:!0})],xP);
_.Y(xP,"ytd-playlist-renderer",function(){if(jNC===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);jNC=A}A=jNC;return A},{mode:1});var XZK;var Q_w;var jK=function(){var A=_.F.apply(this,arguments)||this;A.startX=0;return A};
_.R(jK,_.F);jK.prototype.onEndpointMouseDown=function(A){this.startX=A.clientX};
jK.prototype.onEndpointClick=function(A){this.startX!==A.clientX&&(A.preventDefault(),A.stopPropagation())};
jK.prototype.computeObjectFit=function(A){return A==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||A==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||A==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
jK.prototype.computeCardStyle=function(A){return A?A.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.PV.Object.defineProperties(jK.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:(t=A.searchRefinementCardRendererStyle)==null?void 0:t.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],jK.prototype,"data",void 0);_.V([_.n({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.H("design:type",Number)],jK.prototype,"objectFit",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.H("design:type",String)],jK.prototype,"cardStyle",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],jK.prototype,"roundContainer",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],jK.prototype,"isAlbumCard",null);_.V([_.y("data","isAlbumCard"),_.H("design:type",Object),_.H("design:paramtypes",[])],jK.prototype,"collectionStack",null);_.V([_.y_({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],jK);
_.Y(jK,"ytd-search-refinement-card-renderer",function(){if(Q_w!==void 0)return Q_w;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Q_w=A},{mode:1});var qai;var YP=function(){var A=_.F.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.R(YP,_.F);_.V([_.n(),_.H("design:type",Object)],YP.prototype,"data",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],YP.prototype,"componentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],YP.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],YP.prototype,"isRichGrid",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],YP.prototype,"miniMode",void 0);
_.V([_.y_({is:"ytd-game-details-renderer",disableElementRegistration:!0})],YP);
_.Y(YP,"ytd-game-details-renderer",function(){if(qai!==void 0)return qai;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return qai=A},{mode:1});var JFT;var UCS;var Vj=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return A};
_.R(Vj,_.F);_.J=Vj.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(A){var t=A||this.data;return t&&t.states&&t.currentStateId!=null?t.states.find(function(f){return f.stateId===t.currentStateId})||null:null};
_.J.currentStateRendererData=function(A){return(A=this.currentStateData(A))&&A.state&&A.state.buttonRenderer?A.state.buttonRenderer:null};
_.J.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())};
_.J.computeButtonIcon=function(A){A=this.currentStateRendererData(A);var t;return(A==null?0:(t=A.icon)==null?0:t.iconType)?A.icon.iconType.toLowerCase():null};
_.J.computeAccessibility=function(A){return(A=this.currentStateRendererData(A))&&A.accessibilityData?A.accessibilityData.accessibilityData||null:null};
_.J.computeButtonClass=function(A){var t=this.currentStateRendererData(A);if(!t)return"";A="";var f=t.style;f&&(A+=f.toLowerCase().replace(/_/g,"-")+" ");(t=t.size)&&(A+=t.toLowerCase().replace(/_/g,"-")+" ");return A.trim()};
_.J.computeServiceEndpoint=function(A){if(!A)return null;var t=A&&A.serviceEndpoint,f=this.get("command.commandMetadata.webCommandMetadata.sendPost",A);return t?t:f&&A.command?A.command:null};
_.J.computeBellMenuItemParams=function(A){var t;A=(t=_.C(A==null?void 0:A.command,_.Xd))==null?void 0:t.commands;if(!A||A.length===0)return null;t=_.C(A[0],_.$4);var f,X;return(t==null?0:(f=t.popup)==null?0:(X=f.menuPopupRenderer)==null?0:X.items)?t.popup.menuPopupRenderer.items.map(function(Q){return Q.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(A){var t=A.trackingParams,f=this.computeBellMenuItemParams(this.data);this.data&&t&&f&&f.includes(t)&&this.ytRenderButtonBehavior._setButtonIcon(A.icon.iconType.toLowerCase())};
_.J.onYtServiceRequestCompleted=function(A,t){(A=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",t))&&this.set("data",A)};
_.J.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.J.resetState=function(){this.set("data.currentStateId",3)};
_.J.onYtButtonTapHandler=function(){if(this.data){var A=this.currentStateRendererData(this.data);A&&this.ytRendererBehavior.logExplicitClick(A)}};
Vj.prototype.onYtServiceRequestError=Vj.prototype.onYtServiceRequestError;Vj.prototype.onYtServiceRequestCompleted=Vj.prototype.onYtServiceRequestCompleted;Vj.prototype.stateChanged=Vj.prototype.stateChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Vj.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b($a.YtRenderButtonBehavior),_.H("design:type",Object)],Vj.prototype,"ytRenderButtonBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Vj.prototype,"data",void 0);_.V([_.PU("data","data.currentStateId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vj.prototype,"stateChanged",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],Vj.prototype,"onYtServiceRequestCompleted",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Vj.prototype,"onYtServiceRequestError",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Vj);
_.Y(Vj,"ytd-subscription-notification-toggle-button-renderer",function(){if(UCS!==void 0)return UCS;var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return UCS=A},{mode:1});var eHp;var Zi=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};A.tapHandler=function(){if(A.data){var t=A.currentStateRendererData();t&&A.ytRendererBehavior.logExplicitClick(t)}};
return A};
_.R(Zi,_.F);_.J=Zi.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(){var A=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(t){return t.stateId===A.data.currentStateId})||null:null};
_.J.currentStateRendererData=function(){var A=this.currentStateData();return A&&A.state&&A.state.buttonRenderer?A.state.buttonRenderer:null};
_.J.computeAccessibilityLabel=function(){var A,t,f;return(A=this.currentStateRendererData())==null?void 0:(t=A.accessibilityData)==null?void 0:(f=t.accessibilityData)==null?void 0:f.label};
_.J.computeBellMenuItemParams=function(){var A,t,f=(t=_.C((A=this.data)==null?void 0:A.command,_.Xd))==null?void 0:t.commands;if(!f||f.length===0)return null;A=_.C(f[0],_.$4);var X,Q;return(A==null?0:(X=A.popup)==null?0:(Q=X.menuPopupRenderer)==null?0:Q.items)?A.popup.menuPopupRenderer.items.map(function(q){return q.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(A){var t=A.trackingParams,f=this.computeBellMenuItemParams();if(this.data&&t&&f&&f.includes(t)&&(A==null||!A.isDisabled)){var X;((X=_.C(A.serviceEndpoint,_.qJ))==null?void 0:X.signal)!=="CLIENT_SIGNAL"&&(this.icon=A.icon.iconType)}};
_.J.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.J.onYtServiceRequestCompleted=function(A,t){if(A=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",t))this.icon=void 0,this.set("data",A)};
_.J.onYtServiceRequestError=function(){this.icon=void 0};
_.PV.Object.defineProperties(Zi.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data,t=this.textLabel,f=this.hostElement,X=this.computeAccessibilityLabel(),Q=this.tapHandler,q=this.isOverlay?"overlay":"mono",e=(A==null?0:A.disableButton)?"disabled":"active";t=t?_.CI(t):void 0;return{style:q,type:"tonal",state:e,size:"M",focused:!1,formattedButtonText:t,iconPosition:"leading-trailing",onTap:LVb(A,Q,f),accessibilityLabel:X}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var A=this.currentStateRendererData(),t,f,X=(f=this.icon)!=null?f:A==null?void 0:(t=A.icon)==null?void 0:t.iconType;if(X)return _.t7(X)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(A=this.data)==null?void 0:(t=A.secondaryIcon)==null?void 0:t.iconType;if(f)return _.t7(f)}}});
Zi.prototype.onYtServiceRequestError=Zi.prototype.onYtServiceRequestError;Zi.prototype.onYtServiceRequestCompleted=Zi.prototype.onYtServiceRequestCompleted;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Zi.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Zi.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Zi.prototype,"textLabel",void 0);
_.V([_.n(),_.H("design:type",String)],Zi.prototype,"icon",void 0);_.V([_.n(),_.H("design:type",Boolean)],Zi.prototype,"isOverlay",void 0);_.V([_.y("data.*","textLabel"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zi.prototype,"computedButtonShape",null);_.V([_.y("data.*","icon"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zi.prototype,"computedIcon",null);_.V([_.y("computedIcon"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zi.prototype,"computedAnimateIcon",null);
_.V([_.y("data.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zi.prototype,"computedSecondaryIcon",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],Zi.prototype,"onYtServiceRequestCompleted",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Zi.prototype,"onYtServiceRequestError",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Zi);
_.Y(Zi,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(eHp!==void 0)return eHp;var A=document.createElement("template");_.m(A,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return eHp=A},{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var Gi7;_.Hn(GlS,"yt-animated-action",{props:{backgroundLottieRef:_.PS,foregroundLottieRef:_.PS,wrapperClass:_.PS,disableAnimation:_.PS},unsafeExternallySettableAttributes:new Set(["key"])});var oa=function(){var A=_.F.apply(this,arguments)||this;A.animatedActionEnabled=_.M("web_animated_actions");A.foregroundLottieRef={};A.backgroundLottieRef={};A.forceIconOnly=!1;A.showTextWhileAnimating=!1;A.keyboardFocused=!1;A.isAnimating=!1;A.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return A};
_.R(oa,_.F);_.J=oa.prototype;_.J.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.J.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]]"}}}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onYtServiceRequestSent=function(A,t){(this.get("endpoint.subscribeEndpoint",t)||this.get("endpoint.unsubscribeEndpoint",t))&&this.updateSubscriptionState(!this.subscribed)};
_.J.onYtServiceRequestCompleted=function(A,t){(A=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",t.data))&&this.bellButton&&(this.bellButton.data=A)};
_.J.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Q_(this.hostElement)};
_.J.onPlayerSubscribe=function(A){this.isCompactRed()||A!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.J.onPlayerUnsubscribe=function(A){this.isCompactRed()||A!==this.data.channelId||this.updateSubscriptionState(!1)};
_.J.handleUpdateSubscribeButtonAction=function(A){A=_.C(A,XYp);var t;A&&A.channelId===((t=this.data)==null?void 0:t.channelId)&&this.updateSubscriptionState(!!A.subscribed)};
_.J.computeButtonStyle=function(A){return this.get("style.styleType",A)||null};
_.J.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.J.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.J.updateSubscriptionState=function(A){if(A!==this.subscribed){this.set("data.subscribed",A);var t,f=(t=this.data)==null?void 0:t.subscribedEntityKey;f&&this.ytdReduxBehavior.dispatch(_.Ta("subscriptionStateEntity",f,{key:f,subscribed:A}));this.isCompactRed()||_.s9(this.hostElement,"yt-subscription-changed",A);A||(_.kJ(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!A),A&&this.hasBellButton&&this.startAnimation())}};
_.J.startAnimation=function(){var A=this;if(!this.isAnimating){var t=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var f;(f=this.backgroundLottieRef.lottieEl)==null||f.goToAndPlay(0);var X;(X=this.foregroundLottieRef.lottieEl)==null||X.goToAndPlay(0);_.a6.addJob(function(){A.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.a6.addJob(function(){A.updateContainerToFitContent(!!A.subscribed,!0)},2,1500);
_.a6.addJob(function(){A.isAnimating=!1},2,t)}};
_.J.maybeAnimateBellIcon=function(){var A=_.kO(this.hostElement).querySelector("yt-animated-icon");if(A){var t;(t=A.animationRef.lottieEl)==null||t.goToAndPlay(0)}};
_.J.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.J.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.J.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var A;this.unsubscribedWidth=(A=this.subscribeButtonShape)==null?void 0:A.getBoundingClientRect().width}var t;this.subscribedWidth=(t=this.bellButton)==null?void 0:t.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.J.updateContainerToFitContent=function(A,t){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(A?(A=this.subscribedWidth,t=this.isAnimating&&!t,this.subscribedIconOnlyWidth===void 0||t||(A=this.subscribedIconOnlyWidth),this.hostElement.style.width=A+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.J.clearContainerSize=function(){this.hostElement.style.width=""};
_.J.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.J.maybeSetSubscribedButtonIconOnlyWidth=function(){var A=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 t;A.subscribedIconOnlyWidth=(t=A.bellButton)==null?void 0:t.getBoundingClientRect().width;requestAnimationFrame(function(){if(A.bellButton){var f;A.bellButton.textLabel=
(f=A.data)==null?void 0:f.subscribedButtonText}})})))};
_.PV.Object.defineProperties(oa.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 A;return(A=this.data)==null?void 0:A.subscribedButtonText}var t;return this.forceIconOnly?void 0:(t=this.data)==null?void 0:t.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var A,t,f=((A=this.data)==null?void 0:(t=A.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"subscribe",timings:f,enabled:f.length>0&&!this.subscribed,experimentEnabled:f.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!this.subscribed&&((A=this.data)==null?void 0:A.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 A={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var t=A.renderer;var f=A.element;var X=A.subscribed;var Q=A.commandController;var q=A.isOverlay;A=A.stopPropagation;var e=DSl(t,X);q&&(e.style="overlay");q=Object;var G=q.assign,N;a:switch((N=t.style)==null?void 0:N.styleType){case "COMPACT_GRAY":case "COMPACT_RED":N={size:"S"};break a;default:N={size:"M"}}var z=n$x(t,
X);var T=(T=X?t.subscribedButtonText:t.unsubscribedButtonText)?_.CI(T):void 0;return G.call(q,{},e,N,{focused:!1,toggled:X,accessibilityLabel:z,formattedButtonText:T,onTap:E$x(t,X,f,Q,A)})}}}});
oa.prototype.onMouseDown=oa.prototype.onMouseDown;oa.prototype.onDataChanged=oa.prototype.onDataChanged;oa.prototype.observedSubscribed=oa.prototype.observedSubscribed;oa.prototype.onYtServiceRequestCompleted=oa.prototype.onYtServiceRequestCompleted;oa.prototype.onYtServiceRequestSent=oa.prototype.onYtServiceRequestSent;oa.prototype.maybeUpdateBellButtonText=oa.prototype.maybeUpdateBellButtonText;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],oa.prototype,"ytComponentBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],oa.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],oa.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],oa.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.subscribedEntityKey"],selector:rNu}),_.H("design:type",Object)],oa.prototype,"subscriptionStateEntity",void 0);_.V([_.n({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.H("design:type",Boolean)],oa.prototype,"subscribed",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],oa.prototype,"branded",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],oa.prototype,"animatedActionEnabled",void 0);
_.V([_.n(),_.H("design:type",Object)],oa.prototype,"foregroundLottieRef",void 0);_.V([_.n(),_.H("design:type",Object)],oa.prototype,"backgroundLottieRef",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],oa.prototype,"overlayButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.H("design:type",Object)],oa.prototype,"buttonStyle",void 0);_.V([_.n(),_.H("design:type",Object)],oa.prototype,"forceIconOnly",void 0);
_.V([_.n(),_.H("design:type",Object)],oa.prototype,"showTextWhileAnimating",void 0);_.V([_.n({value:function(){return!!_.Px().resolve(_.z7(_.mJ))&&_.M("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.H("design:type",Boolean)],oa.prototype,"useKeyboardFocused",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],oa.prototype,"keyboardFocused",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],oa.prototype,"isAnimating",void 0);_.V([_.y("data.notificationPreferenceButton.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],oa.prototype,"hasBellButton",null);
_.V([_.ev("subscribedButtonText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oa.prototype,"maybeUpdateBellButtonText",null);_.V([_.y("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],oa.prototype,"subscribedButtonText",null);_.V([_.y("data.timedAnimationData.animationTiming","subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],oa.prototype,"smartimationSettings",null);
_.V([_.n({reflectToAttribute:!0}),_.y("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],oa.prototype,"subscribeButtonHidden",null);_.V([_.n({reflectToAttribute:!0}),_.y("subscribed","hasBellButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],oa.prototype,"subscribeButtonInvisible",null);
_.V([_.n({reflectToAttribute:!0}),_.y("subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],oa.prototype,"unsubscribeButtonHidden",null);_.V([_.lo("ytd-subscription-notification-toggle-button-renderer-next"),_.H("design:type",Object)],oa.prototype,"bellButton",void 0);_.V([_.lo("#subscribe-button-shape"),_.H("design:type",HTMLElement)],oa.prototype,"subscribeButtonShape",void 0);
_.V([_.y("overlayButton","subscribed","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],oa.prototype,"buttonShape",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],oa.prototype,"onYtServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],oa.prototype,"onYtServiceRequestCompleted",null);
_.V([_.ev("subscribed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oa.prototype,"observedSubscribed",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oa.prototype,"onDataChanged",null);_.V([_.UQ("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oa.prototype,"onMouseDown",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],oa);
_.Y(oa,"ytd-subscribe-button-renderer",function(){if(Gi7!==void 0)return Gi7;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Gi7=A},{mode:1});var dC=function(){var A=_.F.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.R(dC,_.F);dC.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],dC.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dC.prototype,"isRichGrid",void 0);_.V([_.y_({is:"ytd-game-card-renderer",disableElementRegistration:!0})],dC);
_.Y(dC,"ytd-game-card-renderer",function(){if(JFT!==void 0)return JFT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return JFT=A},{mode:1});var SK={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.M("defer_menus")&&!ZD7?0:void 0,waitForSignal:"eocs"};var l5i;var NXp;var $P=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return A};
_.R($P,_.F);_.J=$P.prototype;_.J.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.J.onSeriesReminderStateEntityChange=function(){var A,t,f;((A=this.eventReminderStateEntity)==null?0:A.key)&&((t=this.seriesReminderStateEntity)==null?void 0:t.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((f=this.eventReminderStateEntity)==null?void 0:f.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Ta("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.J.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.J.onYtServiceRequestError=function(){var A;this.updateReminderStateEntitiesFromButtonState((A=this.data)==null?void 0:A.currentState)};
_.J.handleUpdateUpcomingEventReminderButtonStateCommand=function(A){if(A=_.C(A,Asi)){var t,f=(t=this.data)==null?void 0:t.targetId;f&&A.targetId===f&&_.FD(this.updateReminderStateEntitiesFromButtonState.bind(this,A.state))}};
_.J.getButtonStateFromReminderState=function(){var A;if(((A=this.seriesReminderStateEntity)==null?void 0:A.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var t;if(((t=this.eventReminderStateEntity)==null?void 0:t.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var f,X;if(((f=this.seriesReminderStateEntity)==null?void 0:f.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((X=this.eventReminderStateEntity)==
null?void 0:X.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Q;return(Q=this.data)==null?void 0:Q.currentState};
_.J.updateReminderStateEntitiesFromButtonState=function(A){if(A){switch(A){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":A="UPCOMING_EVENT_REMINDER_STATE_NONE";var t="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":A="UPCOMING_EVENT_REMINDER_STATE_SINGLE";t="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":A="UPCOMING_EVENT_REMINDER_STATE_NONE";t="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var f;
((f=this.eventReminderStateEntity)==null?0:f.key)&&this.ytdReduxBehavior.dispatch(_.Ta("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:A})));var X;((X=this.seriesReminderStateEntity)==null?0:X.key)&&this.ytdReduxBehavior.dispatch(_.Ta("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:t})))}};
_.PV.Object.defineProperties($P.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var A=this.getButtonStateFromReminderState(),t,f;if(A&&((t=this.data)==null?0:(f=t.states)==null?0:f.length))for(t=_.U(this.data.states),f=t.next();!f.done;f=t.next()){f=f.value;var X=void 0;if(((X=_.C(f,tkw))==null?void 0:X.state)===A)return _.C(f,tkw)}}}});
$P.prototype.onYtServiceRequestError=$P.prototype.onYtServiceRequestError;$P.prototype.onYtServiceRequestCompleted=$P.prototype.onYtServiceRequestCompleted;$P.prototype.onSeriesReminderStateEntityChange=$P.prototype.onSeriesReminderStateEntityChange;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],$P.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],$P.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$P.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:tEu}),_.H("design:type",Object)],$P.prototype,"eventReminderStateEntity",void 0);
_.V([_.n({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(A,t){return _.q_(A.entities,"sportsSeriesReminderStateEntity",t)}}),
_.H("design:type",Object)],$P.prototype,"seriesReminderStateEntity",void 0);_.V([_.y("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],$P.prototype,"currentButtonStateRenderer",null);_.V([_.ev("seriesReminderStateEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$P.prototype,"onSeriesReminderStateEntityChange",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$P.prototype,"onYtServiceRequestCompleted",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$P.prototype,"onYtServiceRequestError",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],$P);
_.Y($P,"ytd-upcoming-event-reminder-button-renderer",function(){if(NXp!==void 0)return NXp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return NXp=A},{mode:1});var umS;var Hg=function(){return _.F.apply(this,arguments)||this};
_.R(Hg,_.F);Hg.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.PV.Object.defineProperties(Hg.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(_.M("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Hg.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Hg.prototype,"shelfDismissal",void 0);_.V([_.y("data.responseText"),_.H("design:type",Object),_.H("design:paramtypes",[])],Hg.prototype,"text",null);
_.V([_.y("data.responseText"),_.H("design:type",Object),_.H("design:paramtypes",[])],Hg.prototype,"textAriaLabel",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Hg);
_.Y(Hg,"ytd-notification-multi-action-renderer",function(){if(umS!==void 0)return umS;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return umS=A},{mode:1});var zHf;var aa=function(){return _.F.apply(this,arguments)||this};
_.R(aa,_.F);aa.prototype.ready=function(){var A=this;_.sF(this.hostElement).querySelector("#undo").addEventListener("tap",function(){A.onUndoTap()})};
aa.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.Px().resolve(_.i2).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],aa.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],aa);
_.Y(aa,"ytd-notification-text-renderer",function(){if(zHf!==void 0)return zHf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return zHf=A},{mode:1});var P5K;var Km=function(){var A=_.F.apply(this,arguments)||this;A.mouseOverDelayJobId=0;A.fadeInImageDelayJobId=0;A.startTimeMs=-1;A.loadingStartTimeMs=-1;A.loadingEndTimeMs=-1;A.hasVideoPreview=!1;return A};
_.R(Km,_.F);_.J=Km.prototype;_.J.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.J.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.showThumbnail=function(){var A=this;this.csn=_.Ws();_.yg("fmth");_.a6.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.sX(_.a6,function(){A.loadingStartTimeMs=(0,_.OJ)();var t=_.sF(A.hostElement).querySelector("#thumbnail");t.complete?A.displayMouseOverImage():t.addEventListener("load",_.JY(A,A.displayMouseOverImage))},150):_.rH(_.sF(this.hostElement).querySelector("#play"),"show",!0)};
_.J.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.J.onTap=function(){this.removeVideoPreview()};
_.J.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var A=this.videoId,t=this.csn,f=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,X=this.startTimeMs,Q=this.hasVideoPreview,q=_.zV(this.trackingParams),e={isMovingThumbnail:Q};Q&&X>0&&(f>0&&(e.movingThumbnailLoadingDurationMs=Math.round(f)),e.durationHoveredMs=Math.round((0,_.OJ)()-X));A&&(e.videoId=A);_.d0(t,q,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:e});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.J.removeVideoPreview=function(){_.a6.cancelJob(this.mouseOverDelayJobId);_.a6.cancelJob(this.fadeInImageDelayJobId);var A=_.sF(this.hostElement).querySelector("#thumbnail");_.rH(A,"fade-in",!1);A.removeEventListener("load",_.JY(this,this.displayMouseOverImage));A=_.sF(this.hostElement).querySelector("#play");_.rH(A,"fade-in",!1);_.rH(A,"show",!1)};
_.J.displayMouseOverImage=function(){var A=_.sF(this.hostElement).querySelector("#thumbnail"),t=_.sF(this.hostElement).querySelector("#play");this.isImageAvailable(A)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.OJ)(),this.startTimeMs=(0,_.OJ)(),this.fadeInImageDelayJobId=_.sX(_.a6,function(){_.rH(A,"fade-in",!0)},50)):_.rH(t,"fade-in",!0)};
_.J.computeThumbnail=function(A,t){var f;A&&A.movingThumbnailDetails&&A.movingThumbnailDetails.thumbnails&&t?f=_.a8(A.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):f=t?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(f)return _.of(f)};
_.J.isImageAvailable=function(A){return!(!A.src||A.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||A.naturalWidth===120)};
Km.prototype.onTap=Km.prototype.onTap;Km.prototype.dataChanged=Km.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Km.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Km.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Km.prototype,"csn",void 0);_.V([_.n(),_.H("design:type",Object)],Km.prototype,"trackingParams",void 0);
_.V([_.n(),_.H("design:type",String)],Km.prototype,"videoId",void 0);_.V([_.n(),_.H("design:type",Boolean)],Km.prototype,"isAttachedAndDataSet",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Km.prototype,"dataChanged",null);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Km.prototype,"onTap",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Km);
_.Y(Km,"ytd-moving-thumbnail-renderer",function(){if(P5K!==void 0)return P5K;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return P5K=A},{mode:1});var TX7;_.qB=function(A){this.hostElement=A;this.eventSink=null;this.eventList=[]};
_.qB.prototype.shouldForward=function(){var A,t;return(t=(A=this.eventSink)==null?void 0:A.isConnected)!=null?t:document.body.contains(this.eventSink)};
_.qB.prototype.start=function(A,t){this.eventSink&&this.stop();for(var f=0;f<A.length;f++)this.hostElement.addEventListener(A[f],_.JY(this,this.forwardEvent));var X;this.eventSink=(X=t.hostElement)!=null?X:t;this.eventList=A};
_.qB.prototype.stop=function(){for(var A=0;A<this.eventList.length;A++)this.hostElement.removeEventListener(this.eventList[A],_.JY(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.qB.prototype.forwardEvent=function(A,t){this.shouldForward()&&(A.stopPropagation(),this.eventSink instanceof Element?_.s9(this.eventSink,A.type,t):_.K4(new _.xj("eventSink is not an element")))};_.gC={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.qB(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(A,t){this.forwarder_.start(A,t)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var wC=function(){return _.F.apply(this,arguments)||this};
_.R(wC,_.F);_.J=wC.prototype;_.J.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=_.ah("HTML_DIR")==="rtl"?"right":"left"};
_.J.dataChanged=function(){this.popupOpen=!1};
_.J.computeAriaLabel=function(A){return _.C(A,h6K).label};
_.J.onTap=function(A){A.stopPropagation();A.preventDefault();this.data.command&&_.Px().resolve(_.i2).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
wC.prototype.onPopupClosed=wC.prototype.onPopupClosed;wC.prototype.onPopupOpened=wC.prototype.onPopupOpened;wC.prototype.onTap=wC.prototype.onTap;wC.prototype.dataChanged=wC.prototype.dataChanged;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],wC.prototype,"eventForwardingBehavior",void 0);_.V([_.b(_.wO),_.H("design:type",Object)],wC.prototype,"ironButtonState",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],wC.prototype,"componentBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],wC.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:-1}),_.H("design:type",Number)],wC.prototype,"tabindex",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.H("design:type",Object)],wC.prototype,"ariaLabel",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],wC.prototype,"disableTooltips",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],wC.prototype,"popupOpen",void 0);
_.V([_.n(),_.H("design:type",Element)],wC.prototype,"eventSink",void 0);_.V([_.lo("#tooltip"),_.H("design:type",Object)],wC.prototype,"tooltip",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wC.prototype,"dataChanged",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],wC.prototype,"onTap",null);
_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wC.prototype,"onPopupOpened",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wC.prototype,"onPopupClosed",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],wC);
_.Y(wC,"ytd-thumbnail-overlay-button-renderer",function(){if(TX7!==void 0)return TX7;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return TX7=A},{mode:1});var io7;var s3=function(){return _.F.apply(this,arguments)||this};
_.R(s3,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],s3.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],s3.prototype,"disableAnimation",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],s3.prototype,"rounded",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],s3.prototype,"transparentBackground",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],s3.prototype,"noPadding",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],s3);
_.Y(s3,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(io7!==void 0)return io7;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return io7=A},{mode:1});var Oop;var kP=function(){return _.F.apply(this,arguments)||this};
_.R(kP,_.F);kP.prototype.computeIconPosition=function(A){return this.get("iconPosition",A)||null};
kP.prototype.computeIconStyle=function(A){return this.get("iconStyle",A)||null};
kP.prototype.computeIsIconStyleFilled=function(A){if(!A)return!1;var t;return A.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((t=A.icon)==null?void 0:t.iconType)==="ERROR_BLACK"};
_.V([_.n(),_.H("design:type",Object)],kP.prototype,"data",void 0);_.V([_.n({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.H("design:type",Object)],kP.prototype,"iconPosition",void 0);_.V([_.n({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.H("design:type",Object)],kP.prototype,"iconStyle",void 0);_.V([_.n({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],kP.prototype,"iconStyleFilled",void 0);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],kP);
_.Y(kP,"ytd-thumbnail-overlay-icon-renderer",function(){if(Oop!==void 0)return Oop;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Oop=A},{mode:1});var cFT;var rC=function(){return _.F.apply(this,arguments)||this};
_.R(rC,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rC.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],rC);
_.Y(rC,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(cFT!==void 0)return cFT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return cFT=A},{mode:1});var BXS;var Aw=function(){var A=_.F.apply(this,arguments)||this;A.isPreviewLoading=!1;return A};
_.R(Aw,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Aw.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Aw.prototype,"isPreviewLoading",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Aw);
_.Y(Aw,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(BXS!==void 0)return BXS;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return BXS=A},{mode:1});var Mcp;var tw=function(){return _.F.apply(this,arguments)||this};
_.R(tw,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],tw.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],tw);
_.Y(tw,"ytd-thumbnail-overlay-pinking-renderer",function(){if(Mcp!==void 0)return Mcp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Mcp=A},{mode:1});var C5E;var fj=function(){var A=_.F.apply(this,arguments)||this;A.disableTooltips=!1;A.isLoading=!1;A.useExpandableTooltip=!1;A.toggled=!1;A.hovered=!1;A.mouseoverDelayJobId=0;A.toggleDelayJobId=0;A.expandAnimationDelayJobId=0;return A};
_.R(fj,_.F);_.J=fj.prototype;_.J.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");_.sF(this.hostElement).querySelector("#tooltip").position=_.ah("HTML_DIR")==="rtl"?"right":"left"};
_.J.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.a6.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.a6.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.a6.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.J.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.a6.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.a6.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.a6.cancelJob(this.expandAnimationDelayJobId)};
_.J.computeIcon=function(A,t,f){return(A=f?t:A)&&A.iconType?_.t7(A.iconType):void 0};
_.J.computeAriaLabel=function(A,t,f){return _.C(f?t:A,h6K).label};
_.J.computeTooltip=function(A,t,f){return f?t:A};
_.J.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.J.computeIconOnHover=function(A,t){if((A==null?0:A.iconType)&&!t)return _.t7(A.iconType)};
_.J.onTap=function(A){var t=this;A.stopPropagation();A.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(A=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(A),this.useExpandableTooltip&&(this.toggleDelayJobId=_.sX(_.a6,function(){t.hovered=!1;t.data&&!t.data.toggledServiceEndpoint&&(t.expandAnimationDelayJobId=_.sX(_.a6,function(){t.set("data.isToggled",
!1)},200))},2E3))};
_.J.onMouseenter=function(){var A=this;this.mouseoverDelayJobId=_.sX(_.a6,function(){A.hovered=!0},300)};
_.J.onMouseleave=function(){_.a6.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.J.onServiceRequestCompleted=function(A,t){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(t)||this.set("data.isToggled",!this.data.isToggled)};
_.J.serviceRequestWasSuccessful=function(A){return _.C(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.qN)?A.data.status==="STATUS_SUCCEEDED":!0};
fj.prototype.onServiceRequestCompleted=fj.prototype.onServiceRequestCompleted;fj.prototype.onPopupClosed=fj.prototype.onPopupClosed;fj.prototype.onPopupOpened=fj.prototype.onPopupOpened;fj.prototype.onMouseleave=fj.prototype.onMouseleave;fj.prototype.dataChanged=fj.prototype.dataChanged;_.V([_.b(_.wO),_.H("design:type",Object)],fj.prototype,"ironButtonState",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],fj.prototype,"ytComponentBehavior",void 0);
_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],fj.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fj.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.H("design:type",Object)],fj.prototype,"ariaLabel",void 0);_.V([_.n(),_.H("design:type",Object)],fj.prototype,"disableTooltips",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],fj.prototype,"popupOpen",void 0);_.V([_.n(),_.H("design:type",Object)],fj.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",Element)],fj.prototype,"eventSink",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fj.prototype,"useExpandableTooltip",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.H("design:type",Object)],fj.prototype,"toggled",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fj.prototype,"hovered",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.H("design:type",Object)],fj.prototype,"iconOnHover",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fj.prototype,"dataChanged",null);
_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fj.prototype,"onMouseleave",null);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fj.prototype,"onPopupOpened",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fj.prototype,"onPopupClosed",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],fj.prototype,"onServiceRequestCompleted",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],fj);
_.Y(fj,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(C5E!==void 0)return C5E;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return C5E=A},{mode:_.sQ("kevlar_poly_si_batch_j053")?1:2});var hHl;var RHf=_.I(function(A){var t=A.data;var f=A.thumbnailSize;var X=function(){return t().enableSegmentView};
return _.u("yt-thumbnail-overlay-progress-bar-view-model",{class:_.Ao("ytThumbnailOverlayProgressBarHost",function(){return FVT(f==null?void 0:f())})},_.u(_.P,{cond:X,
then:function(){return _.u("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.u("div",{class:_.CW("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+t().startPercent+"%"}}),_.u("div",{class:_.CW("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+t().segmentDurationPercent+"%"}},_.u("div",{class:_.CW("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.u("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.u("div",null," ",function(){return t().segmentLabel})),_.u("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.u("div",{class:_.CW("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.u(_.P,{cond:function(){return!X()&&t().startPercent},
then:function(){var Q={};return _.u("div",{class:_.CW("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Q.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.M("web_enable_modern_progress_bar_overlay"),Q))},_.u("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+t().startPercent+"%"}}))}}))},"Fa");
RHf.idomCompat=!0;var mCb=_.I(function(A){var t=_.Un(),f=_.um(function(Q){var q,e,G;a:{var N=(q=A.data())==null?void 0:q.animationActivationTargetId;q=((e=A.data())==null?void 0:e.animationActivationEntityKey)||"";e=(G=A.data())==null?void 0:G.animationActivationEntitySelectorType;if(q&&N)switch(e){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Q=_.to(Q,q);G=_.Px().resolve(_.z7(_.DS));N=!!(Q&&Q.videoId===N&&(G==null?0:G.isMiniplayerActive()));N={activated:N,playAnimation:N&&Q.playerState==="PLAYER_STATE_PLAYING"};
break a}N=void 0}return N});
_.oo(function(){var Q;if((Q=f())==null?0:Q.activated){var q;if((q=f())==null?0:q.playAnimation){var e;(e=t.lottieEl)==null||e.goToAndPlay(0)}else{var G;(G=t.lottieEl)==null||G.goToAndStop(0)}}},"DbQiXd");
var X=function(){var Q,q=!((Q=f())==null||!Q.activated);if(A.data()){Q=A.data();var e=void 0;Q.icon&&(e=_.XW5(Q.icon),e=ue0(e));var G=void 0,N;if((N=Q.backgroundColor)==null?0:N.lightTheme){var z;G={backgroundColor:Wi((z=Q.backgroundColor)==null?void 0:z.lightTheme,"0.8")}}if(Q.text||e||q){if(q&&Q.lottieData&&t){z=Q.lottieData;var T,O,c;N={animationConfig:{name:z.url,path:z.url,autoplay:(T=z.settings)==null?void 0:T.autoplay,loop:(c=(O=z.settings)==null?void 0:O.loop)!=null?c:!0},animationRef:t}}else N=
void 0;if(q)T=17;else b:switch(Q.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":T=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":T=19;break b;default:T=17}q={type:T,text:q&&Q.animatedText?Q.animatedText:Q.text,icon:e,customColors:G,animation:N}}else q=void 0}else q=void 0;return q};
return _.u("yt-thumbnail-badge-view-model",{class:_.Ao("ytThumbnailBadgeViewModelHost",A.class)},_.u(_.P,{cond:X,then:function(){return _.u(_.lO,{data:function(){return X()}})}}))},"Ha");var bop=_.I(function(A){var t={},f={};return _.u("yt-thumbnail-bottom-overlay-view-model",{class:_.Ao("ytThumbnailBottomOverlayViewModelHost",(t.ytThumbnailBottomOverlayViewModelHostBackground=function(){return A.data().enableGradientBackground},t))},_.u(_.P1,{data:function(){return A.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(X){return _.u(RHf,{data:X.data,
thumbnailSize:A.thumbnailSize})}}),_.u("div",{class:_.Ao("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var X;
return IEx((X=A.thumbnailSize)==null?void 0:X.call(A))},(f.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var X;
return(X=A.isClip)==null?void 0:X.call(A)},f.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var X;
return!_.M("web_enable_modern_progress_bar_overlay")&&((X=A.thumbnailSize)==null?void 0:X.call(A))==="small"},f))},_.u(_.P1,{data:function(){return A.data().badge}},{thumbnailBadgeViewModel:function(X){return _.u(mCb,{data:X.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.u(_.P1,{data:function(){return A.data().badges}},{thumbnailBadgeViewModel:function(X){return _.u(mCb,{data:X.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
bop.idomCompat=!0;_.Hn(bop,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.dt,thumbnailSize:_.dt,isClip:_.dt}});var HKb={calledOnce:!1,state:"visible"},aEx={calledOnce:!1,state:"hidden"};var XV=_.I(function(A){var t=A.data;var f=A.className;A=A.alwaysShow;var X=_.Yrs(),Q={};return _.u("thumbnail-hover-overlay-view-model",{el:_.ZY(_.W1(function(){return t().rendererContext})),
class:_.Ao("ytThumbnailHoverOverlayViewModelHost",f,(Q.ytThumbnailHoverOverlayViewModelHostForceHover=A,Q)),"aria-label":function(){var q;return(q=_.C(t().rendererContext,_.Tq))==null?void 0:q.label},
role:function(){return _.mL(t().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.mL(t().rendererContext)!==void 0?0:void 0},
"on:keypress":X},_.u("div",{class:_.Ao("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(t().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var q="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:q="ytThumbnailHoverOverlayViewModelStyleCover"}return q})},_.u(_.P,{cond:function(){return t().icon},
then:function(q){return _.u(_.YA,{data:q,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.u(_.P,{cond:function(){return t().text},
then:function(q){return _.u(_.zL,{text:q,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
XV.idomCompat=!0;var WFl=_.I(function(A){var t=A.data;return _.u(_.P1,{data:function(){return t==null?void 0:t().overlays}},{thumbnailHoverOverlayViewModel:XV})},"La");
WFl.idomCompat=!0;var yFT={};var vLl=_.I(function(A){var t=A.data;var f=A.image;var X=A.state;var Q=A.iconType;var q=A.overlays;var e=A.isOverlay;var G=_.ud("div");A=_.U(_.hZ(!0,void 0,"AA4e7b"));var N=A.next().value,z=A.next().value,T=function(){return!!t().onTap},O=_.dR(Q,"LIVE");
_.oo(function(){var B=t();requestAnimationFrame(function(){if(G.value===null)var h=!0;else{var W=G.value;h=B.badgeText;var L=g$5(B.size);h in yFT?W=yFT[h]:(W=W.clientWidth,yFT[h]=W);(h=W>L)?G.value.style.display="none":G.value.style.visibility="visible"}z(h)})},"vNdN8b");
var c=function(){var B={};return B["yt-spec-avatar-shape__image"]=!0,B["yt-spec-avatar-shape__image--ads-app"]=t().type===1,B["yt-spec-avatar-shape__image--inscribed-square"]=t().type===2,B};
return _.u("yt-avatar-shape",null,_.u("div",{el:_.ZY(sEp(T,{keydown:function(B){if(B.key==="Enter"){var h;(h=B.currentTarget)==null||h.click()}},
click:function(B){var h,W;return void((W=(h=t()).onTap)==null?void 0:W.call(h,B))}})),
class:function(){var B={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},h=t();B=(B[h.clusterLayoutConfig?Av5(h.clusterLayoutConfig):tzg(h.size)]=!0,B["yt-spec-avatar-shape__button--tappable"]=T(),B);(h=t().avatarButtonCustomClassName)&&(B[h]=!0);return _.CW(B)},
"aria-label":function(){return T()?t().accessibilityText:""},
role:function(){return T()?"button":void 0},
tabindex:function(){return T()?0:void 0}},_.u("div",{class:function(){var B,h=t(),W=X==null?void 0:X(),L=e==null?void 0:e(),E=!((B=h.decorations)==null||!B.includes(2)||h.size!=="medium"&&h.size!=="large"),D=h.size==="tiny"||h.size==="extra-small",S,Z,d,K,k={};
B=(k["yt-spec-avatar-shape--live-ring"]=!!(((S=h.decorations)==null?0:S.includes(0))&&X2s(h.size)),k["yt-spec-avatar-shape--stories-watched"]=E&&!(W==null||!W.storiesWatched),k["yt-spec-avatar-shape--stories-unwatched"]=E&&!(W==null?0:W.storiesWatched),k["yt-spec-avatar-shape--background-border"]=QN0(h.decorations)&&!D,k["yt-spec-avatar-shape--background-border-thin"]=QN0(h.decorations)&&D,k["yt-spec-avatar-shape__on-select-border"]=!((Z=h.decorations)==null||!Z.includes(4)),k["yt-spec-avatar-shape__white-border"]=
!((d=h.decorations)==null||!d.includes(5)),k["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((K=h.decorations)==null?0:K.includes(5))&&D),k["yt-spec-avatar-shape--is-overlay"]=!!L,k);return _.CW(B)},
style:function(){a:{var B=t().clusterLayoutConfig;if(B){b:{var h=B.numAvatarsInCluster;var W=B.avatarIndex;if(W!==h-1){switch(B.clusterSize){case "small":B="32";break;case "medium":B="36";break;case "40":B="40";break;default:h=void 0;break b}h="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+B+"x"+B+"_avatars_"+h+"_index_"+W+".svg"}else h=void 0}if(h){h=_.U7({"-webkit-mask-image":"url("+h+")","mask-image":"url("+h+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}h=void 0}return h}},_.u("div",{class:function(){var B={};
var h=t();B=(B[h.clusterLayoutConfig?ksl(h.clusterLayoutConfig):rC5(h.size)]=!0,B["yt-spec-avatar-shape--no-margin"]=QN0(t().decorations),B["yt-spec-avatar-shape--square"]=t().type===2,B);return _.CW(B)}},_.u(_.YA,{data:f,
alt:function(){return!T()&&t().accessibilityText?t().accessibilityText:""},
targetWidth:function(){return fqx(t().size)},
targetHeight:function(){return fqx(t().size)},
className:function(){return _.CW(c())}}),_.u(_.P,{cond:function(){var B;
return((B=t().decorations)==null?void 0:B.includes(0))&&X2s(t().size)},
then:function(){return _.u("div",{class:function(){var B={};B=(B["yt-spec-avatar-shape__live-badge"]=!0,B["yt-spec-avatar-shape__live-badge--badge-small"]=t().size==="small",B["yt-spec-avatar-shape__live-badge--badge-medium"]=t().size==="medium"||t().size==="48",B["yt-spec-avatar-shape__live-badge--badge-large"]=t().size==="large",B["yt-spec-avatar-shape__live-badge--badge-extra-large"]=t().size==="extra-large"||t().size==="extra-extra-large"||t().size==="giant",B);return _.CW(B)}},_.u(_.P,{cond:function(){return t().badgeText},
then:function(B){return _.u("div",{class:"yt-spec-avatar-shape__badge-text",el:G},B)}}),_.u(_.P,{cond:N,
then:function(){return _.u("div",{class:"yt-spec-avatar-shape__badge-icon"},_.u(_.el,{icon:O,size:function(){a:switch(t().size){case "extra-large":var B=16;break a;default:B=13}return B}}))}}))}}),_.u(_.P,{cond:function(){var B,h;
return((B=t().decorations)==null?void 0:B.includes(1))||((h=t().decorations)==null?void 0:h.includes(0))&&!X2s(t().size)},
then:function(){return _.u("div",{class:function(){var B=t(),h,W,L={};var E=(L["yt-spec-avatar-shape__live-dot"]=!((h=B.decorations)==null||!h.includes(0)||X2s(B.size)),L["yt-spec-avatar-shape__new-content"]=!((W=B.decorations)==null||!W.includes(1)),L);return _.CW(E)}})}}),_.u(_.P,{cond:function(){return!!q},
then:function(){return _.u("div",{class:function(){var B={};B=Object.assign((B["yt-spec-avatar-shape__image-overlays"]=!0,B),c());return _.CW(B)}},q==null?void 0:q())}})))))},"Oa");
vLl.idomCompat={callbacks:{overlays:!0}};_.QK=_.I(function(A){function t(){f().endpoint&&_.LI(f().endpoint)}
var f=A.data;var X=A.decorations;var Q=A.avatarButtonCustomClassName;var q=A.isOverlay;var e=A.clusterLayoutConfig;return _.u("avatar-view-model",null,_.u(_.P,{cond:function(){return f().image},
then:function(G){return _.u(vLl,{data:function(){return Jvp({data:f(),onTap:f().endpoint?t:void 0,decorations:X==null?void 0:X(),badgeText:void 0,accessibilityText:f().accessibilityText,avatarButtonCustomClassName:Q==null?void 0:Q(),clusterLayoutConfig:e==null?void 0:e()})},
image:G,iconType:"RADAR_LIVE",overlays:function(){return _.u(WFl,{data:f})},
isOverlay:q})}}))},"Pa");
_.QK.idomCompat=!0;_.qM=_.I(function(A){var t=A.data;A=A.className;var f=_.ud("yt-decorated-avatar-view-model"),X=function(){return _.C(t().avatar,_.v1)},Q=_.yq(function(){var q,e=t(),G=X(),N=_.mL(t().rendererContext),z=(q=f.value)!=null?q:void 0,T;
if(G){z={data:e,avatar:G,onTap:N,element:z};q=z.data;e=z.avatar;G=z.onTap;N=z.element;z=z.commandController;G=G?lqg(G,N,z):void 0;N=[];q.liveData&&N.push(0);var O;z=(O=q.liveData)==null?void 0:O.liveBadgeText;O=(T=_.C(q.rendererContext,_.Tq))==null?void 0:T.label;T=Jvp({data:e,onTap:G,decorations:N,badgeText:z,accessibilityText:O?O:q.a11yLabel})}else T={size:"medium"};return T},void 0,"c00kWd");
return _.u("yt-decorated-avatar-view-model",{class:_.Ao("ytDecoratedAvatarViewModelHost",A),el:f},_.u(_.P,{cond:function(){var q;return(q=X())==null?void 0:q.image},
then:function(q){return _.u(vLl,{data:Q,image:q,iconType:"RADAR_LIVE",overlays:function(){return _.u(WFl,{data:X})}})}}))},"Qa");
_.qM.idomCompat=!0;_.Jw=_.I(function(A){var t=function(){var G;return Object.assign({},A.data(),(G=A.overrides)==null?void 0:G.call(A))},f=function(){return _.bj(t().rendererContext)},X=function(){var G=t().avatars,N,z;
return(z=(N=(G==null?0:G[0])?_.C(G[0],_.v1):void 0)==null?void 0:N.avatarImageSize)!=null?z:"AVATAR_SIZE_UNKNOWN"},Q=function(){return Glg(t())},q=function(){if(t().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var G=void 0;
else if((G=A.decorations)==null?0:G.call(A))G=A.decorations();else{G=t();var N=0;G.avatars&&(N+=G.avatars.length);G.decoratedText&&(N+=1);G=N>1?[3]:[]}return G},e={};
return _.u("yt-avatar-stack-view-model",{el:_.ZY(_.W1(function(){return t().rendererContext})),
class:_.Ao("yt-avatar-stack-view-model",A.className,(e["yt-avatar-stack-view-model--tappable"]=f,e["yt-avatar-stack-view-model--is-overlay"]=A.isOverlay,e["yt-avatar-stack-view-model--medium-text"]=A.useMediumText,e)),tabindex:function(){return f()?0:void 0},
role:function(){return f()?"link":void 0},
"aria-label":function(){var G,N;return(N=(G=_.C(t().rendererContext,_.Tq))==null?void 0:G.label)!=null?N:""}},_.u(_.P,{cond:function(){var G;
return t().avatars&&!((G=A.hideAvatar)==null?0:G.call(A))},
then:function(){return _.u("div",{class:"yt-avatar-stack-view-model__avatars"},_.u(_.P,{cond:function(){return t().decoratedText},
then:function(G){var N={};return _.u("div",{class:_.Ao("yt-avatar-stack-view-model__text-container",(N["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return X()==="AVATAR_SIZE_XXS"||X()==="AVATAR_SIZE_XS"},N["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var z;
return((z=A.isOverlay)==null?void 0:z.call(A))&&(X()==="AVATAR_SIZE_XXS"||X()==="AVATAR_SIZE_XS")},N)),
style:_.U7({width:function(){return Q().avatarSizeInPx+"px"},
height:function(){return Q().avatarSizeInPx+"px"}})},_.u(_.zL,{text:G,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.u("div",{style:function(){return _.U7(Q().avatarStackStyle)()},
class:function(){return Q().avatarStackClass}},_.u(_.P1,{data:function(){return Q().avatars.reverse()}},{avatarViewModel:function(G,N){return _.u("div",{style:function(){var z,T;
return _.U7((T=(z=Q()).avatarStyle)==null?void 0:T.call(z,N()))()},
class:function(){return Q().avatarClass}},_.u(_.QK,{data:G.data,
decorations:q,avatarButtonCustomClassName:function(){return Q().avatarButtonCustomClassName},
isOverlay:A.isOverlay,clusterLayoutConfig:function(){var z,T;return(T=(z=Q()).clusterLayoutConfig)==null?void 0:T.call(z,N())}}))},
decoratedAvatarViewModel:function(G,N){return _.u("div",{style:function(){var z,T;return _.U7((T=(z=Q()).avatarStyle)==null?void 0:T.call(z,N()))()},
class:function(){return Q().avatarClass}},_.u(_.qM,{data:G.data}))}})))}}),_.u(_.P,{cond:function(){return t().text},
then:function(G){return _.u(_.zL,{text:G,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.Jw.idomCompat=!0;_.Hn(_.I(function(A){var t=A.data;var f=A.thumbnailSize;return _.u("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.u("div",{class:_.Ao("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return N75(f==null?void 0:f())})},_.u(_.P1,{data:function(){return t().avatarStack}},{avatarStackViewModel:function(X){return _.u(_.Jw,{data:X.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.PS,
thumbnailSize:_.PS}});var LFb=_.I(function(A){A=_.Sv(A,{hidden:!1});var t=A.data;A=A.hidden;return _.u("yt-thumbnail-overlay-title-view-model",{class:_.Ao("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(t().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var f="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:f="ytThumbnailOverlayTitleViewModelPositionTop"}return f}),
hidden:A},_.u(_.P,{cond:function(){return t().leadingContent},
then:function(f){return _.u("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.u(_.P1,{data:f},{decoratedAvatarViewModel:_.qM}))}}),_.u("div",null,_.u(_.zL,{text:function(){return t().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.u(_.P,{cond:function(){return t().subtitle},
then:function(){return _.u(_.zL,{text:function(){return t().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
LFb.idomCompat=!0;_.Hn(LFb,"yt-thumbnail-overlay-title-view-model",{props:{data:_.PS,hidden:_.PS}});_.pZT=_.I(function(A){A=_.Sv(A,{isClip:!1});var t=A.data,f=A.thumbnailSize,X={};return _.u("yt-thumbnail-overlay-badge-view-model",{class:_.Ao("yt-thumbnail-overlay-badge-view-model",function(){a:switch(t().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Q="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:Q="yt-thumbnail-overlay-badge-view-model--bottom-end"}return Q},function(){return unT(f==null?void 0:f())},(X["yt-thumbnail-overlay-badge-view-model--clip"]=A.isClip,
X))},_.u(_.P1,{data:function(){return t().thumbnailBadges}},{thumbnailBadgeViewModel:function(Q){return _.u(mCb,{data:Q.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.pZT.idomCompat=!0;_.Hn(_.pZT,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.PS,thumbnailSize:_.PS,isClip:_.PS}});var ELp=_.I(function(A){var t=A.data;A=A.hidden;var f=_.yq(function(){return t().indicatorCount||0},void 0,"AbKnMc"),X={};
return _.u("yt-page-indicator-view-model",{class:_.Ao("ytPageIndicatorViewModelHost",(X.ytPageIndicatorViewModelIndicatorHidden=function(){return!t().indicatorCount},X)),
hidden:A},_.u(_.xk,{each:function(){return Array(f())}},function(Q,q){var e={};
return _.u("div",{class:_.Ao("ytPageIndicatorViewModelIndicator",(e.ytPageIndicatorViewModelIndicatorSelected=function(){return t().selectedIndex===q()},e))})}))},"Va");
ELp.idomCompat=!0;_.Hn(ELp,"yt-page-indicator-view-model",{props:{data:_.PS,hidden:_.PS}});var U5=function(){var A=_.F.apply(this,arguments)||this;A.eventSink=function(){return A};
A.disableInteraction=!1;A.noRoundedCorners=!1;A.isPreviewLoading=!1;A.isOriginalAspectRatio=!1;A.computedObjectFit=!1;A.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return A};
_.R(U5,_.F);_.J=U5.prototype;
_.J.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:_.M("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"}}};
_.J.onImageLoaded=function(){this.loaded=!0};
_.J.onImageUnloaded=function(){this.loaded=!1};
_.J.computeRichThumbnail=function(A,t,f,X){if(A&&t&&!X&&!_.M("disable_moving_thumbs_handling")&&!f)return t};
_.J.computeImageWidth=function(A,t){return t||9999};
_.J.computeIsOriginalAspectRatio=function(A){return A};
_.J.computeIsLive=function(A){if(A==null?0:A.badges)for(var t=0;t<A.badges.length;t++){var f=A.badges[t];if(f.metadataBadgeRenderer&&f.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(A==null?0:A.thumbnailOverlays)for(t=0;t<A.thumbnailOverlays.length;t++)if(f=A.thumbnailOverlays[t],f.thumbnailOverlayTimeStatusRenderer&&f.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.J.computeObjectFit=function(A,t){return t||(A?"CONTAIN":"")};
_.J.computeNavigationEndpoint=function(A,t,f){return A?t:f};
_.J.computeHasClip=function(A){A=_.U(A||[]);for(var t=A.next();!t.done;t=A.next())if(t.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.J.computeOverlayColor=function(A){var t;return(A==null?0:(t=A.darkColorPalette)==null?0:t.section2Color)?A.darkColorPalette.section2Color:A==null?void 0:A.sampledThumbnailColor};
_.PV.Object.defineProperties(U5.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.jUT(this.width)}}});
U5.prototype.onImageUnloaded=U5.prototype.onImageUnloaded;U5.prototype.onImageLoaded=U5.prototype.onImageLoaded;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],U5.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(Gpk),_.H("design:type",Object)],U5.prototype,"ytdThumbnailBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],U5.prototype,"componentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],U5.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],U5.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],U5.prototype,"circular",void 0);
_.V([_.n({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.H("design:type",Object)],U5.prototype,"richThumbnail",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.H("design:type",Boolean)],U5.prototype,"hasClip",void 0);_.V([_.n(),_.H("design:type",Object)],U5.prototype,"eventSink",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],U5.prototype,"queued",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],U5.prototype,"richGridThumbnail",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],U5.prototype,"useExpandableTooltip",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],U5.prototype,"useUntranslatedNavigationEndpoint",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],U5.prototype,"disableInteraction",void 0);
_.V([_.n({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.H("design:type",Object)],U5.prototype,"computedNavigationEndpoint",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],U5.prototype,"nowPlayingEqualizerOnly",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],U5.prototype,"hidePlaybackStatus",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],U5.prototype,"objectFit",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],U5.prototype,"noRoundedCorners",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],U5.prototype,"watchFeedThumbnail",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],U5.prototype,"isPreviewLoading",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.H("design:type",Object)],U5.prototype,"isOriginalAspectRatio",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.H("design:type",Object)],U5.prototype,"computedObjectFit",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.H("design:type",Boolean)],U5.prototype,"isLiveVideo",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],U5.prototype,"loaded",void 0);_.V([_.n({computed:"computeOverlayColor(data.thumbnail)"}),_.H("design:type",Object)],U5.prototype,"overlayColor",void 0);_.V([_.n(),_.H("design:type",Boolean)],U5.prototype,"minimizePipBreakages",void 0);_.V([_.n({selector:_.DXq}),_.H("design:type",Boolean)],U5.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.n(),_.H("design:type",Number)],U5.prototype,"width",void 0);
_.V([_.y("inlinePreviewIsEnabled"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],U5.prototype,"isPreviewDisabled",null);_.V([_.y("width"),_.H("design:type",String),_.H("design:paramtypes",[])],U5.prototype,"thumbnailSize",null);_.V([_.UQ("image-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],U5.prototype,"onImageLoaded",null);
_.V([_.UQ("image-unloaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],U5.prototype,"onImageUnloaded",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-thumbnail"})],U5);
var nLf=_.wR()(U5,"ytd-thumbnail",function(){if(hHl===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);hHl=A}A=hHl;return A},{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 minimizePipBreakages".split(" "),mode:2});var T7z=function(A){var t=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15125_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15125_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(f){DCp(t,f)};
this.onLockupMouseLeaveFn=function(f){f=f.relatedTarget;var X,Q;((X=document.getElementsByTagName("ytd-video-preview"))==null?0:(Q=X.item(0))==null?0:Q.contains(f))||(t.terminateVideoPreview(),eX(t))};
this.onThumbnailMouseDownFn=function(){t.terminateVideoPreview();eX(t)};
this.onTouchStart=function(){t.JSC$15125_touched=!0};
this.mediaRenderer=A.mediaRenderer;this.thumbnailElement=A.thumbnailElement;this.lockupElement=A.lockupElement;this.videoPreviewOptsInput=A.videoPreviewOpts;FFb(this);GZ(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)):
_.K4(Error("Gh")):_.K4(Error("Hh")):I58(this)},$Y=function(A){I58(A);
var t;(t=A.lockupElement)==null||t.removeEventListener("mouseenter",A.onMouseMoveFn);var f;(f=A.lockupElement)==null||f.removeEventListener("mouseleave",A.onLockupMouseLeaveFn);var X;(X=A.lockupElement)==null||X.removeEventListener("touchstart",A.onTouchStart);var Q;(Q=A.thumbnailElement)==null||Q.removeEventListener("mousedown",A.onThumbnailMouseDownFn);eX(A)},FFb=function(A){A.inlinePreviewIsEnabledForUser=_.$I().getState().ui.inlinePreviewIsEnabled;
A.unsubscribeFromInlinePreviewIsEnabled=_.ar(_.$I(),_.DXq,function(t){(A.inlinePreviewIsEnabledForUser=t)||eX(A)});
A.JSC$15125_unsubscribeFromInlinePreviewIsActive=_.ar(_.$I(),_.na5,function(t){(A.inlinePreviewIsActive=t)||eX(A)})},I58=function(A){A.unsubscribeFromInlinePreviewIsEnabled();
A.unsubscribeFromInlinePreviewIsEnabled=function(){};
A.JSC$15125_unsubscribeFromInlinePreviewIsActive();A.JSC$15125_unsubscribeFromInlinePreviewIsActive=function(){}},DCp=function(A,t){t.buttons>0||(t=_.cx("kevlar_lockup_hover_delay",-1),A.JSC$15125_touched&&t>=0?(_.a6.cancelJob(A.videoPreviewJobId),A.videoPreviewJobId=_.sX(_.a6,function(){xCK(A)},t),A.JSC$15125_touched=!1):xCK(A))},PZb=function(A){A.videoPreviewJobId=_.sX(_.a6,function(){return _.l(function(t){return t.yield(j_i(A,{isAutoplay:!0}),0)})})},xCK=function(A){!A.previewTriggered&&GZ(A)&&
(A.inlinePreviewIsActive&&A.terminateVideoPreview(),A.previewTriggered=!0,A.mediaRenderer.isInlinePreviewTriggered=!0,_.a6.cancelJob(A.videoPreviewJobId),A.videoPreviewJobId=_.sX(_.a6,function(){return _.l(function(t){return t.yield(j_i(A),0)})}))},j_i=function(A,t){t=t===void 0?{}:t;
var f=t.isAutoplay===void 0?!1:t.isAutoplay;var X,Q,q,e;return _.l(function(G){if(G.nextAddress==1){if(!GZ(A))return G.return();X=A.getVideoPreviewOpts();if(!X)return G.return();f&&(X.isAutoplay=!0);return(q=(Q=_.r2(A.mediaRenderer.hostElement,"yt-open-video-preview-action",[X]))&&Q[0])?G.yield(Q[0],3):G.jumpTo(2)}G.nextAddress!=2&&(q=G.yieldResult===1);if(q){var N=(e=A.mediaRenderer)==null?void 0:e.data;N&&(P_b(N)?delete N.inlinePlayerData:"inlinePlaybackEndpoint"in N&&delete N.inlinePlaybackEndpoint)}_.LO(G)})};
T7z.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var A,t;if((t=(A=this.videoPreviewOptsInput)==null?void 0:A.videoPreviewData)!=null)A=t;else if(A=this.mediaRenderer.data)if(P_b(A))A={inlinePlaybackEndpoint:_.bP(A.inlinePlayerData.onVisible),navigationEndpoint:_.bP(A.onTap),thumbnail:"image"in A?A.image:A.thumbnail,thumbnailOverlays:void 0,accessibilityText:zBg(A)};else if("multipleInlinePlaybackEndpoint"in A){var f=_.C(_.C(A.multipleInlinePlaybackEndpoint,Ymp),VmS);if(f!=
null&&f.playerDescriptors){t=[];f=_.U(f.playerDescriptors);for(var X=f.next();!X.done;X=f.next())X=X.value,t.push({inlinePlaybackEndpoint:X.inlinePlaybackEndpoint,navigationEndpoint:X.navigationEndpoint,thumbnail:X.thumbnail,thumbnailOverlays:X.thumbnailOverlays,accessibilityText:zBg(A)});A=t}else A=void 0}else A={inlinePlaybackEndpoint:A.inlinePlaybackEndpoint,navigationEndpoint:A.navigationEndpoint,thumbnail:A.thumbnail,thumbnailOverlays:A.thumbnailOverlays,accessibilityText:zBg(A)};else A=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:A,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var GZ=function(A){var t;if(t=A.inlinePreviewIsEnabledForUser)t=(A=A.mediaRenderer.data)?"inlinePlaybackEndpoint"in A&&A.inlinePlaybackEndpoint||P_b(A)&&A.inlinePlayerData||"multipleInlinePlaybackEndpoint"in A&&A.multipleInlinePlaybackEndpoint?!0:!1:!1;return t};
T7z.prototype.terminateVideoPreview=function(){_.kJ(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var eX=function(A){_.a6.cancelJob(A.videoPreviewJobId);A.inlinePreviewIsActive=!1;A.previewTriggered=!1;A.mediaRenderer.isInlinePreviewTriggered=!1};var Yai=_.dS(["#"]),l8=function(){var A=_.F.apply(this,arguments)||this;A.isDisabled=!1;return A};
_.R(l8,_.F);_.J=l8.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":SK,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.getMetadata=function(A){var t=[];if(A.metadataText&&Object.keys(A.metadataText).length>0){var f=this.ytRendererBehavior.getSimpleString(A.metadataText);A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&(f=_.B1(f,Number(A.upcomingEventData.startTime)));t.push(f)}else A.shortViewCountText&&t.push(this.ytRendererBehavior.getSimpleString(A.shortViewCountText)),A.publishedTimeText&&t.push(this.ytRendererBehavior.getSimpleString(A.publishedTimeText)),A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&
(f=this.ytRendererBehavior.getSimpleString(A.upcomingEventData.upcomingEventText),t.push(_.B1(f,Number(A.upcomingEventData.startTime))));return t};
_.J.calculateBylineText=function(A){return A.shortBylineText?A.shortBylineText:A.bylineText?A.bylineText:null};
_.J.calculateIsDisabled=function(A){return!!A.isDisabled};
_.J.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A)||_.eNg(Yai)};
_.J.onDetailsTap=function(A){var t=this.data&&this.data.navigationEndpoint;t&&!_.Sl(_.Z2(A)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.M("kevlar_grid_video_renderer_killswitch")?_.s9(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t))};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15132_inlinePreviewHoverListener=LW({mediaRenderer:this,lockupElement:_.sF(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.sF(this.hostElement).querySelector("ytd-thumbnail")})};
_.J.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15132_inlinePreviewHoverListener)==null||$Y(A)};
_.J.computeThumbnailWidth=function(A,t){return t&&t>0?t:A?360:210};
_.J.computeNumBadgesInRow=function(A){var t;return((t=A.badges)==null?void 0:t.length)||0};
_.J.computeShowChannelThumbnail=function(A,t){var f;return t&&!!(A==null?0:(f=A.channelThumbnailSupportedRenderers)==null?0:f.channelThumbnailWithLinkRenderer)};
_.PV.Object.defineProperties(l8.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15132_inlinePreviewHoverListener)==null?0:GZ(A))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
l8.prototype.dataChanged=l8.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],l8.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],l8.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.b(_.P7),_.H("design:type",Object)],l8.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],l8.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],l8.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],l8.prototype,"noEndpoints",void 0);_.V([_.n({computed:"calculateBylineText(data)"}),_.H("design:type",Object)],l8.prototype,"bylineText",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],l8.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],l8.prototype,"isDownloading",void 0);_.V([_.n({reflectToAttribute:!0,value:0}),_.H("design:type",Number)],l8.prototype,"width",void 0);_.V([_.n({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.H("design:type",Object)],l8.prototype,"isDisabled",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],l8.prototype,"dataChanged",null);_.V([_.y("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],l8.prototype,"isHovered",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],l8.prototype,"hasAttributedBylineText",null);
_.V([_.y("bylineText","hasAttributedBylineText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],l8.prototype,"showBylineText",null);_.V([_.y_({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],l8);
_.Y(l8,"ytd-grid-video-renderer",function(){if(l5i!==void 0)return l5i;var A=document.createElement("template");_.m(A,'\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" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" 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]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" 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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return l5i=A},{mode:_.sQ("kevlar_poly_si_batch_j047")?1:2});var Vcw;var NM=function(){var A=_.F.apply(this,arguments)||this;A.roundedContainer=!0;A.skipRoundingTop=!1;A.disableTopPadding=!1;A.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");A.extractOverlay=!1;return A};
_.R(NM,_.F);NM.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
NM.prototype.onClick=function(A){var t,f=(t=this.data)==null?void 0:t.sourceEndpoint;!_.Sl(_.Z2(A),this.hostElement,["A".toString()])&&f&&_.s9(this.hostElement,"yt-navigate",{endpoint:f})};
_.PV.Object.defineProperties(NM.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 A;return!((A=this.data)==null||!A.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=(A=this.data)==null?void 0:A.paragraphMaxLines)!=null?t:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],NM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],NM.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],NM.prototype,"showVerticalDividers",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],NM.prototype,"roundedContainer",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],NM.prototype,"skipRoundingTop",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],NM.prototype,"disableTopPadding",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],NM.prototype,"amsterdamEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],NM.prototype,"extractOverlay",void 0);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],NM.prototype,"showMetadataAtTop",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],NM.prototype,"showMetadataBelowTitle",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.menu"),_.H("design:type",Object),_.H("design:paramtypes",[])],NM.prototype,"hasMenu",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data.truncateParagraphs"),_.H("design:type",Object),_.H("design:paramtypes",[])],NM.prototype,"truncateParagraphs",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.paragraphMaxLines"),_.H("design:type",Number),_.H("design:paramtypes",[])],NM.prototype,"paragraphMaxLines",null);
_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.y("data.background"),_.H("design:type",Object),_.H("design:paramtypes",[])],NM.prototype,"background",null);_.V([_.y_({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],NM);
_.Y(NM,"ytd-info-panel-content-renderer",function(){if(Vcw!==void 0)return Vcw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Vcw=A},{mode:_.sQ("kevlar_poly_si_batch_j076")?1:2});var Zop;var oLp;var dCp;var Sa7;var u8=function(){return _.F.apply(this,arguments)||this};
_.R(u8,_.F);u8.prototype.computeStyle=function(A){return A};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],u8.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],u8.prototype,"style_",void 0);_.V([_.WU({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],u8);
_.Y(u8,"yt-channel-thumbnail-with-link-renderer",function(){if(Sa7===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;dCp===void 0&&(dCp=document.createElement("template"));var X=dCp;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Sa7=A}A=Sa7;return A},{mode:2});var zZ=function(){return _.F.apply(this,arguments)||this};
_.R(zZ,_.F);zZ.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"}}}};
zZ.prototype.computeTitleStyle=function(A){return A||null};
zZ.prototype.computeAvatarStyle=function(A){return A||null};
zZ.prototype.computeShowNavigationButton=function(A,t){return!(A==null||!A.navigationButton||t)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],zZ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.H("design:type",String)],zZ.prototype,"titleStyle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.H("design:type",String)],zZ.prototype,"avatarStyle",void 0);_.V([_.n(),_.H("design:type",Boolean)],zZ.prototype,"hideNavigationButton",void 0);_.V([_.y_({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],zZ);
_.Y(zZ,"ytd-rich-list-header-renderer",function(){if(oLp!==void 0)return oLp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return oLp=A},{mode:_.sQ("kevlar_poly_si_batch_j058")?1:2});var PM=function(){return _.F.apply(this,arguments)||this};
_.R(PM,_.F);PM.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]]"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],PM.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],PM.prototype,"isSearch",void 0);_.V([_.y_({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],PM);
_.Y(PM,"ytd-preview-card-renderer",function(){if(Zop!==void 0)return Zop;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Zop=A},{mode:1});var $Cf;var TZ=function(){return _.F.apply(this,arguments)||this};
_.R(TZ,_.F);TZ.prototype.configureRendererStamper=function(){return{"data.menu":SK}};
TZ.prototype.dataChanged=function(){var A=this.get("colorExtractionPalette.section1Color",this.data);A=_.mt(A);_.Q_(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":A})};
TZ.prototype.computeCardStyle=function(A){return this.get("style.value",A)||null};
TZ.prototype.dataChanged=TZ.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],TZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],TZ.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],TZ.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.H("design:type",String)],TZ.prototype,"cardStyle",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TZ.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],TZ);
_.Y(TZ,"ytd-compact-channel-recommendation-card-renderer",function(){if($Cf!==void 0)return $Cf;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return $Cf=A},{mode:1});var Hol;var a5E;var i8=function(){var A=_.F.apply(this,arguments)||this;A.alignAuto=!1;A.collapsed=!0;A.isToggled=!1;A.alwaysCollapsed=!1;A.canToggle=!0;A.collapsedHeight=80;A.disableToggle=!1;A.alwaysToggleable=!1;A.reversed=!1;A.shouldUseNumberOfLines=!1;A.recomputeOnResize=!1;A.canToggleJobId=0;A.lastReversed=!1;return A};
_.R(i8,_.F);_.J=i8.prototype;_.J.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.J.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.J.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var A=_.sF(this.hostElement),t=A.childNodes,f=document.createDocumentFragment(),X=A.childNodes.length-1;X>=0;X--)_.sF(f).appendChild(t[X]);_.M("enable_shadydom_free_scoped_node_methods")?_.kO(this.hostElement).appendChild(f):A.appendChild(f)}};
_.J.ready=function(){var A=this;_.FD(function(){A.initChildrenObserver()},1)};
_.J.attached=function(){var A;(A=this.resizeObserver)==null||A.observe(this.content)};
_.J.detached=function(){this.detachObserver()};
_.J.toggle=function(A,t){this.canToggle&&(this.isToggled=t,_.s9(this.hostElement,"yt-refit"),A&&A.stopPropagation())};
_.J.reset=function(){this.childrenChanged()};
_.J.onIronResize=function(){this.recomputeOnResize&&!_.M("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.J.computeIsMoreVisible=function(A,t){return A&&!t};
_.J.computeShouldUseNumberOfLines=function(A){try{return!!A&&window.CSS.supports("-webkit-line-clamp","1")}catch(t){}return!1};
_.J.computeIsLessVisible=function(A,t){return A&&t};
_.J.observeCollapsedHeightAndMaxLines=function(){var A=this.collapsedHeight,t=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Q_(this.hostElement,{"--ytd-expander-max-lines":""+t,"--ytd-expander-collapsed-height":""}):_.Q_(this.hostElement,{"--ytd-expander-collapsed-height":A+"px","--ytd-expander-max-lines":""})};
_.J.handleMoreTap=function(A){this.disableToggle||(_.s9(this.hostElement,"yt-expander-more-tapped"),this.toggle(A,!0))};
_.J.handleLessTap=function(A){_.s9(this.hostElement,"yt-expander-less-tapped");this.toggle(A,!1)};
_.J.initChildrenObserver=function(){var A=this;this.observer=new MutationObserver(function(){A.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.M("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.qI(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var t;(t=A.resizeThrottle)==null||t.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.J.childrenChanged=function(){var A=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){wt(function(){A.canToggleJobId=0;A.calculateCanCollapse()})}))};
_.J.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};
_.J.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.J.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("collapsed-changed",this.collapsed))};
_.J.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("is-toggled-changed",this.isToggled))};
_.J.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("can-toggle-changed",this.canToggle))};
_.PV.Object.defineProperties(i8.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
i8.prototype.canToggleChangedForBinding=i8.prototype.canToggleChangedForBinding;i8.prototype.isToggledChangedForBinding=i8.prototype.isToggledChangedForBinding;i8.prototype.collapsedChangedForBinding=i8.prototype.collapsedChangedForBinding;i8.prototype.observeCollapsedHeightAndMaxLines=i8.prototype.observeCollapsedHeightAndMaxLines;i8.prototype.onIronResize=i8.prototype.onIronResize;i8.prototype.reversedChanged=i8.prototype.reversedChanged;i8.prototype.toggledChanged=i8.prototype.toggledChanged;
i8.prototype.alwaysToggleableChanged=i8.prototype.alwaysToggleableChanged;_.V([_.b(_.K9),_.H("design:type",Object)],i8.prototype,"ironResizableBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],i8.prototype,"alignAuto",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],i8.prototype,"collapsed",void 0);_.V([_.n(),_.H("design:type",Object)],i8.prototype,"isToggled",void 0);_.V([_.n(),_.H("design:type",Object)],i8.prototype,"alwaysCollapsed",void 0);
_.V([_.n(),_.H("design:type",Object)],i8.prototype,"canToggle",void 0);_.V([_.n(),_.H("design:type",Object)],i8.prototype,"collapsedHeight",void 0);_.V([_.n(),_.H("design:type",Object)],i8.prototype,"disableToggle",void 0);_.V([_.n(),_.H("design:type",Object)],i8.prototype,"alwaysToggleable",void 0);_.V([_.n(),_.H("design:type",Object)],i8.prototype,"reversed",void 0);_.V([_.n(),_.H("design:type",Number)],i8.prototype,"maxNumberOfLines",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.H("design:type",Object)],i8.prototype,"shouldUseNumberOfLines",void 0);_.V([_.n(),_.H("design:type",Object)],i8.prototype,"recomputeOnResize",void 0);_.V([_.lo("#content"),_.H("design:type",HTMLDivElement)],i8.prototype,"content",void 0);_.V([_.PU("alwaysToggleable"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i8.prototype,"alwaysToggleableChanged",null);
_.V([_.PU("isToggled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i8.prototype,"toggledChanged",null);_.V([_.y("canToggleJobId"),_.H("design:type",Object),_.H("design:paramtypes",[])],i8.prototype,"isResetting",null);_.V([_.ev("reversed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i8.prototype,"reversedChanged",null);
_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i8.prototype,"onIronResize",null);_.V([_.ev("maxNumberOfLines","collapsedHeight"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i8.prototype,"observeCollapsedHeightAndMaxLines",null);_.V([_.ev("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i8.prototype,"collapsedChangedForBinding",null);
_.V([_.ev("isToggled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i8.prototype,"isToggledChangedForBinding",null);_.V([_.ev("canToggle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i8.prototype,"canToggleChangedForBinding",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-expander"})],i8);
_.Y(i8,"ytd-expander",function(){if(a5E!==void 0)return a5E;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return a5E=A},{mode:1});var O5=function(){return _.F.apply(this,arguments)||this};
_.R(O5,_.F);O5.prototype.computeIsCarousel=function(A){return!!A.isCarousel};
O5.prototype.observeLightsourcePalette=function(){var A,t=(A=this.data)==null?void 0:A.vibrantsourceColorPaletteData;t&&_.BO(this.hostElement,t)};
O5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
O5.prototype.observeLightsourcePalette=O5.prototype.observeLightsourcePalette;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],O5.prototype,"data",void 0);_.V([_.n({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],O5.prototype,"isCarousel",void 0);
_.V([_.ev("data.vibrantsourceColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],O5.prototype,"observeLightsourcePalette",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],O5);
_.Y(O5,"ytd-media-upsell-renderer",function(){if(Hol!==void 0)return Hol;var A=document.createElement("template");_.m(A,'\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="EXPAND" 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="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Hol=A},{mode:2});var KFE;var cM=function(){var A=_.F.apply(this,arguments)||this;A.JSC$15159_playerEvents=new Map;A.listeningToPlayer=!1;A.startX=0;A.active=!1;A.shouldShowButtons=_.M("web_buttons_hidden_killswitch");A.isHighlighted=!1;A.useHighlightStyling=_.M("web_enable_deeper_metadata_highlight_styling");A.enableProblemWalkthrough=_.M("problem_walkthrough_sd");return A};
_.R(cM,_.F);_.J=cM.prototype;
_.J.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}}}}}};
_.J.created=function(){this.JSC$15159_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.JY(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.JY(this,this.onActiveUpdate))};
_.J.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.JY(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.JY(this,this.onActiveUpdate))};
_.J.onDataChanged=function(){this.removePlayerListeners()};
_.J.onColorPaletteChange=function(){var A={},t;if(_.np()==="USER_INTERFACE_THEME_DARK"&&((t=this.data)==null?0:t.darkColorPalette)){var f=this.data.darkColorPalette;A["--ytd-macro-markers-list-item-background-color"]=_.bY(this.get("section2Color",f))}else{var X;_.np()==="USER_INTERFACE_THEME_LIGHT"&&((X=this.data)==null?0:X.lightColorPalette)&&(f=this.data.lightColorPalette,A["--ytd-macro-markers-list-item-background-color"]=_.bY(this.get("section3Color",f)))}f?(A["--ytd-macro-markers-list-item-title-color"]=
_.bY(this.get("primaryTitleColor",f)),A["--ytd-macro-markers-list-item-secondary-color"]=_.bY(this.get("secondaryTitleColor",f)),A["--ytd-macro-markers-list-item-timestamp-background-color"]=_.bY(this.get("section1Color",f)),this.customButtonProperties={customColors:{color:_.bY(this.get("primaryTitleColor",f))}},this.useColorSampling=!0):(A["--ytd-macro-markers-list-item-background-color"]="initial",A["--ytd-macro-markers-list-item-title-color"]="initial",A["--ytd-macro-markers-list-item-secondary-color"]=
"initial",A["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Q_(this.hostElement,A)};
_.J.onEndpointMouseDown=function(A){this.startX=A.clientX};
_.J.onEndpointClick=function(A){var t=this,f,X,Q;return _.l(function(q){if(q.nextAddress==1){if(t.startX!==A.clientX)return A.preventDefault(),q.return();t.data&&t.ytRendererBehavior.logExplicitClick(t.data);if(!t.seekWithAnimationOnClick)return q.jumpTo(0);if(A.button!==0||A.shiftKey||A.altKey||A.metaKey||A.ctrlKey||_.Sl(_.Z2(A),t.hostElement,["BUTTON".toString()]))return q.return();A.stopPropagation();A.preventDefault();return t.data?q.yield(_.ge().getPlayerPromise(),3):q.return()}f=q.yieldResult;
Q=(X=_.C(t.data.onTap,_.ZT))==null?void 0:X.startTimeSeconds;Q!==void 0&&f.seekToTimeWithAnimation(Q*1E3,_.dF(t.data.title));_.LO(q)})};
_.J.computeLayout=function(A){return A};
_.J.computeIsHighlighted=function(A){return!!A};
_.J.computeCarouselType=function(A){return A};
_.J.hideCarousel=function(A){return this.hideThumbnail(A)};
_.J.hideThumbnail=function(A){return this.enableProblemWalkthrough&&A!==null&&A==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.J.onRepeatButtonToggle=function(A){var t=this;A.detail.toggled&&_.ge().getPlayerPromise().then(function(f){t.ytPlayerListenerBehavior.listenToPlayerEvents(f,t.JSC$15159_playerEvents);t.listeningToPlayer=!0})};
_.J.onLoopRangeChange=function(A){var t=_.sF(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(t){var f=t.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",t.polymerController.data);if(f){var X=Number(f.endTimeMs);if(Number(f.startTimeMs)!==(A==null?void 0:A.startTimeMs)||X!==(A==null?void 0:A.endTimeMs))t.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.J.removePlayerListeners=function(){var A=this;this.listeningToPlayer&&_.ge().getPlayerPromise().then(function(t){A.ytPlayerListenerBehavior.unlistenFromPlayerEvents(t,A.JSC$15159_playerEvents);A.listeningToPlayer=!1})};
_.J.onActiveUpdate=function(A){this.active=A.detail.active};
cM.prototype.onColorPaletteChange=cM.prototype.onColorPaletteChange;cM.prototype.onDataChanged=cM.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],cM.prototype,"ytPlayerListenerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],cM.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],cM.prototype,"useCustomColors",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],cM.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],cM.prototype,"shouldShowButtons",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.H("design:type",String)],cM.prototype,"layout",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.H("design:type",Object)],cM.prototype,"isHighlighted",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],cM.prototype,"useHighlightStyling",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],cM.prototype,"enableProblemWalkthrough",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.H("design:type",String)],cM.prototype,"carouselType",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],cM.prototype,"useColorSampling",void 0);_.V([_.n(),_.H("design:type",Boolean)],cM.prototype,"seekWithAnimationOnClick",void 0);_.V([_.n(),_.H("design:type",Object)],cM.prototype,"customButtonProperties",void 0);
_.V([_.lo("#repeat-button"),_.H("design:type",HTMLElement)],cM.prototype,"repeatButton",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cM.prototype,"onDataChanged",null);_.V([_.ev("data.lightColorPalette","data.darkColorPalette"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cM.prototype,"onColorPaletteChange",null);
_.V([_.y_({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],cM);
_.Y(cM,"ytd-macro-markers-list-item-renderer",function(){if(KFE!==void 0)return KFE;var A=document.createElement("template");_.m(A,'\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="[[hideCarousel(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="[[!hideCarousel(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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return KFE=A},{mode:1});var gLT;var wZp;var BM=function(){return _.F.apply(this,arguments)||this};
_.R(BM,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],BM.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],BM);
_.Y(BM,"ytd-title-and-button-list-header-renderer",function(){if(wZp!==void 0)return wZp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return wZp=A},{mode:1});var s_8;var kiT=new _.eh("BUTTON_RENDERER_TOKEN");_.MM=_.I(function(A){var t=_.Px().resolve(kiT);return _.u(t,Object.assign({},A,{overrides:A.buttonOverrides}))},"Wa");var rFS=_.I(function(A){var t=A.data,f=_.dR(A.useSquareAspectRatio,!1);return _.u("dismissed-mini-game-card-view-model",null,_.u(_.P,{cond:function(){var X,Q;return(X=t().responseText)==null?void 0:(Q=X.runs)==null?void 0:Q.length},
then:function(){var X={};return _.u("div",{class:_.Ao("yt-mini-game-card-view-model__dismissed-card",(X["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!f()},X["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.M("web_game_card_force_2_by_3")},X["yt-mini-game-card-view-model--dismissed-square-card"]=f,X))},_.u("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.u(_.P,{cond:function(){return t().responseText.runs[0].text},
then:function(Q){return _.u("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Q},Q)}}),_.u(_.P1,{data:function(){return t().buttons}},{buttonRenderer:_.MM,
buttonViewModel:_.nx})))}}))},"Xa");var AXK=_.I(function(A){var t=A.data;return _.u("br-nz-badge-shape",{class:_.Ao(function(){return iHb(t().brNzRatingBadgeType)}),
role:function(){return t().accessibilityText?"img":void 0},
"aria-label":function(){return t().accessibilityText}},function(){var f;
return(f=t())==null?void 0:f.text})},"Ya");_.Cj=_.I(function(A){var t=function(){var f=A.data(),X,Q,q,e;if(f){var G=!((X=A.workaroundShortsIsThumbnailBadge)==null||!X.call(A));X=(Q=A.modern)==null?void 0:Q.call(A);Q=(q=A.numBadgesInRow)==null?void 0:q.call(A);q=(e=A.clipTextOverflow)==null?void 0:e.call(A);var N;a:switch(f.badgeStyle){case "BADGE_OVERLAY":e=!0;break a;default:e=!1}f={type:G?17:OHx(f.badgeStyle),brNzRatingBadgeType:cvb(f.badgeStyle),text:f.badgeText,icon:f.iconName,isOverlay:e,modern:X||_.M("web_modern_badge_view_model"),accessibilityText:f.accessibilityLabel||
((N=_.C(f.rendererContext,_.Tq))==null?void 0:N.label),numBadgesInRow:Q,clipTextOverflow:q}}else f=void 0;return f};
return _.u("yt-badge-view-model",{class:_.Ao("ytBadgeViewModelHost",A.class)},_.u(_.j2,null,_.u(_.FE,{when:function(){var f;return!((f=t())==null||!f.brNzRatingBadgeType)}},function(){return _.u(AXK,{data:function(){return t()}})}),_.u(_.FE,{when:function(){return!!t()&&!t().brNzRatingBadgeType}},function(){return _.u(_.lO,{data:function(){return t()}})})))},"Za");
_.Cj.idomCompat=!0;var evS=_.I(function(A){A=_.Sv(A,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var t=A.data,f=A.useFullWidth,X=A.isDesktopWeb,Q=A.addSearchResultTopMargin,q=function(){return t().layout},e=function(){return t().title},G=function(){return t().metadataText?t().metadataText:t().genre},N=function(){return t().channelName},z=function(){return t().image},T=function(){return t().colorPalette},O=function(){return t().actionButton},c=function(){return t().overflowButton},
B=function(){return t().avatar},h=function(){return t().ageRating},W=function(){var S={};
S=_.Ao("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(S["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return X()},S));
return _.u("div",{class:S},_.u(tS8,{imageData:z,colorPalette:T}),_.u(fhT,{onTap:function(){return t().onTap},
imageData:z,accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
isDesktopWeb:X}),_.u(_.P,{cond:function(){return!X()},
then:function(){return _.u(_.Tw,null,_.u(XHT,{layout:q,colorPalette:T,isDesktopWeb:X,overflowButton:c,avatar:B,onTap:function(){return t().onTap},
genre:G,title:e,channelName:N}),_.u(QuC,{actionButton:O}))}}))},L=function(){var S={};
S=_.Ao((S["yt-mini-game-card-view-model--search-result-desktop"]=function(){return X()},S["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!X()},S["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Q()},S));
return _.u("div",{class:S},W(),_.u(qtk,{description:function(){return t().description},
isDesktopWeb:X,title:e,genre:G,onTap:function(){return t().onTap},
actionButton:O,overflowButton:c,avatar:B,channelName:N}))},E=function(){var S={};
S=_.Ao("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(S["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return X()},S["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return X()&&t().width===135},S["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return X()},S["yt-mini-game-card-view-model--big-metadata-font"]=function(){return t().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},S["yt-mini-game-card-view-model--use-full-width"]=
function(){return f()},S["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.M("web_game_card_force_2_by_3")},S));
return _.u("div",{class:S},_.u(JXl,{colorPalette:T,isDesktopWeb:X,onTap:function(){return t().onTap},
accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
actionButton:O,imageData:z}),_.u(XHT,{layout:q,colorPalette:T,isDesktopWeb:X,overflowButton:c,avatar:B,onTap:function(){return t().onTap},
genre:G,title:e,channelName:N}),_.u(_.P,{cond:h,then:function(Z){return _.u(UzK,{ageRating:Z})}}))},D=function(){var S={};
S=_.Ao("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(S["yt-mini-game-card-view-model--square-card-desktop"]=function(){return X()},S["yt-mini-game-card-view-model--use-full-width"]=function(){return f()},S));
return _.u("div",{class:S},_.u(fhT,{onTap:function(){return t().onTap},
imageData:z,accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
isDesktopWeb:X}),_.u(XHT,{layout:q,colorPalette:T,isDesktopWeb:X,overflowButton:c,avatar:B,onTap:function(){return t().onTap},
genre:G,title:e,channelName:N}),_.u(_.P,{cond:h,then:function(Z){return _.u(UzK,{ageRating:Z})}}))};
return _.u("mini-game-card-view-model",{class:A.className},_.u(_.j2,null,_.u(_.FE,{when:function(){return q()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return E()}),_.u(_.FE,{when:function(){return q()==="MINI_APP_LAYOUT_SQUARE"}},function(){return D()}),_.u(_.FE,{when:function(){return q()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return L()})))},"$a");
evS.idomCompat=!0;var QuC=_.I(function(A){var t=_.dR(A.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.u(_.P1,{data:A.actionButton},{buttonViewModel:function(f){return _.u("div",{class:t},_.u(_.nx,{data:f.data}))}})},"ab"),fhT=_.I(function(A){var t=A.onTap;
var f=A.imageData;var X=A.accessibilityText;var Q=A.overlayBadgeText;var q=A.iconName;var e=A.unplayableInlinePlaybackIconName;A=A.isDesktopWeb;return _.u(_.bc,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:t},_.u(_.YA,{data:f,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(X==null?void 0:X())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.u(Go7,{overlayBadgeText:Q,iconName:q,unplayableInlinePlaybackIconName:e,isDesktopWeb:A}))},"bb"),Go7=_.I(function(A){var t=A.overlayBadgeText;
var f=A.iconName;var X=A.unplayableInlinePlaybackIconName;var Q=A.isDesktopWeb;return _.u("div",{class:"yt-mini-game-card-view-model__badge-container"},_.u(_.P,{cond:f,then:function(q){return _.u("div",{class:"yt-mini-game-card-view-model__badge"},_.u("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.u(_.el,{icon:q,className:"yt-mini-game-card-view-model__icon",size:12}),_.u("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},t)))}}),_.u(_.P,{cond:function(){return!f()&&
t()},
then:function(){return _.u("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},t)}}),_.u(_.P,{cond:function(){return X()&&Q()},
then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.u(_.el,{icon:X,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),tS8=_.I(function(A){var t=A.colorPalette;
var f=A.imageData;var X=function(){return t().vibrantColorPalette?t().vibrantColorPalette.section2Color:t().sectionTwoColor};
return _.u(_.Tw,null,_.u("div",{class:"yt-mini-game-card-view-model__background-base",style:_.U7({"background-color":function(){return Wi(X(),"1")}})}),_.u("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.U7({"background-image":function(){return"url("+f().sources[0].url+")"}})}),_.u("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.U7({background:function(){return"linear-gradient(180deg,\n    "+Wi(X(),".8")+" 0%,\n    "+Wi(X(),".4")+" 25%,\n    "+Wi(t().vibrantColorPalette?t().vibrantColorPalette.section4Color:t().sectionFourColor,".8")+" 100%)"}})}))},"db"),XHT=_.I(function(A){var t=A.layout;
var f=A.colorPalette;var X=A.overflowButton;var Q=A.avatar;var q=A.onTap;var e=A.title;var G=A.channelName;var N=A.genre;var z=function(){var T;return t()!=="MINI_APP_LAYOUT_SQUARE"&&((T=f())==null?0:T.textPrimaryColor)?"color: "+Wi(f().textPrimaryColor,".7"):""};
return _.u("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.u(_.P,{cond:Q,then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__avatar"},_.u(_.P1,{data:Q},{avatarViewModel:_.QK}))}}),_.u(_.bc,{command:q,
className:"yt-mini-game-card-view-model__metadata-details"},_.u("h3",{class:"yt-mini-game-card-view-model__title",title:e},e),_.u(_.P,{cond:Q,then:function(){return _.u("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.u("span",{class:"yt-mini-game-card-view-model__genre",title:G,style:z},G),_.u("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:z},N))},
else:function(){return _.u("span",{class:"yt-mini-game-card-view-model__genre",title:N},N)}})),_.u("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.u(_.P1,{data:X},{buttonViewModel:function(T){var O=T.data;
return _.u(_.nx,{data:function(){return Object.assign({},O(),{customFontColor:t()==="MINI_APP_LAYOUT_SINGLETON"?O().customFontColor:void 0})}})}})))},"eb"),JXl=_.I(function(A){var t=A.colorPalette;
var f=A.isDesktopWeb;var X=A.onTap;var Q=A.accessibilityText;var q=A.overlayBadgeText;var e=A.iconName;var G=A.unplayableInlinePlaybackIconName;var N=A.actionButton;A=A.imageData;return _.u("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.u(tS8,{imageData:A,colorPalette:t}),_.u(fhT,{onTap:X,imageData:A,accessibilityText:Q,overlayBadgeText:q,iconName:e,unplayableInlinePlaybackIconName:G,isDesktopWeb:f}),_.u(_.P,{cond:function(){return N==null?void 0:N()},
then:function(){return _.u(QuC,{actionButton:N})}}))},"fb"),qtk=_.I(function(A){var t=A.description;
var f=A.isDesktopWeb;var X=A.title;var Q=A.genre;var q=A.onTap;var e=A.actionButton;var G=A.overflowButton;var N=A.avatar;A=A.channelName;var z={};z=_.Ao("yt-mini-game-card-view-model--search-result-metadata-wrapper",(z["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=f,z["yt-mini-game-card-view-model--show-unplayable-on-hover"]=f,z["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!f()},z));
var T={};T=_.Ao("yt-mini-game-card-view-model__search-result-info-row",(T["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!f()},T));
return _.u("div",{class:z},_.u("div",{class:T},_.u(_.bc,{command:q,className:"yt-mini-game-card-view-model__metadata-details"},_.u("h3",{class:"yt-mini-game-card-view-model__title",title:X},X),_.u("span",{class:"yt-mini-game-card-view-model__genre",title:Q},Q)),_.u(QuC,{actionButton:e,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.u("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.u(_.P1,{data:G},{buttonViewModel:_.nx}))),_.u("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.u("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.u("div",{class:"yt-mini-game-card-view-model__avatar"},_.u(_.P1,{data:N},{avatarViewModel:function(O){var c=O.data;return _.u(_.QK,{data:function(){return Object.assign({},c(),{avatarImageSize:f()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.u(_.bc,{command:q,
className:"yt-mini-game-card-view-model__description"},_.u("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},A)),_.u(_.bc,{command:q,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.u("div",null)))),_.u(_.P,{cond:f,then:function(){return _.u(_.bc,{command:q,className:"yt-mini-game-card-view-model__description"},t)}}))},"gb"),UzK=_.I(function(A){var t=A.ageRating;
return _.u("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.u(_.YA,{data:function(){return{sources:[{url:t().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.u(_.Cj,{data:function(){return{badgeText:t().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.Hn(evS,"mini-game-card-view-model",{props:{data:_.PS,className:_.PS,useFullWidth:_.PS,isDesktopWeb:_.PS,addSearchResultTopMargin:_.PS}});_.Hn(rFS,"dismissed-mini-game-card-view-model",{props:{data:_.PS,useSquareAspectRatio:_.PS}});var mK=function(){var A=_.F.apply(this,arguments)||this;A.isSearch=!1;A.isRichGrid=!1;return A};
_.R(mK,_.F);_.J=mK.prototype;_.J.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.J.dismissibleItemOnYtServiceRequestSent=function(A,t){t.actions&&this.dismissibleItemProcessActions(A,t.actions)};
_.J.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.J.dataChanged=function(){this.dismissibleItemReset()};
_.J.dismissibleItemProcessActions=function(A,t){for(var f=0;f<t.length;f++){var X=t[f];_.C(X,_.Zu)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.C(X,_.Zu)),A.stopPropagation())}};
_.J.dismissibleItemHandleReplaceEnclosingAction=function(A){this.dismissedRenderer=A.item;this.isDismissed=!0};
_.PV.Object.defineProperties(mK.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var A;return!!this.data&&!((A=this.dismissedRenderer)==null?0:A.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.dismissedRenderer)==null||!A.notificationMultiActionRenderer)}}});
mK.prototype.dataChanged=mK.prototype.dataChanged;mK.prototype.dismissibleItemOnRequestSent=mK.prototype.dismissibleItemOnRequestSent;mK.prototype.dismissibleItemOnYtServiceRequestSent=mK.prototype.dismissibleItemOnYtServiceRequestSent;_.V([_.n(),_.H("design:type",Object)],mK.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],mK.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],mK.prototype,"isDismissed",void 0);
_.V([_.n(),_.H("design:type",Object)],mK.prototype,"dismissedRenderer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],mK.prototype,"isRichGrid",void 0);_.V([_.y("data.layout"),_.H("design:type",Object),_.H("design:paramtypes",[])],mK.prototype,"useSquareAspectRatio",null);_.V([_.y("data","dismissedRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],mK.prototype,"showCard",null);
_.V([_.y("data","dismissedRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],mK.prototype,"showDismissed",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],mK.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.V([_.UQ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mK.prototype,"dismissibleItemOnRequestSent",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mK.prototype,"dataChanged",null);_.V([_.WU({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],mK);
_.Y(mK,"ytd-mini-game-card-view-model",function(){if(s_8!==void 0)return s_8;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return s_8=A},{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var lhE;var NMi;var b8=function(){return _.TS.apply(this,arguments)||this};
_.R(b8,_.TS);b8.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
b8.prototype.getContinuationUrl=function(A){var t={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(t.itct=this.data.clickTrackingParams);return _.U0(A,t)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],b8.prototype,"data",void 0);_.V([_.WU({is:"yt-reload-continuation",noInjection:!0})],b8);var u$E;var zv8;var WM=function(){var A=_.F.apply(this,arguments)||this;A.notificationData={};return A};
_.R(WM,_.F);_.J=WM.prototype;_.J.isMenuExpanded=function(A){return A&&A.length<=1?"undefined":"false"};
_.J.dataChanged_=function(){this.selected=void 0;var A=this.computeSelectedIndex_(this.data);A>=0&&(this.selected=A);A=this.data&&this.data.length>1;_.rH(this.hostElement,"has-items",A);_.sF(this.hostElement).querySelector("#label").tabIndex=A?0:-1};
_.J.onDropdownOpen=function(){var A=_.Ws();if(this.parentTrackingParams&&this.data){var t=_.zV(this.parentTrackingParams);this.data.forEach(function(f){A&&t&&f.trackingParams&&(f=_.zV(f.trackingParams),_.x7(A,t,f),_.Vg(A,[f]))})}else this.parentTrackingParams||_.K4(new _.xj("No parent tracking params passed in for yt-dropdown-menu."))};
_.J.hasNotification=function(A){var t;if(A.targetId&&((t=this.notificationData)==null?0:t.targetId)){var f;return A.targetId===((f=this.notificationData)==null?void 0:f.targetId)}};
_.J.computeSelectedIndex_=function(A){if(A)for(var t=0,f=A.length;t<f;t++)if(A[t].selected)return t;return-1};
_.J.computeLabel_=function(A){return this.data&&A!=void 0?this.data[A].title:""};
_.J.computeShowIcon_=function(A,t){return!t&&!!A};
_.J.computeVerticalOffset_=function(A){return A?36:0};
_.J.computeEndpoint_=function(A){return A.endpoint||A.navigationEndpoint};
_.J.onLabelClick_=function(A){this.data&&this.data.length<=1?A.stopPropagation():this.menuExpanded="true"};
_.J.onIronActivate_=function(A){A=A.detail.item;var t=_.sF(this.hostElement).querySelector("#repeat").itemForElement(A);if(t&&t.trackingParams){var f=_.Ws(),X=_.zV(t.trackingParams);f&&_.o7(f,X)}if(t&&t.serviceEndpoint)_.M("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(t.serviceEndpoint):_.Al(this.hostElement,[t.serviceEndpoint]),_.s9(this.hostElement,"yt-playlist-reloading");else a:{if((t=A.querySelector("yt-supported-renderers"))&&
(t=t.rendererElement)&&t.is=="yt-reload-continuation"){t.trigger();break a}(A=A.querySelector("yt-reload-continuation"))&&A.trigger()}};
_.J.onTap_=function(A){A.preventDefault()};
_.J.onItemTap_=function(A){this.ytEndpointBehavior.onEndpointTap_(A)};
_.J.onLinkFocus_=function(A){try{var t=A.target}catch(X){}if(t){var f=t.querySelector("tp-yt-paper-item");f&&_.Ig(this,"focus",function(){f.focus()})}};
_.J.onMenuClose_=function(){this.menuExpanded="false"};
_.J.isLabelIconActive_=function(A){return A==="true"};
_.J.computeHasSubtitle_=function(A){return!!A};
_.J.computeHrefForItem_=function(A){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(A))};
_.J.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
_.PV.Object.defineProperties(WM.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
WM.prototype.onMenuClose_=WM.prototype.onMenuClose_;WM.prototype.onTap_=WM.prototype.onTap_;WM.prototype.onIronActivate_=WM.prototype.onIronActivate_;WM.prototype.onDropdownOpen=WM.prototype.onDropdownOpen;WM.prototype.dataChanged_=WM.prototype.dataChanged_;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],WM.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.xa.YtEndpointBehavior),_.H("design:type",Object)],WM.prototype,"ytEndpointBehavior",void 0);
_.V([_.n(),_.H("design:type",Array)],WM.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],WM.prototype,"parentTrackingParams",void 0);_.V([_.n(),_.H("design:type",Object)],WM.prototype,"selected",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],WM.prototype,"useLabel",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],WM.prototype,"useComputedAriaLabel",void 0);_.V([_.n(),_.H("design:type",String)],WM.prototype,"icon",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],WM.prototype,"iconLabel",void 0);_.V([_.n(),_.H("design:type",String)],WM.prototype,"ariaLabel",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],WM.prototype,"disabled",void 0);_.V([_.n({computed:"isMenuExpanded(data)"}),_.H("design:type",String)],WM.prototype,"menuExpanded",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],WM.prototype,"closeOnActivate",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.M("web_modern_buttons")}),_.H("design:type",Boolean)],WM.prototype,"modernButtons",void 0);_.V([_.n(),_.H("design:type",Object)],WM.prototype,"notificationData",void 0);_.V([_.y("ariaLabel, selected"),_.n(),_.H("design:type",String),_.H("design:paramtypes",[])],WM.prototype,"computedAriaLabel",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WM.prototype,"dataChanged_",null);
_.V([_.UQ("paper-dropdown-open"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],WM.prototype,"onDropdownOpen",null);_.V([_.UQ("iron-activate"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],WM.prototype,"onIronActivate_",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],WM.prototype,"onTap_",null);
_.V([_.UQ("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],WM.prototype,"onMenuClose_",null);_.V([_.WU({is:"yt-dropdown-menu",disableElementRegistration:!0})],WM);
_.Y(WM,"yt-dropdown-menu",function(){if(zv8===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;u$E===void 0&&(u$E=document.createElement("template"));var X=u$E;f.call(t,X.content.cloneNode(!0),A.content.firstChild);zv8=A}A=zv8;return A},{mode:2});var yK=function(){var A=_.F.apply(this,arguments)||this;A.hasNotification=!1;return A};
_.R(yK,_.F);yK.prototype.computeId=function(A){return A};
yK.prototype.computeHorizontalAlign=function(A){return A?"right":"left"};
yK.prototype.computeAccessibilityLabel=function(A){var t,f;return((t=A.accessibility)==null?void 0:(f=t.accessibilityData)==null?void 0:f.label)||null};
yK.prototype.notificationDataChanged=function(){var A;this.hasNotification=!!this.notificationData&&!((A=this.data)==null?0:A.icon)};
yK.prototype.notificationDataChanged=yK.prototype.notificationDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qX.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],yK.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],yK.prototype,"data",void 0);_.V([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",String)],yK.prototype,"id",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],yK.prototype,"isRightAligned",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],yK.prototype,"disabled",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],yK.prototype,"closeOnActivate",void 0);_.V([_.n(),_.H("design:type",Object)],yK.prototype,"notificationData",void 0);_.V([_.n(),_.H("design:type",Object)],yK.prototype,"hasNotification",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],yK.prototype,"useComputedAriaLabel",void 0);_.V([_.ev("notificationData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yK.prototype,"notificationDataChanged",null);_.V([_.WU({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],yK);
_.Y(yK,"yt-sort-filter-sub-menu-renderer",function(){if(NMi===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;lhE===void 0&&(lhE=document.createElement("template"));var X=lhE;f.call(t,X.content.cloneNode(!0),A.content.firstChild);NMi=A}A=NMi;return A},{mode:2});var P7T=_.I(function(A){var t=A.data;var f=_.f1(function(){var q=t().onTap;(q=_.C(q,_.mG))&&_.Px().resolve(_.i2).resolveCommand(q);return!1}),X=function(){return{sources:[{url:t().thumbnailUrl,
width:120,height:90}]}},Q=function(){return t().rating&&t().ratingA11yLabel&&t().reviewsCount&&t().reviewsCountA11yLabel};
return _.u("place-data-view-model",null,_.u(_.P,{cond:function(){return t().placeName&&t().placeCategory},
then:function(){return _.u("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":f},_.u(_.YA,{data:X,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.u(_.bc,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return t().onTap}},_.u("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return t().placeName}},function(){return t().placeName})),_.u("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.u(_.P,{cond:Q,
then:function(){return _.u("div",{class:_.Ao("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.u("span",{class:"score",title:function(){return t().ratingA11yLabel}},function(){return t().rating}),_.u("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.u(_.el,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.u("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return t().reviewsCountA11yLabel}},function(){return t().reviewsCount}))},
else:function(){return _.u("div",{class:_.Ao("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.u("div",{class:_.Ao("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.u("span",{class:"category",
title:function(){return t().placeCategory}},function(){return t().placeCategory}))))}}))},"ib");
P7T.idomCompat=!0;_.Hn(P7T,"place-data-view-model",{props:{data:_.PS}});var TMp=new _.eh("INLINE_PLAYBACK_HOOK_TOKEN");var iYT=RM({sharedUi:$nk});_.Iv=mf(iYT)(iYT.sharedUi,{animatedThumbnailEnabledSelector:function(A){return A.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(A){return A.inlinePreviewEnabled},
currentPageTypeSelector:function(A){return A.currentPageType},
currentPageSubTypeSelector:function(A){return A.currentPageSubType},
persistentPanelVisibleSelector:function(A){return A.persistentPanelVisible}});var OYC=function(A){this.setActiveSlideIndex=A;this.jobIds=[];this.isSlideshowPlaying=!1},MS7=function(A,t){A.isSlideshowPlaying||(A.isSlideshowPlaying=!0,cXp(A),BMT(A,t,0))},cXp=function(A){_.sX(_.a6,function(){A.setActiveSlideIndex(0)},1)},BMT=function(A,t,f){A.jobIds.push(_.sX(_.a6,function(){var X=f<t-1?f+1:0;
A.setActiveSlideIndex(X);BMT(A,t,X)},1800))};var C77;C77=new _.eh("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.hvE=new _.eh("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");var RvT=new _.eh("IMAGE_ON_LOAD_HANDLER_TOKEN");var mzk=_.I(function(A){return _.u("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.u(_.P,{cond:function(){var t;return(t=A.data())==null?void 0:t.thumbnail},
then:function(t){return _.u(_.YA,{data:t,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.bYE=_.I(function(A){var t=A.data;var f=A.lockupExperiments;A={};return _.u("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.u("div",{class:_.Ao("ytThumbnailOverlayButtonViewModelButton",(A.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var X;return f&&((X=f())==null?void 0:X.useLegacySizedIconButton)},A))},_.u(_.P1,{data:function(){return t().overlayButton}},{buttonViewModel:function(X){return _.u(_.nx,{data:X.data,
buttonOverrides:function(){var Q;return f&&((Q=f())==null?0:Q.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.bYE.idomCompat=!0;var Wrp=_.I(function(A){return _.u("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.f1(function(t){t.preventDefault();return!1})},_.u(_.P1,{data:function(){return A.data().buttons}},{toggleButtonViewModel:function(t){return _.u("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.u(_.s$,{data:t.data}))}}))},"lb");
Wrp.idomCompat=!0;var yX7=_.I(function(A){var t=function(){var f;return((f=_.C(A.data().rendererContext,_.Tq))==null?void 0:f.label)||""};
return _.u("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.u(_.P,{cond:function(){return A.data().image},
then:function(){return _.u("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.u(_.YA,{data:function(){return A.data().image},
alt:t}))}}),_.u(_.P,{cond:function(){return A.data().text},
then:function(){return _.u("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return A.data().text})}}))},"mb");var vUw;vUw=_.Iv.animatedThumbnailEnabledSelector;_.vM=_.I(function(A){var t=[],f=function(){var c,B;return _.jUT((c=A.width)==null?void 0:c.call(A),(B=A.height)==null?void 0:B.call(A))},X=_.Px().resolve(_.z7(RvT)),Q=_.GU("yt-thumbnail-view-model",function(){t.push("elRef.value set");
var c;(c=A.playbackRef)==null||c.call(A,{thumbnailElRef:Q,thumbnail:A.data().image,thumbnailOverlays:A.data().overlays,thumbnailSize:f()})});
_.oh(function(){t.push("onInit");_.dD(function(){t.push("onCleanup")})});
var q=_.um(vUw),e=function(){var c,B;return(B=(c=A.aspectRatio)==null?void 0:c.call(A))!=null?B:0},G=function(){return(A.data().image?_.fPx(A.data().image):e())<=1&&e()===0},N=function(){return G()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},z=function(){Q.value||_.K4(new _.xj("Thumbnail elRef.value is null",t.join("\n")));
X&&Q.value&&X(Q.value)},T=function(){var c,B;
return((c=A.hovered)==null?void 0:c.call(A))&&f()!=="large"&&((B=A.data().overlays)==null?void 0:B.some(function(h){return _.C(h,hXT)}))},O={};
return _.u("yt-thumbnail-view-model",{class:_.Ao("ytThumbnailViewModelHost",A.className,function(){return Mzb(e())},function(){var c,B;
a:{var h=f(),W=(c=A.disableRounding)==null?void 0:c.call(A);c=(B=A.isClip)==null?void 0:B.call(A);if(!W&&!c)switch(h){case "large":B="ytThumbnailViewModelLarge";break a;case "small":B="ytThumbnailViewModelSmall";break a;default:B="ytThumbnailViewModelMedium";break a}B=void 0}return B},(O.ytThumbnailViewModelCinematic=G,O)),
style:_.U7({"background-color":function(){var c,B=G()?(c=A.data().backgroundColor)==null?void 0:c.lightTheme:void 0;return B?Wi(B,"1"):void 0}}),
el:Q},_.u(_.P,{cond:G,then:function(){return _.u("div",{class:"ytThumbnailViewModelBlurredImage"},_.u(_.YA,{data:function(){return A.data().image},
alt:"",contentMode:N,targetWidth:A.width,onload:z}))}}),_.u("div",{class:"ytThumbnailViewModelImage"},_.u(_.YA,{data:function(){return A.data().image},
alt:"",contentMode:N,targetWidth:A.width,onload:z}),null),_.u(_.P1,{data:function(){return T()?void 0:A.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:LFb,thumbnailOverlayBadgeViewModel:function(c){return _.u(_.pZT,{data:c.data,thumbnailSize:f,isClip:A.isClip})},
thumbnailBottomOverlayViewModel:function(c){return _.u(bop,{data:c.data,thumbnailSize:f,isClip:A.isClip})},
thumbnailOverlayFullViewModel:yX7,thumbnailOverlayButtonViewModel:function(c){return _.u(_.bYE,{data:c.data,lockupExperiments:A.lockupExperiments})},
channelDisclosureViewModel:function(c){c=c.data;var B;return _.u("div",null,(B=_.Px().resolve(_.z7(C77)))==null?void 0:B({data:c}))}}),_.u(_.P1,{data:function(){var c;
return((c=A.hovered)==null?0:c.call(A))?A.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(c){return _.u(XV,{data:c.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Wrp}),_.u(_.P1,{data:function(){var c;return((c=A.hovered)==null?0:c.call(A))&&q()?A.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:mzk}),_.u(_.P,{cond:A.isClip,then:function(){return _.u("div",{class:"ytPinkingNsHost"},_.u("svg",{class:"ytPinkingNsPinkingLeft"},_.u("defs",null,_.u("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.u("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.u("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.u("svg",{class:"ytPinkingNsPinkingRight"},_.u("defs",null,_.u("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.u("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.u("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.vM.idomCompat={callbacks:{playbackRef:!0}};var Lrw=_.I(function(A){var t=_.U(_.hZ(-1,void 0,"RW2Ole")),f=t.next().value,X=t.next().value;_.oh(function(){var Q=new OYC(X);MS7(Q,A.data().thumbnails.length);_.dD(function(){if(Q.isSlideshowPlaying){Q.isSlideshowPlaying=!1;for(var q=Q.jobIds,e=0,G=q.length;e<G;e++)_.a6.cancelJob(q[e]);Q.jobIds.length=0}})});
return _.u("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.u(_.P1,{data:function(){return A.data().thumbnails}},{thumbnailViewModel:function(Q,q){return _.u("div",{class:function(){var e=!A.data().primaryThumbnail,G=q(),N=f(),z=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
e&&G===0&&z.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");G<=N&&z.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return z.join(" ")}},_.u(_.vM,{data:Q.data,
disableRounding:A.disableRounding}))}}))},"ob");
Lrw.idomCompat=!0;var C_x=new _.eh("DWELL_DETECTOR_REGISTRY_TOKEN");var EUl=_.I(function(A){var t=hB5(A.triggeringElement),f=function(){return!!A.data().primaryThumbnail},X=function(){var q,e=(q=A.data())==null?void 0:q.maxHeight,G;
q=(G=A.maxHeight)==null?void 0:G.call(A);return e!=null&&q!=null?Math.min(e,q):q!=null?q:e},Q=function(){var q=X();
if(q){var e;if(f()&&(e=A.includeStackHeight)!=null&&e.call(A)){var G;e=((G=A.doubleStack)==null?0:G.call(A))?8:4}else e=0;q=q-e-1;if(!(q<0)){G=Math;e=G.ceil;var N,z;var T=xes((z=(N=A.aspectRatio)==null?void 0:N.call(A))!=null?z:0);return e.call(G,q*T)}}};
return _.u("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.U7({height:function(){return X()?X()+"px":void 0},
width:function(){return Q()?Q()+"px":void 0}})},_.u(pHE,{stackEnabled:f,
thumbnailSize:function(){var q,e;return _.jUT((q=A.width)==null?void 0:q.call(A),(e=A.height)==null?void 0:e.call(A))},
doubleStack:A.doubleStack,stackColor:function(){return A.data().stackColor},
includeStackHeight:A.includeStackHeight},_.u(_.P1,{data:function(){return A.data().primaryThumbnail}},{thumbnailViewModel:function(q){var e={};
return _.u(_.vM,{data:q.data,width:A.width,height:A.height,aspectRatio:A.aspectRatio,disableRounding:A.disableRounding,className:_.Ao((e.ytCollectionThumbnailViewModelHostHasStacks=f,e)),hovered:A.hovered,playbackRef:A.playbackRef})}}),_.u(_.P,{cond:function(){var q;
return t()&&((q=A.data().thumbnails)==null?void 0:q.length)},
then:function(){return _.u("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.u(Lrw,{data:A.data,disableRounding:function(){return!f()}}))}})))},"pb");
EUl.idomCompat={callbacks:{playbackRef:!0}};
var pHE=_.I(function(A){var t=A.children;var f=A.stackEnabled;var X=A.thumbnailSize;var Q=A.doubleStack;var q=A.stackColor;var e=A.includeStackHeight;var G,N=(G=_.Px().resolve(_.z7(_.FH)))==null?void 0:G();return _.u(_.P,{cond:f,then:function(){return _.u(tcf,{data:function(){var z,T;return{experimentEnabled:!0,thumbnailSize:X(),doubleStack:Q==null?void 0:Q(),color:N?q==null?void 0:(z=q())==null?void 0:z.darkTheme:q==null?void 0:(T=q())==null?void 0:T.lightTheme,enableResponsiveMode:!1,includeStackHeight:e==
null?void 0:e()}}},t)},
else:function(){return t}})},"qb");var nUT=new _.eh("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var pj;_.Lj={calledOnce:!0,state:"visible"};pj={calledOnce:!0,state:"hidden"};_.E5=_.I(function(A){var t=A.data;var f=A.customCommandResolver;var X=A.className;var Q=A.delayedClassName;var q=A.animationEntityKey;var e=A.isCompactWidth;var G=A.isContentWidth;A=_.U(_.hZ(!1,void 0,"pC3tUb"));var N=A.next().value,z=A.next().value,T=_.dR(q,""),O=_.Nt(cgb,T),c=function(){var cp,iu;return(iu=(cp=O())==null?void 0:cp.value)!=null?iu:!1},B=function(){_.og(_.Ta("booleanEntity",T(),{key:T(),
value:!0}));d=void 0};
q=_.U(_.Jo(c));var h=q.next().value,W=q.next().value;q=_.U(_.Jo(c));var L=q.next().value,E=q.next().value;q=_.U(_.Jo(function(){var cp;return c()?(cp=t().styleTransitionConfig)==null?void 0:cp.destinationStyle:void 0}));
var D=q.next().value,S=q.next().value,Z=function(){var cp=Object.assign({},t(),D()&&{style:D()});var iu,Fb,xq=cp.label,Yq=(iu=cp.interaction)==null?void 0:(Fb=iu.accessibility)==null?void 0:Fb.label;iu=cp.iconImage?cp.label&&cp.label.content?cp.iconLeading?"leading":"trailing":"icon-only":void 0;cp={formattedButtonText:xq,accessibilityLabel:Yq,style:WXb(cp.style),type:yv5(cp.style),state:"active",size:bHb(cp.size),iconPosition:iu,disabled:!1,aTagConfig:mQ5(cp,f)};_.M("enable_desktop_vdcbg_components")&&
(cp.focused=N());return cp},d;
q=_.OI({visibilityCallback:function(cp){var iu,Fb=(iu=t().interaction)==null?void 0:iu.onFirstVisible;cp&&Fb&&_.LI(Fb)},
showOption:_.Lj});var K=function(){return Hcg(Z(),!!t().iconImage)};
A={};var k={};X=_.Ao(function(){return"ytwAdButtonViewModelHost"},function(){return t().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var cp=!!t().delayedAppearanceConfig,iu=h();
return cp?iu?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var cp=!!t().delayedAppearanceConfig,iu=L();
return cp?iu?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!t().delayedAppearanceConfig||h()?Q==null?void 0:Q():""},(A.ytwAdButtonViewModelHostCompactWidth=function(){return e==null?void 0:e()},A),(k.ytwAdButtonViewModelHostContentWidth=function(){return G==null?void 0:G()},k),X!=null?X:"");
var Gz=function(){var cp,iu=(cp=t().delayedAppearanceConfig)==null?void 0:cp.delayedInvisibleSeconds;iu&&(d=_.c1(_.a6,function(){W(!0);Tz()},iu*1E3))},Tz=function(){var cp,iu=(cp=t().delayedAppearanceConfig)==null?void 0:cp.delayedVisibleSeconds;
iu&&(d=_.c1(_.a6,function(){E(!0);y5()},iu*1E3))},y5=function(){var cp,iu=(cp=t().styleTransitionConfig)==null?void 0:cp.styleTransitionSeconds,Fb,xq=(Fb=t().styleTransitionConfig)==null?void 0:Fb.destinationStyle;
iu&&xq?d=_.c1(_.a6,function(){S(xq);B()},iu*1E3):B()};
_.oh(function(){Gz()});
_.dD(function(){d&&_.a6.cancelJob(d)});
return _.u("ad-button-view-model",{"on:focusin":_.f1(_.M("enable_desktop_vdcbg_components")?function(){var cp=_.Px().resolve(_.z7(_.mJ));cp&&z(cp.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.f1(_.M("enable_desktop_vdcbg_components")?function(){z(!1);return!1}:void 0),
class:X,el:_.ZY(q),style:_.U7({"transition-duration":"0.3s"})},_.u(_.P,{cond:Z,then:function(){return _.u(_.Lx,{data:Z,icon:function(){return _.u(_.P,{cond:function(){return t().iconImage},
then:function(cp){return _.u(_.YA,{data:cp,alt:"",targetWidth:K,targetHeight:K,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var Dzw=_.I(function(A){var t=A.data;A=function(){return t().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var f=_.OI({visibilityCallback:function(q){var e,G=(e=t().interaction)==null?void 0:e.onFirstVisible;q&&G&&_.LI(G)},
showOption:_.Lj}),X={},Q={};return _.u("ad-button-group-view-model",{class:_.Ao("ytwAdButtonGroupViewModelHost",(X.ytwAdButtonGroupViewModelHostCompactWidth=A,X)),el:_.ZY(f)},_.u("div",{class:_.Ao("ytwAdButtonGroupViewModelHostSecondaryButton",(Q.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=A,Q))},_.u(_.P1,{data:function(){return t().secondaryAdButton}},{adButtonViewModel:function(q){return _.u(_.E5,{data:q.data})}})),_.u("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.u(_.P1,
{data:function(){return t().primaryAdButton}},{adButtonViewModel:function(q){return _.u(_.E5,{data:q.data})}})))},"tb");var Fr7=_.I(function(A){var t=function(){var f;return((f=A.data())==null?void 0:f.answers)||[]};
return _.u("yt-survey-icons",{class:"ytSurveyIconsHost"},_.u("div",{class:"ytSurveyIconsHeader"},_.u("div",{class:"ytSurveyIconsTitle"},function(){var f;return(f=A.data())==null?void 0:f.text}),_.u("div",null,_.u(_.Lx,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var f;(f=A.onDismiss)==null||f.call(A)}}},
iconName:"DISMISSAL"}))),_.u("div",null,_.u("div",{class:"ytSurveyIconsAnswers"},_.u(_.xk,{each:function(){return t()},
keyBy:"INDEX"},function(f,X){return _.u("div",null,_.u(_.Lx,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Q;(Q=A.onSelect)==null||Q.call(A,f(),X)}}},
icon:function(){return _.u(_.el,{icon:function(){var Q,q;return(Q=f())==null?void 0:(q=Q.icon)==null?void 0:q.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.u("div",{class:"ytSurveyIconsAnswersText"},_.u("div",null,function(){return t().length?t()[0].text:""}),_.u("div",null,function(){return t().length?t()[t().length-1].text:""}))))},"ub");var Ihl=_.I(function(A){var t=_.ZY(_.W1(function(){var N;return(N=A.data())==null?void 0:N.rendererContext},void 0,void 0,void 0,!0)),f=_.U(_.hZ(!1,void 0,"GW0yjf")),X=f.next().value,Q=f.next().value,q=_.Nt(OKg,function(){var N;
return(N=A.data().keys)==null?void 0:N.surveyEntityKey}),e=_.Nt(cC5,function(){var N;
return(N=A.data().keys)==null?void 0:N.surveyStateEntityKey});
_.eU("ytd-slimline-survey-show-action",function(){Q(!1)});
var G=function(){var N,z;var T=(N=e())==null?void 0:(z=N.questionStack)==null?void 0:z[0];if(T!==void 0){var O,c;return(O=q())==null?void 0:(c=O.questions)==null?void 0:c[T]}};
f={};return _.u("yt-slimline-survey-view-model",{el:t,class:_.Ao("ytSlimlineSurveyViewModelHost",(f.ytSlimlineSurveyViewModelCollapsed=function(){return X()},f))},_.u("div",{class:"ytSlimlineSurveyViewModelContainer"},_.u(_.P,{cond:function(){var N;
return((N=G())==null?void 0:N.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.u(Fr7,{data:function(){return G()},
onSelect:function(N,z){var T,O;return _.l(function(c){Q(!0);if(O=(T=A.data())==null?void 0:T.onSelectRating)_.LI(O),_.og(QZp(z));_.LO(c)})},
onDismiss:function(){Q(!0);var N;var z=(N=q())==null?void 0:N.dismissalFeedbackToken;N=z?{feedbackEndpoint:{feedbackToken:z}}:void 0;N&&_.Wn(N,{form:{element:t.value}})}})}})))},"vb");var xzE=_.I(function(A){return _.u("yt-table-view-model",{class:_.Ao("ytTableViewModelHost",A.className)},_.u(_.xk,{each:function(){return A.data().rows||[]}},function(t){var f={};
return _.u("div",{class:_.Ao("ytTableViewModelRow",(f.ytTableViewModelRowBottomBorder=function(){return A.data().showSeparators},f))},_.u(_.xk,{each:function(){return(t==null?void 0:t.cells)||[]}},function(X,Q){var q,e={};
return _.u("span",{class:_.Ao((e.ytTableViewModelRowLabel=function(){return Q()===0&&A.data().showHorizontalHeaders},e.ytTableViewModelCell=function(){return!A.data().showHorizontalHeaders||Q()>0},e))},(q=X.text)==null?void 0:q.content)}))}))},"wb");var jul=_.I(function(A){return _.u("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.u(_.P1,{data:function(){var t;return(t=A.data())==null?void 0:t.attachments}},{flexibleActionsViewModel:function(t){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(_.Jk,{data:t.data,
layout:function(){var f;return((f=A.lockupStyle())==null?void 0:f.arrangement)===1?0:1},
justifyContentOverride:function(){var f;return((f=A.lockupStyle())==null?void 0:f.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(t){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(Ihl,{data:t.data}))},
expandableMetadataViewModel:function(t){t=t.data;var f;return _.u("div",{class:_.Ao("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(f=_.Px().resolve(_.z7(nUT)))==null?void 0:f({data:t}))},
adButtonGroupViewModel:function(t){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(Dzw,{data:t.data}))},
adButtonViewModel:function(t){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(_.E5,{data:t.data,isCompactWidth:!0}))},
tableViewModel:function(t){return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.u(xzE,{data:t.data}))},
aiCompanionAttachmentViewModel:function(t){t=t.data;var f;return _.u("div",{class:"ytLockupAttachmentsViewModelAttachment"},(f=_.Px().resolve(_.z7(_.hvE)))==null?void 0:f({data:t}))}}))},"xb");var DQx=_.cx("rich_grid_min_item_width",310),ER5=_.cx("rich_grid_max_item_width",500);var dQp,oRg;dQp=16/9;oRg=2/3;_.nj=_.I(function(A){var t=A.data;var f=A.className;var X=A.imageSizeConfig;var Q=A.notifyOnLoaded;var q=function(){return t().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},e=function(){var c;
return _.bj((c=t())==null?void 0:c.rendererContext)};
A={};A=(A.ytContentPreviewImageViewModelHost=!0,A.ytContentPreviewImageViewModelCircleImage=function(){return q()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},A.ytContentPreviewImageViewModelTappable=function(){return e()},A);
var G=function(){var c,B;return(B=(c=_.C(t().rendererContext,_.Tq))==null?void 0:c.label)!=null?B:""},N=function(){return $Qu(t())},z=function(){var c=S6T(q(),t().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",X==null?void 0:X(),HHz(N()),t().layoutWidth,t().layoutHeight),B=Object.assign({},c);
c.width&&(B.width=Math.round(c.width));c.height&&(B.height=Math.round(c.height));c.maxWidth&&(B.maxWidth=Math.round(c.maxWidth));c.maxHeight&&(B.maxHeight=Math.round(c.maxHeight));return B},T=_.yq(function(){return z().height},void 0,"CxFlJb"),O=_.yq(function(){return z().width},void 0,"lb8Jhd");
return _.u("yt-content-preview-image-view-model",{el:_.ZY(_.W1(function(){var c;return(c=t())==null?void 0:c.rendererContext})),
role:function(){return e()?"link":void 0},
tabindex:function(){return e()?0:void 0},
class:_.Ao(f,A,function(){var c=q();var B=X==null?void 0:X();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?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(B==null?void 0:B.size)!=null&&B.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return c}),
style:function(){var c=z(),B=[];c.width&&B.push("width: "+c.width+"px");c.height&&B.push("height: "+c.height+"px");c.maxWidth&&B.push("max-width: "+c.maxWidth+"px");c.maxHeight&&B.push("max-height: "+c.maxHeight+"px");c.fullWidth&&B.push("width: 100%");return B.join(";")}},_.u(_.P,{cond:N,
then:function(c){return _.u(_.YA,{data:c,alt:G,"data-disabled$":function(){return!G()},
notifyOnLoaded:Q,targetWidth:O,targetHeight:T,preserveWidth:function(){return!!O()},
preserveHeight:function(){return!!T()}})}}),_.u(_.P1,{data:function(){var c;
return(c=t())==null?void 0:c.overlays}},{thumbnailHoverOverlayViewModel:XV,
thumbnailOverlayButtonViewModel:_.bYE}))},"yb");
_.nj.idomCompat=!0;var D7=_.I(function(A){var t=A.data;var f=A.className;var X=A.useSmallLayout;var Q=A.useMediumText;A=A.useHeavyText;var q={};return _.u("yt-attribution-view-model",{el:_.ZY(_.W1(function(){var e;return(e=t())==null?void 0:e.rendererContext})),
class:_.Ao(f,(q.ytAttributionViewModelHost=!0,q.ytAttributionViewModelMediumText=Q,q.ytAttributionViewModelHeavyText=A,q))},_.u(_.P,{cond:function(){return _.bj(t().rendererContext)},
then:function(){return _.u("button",{class:"ytAttributionViewModelTappable"},_.u(YtE,{data:t,useSmallLayout:X}))},
else:function(){return _.u(YtE,{data:t,useSmallLayout:X})}}))},"zb"),YtE=_.I(function(A){var t=A.data;
var f=A.useSmallLayout;var X=function(){return{size:(f==null?0:f())?16:24}};
return _.u(_.Tw,null,_.u(_.P1,{data:function(){return t().contentPreviewImage}},{contentPreviewImageViewModel:function(Q){return _.u(_.nj,{data:Q.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:X})}}),_.u(_.P1,{data:function(){return t().badge}},{badgeViewModel:function(Q){return _.u(_.Cj,{data:Q.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.u(_.P,{cond:function(){return t().text},
then:function(){return _.u(_.zL,{text:function(){return t().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.u(_.P,{cond:function(){return t().suffix},
then:function(){return _.u(_.zL,{text:function(){return t().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
D7.idomCompat=!0;var VSp,ZYp,oUC,dzf,St7;VSp=_.I(function(A){var t=A.delimiter;var f=A.max;var X=A.index;var Q=A.isStandalone;return _.u(_.P,{cond:function(){return f()-1>X()},
then:function(){var q={};return _.u("span",{class:_.Ao("yt-content-metadata-view-model__delimiter",(q["yt-content-metadata-view-model__delimiter--standalone"]=Q,q)),"aria-hidden":!0},t)}})},"Bb");
ZYp=_.I(function(A){var t=A.metadataPart;var f=A.maxLines;return _.u(_.zL,{text:function(){return t().text},
linkInheritColor:!0,className:function(){return aqq(f())},
userInput:!0})},"Cb");
oUC=_.I(function(A){var t=A.metadataPart;var f=A.maxLines;return _.u(_.P,{cond:function(){return t().tooltip},
then:function(X){return _.u("span",{title:X,role:"tooltip"},_.u(ZYp,{metadataPart:t,maxLines:f}))},
else:function(){return _.u(ZYp,{metadataPart:t,maxLines:f})}})},"Db");
dzf=_.I(function(A){var t=A.metadataPart;var f=A.isOverlay;var X=A.useMediumText;var Q=A.hideAvatar;var q=function(){return t().maxLines!==void 0?t().maxLines:1};
return _.u(_.Tw,null,_.u(_.P1,{data:function(){return t().avatarStack}},{avatarStackViewModel:function(e){return _.u(_.Jw,{data:e.data,
isOverlay:f,useMediumText:X,hideAvatar:Q})},
badgeViewModel:_.Cj}),_.u(_.P,{cond:function(){return t().leadingIcon},
then:function(e){return _.u(_.el,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return e().name},
size:function(){return e().width}})}}),_.u(_.P,{cond:function(){return t().text},
then:function(){return _.u(oUC,{metadataPart:t,maxLines:q})}}),_.u(_.P,{cond:function(){return t().icon},
then:function(e){return _.u(_.el,{className:"yt-content-metadata-view-model__icon",icon:function(){return e().name},
size:function(){return e().width}})}}))},"Eb");
St7=_.I(function(A){var t=A.metadataRow;var f=A.isInline;var X=A.delimiter;var Q=A.isOverlay;var q=A.useMediumText;var e=A.extensions;var G=function(){var z,T=e==null?void 0:(z=e())==null?void 0:z.lockupMetadata;z=t();var O,c;return!!((T==null?0:(O=T.byline)==null?0:O.hideAvatar)&&((c=_.C(z,PC8))==null?void 0:c.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},N=function(){return t().metadataParts||[]};
A={};return _.u("div",{class:_.Ao("yt-content-metadata-view-model__metadata-row",(A["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=f,A["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var z,T=e==null?void 0:(z=e())==null?void 0:z.lockupMetadata;z=t();var O,c;return!!((T==null?0:(O=T.byline)==null?0:O.addPadding)&&((c=_.C(z,PC8))==null?void 0:c.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},A["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var z;
return!!(e==null?0:(z=e())==null?0:z.lockupMetadata)&&t().badges&&!t().metadataParts},A))},_.u(_.P1,{data:function(){return t().badges}},{badgeViewModel:function(z){return _.u("div",{class:"yt-content-metadata-view-model__badge"},_.u(_.Cj,{data:z.data,
numBadgesInRow:function(){var T,O;return((T=t())==null?void 0:(O=T.badges)==null?void 0:O.length)||0}}))}}),_.u(_.xk,{each:N},function(z,T){return _.u(_.Tw,null,_.u(dzf,{metadataPart:z,
isOverlay:Q,useMediumText:q,hideAvatar:G}),_.u(VSp,{delimiter:X,max:function(){return N().length},
index:T,isStandalone:!1}))}),_.u(_.P,{cond:function(){return t().isSpacerRow&&!f()},
then:function(){return _.u("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.FV=_.I(function(A){A=_.Sv(A,{layout:0,isOverlay:!1});var t=A.data,f=A.layout,X=A.isOverlay,Q=A.useMediumText,q=A.extensions,e=function(){return f()===0},G=function(){var z;
return((z=t().metadataRows)==null?void 0:z.filter(function(T){var O,c=q==null?void 0:(O=q())==null?void 0:O.lockupMetadata,B,h;O=!!((c==null?0:(B=c.description)==null?0:B.hideDescription)&&((h=_.C(T,PC8))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var W,L;return!((c==null?0:(W=c.spacer)==null?0:W.hideSpacer)&&((L=_.C(T,PC8))==null?void 0:L.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||O)}))||[]},N={};
return _.u("yt-content-metadata-view-model",{class:_.Ao(A.className,"yt-content-metadata-view-model",(N["yt-content-metadata-view-model--inline"]=e,N["yt-content-metadata-view-model--tappable"]=function(){return _.bj(t().rendererContext)},N["yt-content-metadata-view-model--medium-text"]=Q,N)),
el:_.ZY(_.W1(function(){return t().rendererContext}))},_.u(_.xk,{each:G},function(z,T){return _.u(_.Tw,null,_.u(St7,{metadataRow:z,
isInline:e,delimiter:function(){return t().delimiter},
isOverlay:X,useMediumText:Q,extensions:q}),_.u(_.P,{cond:function(){return e()&&!z.isSpacerRow},
then:function(){return _.u(VSp,{delimiter:function(){return t().delimiter},
max:function(){return G().length},
index:T,isStandalone:!0})}}))}))},"Gb");
_.FV.idomCompat=!0;var $z8=_.I(function(A){var t=_.Px().resolve(_.z7(_.FH)),f={};return _.u("yt-lockup-metadata-view-model",{class:_.Ao("yt-lockup-metadata-view-model",function(){a:{var X=A.lockupStyle();if(X==null?0:X.isOverlay)X="yt-lockup-metadata-view-model--overlay";else switch(X==null?void 0:X.arrangement){case 1:X="yt-lockup-metadata-view-model--horizontal";break a;default:X="yt-lockup-metadata-view-model--vertical"}}return X},function(){a:{var X=A.lockupStyle();
switch(X==null?void 0:X.titleMaxLines){case 1:X="yt-lockup-metadata-view-model--title-max-lines-1";break a}X=void 0}return X},function(){a:{var X=A.lockupStyle();
if(X==null?0:X.isTiny)X="yt-lockup-metadata-view-model--tiny";else switch(X==null?void 0:X.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":X="yt-lockup-metadata-view-model--compact";break a;default:X="yt-lockup-metadata-view-model--standard"}}return X},(f["yt-lockup-metadata-view-model--overlay"]=function(){var X;
return(X=A.lockupStyle())==null?void 0:X.isOverlay},f["yt-lockup-metadata-view-model--card"]=function(){var X;
return(X=A.lockupStyle())==null?void 0:X.isCard},f["yt-lockup-metadata-view-model--centered"]=function(){var X;
return(X=A.lockupStyle())==null?void 0:X.isCentered},f["yt-lockup-metadata-view-model--typography-bump"]=function(){var X;
return(X=A.lockupStyle())==null?void 0:X.typographyBump},f["yt-lockup-metadata-view-model--legacy-typography"]=function(){var X;
return(X=A.lockupStyle())==null?void 0:X.useLegacyTypography},f["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var X;
return(X=A.lockupStyle())==null?void 0:X.useRichGridLegacyTypography},f))},_.u(_.P1,{data:function(){return A.data().image}},{avatarStackViewModel:function(X){return _.u("div",{class:"yt-lockup-metadata-view-model__avatar"},_.u(_.Jw,{data:X.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(X){return _.u("div",{class:"yt-lockup-metadata-view-model__avatar"},_.u(_.QK,{data:X.data}))},
decoratedAvatarViewModel:function(X){return _.u("div",{class:"yt-lockup-metadata-view-model__avatar"},_.u(_.qM,{data:X.data}))}}),_.u("div",{class:"yt-lockup-metadata-view-model__text-container"},_.u("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var X;return(X=A.data().title)==null?void 0:X.content}},_.u(_.P,{cond:function(){return A.data().title},
then:function(X){return _.u(_.bc,{command:A.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.U7({color:function(){var Q;a:{var q=A.lockupStyle();var e=(Q=A.hovered)==null?void 0:Q.call(A);Q=!(t==null||!t());var G;if((q==null?0:(G=q.onFocusEffect)==null?0:G.textPrimaryColor)&&e&&(q=Q?q.onFocusEffect.textPrimaryColor.darkTheme:q.onFocusEffect.textPrimaryColor.lightTheme)){q=yc(q);break a}q=void 0}return q}}),
ariaLabel:A.lockupAccessibilityLabel},_.u(_.zL,{text:X,userInput:!0}))}})),_.u("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.U7({color:function(){var X;a:{var Q=A.lockupStyle();var q=(X=A.hovered)==null?void 0:X.call(A);X=!(t==null||!t());var e;if((Q==null?0:(e=Q.onFocusEffect)==null?0:e.textSecondaryColor)&&q&&(Q=X?Q.onFocusEffect.textSecondaryColor.darkTheme:Q.onFocusEffect.textSecondaryColor.lightTheme)){Q=yc(Q);break a}Q=void 0}return Q}})},_.u(_.P1,{data:function(){return A.data().metadata}},{contentMetadataViewModel:function(X){return _.u(_.FV,{data:X.data,
layout:function(){var Q,q;return(q=(Q=A.layout)==null?void 0:Q.call(A))!=null?q:1},
useMediumText:function(){var Q,q;return((Q=A.lockupStyle())==null?void 0:Q.typographyBump)||((q=A.lockupStyle())==null?void 0:q.useRichGridLegacyTypography)},
extensions:function(){var Q,q,e,G;return{lockupMetadata:{byline:{hideAvatar:((Q=A.lockupStyle())==null?void 0:Q.arrangement)===0,addPadding:((q=A.lockupStyle())==null?void 0:q.arrangement)===1},description:{hideDescription:!((e=A.lockupStyle())==null||!e.compactMetadata)},spacer:{hideSpacer:!((G=A.lockupStyle())==null||!G.compactMetadata)}}}}})}})),_.u(_.P1,{data:function(){return A.data().attribution}},{attributionViewModel:function(X){return _.u("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.u(D7,{data:X.data,
useSmallLayout:!0}))}})),_.u("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.u(_.P1,{data:function(){return A.data().menuButton}},{buttonViewModel:function(X){return _.u(_.nx,{data:X.data,
buttonOverrides:function(){var Q;return((Q=A.lockupStyle())==null?0:Q.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
$z8.idomCompat=!0;var HYK=_.I(function(A){var t=_.GU("notification-multi-action-renderer");_.Zk(function(){requestAnimationFrame(function(){_.GO(t.value)})});
var f={},X={},Q={};return _.u("notification-multi-action-renderer",{class:_.Ao("ytNotificationMultiActionRendererHost",(f.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var q;return(q=A.useLegacyShelfStyle)==null?void 0:q.call(A)},f)),
el:t},_.u("span",{"aria-live":"polite",class:_.Ao("ytNotificationMultiActionRendererTextContainer",(X.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var q;return(q=A.useLegacyShelfStyle)==null?void 0:q.call(A)},X))},_.u(_.zL,{text:function(){return A.data().responseText}})),_.u("div",{class:_.Ao("ytNotificationMultiActionRendererButtonContainer",(Q.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var q;
return(q=A.useLegacyShelfStyle)==null?void 0:q.call(A)},Q))},_.u(_.P1,{data:function(){var q;
return(q=A.data().buttons)==null?void 0:q.map(function(e){if(e=e.buttonRenderer){var G,N=Object,z=N.assign,T=(G=e.icon)==null?void 0:G.iconType;G=(G=e.command||e.serviceEndpoint||e.navigationEndpoint)?{innertubeCommand:G}:void 0;e={buttonViewModel:z.call(N,{},{iconName:T,onTap:G,trackingParams:e.trackingParams,titleFormatted:e.text?_.CI(e.text):void 0},gRz(e))}}else e=void 0;return e}).filter(function(e){return!!e})}},{buttonViewModel:function(q,e){return _.u("div",null,_.u(_.nx,{data:q.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var G;return((G=A.useModernStyles)==null?0:G.call(A))?{type:e()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var ah8=_.I(function(A){var t=_.GU("notification-text-renderer");_.Zk(function(){requestAnimationFrame(function(){_.GO(t.value)})});
return _.u("notification-text-renderer",{el:t,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.u(_.zL,{text:function(){return A.data().successResponseText}}))},"Lb");_.IS=_.I(function(A){var t=_.Nt(JCb,function(){var X;return w2q((X=A.contentId)==null?void 0:X.call(A))}),f=function(){var X;
return _.C((X=t())==null?void 0:X.command,_.Zu)};
return _.u(_.P,{cond:function(){var X;if(!(X=f())){var Q;X=_.C((Q=t())==null?void 0:Q.command,p0k)}return X},
then:function(){return _.u(_.P,{cond:f,then:function(){var X={};return _.u("div",{class:_.Ao("ytDismissibleItemReplacedContent",function(){var Q;return sNp((Q=A.aspectRatio)==null?void 0:Q.call(A))})},_.u("div",{class:_.Ao((X.ytDismissibleItemAspectRatioContainer=function(){var Q;
return((Q=A.aspectRatio)==null?void 0:Q.call(A))!==void 0},X))},_.u(_.P1,{data:function(){var Q;
return(Q=f())==null?void 0:Q.item}},{notificationMultiActionRenderer:function(Q){return _.u(HYK,{data:Q.data,
useModernStyles:A.useModernStyle,useLegacyShelfStyle:A.useLegacyShelfStyle})},
notificationTextRenderer:ah8})))}})},
else:A.children})},"Mb");_.Krk=_.I(function(A){var t=A.data;var f=A.customCommandResolver;A=_.ZY(_.OI({visibilityCallback:function(q){var e,G=(e=t().interaction)==null?void 0:e.onFirstVisible;q&&G&&_.LI(G)},
showOption:_.Lj}));var X=function(){var q;return((q=t().interaction)==null?0:q.onTap)?function(e){var G;RBz(e,(G=t().interaction)==null?void 0:G.onTap,f)}:void 0},Q=function(){var q,e=t(),G=X(),N=(q=_.C(t().rendererContext,_.Tq))==null?void 0:q.label;
a:switch(e.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":q=1;break a;default:q=0}return{size:AFp(e.size),type:q,onTap:G,accessibilityText:N}};
return _.u("ad-avatar-view-model",{class:function(){var q;return((q=t().interaction)==null?0:q.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:A},_.u(_.P,{cond:function(){return t().image},
then:function(q){return _.u(vLl,{data:Q,image:q})}}))},"Nb");_.xb=_.I(function(A){var t=_.Sv(A,{hasDot:!1,usedInMasthead:!1}),f=Object.assign({},t),X=t.data,Q=t.hasDot;A=t.customCommandResolver;var q=t.usedInMasthead,e=(delete f.data,delete f.hasDot,delete f.customCommandResolver,delete f.usedInMasthead,f);t=function(){return X().style};
t!==void 0&&t!==null||_.te(Error("Ih"));A=_.En(function(){return X().interaction},A);
return _.u("ad-badge-view-model",{class:_.Ao(function(){var G;return((G=X().interaction)==null?0:G.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var G=e.adRenderingContextType(),N=q();
X();return G!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||N?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.ZY(A)},_.u(_.lO,{data:function(){var G;X();return{type:2,text:(G=X().label)==null?void 0:G.content,adsIncludeDot:Q(),isOverlay:X().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var gUE;_.jX=_.I(function(A){var t=A.data;var f=A.customCommandResolver;var X=A.adRenderingContextType;return _.u("ad-details-line-view-model",{class:function(){var Q;return((Q=t().interaction)==null?0:Q.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.ZY(_.OI({visibilityCallback:function(Q){var q,e=(q=t().interaction)==null?void 0:q.onFirstVisible;Q&&e&&_.LI(e)},
showOption:_.Lj}),_.En(function(){return t().interaction},f))},_.u(_.P,{cond:function(){return t().style},
then:function(Q){return _.u(_.xk,{each:function(){var q;return((q=t())==null?void 0:q.attributes)||[]},
keyBy:"INDEX"},function(q){return _.u(gUE,{attribute:q,style:Q,adRenderingContextType:function(){return X()}})})}}))},"Pb");
gUE=_.I(function(A){var t=A.attribute;var f=A.style;var X=A.adRenderingContextType;return _.u(_.P,{cond:function(){return t().text},
then:function(Q){return _.u(_.zL,{text:Q,className:function(){var q=X();f();return q==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var wHp=_.I(function(A){var t=A.data;var f=A.typographyBump;var X=function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},Q=function(){return{size:"M"}};
A={};return _.u(_.Tw,null,_.u("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.u(_.zL,{text:function(){return t().headline},
className:_.Ao("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return X==null?void 0:X()},A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(f==null?void 0:f())&&!(X==null?0:X())},A)),
linkInheritColor:!0}),_.u(_.P,{cond:function(){return t().description},
then:function(q){var e={};return _.u(_.zL,{text:q,className:_.Ao("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(e.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return X==null?void 0:X()},e.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(f==null?void 0:f())&&!(X==null?0:X())},e)),
linkInheritColor:!0})}}),_.u(_.P,{cond:function(){return t().secondaryDescription},
then:function(q){var e={};return _.u(_.zL,{text:q,className:_.Ao("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(e.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return f==null?void 0:f()},e)),
linkInheritColor:!0})}}),_.u("div",{class:function(){return X()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.u(_.P,{cond:function(){return t().adAvatar},
then:function(){return _.u("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.u(_.P1,{data:function(){return t().adAvatar}},{adAvatarViewModel:_.Krk}))}}),_.u(_.P1,{data:function(){return t().adBadge}},{adBadgeViewModel:function(q){return _.u(_.xb,{data:q.data,
hasDot:function(){return!!t().adDetailsLine},
adRenderingContextType:function(){return t().adRenderingContextType}})}}),_.u(_.P1,{data:function(){return t().adDetailsLine}},{adDetailsLineViewModel:function(q){return _.u(_.jX,{data:q.data,
adRenderingContextType:function(){return t().adRenderingContextType}})}}))),_.u("div",{class:function(){return _.M("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":X()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.u(_.P1,{data:function(){return t().menu}},{buttonViewModel:function(q){return _.u(_.nx,{data:q.data,
buttonOverrides:_.M("enable_desktop_vdc_components")?Q:function(){a:switch(t().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var e="S";break a;default:e="M"}return{size:e}}})}})))},"Rb"),sup=_.I(function(A){var t=A.data;
var f=A.noBottomMargin;var X=A.useVideoLockupTopPadding;var Q=A.typographyBump;A={};A=_.Ao("ytwFeedAdMetadataViewModelHostMetadata",(A.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return f==null?void 0:f()},A.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return X==null?void 0:X()},A));
var q=function(){return t().adBadge};
q!==void 0&&q!==null||_.te(Error("Jh"));q={};var e={};return _.u(_.Tw,null,_.u(_.P,{cond:function(){return t().adAvatar},
then:function(){return _.u("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.u(_.P1,{data:function(){return t().adAvatar}},{adAvatarViewModel:function(G){return _.u(_.Krk,{data:G.data})}}))}}),_.u("div",{class:A},_.u("div",{class:_.Ao("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(q.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Q==null?void 0:Q()},q.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Q==
null?void 0:Q())&&_.M("web_enable_typography_bump_v2")},q))},_.u(_.zL,{text:function(){return t().headline},
linkInheritColor:!0})),_.u(_.P,{cond:function(){return t().description},
then:function(G){return _.u(_.zL,{text:G,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.u("div",{class:function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.M("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.u(_.P1,{data:function(){return t().adBadge}},
{adBadgeViewModel:function(G){return _.u(_.xb,{data:G.data,
hasDot:function(){return!!t().adDetailsLine},
adRenderingContextType:function(){return t().adRenderingContextType}})}}),_.u(_.P1,{data:function(){return t().adDetailsLine}},{adDetailsLineViewModel:function(G){return _.u(_.jX,{data:G.data,
adRenderingContextType:function(){return t().adRenderingContextType}})}})),_.u(_.P,{cond:function(){return t().secondaryDescription},
then:function(G){return _.u(_.zL,{text:G,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.u("div",{class:_.Ao("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(e.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return X==null?void 0:X()},e))},_.u(_.P1,{data:function(){return t().menu}},{buttonViewModel:_.nx})))},"Sb"),Yb=_.I(function(A){var t=A.data;
var f=A.noBottomMargin;var X=A.listenToTapEvent;var Q=A.setTouchEndHandler;var q=A.useVideoLockupTopPadding;var e=A.typographyBump;A=_.OI({visibilityCallback:function(O){var c,B=(c=t().interaction)==null?void 0:c.onFirstVisible;O&&B&&_.LI(B)},
showOption:_.Lj});var G=_.En(function(){return t().interaction},void 0,function(){return X==null?void 0:X()}),N=_.U(_.hZ(!1,void 0,"N3Oquc")),z=N.next().value,T=N.next().value;
N=_.f1(function(O){(Q==null?0:Q())&&!z()&&(O.currentTarget.click(),T(!0),setTimeout(function(){T(!1)},100));
return!1});
return _.u("feed-ad-metadata-view-model",{class:function(){var O;return((O=t().interaction)==null?0:O.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.ZY(A,G),"on:touchend":N},_.u(_.j2,null,_.u(_.FE,{when:function(){return t().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.u(wHp,{data:t,
typographyBump:e})}),_.u(_.FE,{when:function(){return t().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.u(sup,{data:t,
noBottomMargin:f,useVideoLockupTopPadding:q,typographyBump:e})})))},"Tb");var koE,rXp;koE=_.Iv.inlinePreviewEnabledSelector;_.VK=_.I(function(A){return _.u("yt-lockup-view-model",{class:_.Ao(A.className,"yt-lockup-view-model--wrapper")},_.u(_.IS,{contentId:function(){return A.data().contentId},
useModernStyle:!0,aspectRatio:function(){var t,f;return((t=A.containerType)==null?void 0:t.call(A))!==3?Vz5(A.data().contentType,(f=A.force16By9ThumbnailAspectRatio)==null?void 0:f.call(A)):void 0}},function(){return _.u(rXp,Object.assign({},A))}))},"Ub");
rXp=_.I(function(A){A=_.Sv(A,{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,useOverlayStyling:void 0});var t=A.data,f=A.containerLayoutConfig,X=A.containerType,Q=A.sizing,q=A.protectBackground,e=A.typographyBump,G=A.force16By9ThumbnailAspectRatio,N=A.thumbnailFixedWidth,z=A.thumbnailTargetWidth,T=A.lockupExperiments,
O=A.elementsPerRow,c=A.useOverlayStyling,B=_.Px().resolve(_.z7(_.FH));A=_.ZY(_.W1(function(){var Yq;return(Yq=t())==null?void 0:Yq.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var h=_.um(koE),W=_.Px().resolve(_.z7(TMp)),L=W?{}:void 0,E=function(){var Yq,zk,PT;return(PT=(zk=_.C((Yq=t())==null?void 0:Yq.rendererContext,_.Tq))==null?void 0:zk.label)!=null?PT:void 0},D=function(){var Yq;
return(Yq=_.C(t().metadata,_.TAw))==null?void 0:Yq.endorsement},S=function(){var Yq=f==null?void 0:f(),zk;
if(Yq==null?0:Yq.containerType){var PT=(zk=t())==null?void 0:zk.contentType;zk=T();var rs=e(),OT=z(),bK=q();Yq=Object.assign({},ZHz(Iq5(Yq),DB(Yq.responsiveSize),rs,PT,Yq.force16By9ThumbnailAspectRatio,OT,bK,void 0,zk),{thumbnailFixedWidth:Yq.contentPreviewWidth})}else Yq=ZHz(X(),Q(),e(),(PT=t())==null?void 0:PT.contentType,G(),z(),q(),c(),T());return Yq};
W&&L&&W({enabled:function(){return h()},
itemPlaybackModel:function(){return t().itemPlayback},
thumbnailElRef:function(){return L.thumbnailElRef},
containerElRef:A,options:function(){var Yq=L.thumbnailOverlays||[],zk=D(),PT;!zk||((PT=T())==null?0:PT.onFocusEffect)||Yq.push(zk);var rs,OT;return{thumbnail:L.thumbnail,thumbnailOverlays:Yq,accessibilityText:E(),thumbnailSize:L.thumbnailSize,enableRounding:S().isCollection,containPlayerWithinThumbnail:S().isCollection,mouseleaveCallback:function(){K(!1)},
trackingParams:(rs=_.C(t().rendererContext,_.GV))==null?void 0:(OT=rs.loggingDirectives)==null?void 0:OT.trackingParams}}});
var Z=0;W=_.U(_.hZ(!1,void 0,"v0iGab"));var d=W.next().value,K=W.next().value;W=_.U(_.hZ(!1,void 0,"PVKcBd"));var k=W.next().value,Gz=W.next().value;W=_.f1(function(){k()?(_.a6.cancelJob(Z),Z=_.a6.addJob(function(){K(!0)},8,32)):K(!0);
return!0});
var Tz=_.f1(function(Yq){Yq=Yq.relatedTarget;var zk=document.querySelector("ytd-video-preview");Yq&&zk&&zk.contains(Yq)||(Z&&(_.a6.cancelJob(Z),Z=0),K(!1))});
_.dD(function(){Z&&(_.a6.cancelJob(Z),Z=0)});
var y5=rvb(function(){Gz(!0)}),cp=y5.touchFeedbackEvents,iu=y5.touchFeedbackOnPointerUp,Fb=y5.touchFeedbackOnPointerDown;
y5=y5.touchFeedbackOnPointerLeave;var xq={};return _.u(_.Tw,null,_.u("div",{el:A,class:_.Ao("yt-lockup-view-model",function(){a:{var Yq=S();if(Yq.metadataOnThumbnail)Yq="yt-lockup-view-model--metadata-on-thumbnail";else switch(Yq.arrangement){case 1:Yq="yt-lockup-view-model--horizontal";break a;default:Yq="yt-lockup-view-model--vertical"}}return Yq},function(){a:{var Yq=S();
if(Yq.metadataOnThumbnail)Yq="yt-lockup-view-model--metadata-on-thumbnail";else{switch(Yq.collectionStackNumber){case 1:Yq="yt-lockup-view-model--collection-stack-1";break a;case 2:Yq="yt-lockup-view-model--collection-stack-2";break a}Yq=void 0}}return Yq},function(){var Yq;
return _.KXp((Yq=t())==null?void 0:Yq.contentId)},(xq["yt-lockup-view-model--card"]=function(){return S().isCard},xq["yt-lockup-view-model--compact"]=function(){return S().isTiny||S().sizing!=="STANDARD"},xq["yt-lockup-view-model--protect-background"]=q,xq["yt-lockup-view-model--add-margins"]=function(){return S().addMarginForFullbleed},xq["yt-lockup-view-model--centered"]=function(){return S().isCentered},xq["yt-lockup-view-model--fullbleed"]=function(){return S().fullbleed},xq["yt-lockup-view-model--single-column-grid"]=
function(){return O()===1&&X()===2},xq["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Yq;
return(Yq=T())==null?void 0:Yq.useRichGridLegacyMargin},xq["yt-lockup-view-model--flex-none"]=function(){return!_.M("lockup_flex_none_killswitch")},xq)),
"on:mousedown":Fb,"on:mouseleave":Tz,"on:mouseup":iu,"on:mouseover":W,"on:touchstart":Fb,"on:touchend":iu,"on:pointerleave":y5},_.u(_.WS,{model:function(){var Yq,zk,PT=Object,rs=PT.assign,OT=(L==null?void 0:L.thumbnailSize)||"small";a:{var bK=S();var ET=!!(D()&&((Yq=T())==null?0:Yq.onFocusEffect));switch((L==null?void 0:L.thumbnailSize)||"small"){case "small":Yq=4;break;case "large":Yq=12;break;default:Yq=8}if(ET)bK=Yq+12;else{switch(bK.collectionStackNumber){case 1:bK=Yq+8;break a;case 2:bK=Yq+12;
break a}bK=void 0}}OT={thumbnailSize:OT,triggerEvents:!0,customTopExtend:bK};var m3;bK=(zk=T())==null?void 0:zk.onFocusEffect;ET=!(B==null||!B());if(bK){var O2,eT;zk=ET?(O2=bK.onFocusColor)==null?void 0:O2.darkTheme:(eT=bK.onFocusColor)==null?void 0:eT.lightTheme;var fS,hf;O2=ET?(fS=bK.keyLightColor)==null?void 0:fS.darkTheme:(hf=bK.keyLightColor)==null?void 0:hf.lightTheme;var wE;fS=ET?(m3=bK.touchResponseColor)==null?void 0:m3.darkTheme:(wE=bK.touchResponseColor)==null?void 0:wE.lightTheme;m3={background:zk!==
void 0?yc(zk):void 0,keyLight:O2!==void 0?yc(O2):void 0};wE=[];hf=_.U(bK.lightingTechniques||[]);for(O2=hf.next();!O2.done;O2=hf.next())switch(O2.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":wE.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":wE.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":wE.push(3)}m3={hoverEffect:{palette:m3,lightingTechniques:wE},touchEffect:{palette:{background:fS!==void 0?yc(fS):void 0}}}}else m3={};return rs.call(PT,{},OT,m3)},
hovered:function(){return d()},
pointerDownEvent:cp.pointerDownEvent,pointerUpEvent:cp.pointerUpEvent,pointerLeaveEvent:cp.pointerLeaveEvent}),_.u(_.P,{cond:function(){var Yq;return D()&&d()&&((Yq=T())==null?void 0:Yq.onFocusEffect)},
then:function(){return _.u("div",{class:"yt-lockup-view-model__endorsement"},_.u(_.P1,{data:function(){return D()}},{attributionViewModel:function(Yq){return _.u(D7,{data:Yq.data,
useHeavyText:!0})}}))}}),_.u(_.bc,{command:function(){var Yq;
return _.mL((Yq=t())==null?void 0:Yq.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(N()||S().thumbnailFixedWidth)&&S().arrangement===1?"width: "+(N()||S().thumbnailFixedWidth):""}},_.u(_.P1,{data:function(){var Yq;
return(Yq=t())==null?void 0:Yq.contentImage}},{thumbnailViewModel:function(Yq){return _.u(_.vM,{data:Yq.data,
aspectRatio:function(){return S().aspectRatio},
disableRounding:function(){return S().disableRounding},
width:z,hovered:function(){return d()&&!(h()&&t().itemPlayback)},
isClip:function(){var zk;return((zk=t())==null?void 0:zk.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:B7z(L),lockupExperiments:function(){return T()}})},
collectionThumbnailViewModel:function(Yq){return _.u(EUl,{data:Yq.data,aspectRatio:function(){return S().aspectRatio},
disableRounding:function(){return S().disableRounding},
width:z,doubleStack:function(){return S().collectionStackNumber===2},
hovered:function(){return d()&&!(h()&&t().itemPlayback)},
playbackRef:B7z(L)})},
decoratedAvatarViewModel:_.qM})),_.u("div",{class:"yt-lockup-view-model__metadata"},_.u(_.P1,{data:function(){var Yq;return(Yq=t())==null?void 0:Yq.metadata}},{lockupMetadataViewModel:function(Yq){return _.u($z8,{data:Yq.data,
hovered:d,lockupStyle:S,lockupCommand:function(){var zk;return _.mL((zk=t())==null?void 0:zk.rendererContext)},
lockupAccessibilityLabel:function(){return E()},
layout:function(){var zk;return((zk=T())==null?0:zk.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(Yq){return _.u(Yb,{data:Yq.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:e})}}),_.u(_.P1,{data:function(){var Yq;
return(Yq=t())==null?void 0:Yq.attachmentSlot}},{lockupAttachmentsViewModel:function(Yq){return _.u(jul,{data:Yq.data,
lockupStyle:S})}}))),_.u(_.P1,{data:function(){var Yq;
return(Yq=t())==null?void 0:Yq.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Yq){return _.u(jul,{data:Yq.data,
lockupStyle:S})}}))},"Vb");
_.VK.idomCompat=!0;_.Hn(_.VK,"yt-lockup-view-model",{props:{data:_.PS,containerLayoutConfig:_.PS,containerType:_.PS,sizing:_.PS,protectBackground:_.PS,typographyBump:_.PS,thumbnailFixedWidth:_.PS,thumbnailTargetWidth:_.PS,force16By9ThumbnailAspectRatio:_.PS,className:_.PS,lockupExperiments:_.PS,elementsPerRow:_.PS,useOverlayStyling:_.PS}});var Q_x,A6C=_.I(function(A){var t=_.Sv(A,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),f=t.text,X=t.alwaysShowTruncationText;A=t.truncationText;var Q=t.onTextClick,q=t.maxLines,e=t.disableTextMask,G=t.textStyle,N=t.accessibilityLabel,z=t.textSize,T=t.alwaysTruncateAtMaxLines,O=t.expandOnClick;t=_.U(_.hZ(!1,void 0,"EzA1q"));var c=t.next().value,B=t.next().value;t=_.f1(function(){O()&&B(!c());Q==null||Q()});
var h=function(){a:switch(z()){case "medium":var k=2;break a;case "large":k=2.2;break a;default:k=1.8}return k},W=UCg(f,function(){return c()?Infinity:q()},h,e,T,c),L=W.isTruncated;
f=W.displayText;T=W.contentRef;var E=W.hiddenRef,D=W.placeholderTruncationTextRef,S=W.hiddenTruncationTextRef;W=W.truncationTextRef;var Z={},d={},K={};return _.u("truncated-text",{class:_.Ao((Z["yt-truncated-text"]=!0,Z["yt-truncated-text--overlay"]=function(){return G()==="overlay"},Z["yt-truncated-text--medium-text"]=function(){return z()==="medium"},Z["yt-truncated-text--large-text"]=function(){return z()==="large"},Z["yt-truncated-text--primary-text"]=function(){return G()==="primary-text"},Z)),
"on:click":t,style:function(){return"line-height: "+h()+"rem;"}},_.u("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:T,style:function(){return c()?"":"max-height: "+q()*h()+"rem;"}},_.u(_.zL,{text:f}),_.u("button",{"aria-disabled":!0,
disabled:!0,class:_.Ao((d["yt-truncated-text__inline-button"]=!0,d["yt-truncated-text--hidden"]=function(){return!(!c()&&(X!=null&&X()||L()))},d)),
el:D,style:function(){return"line-height: "+h()+"rem;"}},_.u(_.zL,{text:A}))),_.u("truncated-text-content",{class:_.Ao("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:E,style:function(){return c()?"":"max-height: "+q()*h()+"rem;"},
"aria-hidden":"true"},_.u(_.zL,{text:f}),_.u("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:S,style:function(){return"line-height: "+h()+"rem;"}},_.u(_.zL,{text:A}))),_.u("button",{"aria-label":N,
class:_.Ao((K["yt-truncated-text__absolute-button"]=function(){return!e()},K["yt-truncated-text__bottom-button"]=function(){return e()},K["yt-truncated-text--hidden"]=function(){return!(!c()&&(X!=null&&X()||L()))},K)),
el:W,style:function(){return"line-height: "+h()+"rem;"}},_.u(_.zL,{text:A})))},"Xb");
A6C.idomCompat={callbacks:{onTextClick:!0}};var X88=_.I(function(A){var t=A.data;A=A.className;var f=_.yq(function(){return Gix(t())},void 0,"uDhDke"),X=_.u(_.Tw,null,_.u(_.P,{cond:function(){return t().heroText||t().image},
then:function(){return _.u(tw7,{data:t})}}),_.u(fR8,{data:t,
sizeSmall:function(){return t().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.u("yt-video-attribute-view-model",{class:A},_.u("div",{class:function(){var Q=t();a:switch(Q.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var q="yt-video-attribute-view-model--vertical";break a;default:q="yt-video-attribute-view-model--horizontal"}a:switch(Q.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var e="yt-video-attribute-view-model--image-small";break a;default:e="yt-video-attribute-view-model--image-large"}a:switch(Q.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var G=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":G="yt-video-attribute-view-model--image-avatar";break a;default:G=""}a:switch(Q.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var N="yt-video-attribute-view-model--metadata-header";break a;default:N=""}a:switch(Q.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var z="yt-video-attribute-view-model--container-card";break a;default:z=""}return["yt-video-attribute-view-model",q,e,
G,N,z,Gix(Q)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.U7({"background-color":function(){var Q=t();if(Q.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var q="";else{q=Q.lightColorPalette;Q=Q.darkColorPalette;var e,G=((e=_.Px().resolve(_.z7(_.FH)))==null?0:e())&&Q?Q:q;q=(q=G==null?void 0:G.section2Color)?_.bY(q):""}return q}})},_.u(_.P,{cond:f,
then:function(){return _.u(_.bc,{className:"yt-video-attribute-view-model__content-container",command:f,role:"group",ariaLabel:function(){return t().title}},X)},
else:function(){return _.u("div",{class:"yt-video-attribute-view-model__content-container"},X)}})))},"Yb");
X88.idomCompat=!0;var tw7=_.I(function(A){var t=A.data;var f,X=(f=_.Px().resolve(_.z7(_.FH)))==null?void 0:f(),Q=function(){return X&&t().darkThemeImage?t().darkThemeImage:t().image},q=_.yq(function(){return l5T(t())},void 0,"UDqj0b");
return _.u("div",{class:"yt-video-attribute-view-model__hero-section"},_.u(_.j2,null,_.u(_.FE,{when:Q},function(){return _.u(_.YA,{data:function(){return Q()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.u(_.FE,{when:function(){return t().heroText}},function(){return _.u("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.u("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return t().heroText}))})),_.u(_.P,{cond:function(){return t().overflowMenuOnTap},
then:function(){return _.u("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.u(_.Lx,{data:q,iconName:"MORE_VERT"}))}}))},"Zb");
tw7.idomCompat=!0;var fR8=_.I(function(A){var t=A.data;A=A.sizeSmall;var f=function(){return t().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},X=_.yq(function(){return vn(_.yx({innertubeCommand:Gix(t())}))?"link":Gix(t())?"button":"group"},void 0,"e2MmYe"),Q={};
return _.u("div",{class:_.Ao("yt-video-attribute-view-model__metadata",(Q["yt-video-attribute-view-model--small-font"]=A,Q)),role:X},_.u("h1",{class:"yt-video-attribute-view-model__title"},function(){return t().title}),_.u(_.P,{cond:function(){return t().subtitle},
then:function(){return _.u("h4",{class:"yt-video-attribute-view-model__subtitle"},_.u(_.P,{cond:f,then:function(){return _.u(A6C,{text:function(){return eHb(t().subtitle)},
truncationText:function(){return eHb(t().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.u("span",null,function(){return t().subtitle})}}))}}),_.u(_.P,{cond:function(){return t().secondarySubtitle},
then:function(q){return _.u("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.u(_.zL,{text:function(){var e=q();if(e!=null&&e.attachmentRuns){for(var G=[],N=_.U(e.attachmentRuns),z=N.next();!z.done;z=N.next())z=z.value,z.element&&G.push(Object.assign({},z,{element:Object.assign({},z.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));e=Object.assign({},e,{attachmentRuns:G})}return e}}))}}),_.u(_.P1,
{data:function(){return t().buttonViewModel}},{buttonViewModel:function(q){return _.u(_.nx,{data:q.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
fR8.idomCompat=!0;_.Hn(X88,"yt-video-attribute-view-model",{props:{data:_.PS,className:_.PS}});var Z7=function(){var A=_.F.apply(this,arguments)||this;A.useHighlightStyling=_.M("web_enable_deeper_metadata_highlight_styling");A.isSearch=!1;A.JSC$15375_lastScrollContainerWidth=NaN;A.pageLoadingFromNavigation=!1;A.currentIndex=0;A.supportComponentResize=!1;return A};
_.R(Z7,_.F);_.J=Z7.prototype;
_.J.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}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.JY(this,this.onPageChange))};
_.J.detached=function(){document.removeEventListener("yt-page-type-changed",_.JY(this,this.onPageChange))};
_.J.getItemsPath=function(){return"data.cards"};
_.J.onIronResize=function(){this.updateListStyles()};
_.J.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var A;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(A=this.data)==null?void 0:A.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.M("problem_walkthrough_sd")&&!!this.centerItems};
_.J.computeCardListStyle=function(A){return A||null};
_.J.computeEmpty=function(A){return!this.get("cards.length",A)};
_.J.computeThumbnailStyle=function(A){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",A)||null};
_.J.computeHasSubtitle=function(A){return!!this.get("header.richListHeaderRenderer.subtitle",A)};
_.J.computeInitialCountNumber=function(A){return this.hasSquareMiniApp&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.J.computeUseFloorScrolling=function(A){return A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.J.computeHasGameCard=function(A){return(A=this.get("cards",A))?A.some(function(t){return t.gameCardRenderer}):!1};
_.J.computeCenterHeaderTitle=function(A){return!(A==null||!A.centerHeaderTitle)};
_.J.computeHasPortraitMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.J.computeHasSquareMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.J.computeHasSkinnyWidthPortraitMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.width===135}):!1};
_.J.computeCenterItems=function(A){return!!A};
_.J.computeHasInfoPanel=function(A){var t;return A==null?void 0:(t=A.cards)==null?void 0:t.some(function(f){return f.infoPanelContentRenderer})};
_.J.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.J.getItemByIndex=function(A){var t=this.items.children;return t&&t.length>A?t[A]:void 0};
_.J.onPageChange=function(){var A=this;this.pageLoadingFromNavigation=!0;_.a6.addJob(function(){A.pageLoadingFromNavigation=!1;_.r2(A.hostElement,"yt-terminate-video-preview-action")},8)};
_.J.updateListStyles=function(){if(_.M("problem_walkthrough_sd")&&this.JSC$15375_scrollContainer!==void 0){var A=this.JSC$15375_scrollContainer.clientWidth;A!==this.JSC$15375_lastScrollContainerWidth&&(this.JSC$15375_lastScrollContainerWidth=A,_.Q_(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(A*.8,415)+"px"}),_.s9(this.hostElement,"iron-resize"))}};
_.PV.Object.defineProperties(Z7.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.M("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return!!((A=this.data)==null?0:(t=A.cards)==null?0:(f=t[0])==null?0:f.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return!!((A=this.data)==null?0:(t=A.cards)==null?0:(f=t[0])==null?0:f.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return _.M("enable_desktop_amsterdam_info_panels")&&!!((A=this.data)==null?0:(t=A.cards)==null?0:(f=t[0])==null?0:f.infoPanelContentRenderer)}}});
Z7.prototype.dataChanged=Z7.prototype.dataChanged;Z7.prototype.onIronResize=Z7.prototype.onIronResize;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.W7.YtdHorizontalListBehavior),_.H("design:type",Object)],Z7.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.b(_.UW),_.H("design:type",Object)],Z7.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Z7.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Z7.prototype,"useCustomColors",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Z7.prototype,"useHighlightStyling",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.H("design:type",Object)],Z7.prototype,"cardListStyle",void 0);_.V([_.n({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.H("design:type",Boolean)],Z7.prototype,"empty",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.H("design:type",Boolean)],Z7.prototype,"hasSubtitle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.H("design:type",Boolean)],Z7.prototype,"thumbnailStyle",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.H("design:type",Boolean)],Z7.prototype,"hasGameCard",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.H("design:type",Boolean)],Z7.prototype,"centerHeaderTitle",void 0);
_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.H("design:type",Boolean)],Z7.prototype,"hasPortraitMiniApp",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.H("design:type",Boolean)],Z7.prototype,"hasSquareMiniApp",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.H("design:type",Boolean)],Z7.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.V([_.n({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.H("design:type",Boolean)],Z7.prototype,"hasInfoPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Z7.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Z7.prototype,"inlineStructuredDescription",void 0);_.V([_.lo("#scroll-container"),_.H("design:type",HTMLDivElement)],Z7.prototype,"JSC$15375_scrollContainer",void 0);
_.V([_.n({computed:"computeInitialCountNumber(data.style.type)"}),_.H("design:type",Number)],Z7.prototype,"initialCount",void 0);_.V([_.n({computed:"computeUseFloorScrolling(data.style.type)"}),_.H("design:type",Boolean)],Z7.prototype,"useFloorScrolling",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.H("design:type",Boolean)],Z7.prototype,"centerItems",void 0);_.V([_.n(),_.H("design:type",Object)],Z7.prototype,"pageLoadingFromNavigation",void 0);
_.V([_.n(),_.H("design:type",Object)],Z7.prototype,"currentIndex",void 0);_.V([_.n(),_.H("design:type",Number)],Z7.prototype,"scrollCount",void 0);_.V([_.n(),_.H("design:type",Object)],Z7.prototype,"supportComponentResize",void 0);_.V([_.lo("#items"),_.H("design:type",HTMLDivElement)],Z7.prototype,"items",void 0);_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Z7.prototype,"onIronResize",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Z7.prototype,"dataChanged",null);_.V([_.n({reflectToAttribute:!0}),_.y("inlineStructuredDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Z7.prototype,"hideNavigationButton",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Z7.prototype,"modernChapters",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Z7.prototype,"hasVideoAttributeViewModels",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Z7.prototype,"modernInfoPanels",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Z7);
_.Y(Z7,"ytd-horizontal-card-list-renderer",function(){if(gLT!==void 0)return gLT;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return gLT=A},{mode:_.sQ("kevlar_poly_si_batch_j072")?1:2});var Qtk=_.I(function(A){var t=A.data;var f={};return _.u("video-summary-content-view-model",{class:_.Ao("videoSummaryContentViewModelHost",A.className,(f.videoSummaryContentViewModelHostIsSearch=A.isSearch,f))},_.u(_.xk,{each:function(){var X=[],Q=t().paragraphs;if(Q==null||!Q.length)return[];for(var q=0;q<Q.length;q++){var e=_.C(Q[q],czK),G=void 0;q>0&&(G=_.C(Q[q-1],czK));G&&!!G.marker===!!e.marker?X[X.length-1].paragraphs.push(e):X.push({isList:!!e.marker,paragraphs:[e]})}return X},
keyBy:"INDEX"},function(X){return _.u(_.P,{cond:function(){return X().isList},
then:function(){return _.u("ul",{class:"videoSummaryContentViewModelList"},_.u(_.xk,{each:function(){return X().paragraphs},
keyBy:"INDEX"},function(Q){return _.u("li",{class:"videoSummaryContentViewModelListItem"},_.u(_.zL,{text:function(){return Q().text}}))}))},
else:function(){return _.u("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.u(_.xk,{each:function(){return X().paragraphs},
keyBy:"INDEX"},function(Q){return _.u("p",{class:"videoSummaryContentViewModelParagraph"},_.u(_.zL,{text:function(){return Q().text}}))}))}})}),_.u(_.P,{cond:function(){return!!_.C(t().likeButtonViewModel,_.Xw)&&!!_.C(t().dislikeButtonViewModel,_.fl)},
then:function(){return _.u("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.u("div",{class:"videoSummaryContentViewModelLikeButton"},_.u(_.eK,{data:function(){return _.C(t().likeButtonViewModel,_.Xw)},
disableIconAnimation:!0})),_.u(_.U3,{data:function(){return _.C(t().dislikeButtonViewModel,_.fl)}}))}}))},"ac");
Qtk.idomCompat=!0;_.Hn(Qtk,"video-summary-content-view-model",{props:{data:_.PS,isSearch:_.PS,className:_.PS}});var oS=function(){var A=_.F.apply(this,arguments)||this;var t,f;A.isExpanded=(f=(t=A.data)==null?void 0:t.isExpanded)!=null?f:!1;A.disableExpand=!1;A.showProminentLabel=!1;A.showRightSideLabel=!0;A.toggleExpandableContent=function(X){A.disableExpand||(X.stopPropagation(),_.$E(_.Z2(X),A.hostElement,["info","expanded-subtitle"])||(A.isExpanded=!A.isExpanded,A.ytRendererBehavior.logExplicitClick(A.data),A.JSC$15386_cardList&&!_.M("expandable_metadata_a11y_fix_ks")&&_.us(A,function(){_.eY(A.hostElement)})))};
A.useSquareThumbnail=!1;A.startX=0;return A};
_.R(oS,_.F);_.J=oS.prototype;_.J.computeUseSquareThumbnail=function(){var A;return(A=this.data)==null?void 0:A.useSquareThumbnail};
_.J.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"}}}}};
_.J.dataChanged=function(){if(this.data){var A,t;this.isExpanded=(t=(A=this.data)==null?void 0:A.isExpanded)!=null?t:!1;var f,X,Q,q;if(A=this.isDarkTheme()?(f=this.data)==null?void 0:(X=f.colorData)==null?void 0:X.darkColorPalette:(Q=this.data)==null?void 0:(q=Q.colorData)==null?void 0:q.lightColorPalette){var e,G;if((e=this.data)==null?0:(G=e.colorData)==null?0:G.vibrantColorPalette)A.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.BO(this.hostElement,A)}}};
_.J.isExpandedChanged=function(){this.isExpanded&&this.JSC$15386_cardList&&_.s9(this.JSC$15386_cardList,"iron-resize")};
_.J.computeIsExpanded=function(A){return!!A.isExpanded};
_.J.computeShowProminentLabel=function(A,t){var f;return!!(A==null?0:(f=A.header)==null?0:f.showLeadingCollapsedLabel)&&!t};
_.J.computeShowRightSideLabel=function(A,t){var f;return!(A==null?0:(f=A.header)==null?0:f.showLeadingCollapsedLabel)&&!t};
_.J.captureContentClick=function(A){if(!this.disableExpand)if(_.M("expandable_metadata_fix_killswitch")){var t=A.target;_.YP7(t,"ytd-macro-markers-list-item-renderer")||A.stopPropagation();(t==null?void 0:t.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.$E(_.Z2(A),this.hostElement,["items"])||_.Sl(_.Z2(A),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.J.timestampClick=function(A){A.stopPropagation();var t,f;(A=(t=this.data)==null?void 0:(f=t.header)==null?void 0:f.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(A)};
_.J.onDown=function(A){A.stopPropagation();this.startX=A.detail?A.detail.x:0};
_.J.onUp=function(A){this.skipKeyInteraction(A)&&A.stopPropagation()};
_.J.skipKeyInteraction=function(A){var t=A.target;if((t==null?void 0:t.id)==="scroll-container"||(t==null?void 0:t.id)==="items"||A.detail&&A.detail.x!==this.startX)return!0;A=_.Z2(A);A=_.U(A);for(t=A.next();!t.done;t=A.next()){t=t.value;if(t===this.hostElement)break;if(t.hasAttribute&&t.hasAttribute("skip-key-interaction"))return!0}return!1};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.PV.Object.defineProperties(oS.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.C((A=this.data)==null?void 0:A.expandedContent,OyT)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.C((A=this.data)==null?void 0:A.expandedContent,_.i2p)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var A,t;return!((A=this.data)==null||!A.useCustomColors)&&!((t=this.data)==null||!t.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var A,t;return!!((A=this.data)==null?0:(t=A.header)==null?0:t.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var A,t;return!!((A=this.data)==null?0:(t=A.header)==null?0:t.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,t;return!!((A=this.data)==null?0:(t=A.header)==null?0:t.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
oS.prototype.onUp=oS.prototype.onUp;oS.prototype.onDown=oS.prototype.onDown;oS.prototype.isExpandedChanged=oS.prototype.isExpandedChanged;oS.prototype.dataChanged=oS.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],oS.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],oS.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],oS.prototype,"isExpanded",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],oS.prototype,"disableExpand",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],oS.prototype,"isSearch",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],oS.prototype,"isWatch",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.H("design:type",Object)],oS.prototype,"showProminentLabel",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.H("design:type",Object)],oS.prototype,"showRightSideLabel",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oS.prototype,"hasVideoSummary",null);_.V([_.n({value:!1,reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oS.prototype,"hasLockupViewModel",null);_.V([_.n({reflectToAttribute:!0}),_.y("data","isWatch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oS.prototype,"useCustomColors",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oS.prototype,"showInfoButton",null);_.V([_.y("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oS.prototype,"showTimestamp",null);_.V([_.y("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oS.prototype,"showExpandedSubtitle",null);
_.V([_.y("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oS.prototype,"showThumbnail",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],oS.prototype,"useVppShoppingDestinationStyle",null);_.V([_.n(),_.H("design:type",Object)],oS.prototype,"toggleExpandableContent",void 0);_.V([_.lo("ytd-horizontal-card-list-renderer"),_.H("design:type",Object)],oS.prototype,"JSC$15386_cardList",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.H("design:type",Object)],oS.prototype,"useSquareThumbnail",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oS.prototype,"dataChanged",null);_.V([_.ev("isExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oS.prototype,"isExpandedChanged",null);
_.V([_.UQ("down"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oS.prototype,"onDown",null);_.V([_.UQ("up"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oS.prototype,"onUp",null);_.V([_.y_({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],oS);
_.Y(oS,"ytd-expandable-metadata-renderer",function(){if(XZK!==void 0)return XZK;var A=document.createElement("template");_.m(A,'\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" hidden="[[!isExpanded]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return XZK=A},{mode:1});var qZS,J6E=function(){if(qZS!==void 0)return qZS;var A=document.createElement("template");_.m(A,'\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      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" 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]]" hidden="[[hasAttributedBylineText]]" 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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return qZS=A};_.Hn(_.Jw,"yt-avatar-stack-view-model",{props:{className:_.PS,data:_.PS,overrides:_.PS,isOverlay:_.PS,useMediumText:_.PS,decorations:_.PS,hideAvatar:_.PS}});_.C1("itemSectionRenderer","videoRenderer","ytd-video-renderer");var dg=function(){var A=_.F.apply(this,arguments)||this;A.disableExpand=!1;A.shouldShowChannelInfo=!1;A.hasAttributedBylineText=!1;A.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return A};
_.R(dg,_.F);_.J=dg.prototype;_.J.computeUseSearchUi=function(){var A,t;return this.isSearch||((A=this.data)==null?void 0:(t=A.style)==null?void 0:t.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.computeUseThreeLineTitle=function(){var A;return((A=this.data)==null?void 0:A.maxTitleLines)===3};
_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.M("polymer_video_renderer_defer_menu")&&!ZD7?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"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.J.attached=function(){_.rH(this.hostElement,"blue-links",_.M("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.AY(_.sF(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var A=this.get("data.buttons.buttonRenderer.serviceEndpoint"),t;A&&((t=_.C(A.commandMetadata,_.HL))==null?0:t.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(A);this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15391_inlinePreviewHoverListener=LW({mediaRenderer:this,lockupElement:this.JSC$15391_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.J.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15391_inlinePreviewHoverListener)==null||$Y(A)};
_.J.onTextWrapperClick=function(A){var t,f,X=this.hideTranslation?(t=this.data)==null?void 0:t.untranslatedNavigationEndpoint:(f=this.data)==null?void 0:f.navigationEndpoint;t=_.$E(_.Z2(A),this.hostElement,["expandable-metadata"]);!X||t&&!_.M("expandable_metadata_fix_killswitch")||_.Sl(_.Z2(A),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.s9(this.hostElement,"yt-navigate",{endpoint:X})};
_.J.computeThumbnailWidth=function(A,t,f,X,Q){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:X?Q==="MASSIVE"?600:Q==="BIG"?500:Q==="MEDIUM"?450:420:f?360:t?128:A?210:246};
_.J.computeUseBiggerThumbs=function(A){return A&&_.M("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.J.computeHasAttributedBylineText=function(){var A;return!((A=this.data)==null||!A.attributedBylineText)};
_.J.computeVideoStyle=function(){if(_.M("enable_video_style")){var A,t;return(A=this.data)==null?void 0:(t=A.style)==null?void 0:t.value}};
_.J.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.handleHideItemSectionVideosByIdCommand=function(A){var t;A=(t=_.C(A,VNT))==null?void 0:t.videoId;this.data&&this.data.videoId===A&&(this.isHidden=!0)};
_.J.getMetadataSnippetContainerClass=function(A){return A?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.J.computeTitleText=function(A,t,f){return A?f:t};
_.J.computeDescriptionSnippet=function(A,t,f){return A?f:t};
_.J.computeSnippetText=function(A,t,f){return A?f:t};
_.J.computeNavigationEndpoint=function(A,t){return A?t==null?void 0:t.untranslatedNavigationEndpoint:t==null?void 0:t.navigationEndpoint};
_.J.hideInlineTitleIcon=function(A,t){return A||!t};
_.PV.Object.defineProperties(dg.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 A;return(A=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?A:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return!!(this==null?0:(A=this.data)==null?0:(t=A.channelThumbnailSupportedRenderers)==null?0:(f=t.channelThumbnailWithLinkRenderer)==null?0:f.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.C((A=this.data)==null?void 0:A.avatar,O2S)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15391_inlinePreviewHoverListener)==null?0:GZ(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.PV.Object.defineProperties(dg,{template:{configurable:!0,enumerable:!0,get:function(){return J6E()}}});
dg.prototype.dataChanged=dg.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],dg.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],dg.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.b(_.P7),_.H("design:type",Object)],dg.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],dg.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],dg.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],dg.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],dg.prototype,"isBackstageVideo",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],dg.prototype,"isPostCompactVideo",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],dg.prototype,"isHistory",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],dg.prototype,"isRichGridVideoPost",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],dg.prototype,"isHidden",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],dg.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.H("design:type",Boolean)],dg.prototype,"useSearchUi",void 0);_.V([_.n({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.H("design:type",Boolean)],dg.prototype,"useThreeLineTitle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.H("design:type",Boolean)],dg.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.H("design:type",Object)],dg.prototype,"videoStyle",void 0);_.V([_.n({computed:"computeDisableExpand(videoStyle)"}),_.H("design:type",Object)],dg.prototype,"disableExpand",void 0);
_.V([_.n({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.H("design:type",Object)],dg.prototype,"shouldShowChannelInfo",void 0);_.V([_.n({computed:"computeHasAttributedBylineText(data)"}),_.H("design:type",Object)],dg.prototype,"hasAttributedBylineText",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Bx("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],dg.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.H("design:type",String)],dg.prototype,"inlineTitleIcon",void 0);_.V([_.n({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.H("design:type",Object)],dg.prototype,"computedNavigationEndpoint",void 0);_.V([_.n({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(A,t){return _.q_(A.entities,"searchVideoResultEntity",t)}}),
_.H("design:type",Object)],dg.prototype,"searchVideoResultEntity",void 0);_.V([_.lo("ytd-thumbnail"),_.H("design:type",HTMLElement)],dg.prototype,"thumbnail",void 0);_.V([_.lo("#dismissible"),_.H("design:type",HTMLElement)],dg.prototype,"JSC$15391_dismissibleMedia",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dg.prototype,"dataChanged",null);
_.V([_.y("searchVideoResultEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dg.prototype,"hideTranslation",null);_.V([_.y("searchVideoResultEntity"),_.H("design:type",Array),_.H("design:paramtypes",[])],dg.prototype,"hiddenBadgeGroups",null);_.V([_.y("data","useAvatar"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dg.prototype,"shouldShowChannelThumbnail",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dg.prototype,"useAvatar",null);
_.V([_.y("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dg.prototype,"isHovered",null);_.V([_.y_({is:"ytd-video-renderer",disableElementRegistration:!0})],dg);_.Y(dg,"ytd-video-renderer",function(){return J6E()},{mode:_.sQ("kevlar_poly_si_batch_j047")?1:2});var SX=function(){var A=_.F.apply(this,arguments)||this;A.editDialog=null;A.roundedContainer=!0;A.isLoading=!1;A.isRichGrid=!1;A.isRichGridRepost=!1;A.reduceSidePaddings=_.M("reduce_side_paddings_in_shelf");A.JSC$15398_spinnerEl=null;return A};
_.R(SX,_.F);_.J=SX.prototype;
_.J.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"}}}};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){var A=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var t=0,f=this.data.actions&&this.data.actions.length;t<f;t++)this.openEditDialog(_.C(this.data.actions[t],RAl));if((t=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(t=this.get("buttonRenderer.hint.hintRenderer.hintId",t))&&t.startsWith("share-post-hint")){var X=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(X){_.IF.getInstance();var Q=xx(_.oC(_.e5("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.a6.addLowPriorityJob(function(){_.tl(A.hostElement,Q,X)})}}}};
_.J.updatePoll=function(A){A>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15398_spinnerEl||(this.JSC$15398_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.sF(this.hostElement).appendChild(this.JSC$15398_spinnerEl));this.JSC$15398_spinnerEl&&(this.JSC$15398_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(A){var t=this.get("updateCommentDialogEndpoint",A.detail.endpoint);t&&(this.openEditDialog(t),A.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(A,t){t&&this.updatePoll(t.selectedChoiceIndex)};
_.J.onYtServiceRequestSent=function(A,t){var f;t.endpoint&&(_.C(t.endpoint,Eob)||_.C(t.endpoint,p4f)&&((f=_.C(t.endpoint,p4f))==null||!f.clientActions))&&(this.isLoading=!0);if(t.actions)for(A=0;A<t.actions.length;A++)f=t.actions[A],_.C(f,S4)&&(f=this.get("updateBackstagePollAction.selectedChoiceIndex",f),f==void 0&&(f=-1),this.updatePoll(f))};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.editDialogEl.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.J.computeIsPostHidden=function(A,t){return!!A||t};
_.J.computeSurfaceType=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.J.computeUsesCompactLockup=function(A){return A==="BACKSTAGE_SURFACE_TYPE_HOME"||A==="BACKSTAGE_SURFACE_TYPE_SEARCH"||A==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||A==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||A==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||A==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.J.computeShowWithoutToolbar=function(A){return!A.actionButtons&&!A.actionMenu};
_.J.computePostAttachment=function(A){if(A.backstageAttachment){if(_.C(A.backstageAttachment,l0p))return"poll";if(_.C(A.backstageAttachment,ga8))return"quiz";if(_.C(A.backstageAttachment,_.NN))return"video";if(_.C(A.backstageAttachment,wSi))return"uploaded-videos";if(_.C(A.backstageAttachment,gdS))return A.contentText?"image":"image-only";if(_.C(A.backstageAttachment,$Xw))return"playlist"}return"none"};
_.J.computePostTabIndex=function(A){return A?0:-1};
_.J.computeButtonTooltipPosition=function(A){return this.computeUsesCompactLockup(A)?"top":"bottom"};
_.J.computeHasText=function(A){return!(A==null||!A.contentText)};
_.J.onTap=function(A){var t,f;if(((t=this.data)==null?0:t.navigationEndpoint)&&((f=this.data)==null?void 0:f.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var X;((X=this.data)==null?0:X.navigationEndpoint)&&!_.Sl(_.Z2(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.PV.Object.defineProperties(SX.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.oC("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,l0p))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,wSi))}}});
SX.prototype.onYtServiceRequestCompleted=SX.prototype.onYtServiceRequestCompleted;SX.prototype.onYtServiceRequestSent=SX.prototype.onYtServiceRequestSent;SX.prototype.onYtCommentPollRevert=SX.prototype.onYtCommentPollRevert;SX.prototype.onYtCommentboxDismiss=SX.prototype.onYtCommentboxDismiss;SX.prototype.onYtNavigate=SX.prototype.onYtNavigate;SX.prototype.isLoadingChanged=SX.prototype.isLoadingChanged;SX.prototype.dataChanged=SX.prototype.dataChanged;SX.prototype.contentTextChanged=SX.prototype.contentTextChanged;
_.V([_.b(_.UW),_.H("design:type",Object)],SX.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],SX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],SX.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],SX.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],SX.prototype,"editDialog",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],SX.prototype,"roundedContainer",void 0);_.V([_.n(),_.H("design:type",Object)],SX.prototype,"isLoading",void 0);_.V([_.n({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.H("design:type",String)],SX.prototype,"surface",void 0);
_.V([_.n({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.H("design:type",Boolean)],SX.prototype,"usesCompactLockup",void 0);_.V([_.n({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],SX.prototype,"showWithoutToolbar",void 0);_.V([_.n({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.H("design:type",String)],SX.prototype,"attachment",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],SX.prototype,"isRichGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],SX.prototype,"isRichGridRepost",void 0);_.V([_.n({reflectToAttribute:!0,value:_.M("use_better_post_dismissals")}),_.H("design:type",Boolean)],SX.prototype,"useBetterPostDismissals",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],SX.prototype,"reduceSidePaddings",void 0);
_.V([_.n({computed:"computeHasText(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],SX.prototype,"hasText",void 0);_.V([_.lo("#expander"),_.H("design:type",Object)],SX.prototype,"expander",void 0);_.V([_.lo("#action-buttons"),_.H("design:type",Object)],SX.prototype,"actionButtons",void 0);_.V([_.lo("#edit-dialog"),_.H("design:type",HTMLElement)],SX.prototype,"editDialogEl",void 0);
_.V([_.ev("data.contentText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SX.prototype,"contentTextChanged",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SX.prototype,"dataChanged",null);_.V([_.ev("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SX.prototype,"isLoadingChanged",null);
_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],SX.prototype,"onYtNavigate",null);_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SX.prototype,"onYtCommentboxDismiss",null);_.V([_.UQ("yt-comment-poll-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],SX.prototype,"onYtCommentPollRevert",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],SX.prototype,"onYtServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],SX.prototype,"onYtServiceRequestCompleted",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],SX.prototype,"voteCount",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],SX.prototype,"commentCount",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],SX.prototype,"hasPoll",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],SX.prototype,"hasUploadedVideo",null);_.V([_.y_({is:"ytd-post-renderer",disableElementRegistration:!0})],SX);
_.Y(SX,"ytd-post-renderer",function(){if(mQl!==void 0)return mQl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return mQl=A},{mode:1});var Uob;var et8;var $b=function(){return _.F.apply(this,arguments)||this};
_.R($b,_.F);$b.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$b.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.W7.YtdHorizontalListBehavior),_.H("design:type",Object)],$b.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],$b.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$b.prototype,"data",void 0);
_.V([_.n({value:"$.items.children"}),_.H("design:type",String)],$b.prototype,"itemsPath",void 0);_.V([_.n({value:1}),_.H("design:type",Number)],$b.prototype,"initialCount",void 0);_.V([_.n({reflectToAttribute:!0,value:_.M("enable_community_page_on_desktop")}),_.H("design:type",Boolean)],$b.prototype,"useSmallerPostImageAttachments",void 0);_.V([_.n(),_.H("design:type",String)],$b.prototype,"surface",void 0);_.V([_.y_({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],$b);
_.Y($b,"ytd-post-multi-image-renderer",function(){if(et8!==void 0)return et8;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return et8=A},{mode:_.sQ("kevlar_poly_si_batch_j079")?1:2});var GP7={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"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"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
HM=function(){var A=_.F.apply(this,arguments)||this;A.hasInlineCommentSection=!1;A.editDialog=null;A.isLoading=!1;A.shouldHideAuthor=!1;A.shouldShowVideoTime=!1;A.isInEngagementPanel=!1;A.hideBorder=!1;A.usesFullLockup=!1;A.shouldShowMenuInCompactView=!1;A.JSC$15413_spinnerEl=null;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.R(HM,_.F);_.J=HM.prototype;_.J.configureRendererStamper=function(){return GP7};
_.J.computeIsPollHeaderEnabled=function(A){return(A==null?void 0:A.pollMetadataIcon)!=null};
_.J.getPublishTimeStampString=function(A,t){t=new Date((Number(t)-60*((new Date).getTimezoneOffset()-(new Date(Number(t)*1E3)).getTimezoneOffset()))*1E3);t=(new Zt(10)).format(t);if(A&&A.runs&&A.runs.length)for(var f=0;f<A.runs.length;f++)A.runs[f].text&&(A.runs[f].text=A.runs[f].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",t));return A};
_.J.created=function(){this.JSC$15413_spinnerEl=null};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var A;if((A=this.data)==null?0:A.actions){A=_.U(this.data.actions);for(var t=A.next();!t.done;t=A.next())this.openEditDialog(_.C(t.value,RAl))}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){_.sF(this.hostElement).querySelector("#action-buttons").reply()};
_.J.updatePoll=function(A,t){t&&this.set("data.pollMetadataVoteCountText",t);this.hasInlineCommentSection&&(A=A>=0,t=_.sF(this.hostElement).querySelector("#action-buttons"),A?t.reply():t.hideReplyDialog())};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15413_spinnerEl||(this.JSC$15413_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.sF(this.hostElement).appendChild(this.JSC$15413_spinnerEl));this.JSC$15413_spinnerEl&&(this.JSC$15413_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(A){var t=this.get("updateCommentDialogEndpoint",A.detail.endpoint);t&&(this.openEditDialog(t),A.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(A,t){t&&this.updatePoll(t.selectedChoiceIndex,t.totalVotes)};
_.J.onYtServiceRequestSent=function(A,t){A.stopPropagation();A=_.C(t.endpoint,p4f);if(_.C(t.endpoint,Eob)||A&&!A.clientActions)this.isLoading=!0;if(t.actions)for(A=0;A<t.actions.length;A++){var f=t.actions[A],X=_.C(f,S4);X&&(f=this.get("updateBackstagePollAction.selectedChoiceIndex",f),f===void 0&&(f=-1),this.updatePoll(f,X.totalVotes))}};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.editDialogElement.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.J.computeIsBodyHidden=function(A,t){return!!A||t};
_.PV.Object.defineProperties(HM.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var A=this.data,t=A.showPostAuthorBackgroundHighlight,f=A.postAuthorBadgeType,X=A.authorEndpoint;if(!t&&f!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&f!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var Q,q,e;A=_.oC(((Q=A.authorText)==null?void 0:(q=Q.runs)==null?void 0:(e=q[0])==null?void 0:e.text)||"");Q=void 0;switch(f){case "POST_AUTHOR_BADGE_TYPE_ARTIST":Q={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":Q={iconType:t?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:A,authorEndpoint:X,authorCreator:t,icon:Q}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var A,t;if((A=this.data)==null?0:(t=A.pollMetadataIcon)==null?0:t.iconType)return _.t7(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.oC("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,l0p))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,ga8))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,wSi))}}});
HM.prototype.onYtServiceRequestCompleted=HM.prototype.onYtServiceRequestCompleted;HM.prototype.onYtServiceRequestSent=HM.prototype.onYtServiceRequestSent;HM.prototype.onYtCommentPollRevert=HM.prototype.onYtCommentPollRevert;HM.prototype.onYtCommentboxDismiss=HM.prototype.onYtCommentboxDismiss;HM.prototype.onYtNavigate=HM.prototype.onYtNavigate;HM.prototype.isLoadingChanged=HM.prototype.isLoadingChanged;HM.prototype.dataChanged=HM.prototype.dataChanged;HM.prototype.contentTextChanged=HM.prototype.contentTextChanged;
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],HM.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],HM.prototype,"rendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],HM.prototype,"rendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],HM.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.lo("#contentTextExpander"),_.H("design:type",Object)],HM.prototype,"expander",void 0);_.V([_.lo("#edit-dialog"),_.H("design:type",Element)],HM.prototype,"editDialogElement",void 0);_.V([_.n(),_.H("design:type",Object)],HM.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],HM.prototype,"hasInlineCommentSection",void 0);_.V([_.n(),_.H("design:type",Object)],HM.prototype,"editDialog",void 0);_.V([_.n(),_.H("design:type",Object)],HM.prototype,"isLoading",void 0);
_.V([_.n({computed:"computeIsPollHeaderEnabled(data)"}),_.H("design:type",Boolean)],HM.prototype,"isPollHeaderEnabled",void 0);_.V([_.n(),_.H("design:type",Object)],HM.prototype,"shouldHideAuthor",void 0);_.V([_.n(),_.H("design:type",Object)],HM.prototype,"shouldShowVideoTime",void 0);_.V([_.n(),_.H("design:type",Object)],HM.prototype,"isInEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HM.prototype,"hideBorder",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HM.prototype,"usesFullLockup",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HM.prototype,"shouldShowMenuInCompactView",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],HM.prototype,"authorCommentBadge",null);_.V([_.y("isInEngagementPanel"),_.H("design:type",Number),_.H("design:paramtypes",[])],HM.prototype,"postTextMaxLines",null);
_.V([_.y("data.icon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],HM.prototype,"pollIcon",null);_.V([_.ev("data.contentText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HM.prototype,"contentTextChanged",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HM.prototype,"dataChanged",null);
_.V([_.ev("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HM.prototype,"isLoadingChanged",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],HM.prototype,"onYtNavigate",null);_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HM.prototype,"onYtCommentboxDismiss",null);
_.V([_.UQ("yt-comment-poll-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],HM.prototype,"onYtCommentPollRevert",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],HM.prototype,"onYtServiceRequestSent",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],HM.prototype,"onYtServiceRequestCompleted",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],HM.prototype,"voteCount",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],HM.prototype,"commentCount",null);
_.V([_.y("data.backstageAttachment"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HM.prototype,"hasPoll",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HM.prototype,"hasQuiz",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HM.prototype,"hasUploadedVideo",null);_.V([_.y_({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],HM);
_.Y(HM,"ytd-backstage-post-renderer",function(){if(Uob!==void 0)return Uob;var A=document.createElement("template");_.m(A,'\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="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!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="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" 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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Uob=A},{mode:1});var lRp;var aS=function(){var A=_.F.apply(this,arguments)||this;A.editDialog=null;A.showExpandButton=!1;A.isRichGrid=!1;A.usesFullLockup=!1;return A};
_.R(aS,_.F);_.J=aS.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.J.computeShowExpandButton=function(A){return this.usesCompactLockup||A&&A.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.J.computeUsesCompactLockup=function(A){return!!A.condensedContent};
_.J.computeShowFullContentText=function(A){return!A};
_.J.onYtNavigate=function(A){A=this.get("updateCommentDialogEndpoint",A.detail.endpoint);this.openEditDialog(A)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.repostEditDialogEl.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.J.onTap=function(A){if(this.data){var t=null;this.usesCompactLockup&&!_.Sl(_.Z2(A)||[],this.hostElement,["YT-IMG-SHADOW"])?t=this.get("navigationEndpoint",this.data):A.target===this.moreButtonEl&&(t=this.get("navigationEndpoint",A.target.data));t&&_.s9(this.hostElement,"yt-navigate",{endpoint:t})}};
aS.prototype.onYtCommentboxDismiss=aS.prototype.onYtCommentboxDismiss;aS.prototype.onYtNavigate=aS.prototype.onYtNavigate;aS.prototype.dataChanged=aS.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],aS.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],aS.prototype,"editDialog",void 0);_.V([_.n({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],aS.prototype,"usesCompactLockup",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aS.prototype,"showExpandButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aS.prototype,"isRichGrid",void 0);
_.V([_.n({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.H("design:type",Boolean)],aS.prototype,"showFullContentText",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aS.prototype,"usesFullLockup",void 0);_.V([_.lo("#more"),_.H("design:type",Object)],aS.prototype,"moreButtonEl",void 0);_.V([_.lo("#repost-content-text"),_.H("design:type",HTMLElement)],aS.prototype,"repostContentTextEl",void 0);
_.V([_.lo("#repost-edit-dialog"),_.H("design:type",HTMLElement)],aS.prototype,"repostEditDialogEl",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aS.prototype,"dataChanged",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],aS.prototype,"onYtNavigate",null);
_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aS.prototype,"onYtCommentboxDismiss",null);_.V([_.y_({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],aS);
_.Y(aS,"ytd-shared-post-renderer",function(){if(lRp!==void 0)return lRp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return lRp=A},{mode:1});var NY8;var uMT;var Kj=function(){return _.F.apply(this,arguments)||this};
_.R(Kj,_.F);Kj.prototype.attached=function(){var A=this;this.networkStatusManager||(this.networkStatusManager=new _.qA,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){A.onlineHandler()}))};
Kj.prototype.detached=function(){var A=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){A.onlineHandler()}),delete this.networkStatusManager)};
Kj.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Kj.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Kj.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Kj);
_.Y(Kj,"ytd-reload-page-button-renderer",function(){if(uMT!==void 0)return uMT;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return uMT=A},{mode:1});var ztK={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"},gg=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(gg,_.F);_.J=gg.prototype;_.J.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.J.computeHasBodyText=function(A){return!!A.bodyText};
_.J.computeButtons=function(A){var t=[];A.ctaButton&&t.push(A.ctaButton);A.secondaryButton&&t.push(A.secondaryButton);return t};
_.J.computeRendererStyle=function(A){return A.style?A.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():A.icon?"":"no-icon"};
_.J.getIconName=function(A,t){t=t===void 0?!1:t;if(A===void 0)return"";A=this.get("icon.iconType",A);var f;_.M("enable_hlp_client_icon_pick")?f=this.getThemedIcon(A,t):f=A;(t=ztK[f])||(t="yt-icons");return[t,f].join(":")};
_.J.getThemedIcon=function(A,t){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(A)?t?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(A)?t?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":A};
_.J.isThumbnail=function(A){return!!A.thumbnail};
_.J.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],gg.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gg.prototype,"data",void 0);
_.V([_.n({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],gg.prototype,"rendererStyle",void 0);_.V([_.n({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.H("design:type",String)],gg.prototype,"iconName",void 0);_.V([_.n({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],gg.prototype,"thumbnail",void 0);_.V([_.n({computed:"computeButtons(data)"}),_.H("design:type",Array)],gg.prototype,"buttons",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],gg.prototype,"isDarkTheme",void 0);_.V([_.n({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],gg.prototype,"hasBodyText",void 0);_.V([_.y_({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],gg);
_.wR()(gg,"ytd-background-promo-renderer",function(){if(NY8===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);NY8=A}A=NY8;return A},{allowedProps:["data"],
mode:1});var P9i;var wg=function(){return _.F.apply(this,arguments)||this};
_.R(wg,_.F);_.PV.Object.defineProperties(wg.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X,Q,q;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(t=A.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(f=this.data)==null?void 0:(X=f.thumbnail)==null?void 0:X.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(q=Q.thumbnail)==null?void 0:q.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wg.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],wg.prototype,"collectionStack",null);_.V([_.y_({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],wg);
_.Y(wg,"ytd-compact-station-renderer",function(){if(P9i!==void 0)return P9i;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return P9i=A},{mode:1});var TYf;var s5=function(){var A=_.F.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.R(s5,_.F);s5.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]]"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],s5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],s5.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],s5.prototype,"isRichGrid",void 0);_.V([_.y_({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],s5);
_.Y(s5,"ytd-grid-channel-renderer",function(){if(TYf!==void 0)return TYf;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return TYf=A},{mode:1});var i5p;var kb=function(){return _.F.apply(this,arguments)||this};
_.R(kb,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],kb.prototype,"data",void 0);_.V([_.y_({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],kb);
_.Y(kb,"ytd-grid-movie-playlist-renderer",function(){if(i5p!==void 0)return i5p;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return i5p=A},{mode:1});var O5S;var rg=function(){var A=_.F.apply(this,arguments)||this;A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.modernButtons=_.M("web_modern_buttons");return A};
_.R(rg,_.F);rg.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
rg.prototype.configureRendererStamper=function(){return{"data.menu":SK}};
rg.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
rg.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.M("woffle_playlist_renderer_killswitch")){var A,t=p4b(this.entityInfo,this.transferState,this.downloadProgress,(A=this.data)==null?void 0:A.playlistId,this.isOnline);A=t.viewPlaylistText;var f=t.badges;t=t.thumbnailOverlays;this.isDownloads=!!A||!!f;this.set("data.viewPlaylistText",A);f&&f.length>0&&this.set("data.badges",f);t&&t.length>0&&this.set("data.thumbnailOverlays",
t)}};
_.PV.Object.defineProperties(rg.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 A;return!((A=this.data)==null?0:A.menu)}}});
rg.prototype.transferStateChanged=rg.prototype.transferStateChanged;rg.prototype.dataChanged=rg.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],rg.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],rg.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n({selector:_.oag,selectorArgs:["data.playlistId"]}),_.H("design:type",Object)],rg.prototype,"downloadProgress",void 0);_.V([_.n({selector:_.pZ,selectorArgs:["data.playlistId"]}),_.H("design:type",Object)],rg.prototype,"transferState",void 0);_.V([_.n({selector:Zx5,selectorArgs:["data.playlistId"]}),_.H("design:type",Object)],rg.prototype,"entityInfo",void 0);_.V([_.n({selector:_.vE}),_.H("design:type",Boolean)],rg.prototype,"isOnline",void 0);
_.V([_.n(),_.H("design:type",Object)],rg.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],rg.prototype,"downloadRenderData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],rg.prototype,"modernButtons",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],rg.prototype,"isDownloads",void 0);_.V([_.y("transferState"),_.n({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],rg.prototype,"downloadState",null);
_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rg.prototype,"menuHidden",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rg.prototype,"dataChanged",null);_.V([_.PU("transferState","downloadProgress","isOnline"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rg.prototype,"transferStateChanged",null);
_.V([_.y_({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],rg);
_.Y(rg,"ytd-grid-playlist-renderer",function(){if(O5S!==void 0)return O5S;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return O5S=A},{mode:1});var c6T;var AA=function(){return _.F.apply(this,arguments)||this};
_.R(AA,_.F);AA.prototype.configureRendererStamper=function(){return{"data.menu":SK,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.PV.Object.defineProperties(AA.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X,Q,q;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(t=A.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(f=this.data)==null?void 0:(X=f.thumbnail)==null?void 0:X.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(q=Q.thumbnail)==null?void 0:q.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],AA.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],AA.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],AA.prototype,"data",void 0);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],AA.prototype,"collectionStack",null);_.V([_.y_({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],AA);
_.Y(AA,"ytd-grid-radio-renderer",function(){if(c6T!==void 0)return c6T;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return c6T=A},{mode:1});var BYb;var tA=function(){return _.F.apply(this,arguments)||this};
_.R(tA,_.F);tA.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
tA.prototype.computeNavigationEndpoint=function(A){return FOg(A==null?void 0:A.navigationEndpoint)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],tA.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],tA.prototype,"data",void 0);_.V([_.n({computed:"computeNavigationEndpoint(data)"}),_.H("design:type",Object)],tA.prototype,"computedNavigationEndpoint",void 0);
_.V([_.y_({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],tA);
_.Y(tA,"ytd-grid-show-renderer",function(){if(BYb!==void 0)return BYb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return BYb=A},{mode:1});var Mwp;_.fh=function(A){this.playerClient=A};
_.C9K=function(A,t,f){f=f===void 0?{}:f;return A.playerClient.setOption("ad",t,f)};
_.fh.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.fh.prototype.executeCommand=function(A,t){this.getOptions().includes("executeCommand")?_.C9K(this,"executeCommand",{command:A,layoutId:t}):_.xu("Calling executeCommand when adModule is not loaded")};var XS=function(){return _.F.apply(this,arguments)||this};
_.R(XS,_.F);XS.prototype.getLayoutId=function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
XS.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var A=_.K1(),t=this.getLayoutId(),f=this.data.clickthroughEndpoint;A&&t&&_.M("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(X){(new _.fh(X)).executeCommand(f,t)}):_.s9(this.hostElement,"yt-navigate",{endpoint:f})}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],XS.prototype,"data",void 0);_.V([_.y_({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],XS);
_.Y(XS,"ytd-shopping-companion-item-renderer",function(){if(Mwp!==void 0)return Mwp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Mwp=A},{mode:1});var htf;var Qp=function(){var A=_.F.apply(this,arguments)||this;A.isExpandableContent=!1;return A};
_.R(Qp,_.F);_.PV.Object.defineProperties(Qp.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.data)==null?void 0:A.price)||((t=this.data)==null?void 0:(f=t.dealsData)==null?void 0:f.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var A,t;if((A=this.data)!=null&&A.dealsData&&((t=this.data)==null||!t.priceReplacementText)){A=this.data.dealsData;var f,X,Q;return((f=A.salesData)==null?void 0:f.originalPrice)||((X=A.priceDropData)==null?void 0:X.referencePrice)||((Q=A.promotionData)==null?void 0:Q.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var A,t;return(A=this.data)==null?void 0:(t=A.dealsData)==null?void 0:t.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Qp.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Qp.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Qp.prototype,"isExpandableContent",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"showCta",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"ctaText",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"hasPriceTopPosition",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"hasPriceBottomPosition",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"useNewStyle",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"showPriceReplacementText",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"priceValue",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"showDeal",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"showAffiliateDisclaimer",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"useSaleStyle",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"useFromBrandCtaStyle",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"useFromVendorCtaStyle",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qp.prototype,"useShoppingCollectionCtaStyle",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Qp);
_.Y(Qp,"ytd-vertical-product-card-renderer",function(){if(htf!==void 0)return htf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return htf=A},{mode:1});var Rtp;var qK=function(){return _.F.apply(this,arguments)||this};
_.R(qK,_.F);qK.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],qK.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qK.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],qK);
_.Y(qK,"ytd-grid-movie-renderer",function(){if(Rtp!==void 0)return Rtp;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Rtp=A},{mode:1});var mop;var JA=function(){var A=_.F.apply(this,arguments)||this;A.roundedFix=_.M("web_enable_merch_item_rounding_fix");A.itemStyle="small-item";return A};
_.R(JA,_.F);JA.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var A,t,f,X,Q=(t=_.C((A=this.data)==null?void 0:A.buttonCommand,_.L1k))==null?void 0:(f=t.item)==null?void 0:(X=f.notificationTextRenderer)==null?void 0:X.successResponseText;Q&&_.NXb(this.hostElement,Q)}};
_.PV.Object.defineProperties(JA.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:A.isProductPlaceholder)!==void 0&&((t=this.data)==null?void 0:t.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],JA.prototype,"roundedFix",void 0);_.V([_.n(),_.H("design:type",Object)],JA.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],JA.prototype,"itemStyle",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],JA.prototype,"hasPrice",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],JA.prototype,"hasPriceReplacementText",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],JA.prototype,"hasAdditionalFeesText",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],JA.prototype,"hasAffiliateDisclaimer",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],JA.prototype,"isProductPlaceholder",null);
_.V([_.n(),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],JA.prototype,"hideOpenInNewIcon",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],JA.prototype,"ariaLabel",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],JA);
_.Y(JA,"ytd-merch-shelf-item-renderer",function(){if(mop!==void 0)return mop;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return mop=A},{mode:1});_.Hn(_.I(function(A){return _.u("button-card-view-model",{el:_.ZY(_.W1(function(){return A.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return A.data().title},
role:"button"},_.u(_.WS,{model:{}}),_.u("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.u("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.u(_.P,{cond:function(){return A.data().image},
then:function(t){return _.u(_.YA,{data:t,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.u("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return A.data().title})))},"bc"),"button-card-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){A=_.Sv(A,{className:void 0});var t=A.data;A=A.className;var f=_.yq(function(){return t().onTapCommand},void 0,"SXkP9e");
return _.u("ytd-shopping-item-card",{class:_.Ao("ytdShoppingItemCardHost",A)},_.u(_.bc,{command:f,className:"ytdShoppingItemCardHostLink"},_.u("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.u(_.P1,{data:function(){return t().thumbnailViewModel}},{thumbnailViewModel:function(X){return _.u(_.vM,{data:X.data,
aspectRatio:3})}})),_.u("div",null,_.u("p",{class:"ytdShoppingItemCardHostItemTitle"},_.u(_.zL,{text:function(){return t().itemTitle}})),_.u("p",{class:"ytdShoppingItemCardHostPrice"},_.u(_.zL,{text:function(){return t().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.PS,
className:_.PS}});var b5S={isAdsVideo:!0},WYp={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},y6T={showPlayerControls:!1,videoPreviewDurationMs:15E3},vrl={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},LY8={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var Yu=null,umg={};var TXx="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(" "),Uh={},iox=(Uh.FEwhat_to_watch="home",Uh.FEhashtag="hashtag",Uh.FEtrending="trending",Uh.FEhistory="history",Uh.SPunlimited="premium",Uh.FEmemberships_and_purchases="paid_memberships",Uh.SPredeem_code="redeem",Uh.SPverify_location="locate",Uh.SPminor_moment="minor_moment",
Uh.FEmini_app_container="mini_app",Uh.FEnews_destination="news",Uh.SPopen_in_app="open_in_app",Uh.FEexplore="explore",Uh.FEsubscriptions="subscriptions",Uh.FEsfv_audio_pivot="sfv_audio_pivot",Uh.FEplaylist_aggregation="playlist_aggregation",Uh);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");_.ff("init");var p8T=function(){},FYp=_.I(function(A){var t=A.data;
var f=A.inlineMetadata;var X=A.aspectRatio;var Q=A.scrimStyle;var q=A.className;var e=A.useDefaultStyle;var G=A.titleStyle;var N=new p8T,z=_.M("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",T=_.yq(function(){return(e==null?0:e())?z==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),O=_.yq(function(){return _.$f(f)||T()||!1},void 0,"SEL6Qd"),c=function(){return(Q==null?void 0:Q())!==void 0?Q==null?void 0:Q():1},
B=_.yq(function(){return t().belowThumbnailMetadata||!O()},void 0,"KAqk1b");
A=_.OI({visibilityCallback:function(Gz){var Tz=t().onFirstVisible;Gz&&Tz&&_.LI(Tz)},
showOption:{calledOnce:!0,state:"visible"}});var h=_.ZY(),W={},L=_.Ao(function(){return T(),"shortsLockupViewModelHostThumbnailContainer"},(W.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.$f(X)===1},W.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.$f(X)===2},W.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.M("web_shorts_2_by_3_lockups_study")&&!_.M("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
W)),E=_.yq(function(){if(_.$f(X)===1)return 1;
_.$f(X);return 2},void 0,"Bg5Es"),D,S=function(){if(N){var Gz;
(Gz=D)==null||$Y(Gz);var Tz;if(N.hostElement&&((Tz=N.data)==null?0:Tz.inlinePlayerData)){var y5,cp;Gz=((y5=N.data)==null?0:(cp=y5.inlinePlayerData)==null?0:cp.enableAudioControl)?Object.assign({},LY8):Object.assign({},vrl);var iu,Fb;((iu=N.data)==null?void 0:(Fb=iu.inlinePlayerData)==null?void 0:Fb.maxPlaybackLengthSec)!==void 0&&(Gz.videoPreviewDurationMs=N.data.inlinePlayerData.maxPlaybackLengthSec*1E3);D=LW({mediaRenderer:N,lockupElement:N.hostElement,thumbnailElement:h.value,videoPreviewOpts:Gz})}}};
_.oo(function(){N&&(N.data=t(),S())},"wo9C7e");
var Z=_.yq(function(){return t().thumbnail},void 0,"haijYd");
W=_.yq(function(){return t().badge},void 0,"RpDeSe");
var d=_.yq(function(){return t().onTap},void 0,"hOfuOb"),K={},k={};
return _.u("ytm-shorts-lockup-view-model",{el:_.ZY(function(Gz){N&&(N.hostElement=Gz)},S,A),
class:_.Ao("shortsLockupViewModelHost",q)},_.u(_.Tw,null,_.u(_.bc,{command:d,className:_.Ao("shortsLockupViewModelHostEndpoint",(K.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!B()},K),"reel-item-endpoint",""),
ariaHidden:function(){return!O()},
tabIndex:function(){return O()?0:-1}},_.u("div",{el:h,
class:_.Ao("shortsLockupViewModelHostThumbnailParentContainer",(k.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!T()},k))},_.u(_.P,{cond:Z,
then:function(){return _.u("div",{class:L},_.u(_.YA,{data:function(){var Gz;return(Gz=Z==null?void 0:Z())!=null?Gz:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.u(_.P1,{data:function(){return t().thumbnailViewModel}},{thumbnailViewModel:function(Gz){return _.u(_.vM,{data:Gz.data,
aspectRatio:function(){return E()},
disableRounding:function(){return T()}})}}),null),_.u(_.P,{cond:O,
then:function(){return _.u(Erf,{data:t,scrimStyle:c,useDefaultStyle:e,titleStyle:G})}}),_.u(_.P1,{data:W},{badgeViewModel:function(Gz){return _.u(_.Cj,{data:Gz.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.u(_.P,{cond:function(){return O()&&t().menuOnTap},
then:function(){return _.u(nrp,{data:t,inlineMetadata:!0})}}),_.u(_.P,{cond:B,
then:function(){return _.u(Do8,{data:t,useDefaultStyle:e,inlineMetadata:O})}})))},"ec"),Erf=_.I(function(A){var t=A.data;
var f=A.scrimStyle;var X=A.useDefaultStyle;var Q=A.titleStyle;var q=_.M("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",e=X&&_.M("web_hide_primary_text_for_pivot_panel"),G=_.yq(function(){return(X==null?0:X())?q==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
A={};A=_.Ao("shortsLockupViewModelHostInlineMetadata",(A.shortsLockupViewModelHostMetadataRounded=function(){return!G()},A.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(f==null?void 0:f())===3&&!_.M("enable_shorts_lockup_new_scrim")},A.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(f==null?void 0:f())===3&&_.M("enable_shorts_lockup_new_scrim")},A.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(f==null?void 0:f())===2||(f==null?void 0:
f())===4},A.shortsLockupViewModelHostShowOverPlayer=function(){return!0},A),"image-overlay-text");
var N={};return _.u("div",{class:A},_.u("h3",{class:_.Ao("shortsLockupViewModelHostMetadataTitle",(N.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(f==null?void 0:f())===4},N.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return t().belowThumbnailMetadata},N.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(Q==null?void 0:Q())===1},N.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(Q==null?void 0:Q())===2},N)),
"aria-label":function(){return t().accessibilityText}},_.u(_.P,{cond:function(){var z;
return!((z=t().overlayMetadata)==null||!z.primaryText)&&!e},
then:function(){return _.u(_.zL,{text:function(){var z;return(z=t().overlayMetadata)==null?void 0:z.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.u(_.P,{cond:function(){var z;
return(z=t().overlayMetadata)==null?void 0:z.secondaryText},
then:function(){return _.u(IRw,{data:t,scrimStyle:f,className:void 0})}}))},"fc"),Do8=_.I(function(A){var t=A.data;
var f=A.useDefaultStyle;var X=A.inlineMetadata;var Q=_.M("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",q=_.yq(function(){return(f==null?0:f())?Q==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),e=_.ZY(),G;
A=_.f1(function(B){if(_.Rv(_.hE(B),e.value,["AVATAR-VIEW-MODEL"]))return!1;var h;(h=G)==null||h.click();return!1});
var N=_.yq(function(){return t().belowThumbnailMetadata||t().overlayMetadata},void 0,"GwezKf"),z=function(){return t().menuOnTap&&!X()},T=function(){var B;
return(B=N())==null?void 0:B.avatar},O={},c={};
return _.u("div",{class:_.Ao(function(){return q()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(O.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!T()},O.shortsLockupViewModelHostOutsideMetadataHasMenu=z,O)),
"on:click":A,el:e,role:"presentation"},_.u(_.P1,{data:T},{avatarViewModel:function(B){return _.u(_.QK,{data:B.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.u("div",null,_.u("h3",{class:_.Ao("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(c.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var B,h;
return!((B=N())==null?0:(h=B.primaryText)==null?0:h.content)},c.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=X,c)),
role:"presentation"},_.u(_.bc,{ref:function(B){return void(G=B)},
command:function(){return t().onTap},
className:_.Ao("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var B,h;return(B=N())==null?void 0:(h=B.primaryText)==null?void 0:h.content},
"aria-label":function(){return t().accessibilityText}},_.u(_.P,{cond:function(){var B;
return(B=N())==null?void 0:B.primaryText},
then:function(B){return _.u(_.zL,{text:B,noEndpoints:!0,noStyleRuns:!0})}}))),_.u(_.P,{cond:function(){var B;
return(B=N())==null?void 0:B.secondaryText},
then:function(B){return _.u("div",{class:_.Ao("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.u(_.zL,{text:B,noStyleRuns:!0}))}})),_.u(_.P,{cond:z,
then:function(){return _.u(nrp,{data:t,inlineMetadata:!1})}}))},"gc"),IRw=_.I(function(A){var t=A.data;
var f=A.scrimStyle;A=A.className;var X={};return _.u("div",{class:_.Ao((X.shortsLockupViewModelHostMetadataSubhead=function(){return(f==null?void 0:f())!==4},X.shortsLockupViewModelHostMetadataSubheadNew=_.M("enable_shorts_lockup_new_scrim"),X.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(f==null?void 0:f())===4},X),A),
"aria-hidden":"true"},_.u(_.zL,{text:function(){var Q;return(Q=t().overlayMetadata)==null?void 0:Q.secondaryText},
noStyleRuns:!0}))},"hc"),nrp=_.I(function(A){var t=A.data;
var f=A.inlineMetadata;A={};A=_.Ao((A.shortsLockupViewModelHostInlineMetadataMenu=function(){return f()},A.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!f()},A.shortsLockupViewModelHostShowOverPlayer=function(){return!0},A),"image-overlay-text");
return _.u("div",{class:A},_.u(_.Lx,{data:function(){return{style:f()?"overlay":"mono",accessibilityLabel:t().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(X){X.preventDefault();X.stopPropagation();var Q=_.yx({elementsCommand:t().menuOnTap,forceNewState:!0});if(Q==null?0:Q.onclick)Q.onclick(X)}}},
iconName:"MORE_VERT"}))},"ic");var xol=_.I(function(A){var t=A.data;var f=A.inlineMetadata;var X=A.aspectRatio;var Q=A.scrimStyle;var q=A.className;var e=A.useDefaultStyle;A=_.yq(function(){var G=t().entityId;return G?G.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.u("ytm-shorts-lockup-view-model-v2",{class:_.Ao("shortsLockupViewModelHost",q)},_.u(_.IS,{contentId:A,aspectRatio:function(){return(X==null?void 0:X())===1?1:(X==null?void 0:X())===2?2:4}},function(){return _.u(FYp,{data:t,
inlineMetadata:f,aspectRatio:X,scrimStyle:Q,className:q,useDefaultStyle:e})}))},"jc");_.Hn(xol,"ytm-shorts-lockup-view-model-v2",{props:{data:_.dt,inlineMetadata:_.dt,aspectRatio:_.dt,scrimStyle:_.dt,className:_.dt,useDefaultStyle:_.dt,titleStyle:_.dt}});var jtb=16/9*210,e1=function(){var A=_.F.apply(this,arguments)||this;A.isExpandableContent=!1;A.hideShelfHeader=!1;A.engagementPanel=!1;A.buttonClasses=["arrow"];A.isSearch=!1;A.disableScrollEventListener=!1;A.containsLockup=!1;A.overrideArrowPositionForProductCard=!1;A.overrideArrowPositionForShoppingItemCard=!1;A.overrideArrowPositionForReelItems=!1;A.overrideArrowPositionForGridMovie=!1;A.overrideArrowPositionToCenter=!1;A.isSearchPostShelf=!1;A.overrideArrowPositionForMixedShelf=!1;A.overrideArrowPositionForMixedShelfShortsOnly=
!1;A.hasBigThumbsReelItems=!1;A.shouldUseMixedListHeight=!1;A.shouldUseShortsListHeight=!1;A.gridVideoWidth=0;A.isSearchVodShelf=!1;A.disableWheelScroll=!1;A.sizing="COMPACT";A.shortsLockupAspectRatio=0;return A};
_.R(e1,_.F);_.J=e1.prototype;
_.J.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]]"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.M("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.J.computeInitialCountNumber=function(A){if(!A)return 6;var t=A.items.some(function(q){return!!q.topicRecommendationsChipRenderer}),f=A.items.some(function(q){return!!q.displayAdRenderer}),X=this.computeShouldListItemsHaveEqualHeight(A),Q=A.items.some(function(q){return!!q.gridPlaylistRenderer});
A=A.items.some(function(q){return!!q.shoppingItemCardViewModel});
return t?9:f?8:Q||X?10:A?7:6};
_.J.computeContainsPost=function(A){return!!A&&!!A.items&&A.items.some(function(t){return!!t.postRenderer})};
_.J.computeContainsLockup=function(){if(_.M("web_horizontal_list_lockup_arrow_killswitch"))return!1;var A,t;return(A=this.data)==null?void 0:(t=A.items)==null?void 0:t.some(function(f){return!!f.lockupViewModel})};
_.J.maybeUpdateLockupAspectRatio=function(){var A,t;if(this.computeContainsLockup()&&((A=this.data)==null?0:(t=A.items)==null?0:t.length)){var f;A=Vz5((f=this.data.items[0].lockupViewModel)==null?void 0:f.contentType,this.data.force16By9ThumbnailAspectRatio);f=YCx(A);f=this.computeLockupWidth()/f;_.Q_(this.hostElement,{"--yt-horizontal-list-content-height":f+"px"})}};
_.J.computeOverrideArrowPositionForProductCard=function(A){if(this.isExpandableContent)return!1;var t;return!!(A==null?0:(t=A.items)==null?0:t.some(function(f){return!!f.verticalProductCardRenderer}))};
_.J.computeOverrideArrowPositionForShoppingItemCard=function(A){var t;return!!(A==null?0:(t=A.items)==null?0:t.some(function(f){return!!f.shoppingItemCardViewModel}))};
_.J.computeOverrideArrowPositionForReelItemRenderer=function(A){return this.containsReelItemRenderer(A)};
_.J.computeHasBigThumbsReelItems=function(A,t){return A&&this.containsReelItemRenderer(t)};
_.J.computeShouldListItemsHaveEqualHeight=function(A){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(A==null?void 0:A.itemSizeConstraint)};
_.J.computeShouldListItemsHaveShortsHeight=function(A){return this.computeShouldListItemsHaveEqualHeight(A)&&!this.containsGridVideoRenderer(A)};
_.J.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.J.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.J.containsReelItemRenderer=function(A){var t;return!!(A==null?0:(t=A.items)==null?0:t.some(function(f){return!(!f.reelItemRenderer&&!f.shortsLockupViewModel)}))};
_.J.containsGridVideoRenderer=function(A){var t;return!!(A==null?0:(t=A.items)==null?0:t.some(function(f){return!!f.gridVideoRenderer||!!f.lockupViewModel}))};
_.J.computeContainsGridMovieRenderer=function(A){var t;return!!(A==null?0:(t=A.items)==null?0:t.some(function(f){return!!f.gridMovieRenderer}))};
_.J.computeOverrideArrowPositionToCenter=function(A){return this.computeIsSearchPostShelf(A)};
_.J.computeIsSearchPostShelf=function(A){var t;return!!(A==null?0:(t=A.items)==null?0:t.some(function(f){var X,Q;return((Q=(X=f.postRenderer)==null?void 0:X.surface)!=null?Q:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.J.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(A){var t;return!!(A==null?0:(t=A.items)==null?0:t.some(function(f){var X,Q,q;return((q=(X=f.backgroundPromoRenderer)==null?void 0:(Q=X.style)==null?void 0:Q.value)!=null?q:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.J.computeIsSearchVodShelf=function(A,t){return A&&this.containsGridVideoRenderer(t)};
_.J.computeDisableWheelScroll=function(A,t){return this.computeIsSearchVodShelf(A,t)};
_.J.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.J.computeShortsLockupAspectRatio=function(){return 1};
_.J.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Q_(this.hostElement,{"--ytd-reel-item-thumbnail-height":jtb+"px"})};
e1.prototype.dataChanged=e1.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.W7.YtdHorizontalListBehavior),_.H("design:type",Object)],e1.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],e1.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],e1.prototype,"isExpandableContent",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"hideShelfHeader",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"engagementPanel",void 0);_.V([_.n(),_.H("design:type",Array)],e1.prototype,"buttonClasses",void 0);_.V([_.n(),_.H("design:type",Object)],e1.prototype,"isSearch",void 0);
_.V([_.n(),_.H("design:type",Object)],e1.prototype,"disableScrollEventListener",void 0);_.V([_.n({computed:"computeInitialCountNumber(data)"}),_.H("design:type",Number)],e1.prototype,"initialCount",void 0);_.V([_.n({computed:"computeContainsPost(data)"}),_.H("design:type",Boolean)],e1.prototype,"supportComponentResize",void 0);_.V([_.n({computed:"computeContainsPost(data)"}),_.H("design:type",Boolean)],e1.prototype,"containsPost",void 0);
_.V([_.n({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"containsLockup",void 0);_.V([_.n({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],e1.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.V([_.n({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"overrideArrowPositionForProductCard",void 0);_.V([_.n({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.V([_.n({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"overrideArrowPositionForReelItems",void 0);_.V([_.n({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"overrideArrowPositionForGridMovie",void 0);
_.V([_.n({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"overrideArrowPositionToCenter",void 0);_.V([_.n({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"isSearchPostShelf",void 0);_.V([_.n({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.V([_.n({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.V([_.n({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"hasBigThumbsReelItems",void 0);
_.V([_.n({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"shouldUseMixedListHeight",void 0);_.V([_.n({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"shouldUseShortsListHeight",void 0);_.V([_.n({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"gridVideoWidth",void 0);
_.V([_.n({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"isSearchVodShelf",void 0);_.V([_.n({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.H("design:type",Object)],e1.prototype,"disableWheelScroll",void 0);_.V([_.n({computed:"computeSizing(isSearch)"}),_.H("design:type",Object)],e1.prototype,"sizing",void 0);
_.V([_.n({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.H("design:type",Object)],e1.prototype,"shortsLockupAspectRatio",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e1.prototype,"dataChanged",null);
_.Y(e1,"yt-horizontal-list-renderer",function(){if(jES===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);jES=A}A=jES;return A},{mode:1});var YZw=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
YZw.prototype.subscribe=function(A,t){var f=this.subscriptions.get(A);if(!f)return function(){};
f.add(t);return function(){f.delete(t)}};
YZw.prototype.unsubscribe=function(A,t){(A=this.subscriptions.get(A))&&A.delete(t)};
YZw.prototype.publish=function(A,t){t=t===void 0?{}:t;(A=this.subscriptions.get(A))&&A.forEach(function(f){f(t)})};var Vw7;var Z5p=[10,12,14,16,18,20,24,28,32,36],orE=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Gu=function(){var A=_.F.apply(this,arguments)||this;A.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";A.hideOverflow=!1;A.useRoboto=!1;A.fontClass="";A.overflown=!1;A.actionMap={"yt-window-resized":"resize"};return A};
_.R(Gu,_.F);_.J=Gu.prototype;
_.J.attached=function(){var A=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();_.us(this,function(){A.resize()});
if(!_.XG){var t,f,X;(t=document)==null||(f=t.fonts)==null||(X=f.ready)==null||X.then(function(){A.resize()})}};
_.J.dataChanged=function(){this.resize()};
_.J.guideIsExpandedChanged=function(){this.resize()};
_.J.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 A=this.getMaxNumLines(),t=this.getMinFont(),f=this.getMaxFont(),X=this.useRoboto?Z5p:orE;for(X=X.filter(function(q){return q<=f&&q>=t});X.length>1;){var Q=Math.floor(X.length/2);
this.updateFontSize(X[Q]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=A)X=X.slice(Q,X.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>A)X=X.slice(0,Q);else break}this.updateFontSize(X[X.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(A)}};
_.J.handleOverflow=function(A){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>A&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",A.toString()))};
_.J.updateFontSize=function(A){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+A;this.textNode.classList.add(this.fontClass)};
_.J.getMaxFont=function(){var A=this.useRoboto?Z5p:orE;A=A[A.length-1];return this.maxFontSize&&this.maxFontSize<=A?this.maxFontSize:A};
_.J.getMinFont=function(){var A=(this.useRoboto?Z5p:orE)[0];return this.minFontSize&&this.minFontSize>=A?this.minFontSize:A};
_.J.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.J.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.J.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.dF(this.text).split("\n").length-1:Infinity};
_.J.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("Kh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Gu.prototype.guideIsExpandedChanged=Gu.prototype.guideIsExpandedChanged;Gu.prototype.dataChanged=Gu.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Gu.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Gu.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Gu.prototype,"text",void 0);
_.V([_.n(),_.H("design:type",String)],Gu.prototype,"fontFamily",void 0);_.V([_.n(),_.H("design:type",Number)],Gu.prototype,"maxWidth",void 0);_.V([_.n(),_.H("design:type",Number)],Gu.prototype,"maxHeight",void 0);_.V([_.n(),_.H("design:type",Number)],Gu.prototype,"maxFontSize",void 0);_.V([_.n(),_.H("design:type",Number)],Gu.prototype,"minFontSize",void 0);_.V([_.n(),_.H("design:type",Number)],Gu.prototype,"maxLines",void 0);_.V([_.n(),_.H("design:type",Object)],Gu.prototype,"hideOverflow",void 0);
_.V([_.n({selector:_.vaq}),_.H("design:type",Boolean)],Gu.prototype,"guideIsExpanded",void 0);_.V([_.lo("#container"),_.H("design:type",HTMLElement)],Gu.prototype,"containerNode",void 0);_.V([_.lo("#text"),_.H("design:type",HTMLElement)],Gu.prototype,"textNode",void 0);_.V([_.PU("text"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gu.prototype,"dataChanged",null);
_.V([_.PU("guideIsExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Gu.prototype,"guideIsExpandedChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Gu);
_.Y(Gu,"yt-dynamic-sizing-formatted-string",function(){if(Vw7!==void 0)return Vw7;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Vw7=A},{mode:1});var dok;_.SZT=function(A){_.Ab.call(this,A)};
_.R(_.SZT,_.Ab);var $oS=function(A){_.Ab.call(this,A)};
_.R($oS,_.SZT);var lb=function(){return _.F.apply(this,arguments)||this};
_.R(lb,_.F);lb.prototype.onTapSuspendedChannel=function(){var A;if((A=this.data)!=null&&A.serviceEndpoint){var t,f;(A=(f=_.C((t=this.data)==null?void 0:t.serviceEndpoint,_.fV))==null?void 0:f.url)?_.pp(A,void 0,void 0,window.top):(t=new $oS("Did not handle suspended account tap. No appealUrl."),_.HQ(t))}else t=new $oS("Did not handle suspended account tap. No serviceEndpoint."),_.HQ(t)};
lb.prototype.onTap=function(){var A=this,t=_.er(),f,X=(f=_.UX(t,{veType:7116}))!=null?f:void 0;_.FR(t,{visualElement:X});_.vi();this.saveRoleText();var Q;if((Q=this.data)==null?0:Q.youtubeSuspended)this.onTapSuspendedChannel();else{var q=!1,e,G;(t=(G=_.C((e=this.data)==null?void 0:e.serviceEndpoint,_.jHf))==null?void 0:G.supportedTokens)&&t.forEach(function(N){if(N.accountSigninToken)if(q=!0,A.onAccountItemTap)A.onAccountItemTap(N.accountSigninToken.signinUrl);else _.pp(N.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!q){if(e=this.get("serviceEndpoint",this.data))q=!0,this.ytComponentBehavior.resolveCommand(e);q||_.ai(new $oS("Did not handle account switch tap. No token."))}}};
lb.prototype.saveRoleText=function(){if(this.data){var A=this.data,t=A.channelDelegationRole;if(t){var f,X=(f=_.C(A==null?void 0:A.serviceEndpoint,_.jHf))==null?void 0:f.supportedTokens;if(!X){var Q,q,e,G;X=(Q=_.C(A==null?void 0:A.serviceEndpoint,_.$4))==null?void 0:(q=Q.popup)==null?void 0:(e=q.confirmDialogRenderer)==null?void 0:(G=e.confirmButton)==null?void 0:G.buttonRenderer;var N;X=(N=_.C(X==null?void 0:X.command,_.Xd))==null?void 0:N.commands;if(!X)return;var z;X=(z=_.C(X[1],_.jHf))==null?
void 0:z.supportedTokens}if(X){N=void 0;z=_.U(X);for(X=z.next();!X.done;X=z.next())if(X=X.value,X.datasyncIdToken){N=X.datasyncIdToken.datasyncIdToken;break}if(N){var T;a:{if(_.obu()&&(z=_.oj(N+"::pom"))){z=new da(z);break a}z=void 0}(T=z)==null||T.set("role_text",t);if((t1T?t1T:window.location).href.indexOf("studio")!==-1&&(T=dMg())){z=T.src?(new URL(T.src)).origin:"*";var O;(O=T.contentWindow)==null||O.postMessage({action:"save_pom_role",datasyncId:N,roleText:t},z)}}}}}};
_.PV.Object.defineProperties(lb.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(A=this.data)==null?void 0:(t=A.accountPhoto)==null?void 0:t.thumbnails;return f&&f.length>0&&(f[0].height===36||f[0].height===48)?f[0].height:40}}});
lb.prototype.onTap=lb.prototype.onTap;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],lb.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],lb.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!1}),_.H("design:type",Function)],lb.prototype,"onAccountItemTap",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lb.prototype,"enableRingForActiveAccount",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],lb.prototype,"thumbnailSize",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lb.prototype,"onTap",null);_.V([_.y_({is:"ytd-account-item-renderer",disableElementRegistration:!0})],lb);
_.Y(lb,"ytd-account-item-renderer",function(){if(dok!==void 0)return dok;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return dok=A},{mode:1});var H5K;var NK=function(){return _.F.apply(this,arguments)||this};
_.R(NK,_.F);NK.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.Px().resolve(_.i2).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],NK.prototype,"data",void 0);_.V([_.y_({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],NK);
_.Y(NK,"ytd-identity-chip-renderer",function(){if(H5K!==void 0)return H5K;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return H5K=A},{mode:1});var aRl;var KYK;var grp;var w8p;var ub=function(){var A=_.F.apply(this,arguments)||this;A.richItemMinWidth=_.cx("wn_grid_min_item_width",310);A.isShorts=!1;A.isWatchNext=!1;A.isExploreHub=!1;return A};
_.R(ub,_.F);_.PV.Object.defineProperties(ub.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var A=[],t=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Q_(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var f;if(((f=this.data)==null?0:f.rows)&&t)for(t*=this.data.rows,f=0;f<t;f++)A.push({});return A}}});
_.V([_.b(_.qT),_.H("design:type",Object)],ub.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ub.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.b$,value:3}),_.H("design:type",Number)],ub.prototype,"itemsPerRow",void 0);_.V([_.n({selector:_.ya5,value:6}),_.H("design:type",Number)],ub.prototype,"slimItemsPerRow",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Number)],ub.prototype,"richItemMinWidth",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],ub.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ub.prototype,"isShorts",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ub.prototype,"isWatchNext",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ub.prototype,"isExploreHub",void 0);
_.V([_.y("isExploreHub"),_.n({reflectToAttribute:!0}),_.H("design:type",Object),_.H("design:paramtypes",[])],ub.prototype,"shimmerAnimation",null);_.V([_.y("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.H("design:type",Array),_.H("design:paramtypes",[])],ub.prototype,"cardItems",null);_.V([_.y_({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],ub);
_.stK=_.wR()(ub,"ytd-ghost-grid-renderer",function(){if(w8p===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);w8p=A}A=w8p;return A},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Hn(_.I(function(A){var t=_.Sv(A,{numberOfComments:3}).numberOfComments,f=_.Sv(A,{isInitialLoad:!1}).isInitialLoad,X=_.Sv(A,{engagementPanel:!1}).engagementPanel,Q=function(){return Math.min(Number(t==null?void 0:t())||20,20)};
return _.u("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.u(_.P,{cond:function(){return!(X==null?0:X())&&(f==null?void 0:f())},
then:function(){return _.u("div",{class:"ytGhostCommentsComments"},_.u("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.u("div",{class:_.Ao("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.u("div",{class:_.Ao("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.u("div",{class:"ytGhostCommentsGhostCard"},_.u("div",{class:"ytGhostCommentsAvatar"},_.u("div",{class:"ytGhostCommentsCircle"})),_.u("div",{class:"ytGhostCommentsComments"},_.u("div",{class:"ytGhostCommentsMeta"},
_.u("div",{class:_.Ao("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.u("div",{class:_.Ao("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.u("div",{class:"ytGhostCommentsComments"},_.u(_.xk,{each:function(){return Array((Q==null?void 0:Q())||3)}},function(){return _.u("div",{class:"ytGhostCommentsGhostCard"},_.u("div",{class:"ytGhostCommentsAvatar"},_.u("div",{class:"ytGhostCommentsCircle"})),_.u("div",{class:"ytGhostCommentsHost"},_.u("div",{class:"ytGhostCommentsMeta"},
_.u("div",{class:_.Ao("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.u("div",{class:_.Ao("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:_.Ao("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:"ytGhostCommentsGhostLikeDislike"},_.u("div",{class:_.Ao("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.u("div",{class:_.Ao("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.PS,
isInitialLoad:_.PS,engagementPanel:_.PS},unsafeExternallySettableAttributes:new Set(["hidden"])});_.C1("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var zu=function(){var A=_.F.apply(this,arguments)||this;A.isOverridable=!1;A.spinnerActive=!1;A.showButton=!1;A.isCommentsSection=!1;A.engagementPanel=!0;A.isShortsGrid=!1;A.isShortsPage=!1;A.isWatchPage=!1;A.originalShowButton=!1;A.endOfList=!1;return A};
_.R(zu,_.F);_.J=zu.prototype;_.J.resetIntersectionObserver=function(){var A;(A=this.observer)==null||A.disconnect();this.observer=void 0};
_.J.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var A,t;((A=this.data)==null?void 0:A.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((t=this.data)==null?0:t.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.J.initializeIntersectionObserver=function(){var A=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(t){t=_.U(t);for(var f=t.next();!f.done;f=t.next())f.value.isIntersecting&&(A.triggerContinuation(),A.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.J.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{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]]"}}}}}};
_.J.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var A;((A=this.data)==null?0:A.continuationEndpoint)&&(A=_.C(this.data.continuationEndpoint,_.L1))&&this.ytdReduxBehavior.dispatch(_.r0({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:A}}))};
_.J.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.J.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.J.onServiceRequestCompleted=function(A,t){if(!_.M("kevlar_hide_spinner_on_empty_continuation_killswitch")){var f;(f=t.actions)!=null&&f.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.J.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.J.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.J.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.J.numberOfGhostCommentsChanged=function(){var A=3;if(this.engagementPanel){var t,f,X;A=Math.floor(((((t=this.hostElement)==null?void 0:(f=t.parentElement)==null?void 0:(X=f.parentElement)==null?void 0:X.scrollHeight)||108)-108)/108);A=this.isInitialLoad?Math.max(A,3):3}t=[].concat(_.YV(this.hostElement.querySelectorAll("yt-ghost-comments")));t=_.U(t);for(f=t.next();!f.done;f=t.next())f=f.value,f.numberOfComments=A,f.isInitialLoad=this.isInitialLoad,f.engagementPanel=this.engagementPanel};
_.J.detached=function(){this.resetIntersectionObserver()};
_.PV.Object.defineProperties(zu.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
zu.prototype.numberOfGhostCommentsChanged=zu.prototype.numberOfGhostCommentsChanged;zu.prototype.continuationTriggerOffsetChanged=zu.prototype.continuationTriggerOffsetChanged;zu.prototype.showButtonChanged=zu.prototype.showButtonChanged;zu.prototype.onYtServiceRequestCompletedForButtonRenderer=zu.prototype.onYtServiceRequestCompletedForButtonRenderer;zu.prototype.onServiceRequestCompleted=zu.prototype.onServiceRequestCompleted;zu.prototype.onYtServiceRequestSentForButtonRenderer=zu.prototype.onYtServiceRequestSentForButtonRenderer;
zu.prototype.observeData=zu.prototype.observeData;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.GL.YtVisibilityBehavior),_.H("design:type",Object)],zu.prototype,"ytVisibilityBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],zu.prototype,"ytComponentBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],zu.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],zu.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],zu.prototype,"isOverridable",void 0);_.V([_.n(),_.H("design:type",Object)],zu.prototype,"spinnerActive",void 0);_.V([_.n(),_.H("design:type",Object)],zu.prototype,"showButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],zu.prototype,"isCommentsSection",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],zu.prototype,"engagementPanel",void 0);_.V([_.n(),_.H("design:type",Object)],zu.prototype,"isShortsGrid",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.Eag}),_.H("design:type",Object)],zu.prototype,"isShortsPage",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.pS5}),_.H("design:type",Object)],zu.prototype,"isWatchPage",void 0);_.V([_.n(),_.H("design:type",Number)],zu.prototype,"continuationTriggerOffset",void 0);
_.V([_.n(),_.H("design:type",Object)],zu.prototype,"endOfList",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],zu.prototype,"isInitialLoad",void 0);_.V([_.lo("ytd-button-renderer"),_.H("design:type",_.bw)],zu.prototype,"buttonRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],zu.prototype,"buttonOverrides",void 0);
_.V([_.n(),_.y("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.H("design:type",Object),_.H("design:paramtypes",[])],zu.prototype,"showGhostCardComments",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zu.prototype,"observeData",null);
_.V([_.UQ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zu.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],zu.prototype,"onServiceRequestCompleted",null);
_.V([_.UQ("yt-service-request-completed-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zu.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.V([_.PU("showButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zu.prototype,"showButtonChanged",null);
_.V([_.PU("continuationTriggerOffset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zu.prototype,"continuationTriggerOffsetChanged",null);_.V([_.ev("isInitialLoad","engagementPanel"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zu.prototype,"numberOfGhostCommentsChanged",null);_.V([_.y_({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],zu);
_.Y(zu,"ytd-continuation-item-renderer",function(){if(grp!==void 0)return grp;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return grp=A},{mode:1});var kPE;var Pa=function(){var A=_.F.apply(this,arguments)||this;A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.downloadState="DOWNLOAD_STATE_UNKNOWN";A.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";A.offlineVideoPolicyExpirationTimestamp=0;A.downloadedVideoPlaybackPosition=0;return A};
_.R(Pa,_.F);Pa.prototype.dataChanged=function(){var A;this.videoData=_.C((A=this.data)==null?void 0:A.renderer,TNp);this.transferStateChanged()};
Pa.prototype.downloadProgressChanged=function(){if(this.entityInfo){var A=Object.assign({},this.videoData),t=Eol(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),f=t.publishedTimeText,X=t.badges;A.shortViewCountText=t.shortViewCountText;A.publishedTimeText=f;A.badges=X;this.set("videoData",A)}};
Pa.prototype.transferStateChanged=function(){if(this.entityInfo){var A=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",t=_.PE(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!z$(this.entityInfo.policyEntity),f=Object.assign({},this.videoData),X=Eol(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Q=X.publishedTimeText,q=X.badges;f.shortViewCountText=
X.shortViewCountText;f.publishedTimeText=Q;f.badges=q;f.isDisabled=t;f.isWatched=this.downloadedVideoPlaybackPosition>0;f.navigationEndpoint=t?void 0:nzz(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var e;A&&((e=this.videoData)==null?0:e.videoId)&&!_.M("dl_resume_click_killswitch")&&(f.isDisabled=!1,f.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});f.thumbnailOverlays=LUs(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",f)}};
Pa.prototype.transferStateChanged=Pa.prototype.transferStateChanged;Pa.prototype.downloadProgressChanged=Pa.prototype.downloadProgressChanged;Pa.prototype.dataChanged=Pa.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Pa.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Pa.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],Pa.prototype,"videoData",void 0);_.V([_.n({selector:Ep,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],Pa.prototype,"downloadProgress",void 0);_.V([_.n(),_.H("design:type",Number)],Pa.prototype,"relativeDateReference",void 0);_.V([_.n({selector:_.LZ,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],Pa.prototype,"transferState",void 0);
_.V([_.n({selector:kL0,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],Pa.prototype,"downloadState",void 0);_.V([_.n({selector:xX0,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],Pa.prototype,"offlinePolicyAction",void 0);_.V([_.n({selector:j4p,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],Pa.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.V([_.n({selector:nZ,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],Pa.prototype,"downloadedVideoPlaybackPosition",void 0);_.V([_.n({selector:VDx,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],Pa.prototype,"entityInfo",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Pa.prototype,"isDownloading",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pa.prototype,"dataChanged",null);
_.V([_.PU("downloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pa.prototype,"downloadProgressChanged",null);_.V([_.PU("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pa.prototype,"transferStateChanged",null);
_.V([_.y_({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Pa);
_.Y(Pa,"ytd-downloaded-video-grid-video-renderer",function(){if(kPE!==void 0)return kPE;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return kPE=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var r6T;var Tu=function(){};
Tu.prototype.resolve=function(A,t){var f=this;return _.l(function(X){return X.yield(f.resolveCommand(A,t),0)})};var Aj7,ib;Aj7=OCx(function(A){return A.targetId},{shouldPersist:!1});
ib=Aj7.updateData;_.txC=Aj7.useUpdatableData;var fjp,Xhl;fjp=OCx(function(A){return A.targetId});
Xhl=fjp.updateData;_.Qx7=fjp.useUpdatableData;var qo8=BXg.bind(null,ib),Jj8=BXg.bind(null,Xhl);(function(A,t,f){var X=_.C(f==null?void 0:f.updatedRenderer,_.HxE);return X?A({targetId:t},function(){return X}):!1}).bind(null,ib);var Oh=function(){};
_.R(Oh,Tu);Oh.prototype.resolveCommand=function(A){var t;return _.l(function(f){t=_.C(A,_.yig);if(!t)return f.return();qo8(t.targetId,t);_.LO(f)})};var ca=function(){var A=_.uo.apply(this,arguments)||this;A.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return A};
_.R(ca,_.uo);_.J=ca.prototype;_.J.configureContinuationPathMap=function(){return{}};
_.J.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.J.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.J.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.J.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.J.handleAppendContinuationItemsAction=function(A){var t=_.C(A,_.YUC);if(this.data&&this.data.targetId&&t&&this.continuationPathMap&&t.targetId===this.data.targetId){var f=Qvb(A),X=f&&this.continuationPathMap[f];if(X&&f)if(A=this.get(X,this.data)){a:{for(f=0;f<A.length;f++){var Q=A[f],q=void 0,e=!!_.C((q=_.C(Q,b98))==null?void 0:q.content,_.NNT);if(_.C(Q,_.H$)||e)break a}f=A.length}X="data."+X;t.continuationItems?f===A.length-1?(this.pop(X),this.push.apply(this,[X].concat(_.YV(t.continuationItems)))):
f===A.length?this.push.apply(this,[X].concat(_.YV(t.continuationItems))):this.splice.apply(this,[X,f,1].concat(_.YV(t.continuationItems))):this.splice(X,f,1);(_.M("web_enable_voting_animation")||_.M("enable_music_web_cairo_voting_animation"))&&_.s9(this.hostElement,"yt-append-continuation-items-action-finished");_.s9(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.K4(new _.xj("append continuation items does not exist",f));else _.K4(new _.xj("append continuation path does not exist",
f))}};
_.J.handleReloadContinuationItemsCommand=function(A){var t=_.C(A,_.yig);if(this.data&&t){if(_.M("web_client_explore_hub")||_.M("web_explore_hub_on_hover")||_.M("web_client_explore_hub_on_hover"))try{_.Px().resolve(Oh).resolveCommand(A)}catch(q){}if(this.data.targetId&&this.continuationPathMap&&t.targetId===this.data.targetId&&(!_.M("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||t.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var f,X=(f=t.slot)==null?void 0:
f.replace("RELOAD_CONTINUATION_SLOT_","");f=(A=Qvb(A)+"-"+(X==null?void 0:X.toLowerCase()))&&this.continuationPathMap[A];if(!f||!A||!X)_.K4(new _.xj("reload continuation path does not exist",A));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(t)){if(t.replaceWithFirstItem){var Q;this.set("data."+f,((Q=t.continuationItems)==null?0:Q.length)?t.continuationItems[0]:{})}else this.set("data."+f,t.continuationItems?t.continuationItems:[]);this.continuationIsReloading=
!1;_.s9(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.J.handleShowReloadUiCommand=function(A){A=_.C(A,A2E);var t;((t=this.data)==null?0:t.targetId)&&(A==null?0:A.targetId)&&A.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
ca.prototype.observeData=ca.prototype.observeData;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],ca.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ca.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ca.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],ca.prototype,"continuationIsReloading",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ca.prototype,"observeData",null);_.V([_.zh()],ca);_.Ba=[_.Ja.YtComponentBehavior,_.jD.YtActionHandlerBehavior,ca.prototype];_.MK={};_.MK.YtNextContinuationBehavior=[_.BS.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",_.JY(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.JY(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(A,t){A.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,t,{}):(A={locationRetrieved:function(f){this.makeNextContinuationRequest_(f,t,{})}.bind(this)},_.s9(this.hostElement,"yt-retrieve-location",A))},
makeNextContinuationRequest_:function(A,t,f){_.yg("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();A=t(A);var X;this.canUseContextualNetworkManager_()&&(X=this.getNetworkManager());X||(X=_.Px().resolve(_.TD));t=_.IM.instance;if(_.ah("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&t){X=_.HE([A.startsWith("/")?A.substr(1):A]);var Q,q;f=_.uE(t,{},X,f==null?void 0:(Q=f.context)==null?void 0:(q=Q.clickTracking)==null?void 0:q.clickTrackingParams).then(function(e){return{response:e}})}else f=
this.nextContinuation.usePost?X.postData(A,f):X.fetchData(A);
f.then(this.updateNextContinuationData_.bind(this,A));this.pendingContinuationRequest_=f;this.startListeningForNavigate_()},
updateNextContinuationData_:function(A,t){var f=this;_.yg("ncl");this.pendingContinuationRequest_=void 0;if(t){var X={};this.nextContinuation&&(X=this.nextContinuation);if(t.response&&t.response.continuationContents&&t.response.continuationContents[X.continuationType]){A=t.response.continuationContents[X.continuationType];var Q=X.header||"data.header",q=A[X.responseHeaderKey||"header"];q&&this.set(Q,q);Q=X.contentsArray||"data.contents";q=this.getContents_(A,X.responseContentsKey||"contents")||[];
this.pathExists_(Q)?(q.unshift(Q),this.push.apply(this,q)):this.set(Q,q);q&&(Mc0(_.er(),t.response,this.hostElement,function(e){_.kJ(f.hostElement,"yt-store-grafted-ve-action",[e])}),_.s9(this.hostElement,"yt-next-continuation-data-updated",{continuationData:t,
page:this,contentsArray:Q}));this.set(X.continuationsArray||"data.continuations",A[X.responseContinuationsKey||"continuations"]||[])}else t.reload?_.K4(new _.xj("Reloading from continuation is unsupported")):t.responseContext&&t.responseContext.errors||(delete t.xsrf_token,delete t.timing,delete t.endpoint,delete t.csn,t.responseContext&&delete t.responseContext.serviceTrackingParams,Q={request:_.Je(A,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(t).sort()},t.response&&(Q.responseContentKeys=
Object.keys(t.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Q.continuationType=this.nextContinuation.continuationType.substr(0,256)),t=new _.xj("Malformed continuation",Q),A.indexOf("/comment_service_ajax")==0?_.K4(t):_.HQ(t)),this.set(X.continuationsArray||"data.continuations",[])}else _.ai(new _.xj("Missing continuation response",A))},
getContents_:function(A,t){t=t.split(".");return _.VG.getValueByKeys(A,t)},
pathExists_:function(A){var t=this;A=A.toString().split(".");for(var f=0;f<A.length;f++)if(t=t[A[f]],t===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var UOf;var eUi;var Ch=function(){var A=_.F.apply(this,arguments)||this;A.triggered_=!1;return A};
_.R(Ch,_.F);_.J=Ch.prototype;_.J.attached=function(){this.maybeTriggerAutoload()};
_.J.detached=function(){this.hasBeenTriggered_=!1};
_.J.onPrescanVisible=function(){this.onShow()};
_.J.onShow=function(){this.showButton||this.trigger()};
_.J.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.s9(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.J.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.J.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.J.computeLabel_=function(A,t){return A===void 0?null:A.label||!t?A.label:this.showMoreText_};
_.J.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.J.getContinuationUrl=function(A){var t={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(t.itct=this.data.clickTrackingParams);return _.U0(A,t)};
_.J.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Ch.prototype.showButtonChanged_=Ch.prototype.showButtonChanged_;Ch.prototype.observeData_=Ch.prototype.observeData_;_.V([_.b(_.GL.YtVisibilityBehavior),_.H("design:type",Object)],Ch.prototype,"ytVisibilityBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ch.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Ch.prototype,"showButton",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],Ch.prototype,"showIcon",void 0);_.V([_.n({computed:"computeLabel_(data, showButton)"}),_.H("design:type",Object)],Ch.prototype,"label",void 0);_.V([_.n({value:_.oC(_.e5("SHOW_MORE",void 0,"Show More"))}),_.H("design:type",Object)],Ch.prototype,"showMoreText_",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Ch.prototype,"spinnerActive_",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Ch.prototype,"hasBeenTriggered_",void 0);
_.V([_.n({value:void 0}),_.H("design:type",String)],Ch.prototype,"observeVisibleOption",void 0);_.V([_.n({value:void 0}),_.H("design:type",String)],Ch.prototype,"observeHiddenOption",void 0);_.V([_.n({value:"observe_once"}),_.H("design:type",Object)],Ch.prototype,"observePrescanOption",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ch.prototype,"observeData_",null);
_.V([_.ev("showButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ch.prototype,"showButtonChanged_",null);_.V([_.WU({is:"yt-next-continuation",disableElementRegistration:!0})],Ch);
_.Y(Ch,"yt-next-continuation",function(){if(eUi===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;UOf===void 0&&(UOf=document.createElement("template"));var X=UOf;f.call(t,X.content.cloneNode(!0),A.content.firstChild);eUi=A}A=eUi;return A},{mode:2});var G2w;var ljp;var hA=function(){return _.F.apply(this,arguments)||this};
_.R(hA,_.F);hA.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],hA.prototype,"data",void 0);_.V([_.WU({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],hA);
_.Y(hA,"yt-music-pass-small-feature-info-renderer",function(){if(ljp===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;G2w===void 0&&(G2w=document.createElement("template"));var X=G2w;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ljp=A}A=ljp;return A},{mode:2});_.C1("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var RB=function(){var A=_.F.apply(this,arguments)||this;A.isCollapsible=!1;A.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return A};
_.R(RB,_.F);_.J=RB.prototype;_.J.computeIsCollapsible=function(A){return!!(((A==null?0:A.showMoreText)||(A==null?0:A.visibleRowCount))&&(A==null?0:A.isCollapsible))};
_.J.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"}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.J.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.J.onIronResize=function(){var A=this;_.Ig(this,"updateGridInitItems",function(){A.maybeUpdateInitialItemsDisplayed()})};
_.J.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var A=this.getVisibleWidth();A!==0&&(A=Math.floor(A/214)*(this.data.visibleRowCount||2),A!==this.initialCount&&(this.initialCount=A,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.J.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.J.computeExpandVisible=function(A,t,f,X){return A&&t&&f&&!!X&&!!X.showMoreText};
_.J.computeShowMoreButton=function(A){return{text:A,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.J.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.J.initCollapsed=function(){var A=this;this.ytLazyListBehavior.canShowMore=!1;var t;(this.collapsed=!((t=this.data)==null||!t.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.us(this,function(){_.r2(A.hostElement,"yt-refit-popups-action")})};
_.J.fillRestIfNotCollapsible=function(){var A=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!A||this.ytLazyListBehavior.fillRemainingListItems()};
_.J.computeViewAllHidden=function(A,t){return A||!t.viewAllEndpoint};
RB.prototype.fillRestIfNotCollapsible=RB.prototype.fillRestIfNotCollapsible;RB.prototype.initCollapsed=RB.prototype.initCollapsed;RB.prototype.onIronResize=RB.prototype.onIronResize;RB.prototype.persistentGuideChanged=RB.prototype.persistentGuideChanged;_.V([_.b(_.K9),_.H("design:type",Object)],RB.prototype,"ironResizableBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.bC.YtLazyListBehavior),_.H("design:type",Object)],RB.prototype,"ytLazyListBehavior",void 0);_.V([_.b(_.MK.YtNextContinuationBehavior),_.H("design:type",Object)],RB.prototype,"ytNextContinuationBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],RB.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.b(_.Ba),_.H("design:type",Object)],RB.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],RB.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],RB.prototype,"collapsed",void 0);_.V([_.n(),_.H("design:type",Number)],RB.prototype,"initialCount",void 0);_.V([_.n({computed:"computeShowMoreButton(data.showMoreText)"}),_.H("design:type",Object)],RB.prototype,"showMoreButton",void 0);
_.V([_.n({computed:"computeIsCollapsible(data)"}),_.H("design:type",Object)],RB.prototype,"isCollapsible",void 0);_.V([_.lo("#items"),_.H("design:type",HTMLElement)],RB.prototype,"items",void 0);_.V([_.PU("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RB.prototype,"persistentGuideChanged",null);_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RB.prototype,"onIronResize",null);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RB.prototype,"initCollapsed",null);_.V([_.PU("canShowMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RB.prototype,"fillRestIfNotCollapsible",null);_.V([_.y_({is:"ytd-grid-renderer",disableElementRegistration:!0})],RB);
_.Y(RB,"ytd-grid-renderer",function(){if(r6T!==void 0)return r6T;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return r6T=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var ms=function(){return _.F.apply(this,arguments)||this};
_.R(ms,_.F);
ms.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"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ms.prototype,"data",void 0);_.V([_.y_({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],ms);
_.Y(ms,"ytd-carousel-ad-renderer",function(){if(KYK!==void 0)return KYK;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return KYK=A},{mode:1});var NmS;var bb=function(){return _.F.apply(this,arguments)||this};
_.R(bb,_.F);_.J=bb.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,bb.JSC$15596_CLICK_LOCATION_ID_MAP))};
_.J.onSitelinkTap=function(A){A.stopPropagation();var t,f,X=A==null?void 0:(t=A.model)==null?void 0:(f=t.item)==null?void 0:f.onTap;X&&this.ytSparklesClickLocationBehavior.handleClick(X,A,!1)};
_.J.onTap=function(A){var t=this.data&&this.data.content&&this.data.content.navigationEndpoint;t&&this.ytSparklesClickLocationBehavior.handleClick(t,A,!1)};
_.J.sendImpression=function(){if(this.data&&this.data.content)for(var A=_.U(this.data.content.impressionEndpoints||[]),t=A.next();!t.done;t=A.next()){t=_.U(t.value.loggingUrls||[]);for(var f=t.next();!f.done;f=t.next())f=f.value,f.baseUrl&&Qy(f.baseUrl,f.attributionSrcMode)}};
bb.prototype.onTap=bb.prototype.onTap;bb.prototype.dataChanged=bb.prototype.dataChanged;bb.JSC$15596_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"]]);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],bb.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bb.prototype,"data",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bb.prototype,"dataChanged",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],bb.prototype,"onTap",null);_.V([_.y_({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],bb);
_.Y(bb,"ytd-promoted-sparkles-text-search-renderer",function(){if(NmS!==void 0)return NmS;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return NmS=A},{mode:1});var u6l;var Wa=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.R(Wa,_.F);_.J=Wa.prototype;_.J.created=function(){this.activeView=new p2(this.hostElement)};
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.M("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]]"}}}}}};
_.J.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.J.computeHasAdBadge=function(A){return!(A==null||!A.adBadge)};
_.J.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Wa.JSC$15605_DEFAULT_AD_BADGE_RENDERER),_.rH(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&EW(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Wa.JSC$15605_CLICK_LOCATION_ID_MAP))};
_.J.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var A;(((A=this.data)==null?void 0:A.impressionCommands)||[]).forEach(function(t){t=_.U(t.loggingUrls||[]);for(var f=t.next();!f.done;f=t.next())f=f.value,f.baseUrl&&Qy(f.baseUrl,f.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.J.onTap=function(A){var t,f=(t=this.data)==null?void 0:t.navigationEndpoint,X;(t=(X=this.data)==null?void 0:X.thumbnailNavigationEndpoint)&&_.$E(_.Z2(A),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(t,A,!1):f&&this.ytSparklesClickLocationBehavior.handleClick(f,A,!1)};
_.J.handleMuteAd=function(){this.collapsed=!0};
_.J.attached=function(){var A=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&n2(A.activeView)})};
_.J.detached=function(){_.M("stop_av_measurement_on_detach")&&n2(this.activeView)};
_.PV.Object.defineProperties(Wa.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var A;return!(((A=this.data)==null?void 0:A.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var A;return!(((A=this.data)==null?void 0:A.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
Wa.prototype.dataChanged=Wa.prototype.dataChanged;
Wa.JSC$15605_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"]]);
Wa.JSC$15605_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.e5("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Wa.prototype,"actionHandlerBehavior",void 0);
_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],Wa.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Wa.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Wa.prototype,"collapsed",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],Wa.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Bx("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],Wa.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.H("design:type",Boolean)],Wa.prototype,"fixAlignmentSmallScreens",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs_square")}}),
_.H("design:type",Boolean)],Wa.prototype,"useBiggerThumbsSquare",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.mediaHoverOverlay"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wa.prototype,"hideHoverOverlay",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.promotedSparklesWebStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wa.prototype,"webSearchLayout",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wa.prototype,"webSearchLayoutLandscape",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wa.prototype,"webSearchLayoutSquare",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data.promotedSparklesWebStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wa.prototype,"sparklesCtaNoBackground",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.actionButton"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wa.prototype,"hideActionButton",null);_.V([_.n({computed:"computeButtonOverride(uiUpdate)"}),_.H("design:type",Object)],Wa.prototype,"buttonOverride",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.H("design:type",Boolean)],Wa.prototype,"hasNewAdBadge",void 0);_.V([_.y("data.promotedSparklesWebStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wa.prototype,"useRoundedBadge",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wa.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Wa);
_.Y(Wa,"ytd-promoted-sparkles-web-renderer",function(){if(u6l!==void 0)return u6l;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return u6l=A},{mode:1});var zUp;var yp=function(){var A=_.F.apply(this,arguments)||this;A.isInlinePreviewTriggered=!1;A.enableMonoStyle=_.M("enable_default_mono_cta_migration_web_client");return A};
_.R(yp,_.F);_.J=yp.prototype;_.J.created=function(){this.activeView=new p2(this.hostElement)};
_.J.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]]"}}}}}};
_.J.computeShowCta=function(A){return!(A==null||!A.ctaRenderer)};
_.J.onCtaClick=function(){var A,t,f,X=(A=this.data)==null?void 0:(t=A.ctaRenderer)==null?void 0:(f=t.buttonRenderer)==null?void 0:f.command;X&&this.ytComponentBehavior.resolveCommand(X)};
_.J.onWatchButtonClick=function(){var A,t,f,X=(A=this.data)==null?void 0:(t=A.watchButtonRenderer)==null?void 0:(f=t.buttonRenderer)==null?void 0:f.command;X&&this.ytComponentBehavior.resolveCommand(X)};
_.J.onTap=function(){};
_.J.dataChanged=function(){if(this.data){var A;_.M("enable_inline_muted_playback_on_web_search")&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",yp.JSC$15609_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&EW(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",yp.JSC$15609_DEFAULT_CLICK_LOCATION_BEHAVIOR,yp.JSC$15609_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"));var t;if(((t=this.data)==null?0:t.forceImpAutoplay)&&_.M("enable_force_imp_autoplay_on_desktop_search")){var f;(f=this.JSC$15610_inlinePreviewHoverListener)==null||PZb(f)}}};
_.J.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var A=_.U(this.data.impressionUrls),t=A.next();!t.done;t=A.next())t=t.value,dLb(t,$L0(t));this.data.impressionsFired=!0}};
_.J.maybeComputeHref=function(){return null};
_.J.computeIsShortDR=function(A){return!(A==null||!A.watchButtonRenderer)&&!(A==null||!A.ctaRenderer)&&!!this.enableShortDR};
_.J.computeIsNewUiOrShortDr=function(A){return!!this.enableUiUpdate||this.computeIsShortDR(A)};
_.J.computeIsNewUiAndNotShortDr=function(A){return!!this.enableUiUpdate&&!this.computeIsShortDR(A)};
_.J.computeHideAvatar=function(A){return!((A==null?0:A.channelThumbnail)&&this.computeIsNewUiOrShortDr(A))};
_.J.onClick=function(A){var t,f=(t=this.data)==null?void 0:t.navigationEndpoint;if(this.enableShortDR&&f&&(_.C(f,_.ZT)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(f,A,!!_.C(f,_.ZT)),A.stopPropagation();else if(f&&_.C(f,_.ZT))this.ytSparklesClickLocationBehavior.handleClick(f,A,!0),A.stopPropagation();else if(f){var X,Q;((X=this.data)==null?0:X.navigationEndpoint)&&((Q=this.data)==null?0:Q.adPlaybackContextParams)&&(t=this.data.navigationEndpoint,A=this.data.adPlaybackContextParams,
t.commandMetadata&&_.C(t.commandMetadata,_.Jl)&&_.C(t.commandMetadata,_.Jl).url&&(t=_.qG(_.C(t.commandMetadata,_.Jl).url).adurl)&&_.HGg(t)&&_.$J(_.Iq(t),{encoded_ad_playback_context:A}));this.ytComponentBehavior.resolveCommand(f)}};
_.J.computeButtonOverride=function(A){if(this.computeIsNewUiOrShortDr(A))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.J.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.J.onThumbnailContainerClick=function(A){this.onClick(A)};
_.J.computeThumbnailWidth=function(A,t){return A?t==="MASSIVE"?600:t==="BIG"?500:t==="MEDIUM"?450:420:360};
_.J.attached=function(){var A=this,t;_.M("enable_inline_muted_playback_on_web_search")&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&n2(A.activeView)})};
_.J.detached=function(){var A;_.M("enable_inline_muted_playback_on_web_search")&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.M("stop_av_measurement_on_detach")&&n2(this.activeView)};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15610_inlinePreviewHoverListener=LW({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:b5S})};
_.J.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15610_inlinePreviewHoverListener)==null||$Y(A)};
yp.prototype.dataChanged=yp.prototype.dataChanged;yp.prototype.onTap=yp.prototype.onTap;yp.JSC$15609_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.e5("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};yp.JSC$15609_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
yp.JSC$15609_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"}];_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],yp.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],yp.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.lo("#main-container"),_.H("design:type",HTMLElement)],yp.prototype,"mainContainer",void 0);
_.V([_.n(),_.H("design:type",Object)],yp.prototype,"isInlinePreviewTriggered",void 0);_.V([_.n(),_.H("design:type",Object)],yp.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],yp.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_video_display_compact_button_group_for_desktop_search")}}),
_.H("design:type",Boolean)],yp.prototype,"enableShortDR",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_vac_ui_update_for_desktop_search")}}),
_.H("design:type",Boolean)],yp.prototype,"enableUiUpdate",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Bx("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],yp.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.H("design:type",Boolean)],yp.prototype,"showCta",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.H("design:type",Boolean)],yp.prototype,"isShortDr",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.H("design:type",Boolean)],yp.prototype,"isShortDrOrNewUi",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.H("design:type",Boolean)],yp.prototype,"isNewUiAndNotShortDr",void 0);_.V([_.n({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],yp.prototype,"buttonOverride",void 0);_.V([_.n({computed:"computeSecondaryButtonOverride(data)"}),_.H("design:type",Object)],yp.prototype,"secondaryButtonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yp.prototype,"enableMonoStyle",void 0);
_.V([_.lo("ytd-thumbnail"),_.H("design:type",HTMLElement)],yp.prototype,"thumbnail",void 0);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yp.prototype,"onTap",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yp.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],yp);
_.Y(yp,"ytd-promoted-video-renderer",function(){if(zUp!==void 0)return zUp;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return zUp=A},{mode:1});var PQE;var va=function(){var A=_.F.apply(this,arguments)||this;A.useRoundedBadge=!0;A.sitelinkIds=[];return A};
_.R(va,_.F);_.J=va.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.M("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]]"}}}}}};
_.J.dataChanged=function(){var A;(A=this.data)!=null&&A.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,va.JSC$15615_CLICK_LOCATION_ID_MAP)};
_.J.onTap=function(A){var t,f=(t=this.data)==null?void 0:t.navigationCommand;f&&!_.$E(_.Z2(A),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(f,A,!1)};
_.J.onSitelinkTap=function(A){var t,f,X=A==null?void 0:(t=A.model)==null?void 0:(f=t.item)==null?void 0:f.onTap;X&&this.ytSparklesClickLocationBehavior.handleClick(X,A,!1)};
_.J.configureSitelinkClickTargets=function(){var A=this,t,f,X=(t=this.data)==null?void 0:(f=t.clickLocationTargets)==null?void 0:f.find(function(Q){return Q.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
X&&_.sF(this.hostElement).querySelectorAll(".sitelink").forEach(function(Q){_.rH(Q,"yt-simple-endpoint",!0);A.sitelinkIds.push(Q.id);var q,e;(q=A.ytSparklesClickLocationBehavior)==null||(e=q.clickTargetMap)==null||e.set(Q.id,X)})};
_.J.sendImpression=function(){var A,t,f=((A=this.data)==null?void 0:(t=A.impressionCommand)==null?void 0:t.loggingUrls)||[];A=_.U(f);for(t=A.next();!t.done;t=A.next())t=t.value,t.baseUrl&&Qy(t.baseUrl,t.attributionSrcMode)};
_.J.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.PV.Object.defineProperties(va.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
va.prototype.onTap=va.prototype.onTap;va.prototype.dataChanged=va.prototype.dataChanged;va.JSC$15615_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"]]);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],va.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],va.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],va.prototype,"showFavicon",null);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],va.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Bx("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],va.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.H("design:type",Boolean)],va.prototype,"enableThumbnailScalingFix",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],va.prototype,"dataChanged",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],va.prototype,"onTap",null);_.V([_.y_({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],va);
_.Y(va,"ytd-text-image-no-button-layout-renderer",function(){if(PQE!==void 0)return PQE;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return PQE=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var TmE;var Lh=function(){var A=_.F.apply(this,arguments)||this;A.isInlinePlaybackState=!1;A.uiUpdate=_.M("web_modern_buttons");A.hideCta=_.M("hide_cta_for_home_web_video_ads");A.noBottomMargin=!1;A.animateInTimeStamp=_.cx("hide_cta_for_home_web_video_ads_animate_in_time");A.animateInCta=!1;A.isHovered=!1;A.enableMonoStyle=_.M("enable_default_mono_cta_migration_web_client");A.player=null;A.JSC$15622_playerEvents=new Map;A.JSC$15622_preventProgressSaveTimer=null;A.delayedCtaJobId=null;return A};
_.R(Lh,_.F);_.J=Lh.prototype;_.J.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]]"}}}}}};
_.J.attached=function(){this.JSC$15622_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15622_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.M("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.J.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15622_playerEvents)};
_.J.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Lh.JSC$15621_DEFAULT_CLICK_LOCATION_BEHAVIOR,Lh.JSC$15621_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.J.hoverChanged=function(){var A=this;this.delayedCtaJobId&&(_.a6.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.M("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.c1(_.a6,function(){A.buttonContainer.classList.add("show-delayed-buttons")},_.cx("delayed_cta_on_web_delay_milliseconds")))};
_.J.setPlayer=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return(t=_.r2(A.hostElement,"yt-get-inline-preview-player-action"))&&t[0]?f.yield(t[0].getPlayerPromise(),3):f.jumpTo(0);A.player=f.yieldResult;A.ytPlayerListenerBehavior.listenToPlayerEvents(A.player,A.JSC$15622_playerEvents);_.LO(f)})};
_.J.onPlaybackStart=function(){var A=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15622_preventProgressSaveTimer=_.sX(_.a6,function(){A.JSC$15622_preventProgressSaveTimer=null},1E4))};
_.J.onVideoProgress=function(A){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&A>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.J.resetPreventProgressSaveTimer=function(){_.a6.cancelJob(this.JSC$15622_preventProgressSaveTimer);this.JSC$15622_preventProgressSaveTimer=null};
_.J.getSimpleString=function(A){return _.dF(A)};
_.J.onClick=function(A){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var t,f=(t=this.data)==null?void 0:t.navigationEndpoint,X;t=(X=this.data)==null?void 0:X.channelEndpoint;var Q,q;((q=_.C((Q=this.data)==null?void 0:Q.adCtaButton,_.Gf))==null?0:q.command)&&_.$E(_.Z2(A),this.hostElement,["call-to-action"])||(t&&_.$E(_.Z2(A),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(t,A,!1):!_.$E(_.Z2(A),this.hostElement,
["secondary-button"])&&f&&(_.M("enable_short_dr_for_desktop_launchable")?(X=!!_.C(f,_.ZT),this.isInlinePlaybackState&&X&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(f,A,X)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(f,A,!0))))}};
_.J.updateWatchEndpointStartTime=function(){var A,t;this.player&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&((t=this.data)==null?0:t.navigationEndpoint)&&!this.JSC$15622_preventProgressSaveTimer&&(A=Math.floor(this.player.getCurrentTime()),_.C(this.data.navigationEndpoint,_.ZT).startTimeSeconds=A,_.C(this.data.inlinePlaybackEndpoint,_.ZT).startTimeSeconds=A)};
_.J.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.J.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.PV.Object.defineProperties(Lh.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.M("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var A,t;return!((A=this.data)==null||!A.watchButton)&&!((t=this.data)==null||!t.adCtaButton)}}});
Lh.prototype.hoverChanged=Lh.prototype.hoverChanged;Lh.prototype.dataChanged=Lh.prototype.dataChanged;
Lh.JSC$15621_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"]]);
Lh.JSC$15621_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"}];
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Lh.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],Lh.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],Lh.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Lh.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Lh.prototype,"isInlinePlaybackState",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Lh.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Lh.prototype,"uiUpdate",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Lh.prototype,"hideCta",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Lh.prototype,"noBottomMargin",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Lh.prototype,"animateInCta",void 0);_.V([_.n({computed:"computeButtonOverride(uiUpdate)"}),_.H("design:type",Object)],Lh.prototype,"buttonOverride",void 0);
_.V([_.n({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.H("design:type",Object)],Lh.prototype,"secondaryButtonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Lh.prototype,"isHovered",void 0);_.V([_.lo("#button-container"),_.H("design:type",HTMLElement)],Lh.prototype,"buttonContainer",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Lh.prototype,"typographyBump",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("typographyBump"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Lh.prototype,"typographyBumpV2",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Lh.prototype,"enableMonoStyle",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lh.prototype,"dataChanged",null);
_.V([_.ev("isHovered"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lh.prototype,"hoverChanged",null);_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Lh.prototype,"isButtonGroup",null);_.V([_.y_({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Lh);
_.Y(Lh,"ytd-ad-inline-playback-meta-block",function(){if(TmE!==void 0)return TmE;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return TmE=A},{mode:_.sQ("kevlar_poly_si_batch_j065")?1:2});var iJp;var ph=function(){var A=_.F.apply(this,arguments)||this;A.noBottomMargin=!1;A.isInlinePreviewTriggered=!1;A.JSC$15627_activeViewMeasurementDataResolver=_.YE();return A};
_.R(ph,_.F);_.J=ph.prototype;_.J.created=function(){this.activeView=new p2(this.hostElement)};
_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var A=this;this.updateInlinePreviewHoverListeners();this.JSC$15627_activeViewMeasurementDataResolver.promise.then(function(t){EW(A.activeView,t)});
_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&n2(A.activeView)})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners();_.M("stop_av_measurement_on_detach")&&n2(this.activeView)};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15627_inlinePreviewHoverListener=LW({mediaRenderer:this,lockupElement:this.JSC$15627_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:b5S})};
_.J.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15627_inlinePreviewHoverListener)==null||$Y(A)};
_.J.onDataChanged=function(){var A;((A=this.data)==null?0:A.activeView)&&this.JSC$15627_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ph.JSC$15626_DEFAULT_CLICK_LOCATION_BEHAVIOR,ph.JSC$15626_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"));var t;if((t=this.data)==
null?0:t.forceImpAutoplay){var f;(f=this.JSC$15627_inlinePreviewHoverListener)==null||PZb(f)}};
_.J.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.J.onThumbnailContainerClick=function(A){if(this.data&&this.data.navigationEndpoint){var t,f=(t=this.data)==null?void 0:t.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(f,A,!!_.C(f,_.ZT));A.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var A=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var t,f,X=(f=_.C((t=this.data)==null?void 0:t.onImpression,_.Xd))==null?void 0:f.commands;X&&(X.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;A.ytComponentBehavior.resolveCommand(Q)}),this.data.impressionsFired=!0)}};
_.PV.Object.defineProperties(ph.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15627_inlinePreviewHoverListener)==null?0:GZ(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ph.prototype.onTypographyBumpChanged=ph.prototype.onTypographyBumpChanged;ph.prototype.onDataChanged=ph.prototype.onDataChanged;ph.JSC$15626_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ph.JSC$15626_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"}];
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ph.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],ph.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],ph.prototype,"ytdLockupBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],ph.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],ph.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ph.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],ph.prototype,"noBottomMargin",void 0);_.V([_.n(),_.H("design:type",Object)],ph.prototype,"isInlinePreviewTriggered",void 0);
_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],ph.prototype,"miniMode",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],ph.prototype,"typographyBump",void 0);_.V([_.lo("ytd-thumbnail"),_.H("design:type",HTMLElement)],ph.prototype,"thumbnail",void 0);_.V([_.lo("#dismissible"),_.H("design:type",HTMLElement)],ph.prototype,"JSC$15627_dismissibleMedia",void 0);
_.V([_.lo("ytd-ad-inline-playback-meta-block"),_.H("design:type",HTMLElement)],ph.prototype,"adInlinePlaybackMetaBlock",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ph.prototype,"onDataChanged",null);_.V([_.PU("typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ph.prototype,"onTypographyBumpChanged",null);
_.V([_.y("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ph.prototype,"isHovered",null);_.V([_.y_({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],ph);
_.Y(ph,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(iJp!==void 0)return iJp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return iJp=A},{mode:1});var OJ8;var Eh=function(){var A=_.F.apply(this,arguments)||this;A.isInlinePreviewTriggered=!1;A.JSC$15630_activeViewMeasurementDataResolver=_.YE();return A};
_.R(Eh,_.F);_.J=Eh.prototype;_.J.created=function(){this.activeView=new p2(this.hostElement)};
_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var A=this;this.updateInlinePreviewHoverListeners();this.JSC$15630_activeViewMeasurementDataResolver.promise.then(function(t){EW(A.activeView,t)})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15630_inlinePreviewHoverListener=LW({mediaRenderer:this,lockupElement:this.JSC$15630_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:b5S})};
_.J.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15630_inlinePreviewHoverListener)==null||$Y(A)};
_.J.onDataChanged=function(){var A;((A=this.data)==null?0:A.activeView)&&this.JSC$15630_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Eh.JSC$15629_DEFAULT_CLICK_LOCATION_BEHAVIOR,Eh.JSC$15629_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"))};
_.J.onThumbnailContainerClick=function(A){if(this.data&&this.data.navigationEndpoint){var t,f=(t=this.data)==null?void 0:t.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(f,A,!0);A.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var A=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var t,f,X=(f=_.C((t=this.data)==null?void 0:t.onImpression,_.Xd))==null?void 0:f.commands;X&&(X.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;_.Px().resolve(_.i2).resolveCommand(Q,{form:{element:A.hostElement}})}),this.data.impressionsFired=!0)}};
_.PV.Object.defineProperties(Eh.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15630_inlinePreviewHoverListener)==null?0:GZ(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Eh.prototype.onDataChanged=Eh.prototype.onDataChanged;Eh.JSC$15629_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Eh.JSC$15629_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"}];_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],Eh.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],Eh.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Eh.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],Eh.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Eh.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Eh.prototype,"isInlinePreviewTriggered",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],Eh.prototype,"miniMode",void 0);_.V([_.lo("ytd-thumbnail"),_.H("design:type",HTMLElement)],Eh.prototype,"thumbnail",void 0);_.V([_.lo("#dismissible"),_.H("design:type",HTMLElement)],Eh.prototype,"JSC$15630_dismissibleMedia",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eh.prototype,"onDataChanged",null);_.V([_.y("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Eh.prototype,"isHovered",null);_.V([_.y_({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Eh);
_.Y(Eh,"ytd-video-display-full-buttoned-renderer",function(){if(OJ8!==void 0)return OJ8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return OJ8=A},{mode:1});var av=function(A,t,f,X){X=X===void 0?!1:X;_.Ab.call(this,A);this.adsClientErrorMessage=f;this.aggressivelySample=X;this.args=[];t&&this.args.push(t)};
_.R(av,_.Ab);var $u=function(A,t,f,X){X=X===void 0?!1:X;_.Ab.call(this,A);this.adsClientErrorMessage=f;this.aggressivelySample=X;this.args=[];t&&this.args.push(t)};
_.R($u,_.Ab);var cjK=function(A){_.DA.call(this);var t=this;this.initializationFunction=A;this.instance=null;this.addOnDisposeCallback(function(){_.ee(t.instance);t.instance=null})};
_.R(cjK,_.DA);cjK.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.xu("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var vL5=function(){var A=new Map;[].forEach(function(t){A.set(t.JSC$31047_getType(),t)});
this.getters=A};new Promise(function(){});var RHb=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"]]),C5s=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"}]]),BmC=function(A){this.experimentApiProvider=A;A=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=A<.1};var nh=function(A,t,f,X){_.DA.call(this);this.adsControlFlowEventListeners=t;this.adEventLogger=f;this.experimentApiProvider=X;this.adsControlFlowManagerHelper=A(this,this,this,this,this);_.hV(this,this.adsControlFlowManagerHelper);A=_.U(t);for(t=A.next();!t.done;t=A.next())_.hV(this,t.value)};
_.R(nh,_.DA);var Mxl=function(A,t,f,X){DL(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",t,f,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,X);A=_.U(A.adsControlFlowEventListeners);for(X=A.next();!X.done;X=A.next())Mxl(X.value,t,f)};
_.J=nh.prototype;_.J.onOpportunityProcessedExternallyManaged=function(A,t,f,X){DL(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",A,f,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,X)};
_.J.onSlotReceivedExternallyManaged=function(A,t){FS(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",A,t)};
_.J.onSlotEntered=function(A){if(IB(this.adsControlFlowManagerHelper,A)!=null){FS(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",A);this.adsControlFlowManagerHelper.onSlotEntered(A);for(var t=_.U(this.adsControlFlowEventListeners),f=t.next();!f.done;f=t.next())f.value.onSlotEntered(A);if(IB(this.adsControlFlowManagerHelper,A)!=null&&IB(this.adsControlFlowManagerHelper,A).isOccupyingSlotType()&&xc(this.adsControlFlowManagerHelper,A)&&!CQp(this.adsControlFlowManagerHelper,A)){var X;j1(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",A,(X=xc(this.adsControlFlowManagerHelper,A))!=null?X:void 0);A=IB(this.adsControlFlowManagerHelper,A);A.slotLifecycleStage!=="entered"&&Yc(A.slot,A.slotLifecycleStage,"enterLayoutForSlot");A.slotLifecycleStage="rendering";A.registeredLayoutRenderingAdapter.startRendering(A.layout)}}};
_.J.onSlotExited=function(A){if(IB(this.adsControlFlowManagerHelper,A)!=null){FS(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",A);this.adsControlFlowManagerHelper.onSlotExited(A);for(var t=_.U(this.adsControlFlowEventListeners),f=t.next();!f.done;f=t.next())f.value.onSlotExited(A);IB(this.adsControlFlowManagerHelper,A)!=null&&IB(this.adsControlFlowManagerHelper,A).markedForUnscheduleAfterOutboundAdapterRequests&&hUb(this,A)}};
_.J.onLayoutReceivedExternallyManaged=function(A,t,f){A.managerLayer!=="core"&&j1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",A,t,f)};
var RUf=function(A,t,f){if(IB(A.adsControlFlowManagerHelper,t)!=null){j1(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",t,f);A=_.U(A.adsControlFlowEventListeners);for(var X=A.next();!X.done;X=A.next())RUf(X.value,t,f)}};
nh.prototype.onLayoutExited=function(A,t,f){if(IB(this.adsControlFlowManagerHelper,A)!=null){j1(this.adEventLogger,hH5(f),A,t);this.adsControlFlowManagerHelper.onLayoutExited(A,t);for(var X=_.U(this.adsControlFlowEventListeners),Q=X.next();!Q.done;Q=X.next())Q.value.onLayoutExited(A,t,f);(f=xc(this.adsControlFlowManagerHelper,A))&&t.layoutId===f.layoutId&&mOS(this,A)}};
nh.prototype.disposeInternal=function(){var A=bJC(this.adsControlFlowManagerHelper);A=_.U(A);for(var t=A.next();!t.done;t=A.next())hUb(this,t.value);_.DA.prototype.disposeInternal.call(this)};
var hUb=function(A,t){if(IB(A.adsControlFlowManagerHelper,t)!=null)if(IB(A.adsControlFlowManagerHelper,t).JSC$31077_isSlotExitRequested()||IB(A.adsControlFlowManagerHelper,t).JSC$31077_isLayoutExitRequested())IB(A.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(IB(A.adsControlFlowManagerHelper,t).isOccupyingSlotType())IB(A.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests=!0,mOS(A,t);else if(IB(A.adsControlFlowManagerHelper,t).JSC$31077_isSlotFillRequested())IB(A.adsControlFlowManagerHelper,
t).markedForUnscheduleAfterOutboundAdapterRequests=!0,IB(A.adsControlFlowManagerHelper,t)!=null&&(FS(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",t),t=IB(A.adsControlFlowManagerHelper,t),t.fulfillmentLifecycleStage="fill_cancel_requested",t.registeredFulfillmentAdapter.cancelSlotFilling());else{var f=xc(A.adsControlFlowManagerHelper,t),X;A.experimentApiProvider.get();(X=_.M("h5_enable_layout_unscheduling_events"))&&(f?W2T(A,t,f):_.xu(Error("Mh"),t,f,void 0,!1));FS(A.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",t);var Q=IB(A.adsControlFlowManagerHelper,t),q=t.slotEntryTrigger,e=Q.registeredSlotEntryTriggerAdapters.get(q.triggerId);e&&(e.unregisterTrigger(q),Q.registeredSlotEntryTriggerAdapters.delete(q.triggerId));q=_.U(t.slotFulfillmentTriggers);for(e=q.next();!e.done;e=q.next()){e=e.value;var G=Q.registeredFulfillmentTriggerAdapters.get(e.triggerId);G&&(G.unregisterTrigger(e),Q.registeredFulfillmentTriggerAdapters.delete(e.triggerId))}q=_.U(t.slotExpirationTriggers);
for(e=q.next();!e.done;e=q.next())if(e=e.value,G=Q.registeredExpirationTriggerAdapters.get(e.triggerId))G.unregisterTrigger(e),Q.registeredExpirationTriggerAdapters.delete(e.triggerId);Q.hasLayout()&&(q=Q.layout,Vp(Q,q.layoutExitNormalTriggers),Vp(Q,q.layoutExitSkipTriggers),Vp(Q,q.layoutExitMuteTriggers),Vp(Q,q.layoutExitUserInputSubmittedTriggers),Vp(Q,q.layoutExitUserCancelledTriggers));Q.registeredFulfillmentAdapter=void 0;Q.registeredSlotAdapter!=null&&(Q.registeredSlotAdapter.release(),Q.registeredSlotAdapter=
void 0);Q.registeredLayoutRenderingAdapter!=null&&(Q.registeredLayoutRenderingAdapter.release(),Q.registeredLayoutRenderingAdapter=void 0);Q=A.adsControlFlowManagerHelper;IB(Q,t)&&(Q=yjC(Q,t.slotType+"_"+t.slotPhysicalPosition))&&Q.delete(t.slotId);FS(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",t);A=_.U(A.adsControlFlowEventListeners);for(Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.onSlotUnscheduled(t),f&&!X&&W2T(Q,t,f)}},W2T=function(A,t,f){j1(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
t,f);
j1(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",t,f);A=_.U(A.adsControlFlowEventListeners);for(var X=A.next();!X.done;X=A.next())X=X.value,f&&W2T(X,t,f)},mOS=function(A,t){if(IB(A.adsControlFlowManagerHelper,t)!=null&&IB(A.adsControlFlowManagerHelper,t).isOccupyingSlotType()){var f=xc(A.adsControlFlowManagerHelper,t);
if(f&&CQp(A.adsControlFlowManagerHelper,t)){if(IB(A.adsControlFlowManagerHelper,t)!=null){var X=A.adEventLogger,Q;var q=((Q=C5s.get("abandoned"))==null?void 0:Q.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";j1(X,q,t,f);A=IB(A.adsControlFlowManagerHelper,t);A.slotLifecycleStage!=="rendering"&&Yc(A.slot,A.slotLifecycleStage,"exitLayout");A.slotLifecycleStage="rendering_stop_requested";A.registeredLayoutRenderingAdapter.stopRendering(f,"abandoned")}}else{FS(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
t);try{X=IB(A.adsControlFlowManagerHelper,t);if(!X)throw new $u("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");X.slotLifecycleStage!=="enter_requested"&&X.slotLifecycleStage!=="entered"&&X.slotLifecycleStage!=="rendering"&&Yc(X.slot,X.slotLifecycleStage,"exitSlot");X.slotLifecycleStage="exit_requested";if(X.registeredSlotAdapter===void 0)throw X.slotLifecycleStage="scheduled",new $u("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
X.registeredSlotAdapter.exit()}catch(e){e instanceof $u&&e.adsClientErrorMessage?(vn7(A.adEventLogger,e.adsClientErrorMessage,t),_.xu(e,t,void 0,void 0,e.aggressivelySample)):(vn7(A.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",t),_.xu(e,t))}}}};var ZL=function(A,t,f,X,Q,q){_.DA.call(this);this.registry=A;this.experimentApiProvider=q;this.slotMap=new Map};
_.R(ZL,_.DA);var yjC=function(A,t){return(A=A.slotMap.get(t))?A:new Map},IB=function(A,t){return yjC(A,t.slotType+"_"+t.slotPhysicalPosition).get(t.slotId)},bJC=function(A){var t=[];
A.slotMap.forEach(function(f){f=_.U(f.values());for(var X=f.next();!X.done;X=f.next())t.push(X.value.slot)});
return t};
ZL.prototype.onSlotEntered=function(A){A=IB(this,A);A.slotLifecycleStage!=="enter_requested"&&Yc(A.slot,A.slotLifecycleStage,"onSlotEntered");A.slotLifecycleStage="entered"};
var CQp=function(A,t){A=IB(A,t);return A.hasLayout()&&A.isRendering()},xc=function(A,t){(A=IB(A,t))?A.hasLayout()&&!A.layout&&_.xu("Unexpected empty layout",t):_.xu("Unexpected undefined slotState",t);
return(A==null?void 0:A.layout)||null};
ZL.prototype.onSlotExited=function(A){A=IB(this,A);A.slotLifecycleStage!=="exit_requested"&&Yc(A.slot,A.slotLifecycleStage,"onSlotExited");A.slotLifecycleStage="scheduled"};
ZL.prototype.onLayoutExited=function(A,t){A=IB(this,A);A.isPrimaryLayout(t)&&(A.slotLifecycleStage!=="rendering_stop_requested"&&Yc(A.slot,A.slotLifecycleStage,"onLayoutExited"),A.slotLifecycleStage="entered")};
var Vp=function(A,t){t=_.U(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;var X=A.registeredLayoutExitTriggerAdapters.get(f.triggerId);X&&(X.unregisterTrigger(f),A.registeredLayoutExitTriggerAdapters.delete(f.triggerId))}},Yc=function(A,t,f){_.xu("Slot stage was "+t+" when calling method "+f,A)};var phS=function(A){_.DA.call(this);this.deps=A;this.JSC$15683_adsControlFlowManager=L27(this)};
_.R(phS,_.DA);var L27=function(A){var t=new nh(function(f,X,Q,q){return new ZL(A.deps.registry,f,X,Q,q,A.deps.experimentApiProvider)},new Set(yFp(A.deps.registry).concat(A.deps.listeners)),A.deps.adEventLogger,A.deps.experimentApiProvider);
_.hV(A,t);return t};var sqT=function(){};var En8=function(A,t){_.DA.call(this);this.experimentApiProvider=A;this.eventLoggingSettingsProvider=t;this.eventCount=0;this.premiumAdSeenEventLogger=krp()()};
_.R(En8,_.DA);En8.prototype.logEvent=function(A){DL(this,A)};
var FS=function(A,t,f,X){DL(A,t,void 0,void 0,void 0,f,void 0,void 0,void 0,f.adSlotLoggingData,void 0,void 0,X)},j1=function(A,t,f,X,Q){DL(A,t,void 0,void 0,void 0,f,X?X:void 0,void 0,void 0,f.adSlotLoggingData,X?X.adLayoutLoggingData:void 0,void 0,Q);
f=_.Px().resolve(_.z7(YB))==null?void 0:Vy();t=f==null?void 0:f.adsSeenHotConfig;f=f==null?void 0:f.adsHotConfig;(t==null?0:t.logOnAdsSeen)&&(f==null?0:f.webEnablePremiumAdsSeenLogging)&&nnw(A,X?X:void 0,Q)},vn7=function(A,t,f){DL(A,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,f,void 0,void 0,void 0,f.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:t})},DL=function(A,t,f,X,Q,q,e,G,N,z,T,O,c){c=c===void 0?0:c;
DOb(A.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+t,"slot:",q,"layout:",e,"ping:",G,"Opportunity:",{opportunityType:f,associatedSlotId:X,slotsFromOpportunity:Q,triggerBundle:N,adSlotLoggingData:z,adLayoutLoggingData:T});try{var B=function(){A.experimentApiProvider.get();if(t!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){t||_.xu("Empty PACF event type",q,e);var h=A.eventLoggingSettingsProvider.get();var W;(W=h.alwaysIncludeDebugData)||(h.experimentApiProvider.get(),W=
!1);h=W;W={eventType:t,eventOrder:++A.eventCount};var L={};q&&(L.slotData=bob(h,q));if(e){var E={type:e.layoutType,controlFlowManagerLayer:RHb.get(e.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};h&&(E.debugData={layoutId:e.layoutId});L.layoutData=E}G&&(L.pingData={pingDispatchStatus:G.dispatchStatus,serializedAdPingMetadata:G.ping.serializedAdPingMetadata,pingIndex:G.index});N&&(L.triggerData=mCl(N.trigger,N.category));f&&(L.opportunityData=WF5(h,f,X,Q));W.adClientData=L;z&&(W.serializedSlotAdServingData=
z.serializedSlotAdServingDataEntry);T&&(W.serializedAdServingData=T.serializedAdServingDataEntry);O&&(W.errorInfo=O);_.SY("adsClientStateChange",{adsClientEvent:W})}};
c&&c>0?_.jY(_.m_(),function(){return B()},c):B()}catch(h){DOb(A.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.jY(_.m_(),function(){_.xu(h instanceof Error?h:String(h),q,e,{pacf_message:"exception during pacf logging"})})}},nnw=function(A,t,f){if(t){var X=t.adLayoutLoggingData;
_.jY(_.m_(),function(){A.premiumAdSeenEventLogger!=null&&X&&_.SY("adsSeenClientLogging",{serializedAdServingDataEntry:X.serializedAdServingDataEntry})},f!=null?f:0)}};var F2T=function(A,t){En8.call(this,A,t)};
_.R(F2T,En8);var Ijf=function(){},DOb=function(A,t){return _.M(t)};var jxl=function(){var A=new xOf;this.JSC$15708_adsControlFlowManager=(new phS(A)).JSC$15683_adsControlFlowManager},xOf=function(){_.DA.call(this);
var A=this;this.experimentApiProvider=new cjK(function(){return new Ijf});
var t=new cjK(function(){return new BmC(A.experimentApiProvider)});
this.adEventLogger=new F2T(this.experimentApiProvider,t);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.R(xOf,_.DA);var Yop=function(){},Vxk,oB=function(){Vxk||(Vxk=new Yop);
return Vxk},S1=function(A){if(!A.JSC$15719_externallyManagedSlotAdapterCallback){var t=(new jxl).JSC$15708_adsControlFlowManager;
A.JSC$15719_externallyManagedSlotAdapterCallback=t}return A.JSC$15719_externallyManagedSlotAdapterCallback},ZJb=function(A,t,f){var X=t.opportunityType,Q=Error("Nh");
if(X!==void 0){var q=S1(A);Mxl(q,X,void 0,f)}else _.xu(Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});q=[];if(t.adSlotAndLayoutMetadata!==void 0){t=_.U(t.adSlotAndLayoutMetadata);for(var e=t.next();!e.done;e=t.next()){var G=e.value;if(e=G.adSlotMetadata)if(q.push(e),A.onSlotReceivedExternallyManaged(e,f),G.adLayoutMetadata){G=_.U(G.adLayoutMetadata);for(var N=G.next();!N.done;N=G.next())A.onLayoutReceivedExternallyManaged(e,N.value,f)}else f>0&&_.xu("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
X,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else f>0&&_.xu("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+X,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else f>0&&_.xu("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+X,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(X!==void 0)A.onOpportunityProcessedExternallyManaged(X,q,void 0,f);else _.xu(Q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Yop.prototype.onSlotReceivedExternallyManaged=function(A,t){A=H1(A);if(A instanceof $u)_.xu(A,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else S1(this).onSlotReceivedExternallyManaged(A,t)};
Yop.prototype.onLayoutReceivedExternallyManaged=function(A,t,f){A=H1(A);t=LFl(t);if(A instanceof $u)_.xu(A,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(t instanceof av)_.xu(t,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else S1(this).onLayoutReceivedExternallyManaged(A,t,f)};
Yop.prototype.onOpportunityProcessedExternallyManaged=function(A,t,f,X){var Q=[];t=_.U(t);for(var q=t.next();!q.done;q=t.next())q=H1(q.value),q instanceof $u?_.xu(q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Q.push(q);S1(this).onOpportunityProcessedExternallyManaged(A,Q,f,X)};
var onE=function(A,t){t=H1(t);if(t instanceof $u)_.xu(t,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var f=S1(A);FS(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",t);f=_.U(f.adsControlFlowEventListeners);for(var X=f.next();!X.done;X=f.next())X=IB(X.value,t),X.slotLifecycleStage!=="not_scheduled"&&Yc(X.slot,X.slotLifecycleStage,"onSlotScheduled"),X.slotLifecycleStage="scheduled";A=S1(A);FS(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",t);A=_.U(A.adsControlFlowEventListeners);
for(f=A.next();!f.done;f=A.next())f.value.onSlotEntered(t)}},dOC=function(A,t){t=H1(t);
if(t instanceof $u)_.xu(t,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var f=S1(A);FS(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",t);f=_.U(f.adsControlFlowEventListeners);for(var X=f.next();!X.done;X=f.next())X.value.onSlotExited(t);A=S1(A);FS(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",t);A=_.U(A.adsControlFlowEventListeners);for(f=A.next();!f.done;f=A.next())f.value.onSlotUnscheduled(t)}},Sol=function(A,t,f){t=H1(t);
f=LFl(f);if(t instanceof $u)_.xu(t,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(f instanceof av)_.xu(f,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var X=S1(A);j1(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",t,f);X=_.U(X.adsControlFlowEventListeners);for(var Q=X.next();!Q.done;Q=X.next())Q.value.onLayoutScheduled(t,f);A=S1(A);j1(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",t,f);A=_.U(A.adsControlFlowEventListeners);
for(X=A.next();!X.done;X=A.next())RUf(X.value,t,f)}},$c=function(A,t,f){t=H1(t);
f=LFl(f);if(t instanceof $u)_.xu(t,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(f instanceof av)_.xu(f,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var X=S1(A);j1(X.adEventLogger,hH5("normal"),t,f);X=_.U(X.adsControlFlowEventListeners);for(var Q=X.next();!Q.done;Q=X.next())Q.value.onLayoutExited(t,f,"normal");A=S1(A);A=_.U(A.adsControlFlowEventListeners);for(X=A.next();!X.done;X=A.next())W2T(X.value,t,f)}};_.Ha=_.I(function(A){var t=_.Sv(A,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});A=Object.assign({},t);var f=t.data;t=t.customCommandResolver;var X=(delete A.data,delete A.customCommandResolver,A);A=_.OI({visibilityCallback:function(G,N){var z,T=(z=f().interaction)==null?void 0:z.onFirstVisible;G&&(T&&_.LI(T),X.setOnErrorHandler()&&pZx(N))},
showOption:_.Lj});t=_.En(function(){return f().interaction},t,function(){var G;
return(G=X.listenToTapEvent)==null?void 0:G.call(X)});
var Q=_.U(_.hZ(!1,void 0,"wAC0Lc")),q=Q.next().value,e=Q.next().value;Q=_.f1(function(G){var N;((N=X.setTouchEndHandler)==null?0:N.call(X))&&!q()&&(G.currentTarget.click(),e(!0),setTimeout(function(){e(!1)},100));
return!1});
return _.u("ad-image-view-model",{class:function(){var G,N=[((G=f().interaction)==null?0:G.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],z;((z=X.isGridViewEnabled)==null?0:z.call(X))&&N.push("ytwAdImageViewModelHostInGridView");return N.join(" ")},
el:_.ZY(A,t),"on:touchend":Q},_.u("div",{class:"ytwAdImageViewModelHostImageContainer"},_.u(_.YA,{data:function(){var G;return{sources:f().imageSources,contentMode:(G=f().imageProperties)==null?void 0:G.contentMode}},
alt:function(){var G,N;return((G=f().interaction)==null?void 0:(N=G.accessibility)==null?void 0:N.label)||""},
targetHeight:X.targetHeight,targetWidth:X.targetWidth,preserveHeight:X.preserveHeight,preserveWidth:X.preserveWidth,useWidth:X.useWidth,style:function(){var G,N;return"vertical-align: bottom;"+(((G=f().background)==null?0:G.color)?"background-color:"+_.mt((N=f().background)==null?void 0:N.color)+";":"")},
className:function(){return X.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var G,N;return(N=(G=X.setDraggable)==null?void 0:G.call(X))!=null?N:void 0}})))},"lc");var $OT=_.I(function(A){var t=A.data,f=A.listenToTapEvent,X=function(){};
return _.u("ad-button-hover-overlay-view-model",{"on:click":_.f1(function(Q){if(_.M("enable_web_home_top_landscape_image_layout_legacy_click_command")){var q,e=(q=t().interaction)==null?void 0:q.onTap;e&&_.s9(Q.currentTarget,"yt-navigate",{endpoint:_.bP(e)})}}),
class:function(){var Q;return((Q=t().interaction)==null?0:Q.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.ZY(_.OI({visibilityCallback:function(Q){var q,e=(q=t().interaction)==null?void 0:q.onFirstVisible;Q&&e&&_.LI(e)},
showOption:_.Lj}),_.En(function(){return t().interaction},void 0,function(){return!_.M("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(f==null?void 0:f())}))},function(){return _.M("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.u(_.P1,{data:function(){return t().button}},{adButtonViewModel:function(Q){return _.u(_.E5,{data:Q.data,
customCommandResolver:X})}}):_.u(_.P1,{data:function(){return t().button}},{adButtonViewModel:_.E5})}())},"mc");var KW;_.Hn(_.I(function(A){var t=A.data;A=_.OI({visibilityCallback:function(G,N){if(G){var z;(G=(z=t().interaction)==null?void 0:z.onFirstVisible)&&_.LI(G);var T;if(z=(T=t().adLayoutData)==null?void 0:T.activeViewData)gf(N,z),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&wf(N)})}else _.M("stop_av_measurement_on_detach")&&wf(N)},
showOption:_.Lj,hideOption:pj});var f=_.En(function(){return t().interaction},void 0,function(){return!0}),X=_.U(_.hZ(!1,void 0,"VNDDT")),Q=X.next().value,q=X.next().value;
X=_.f1(function(){q(!0)});
var e=_.f1(function(){q(!1)});
return _.u("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.ZY(A,j_T,f),"on:mouseenter":X,"on:mouseleave":e},_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.U7({"max-width":function(){return _.M("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.u("div",{class:function(){var G;
a:{var N;switch((G=_.C(t().thumbnailImage,dHC))==null?void 0:(N=G.imageProperties)==null?void 0:N.renderingAspect){case "RENDERING_ASPECT_SQUARE":G="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":G="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}G=void 0}return G}},_.u(_.P1,{data:function(){return t().thumbnailImage}},{adImageViewModel:function(G){return _.u(_.Ha,
{data:G.data,
listenToTapEvent:!0,setTouchEndHandler:_.M("enable_top_landscape_image_experiment_dom_id_web")})}})),_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.u(_.P,{cond:function(){var G,N,z;
return(G=_.C(t().thumbnailImage,dHC))==null?void 0:(N=G.imageProperties)==null?void 0:(z=N.overlayIcon)==null?void 0:z.iconImage},
then:function(G){return _.u(_.YA,{data:G,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.u("div",{class:function(){return Q()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.u(_.P1,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(G){return _.u($OT,
{data:G.data,
listenToTapEvent:!0})}}))),_.u("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.u(_.P1,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(G){return _.u(Yb,{data:G.data,
listenToTapEvent:!0,setTouchEndHandler:_.M("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;A=_.OI({visibilityCallback:function(G,N){if(G){var z;(G=(z=t().interaction)==null?void 0:z.onFirstVisible)&&_.LI(G);var T;if(z=(T=t().adLayoutData)==null?void 0:T.activeViewData)gf(N,z),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&wf(N)})}else _.M("stop_av_measurement_on_detach")&&wf(N)},
showOption:_.Lj,hideOption:pj});var f=_.um(_.y6),X=_.En(function(){return t().interaction}),Q={},q={},e={};
return _.u("square-image-layout-view-model",{class:_.Ao("ytwSquareImageLayoutViewModelHost",(Q.ytwSquareImageLayoutViewModelHostColumn=f,Q)),el:_.ZY(A,YaT,X)},_.u("div",{class:_.Ao("ytwSquareImageLayoutViewModelHostImage",(q.ytwSquareImageLayoutViewModelHostColumnImage=f,q))},function(){return _.u(_.P1,{data:function(){return t().adImage}},{adImageViewModel:function(G){return _.u(_.Ha,{data:G.data,
isGridViewEnabled:f,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.u("div",{class:_.Ao("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(e.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=f,e))},_.u(_.P1,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:Yb}),function(){return _.u(_.P1,{data:function(){return t().adButton}},{adButtonViewModel:function(G){var N={};
return _.u(_.E5,{data:G.data,className:_.Ao((N.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,N.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=f,N))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=A.noBottomMargin;var X=A.typographyBump;A=_.OI({visibilityCallback:function(O,c){if(O){var B;(O=(B=t().interaction)==null?void 0:B.onFirstVisible)&&_.LI(O);var h;if(B=(h=t().adLayoutData)==null?void 0:h.activeViewData)gf(c,B),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&wf(c)})}else _.M("stop_av_measurement_on_detach")&&wf(c)},
showOption:_.Lj,hideOption:pj});var Q=_.En(function(){return t().interaction},void 0,function(){return _.M("enable_web_home_top_landscape_image_layout_level_click")}),q=function(){return t().interaction};
q!==void 0&&q!==null||_.te(Error("Oh"));var e=function(){var O,c,B;return(O=_.C(t().thumbnailImage,dHC))==null?void 0:(c=O.background)==null?void 0:(B=c.backgroundImageSource)==null?void 0:B.imageSources};
q=_.U(_.hZ(!1,void 0,"NFjwje"));var G=q.next().value,N=q.next().value;q=_.f1(function(){N(!0)});
var z=_.f1(function(){N(!1)}),T=function(){return G()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.u("top-landscape-image-layout-view-model",{class:function(){var O;return((O=t().interaction)==null?0:O.onTap)&&_.M("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.ZY(A,Vcx,Q),"on:mouseenter":q,"on:mouseleave":z},_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.u(_.P,{cond:function(){return e()&&e().length>0},
then:function(){return _.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.U7({top:"0","background-image":function(){return"url("+String(e()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.u(_.P,{cond:function(){return!!t().adButtonHoverOverlay},
then:function(){return _.u("div",{class:T},_.u(_.P1,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:$OT}))}}),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.u(_.P1,{data:function(){return t().thumbnailImage}},{adImageViewModel:function(O){return _.u(_.Ha,{data:O.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.M("enable_web_home_top_landscape_image_layout_level_click")})}})),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.u(_.YA,{data:{sources:[{clientResource:{imageName:_.M("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.u("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.u(_.P1,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(O){return _.u(Yb,{data:O.data,
noBottomMargin:function(){return f==null?void 0:f()},
listenToTapEvent:function(){return _.M("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return X==null?void 0:X()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.PS,
noBottomMargin:_.PS,typographyBump:_.PS}});var HJT=_.I(function(A){var t=A.data,f=_.OI({visibilityCallback:function(Q){var q,e=(q=t().interaction)==null?void 0:q.onFirstVisible;Q&&e&&_.LI(e)},
showOption:_.Lj});A=_.En(function(){return t().interaction},A.customCommandResolver);
var X={};return _.u("ad-text-image-view-model",{class:_.Ao("ytwAdTextImageViewModelHost",(X.ytwAdTextImageViewModelHostDarkBackground=function(){return t().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},X)),
el:_.ZY(f,A),"aria-label":function(){var Q,q;return(Q=t().interaction)==null?void 0:(q=Q.accessibility)==null?void 0:q.label}},_.u("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.u(_.zL,{text:function(){return t().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.u(_.P,{cond:function(){return t().overlayIcon},
then:function(Q){return _.u("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.u(_.YA,{data:Q,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var aj7=_.I(function(A){var t=A.data;return _.u("feed-ad-sitelink-view-model",{class:function(){var f;return((f=t().interaction)==null?0:f.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.ZY(_.En(function(){return t().interaction},A.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var f,X;return(f=t().interaction)==null?void 0:(X=f.accessibility)==null?void 0:X.label},
role:"link",tabindex:0},_.u(_.zL,{text:function(){return t().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var K2i=_.I(function(A){var t=A.data;A={};return _.u("feed-ad-sitelinks-carousel-view-model",{el:_.ZY(_.OI({visibilityCallback:function(f){var X,Q=(X=t().interaction)==null?void 0:X.onFirstVisible;f&&Q&&_.LI(Q)},
showOption:_.Lj})),class:_.Ao("ytwFeedAdSitelinksCarouselViewModelHost",(A.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return t().style==="FEED_AD_SITELINKS_STYLE_NONE"},A))},_.u(_.P1,{data:function(){return t().sitelinks}},{feedAdSitelinkViewModel:aj7}))},"sc");_.Hn(_.I(function(A){var t=A.data;A=_.OI({visibilityCallback:function(e,G){if(e){var N;(e=(N=t().interaction)==null?void 0:N.onFirstVisible)&&_.LI(e);var z;(N=(z=t().adLayoutData)==null?void 0:z.activeViewData)&&gf(G,N)}},
showOption:_.Lj});var f=_.U(_.hZ(!1,void 0,"BzPhl")),X=f.next().value,Q=f.next().value;f=_.f1(function(){Q(!0)});
var q=_.f1(function(){Q(!1)});
return _.u("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.ZY(A),"on:mouseenter":f,"on:mouseleave":q},_.u("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.u("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.u(_.P1,{data:function(){return t().textImage}},{adTextImageViewModel:HJT})),_.u("div",{class:function(){return X()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.u(_.P1,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(e){return _.u($OT,{data:e.data,
listenToTapEvent:!0})}}))),_.u("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.u(_.P1,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(e){return _.u(Yb,{data:e.data,
listenToTapEvent:!0})}}),_.u(_.P1,{data:function(){return t().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:K2i})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=A.typographyBump;return _.u("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.ZY(_.OI({visibilityCallback:function(X,Q){if(X){var q;(X=(q=t().interaction)==null?void 0:q.onFirstVisible)&&_.LI(X);var e;(q=(e=t().adLayoutData)==null?void 0:e.activeViewData)&&gf(Q,q)}},
showOption:_.Lj,hideOption:pj}))},_.u("div",null,_.u(_.P1,{data:function(){return t().videoLockup}},{lockupViewModel:function(X){return _.u(_.VK,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:f})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.PS,
noBottomMargin:_.PS,typographyBump:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=A.className;var X=A.typographyBump;return _.u("video-display-compact-button-group-layout-view-model",{el:_.ZY(_.OI({visibilityCallback:function(Q,q){if(Q){var e;(Q=(e=t().interaction)==null?void 0:e.onFirstVisible)&&_.LI(Q);var G;(e=(G=t().adLayoutData)==null?void 0:G.activeViewData)&&gf(q,e)}},
showOption:_.Lj})),class:_.Ao("videoDisplayCompactButtonGroupLayoutViewModelHost",f)},_.u(_.P1,{data:function(){return t().videoLockup}},{lockupViewModel:function(Q){return _.u(_.VK,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:X})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.PS,
className:_.PS,typographyBump:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=A.className;var X=A.typographyBump;return _.u("video-display-compact-buttoned-layout-view-model",{el:_.ZY(_.OI({visibilityCallback:function(Q,q){if(Q){var e;(Q=(e=t().interaction)==null?void 0:e.onFirstVisible)&&_.LI(Q);var G;(e=(G=t().adLayoutData)==null?void 0:G.activeViewData)&&gf(q,e)}},
showOption:_.Lj})),class:_.Ao("videoDisplayCompactButtonedLayoutViewModelHost",f)},_.u(_.P1,{data:function(){return t().videoLockup}},{lockupViewModel:function(Q){return _.u(_.VK,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:X})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.PS,
className:_.PS,typographyBump:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=A.className;var X=A.typographyBump;var Q=function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},q=_.um(_.y6);
A=_.OI({visibilityCallback:function(z,T){if(z){var O=t();z=O.adLayoutData;var c;(O=(c=O.interaction)==null?void 0:c.onFirstVisible)&&_.LI(O);(c=z==null?void 0:z.activeViewData)&&gf(T,c)}},
showOption:_.Lj});var e=_.yq(function(){return{containerType:Q()&&q()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:Q()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),G=_.yq(function(){return Q()&&q()?"":Q()?"168px":"50%"},void 0,"Om6kNe"),N=_.yq(function(){return Q()&&q()?9999:void 0},void 0,"S71lKd");
return _.u("video-display-compact-layout-view-model",{el:_.ZY(A),class:_.Ao("videoDisplayCompactLayoutViewModelHost",f)},_.u(_.P1,{data:function(){return t().videoLockup}},{lockupViewModel:function(z){return _.u(_.VK,{data:z.data,
containerLayoutConfig:e,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:G,thumbnailTargetWidth:N,typographyBump:X})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.PS,
className:_.PS,typographyBump:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=A.typographyBump;return _.u("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.ZY(_.OI({visibilityCallback:function(X,Q){if(X){var q;(X=(q=t().interaction)==null?void 0:q.onFirstVisible)&&_.LI(X);var e;(q=(e=t().adLayoutData)==null?void 0:e.activeViewData)&&gf(Q,q)}},
showOption:_.Lj,hideOption:pj}))},_.u("div",null,_.u(_.P1,{data:function(){return t().videoLockup}},{lockupViewModel:function(X){return _.u(_.VK,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:f})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.PS,
noBottomMargin:_.PS,typographyBump:_.PS}});_.gnT=_.I(function(A){var t=A.data;A=_.GU("ad-card-badge-view-model");return _.u("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:A},_.u(_.P,{cond:function(){return t().imageBadge},
then:function(f){return _.u(_.YA,{data:f,alt:""})}}))},"zc");var whi=_.I(function(A){var t=A.data;var f=A.customCommandResolver;return _.u("carousel-ad-card-image-view-model",{class:function(){var X;return((X=t().interaction)==null?0:X.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.ZY(_.OI({visibilityCallback:function(X){var Q,q=(Q=t().interaction)==null?void 0:Q.onFirstVisible;X&&q&&_.LI(q)},
showOption:_.Lj}),_.En(function(){return t().interaction},f)),
"aria-label":function(){var X,Q;return(X=t().interaction)==null?void 0:(Q=X.accessibility)==null?void 0:Q.label}},_.u(_.P1,{data:function(){return t().adImage}},{adImageViewModel:function(X){return _.u(_.Ha,{data:X.data,
customCommandResolver:f})}}),_.u("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.u(_.P1,{data:function(){return t().badge}},{adCardBadgeViewModel:_.gnT})),_.u(_.WS,{model:{color:4}}))},"Ac");var sxE=_.I(function(A){var t=_.U(_.hZ(0,void 0,"JJ0QQc")),f=t.next().value;t.next();var X=t.next().value,Q=_.U(_.hZ(!1,void 0,"f6YICe"));t=Q.next().value;var q=Q.next().value,e;_.dD(function(){clearTimeout(e)});
Q=_.f1(function(){var z;((z=A.animate)==null?0:z.call(A))?(q(!0),e=setTimeout(function(){q(!1);G()},200)):G();
return!1});
var G=function(){X(function(z){return(z+A.numShownItems())%A.data().length})},N={};
return _.u("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.u("div",{class:_.Ao("ytwHorizontalCarouselCarouselWrapper")},_.u("div",{class:_.Ao("ytwHorizontalCarouselCarouselInnerWrapper",(N.ytwHorizontalCarouselAnimating=t,N))},_.u(_.xk,{each:A.data,keyBy:"INDEX"},function(z,T){return _.u("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.U7({"flex-basis":function(){return"calc((100% - (8px * "+(A.numShownItems()-1)+")) / "+A.numShownItems()+")"},
order:function(){var O=T-f();O<0&&(O+=A.data().length);return O}})},A.children(z,T))}))),_.u("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Q},A.nextButton()))},"Bc");var k2T=_.I(function(A){var t=A.data;var f=A.customCommandResolver;var X=A.expansive;return _.u("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.ZY(_.OI({visibilityCallback:function(Q){var q,e=(q=t().interaction)==null?void 0:q.onFirstVisible;Q&&e&&_.LI(e)},
showOption:_.Lj}))},_.u(sxE,{data:function(){var Q;return((Q=t())==null?void 0:Q.carouselAdCards)||[]},
nextButton:function(){return _.u(_.P1,{data:function(){return t().nextButton}},{buttonViewModel:function(Q){var q=Q.data;
return _.u(_.nx,{data:function(){return(X==null?0:X())?Object.assign({},q(),{style:"mono"}):q()},
className:_.M("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Q){return _.u(_.P1,{data:Q},{carouselAdCardImageViewModel:function(q){return _.u(whi,{data:q.data,customCommandResolver:f})}})}))},"Cc");var rjC=_.I(function(A){var t=A.data;var f=A.customCommandResolver;var X=A.className;var Q=A.buttonClassName;var q=A.animationEntityKey;var e=A.expansive;return _.u("carousel-button-view-model",{class:_.Ao("ytwCarouselButtonViewModelHost",X)},_.u(_.P1,{data:function(){return t().carousel}},{carouselAdCardCollectionViewModel:function(G){return _.u(k2T,{data:G.data,
customCommandResolver:f,expansive:e})}}),_.u(_.P1,{data:function(){return t().button}},{adButtonViewModel:function(G){var N=G.data;
return _.u(_.E5,{data:function(){return(e==null?0:e())?Object.assign({},N(),{style:"AD_BUTTON_STYLE_TONAL"}):N()},
className:Q,customCommandResolver:f,animationEntityKey:q})}}))},"Dc");_.AyT=_.I(function(A){var t=A.data;A=A.className;var f=_.GU("pivot-button-view-model");_.oh(function(){var X;((X=t())==null?0:X.backgroundColor)&&f.value.setAttribute("data-background-color",String(t().backgroundColor))});
return _.u("pivot-button-view-model",{el:f,class:_.Ao("ytwPivotButtonViewModelHost",A)},_.u(_.bc,{command:function(){var X=t();X=X.onClickCommand?_.bP(X.onClickCommand):X.contentDescription?_.KZ(X.contentDescription):void 0;return X},
ariaLabel:function(){return t().contentDescription}},_.u(_.P,{cond:function(){return t().thumbnail},
then:function(X){return _.u(_.YA,{data:X,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.u(_.P,{cond:function(){return t().icon},
then:function(X){return _.u(_.el,{icon:function(){return X().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.t_p=_.I(function(A){var t=A.data;var f=A.buttonShapeOverrideables;return _.u("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.u(_.P1,{data:function(){return t().buttonViewModels}},{buttonViewModel:function(X){return _.u(_.nx,{data:X.data,
buttonOverrides:f})},
likeButtonViewModel:function(X){return _.u(_.eK,{data:X.data,buttonShapeOverrideables:f})},
dislikeButtonViewModel:function(X){return _.u(_.U3,{data:X.data,buttonShapeOverrideables:f})},
toggleButtonViewModel:function(X){return _.u(_.s$,{data:X.data,buttonShapeOverrides:f})}}))},"Fc");var fJi=_.I(function(A){var t=A.avatar;var f=A.headline;var X=A.badge;var Q=A.description;var q=A.expansive;A={};return _.u("yt-ad-metadata-shape",{class:_.Ao("ytAdMetadataShapeHost",(A.ytAdMetadataShapeHostLarge=q,A))},_.u("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.u(_.P,{cond:t,then:function(e){return _.u(_.Krk,{data:function(){return(q==null?0:q())?Object.assign({},e(),{size:"AD_AVATAR_SIZE_M"}):e()}})}}),_.u("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.u(_.zL,{text:f,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.u(_.P,{cond:X,then:function(e){return _.u(_.xb,{data:function(){return(q==null?0:q())?Object.assign({},e(),{style:"AD_BADGE_STYLE_STARK"}):e()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.u("h2",{class:"ytAdMetadataShapeHostDescription"},_.u(_.zL,{text:Q,
linkInheritColor:!0,isHeadline:function(){return q==null?void 0:q()}})))},"Gc");var X67=_.I(function(A){var t=A.data;var f=A.onShow;var X=A.expansive;A=_.En(function(){return t().interaction});
_.oh(function(){var q,e=(q=t().animatedRenderingConfig)==null?void 0:q.delayedSecondsToVisible;if(e){var G=setTimeout(f,e*1E3);_.dD(function(){clearTimeout(G)})}});
var Q={};return _.u("reels-ad-card-buttoned-view-model",{class:_.Ao(function(){var q;return((q=t().interaction)==null?0:q.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Q.ytwReelsAdCardButtonedViewModelHostExpansive=X,Q)),
el:_.ZY(A)},_.u(fJi,{avatar:function(){return _.C(t().avatar,Vhi)},
headline:function(){return t().headline},
badge:function(){return _.C(t().adBadge,Zrl)},
description:function(){return t().description},
expansive:X}),_.u(_.P1,{data:function(){return t().ctaButton}},{adButtonViewModel:function(q){var e=q.data;
return _.u(_.E5,{data:function(){return(X==null?0:X())?Object.assign({},e(),{style:"AD_BUTTON_STYLE_FILLED"}):e()}})}}))},"Hc");var QKK=_.I(function(A){var t=A.data;A=A.expansive;var f=_.M("web_ad_metadata_clickable")?_.En(function(){return t().interaction},void 0,function(){return _.M("web_ad_metadata_clickable")}):void 0,X={};
X=_.CW("ytwReelsAdMetadataViewModelHost",(X.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.M("web_ad_metadata_clickable"),X));return _.u("reels-ad-metadata-view-model",{class:X,el:_.ZY(f)},_.u(fJi,{avatar:function(){return _.C(t().avatar,Vhi)},
headline:function(){return t().headline},
badge:function(){return _.C(t().adBadge,Zrl)},
description:function(){return t().description},
expansive:A}))},"Ic");var qqT={iconPosition:"icon-with-label",size:"L"},Jyb=_.I(function(A){var t=A.data;var f=A.overlayDensity;var X=A.extractOverlay;var Q=A.extractActionBar;A=_.GU("reels-player-overlay-layout-view-model");var q=_.dR(f,0),e=function(){var B;return(B=t().reelsAdCardButtonedEntityKey)!=null?B:""},G=function(){return e()+"/ad_button"},N=_.Nt(cgb,e),z=function(){var B,h;
return(h=(B=N())==null?void 0:B.value)!=null?h:!1},T=_.um(Zob),O=function(){var B;
return Object.assign({},qqT,(T()||!((B=Q==null?void 0:Q())!=null&&B))&&{style:"overlay-dark"})};
f={};var c={};return _.u("reels-player-overlay-layout-view-model",{class:_.Ao("ytwReelsPlayerOverlayLayoutViewModelHost",(f.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!t().extension},f.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},f.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return q()===1&&!(X==null?0:X())},f.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var B;
return(B=X==null?void 0:X())!=null?B:!1},f.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var B;
return(B=Q==null?void 0:Q())!=null?B:!1},f)),
"overlay-density":function(){return String(q())},
el:A},_.u("div",{class:_.Ao("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(c.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},c))},_.u("div",{"aria-hidden":function(){return z()},
class:_.Ao("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return z()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.U7({"transition-duration":function(){return $Cb(t())}})},_.u(_.P1,{data:function(){return t().adMetadata}},{reelsAdMetadataViewModel:function(B){return _.u(QKK,{data:B.data,
expansive:function(){return q()===1}})}}),_.u(_.P,{cond:function(){return t().extension},
then:function(B){return _.u("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.u(_.P1,{data:B},{adButtonViewModel:function(h){return _.u(_.E5,{data:h.data,animationEntityKey:G,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(h){return _.u(rjC,{data:h.data,animationEntityKey:G,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return q()===1}})}}))}})),_.u("div",{"aria-hidden":function(){return!z()},
class:_.Ao("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return z()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.U7({"transition-duration":function(){return $Cb(t())}})},_.u(_.P1,{data:function(){return t().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(B){return _.u(X67,{data:B.data,
onShow:function(){_.og(_.Ta("booleanEntity",e(),{key:e(),value:!0}))},
expansive:function(){return q()===1}})}}))),_.u("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.u(_.P1,{data:function(){return t().actions}},{reelActionBarViewModel:function(B){return _.u(_.t_p,{data:B.data,
buttonShapeOverrideables:O})}}),_.u(_.P1,{data:function(){return t().menu}},{buttonViewModel:function(B){return _.u(_.nx,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},O(),{type:"tonal"})}})}}),_.u(_.P1,{data:function(){return t().pivotButton}},{pivotButtonViewModel:function(B){return _.u(_.AyT,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.Hn(Jyb,"reels-player-overlay-layout-view-model",{props:{data:_.PS,overlayDensity:_.PS,extractOverlay:_.PS,extractActionBar:_.PS}});var aB=function(){var A=_.F.apply(this,arguments)||this;A.noBottomMargin=!1;A.overlayDensity=0;A.extractOverlay=!1;A.extractActionBar=!1;return A};
_.R(aB,_.F);_.J=aB.prototype;
_.J.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]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.M("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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.J.ready=function(){var A=this;fVx(function(){A.isAttached&&df(A.JSC$15765_storedAdSlotMetadata,A.JSC$15765_storedAdLayoutMetadata,A.adSlotMetadata,A.adLayoutMetadata)&&$c(oB(),A.JSC$15765_storedAdSlotMetadata,A.JSC$15765_storedAdLayoutMetadata)})};
_.J.attached=function(){df(this.JSC$15765_storedAdSlotMetadata,this.JSC$15765_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Sol(oB(),this.JSC$15765_storedAdSlotMetadata,this.JSC$15765_storedAdLayoutMetadata)};
_.J.detached=function(){df(this.JSC$15765_storedAdSlotMetadata,this.JSC$15765_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$c(oB(),this.JSC$15765_storedAdSlotMetadata,this.JSC$15765_storedAdLayoutMetadata)};
_.J.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15765_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15765_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15765_storedAdLayoutMetadata!==void 0&&this.JSC$15765_storedAdSlotMetadata!==void 0&&$c(oB(),this.JSC$15765_storedAdSlotMetadata,this.JSC$15765_storedAdLayoutMetadata),Sol(oB(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15765_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15765_storedAdSlotMetadata=this.adSlotMetadata)};
_.PV.Object.defineProperties(aB.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.adLayoutMetadata}}});
aB.prototype.onAdMetadataChanged=aB.prototype.onAdMetadataChanged;aB.prototype.onTypographyBumpChanged=aB.prototype.onTypographyBumpChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aB.prototype,"rendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],aB.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],aB.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],aB.prototype,"noBottomMargin",void 0);_.V([_.n(),_.H("design:type",Object)],aB.prototype,"overlayDensity",void 0);_.V([_.n(),_.H("design:type",Object)],aB.prototype,"extractOverlay",void 0);_.V([_.n(),_.H("design:type",Object)],aB.prototype,"extractActionBar",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],aB.prototype,"typographyBump",void 0);
_.V([_.y("data.adLayoutMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],aB.prototype,"adLayoutMetadata",null);_.V([_.n(),_.H("design:type",Object)],aB.prototype,"adSlotMetadata",void 0);_.V([_.lo("ytd-video-display-full-buttoned-and-button-group-renderer"),_.H("design:type",HTMLElement)],aB.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.V([_.ev("typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aB.prototype,"onTypographyBumpChanged",null);_.V([_.ev("adLayoutMetadata","adSlotMetadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aB.prototype,"onAdMetadataChanged",null);_.V([_.y_({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],aB);
_.Y(aB,"ytd-in-feed-ad-layout-renderer",function(){if(aRl!==void 0)return aRl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return aRl=A},
{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var UjT;var eff;_.Hn(_.xb,"ad-badge-view-model",{props:{data:_.PS,hasDot:_.PS,customCommandResolver:_.dt,adRenderingContextType:_.dt,usedInMasthead:_.dt}});_.Hn(_.E5,"ad-button-view-model",{props:{data:_.PS,customCommandResolver:_.dt,className:_.dt,delayedClassName:_.dt,animationEntityKey:_.dt,isCompactWidth:_.dt,isContentWidth:_.dt}});var kc=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return A};
_.R(kc,_.F);_.J=kc.prototype;_.J.computeHasLiveDescription=function(A){return!(A==null||!A.liveDescription)};
_.J.computeHasByline=function(A){return!(A==null||!A.byline)};
_.J.computeUsesAdButtonViewModel=function(A){return!!_.C(A==null?void 0:A.cta,odT)};
_.J.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.J.onYtToggleButton=function(A){var t,f=(t=this.data)==null?void 0:t.videoReminderEntityKey;f&&this.ytdReduxBehavior.dispatch(_.Ta("upcomingEventReminderStateEntity",f,{key:f,state:A.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.J.attached=function(){this.updateChannelBanner()};
_.J.dataChanged=function(){this.updateChannelBanner()};
_.J.videoReminderStateChanged=function(){var A;this.videoReminderState&&_.C((A=this.data)==null?void 0:A.cta,_.l1)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.J.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var A=_.a8(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);A&&(A.startsWith("//")&&(A="https:"+A),this.hostElement.classList.add("channel-banner"),_.Q_(this.hostElement,{"--ytvmh-channel-banner":"url("+A+")"}))}else _.M("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.J.onPlayerReady=function(){this.onIronResize()};
_.J.maybeFlushDebouncer=function(){_.M("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(A){var t;A=(t=A.getElementsByTagName("yt-attributed-string"))==null?void 0:t[0];MBx(A==null?void 0:A.polymerController)})};
_.J.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var A=_.sF(this.hostElement).querySelector("#live-description"),t;A&&((t=this.data)==null?0:t.shortLiveDescription)&&A.clientWidth<A.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
kc.prototype.onIronResize=kc.prototype.onIronResize;kc.prototype.videoReminderStateChanged=kc.prototype.videoReminderStateChanged;kc.prototype.dataChanged=kc.prototype.dataChanged;kc.prototype.onYtToggleButton=kc.prototype.onYtToggleButton;_.V([_.b(_.K9),_.H("design:type",Object)],kc.prototype,"ironResizableBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],kc.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],kc.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],kc.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.videoReminderEntityKey"],selector:tEu}),_.H("design:type",Object)],kc.prototype,"videoReminderState",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.M("web_modern_buttons")}),_.H("design:type",Boolean)],kc.prototype,"rounded",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.H("design:type",Boolean)],kc.prototype,"hasLiveDescription",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.H("design:type",Boolean)],kc.prototype,"hasByline",void 0);
_.V([_.n({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.H("design:type",String)],kc.prototype,"adRenderingContextType",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],kc.prototype,"isMasthead",void 0);_.V([_.n({computed:"computeUsesAdButtonViewModel(data)"}),_.H("design:type",Boolean)],kc.prototype,"usesAdButtonViewModel",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.M("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.H("design:type",Boolean)],kc.prototype,"resizableAdBannerSafariFix",void 0);_.V([_.NL("yt-formatted-string"),_.H("design:type",Array)],kc.prototype,"formattedStrings",void 0);_.V([_.lo("#cta-button"),_.H("design:type",HTMLElement)],kc.prototype,"ctaButton",void 0);
_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],kc.prototype,"onYtToggleButton",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kc.prototype,"dataChanged",null);_.V([_.ev("videoReminderState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kc.prototype,"videoReminderStateChanged",null);
_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kc.prototype,"onIronResize",null);_.V([_.y_({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],kc);
_.Y(kc,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(eff!==void 0)return eff;var A=document.createElement("template");_.m(A,'\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      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\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]]" hidden="[[usesAdButtonViewModel]]" 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]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return eff=A},{mode:1});var Gbf;var ro=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};A.isLocked=!1;return A};
_.R(ro,_.F);_.J=ro.prototype;_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded&&_.r2(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(A){A!==this&&(this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(A){this.isLocked=!0;A!==this&&(this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
ro.prototype.onTap=ro.prototype.onTap;ro.prototype.onMouseOver=ro.prototype.onMouseOver;ro.prototype.onExpandedChanged=ro.prototype.onExpandedChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],ro.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ro.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],ro.prototype,"expanded",void 0);_.V([_.PU("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ro.prototype,"onExpandedChanged",null);_.V([_.UQ("mouseover"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ro.prototype,"onMouseOver",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ro.prototype,"onTap",null);
_.V([_.y_({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],ro);
_.Y(ro,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Gbf!==void 0)return Gbf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Gbf=A},{mode:1});var lJ8;var AK=function(){var A=_.F.apply(this,arguments)||this;A.buttonOverrides={style:"overlay"};A.useYtdPlayer=_.M("use_ytd_player_for_desktop_masthead");A.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};A.playbackFinished=!1;A.JSC$15779_playerManager=null;A.JSC$15779_mastheadCounter=new eGK;return A};
_.R(AK,_.F);_.J=AK.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$15779_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15779_playerManager=new Sd)};
_.J.ready=function(){var A=this;this.JSC$15779_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var t=_.sF(this.hostElement).querySelector("#player");this.useYtdPlayer?t.style.display="none":(this.ytdPlayer.style.display="none",AmS(this.JSC$15779_playerManager,t,function(){A.onPlaybackEnded()}),_.sF(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var f;
((f=A.data)==null?0:f.navigationEndpoint)&&_.s9(A.hostElement,"yt-navigate",{endpoint:A.data.navigationEndpoint})}))};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15779_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.J.attached=function(){var A=this;_.FD(function(){A.maybePlayVideo()})};
_.J.maybePlayVideo=function(){var A=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$15779_playerManager.playVideo(),this.getPlayerPromise().then(function(){A.JSC$15779_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.J.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15779_playerManager.stopVideo()};
_.J.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var A,t={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((A=this.data.playbackStartMs)!=null?A:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(t);this.setupYtdPlayer()}else fO8(this.JSC$15779_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(ts7(this.JSC$15779_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.J.getPlayerPromise=function(){return this.JSC$15779_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(A){this.useYtdPlayer?this.toggleMute(A.detail.toggled):A.detail.toggled?this.JSC$15779_playerManager.mute():this.JSC$15779_playerManager.unMute()};
_.J.onYtNavigate=function(A){var t=Xa5(A.detail.endpoint),f=QBs(this.data.clickthroughReportingData);t&&f&&(A.detail.endpoint.watchEndpoint?A.detail.tempData=f:_.$J(t,f,30))};
_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded?(_.r2(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(A){A!==this&&(this.stopVideo(),this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(A){A!==this&&(this.isLocked=!0,this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
_.J.lockAndCollapseExpandableTiles=function(){_.kJ(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.J.unlockExpandableTiles=function(){_.kJ(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.J.setupYtdPlayer=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return f.yield(A.ytdPlayer.getPlayerPromise(),2);t=f.yieldResult;t.addEventListener("onStateChange",function(X){A.onPlayerStateChange(X)});
t.addEventListener("onCueRangeExit",function(X){A.onCueRangeExit(X)});
_.LO(f)})};
_.J.onPlayerStateChange=function(A){if(A===1&&(A=this.ytdPlayer.getPlayer())){var t=A.getCurrentTime(),f,X,Q=t+((X=(f=this.data)==null?void 0:f.playbackDurationMs)!=null?X:0)/1E3;A.addCueRange("playback",t,Q);this.JSC$15779_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.J.onCueRangeExit=function(A){A==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(t.ytdPlayer.getPlayerPromise(),2);f=X.yieldResult;A?f.mute():f.unMute();_.LO(X)})};
AK.prototype.onTap=AK.prototype.onTap;AK.prototype.onMouseOver=AK.prototype.onMouseOver;AK.prototype.onExpandedChanged=AK.prototype.onExpandedChanged;AK.prototype.onYtNavigate=AK.prototype.onYtNavigate;AK.prototype.onYtToggleButton=AK.prototype.onYtToggleButton;AK.prototype.dataChanged=AK.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],AK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],AK.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],AK.prototype,"expanded",void 0);_.V([_.n(),_.H("design:type",Object)],AK.prototype,"buttonOverrides",void 0);
_.V([_.n(),_.H("design:type",Object)],AK.prototype,"useYtdPlayer",void 0);_.V([_.lo("#ytd-player"),_.H("design:type",Object)],AK.prototype,"ytdPlayer",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AK.prototype,"dataChanged",null);_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],AK.prototype,"onYtToggleButton",null);
_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],AK.prototype,"onYtNavigate",null);_.V([_.PU("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AK.prototype,"onExpandedChanged",null);_.V([_.UQ("mouseover"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AK.prototype,"onMouseOver",null);
_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AK.prototype,"onTap",null);_.V([_.y_({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],AK);
_.Y(AK,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(lJ8!==void 0)return lJ8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return lJ8=A},{mode:1});var Nvw;var tK=function(){return _.F.apply(this,arguments)||this};
_.R(tK,_.F);tK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
tK.prototype.onShow=function(){var A=_.sF(this.hostElement).querySelector("#live-description"),t;A&&((t=this.data)==null?0:t.shortLiveDescription)&&A.clientWidth<A.scrollWidth&&this.hostElement.classList.add("short-live-description")};
tK.prototype.onYtToggleButton=function(A){var t,f=(t=this.data)==null?void 0:t.videoReminderEntityKey;f&&this.ytdReduxBehavior.dispatch(_.Ta("upcomingEventReminderStateEntity",f,{key:f,state:A.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
tK.prototype.videoReminderStateChanged=function(){var A;this.videoReminderState&&_.C((A=this.data)==null?void 0:A.cta,_.l1)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
tK.prototype.videoReminderStateChanged=tK.prototype.videoReminderStateChanged;tK.prototype.onYtToggleButton=tK.prototype.onYtToggleButton;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],tK.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],tK.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.videoReminderEntityKey"],selector:tEu}),_.H("design:type",Object)],tK.prototype,"videoReminderState",void 0);_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],tK.prototype,"onYtToggleButton",null);_.V([_.ev("videoReminderState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tK.prototype,"videoReminderStateChanged",null);
_.V([_.y_({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],tK);
_.Y(tK,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Nvw!==void 0)return Nvw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Nvw=A},{mode:_.sQ("kevlar_poly_si_batch_j065")?1:2});var u0S;var fQ=function(){var A=_.F.apply(this,arguments)||this;A.useYtdPlayer=_.M("use_ytd_player_for_desktop_masthead");A.buttonOverrides={style:"overlay"};A.JSC$15787_playerManager=null;A.JSC$15787_mastheadCounter=new eGK;A.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return A};
_.R(fQ,_.F);_.J=fQ.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$15787_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15787_playerManager=new Sd)};
_.J.ready=function(){var A=this;this.JSC$15787_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var t;(t=this.embeddedPlayer)==null||t.remove()}else{var f;(f=this.ytdPlayer)==null||f.remove();AmS(this.JSC$15787_playerManager,this.embeddedPlayer,function(){A.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){A.data&&A.data.navigationEndpoint&&_.s9(A.hostElement,"yt-navigate",{endpoint:A.data.navigationEndpoint})})}};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15787_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.J.dataChanged=function(){var A=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var t=!this.data.disableAutoPlayback,f,X={autoplay:t,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.hostElement.classList.add(t?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(X);this.setupYtdPlayer()}else fO8(this.JSC$15787_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(ts7(this.JSC$15787_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15787_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.kJ(A.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");A.JSC$15787_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.J.getPlayerPromise=function(){return this.JSC$15787_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(A){this.useYtdPlayer?this.toggleMute(A.detail.toggled):A.detail.toggled?this.JSC$15787_playerManager.mute():this.JSC$15787_playerManager.unMute()};
_.J.onYtNavigate=function(A){var t=Xa5(A.detail.endpoint),f=QBs(this.data.clickthroughReportingData);t&&f&&(A.detail.endpoint.watchEndpoint?A.detail.tempData=f:_.$J(t,f,30))};
_.J.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15787_playerManager.stopVideo()};
_.J.setupYtdPlayer=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return f.yield(A.ytdPlayer.getPlayerPromise(),2);t=f.yieldResult;t.addEventListener("onStateChange",function(X){A.onPlayerStateChange(X)});
t.addEventListener("onCueRangeExit",function(X){A.onCueRangeExit(X)});
_.LO(f)})};
_.J.onPlayerStateChange=function(A){if(A===1&&(A=this.ytdPlayer.getPlayer())){var t=A.getCurrentTime(),f,X,Q=t+((X=(f=this.data)==null?void 0:f.playbackDurationMs)!=null?X:0)/1E3;A.addCueRange("playback",t,Q);_.kJ(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15787_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.J.onCueRangeExit=function(A){A==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(t.ytdPlayer.getPlayerPromise(),2);f=X.yieldResult;A?f.mute():f.unMute();_.LO(X)})};
_.PV.Object.defineProperties(fQ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A,t;if(!((A=this.data)==null?0:(t=A.accessibilityData)==null?0:t.label))return"Ad primary link";var f,X;return _.e5("AD_TITLE",{title:(f=this.data)==null?void 0:(X=f.accessibilityData)==null?void 0:X.label})}}});
fQ.prototype.onYtMastheadHidden=fQ.prototype.onYtMastheadHidden;fQ.prototype.onYtNavigate=fQ.prototype.onYtNavigate;fQ.prototype.onYtToggleButton=fQ.prototype.onYtToggleButton;fQ.prototype.dataChanged=fQ.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],fQ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fQ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],fQ.prototype,"useYtdPlayer",void 0);_.V([_.lo("ytd-toggle-button-renderer"),_.H("design:type",Object)],fQ.prototype,"muteButton",void 0);_.V([_.n(),_.H("design:type",Object)],fQ.prototype,"buttonOverrides",void 0);
_.V([_.y("data.accessibilityData.label"),_.H("design:type",String),_.H("design:paramtypes",[])],fQ.prototype,"titleAriaLabel",null);_.V([_.lo("#replay-button"),_.H("design:type",Object)],fQ.prototype,"replayButton",void 0);_.V([_.lo("#player-container"),_.H("design:type",Object)],fQ.prototype,"playerContainer",void 0);_.V([_.lo("#player"),_.H("design:type",Object)],fQ.prototype,"embeddedPlayer",void 0);_.V([_.lo("#ytd-player"),_.H("design:type",Object)],fQ.prototype,"ytdPlayer",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fQ.prototype,"dataChanged",null);_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],fQ.prototype,"onYtToggleButton",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],fQ.prototype,"onYtNavigate",null);
_.V([_.UQ("yt-masthead-hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fQ.prototype,"onYtMastheadHidden",null);_.V([_.y_({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],fQ);
_.Y(fQ,"ytd-video-masthead-ad-primary-video-renderer",function(){if(u0S!==void 0)return u0S;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return u0S=A},{mode:2});var zff;var XF=function(){var A=_.F.apply(this,arguments)||this;A.collapsed=!1;A.impressionResolver=_.YE();A.JSC$15791_activeViewMeasurementDataResolver=_.YE();A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.R(XF,_.F);_.J=XF.prototype;_.J.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"}}}};
_.J.created=function(){this.activeView=new p2(this.hostElement)};
_.J.ready=function(){var A=this;_.sF(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){A.expandAd()});
this.hostElement.addEventListener("yt-action",function(t){if(t.detail.actionName==="yt-service-request"){var f=t.detail.args[1];f.videoMastheadAdMuteCommand&&(A.collapseAd(f.videoMastheadAdMuteCommand.encryptedMastheadId),t.stopPropagation())}})};
_.J.attached=function(){var A=this;_.FD(function(){A.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(t){if(!A.collapsed){t=_.U(t);for(var f=t.next();!f.done;f=t.next())f=f.value,Qy(f.baseUrl,f.attributionSrcMode);A.data.impressionCommand=void 0}});
this.JSC$15791_activeViewMeasurementDataResolver.promise.then(function(t){EW(A.activeView,t)});
_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&n2(A.activeView)})};
_.J.dataChanged=function(){var A;((A=this.data.impressionCommand)==null?0:A.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var t;((t=this.data)==null?0:t.activeView)&&this.JSC$15791_activeViewMeasurementDataResolver.resolve(this.data.activeView);(A=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(A.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.J.computeWidescreen=function(A){var t;return!!(A&&((t=_.C(A,F1T))==null?0:t.isWidescreen))};
_.J.computeExpandable=function(A){return!!(A&&A.length>0)};
_.J.onIronResize=function(){if(this.expandable){var A=_.sF(this.hostElement).querySelector("#expandable-tile-container :first-child");A&&!A.expanded&&(A.expanded=!0)}};
_.J.handleMuteAd=function(){this.collapseAd(null)};
_.J.restoreCollapsedState=function(A){this.collapsed=_.NJ().get("HIDDEN_MASTHEAD_ID")===A};
_.J.collapseAd=function(A){if(A){var t=_.NJ();t.set("HIDDEN_MASTHEAD_ID",A);t.save()}(A=_.sF(this.hostElement).querySelector("#video"))&&_.s9(A,"yt-masthead-hidden");this.collapsed=!0};
_.J.expandAd=function(){var A=_.NJ();A.set("HIDDEN_MASTHEAD_ID",!1);A.save();location.reload()};
_.J.detached=function(){_.M("stop_av_measurement_on_detach")&&n2(this.activeView)};
XF.prototype.onIronResize=XF.prototype.onIronResize;XF.prototype.dataChanged=XF.prototype.dataChanged;_.V([_.b(_.K9),_.H("design:type",Object)],XF.prototype,"ironResizableBehavior",void 0);_.V([_.b(_.GB),_.H("design:type",Object)],XF.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],XF.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],XF.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.H("design:type",Boolean)],XF.prototype,"widescreen",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.H("design:type",Boolean)],XF.prototype,"expandable",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],XF.prototype,"collapsed",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XF.prototype,"dataChanged",null);_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XF.prototype,"onIronResize",null);_.V([_.y_({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],XF);
_.Y(XF,"ytd-video-masthead-ad-v3-renderer",function(){if(zff!==void 0)return zff;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return zff=A},{mode:2});var Qf=function(){return _.F.apply(this,arguments)||this};
_.R(Qf,_.F);_.J=Qf.prototype;_.J.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.J.ready=function(){var A=this;fVx(function(){A.isAttached&&df(A.JSC$15796_storedAdSlotMetadata,A.JSC$15796_storedAdLayoutMetadata,A.adSlotMetadata,A.adLayoutMetadata)&&$c(oB(),A.JSC$15796_storedAdSlotMetadata,A.JSC$15796_storedAdLayoutMetadata)})};
_.J.attached=function(){df(this.JSC$15796_storedAdSlotMetadata,this.JSC$15796_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Sol(oB(),this.JSC$15796_storedAdSlotMetadata,this.JSC$15796_storedAdLayoutMetadata)};
_.J.detached=function(){df(this.JSC$15796_storedAdSlotMetadata,this.JSC$15796_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$c(oB(),this.JSC$15796_storedAdSlotMetadata,this.JSC$15796_storedAdLayoutMetadata)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15796_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15796_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15796_storedAdLayoutMetadata!==void 0&&this.JSC$15796_storedAdSlotMetadata!==void 0&&$c(oB(),this.JSC$15796_storedAdSlotMetadata,this.JSC$15796_storedAdLayoutMetadata),Sol(oB(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15796_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15796_storedAdSlotMetadata=this.adSlotMetadata)};
_.PV.Object.defineProperties(Qf.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.adLayoutMetadata}}});
Qf.prototype.onAdMetadataChanged=Qf.prototype.onAdMetadataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Qf.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Qf.prototype,"data",void 0);_.V([_.y("data.adLayoutMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qf.prototype,"adLayoutMetadata",null);
_.V([_.n(),_.H("design:type",Object)],Qf.prototype,"adSlotMetadata",void 0);_.V([_.ev("adLayoutMetadata","adSlotMetadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qf.prototype,"onAdMetadataChanged",null);_.V([_.y_({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Qf);
_.Y(Qf,"ytd-page-top-ad-layout-renderer",function(){if(UjT!==void 0)return UjT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return UjT=
A},{mode:_.sQ("kevlar_poly_si_batch_j070")?1:2});var PTK;var qm=function(){var A=_.F.apply(this,arguments)||this;A.noBottomMargin=!1;A.overlayDensity=0;A.typographyBump=!1;A.extractOverlay=!1;A.extractActionBar=!1;return A};
_.R(qm,_.F);_.J=qm.prototype;
_.J.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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.J.ready=function(){var A=this;fVx(function(){A.isAttached&&A.adSlotMetadata&&dOC(oB(),A.adSlotMetadata)})};
_.J.attached=function(){if(this.adSlotMetadata){var A;if(this.adSlotMetadata===((A=this.data)==null?void 0:A.adSlotMetadata))onE(oB(),this.adSlotMetadata);else{var t;_.K4(Error("Ph`"+this.adSlotMetadata+"`"+((t=this.data)==null?void 0:t.adSlotMetadata)))}}};
_.J.detached=function(){this.adSlotMetadata&&dOC(oB(),this.adSlotMetadata)};
_.J.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.J.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&dOC(oB(),this.adSlotMetadata),onE(oB(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.PV.Object.defineProperties(qm.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var A,t,f=_.C((A=this.data)==null?void 0:(t=A.fulfillmentContent)==null?void 0:t.fulfilledLayout,_.xH7),X;return(A=(X=_.C(f==null?void 0:f.renderingContent,Izk))==null?void 0:X.layout)?A.toLowerCase().replace(/_/g,"-"):""}}});
qm.prototype.onAdSlotMetadataChanged=qm.prototype.onAdSlotMetadataChanged;qm.prototype.onTypographyBumpChanged=qm.prototype.onTypographyBumpChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],qm.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qm.prototype,"rendererBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],qm.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],qm.prototype,"noBottomMargin",void 0);_.V([_.n(),_.H("design:type",Object)],qm.prototype,"overlayDensity",void 0);_.V([_.n(),_.H("design:type",Object)],qm.prototype,"typographyBump",void 0);_.V([_.n(),_.H("design:type",Object)],qm.prototype,"extractOverlay",void 0);_.V([_.n(),_.H("design:type",Object)],qm.prototype,"extractActionBar",void 0);
_.V([_.lo("ytd-in-feed-ad-layout-renderer"),_.H("design:type",HTMLElement)],qm.prototype,"inFeedAdLayoutRenderer",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],qm.prototype,"layout",null);_.V([_.ev("typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qm.prototype,"onTypographyBumpChanged",null);
_.V([_.ev("data.adSlotMetadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qm.prototype,"onAdSlotMetadataChanged",null);_.V([_.y_({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],qm);
_.Y(qm,"ytd-ad-slot-renderer",function(){if(PTK!==void 0)return PTK;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return PTK=A},{mode:_.sQ("kevlar_poly_si_batch_j077")?
1:2});var TvK;var JK=function(){return _.F.apply(this,arguments)||this};
_.R(JK,_.F);_.J=JK.prototype;_.J.created=function(){this.activeView=new p2(this.hostElement)};
_.J.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"}}}};
_.J.maybeComputeHref=function(){return null};
_.J.onTap=function(){};
_.J.onThumbnailContainerClick=function(A){this.onClick(A)};
_.J.onClick=function(A){var t,f=(t=this.data)==null?void 0:t.navigationEndpoint;f&&_.C(f,_.ZT)&&(this.ytSparklesClickLocationBehavior.handleClick(f,A,!1),A.stopPropagation())};
_.J.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var A=_.U(this.data.impressionUrls),t=A.next();!t.done;t=A.next())t=t.value,dLb(t,$L0(t));this.data.activeView&&EW(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",JK.JSC$15804_DEFAULT_CLICK_LOCATION_BEHAVIOR,JK.JSC$15804_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"))}};
_.J.attached=function(){var A=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&n2(A.activeView)})};
_.J.detached=function(){_.M("stop_av_measurement_on_detach")&&n2(this.activeView)};
_.PV.Object.defineProperties(JK.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
JK.prototype.dataChanged=JK.prototype.dataChanged;JK.prototype.onTap=JK.prototype.onTap;JK.JSC$15804_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
JK.JSC$15804_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"}];_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],JK.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],JK.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],JK.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.n({selector:_.y6}),_.H("design:type",Object)],JK.prototype,"isGridViewEnabled",void 0);_.V([_.y("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],JK.prototype,"watchFeedBigThumbs",null);_.V([_.y("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],JK.prototype,"thumbnailWidth",null);_.V([_.n(),_.H("design:type",Object)],JK.prototype,"data",void 0);
_.V([_.lo("ytd-thumbnail"),_.H("design:type",HTMLElement)],JK.prototype,"thumbnail",void 0);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JK.prototype,"onTap",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JK.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],JK);
_.Y(JK,"ytd-compact-promoted-video-renderer",function(){if(TvK!==void 0)return TvK;var A=document.createElement("template");_.m(A,'\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<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" 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" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" 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</div>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return TvK=A},{mode:1});var itK;_.C1("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var UR=function(){return _.F.apply(this,arguments)||this};
_.R(UR,_.F);UR.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],UR.prototype,"data",void 0);_.V([_.y_({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],UR);
_.Y(UR,"ytd-search-pyv-renderer",function(){if(itK!==void 0)return itK;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return itK=A},{mode:1});var Otb;_.C1("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var eA=function(){var A=_.F.apply(this,arguments)||this;A.roundedContainer=!0;A.JSC$15812_handleOpenPostCommentDialogActionAfterStamp=!1;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.R(eA,_.F);_.J=eA.prototype;
_.J.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}}};
_.J.onStampFinished=function(){this.JSC$15812_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var A=_.sF(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");A?A.openDialog():this.JSC$15812_handleOpenPostCommentDialogActionAfterStamp=!0};
_.J.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.J.computeHideBorder=function(){return this.isInEngagementPanel};
_.J.computeIsCompact=function(){return this.isInEngagementPanel};
_.J.computeUsesCompactLockup=function(A){return A==="BACKSTAGE_SURFACE_TYPE_HOME"||A==="BACKSTAGE_SURFACE_TYPE_SEARCH"||A==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||A==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||A==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||A==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.J.computeUsesFullLockup=function(){var A,t=(A=this.data)==null?void 0:A.post,f;A=(f=_.C(t,w0k))==null?void 0:f.surface;var X;f=(X=_.C(t,r9l))==null?void 0:X.originalPost;var Q;if(X=A||((Q=_.C(f,w0k))==null?void 0:Q.surface))return!this.computeUsesCompactLockup(X)&&this.useUpdatedRepostUi;var q;return((q=_.C(t,r9l))==null?void 0:q.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.PV.Object.defineProperties(eA.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var A,t;return((t=_.C((A=this.data)==null?void 0:A.post,w0k))==null?void 0:t.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.useUpdatedRepostUi}}});
eA.prototype.onYtCommentModerationPanelEmpty=eA.prototype.onYtCommentModerationPanelEmpty;eA.prototype.onStampFinished=eA.prototype.onStampFinished;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],eA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],eA.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],eA.prototype,"roundedContainer",void 0);_.V([_.n({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.H("design:type",Boolean)],eA.prototype,"hideBorder",void 0);_.V([_.n({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.H("design:type",Boolean)],eA.prototype,"isCompact",void 0);
_.V([_.n({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.H("design:type",Boolean)],eA.prototype,"usesFullLockup",void 0);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eA.prototype,"onStampFinished",null);
_.V([_.UQ("ytd-comment-moderation-panel-empty"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],eA.prototype,"onYtCommentModerationPanelEmpty",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],eA.prototype,"isInEngagementPanel",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],eA.prototype,"useUpdatedRepostUi",null);
_.V([_.y_({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],eA);
_.Y(eA,"ytd-backstage-post-thread-renderer",function(){if(Otb!==void 0)return Otb;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Otb=A},{mode:1});var cyT;var GA=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(GA,_.F);GA.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
GA.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var A=this.data.thumbnail.thumbnails;this.isDarkTheme&&(A=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(A=_.a8(A,24,void 0,"height"))?A:void 0}};
GA.prototype.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
GA.prototype.computeHasText=function(){var A;return!((A=this.data)==null||!A.text)};
_.PV.Object.defineProperties(GA.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.of(this.bannerImageUrl))+'");'}}});
GA.prototype.computeHasText=GA.prototype.computeHasText;GA.prototype.computeBannerImageUrl=GA.prototype.computeBannerImageUrl;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],GA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],GA.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],GA.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],GA.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",String)],GA.prototype,"bannerImageUrl",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.H("design:type",Boolean)],GA.prototype,"hasText",void 0);_.V([_.ev("data","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GA.prototype,"computeBannerImageUrl",null);
_.V([_.ev("data.text"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GA.prototype,"computeHasText",null);_.V([_.y("bannerImageUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],GA.prototype,"bannerStyle",null);_.V([_.y_({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],GA);
_.Y(GA,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(cyT!==void 0)return cyT;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return cyT=A},{mode:1});var BvS;var lv=function(){return _.F.apply(this,arguments)||this};
_.R(lv,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],lv.prototype,"data",void 0);_.V([_.y_({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],lv);
_.Y(lv,"ytd-backstage-zero-state-renderer",function(){if(BvS!==void 0)return BvS;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return BvS=A},{mode:1});var M_T;var Nm=function(){return _.F.apply(this,arguments)||this};
_.R(Nm,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Nm.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],Nm.prototype,"icon",void 0);_.V([_.y_({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Nm);
_.Y(Nm,"ytd-post-filter-zero-state-renderer",function(){if(M_T!==void 0)return M_T;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return M_T=A},{mode:1});var CTT;var hfp={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},uv=function(){return _.F.apply(this,arguments)||this};
_.R(uv,_.F);uv.prototype.configureRendererStamper=function(){return hfp};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],uv.prototype,"rendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],uv.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],uv.prototype,"icon",void 0);_.V([_.y_({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],uv);
_.Y(uv,"ytd-post-scheduling-zero-state-renderer",function(){if(CTT!==void 0)return CTT;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return CTT=A},{mode:1});var Rfp;var zA=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return A};
_.R(zA,_.F);zA.prototype.onTabsActivate=function(A){this.data&&this.data.tabs&&_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[A.detail.selected].navigationEndpoint})};
zA.prototype.shouldShowTotalCount=function(A){return A&&A.totalCount!==void 0};
zA.prototype.handleUpdatePostsTotalCountAction=function(A){var t=this.get(["data.tabs",1,"totalCount"]),f=this.get("updatePostsTotalCountAction.updateType",A);A=this.get("updatePostsTotalCountAction.number",A);t!==void 0&&f!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&A&&(f==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(t)+A):f==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(t)-A))};
_.PV.Object.defineProperties(zA.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var A=0,t=this.data.tabs.length;A<t;A++)if(this.data.tabs[A].selected)return A;return 0}}});
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],zA.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],zA.prototype,"rendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],zA.prototype,"data",void 0);_.V([_.y("data.tabs"),_.H("design:type",Number),_.H("design:paramtypes",[])],zA.prototype,"selected",null);_.V([_.y_({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],zA);
_.Y(zA,"ytd-post-stream-filter-renderer",function(){if(Rfp!==void 0)return Rfp;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Rfp=A},{mode:1});var mjS;var Pl=function(){return _.F.apply(this,arguments)||this};
_.R(Pl,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Pl.prototype,"kevlarBehaviors",void 0);_.V([_.n(),_.H("design:type",Object)],Pl.prototype,"data",void 0);_.V([_.y_({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Pl);
_.Y(Pl,"ytd-channel-age-gate-renderer",function(){if(mjS!==void 0)return mjS;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return mjS=A},{mode:1});var btl;_.C1("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var TA=function(){var A=_.F.apply(this,arguments)||this;A.data=null;return A};
_.R(TA,_.F);TA.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.PV.Object.defineProperties(TA.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.data)==null?0:(t=A.title)==null?0:(f=t.runs)==null?0:f.length)?147:160}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],TA.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],TA.prototype,"imageSizePx",null);_.V([_.y_({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],TA);
_.Y(TA,"ytd-channel-owner-empty-state-renderer",function(){if(btl!==void 0)return btl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return btl=A},{mode:1});var W4i;var yyK;var iv=function(){var A=_.F.apply(this,arguments)||this;A.boundSubmitSearch=function(){A.submitSearch()};
A.boundClearSearch=function(){A.clearSearch()};
return A};
_.R(iv,_.F);_.J=iv.prototype;_.J.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]]"}}}}}};
_.J.toggleClearButton=function(){this.hideClearButton=HgT||!this.input.value};
_.J.submitOnEnterKeyUp=function(A){A.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.J.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.J.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.J.submit=function(){_.s9(this.hostElement,"search-query-changed",this.input.value)};
iv.prototype.toggleClearButton=iv.prototype.toggleClearButton;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],iv.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],iv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],iv.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],iv.prototype,"hideClearButton",void 0);_.V([_.n(),_.H("design:type",Object)],iv.prototype,"boundSubmitSearch",void 0);_.V([_.n(),_.H("design:type",Object)],iv.prototype,"boundClearSearch",void 0);_.V([_.lo("#input"),_.H("design:type",Object)],iv.prototype,"input",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iv.prototype,"toggleClearButton",null);
_.V([_.y_({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],iv);
_.Y(iv,"ytd-channel-switcher-search-box-renderer",function(){if(yyK!==void 0)return yyK;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return yyK=A},{mode:1});var vvf;var OR=function(){var A=_.F.apply(this,arguments)||this;A.boundSubmit=function(){A.submit()};
return A};
_.R(OR,_.F);_.J=OR.prototype;_.J.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"}}}}};
_.J.ready=function(){var A=this;this.form.addEventListener("submit",function(t){return A.onSubmit(t)})};
_.J.onSubmit=function(A){A.preventDefault();return!1};
_.J.toggleClearButton=function(){this.hideClearButton=HgT||!this.input.value};
_.J.submitOnEnterKeyUp=function(A){A.keyCode===13&&this.submit()};
_.J.submit=function(){var A=this.data.endpoint,t=(0,_.VG.unsafeClone)(A);_.C(t,_.GD)?_.C(t,_.GD).query=this.input.value:_.C(t,_.lY)&&(_.C(t,_.lY).query=this.input.value);var f=_.C(t.commandMetadata,_.Jl);(f==null?0:f.url)?(f.url=_.kB(f.url,"query",this.input.value),_.s9(this.hostElement,"yt-navigate",{endpoint:t})):_.C(t,vdk)?(_.C(t,vdk).channelSwitcherQuery=this.input.value,_.Px().resolve(_.i2).resolveCommand(t,{form:{element:this.hostElement}})):(A=Error("Qh`"+JSON.stringify(A)),_.HQ(A))};
_.J.getUrl=function(A){return this.get("commandMetadata.webCommandMetadata.url",A)};
OR.prototype.toggleClearButton=OR.prototype.toggleClearButton;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],OR.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],OR.prototype,"hideClearButton",void 0);
_.V([_.n(),_.H("design:type",Object)],OR.prototype,"boundSubmit",void 0);_.V([_.lo("#form"),_.H("design:type",HTMLFormElement)],OR.prototype,"form",void 0);_.V([_.lo("#input"),_.H("design:type",Object)],OR.prototype,"input",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OR.prototype,"toggleClearButton",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],OR);
_.Y(OR,"ytd-search-box-renderer",function(){if(vvf!==void 0)return vvf;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return vvf=A},{mode:2});var cl=function(){var A=_.F.apply(this,arguments)||this;A.showSearchBox=!0;return A};
_.R(cl,_.F);cl.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cl.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],cl.prototype,"showSearchBox",void 0);_.V([_.y_({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],cl);
_.Y(cl,"ytd-channel-switcher-header-renderer",function(){if(W4i!==void 0)return W4i;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return W4i=A},{mode:1});var L4T;var p67;var Bl=function(){var A=_.F.apply(this,arguments)||this;A.isDisplayed=!0;return A};
_.R(Bl,_.F);_.J=Bl.prototype;_.J.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.isDisplayed=!0};
_.J.computeType=function(A){return A||"UNKNOWN"};
_.J.onYtServiceRequestCompleted=function(A){A.stopPropagation();this.isDisplayed=!1};
_.J.onClose=function(){this.isDisplayed=!1};
Bl.prototype.onYtServiceRequestCompleted=Bl.prototype.onYtServiceRequestCompleted;Bl.prototype.dataChanged=Bl.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Bl.prototype,"data",void 0);
_.V([_.n({computed:"computeType(data.type)",reflectToAttribute:!0}),_.H("design:type",String)],Bl.prototype,"type",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Bl.prototype,"isDisplayed",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bl.prototype,"dataChanged",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Bl.prototype,"onYtServiceRequestCompleted",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Bl);
_.Y(Bl,"ytd-alert-with-button-renderer",function(){if(p67!==void 0)return p67;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return p67=A},{mode:1});var Mm=function(){var A=_.F.apply(this,arguments)||this;A.noResult=!1;A.enableAlertBanner=!1;A.dismissedAlertBanner=!1;A.hideCreateChannelButton=!1;A.boundDismissAlertBanner=function(){A.dismissAlertBanner()};
A.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return A};
_.R(Mm,_.F);_.J=Mm.prototype;_.J.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.J.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.J.updateChannelSwitcherAction=function(A){var t;A=(t=_.C(A,mhT))==null?void 0:t.page;_.C(A,R2T)!==void 0&&(this.data=_.C(A,R2T))};
_.J.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]]"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.searchQueryChanged=function(A,t){if(this.data&&this.data.contents&&this.data.contents.length){A=[];var f=[];this.hideCreateChannelButton=this.noResult=!1;for(var X=document.querySelectorAll("ytd-account-item-renderer"),Q=_.U(X),q=Q.next();!q.done;q=Q.next())q=q.value,f.push(q),q.style.display="block";this.resetRightBorder(f);if(t){this.hideCreateChannelButton=!0;for(f=1;f<this.data.contents.length;f++)if(q=this.data.contents[f],_.C(q,br7)){var e=void 0,G=void 0;Q=(e=_.C(q,br7))==null?void 0:(G=
e.accountName)==null?void 0:G.simpleText;G=e=void 0;q=(e=_.C(q,br7))==null?void 0:(G=e.channelHandle)==null?void 0:G.simpleText;(e=X[f-1])&&Q&&_.uu(Q,t)?A.push(e):_.M("enable_handle_search_on_channel_switcher")&&e&&q&&_.uu(q.toString(),t.toString())?A.push(e):e.style.display="none"}A.length===0&&(this.noResult=!0);this.resetRightBorder(A)}}};
_.J.resetRightBorder=function(A){for(var t=0;t<A.length;t++)A[t].style.borderRight=!this.hideCreateChannelButton&&(t+2)%3===0||this.hideCreateChannelButton&&(t+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.J.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.J.setShowSearchBox=function(A){if(A&&A.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var t=0;t<A.contents.length;t++)_.C(A.contents[t],_.H$)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.J.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.PV.Object.defineProperties(Mm.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.contents)}}});
Mm.prototype.onContinuationItemsUpdated=Mm.prototype.onContinuationItemsUpdated;Mm.prototype.searchQueryChanged=Mm.prototype.searchQueryChanged;Mm.prototype.onDataChanged=Mm.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Mm.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Mm.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.Ba),_.H("design:type",Object)],Mm.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Mm.prototype,"data",void 0);_.V([_.lo("ytd-channel-switcher-header-renderer"),_.H("design:type",Object)],Mm.prototype,"channelSwitcherHeaderRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],Mm.prototype,"noResult",void 0);
_.V([_.n(),_.H("design:type",Object)],Mm.prototype,"enableAlertBanner",void 0);_.V([_.n(),_.H("design:type",Object)],Mm.prototype,"dismissedAlertBanner",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Mm.prototype,"hideCreateChannelButton",void 0);_.V([_.y("data.contents"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Mm.prototype,"isLoading",null);_.V([_.n(),_.H("design:type",Object)],Mm.prototype,"boundDismissAlertBanner",void 0);
_.V([_.n({computed:"computeButtonOverride()"}),_.H("design:type",Object)],Mm.prototype,"buttonOverride",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mm.prototype,"onDataChanged",null);_.V([_.UQ("search-query-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,String]),_.H("design:returntype")],Mm.prototype,"searchQueryChanged",null);
_.V([_.UQ("yt-next-continuation-data-updated"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Mm.prototype,"onContinuationItemsUpdated",null);_.V([_.y_({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Mm);
_.Y(Mm,"ytd-channel-switcher-page-renderer",function(){if(L4T!==void 0)return L4T;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return L4T=A},{mode:1});var Evp;var nv8;var CQ=function(){var A=_.F.apply(this,arguments)||this;A.images=[];A.selectedImageIndex=0;return A};
_.R(CQ,_.F);_.J=CQ.prototype;
_.J.ready=function(){_.TV(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.TV(this.JSC$15857_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.TV(this.JSC$15857_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.TV(this.JSC$15857_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.J.onThumbnailClick=function(A){if(A=A.event_.detail)this.selectedImageIndex=this.images.indexOf(A)};
_.J.updateImageThumbnails=function(A){A=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:A.event_.detail});this.images.splice(this.selectedImageIndex,1,A);this.images=[].concat(_.YV(this.images))};
_.J.cancelImageRepositions=function(){this.selectedImageIndex=0;_.s9(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.J.saveImageRepositions=function(){this.selectedImageIndex=0;_.s9(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.PV.Object.defineProperties(CQ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var A=this;return(this.images||[]).map(function(t,f){return{image:t,selected:f===A.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.lo("ytd-backstage-image-preview-renderer"),_.H("design:type",Object)],CQ.prototype,"JSC$15857_imagePreviewContainer",void 0);_.V([_.lo(".thumbnail-images-container"),_.H("design:type",HTMLElement)],CQ.prototype,"thumbnailImagesContainer",void 0);_.V([_.n(),_.H("design:type",Array)],CQ.prototype,"images",void 0);
_.V([_.n(),_.H("design:type",Object)],CQ.prototype,"repositionInstructions",void 0);_.V([_.n(),_.H("design:type",Object)],CQ.prototype,"selectedImageIndex",void 0);_.V([_.y("images","selectedImageIndex"),_.H("design:type",Array),_.H("design:paramtypes",[])],CQ.prototype,"thumbnailRendererDatas",null);_.V([_.y("images","selectedImageIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],CQ.prototype,"selectedImageData",null);
_.V([_.y_({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],CQ);
_.Y(CQ,"ytd-backstage-multi-image-reposition-renderer",function(){if(nv8!==void 0)return nv8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return nv8=A},{mode:1});var hK=function(A,t){_.p_.call(this);this.uploadUrl=A;this.channelId=t;this.imagesUploadData=[]};
_.R(hK,_.p_);hK.prototype.getAllUploadStatuses=function(){var A=this,t,f,X;return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(Dj8(A),2);t=Q.yieldResult;f=t.get("succeed");X=t.get("failed");return Q.return(f.concat(X))})};
var IJi=function(A){var t,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(Dj8(A),2);t=X.yieldResult;f=t.get("failed");f.length>0&&F4k(A,f);return X.return(A.getAllUploadStatuses())})},Dj8=function(A){var t,f,X,Q,q,e,G;
return _.l(function(N){if(N.nextAddress==1)return t=new Map,N.yield(Promise.allSettled(A.imagesUploadData.map(function(z){return z.uploadPromise})),2);
f=N.yieldResult;X=[];Q=_.U(f);for(q=Q.next();!q.done;q=Q.next())e=q.value,e.status==="fulfilled"&&X.push(e.value);G=A.imagesUploadData.map(function(z){return z.image}).filter(function(z){return X.every(function(T){return T.id!==z.id})});
t.set("succeed",X);t.set("failed",G);return N.return(t)})},F4k=function(A,t){t=_.U(t);
for(var f=t.next();!f.done;f=t.next()){var X=A;f=f.value;xjC(X,f.id)>=0&&X.cancel(f.id);var Q=new jKw(f),q=_.Pe7(X.uploadUrl,{"X-YouTube-ChannelId":X.channelId},f.imageBlob);Q.transfer=q;Q.uploadPromise=YqC(q,f);X.imagesUploadData.push(Q);q.run()}};
hK.prototype.cancel=function(A){var t=xjC(this,A);t!==-1&&((t=this.imagesUploadData[t].transfer)&&t.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(f){return f.image.id!==A}))};
var xjC=function(A,t){return A.imagesUploadData.findIndex(function(f){return f.image.id===t})},YqC=function(A,t){return new Promise(function(f,X){A.listen("l",function(){var Q=A.getResponseText();
Q?(Q=JSON.parse(Q).encryptedBlobId,t.encryptedBlobId=Q,f(t)):X("upload failed")});
A.listen("n",function(){X("upload failed")})})},jKw=function(A){this.image=A};var Ho5=function(A,t,f,X,Q){this.id=A;this.imageBlob=t;this.localImageSrc=f;this.naturalWidth=X;this.naturalHeight=Q;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 V_8=[".jpeg",".jpg",".png"],RV=function(){var A=_.F.apply(this,arguments)||this;A.showImagesPreview=!1;A.pollOptions=[];A.errorMessage="";A.optionPlaceholderText="";A.optionDefaultText="";A.JSC$15868_imageId=0;A.maxFileSizeMb=0;A.maxAspectRatio=0;A.invalidFileSizeError="";A.invalidAspectRatioError="";A.invalidFileTypeError="";A.imageSelector=new Ew(null,"single_file",V_8);return A};
_.R(RV,_.F);_.J=RV.prototype;_.J.ready=function(){_.TV(this.imageSelector,"j",this.onImageSelect,!1,this);_.TV(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.TV(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.J.dataChanged=function(){var A,t,f=_.C((A=this.data)==null?void 0:(t=A.cellTemplate)==null?void 0:t.onEmptyCellTap,Q4E);if(f&&f.uploadUrl&&f.channelId){var X;this.maxFileSizeMb=((X=f.imageValidationInfo)==null?void 0:X.maxFileSizeMb)||0;var Q;this.maxAspectRatio=((Q=f.imageValidationInfo)==null?void 0:Q.allowedMaxAspectRatio)||0;var q;this.invalidFileSizeError=this.getSimpleString((q=this.data)==null?void 0:q.invalidFileSizeError);var e;this.invalidAspectRatioError=this.getSimpleString((e=this.data)==
null?void 0:e.invalidAspectRatioError);var G;this.invalidFileTypeError=this.getSimpleString((G=this.data)==null?void 0:G.invalidFileTypeError);this.uploadManager=new hK(f.uploadUrl,f.channelId)}};
_.J.onEditorInfoChange=function(){this.optionPlaceholderText=_.dF(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.dF(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.J.observeAddImageError=function(){this.errorMessage!==""&&_.s9(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.J.onPollOptionsChange=function(){for(var A=!1,t=[],f=0;f<this.pollOptions.length;f++){var X=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(f+1);this.pollOptions[f].placeholderText!==X?(A=!0,t.push(Object.assign({},this.pollOptions[f],{placeholderText:X}))):t.push(this.pollOptions[f])}A&&(this.pollOptions=t);this.isValid()?_.s9(this.hostElement,"yt-commentbox-post-enable"):_.s9(this.hostElement,"yt-commentbox-post-disable")};
_.J.createPollOptions=function(A){var t=[],f;A=(f=A==null?void 0:A.minPollOptions)!=null?f:0;for(f=0;f<A;f++)t.push(this.createPollOption());return t};
_.J.onImageSelect=function(A){var t=this,f,X,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1){if(t.selectedImageIndex===void 0)return N.jumpTo(0);f=A.files[0];t.errorMessage="";X=t.validateImage(f);if(X!=="")return t.errorMessage=X,N.return();Q=new Cl(t.maxAspectRatio,!1,!0);return N.yield(Q.transform(f),3)}if(N.nextAddress!=4)return q=N.yieldResult,q.transformedData?q.invalidAspectRatio?(t.errorMessage=t.invalidAspectRatioError,N.return()):N.yield(a5s(t.JSC$15868_imageId,A.files[0],q.transformedData),
4):(t.errorMessage=t.invalidFileTypeError,N.return());e=N.yieldResult;t.JSC$15868_imageId++;F4k(t.uploadManager,[e]);G=Object.assign({},t.pollOptions[t.selectedImageIndex],{image:e});t.pollOptions.splice(t.selectedImageIndex,1,G);t.refreshPollOptions();_.s9(t.hostElement,"yt-backstage-poll-image-select");_.LO(N)})};
_.J.validateImage=function(A){return A.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.J.refreshPollOptions=function(){this.pollOptions=[].concat(_.YV(this.pollOptions))};
_.J.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.YV(this.pollOptions),[this.createPollOption()]))};
_.J.onRemovePollOption=function(A){var t=this.pollOptions[A.model.index];t&&t.image&&this.uploadManager.cancel(t.image.id);this.pollOptions.splice(A.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.s9(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.J.onTextInput=function(){this.refreshPollOptions()};
_.J.onImageButtonClick=function(A){this.selectedImageIndex=A.model.index;this.imageSelector.click()};
_.J.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.J.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.J.saveImageRepositions=function(A){A=A.event_.detail;for(var t=0,f=[],X=_.U(this.pollOptions),Q=X.next();!Q.done;Q=X.next())Q=Q.value,Q.image!==void 0?(Q=Object.assign({},Q,{image:A[t]}),f.push(Q),t++):f.push(Q);this.showImagesPreview=!1;this.pollOptions=[].concat(_.YV(f))};
_.J.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 A=0,t=_.U(this.pollOptions),f=t.next();!f.done;f=t.next())if(f=f.value,f.optionText.trim()!==""||f.image!==void 0){if(!f.image||this.hasCustomOptionText&&f.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;A++}return A>=Number(this.editorInfo.minPollOptions)};
_.J.getAllUploadStatuses=function(){var A=this,t,f,X,Q;return _.l(function(q){if(q.nextAddress==1)return q.yield(A.uploadManager.getAllUploadStatuses(),2);t=q.yieldResult;f=_.U(t);for(X=f.next();!X.done;X=f.next())if(Q=X.value,Q.encryptedBlobId===void 0)return q.return(IJi(A.uploadManager));return q.return(t)})};
_.J.getPostCreateOptions=function(){for(var A=[],t=_.U(this.pollOptions),f=t.next();!f.done;f=t.next())f=f.value,f.image!==void 0&&A.push({text:this.hasCustomOptionText?f.optionText:f.placeholderText,image:f.image});return A};
_.J.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.J.createButtonRenderer=function(A,t){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:A,accessibilityData:{accessibilityData:{label:this.getSimpleString(A)}},isDisabled:t}};
_.J.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.J.computeThumbnailRendererData=function(A){return A?{image:A,selected:!1}:void 0};
_.J.getSimpleString=function(A){return _.dF(A)};
_.J.updateOptionTextFromBinding=function(A){if(A.target){var t=Array.from(_.sF(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(A.target);if(t>=0){var f;this.pollOptions[t].optionText=(f=A.detail.value)!=null?f:""}}};
_.PV.Object.defineProperties(RV.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var A,t;return this.pollOptions.length<((t=(A=this.editorInfo)==null?void 0:A.maxPollOptions)!=null?t:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(A){return A.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(A){return A.image}).map(function(A){return A.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(A){return A.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var A,t=(A=this.data)==null?void 0:A.addOptionButtonText;return t?this.createButtonRenderer(t,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var A,t=(A=this.data)==null?void 0:A.repositionImagesButtonLabel;return t?this.createButtonRenderer(t,!this.hasImages):void 0}}});
RV.prototype.onPollOptionsChange=RV.prototype.onPollOptionsChange;RV.prototype.observeAddImageError=RV.prototype.observeAddImageError;RV.prototype.onEditorInfoChange=RV.prototype.onEditorInfoChange;RV.prototype.dataChanged=RV.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.lo("ytd-backstage-multi-image-reposition-renderer"),_.H("design:type",Object)],RV.prototype,"imageRepositionContainer",void 0);
_.V([_.n(),_.H("design:type",Object)],RV.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],RV.prototype,"editorInfo",void 0);_.V([_.n(),_.H("design:type",hK)],RV.prototype,"uploadManager",void 0);_.V([_.n(),_.H("design:type",Object)],RV.prototype,"showImagesPreview",void 0);_.V([_.n(),_.H("design:type",Array)],RV.prototype,"pollOptions",void 0);_.V([_.n(),_.H("design:type",Object)],RV.prototype,"errorMessage",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RV.prototype,"dataChanged",null);_.V([_.PU("editorInfo"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RV.prototype,"onEditorInfoChange",null);_.V([_.ev("errorMessage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RV.prototype,"observeAddImageError",null);
_.V([_.PU("pollOptions"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RV.prototype,"onPollOptionsChange",null);_.V([_.y("pollOptions","editorInfo"),_.H("design:type",Object),_.H("design:paramtypes",[])],RV.prototype,"isAllowedToAddOption",null);_.V([_.y("pollOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],RV.prototype,"hasImages",null);
_.V([_.y("pollOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],RV.prototype,"imagesToReposition",null);_.V([_.y("pollOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],RV.prototype,"hasCustomOptionText",null);_.V([_.y("data","isAllowedToAddOption"),_.H("design:type",Object),_.H("design:paramtypes",[])],RV.prototype,"addOptionButton",null);_.V([_.y("data","hasImages"),_.H("design:type",Object),_.H("design:paramtypes",[])],RV.prototype,"repositionImagesButton",null);
_.V([_.y_({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],RV);
_.Y(RV,"ytd-backstage-image-poll-editor-renderer",function(){if(Evp!==void 0)return Evp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Evp=A},{mode:2});var ZtT={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 ovS;var mT=function(){var A=_.F.apply(this,arguments)||this;A.a11yConfig=ZtT;A.imageDisplayOffsetTop=0;A.imageDisplayOffsetLeft=0;A.pickerDisplayOffsetTop=0;A.pickerDisplayOffsetLeft=0;A.showPreviewContainer=!0;A.startPicker=!1;A.repositionOptional=!1;A.editOnlyMode=!1;A.savedImageDisplayOffsetTop=0;A.savedImageDisplayOffsetLeft=0;return A};
_.R(mT,_.F);_.J=mT.prototype;_.J.created=function(){_.q2.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(A){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){A.detail.keyboardEvent.preventDefault();var t=0,f=0,X="";switch(A.detail.keyboardEvent.key){case "ArrowUp":KFs(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?X=this.a11yConfig.reachBottomOfImage:t=this.imageHeight*.05*-1;break;case "ArrowDown":KFs(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?X=this.a11yConfig.reachTopOfImage:
t=this.imageHeight*.05;break;case "ArrowLeft":KFs(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?X=this.a11yConfig.reachRightOfImage:f=this.imageWidth*.05*-1;break;case "ArrowRight":KFs(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?X=this.a11yConfig.reachLeftOfImage:f=this.imageWidth*.05}X&&_.e5(X)&&_.s9(this.hostElement,"iron-announce",{text:_.e5(X)});if(f||t)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+t)),A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),A=_.e5(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+f)),A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),A=_.e5(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})),A&&_.s9(this.hostElement,"iron-announce",{text:A})}};
_.J.getPreviewPosition=function(A,t,f,X){return Math.round(100*(A+t*.5-f)/X)};
_.J.calculateDisplayPosition=function(){var A=this.imageData.naturalWidth,t=this.imageData.naturalHeight;this.displayScale=Math.max(200/A,200/t);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var f=A*this.displayScale*this.imageData.previewCoordinates.left,X=t*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=t>A?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-f;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=A>t?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-X;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=A*this.displayScale;this.imageHeight=t*this.displayScale};
_.J.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.J.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.J.getSignedPosition=function(A,t,f){return t==="X"&&_.ah("HTML_DIR")==="rtl"?f==="-"?A+"px":A*-1+"px":f==="-"?A*-1+"px":A+"px"};
_.J.pickerMove=function(A){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var t=this.pickerOffsetX-A.clientX,f=this.pickerOffsetY-A.clientY;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
f)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-t))}};
_.J.pickerMoveStart=function(A){this.startPicker=!0;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var A=this.generateCropPreview();A&&_.s9(this.hostElement,"ytd-backstage-image-preview-coordinates-update",A)};
_.J.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.s9(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.J.deleteImage=function(){_.s9(this.hostElement,"ytd-backstage-image-preview-delete")};
_.J.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.J.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var A=this.generateCropPreview();A&&_.s9(this.hostElement,"ytd-backstage-image-preview-coordinates-save",A)};
_.J.getPreviewOffset=function(A,t,f){return t&&A?(f==="X"&&_.ah("HTML_DIR")==="rtl"?300/t*A:300/t*A*-1)+"px":"0px"};
_.J.getSimpleText=function(A){return A?_.dF(A):""};
_.J.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}};
_.PV.Object.defineProperties(mT.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.e5(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.e5(this.a11yConfig.verticalRepositionInstruction)}A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.e5(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.e5(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 A,t,f=(A=this.instruction)==null?void 0:(t=A.previewInstruction)==null?void 0:t.editButtonLabel;return f?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleText(f)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X,Q=this.editOnlyMode?(A=this.instruction)==null?void 0:(t=A.editInstruction)==null?void 0:t.saveImagesButtonLabel:(f=this.instruction)==null?void 0:(X=f.editInstruction)==null?void 0:X.saveButtonLabel;return Q?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Q,accessibilityData:{accessibilityData:{label:this.getSimpleText(Q)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(A=this.instruction)==null?void 0:(t=A.previewInstruction)==null?void 0:t.deleteButtonLabel;return f?{size:"SIZE_SMALL",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleText(f)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(A=this.instruction)==null?void 0:(t=A.editInstruction)==null?void 0:t.cancelButtonLabel;A=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return f?{style:A,size:"SIZE_SMALL",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleText(f)}}}: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"}}});
mT.prototype.onEditOnlyModeUpdate=mT.prototype.onEditOnlyModeUpdate;mT.prototype.onImageChange=mT.prototype.onImageChange;_.V([_.n(),_.H("design:type",Ho5)],mT.prototype,"imageData",void 0);_.V([_.n(),_.H("design:type",Object)],mT.prototype,"instruction",void 0);_.V([_.n(),_.H("design:type",Object)],mT.prototype,"a11yConfig",void 0);_.V([_.n(),_.H("design:type",Number)],mT.prototype,"imageWidth",void 0);_.V([_.n(),_.H("design:type",Number)],mT.prototype,"imageHeight",void 0);
_.V([_.n(),_.H("design:type",Number)],mT.prototype,"displayScale",void 0);_.V([_.n(),_.H("design:type",Object)],mT.prototype,"imageDisplayOffsetTop",void 0);_.V([_.n(),_.H("design:type",Object)],mT.prototype,"imageDisplayOffsetLeft",void 0);_.V([_.n(),_.H("design:type",Object)],mT.prototype,"pickerDisplayOffsetTop",void 0);_.V([_.n(),_.H("design:type",Object)],mT.prototype,"pickerDisplayOffsetLeft",void 0);_.V([_.n(),_.H("design:type",Object)],mT.prototype,"showPreviewContainer",void 0);
_.V([_.n(),_.H("design:type",Object)],mT.prototype,"startPicker",void 0);_.V([_.n(),_.H("design:type",Number)],mT.prototype,"pickerOffsetX",void 0);_.V([_.n(),_.H("design:type",Number)],mT.prototype,"pickerOffsetY",void 0);_.V([_.n(),_.H("design:type",Object)],mT.prototype,"repositionOptional",void 0);_.V([_.n(),_.H("design:type",Object)],mT.prototype,"editOnlyMode",void 0);_.V([_.lo("#picker-container"),_.H("design:type",HTMLElement)],mT.prototype,"JSC$15881_pickerContainer",void 0);
_.V([_.lo("#picker"),_.H("design:type",HTMLElement)],mT.prototype,"picker",void 0);_.V([_.lo("#preview-clipper"),_.H("design:type",HTMLElement)],mT.prototype,"previewClipper",void 0);_.V([_.lo("#image-in-picker-background"),_.H("design:type",HTMLImageElement)],mT.prototype,"JSC$15881_imageInBackground",void 0);_.V([_.lo("#image-in-picker"),_.H("design:type",HTMLImageElement)],mT.prototype,"JSC$15881_imageInPicker",void 0);
_.V([_.lo("#image-in-preview-clipper"),_.H("design:type",HTMLImageElement)],mT.prototype,"JSC$15881_imageInPreviewClipper",void 0);_.V([_.y("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],mT.prototype,"altLabelForImage",null);_.V([_.y("imageHeight","imageWidth"),_.H("design:type",Number),_.H("design:paramtypes",[])],mT.prototype,"pickerSize",null);
_.V([_.y("imageHeight","imageWidth"),_.H("design:type",Object),_.H("design:paramtypes",[])],mT.prototype,"imageOrientationStyle",null);_.V([_.y("instruction"),_.H("design:type",Object),_.H("design:paramtypes",[])],mT.prototype,"editButton",null);_.V([_.y("instruction","editOnlyMode"),_.H("design:type",Object),_.H("design:paramtypes",[])],mT.prototype,"saveButton",null);_.V([_.y("instruction"),_.H("design:type",Object),_.H("design:paramtypes",[])],mT.prototype,"deleteButton",null);
_.V([_.y("instruction","editOnlyMode"),_.H("design:type",Object),_.H("design:paramtypes",[])],mT.prototype,"cancelButton",null);_.V([_.y("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.H("design:type",Number),_.H("design:paramtypes",[])],mT.prototype,"cropOffsetTop",null);_.V([_.y("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.H("design:type",Number),_.H("design:paramtypes",[])],mT.prototype,"cropOffsetLeft",null);
_.V([_.y("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],mT.prototype,"pickerBackgroundStyle",null);_.V([_.y("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],mT.prototype,"pickerDisplayStyle",null);_.V([_.y("cropOffsetLeft","cropOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],mT.prototype,"imageInPickerStyle",null);
_.V([_.y("cropOffsetLeft","cropOffsetTop","pickerSize"),_.H("design:type",String),_.H("design:paramtypes",[])],mT.prototype,"previewClipperStyle",null);_.V([_.PU("imageData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mT.prototype,"onImageChange",null);_.V([_.PU("editOnlyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mT.prototype,"onEditOnlyModeUpdate",null);
_.V([_.y("showPreviewContainer"),_.H("design:type",String),_.H("design:paramtypes",[])],mT.prototype,"pickerModeStyle",null);_.V([_.y_({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],mT);
_.Y(mT,"ytd-backstage-image-preview-renderer",function(){if(ovS!==void 0)return ovS;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ovS=A},{mode:1});var djE;var Sq7={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 $jT;var Hti;var bv=function(){var A=_.F.apply(this,arguments)||this;A.a11yConfig=Sq7;A.imageDisplayOffsetTop=0;A.imageDisplayOffsetLeft=0;A.pickerDisplayOffsetTop=0;A.pickerDisplayOffsetLeft=0;A.cropCoordinatesSaved=!1;A.previewSize=0;A.startPicker=!1;A.repositionOptional=!1;return A};
_.R(bv,_.F);_.J=bv.prototype;_.J.created=function(){_.q2.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(A){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){A.detail.keyboardEvent.preventDefault();var t=0,f=0,X="";switch(A.detail.keyboardEvent.key){case "ArrowUp":gLp(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?X=this.a11yConfig.reachBottomOfImage:t=this.imageHeight*.05*-1;break;case "ArrowDown":gLp(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?X=this.a11yConfig.reachTopOfImage:
t=this.imageHeight*.05;break;case "ArrowLeft":gLp(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?X=this.a11yConfig.reachRightOfImage:f=this.imageWidth*.05*-1;break;case "ArrowRight":gLp(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?X=this.a11yConfig.reachLeftOfImage:f=this.imageWidth*.05}X&&_.e5(X)&&_.s9(this.hostElement,"iron-announce",{text:_.e5(X)});if(f||t)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+t)),A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),A=_.e5(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+f)),A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),A=_.e5(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})),A&&_.s9(this.hostElement,"iron-announce",{text:A})}};
_.J.getPreviewPosition=function(A,t,f,X){return Math.round(100*(A+t*.5-f)/X)};
_.J.displayImage=function(){var A=this.JSC$15892_pickerContainer.getBoundingClientRect().width,t=this.JSC$15892_pickerContainer.getBoundingClientRect().height,f=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),X=this.JSC$15892_imageInBackground.naturalWidth,Q=this.JSC$15892_imageInBackground.naturalHeight;this.displayScale=Math.max(f/X,f/Q);this.imageWidth=X*this.displayScale;this.imageHeight=Q*this.displayScale;this.pickerDisplayOffsetLeft=(A-f)/2;this.pickerDisplayOffsetTop=
(t-f)/2;this.imageDisplayOffsetLeft=Q>X?this.pickerDisplayOffsetLeft:(A-this.imageWidth)/2;this.imageDisplayOffsetTop=X>Q?this.pickerDisplayOffsetTop:(t-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.J.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15892_imageInBackground.src=this.imageData.toString(),this.JSC$15892_imageInPicker.src=this.imageData.toString(),this.JSC$15892_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.J.getSignedPosition=function(A,t,f){return t==="X"&&_.ah("HTML_DIR")==="rtl"?f==="-"?A+"px":A*-1+"px":f==="-"?A*-1+"px":A+"px"};
_.J.pickerMove=function(A){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var t=this.pickerOffsetX-A.clientX,f=this.pickerOffsetY-A.clientY;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
f)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-t))}};
_.J.pickerMoveStart=function(A){this.startPicker=!0;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.J.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.s9(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.J.getPreviewOffset=function(A,t,f,X){return t&&A&&f?(X==="X"&&_.ah("HTML_DIR")==="rtl"?f/t*A:f/t*A*-1)+"px":"0px"};
_.J.getSimpleText=function(A){return A?_.dF(A):""};
_.J.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var A=this.cropOffsetTop/this.imageHeight,t=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,f=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,X=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.sF(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.s9(this.hostElement,"yt-img-crop-coordinates-update",{top:A,right:t,bottom:f,left:X})}};
_.PV.Object.defineProperties(bv.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.e5(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.e5(this.a11yConfig.verticalRepositionInstruction)}A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.e5(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.e5(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 A,t=(A=this.learnMore.runs[0])==null?void 0:A.navigationEndpoint,f;return((f=_.C(t,_.fV))==null?void 0:f.url)||void 0}}}});
bv.prototype.onImageDataChange=bv.prototype.onImageDataChange;_.V([_.n(),_.H("design:type",Object)],bv.prototype,"imageData",void 0);_.V([_.n(),_.H("design:type",Object)],bv.prototype,"instruction",void 0);_.V([_.n(),_.H("design:type",Object)],bv.prototype,"a11yConfig",void 0);_.V([_.n(),_.H("design:type",Number)],bv.prototype,"imageWidth",void 0);_.V([_.n(),_.H("design:type",Number)],bv.prototype,"imageHeight",void 0);_.V([_.n(),_.H("design:type",Number)],bv.prototype,"displayScale",void 0);
_.V([_.n(),_.H("design:type",Object)],bv.prototype,"imageDisplayOffsetTop",void 0);_.V([_.n(),_.H("design:type",Object)],bv.prototype,"imageDisplayOffsetLeft",void 0);_.V([_.n(),_.H("design:type",Object)],bv.prototype,"pickerDisplayOffsetTop",void 0);_.V([_.n(),_.H("design:type",Object)],bv.prototype,"pickerDisplayOffsetLeft",void 0);_.V([_.n(),_.H("design:type",Object)],bv.prototype,"cropCoordinatesSaved",void 0);_.V([_.n(),_.H("design:type",Object)],bv.prototype,"previewSize",void 0);
_.V([_.n(),_.H("design:type",Object)],bv.prototype,"startPicker",void 0);_.V([_.n(),_.H("design:type",Number)],bv.prototype,"pickerOffsetX",void 0);_.V([_.n(),_.H("design:type",Number)],bv.prototype,"pickerOffsetY",void 0);_.V([_.n(),_.H("design:type",Object)],bv.prototype,"repositionOptional",void 0);_.V([_.lo("#picker-container"),_.H("design:type",HTMLElement)],bv.prototype,"JSC$15892_pickerContainer",void 0);_.V([_.lo("#picker"),_.H("design:type",HTMLElement)],bv.prototype,"picker",void 0);
_.V([_.lo("#image-in-picker-background"),_.H("design:type",HTMLImageElement)],bv.prototype,"JSC$15892_imageInBackground",void 0);_.V([_.lo("#image-in-picker"),_.H("design:type",HTMLImageElement)],bv.prototype,"JSC$15892_imageInPicker",void 0);_.V([_.lo("#image-in-preview-clipper"),_.H("design:type",HTMLImageElement)],bv.prototype,"JSC$15892_imageInPreviewClipper",void 0);_.V([_.lo("#full-image-as-preview"),_.H("design:type",HTMLImageElement)],bv.prototype,"imageAsPreview",void 0);
_.V([_.y("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],bv.prototype,"altLabelForImage",null);_.V([_.y("imageHeight","imageWidth"),_.H("design:type",Number),_.H("design:paramtypes",[])],bv.prototype,"pickerSize",null);_.V([_.y("imageHeight","imageWidth"),_.H("design:type",Object),_.H("design:paramtypes",[])],bv.prototype,"imageOrientationStyle",null);
_.V([_.y("instruction.previewInstruction.editButtonLabel"),_.H("design:type",Object),_.H("design:paramtypes",[])],bv.prototype,"editButton",null);_.V([_.y("instruction.editInstruction.saveButtonLabel"),_.H("design:type",Object),_.H("design:paramtypes",[])],bv.prototype,"saveButton",null);_.V([_.y("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.H("design:type",Number),_.H("design:paramtypes",[])],bv.prototype,"cropOffsetTop",null);
_.V([_.y("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.H("design:type",Number),_.H("design:paramtypes",[])],bv.prototype,"cropOffsetLeft",null);_.V([_.y("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],bv.prototype,"pickerBackgroundStyle",null);_.V([_.y("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],bv.prototype,"pickerDisplayStyle",null);
_.V([_.y("cropOffsetLeft","cropOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],bv.prototype,"imageInPickerStyle",null);_.V([_.y("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.H("design:type",String),_.H("design:paramtypes",[])],bv.prototype,"previewClipperStyle",null);_.V([_.ev("imageData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bv.prototype,"onImageDataChange",null);
_.V([_.y("cropCoordinatesSaved"),_.H("design:type",String),_.H("design:paramtypes",[])],bv.prototype,"pickerModeStyle",null);_.V([_.y("instruction.editInstruction.learnMore"),_.H("design:type",Object),_.H("design:paramtypes",[])],bv.prototype,"learnMore",null);_.V([_.y("learnMore"),_.H("design:type",Object),_.H("design:paramtypes",[])],bv.prototype,"learnMoreUrl",null);_.V([_.WU({is:"yt-img-crop-picker",disableElementRegistration:!0})],bv);
_.Y(bv,"yt-img-crop-picker",function(){if(Hti===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;$jT===void 0&&($jT=document.createElement("template"));var X=$jT;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Hti=A}A=Hti;return A},{mode:2});var Wl=function(){var A=_.F.apply(this,arguments)||this;A.errorMessage="";A.hasPreview=!1;A.isBackstagePost=!1;A.dismissButtonOverrides={size:"XS"};return A};
_.R(Wl,_.F);_.J=Wl.prototype;_.J.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"}}}};
_.J.detached=function(){this.removeOverlay()};
_.J.setPreview=function(A){_.sF(this.hostElement).querySelector("#preview-picker").imageData=A;this.hasPreview=!0;_.s9(this.hostElement,"yt-backstage-image-select-preview")};
_.J.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var A=_.sF(this.hostElement).querySelector("#dropzone");A.classList.remove("dragover");A.classList.remove("error");_.s9(this.hostElement,"yt-backstage-image-select-cancel")};
_.J.setupOverlay=function(){var A=this.imageUploadEndpoint;this.removeOverlay();if(A&&A.imageValidationInfo){var t=_.sF(this.hostElement).querySelector("#dropzone"),f=_.sF(this.hostElement).querySelector("#select");this.overlay=new Rr(A.uploadUrl,A.channelId,A.imageValidationInfo.maxFileSizeMb,A.imageValidationInfo.allowedMaxAspectRatio,t,f,!0);_.TV(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.TV(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.TV(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.TV(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.TV(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.J.removeOverlay=function(){this.overlay&&(_.L_(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.L_(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.L_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.L_(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.L_(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.J.onDragOver=function(A){var t=_.sF(this.hostElement).querySelector("#dropzone");_.rH(t,"dragover",A.value)};
_.J.onPreview=function(A){this.setPreview(A.value)};
_.J.onImageError=function(A){if(A.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var t;A=(t=this.data)==null?void 0:t.fileSizeError}else if(A.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var f;A=(f=this.data)==null?void 0:f.invalidError}else if(A.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var X;A=(X=this.data)==null?void 0:X.invalidAspectRatioError}else return;this.errorMessage=_.dF(A);_.sF(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.J.onImageAlert=function(A){this.onImageError(A)};
_.J.uploadPromise=function(){var A=this,t=this.overlay&&this.overlay.uploadPromise();if(t)return t.catch(function(){throw Error(A.data?_.dF(A.data.uploadFailureError):"");})};
_.PV.Object.defineProperties(Wl.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var A,t;if((A=this.data)==null?0:(t=A.icon)==null?0:t.iconType)return _.t7(this.data.icon.iconType)}}});
Wl.prototype.setupOverlay=Wl.prototype.setupOverlay;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Wl.prototype,"rendererStamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Wl.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Wl.prototype,"imageUploadEndpoint",void 0);_.V([_.n(),_.H("design:type",Object)],Wl.prototype,"errorMessage",void 0);
_.V([_.n(),_.H("design:type",Rr)],Wl.prototype,"overlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wl.prototype,"hasPreview",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wl.prototype,"isBackstagePost",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wl.prototype,"selectionCancel",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wl.prototype,"previewCancel",null);
_.V([_.y("data.icon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wl.prototype,"icon",null);_.V([_.n(),_.H("design:type",Object)],Wl.prototype,"dismissButtonOverrides",void 0);_.V([_.ev("imageUploadEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wl.prototype,"setupOverlay",null);_.V([_.y_({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Wl);
_.Y(Wl,"ytd-backstage-image-select-renderer",function(){if(djE!==void 0)return djE;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return djE=A},{mode:1});var aJT;var K4f;var yf=function(){var A=_.F.apply(this,arguments)||this;A.selected=!1;return A};
_.R(yf,_.F);_.J=yf.prototype;_.J.computeSelected=function(A){return A==null?void 0:A.selected};
_.J.computeTransform=function(A,t,f){var X,Q,q=(Q=(X=this.imageContainer)==null?void 0:X.getBoundingClientRect())!=null?Q:{width:0,height:0};X=Math.max(q.width/t,q.height/f);f=f*X*A.top;return"translateX("+this.getSignedPosition(t*X*A.left,"X","-")+") translateY("+this.getSignedPosition(f,"Y","-")+")"};
_.J.getSignedPosition=function(A,t,f){return t==="X"&&_.ah("HTML_DIR")==="rtl"?f==="-"?A+"px":A*-1+"px":f==="-"?A*-1+"px":A+"px"};
_.J.onClick=function(){var A;_.s9(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(A=this.data)==null?void 0:A.image)};
_.J.onKeyPress=function(A){if(A.keyCode===13)this.onClick()};
_.PV.Object.defineProperties(yf.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:(t=A.image)==null?void 0:t.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.image){var t;A=(t=this.data)==null?void 0:t.image;return A.previewCoordinates.top!==0||A.previewCoordinates.left!==0?(t=this.computeTransform(A.previewCoordinates,A.naturalWidth,A.naturalHeight),A.naturalHeight>=A.naturalWidth?"width:inherit;transform:"+t+";":"height:inherit;transform:"+t+";"):A.naturalHeight>=A.naturalWidth?"width:inherit;":"height:inherit;"}}}});
yf.prototype.onKeyPress=yf.prototype.onKeyPress;_.V([_.lo(".image-container"),_.H("design:type",HTMLElement)],yf.prototype,"imageContainer",void 0);_.V([_.n(),_.H("design:type",Object)],yf.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.H("design:type",Object)],yf.prototype,"selected",void 0);_.V([_.y("data.image"),_.H("design:type",Object),_.H("design:paramtypes",[])],yf.prototype,"thumbnailUrl",null);
_.V([_.y("data.image","data.image.previewCoordinates"),_.H("design:type",Object),_.H("design:paramtypes",[])],yf.prototype,"thumbnailStyle",null);_.V([_.UQ("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],yf.prototype,"onKeyPress",null);_.V([_.y_({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],yf);
_.Y(yf,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(K4f!==void 0)return K4f;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return K4f=A},{mode:2});var vl=function(A,t,f){f=f===void 0?!1:f;_.p_.call(this);var X=this;this.dropZoneOverlay=new pX(A);this.selectOverlay=f?new Ew(t,"multiple_file",["image/*"]):new Ew(t,"single_file",["image/*"]);this.handler=new _.CP(this);_.hV(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(t,"click",function(){X.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.R(vl,_.p_);vl.prototype.onChange=function(A){var t;(t=A.files)!=null&&t.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:A.files}))};var LQ=function(){var A=_.F.apply(this,arguments)||this;A.addImageErrorMessage="";A.errorMessage="";A.images=[];A.selectedImageIndex=0;A.modern=_.M("web_modern_buttons");A.maxNumImagesPerPost=_.cx("max_num_images_per_post_web_ui");A.JSC$15907_imageId=0;return A};
_.R(LQ,_.F);_.J=LQ.prototype;_.J.created=function(){var A=this;this.JSC$15907_ytReorderableController=new _.NQf(100,function(t){A.handleDrop(t)})};
_.J.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.s9(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.J.observeDragToReorder=function(){var A=this;if(this.showImagesPreview){var t,f=ODK(_.IF.getInstance(),(t=this.data)==null?void 0:t.dragToReorderTooltip);_.a6.addLowPriorityJob(function(){_.tl(A.hostElement,f,A.thumbnailDragDropArea)})}};
_.J.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}}};
_.J.computeThumbnail=function(A){return(A==null?void 0:A.localImageSrc)||void 0};
_.J.onRendererstamperFinished=function(){_.u7S(this.JSC$15907_ytReorderableController,_.sF(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.sF(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.J.handleDrop=function(A){var t=A.currDragItem;if(t!=null&&t.data){A=this.images[this.selectedImageIndex];var f=t.data.image,X=this.images.indexOf(f)||0;t=_.jT(t.parentNode.children,t);this.images.splice(X,1);this.images.splice(t,0,f);this.images=[].concat(_.YV(this.images));this.selectedImageIndex=this.images.indexOf(A)}};
_.J.setUpImagePicker=function(){var A=this.imageUploadEndpoint;A&&A.imageValidationInfo&&(this.uploadManager=new hK(A.uploadUrl,A.channelId),this.initialPicker||(this.initialPicker=new vl(this.dropzone,this.selectLink,!0),_.TV(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new vl(this.addImageButtonContainer,this.addImageSelectButton),_.TV(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.TV(this.JSC$15907_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.TV(this.JSC$15907_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.TV(_.sF(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.J.detached=function(){this.initialPicker&&(_.L_(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.L_(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.dA(this.JSC$15907_ytReorderableController)};
_.J.onInitialSelectImages=function(A){var t=this;return _.l(function(f){return f.yield(t.onSelectImages(A,!1),0)})};
_.J.onAddImage=function(A){var t=this;return _.l(function(f){return f.yield(t.onSelectImages(A,!0),0)})};
_.J.onSelectImages=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K;return _.l(function(k){switch(k.nextAddress){case 1:t?f.addImageErrorMessage="":(f.images=[],f.errorMessage="");X=A.detail;Q=f.validateImages([].concat(_.YV(X)));if(Q!=="")return t?f.addImageErrorMessage=Q:f.errorMessage=Q,k.return();q=[].concat(_.YV(X)).map(function(Gz){return(new Cl(f.maxAspectRatio,!1,!0)).transform(Gz)});
return k.yield(Promise.allSettled(q),2);case 2:e=k.yieldResult,G=_.U(e.entries()),N=G.next();case 3:if(N.done){k.jumpTo(5);break}z=N.value;T=_.U(z);O=T.next().value;c=T.next().value;B=O;h=c;if(h.status!=="fulfilled"){E=L=W=void 0;t?f.addImageErrorMessage=_.dF((W=f.data)==null?void 0:W.invalidError):f.errorMessage=f.errorMessage===""?_.dF((L=f.data)==null?void 0:L.invalidError):_.dF((E=f.data)==null?void 0:E.multiFileError);k.jumpTo(4);break}D=h.value;D.cropped&&_.s9(f.hostElement,"yt-backstage-multi-image-cropped");
if(D.invalidAspectRatio){d=Z=S=void 0;t?f.addImageErrorMessage=_.dF((S=f.data)==null?void 0:S.invalidAspectRatioError):f.errorMessage=f.errorMessage===""?_.dF((Z=f.data)==null?void 0:Z.invalidAspectRatioError):_.dF((d=f.data)==null?void 0:d.multiFileError);k.jumpTo(4);break}return k.yield(a5s(f.JSC$15907_imageId,A.detail[B],D.transformedData),8);case 8:K=k.yieldResult,f.images.push(K),f.JSC$15907_imageId++;case 4:N=G.next();k.jumpTo(3);break;case 5:if(f.errorMessage!==""||f.addImageErrorMessage!==
"")return k.return();t?F4k(f.uploadManager,[f.images[f.images.length-1]]):F4k(f.uploadManager,f.images);f.images=[].concat(_.YV(f.images));f.selectedImageIndex=t?Math.max(f.images.length-1,0):0;_.s9(f.hostElement,"yt-backstage-multi-image-select");_.LO(k)}})};
_.J.onThumbnailClick=function(A){if(A=A.event_.detail)this.selectedImageIndex=this.images.indexOf(A)};
_.J.validateImages=function(A){if(A.length>this.maxNumImagesPerPost){var t;return _.dF((t=this.data)==null?void 0:t.multiImageExceedMaxImageCountError)}var f=1048576*this.maxFileSizeMb;A=A.filter(function(q){return q.size>f}).length;
if(A===0)return"";var X,Q;A=A>1?(X=this.data)==null?void 0:X.multiFileError:(Q=this.data)==null?void 0:Q.fileSizeError;return _.dF(A)};
_.J.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.YV(this.images));this.selectedImageIndex=0};
_.J.repositionImage=function(A){this.images[this.selectedImageIndex].previewCoordinates=A.event_.detail;this.images=[].concat(_.YV(this.images))};
_.J.getAllUploadStatuses=function(){var A=this,t,f,X,Q;return _.l(function(q){if(q.nextAddress==1)return q.yield(A.uploadManager.getAllUploadStatuses(),2);t=q.yieldResult;f=_.U(t);for(X=f.next();!X.done;X=f.next())if(Q=X.value,Q.encryptedBlobId===void 0)return q.return(IJi(A.uploadManager));return q.return(t)})};
_.J.hasImages=function(){return this.images.length>0};
_.J.cancel=function(){for(var A=this.uploadManager,t=_.U(A.imagesUploadData),f=t.next();!f.done;f=t.next())A.cancel(f.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.s9(this.hostElement,"yt-backstage-multi-image-cancel")};
_.PV.Object.defineProperties(LQ.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.imageUploadEndpoint)==null?void 0:(t=A.imageValidationInfo)==null?void 0:t.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.imageUploadEndpoint)==null?void 0:(t=A.imageValidationInfo)==null?void 0:t.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var A,t;if((A=this.data)==null?0:(t=A.icon)==null?0:t.iconType)return _.t7(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.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 A=this;return(this.images||[]).map(function(t,f){return{renderer:{image:t,selected:f===A.selectedImageIndex}}})}}});
LQ.prototype.setUpImagePicker=LQ.prototype.setUpImagePicker;LQ.prototype.onRendererstamperFinished=LQ.prototype.onRendererstamperFinished;LQ.prototype.observeDragToReorder=LQ.prototype.observeDragToReorder;LQ.prototype.observeAddImageError=LQ.prototype.observeAddImageError;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],LQ.prototype,"rendererStamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);
_.V([_.lo("#dropzone"),_.H("design:type",HTMLElement)],LQ.prototype,"dropzone",void 0);_.V([_.lo("#select-link"),_.H("design:type",HTMLElement)],LQ.prototype,"selectLink",void 0);_.V([_.lo("#thumbnail-drag-drop-area"),_.H("design:type",HTMLElement)],LQ.prototype,"thumbnailDragDropArea",void 0);_.V([_.lo("#add-image-button-container"),_.H("design:type",HTMLElement)],LQ.prototype,"addImageButtonContainer",void 0);
_.V([_.lo("#add-image-button"),_.H("design:type",HTMLElement)],LQ.prototype,"addImageSelectButton",void 0);_.V([_.lo("#image-preview-container"),_.H("design:type",Object)],LQ.prototype,"JSC$15907_imagePreviewContainer",void 0);_.V([_.n(),_.H("design:type",Object)],LQ.prototype,"addImageErrorMessage",void 0);_.V([_.n(),_.H("design:type",Object)],LQ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],LQ.prototype,"errorMessage",void 0);
_.V([_.n(),_.H("design:type",Object)],LQ.prototype,"imageUploadEndpoint",void 0);_.V([_.n(),_.H("design:type",Array)],LQ.prototype,"images",void 0);_.V([_.n(),_.H("design:type",vl)],LQ.prototype,"initialPicker",void 0);_.V([_.n(),_.H("design:type",vl)],LQ.prototype,"addImagePicker",void 0);_.V([_.n(),_.H("design:type",hK)],LQ.prototype,"uploadManager",void 0);_.V([_.n(),_.H("design:type",Object)],LQ.prototype,"selectedImageIndex",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],LQ.prototype,"modern",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],LQ.prototype,"maxNumImagesPerPost",void 0);_.V([_.y("imageUploadEndpoint"),_.H("design:type",Number),_.H("design:paramtypes",[])],LQ.prototype,"maxAspectRatio",null);_.V([_.y("imageUploadEndpoint"),_.H("design:type",Number),_.H("design:paramtypes",[])],LQ.prototype,"maxFileSizeMb",null);
_.V([_.y("data.icon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],LQ.prototype,"dropIcon",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LQ.prototype,"selectionCancel",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LQ.prototype,"previewCancel",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LQ.prototype,"dataForAddImageButton",null);
_.V([_.y("errorMessage"),_.H("design:type",String),_.H("design:paramtypes",[])],LQ.prototype,"dropzoneClass",null);_.V([_.y("images"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LQ.prototype,"showImagesPreview",null);_.V([_.y("images"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LQ.prototype,"containMaxImages",null);_.V([_.ev("addImageErrorMessage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LQ.prototype,"observeAddImageError",null);
_.V([_.ev("showImagesPreview"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LQ.prototype,"observeDragToReorder",null);_.V([_.y("images","selectedImageIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],LQ.prototype,"selectedImageData",null);_.V([_.y("images","selectedImageIndex"),_.H("design:type",Array),_.H("design:paramtypes",[])],LQ.prototype,"thumbnailRenderers",null);
_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LQ.prototype,"onRendererstamperFinished",null);_.V([_.ev("imageUploadEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LQ.prototype,"setUpImagePicker",null);_.V([_.y_({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],LQ);
_.Y(LQ,"ytd-backstage-multi-image-select-renderer",function(){if(aJT!==void 0)return aJT;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return aJT=A},{mode:1});var gvT;var w6S;var sKf;var pQ=function(){var A=_.F.apply(this,arguments)||this;A.boundCaptureFocus=function(t){A.onCaptureFocus(t)};
return A};
_.R(pQ,_.F);_.J=pQ.prototype;_.J.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.J.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.J.onCaptureFocus=function(A){_.Z2(A).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.J.getIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.J.onSelect=function(){var A;if((A=this.data)==null?0:A.onSelectCommand)if(_.M("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var t;((t=_.C(this.data.onSelectCommand.commandMetadata,_.Jl))==null?0:t.url)?_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.Px().resolve(_.i2).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.PV.Object.defineProperties(pQ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.dF(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}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],pQ.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],pQ.prototype,"data",void 0);_.V([_.lo("#item"),_.H("design:type",HTMLElement)],pQ.prototype,"item",void 0);_.V([_.y("data.label"),_.H("design:type",String),_.H("design:paramtypes",[])],pQ.prototype,"label",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],pQ.prototype,"value",null);_.V([_.y_({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],pQ);
_.Y(pQ,"ytd-privacy-dropdown-item-renderer",function(){if(sKf!==void 0)return sKf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return sKf=A},{mode:1});var ER=function(){var A=_.F.apply(this,arguments)||this;A.value="";A.label="";A.disabled=!1;return A};
_.R(ER,_.F);_.J=ER.prototype;_.J.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"}}}};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.J.dataChanged=function(){this.reset()};
_.J.valueChanged=function(){var A;if(this.value&&(A=this.data)!=null&&A.entries){A=_.U(this.data.entries);for(var t=A.next();!t.done;t=A.next())if((t=this.getRendererForEntry(t.value))&&this.getItemRendererValue(t)===this.value){this.label=this.ytComponentBehavior.getSimpleString(t.label);break}}};
_.J.setInitialLabel=function(){if(this.data&&this.data.entries)for(var A=_.U(this.data.entries),t=A.next();!t.done;t=A.next())if(t=this.getRendererForEntry(t.value)){if(t.isSelected){this.label=this.ytComponentBehavior.getSimpleString(t.label);break}this.data.label&&(this.label=this.data.label)}};
_.J.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var A=_.U(this.data.entries),t=A.next();!t.done;t=A.next()){t=this.getRendererForEntry(t.value);var f=void 0;if((f=t)==null?0:f.isSelected)return this.getItemRendererValue(t)||-1}return-1};
_.J.getItemRendererValue=function(A){return"stringValue"in A||"int32Value"in A?A.stringValue||A.int32Value||null:null};
_.J.getRendererForEntry=function(A){return A.dropdownItemRenderer||A.privacyDropdownItemRenderer||A.navigationDropdownItemRenderer||null};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("value-changed",this.value))};
_.J.updateValueFromBinding=function(A){this.value=A.detail.value};
ER.prototype.valueChangedForBinding=ER.prototype.valueChangedForBinding;ER.prototype.valueChanged=ER.prototype.valueChanged;ER.prototype.dataChanged=ER.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ER.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],ER.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],ER.prototype,"value",void 0);_.V([_.n(),_.H("design:type",Object)],ER.prototype,"label",void 0);_.V([_.lo("#entries"),_.H("design:type",Object)],ER.prototype,"entries",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ER.prototype,"disabled",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ER.prototype,"dataChanged",null);
_.V([_.PU("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ER.prototype,"valueChanged",null);_.V([_.ev("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ER.prototype,"valueChangedForBinding",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],ER);
_.Y(ER,"ytd-flat-dropdown-renderer",function(){if(w6S!==void 0)return w6S;var A=document.createElement("template");_.m(A,'\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="EXPAND" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return w6S=A},{mode:1});var kbS;var nQ=function(){var A=_.F.apply(this,arguments)||this;A.quizOptions=[];A.explanationPlaceholderText="";A.optionPlaceholderText="";A.correctAnswerIndex=-1;A.isMarkAnswerTooltipShown=!1;A.timer=0;return A};
_.R(nQ,_.F);_.J=nQ.prototype;_.J.dataChanged=function(){this.optionPlaceholderText=_.dF(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.dF(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.J.onMarkCorrectAnswer=function(A){var t,f=((t=this.quizOptions[this.correctAnswerIndex])==null?void 0:t.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[A.model.index]=Object.assign({},this.quizOptions[A.model.index],{explanationText:f,isCorrect:!0});this.correctAnswerIndex=A.model.index;this.quizOptions=[].concat(_.YV(this.quizOptions))};
_.J.updatePlaceholderTexts=function(){for(var A=!1,t=[],f=0;f<this.quizOptions.length;f++){var X=this.optionPlaceholderText+" "+(f+1),Q=void 0;((Q=this.quizOptions[f])==null?void 0:Q.placeholderText)!==X?(A=!0,t.push(Object.assign({},this.quizOptions[f],{placeholderText:X}))):t.push(this.quizOptions[f])}A&&(this.quizOptions=t);this.isValid()?_.s9(this.hostElement,"yt-commentbox-post-enable"):_.s9(this.hostElement,"yt-commentbox-post-disable")};
_.J.getSimpleString=function(A){return _.dF(A)};
_.J.createQuizOptions=function(A){var t=[],f;A=(f=A==null?void 0:A.minQuizOptions)!=null?f:0;for(f=0;f<A;f++)t.push(this.createQuizOption());return t};
_.J.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.YV(this.quizOptions),[this.createQuizOption()]))};
_.J.onInput=function(){this.quizOptions=[].concat(_.YV(this.quizOptions))};
_.J.onExplanationInput=function(){_.s9(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.J.onRemoveQuizOption=function(A){this.quizOptions.splice(A.model.index,1);A.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:A.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.YV(this.quizOptions));this.quizOptions.length===0&&_.s9(this.hostElement,"yt-quiz-attachment-dismiss")};
_.J.updateHintRenderer=function(){var A=this;clearTimeout(this.timer);this.timer=setTimeout(function(){A.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.J.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var A=0,t=0,f=_.U(this.quizOptions),X=f.next();!X.done;X=f.next()){X=X.value;var Q=void 0;if(((Q=X.optionText)==null?void 0:Q.trim())!==""||X.isCorrect){X.isCorrect&&t++;Q=void 0;if(this.hasCustomOptionText&&((Q=X.optionText)==null?void 0:Q.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;A++}}return A>=
Number(this.editorInfo.minQuizOptions)&&t===1};
_.J.getPostCreateOptions=function(){for(var A=[],t=_.U(this.quizOptions),f=t.next();!f.done;f=t.next()){f=f.value;var X=void 0;((X=f.optionText)==null?void 0:X.trim())!==""&&A.push({pollOption:{text:f.optionText,explanation:f.explanationText},isCorrect:f.isCorrect})}return A};
_.J.getExplanationText=function(){var A;return((A=this.quizOptions[this.correctAnswerIndex])==null?void 0:A.explanationText)||""};
_.J.maybeDisplayMarkAnswerEduToolTip=function(){var A,t,f,X,Q,q,e;this.shouldShowMarkAnswerTooltip()&&((A=this.editorInfo)==null?0:(t=A.markAnswerButton)==null?0:(f=t.buttonRenderer)==null?0:(X=f.hint)==null?0:(Q=X.hintRenderer)==null?0:(q=Q.content)==null?0:(e=q.bubbleHintRenderer)==null?0:e.text)&&(_.IF.getInstance(),A=xx(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,(A==null?void 0:A.length)>0&&this.optionSelectors&&_.Qx(A[0],this.optionSelectors[0]))};
_.J.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var A=0,t=_.U(this.quizOptions),f=t.next();!f.done;f=t.next()){f=f.value;var X=void 0;((X=f.optionText)==null?void 0:X.trim())!==""&&A++;if(f.isCorrect)return!1}return A<2?!1:!0};
_.J.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.J.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.J.updateOptionTextFromBinding=function(A){if(A.target){var t=Array.from(_.sF(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(A.target);if(t>=0){var f;this.quizOptions[t].optionText=(f=A.detail.value)!=null?f:""}}};
_.PV.Object.defineProperties(nQ.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(A=this.editorInfo)==null?void 0:(t=A.addOptionButton)==null?void 0:t.buttonRenderer;f&&(f.style="STYLE_SUGGESTIVE",f.size="SIZE_SMALL",f.isDisabled=!this.isAllowedToAddOption);return(f==null?0:f.text)?f:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var A,t;return this.quizOptions.length<((t=(A=this.editorInfo)==null?void 0:A.maxQuizOptions)!=null?t:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(A){var t;return(t=A.optionText)==null?void 0:t.trim()})}}});
nQ.prototype.updatePlaceholderTexts=nQ.prototype.updatePlaceholderTexts;nQ.prototype.dataChanged=nQ.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],nQ.prototype,"editorInfo",void 0);_.V([_.n(),_.H("design:type",Array)],nQ.prototype,"quizOptions",void 0);_.V([_.n(),_.H("design:type",Object)],nQ.prototype,"explanationPlaceholderText",void 0);_.V([_.NL(".option-selector-button"),_.H("design:type",Array)],nQ.prototype,"optionSelectors",void 0);
_.V([_.PU("editorInfo"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nQ.prototype,"dataChanged",null);_.V([_.y("editorInfo","isAllowedToAddOption","quizOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],nQ.prototype,"addAnswerButton",null);_.V([_.y("editorInfo","quizOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],nQ.prototype,"isAllowedToAddOption",null);
_.V([_.PU("quizOptions"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nQ.prototype,"updatePlaceholderTexts",null);_.V([_.y("quizOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],nQ.prototype,"hasCustomOptionText",null);_.V([_.y_({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],nQ);
_.Y(nQ,"ytd-backstage-quiz-editor-renderer",function(){if(kbS!==void 0)return kbS;var A=document.createElement("template");_.m(A,'\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-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return kbS=A},{mode:2});var ryp;var ApC=(Uj.FIRSTDAYOFWEEK+1)%7;var tuw;var fyi=[],XeC=0,QLf=0;XeC=0;QLf=24;if(.25*(QLf-XeC)<0)tuw=[];else{for(var qDl=XeC;qDl<QLf;qDl+=.25)fyi.push(qDl);tuw=fyi}var Jpi=tuw.map(function(A){A=A*60*60;return{secondsSinceMidnight:A,text:(new Zt(7)).format(new Date(0,0,0,0,0,A))}});var U0T;var D9=function(){var A=_.F.apply(this,arguments)||this;A.skipNextOpenDialog=!1;A.errorMessage="";A.previousMonthLabel=_.e5("PREVIOUS_MONTH_LABEL");A.nextMonthLabel=_.e5("NEXT_MONTH_LABEL");return A};
_.R(D9,_.F);_.J=D9.prototype;_.J.attached=function(){var A=this,t=new MutationObserver(function(){A.JSC$15949_calendarMain.scrollHeight>0&&(t.disconnect(),A.calendarConfig&&A.calendarConfig.selectedDate&&A.scrollToDate())});
t.observe(this.JSC$15949_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){t.disconnect()},1E3)};
_.J.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.J.onDateTextChange=function(){if(this.calendarConfig){var A=this.validateDateText();A.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(A.details)):this.textbox.setAttribute("invalid","")}};
_.J.handleDayClick=function(A){A.model.day.date&&(this.commitDate(A.model.day.date),this.dialog.close())};
_.J.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var A=Qu5(this.calendarConfig.selectedDate,this.renderData);A!==void 0&&this.JSC$15949_calendarMain.scrollToIndex(A)}};
_.J.scrollToNextMonth=function(){this.JSC$15949_calendarMain.scrollToIndex(this.JSC$15949_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$15949_calendarMain.firstVisibleIndex===0&&this.JSC$15949_calendarMain.scrollTo(0,0);this.JSC$15949_calendarMain.scrollToIndex(this.JSC$15949_calendarMain.firstVisibleIndex-1)};
_.J.onFormSubmit=function(A){A.preventDefault();this.calendarConfig&&(A=this.validateDateText(),A.isValid&&(this.commitDate(A.details),this.dialog.close()))};
_.J.onEscOrClickingOutside=function(A){A=A.detail.path&&!!A.detail.path.length&&A.detail.path[0];if(A.classList.contains("ytd-calendar-date-picker")){A===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var t=0;t<this.dropdownButton.children.length;t++)this.dropdownButton.children[t]===A&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}A=this.textbox.value!==this.dateText;t=this.validateDateText();A&&t.isValid&&this.commitDate(t.details);this.dialog.close();this.textbox.value=
this.dateText};
_.J.commitDate=function(A){this.calendarConfig&&(this.set("calendarConfig.selectedDate",A),_.s9(this.hostElement,"ytd-calendar-date-selected",A))};
_.J.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var A=this.textbox.value;var t=new Date;A=(new Rvp(2)).parse(A,t,{validate:!0})===A.length?fhp(t):void 0;if(!A)return this.errorMessage=_.e5("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};t=this.calendarConfig.start;var f=this.calendarConfig.end;if(s_q(A,t))return this.errorMessage=_.e5("ENTER_DATE_OR_LATER",{allowed_date:tSq(t)}),{isValid:!1,details:void 0};if(s_q(f,A))return this.errorMessage=
_.e5("ENTER_DATE_OR_EARLIER",{allowed_date:tSq(f)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:A}};
_.PV.Object.defineProperties(D9.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?tSq(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var A=this.calendarConfig,t=[],f=0;f<7;f++)t.push(Uj.NARROWWEEKDAYS[(f+ApC)%7]);f=[];for(var X=new Date(A.start.year,A.start.month);X.getFullYear()<A.end.year||X.getFullYear()===A.end.year&&X.getMonth()<=A.end.month;){var Q=f,q=Q.push,e=X.getFullYear(),G=X.getMonth(),N=A,z=void 0,T=[],O=Object.freeze({extraCssClass:"invisible",debugClass:""}),c=new Date(e,G),B=fhp(c);c=c.getDay();for(var h=fhp(new Date);B.month===
G;){c!==ApC&&z||(z=Array.from({length:7}).fill(O),T.push(z));var W={date:{year:e,month:G,day:B.day},extraCssClass:"",debugClass:""};N.selectedDate&&W.date&&wZ0(W.date,N.selectedDate)&&(W.extraCssClass+=" selected");if(s_q(B,N.start)||s_q(N.end,B))W.extraCssClass+=" disabled";wZ0(B,h)&&(W.extraCssClass+=" today");W.extraCssClass=W.extraCssClass.trim();z[(c-ApC+7)%7]=W;B=rFg(B);c=(c+1)%7}q.call(Q,{weeks:T,monthLabel:Uj.SHORTMONTHS[G]+" "+e,year:e,month:G,monthLabelExtraCssClass:T[0][2]===O?"shift-down-label":
""});X.setMonth(X.getMonth()+1)}return{months:f,daysOfWeekLabel:t}}}}});
D9.prototype.onEscOrClickingOutside=D9.prototype.onEscOrClickingOutside;D9.prototype.scrollToDate=D9.prototype.scrollToDate;_.V([_.n(),_.H("design:type",Object)],D9.prototype,"calendarConfig",void 0);_.V([_.n(),_.H("design:type",Object)],D9.prototype,"skipNextOpenDialog",void 0);_.V([_.n(),_.H("design:type",Object)],D9.prototype,"errorMessage",void 0);_.V([_.n(),_.H("design:type",Object)],D9.prototype,"previousMonthLabel",void 0);
_.V([_.n(),_.H("design:type",Object)],D9.prototype,"nextMonthLabel",void 0);_.V([_.lo("#textbox"),_.H("design:type",HTMLInputElement)],D9.prototype,"textbox",void 0);_.V([_.lo("#calendar-dialog"),_.H("design:type",Object)],D9.prototype,"dialog",void 0);_.V([_.lo("#calendar-main"),_.H("design:type",Object)],D9.prototype,"JSC$15949_calendarMain",void 0);_.V([_.lo("#date-picker"),_.H("design:type",HTMLElement)],D9.prototype,"dropdownButton",void 0);
_.V([_.y("calendarConfig.selectedDate"),_.H("design:type",String),_.H("design:paramtypes",[])],D9.prototype,"dateText",null);_.V([_.y("calendarConfig","calendarConfig.selectedDate"),_.H("design:type",Object),_.H("design:paramtypes",[])],D9.prototype,"renderData",null);_.V([_.ev("renderData","calendarConfig.selectedDate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],D9.prototype,"scrollToDate",null);
_.V([_.UQ("iron-overlay-canceled"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],D9.prototype,"onEscOrClickingOutside",null);_.V([_.WU({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],D9);
_.Y(D9,"ytd-calendar-date-picker",function(){if(U0T!==void 0)return U0T;var A=document.createElement("template");_.m(A,'\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="EXPAND" 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" label="[[previousMonthLabel]]" 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" label="[[nextMonthLabel]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return U0T=A},{mode:2});var e4T=_.e5("UTC_OFFSET_FORMAT",{utc_offset:(new Zt("Z")).format(new Date)}),GxS=(new Date).getTimezoneOffset()*-60,ly8=new Date,N5p,uQp=VQ(ly8.getTimezoneOffset());N5p=gET(sM8(uQp,ly8));var z4T=_.e5("LOCAL_TIME_GMT_LABEL",{gmt_text:N5p.replace("+0","+").replace("-0","-").replace(":00","")}),FF=function(){var A=_.F.apply(this,arguments)||this;A.selectedTimeIndex=0;A.selectedTimezoneIndex=0;A.timeOfDayOptions=Jpi;return A};
_.R(FF,_.F);_.J=FF.prototype;_.J.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var A=AXu();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=A,this.selectedTimeIndex=0;else{var t=XHx(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},A,{selectedDate:t.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(f){return f.secondsSinceMidnight===t.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.J.onDatePicked=function(A){this.selectedDate=A.detail};
_.J.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.s9(this.hostElement,"ytd-date-time-selection-cancelled")};
_.J.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var A=this.selectedDate;A=new Date(A.year,A.month,A.day);_.s9(this.hostElement,"ytd-date-time-selection-update",Math.floor(A.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+A.getTimezoneOffset()*60))}};
_.J.getTimezoneFormat=function(A){return A.localizedDisplayText?A.localizedDisplayText:_.e5("TIMEZONE_FORMAT",{utc_offset_text:""+A.localizedUtcOffset,city_name:""+A.localizedName})};
_.J.updateSelectedTimeIndexFromBinding=function(A){this.selectedTimeIndex=A.detail.value};
_.J.updateSelectedTimezoneIndexFromBinding=function(A){this.selectedTimezoneIndex=A.detail.value};
_.PV.Object.defineProperties(FF.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data.timezoneOptions;var t={name:"Etc/Unknown",localizedName:_.e5("LOCAL_TIME_LABEL"),localizedUtcOffset:e4T,utcOffsetSec:""+GxS,localizedDisplayText:z4T};A?A.length&&A[0].name!==t.name&&(A[0].localizedDisplayText||(t.localizedDisplayText=""),A.unshift(t)):A=[t];return A}}},
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]}}});
FF.prototype.onDateTimeTimezoneChange=FF.prototype.onDateTimeTimezoneChange;FF.prototype.onDatePicked=FF.prototype.onDatePicked;FF.prototype.updateDefaultSelectedValue=FF.prototype.updateDefaultSelectedValue;_.V([_.n(),_.H("design:type",Object)],FF.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],FF.prototype,"calendarConfig",void 0);_.V([_.n(),_.H("design:type",Object)],FF.prototype,"selectedDate",void 0);_.V([_.n(),_.H("design:type",Object)],FF.prototype,"selectedTimeIndex",void 0);
_.V([_.n(),_.H("design:type",Object)],FF.prototype,"selectedTimezoneIndex",void 0);_.V([_.lo("#time-listbox"),_.H("design:type",Object)],FF.prototype,"timeListBox",void 0);_.V([_.lo("#timezone-listbox"),_.H("design:type",Object)],FF.prototype,"timezoneListBox",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],FF.prototype,"rendererStamperBehavior",void 0);_.V([_.y("data.timezoneOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],FF.prototype,"timeZones",null);
_.V([_.PU("data","timeZones"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FF.prototype,"updateDefaultSelectedValue",null);_.V([_.y("selectedTimezoneIndex","timeZones"),_.H("design:type",Object),_.H("design:paramtypes",[])],FF.prototype,"selectedTimezone",null);_.V([_.y("selectedTimeIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],FF.prototype,"selectedTime",null);
_.V([_.UQ("ytd-calendar-date-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],FF.prototype,"onDatePicked",null);_.V([_.ev("selectedTimezone","selectedTime","selectedDate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FF.prototype,"onDateTimeTimezoneChange",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],FF);
_.Y(FF,"ytd-date-time-picker-renderer",function(){if(ryp!==void 0)return ryp;var A=document.createElement("template");_.m(A,'\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="EXPAND" 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="EXPAND" 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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return ryp=A},{mode:1});var PZp;var IV=function(){var A=_.F.apply(this,arguments)||this;A.boundOnTapDismissButton=function(){A.dismissTapHandler()};
A.dismissButtonOverrides={size:"XS"};return A};
_.R(IV,_.F);IV.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}}}}}};
IV.prototype.dismissTapHandler=function(){_.s9(this.hostElement,"yt-backstage-attachment-dismissed")};
IV.prototype.computeAttachmentType=function(A){return A?A.backstageImageRenderer?"image":A.videoRenderer?"video":"none":"none"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],IV.prototype,"attachmentPreview",void 0);_.V([_.n(),_.H("design:type",Object)],IV.prototype,"dismissButton",void 0);_.V([_.n(),_.H("design:type",Object)],IV.prototype,"boundOnTapDismissButton",void 0);
_.V([_.n(),_.H("design:type",Object)],IV.prototype,"dismissButtonOverrides",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.H("design:type",String)],IV.prototype,"attachmentType",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],IV);
_.Y(IV,"ytd-backstage-dismissable-attachment",function(){if(PZp!==void 0)return PZp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return PZp=A},{mode:1});var T5C;var x1=function(){var A=_.F.apply(this,arguments)||this;A.selectedVideoId=void 0;A.picker=void 0;A.dismissButtonOverrides={size:"XS"};A.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return A};
_.R(x1,_.F);_.J=x1.prototype;_.J.onServiceRequestCompleted=function(A){A.stopPropagation()};
_.J.handleAddVideoPreviewAction=function(A){A=this.get("addVideoPreviewAction",A);this.onGetVideoPreviewSuccess(A)};
_.J.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}}}}}};
_.J.onLaunchVideoPicker=function(A){var t=this,f=_.dF(this.get("addVideoLinkAction.title",A)),X=this.get("addVideoLinkAction.onePickHostId",A);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",A);X&&(this.picker||(f=_.ZVf(_.UMx(X).setTitle(f).addView(x9C()).addView(I_T()),function(Q){t.onPickVideo(Q)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",A)||f.addView("youtube"),this.picker=f.build()),this.picker.setVisible(!0))};
_.J.onPickVideo=function(A){if(A)if(A.action==="cancel")_.s9(this.hostElement,"yt-video-link-button-cancel");else if(A.action==="picked"){A=A.docs;if(!A||A.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(A=(A==null?0:A.length)?A[0]:void 0)?A.id:void 0;this.setVideoPreview()}};
_.J.setVideoPreview=function(){var A=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){A.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.J.onGetVideoPreviewSuccess=function(A){if(A&&A.videoPreview&&A.cancelButton)this.videoPreview=A.videoPreview,this.cancelButton=A.cancelButton,_.s9(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.J.onGetVideoPreviewError=function(){this.cancel()};
_.J.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.s9(this.hostElement,"yt-video-link-cancel")};
_.J.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
x1.prototype.onServiceRequestCompleted=x1.prototype.onServiceRequestCompleted;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],x1.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],x1.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],x1.prototype,"videoPreview",void 0);_.V([_.n(),_.H("design:type",Object)],x1.prototype,"cancelButton",void 0);_.V([_.n(),_.H("design:type",Object)],x1.prototype,"getVideoPreviewCommand",void 0);_.V([_.n(),_.H("design:type",Object)],x1.prototype,"dismissButtonOverrides",void 0);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],x1.prototype,"onServiceRequestCompleted",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],x1);
_.Y(x1,"ytd-backstage-video-link-attachment",function(){if(T5C!==void 0)return T5C;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return T5C=A},{mode:1});var iBl;var OB7;var cpS;var jA=function(){return _.F.apply(this,arguments)||this};
_.R(jA,_.F);jA.prototype.dataChanged=function(){this.active=!1};
jA.prototype.onTap=function(){_.s9(this.hostElement,"yt-select-emoji-suggestion",this.data)};
jA.prototype.identity=function(A){return A};
_.PV.Object.defineProperties(jA.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X;if((A=this.data)==null?0:(t=A.image)==null?0:(f=t.thumbnails)==null?0:(X=f[0])==null?0:X.url)return A=this.data.image.thumbnails[0].url,A.startsWith("data:image/svg+xml")?Fx(A):_.of(A)}}});
jA.prototype.dataChanged=jA.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],jA.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],jA.prototype,"active",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jA.prototype,"dataChanged",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],jA.prototype,"imageSrc",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],jA);
_.Y(jA,"ytd-emoji-suggestion",function(){if(cpS!==void 0)return cpS;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return cpS=A},{mode:1});var B5l=/.*([:@#].*?)$/,Y1=function(){var A=_.F.apply(this,arguments)||this;A.suggestions=[];A.suggestionIndex=-1;A.JSC$15977_lastSuggestionRange=null;return A};
_.R(Y1,_.F);_.J=Y1.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.J.getSuggestions=function(A){var t=[],f=Sbw(this.emojiManager,A.substr(0,3));if(f)for(var X in f)if(X.toLocaleLowerCase().indexOf(A)===0){var Q=f[X];if(Q&&Q.emojiId){Q=uw(this.emojiManager,Q.emojiId);var q=void 0,e=void 0,G=void 0,N=void 0,z=((q=Q)==null?0:q.isCustomEmoji)?(e=Q)==null?void 0:(G=e.shortcuts)==null?void 0:G[0]:(N=Q)==null?void 0:N.emojiId;q=void 0;t.push({suggestion:{image:(q=Q)==null?void 0:q.image,alt:z,text:X}});if(t.length>=64)break}}return t?t.sort(function(T,O){return O.suggestion.text<
T.suggestion.text?-1:O.suggestion.text===T.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(A){_.s9(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15977_lastSuggestionRange,text:A.alt});this.dropdown.opened=!1};
_.J.updateSuggestionsAtCaret=function(A){this.updateSuggestions(A,this.retrieveTextBeforeRange(A))};
_.J.offsetStartOfRangeBy=function(A,t){A.startOffset>=t&&A.setStart(A.startContainer,A.startOffset-t)};
_.J.updateSuggestions=function(A,t){var f=this;this.JSC$15977_lastSuggestionRange&&(this.JSC$15977_lastSuggestionRange.detach(),this.JSC$15977_lastSuggestionRange=null);if((t=B5l.exec(t))&&t.length&&(t=t[t.length-1].toLocaleLowerCase(),t.length>2||t===":_")&&(this.offsetStartOfRangeBy(A,t.length),this.JSC$15977_lastSuggestionRange=A,(A=this.getSuggestions(t))&&A.length)){this.suggestions=A;_.us(this,function(){f.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(A.length-1);return}this.dropdown.opened=!1};
_.J.onKeyDown=function(A){if(this.dropdown.opened)switch(A.key){case "Escape":this.dropdown.opened=!1;A.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);A.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);A.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),A.preventDefault()}};
_.J.onKeyUp=function(A,t){switch(A.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(t);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(t)}};
_.J.onKeyPress=function(A){A.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),A.preventDefault())};
_.J.changeSuggestionIndex=function(A){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(A+this.suggestions.length)%this.suggestions.length,A=this.dropdownContent.children[this.suggestionIndex],A.active=!0,this.dropdownContent.scrollTop=A.offsetTop)};
_.J.retrieveTextBeforeRange=function(A){var t=A.startContainer;return t&&t.nodeType===Node.TEXT_NODE?t.textContent.substr(0,A.startOffset):""};
Y1.prototype.onKeyPress=Y1.prototype.onKeyPress;Y1.prototype.onKeyUp=Y1.prototype.onKeyUp;Y1.prototype.onKeyDown=Y1.prototype.onKeyDown;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Y1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Array)],Y1.prototype,"suggestions",void 0);_.V([_.n(),_.H("design:type",_.lw)],Y1.prototype,"emojiManager",void 0);_.V([_.n(),_.H("design:type",Number)],Y1.prototype,"verticalSuggestionsOffset",void 0);
_.V([_.lo("#dropdown"),_.H("design:type",Object)],Y1.prototype,"dropdown",void 0);_.V([_.lo("#dropdown-content"),_.H("design:type",HTMLDivElement)],Y1.prototype,"dropdownContent",void 0);_.V([_.UQ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],Y1.prototype,"onKeyDown",null);_.V([_.UQ("keyup"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent,Range]),_.H("design:returntype")],Y1.prototype,"onKeyUp",null);
_.V([_.UQ("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],Y1.prototype,"onKeyPress",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-emoji-input"})],Y1);
_.Y(Y1,"ytd-emoji-input",function(){if(OB7!==void 0)return OB7;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return OB7=A},{mode:2});var Mup;var Vf=function(){var A=_.F.apply(this,arguments)||this;A.hasMaxOptions=!1;return A};
_.R(Vf,_.F);_.J=Vf.prototype;_.J.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.J.setPrefilledChoices=function(A){var t=this;this.set("pollOptions",[]);var f;for(f=0;f<Math.min(A.length,this.data.maxPollOptions);f++)this.push("pollOptions",A[f].substring(0,this.data.maxPollOptionChars));for(;f<this.data.minPollOptions;f++)this.push("pollOptions","");this.hasMaxOptions=f>=this.data.maxPollOptions;_.us(this,function(){for(var X=t.pollOptions,Q=_.sF(t.hostElement).querySelectorAll(".poll-option-input"),q=0;q<Q.length;q++)Q[q].value=X[q]})};
_.J.focusChanged=function(){_.Q_(this.hostElement)};
_.J.onInput=function(){var A=this;_.Ig(this,"onInput",function(){A.isValid()?_.s9(A.hostElement,"yt-commentbox-post-enable"):_.s9(A.hostElement,"yt-commentbox-post-disable")},300)};
_.J.setPollOptions=function(){var A=[],t,f=((t=this.data)==null?0:t.minPollOptions)?this.data.minPollOptions:0;for(t=0;t<f;t++)A.push("");return A};
_.J.addPollOption=function(){var A=this;_.s9(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.a6.addLowPriorityJob(function(){var t;(t=_.sF(A.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||t.focus()})};
_.J.onRemovePollOption=function(A){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.s9(this.hostElement,"yt-poll-attachment-dismiss")):(A=this.repeat.indexForElement(A.target.parentNode),A!==null&&(this.splice("pollOptions",A,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.s9(this.hostElement,"yt-commentbox-post-enable"))))};
_.J.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.J.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var A=0,t=this.pollOptions.length;A<t;A++)if(this.pollOptions[A].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.J.getPollOptions=function(){return this.pollOptions};
_.J.setPollOptionsFromInputs=function(){for(var A=_.sF(this.hostElement).querySelectorAll(".poll-option-input"),t=0;t<A.length;t++)this.pollOptions[t]=A[t].value.trim()};
_.J.clearPollOptions=function(){var A=_.sF(this.hostElement).querySelectorAll(".poll-option-input");A=_.U(A);for(var t=A.next();!t.done;t=A.next())t.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.J.getSimpleString=function(A){return _.dF(A)};
_.J.updateValueFromBinding=function(A){if(A.target&&this.pollOptions){var t=Array.from(_.sF(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(A.target);if(t>=0){var f;this.pollOptions[t]=(f=A.detail.value)!=null?f:"";this.notifyPath("pollOptions."+t)}}};
Vf.prototype.dataChanged=Vf.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Vf.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Array)],Vf.prototype,"pollOptions",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Vf.prototype,"hasMaxOptions",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Vf.prototype,"enableCreationBox",void 0);
_.V([_.lo("#repeat"),_.H("design:type",hY)],Vf.prototype,"repeat",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vf.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Vf);
_.Y(Vf,"ytd-poll-attachment",function(){if(Mup!==void 0)return Mup;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Mup=A},{mode:2});var CZp;var h4C;var R4b;var m07;var Z9=function(){return _.F.apply(this,arguments)||this};
_.R(Z9,_.F);_.PV.Object.defineProperties(Z9.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Z9.prototype,"rendererBehaviors",void 0);_.V([_.n(),_.H("design:type",Object)],Z9.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Z9.prototype,"focused",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("focused"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z9.prototype,"ariaSelected",null);_.V([_.WU({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Z9);
_.Y(Z9,"yt-user-mention-suggestion-renderer",function(){if(m07===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;R4b===void 0&&(R4b=document.createElement("template"));var X=R4b;f.call(t,X.content.cloneNode(!0),A.content.firstChild);m07=A}A=m07;return A},{mode:2});var bBK;var WnT;var oV=function(){var A=_.F.apply(this,arguments)||this;A.focusedSuggestionIndex=-1;return A};
_.R(oV,_.F);_.J=oV.prototype;_.J.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.J.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.J.setFocusedSuggestionIndex=function(A){!this.data||!this.data.suggestions||A<0||A>=this.data.suggestions.length||(this.focusedSuggestionIndex=A,A=this.getSuggestionId(A),this._setFocusedSuggestionId(A))};
_.J.advanceSuggestion=function(A){this.focusedSuggestionIndex===-1||A!==-1&&A!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+A),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.J.ensureSuggestionVisible=function(A){A=this.getSuggestionId(A);A=_.sF(this.hostElement).querySelector("[id="+A+"]");A!=null&&(A.offsetTop<this.hostElement.scrollTop?A.scrollIntoView(!0):A.offsetTop+A.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&A.scrollIntoView(!1))};
_.J.getSuggestionId=function(A){return"user-mention-suggestion-"+A};
_.J.onSuggestionTap=function(A){var t=_.C(A.model.item,w4E);this.ytRendererBehavior.logExplicitClick(t);_.s9(this.hostElement,"yt-user-mention-suggestion-selected",{data:t,index:A.model.index})};
_.J.onSuggestionMouseMove=function(A){A.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(A.model.index)};
_.J.isSuggestionFocused=function(A,t){return A===t};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("focused-suggestion-id-changed",this.focusedSuggestionId))};
oV.prototype.focusedSuggestionIdChangedForBinding=oV.prototype.focusedSuggestionIdChangedForBinding;oV.prototype.onDomChange=oV.prototype.onDomChange;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],oV.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],oV.prototype,"focusedSuggestionIndex",void 0);_.V([_.n({readOnly:!0}),_.H("design:type",String)],oV.prototype,"focusedSuggestionId",void 0);
_.V([_.UQ("dom-change"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oV.prototype,"onDomChange",null);_.V([_.ev("focusedSuggestionId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oV.prototype,"focusedSuggestionIdChangedForBinding",null);_.V([_.WU({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],oV);
_.Y(oV,"yt-user-mention-suggestions-dropdown",function(){if(WnT===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;bBK===void 0&&(bBK=document.createElement("template"));var X=bBK;f.call(t,X.content.cloneNode(!0),A.content.firstChild);WnT=A}A=WnT;return A},{mode:2});var dh=function(){var A=_.F.apply(this,arguments)||this;A.suggestionsResponse=null;A.activeMention=null;A.selectionChangeListener=A.onSelectionChange.bind(A);A.handlesEnabled=_.M("enable_handles_in_mention_suggest_posts");A.handlesInMentionSuggestionsEnabled=_.M("handles_in_mention_suggest_posts");A.zeroPrefixMentionSuggestionEnabled=_.M("enable_zero_prefix_mention_suggestion_web");A.pendingQuery=null;A.flowNonce=null;return A};
_.R(dh,_.F);_.J=dh.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.J.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.J.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.J.hasSuggestions=function(A){return!!(A&&A.suggestions&&A.suggestions.length>0)};
_.J.onInput=function(){var A=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var t=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),f=this.activeMention.JSC$11434_getText().slice(-1)===" ",X=this.activeMention.JSC$11434_getText().slice(-2,-1)===" ",Q="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11434_getText().slice(-2,
-1))>=0;Q=this.zeroPrefixMentionSuggestionEnabled&&Q;if(this.activeMention.isCollapsed()||(t||X||Q)&&f)this.cancelActiveMention();else{var q=this.activeMention.JSC$11434_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Ig(this,"requestSuggestions",function(){A.requestSuggestions(q)},100)}}}};
_.J.onServiceRequestSent=function(A){A.stopPropagation()};
_.J.onServiceRequestCompleted=function(A){A.stopPropagation();A=A.detail.data;A.query&&(!this.pendingQuery||this.pendingQuery!==A.query)||!this.zeroPrefixMentionSuggestionEnabled&&A.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=A,this.hasSuggestions(A)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.J.onServiceRequestError=function(A){A.stopPropagation()};
_.J.onUserMentionSuggestionSelected=function(A){this.selectSuggestion(A.detail.data,A.detail.index)};
_.J.onSelectionChange=function(){if(this.activeMention){var A=_.f8(),t=this.activeMention.JSC$11434_containsRange(A);A=A&&this.containsHelper(this.dropdown,A.getContainer());t||A||this.cancelActiveMention()}};
_.J.containsHelper=function(A,t){var f;if(((f=window.ShadyDOM)==null?void 0:f.noPatch)===!0)return A.contains(t);for(;t;){if(t===A)return!0;t=t instanceof ShadowRoot?t.host:t.parentNode}return!1};
_.J.maybeStartSuggest=function(){var A=_.f8();if(A&&A.isCollapsed()){var t=A.JSC$11434_getStartNode(),f=A.JSC$11434_getStartOffset();if(t instanceof Text&&!(f<1)){var X=t.textContent;!(X=X&&X.charAt(f-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(X)<0||(this.activeMention=_.sU(t,f-1,A.JSC$11434_getEndNode(),A.JSC$11434_getEndOffset()),this.flowNonce=hG(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.J.updateActiveMention=function(){if(this.activeMention){var A=_.f8();A&&A.isCollapsed()&&(this.activeMention=_.sU(this.activeMention.JSC$11434_getStartNode(),this.activeMention.JSC$11434_getStartOffset(),A.JSC$11434_getEndNode(),A.JSC$11434_getEndOffset()))}};
_.J.requestSuggestions=function(A){if(this.activeMention){var t={suggestions_query:A};this.pendingQuery=A;_.Al(this.hostElement,[this.suggestionsEndpoint,t])}};
_.J.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()};
_.J.focusPreviousSuggestion=function(A){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),A.preventDefault())};
_.J.focusNextSuggestion=function(A){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),A.preventDefault())};
_.J.selectFocusedSuggestion=function(A){if(this.hasSuggestions(this.suggestionsResponse)){var t=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.C(t,w4E)&&(this.selectSuggestion(_.C(t,w4E),this.dropdown.focusedSuggestionIndex),A.preventDefault())}};
_.J.selectSuggestion=function(A,t){if(A){var f=this.activeMention;if(f){var X=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&A.handle?_.ZC(X,"\u00a0\u2068@"+A.handle+"\u2069\u00a0"):this.handlesEnabled?_.ZC(X,"\u00a0"+A.displayName+"\u00a0"):_.ZC(X,"\u00a0@"+A.displayName+"\u00a0");Kb(X,"/channel/"+A.channelId);X.classList.add("yt-formatted-string","yt-simple-endpoint");X.setAttribute("spellcheck","false");f.isCollapsed()||f.JSC$11434_removeContents();f.insertNode(X,!0);A=document.createTextNode(" ");
X.parentNode.insertBefore(A,X.nextSibling);window.getSelection().collapse(A,1);t={suggestionSelected:{suggestionIndex:t}};if(this.zeroPrefixMentionSuggestionEnabled){var Q;t.suggestionSelected.isZeroPrefix=((Q=this.suggestionsResponse)==null?void 0:Q.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",t);this.cancelActiveMention();_.s9(this.hostElement,"yt-mention-inserted")}}};
_.J.getPositionTarget=function(A){return A&&A.getBrowserRangeObject()};
_.J.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.J.onFocusedSuggestionIdChanged=function(A){var t=_.MAx(this.hostElement)[0];t&&(A.detail.value?t.setAttribute("aria-activedescendant",A.detail.value):t.removeAttribute("aria-activedescendant"))};
_.J.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.J.logGELEvent=function(A,t){A={eventType:A,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};t&&(A=Object.assign(A,t));_.SY("userMentionAutoCompleteBoxEvent",A)};
dh.prototype.onDomChange=dh.prototype.onDomChange;dh.prototype.onUserMentionSuggestionSelected=dh.prototype.onUserMentionSuggestionSelected;dh.prototype.onServiceRequestError=dh.prototype.onServiceRequestError;dh.prototype.onServiceRequestCompleted=dh.prototype.onServiceRequestCompleted;dh.prototype.onServiceRequestSent=dh.prototype.onServiceRequestSent;dh.prototype.onInput=dh.prototype.onInput;_.V([_.b(_.YD),_.H("design:type",Object)],dh.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],dh.prototype,"suggestionsEndpoint",void 0);_.V([_.n(),_.H("design:type",Object)],dh.prototype,"suggestionsResponse",void 0);_.V([_.n(),_.H("design:type",Object)],dh.prototype,"activeMention",void 0);_.V([_.lo("#dropdown"),_.H("design:type",Object)],dh.prototype,"dropdown",void 0);_.V([_.lo("#iron-dropdown"),_.H("design:type",Object)],dh.prototype,"ironDropdown",void 0);
_.V([_.UQ("input"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],dh.prototype,"onInput",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],dh.prototype,"onServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],dh.prototype,"onServiceRequestCompleted",null);
_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],dh.prototype,"onServiceRequestError",null);_.V([_.UQ("yt-user-mention-suggestion-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],dh.prototype,"onUserMentionSuggestionSelected",null);
_.V([_.UQ("dom-change"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],dh.prototype,"onDomChange",null);_.V([_.WU({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],dh);
_.Y(dh,"yt-user-mention-autosuggest-input",function(){if(h4C===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;CZp===void 0&&(CZp=document.createElement("template"));var X=CZp;f.call(t,X.content.cloneNode(!0),A.content.firstChild);h4C=A}A=h4C;return A},{mode:2});var SA=null;
_.CN({is:"ytd-commentbox",_template:function(){if(iBl!==void 0)return iBl;var A=document.createElement("template");_.m(A,'\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="EXPAND" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return iBl=A},
behaviors:[_.kAs.YtHostElementBehavior,_.YD,_.jD.YtActionHandlerBehavior,_.Ja.YtComponentBehavior,_.R4.YtRendererstamperBehavior,_.eK7.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(A,t){return _.q_(A.entities,"aadcGuidelinesStateEntityPayload",t)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(A,t){return _.q_(A.entities,"commentboxStateEntity",t)},
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 _.z4}},
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:_.M("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.M("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",_.JY(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(A){this.fire(A?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(A){this.set("submitButtonDisabled",void 0);this.clear();A&&this.computeIsEmojiButtonDisplayed_(A)&&(A=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&A.updateEmojiCategories()},
observePrefilledImage_:function(A,t,f){this.isValidPrefilledImage_(A,t,f)&&(this.prefilledAttachment_="image",this.prefilledImageData_=t,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(A,t){this.isValidPrefilledVideo_(A,t)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(A){A&&A.pollData&&A.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(A.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.RY();this.focus()},
detached:function(){document.removeEventListener("tap",_.JY(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(A){A=A.detail;A=A.isCustomEmoji?A.shortcuts[0]:A.emojiId;var t=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(t,A);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var A=_.f8();if(A){A=A.getBrowserRangeObject();for(var t=A.commonAncestorContainer;t;){if(t===this.getEditableTextArea_())return A;t=t.parentNode}}A=this.getEditableTextArea_();A=_.wc(A,A.childNodes.length);A.select();return A.getBrowserRangeObject()},
insertTextWithEmojis_:function(A,t,f){(t=this.emojiManager.createDocumentFragment(t,!0,!1,f===void 0?!0:f))&&t.childNodes.length!==0&&(A.collapsed||A.deleteContents(),f=t.lastChild,A.insertNode(t),_.i1f(f).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var A=_.f8();if(A){var t=A.JSC$11434_getStartNode(),f=A.JSC$11434_getEndNode();if(qtz(t)&&qtz(f)){var X=A.JSC$11434_getStartOffset(),Q;if(_.U1&&t.nodeType===Node.ELEMENT_NODE&&(Q=_.TGp(t)))_.wc(Q,0).select();else{Q=rf(t)?t:_.Hd(t,rf);var q=rf(f)?f:_.Hd(f,rf);if(Q||q)if(A.isCollapsed()){if(t.nodeType===Node.TEXT_NODE){A=!0;X===t.length&&(A=!1);if(SA==="end"||SA==="right")A=!1;t=t.parentNode;A=[].concat(_.YV(t.parentNode.childNodes)).indexOf(t)+(A?0:1);_.wc(t.parentNode,
A).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.sU(f,A.JSC$11434_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(t=document.createTextNode("\u200b"),Q.parentNode.insertBefore(t,Q),_.sU(f,A.JSC$11434_getEndOffset(),t,0).select()):q&&(q.nextSibling&&q.nextSibling.length>0?_.sU(t,A.JSC$11434_getStartOffset(),q.nextSibling,1).select():(f=document.createTextNode("\u200b"),q.parentNode.insertBefore(f,q.nextSibling),_.sU(t,A.JSC$11434_getStartOffset(),f,f.length).select()));
SA=null}}else SA=null}else SA=null},
leftKeyPressed_:function(){SA="left"},
rightKeyPressed_:function(){SA="right"},
endKeyPressed_:function(){SA="end"},
maybeDeleteChip_:function(){var A=NMT(!0);if(A){var t=_.f8(),f=t.JSC$11434_getStartNode();t=t.JSC$11434_getStartOffset();_.SP(f,t,A,A.childNodes.length).select()}},
maybeBackspaceChip_:function(){var A=NMT(!1);if(A){var t=_.f8(),f=t.JSC$11434_getStartNode();t=t.JSC$11434_getStartOffset();_.SP(f,t,A,0).select()}},
maybeBackspaceChipWordMode_:function(A){var t=_.f8();if(t.isCollapsed()){var f=t.JSC$11434_getStartNode();t=t.JSC$11434_getStartOffset();var X=u$s(f,t,!0);X&&(_.SP(f,t,X,0).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(A){var t=_.f8();if(t.isCollapsed()){var f=t.JSC$11434_getStartNode();t=t.JSC$11434_getStartOffset();var X=u$s(f,t,!1);X&&(_.SP(f,t,X,X.childNodes.length).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
onTap_:function(A){if(!A.defaultPrevented&&(A.currentTarget.tagName==="YTD-COMMENTBOX"&&rf(A.target)&&A.preventDefault(),this.isEmojiPickerDisplayed)){var t=this.$$("#emojis"),f=this.$$("#emoji-button"),X=this.getEditableTextArea_();if((A=A.path?A.path:A.composedPath&&A.composedPath())&&!A.includes(t)&&!A.includes(X)&&!A.includes(f))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(A,t,f){return A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&t!==void 0&&t.encryptedBlobId!==null&&t.sourceExternalVideoId!==null&&f!==void 0&&f.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(A,t){return A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!t&&!!t.videoRenderer&&!!t.videoRenderer.videoId},
isValidPrefilledAttachment_:function(A,t,f){return this.isValidPrefilledImage_(A,t,f)||this.isValidPrefilledVideo_(A,f)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.M("enable_multi_image_post_creation")){var A=this.$$("ytd-backstage-multi-image-select-renderer");A&&A.hasImages()&&A.cancel()}else(A=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&A.cancel();(A=this.$["poll-attachment"])&&this.hasPoll_&&A.clearPollOptions();(A=this.$["image-poll-attachment"])&&this.hasImagePoll_&&A.resetPollOptions();(A=this.$["quiz-attachment"])&&this.hasQuiz_&&A.resetQuizOptions();
(A=this.$["video-link-attachment"])&&this.hasVideo_&&A.cancel();(A=this.$["access-restrictions-selector"].firstElementChild)&&A.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 _.sF(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.sF(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(A,t){A=Uzu(A,this.emojiManager,t).cloneNode(!0);for(t=A.firstChild;t;)if(t.nodeType!==1)t=t.nextSibling;else switch(t.tagName){case "BR":var f=_.Fy();_.Rwb(f,t);t=f.nextSibling;break;case "DIV":(f=t.lastChild)&&t.nextSibling&&_.Y6(_.Fy(),f);t.previousSibling&&(t.previousSibling.nodeType===1||t.previousSibling.nodeType===3&&!t.previousSibling.textContent.endsWith("\n"))&&_.jq(_.Fy(),t);f&&f.nodeName==="BR"&&_.vf(f);f=t;t.hasChildNodes()?(t=t.firstChild,
_.mwE(f)):(t=t.nextSibling,_.vf(f));break;default:t=t.nextSibling}return zvq(A)},
onAddImageError_:function(A){A.stopPropagation();this.errorMessage_=_.oC(A.detail)},
setTextAreaValue_:function(A){A||(A="");var t=this.getEditableFormattedString_();t.text="";this.getEditableTextArea_().innerText="";typeof A==="string"&&(A={runs:[{text:A}]});t.text=A},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();SA=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var A=this.getEditableTextArea_();A&&(_.wc(A,A.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.ah("HTML_DIR")==="rtl"){var A=this.getEditableTextArea_(),t=this.getTextAreaValue()!==""?"auto":"rtl";A.setAttribute("dir",t)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var A;return kIg((A=this.$["quiz-attachment"])==null?void 0:A.getExplanationText())||kIg(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var A=null;if(this.isEmojiButtonDisplayed){var t=this.getInputRange_();t&&(A=this.emojiInput.retrieveTextBeforeRange(t))}this.insertText_(A,!0);this.updateCharCount_();this.setSubmitButton_();A=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=A.scrollHeight>A.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var A=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:A})},
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(A){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(A)},
onPasteEmoji_:function(A){A.preventDefault();A.stopImmediatePropagation();A=A.clipboardData.getData("text/plain");this.insertText_(A,!1,!1)},
insertText_:function(A,t,f){t=t===void 0?!1:t;f=f===void 0?!0:f;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&A){var X=this.getInputRange_().cloneRange();this.emojiManager&&X&&(t&&this.emojiInput.offsetStartOfRangeBy(X,A.length),this.insertTextWithEmojis_(X,A,f),JX5(this.getEditableTextArea_().lastChild)||(X=this.getInputRange_().cloneRange()),X&&(this.emojiInput.updateSuggestions(X,A),this.updateSuggestionOffset_(X)))}},
setSubmitButton_:function(){if(this.data){var A=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",t=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(A||t){var f=this.getTextAreaValue().trim();t=f===this.previousText_;f=!f||this.aboveCharLimit_;A&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(f=this.aboveCharLimit_);this.submitButtonDisabled=
t||f||!this.getTextLength();A&&_.M("enable_post_scheduling")&&(this.submitButtonDisabled=t&&!this.scheduledPublishTimeSec_||f)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.dF,computeCreationBoxClass_:function(A){return A?"focused":"not-focused"},
computeFooterMessageClass_:function(A,t){return t?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(A,t){return t?t:A},
computeFooterMessageHidden_:function(A,t){return!t&&!A},
computePlaceholderText_:function(A,t,f){return(f==="video"||f==="image")&&(A==null?0:A.prefilledPlaceholderText)?A==null?void 0:A.prefilledPlaceholderText:t==="poll"||t==="image-poll"?A==null?void 0:A.pollPostPlaceholderText:t==="quiz"?A==null?void 0:A.quizPostPlaceholderText:t==="image"?A==null?void 0:A.imagePostPlaceholderText:A==null?void 0:A.placeholderText},
computeHideAttachmentButtons_:function(A,t,f,X){return A===void 0?!1:X&&this.getSimpleString(X)===this.getSimpleString(A.rateLimitErrorMessage)?!0:t!=="none"||f!=="none"||!A.videoLinkButton&&!A.pollButton&&!A.imagePollButton&&!A.quizButton&&!A.imageButton},
computeHideDismissableAttachment_:function(A){return A!=="image"&&A!=="video"},
computeHasVideo_:function(A){return A==="video"},
computeHasImage_:function(A){return A==="image"},
computeHasPoll_:function(A){return A==="poll"},
computeHasImagePoll_:function(A){return A==="image-poll"},
computeHasQuiz_:function(A){return A==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(A){return A&&A.backstageAttachment?A.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!A.backstageAttachment.quizRenderer&&!A.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(A){if(this.isValidPrefilledAttachment_(A.purpose,A.prefilledImageData,A.backstageAttachment))return A.backstageAttachment},
computeEditAttachment_:function(A){if(this.computePrefilledContent_(A)===void 0)return A.backstageAttachment},
computeAuthorThumbnailDimension_:function(A,t){return A&&!t?24:40},
computeImageUploadEndpoint_:function(A){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",A)},
computeRateLimitErrorCommands_:function(A){var t,f;return A==null?void 0:(t=A.advancedTierFeatures)==null?void 0:(f=t.rateLimit)==null?void 0:f.rateLimitCommands},
computeIsBackstageComment_:function(A){return!(!A||A!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(A){return this.get("submitButton.buttonRenderer.serviceEndpoint",A)||this.get("replyButton.buttonRenderer.serviceEndpoint",A)||this.get("postButton.buttonRenderer.serviceEndpoint",A)},
computeSubmitButtonOverride:function(){if(_.M("web_modern_buttons")){var A,t;return{segmentedPosition:this.dropdownSchedulePanel_||!((A=this.data)==null?0:(t=A.postOptionsMenu)==null?0:t.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.M("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(A,t){A=this.get("submitButton.buttonRenderer",A)||this.get("replyButton.buttonRenderer",A)||this.get("postButton.buttonRenderer",A);t&&(A=t);A&&(A=Object.assign({},A),A.serviceEndpoint=void 0,A.isDisabled=this.submitButtonDisabled);return A},
computeHasExternalLinksAccess_:function(A){if(_.M("enable_rfa_external_links")){var t,f,X;return(X=A==null?void 0:(t=A.advancedTierFeatures)==null?void 0:(f=t.externalLinks)==null?void 0:f.allowExternalLinks)!=null?X:!0}return!0},
computeIsEmojiButtonDisplayed_:function(A){return A.emojiButton&&A.emojiPicker&&A.emojiPicker.emojiPickerRenderer&&A.emojiPicker.emojiPickerRenderer.categories?A.emojiPicker.emojiPickerRenderer.categories.find(function(t){return t.emojiPickerCategoryRenderer?t.emojiPickerCategoryRenderer.emojiIds&&t.emojiPickerCategoryRenderer.emojiIds.length>0:t.emojiPickerUpsellCategoryRenderer?t.emojiPickerUpsellCategoryRenderer.emojis&&t.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(A){return A.charLimit?A.charLimit:null},
computeDropdownSchedulingPanel_:function(A,t){if(A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&t)return t},
computeInlineSchedulingPanel_:function(A,t){if(A==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&t)return t},
computeHideAuthorThumbnail_:function(A,t){return A||this.computeUseIdentityChip_(t)},
computeHideIdentityChipRenderer_:function(A,t){return A||!this.computeUseIdentityChip_(t)},
computeUseIdentityChip_:function(A){return!!A&&!!A.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(A){var t,f,X,Q;(A==null?0:(t=A.detail)==null?0:(f=t.endpoint)==null?0:f.ypcGetOffersEndpoint)||(A==null?0:(X=A.detail)==null?0:(Q=X.endpoint)==null?0:Q.ypcOffersEndpoint)?(A.stopPropagation(),_.Al(this,[A.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",A)&&(A.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(A){this.addedAttachment="video";this.selectedVideoId_=A.detail.videoId},
commentboxStateEntityChanged_:function(A){var t=this;(A==null?void 0:A.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(A==null?void 0:A.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){t.focus()})},
onYtServiceRequestSent_:function(A,t){if(t.actions)for(A=_.U(t.actions),t=A.next();!t.done;t=A.next())t.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(A){this.isLoading=!1;var t=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",A),f,X,Q,q=A==null?void 0:(f=A.detail)==null?void 0:(X=f.data)==null?void 0:(Q=X.actionResult)==null?void 0:Q.commentboxStateEntityKey;if(t)this.errorMessage_=t;else if(q){var e;this.dismissData_=A==null?void 0:(e=A.detail)==null?void 0:e.data;this.commentboxStateKey_=q}else{this.clear();var G;this.fire("yt-commentbox-dismiss",A==null?void 0:(G=A.detail)==
null?void 0:G.data)}},
onYtServiceRequestError_:function(A){A.stopPropagation();this.isLoading=!1;var t,f;if(((t=this.data)==null?void 0:t.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((f=this.data)==null?void 0:f.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(t=this.get("detail.error.args",A)||[],t.length>1&&t[1].message){this.handlePostsServiceRequestError_(t[1].message);return}(A=this.get("detail.error.message",A))?this.errorMessage_=this.data.errorMessage||_.oC(A):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(A){if(_.M("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var t=_.U(this.rateLimitErrorCommands),f=t.next();!f.done;f=t.next())if(f=f.value,f.errorLabel===A){_.Qx(f.command,this.hostElement);return}this.errorMessage_=_.oC(A)},
submitIfNotBackstagePost_:function(A){if(!this.isBackstagePost)this.onSubmit_(A)},
onSubmit_:function(A){var t=this,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L;return _.l(function(E){switch(E.nextAddress){case 1:A.stopPropagation();if(!t.serviceEndpoint||!t.isValidInput_())return E.return();if(t.shouldShowPostAadcNotice_())return t.showPostAadcNotice_(),E.return();if(t.shouldShowCommentAadcNotice_())return t.showCommentAadcNotice_(),E.return();if(!(t.$$("ytd-backstage-multi-image-select-renderer")&&t.hasImage_&&_.M("enable_multi_image_post_creation"))){E.jumpTo(2);break}f=t.$$("ytd-backstage-multi-image-select-renderer");
return E.yield(f.getAllUploadStatuses(),3);case 3:X=E.yieldResult;if(!X)return E.return();Q=_.U(X);for(q=Q.next();!q.done;q=Q.next())if(e=q.value,e.encryptedBlobId===void 0)return t.isLoading=!1,N=G=void 0,t.errorMessage_=(N=(G=t.imageUploadEndpoint_)==null?void 0:G.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?N:null,E.return();return E.return(t.submitForm_(void 0,void 0,void 0,void 0,f.images,t.taggedVideoId_));case 2:if(!t.hasImagePoll_||!t.$["image-poll-attachment"]){E.jumpTo(4);
break}return E.yield(t.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:z=E.yieldResult;if(!z)return E.return();T=_.U(z);for(O=T.next();!O.done;O=T.next())if(c=O.value,!c.encryptedBlobId)return t.isLoading=!1,B=void 0,t.errorMessage_=(B=t.data.errorMessage)!=null?B:null,E.return();case 4:W=(h=t.$$("ytd-backstage-image-select-renderer"))&&h.uploadPromise(),L=t.getSharedPostId_(),W?W.then(function(){t.submitForm_.apply(t,_.YV(_.Hu.apply(0,arguments)))}).catch(function(D){t.isLoading=!1;
t.errorMessage_=_.oC(D.message)}):t.selectedVideoId_?t.submitForm_(void 0,t.selectedVideoId_):t.prefilledAttachment_==="image"?t.submitForm_(t.prefilledImageData_.encryptedBlobId,void 0,void 0,t.prefilledImageData_.sourceExternalVideoId,void 0,t.taggedVideoId_):t.prefilledAttachment_==="video"?t.submitForm_(void 0,t.data.backstageAttachment.videoRenderer.videoId):L?t.submitForm_(void 0,void 0,L):t.taggedVideoId_!==void 0?t.submitForm_(void 0,void 0,void 0,void 0,void 0,t.taggedVideoId_):t.submitForm_(),
_.LO(E)}})},
openSchedulingPanel:function(A){A&&A.scheduleButton&&A.scheduleButton.buttonRenderer&&(this.scheduleButton_=A.scheduleButton.buttonRenderer);A&&A.dateTimePicker&&this.set("data.schedulingDateTimePicker",A.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(A){A.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(A){A.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(A){A.stopPropagation();A.detail.alertMessage&&(this.alertMessage_=A.detail.alertMessage)},
onImageSelected_:function(A){A.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(A){A.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(A){A.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(A.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(A){A.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(A){var t=this.$["video-link-attachment"];t&&t.onLaunchVideoPicker(A)},
onAttachmentDismiss_:function(A){A.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"&&_.M("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.M("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 A;if(this.addedAttachment==="image-poll"&&((A=this.$["image-poll-attachment"])==null||!A.isValid()))return!1;var t;if(this.addedAttachment==="quiz"&&((t=this.$["quiz-attachment"])==null||!t.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;A=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(A=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")A=!0;return A||!!this.getTextAreaValue().trim()},
submitForm_:function(A,t,f,X,Q,q){var e=this.getTextAreaValue().trim(),G={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&e===this.previousText_&&(e=void 0);e!==void 0&&(G.comment_text=e);this.isLoading=!0;q!=void 0&&(G.tagged_video_id=q);A?(G.image_blob_id=A,this.imagePreviewCoordinates_&&(G.image_preview_coordinates=this.imagePreviewCoordinates_)):t?G.attached_video_id=t:f?G.shared_post_id=f:Q&&Q.length>0&&(G.images_data=Q.map(function(N){return{encryptedBlobId:N.encryptedBlobId,
previewCoordinates:N.previewCoordinates}}));
X&&(G.source_video_id=X);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(G.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(G.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(G.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(G.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.M("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(G.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Al(this,[this.serviceEndpoint,G])},
onIsInputFocusChanged_:function(A,t){A?this.fire("yt-autonav-pause-focus"):t!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(A){var t=this.getEditableTextArea_();[].concat(_.YV(A.dataTransfer.items)).forEach(function(f){f.kind==="string"&&f.type.match("^text/plain")&&f.getAsString(function(X){t.appendChild(document.createTextNode(X))})});
A.preventDefault()},
preventDefault_:function(A){A.preventDefault()},
onSuggestionInsert_:function(A){this.insertTextWithEmojis_(A.detail.range,A.detail.text)},
onEmojiSuggestionClick_:function(A){this.emojiInput.insertSuggestion(A.detail)},
computeSubmitButtonClass_:function(A,t){return!t||A?"":"with-options"},
updateSuggestionOffset_:function(A){if(this.emojiInput&&_.sF(this.emojiInput).querySelector("#dropdown")){var t=this.getEditableTextArea_().getBoundingClientRect().bottom,f=A.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(t-f)+5;t=this.getEditableTextArea_().getBoundingClientRect().left;A=A.getBoundingClientRect().left-t;_.sF(this.emojiInput).querySelector("#dropdown").style.marginLeft=A+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(A){if(_.M("enable_post_scheduling")&&this.data&&this.data.purpose){A=A.detail;if(Math.floor(Date.now()/1E3)>=A)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var t=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(t)||t!==A?this.scheduledPublishTimeSec_=A:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=A;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var A=["image-button","image-poll-button","poll-button","quiz-button"];_.M("auto_convert_posts_video_tag")||A.push("video-link-button");return A},
getButtonRenderer:function(A,t){if(A)switch(t){case "video-link-button":var f;return((f=A.videoLinkButton)==null?void 0:f.buttonRenderer)||void 0;case "image-button":var X;return((X=A.imageButton)==null?void 0:X.buttonRenderer)||void 0;case "poll-button":var Q;return((Q=A.pollButton)==null?void 0:Q.buttonRenderer)||void 0;case "image-poll-button":var q;return((q=A.imagePollButton)==null?void 0:q.buttonRenderer)||void 0;case "quiz-button":var e;return((e=A.quizButton)==null?void 0:e.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var A;return(A=this.data)==null||!A.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var A,t;return!((A=this.data)==null||!A.openAadcDialog)&&!((t=this.aadcGuidelinesState_)==null||!t.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.ah("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var A;((A=this.data)==null?0:A.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.kt("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(A){A.clickTrackingParams&&_.er().clickCommand(A);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.kJ(this,"yt-close-popup-action")},
onHideIdentityChip:function(A){var t;this.set("data.placeholderText",(t=A.hideIdentityChipAction)==null?void 0:t.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var $1=function(){var A=_.F.apply(this,arguments)||this;A.isOpen=!1;A.modern=_.M("web_modern_buttons");A.roundedContainer=!0;A.dropdownButtonOverride=_.M("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;A.inPopupContainer=!1;A.isCommentboxLoading=!1;var t=["image-button","image-poll-button","poll-button"];_.M("enable_quiz_creation")&&t.push("quiz-button");_.M("auto_convert_posts_video_tag")||t.push("video-link-button");A.attachmentButtonIds=t;A.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 A};
_.R($1,_.F);_.J=$1.prototype;_.J.computeButtonOverride=function(){var A;return((A=this.data)==null?0:A.postOptionsMenu)&&_.M("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.J.configureRendererStamper=function(){var A={"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:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.M("auto_convert_posts_video_tag")||(A["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return A};
_.J.ready=function(){var A=this,t=_.sF(this.hostElement).querySelector("#placeholder-area"),f=function(X){A.onOpen(X)};
t.addEventListener("tap",f);t.addEventListener("keypress",f)};
_.J.showButtonEduTooltip=function(){var A,t,f,X,Q,q,e;if(_.M("enable_quiz_creation")&&((A=this.data)==null?0:(t=A.quizButton)==null?0:(f=t.buttonRenderer)==null?0:(X=f.hint)==null?0:(Q=X.hintRenderer)==null?0:(q=Q.content)==null?0:(e=q.bubbleHintRenderer)==null?0:e.text)&&(_.IF.getInstance(),A=xx(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(A==null?void 0:
A.length)>0)){this.ytComponentBehavior.resolveCommand(A[0],{form:{element:this.quizButton}});return}var G;if((G=this.data)==null?0:G.imagePollButtonTooltip)if(_.IF.getInstance(),G=xx(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(G==null?void 0:G.length)>0){this.ytComponentBehavior.resolveCommand(G[0],{form:{element:this.imagePollButton}});return}var N;_.M("enable_multi_image_post_creation")&&
((N=this.data)==null?0:N.multiImageButtonTooltip)&&(_.IF.getInstance(),N=xx(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(N==null?void 0:N.length)>0&&this.ytComponentBehavior.resolveCommand(N[0],{form:{element:this.imageButton}}))};
_.J.onCreatePollAction=function(A){_.C(A,CAk)&&(this.JSC$16032_commentbox.addedAttachment="poll",this.openDialog())};
_.J.onAddVideoLinkAction=function(A){if(_.C(A,O6K))this.JSC$16032_commentbox.onAddVideoLink(A)};
_.J.onShowSchedulingPanelCommand=function(A){(A=_.C(A,azp))&&this.openSchedulingPanel(A)};
_.J.onCreateImagePollCommand=function(A){_.C(A,amE)&&(this.JSC$16032_commentbox.openImagePollComponent(),this.openDialog())};
_.J.onCreateQuizCommand=function(A){_.C(A,KJK)&&(this.JSC$16032_commentbox.openQuizComponent(),this.openDialog())};
_.J.openSchedulingPanel=function(A){_.M("enable_post_scheduling")&&(this.openDialog(),this.JSC$16032_commentbox.openSchedulingPanel(A))};
_.J.onCreateCommentAction=function(A){this.get("createCommentAction.contents",A)&&(this.JSC$16032_commentbox.clear(),this.closeDialog())};
_.J.onOpen=function(A){A instanceof KeyboardEvent&&A.type==="keypress"&&A.keyCode!==13&&A.keyCode!==32||(this.data.prepareAccountEndpoint?_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.closeDialog()};
_.J.onYtCommentboxLoadingStart=function(A){A.stopPropagation();this.isCommentboxLoading=!0};
_.J.onYtCommentboxLoadingEnd=function(A){A.stopPropagation();this.isCommentboxLoading=!1};
_.J.onYtVideoLinkButtonCancel=function(A){A.stopPropagation();this.onOpen(A)};
_.J.onYtVideoLinkSelected=function(A){A.stopPropagation();this.onOpen(A)};
_.J.onIronSelect=function(A){A.stopPropagation();A.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=A.detail.item.value&&(this.accessRestriction?(this.accessRestriction=A.detail.item.value,this.onOpen(A)):this.accessRestriction=A.detail.item.value)};
_.J.onYtNavigate=function(A){this.get("detail.endpoint.backstageImageUploadEndpoint",A)&&(this.JSC$16032_commentbox.addedAttachment="image",this.JSC$16032_commentbox.submitButtonDisabled=!0,this.onOpen(A))};
_.J.onRequestSent=function(A){for(var t=_.U(A.detail),f=t.next();!f.done;f=t.next())_.C(f.value,Q4E)&&(this.JSC$16032_commentbox.addedAttachment="image",this.JSC$16032_commentbox.submitButtonDisabled=!0,this.onOpen(A))};
_.J.openDialog=function(){var A;(A=this.data)!=null&&A.isIneligibleForCommunityPagePostCreation||(this.JSC$16032_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16032_commentbox.focus())};
_.J.onPopupClosed=function(){_.IF.getInstance()};
_.J.computeCreationDisabled=function(A){return!!A};
_.J.computeIsCreationDialog=function(A){return!!A&&A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.J.computeDisabledPostButton=function(A){if(!A)return null;A.isDisabled=!0;return A};
_.J.computeIsCreationDialogWithHeader=function(A){return!this.inPopupContainer&&!!A&&!!A.authorText&&A.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.J.computeIsHeaderHidden=function(A,t){return!A||t};
_.J.computeDropdownRendererClasses=function(A){return A?["text-secondary-style"]:[]};
_.J.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var A=_.sF(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;A&&A.reset()};
$1.prototype.onPopupClosed=$1.prototype.onPopupClosed;$1.prototype.onRequestSent=$1.prototype.onRequestSent;$1.prototype.onYtNavigate=$1.prototype.onYtNavigate;$1.prototype.onIronSelect=$1.prototype.onIronSelect;$1.prototype.onYtVideoLinkSelected=$1.prototype.onYtVideoLinkSelected;$1.prototype.onYtVideoLinkButtonCancel=$1.prototype.onYtVideoLinkButtonCancel;$1.prototype.onYtCommentboxLoadingEnd=$1.prototype.onYtCommentboxLoadingEnd;$1.prototype.onYtCommentboxLoadingStart=$1.prototype.onYtCommentboxLoadingStart;
$1.prototype.onYtCommentboxDismiss=$1.prototype.onYtCommentboxDismiss;$1.prototype.showButtonEduTooltip=$1.prototype.showButtonEduTooltip;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],$1.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],$1.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$1.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$1.prototype,"isOpen",void 0);_.V([_.n({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],$1.prototype,"buttonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$1.prototype,"modern",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$1.prototype,"roundedContainer",void 0);_.V([_.n(),_.H("design:type",Object)],$1.prototype,"dropdownButtonOverride",void 0);_.V([_.n({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.H("design:type",Boolean)],$1.prototype,"creationDisabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],$1.prototype,"enableCreationBox",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.H("design:type",Boolean)],$1.prototype,"isCreationDialog",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$1.prototype,"inPopupContainer",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.H("design:type",Boolean)],$1.prototype,"isCreationDialogWithHeader",void 0);_.V([_.n(),_.H("design:type",Object)],$1.prototype,"accessRestriction",void 0);
_.V([_.n({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.H("design:type",Array)],$1.prototype,"dropdownRendererClasses",void 0);_.V([_.n(),_.H("design:type",Object)],$1.prototype,"isCommentboxLoading",void 0);_.V([_.n(),_.H("design:type",Array)],$1.prototype,"attachmentButtonIds",void 0);_.V([_.lo("#image-button"),_.H("design:type",HTMLElement)],$1.prototype,"imageButton",void 0);
_.V([_.lo("#image-poll-button"),_.H("design:type",HTMLElement)],$1.prototype,"imagePollButton",void 0);_.V([_.lo("#quiz-button"),_.H("design:type",HTMLElement)],$1.prototype,"quizButton",void 0);_.V([_.lo("#commentbox"),_.H("design:type",Object)],$1.prototype,"JSC$16032_commentbox",void 0);_.V([_.ev("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$1.prototype,"showButtonEduTooltip",null);
_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$1.prototype,"onYtCommentboxDismiss",null);_.V([_.UQ("yt-commentbox-loading-start"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$1.prototype,"onYtCommentboxLoadingStart",null);
_.V([_.UQ("yt-commentbox-loading-end"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$1.prototype,"onYtCommentboxLoadingEnd",null);_.V([_.UQ("yt-video-link-button-cancel"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$1.prototype,"onYtVideoLinkButtonCancel",null);
_.V([_.UQ("yt-video-link-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$1.prototype,"onYtVideoLinkSelected",null);_.V([_.UQ("iron-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$1.prototype,"onIronSelect",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$1.prototype,"onYtNavigate",null);
_.V([_.UQ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$1.prototype,"onRequestSent",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$1.prototype,"onPopupClosed",null);_.V([_.y_({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],$1);
_.Y($1,"ytd-backstage-post-dialog-renderer",function(){if(gvT!==void 0)return gvT;var A=document.createElement("template");_.m(A,'\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"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\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>\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]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" 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 class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return gvT=A},{mode:1});var ypk;var vsC;var Hl=function(){return _.F.apply(this,arguments)||this};
_.R(Hl,_.F);_.J=Hl.prototype;_.J.computeHeartButtonStyle=function(A){return(A==null?0:A.styleType)?A.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onYtButtonTap=function(){if(this.data.isEnabled){var A=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(A=this.getEndpoint(A))&&_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}})}else(A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(A)};
_.J.toggle=function(A){this.set("data.isHearted",A!==void 0?A:!this.data.isHearted)};
_.J.getEndpoint=function(A){var t,f=(t=this.data)==null?void 0:t.heartEndpoint,X;t=(X=this.data)==null?void 0:X.unheartEndpoint;if(f&&t)return A?t:f};
_.J.computeButtonAccessibility=function(A,t){var f,X,Q=A==null?void 0:(f=A.heartedAccessibility)==null?void 0:(X=f.accessibilityData)==null?void 0:X.label,q,e;A=A==null?void 0:(q=A.unheartedAccessibility)==null?void 0:(e=q.accessibilityData)==null?void 0:e.label;return t?Q:A};
_.PV.Object.defineProperties(Hl.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 A;return _.M("kevlar_system_icons")&&!((A=this.data)==null||!A.isHearted)}}});
Hl.prototype.onYtButtonTap=Hl.prototype.onYtButtonTap;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],Hl.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Hl.prototype,"data",void 0);_.V([_.y("data.isHearted"),_.H("design:type",Object),_.H("design:paramtypes",[])],Hl.prototype,"heartTooltip",null);
_.V([_.y("data.isHearted"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Hl.prototype,"iconFilled",null);_.V([_.n({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.H("design:type",String)],Hl.prototype,"buttonAccessibility",void 0);_.V([_.n({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],Hl.prototype,"heartButtonStyle",void 0);
_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hl.prototype,"onYtButtonTap",null);_.V([_.y_({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Hl);
_.Y(Hl,"ytd-creator-heart-renderer",function(){if(vsC!==void 0)return vsC;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return vsC=A},{mode:1});var aV=function(){var A=_.F.apply(this,arguments)||this;A.hasCreatorReply=!1;A.buttonOverrides={size:"S",iconPosition:"icon-only"};A.replyButtonOverrides={size:"S",type:"text"};A.forceIconButton=!_.M("web_modern_buttons");A.modern=_.M("web_modern_buttons");A.buttonTooltipPosition="bottom";A.systemIcons=_.M("kevlar_system_icons");A.replyDialog=null;return A};
_.R(aV,_.F);_.J=aV.prototype;
_.J.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]]"}}}}}};
_.J.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.J.dataChange=function(){this.replyDialog&&_.sF(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var A,t,f;this.isLiked=this.systemIcons&&!!((A=this.data)==null?0:(t=A.likeButton)==null?0:(f=t.toggleButtonRenderer)==null?0:f.isToggled)};
_.J.computeShowVoteCountBeginning=function(A,t){return A===void 0||t===void 0?!0:A.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.J.computeShowVoteCountEnd=function(A,t){return A===void 0||t===void 0?!0:A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.J.computeShowCommentCount=function(A,t){return A===void 0||t===void 0?!0:A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.J.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.J.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.J.showReplyDialog=function(A){A&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.sF(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=A,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.J.onRequestSent=function(A){A=_.U(A.detail);for(var t=A.next();!t.done;t=A.next())(t=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",t.value))&&this.showReplyDialog(t)};
_.J.onYtNavigate=function(A){var t,f;(A=(t=_.C(A.detail.endpoint,_.Jaf))==null?void 0:(f=t.dialog)==null?void 0:f.commentReplyDialogRenderer)&&this.showReplyDialog(A)};
_.J.onYtServiceRequestSent=function(A,t){A.stopPropagation();if(t.actions)for(A=0;A<t.actions.length;A++){var f=_.C(t.actions[A],yhf);f&&this.handleUpdateCommentVoteAction(f)}};
_.J.handleUpdateCommentVoteAction=function(A){this.voteCount=A.voteCount||_.oC("0");A.voteStatus==="LIKE"?this.JSC$16044_ytdDislikeToggleButtonRenderer.toggle(!1):A.voteStatus==="DISLIKE"?this.JSC$16044_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16044_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16044_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.J.computeReplyButtonHidden=function(A){return A};
_.J.computeReplyButtonBeginning=function(A){return(A==null?0:A.replyButton)&&A.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?A.replyButton:void 0};
_.J.computeReplyButtonEnd=function(A){return(A==null?0:A.replyButton)&&A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?A.replyButton:void 0};
_.J.computeActionButtonStyle=function(A){return(A==null?0:A.style)?A.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.J.onYtToggleButton=function(A){var t,f;this.isLiked=this.systemIcons&&!!((t=A.detail)==null?0:(f=t.actions)==null?0:f.like)};
aV.prototype.onYtToggleButton=aV.prototype.onYtToggleButton;aV.prototype.onButtonTooltipPositionChanged=aV.prototype.onButtonTooltipPositionChanged;aV.prototype.onYtServiceRequestSent=aV.prototype.onYtServiceRequestSent;aV.prototype.onYtNavigate=aV.prototype.onYtNavigate;aV.prototype.onRequestSent=aV.prototype.onRequestSent;aV.prototype.onYtCommentboxDismiss=aV.prototype.onYtCommentboxDismiss;aV.prototype.dataChange=aV.prototype.dataChange;
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],aV.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],aV.prototype,"voteCount",void 0);_.V([_.n(),_.H("design:type",Object)],aV.prototype,"commentCount",void 0);_.V([_.n(),_.H("design:type",Object)],aV.prototype,"replyThumbnail",void 0);
_.V([_.n(),_.H("design:type",Object)],aV.prototype,"hasCreatorReply",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],aV.prototype,"enableCreationBox",void 0);_.V([_.n({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],aV.prototype,"actionButtonsStyle",void 0);_.V([_.n({computed:"computeReplyButtonBeginning(data)"}),_.H("design:type",Object)],aV.prototype,"replyButtonBeginning",void 0);
_.V([_.n({computed:"computeReplyButtonEnd(data)"}),_.H("design:type",Object)],aV.prototype,"replyButtonEnd",void 0);_.V([_.n(),_.H("design:type",Object)],aV.prototype,"buttonOverrides",void 0);_.V([_.n(),_.H("design:type",Object)],aV.prototype,"replyButtonOverrides",void 0);_.V([_.n(),_.H("design:type",Object)],aV.prototype,"forceIconButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],aV.prototype,"useCommentIcon",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aV.prototype,"modern",void 0);_.V([_.n(),_.H("design:type",Object)],aV.prototype,"buttonTooltipPosition",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aV.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],aV.prototype,"isLiked",void 0);_.V([_.lo("ytd-button-renderer"),_.H("design:type",Object)],aV.prototype,"ytdReplyButtonRenderer",void 0);
_.V([_.lo("#like-button"),_.H("design:type",Object)],aV.prototype,"JSC$16044_ytdLikeToggleButtonRenderer",void 0);_.V([_.lo("#dislike-button"),_.H("design:type",Object)],aV.prototype,"JSC$16044_ytdDislikeToggleButtonRenderer",void 0);_.V([_.lo("#reply-dialog"),_.H("design:type",HTMLElement)],aV.prototype,"replyDialogElement",void 0);_.V([_.lo("#reply-button"),_.H("design:type",HTMLElement)],aV.prototype,"replyButtonElement",void 0);
_.V([_.lo("#reply-button-end"),_.H("design:type",HTMLElement)],aV.prototype,"replyButtonEndElement",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aV.prototype,"dataChange",null);_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],aV.prototype,"onYtCommentboxDismiss",null);
_.V([_.UQ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],aV.prototype,"onRequestSent",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],aV.prototype,"onYtNavigate",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],aV.prototype,"onYtServiceRequestSent",null);_.V([_.ev("buttonTooltipPosition"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aV.prototype,"onButtonTooltipPositionChanged",null);
_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],aV.prototype,"onYtToggleButton",null);_.V([_.y_({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],aV);
_.Y(aV,"ytd-comment-action-buttons-renderer",function(){if(ypk!==void 0)return ypk;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ypk=A},{mode:1});var Lnb;var KQ=function(){return _.F.apply(this,arguments)||this};
_.R(KQ,_.F);KQ.prototype.focus=function(){_.sF(this.hostElement).querySelector("#commentbox").focus()};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],KQ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],KQ.prototype,"zeroStepChannelCreationRenderer",void 0);_.V([_.y_({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],KQ);
_.Y(KQ,"ytd-comment-dialog-renderer",function(){if(Lnb!==void 0)return Lnb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Lnb=A},{mode:1});var pei;var gh=function(){var A=_.F.apply(this,arguments)||this;A.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.M("enable_web_delhi_icons")};A.replyButtonOverrides={size:"S",type:"text"};return A};
_.R(gh,_.F);_.J=gh.prototype;_.J.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.J.detached=function(){this.replyBox&&this.replyBox.remove()};
_.J.showReplyDialog=function(A){if(A){var t=this.replyBox;t||(t=document.createElement("ytd-comment-reply-dialog-renderer"),t.id="replybox",_.sF(this.replyDialogDiv).appendChild(t));t.data=A;this.replyDialogDiv.hidden=!1;t.openDialog()}};
_.J.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.J.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var A,t=_.C((A=this.toolbarSurface)==null?void 0:A.subscribersOnlyDisclaimerSnackbarCommand,_.mG);t&&_.s9(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:t})}};
_.J.onYtServiceRequestSent=function(A,t){A.stopPropagation();if(t.actions)for(var f=0;f<t.actions.length;f++){var X=_.C(t.actions[f],yhf);X?this.handleUpdateCommentVoteAction(X):A.target===this.heartButton&&this.toggleHeartState()}};
_.J.handleUpdateCommentVoteAction=function(A){var t;(t=this.toolbarState)!=null&&t.key&&this.ytdReduxBehavior.dispatch(_.m0("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:A.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":A.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.J.toggleHeartState=function(){var A;(A=this.toolbarState)!=null&&A.key&&this.ytdReduxBehavior.dispatch(_.m0("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.PV.Object.defineProperties(gh.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return(((A=this.toolbarState)==null?void 0:A.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(t=this.toolbarData)==null?void 0:t.likeCountLiked:(f=this.toolbarData)==null?void 0:f.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand)!==void 0&&!_.M("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,t=_.C((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand,_.mG),f,X,Q,q,e,G,N,z,T;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((f=this.toolbarSharedData)==null||!f.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((X=this.toolbarState)==null?void 0:X.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:t!=null?t:_.C((Q=this.toolbarSurface)==null?void 0:Q.likeCommand,_.mG),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.C((q=this.toolbarSurface)==null?void 0:q.unlikeCommand,_.mG),defaultCommand:this.isVisiblyDisabled?_.C((e=this.toolbarSurface)==null?void 0:e.commentDisabledActionCommand,_.mG):void 0,defaultTooltip:(G=this.toolbarData)==null?void 0:G.likeInactiveTooltip,toggledTooltip:(N=this.toolbarData)==null?void 0:N.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(z=this.toolbarData)==null?void 0:z.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(T=this.toolbarSharedData)==null?void 0:T.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,t=_.C((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand,_.mG),f,X,Q,q,e,G,N,z,T,O;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((f=this.toolbarSharedData)==null||!f.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((X=this.toolbarState)==null?void 0:X.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.C((Q=this.toolbarSurface)==null?void 0:Q.dislikeCommand,_.mG),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.C((q=this.toolbarSurface)==null?void 0:q.undislikeCommand,_.mG),defaultCommand:this.isVisiblyDisabled?_.C((e=this.toolbarSurface)==null?void 0:e.commentDisabledActionCommand,_.mG):void 0,defaultTooltip:(G=this.toolbarData)==null?void 0:G.dislikeInactiveTooltip,toggledTooltip:(N=this.toolbarData)==null?void 0:
N.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(z=this.toolbarSharedData)==null?void 0:z.dislikeReplyButtonA11y:(T=this.toolbarSharedData)==null?void 0:T.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(O=this.toolbarSharedData)==null?void 0:O.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var A,t,f;if(((A=this.toolbarState)==null?void 0:A.heartState)!==void 0&&((t=this.toolbarState)==null?void 0:t.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((f=this.toolbarState)==null?void 0:f.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var X,Q,q,e,G,N,z,T,O,c,B,h,W,L;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(X=this.toolbarData)==null?void 0:X.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((q=this.toolbarState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((e=this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((G=this.toolbarState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.C((N=this.toolbarSurface)==null?void 0:N.heartCommand,
_.mG),unheartEndpoint:this.isVisiblyDisabled?void 0:_.C((z=this.toolbarSurface)==null?void 0:z.unheartCommand,_.mG),disabledEndpoint:this.isVisiblyDisabled?_.C((T=this.toolbarSurface)==null?void 0:T.commentDisabledActionCommand,_.mG):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(O=this.toolbarData)==null?void 0:O.heartActiveTooltip,unheartedTooltip:(c=this.toolbarData)==null?void 0:c.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((B=
this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(h=this.toolbarSharedData)==null?void 0:h.unheartButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(L=this.toolbarSharedData)==null?void 0:L.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.toolbarSurface)==null||!A.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.commentStrings)!=null&&A.replyButtonText){var t,f,X,Q;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(t=this.commentStrings)==null?void 0:t.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.C((f=this.toolbarSurface)==null?void 0:f.replyCommand,_.mG),command:this.isVisiblyDisabled?
_.C((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand,_.mG):this.isSubsOnlyCommentsIneligibleUser?_.C((Q=this.toolbarSurface)==null?void 0:Q.subscribersOnlySnackbarCommand,_.mG):void 0}}}}});
gh.prototype.onYtServiceRequestSent=gh.prototype.onYtServiceRequestSent;gh.prototype.hideReplyDialogDiv=gh.prototype.hideReplyDialogDiv;_.V([_.n(),_.H("design:type",Object)],gh.prototype,"commentStrings",void 0);_.V([_.n(),_.H("design:type",Boolean)],gh.prototype,"isReply",void 0);_.V([_.n(),_.H("design:type",Object)],gh.prototype,"toolbarData",void 0);_.V([_.n(),_.H("design:type",Object)],gh.prototype,"toolbarSharedData",void 0);
_.V([_.n(),_.H("design:type",String)],gh.prototype,"toolbarStateKey",void 0);_.V([_.n(),_.H("design:type",String)],gh.prototype,"toolbarSurfaceKey",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],gh.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],gh.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],gh.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.RH),_.H("design:type",Object)],gh.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.lo("#reply-dialog"),_.H("design:type",HTMLElement)],gh.prototype,"replyDialogDiv",void 0);_.V([_.lo("#replybox"),_.H("design:type",Object)],gh.prototype,"replyBox",void 0);_.V([_.lo("ytd-creator-heart-renderer"),_.H("design:type",Object)],gh.prototype,"heartButton",void 0);_.V([_.n({selector:function(A,t){return _.q_(A.entities,"engagementToolbarStateEntityPayload",t)},
selectorArgs:["toolbarStateKey"]}),_.H("design:type",Object)],gh.prototype,"toolbarState",void 0);_.V([_.n({selector:XKq,selectorArgs:["toolbarSurfaceKey"]}),_.H("design:type",Object)],gh.prototype,"toolbarSurface",void 0);_.V([_.n(),_.H("design:type",Object)],gh.prototype,"buttonOverrides",void 0);_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gh.prototype,"hideReplyDialogDiv",null);
_.V([_.y("toolbarData","toolbarState"),_.H("design:type",String),_.H("design:paramtypes",[])],gh.prototype,"likeCount",null);_.V([_.y("likeCount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gh.prototype,"showLikeCount",null);_.V([_.y("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gh.prototype,"isVisiblyDisabled",null);_.V([_.y("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gh.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.V([_.y("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gh.prototype,"isSubsOnlyCommentsEligibleUser",null);_.V([_.y("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gh.prototype,"hasPrepareAccountCommand",null);_.V([_.y("toolbarData","toolbarState","toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],gh.prototype,"likeToggleButtonRenderer",null);
_.V([_.y("isReply","toolbarData","toolbarState","toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],gh.prototype,"dislikeToggleButtonRenderer",null);_.V([_.y("toolbarData","toolbarState","toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],gh.prototype,"creatorHeartSupportedRenderer",null);_.V([_.y("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gh.prototype,"hasReplyCommand",null);
_.V([_.y("toolbarSurface","commentStrings","isVisiblyDisabled"),_.H("design:type",Object),_.H("design:paramtypes",[])],gh.prototype,"replyButtonRenderer",null);_.V([_.n(),_.H("design:type",Object)],gh.prototype,"replyButtonOverrides",void 0);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],gh.prototype,"onYtServiceRequestSent",null);_.V([_.y_({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],gh);
_.Y(gh,"ytd-comment-engagement-bar",function(){if(pei!==void 0)return pei;var A=document.createElement("template");_.m(A,'\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]]" on-click="handleReplyButtonClick" 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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return pei=A},{mode:1});var EsT;var wh=function(){return _.F.apply(this,arguments)||this};
_.R(wh,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wh.prototype,"data",void 0);_.V([_.y_({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],wh);
_.Y(wh,"ytd-comment-inline-thumbnail-renderer",function(){if(EsT!==void 0)return EsT;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return EsT=A},{mode:1});var nsk;var sR=function(){return _.F.apply(this,arguments)||this};
_.R(sR,_.F);sR.prototype.onMessageTap=function(){if(this.onTapCommand){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);A&&this.ytdOpenPopupBehavior.openPopup(A)}};
_.PV.Object.defineProperties(sR.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return(A=this.data)==null?void 0:(t=A.button)==null?void 0:(f=t.buttonRenderer)==null?void 0:f.command}}});
_.V([_.b(_.RH),_.H("design:type",Object)],sR.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sR.prototype,"data",void 0);_.V([_.y("data.button.buttonRenderer.command"),_.H("design:type",Object),_.H("design:paramtypes",[])],sR.prototype,"onTapCommand",null);_.V([_.y_({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],sR);
_.Y(sR,"ytd-comment-pause-composer-renderer",function(){if(nsk!==void 0)return nsk;var A=document.createElement("template");_.m(A,'\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" on-click="onMessageTap" 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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return nsk=A},{mode:1});var D0E;var FnT;var k1=function(){var A=_.F.apply(this,arguments)||this;A.isOpen=!1;return A};
_.R(k1,_.F);_.J=k1.prototype;_.J.dataChanged=function(){this.isOpen=!1};
_.J.onTap=function(){this.data&&(this.data.navigationEndpoint?_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.J.focus=function(){this.JSC$16073_commentbox.focus()};
_.J.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.J.openDialog=function(){this.isOpen=!0;this.JSC$16073_commentbox.focus();this.JSC$16073_commentbox.maybeHeightChanged()};
k1.prototype.onYtCommentboxDismiss=k1.prototype.onYtCommentboxDismiss;k1.prototype.dataChanged=k1.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],k1.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],k1.prototype,"isOpen",void 0);_.V([_.lo("#commentbox"),_.H("design:type",Object)],k1.prototype,"JSC$16073_commentbox",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],k1.prototype,"dataChanged",null);_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],k1.prototype,"onYtCommentboxDismiss",null);_.V([_.y_({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],k1);
_.Y(k1,"ytd-comment-reply-dialog-renderer",function(){if(FnT!==void 0)return FnT;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return FnT=A},{mode:1});var IyT;var rh=function(){return _.F.apply(this,arguments)||this};
_.R(rh,_.F);_.PV.Object.defineProperties(rh.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(A=this.data)==null?void 0:(t=A.icon)==null?void 0:t.iconType;return f?"yt-icons:"+f.toLowerCase():null}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rh.prototype,"data",void 0);_.V([_.n(),_.y("data.icon"),_.H("design:type",Object),_.H("design:paramtypes",[])],rh.prototype,"icon",null);_.V([_.y_({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],rh);
_.Y(rh,"ytd-pinned-comment-badge-renderer",function(){if(IyT!==void 0)return IyT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return IyT=A},{mode:1});var x0p;var jLC={},YDT={input:!0,meta:!0,br:!0,link:!0,img:!0},AT=null;jLC.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(){AT==null&&(AT=document.createElement("tp-yt-paper-tooltip"),AT.offset=8,AT.fitToVisibleBounds=!0)},
onMouseOver_:function(A){if(A=_.Hd(A.target,function(Q){return Q==this||Q.getAttribute&&Q.getAttribute("shared-tooltip-text")}.bind(this),!0)){var t=A.getAttribute("shared-tooltip-text");
if(t){var f=this,X=null;A!=this&&(A.tagName.toLowerCase()in YDT?f=A.parentElement:f=A,A.id&&(X=A.id));this.polymerController.createTooltipIfRequired_();if(AT.parentElement!=f||AT.for!=X)(0,_.XD)(AT).textContent=t,_.sF(f).appendChild(AT),AT.for=X,AT.animationDelay=this.polymerController.sharedTooltipAnimationDelay,AT.position=this.polymerController.sharedTooltipPosition}}}};var tT=function(){return _.F.apply(this,arguments)||this};
_.R(tT,_.F);tT.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]]"}}}}}};
tT.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var A;((A=this.data)==null?0:A.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var t;((t=this.data)==null?0:t.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
tT.prototype.colorChanged=function(){var A,t,f,X=(A=this.data)==null?void 0:(t=A.color)==null?void 0:(f=t.basicColorPaletteData)==null?void 0:f.foregroundBodyColor;X&&(this.rgbBadgeColor=_.mt(X));_.sF(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
tT.prototype.tooltipChanged=function(){var A;((A=this.data)==null?0:A.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
tT.prototype.tooltipChanged=tT.prototype.tooltipChanged;tT.prototype.colorChanged=tT.prototype.colorChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(jLC.YtSharedTooltipBehavior),_.H("design:type",Object)],tT.prototype,"ytSharedTooltipBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],tT.prototype,"data",void 0);
_.V([_.n({value:"#4285F4"}),_.H("design:type",String)],tT.prototype,"rgbBadgeColor",void 0);_.V([_.ev("data.color"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tT.prototype,"colorChanged",null);_.V([_.ev("data.tooltip"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tT.prototype,"tooltipChanged",null);_.V([_.y_({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],tT);
_.Y(tT,"ytd-sponsor-comment-badge-renderer",function(){if(x0p!==void 0)return x0p;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return x0p=A},{mode:1});var Vuk;var ZBC;var f$=function(){return _.F.apply(this,arguments)||this};
_.R(f$,_.F);f$.prototype.computeState=function(A){switch(A==null?void 0:A.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"}};
f$.prototype.updateStateIdentifier=function(A){if(this.viewModel.triStateKey){var t=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.m0("triStateButtonStateEntityPayload",t,{key:t,stateIdentifier:A}))}};
f$.prototype.onClick=function(){var A=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(){A.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){A.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.PV.Object.defineProperties(f$.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 A;return((A=this.data)==null?void 0:A.buttonText)||""}}});
_.V([_.n(),_.H("design:type",Object)],f$.prototype,"viewModel",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],f$.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],f$.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.V([_.n({selector:QEx,selectorArgs:["viewModel.triStateKey"]}),_.H("design:type",Object)],f$.prototype,"triStateButtonStateEntity",void 0);
_.V([_.n({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.H("design:type",String)],f$.prototype,"state",void 0);_.V([_.y("viewModel","state"),_.H("design:type",Object),_.H("design:paramtypes",[])],f$.prototype,"data",null);_.V([_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],f$.prototype,"buttonText",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],f$);
_.Y(f$,"ytd-tri-state-button-view-model",function(){if(ZBC!==void 0)return ZBC;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ZBC=A},{mode:1});var osf;var d0k;var Xz=function(){var A=_.F.apply(this,arguments)||this;A.defaultIconToFilled=!_.M("kevlar_fill_comment_chip_icon_killswitch");return A};
_.R(Xz,_.F);Xz.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Xz.prototype.dataChanged=function(){if(this.data){var A,t;((A=this.data.chipColorPalette)==null?0:A.backgroundColor)&&((t=this.data.chipColorPalette)==null?0:t.foregroundTitleColor)&&_.Q_(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.bY(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.bY(this.data.chipColorPalette.foregroundTitleColor)});var f;((f=this.data)==null?0:f.command)?(_.Q_(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Q_(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}};
Xz.prototype.onTap=function(){var A;if(this.data&&(A=this.data)!=null&&A.command){var t;this.ytComponentBehavior.resolveCommand((t=this.data)==null?void 0:t.command)}};
Xz.prototype.getIconSize=function(){return _.M("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Xz.prototype.onTap=Xz.prototype.onTap;Xz.prototype.dataChanged=Xz.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Xz.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.YD),_.H("design:type",Object)],Xz.prototype,"ironA11yKeysBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Xz.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],Xz.prototype,"basePriceText",void 0);_.V([_.n(),_.H("design:type",Object)],Xz.prototype,"chipIcon",void 0);_.V([_.n(),_.H("design:type",Object)],Xz.prototype,"defaultIconToFilled",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xz.prototype,"dataChanged",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xz.prototype,"onTap",null);
_.V([_.WU({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Xz);
_.Y(Xz,"yt-pdg-comment-chip-renderer",function(){if(d0k===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;osf===void 0&&(osf=document.createElement("template"));var X=osf;f.call(t,X.content.cloneNode(!0),A.content.firstChild);d0k=A}A=d0k;return A},{mode:2});var Qw=function(){var A=_.F.apply(this,arguments)||this;A.useSmallAvatars=_.M("small_avatars_for_comments");A.commentThreadingEnabled=_.M("web_delhi_comment_threads");A.webWatchCompactComments=_.M("web_watch_compact_comments");A.editDialog=null;return A};
_.R(Qw,_.F);_.J=Qw.prototype;_.J.onShow=function(){_.yg("cmv",void 0,"wn_comments")};
_.J.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"}}}};
_.J.detached=function(){this.editDialog=null;this.expander.reset()};
_.J.updateBackgroundColor=function(){if(this.backgroundColor){var A={"--ytd-comment-paid-background-color":_.bY(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Q_(this.hostElement,A)}else _.Q_(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.J.resetExpander=function(){var A;(A=this.expander)==null||A.reset()};
_.J.openEditDialog=function(A){A.dialog&&(this.editDialog=A.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.J.onYtNavigate=function(A){var t=A.detail.endpoint;if(t=_.C(t,_.UXT)||_.C(t,_.egw))A.stopPropagation(),this.openEditDialog(t)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null;_.Q_(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.J.onAuthorThumbnailClicked=function(){_.M("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.J.onYtCommentboxResize=function(A){var t;(A==null?0:(t=A.detail)==null?0:t.height)&&_.Q_(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":A.detail.height+"px"})};
_.PV.Object.defineProperties(Qw.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 A,t=(A=this.commentEntity)==null?void 0:A.author;return t&&(t.isCreator||t.isVerified||t.isArtist)?{renderer:{authorEndpoint:t.channelPageEndpoint?_.C(t.channelPageEndpoint,_.mG):_.C(t.channelCommand,_.mG),authorText:{runs:[{text:t.displayName}]},color:t.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:t.isArtist?{iconType:"AUDIO_BADGE"}:
t.isVerified?{iconType:t.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:t.isArtist||t.isVerified?t.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var A,t=(A=this.commentEntity)==null?void 0:A.author;return t!=null&&t.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:t.sponsorBadgeUrl}]},tooltip:t.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return _.C((A=this.commentSurfaceEntity)==null?void 0:A.pdgCommentChip,_.xXp)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var A;return this.voiceReplyContainerViewModel&&((A=this.voiceReplyContainerViewModel)==null?void 0:A.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return _.C((A=this.commentSurfaceEntity)==null?void 0:A.voiceReplyContainerViewModel,x$T)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var A;return this.voiceReplyContainerViewModel&&(A=this.voiceReplyContainerViewModel)!=null&&A.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=(A=this.commentSurfaceEntity)==null?void 0:A.commentBackgroundColor)!=null?t:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.M("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var A,t;return(((A=this.commentEntity)==null?void 0:(t=A.properties)==null?void 0:t.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var A,t;if(_.M("enable_profile_cards_on_comments")&&((A=this.commentEntity)==null?0:(t=A.author)==null?0:t.profileCardEndpoint)&&this.viewModel.allowProfileCard){var f,X;return _.C((f=this.commentEntity)==null?void 0:(X=f.author)==null?void 0:X.profileCardEndpoint,_.mG)}var Q,q;return _.C((Q=this.commentEntity)==null?void 0:(q=Q.avatar)==null?void 0:q.endpoint,_.mG)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var A,t;if(_.M("enable_profile_cards_on_comments")&&((A=this.commentEntity)==null?0:(t=A.author)==null?0:t.channelPageEndpoint)){var f,X;return _.C((f=this.commentEntity)==null?void 0:(X=f.author)==null?void 0:X.channelPageEndpoint,_.mG)}var Q,q;return _.C((Q=this.commentEntity)==null?void 0:(q=Q.avatar)==null?void 0:q.endpoint,_.mG)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X,Q=(A=this.commentEntity)==null?void 0:(t=A.avatar)==null?void 0:(f=t.image)==null?void 0:(X=f.sources)==null?void 0:X[0];return Q?{thumbnails:[{url:Q.url,width:Q.width,height:Q.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.commentEntity)==null?0:(t=A.author)==null?0:t.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.commentEntity)==null?void 0:(t=A.author)==null?void 0:t.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.commentEntity)==null?void 0:(t=A.properties)==null?void 0:t.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var A;return _.C((A=this.commentSurfaceEntity)==null?void 0:A.publishedTimeCommand,_.mG)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var A,t;if(((A=this.commentEntity)==null?0:A.translatedContent)&&((t=this.translateButtonState)==null?void 0:t.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var f;if((f=this.voiceReplyContainerViewModel)==null?0:f.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var X,Q;return((X=this.commentEntity)==null?void 0:(Q=X.properties)==null?void 0:Q.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.commentSharedEntity)==null?void 0:(t=A.strings)==null?void 0:t.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.commentSharedEntity)==null?void 0:(t=A.strings)==null?void 0:t.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.commentEntity)==null||!A.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var A,t,f=(t=_.C((A=this.viewModel)==null?void 0:A.translateButton,Iok))!=null?t:{},X,Q,q,e,G,N,z,T,O,c,B;return Object.assign({},f,{untoggledStateData:Object.assign({},f.untoggledStateData,{buttonText:(X=this.commentEntity)==null?void 0:(Q=X.translateData)==null?void 0:Q.text}),togglingStateData:Object.assign({},f.togglingStateData,{buttonText:(q=this.commentSharedEntity)==null?
void 0:(e=q.strings)==null?void 0:e.translatingText}),toggledStateData:Object.assign({},f.toggledStateData,{buttonText:(G=this.commentSharedEntity)==null?void 0:(N=G.strings)==null?void 0:N.seeOriginalText}),transitionCommand:((z=this.commentEntity)==null?0:z.translatedContent)?void 0:_.C((T=this.commentEntity)==null?void 0:(O=T.translateData)==null?void 0:O.translateComment,_.mG),triStateKey:(c=this.commentEntity)==null?void 0:(B=c.properties)==null?void 0:B.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((t=_.C(_.C((A=this.toolbarSurface)==null?void 0:A.menuCommand,_.mG),GLS))==null?void 0:(f=t.menu)==null?void 0:f.menuRenderer)||null}}});
Qw.prototype.onYtCommentboxResize=Qw.prototype.onYtCommentboxResize;Qw.prototype.onYtCommentboxDismiss=Qw.prototype.onYtCommentboxDismiss;Qw.prototype.onYtNavigate=Qw.prototype.onYtNavigate;Qw.prototype.resetExpander=Qw.prototype.resetExpander;Qw.prototype.updateBackgroundColor=Qw.prototype.updateBackgroundColor;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Qw.prototype,"ytdReduxBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Qw.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.lo("#author-thumbnail > button"),_.H("design:type",HTMLElement)],Qw.prototype,"authorThumbnailAnchor",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("viewModel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qw.prototype,"linked",null);
_.V([_.y("viewModel","linked"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"linkedCommentBadge",null);_.V([_.n({reflectToAttribute:!0}),_.y("viewModel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qw.prototype,"pinned",null);_.V([_.y("viewModel","pinned"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"pinnedCommentBadge",null);
_.V([_.y("commentEntity","commentSharedEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"authorCommentBadge",null);_.V([_.n({reflectToAttribute:!0}),_.y("authorCommentBadge"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"hasAuthorBadge",null);_.V([_.y("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"sponsorCommentBadge",null);
_.V([_.n({reflectToAttribute:!0}),_.y("sponsorCommentBadge"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"hasSponsorBadge",null);_.V([_.y("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"pdgCommentChipRenderer",null);_.V([_.n({reflectToAttribute:!0}),_.y("voiceReplyContainerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"hasVoiceReply",null);
_.V([_.y("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"voiceReplyContainerViewModel",null);_.V([_.y("voiceReplyContainerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"voiceReplyUnavailableText",null);_.V([_.n(),_.H("design:type",Object)],Qw.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"viewModel",null);
_.V([_.n({selector:function(A,t){return _.q_(A.entities,"commentSharedEntityPayload",t)},
selectorArgs:["viewModel.sharedKey"]}),_.H("design:type",Object)],Qw.prototype,"commentSharedEntity",void 0);_.V([_.n({selector:fE5,selectorArgs:["viewModel.commentKey"]}),_.H("design:type",Object)],Qw.prototype,"commentEntity",void 0);_.V([_.n({selector:function(A,t){return _.q_(A.entities,"commentSurfaceEntityPayload",t)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.H("design:type",Object)],Qw.prototype,"commentSurfaceEntity",void 0);_.V([_.n({selector:XKq,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.H("design:type",Object)],Qw.prototype,"toolbarSurface",void 0);_.V([_.n({selector:QEx,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.H("design:type",Object)],Qw.prototype,"translateButtonState",void 0);
_.V([_.y("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"backgroundColor",null);_.V([_.n({reflectToAttribute:!0}),_.y("viewModel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qw.prototype,"optimalReadingWidthComments",null);_.V([_.lo("ytd-expander"),_.H("design:type",Object)],Qw.prototype,"expander",void 0);
_.V([_.ev("backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qw.prototype,"updateBackgroundColor",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Qw.prototype,"useSmallAvatars",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Qw.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Qw.prototype,"commentThreadingEnabled",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Qw.prototype,"webWatchCompactComments",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"isReply",null);_.V([_.y("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"authorThumbnailEndpoint",null);_.V([_.y("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"authorNameEndpoint",null);
_.V([_.y("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"authorThumbnail",null);_.V([_.y("commentEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Qw.prototype,"authorTextClass",null);_.V([_.y("commentEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Qw.prototype,"authorChannelName",null);_.V([_.y("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"publishedTime",null);
_.V([_.y("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"publishedTimeCommand",null);_.V([_.y("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"contentText",null);_.V([_.ev("contentText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qw.prototype,"resetExpander",null);
_.V([_.y("commentEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qw.prototype,"shouldShowReadMoreInitially",null);_.V([_.y("commentSharedEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Qw.prototype,"expandText",null);_.V([_.y("commentSharedEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Qw.prototype,"collapseText",null);_.V([_.y("commentEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qw.prototype,"shouldShowTranslateButton",null);
_.V([_.y("commentEntity","commentSharedEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"translateButton",null);_.V([_.y("toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qw.prototype,"overflowMenuRenderer",null);_.V([_.n(),_.H("design:type",Object)],Qw.prototype,"editDialog",void 0);_.V([_.lo("ytd-comment-dialog-renderer"),_.H("design:type",Object)],Qw.prototype,"editCommentDialogContainer",void 0);
_.V([_.lo("ytd-comment-reply-dialog-renderer"),_.H("design:type",Object)],Qw.prototype,"editReplyDialogContainer",void 0);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Qw.prototype,"onYtNavigate",null);_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Qw.prototype,"onYtCommentboxDismiss",null);
_.V([_.UQ("yt-commentbox-resize"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Qw.prototype,"onYtCommentboxResize",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Qw);
_.Y(Qw,"ytd-comment-view-model",function(){if(Vuk!==void 0)return Vuk;var A=document.createElement("template");_.m(A,'\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"> </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          \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"> [[authorChannelName]] </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" recompute-on-resize="[[webWatchCompactComments]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Vuk=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});_.Hn(_.I(function(A){var t={};return _.u("yt-sub-thread",{class:_.Ao("ytSubThreadHost",(t.ytSubThreadHasButton=A.isButton,t.ytSubThreadHovered=A.hovered,t.ytSubThreadTopLevelThread=function(){var f,X;return((f=A.topLevelThread)==null?void 0:f.call(A))&&!(_.M("small_avatars_for_comments")&&((X=A.engagementPanel)==null?0:X.call(A)))},t))},_.u("div",{class:"ytSubThreadThreadline"},_.u(_.P,{cond:function(){var f;
return!((f=A.isTeaser)==null?0:f.call(A))},
then:function(){return _.u("div",{class:"ytSubThreadConnection"})}}),_.u("div",{class:"ytSubThreadContinuation"}),_.u("div",{class:"ytSubThreadShadow"})),_.u("div",{class:"ytSubThreadSubThreadContent"},A.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.PS,
isTeaser:_.PS,hovered:_.PS,topLevelThread:_.PS,engagementPanel:_.PS}});var qn=function(){var A=_.F.apply(this,arguments)||this;A.modern=_.M("web_modern_buttons");A.commentThreadingEnabled=_.M("web_delhi_comment_threads");A.isWatchGrid=_.M("kevlar_watch_grid");A.buttonOverrides=A.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};A.JSC$16119_spinnerEl=null;return A};
_.R(qn,_.F);_.J=qn.prototype;_.J.configureContinuationPathMap=function(){return _.M("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.shouldShowLegacyTeasers=function(A,t){return A&&!t};
_.J.shouldShowExpandedThreads=function(A,t){return this.commentThreadingEnabled&&t&&(A==null?void 0:A.length)>0};
_.J.shouldShowCollapsedThreads=function(A,t){return this.commentThreadingEnabled&&!t&&A};
_.J.computeCommentViewModel=function(A){return _.C(A,Fbk)};
_.J.computeThreadRenderer=function(A){return _.C(A,v3f)};
_.J.computeIsContinuationItem=function(A){return!!this.computeContinuationItemRenderer(A)};
_.J.computeButtonRenderer=function(A){return _.C(A,_.Gf)};
_.J.computeContinuationItemRenderer=function(A){return _.C(A,_.H$)};
_.J.computeShowButton=function(A){var t;return!((t=this.computeContinuationItemRenderer(A))==null||!t.button)};
_.J.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]]"}}}}}};
_.J.attached=function(){this.isShowRepliesVisible=!0};
_.J.dataChanged=function(){var A=this.expanderContents;A&&(A.hidden=!0);this.isLoading=!1};
_.J.endsInContinuation=function(A){return!!A&&A.length>0&&!!this.computeContinuationItemRenderer(A[A.length-1])};
_.J.computeShouldShowHideRepliesButton=function(A,t){return!A&&t};
_.J.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.J.isLoadingChanged=function(){this.isLoading&&!this.JSC$16119_spinnerEl&&(this.JSC$16119_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.sF(this.expanderContents).appendChild(this.JSC$16119_spinnerEl));this.JSC$16119_spinnerEl&&(this.JSC$16119_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var A;(A=this.contents)==null||A.classList.remove("reloading")}};
_.J.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var A=_.C(this.data.viewReplies,_.Gf);A&&this.ytRendererBehavior.logExplicitClick(A);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.J.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var A=_.C(this.data.hideReplies,_.Gf);A&&this.ytRendererBehavior.logExplicitClick(A);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.J.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var A=_.sF(this.hostElement).querySelector("#expander-contents");A&&(A.hidden=this.isShowRepliesVisible)}};
_.J.computeAlign=function(){if(this.modern){var A;return!((A=this.data)==null?0:A.viewRepliesCreatorThumbnail)}};
_.PV.Object.defineProperties(qn.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var A,t;return this.endsInContinuation((A=this.data)==null?void 0:A.contents)||this.commentThreadingEnabled&&this.endsInContinuation((t=this.data)==null?void 0:t.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var A;return(A=this.data)==null?void 0:A.teaserContents}}});
qn.prototype.isShowMoreChanged=qn.prototype.isShowMoreChanged;qn.prototype.isLoadingChanged=qn.prototype.isLoadingChanged;qn.prototype.triggerFirstContinuation=qn.prototype.triggerFirstContinuation;qn.prototype.dataChanged=qn.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.Ba),_.H("design:type",Object)],qn.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qn.prototype,"modern",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qn.prototype,"commentThreadingEnabled",void 0);_.V([_.n(),_.H("design:type",Boolean)],qn.prototype,"expanded",void 0);
_.V([_.n(),_.H("design:type",Function)],qn.prototype,"toggleExpanded",void 0);_.V([_.n(),_.H("design:type",Array)],qn.prototype,"addedReplies",void 0);_.V([_.n(),_.H("design:type",Boolean)],qn.prototype,"hovered",void 0);_.V([_.n(),_.H("design:type",Boolean)],qn.prototype,"topLevelThread",void 0);_.V([_.n(),_.H("design:type",Boolean)],qn.prototype,"isLoading",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],qn.prototype,"isShowRepliesVisible",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],qn.prototype,"useNewFormatting",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],qn.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qn.prototype,"isWatchGrid",void 0);_.V([_.n(),_.H("design:type",Object)],qn.prototype,"buttonOverrides",void 0);_.V([_.lo("#expander-contents"),_.H("design:type",HTMLElement)],qn.prototype,"expanderContents",void 0);
_.V([_.lo("ytd-continuation-item-renderer"),_.H("design:type",Object)],qn.prototype,"continuationItemRenderer",void 0);_.V([_.lo("#contents"),_.H("design:type",HTMLElement)],qn.prototype,"contents",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qn.prototype,"dataChanged",null);_.V([_.y("data.contents","data.subThreads.*"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qn.prototype,"hasContinuation",null);
_.V([_.y("data.teaserContents"),_.H("design:type",Object),_.H("design:paramtypes",[])],qn.prototype,"subThreadTeasers",null);_.V([_.UQ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qn.prototype,"triggerFirstContinuation",null);_.V([_.ev("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qn.prototype,"isLoadingChanged",null);
_.V([_.ev("isShowRepliesVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qn.prototype,"isShowMoreChanged",null);_.V([_.y_({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],qn);
_.Y(qn,"ytd-comment-replies-renderer",function(){if(D0E!==void 0)return D0E;var A=document.createElement("template");_.m(A,'\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="[[commentThreadingEnabled]]" 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="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="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-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return D0E=A},{mode:1});var SDl;var JT=function(){var A=_.F.apply(this,arguments)||this;A.isOpen=!1;A.commentDialog=null;A.useSmallAvatars=_.M("small_avatars_for_comments");A.useSmallAvatarsEngagementPanelOnly=_.M("small_avatars_for_comments_ep");A.placeholderFocusListener=null;A.hasOpenedDialog=!1;A.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return A};
_.R(JT,_.F);_.J=JT.prototype;_.J.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]]"}}}}}};
_.J.ready=function(){var A=this,t=_.sF(this.hostElement).querySelector("#placeholder-area"),f=_.sF(this.hostElement).querySelector("#simplebox-placeholder"),X=function(Q){Q.stopPropagation();Q instanceof KeyboardEvent&&Q.type==="keypress"&&Q.keyCode!==13&&Q.keyCode!==32||A.openDialog()};
this.placeholderFocusListener=X;f.addEventListener("focus",this.placeholderFocusListener);t.addEventListener("tap",X);t.addEventListener("keypress",X)};
_.J.maybeRemoveFocusEventListener=function(){var A;(A=this.data)!=null&&A.prepareAccountEndpoint&&!_.M("web_comments_simplebox_modal_focus_on_tap_ks")&&(A=_.sF(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(A.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.J.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.J.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.M("web_comment_simplebox_resolve_polymer_command_ks")?_.XH.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Qx(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);A&&this.ytdOpenPopupBehavior.openPopup(A);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.sF(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.J.onYtCommentboxDismiss=function(A){A.stopPropagation();this.isOpen=!1};
_.J.onCreateCommentAction=function(A){this.get("createCommentAction.contents",A)&&(this.isOpen=!1)};
_.J.computeCommentDialog=function(A){return{placeholderText:A.placeholderText,authorThumbnail:A.authorThumbnail,submitButton:A.submitButton,imageButton:A.imageButton,cancelButton:A.cancelButton,emojiButton:A.emojiButton,emojis:A.emojis,emojiPicker:A.emojiPicker,aadcGuidelinesStateEntityKey:A.aadcGuidelinesStateEntityKey,openAadcDialog:A.openAadcDialog,unicodeEmojisUrl:A.unicodeEmojisUrl}};
_.J.onHideIdentityChip=function(A){_.C(A,hAb)&&this.set("data.placeholderText",_.C(A,hAb).placeholderText)};
JT.prototype.onYtCommentboxDismiss=JT.prototype.onYtCommentboxDismiss;JT.prototype.dataChanged=JT.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],JT.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],JT.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],JT.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],JT.prototype,"isOpen",void 0);_.V([_.n(),_.H("design:type",Object)],JT.prototype,"commentDialog",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],JT.prototype,"engagementPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],JT.prototype,"useSmallAvatars",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],JT.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],JT.prototype,"enableCreationBox",void 0);_.V([_.n(),_.H("design:type",Boolean)],JT.prototype,"showCreateDialog",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JT.prototype,"dataChanged",null);_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],JT.prototype,"onYtCommentboxDismiss",null);_.V([_.y_({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],JT);
_.Y(JT,"ytd-comment-simplebox-renderer",function(){if(SDl!==void 0)return SDl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return SDl=A},{mode:1});var $0k;_.C1("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Uz=function(){var A=_.F.apply(this,arguments)||this;A.addHoverEffect=_.M("swatcheroo_comments_hover_effect");A.useSmallAvatars=_.M("small_avatars_for_comments");A.scrollingEnabled=_.M("web_comment_threading_scroll_on_collapse");A.isSubThread=!1;A.threadHovered=!1;A.expanded=!1;A.removed=!1;A.addedReplies=[];A.actionMap=A.configureActionMap();A.toggleExpanded=function(){A.expanded=!A.expanded;!A.expanded&&A.scrollingEnabled&&_.kJ(A.hostElement,"yt-scroll-to-comment-element",[A.commentElement])};
return A};
_.R(Uz,_.F);_.J=Uz.prototype;_.J.configureActionMap=function(){return _.M("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.J.createCommentReplyAction=function(A){A=_.C(A,MPT);if(A!=null&&A.contents){var t=A.replyToCommentId,f=A.parentCommentId,X,Q=(X=this.commentViewModel)==null?void 0:X.commentId;(Q===t||Q===f&&!t)&&this.maybeAttachReply(A.contents)}};
_.J.maybeAttachReply=function(A){var t,f;(((t=this.commentEntity)==null?void 0:(f=t.properties)==null?void 0:f.replyLevel)||0)>=3?_.s9(this.hostElement,"yt-pushed-create-comment-reply",A):this.attachReply(A)};
_.J.onPushedCreateCommentReply=function(A){var t,f;(((t=this.commentEntity)==null?void 0:(f=t.properties)==null?void 0:f.replyLevel)||0)>=3||(this.attachReply(A.detail),A.stopPropagation())};
_.J.attachReply=function(A){var t;((t=this.data)==null?0:t.replies)?(t=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+t+".continuationItemRenderer")?t===0?this.push("addedReplies",A):this.splice("data.replies.commentRepliesRenderer.subThreads",t,0,A):this.push("data.replies.commentRepliesRenderer.subThreads",A)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[A],viewReplies:{buttonRenderer:{text:_.w0(_.e5("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.J.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.YV(this.addedReplies))),this.set("addedReplies",[]))};
_.J.removeCommentAction=function(A){A=_.C(A,b6T);var t=A==null?void 0:A.commentId,f;t&&((f=this.commentViewModel)==null?void 0:f.commentId)===t&&this.maybeRemoveComment(A.actionResult)};
_.J.banAuthorAction=function(A){A=_.C(A,chf);var t=A==null?void 0:A.commentId,f;t&&((f=this.commentViewModel)==null?void 0:f.commentId)===t&&this.maybeRemoveComment(A.actionResult)};
_.J.hideReportedCommentAction=function(A){A=_.C(A,Z6C);var t=A==null?void 0:A.commentId,f;t&&((f=this.commentViewModel)==null?void 0:f.commentId)===t&&this.maybeRemoveComment(A.actionResult)};
_.J.maybeRemoveComment=function(A){A&&A.status==="STATUS_SUCCEEDED"&&(this.feedbackText=A.feedbackText||_.w0("Reply removed"),this.removed=!0)};
_.J.onTap=function(A){if(this.addHoverEffect&&!this.engagementPanel&&!_.Sl(_.Z2(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||_.Qx({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.J.attached=function(){var A=this;this.isSubThread&&(this.expanded=!0);var t;(t=this.commentThreadHitbox)==null||t.addEventListener("mouseover",function(){A.threadHovered=!0});
var f;(f=this.commentThreadHitbox)==null||f.addEventListener("mouseout",function(){A.threadHovered=!1});
var X;(X=this.commentThreadHitbox)==null||X.addEventListener("click",function(){A.maybeToggleExpanded()})};
_.J.onDataChanged=function(){var A=_.M("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(A)&&this.set(A,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.J.maybeToggleExpanded=function(){var A,t,f,X=(A=this.data)==null?void 0:(t=A.replies)==null?void 0:(f=t.commentRepliesRenderer)==null?void 0:f.subThreads,Q;(X==null?void 0:X.length)===1&&((Q=_.C(X[0],_.H$))==null?0:Q.button)&&this.expanded||this.toggleExpanded()};
_.PV.Object.defineProperties(Uz.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return _.C((A=this.data)==null?void 0:A.commentViewModel,Fbk)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return _.M("web_delhi_comment_threads")&&!!((A=this.data)==null?0:(t=A.replies)==null?0:(f=t.commentRepliesRenderer)==null?0:f.subThreads)}}});
Uz.prototype.onDataChanged=Uz.prototype.onDataChanged;Uz.prototype.onTap=Uz.prototype.onTap;Uz.prototype.onAppendContinuationItemsActionFinished=Uz.prototype.onAppendContinuationItemsActionFinished;Uz.prototype.onPushedCreateCommentReply=Uz.prototype.onPushedCreateCommentReply;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Uz.prototype,"ytdReduxBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Uz.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Uz.prototype,"addHoverEffect",void 0);_.V([_.n(),_.H("design:type",Object)],Uz.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Uz.prototype,"useSmallAvatars",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Uz.prototype,"scrollingEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Uz.prototype,"isSubThread",void 0);_.V([_.lo(".thread-hitbox"),_.H("design:type",HTMLElement)],Uz.prototype,"commentThreadHitbox",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Uz.prototype,"threadHovered",void 0);_.V([_.lo("#comment"),_.H("design:type",HTMLElement)],Uz.prototype,"commentElement",void 0);
_.V([_.n(),_.H("design:type",Object)],Uz.prototype,"expanded",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Uz.prototype,"removed",void 0);_.V([_.n(),_.H("design:type",Object)],Uz.prototype,"feedbackText",void 0);_.V([_.n(),_.H("design:type",Array)],Uz.prototype,"addedReplies",void 0);_.V([_.n({selector:fE5,selectorArgs:["commentViewModel.commentKey"]}),_.H("design:type",Object)],Uz.prototype,"commentEntity",void 0);
_.V([_.UQ("yt-pushed-create-comment-reply"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Uz.prototype,"onPushedCreateCommentReply",null);_.V([_.UQ("yt-append-continuation-items-action-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Uz.prototype,"onAppendContinuationItemsActionFinished",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Uz.prototype,"commentViewModel",null);
_.V([_.y("data.replies.commentRepliesRenderer.subThreads"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Uz.prototype,"hasSubThreading",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Uz.prototype,"engagementPanel",void 0);_.V([_.UQ("tap"),_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Uz.prototype,"onTap",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Uz.prototype,"onDataChanged",null);_.V([_.y_({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Uz);
_.Y(Uz,"ytd-comment-thread-renderer",function(){if($0k!==void 0)return $0k;var A=document.createElement("template");_.m(A,'\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<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return $0k=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var HBT;var e9=function(){var A=_.F.apply(this,arguments)||this;A.compactHeader=_.M("web_watch_compact_comments_header");A.hidePanelButton=!1;A.isPostSchedulingEnabled=_.M("enable_post_scheduling");A.hasFinishedStamping=!1;A.JSC$16142_handleOpenPostCommentDialogActionAfterStamp=!1;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.R(e9,_.F);_.J=e9.prototype;
_.J.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"}}}};
_.J.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.J.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16142_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.onYtServiceRequestSent=function(A,t){if(!_.M("kevlar_command_handler")&&t.actions)for(A=0;A<t.actions.length;A++){var f=t.actions[A];_.C(f,azp)&&_.sF(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.C(f,azp))}};
_.J.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var A;if(this.getPrefilledBackstagePostDialog((A=this.data)==null?void 0:A.actions)){_.sF(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var t=_.sF(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;t&&_.us(this,function(){t.focus();t.openDialog&&t.openDialog()})}}else this.hasActionsChange=!0};
_.J.computeIsBackstage=function(A){return A};
_.J.onYtCommentboxDismiss=function(){_.sF(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.J.removePrefilledDialog=function(A){if(A==null?0:A.actions){for(var t=A.actions.length-1;t>=0;t--){var f=void 0;((f=_.C(A.actions[t],q$8))==null?0:f.dialog)&&delete A.actions[t]}this.set("data",void 0);this.set("data",A)}};
_.J.getPrefilledBackstagePostDialog=function(A){if(A)for(var t=0;t<A.length;t++){var f=A[t],X=void 0;if((X=_.C(f,q$8))==null?0:X.dialog)return _.C(f,q$8).dialog}return null};
_.J.computeBackstagePostDialog=function(A){return A&&(this.getPrefilledBackstagePostDialog(A.actions)||A.createRenderer)};
_.J.dataChanged=function(){if(this.data){var A=this.data.customEmojis,t=this.data.unicodeEmojisUrl;_.z4.clear();t&&_.Yb8(_.z4,t);A&&_.z4.load(A)}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var A=_.sF(this.hostElement).querySelector("ytd-comment-simplebox-renderer");A?A.openDialog():this.JSC$16142_handleOpenPostCommentDialogActionAfterStamp=!0};
_.J.onPostHeaderTap=function(){var A;((A=this.data)==null?0:A.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.PV.Object.defineProperties(e9.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.M("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X,Q,q,e;return!this.hidePanelButton&&_.M("kevlar_watch_comments_panel_button")&&((e=_.C((A=this.data)==null?void 0:(t=A.sortMenu)==null?void 0:(f=t.sortFilterSubMenuRenderer)==null?void 0:(X=f.subMenuItems)==null?void 0:(Q=X[0])==null?void 0:(q=Q.serviceEndpoint)==null?void 0:q.commandMetadata,_.Jl))==null?void 0:e.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.e5("MINIPLAYER_EXPAND_LABEL"),text:_.oC(_.e5("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
e9.prototype.dataChanged=e9.prototype.dataChanged;e9.prototype.onYtCommentboxDismiss=e9.prototype.onYtCommentboxDismiss;e9.prototype.observePrefilledBackstagePostDialog=e9.prototype.observePrefilledBackstagePostDialog;e9.prototype.onYtServiceRequestSent=e9.prototype.onYtServiceRequestSent;e9.prototype.onStampFinished=e9.prototype.onStampFinished;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],e9.prototype,"ytComponentBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],e9.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],e9.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],e9.prototype,"compactHeader",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],e9.prototype,"engagementPanel",void 0);_.V([_.n(),_.H("design:type",Object)],e9.prototype,"hidePanelButton",void 0);_.V([_.n({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.H("design:type",Boolean)],e9.prototype,"isBackstage",void 0);_.V([_.n({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.H("design:type",Object)],e9.prototype,"backstagePostDialog",void 0);
_.V([_.n(),_.H("design:type",Object)],e9.prototype,"isPostSchedulingEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data","showCommentsPanelButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],e9.prototype,"useSpaceBetween",null);_.V([_.n({reflectToAttribute:!0}),_.y("data","hidePanelButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],e9.prototype,"showCommentsPanelButton",null);
_.V([_.y("data","showCommentsPanelButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],e9.prototype,"commentsPanelButtonData",null);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e9.prototype,"onStampFinished",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],e9.prototype,"onYtServiceRequestSent",null);
_.V([_.ev("data.actions"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e9.prototype,"observePrefilledBackstagePostDialog",null);_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],e9.prototype,"onYtCommentboxDismiss",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],e9.prototype,"dataChanged",null);
_.V([_.y_({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],e9);
_.Y(e9,"ytd-comments-header-renderer",function(){if(HBT!==void 0)return HBT;var A=document.createElement("template");_.m(A,'\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" on-click="onPostHeaderTap" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return HBT=A},{mode:1});var ayT;var Gy=function(){return _.F.apply(this,arguments)||this};
_.R(Gy,_.F);_.V([_.n(),_.H("design:type",Object)],Gy.prototype,"data",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.V([_.y_({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Gy);
_.Y(Gy,"ytd-destination-button-renderer",function(){if(ayT!==void 0)return ayT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ayT=A},{mode:1});var KnS;var lG=function(){var A=_.F.apply(this,arguments)||this;A.isRichGrid=!1;A.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return A};
_.R(lG,_.F);_.J=lG.prototype;_.J.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.J.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.J.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var A;if((A=this.data)==null||!A.isExpanded){A=this.hostElement.clientWidth;var t;if(A&&(t=this.data)!=null&&t.destinationButtons){t=Math.floor((A+4)/214);A=this.data.destinationButtons.length;var f=Math.ceil(A/t);this.fullyVisibleRows=A%t===1&&f===2?1:Math.min(f,2);this.isShowMoreVisible=this.fullyVisibleRows<f}}}};
_.J.updateRichGridDestinationButtonsVisibility=function(){var A,t;if(this.isRichGrid&&((A=this.data)==null||!A.isExpanded)&&(t=this.data)!=null&&t.destinationButtons){A=this.richGridItemsPerRow+1;t=this.data.destinationButtons.length;var f=Math.ceil(t/A);this.fullyVisibleRows=t%A===1&&f===2?1:Math.min(f,2);this.isShowMoreVisible=this.fullyVisibleRows<f}};
_.J.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
lG.prototype.updateRichGridDestinationButtonsVisibility=lG.prototype.updateRichGridDestinationButtonsVisibility;_.V([_.n(),_.H("design:type",Object)],lG.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Number)],lG.prototype,"fullyVisibleRows",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],lG.prototype,"isShowMoreVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lG.prototype,"isRichGrid",void 0);
_.V([_.n({selector:_.b$,value:0}),_.H("design:type",Number)],lG.prototype,"richGridItemsPerRow",void 0);_.V([_.n(),_.H("design:type",Object)],lG.prototype,"gridStateActionMap",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],lG.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],lG.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],lG.prototype,"ytdReduxBehavior",void 0);_.V([_.ev("data","richGridItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lG.prototype,"updateRichGridDestinationButtonsVisibility",null);_.V([_.y_({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],lG);
_.Y(lG,"ytd-destination-shelf-renderer",function(){if(KnS!==void 0)return KnS;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return KnS=A},{mode:1});var gsl;var Nn=function(){return _.F.apply(this,arguments)||this};
_.R(Nn,_.F);Nn.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Nn.prototype,"data",void 0);_.V([_.y_({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Nn);
_.Y(Nn,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(gsl!==void 0)return gsl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return gsl=A},{mode:1});var wei;var uG=function(){var A=_.F.apply(this,arguments)||this;A.disableAnimation=!1;A.isSlimlineSurvey=!1;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;return A};
_.R(uG,_.F);uG.prototype.onTap=function(A){A.preventDefault();this.data&&_.s9(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.PV.Object.defineProperties(uG.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 A,t,f,X,Q;return((A=this.data)==null?0:A.checked)?(t=this.data)==null?void 0:(f=t.onStateIcon)==null?void 0:f.iconType:(X=this.data)==null?void 0:(Q=X.defaultStateIcon)==null?void 0:Q.iconType}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],uG.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],uG.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],uG.prototype,"disableAnimation",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uG.prototype,"isSlimlineSurvey",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uG.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uG.prototype,"isShortsStyle",void 0);_.V([_.y("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uG.prototype,"isAnimatedIcon",null);
_.V([_.y("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.H("design:type",Number),_.H("design:paramtypes",[])],uG.prototype,"iconSize",null);_.V([_.y("isShortsStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uG.prototype,"isDarkTheme",null);_.V([_.y("data.checked"),_.H("design:type",Object),_.H("design:paramtypes",[])],uG.prototype,"icon",null);_.V([_.y_({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],uG);
_.Y(uG,"ytd-rating-survey-option-renderer",function(){if(wei!==void 0)return wei;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return wei=A},{mode:2});var sLk;var zy=function(){var A=_.F.apply(this,arguments)||this;A.firstResponseText=null;A.lastResponseText=null;A.selectedNonStarOption=null;A.hideOptions=!1;A.hideUndoButton=!0;A.disableAnimation=!1;A.showResponseRangeText=!1;A.selectedRatingIndex=-1;A.isSlimlineSurvey=!1;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;A.slimlineSurveyRatingSelectedIndex=-1;return A};
_.R(zy,_.F);_.J=zy.prototype;_.J.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.J.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.J.onOptionChange=function(A,t){var f=this;A=t.onStateIcon&&t.defaultStateIcon&&t.onStateIcon.iconType===t.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(e,G){e.responseText===t.responseText?f.isSlimlineSurvey?(f.selectedRatingIndex=G,f.ytdReduxBehavior.dispatch(QZp(G))):(f.setSurveyOptionValue(G,!0,"checked"),f.setSurveyOptionValue(G,!0,"selected")):(f.setSurveyOptionValue(G,!1,"checked"),f.setSurveyOptionValue(G,
!1,"selected"))});
else if(A)this.selectedNonStarOption=t,this.hideOptions=!0;else{var X=this.ytRendererBehavior.getSimpleString(t.responseText),Q=!0;this.getOptionRenderers().forEach(function(e,G){f.setSurveyOptionValue(G,Q,"checked");f.setSurveyOptionValue(G,!1,"selected");f.ytRendererBehavior.getSimpleString(e.responseText)===X&&(Q=!1,f.setSurveyOptionValue(G,!0,"selected"))})}A=t.responseEndpoint;
var q;t.followUpCommand&&(q=_.C(t.followUpCommand,kJb));this.isSlimlineSurvey?(this.resetComponent(),_.kJ(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.kJ(this.hostElement,"ytd-inline-survey-rating-select-action",[A,q])};
_.J.showSelectedOption=function(){var A=this;_.a6.addJob(function(){var t=A.getOptionRenderers()[A.slimlineSurveyRatingSelectedIndex];A.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),t)},8,100)};
_.J.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(A){var t;return(t=_.C(A,ASK))!=null?t:{}}):[]};
_.J.onUndoClick=function(){this.resetComponent();_.kJ(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.J.setSurveyOptionValue=function(A,t,f){this.notifyPath("data.ratings."+A+".ratingSurveyOptionRenderer."+f);this.set("data.ratings."+A+".ratingSurveyOptionRenderer."+f,t)};
_.J.resetComponent=function(){var A=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var t=this.getOptionRenderers(),f,X;this.firstResponseText=(X=(f=t[0])==null?void 0:f.responseText)!=null?X:null;var Q,q;this.lastResponseText=(q=(Q=t[t.length-1])==null?void 0:Q.responseText)!=null?q:null;t.forEach(function(e,G){A.setSurveyOptionValue(G,!1,"checked");A.setSurveyOptionValue(G,!1,"selected")})};
_.PV.Object.defineProperties(zy.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
zy.prototype.onOptionChange=zy.prototype.onOptionChange;zy.prototype.dataChanged=zy.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],zy.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],zy.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],zy.prototype,"firstResponseText",void 0);_.V([_.n(),_.H("design:type",Object)],zy.prototype,"lastResponseText",void 0);_.V([_.n(),_.H("design:type",Object)],zy.prototype,"selectedNonStarOption",void 0);_.V([_.n(),_.H("design:type",Object)],zy.prototype,"hideOptions",void 0);_.V([_.n(),_.H("design:type",Object)],zy.prototype,"hideUndoButton",void 0);_.V([_.n(),_.H("design:type",Object)],zy.prototype,"disableAnimation",void 0);
_.V([_.n(),_.H("design:type",Object)],zy.prototype,"showResponseRangeText",void 0);_.V([_.n(),_.H("design:type",Object)],zy.prototype,"selectedRatingIndex",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"isSlimlineSurvey",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],zy.prototype,"isShortsStyle",void 0);_.V([_.n({selector:function(A){return A.ui.slimlineSurveyRatingSelectedIndex}}),
_.H("design:type",Object)],zy.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.V([_.y("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],zy.prototype,"isSingleSelect",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zy.prototype,"dataChanged",null);
_.V([_.UQ("ytd-rating-survey-option-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],zy.prototype,"onOptionChange",null);_.V([_.y_({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],zy);
_.Y(zy,"ytd-rating-survey-renderer",function(){if(sLk!==void 0)return sLk;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return sLk=A},{mode:1});var kxp;var rpS;var A$b;var MSx=(Uj.FIRSTDAYOFWEEK+1)%7,t8p=function(A,t,f,X){var Q="";if(X.selection&&iYp(X.selection))Qi(A,X.selection)&&(Q+=" selected");else if(X.selection&&OY5(X.selection)){var q=X.selection.selectionState||"START_DATE";Qi(A,X.selection.start)&&(Q+=" period-start ",q==="START_DATE"&&(Q+="selected"));Qi(A,X.selection.end)&&(Q+=" period-end ",q==="END_DATE"&&(Q+="selected"));qa(A,X.selection.start)||qa(X.selection.end,A)||(Q+=" highlighted")}if(qa(t,X.start)||qa(X.end,t))Q+=" disabled";X.circleToday&&
Qi(t,f)&&(Q+=" today");return Q};var PN=function(){return _.F.apply(this,arguments)||this};
_.R(PN,_.F);_.J=PN.prototype;_.J.attached=function(){var A=this;_.us(this,function(){A.JSC$16176_calendarMain.scrollHeight>0&&(A.calendarConfig.selection?A.scrollToDate(cX0(A.calendarConfig.selection)):A.scrollToDate(A.calendarConfig.end))})};
_.J.updateSelection=function(A){A=C7x(Object.assign({},this.calendarConfig,{selection:A}),t8p);this.splice.apply(this,["renderData.months",0,A.length].concat(_.YV(A)))};
_.J.scrollToDate=function(A){this.renderData&&(A=hvs(A,this.renderData),A!==void 0&&this.JSC$16176_calendarMain.scrollToIndex(A))};
_.J.scrollToNextMonth=function(){this.JSC$16176_calendarMain.scrollToIndex(this.JSC$16176_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$16176_calendarMain.firstVisibleIndex===0&&this.JSC$16176_calendarMain.scrollTo(0,0);this.JSC$16176_calendarMain.scrollToIndex(this.JSC$16176_calendarMain.firstVisibleIndex-1)};
_.J.handleDayClick=function(A){_.kJ(this.hostElement,"ytd-calendar-date-clicked",[A.model.day.date])};
_.J.handleDayMouseDown=function(A){A.preventDefault();_.kJ(this.hostElement,"ytd-calendar-date-mousedown",[A.model.day.date])};
_.J.handleDayMouseUp=function(A){_.kJ(this.hostElement,"ytd-calendar-date-mouseup",[A.model.day.date])};
_.J.handleDayMouseEnter=function(A){A.preventDefault();_.kJ(this.hostElement,"ytd-calendar-date-mouseenter",[A.model.day.date])};
_.J.handleDayMouseLeave=function(A){_.kJ(this.hostElement,"ytd-calendar-date-mouseleave",[A.model.day.date])};
_.PV.Object.defineProperties(PN.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var A=this.calendarConfig,t=t8p;t=t===void 0?t8p:t;for(var f=[],X=0;X<7;X++)f.push(Uj.NARROWWEEKDAYS[(X+MSx)%7]);return{months:C7x(A,t),daysOfWeekLabel:f}}}});
_.V([_.n(),_.H("design:type",Object)],PN.prototype,"calendarConfig",void 0);_.V([_.lo("#calendar-main"),_.H("design:type",Object)],PN.prototype,"JSC$16176_calendarMain",void 0);_.V([_.y("calendarConfig"),_.H("design:type",Object),_.H("design:paramtypes",[])],PN.prototype,"renderData",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],PN);
_.Y(PN,"ytd-scrollable-calendar",function(){if(A$b!==void 0)return A$b;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return A$b=A},{mode:2});var f48;var XGi;var Ty=function(){var A=_.F.apply(this,arguments)||this;A.hideCharCounter=!1;A.hideLabel=!1;A.noLabelFloat=!1;A.autoValidate=!0;A.invalid=!1;A.disabled=!1;A.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return A};
_.R(Ty,_.F);_.J=Ty.prototype;_.J.reset=function(A){this.value=A&&this.data?this.data.value=A:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.J.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.J.focusTextInput=function(){this.input.focus()};
_.J.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()};
_.J.valueChanged=function(){var A,t;if(((A=this.data)==null?0:A.value)||((t=this.data)==null?void 0:t.value)==="")this.value=this.data.value;else{var f;((f=this.data)==null?void 0:f.value)!==void 0||this.value||(this.value="")}};
_.J.computeLabel=function(A,t){return t?"":_.dF(A)};
_.J.computeAriaLabel=function(A,t){return t?_.dF(A):""};
_.J.computeErrorMessage=function(A,t,f,X){!A&&t?A=f||this.strings.REQUIRED_LABEL:(A=_.dF(X),A=_.lu(A,"&")?"document"in _.Xb?GGK(A):lHp(A):A);return A};
_.J.computeType=function(A){return A==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.J.onTextValueChanged=function(A){this.value=A.detail.value;var t;(t=this.onValueChanged)==null||t.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.J.handleUpdateTextInputFormFieldRendererCommand=function(A){(A=_.C(A,BOE))&&this.data&&this.data.id===A.id&&(A.invalid!==void 0&&(this.invalid=A.invalid),A.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",A.invalidValueErrorMessage))};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("value-changed",this.value))};
_.J.updateInvalidFromBinding=function(A){this.invalid=A.detail.value};
_.PV.Object.defineProperties(Ty.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var A;return!((A=this.data)==null||!A.isMultiline)}}});
Ty.prototype.valueChangedForBinding=Ty.prototype.valueChangedForBinding;Ty.prototype.valueChanged=Ty.prototype.valueChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Ty.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Ty.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Ty.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],Ty.prototype,"value",void 0);_.V([_.n(),_.H("design:type",String)],Ty.prototype,"pattern",void 0);_.V([_.n(),_.H("design:type",String)],Ty.prototype,"errorMessage",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Ty.prototype,"componentStyle",void 0);_.V([_.n(),_.H("design:type",Object)],Ty.prototype,"hideCharCounter",void 0);
_.V([_.n(),_.H("design:type",Object)],Ty.prototype,"hideLabel",void 0);_.V([_.n(),_.H("design:type",Object)],Ty.prototype,"noLabelFloat",void 0);_.V([_.n(),_.H("design:type",Function)],Ty.prototype,"onValueChanged",void 0);_.V([_.n(),_.H("design:type",Boolean)],Ty.prototype,"isMultilineOverride",void 0);_.V([_.n(),_.H("design:type",Object)],Ty.prototype,"autoValidate",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ty.prototype,"invalid",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ty.prototype,"disabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ty.prototype,"enableOverlayTheme",void 0);_.V([_.n({value:{REQUIRED_LABEL:_.e5("REQUIRED_LABEL",void 0,"Required")}}),_.H("design:type",Object)],Ty.prototype,"strings",void 0);_.V([_.lo("#input"),_.H("design:type",Object)],Ty.prototype,"input",void 0);
_.V([_.y("data","isMultilineOverride"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ty.prototype,"isMultiline",null);_.V([_.PU("data.value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ty.prototype,"valueChanged",null);_.V([_.ev("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ty.prototype,"valueChangedForBinding",null);_.V([_.WU({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Ty);
_.Y(Ty,"yt-text-input-form-field-renderer",function(){if(XGi===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;f48===void 0&&(f48=document.createElement("template"));var X=f48;f.call(t,X.content.cloneNode(!0),A.content.firstChild);XGi=A}A=XGi;return A},{mode:2});var iG=function(){var A=_.F.apply(this,arguments)||this;A.data=void 0;A.selectionState="START_DATE";A.isStartDateInvalid=!1;A.isEndDateInvalid=!1;A.autoapply=!1;A.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 A};
_.R(iG,_.F);_.J=iG.prototype;_.J.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"}}}}};
_.J.focus=function(){this.startDateInput.focus()};
_.J.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:J0(this.data.selection.start),end:J0(this.data.selection.end)})};
_.J.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.ap(this.selectionState)}};
_.J.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.J.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.J.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var A=this.calendar.calendarConfig,t=A.end;A=mzz({start:A.start,end:this.endDate||t},this.startDateInput.value||"");this.isStartDateInvalid=!A.isValid;A.isValid&&(A=A.value,this.selection=this.endDate?{start:A,end:this.endDate}:A,this.calendar.scrollToDate(A));this.updateInvalidState()}};
_.J.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var A=this.calendar.calendarConfig,t=A.start;A=mzz({start:this.startDate||t,end:A.end},this.endDateInput.value||"");this.isEndDateInvalid=!A.isValid;A.isValid&&(A=A.value,this.selection={start:this.startDate,end:A},this.calendar.scrollToDate(A));this.updateInvalidState()}};
_.J.handleCalendarDateClicked=function(A){var t=this.selection&&cX0(this.selection),f=this.selection&&BMp(this.selection);t&&!qa(A,t)&&this.selectionState==="END_DATE"?(this.selection={start:t,end:A},this.selectionState="START_DATE"):(f&&!qa(f,A)?this.selection={start:A,end:f}:this.selection=A,this.selectionState="END_DATE")};
_.J.handleCalendarDateMouseDown=function(A){this.selection&&!iYp(this.selection)&&(this.dragPivot=Qi(A,this.selection.start)?this.selection.end:Qi(A,this.selection.end)?this.selection.start:A)};
_.J.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.J.handleCalendarDateMouseEnter=function(A){this.dragPivot&&(this.selection={start:function(t,f){return qa(t,f)?t:f}(this.dragPivot,A),
end:function(t,f){return qa(t,f)?f:t}(this.dragPivot,A)},this.dragPivot||(this.selectionState="START_DATE"))};
_.J.handleCalendarDateMouseLeave=function(){};
_.J.handleCalendarSubmitDateRange=function(){this.selection&&!iYp(this.selection)&&_.kJ(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.J.updateInvalidState=function(){var A=function(t,f){f?t.setAttribute("invalid",""):t.removeAttribute("invalid")};
A(this.startDateInput,this.isStartDateInvalid);A(this.endDateInput,this.isEndDateInvalid)};
_.J.updateDateStrings=function(){this.selection&&(iYp(this.selection)?TM0(this.selection):(TM0(this.selection.start),TM0(this.selection.end)))};
_.J.updateCalendarSelection=function(A){this.calendar.updateSelection(Object.assign({},A,{selectionState:this.selectionState}))};
_.J.updateIsStartDateInvalidFromBinding=function(A){this.isStartDateInvalid=A.detail.value};
_.J.updateIsEndDateInvalidFromBinding=function(A){this.isEndDateInvalid=A.detail.value};
_.J.updateStartDateStringFromBinding=function(){};
_.J.updateEndDateStringFromBinding=function(){};
_.PV.Object.defineProperties(iG.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:J0(this.data.dateRangeStart),end:J0(this.data.dateRangeEnd),selection:{start:J0(this.data.selection.start),end:J0(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&cX0(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&BMp(this.selection)}}});
iG.prototype.resetTextboxes=iG.prototype.resetTextboxes;iG.prototype.observeSelection=iG.prototype.observeSelection;iG.prototype.dataChanged=iG.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],iG.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],iG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.lo("#calendar"),_.H("design:type",Object)],iG.prototype,"calendar",void 0);
_.V([_.lo("#start-date"),_.H("design:type",Object)],iG.prototype,"startDateInput",void 0);_.V([_.lo("#end-date"),_.H("design:type",Object)],iG.prototype,"endDateInput",void 0);_.V([_.n(),_.H("design:type",Object)],iG.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],iG.prototype,"selection",void 0);_.V([_.n(),_.H("design:type",String)],iG.prototype,"selectionState",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],iG.prototype,"calendarConfig",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],iG.prototype,"errorMessage",null);_.V([_.y("selection"),_.H("design:type",Object),_.H("design:paramtypes",[])],iG.prototype,"startDate",null);_.V([_.y("selection"),_.H("design:type",Object),_.H("design:paramtypes",[])],iG.prototype,"endDate",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iG.prototype,"dataChanged",null);
_.V([_.ev("selection","selectionState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iG.prototype,"observeSelection",null);_.V([_.ev("selectionState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iG.prototype,"resetTextboxes",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],iG);
_.Y(iG,"ytd-date-period-picker-renderer",function(){if(rpS!==void 0)return rpS;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return rpS=A},{mode:1});var Oz=function(){var A=_.F.apply(this,arguments)||this;var t={};A.actionMap=(t["ytd-date-period-picker-apply"]="handleDateRangeUpdated",t);return A};
_.R(Oz,_.F);Oz.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Oz.prototype.handleDateRangeUpdated=function(){};
_.V([_.n(),_.H("design:type",Object)],Oz.prototype,"data",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Oz.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Oz.prototype,"rendererstamperBehavior",void 0);_.V([_.y_({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Oz);
_.Y(Oz,"ytd-report-history-section-header-renderer",function(){if(kxp!==void 0)return kxp;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return kxp=A},{mode:1});var Qck;var qGi;var J$i;var cN=function(){return _.F.apply(this,arguments)||this};
_.R(cN,_.F);_.PV.Object.defineProperties(cN.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?0:(t=A.icon)==null?0:t.iconType)?_.t7(this.data.icon.iconType):""}}});
_.V([_.n(),_.H("design:type",Object)],cN.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],cN.prototype,"icon",null);_.V([_.y_({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],cN);
_.Y(cN,"ytd-report-history-table-text-cell-renderer",function(){if(J$i!==void 0)return J$i;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return J$i=A},{mode:1});var BN=function(){return _.F.apply(this,arguments)||this};
_.R(BN,_.F);BN.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],BN.prototype,"data",void 0);_.V([_.y_({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],BN);
_.Y(BN,"ytd-report-history-table-reason-cell-renderer",function(){if(qGi!==void 0)return qGi;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return qGi=A},{mode:1});var Mn=function(){return _.F.apply(this,arguments)||this};
_.R(Mn,_.F);Mn.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"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Mn.prototype,"rendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Mn.prototype,"data",void 0);_.V([_.y_({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Mn);
_.Y(Mn,"ytd-report-history-table-cell-renderer",function(){if(Qck!==void 0)return Qck;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return Qck=A},{mode:1});var Uup;var C$=function(){var A=_.F.apply(this,arguments)||this;A.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 A};
_.R(C$,_.F);C$.prototype.onDataChanged=function(){var A;if((A=this.data)==null?0:A.style)this.componentStyle=this.getStyleName(this.data.style)};
C$.prototype.getCellForColumn=function(A){return this.cells.find(function(t){var f;return((f=_.C(t==null?void 0:t.cell,XLl)||_.C(t==null?void 0:t.cell,fu8))==null?void 0:f.columnId)===A.type})};
C$.prototype.getClassForColumn=function(A){switch(A){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
C$.prototype.getStyleName=function(A){switch(A){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.PV.Object.defineProperties(C$.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.cells)||[]).map(function(t){return _.C(t,t47)})}}});
C$.prototype.onDataChanged=C$.prototype.onDataChanged;_.V([_.n(),_.H("design:type",Object)],C$.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Array)],C$.prototype,"columnRenderData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],C$.prototype,"componentStyle",void 0);_.V([_.y("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],C$.prototype,"cells",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],C$.prototype,"onDataChanged",null);_.V([_.y_({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],C$);
_.Y(C$,"ytd-report-history-table-row-renderer",function(){if(Uup!==void 0)return Uup;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Uup=A},{mode:1});var erw;var G3p;var bYs={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Wrb={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var hT=function(){return _.F.apply(this,arguments)||this};
_.R(hT,_.F);hT.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"}}}}}};
hT.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.PV.Object.defineProperties(hT.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.columns)?EU5(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Lrx(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var A=this.tableSpec,t=bYs;t=t===void 0?Wrb:t;t=pHs(A.columnDimensions,A.columnsToShow||[],t);A=0;t=_.U(t);for(var f=t.next();!f.done;f=t.next())f=f.value,A+=f.minWidth+f.paddingLeft+f.paddingRight;return A}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.V([_.b(_.Ba),_.H("design:type",Object)],hT.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],hT.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],hT.prototype,"tableSpec",null);_.V([_.y("tableSpec"),_.H("design:type",Array),_.H("design:paramtypes",[])],hT.prototype,"columnRenderData",null);
_.V([_.y("tableSpec"),_.H("design:type",Number),_.H("design:paramtypes",[])],hT.prototype,"totalMinWidth",null);_.V([_.y("totalMinWidth"),_.H("design:type",String),_.H("design:paramtypes",[])],hT.prototype,"tableWidthStyle",null);_.V([_.y_({is:"ytd-table-renderer",disableElementRegistration:!0})],hT);
_.Y(hT,"ytd-table-renderer",function(){if(G3p!==void 0)return G3p;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return G3p=A},{mode:1});var RQ=function(){return _.F.apply(this,arguments)||this};
_.R(RQ,_.F);RQ.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}}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],RQ.prototype,"data",void 0);_.V([_.y_({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],RQ);
_.Y(RQ,"ytd-report-reason-history-modal-renderer",function(){if(erw!==void 0)return erw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return erw=A},{mode:1});var l4C;var Nnf;var uJE;var mR=function(){return _.F.apply(this,arguments)||this};
_.R(mR,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],mR.prototype,"data",void 0);_.V([_.y_({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],mR);
_.Y(mR,"ytd-profile-column-stats-entry-renderer",function(){if(uJE!==void 0)return uJE;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return uJE=A},{mode:1});var zrp;var bG=function(){return _.F.apply(this,arguments)||this};
_.R(bG,_.F);bG.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],bG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bG.prototype,"data",void 0);_.V([_.y_({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],bG);
_.Y(bG,"ytd-profile-column-stats-renderer",function(){if(zrp!==void 0)return zrp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return zrp=A},{mode:1});var PHC;var WN=function(){return _.F.apply(this,arguments)||this};
_.R(WN,_.F);_.PV.Object.defineProperties(WN.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.useThumbnailSize)return 80;var t,f;A=(t=this.data)==null?void 0:(f=t.thumbnail)==null?void 0:f.thumbnails;var X;return A&&((X=A[0])==null?void 0:X.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.useThumbnailSize)return 80;var t,f;A=(t=this.data)==null?void 0:(f=t.thumbnail)==null?void 0:f.thumbnails;var X;return A&&((X=A[0])==null?void 0:X.height)||80}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],WN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],WN.prototype,"componentStyle",void 0);_.V([_.y("data.useThumbnailSize"),_.H("design:type",Object),_.H("design:paramtypes",[])],WN.prototype,"thumbnailWidth",null);
_.V([_.y("data.useThumbnailSize"),_.H("design:type",Object),_.H("design:paramtypes",[])],WN.prototype,"thumbnailHeight",null);_.V([_.y_({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],WN);
_.Y(WN,"ytd-profile-column-user-info-renderer",function(){if(PHC!==void 0)return PHC;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return PHC=A},{mode:1});var yw=function(){return _.F.apply(this,arguments)||this};
_.R(yw,_.F);yw.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]]"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],yw.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],yw.prototype,"componentStyle",void 0);_.V([_.y_({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],yw);
_.Y(yw,"ytd-profile-column-renderer",function(){if(Nnf!==void 0)return Nnf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Nnf=A},{mode:1});var vN=function(){var A=_.F.apply(this,arguments)||this;A.componentStyle="NON_CENTERED_PROFILE";return A};
_.R(vN,_.F);vN.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
vN.prototype.getIcon=function(A){return A?"settings:"+A.toLowerCase():null};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],vN.prototype,"data",void 0);_.V([_.y_({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],vN);
_.Y(vN,"ytd-page-introduction-renderer",function(){if(l4C!==void 0)return l4C;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return l4C=A},{mode:1});var Tnb;var L$=function(){return _.F.apply(this,arguments)||this};
_.R(L$,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],L$.prototype,"data",void 0);_.V([_.y_({is:"ytd-report-description-renderer",disableElementRegistration:!0})],L$);
_.Y(L$,"ytd-report-description-renderer",function(){if(Tnb!==void 0)return Tnb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Tnb=A},{mode:1});var iMK;var OMC;var p$=function(){return _.F.apply(this,arguments)||this};
_.R(p$,_.F);p$.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],p$.prototype,"data",void 0);_.V([_.y_({is:"ytd-video-report-renderer",disableElementRegistration:!0})],p$);
_.Y(p$,"ytd-video-report-renderer",function(){if(OMC!==void 0)return OMC;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return OMC=A},{mode:1});var c$S;_.C1("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.C1("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Ez=function(){return _.F.apply(this,arguments)||this};
_.R(Ez,_.F);Ez.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]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
Ez.prototype.computeMessageStyle=function(A){return A};
Ez.prototype.computeButtonOverride=function(A){var t;if((A==null?0:(t=A.style)==null?0:t.value)&&A.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ez.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ez.prototype,"shelf",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ez.prototype,"panel",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.H("design:type",Boolean)],Ez.prototype,"componentStyle",void 0);_.V([_.n({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],Ez.prototype,"buttonOverride",void 0);_.V([_.y_({is:"ytd-message-renderer",disableElementRegistration:!0})],Ez);
_.Y(Ez,"ytd-message-renderer",function(){if(c$S!==void 0)return c$S;var A=document.createElement("template");_.m(A,'\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<div id="thumbnail" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return c$S=A},{mode:1});var n$=function(){return _.F.apply(this,arguments)||this};
_.R(n$,_.F);n$.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"}}}};
n$.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
n$.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.PV.Object.defineProperties(n$.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var A,t;return!!(((A=this.data)==null?0:A.header)&&((t=this.data)==null?0:t.table))}}});
n$.prototype.onRequestError=n$.prototype.onRequestError;_.V([_.b(_.Ba),_.H("design:type",Object)],n$.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],n$.prototype,"data",void 0);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],n$.prototype,"isUnifiedReportHistory",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n$.prototype,"onRequestError",null);_.V([_.y_({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],n$);
_.Y(n$,"ytd-report-history-section-renderer",function(){if(iMK!==void 0)return iMK;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return iMK=A},{mode:1});var Bn8;var DG=function(){var A=_.F.apply(this,arguments)||this;A.answerExpanded=!1;return A};
_.R(DG,_.F);DG.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],DG.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],DG.prototype,"answerExpanded",void 0);_.V([_.y_({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],DG);
_.Y(DG,"ytd-handles-claiming-faq-renderer",function(){if(Bn8!==void 0)return Bn8;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Bn8=A},{mode:1});var M8T;var CHp=function(){return _.F.apply(this,arguments)||this};
_.R(CHp,_.F);_.V([_.n(),_.H("design:type",Object)],CHp.prototype,"data",void 0);_.V([_.y_({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],CHp);
_.Y(CHp,"ytd-handles-claiming-faq-section-renderer",function(){if(M8T!==void 0)return M8T;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return M8T=A},{mode:1});var hr8;var Fz=function(){var A=_.F.apply(this,arguments)||this;A.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";A.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";A.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";A.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";A.leftSquiggly=A.leftSquigglyLight;A.rightSquiggly=A.rightSquigglyLight;
A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return A};
_.R(Fz,_.F);_.J=Fz.prototype;_.J.updateLeftSquigglyStyle=function(){_.Q_(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.J.updateRightSquigglyStyle=function(){_.Q_(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.J.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
_.J.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),A?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Fz.prototype.updateRightSquigglyStyle=Fz.prototype.updateRightSquigglyStyle;Fz.prototype.updateLeftSquigglyStyle=Fz.prototype.updateLeftSquigglyStyle;_.V([_.n(),_.H("design:type",Object)],Fz.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Fz.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",String)],Fz.prototype,"leftSquiggly",void 0);_.V([_.n(),_.H("design:type",String)],Fz.prototype,"rightSquiggly",void 0);
_.V([_.ev("leftSquiggly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fz.prototype,"updateLeftSquigglyStyle",null);_.V([_.ev("rightSquiggly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fz.prototype,"updateRightSquigglyStyle",null);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Fz.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Fz.prototype,"actionButtonOverride",void 0);_.V([_.y_({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Fz);
_.Y(Fz,"ytd-handles-claiming-header-renderer",function(){if(hr8!==void 0)return hr8;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return hr8=A},{mode:1});var Rrf;var IQ=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";A.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";A.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";A.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
A.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";A.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";A.image0SquigglyBackground=A.image0LightSquigglyBackground;A.image1SquigglyBackground=A.image1LightSquigglyBackground;A.image3SquigglyBackground=A.image3LightSquigglyBackground;return A};
_.R(IQ,_.F);_.J=IQ.prototype;_.J.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.J.onDataChanged=function(){this.updateTitleAndImages()};
_.J.onThemeChanged=function(){this.updateTitleAndImages()};
_.J.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
_.J.updateImage0SquigglyBackground=function(){_.Q_(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.J.updateImage1SquigglyBackground=function(){_.Q_(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.J.updateImage3SquigglyBackground=function(){_.Q_(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.J.updateTitleAndImages=function(){var A,t;((A=this.data)==null?void 0:(t=A.titleImages)==null?void 0:t.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))};
IQ.prototype.updateImage3SquigglyBackground=IQ.prototype.updateImage3SquigglyBackground;IQ.prototype.updateImage1SquigglyBackground=IQ.prototype.updateImage1SquigglyBackground;IQ.prototype.updateImage0SquigglyBackground=IQ.prototype.updateImage0SquigglyBackground;IQ.prototype.onThemeChanged=IQ.prototype.onThemeChanged;IQ.prototype.onDataChanged=IQ.prototype.onDataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],IQ.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],IQ.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"title0",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"title1",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"title2",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"title3",void 0);
_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"title4",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"image0",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"image1",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"image2",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"image3",void 0);_.V([_.n(),_.H("design:type",Object)],IQ.prototype,"image4",void 0);_.V([_.n(),_.H("design:type",String)],IQ.prototype,"image0SquigglyBackground",void 0);
_.V([_.n(),_.H("design:type",String)],IQ.prototype,"image1SquigglyBackground",void 0);_.V([_.n(),_.H("design:type",String)],IQ.prototype,"image3SquigglyBackground",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IQ.prototype,"onDataChanged",null);_.V([_.ev("isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IQ.prototype,"onThemeChanged",null);
_.V([_.ev("image0SquigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IQ.prototype,"updateImage0SquigglyBackground",null);_.V([_.ev("image1SquigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IQ.prototype,"updateImage1SquigglyBackground",null);
_.V([_.ev("image3SquigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IQ.prototype,"updateImage3SquigglyBackground",null);_.V([_.y_({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],IQ);
_.Y(IQ,"ytd-handles-claiming-title-images-section-renderer",function(){if(Rrf!==void 0)return Rrf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Rrf=A},{mode:1});var mup;var xG=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(xG,_.F);xG.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
xG.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A)};
xG.prototype.onCopyButtonClick=function(){var A=this,t,f,X;return _.l(function(Q){return(t=A.data)!=null&&t.primaryChannelUrl?Q.yield(navigator.clipboard.writeText(((f=A.data)==null?0:f.encodedChannelUrl)?A.data.encodedChannelUrl:"https://"+_.dF((X=A.data)==null?void 0:X.primaryChannelUrl)),0):Q.jumpTo(0)})};
_.V([_.n(),_.H("design:type",Object)],xG.prototype,"data",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],xG.prototype,"ytComponentBehavior",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],xG.prototype,"isDarkTheme",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],xG.prototype,"ytActionHandlerBehavior",void 0);_.V([_.y_({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],xG);
_.Y(xG,"ytd-handles-claiming-update-social-renderer",function(){if(mup!==void 0)return mup;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return mup=A},{mode:1});var bME;var j9=function(){var A=_.F.apply(this,arguments)||this;A.JSC$16270_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";A.JSC$16270_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.squigglyBackground=A.JSC$16270_squigglyBackgroundLight;return A};
_.R(j9,_.F);j9.prototype.updateSquigglyBackgroundStyle=function(){_.Q_(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
j9.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.squigglyBackground=A?this.JSC$16270_squigglyBackgroundDark:this.JSC$16270_squigglyBackgroundLight};
j9.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),this.squigglyBackground=A?this.JSC$16270_squigglyBackgroundDark:this.JSC$16270_squigglyBackgroundLight)};
j9.prototype.updateSquigglyBackgroundStyle=j9.prototype.updateSquigglyBackgroundStyle;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],j9.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],j9.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],j9.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",String)],j9.prototype,"squigglyBackground",void 0);_.V([_.ev("squigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],j9.prototype,"updateSquigglyBackgroundStyle",null);_.V([_.y_({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],j9);
_.Y(j9,"ytd-handles-claiming-vanity-info-renderer",function(){if(bME!==void 0)return bME;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return bME=A},{mode:1});var WDp;var YG=function(){var A=_.F.apply(this,arguments)||this;A.JSC$16273_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";A.JSC$16273_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";A.squigglyBackground=A.JSC$16273_squigglyBackgroundLight;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(YG,_.F);_.J=YG.prototype;_.J.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
_.J.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),this.squigglyBackground=A?this.JSC$16273_squigglyBackgroundDark:this.JSC$16273_squigglyBackgroundLight)};
_.J.updateSquigglyBackgroundStyle=function(){_.Q_(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.J.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.J.detached=function(){this.stop()};
_.J.stop=function(){this.playerElement.stop()};
_.J.setupVideoPlayer=function(){var A=this,t,f;return _.l(function(X){t=A.data.videoId;f="http://i1.ytimg.com/vi/"+t+"/maxresdefault.jpg";A.playerElement.loadVideoWithPlayerVars({video_id:t,iurlhq:f});_.LO(X)})};
YG.prototype.onDataChanged=YG.prototype.onDataChanged;YG.prototype.updateSquigglyBackgroundStyle=YG.prototype.updateSquigglyBackgroundStyle;_.V([_.n({value:!1}),_.H("design:type",Boolean)],YG.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",String)],YG.prototype,"squigglyBackground",void 0);_.V([_.lo("#player"),_.H("design:type",Object)],YG.prototype,"playerElement",void 0);_.V([_.n(),_.H("design:type",Object)],YG.prototype,"data",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],YG.prototype,"ytActionHandlerBehavior",void 0);_.V([_.ev("squigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YG.prototype,"updateSquigglyBackgroundStyle",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YG.prototype,"onDataChanged",null);
_.V([_.y_({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],YG);
_.Y(YG,"ytd-handles-claiming-video-item-renderer",function(){if(WDp!==void 0)return WDp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return WDp=A},{mode:1});var y$C;var ZG=function(){var A=_.uo.apply(this,arguments)||this;A.dragging=!1;A.dragMouseStart=0;A.dragOffsetStart=0;A.containerWidthDiff=0;A.boundPrevClick=function(){A.set("offset",Vw(A,A.offset-(A.scrollDistance||320)))};
A.boundNextClick=function(){A.set("offset",Vw(A,A.offset+(A.scrollDistance||320)))};
A.boundScrollContainerMouseDown=function(t){A.dragMouseStart=t.clientX;A.dragOffsetStart=A.offset;A.dragging=!0};
A.boundScrollContainerDrag=function(t){A.dragging&&A.set("offset",Vw(A,A.dragOffsetStart-(t.clientX-A.dragMouseStart)))};
A.boundMouseUp=function(){A.onMouseUp()};
A.boundWheelScroll=function(t){var f=0;Math.abs(t.deltaX)>=Math.abs(t.deltaY)?f=t.deltaX:t.shiftKey&&(f=t.deltaY);f!==0&&(A.offset+=f,t.stopPropagation(),t.preventDefault())};
A.boundChipCloudChipScrollIntoView=function(t){(t=t.detail)&&A.scrollChipIntoView(t)};
return A};
_.R(ZG,_.uo);ZG.prototype.attached=function(){var A=_.sF(this.hostElement).querySelector("#scroll-container");A.addEventListener("wheel",this.boundWheelScroll);A.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);A.style.touchAction="pan-y";A.addEventListener("pointerdown",this.boundScrollContainerMouseDown);A.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
ZG.prototype.detached=function(){var A=_.sF(this.hostElement).querySelector("#scroll-container");A.removeEventListener("wheel",this.boundWheelScroll);A.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);A.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);A.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
ZG.prototype.reset=function(){this.set("offset",0);_.us(this,this.setContainerWidthDiff);_.us(this,this.setButtonsState)};
var Vw=function(A,t){return Math.min(Math.max(t,0),A.containerWidthDiff)};
_.J=ZG.prototype;_.J.onMouseUp=function(){this.dragging=!1};
_.J.transformContainer=function(){this.offset=Vw(this,this.offset);var A=_.ah("HTML_DIR")==="rtl"?"":"-";_.sF(this.hostElement).querySelector("#chips").style.transform="translateX("+A+this.offset+"px)";_.us(this,this.setButtonsState)};
_.J.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Vw(this,this.offset));this.atStart=this.offset<=0};
_.J.setContainerWidthDiff=function(){var A=_.sF(this.hostElement).querySelector("#scroll-container"),t=_.sF(this.hostElement).querySelector("#chips");A&&t&&(this.containerWidthDiff=t.clientWidth-A.clientWidth)};
_.J.scrollChipIntoView=function(A){var t=_.sF(this.hostElement).querySelector("#scroll-container");if(t){var f=this.atStart?0:106,X=this.atEnd?0:106;A.offsetLeft<this.offset+f?this.offset=Vw(this,A.offsetLeft-f):A.offsetLeft+A.clientWidth>this.offset+t.clientWidth-X&&(this.offset=Vw(this,A.offsetLeft+A.clientWidth+X-t.clientWidth))}};
ZG.prototype.transformContainer=ZG.prototype.transformContainer;_.V([_.n({value:0}),_.H("design:type",Number)],ZG.prototype,"offset",void 0);_.V([_.n({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],ZG.prototype,"atStart",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],ZG.prototype,"atEnd",void 0);_.V([_.n(),_.H("design:type",Number)],ZG.prototype,"scrollDistance",void 0);
_.V([_.ev("offset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZG.prototype,"transformContainer",null);_.V([_.zh()],ZG);var veb;var LDT;_.oQ=_.I(function(A){var t=A.data;A=_.U(_.hZ(!1,void 0,"bob3J"));var f=A.next().value,X=A.next().value;A=function(q){if((t==null?void 0:t().state)!==1){var e,G;(G=(e=t()).onTap)==null||G.call(e,q)}};
var Q={};return _.u("chip-shape",{class:"ytChipShapeHost","on:focusin":_.f1(function(){var q=_.Px().resolve(_.z7(_.mJ));if(q){X(q.isKeyBoardInUse());var e,G;(G=(e=t()).onFocusIn)==null||G.call(e)}return!1}),
"on:focusout":_.f1(function(){X(!1);return!1})},_.u(pGw,{shouldWrapInButton:function(){return t().type!==2},
selected:function(){return t().state===0},
onClick:A,isDropdown:function(){return t().type===1},
accessibilityLabel:function(){return t().type===1?void 0:t().accessibilityLabel}},_.u("div",{class:_.Ao("ytChipShapeChip",function(){a:switch(t==null?void 0:t().state){case 0:var q="ytChipShapeActive";
break a;case 1:q="ytChipShapeDisabled";break a;default:q="ytChipShapeInactive"}return q},function(){var q=t().type===1||t().type===2,e=t();
return q||e!=null&&e.startIcon?e==null||!e.startIcon||e!=null&&e.text?q?"ytChipShapeEndIconPadding":(e==null?0:e.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var q=t();
if((q==null?void 0:q.style)===0&&(q==null?void 0:q.state)===0){var e;q=((e=_.Px().resolve(_.z7(_.FH)))==null?0:e())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else q="";return q},(Q.ytChipShapeFocused=function(){var q;
return f()&&((q=t())==null?void 0:q.state)!==1},Q))},_.u(_.P,{cond:function(){return t().startIcon},
then:function(){return _.u(_.el,{icon:function(){var q;return(q=t())==null?void 0:q.startIcon},
className:_.Ao(function(){return t().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var q=t(),e,G=(e=_.Px().resolve(_.z7(_.FH)))==null?void 0:e();
return(q==null?void 0:q.style)===0&&(q==null?void 0:q.state)===0&&G?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return t().text},_.u(Eef,{shape:t,
onClick:A}),_.u(_.WS,{model:{borderRadius:"8px"}}))))},"Lc");
_.oQ.idomCompat=!0;var pGw=_.I(function(A){var t=_.f1(function(f){A.onClick(f);return!1});
return _.u(_.P,{cond:A.shouldWrapInButton,then:function(){return _.u("button",{class:"ytChipShapeButtonReset","on:click":t,role:function(){return A.isDropdown()?"combobox":"tab"},
"aria-label":A.accessibilityLabel,"aria-selected":A.selected},A.children)},
else:function(){return A.children}})},"Mc"),Eef=_.I(function(A){var t=A.shape;
var f=A.onClick;var X=_.f1(function(Q){f(Q);return!1});
return _.u(_.j2,null,_.u(_.FE,{when:function(){return t().type===1}},function(){return _.u(_.el,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.u(_.FE,{when:function(){return t().type===2}},function(){return _.u("button",{class:"ytChipShapeButtonReset",
"on:click":X},_.u(_.el,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.u(_.FE,{when:function(){return t().type===0}},function(){return _.u(_.Tw,null)}))},"Nc");_.Hn(_.oQ,"chip-shape",{props:{data:_.PS}});var d4=function(){var A=_.F.apply(this,arguments)||this;A.disableDeselectEvent=!1;A.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return A};
_.R(d4,_.F);_.J=d4.prototype;_.J.onSelectChipCommand=function(A){if(!this.selected&&this.data&&(A=_.C(A,GJb),A.targetId&&A.targetId===this.data.targetId))this.onTap()};
_.J.onFilterChipTransformCommand=function(A){if(!this.selected&&this.data){var t;(A=(t=_.C(A,Xrp))==null?void 0:t.chipUniqueId)&&A===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.J.dataChanged=function(){var A=this;_.us(this,function(){A.data&&A.data.isSelected&&!A.selected&&(A.scrollChipIntoView(),A.onTap())})};
_.J.computeChipStyle=function(A){return A!=null?A:"STYLE_DEFAULT"};
_.J.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.kJ(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.kJ(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.J.onFocus=function(){var A=_.Px().resolve(_.z7(_.mJ));A&&A.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.J.scrollChipIntoView=function(){_.s9(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.PV.Object.defineProperties(d4.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Yts({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
d4.prototype.onFocus=d4.prototype.onFocus;d4.prototype.onTap=d4.prototype.onTap;d4.prototype.dataChanged=d4.prototype.dataChanged;_.V([_.b(_.oz),_.H("design:type",Object)],d4.prototype,"ironButtonState",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],d4.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],d4.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.YD),_.H("design:type",Object)],d4.prototype,"ironA11yKeysBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],d4.prototype,"disableDeselectEvent",void 0);_.V([_.n(),_.H("design:type",Object)],d4.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.icon"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],d4.prototype,"hasIcon",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data.uniqueId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],d4.prototype,"isGnomeChip",null);_.V([_.n({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.H("design:type",String)],d4.prototype,"chipStyle",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],d4.prototype,"selected",void 0);
_.V([_.y("data","selected"),_.H("design:type",Object),_.H("design:paramtypes",[])],d4.prototype,"chipShapeData",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],d4.prototype,"dataChanged",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],d4.prototype,"onTap",null);
_.V([_.UQ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],d4.prototype,"onFocus",null);_.V([_.WU({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],d4);
_.Y(d4,"yt-chip-cloud-chip-renderer",function(){if(LDT===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;veb===void 0&&(veb=document.createElement("template"));var X=veb;f.call(t,X.content.cloneNode(!0),A.content.firstChild);LDT=A}A=LDT;return A},{mode:2});var oU5=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.nel=_.I(function(A){function t(){if(oU5.has(A.data().displayType)){var z=!X(),T;if((T=A.disableDeselection)==null||!T.call(A)||z){A.data().selected=z;T=Object.assign({},e(),{selected:z});G(T);var O;(O=A.callback)==null||O.call(A,T,z)}}}
var f=_.GU("chip-view-model"),X=function(){var z,T;return!!(((z=A.selected)==null?void 0:z.call(A))!==void 0?(T=A.selected)==null?0:T.call(A):e().selected)},Q=_.U(_.Jo(A.data)),q=Q.next().value;
Q=Q.next().value;var e=q,G=Q,N=_.Nt(ZY0,function(){return A.data().chipEntityKey||""});
return _.u("chip-view-model",{class:"ytChipViewModelHost",el:f},_.u(_.oQ,{data:function(){var z,T=Object.assign({},e(),{selected:X()}),O=N(),c=(z=A.disableDeselection)==null?void 0:z.call(A);a:switch(T.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":z=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":z=3;break a;default:z=0}return{text:(O==null?void 0:O.text)||T.text,state:T.disabled?1:T.selected?0:2,type:z,onTap:dzb(T,f,t,
c),accessibilityLabel:T.accessibilityLabel||T.text}}}))},"Oc");
_.nel.idomCompat={callbacks:{callback:!0}};_.S9=_.I(function(A){var t=A.data;var f=A.callback;var X=A.selectionBehavior;var Q=A.disableChipsScrollAnimation;var q=_.ud("div");A=_.U(_.hZ(!0,void 0,"aUEsOc"));var e=A.next().value,G=A.next().value;A=_.U(_.hZ(!1,void 0,"V0aKld"));var N=A.next().value,z=A.next().value,T=!1,O=0;_.Zk(function(){G(h());z(W())});
A=_.U(_.Jo(function(){var k={};return t().autoselectedChipIndex!=null?(k[t().autoselectedChipIndex]=!0,k):{}}));
var c=A.next().value,B=A.next().value,h=function(){var k=q.value;return k==null||k.scrollLeft-1<=0},W=function(){var k=q.value;
return k==null?!1:k.scrollLeft+1>=(k==null?NaN:k.scrollWidth)-(k==null?NaN:k.clientWidth)},L=function(){return t().isHorizontallyScrollable},E=function(k){q.value!=null&&(_.ah("HTML_DIR")==="rtl"&&(k=-k),q.value.scrollBy({left:k,
behavior:(Q==null?0:Q())?"instant":"smooth"}))},D=function(){E(-320)},S=function(){E(320)},Z=_.f1(function(k){T=!0;
O=k.clientX}),d=_.f1(function(k){if(T){k=k.clientX;
var Gz=k-O;O=k;var Tz;(Tz=q.value)==null||Tz.scrollBy({left:-Gz})}}),K=_.f1(function(){var k=h(),Gz=W();
k!==e()&&G(k);Gz!==N()&&z(Gz)});
_.TU("pointerup",function(){T&&(T=!1)});
return _.u("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.u(_.IS,{contentId:function(){return t().contentId},
useModernStyle:!0},function(){var k={},Gz={};return _.u("div",null,_.u(_.P,{cond:function(){return t().title},
then:function(){return _.u("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.u("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return t().title}),_.u(_.P1,{data:function(){return t().overflowButton}},{buttonViewModel:_.nx}))}}),_.u("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.u(_.P,{cond:function(){return t().previousButton},
then:function(){var Tz={};return _.u("div",{class:_.Ao("ytChipsShelfViewModelLeftArrowContainer",(Tz.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return e()},Tz))},_.u(_.P1,{data:function(){return t().previousButton}},{buttonViewModel:function(y5){return _.u(_.nx,{data:y5.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:D})}}))}}),_.u("div",{el:q,
"on:pointerdown":Z,"on:pointermove":d,"on:scroll":K,class:_.Ao("ytChipsShelfViewModelChipsScrollContainer",(k.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=L,k))},_.u("div",{class:_.Ao("ytChipsShelfViewModelChipsContainer",(Gz.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=L,Gz.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Gz)),role:"tablist"},_.u(_.P1,{data:function(){return t().contents}},{chipViewModel:function(Tz,y5){return _.u("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.u(_.nel,{data:Tz.data,
callback:function(cp,iu){var Fb=y5(),xq,Yq=(xq=X==null?void 0:X())!=null?xq:0;Yq===1||Yq===2?(xq={},B((xq[Fb]=iu,xq))):(xq={},B(Object.assign({},c(),(xq[Fb]=iu,xq))));f==null||f(cp,iu,Fb)},
disableDeselection:function(){return(X==null?void 0:X())===1},
selected:function(){return!!c()[y5()]}}))}}))),_.u(_.P,{cond:function(){return t().nextButton},
then:function(){var Tz={};return _.u("div",{class:_.Ao("ytChipsShelfViewModelRightArrowContainer",(Tz.ytChipsShelfViewModelRightArrowContainerIsHidden=N,Tz))},_.u(_.P1,{data:function(){return t().nextButton}},{buttonViewModel:function(y5){return _.u(_.nx,{data:y5.data,
className:"ytChipsShelfViewModelRightArrow",onClick:S})}}))}})))}))},"Qc");
_.S9.idomCompat={callbacks:{callback:!0}};var Dup=_.I(function(A){var t=A.data;var f=A.showChips;var X=A.isUpdateInProgress;var Q=function(){return f()&&!X()};
A={};return _.u("ytd-ai-response-box-view-model",{class:_.Ao("ytdAiResponseBoxViewModelHost")},_.u("div",{class:_.Ao("ytdAiResponseBoxViewModelResponseMessageContainer",(A.ytdAiResponseBoxViewModelResponseMessageContainerHidden=Q,A))},_.u(_.P,{cond:X,then:function(){return _.u("div",null,_.u(_.zL,{text:function(){return t().responsePendingMessage}}))},
else:function(){return _.u(_.Tw,null,_.u(_.P,{cond:function(){var q;return(q=t().responseMessageIcon)==null?void 0:q.iconType},
then:function(q){return _.u("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.u(_.el,{icon:q}))}}),_.u("div",null,_.u(_.zL,{text:function(){return t().responseMessage}})))}})),_.u(_.P1,{data:function(){return t().chipsShelf}},{chipsShelfViewModel:function(q){q=q.data;
var e={};return _.u("div",{class:_.Ao("ytdAiResponseBoxViewModelChipsShelfContainer",(e.ytdAiResponseBoxViewModelChipsShelfContainerShown=Q,e))},_.u(_.S9,{data:q}))}}))},"Rc");var FDk;FDk=Object.assign({},{continuation:aGw,download:V9f,canvas:xR5,reportChannelAbuse:rTC,ui:Ylx,share:AnC,talkToRecs:Xyi,watch:Ud,ypc:G9T,radioButtonGroup:FU5,collabInviteLink:nos},H$p,{voiceSearch:oou,shorts:Jz});_.$G=RM(FDk);_.I4l=mf(_.$G);_.xub=(0,_.I4l)(_.$G.talkToRecs,{talkToRecsStateSelector:function(A){return A}});_.Hn(_.I(function(A){var t=_.U((0,_.txC)(A.data)).next().value,f=_.U(VSb()),X=f.next().value;f=f.next().value;var Q=_.um(_.xub.talkToRecsStateSelector),q=_.U(_.Jo(function(){var S,Z,d;return(d=(Z=$zq(t(),Q()))!=null?Z:(S=t().textInputValue)==null?void 0:S.content)!=null?d:""})),e=q.next().value,G=q.next().value;
q=_.U(_.hZ(!1,void 0,"c7rlLe"));var N=q.next().value,z=q.next().value;q=_.U(_.hZ(!1,void 0,"jmnkf"));var T=q.next().value,O=q.next().value;_.oh(function(){var S=t().onVisible;S&&_.LI(S,{})});
var c=_.f1(function(){z(!0)});
_.oo(function(){t()&&(z(!1),O(!1))},"Aq2H4e");
var B=function(S){var Z=t().onUpdateText;Z&&_.LI(Z,{form:{userQuery:S}})},h=_.yD(function(S){B(S)},150),W=_.f1(function(S){S=S.target.value.trim();
G(S);h(S);return!1});
_.oo(function(){var S=$zq(t(),Q());S&&S!==e()&&G(S)},"jerE");
var L=function(){O(!0)},E=_.f1(function(S){if(S.key==="Enter"){B(S.target.value.trim());
var Z=_.C(t().submitButton,_.zf);S=void 0;var d;if(Z==null?0:(d=Z.loggingDirectives)==null?0:d.trackingParams)S=_.zV(Z.loggingDirectives.trackingParams);if(d=Z==null?void 0:Z.onTap)_.LI(d,{clickedVisualElement:S}),L()}return!1}),D=_.f1(function(){X("yt-feed-customization-scroll-up")});
return _.u("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost",el:_.ZY(f)},_.u(_.P,{cond:function(){var S,Z;return!((Z=(S=A.isCollapsed)==null?void 0:S.call(A))!=null&&Z)},
then:function(){return _.u("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.u("div",{class:"ytdFeedCustomizationFormViewModelInputContainer"},_.u("input",{class:"ytdFeedCustomizationFormViewModelInput",type:"text",placeholder:function(){var S;return(S=t().textInputPlaceholder)==null?void 0:S.content},
"prop:value":e,"on:focus":c,"on:input":W,"on:keyup":E,maxlength:250}),_.u(_.P,{cond:function(){return!!e()},
then:function(){return _.u(_.P1,{data:function(){return t().clearButton}},{buttonViewModel:function(S){return _.u("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.u(_.nx,{data:S.data}))}})}}),_.u(_.P,{cond:function(){return T()},
then:function(){return _.u(_.P1,{data:function(){return t().inProgressButton}},{buttonViewModel:function(S){return _.u("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.u(_.nx,{data:S.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.u(_.P1,{data:function(){return t().submitButton}},{buttonViewModel:function(S){return _.u("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.u(_.nx,{data:S.data,
onClick:L}))}})}}),_.u(_.P1,{data:function(){return t().menuButton}},{buttonViewModel:function(S){return _.u("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.u(_.nx,{data:S.data}))}})),_.u(_.P1,{data:function(){return t().contents}},{aiResponseBoxViewModel:function(S){return _.u("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.u(Dup,{data:S.data,
showChips:N,isUpdateInProgress:T}))}}))},
else:function(){return _.u("div",{class:"ytdFeedCustomizationFormViewModelCollapsedBodyContainer","on:click":D},_.u("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var S;return e()||((S=t().textInputPlaceholder)==null?void 0:S.content)}))}}))},"Uc"),"ytd-feed-customization-form-view-model",{props:{data:_.PS,
isCollapsed:_.PS}});var jcf=_.Iv.persistentPanelVisibleSelector,HN=function(){var A=_.F.apply(this,arguments)||this;A.isDarkTheme=!1;A.notSticky=!1;A.transparentBackground=!1;A.shouldHide=!1;A.disableSticky=!1;A.fluidWidth=!1;A.isClipList=!1;A.defaultChipIndex=0;A.hasSelectedChipContent=!1;A.collapseFeedCustomizationForm=!1;A.isPlaylist=!1;A.playlistVotingAnimationEnabled=_.M("web_enable_voting_animation");A.toolbarHeight=0;A.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(HN,_.F);_.J=HN.prototype;
_.J.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}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model",properties:{isCollapsed:"[[collapseFeedCustomizationForm]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.J.attached=function(){var A=this;document.addEventListener("scroll",_.JY(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var t;this.toolbarHeight=((t=document.querySelector("ytd-masthead"))==null?void 0:t.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(f){A.handleIntersect(f)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){A.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.J.detached=function(){var A;(A=this.intersectionObserver)==null||A.disconnect();var t;(t=this.resizeObserver)==null||t.disconnect();document.removeEventListener("scroll",_.JY(this,this.updateChipBarWidthAndTop))};
_.J.dataChanged=function(){var A=this,t,f,X;((X=_.C((t=this.data)==null?void 0:(f=t.contents)==null?void 0:f[0],zzf))==null?void 0:X.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Q=this.findSelectedChipIndex();this.selectedIndex!==Q&&(this.selectedIndex=-1);_.us(this,function(){A.selectedIndex=Q;A.updateSelectedChipContent(A.selectedIndex);A.updating=!1;A.ytScrollableChipCloudBehavior.reset()})};
_.J.findSelectedChipIndex=function(){var A;if((A=this.data)==null||!A.contents)return 0;A=this.data.contents;for(var t=0;t<A.length;t++){var f=void 0;if((f=_.C(A[t],zzf))==null?0:f.isSelected)return t}return 0};
_.J.computeStyle=function(A){return A};
_.J.handleChipCloudChipSelectAction=function(A){A=this.JSC$16313_chipsSelector.indexOf(A);A>-1&&(this.JSC$16313_chipsSelector.selectIndex(A),this.updateSelectedChipContent(A))};
_.J.updateSelectedChipContent=function(A){var t;if((t=this.data)==null||!t.contents||A<0||A>=this.data.contents.length)this.selectedChipContent=void 0;else{var f;this.selectedChipContent=(f=_.C(this.data.contents[A],zzf))==null?void 0:f.content}};
_.J.handleChipCloudChipDeselectAction=function(){if(_.M("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var A,t,f,X=(f=_.C((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t[0],zzf))==null?void 0:f.navigationEndpoint;X&&_.kJ(this.hostElement,"yt-browse-section-list-reload-endpoint",[X]);this.JSC$16313_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.J.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.J.updateDynamicHeight=function(){var A=this;this.hasSelectedChipContent&&!this.notSticky?_.us(this,function(){var t=_.sF(A.hostElement).querySelector("#chips-wrapper");t&&_.Q_(A.hostElement,{"--ytd-chips-bar-dynamic-height":t.clientHeight+"px"})}):_.Q_(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.J.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.J.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.J.onResize=function(){this.updateLayout()};
_.J.updateLayout=function(){var A=this.ytScrollableChipCloudBehavior;_.us(A,A.setContainerWidthDiff);A=this.ytScrollableChipCloudBehavior;_.us(A,A.setButtonsState)};
_.J.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.J.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.J.handleIntersect=function(A){this.notSticky=this.isChannelPageGrid||this.disableSticky||A[0].intersectionRatio===1};
_.J.updateDimensions=function(){var A=this.ytRendererBehavior.parentComponent;if(A){var t,f=(t=A.headerElement)!=null?t:A;_.Q_(this.hostElement,{"--ytd-rich-grid-chips-bar-width":f.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.J.updateSelectedIndexFromBinding=function(A){this.selectedIndex=A.detail.value};
_.J.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var A;(A=this.sortFilterHeaderRendererElement)==null||A.setAttribute("is-playlist-page-with-filters","")}};
_.J.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Usl(!this.notSticky))};
_.PV.Object.defineProperties(HN.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 A,t,f=(A=this.data)==null?void 0:(t=A.contents)==null?void 0:t.find(function(X){return _.C(X,cBb)});
return{sortFilterHeaderRenderer:_.C(f,cBb)}}}});
HN.prototype.dispatchChipBarIsSticky=HN.prototype.dispatchChipBarIsSticky;HN.prototype.isPlaylistPageChanged=HN.prototype.isPlaylistPageChanged;HN.prototype.updateChipBarWidthAndTop=HN.prototype.updateChipBarWidthAndTop;HN.prototype.onResize=HN.prototype.onResize;HN.prototype.onPersistentPanelVisibleChanged=HN.prototype.onPersistentPanelVisibleChanged;HN.prototype.onGuideIsExpandedChanged=HN.prototype.onGuideIsExpandedChanged;HN.prototype.updateDynamicHeight=HN.prototype.updateDynamicHeight;
HN.prototype.onSelectedChipContentChanged=HN.prototype.onSelectedChipContentChanged;HN.prototype.dataChanged=HN.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],HN.prototype,"actionHandlerBehavior",void 0);
_.V([_.b(_.K9),_.H("design:type",Object)],HN.prototype,"ironResizableBehavior",void 0);_.V([_.b(),_.H("design:type",ZG)],HN.prototype,"ytScrollableChipCloudBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],HN.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],HN.prototype,"data",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],HN.prototype,"selectedIndex",void 0);_.V([_.n({value:320}),_.H("design:type",Number)],HN.prototype,"scrollDistance",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"notSticky",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"transparentBackground",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.H("design:type",String)],HN.prototype,"componentStyle",void 0);
_.V([_.n({selector:_.vaq}),_.H("design:type",Boolean)],HN.prototype,"guideIsExpanded",void 0);_.V([_.n({selector:jcf}),_.H("design:type",Boolean)],HN.prototype,"persistentPanelVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"shouldHide",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"disableSticky",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"fluidWidth",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"isClipList",void 0);_.V([_.n(),_.H("design:type",Object)],HN.prototype,"defaultChipIndex",void 0);_.V([_.n(),_.H("design:type",Object)],HN.prototype,"selectedChipContent",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"hasSelectedChipContent",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"collapseFeedCustomizationForm",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"isPlaylist",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],HN.prototype,"playlistVotingAnimationEnabled",void 0);_.V([_.lo("#chips"),_.H("design:type",Object)],HN.prototype,"JSC$16313_chipsSelector",void 0);_.V([_.lo("ytd-sort-filter-header-renderer"),_.H("design:type",HTMLElement)],HN.prototype,"sortFilterHeaderRendererElement",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],HN.prototype,"updating",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HN.prototype,"dataChanged",null);_.V([_.ev("selectedChipContent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HN.prototype,"onSelectedChipContentChanged",null);
_.V([_.ev("hasSelectedChipContent","notSticky"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HN.prototype,"updateDynamicHeight",null);_.V([_.ev("guideIsExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HN.prototype,"onGuideIsExpandedChanged",null);_.V([_.ev("persistentPanelVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HN.prototype,"onPersistentPanelVisibleChanged",null);
_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HN.prototype,"onResize",null);_.V([_.PU("isChannelPageGrid","disableSticky","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HN.prototype,"updateChipBarWidthAndTop",null);_.V([_.y("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HN.prototype,"isChannelPageGrid",null);
_.V([_.y("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HN.prototype,"isHashtagLandingPage",null);_.V([_.ev("isPlaylistPage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HN.prototype,"isPlaylistPageChanged",null);_.V([_.y("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HN.prototype,"isPlaylistPage",null);
_.V([_.y("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HN.prototype,"isDisableDeselectEvent",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],HN.prototype,"sortFilterHeaderRendererData",null);_.V([_.n({reflectToAttribute:!0,selector:_.Iml}),_.H("design:type",String)],HN.prototype,"frostedGlassMode",void 0);
_.V([_.ev("notSticky"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HN.prototype,"dispatchChipBarIsSticky",null);_.V([_.y_({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],HN);
_.Y(HN,"ytd-feed-filter-chip-bar-renderer",function(){if(y$C!==void 0)return y$C;var A=document.createElement("template");_.m(A,'\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 id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return y$C=A},{mode:1});var YG8;var V8l=_.I(function(A){var t=A.data;var f=A.buttonIndex;var X=A.selectedIndex;var Q=A.onSelect;var q=function(){return f()===X()},e=function(){var G,N;
return(N=(G=t().text)==null?void 0:G.content)!=null?N:""};
A=_.jEg();return _.u("yt-toggleable-image-button-view-model",{class:function(){var G={};G=(G.toggleableImageButtonViewModelHost=!0,G[""]=!0,G.toggleableImageButtonViewModelSemiTransparent=X()!==-1&&!q(),G);return _.CW(G)},
tabindex:0,"aria-label":e,"aria-pressed":q,role:"button","on:keydown":A,"on:click":_.f1(function(){Q(t().onSubmitCommand);return!1})},_.u(_.P,{cond:function(){return t().logo},
then:function(G){return _.u(_.YA,{data:G,className:function(){var N={};N=(N.toggleableImageButtonViewModelImage=!0,N.toggleableImageButtonViewModelCircularRadius=!(!t().backgroundColor||!t().backgroundColorDarkMode),N.toggleableImageButtonViewModelGradientRing=!!(q()&&t().backgroundColor&&t().backgroundColorDarkMode),N);return _.CW(N)},
alt:e,useWidth:!1,style:function(){if(q()&&t().backgroundColor&&t().backgroundColorDarkMode){var N=Wi(Number(t().backgroundColorDarkMode),"1");var z=Wi(Number(t().backgroundColor),"1");N="background: linear-gradient(180deg,"+N+","+z+") border-box;"}else N="";return N}})}}),_.u(_.WS,{model:{borderRadius:"16px"}}),_.u("p",{class:function(){var G={};
G=(G.toggleableImageButtonViewModelLabel=!0,G.toggleableImageButtonViewModelBoldText=q(),G);return _.CW(G)}},_.u(_.zL,{text:function(){return t().text}})))},"Vc");
V8l.idomCompat=!0;var oeS=_.I(function(A){var t=A.data;A=_.U(_.hZ({index:-1,command:{}},void 0,"GM3umb"));var f=A.next().value,X=A.next().value;return _.u("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.u("div",{class:"nudgeFormViewModelFormOptions"},_.u(_.P1,{data:function(){return t().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Q,q){return _.u(V8l,{data:Q.data,buttonIndex:q,selectedIndex:function(){return f().index},
onSelect:function(e){X({index:q(),command:e})}})}})),_.u(_.zL,{text:function(){return t().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.u("div",{class:"nudgeFormViewModelSubmit"},_.u(_.P1,{data:function(){return t().submitButton}},{buttonViewModel:function(Q){return _.u(ZMC,{data:Q.data,
isDisabled:function(){return f().index===-1},
onClick:function(){_.LI(f().command)}})}})))},"Wc");
oeS.idomCompat=!0;var ZMC=_.I(function(A){var t=_.yq(function(){return Object.assign({},A.data(),{state:A.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.u(_.nx,{data:t,onClick:A.onClick})},"Xc");_.Hn(oeS,"yt-nudge-form-view-model",{props:{data:_.PS}});var aQ=function(){var A=_.F.apply(this,arguments)||this;A.roundedContainer=!0;A.buttonUpdate=_.M("web_modern_buttons");A.isDarkMode=!1;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return A};
_.R(aQ,_.F);_.J=aQ.prototype;_.J.computeNudgeStyle=function(A){return A?"modernized-nudge":""};
_.J.handleDarkModeToggledAction=function(A){this.isDarkMode=A};
_.J.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.J.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"}}}};
_.J.computeIsHorizontalButtons=function(A){return A?!!A.applyModernizedStyle&&!!A.enableHorizontalButtons&&!!A.secondaryButton:!1};
_.PV.Object.defineProperties(aQ.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=(A=this.data)==null?void 0:A.backgroundStyle)!=null?t:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=(A=this.data)==null?void 0:A.contentsLocation)!=null?t:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.lightIconImage)}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],aQ.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],aQ.prototype,"actionHandlerBehavior",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("isHideEnclosingAction"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aQ.prototype,"isHidden",null);_.V([_.n(),_.H("design:type",Object)],aQ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aQ.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aQ.prototype,"buttonUpdate",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.H("design:type",String)],aQ.prototype,"nudgeStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.trimStyle"),_.H("design:type",String),_.H("design:paramtypes",[])],aQ.prototype,"trimStyle",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.backgroundStyle"),_.H("design:type",String),_.H("design:paramtypes",[])],aQ.prototype,"backgroundStyle",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data.contentsLocation"),_.H("design:type",String),_.H("design:paramtypes",[])],aQ.prototype,"contentsLocation",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.disableDropShadow"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aQ.prototype,"noShadow",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.lightIconImage"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aQ.prototype,"noIcon",null);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.H("design:type",Boolean)],aQ.prototype,"isHorizontalButtons",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Object)],aQ.prototype,"isDarkMode",void 0);_.V([_.y_({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],aQ);
_.Y(aQ,"ytd-feed-nudge-renderer",function(){if(YG8!==void 0)return YG8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return YG8=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var duK;var SGw;var K$=function(){var A=_.F.apply(this,arguments)||this;A.collapsed=!1;A.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return A};
_.R(K$,_.F);K$.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"}}}};
K$.prototype.handleRatingSelect=function(){var A;((A=this.data)==null?0:A.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
K$.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],K$.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],K$.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.UW),_.H("design:type",Object)],K$.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],K$.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],K$.prototype,"collapsed",void 0);_.V([_.y_({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],K$);
_.Y(K$,"ytd-slimline-survey-renderer",function(){if(SGw!==void 0)return SGw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return SGw=A},{mode:1});var $up;var g4=function(){return _.F.apply(this,arguments)||this};
_.R(g4,_.F);g4.prototype.maybeGetBackgroundColor=function(A){return this.isDarkMode?A.section2Color:A.section3Color};
g4.prototype.colorPaletteChanged=function(){var A=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;A&&(A==null?0:A.secondaryTitleColor)&&this.maybeGetBackgroundColor(A)?(this.hostElement.style.backgroundColor=_.mt(this.maybeGetBackgroundColor(A)),this.hostElement.style.color=_.mt(A.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
g4.prototype.colorPaletteChanged=g4.prototype.colorPaletteChanged;_.V([_.b(_.qT),_.H("design:type",Object)],g4.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],g4.prototype,"data",void 0);_.V([_.n({selector:function(A){return A.ui.darkModeIsEnabled}}),
_.H("design:type",Boolean)],g4.prototype,"isDarkMode",void 0);_.V([_.n(),_.H("design:type",Object)],g4.prototype,"lightColorPalette",void 0);_.V([_.n(),_.H("design:type",Object)],g4.prototype,"darkColorPalette",void 0);_.V([_.ev("darkColorPalette","lightColorPalette","data","isDarkMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],g4.prototype,"colorPaletteChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],g4);
_.Y(g4,"ytd-endorsement-header-renderer",function(){if($up!==void 0)return $up;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return $up=A},{mode:1});_.Hn(_.qM,"yt-decorated-avatar-view-model",{props:{data:_.PS,className:_.PS}});_.w4=new _.eh("VIEW_TRANSITION_MANAGER_TOKEN");var sz=function(){var A=_.F.apply(this,arguments)||this;A.fullHeight=_.M("web_rich_grid_media_full_height");A.showChannelAvatar=!0;A.hasPlaylistThumbnail=!1;A.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};A.registerThumbnailForPageTransition=function(){_.M("web_thumbnail_to_watch_transition")&&_.HMS(_.Px().resolve(_.w4),A.thumbnail)};
return A};
_.R(sz,_.F);_.J=sz.prototype;
_.J.configureRendererStamper=function(){return{lazyLoadMenu:SK,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"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.shouldLazyLoadMenu=function(){var A=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.M("kevlar_modern_downloads_page")||!A};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16337_inlinePreviewHoverListener=LW({mediaRenderer:this,lockupElement:this.JSC$16337_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.J.getVideoPreviewOpts=function(){var A={},t;if((t=this.data)==null?0:t.multipleInlinePlaybackEndpoint)A=y6T;this.isRadio&&(A=WYp);return A};
_.J.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16337_inlinePreviewHoverListener)==null||$Y(A)};
_.J.getOwner=function(){var A,t,f;return((A=this.data)==null?void 0:(t=A.channelThumbnailSupportedRenderers)==null?void 0:t.channelThumbnailWithLinkRenderer)||_.C((f=this.data)==null?void 0:f.showProviderChannelThumbnail,zA8)};
_.J.updateLockupSize=function(){var A;((A=this.getOwner())==null?0:A.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.J.getFeedbackEndpoint=function(A){if(_.C(A,_.vF))return A;var t,f;A=(f=(t=_.C(A,_.Xd))==null?void 0:t.commands)!=null?f:[];t=_.U(A);for(f=t.next();!f.done;f=t.next())if(f=this.getFeedbackEndpoint(f.value))return f;return null};
_.J.computeNavigationEndpoint=function(A){return FOg(A==null?void 0:A.navigationEndpoint)};
_.J.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var A=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(A)!==JSON.stringify(this.data)&&this.set("data",A)}};
_.J.onDataChanged=function(){var A=this,t=this.getOwner();if(t){this.set("data.owner",t);var f,X,Q,q,e,G=((f=this.data)==null?void 0:(X=f.shortBylineText)==null?void 0:(Q=X.runs)==null?void 0:(q=Q[0])==null?void 0:q.text)||((e=t.name)==null?void 0:e.simpleText);this.set("data.owner.title",G)}var N,z,T,O,c,B;t=((N=this.data)==null?void 0:(z=N.thumbnailRenderer)==null?void 0:z.playlistVideoThumbnailRenderer)||((T=this.data)==null?void 0:(O=T.thumbnailRenderer)==null?void 0:O.playlistCustomThumbnailRenderer)||
((c=this.data)==null?void 0:(B=c.thumbnailRenderer)==null?void 0:B.showCustomThumbnailRenderer);var h;((h=this.data)==null?0:h.thumbnail)||!t||this.set("data.thumbnail",t.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){A.updateLockupSize()});
var W;if(N=((W=this.data)==null?void 0:W.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(N);var L;((L=this.dismissActionToReplayEntity)==null?0:L.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.J.onHiddenChanged=function(){this.updateLockupSize()};
_.J.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.kJ(this.hostElement,"yt-terminate-video-preview-action");else{var A;(A=this.videoTitleLink)==null||A.focus()}};
_.J.metadataColorChanged=function(){var A;if(this.metadataColor&&((A=this.videoTitle)==null?0:A.style))this.videoTitle.style.color=_.mt(this.metadataColor);else{var t,f;!this.metadataColor&&((t=this.videoTitle)==null?0:(f=t.style)==null?0:f.color)&&(this.videoTitle.style.color="")}};
_.J.onDetailsClick=function(A){var t=this.computedNavigationEndpoint;t&&(_.Sl(_.Z2(A),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.s9(this.hostElement,"yt-navigate",{endpoint:t}))};
_.J.onRendererTap=function(){this.registerThumbnailForPageTransition();var A,t,f=((A=this.data)==null?void 0:A.serviceEndpoint)||this.getFeedbackEndpoint((t=this.data)==null?void 0:t.navigationEndpoint);f&&_.C(f,_.vF)&&this.ytComponentBehavior.resolveCommand(f)};
_.J.onMouseDown=function(A){var t=A.target,f=this.computedNavigationEndpoint,X;A=t.href||((X=_.C(f==null?void 0:f.commandMetadata,_.Jl))==null?void 0:X.url);X=t.data||f;A&&X&&WH5(A,X)};
_.J.computeVideoTitleText=function(){var A;if((A=this.data)==null?0:A.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.J.computeHasPlaylistThumbnail=function(A){var t,f,X,Q,q;if((((t=A.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((f=A.thumbnailRenderer)==null?0:f.playlistCustomThumbnailRenderer)||((X=A.thumbnailRenderer)==null?0:X.showCustomThumbnailRenderer)||((Q=A.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((q=A.thumbnailRenderer)==null?0:q.playlistCustomThumbnailRenderer))&&A.thumbnailOverlays)for(t=0;t<A.thumbnailOverlays.length;t++)if(f=void 0,(f=A.thumbnailOverlays[t])==
null?0:f.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.PV.Object.defineProperties(sz.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.M("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var A;return(A=this.data)==null?void 0:A.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var A;return(A=this.data)==null?void 0:A.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$16337_inlinePreviewHoverListener)==null?0:GZ(A))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.tXT(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:A.videoId)||((t=this.data)==null?void 0:t.playlistId)||""}}});
sz.prototype.onMouseDown=sz.prototype.onMouseDown;sz.prototype.metadataColorChanged=sz.prototype.metadataColorChanged;sz.prototype.onIsDismissedChanged=sz.prototype.onIsDismissedChanged;sz.prototype.onHiddenChanged=sz.prototype.onHiddenChanged;sz.prototype.onDataChanged=sz.prototype.onDataChanged;sz.prototype.handleReloadDownloadsInfo=sz.prototype.handleReloadDownloadsInfo;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],sz.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],sz.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],sz.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],sz.prototype,"ytdReduxBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],sz.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],sz.prototype,"entitySelectorType",void 0);_.V([_.n(),_.H("design:type",Boolean)],sz.prototype,"noEndpoints",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],sz.prototype,"isRadio",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],sz.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],sz.prototype,"fullHeight",void 0);
_.V([_.n(),_.H("design:type",Boolean)],sz.prototype,"showDarkVideoMetadata",void 0);_.V([_.n(),_.H("design:type",Boolean)],sz.prototype,"showLightVideoMetadata",void 0);_.V([_.n(),_.H("design:type",Number)],sz.prototype,"metadataColor",void 0);_.V([_.n(),_.H("design:type",Object)],sz.prototype,"showChannelAvatar",void 0);_.V([_.n(),_.H("design:type",Boolean)],sz.prototype,"hidden",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],sz.prototype,"showYtInteraction",void 0);
_.V([_.n(),_.H("design:type",String)],sz.prototype,"dismissedContentId",void 0);_.V([_.n({selectorArgs:["dismissedContentId"],selector:JCb}),_.H("design:type",Object)],sz.prototype,"dismissActionToReplayEntity",void 0);
_.V([_.n({selectorArgs:["entitySelectorType","mediaId"],selector:function(A,t,f){if(_.M("kevlar_modern_downloads_page")&&f&&t&&t!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(t){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var X=VDx(A,f);if(X){t=_.LZ(A,f);var Q=Ep(A,f),q=kL0(A,f);A=nZ(A,f);var e=Eol(X,t,Q,q);Q=e.shortViewCountText;var G=e.publishedTimeText;e=e.badges;var N=A>0;q=LUs(X,t,q,A);X=_.PE(t)||t==="TRANSFER_STATE_FAILED"||t==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!z$(X.policyEntity)?
void 0:nzz(f,A,X.videoEntity.lengthSeconds);t==="TRANSFER_STATE_PAUSED_BY_USER"&&f&&!_.M("dl_resume_click_killswitch")&&(X={offlineVideoEndpoint:{videoId:f,action:"ACTION_RESUME"}});f={shortViewCountText:Q,publishedTimeText:G,badges:e,isWatched:N,navigationEndpoint:X,thumbnailOverlays:q}}else f=void 0;return f;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(t=Zx5(A,f))if(X=_.pZ(A,f),q=_.oag(A,f),X!=="TRANSFER_STATE_UNKNOWN"){f=p4b(t,X,q,f,_.vE(A));break a}f=void 0}return f;default:_.K4(new _.xj("Error: entitySelectorType defined but not matched in selector.",
A,t))}}}),
_.H("design:type",Object)],sz.prototype,"entityDrivenState",void 0);_.V([_.n({computed:"computeVideoTitleText(data)"}),_.H("design:type",Object)],sz.prototype,"videoTitleText",void 0);_.V([_.n({computed:"computeHasPlaylistThumbnail(data)"}),_.H("design:type",Object)],sz.prototype,"hasPlaylistThumbnail",void 0);_.V([_.n({computed:"computeNavigationEndpoint(data)"}),_.H("design:type",Object)],sz.prototype,"computedNavigationEndpoint",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],sz.prototype,"typographyBump",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("typographyBump"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sz.prototype,"typographyBumpV2",null);_.V([_.lo("#video-title"),_.H("design:type",HTMLElement)],sz.prototype,"videoTitle",void 0);_.V([_.lo("#video-title-link"),_.H("design:type",HTMLElement)],sz.prototype,"videoTitleLink",void 0);
_.V([_.lo("#thumbnail"),_.H("design:type",HTMLElement)],sz.prototype,"thumbnail",void 0);_.V([_.lo("#dismissible"),_.H("design:type",HTMLElement)],sz.prototype,"JSC$16337_dismissibleMedia",void 0);_.V([_.y("data.menu"),_.H("design:type",Object),_.H("design:paramtypes",[])],sz.prototype,"lazyLoadMenu",null);_.V([_.y("data.menu"),_.H("design:type",Object),_.H("design:paramtypes",[])],sz.prototype,"immediateLoadMenu",null);
_.V([_.PU("entityDrivenState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sz.prototype,"handleReloadDownloadsInfo",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sz.prototype,"onDataChanged",null);_.V([_.PU("hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sz.prototype,"onHiddenChanged",null);
_.V([_.ev("isDismissed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sz.prototype,"onIsDismissedChanged",null);_.V([_.ev("metadataColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sz.prototype,"metadataColorChanged",null);_.V([_.UQ("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sz.prototype,"onMouseDown",null);
_.V([_.y("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sz.prototype,"isHovered",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],sz.prototype,"useAvatar",null);_.V([_.y("data","entitySelectorType"),_.H("design:type",String),_.H("design:paramtypes",[])],sz.prototype,"mediaId",null);_.V([_.y_({is:"ytd-rich-grid-media",disableElementRegistration:!0})],sz);
var a4C=_.wR()(sz,"ytd-rich-grid-media",function(){if(duK!==void 0)return duK;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return duK=A},{mode:_.sQ("kevlar_poly_si_batch_j072")?1:2});var KDw;var kG=function(){var A=_.F.apply(this,arguments)||this;A.removeMaxWidth=!0;A.insetMetadata=!1;return A};
_.R(kG,_.F);_.J=kG.prototype;_.J.configureRendererStamper=function(){return{innerMenu:SK,outerMenu:Object.assign({},SK,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onDataChanged=function(){var A,t=((A=this.data)==null?void 0:A.trackingParams)||"";t&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(t));var f;((f=this.dismissActionToReplayEntity)==null?0:f.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16342_inlinePreviewHoverListener=LW({mediaRenderer:this,lockupElement:this.JSC$16342_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:vrl})};
_.J.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16342_inlinePreviewHoverListener)==null||$Y(A)};
_.J.onRendererTap=function(){var A,t,f=(A=this.data)==null?void 0:(t=A.serviceEndpoints)==null?void 0:t[0];_.C(f,_.vF)&&this.componentBehavior.resolveCommand(f)};
_.J.onDetailsClick=function(A){var t,f=(t=this.data)==null?void 0:t.navigationEndpoint;f&&(_.Sl(_.Z2(A),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(f))};
_.J.onShow=function(){var A=this.data;A.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(A.onFirstVisibleCommand),delete A.onFirstVisibleCommand)};
_.PV.Object.defineProperties(kG.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var A;return this.insetMetadata?void 0:(A=this.data)==null?void 0:A.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var A;return this.insetMetadata?(A=this.data)==null?void 0:A.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var A=this.data;if(A!=null&&A.badge&&(A=_.C(A.badge,JBS))){var t,f,X;return[{metadataBadgeRenderer:{label:((t=A.label)==null?void 0:(f=t.runs)==null?void 0:f[0].text)||((X=A.label)==null?void 0:X.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var A=this.data;return Object.assign({},A.headline,{accessibility:A.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return this.isSlimShort?(A=this.computedTitle)==null?void 0:(t=A.accessibility)==null?void 0:(f=t.accessibilityData)==null?void 0:f.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.M("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$16342_inlinePreviewHoverListener)==null?0:GZ(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
kG.prototype.onDataChanged=kG.prototype.onDataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],kG.prototype,"componentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],kG.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.UW),_.H("design:type",Object)],kG.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],kG.prototype,"ytdReduxBehavior",void 0);_.V([_.lo("ytd-thumbnail"),_.H("design:type",HTMLElement)],kG.prototype,"thumbnail",void 0);_.V([_.lo("#dismissible"),_.H("design:type",HTMLElement)],kG.prototype,"JSC$16342_dismissibleMedia",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],kG.prototype,"removeMaxWidth",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],kG.prototype,"insetMetadata",void 0);_.V([_.n(),_.H("design:type",String)],kG.prototype,"dismissedContentId",void 0);_.V([_.n({selectorArgs:["dismissedContentId"],selector:JCb}),_.H("design:type",Object)],kG.prototype,"dismissActionToReplayEntity",void 0);_.V([_.y("insetMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],kG.prototype,"thumbnailObjectFit",null);
_.V([_.y("data","insetMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],kG.prototype,"innerMenu",null);_.V([_.y("data","insetMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],kG.prototype,"outerMenu",null);_.V([_.n(),_.H("design:type",Object)],kG.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],kG.prototype,"miniMode",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kG.prototype,"onDataChanged",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],kG.prototype,"shortsBadges",null);_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],kG.prototype,"isShort",null);
_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],kG.prototype,"isSlimShort",null);_.V([_.y("data","isShort"),_.H("design:type",Object),_.H("design:paramtypes",[])],kG.prototype,"computedTitle",null);_.V([_.y("isSlimShort","computedTitle"),_.H("design:type",Object),_.H("design:paramtypes",[])],kG.prototype,"computedAccessibilityLabel",null);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],kG.prototype,"shouldForce2By3",null);_.V([_.y("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],kG.prototype,"isHovered",null);_.V([_.y_({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],kG);
_.Y(kG,"ytd-rich-grid-slim-media",function(){if(KDw!==void 0)return KDw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return KDw=A},{mode:_.sQ("kevlar_poly_si_batch_j063")?1:2});var gep;var wGw;var r4=function(){return _.F.apply(this,arguments)||this};
_.R(r4,_.F);r4.prototype.computeIcon=function(A){return A&&A.iconType?"yt-sys-icons:"+A.iconType.toLowerCase():""};
r4.prototype.onMouseEnter=function(){this.isHovered=!0};
r4.prototype.onMouseLeave=function(){this.isHovered=!1};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],r4.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],r4.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],r4.prototype,"isHovered",void 0);
_.V([_.y_({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],r4);
_.Y(r4,"ytd-expand-on-hover-card-renderer",function(){if(wGw!==void 0)return wGw;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return wGw=A},{mode:1});var scC,k3E=function(){if(scC!==void 0)return scC;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return scC=A};_.C1("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var An=function(){var A=_.F.apply(this,arguments)||this;A.compactStyle=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(An,_.F);_.J=An.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.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"}}}};
_.J.computeHideDot=function(A){return!(A&&A.subscriberCountText&&A.videoCountText)||this.compactStyle};
_.J.hasDualButtons=function(A){return A&&A.purchaseButton&&A.subscribeButton};
_.J.backgroundColorChanged=function(){if(this.data!==void 0){var A=this.data.backgroundColor;this.isDarkTheme&&(A=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=A!=null?_.mt(A):"transparent"}};
_.J.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.J.onTap=function(A){var t,f,X=((t=this.data)==null?void 0:t.navigationEndpoint)||((f=this.data)==null?void 0:f.serviceEndpoint);_.C(X,_.ZB)&&(X&&_.Px().resolve(_.i2).resolveCommand(X,{form:{element:this.hostElement}}),A.preventDefault())};
_.J.computeChannelEndpoint=function(A){return _.C(A,_.ZB)?null:A};
_.J.computeHrefEndpoint=function(A){return _.C(A,_.ZB)?null:this.componentBehavior.computeHref_(A)};
_.J.computeChannelRendererStyle=function(A){return A};
_.J.computeIconSize=function(A){return A?108:136};
_.PV.Object.defineProperties(An,{template:{configurable:!0,enumerable:!0,get:function(){return k3E()}}});
An.prototype.backgroundColorChanged=An.prototype.backgroundColorChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],An.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],An.prototype,"componentBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],An.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],An.prototype,"isDarkTheme",void 0);_.V([_.n({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.H("design:type",String)],An.prototype,"channelRendererStyle",void 0);_.V([_.n({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],An.prototype,"dualButtons",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],An.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Bx("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],An.prototype,"biggerThumbStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],An.prototype,"compactStyle",void 0);_.V([_.ev("data","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],An.prototype,"backgroundColorChanged",null);_.V([_.y_({is:"ytd-channel-renderer",disableElementRegistration:!0})],An);_.Y(An,"ytd-channel-renderer",function(){return k3E()},{mode:1});var r$K;var Adi;_.C1("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var tn=function(){var A=_.F.apply(this,arguments)||this;A.displayItemCount=2;A.hasPlaylistThumbnail=!1;A.stackThumbnailSize="large";return A};
_.R(tn,_.F);_.J=tn.prototype;_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.computeFirstVideos=function(A,t){return A&&t?A.slice(0,t):[]};
_.J.computeThumbnailWidth=function(A,t){return A?t==="BIG"?500:t==="MASSIVE"?600:t==="MEDIUM"?450:420:360};
_.J.computeThumbnailHeight=function(A,t){return A?t==="BIG"?280:t==="MASSIVE"?337:234:202};
_.J.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16355_inlinePreviewHoverListener)==null||$Y(A)};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16355_inlinePreviewHoverListener=LW({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:y6T,thumbnailElement:this.thumbnail})};
_.J.computeHasPlaylistThumbnail=function(A){var t,f;if((((t=A.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((f=A.thumbnailRenderer)==null?0:f.playlistCustomThumbnailRenderer))&&A.thumbnailOverlays)for(t=0;t<A.thumbnailOverlays.length;t++)if(f=void 0,(f=A.thumbnailOverlays[t])==null?0:f.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.PV.Object.defineProperties(tn.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$16355_inlinePreviewHoverListener)==null?0:GZ(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tn.prototype.dataChanged=tn.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],tn.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],tn.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],tn.prototype,"displayItemCount",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],tn.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Bx("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],tn.prototype,"biggerThumbsStyle",void 0);_.V([_.n({computed:"computeHasPlaylistThumbnail(data)"}),_.H("design:type",Object)],tn.prototype,"hasPlaylistThumbnail",void 0);_.V([_.n(),_.H("design:type",String)],tn.prototype,"stackThumbnailSize",void 0);_.V([_.lo("ytd-thumbnail"),_.H("design:type",HTMLElement)],tn.prototype,"thumbnail",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tn.prototype,"dataChanged",null);
_.V([_.y("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tn.prototype,"isHovered",null);_.V([_.y_({is:"ytd-radio-renderer",disableElementRegistration:!0})],tn);
_.Y(tn,"ytd-radio-renderer",function(){if(Adi!==void 0)return Adi;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Adi=A},{mode:_.sQ("kevlar_poly_si_batch_j058")?1:2});var tWT;_.C1("itemSectionRenderer","showRenderer","ytd-show-renderer");var f7=function(){return _.F.apply(this,arguments)||this};
_.R(f7,_.F);f7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
f7.prototype.computeThumbnailWidth=function(A){return A?360:246};
f7.prototype.computeUseProminentThumbs=function(A){return A};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],f7.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],f7.prototype,"isSearch",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.H("design:type",Boolean)],f7.prototype,"useProminentThumbs",void 0);_.V([_.y_({is:"ytd-show-renderer",disableElementRegistration:!0})],f7);
_.Y(f7,"ytd-show-renderer",function(){if(tWT!==void 0)return tWT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return tWT=A},{mode:1});_.C1("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Xs=function(){var A=_.F.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.R(Xs,_.F);Xs.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"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Xs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Xs.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Xs.prototype,"isRichGrid",void 0);_.V([_.y_({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Xs);
_.Y(Xs,"ytd-feed-entry-renderer",function(){if(r$K!==void 0)return r$K;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return r$K=A},{mode:1});var f$E;var QB=function(){return _.F.apply(this,arguments)||this};
_.R(QB,_.F);QB.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.V([_.b(_.qT),_.H("design:type",Object)],QB.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],QB.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],QB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.b$,value:3}),_.H("design:type",Number)],QB.prototype,"itemsPerRow",void 0);
_.V([_.y_({is:"ytd-link-card-renderer",disableElementRegistration:!0})],QB);
_.Y(QB,"ytd-link-card-renderer",function(){if(f$E!==void 0)return f$E;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return f$E=A},{mode:1});var Xq8;var qs=function(){return _.F.apply(this,arguments)||this};
_.R(qs,_.F);_.J=qs.prototype;_.J.configureRendererStamper=function(){return{"data.menu":SK,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onRendererTap=function(A){if(!this.ytdDismissibleItemBehavior.isDismissed){var t,f=(t=this.data)==null?void 0:t.navigationEndpoint;f&&!_.Sl(_.Z2(A),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(f)?_.Sl(_.Z2(A),this.hostElement,["A"])||_.s9(this.hostElement,"yt-navigate",{endpoint:f}):this.ytComponentBehavior.resolveCommand(f,{}))}};
_.J.maybeComputeHref=function(A){return this.ytComponentBehavior.computeHref_(A,!0)};
_.J.getNavigationCommand=function(A){return this.isNavigationCommand(A)?A:null};
_.J.isNavigationCommand=function(A){return A?_.C(A,_.GD)||_.C(A,_.ZT)||_.C(A,_.fV)?!0:!1:!1};
qs.prototype.onRendererTap=qs.prototype.onRendererTap;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],qs.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],qs.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],qs.prototype,"data",void 0);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],qs.prototype,"onRendererTap",null);_.V([_.y_({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],qs);
_.Y(qs,"ytd-lumiere-promo-item-image-renderer",function(){if(Xq8!==void 0)return Xq8;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Xq8=A},{mode:1});var Qsl;var Jn=function(){return _.F.apply(this,arguments)||this};
_.R(Jn,_.F);Jn.prototype.computeLandscapeThumbnail=function(){var A;return((A=this.data)==null?void 0:A.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Jn.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Jn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],Jn.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.b$}),_.H("design:type",Number)],Jn.prototype,"itemsPerRow",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.H("design:type",Boolean)],Jn.prototype,"landscapeThumbnail",void 0);_.V([_.y_({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Jn);
_.Y(Jn,"ytd-lumiere-shelf-details-renderer",function(){if(Qsl!==void 0)return Qsl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Qsl=A},{mode:_.sQ("kevlar_poly_si_batch_j076")?1:2});var qKT;var Uk=function(){return _.F.apply(this,arguments)||this};
_.R(Uk,_.F);Uk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Uk.prototype,"data",void 0);_.V([_.y_({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Uk);
_.Y(Uk,"ytd-primetime-promo-details-renderer",function(){if(qKT!==void 0)return qKT;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return qKT=A},{mode:1});var Jdk;var eB=function(){return _.F.apply(this,arguments)||this};
_.R(eB,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],eB.prototype,"data",void 0);_.V([_.y_({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],eB);
_.Y(eB,"ytd-panel-show-style-metadata-renderer",function(){if(Jdk!==void 0)return Jdk;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Jdk=A},{mode:1});var UfT;var G9=function(){return _.F.apply(this,arguments)||this};
_.R(G9,_.F);_.J=G9.prototype;_.J.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.J.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.J.computeThumbnail=function(A){if(A)return A.smallFormFactorBackgroundThumbnail||A.largeFormFactorBackgroundThumbnail};
_.J.maybeComputeHref=function(A){return this.ytComponentBehavior.computeHref_(A,!0)};
_.J.isNavigationCommand=function(A){return A?_.C(A,_.GD)||_.C(A,_.ZT)||_.C(A,_.fV)?!0:!1:!1};
_.J.getNavigationCommand=function(A){return this.isNavigationCommand(A)?A:null};
G9.prototype.onPanelTap=G9.prototype.onPanelTap;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],G9.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],G9.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],G9.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0,value:_.M("web_modern_buttons")}),_.H("design:type",Boolean)],G9.prototype,"modernButtons",void 0);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],G9.prototype,"onPanelTap",null);_.V([_.y_({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],G9);
_.Y(G9,"ytd-primetime-promo-panel-renderer",function(){if(UfT!==void 0)return UfT;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return UfT=A},{mode:1});_.Hn(_.I(function(A){A=_.Sv(A,{data:{},useFullWidth:!1});var t=A.data,f=A.useFullWidth;A={};return _.u("teaser-card-view-model",{class:_.Ao("ytTeaserCardViewModelHost",(A.ytTeaserCardViewModelUseFullWidth=function(){return f()},A))},_.u(_.P,{cond:function(){return t().onTap},
then:function(X){return _.u(_.bc,{className:"ytTeaserCardViewModelLink",command:X},_.u("div",{class:"ytTeaserCardViewModelImageContainer"},_.u(_.P,{cond:function(){return t().image},
then:function(Q){return _.u(_.YA,{data:Q,className:"ytTeaserCardViewModelImage",alt:""})}})),_.u("p",{class:"ytTeaserCardViewModelCaption"},function(){return t().caption}))}}))},"Yc"),"teaser-card-view-model",{props:{data:_.PS,
useFullWidth:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=function(){var X;return _.Fl((X=t())==null?void 0:X.iconThemedImage)};
return _.u("yt-edu-card-view-model",null,_.u(_.IS,{contentId:function(){return t().nudgeId}},function(){return _.u("div",{class:_.Ao("ytEduCardViewModelHost",function(){return t().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.u("div",{class:"ytEduCardViewModelTopCornerButton"},_.u(_.P1,{data:function(){return t().dismissButton}},{buttonViewModel:_.nx})),_.u("div",{class:"ytEduCardViewModelContentWrapper"},_.u("div",{class:"ytEduCardViewModelHeaderImage"},_.u(_.P,
{cond:f,
then:function(X){return _.u(_.YA,{data:X,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.u("div",{class:"ytEduCardViewModelTextContainer"},_.u("div",{class:"ytEduCardViewModelTitle"},_.u(_.zL,{text:function(){return t().title}})),_.u("div",{class:"ytEduCardViewModelSubtitle"},_.u(_.zL,{text:function(){return t().subtitle}}))),_.u("div",{class:"ytEduCardViewModelContent"},_.u(_.P1,{data:function(){return t().form}},{nudgeFormViewModel:oeS}))),_.u("div",{class:_.Ao("ytEduCardViewModelButtonWrapper",
function(){return t().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.u(_.P1,{data:function(){return t().primaryButton}},{buttonViewModel:function(X){return _.u("div",{class:"ytEduCardViewModelPrimaryButton"},_.u(_.nx,{data:X.data}))}}),_.u(_.P1,{data:function(){return t().secondaryButton}},{buttonViewModel:function(X){return _.u("div",{class:"ytEduCardViewModelSecondaryButton"},_.u(_.nx,{data:X.data}))}})))}))},"Zc"),"yt-edu-card-view-model",{props:{data:_.PS}});var eRT=new _.eh("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Hn(_.I(function(A){var t=A.data;var f=A.showYtInteractionInContent;var X=function(){return!!t().selectableFeedback};
A=_.U(_.hZ(!1,void 0,"qxtgaf"));var Q=A.next().value,q=A.next().value;_.oh(function(){var c=_.C(t().primaryButton,_.Tf);(c==null?0:c.isToggled)&&q(c.isToggled)});
A=_.f1(function(c){if(!X())return!1;if(Q()){var B;var h=(B=t().selectableFeedback)==null?void 0:B.onDeselect}else{var W;h=(W=t().selectableFeedback)==null?void 0:W.onSelect}h&&_.LI(h,{form:{element:c.target}});q(!Q());if(c=_.C(t().primaryButton,_.Tf))c.isToggled=Q();return!1});
var e=function(){if(!X()){var c,B=(c=t().loggingDirectives)==null?void 0:c.trackingParams;B&&_.Zv(_.Px().resolve(_.gx),B)}},G=_.Yrs(),N=function(){var c;
return X()?(c=t().selectableFeedback)==null?void 0:c.a11yLabel:void 0},z=function(){return X()?{toggled:Q()}:{}},T=_.Px().resolve(_.z7(eRT)),O={};
return _.u("yt-feedback-item-renderer",{class:_.Ao("ytFeedbackItemRendererHost",(O.ytFeedbackItemRendererSelectableFeedback=X,O)),"on:click":A,"on:keydown":G,title:N,"aria-label":N,"aria-pressed":function(){return X()?Q():void 0},
tabindex:function(){return X()?0:void 0},
role:function(){return X()?"button":void 0}},_.u("div",{class:"ytFeedbackItemRendererContentContainer"},_.u(_.P1,{data:function(){return t().content}},{videoRenderer:function(c){return _.u(T,{data:c.data,
showYtInteraction:f})},
lockupViewModel:function(c){return _.u(_.VK,{data:c.data,containerType:2})}})),_.u("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.u(_.P1,{data:function(){return t().primaryButton}},{toggleButtonViewModel:function(c){return _.u(_.s$,{data:c.data,
buttonShapeOverrides:z,disableExplicitClickLogging:!0,onToggle:e})}})))},"$c"),"yt-feedback-item-renderer",{props:{data:_.PS,
showYtInteractionInContent:_.PS}});var lN=function(){var A=_.F.apply(this,arguments)||this;A.isShortsGrid=!1;A.isCompactGrid=!1;A.isShortsPanelGrid=!1;A.renderedFromRichGrid=!1;A.isInFirstColumn=!1;A.noGutterMargins=!1;A.noBottomMargin=!1;A.halfBottomMargin=!1;A.isInlineGroupItem=!1;A.insetMetadata=!1;A.noBottomMarginInAds=!0;A.force16By9ThumbnailAspectRatio=!1;A.useCompactList=!1;A.containerType=2;A.thumbnailTargetWidth=9999;A.isResponsiveGrid=!1;A.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};A.hoverListener=
A.hover.bind(A);A.leaveListener=A.leave.bind(A);A.highlighted=!1;A.JSC$16391_unsubscribeFromInlinePreviewIsActive=function(){};
return A};
_.R(lN,_.F);_.J=lN.prototype;_.J.computeContainerType=function(){return this.useCompactList?3:2};
_.J.itemWidthChanged=function(){var A;this.thumbnailTargetWidth=(A=this.itemWidth)!=null?A:9999};
_.J.updateIsInFirstColumn=function(){var A;this.isInFirstColumn=((A=this.data)==null?void 0:A.colIndex)===0};
_.J.observerContainerType=function(){if(this.lockup){var A=this.lockup;A.containerType=this.containerType;A.sizing=this.sizing;A.typographyBump=this.typographyBump;A.itemWidth=this.itemWidth}this.richGridMedia&&_.M("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.M("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.J.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",eduCardViewModel:"yt-edu-card-view-model",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]]"}}}}}};
_.J.leave=function(A){A=A.relatedTarget;var t=document.querySelector("ytd-video-preview");A&&t&&_.kO(t).contains(A)||this.removeAndCleanupHighlight()};
_.J.hover=function(){var A;!this.highlighted&&(A=this.data)!=null&&A.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(A=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:A,boxShadow:"0 0 0 10px "+A})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.J.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};
_.J.registerHoverHighlightListeners=function(){var A=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16391_unsubscribeFromInlinePreviewIsActive=_.ar(_.$I(),_.na5,function(t){A.highlighted&&!t&&A.removeAndCleanupHighlight()})};
_.J.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16391_unsubscribeFromInlinePreviewIsActive()};
_.J.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.J.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.J.getBackgroundColor=function(){var A,t,f=(A=this.data)==null?void 0:(t=A.onFocusEffect)==null?void 0:t.onFocusColor;if(f){if(document.documentElement.hasAttribute("dark")&&(f==null?0:f.darkTheme))return yc(f==null?void 0:f.darkTheme);if(f==null?0:f.lightTheme)return yc(f==null?void 0:f.lightTheme)}};
_.J.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var A=_.Ws(),t,f,X;A&&((t=this.data)==null?0:t.trackingParams)&&((f=this.data)==null?void 0:f.colIndex)!=null&&((X=this.data)==null?void 0:X.rowIndex)!=null&&_.S5(A,_.zV(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.J.isSlimMediaRenderer=function(A){return!!_.C(A==null?void 0:A.content,_.FdT)||!!_.C(A==null?void 0:A.content,DrT)||!!_.C(A==null?void 0:A.content,_.U_)||!!_.C(A==null?void 0:A.content,X4T)};
_.J.isPostRenderer=function(){var A,t;return!!_.C((A=this.data)==null?void 0:A.content,kEf)||!!_.C((t=this.data)==null?void 0:t.content,r9l)};
_.J.computeIsGameCardShelf=function(){var A;return!!_.C((A=this.data)==null?void 0:A.content,uL8)};
_.J.computeIsMiniGameCardShelf=function(){var A,t;return!!_.C((A=this.data)==null?void 0:A.content,WMT)||!!_.C((t=this.data)==null?void 0:t.content,ySp)};
_.J.computeIsTeaserCard=function(){var A;return!!_.C((A=this.data)==null?void 0:A.content,ySp)};
_.J.computeIsSelectableFeedbackItem=function(){var A,t;return!((t=_.C((A=this.data)==null?void 0:A.content,LMT))==null||!t.selectableFeedback)};
_.J.computeContainsLumierePosters=function(){var A,t;return((t=_.C((A=this.data)==null?void 0:A.content,eAT))==null?void 0:t.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.computeIsExpandOnHoverCardShelf=function(){var A;return!!_.C((A=this.data)==null?void 0:A.content,U$i)};
_.J.computeIsLinkCardShelf=function(){var A;return!!_.C((A=this.data)==null?void 0:A.content,Ojf)};
_.J.computeIsReelItemStyleAvatarCircle=function(A){var t;return((t=_.C(A==null?void 0:A.content,_.U_))==null?void 0:t.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.J.computeIsLinkCardFullWidth=function(A,t){var f;return((f=_.C(A==null?void 0:A.content,Ojf))==null?void 0:f.useFullWidth)||t<=2};
_.PV.Object.defineProperties(lN.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var A;return _.M("web_hover_effect_refactor")&&_.C((A=this.data)==null?void 0:A.content,_.i2p)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.M("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var A;if(_.M("web_hover_effect_refactor")&&_.C((A=this.data)==null?void 0:A.content,_.i2p))return!1;var t;return!((t=this.data)==null||!t.onFocusEffect)||_.M("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var A;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.M("web_hover_effect_refactor")?(A=this.data)==null?void 0:A.onFocusEffect:void 0}}}});
lN.prototype.richGridHoverHighlightChanged=lN.prototype.richGridHoverHighlightChanged;lN.prototype.observerContainerType=lN.prototype.observerContainerType;lN.prototype.updateIsInFirstColumn=lN.prototype.updateIsInFirstColumn;lN.prototype.itemWidthChanged=lN.prototype.itemWidthChanged;_.V([_.b(_.qT),_.H("design:type",Object)],lN.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],lN.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],lN.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],lN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.H("design:type",Boolean)],lN.prototype,"isPost",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.H("design:type",Boolean)],lN.prototype,"containsLumierePosters",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.H("design:type",Boolean)],lN.prototype,"isSlimMedia",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.H("design:type",Boolean)],lN.prototype,"isGameCardShelf",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.H("design:type",Boolean)],lN.prototype,"isMiniGameCardShelf",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.H("design:type",Boolean)],lN.prototype,"isTeaserCard",void 0);_.V([_.n({computed:"computeIsSelectableFeedbackItem(data)"}),_.H("design:type",Boolean)],lN.prototype,"isSelectableFeedbackItem",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"isShortsGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],lN.prototype,"isSlimGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"isCompactGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"isShortsPanelGrid",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.H("design:type",Boolean)],lN.prototype,"isExpandOnHoverCardShelf",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.H("design:type",Boolean)],lN.prototype,"isLinkCardShelf",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.b$,value:3}),_.H("design:type",Number)],lN.prototype,"itemsPerRow",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"renderedFromRichGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"isInFirstColumn",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"noGutterMargins",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"noBottomMargin",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"halfBottomMargin",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"isInlineGroupItem",void 0);_.V([_.n(),_.H("design:type",Object)],lN.prototype,"insetMetadata",void 0);_.V([_.n(),_.H("design:type",Object)],lN.prototype,"noBottomMarginInAds",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],lN.prototype,"isShelfItem",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.H("design:type",Boolean)],lN.prototype,"isReelItemStyleAvatarCircle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.H("design:type",Boolean)],lN.prototype,"isLinkCardFullWidth",void 0);_.V([_.n(),_.H("design:type",Object)],lN.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"useCompactList",void 0);_.V([_.n(),_.H("design:type",String)],lN.prototype,"sizing",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],lN.prototype,"typographyBump",void 0);_.V([_.n(),_.H("design:type",Number)],lN.prototype,"itemWidth",void 0);_.V([_.n(),_.H("design:type",Boolean)],lN.prototype,"isHomeShelf",void 0);_.V([_.n(),_.H("design:type",Boolean)],lN.prototype,"isHomeGrid",void 0);
_.V([_.lo("yt-lockup-view-model"),_.H("design:type",HTMLElement)],lN.prototype,"lockup",void 0);_.V([_.lo("ytd-rich-grid-media"),_.H("design:type",HTMLElement)],lN.prototype,"richGridMedia",void 0);_.V([_.lo("ytd-ad-slot-renderer"),_.H("design:type",HTMLElement)],lN.prototype,"adSlotRenderer",void 0);_.V([_.n({computed:"computeContainerType(useCompactList)"}),_.H("design:type",Object)],lN.prototype,"containerType",void 0);_.V([_.n(),_.H("design:type",Object)],lN.prototype,"thumbnailTargetWidth",void 0);
_.V([_.y("showYtInteractionOnRichItem"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lN.prototype,"showYtInteractionOnRichGridMedia",null);_.V([_.y("isSelectableFeedbackItem","richGridHoverHighlight"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lN.prototype,"showYtInteractionOnRichItem",null);_.V([_.y("typographyBump","isHomeGrid"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lN.prototype,"richTypographyBump",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data","isShortsGrid","isCompactGrid"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lN.prototype,"richGridHoverHighlight",null);_.V([_.y("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.H("design:type",Number),_.H("design:paramtypes",[])],lN.prototype,"shortsLockupViewModelAspectRatio",null);_.V([_.y("isInlineGroupItem"),_.H("design:type",Number),_.H("design:paramtypes",[])],lN.prototype,"shortsLockupViewModelScrimStyle",null);
_.V([_.ev("itemWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lN.prototype,"itemWidthChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lN.prototype,"updateIsInFirstColumn",null);_.V([_.ev("containerType","sizing","typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lN.prototype,"observerContainerType",null);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],lN.prototype,"isResponsiveGrid",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],lN.prototype,"lockupExperiments",null);_.V([_.ev("richGridHoverHighlight"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lN.prototype,"richGridHoverHighlightChanged",null);_.V([_.y_({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],lN);
_.G8p=_.wR()(lN,"ytd-rich-item-renderer",function(){if(gep===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);gep=A}A=gep;return A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var rX0={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var uMp=_.oC(_.e5("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var twx={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},X8q={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Qtz={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var l$i;var Ns=function(){var A=_.F.apply(this,arguments)||this;A.useResponsiveGrid=!1;A.hidden=!1;A.isShowMoreHidden=!1;A.isShowLessHidden=!0;A.hasExpansionButton=!1;A.isInnerShelf=!1;A.allVideosCount=0;A.allPlaylistCount=0;A.haveSmartDownloadsCompleted=!1;A.restrictContentsOverflow=!1;A.firstShownIndex=0;A.horizontalOffset=0;A.atEnd=!0;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
A.nextClick=function(){var t;(t=A.data)!=null&&t.contents&&(A.firstShownIndex+=A.currentElementsPerRow,A.updateHorizontalOffset(),A.updateHorizontalItemVisibility())};
A.previousClick=function(){var t;(t=A.data)!=null&&t.contents&&(A.firstShownIndex-=A.currentElementsPerRow,A.updateHorizontalOffset(),A.updateHorizontalItemVisibility())};
return A};
_.R(Ns,_.F);_.J=Ns.prototype;
_.J.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.ah("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.J.attached=function(){this.requestElementsPerRow()};
_.J.refreshGridLayoutNew=function(){var A;if((A=this.data)!=null&&A.contents&&this.containerWidth){var t;((t=this.data.responsiveContainerConfiguration)==null?0:t.responsiveSize)?(A=_.TYb(this.data.responsiveContainerConfiguration,this.containerWidth,2),A=_.nW(Object.assign({},A,{standardUnitMinWidth:this.standardUnitMinWidth}))):A=_.nW({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=A.typographyBump;if(this.elementsPerRow!==
A.numItems||this.gutter!==A.gutter)this.elementsPerRow=A.numItems,this.gutter=A.gutter,this.itemWidth=A.itemWidth,_.Q_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":A.gutter+"px"})}};
_.J.computeSizing=function(){if(!this.isLumiere){var A=_.FXq(this.data);return A?A:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.J.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.J.computeButton=function(A){var t=_.C(A,_.Gf);A=Object.assign({},_.C(A,_.Gf));return t?(A.text||(A.text={simpleText:A.tooltip}),A.style="STYLE_MONO_OUTLINE",A.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",A):t};
_.J.onRowIndexChange=function(){var A=_.Ws(),t,f;((t=this.data)==null?0:t.trackingParams)&&((f=this.data)==null?void 0:f.rowIndex)!=null&&A&&_.S5(A,_.zV(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.J.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var A,t=((A=this.getRichItemRenderers()[0])==null?void 0:A.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*t;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.J.requestElementsPerRow=function(){_.s9(this.hostElement,"yt-request-elements-per-row")};
_.J.onUpdateElementsPerRowAction=function(A,t,f,X,Q,q){if(this.containerWidth!==q&&(this.containerWidth=q,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&A&&t&&f&&X&&Q&&(this.elementsPerRow!==A||this.postsPerRow!==t||this.slimItemsPerRow!==f||this.gameCardsPerRow!==X||this.miniGameCardsPerRow!==Q)&&(this.elementsPerRow=A,this.postsPerRow=t,this.slimItemsPerRow=f,this.gameCardsPerRow=X,this.miniGameCardsPerRow=Q,this.updateItemVisibility())};
_.J.isExpandedChanged=function(){var A=this.getRichItemRenderers(),t=this.isExpanded;A.forEach(function(f){f.halfBottomMargin=t})};
_.J.isCollapsedChanged=function(){var A=this.getRichItemRenderers(),t=this.isCollapsed;A.forEach(function(f){f.noBottomMargin=t})};
_.J.getRichItemRenderers=function(){return _.sF(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.J.updateItemVisibility=function(){var A=this;if(this.data&&this.data.contents){var t=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(X,Q){var q;((q=A.data)==null?0:q.isExpanded)?(X.hidden=Q>t-1,X.ytRendererBehavior.markDirty()):X.hidden=Q>A.currentElementsPerRow-1||Q>t-1});
var f=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||f||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||f||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.J.setHeightToSingleRow=function(){var A=this.getRichItemRenderers(),t=Number.parseInt(getComputedStyle(A[0]).marginBottom,10)||0;A=A.slice(0,this.currentElementsPerRow).reduce(function(f,X){return Math.max(f,X.getBoundingClientRect().height+t)},0);
this.contents.style.height=A+"px"};
_.J.focusNextExpandedItem=function(){var A;((A=this.data)==null?0:A.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.J.focusItem=function(A,t){var f=this.getRichItemRenderers();if(f[A]&&(A=f[A].querySelector(".focus-on-expand"))){if(t){var X;(X=f[this.currentElementsPerRow])==null||X.scrollIntoView({behavior:"smooth",block:"center"})}A.focus({preventScroll:!0})}};
_.J.onDataChange=function(){var A=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var t;if((t=this.data)==null?0:t.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.us(this,function(){A.updateItemVisibility()});
var f;if((f=this.data)==null?0:f.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Q_(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),t=0;t<this.data.contents.length;t++)f=_.C(this.data.contents[t],_.aX)||{},f.colIndex=t,f.rowIndex=this.data.rowIndex};
_.J.handleRerenderDownloadsData=function(){_.M("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())};
_.J.blockInlinePreview=function(A){var t=this,f;return _.l(function(X){(f=t.inlinePreviewIsEnabled)&&t.ytdReduxBehavior.dispatch(_.Jnl(!1));return X.return(new Promise(function(Q){A(function(){f&&t.ytdReduxBehavior.dispatch(_.Jnl(!0));Q()})}))})};
_.J.expandShelf=function(){var A=this;if(this.data){var t,f=(t=_.C(this.data.showMoreButton,_.Gf))==null?void 0:t.trackingParams;f&&_.Zv(_.er(),f);this.set("data.isExpanded",!0);this.blockInlinePreview(function(X){A.setHeightToSingleRow();A.updateItemVisibility();A.contents.style.height=A.contents.scrollHeight+"px";_.a6.addJob(function(){A.contents.style.height="auto";A.focusNextExpandedItem();X()},2,200)})}};
_.J.collapseShelf=function(){var A=this;return _.l(function(t){if(t.nextAddress==1){if(!A.data)return t.return();A.set("data.isExpanded",!1);return t.yield(A.blockInlinePreview(function(f){A.contents.style.height=A.contents.scrollHeight+"px";A.setHeightToSingleRow();_.a6.addJob(function(){A.updateItemVisibility();A.contents.style.height="auto";f()},2,200)}),2)}_.s9(A.hostElement,"yt-rich-shelf-renderer-collapse",A.data.trackingParams);
A.focusItem(0,!1);_.LO(t)})};
_.J.updateArrowButtonStatus=function(){this.getRichItemRenderers();var A,t;var f=((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=f};
_.J.onChildElementFocus=function(A){this.hasChevronButtons&&(A=A.target.closest("#contents > *"),this.contents.contains(A)&&(A.offsetLeft<this.horizontalOffset?this.previousClick():A.offsetLeft+A.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.J.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.ah("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.J.updateHorizontalOffset=function(){var A=this.getRichItemRenderers(),t,f;var X=((t=this.data)==null?void 0:(f=t.contents)==null?void 0:f.length)||0;var Q;A=((Q=A[0])==null?void 0:Q.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>X?this.firstShownIndex=X-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*A};
_.J.isSlimMediaShelfRenderer=function(){var A,t,f,X=(f=_.C((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t[0],_.aX))==null?void 0:f.content;return!!(_.C(X,_.FdT)||_.C(X,DrT)||_.C(X,_.U_)||_.C(X,X4T))};
_.J.isGameCardShelf=function(){var A,t,f,X=(f=_.C((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t[0],_.aX))==null?void 0:f.content;return!!_.C(X,uL8)};
_.J.isMiniGameCardShelf=function(){var A,t,f,X=(f=_.C((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t[0],_.aX))==null?void 0:f.content;return!!_.C(X,WMT)||!!_.C(X,ySp)};
_.J.hasGameBoxArtAvatarStyle=function(){var A;return((A=this.data)==null?void 0:A.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.J.hasRoundedGameBoxArtAvatarStyle=function(){var A;return((A=this.data)==null?void 0:A.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.J.isShortsShelf=function(){var A,t,f,X=(f=_.C((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t[0],_.aX))==null?void 0:f.content;return!!_.C(X,_.U_)||!!_.C(X,X4T)};
_.J.isPostShelfRenderer=function(){var A,t,f,X=(f=_.C((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t[0],_.aX))==null?void 0:f.content;return!(!_.C(X,kEf)&&!_.C(X,r9l))};
_.J.isLumiereShelf=function(){var A,t,f=_.C((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t[0],_.aX);return!!_.C(f==null?void 0:f.content,eAT)};
_.J.isLumiereShelfWithPosters=function(){var A,t,f=_.C((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t[0],_.aX),X;return((X=_.C(f==null?void 0:f.content,eAT))==null?void 0:X.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.isExpandOnHoverCardShelf=function(){var A,t,f,X=(f=_.C((A=this.data)==null?void 0:(t=A.contents)==null?void 0:t[0],_.aX))==null?void 0:f.content;return!!_.C(X,U$i)};
_.J.computeHasFeaturedBadge=function(){var A,t,f=_.C((A=this.data)==null?void 0:(t=A.badges)==null?void 0:t[0],_.y2k);return f?f.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHasPaygatedFeaturedBadge=function(){var A,t,f=_.C((A=this.data)==null?void 0:(t=A.badges)==null?void 0:t[0],_.y2k);return f?(f==null?void 0:f.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHeaderHidden=function(){var A,t,f,X,Q,q;return!((A=this.data)==null?0:A.icon)&&!((t=this.data)==null?0:t.title)&&!((f=this.data)==null?0:f.subtitle)&&!((X=this.data)==null?0:X.thumbnail)&&!((Q=this.data)==null?0:Q.badges)&&!((q=this.data)==null?0:q.menu)};
_.J.showCtaButton=function(){var A;return!((A=this.data)==null||!A.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.J.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.J.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.J.computeForce16By9ThumbnailAspectRatio=function(){var A,t;return((A=this.data)==null?void 0:(t=A.responsiveContainerConfiguration)==null?void 0:t.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.J.onSectionReactiveDismissal=function(A,t,f){var X,Q;var q=(X=this.data)==null?void 0:(Q=X.targetingContext)==null?void 0:Q.targetGroupId;this&&q&&t.targetGroupId&&q.includes(t.targetGroupId)?(X=this.rowIndex,A=X===void 0?!1:!(t.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&X<=A)):A=!1;A&&(this.hidden=f)};
_.PV.Object.defineProperties(Ns.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var A=this.elementsPerRow;this.isPostShelfRenderer()?A=this.postsPerRow:this.isSlimMediaShelfRenderer()?A=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?A=this.slimItemsPerRow-1:this.isGameCardShelf()?A=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(A=this.miniGameCardsPerRow);return A}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var A,t;return!((A=this.data)==null||!A.previousButton)&&!((t=this.data)==null||!t.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 A;return((A=_.Px().resolve(_.HO).getCurrentPage())==null?void 0:A.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X;return!((A=this.data)==null?0:(t=A.thumbnail)==null?0:(f=t.accessibility)==null?0:(X=f.accessibilityData)==null?0:X.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Ns.prototype.onChildElementFocus=Ns.prototype.onChildElementFocus;Ns.prototype.handleRerenderDownloadsData=Ns.prototype.handleRerenderDownloadsData;Ns.prototype.onDataChange=Ns.prototype.onDataChange;Ns.prototype.isCollapsedChanged=Ns.prototype.isCollapsedChanged;Ns.prototype.isExpandedChanged=Ns.prototype.isExpandedChanged;Ns.prototype.onRowIndexChange=Ns.prototype.onRowIndexChange;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ns.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],Ns.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Ns.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Ns.prototype,"ytdReduxBehavior",void 0);
_.V([_.n({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.H("design:type",Object)],Ns.prototype,"useResponsiveGrid",void 0);_.V([_.n(),_.H("design:type",Object)],Ns.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],Ns.prototype,"standardUnitMinWidth",void 0);_.V([_.n({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],Ns.prototype,"elementsPerRow",void 0);_.V([_.n({value:3}),_.H("design:type",Number)],Ns.prototype,"postsPerRow",void 0);
_.V([_.n({value:6}),_.H("design:type",Number)],Ns.prototype,"slimItemsPerRow",void 0);_.V([_.n({value:6}),_.H("design:type",Number)],Ns.prototype,"gameCardsPerRow",void 0);_.V([_.n({value:6}),_.H("design:type",Number)],Ns.prototype,"miniGameCardsPerRow",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ns.prototype,"hidden",void 0);_.V([_.n(),_.H("design:type",Object)],Ns.prototype,"isShowMoreHidden",void 0);
_.V([_.n(),_.H("design:type",Object)],Ns.prototype,"isShowLessHidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ns.prototype,"hasExpansionButton",void 0);_.V([_.y("data.isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ns.prototype,"isExpanded",null);_.V([_.y("data.isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ns.prototype,"isCollapsed",null);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ns.prototype,"isInnerShelf",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.H("design:type",Boolean)],Ns.prototype,"isShorts",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.H("design:type",Boolean)],Ns.prototype,"isLumiere",void 0);_.V([_.n({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.H("design:type",Boolean)],Ns.prototype,"hasBoxArtThumbnailStyle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.H("design:type",Boolean)],Ns.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.H("design:type",Boolean)],Ns.prototype,"hasFeaturedBadge",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.H("design:type",Boolean)],Ns.prototype,"hasPaygatedFeaturedBadge",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.H("design:type",Boolean)],Ns.prototype,"isHeaderHidden",void 0);_.V([_.n({selector:_.Y$0}),_.H("design:type",Object)],Ns.prototype,"allVideosCount",void 0);_.V([_.n({selector:P9T}),_.H("design:type",Object)],Ns.prototype,"allPlaylistCount",void 0);_.V([_.n({selector:gaq}),_.H("design:type",Object)],Ns.prototype,"haveSmartDownloadsCompleted",void 0);
_.V([_.n({selectorArgs:["entitySelectorType"],selector:function(A,t){if(_.M("kevlar_modern_downloads_page")&&t&&t!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var f=A.entities;switch(t){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":t=_.CZ(f);A=Gq(t);var X=_.T$(t);f=_.RC(f);f=_.w0(J6s(X,f,t.length));return{contents:A,subtitle:f};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return f=_.CZ(f),{contents:Gq(f)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return f=
_.hR(f),{contents:Gq(f)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return f=_.Txg(f),{contents:Gq(f)};default:_.K4(new _.xj("Error: entitySelectorType defined but not matched in selector.",A,t))}}}}),
_.H("design:type",Object)],Ns.prototype,"entityDrivenRichShelfData",void 0);_.V([_.n({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.H("design:type",Boolean)],Ns.prototype,"hasTopCtaButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.H("design:type",Boolean)],Ns.prototype,"hasBottomCtaButton",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.H("design:type",Boolean)],Ns.prototype,"force16By9ThumbnailAspectRatio",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ns.prototype,"restrictContentsOverflow",void 0);_.V([_.n({selector:_.DXq}),_.H("design:type",Boolean)],Ns.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.n({computed:"computeSizing(data)"}),_.H("design:type",String)],Ns.prototype,"sizing",void 0);
_.V([_.n(),_.H("design:type",Boolean)],Ns.prototype,"typographyBump",void 0);_.V([_.n(),_.H("design:type",Number)],Ns.prototype,"itemWidth",void 0);_.V([_.n(),_.H("design:type",Object)],Ns.prototype,"firstShownIndex",void 0);_.V([_.n(),_.H("design:type",Object)],Ns.prototype,"horizontalOffset",void 0);_.V([_.n(),_.H("design:type",Object)],Ns.prototype,"atEnd",void 0);_.V([_.lo("#contents"),_.H("design:type",HTMLElement)],Ns.prototype,"contents",void 0);
_.V([_.ev("data.rowIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ns.prototype,"onRowIndexChange",null);_.V([_.ev("isExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ns.prototype,"isExpandedChanged",null);_.V([_.ev("isCollapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ns.prototype,"isCollapsedChanged",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ns.prototype,"onDataChange",null);_.V([_.ev("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ns.prototype,"handleRerenderDownloadsData",null);_.V([_.UQ("focusin"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Ns.prototype,"onChildElementFocus",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data","isHomePage"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ns.prototype,"isTruncated",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ns.prototype,"showBottomDivider",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ns.prototype,"hasChevronButtons",null);
_.V([_.y("firstShownIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ns.prototype,"previousButtonOverride",null);_.V([_.y("atEnd"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ns.prototype,"nextButtonOverride",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ns.prototype,"isHomePage",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ns.prototype,"thumbnailAriaHidden",null);
_.V([_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],Ns.prototype,"entitySelectorType",null);_.V([_.y_({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Ns);
_.Nqp=_.wR()(Ns,"ytd-rich-shelf-renderer",function(){if(l$i===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);l$i=A}A=l$i;return A},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var uTf;_.Hn(_.Cj,"yt-badge-view-model",{props:{data:_.PS,class:_.PS,workaroundShortsIsThumbnailBadge:_.PS,modern:_.PS,numBadgesInRow:_.PS,clipTextOverflow:_.PS}});_.Hn(Ihl,"yt-slimline-survey-view-model",{props:{data:_.PS}});var uN=function(){var A=_.F.apply(this,arguments)||this;A.tileLottieAnimationRef={};A.backgroundLottieAnimationRef={};A.isOnHoverBehaviorForLottieEnabled=!0;A.useBiggerShowcaseImage=_.M("enable_desktop_search_bigger_thumbs");A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return A};
_.R(uN,_.F);_.J=uN.prototype;_.J.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.J.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},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.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"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"}}}};
_.J.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var A=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);A!==this.hasTile&&this.set("hasTile",A);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.J.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.J.currentColorChanged=function(){this.updateButtonPalette()};
_.J.computeBackgroundStyle=function(A){if(A&&this.data){var t=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var f=_.KI((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);f&&t.push('background-image: url("'+f+'");')}var X;((X=A.basicColorData)==null?void 0:X.backgroundColor)!==void 0&&t.push("background-color: "+_.bY(A.basicColorData.backgroundColor)+";");return t.join("")}};
_.J.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A)};
_.J.getCurrentLogo=function(A,t){if(A)return t?A.darkLogoImage:A.lightLogoImage};
_.J.getCurrentStaticTileImage=function(A,t){if(this.hasStaticTile(A))return A.darkTileImage?t?A.darkTileImage:A.tileImage:A.tileImage};
_.J.computeTitleStyle=function(A){if(this.data&&this.data.title&&A&&A.basicColorData&&A.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.mt(A.basicColorData.foregroundTitleColor)+";"};
_.J.computeSubtitleStyle=function(A){if(this.data&&this.data.subtitle&&A&&A.basicColorData&&A.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.mt(A.basicColorData.foregroundBodyColor)+";"};
_.J.computeSupplementalStyle=function(A){if(this.data&&this.data.supplementalText&&A&&A.supplementalTextColor!==void 0)return A=_.mt(A.supplementalTextColor),"color:"+A+";--yt-endpoint-color:"+A+";--yt-endpoint-hover-color:"+A+";--yt-endpoint-visited-color:"+A+";--yt-formatted-string-bold-font-weight:700;"};
_.J.computeDismissIconStyle=function(A){var t,f;if((A==null?0:(t=A.dismissButtonColorData)==null?0:t.foregroundTitleColor)&&(A==null?0:(f=A.dismissButtonColorData)==null?0:f.backgroundColor))return"--yt-button-color:"+_.bY(A.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.bY(A.dismissButtonColorData.backgroundColor)+";"};
_.J.computeOverflowIconStyle=function(A){var t,f;if((A==null?0:(t=A.dismissButtonColorData)==null?0:t.foregroundTitleColor)&&(A==null?0:(f=A.dismissButtonColorData)==null?0:f.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.bY(A.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.bY(A.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.bY(A.dismissButtonColorData.foregroundTitleColor)+";"};
_.J.computeBannerStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.J.computeLocation=function(A){switch(A==null?void 0:A.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.J.shouldShowTileSection=function(A,t,f){return!this.shouldExpandLogo(A,t,f)&&t};
_.J.shouldShowExpandedLogoSection=function(A,t,f){return this.shouldExpandLogo(A,t,f)&&A!==void 0&&this.hasLogo(A)};
_.J.shouldExpandLogo=function(A,t,f){return A&&t?!1:f>=2};
_.J.hasStaticTile=function(A){return!(A==null||!A.tileImage)};
_.J.hasTileLottie=function(A){var t;return!!(A==null?0:(t=A.tileLottie)==null?0:t.url)};
_.J.hasLogo=function(A){return this.getCurrentLogo(A,this.isDarkTheme)!==void 0};
_.J.getLogoHeight=function(A){return this.logoWithPadding(A)?"26":"20"};
_.J.getExpandedLogoHeight=function(A){return this.logoWithPadding(A)?"31":"24"};
_.J.getLogoImageId=function(A){return this.logoWithPadding(A)?"logo-image-with-padding":"logo-image"};
_.J.getMaxTitleFontSize=function(A){return A.overrideTitleMaxFontSize?String(A.overrideTitleMaxFontSize):"36"};
_.J.hasBackgroundLottie=function(A){var t;return!!(A==null?0:(t=A.backgroundLottie)==null?0:t.url)};
_.J.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var A,t;(A=this.tileLottieAnimationRef)==null||(t=A.lottieEl)==null||t.play();var f,X;(f=this.backgroundLottieAnimationRef)==null||(X=f.lottieEl)==null||X.play()}};
_.J.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var A,t;(A=this.tileLottieAnimationRef)==null||(t=A.lottieEl)==null||t.pause();var f,X;(f=this.backgroundLottieAnimationRef)==null||(X=f.lottieEl)==null||X.pause()}};
_.J.pauseLottie=function(){var A,t;(A=this.tileLottieAnimationRef)==null||(t=A.lottieEl)==null||t.pause();var f,X;(f=this.backgroundLottieAnimationRef)==null||(X=f.lottieEl)==null||X.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.J.performPrimaryButtonAction=function(){var A,t,f;((A=this.data)==null?0:(t=A.primaryButton)==null?0:(f=t.buttonRenderer)==null?0:f.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.J.requestElementsPerRow=function(){_.s9(this.hostElement,"yt-request-elements-per-row")};
_.J.updateButtonPalette=function(){if(this.data&&this.currentColorData){var A;((A=this.data.dismissButton)==null?0:A.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 t;if((t=this.data.primaryButton)==null?0:t.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 f;if((f=this.data.secondaryButton)==
null?0:f.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 X;((X=this.data.primaryButton)==null?0:X.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Q;((Q=this.data.primaryButton)==null?0:Q.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var q;((q=this.data.secondaryButton)==null?0:q.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var e;((e=this.data.primaryButton)==null?0:e.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.J.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var A=this.getTileLottieDataBasedOnTheme(),t,f;if(A.url!==((t=this.tileLottiePlayerProps)==null?void 0:(f=t.animationConfig)==null?void 0:f.path)){var X,Q;(X=this.tileLottieAnimationRef)==null||(Q=X.lottieEl)==null||Q.destroy();var q;this.isOnHoverBehaviorForLottieEnabled=!((q=A.settings)==null?0:q.autoplay);var e,G;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(G=(e=A.settings)==null?void 0:e.autoplay)!=null?G:!1,loop:this.getLottieLoopValue(A.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof A.url==="string"?this.tileLottiePlayerProps.animationConfig.path=A.url:this.tileLottiePlayerProps.animationConfig.animationData=A.url}}};
_.J.getOverflowButton=function(A){return _.C(A.overflowButton,ezT)};
_.J.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var A=this.getBackgroundLottieDataBasedOnTheme(),t,f;if(A.url!==((t=this.backgroundLottiePlayerProps)==null?void 0:(f=t.animationConfig)==null?void 0:f.path)){var X,Q;(X=this.backgroundLottieAnimationRef)==null||(Q=X.lottieEl)==null||Q.destroy();var q;this.isOnHoverBehaviorForLottieEnabled=!((q=A.settings)==null?0:q.autoplay);var e,G;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(G=(e=A.settings)==null?void 0:e.autoplay)!=null?G:!1,loop:this.getLottieLoopValue(A.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof A.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=A.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
A.url}}};
_.J.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var A;((A=this.tileLottieAnimationRef)==null?void 0:A.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var t;((t=this.backgroundLottieAnimationRef)==null?void 0:t.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.J.getTileLottieDataBasedOnTheme=function(){var A;if(this.isDarkTheme&&((A=this.data)==null?0:A.darkThemeTileLottie))return this.data.darkThemeTileLottie;var t;return((t=this.data)==null?0:t.tileLottie)?this.data.tileLottie:{}};
_.J.getBackgroundLottieDataBasedOnTheme=function(){var A;if(this.isDarkTheme&&((A=this.data)==null?0:A.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var t;return((t=this.data)==null?0:t.backgroundLottie)?this.data.backgroundLottie:{}};
_.J.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
_.J.getLottieLoopValue=function(A){return A?A.loop!==void 0?A.loop:A.loopCount?A.loopCount-1:!0:!0};
_.J.logoWithPadding=function(A){var t,f,X;return(A=(t=this.getCurrentLogo(A,this.isDarkTheme))==null?void 0:(f=t.thumbnails)==null?void 0:(X=f[0])==null?void 0:X.height)&&A%31===0?!0:!1};
uN.prototype.currentColorChanged=uN.prototype.currentColorChanged;uN.prototype.themeChanged=uN.prototype.themeChanged;uN.prototype.dataChanged=uN.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],uN.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],uN.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],uN.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],uN.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],uN.prototype,"primaryButton",void 0);_.V([_.n(),_.H("design:type",Object)],uN.prototype,"secondaryButton",void 0);
_.V([_.n({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],uN.prototype,"elementsPerRow",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],uN.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],uN.prototype,"hasTile",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],uN.prototype,"hasMetadata",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],uN.prototype,"showLogoImage",void 0);_.V([_.n(),_.H("design:type",Object)],uN.prototype,"currentColorData",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.H("design:type",String)],uN.prototype,"bannerStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.H("design:type",String)],uN.prototype,"location",void 0);
_.V([_.n(),_.H("design:type",Object)],uN.prototype,"tileLottiePlayerProps",void 0);_.V([_.n(),_.H("design:type",Object)],uN.prototype,"tileLottieAnimationRef",void 0);_.V([_.n(),_.H("design:type",Object)],uN.prototype,"backgroundLottiePlayerProps",void 0);_.V([_.n(),_.H("design:type",Object)],uN.prototype,"backgroundLottieAnimationRef",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],uN.prototype,"useBiggerShowcaseImage",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],uN.prototype,"isHideEnclosingAction",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uN.prototype,"dataChanged",null);_.V([_.PU("isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uN.prototype,"themeChanged",null);
_.V([_.PU("currentColorData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uN.prototype,"currentColorChanged",null);_.V([_.y_({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],uN);
_.Y(uN,"ytd-statement-banner-renderer",function(){if(uTf!==void 0)return uTf;var A=document.createElement("template");_.m(A,'\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="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="[[getMaxTitleFontSize(data)]]" 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="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return uTf=A},{mode:1});var zR8;var z9=function(){var A=_.F.apply(this,arguments)||this;A.isSearch=!1;A.hideShelfHeader=!1;A.engagementPanel=!1;A.disableMouseScroll=!0;A.useFloorScrolling=!0;return A};
_.R(z9,_.F);z9.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.e5("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.e5("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
z9.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
z9.prototype.onDataChanged=z9.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],z9.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],z9.prototype,"hideShelfHeader",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],z9.prototype,"engagementPanel",void 0);_.V([_.n(),_.H("design:type",Object)],z9.prototype,"disableMouseScroll",void 0);_.V([_.n(),_.H("design:type",Object)],z9.prototype,"useFloorScrolling",void 0);_.V([_.n(),_.H("design:type",Object)],z9.prototype,"data",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],z9.prototype,"onDataChanged",null);
_.V([_.y_({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],z9);
_.Y(z9,"ytd-reel-shelf-renderer",function(){if(zR8!==void 0)return zR8;var A=document.createElement("template");_.m(A,'\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="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-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-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return zR8=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var Ptl;var TqT;TqT=_.dS(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.iqS=_.OP(TqT);var OqK=_.I(function(A){var t=A.data;A=A.useSmallFont;var f={},X={};return _.u("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.u(_.P,{cond:function(){return t().favicon},
then:function(Q){return _.u(_.YA,{data:Q,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.u("div",{class:"ytChannelExternalLinkViewModelContainer"},_.u(_.zL,{text:function(){return t().title},
className:_.Ao("ytChannelExternalLinkViewModelTitle",(f.ytChannelExternalLinkViewModelTitleSmallFont=A,f)),ellipsisTruncate:!0,userInput:!0}),_.u(_.zL,{text:function(){return t().link},
className:_.Ao("ytChannelExternalLinkViewModelLink",(X.ytChannelExternalLinkViewModelLinkSmallFont=A,X)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ad");
OqK.idomCompat=!0;_.Hn(OqK,"yt-channel-external-link-view-model",{props:{data:_.PS,useSmallFont:_.PS}});_.C1("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Py=function(){var A=_.F.apply(this,arguments)||this;A.revealButtonClass="button";A.businessEmailDisplayState="HIDE_SECTION";return A};
_.R(Py,_.F);_.J=Py.prototype;_.J.refit=function(){var A=this;_.FD(function(){_.r2(A.hostElement,"yt-refit-popups-action")});
_.us(this,function(){_.r2(A.hostElement,"yt-refit-popups-action")})};
_.J.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.DT(_.iqS),this.businessEmailDisplayState="CAPTCHA")};
_.J.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"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.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"}}}};
_.J.computeEmailHref=function(A){return"mailto:"+A};
_.J.computeSafeUrl=function(A){if(A)return _.of(A)};
_.J.linkEndpoint=function(A){return _.C(A.onTap,_.mG)};
_.J.linkEndpointToHref=function(A){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(A))};
_.J.onYtServiceRequestCompleted=function(A){var t;if((t=A.detail.data)==null?0:t.businessEmail)this.businessEmail=A.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var f;if((f=A.detail.data)==null?0:f.errorMessage)this.businessEmailErrorMessage=A.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var A=this.JSC$16505_captchaTextarea.value;if(A){A={recaptcha_response_token:A,channel_id:this.metadata.channelId};var t=_.C(this.metadata.onBusinessEmailRevealClickCommand,_.mG);t&&this.ytComponentBehavior.resolveCommand(t,{form:A})}}};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.PV.Object.defineProperties(Py.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var A;return _.C((A=this.data)==null?void 0:A.metadata,uXk)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.C(this.metadata.businessEmailRevealButton,_.zf)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var A=new URL(this.metadata.canonicalChannelUrl);return A.host+A.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 _.C(this.metadata.learnMoreOnTap,_.mG)}}});
Py.prototype.onYtServiceRequestCompleted=Py.prototype.onYtServiceRequestCompleted;Py.prototype.businessEmailMetadataChanged=Py.prototype.businessEmailMetadataChanged;Py.prototype.refit=Py.prototype.refit;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Py.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);_.V([_.lo("#g-recaptcha-response"),_.H("design:type",HTMLTextAreaElement)],Py.prototype,"JSC$16505_captchaTextarea",void 0);_.V([_.n(),_.H("design:type",Object)],Py.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Py.prototype,"revealButtonClass",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Py.prototype,"metadata",null);
_.V([_.y("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],Py.prototype,"revealButton",null);_.V([_.y("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],Py.prototype,"channelDisplayUrl",null);_.V([_.PU("metadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Py.prototype,"refit",null);_.V([_.y("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],Py.prototype,"formattedDescription",null);
_.V([_.y("metadata","learnMoreCommand"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Py.prototype,"shouldRendereVerifiedPhoneStatus",null);_.V([_.y("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],Py.prototype,"learnMoreCommand",null);_.V([_.n(),_.H("design:type",String)],Py.prototype,"businessEmailDisplayState",void 0);_.V([_.n(),_.H("design:type",String)],Py.prototype,"businessEmail",void 0);
_.V([_.n(),_.H("design:type",String)],Py.prototype,"businessEmailErrorMessage",void 0);_.V([_.PU("metadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Py.prototype,"businessEmailMetadataChanged",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Py.prototype,"onYtServiceRequestCompleted",null);
_.V([_.y_({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Py);
_.Y(Py,"ytd-about-channel-renderer",function(){if(Ptl!==void 0)return Ptl;var A=document.createElement("template");_.m(A,'\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" aria-label$="[[metadata.learnMoreA11yLabel]]">\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Ptl=A},{mode:1});var cdK;var T9=function(){return _.F.apply(this,arguments)||this};
_.R(T9,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],T9.prototype,"data",void 0);_.V([_.y_({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],T9);
_.Y(T9,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(cdK!==void 0)return cdK;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return cdK=A},{mode:1});var BqE;var iN=function(){return _.F.apply(this,arguments)||this};
_.R(iN,_.F);iN.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],iN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],iN.prototype,"aligment",void 0);_.V([_.y_({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],iN);
_.Y(iN,"ytd-channel-list-sub-menu-renderer",function(){if(BqE!==void 0)return BqE;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return BqE=
A},{mode:1});var MWT;var Ok=function(){return _.F.apply(this,arguments)||this};
_.R(Ok,_.F);Ok.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}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ok.prototype,"data",void 0);_.V([_.y_({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Ok);
_.Y(Ok,"ytd-channel-sub-menu-renderer",function(){if(MWT!==void 0)return MWT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return MWT=A},{mode:1});var CtC;var hRC;var cy=function(){var A=_.F.apply(this,arguments)||this;A.isCompact=!1;return A};
_.R(cy,_.F);_.PV.Object.defineProperties(cy.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var A,t;return((t=_.C((A=this.data)==null?void 0:A.endpoint,_.fV))==null?void 0:t.target)==="TARGET_NEW_WINDOW"}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],cy.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cy.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],cy.prototype,"isCompact",void 0);_.V([_.y("isCompact"),_.H("design:type",Number),_.H("design:paramtypes",[])],cy.prototype,"thumbnailWidth",null);
_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],cy.prototype,"openNewWindow",null);_.V([_.y_({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],cy);
_.Y(cy,"ytd-media-lockup-renderer",function(){if(hRC!==void 0)return hRC;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return hRC=A},{mode:1});var RRE;var By=function(){return _.F.apply(this,arguments)||this};
_.R(By,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],By.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],By.prototype,"data",void 0);_.V([_.y_({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],By);
_.Y(By,"ytd-structured-description-channel-lockup-renderer",function(){if(RRE!==void 0)return RRE;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return RRE=A},{mode:1});var mfl;var Ms=function(){var A=_.F.apply(this,arguments)||this;A.isCompact=!1;A.collectionsStackColor=_.M("modernize_structured_description_playlist_lockups_v2");return A};
_.R(Ms,_.F);Ms.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:_.M("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.PV.Object.defineProperties(Ms.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X,Q,q;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(A=this.data)==null?void 0:(t=A.thumbnail)==null?void 0:t.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(f=this.data)==null?void 0:(X=f.thumbnail)==null?void 0:X.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Q=this.data)==null?void 0:(q=Q.thumbnail)==null?
void 0:q.vibrantColorPalette:void 0}}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Ms.prototype,"componentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ms.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ms.prototype,"showSidePanelThumbnailOverlay",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ms.prototype,"isCompact",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ms.prototype,"collectionsStackColor",void 0);_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ms.prototype,"twoLineTitle",null);_.V([_.y("data","collectionsStackColor"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ms.prototype,"collectionStack",null);
_.V([_.y_({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Ms);
_.Y(Ms,"ytd-structured-description-playlist-lockup-renderer",function(){if(mfl!==void 0)return mfl;var A=document.createElement("template");_.m(A,'\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)]]" aria-label$="[[getSimpleString(data.title)]]">\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return mfl=A},{mode:1});var bqi;var C7=function(){return _.F.apply(this,arguments)||this};
_.R(C7,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],C7.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],C7.prototype,"data",void 0);_.V([_.y_({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],C7);
_.Y(C7,"ytd-structured-description-video-lockup-renderer",function(){if(bqi!==void 0)return bqi;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return bqi=A},{mode:2});var hn=function(){return _.F.apply(this,arguments)||this};
_.R(hn,_.F);
hn.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}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],hn.prototype,"data",void 0);_.V([_.y_({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],hn);
_.Y(hn,"ytd-compact-infocard-renderer",function(){if(CtC!==void 0)return CtC;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return CtC=A},{mode:1});var Wop;var RZ=function(){return _.F.apply(this,arguments)||this};
_.R(RZ,_.F);RZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.PV.Object.defineProperties(RZ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],RZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],RZ.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],RZ.prototype,"ytdReduxBehavior",void 0);_.V([_.n({selector:_.y6}),_.H("design:type",Object)],RZ.prototype,"isGridViewEnabled",void 0);
_.V([_.y("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],RZ.prototype,"watchFeedBigThumbs",null);_.V([_.y("isGridViewEnabled","data"),_.n({reflectToAttribute:!0,value:"168"}),_.H("design:type",String),_.H("design:paramtypes",[])],RZ.prototype,"thumbnailWidth",null);_.V([_.y("isGridViewEnabled","data"),_.n({reflectToAttribute:!0,value:"94"}),_.H("design:type",String),_.H("design:paramtypes",[])],RZ.prototype,"customThumbnailSize",null);
_.V([_.n(),_.H("design:type",Object)],RZ.prototype,"data",void 0);_.V([_.y_({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],RZ);
_.Y(RZ,"ytd-compact-playlist-renderer",function(){if(Wop!==void 0)return Wop;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Wop=A},{mode:1});var ydk;var mB=function(){var A=_.F.apply(this,arguments)||this;A.roundedContainer=!0;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return A};
_.R(mB,_.F);_.J=mB.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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"}}}};
_.J.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.J.computeViewStyle=function(A){return A.style?A.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.J.onUpdateElementsPerRowAction=function(A){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&A===1};
_.J.requestElementsPerRow=function(){_.s9(this.hostElement,"yt-request-elements-per-row")};
mB.prototype.dataChanged=mB.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],mB.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],mB.prototype,"actionHandlerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],mB.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],mB.prototype,"hideThumbnail",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.H("design:type",String)],mB.prototype,"viewStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],mB.prototype,"roundedContainer",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mB.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],mB);
_.Y(mB,"ytd-compact-promoted-item-renderer",function(){if(ydk!==void 0)return ydk;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ydk=A},{mode:1});var v0w;var bN=function(){return _.F.apply(this,arguments)||this};
_.R(bN,_.F);bN.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
bN.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
bN.prototype.onYtNavigate=function(A,t){var f=this;if(t.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",t)){var X=this.get("watchEndpoint.videoId",t.endpoint),Q=_.r2(this.hostElement,"yt-get-current-video-id-action")[0];_.M("kevlar_mix_handle_first_endpoint_different")&&X&&Q&&X!==Q||(A.stopPropagation(),_.ge().getPlayerPromise().then(function(q){if(q.getPlayerState()===0&&f.data.secondaryNavigationEndpoint)var e=f.data.secondaryNavigationEndpoint;else{e=
Object.assign({},t.endpoint);var G=_.C(e.commandMetadata,_.Jl);G&&(q=Math.floor(q.getCurrentTime()),G.url=_.U0(G.url,{t:q}),!_.M("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(G=_.C(e,_.ZT)))&&(G.startTimeSeconds=q)}_.s9(f.hostElement,"yt-navigate",{endpoint:e})}))}};
_.PV.Object.defineProperties(bN.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X,Q,q;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(t=A.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(f=this.data)==null?void 0:(X=f.thumbnail)==null?void 0:X.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(q=Q.thumbnail)==null?void 0:q.darkColorPalette,experimentEnabled:!0}}}});
bN.prototype.onYtNavigate=bN.prototype.onYtNavigate;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.xa.YtEndpointBehavior),_.H("design:type",Object)],bN.prototype,"ytEndpointBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],bN.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.b(_.P7),_.H("design:type",Object)],bN.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],bN.prototype,"ytdReduxBehavior",void 0);_.V([_.n({selector:_.y6}),_.H("design:type",Object)],bN.prototype,"isGridViewEnabled",void 0);_.V([_.y("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bN.prototype,"watchFeedBigThumbs",null);
_.V([_.y("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],bN.prototype,"thumbnailWidth",null);_.V([_.n(),_.H("design:type",Object)],bN.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bN.prototype,"collectionStack",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],bN.prototype,"onYtNavigate",null);
_.V([_.y_({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],bN);
_.Y(bN,"ytd-compact-radio-renderer",function(){if(v0w!==void 0)return v0w;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return v0w=A},{mode:1});var Lol;var Wy=function(){return _.F.apply(this,arguments)||this};
_.R(Wy,_.F);Wy.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Wy.prototype.computeRendererStyle=function(A){return A.style?A.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.V([_.n(),_.H("design:type",Object)],Wy.prototype,"data",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Wy.prototype,"rendererBehavior",void 0);_.V([_.n({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],Wy.prototype,"rendererStyle",void 0);_.V([_.y_({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Wy);
_.Y(Wy,"ytd-compact-text-promo-renderer",function(){if(Lol!==void 0)return Lol;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Lol=A},{mode:1});var pqS;var yB=function(){var A=_.F.apply(this,arguments)||this;A.isShortsStyle=!1;return A};
_.R(yB,_.F);_.J=yB.prototype;_.J.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"}}}};
_.J.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.s9(this.hostElement,"yt-disable-lockup-interaction"):_.s9(this.hostElement,"yt-enable-lockup-interaction"))};
_.J.isMetaBlockEmpty=function(A){return!A||!A.longBylineText&&!A.shortBylineText&&!A.shortViewCountText&&!A.viewCountText};
_.J.computeHasOneLineTitle=function(A){return this.forceOneLineTitle||!(A==null||!A.buttons)};
_.J.computeDisableInteraction=function(){var A;return!((A=this.data)==null?0:A.navigationEndpoint)};
_.J.hasSingularTopStandaloneBadge=function(){var A;return!((A=this.data)==null||!A.topStandaloneBadge)};
_.PV.Object.defineProperties(yB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("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 A;return this.hasSingularTopStandaloneBadge()?[(A=this.data)==null?void 0:A.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var A;return this.shouldShowTopBadges?((A=this.data)==null?void 0:A.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
yB.prototype.disableInteractionChanged=yB.prototype.disableInteractionChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],yB.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],yB.prototype,"ytdLockupBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],yB.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.H("design:type",Boolean)],yB.prototype,"metaBlockEmpty",void 0);_.V([_.n({selector:_.y6}),_.H("design:type",Object)],yB.prototype,"isGridViewEnabled",void 0);_.V([_.y("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yB.prototype,"watchFeedBigThumbs",null);
_.V([_.y("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],yB.prototype,"thumbnailWidth",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yB.prototype,"isShortsStyle",void 0);_.V([_.n(),_.H("design:type",Object)],yB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.H("design:type",Boolean)],yB.prototype,"hasOneLineTitle",void 0);
_.V([_.n(),_.H("design:type",Boolean)],yB.prototype,"hideThumbnail",void 0);_.V([_.n(),_.H("design:type",Boolean)],yB.prototype,"forceOneLineTitle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.H("design:type",Boolean)],yB.prototype,"disableInteraction",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],yB.prototype,"musicMetadataVideoLockup",void 0);
_.V([_.ev("disableInteraction"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yB.prototype,"disableInteractionChanged",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yB.prototype,"shouldShowTopBadges",null);_.V([_.y("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],yB.prototype,"topBadges",null);
_.V([_.y("shouldShowTopBadges","data"),_.H("design:type",Array),_.H("design:paramtypes",[])],yB.prototype,"inlineMetadataBadges",null);_.V([_.y("shouldShowTopBadges"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yB.prototype,"shouldShowBadgesBelowMetadata",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],yB.prototype,"compactTitleClass",null);_.V([_.y_({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],yB);
_.Y(yB,"ytd-compact-video-renderer",function(){if(pqS!==void 0)return pqS;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return pqS=A},{mode:_.sQ("kevlar_poly_si_batch_j067")?1:2});var E0p;_.C1("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var vy=function(){return _.F.apply(this,arguments)||this};
_.R(vy,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],vy.prototype,"data",void 0);_.V([_.y_({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],vy);
_.Y(vy,"ytd-counterfactual-renderer",function(){if(E0p!==void 0)return E0p;var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return E0p=A},{mode:1});var n0K;var L7=function(){var A=_.F.apply(this,arguments)||this;A.hidden=!1;return A};
_.R(L7,_.F);L7.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.Px().resolve(_.i2).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
L7.prototype.computeHidden=function(A){return!!A};
_.PV.Object.defineProperties(L7.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}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],L7.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.H("design:type",Object)],L7.prototype,"hidden",void 0);_.V([_.y("data.label"),_.H("design:type",String),_.H("design:paramtypes",[])],L7.prototype,"label",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],L7.prototype,"value",null);
_.V([_.y_({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],L7);
_.Y(L7,"ytd-dropdown-item-renderer",function(){if(n0K!==void 0)return n0K;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return n0K=A},{mode:1});var Dfl;var FoK;var p7=function(){return _.F.apply(this,arguments)||this};
_.R(p7,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],p7.prototype,"data",void 0);_.V([_.n({computed:"getSimpleString(data.label)"}),_.H("design:type",String)],p7.prototype,"label",void 0);_.V([_.y_({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],p7);
_.Y(p7,"ytd-navigation-dropdown-item-renderer",function(){if(FoK!==void 0)return FoK;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return FoK=A},{mode:1});var Ek=function(){var A=_.F.apply(this,arguments)||this;A.disabled=!1;A.value="";A.noLabelFloat=!1;A.noUnderline=!1;A.usePrimaryColor=!1;A.hasBackground=!1;A.verticalAlign="top";A.autosize=!1;A.minAutosizeWidth=100;A.autosizeFont="14px Roboto";return A};
_.R(Ek,_.F);_.J=Ek.prototype;_.J.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"}}}};
_.J.open=function(){this.inputEl.open()};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.J.dataChanged=function(){this.reset()};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("value-changed",this.value))};
_.J.stopPropagation=function(A){A.stopPropagation()};
_.J.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var A=this.canvas.getContext("2d");A&&(A.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(A.measureText(this.inputEl.value).width)+24)+"px")}};
_.J.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var A=0,t=this.data.entries.length;A<t;A++){var f=this.data.entries[A],X;for(X in f)if(f.hasOwnProperty(X)){var Q=f[X];if("isSelected"in Q&&Q.isSelected)return"stringValue"in Q?Q.stringValue||"":"int32Value"in Q?Q.int32Value||0:0}}return null};
_.J.updateValueFromBinding=function(A){this.value=A.detail.value};
_.PV.Object.defineProperties(Ek.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 A=0,t=this.data.entries.length;A<t;A++){var f=this.data.entries[A],X;for(X in f)if(f.hasOwnProperty(X)){var Q=f[X];if("isSelected"in Q&&Q.isSelected&&"label"in Q)return this.ytRendererBehavior.getSimpleString(Q.label)}}return null}}});
Ek.prototype.autoSizeLabel=Ek.prototype.autoSizeLabel;Ek.prototype.stopPropagation=Ek.prototype.stopPropagation;Ek.prototype.valueChangedForBinding=Ek.prototype.valueChangedForBinding;Ek.prototype.dataChanged=Ek.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ek.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Ek.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ek.prototype,"disabled",void 0);_.V([_.n(),_.H("design:type",Object)],Ek.prototype,"value",void 0);_.V([_.n(),_.H("design:type",Object)],Ek.prototype,"noLabelFloat",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ek.prototype,"noUnderline",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Ek.prototype,"theme",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ek.prototype,"usePrimaryColor",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ek.prototype,"hasBackground",void 0);_.V([_.n(),_.H("design:type",Object)],Ek.prototype,"verticalAlign",void 0);_.V([_.n(),_.H("design:type",Object)],Ek.prototype,"autosize",void 0);_.V([_.n(),_.H("design:type",Object)],Ek.prototype,"minAutosizeWidth",void 0);_.V([_.n(),_.H("design:type",Object)],Ek.prototype,"autosizeFont",void 0);
_.V([_.lo("#entries"),_.H("design:type",Object)],Ek.prototype,"entries",void 0);_.V([_.lo("#input"),_.H("design:type",Object)],Ek.prototype,"inputEl",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ek.prototype,"dataChanged",null);_.V([_.PU("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ek.prototype,"valueChangedForBinding",null);
_.V([_.UQ("iron-overlay-opened"),_.UQ("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ek.prototype,"stopPropagation",null);_.V([_.UQ("iron-select"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ek.prototype,"autoSizeLabel",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ek.prototype,"label",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Ek);
_.Y(Ek,"ytd-dropdown-renderer",function(){if(Dfl!==void 0)return Dfl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Dfl=A},{mode:1});var I$T;var n7=function(){var A=_.F.apply(this,arguments)||this;A.isConstrainedList=!1;return A};
_.R(n7,_.F);n7.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"}}}};
n7.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
n7.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
n7.prototype.computeViewAllHidden=function(A,t){return A||!t.viewAllEndpoint};
n7.prototype.fillRestIfNoShowMore=n7.prototype.fillRestIfNoShowMore;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.bC.YtLazyListBehavior),_.H("design:type",Object)],n7.prototype,"ytLazyListBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],n7.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],n7.prototype,"isConstrainedList",void 0);_.V([_.PU("data","canShowMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n7.prototype,"fillRestIfNoShowMore",null);_.V([_.y_({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],n7);
_.Y(n7,"ytd-expanded-shelf-contents-renderer",function(){if(I$T!==void 0)return I$T;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return I$T=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var xfl;var DZ=function(){return _.F.apply(this,arguments)||this};
_.R(DZ,_.F);DZ.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}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],DZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],DZ.prototype,"data",void 0);_.V([_.y_({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],DZ);
_.Y(DZ,"ytd-feed-channel-filter-header-renderer",function(){if(xfl!==void 0)return xfl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return xfl=A},{mode:1});var jsT;var YKC;var VWK;var Fs=function(){return _.F.apply(this,arguments)||this};
_.R(Fs,_.F);_.J=Fs.prototype;_.J.onClick=function(A){var t,f=(t=this.data)==null?void 0:t.sectionEndpoint;!_.Sl(_.Z2(A),this.hostElement,["A".toString()])&&f&&_.s9(this.hostElement,"yt-navigate",{endpoint:f})};
_.J.computeHasSectionEndpoint=function(A){return(A==null?void 0:A.sectionEndpoint)!==void 0};
_.J.computeShowHeaderAsLink=function(A){return(A==null?void 0:A.header)!==void 0&&(A==null?void 0:A.sectionEndpoint)!==void 0};
_.J.computeShowSubheaderAsLink=function(A){return(A==null?void 0:A.subheader)!==void 0&&(A==null?void 0:A.sectionEndpoint)!==void 0&&(A==null?void 0:A.header)===void 0};
_.J.getHeaderAsLinkClass=function(A){var t=[],f;(A==null?0:(f=A.headerIcon)==null?0:f.iconType)&&t.push("header-link-active");return t.join(" ")};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Fs.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Fs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Fs.prototype,"data",void 0);
_.V([_.n({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Fs.prototype,"hasSectionEndpoint",void 0);_.V([_.n({computed:"computeShowHeaderAsLink(data)"}),_.H("design:type",Boolean)],Fs.prototype,"showHeaderAsLink",void 0);_.V([_.n({computed:"computeShowSubheaderAsLink(data)"}),_.H("design:type",Boolean)],Fs.prototype,"showSubheaderAsLink",void 0);_.V([_.y_({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Fs);
_.Y(Fs,"ytd-medical-panel-section-renderer",function(){if(VWK!==void 0)return VWK;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return VWK=A},{mode:1});var IZ=function(){var A=_.F.apply(this,arguments)||this;A.isExpanded=!1;A.roundedContainer=!0;A.skipRoundingTop=!1;A.toggleExpandableSection=function(){A.isExpanded=!A.isExpanded};
return A};
_.R(IZ,_.F);
IZ.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]]"}}}}}};
IZ.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
IZ.prototype.dataChanged=IZ.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],IZ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],IZ.prototype,"isExpanded",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],IZ.prototype,"roundedContainer",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],IZ.prototype,"skipRoundingTop",void 0);_.V([_.n(),_.H("design:type",Object)],IZ.prototype,"toggleExpandableSection",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IZ.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],IZ);
_.Y(IZ,"ytd-medical-panel-content-renderer",function(){if(YKC!==void 0)return YKC;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return YKC=A},{mode:1});_.C1("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var x9=function(){var A=_.F.apply(this,arguments)||this;A.roundedContainer=!0;A.extractOverlay=!1;A.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");A.hasTitle=!1;A.linkIcon="OPEN_IN_NEW";A.isDismissed=!1;return A};
_.R(x9,_.F);x9.prototype.onOverlayConditionsChange=function(){var A=_.sF(this.hostElement).querySelector("ytd-info-panel-content-renderer");A&&(A.set("extractOverlay",this.extractOverlay),A.set("roundedContainer",this.roundedContainer))};
x9.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]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
x9.prototype.computeHasTitle=function(A){return!(A==null||!A.title)};
x9.prototype.onClick=function(A){var t,f=(t=this.data)==null?void 0:t.headerEndpoint;!_.Sl(_.Z2(A),this.hostElement,["BUTTON".toString()])&&f&&this.ytComponentBehavior.resolveCommand(f)};
_.PV.Object.defineProperties(x9.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 A;return((A=this.data)==null?void 0:A.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:A.disableBottomDivider)||!((t=this.data)==null?0:t.title)}}});
x9.prototype.onOverlayConditionsChange=x9.prototype.onOverlayConditionsChange;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],x9.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],x9.prototype,"ytdReduxBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],x9.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],x9.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],x9.prototype,"extractOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],x9.prototype,"amsterdamEnabled",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.H("design:type",Object)],x9.prototype,"hasTitle",void 0);
_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.y("data.background"),_.H("design:type",Object),_.H("design:paramtypes",[])],x9.prototype,"background",null);_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.y("data.titleStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],x9.prototype,"titleStyle",null);
_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.y("data.titleStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],x9.prototype,"showLinkIcon",null);_.V([_.n(),_.H("design:type",String)],x9.prototype,"linkIcon",void 0);_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],x9.prototype,"hideDivider",null);
_.V([_.n({selectorArgs:["data.dismissStateEntityKey"],selector:function(A,t){A=_.q_(A.entities,"dismissState",t);return(A==null?void 0:A.isDismissed)||(A==null?void 0:A.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(A==null?void 0:A.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.H("design:type",Object)],x9.prototype,"isDismissed",void 0);_.V([_.ev("roundedContainer","extractOverlay"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x9.prototype,"onOverlayConditionsChange",null);_.V([_.y_({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],x9);
_.Y(x9,"ytd-info-panel-container-renderer",function(){if(jsT!==void 0)return jsT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return jsT=A},{mode:1});var Zql;_.C1("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var jB=function(){return _.F.apply(this,arguments)||this};
_.R(jB,_.F);jB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
jB.prototype.computeStyle=function(A){return A?A:""};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],jB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.H("design:type",String)],jB.prototype,"titleStyle",void 0);
_.V([_.y_({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],jB);
_.wR()(jB,"ytd-item-section-header-renderer",function(){if(Zql===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);Zql=A}A=Zql;return A},{allowedProps:["data"],
mode:1});var o0f;var df8,SKp=function(){return df8!==void 0?df8:df8=document.createElement("template")};
document.head.appendChild(SKp().content);var $ff;_.Y9=new _.eh("VOTING_ANIMATION_CONTROLLER_TOKEN");var a$b=_.I(function(A){var t=A.data;var f=_.GU("div"),X=_.GU("div");A=_.U(_.hZ("VOTE_STATUS_NONE",void 0,"YPH5mf"));var Q=A.next().value,q=A.next().value,e=_.Nt(i5b,function(){var c;return(c=t())==null?void 0:c.entityKey}),G=_.M("web_enable_voting_animation")||_.M("enable_music_web_cairo_voting_animation");
_.oh(function(){var c;((c=t().initialState)==null?0:c.status)&&q(t().initialState.status)});
var N=function(){var c,B,h=(B=(c=t().initialState)==null?void 0:c.votes)!=null?B:0,W;c=(W=t().initialState)==null?void 0:W.status;return c==="VOTE_STATUS_UPVOTED"?h-1:c==="VOTE_STATUS_DOWNVOTED"?h+1:h},z=function(){return Q()==="VOTE_STATUS_UPVOTED"?N()+1:Q()==="VOTE_STATUS_DOWNVOTED"?N()-1:N()},T=function(c){var B=c?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
q(B);var h=z(),W=_.Px().resolve(_.z7(_.Y9)),L=e();L&&(c&&(L==null?0:L.upvoteDefaultButtonOnTap)?_.LI(L.upvoteDefaultButtonOnTap,{form:{element:f.value},disableClickTracking:!0}):(L==null?0:L.upvoteToggledButtonOnTap)&&_.LI(L.upvoteToggledButtonOnTap,{form:{element:f.value},disableClickTracking:!0}));var E;c=(E=L==null?void 0:L.enableOptimisticReordering)!=null?E:t().enableOptimisticReordering;G&&W&&t().itemId&&c&&Hqp(W,t().itemId,h,B)},O=function(c){var B=c?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
q(B);var h=z(),W=_.Px().resolve(_.z7(_.Y9)),L=e();L&&(c&&(L==null?0:L.downvoteDefaultButtonOnTap)?_.LI(L.downvoteDefaultButtonOnTap,{form:{element:X.value},disableClickTracking:!0}):(L==null?0:L.downvoteToggledButtonOnTap)&&_.LI(L.downvoteToggledButtonOnTap,{form:{element:X.value},disableClickTracking:!0}));var E;c=(E=L==null?void 0:L.enableOptimisticReordering)!=null?E:t().enableOptimisticReordering;G&&W&&t().itemId&&c&&Hqp(W,t().itemId,h,B)};
A={};A=_.Ao("ytVotingViewModelVoteCount",(A.ytVotingViewModelVoteCountDisabled=function(){return t().isDisabled},A));
return _.u("voting-view-model",{class:"ytVotingViewModelHost"},_.u("div",{el:f},_.u(_.P1,{data:function(){var c=_.C(t().upvoteButton,_.Tf);return{toggleButtonViewModel:Object.assign({},c,{isToggled:Q()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(c){return _.u(_.s$,{data:c.data,
onToggle:T})}})),_.u("div",{class:A},function(){var c,B,h;
return Q()==="VOTE_STATUS_UPVOTED"?(c=t().initialState)==null?void 0:c.compactVotesUpvoted:Q()==="VOTE_STATUS_DOWNVOTED"?(B=t().initialState)==null?void 0:B.compactVotesDownvoted:(h=t().initialState)==null?void 0:h.compactVotes}),_.u("div",{el:X},_.u(_.P1,{data:function(){var c=_.C(t().downvoteButton,_.Tf);
return{toggleButtonViewModel:Object.assign({},c,{isToggled:Q()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(c){return _.u(_.s$,{data:c.data,
onToggle:O})}})))},"bd");_.Hn(_.I(function(A){var t=A.data;return _.u("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.u("div",{class:_.Ao("ytEngagementBarViewModelEngagementBarWrapper",A.className)},_.u(_.P1,{data:function(){return t().actions}},{votingViewModel:a$b})))},"cd"),"engagement-bar-view-model",{props:{data:_.PS,
className:_.PS}});var VB=function(){var A=_.F.apply(this,arguments)||this;A.playlistVotingAnimationEnabled=_.M("web_enable_voting_animation");A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.downloadState="DOWNLOAD_STATE_UNKNOWN";A.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";A.offlineVideoPolicyExpirationTimestamp=0;return A};
_.R(VB,_.F);_.J=VB.prototype;_.J.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"}}}};
_.J.canReorderChanged=function(){this.persistentDragHandle=_.M("kevlar_playlist_drag_handles")&&this.canReorder};
_.J.onDrag=function(){if(this.thumbnail){var A=_.sF(this.thumbnail).querySelector("yt-image");A&&(A.shouldRenderLazy=!1)}};
_.J.onMenuOverlayChanged=function(A,t){this.menuOpened=t};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.J.onContentsTap=function(A){var t,f=(t=this.data)==null?void 0:t.serviceEndpoints;if(f&&f.length===1&&_.C(f[0],Oo0)&&!_.Sl(_.Z2(A),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(f[0]);else{var X;(t=(X=this.data)==null?void 0:X.navigationEndpoint)&&_.M("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Koi(_.Px().resolve(_.DS),t):(_.$z().playlistSuggestionsShelfActivation=
!0,_.g0p(_.Px().resolve(_.DS),t)):t&&!_.Sl(_.Z2(A),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.M("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.s9(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t))}};
_.J.computeStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(A){return A==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.J.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=Eol(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))}};
_.J.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.dataChanged=function(){if(this.data){var A,t,f,X=((A=this.downloadRenderData)==null?void 0:A.badges)&&((t=this.downloadRenderData)==null?void 0:t.badges)!==((f=this.data)==null?void 0:f.badges),Q,q,e;A=((Q=this.downloadRenderData)==null?void 0:Q.thumbnailOverlays)&&((q=this.downloadRenderData)==null?void 0:q.thumbnailOverlays)!==((e=this.data)==null?void 0:e.thumbnailOverlays);(!this.downloadRenderData||X||A)&&this.downloadStateChanged()}};
_.J.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var A,t,f=(A=this.data.menu)==null?void 0:(t=A.menuRenderer)==null?void 0:t.items;if(f)for(A=_.U(f),t=A.next();!t.done;t=A.next())if(t=t.value,f=void 0,_.C((f=t.menuServiceItemRenderer)==null?void 0:f.serviceEndpoint,_.qN)){var X=f=void 0,Q=void 0;t=(f=t)==null?void 0:(X=f.menuServiceItemRenderer)==null?void 0:(Q=X.serviceEndpoint)==null?void 0:Q.playlistEditEndpoint;Q=X=void 0;if(f=(X=t)==null?void 0:(Q=X.actions)==null?void 0:
Q[0])X=void 0,f.setVideoId=(X=this.data)==null?void 0:X.setVideoId;Q=X=f=void 0;if(t=(f=t)==null?void 0:(X=f.clientActions)==null?void 0:(Q=X[0])==null?void 0:Q.playlistRemoveVideosAction)f=void 0,t.setVideoIds=[(f=this.data)==null?void 0:f.setVideoId]}}};
_.PV.Object.defineProperties(VB.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
VB.prototype.setVideoIdChanged=VB.prototype.setVideoIdChanged;VB.prototype.dataChanged=VB.prototype.dataChanged;VB.prototype.downloadStateChanged=VB.prototype.downloadStateChanged;VB.prototype.onMenuOverlayChanged=VB.prototype.onMenuOverlayChanged;VB.prototype.canReorderChanged=VB.prototype.canReorderChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],VB.prototype,"ytdReduxBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],VB.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],VB.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],VB.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],VB.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],VB.prototype,"canReorder",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],VB.prototype,"menuOpened",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],VB.prototype,"handleIsHovered",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],VB.prototype,"persistentDragHandle",void 0);_.V([_.n(),_.H("design:type",Object)],VB.prototype,"downloadRenderData",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],VB.prototype,"styleType",void 0);_.V([_.n({computed:"computeThumbnailWidth(data.style)"}),_.H("design:type",Number)],VB.prototype,"thumbnailWidth",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],VB.prototype,"isDownloads",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],VB.prototype,"playlistVotingAnimationEnabled",void 0);
_.V([_.n({selector:Ep,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],VB.prototype,"downloadProgress",void 0);_.V([_.n(),_.H("design:type",Number)],VB.prototype,"relativeDateReference",void 0);_.V([_.n({selector:_.LZ,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],VB.prototype,"transferState",void 0);_.V([_.n({selector:kL0,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],VB.prototype,"downloadState",void 0);
_.V([_.n({selector:xX0,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],VB.prototype,"offlinePolicyAction",void 0);_.V([_.n({selector:j4p,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],VB.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.V([_.n({selector:VDx,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],VB.prototype,"entityInfo",void 0);_.V([_.n({selector:_.WE}),_.H("design:type",Boolean)],VB.prototype,"miniplayerIsActive",void 0);
_.V([_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],VB.prototype,"playlistVideoId",null);_.V([_.lo("#thumbnail"),_.H("design:type",Object)],VB.prototype,"thumbnail",void 0);_.V([_.PU("canReorder"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VB.prototype,"canReorderChanged",null);
_.V([_.UQ("yt-menu-overlay-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Boolean]),_.H("design:returntype")],VB.prototype,"onMenuOverlayChanged",null);_.V([_.PU("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VB.prototype,"downloadStateChanged",null);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VB.prototype,"dataChanged",null);_.V([_.PU("data.setVideoId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VB.prototype,"setVideoIdChanged",null);_.V([_.y_({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],VB);
_.Y(VB,"ytd-playlist-video-renderer",function(){if($ff!==void 0)return $ff;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);A.content.insertBefore(SKp().content.cloneNode(!0),A.content.firstChild);return $ff=A},{mode:1});var wqK;var ZZ=function(){return _.F.apply(this,arguments)||this};
_.R(ZZ,_.F);_.V([_.n(),_.H("design:type",Object)],ZZ.prototype,"data",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ZZ.prototype,"rendererBehavior",void 0);_.V([_.y_({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],ZZ);
_.Y(ZZ,"ytd-premium-browse-footer-renderer",function(){if(wqK!==void 0)return wqK;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return wqK=A},{mode:1});var ssp;var oZ=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return A};
_.R(oZ,_.F);_.J=oZ.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.handleDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.J.computeHeaderLogoThumbnail=function(A,t){if(A)return t?A.darkLogo:A.lightLogo};
_.J.computeHeaderLogoHeight=function(A,t){var f,X,Q;return(A=(f=this.computeHeaderLogoThumbnail(A,t))==null?void 0:(X=f.thumbnails)==null?void 0:(Q=X[0])==null?void 0:Q.height)&&A%31===0?"31":"24"};
_.J.computeHeaderLogoMarginBottom=function(A,t){return this.computeHeaderLogoHeight(A,t)==="24"?"0":"-7"};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],oZ.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],oZ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],oZ.prototype,"isDarkTheme",void 0);_.V([_.n({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.H("design:type",Object)],oZ.prototype,"themeLogo",void 0);
_.V([_.n({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.H("design:type",String)],oZ.prototype,"logoHeight",void 0);_.V([_.n({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.H("design:type",String)],oZ.prototype,"logoMarginBottom",void 0);_.V([_.y_({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],oZ);
_.Y(oZ,"ytd-primetime-promo-header-renderer",function(){if(ssp!==void 0)return ssp;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ssp=A},{mode:1});var k8b;_.dZ=_.I(function(A){var t=A.className;var f=A.data;var X=A.isOverlay;var Q=A.maxLinesOverride;var q=A.useMediumText;var e=function(){return f().alwaysShowTruncationText},G=function(){return f().truncationText},N=function(){return q!==void 0&&q()?"medium":"small"},z=function(){return X!==void 0&&X()?"overlay":"default"},T=function(){var h,W;
return(W=(h=_.C(f().rendererContext,_.Tq))==null?void 0:h.label)!=null?W:""};
A=_.U(_.hZ(!1,void 0,"llBUm"));var O=A.next().value,c=A.next().value;A=_.f1(function(){f().expandOnTap&&c(!O());return!1});
var B={};return _.u("yt-description-preview-view-model",{el:_.ZY(_.W1(function(){return f().rendererContext})),
class:_.Ao("ytDescriptionPreviewViewModelHost",t,(B.ytDescriptionPreviewViewModelClickable=function(){var h;return!((h=_.C(f().rendererContext,_.y9))==null||!h.onTap)},B.ytDescriptionPreviewViewModelIsOverlay=X,B)),
"on:click":A},_.u(_.P,{cond:function(){return f().description},
then:function(h){return _.u(_.P,{cond:O,then:function(){var W={};return _.u("div",{class:_.Ao("ytDescriptionPreviewViewModelDescription",(W.ytDescriptionPreviewViewModelDescriptionMediumText=q,W))},_.u(_.zL,{text:h}))},
else:function(){return _.u(A6C,{text:h,alwaysShowTruncationText:e,truncationText:G,maxLines:function(){var W;return(W=Q==null?void 0:Q())!=null?W:f().maxLines},
textStyle:z,accessibilityLabel:T,textSize:N})}})}}))},"dd");
_.dZ.idomCompat=!0;var A3C=_.I(function(A){var t=_.f1(function(Q){var q;(q=A.onClick)==null||q.call(A,Q)}),f={},X={};
return _.u("yt-shelf-header-layout",{class:_.Ao("yt-shelf-header-layout",(f["yt-shelf-header-layout--disable-horizontal-padding"]=A.disableHorizontalPadding,f["yt-shelf-header-layout--disable-vertical-padding"]=A.disableVerticalPadding,f["yt-shelf-header-layout--responsive"]=A.useResponsiveLayout,f["yt-shelf-header-layout--narrow"]=function(){var Q,q;return((Q=A.useResponsiveLayout)==null?void 0:Q.call(A))&&((q=A.forceSmallLayout)==null?void 0:q.call(A))},f["yt-shelf-header-layout--is-overlay"]=A.isOverlay,
f["yt-shelf-header-layout--tappable"]=A.isInteractive,f["yt-shelf-header-layout--optional-medium-layout-padding"]=A.useUpdatedPadding,f)),
"on:click":t,tabindex:function(){var Q;return((Q=A.isInteractive)==null?0:Q.call(A))?0:void 0}},_.u("div",{class:"yt-shelf-header-layout__header-row"},_.u(_.P,{cond:A.leadingIcon,
then:function(Q){return _.u("div",{class:"yt-shelf-header-layout__leading-icon"},_.u(_.el,{icon:Q}))},
else:function(){return _.u(_.P,{cond:A.hasLeadingImage,then:function(){var Q,q={};return _.u("div",{class:_.Ao("yt-shelf-header-layout__leading-image",(q["yt-shelf-header-layout__leading-image--circular-image"]=A.circularImage,q))},(Q=A.leadingImage)==null?void 0:Q.call(A))}})}}),_.u("div",{class:"yt-shelf-header-layout__label-container"},_.u(_.P,{cond:A.hasSuperlabel,
then:function(){var Q;return _.u("div",{class:"yt-shelf-header-layout__superlabel"},(Q=A.superlabel)==null?void 0:Q.call(A))}}),_.u("div",{class:"yt-shelf-header-layout__title-row"},_.u(rdE,{text:A.title,
className:_.Ao("yt-shelf-header-layout__title",(X["yt-shelf-header-layout__title--small-title"]=A.forceSmallLayout,X)),tagLevel:A.tagLevel}),_.u(_.P,{cond:A.hasDetail,then:function(){var Q;return _.u("div",{class:"yt-shelf-header-layout__detail"},(Q=A.detail)==null?void 0:Q.call(A))}})),_.u(_.P,{cond:A.hasSublabel,
then:function(){var Q;return _.u("div",{class:"yt-shelf-header-layout__sublabel"},(Q=A.sublabel)==null?void 0:Q.call(A))}})),_.u(_.P,{cond:A.hasTrailingActions,
then:function(){var Q;return _.u("div",{class:"yt-shelf-header-layout__trailing-actions"},(Q=A.trailingActions)==null?void 0:Q.call(A))}})),_.u(_.P,{cond:A.hasBottomAccessory,
then:function(){var Q;return _.u("div",{class:"yt-shelf-header-layout__bottom-accessory"},(Q=A.bottomAccessory)==null?void 0:Q.call(A))}}))},"ed");
A3C.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var rdE=_.I(function(A){var t=A.text;var f=A.className;var X=A.tagLevel;return _.u(_.j2,null,_.u(_.FE,{when:function(){return(X==null?void 0:X())===0}},function(){return _.u("h2",{class:f},t())}),_.u(_.FE,{when:function(){return(X==null?void 0:X())===1}},function(){return _.u("h3",{class:f},t())}),_.u(_.FE,{when:function(){return(X==null?void 0:X())===2}},function(){return _.u("h4",{class:f},t())}),_.u(_.Ih,null,function(){return _.u("h2",{class:f},t())}))},"fd");var XPf,ty8,f8p;_.SB=_.I(function(A){var t=A.className;var f=A.data;var X=A.disableHorizontalPadding;var Q=A.disableVerticalPadding;var q=A.forceSmallLayout;var e=A.useResponsiveLayout;var G=A.isOverlay;A=A.useUpdatedPadding;return _.u("yt-section-header-view-model",{class:_.Ao("ytSectionHeaderViewModelHost",t),style:_.U7({"background-color":function(){return lM(f().backgroundColor)?_.bY(lM(f().backgroundColor)):void 0}})},_.u(A3C,{hasDetail:!1,
title:function(){return _.u(_.zL,{text:function(){return f().headline}})},
hasTitle:!0,sublabel:function(){return _.u(ty8,{data:f})},
hasSublabel:function(){return!!f().sublabel||!!f().bottomBadge},
superlabel:function(){return _.u(f8p,{data:f})},
hasSuperlabel:function(){return!!f().superlabel||!!f().topBadge},
leadingImage:function(){return _.u(XPf,{leadingAccessory:function(){return f().leadingAccessory}})},
hasLeadingImage:function(){return!!f().leadingAccessory},
trailingActions:function(){return _.u(_.P1,{data:function(){return f().trailingActions}},{flexibleActionsViewModel:_.Jk})},
hasTrailingActions:function(){return!!f().trailingActions},
disableHorizontalPadding:function(){return(X==null?void 0:X())||f().disableHorizontalPadding},
disableVerticalPadding:Q,forceSmallLayout:q,useResponsiveLayout:e,isOverlay:G,isInteractive:function(){return!!_.mL(f().rendererContext)},
onClick:function(N){if(_.bj(f().rendererContext)){var z=_.mL(f().rendererContext);z&&_.Wn(z,{form:{element:N.target,event:N}})}},
bottomAccessory:function(){return _.u(_.P1,{data:function(){return f().bottomAccessory}},{descriptionPreviewViewModel:function(N){return _.u(_.dZ,{data:N.data,
useMediumText:!0})}})},
hasBottomAccessory:function(){return!!f().bottomAccessory},
useUpdatedPadding:A}))},"gd");
XPf=_.I(function(A){var t=A.leadingAccessory;return _.u(_.Tw,null,_.u(_.P,{cond:function(){var f;return(f=t().image)!=null?f:_.Fl(t().themedImage)},
then:function(f){return _.u(_.YA,{data:f,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.u(_.P,{cond:function(){return _.C(t().avatar,_.v1)},
then:function(f){return _.u(_.QK,{data:f})}}))},"hd");
ty8=_.I(function(A){var t=A.data;return _.u(_.Tw,null,_.u(_.P,{cond:function(){return _.C(t().bottomBadge,llE)},
then:function(f){var X={};return _.u(_.Cj,{data:f,class:_.Ao((X.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!f()&&!!t().sublabel},X))})}}),_.u(_.P,{cond:function(){return t().sublabel},
then:function(f){return _.u(_.zL,{text:f})}}))},"id");
f8p=_.I(function(A){var t=A.data;return _.u(_.Tw,null,_.u(_.P,{cond:function(){return _.C(t().topBadge,llE)},
then:function(f){var X={};return _.u(_.Cj,{data:f,class:_.Ao((X.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!f()&&!!t().superlabel},X))})}}),_.u(_.P,{cond:function(){return t().superlabel},
then:function(f){return _.u(_.zL,{text:f})}}))},"jd");_.Hn(_.SB,"yt-section-header-view-model",{props:{data:_.PS,className:_.PS,disableHorizontalPadding:_.PS,disableVerticalPadding:_.PS,forceSmallLayout:_.PS,useResponsiveLayout:_.PS,isOverlay:_.PS,useUpdatedPadding:_.PS}});_.C1("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var $9=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return A};
_.R($9,_.F);_.J=$9.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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"}}}};
_.J.onDataChange=function(){var A=this;_.us(this,function(){A.updateItemVisibility()})};
_.J.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A,this.updateItemVisibility())};
_.J.updateItemVisibility=function(){var A=this;this.data&&this.data.panels&&_.sF(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(t,f){t.hidden=f>A.elementsPerRow-1})};
_.J.requestElementsPerRow=function(){_.s9(this.hostElement,"yt-request-elements-per-row")};
$9.prototype.onDataChange=$9.prototype.onDataChange;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],$9.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],$9.prototype,"actionHandlerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],$9.prototype,"data",void 0);_.V([_.n({value:3}),_.H("design:type",Number)],$9.prototype,"elementsPerRow",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$9.prototype,"onDataChange",null);_.V([_.y_({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],$9);
_.Y($9,"ytd-primetime-promo-renderer",function(){if(k8b!==void 0)return k8b;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return k8b=A},{mode:1});var QTp;var Hy=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return A};
_.R(Hy,_.F);Hy.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Hy.prototype.handleButtonRefreshAction=function(A){if(A=_.C(A,Edf))this.set("data.button",A.membershipButton),this.notifyPath("data.button")};
_.PV.Object.defineProperties(Hy.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:(t=A.avatars)==null?void 0:t.slice(0,8))||[]}}});
_.V([_.n(),_.H("design:type",Object)],Hy.prototype,"data",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Hy.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Hy.prototype,"rendererBehavior",void 0);_.V([_.y("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Hy.prototype,"avatars",null);
_.V([_.y_({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Hy);
_.Y(Hy,"ytd-recognition-shelf-renderer",function(){if(QTp!==void 0)return QTp;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return QTp=A},{mode:1});var qfl;var J3f;var aZ=function(){var A=_.F.apply(this,arguments)||this;A.modernButtons=_.M("web_modern_buttons");return A};
_.R(aZ,_.F);_.J=aZ.prototype;
_.J.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]]",lockupExperiments:"[[lockupExperiments]]"}},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]]"}}}}}};
_.J.dataChanged=function(){this.collapsed=!0};
_.J.computeVisibleItems=function(A,t){return A!==void 0&&A.items?t?A.items.slice(0,this.data.collapsedItemCount):A.items:[]};
_.J.computeHideShowMore=function(A,t,f){return A>=t||!f};
_.J.computeHideShowAll=function(A,t,f){return!(A&&t)||f};
_.J.onMoreClick=function(){this.collapsed=!1};
_.PV.Object.defineProperties(aZ.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.M("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Bx("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.M("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
aZ.prototype.dataChanged=aZ.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],aZ.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],aZ.prototype,"isSearch",void 0);
_.V([_.n({computed:"computeVisibleItems(data,collapsed)"}),_.H("design:type",Array)],aZ.prototype,"visibleItems",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],aZ.prototype,"collapsed",void 0);_.V([_.n({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.H("design:type",Boolean)],aZ.prototype,"hideShowMore",void 0);
_.V([_.n({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.H("design:type",Boolean)],aZ.prototype,"hideShowAll",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],aZ.prototype,"modernButtons",void 0);_.V([_.y("isSearch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aZ.prototype,"typographyBump",null);
_.V([_.y("isSearch"),_.H("design:type",Object),_.H("design:paramtypes",[])],aZ.prototype,"lockupExperiments",null);_.V([_.y("isSearch"),_.H("design:type",String),_.H("design:paramtypes",[])],aZ.prototype,"thumbnailWidth",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aZ.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],aZ);
_.Y(aZ,"ytd-vertical-list-renderer",function(){if(J3f!==void 0)return J3f;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return J3f=A},{mode:1});var UZp=_.dS(["#"]);_.C1("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var K7=function(){var A=_.F.apply(this,arguments)||this;A.isConstrainedList=!1;return A};
_.R(K7,_.F);_.J=K7.prototype;
_.J.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"}}}};
_.J.computeThumbnailStyle=function(A){return A||""};
_.J.computePlaceAnnotationUnderTitle=function(){var A;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((A=this.data)==null?void 0:A.thumbnailStyle)||"")};
_.J.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A)||_.eNg(UZp)};
_.J.computeIsPromoShelf=function(A){var t;return(A=A==null?void 0:(t=A[0])==null?void 0:t.metadataBadgeRenderer)?A.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.J.computePlaceBadgeBesideTitle=function(A){var t;return(A==null?0:(t=A[0])==null?0:t.metadataBadgeRenderer)?!this.computeIsPromoShelf(A):!1};
_.J.computeMenuIcon=function(A){return this.computeIsPromoShelf(A)?"yt-icons:more_vert":"yt-icons:more"};
_.J.onDataChange=function(){var A,t;((A=this.data)==null?0:(t=A.content)==null?0:t.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.J.onLockupRequested=function(A){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&A.detail&&A.detail.videoIds){for(var t=this.data.content.gridRenderer.items,f=new Set,X=_.U(A.detail.videoIds),Q=X.next();!Q.done;Q=X.next())f.add(Q.value);A.detail.returnValue=t.filter(function(q){return q.gridVideoRenderer&&q.gridVideoRenderer.videoId&&f.has(q.gridVideoRenderer.videoId)}).map(function(q){return q.gridVideoRenderer})}};
_.J.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
K7.prototype.onLockupRequested=K7.prototype.onLockupRequested;K7.prototype.onDataChange=K7.prototype.onDataChange;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],K7.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],K7.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.K9),_.H("design:type",Object)],K7.prototype,"ironResizableBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],K7.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],K7.prototype,"isSearch",void 0);_.V([_.n(),_.H("design:type",Object)],K7.prototype,"isConstrainedList",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("kevlar_fluid_dismiss")}}),
_.H("design:type",Boolean)],K7.prototype,"enableFluidDismiss",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.H("design:type",String)],K7.prototype,"thumbnailStyle",void 0);_.V([_.n({computed:"computeMenuIcon(data.badges)"}),_.H("design:type",String)],K7.prototype,"menuIcon",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.H("design:type",Boolean)],K7.prototype,"featuredPromo",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K7.prototype,"onDataChange",null);_.V([_.UQ("yt-lockup-requested"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],K7.prototype,"onLockupRequested",null);_.V([_.y_({is:"ytd-shelf-renderer",disableElementRegistration:!0})],K7);
_.Y(K7,"ytd-shelf-renderer",function(){if(qfl!==void 0)return qfl;var A=document.createElement("template");_.m(A,'\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          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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          </div>\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return qfl=A},{mode:1});var eCi;var gZ=function(){return _.F.apply(this,arguments)||this};
_.R(gZ,_.F);gZ.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.PV.Object.defineProperties(gZ.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gZ.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],gZ.prototype,"isPlaylist",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],gZ.prototype,"isClipList",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],gZ.prototype,"isPlaylistPageWithFilters",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],gZ.prototype,"hasTitle",null);_.V([_.n(),_.y("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.H("design:type",Object),_.H("design:paramtypes",[])],gZ.prototype,"isRightAligned",null);
_.V([_.y_({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],gZ);
_.Y(gZ,"ytd-sort-filter-header-renderer",function(){if(eCi!==void 0)return eCi;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return eCi=A},{mode:1});var G1l;var wZ=function(){var A=_.F.apply(this,arguments)||this;A.enableRightArrowHidden=_.M("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return A};
_.R(wZ,_.F);wZ.prototype.attached=function(){var A=this;this.enableRightArrowHidden&&(this.JSC$16634_throttledOnResize=new _.qI(function(){var t;(t=A.ytdHorizontalListBehavior)==null||t.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var t;
(t=A.JSC$16634_throttledOnResize)==null||t.fire()}),this.resizeObserver.observe(this.hostElement))};
wZ.prototype.detached=function(){if(this.enableRightArrowHidden){var A;(A=this.resizeObserver)==null||A.disconnect();var t;(t=this.JSC$16634_throttledOnResize)==null||t.dispose()}};
wZ.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]]"}}}}}};
wZ.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.PV.Object.defineProperties(wZ.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.M("enable_creator_details_shelf_m2")){var A=[],t;((t=this.data)==null?0:t.creatorVideosButton)&&A.push(this.data.creatorVideosButton);var f;((f=this.data)==null?0:f.creatorAboutButton)&&A.push(this.data.creatorAboutButton);t=_.U(this.data.creatorCustomUrlButtons||[]);for(f=t.next();!f.done;f=t.next())A.push(f.value);return A}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.M("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.W7.YtdHorizontalListBehavior),_.H("design:type",Object)],wZ.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wZ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],wZ.prototype,"engagementPanel",void 0);
_.V([_.n(),_.H("design:type",Object)],wZ.prototype,"enableRightArrowHidden",void 0);_.V([_.y("enableRightArrowHidden","atEnd"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wZ.prototype,"hideRightArrow",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],wZ.prototype,"creatorCustomUrlButtons",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data","creatorCustomUrlButtons"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wZ.prototype,"showCreatorCustomUrlButtons",null);_.V([_.y("showCreatorCustomUrlButtons"),_.H("design:type",Number),_.H("design:paramtypes",[])],wZ.prototype,"channelAvatarSize",null);_.V([_.y_({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],wZ);
_.Y(wZ,"ytd-video-description-infocards-section-renderer",function(){if(G1l!==void 0)return G1l;var A=document.createElement("template");_.m(A,'\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_" hidden="[[hideRightArrow]]">\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return G1l=A},{mode:_.sQ("kevlar_poly_si_batch_j067")?1:2});var l8S;var sk=function(){return _.F.apply(this,arguments)||this};
_.R(sk,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sk.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.infoIcon)"}),_.H("design:type",Object)],sk.prototype,"infoIcon",void 0);_.V([_.y_({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],sk);
_.Y(sk,"ytd-eom-settings-disclaimer-renderer",function(){if(l8S!==void 0)return l8S;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return l8S=A},{mode:1});var Nup;var k9=function(){return _.F.apply(this,arguments)||this};
_.R(k9,_.F);_.PV.Object.defineProperties(k9.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.suppressPaddingDisclaimer)}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],k9.prototype,"componentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],k9.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],k9.prototype,"suppressPaddingDisclaimer",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],k9);
_.Y(k9,"ytd-product-list-header-renderer",function(){if(Nup!==void 0)return Nup;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Nup=A},{mode:1});var u4k;var rZ=function(){return _.F.apply(this,arguments)||this};
_.R(rZ,_.F);rZ.prototype.computeThumbnailStyle=function(A){if(A&&(A=_.mt(A)))return"background-color:"+A+";"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rZ.prototype,"rendererBehaviors",void 0);_.V([_.n(),_.H("design:type",Object)],rZ.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],rZ);
_.Y(rZ,"ytd-hashtag-tile-renderer",function(){if(u4k!==void 0)return u4k;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return u4k=A},{mode:1});var zCT;var Ac=function(){return _.F.apply(this,arguments)||this};
_.R(Ac,_.F);Ac.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}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ac.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Ac);
_.Y(Ac,"ytd-sponsorships-alert-renderer",function(){if(zCT!==void 0)return zCT;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return zCT=A},{mode:1});var Ppw;var tc=function(){return _.F.apply(this,arguments)||this};
_.R(tc,_.F);tc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.PV.Object.defineProperties(tc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.V([_.b(_.UW),_.H("design:type",Object)],tc.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],tc.prototype,"ytdLockupBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.V([_.n({selector:_.y6}),_.H("design:type",Object)],tc.prototype,"isGridViewEnabled",void 0);
_.V([_.y("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tc.prototype,"watchFeedBigThumbs",null);_.V([_.y("isGridViewEnabled"),_.n({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],tc.prototype,"thumbnailWidth",null);_.V([_.n(),_.H("design:type",Object)],tc.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],tc);
_.Y(tc,"ytd-compact-movie-renderer",function(){if(Ppw!==void 0)return Ppw;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Ppw=A},{mode:1});var Tuw;var izl;var Ozf=_.ah("HTML_DIR")==="rtl",fD=function(){var A=_.F.apply(this,arguments)||this;A.engagementPanel=!1;A.maxLines=2;A.expandButtonOffset=0;A.showExpandButton=!1;A.isTruncated=!1;A.isExpanded=!1;A.currentSnippetType=2;A.alwaysShowExpandButton=!1;A.JSC$16651_lastWidth=NaN;A.observer=null;A.left=0;A.right=0;A.mid=0;A.longestSnippetLength=0;A.isFinalSnippet=!1;A.isFirstMutation=!1;A.isResetMutation=!1;A.OVERFLOW_THRESHOLD=5;return A};
_.R(fD,_.F);_.J=fD.prototype;_.J.onClick=function(A){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Sl(_.Z2(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;if((t=window.getSelection())==null||!t.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.J.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.J.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.J.updateTextOnSnippetTypeChange=function(){_.M("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.J.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.J.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.K4(new _.xj("AttributedSnippet is empty when the description is not empty",this.text))};
_.J.mutationCallback=function(){if(this.observer!=null){var A=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var t=Math.floor(A*this.maxLines/8);this.setSnippetText(this.text,t);t!==0||this.attributedTextIsEmpty()||_.K4(new _.xj("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;A=A*this.maxLines/8;this.left=0;var f;this.right=Math.min(A*2,(f=(t=this.simpleText)==null?void 0:t.length)!=null?f: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)}}};
_.J.mutationObserve=function(A){var t=this;this.observer||(this.observer=new MutationObserver(function(){t.mutationCallback()}));
this.observer.observe(A,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.J.attached=function(){var A=this;_.us(this,function(){A.resize()})};
_.J.isExpandedChanged=function(){_.s9(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.J.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)};
_.J.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var A="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Ozf?"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",A);this.snippetContainer.style.setProperty("mask-image",
A)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Ozf?"right":"left",this.expandButtonOffset+"px")};
_.J.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.J.setSnippetText=function(A,t){A||(A={});if(_.I8(A)){var f=DY(A,t);f.attachmentRuns||f.commandRuns||f.decorationRuns||f.styleRuns||f.alignment||f.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:DY(A,t),headerRuns:Ehx(t,this.headerRuns)},this.currentSnippetType=0):_.K4(new _.xj("Tried to set snippet text when HTML element was null",A)):(this.plainSnippetText.textContent=EX(A.content||"",t),this.currentSnippetType=2)}else{a:{f=O5g(A,t);if(f.runs){f=_.U(f.runs);for(var X=
f.next();!X.done;X=f.next())if(X=X.value,X.bold||X.deemphasize||X.italics||X.strikethrough||X.textColor||X.navigationEndpoint||_.C(X,h7)){f=!0;break a}}f=!1}f?this.formattedSnippetText?(this.formattedSnippetText.text=O5g(A,t),this.currentSnippetType=1):_.K4(new _.xj("Tried to set snippet text when HTML element was null",A)):(this.plainSnippetText.textContent=EX(_.dF(A),t),this.currentSnippetType=2)}};
_.J.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.J.attributedTextIsEmpty=function(){var A=this.text;if(!_.I8(A))return!0;var t;return((t=A.content)==null?void 0:t.length)===0?!0:!1};
_.J.resize=function(A){if(this.snippetText){if(A===void 0?0:A)this.JSC$16651_lastWidth=NaN;var t=this.hostElement.offsetWidth;if(t!==this.JSC$16651_lastWidth&&!this.isExpanded)if(this.JSC$16651_lastWidth=t,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;A=0;var f,X;t=Math.min(t*this.maxLines/8*2,(X=(f=this.simpleText)==null?void 0:f.length)!=null?X:0)-1;for(f=0;A<=t;)X=Math.floor(A+(t-A)/2),this.setSnippetText(this.text,X),this.isOverflowing()?t=X-1:(A=X+1,f=X);this.setSnippetText(this.text,f);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.J.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.J.onExpandClick=function(){var A=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.M("inline_expander_reset_focus_killswitch")||_.us(this,function(){var t;((t=_.Px().resolve(_.z7(_.mJ)))==null?0:t.isKeyBoardInUse())&&_.eY(A.hostElement)});
_.s9(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.J.onCollapseClick=function(){this.collapse();_.s9(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.J.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.J.computeExpandButtonOffset=function(){var A=this.expandSizer;return A?Ozf?A.offsetParent?A.offsetParent.offsetWidth-A.offsetWidth-A.offsetLeft:0:A.offsetLeft:0};
_.PV.Object.defineProperties(fD.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.I8(this.text)?this.text.content||"":_.dF(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 _.I8(this.text)?!0:this.text&&_.M("web_replace_formatted_with_attributed_string")&&XwT(this.text)?(this.text=_.CI(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}}});
fD.prototype.onTextChanged=fD.prototype.onTextChanged;fD.prototype.updateMaskAndExpandButtonOffset=fD.prototype.updateMaskAndExpandButtonOffset;fD.prototype.updateSnippetContainerMaxHeight=fD.prototype.updateSnippetContainerMaxHeight;fD.prototype.isExpandedChanged=fD.prototype.isExpandedChanged;fD.prototype.updateTextOnSnippetTypeChange=fD.prototype.updateTextOnSnippetTypeChange;fD.prototype.updateIsFormattedExpanded=fD.prototype.updateIsFormattedExpanded;fD.prototype.updateIsAttributedExpanded=fD.prototype.updateIsAttributedExpanded;
fD.prototype.onClick=fD.prototype.onClick;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],fD.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fD.prototype,"text",void 0);_.V([_.n(),_.H("design:type",Array)],fD.prototype,"headerRuns",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fD.prototype,"engagementPanel",void 0);_.V([_.n(),_.H("design:type",Object)],fD.prototype,"maxLines",void 0);
_.V([_.n(),_.H("design:type",String)],fD.prototype,"expandLabel",void 0);_.V([_.n(),_.H("design:type",String)],fD.prototype,"collapseLabel",void 0);_.V([_.n(),_.H("design:type",Object)],fD.prototype,"expandCommand",void 0);_.V([_.n(),_.H("design:type",Object)],fD.prototype,"expandButtonOffset",void 0);_.V([_.y("text"),_.H("design:type",String),_.H("design:paramtypes",[])],fD.prototype,"simpleText",null);
_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],fD.prototype,"onClick",null);_.V([_.y("text","isExpanded"),_.H("design:type",Object),_.H("design:paramtypes",[])],fD.prototype,"expandedText",null);_.V([_.y("headerRuns","isExpanded"),_.H("design:type",Object),_.H("design:paramtypes",[])],fD.prototype,"expandedHeaderRuns",null);
_.V([_.y("text"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fD.prototype,"hasAttributedStringText",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fD.prototype,"showExpandButton",void 0);_.V([_.y("collapseLabel","isExpanded"),_.H("design:type",Object),_.H("design:paramtypes",[])],fD.prototype,"showCollapseButton",null);_.V([_.n(),_.H("design:type",Object)],fD.prototype,"isTruncated",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fD.prototype,"isExpanded",void 0);_.V([_.n(),_.H("design:type",Boolean)],fD.prototype,"isAttributedExpanded",void 0);_.V([_.ev("isExpanded","hasAttributedStringText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fD.prototype,"updateIsAttributedExpanded",null);_.V([_.n(),_.H("design:type",Boolean)],fD.prototype,"isFormattedExpanded",void 0);
_.V([_.ev("isExpanded","hasAttributedStringText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fD.prototype,"updateIsFormattedExpanded",null);_.V([_.n(),_.H("design:type",Number)],fD.prototype,"currentSnippetType",void 0);_.V([_.y("currentSnippetType"),_.H("design:type",Object),_.H("design:paramtypes",[])],fD.prototype,"useAttributedSnippet",null);
_.V([_.y("currentSnippetType"),_.H("design:type",Object),_.H("design:paramtypes",[])],fD.prototype,"useFormattedSnippet",null);_.V([_.y("currentSnippetType"),_.H("design:type",Object),_.H("design:paramtypes",[])],fD.prototype,"usePlainSnippet",null);_.V([_.n(),_.H("design:type",Object)],fD.prototype,"alwaysShowExpandButton",void 0);_.V([_.ev("currentSnippetType"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fD.prototype,"updateTextOnSnippetTypeChange",null);
_.V([_.n(),_.H("design:type",Object)],fD.prototype,"attributedSnippetText",void 0);_.V([_.lo("#snippet"),_.H("design:type",HTMLElement)],fD.prototype,"snippetContainer",void 0);_.V([_.lo("#snippet-text"),_.H("design:type",HTMLElement)],fD.prototype,"snippetText",void 0);_.V([_.lo("#plain-snippet-text"),_.H("design:type",HTMLElement)],fD.prototype,"plainSnippetText",void 0);_.V([_.lo("#formatted-snippet-text"),_.H("design:type",Object)],fD.prototype,"formattedSnippetText",void 0);
_.V([_.lo("#attributed-snippet-text"),_.H("design:type",Object)],fD.prototype,"attributedSnippetTextEl",void 0);_.V([_.lo("#expand"),_.H("design:type",HTMLElement)],fD.prototype,"expandButton",void 0);_.V([_.lo("#expand-sizer"),_.H("design:type",HTMLElement)],fD.prototype,"expandSizer",void 0);_.V([_.PU("isExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fD.prototype,"isExpandedChanged",null);
_.V([_.ev("isExpanded","maxLines"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fD.prototype,"updateSnippetContainerMaxHeight",null);_.V([_.ev("isTruncated","showExpandButton","expandButtonOffset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fD.prototype,"updateMaskAndExpandButtonOffset",null);
_.V([_.PU("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fD.prototype,"onTextChanged",null);_.V([_.y_({is:"ytd-text-inline-expander",disableElementRegistration:!0})],fD);
_.Y(fD,"ytd-text-inline-expander",function(){if(izl===void 0){var A=document.createElement("template");_.m(A,'\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<div id="expanded" class="style-scope ytd-text-inline-expander"><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><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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);izl=A}A=izl;return A},{mode:2});var XY=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return A};
_.R(XY,_.F);XY.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
XY.prototype.handleUpdateDescriptionAction=function(A){if(A=_.C(A,_.Zmp))if(A.attributedDescription)this.set("data.attributedDescriptionBodyText",A.attributedDescription);else if(A.description){var t;((t=this.data)==null?0:t.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.CI(A.description)):this.set("data.descriptionBodyText",A.description)}};
_.PV.Object.defineProperties(XY.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var A,t;return!((A=this.data)==null||!A.attributedDescriptionBodyText)||!((t=this.data)==null||!t.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.collapsedLineCount){var t;return(t=this.data)==null?void 0:t.collapsedLineCount}A=_.cx("web_watch_description_collapsed_default_lines",12);if(_.M("ww_desc_line_page_size_ks"))return A;t=Math.round(_.uY().height*_.cx("web_watch_description_screen_height_percentage",.5)/20);return Math.max(t,A)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return(f=(A=this.data)==null?void 0:A.descriptionBodyText)!=null?f:(t=this.data)==null?void 0:t.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.sourceAttributions}}});
XY.prototype.panelContentVisibleChanged=XY.prototype.panelContentVisibleChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],XY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],XY.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],XY.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Boolean)],XY.prototype,"panelContentVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],XY.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],XY.prototype,"shortsPanel",void 0);_.V([_.lo("#inline-expander"),_.H("design:type",Object)],XY.prototype,"inlineExpander",void 0);
_.V([_.ev("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XY.prototype,"panelContentVisibleChanged",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],XY.prototype,"hasDescriptionText",null);_.V([_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],XY.prototype,"collapsedLines",null);
_.V([_.y("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.H("design:type",Object),_.H("design:paramtypes",[])],XY.prototype,"descriptionText",null);_.V([_.y("data","data.headerRuns"),_.H("design:type",Object),_.H("design:paramtypes",[])],XY.prototype,"headerRuns",null);_.V([_.y("data","data.sourceAttributions"),_.H("design:type",Object),_.H("design:paramtypes",[])],XY.prototype,"sourceAttributions",null);
_.V([_.y_({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],XY);
_.Y(XY,"ytd-expandable-video-description-body-renderer",function(){if(Tuw!==void 0)return Tuw;var A=document.createElement("template");_.m(A,'\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]]" hidden="[[!hasDescriptionText]]" 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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Tuw=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var c3p;var BuC=_.I(function(A){var t=A.data;return _.u("factoid-renderer",{class:"ytwFactoidRendererHost"},_.u("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return t().accessibilityText}},_.u("span",{class:"ytwFactoidRendererValue"},_.u(_.zL,{text:function(){return t().value}})),_.u("span",{class:"ytwFactoidRendererLabel"},_.u(_.zL,{text:function(){return t().label}}))))},"kd");_.Hn(BuC,"factoid-renderer",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;return _.u("upload-time-factoid-renderer",null,_.u(_.P1,{data:function(){return t().factoid}},{factoidRenderer:BuC}))},"ld"),"upload-time-factoid-renderer",{props:{data:_.dt}});_.Hn(_.I(function(A){var t=A.data;return _.u("view-count-factoid-renderer",null,_.u(_.P1,{data:function(){return t().factoid}},{factoidRenderer:BuC}))},"md"),"view-count-factoid-renderer",{props:{data:_.dt}});var QR=function(){var A=_.F.apply(this,arguments)||this;A.shortsPanel=!1;A.engagementPanel=!1;A.watchWhileSdp=_.M("shorts_desktop_watch_while_sdp");return A};
_.R(QR,_.F);QR.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"}}}}};
_.PV.Object.defineProperties(QR.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var A;return(A=this.data)==null?void 0:A.channel}}});
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],QR.prototype,"componentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],QR.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],QR.prototype,"shortsPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],QR.prototype,"engagementPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],QR.prototype,"watchWhileSdp",void 0);_.V([_.y("shortsPanel","engagementPanel","data.channel"),_.H("design:type",Object),_.H("design:paramtypes",[])],QR.prototype,"showChannelInfo",null);_.V([_.y_({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],QR);
_.Y(QR,"ytd-video-description-header-renderer",function(){if(c3p!==void 0)return c3p;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return c3p=A},{mode:1});var MyK;var q5=function(){return _.F.apply(this,arguments)||this};
_.R(q5,_.F);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],q5.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],q5.prototype,"noPadding",void 0);_.V([_.n(),_.H("design:type",Object)],q5.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],q5);
_.Y(q5,"ytd-list-item-view-model",function(){if(MyK!==void 0)return MyK;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return MyK=A},{mode:1});var Cp7;var hCK;var RCi;var mZk;var Jc=function(){var A=_.F.apply(this,arguments)||this;A.adaptiveFullWidth=!1;A.modernButtons=_.M("web_modern_buttons");A.buttonOverrides={style:"call-to-action",type:"filled"};A.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return A};
_.R(Jc,_.F);Jc.prototype.handleSetTimestamp_=function(A){this.data&&this.data.shortUrl&&(_.sF(this.hostElement).querySelector("#share-url").value=A.isSet?_.gU(this.data.shortUrl,"t",A.timestamp):this.data.shortUrl)};
Jc.prototype.handleSignalActionCopyShareUrl_=function(A,t){(_.M("killswitch_copy_link_target_check")||_.sF(this.hostElement).querySelector("#copy-button")===t)&&this.copyUrlToClipboard()};
Jc.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.sF(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Jc.prototype.computeStyle_=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Jc.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Jc.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.H("design:type",String)],Jc.prototype,"rendererStyle",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Jc.prototype,"adaptiveFullWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Jc.prototype,"modernButtons",void 0);_.V([_.n(),_.H("design:type",Object)],Jc.prototype,"buttonOverrides",void 0);_.V([_.WU({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Jc);
_.Y(Jc,"yt-copy-link-renderer",function(){if(mZk===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;RCi===void 0&&(RCi=document.createElement("template"));var X=RCi;f.call(t,X.content.cloneNode(!0),A.content.firstChild);mZk=A}A=mZk;return A},{mode:2});_.C1("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Us=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return A};
_.R(Us,_.F);_.J=Us.prototype;_.J.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var A=_.Px().resolve(_.z7(_.mJ));A&&(this.keyboardFocused=A.isKeyBoardInUse())}};
_.J.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.J.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}};
_.J.onChange_=function(){if(this.data){var A=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;A&&this.ytComponentBehavior.resolveCommand(A);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.J.handleUpdateToggleAction_=function(A){(A=_.C(A,Qzw))&&this.data&&A.targetId==this.data.targetId&&this.set("data.toggled",A.toggled)};
_.J.toBoolean_=function(A){return!!A};
_.J.reset=function(){};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("data-changed",this.data))};
_.J.updateDataToggledFromBinding=function(A){this.set("data.toggled",A.detail.value)};
Us.prototype.dataChangedForBinding=Us.prototype.dataChangedForBinding;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Us.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Us.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Us.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Us.prototype,"data",void 0);_.V([_.n({computed:"computeDescription_(data.*)"}),_.H("design:type",Object)],Us.prototype,"description_",void 0);_.V([_.n({value:function(){return!!_.Px().resolve(_.z7(_.mJ))&&_.M("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.H("design:type",Boolean)],Us.prototype,"useKeyboardFocused",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Us.prototype,"keyboardFocused",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Us.prototype,"dataChangedForBinding",null);_.V([_.WU({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Us);
_.Y(Us,"yt-toggle-form-field-renderer",function(){if(hCK===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Cp7===void 0&&(Cp7=document.createElement("template"));var X=Cp7;f.call(t,X.content.cloneNode(!0),A.content.firstChild);hCK=A}A=hCK;return A},{mode:2});var bzS;var WpK;var eb=function(){var A=_.F.apply(this,arguments)||this;A.isDarkTheme=!1;A.isSearch=!1;A.noTopMargin=_.M("kevlar_watch_no_top_margin");A.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 A};
_.R(eb,_.F);_.J=eb.prototype;_.J.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}}}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.J.dataChanged=function(){var A=this.getSelectedIndex();if(A>0)this.selected=A;else{this.selected=0;var t,f;(t=this.ytScrollableChipCloudBehavior)==null||(f=t.reset)==null||f.call(t)}};
_.J.getSelectedIndex=function(){var A;if((A=this.data)==null||!A.chips)return-1;A=-1;for(var t,f=0;f<((t=this.data)==null?void 0:t.chips.length);f++){var X=void 0,Q=void 0;if((X=this.data)==null?0:(Q=X.chips[f].chipCloudChipRenderer)==null?0:Q.isSelected){A=f;break}}return A};
_.J.onResize=function(){var A=this.ytScrollableChipCloudBehavior;_.us(A,A.setContainerWidthDiff);A=this.ytScrollableChipCloudBehavior;_.us(A,A.setButtonsState)};
_.J.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.J.handleRelatedChipCommand=function(A,t){A=this.JSC$16678_chipsSelector.indexOf(t);A!==-1&&this.JSC$16678_chipsSelector.selectIndex(A)};
_.J.handleChipCloudChipSelectAction=function(A){A=this.JSC$16678_chipsSelector.indexOf(A);A>-1&&this.JSC$16678_chipsSelector.selectIndex(A)};
_.J.handleChipCloudChipDeselectAction=function(){var A=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16678_chipsSelector&&((A==null?0:A.continuationCommand)?_.Al(this.hostElement,[A]):(A==null?0:A.searchEndpoint)?this.ytComponentBehavior.resolveCommand(A):A&&_.tl(this.hostElement,[A],this.hostElement),this.JSC$16678_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.J.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
eb.prototype.onResize=eb.prototype.onResize;eb.prototype.dataChanged=eb.prototype.dataChanged;eb.prototype.isSearchChanged=eb.prototype.isSearchChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],eb.prototype,"actionHandlerBehavior",void 0);
_.V([_.b(_.K9),_.H("design:type",Object)],eb.prototype,"ironResizableBehavior",void 0);_.V([_.b(),_.H("design:type",ZG)],eb.prototype,"ytScrollableChipCloudBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],eb.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],eb.prototype,"data",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],eb.prototype,"selected",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],eb.prototype,"isDarkTheme",void 0);_.V([_.n({value:160}),_.H("design:type",Number)],eb.prototype,"scrollDistance",void 0);_.V([_.n(),_.H("design:type",Object)],eb.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],eb.prototype,"noTopMargin",void 0);_.V([_.lo("#chips"),_.H("design:type",Object)],eb.prototype,"JSC$16678_chipsSelector",void 0);
_.V([_.ev("isSearch"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eb.prototype,"isSearchChanged",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eb.prototype,"dataChanged",null);_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eb.prototype,"onResize",null);_.V([_.WU({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],eb);
_.Y(eb,"yt-chip-cloud-renderer",function(){if(WpK===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;bzS===void 0&&(bzS=document.createElement("template"));var X=bzS;f.call(t,X.content.cloneNode(!0),A.content.firstChild);WpK=A}A=WpK;return A},{mode:2});var y3E,v2p=function(){return y3E!==void 0?y3E:y3E=document.createElement("template")};
document.head.appendChild(v2p().content);var LpC;var pPC=document.head,E2i=pPC.appendChild,n2T;if(LpC===void 0){var DZp=document.createElement("template");_.m(DZp,"");DZp.content.insertBefore(v2p().content.cloneNode(!0),DZp.content.firstChild);LpC=DZp}n2T=LpC;E2i.call(pPC,n2T.content);var Fpp=_.I(function(A){var t=A.data;return _.u("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.u("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.u("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.u(_.P,{cond:function(){return _.Fl(t().image)},
then:function(f){return _.u("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.u(_.YA,{data:f,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.u("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.u(_.zL,{text:function(){return t().title}})),_.u("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.u(_.zL,{text:function(){return t().subtitle}})))),_.u(_.P,{cond:function(){var f;
return(f=t())==null?void 0:f.hasBottomDivider},
then:function(){return _.u("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"nd");var I8C=_.I(function(A){var t=A.data;return _.u("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.u(_.P1,{data:function(){var f;return(f=t().offerPlanDetailsItem)!=null?f:[]}},{offerPlanDetailsItemViewModel:function(f){return _.u("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.u(Fpp,{data:f.data}))}})),_.u("div",null,_.u(_.P,{cond:function(){return t().hasBottomDivider},
then:function(){return _.u("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.u("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.u("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.u("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"od");var xZC=_.I(function(A){var t=A.data;A=_.U(_.hZ(!1,void 0,"MrXxy"));var f=A.next().value,X=A.next().value,Q=_.f1(function(){X(!f());return!1}),q=function(){var e;
return(e=t().offerPlanDetailsContainer)!=null?e:[]};
return _.u("lp-complex-offer-card-details-view-model",null,_.u("div",null,_.u(_.P,{cond:function(){return f()},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.u("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Q,"aria-expanded":f},_.u(_.zL,{text:function(){return t().expandedTitle}})),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.u(_.P1,{data:q},{offerPlanDetailsContainerViewModel:function(e){return _.u("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.u(I8C,{data:e.data}))}})),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.u(_.zL,{text:function(){return t().legalText}})))},
else:function(){return _.u("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Q,"aria-expanded":f},_.u(_.zL,{text:function(){return t().collapsedTitle}}),_.u("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.u(_.el,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"pd");var jTl=_.I(function(A){var t=A.data;return _.u("lp-complex-offer-card-option-view-model",null,_.u("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.u(_.P,{cond:function(){return t().topDividerText},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.u("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.u("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.u("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.u(_.zL,{text:function(){return t().topDividerText}}))))}}),_.u(_.P,{cond:function(){return t().description},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.u(_.zL,{text:function(){return t().description}}))}}),_.u(_.P,{cond:function(){return t().planPricingPrimary},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.u(_.zL,{text:function(){return t().planPricingPrimary}}))}}),_.u(_.P,{cond:function(){return t().planPricingSecondary},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.u(_.zL,{text:function(){return t().planPricingSecondary}}))}}),_.u(_.P,{cond:function(){return t().primaryButton},
then:function(){return _.u("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.u(_.P1,{data:function(){return t().primaryButton}},{buttonViewModel:function(f){return _.u(_.nx,{data:f.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"qd");var Yff=_.I(function(A){var t=A.data;var f=function(){var q;return((q=t())==null?void 0:q.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
A={};var X={},Q={};return _.u("ytm-lp-complex-offer-card-view-model",null,_.u("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.u("div",{class:_.Ao((A.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=f,A),"ytmLpComplexOfferCardViewModelCardContainer")},_.u(_.P,{cond:function(){var q;return(q=t())==null?void 0:q.bannerText},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.u("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.u(_.zL,{text:function(){return t().bannerText}})))}}),_.u(_.P,{cond:function(){return _.Fl(t().logo)},
then:function(q){var e={};return _.u("div",{class:_.Ao((e.ytmLpComplexOfferCardViewModelLogoAlignLeft=f,e),"ytmLpComplexOfferCardViewModelLogo")},_.u(_.YA,{data:q,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.u("div",{class:_.Ao((X.ytmLpComplexOfferCardViewModelTitleAlignLeft=f,X),"ytmLpComplexOfferCardViewModelTitle")},_.u(_.zL,{text:function(){return t().title}})),_.u(_.P,{cond:function(){var q;
return(q=t())==null?void 0:q.subtitle},
then:function(){var q={};return _.u("div",{class:_.Ao((q.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=f,q),"ytmLpComplexOfferCardViewModelSubtitle")},_.u(_.zL,{text:function(){return t().subtitle}}))}}),_.u(_.P,{cond:function(){return t().planPricingPrimary},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.u(_.zL,{text:function(){return t().planPricingPrimary}}))}}),_.u(_.P,{cond:function(){return t().planPricingSecondary},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.u(_.zL,{text:function(){return t().planPricingSecondary}}))}}),_.u(_.P,{cond:function(){return t().purchaseButton},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.u(_.P1,{data:function(){return t().purchaseButton}},{buttonViewModel:function(q){return _.u(_.nx,{data:q.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.u(_.P,{cond:function(){var q;
return(q=t())==null?void 0:q.offerOptions},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.u(_.P1,{data:function(){return t().offerOptions}},{lpComplexOfferCardOptionViewModel:jTl}))}}),_.u("div",{class:_.Ao((Q.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=f,Q),"ytmLpComplexOfferCardViewModelLegalText")},_.u(_.zL,{text:function(){return t().legalText}})),_.u(_.P,{cond:function(){var q;
return(q=t())==null?void 0:q.offerCardDetails},
then:function(){return _.u("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.u(_.P1,{data:function(){return t().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:xZC}))}}))))},"rd");var Vyi=_.I(function(A){var t=A.data;var f=function(){var e;return((e=t())==null?void 0:e.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
A={};var X={},Q={},q={};return _.u("ytm-lp-complex-offer-card-section-view-model",null,_.u("div",{class:_.Ao("ytmLpComplexOfferCardSectionViewModelHost")},_.u("div",{class:_.Ao((A.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=f,A),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.u("div",{class:_.Ao((X.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=f,X),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.u("h2",{class:_.Ao((Q.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
f,Q),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.u(_.zL,{text:function(){return t().title}}))),_.u(_.P,{cond:function(){var e;
return(e=t())==null?void 0:e.subtitle},
then:function(){var e={},G={};return _.u("div",{class:_.Ao((e.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=f,e),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.u("div",{class:_.Ao((G.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=f,G),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.u(_.zL,{text:function(){return t().subtitle}})))}}),_.u("div",{class:_.Ao((q.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=f,q),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.u(_.P1,{data:function(){var e;
return(e=t().offerPlans)!=null?e:[]}},{lpComplexOfferCardViewModel:function(e){return _.u("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.u(Yff,{data:e.data}))}})))))},"sd");var Zzb=_.I(function(A){return _.u("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.u("div",{class:"ytLpCouponBannerViewModelIcon"},_.u(_.el,{icon:function(){return"price_tag"}})),_.u("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.u("div",{class:"ytLpCouponBannerViewModelContent"},_.u("div",{class:"ytLpCouponBannerViewModelHeading"},_.u(_.zL,{text:function(){var t;
return(t=A.data())==null?void 0:t.title}})),_.u("div",{class:"ytLpCouponBannerViewModelBody"},_.u(_.zL,{text:function(){var t;
return(t=A.data())==null?void 0:t.subtitle}})))))},"td");
Zzb.idomCompat=!0;_.GN=Lji.getInstance();var o2C;o2C=_.I(function(A){return _.u("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":A.shouldAriaHideContent},_.u("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:A.questionId},_.u(_.zL,{text:A.question})))},"ud");
_.dZw=_.I(function(A){var t=A.data;var f=A.themeOverride;A=_.U(_.hZ(!1,void 0,"pNli2b"));var X=A.next().value,Q=A.next().value;A=_.f1(function(){Q(!X());return!1});
var q=function(){return X()?"EXPAND_LESS":"EXPAND_MORE"},e=("faq-container"+_.ZW(_.GN)).toString(),G="faq-question-and-answers-section-question"+_.ZW(_.GN),N={},z={};
return _.u("faq-entry-view-model",null,_.u("div",{class:_.Ao("ytLpFaqEntryViewModelHost",(N.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return f==null?void 0:f().useDarkTheme},N))},_.u("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":A,role:"button","aria-expanded":X,"aria-labelledby":G.toString(),"tab-index":"0"},_.u(o2C,{question:function(){return t().question},
questionId:G,shouldAriaHideContent:!0}),_.u(_.P,{cond:function(){return X()!==void 0},
then:function(){return _.u("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.u(_.el,{icon:q,ariaHidden:!0}),_.u("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.u("div",{class:_.Ao("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(z.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!X()},z))},_.u("div",{id:e},_.u(_.xk,{each:function(){return t().answers||[]}},function(T){return _.u("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.u(_.zL,
{text:T}))})))))},"vd");
_.dZw.idomCompat=!0;var SfC=_.I(function(A){var t=A.data;var f=A.themeOverride;A={};return _.u("lp-faq-section-view-model",null,_.u("div",{class:_.Ao("yt-lp-faq-section-view-model",(A["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},A["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(f==null||!f().useDarkTheme)},A))},_.u("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.u(_.P,{cond:function(){return t().header},
then:function(X){return _.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.u(_.zL,{text:X}))}}),_.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.u(_.P1,{data:function(){return t().faqs}},{faqEntryViewModel:function(X){return _.u(_.dZw,{data:X.data,
themeOverride:f})}})),_.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.u(_.xk,{each:function(){return t().footers||[]}},function(X){return _.u(_.zL,{text:X})})),_.u(_.P,{cond:function(){return t().legal},
then:function(X){return _.u("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.u(_.zL,{text:X}))}}))))},"wd");
SfC.idomCompat=!0;var $Z7=_.I(function(A){var t=A.data;var f=A.themeOverride;_.oh(function(){var e=t().gtmId;e&&_.aF(e,_.ah("GL",""))});
var X={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var e,G,N;return(N=(e=t().logo)==null?void 0:(G=e.accessibilityData)==null?void 0:G.label)!=null?N:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Q=_.Px().resolve(_.z7(_.FH)),q=function(){return Q&&Q()||(f==null?void 0:f().useDarkTheme)};
return _.u("lp-header-section-view-model",null,_.u("div",{class:function(){var e=t().layoutType,G=t().marginType==="LP_SECTION_MARGIN_TYPE_TOP",N=f==null?void 0:f().useDarkTheme,z=["lp-header-section-view-model"];switch(e){case "LP_MODULE_LAYOUT_TYPE_PTC":z.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":z.push("lp-header-section-view-model--narrow-header-layout-type")}G&&z.push("lp-header-section-view-model__lp-header-section-margin");N&&z.push("lp-header-section-view-model--premium-force-dark-mode");
return z.join(" ")}},_.u(_.P,{cond:function(){return t().logo},
then:function(){return _.u("div",null,_.u(_.P,{cond:q,then:function(){return _.u(_.P,{cond:function(){var e;return(e=t().logo)==null?void 0:e.imageDark},
then:function(e){return _.u(_.YA,Object.assign({},{data:e},X))}})},
else:function(){return _.u(_.P,{cond:function(){var e;return(e=t().logo)==null?void 0:e.imageLight},
then:function(e){return _.u(_.YA,Object.assign({},{data:e},X))}})}}))}}),_.u(_.P,{cond:function(){return t().title},
then:function(e){return _.u("div",{class:"lp-header-section-view-model__lp-header-title"},_.u(_.zL,{text:e}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.u(_.P,{cond:function(){return t().subtitles},
then:function(e){return _.u(_.xk,{each:e},function(G){return _.u("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.u(_.zL,{text:G}))})}})),_.u(_.P,{cond:function(){return t().additionalInfo},
then:function(e){return _.u("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.u(_.zL,{text:e}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.u(_.P,{cond:function(){return t().primaryButton},
then:function(e){return _.u("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.u(_.P1,{data:e},{buttonViewModel:_.nx}))}}),_.u(_.P,{cond:function(){return t().secondaryButton},
then:function(e){return _.u("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.u(_.P1,{data:e},{buttonViewModel:_.nx}))}})),_.u(_.P,{cond:function(){return t().otherOffersInfo},
then:function(e){return _.u("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.u(_.zL,{text:e}))}}),_.u("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.u(_.P,{cond:function(){return t().billingInfo},
then:function(e){return _.u(_.xk,{each:e},function(G){return _.u("div",null,_.u(_.zL,{text:G}))})}}))))},"xd");
$Z7.idomCompat=!0;var Hzf=_.I(function(A){return _.u("lp-header-upsell-banner-view-model",{class:_.Ao("lpHeaderUpsellBannerViewModelHost",A.className,{})},_.u("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.u(_.el,{icon:function(){return"CAMPAIGN"}})),_.u("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.u("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.u("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.u("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.u(_.zL,{text:function(){var t;
return(t=A.data())==null?void 0:t.description}})))),_.u(_.P1,{data:function(){var t;
return(t=A.data())==null?void 0:t.purchaseButton}},{buttonViewModel:function(t){return _.u(_.nx,{data:t.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"yd");var a88=_.I(function(A){var t=A.data;var f=_.dR(A.themeOverride,{useDarkTheme:!1});A={};A=_.Ao("ytmLpHeadlineSectionViewModelHost",(A.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return f().useDarkTheme},A));
return _.u("lp-headline-section-view-model",null,_.u("div",{class:A},_.u(_.P,{cond:function(){return t().title},
then:function(X){return _.u("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.u(_.zL,{text:X}))}}),_.u(_.P,{cond:function(){return t().subtitle},
then:function(X){return _.u("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.u(_.zL,{text:X}))}})))},"zd");var Kpf=_.I(function(A){var t=A.data;var f=A.themeOverride;var X=_.Px().resolve(_.z7(_.FH)),Q=function(){return X&&X()||(f==null?void 0:f().useDarkTheme)},q=function(){var z,T;
var O=Q()?(z=t().textBackgroundImage)==null?void 0:z.imageDark:(T=t().textBackgroundImage)==null?void 0:T.imageLight;return t60((O==null?void 0:O.sources)||[])},e=function(){var z,T;
return Q()?(z=t().featureImage)==null?void 0:z.imageDark:(T=t().featureImage)==null?void 0:T.imageLight},G=function(){return t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},N=function(){var z,T;
return Q()?(z=t().logo)==null?void 0:z.imageDark:(T=t().logo)==null?void 0:T.imageLight};
return _.u("ytm-lp-large-feature-section-view-model",null,_.u("div",{class:function(){var z=t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",T=t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",O=(t().index||0)%2===1,c=f==null?void 0:f().useDarkTheme,B=["yt-lp-large-feature-section-view-model"];z?B.push("yt-lp-large-feature-section-view-model--music-feature-type"):T?B.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):O||B.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
c&&B.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return B.join(" ")}},_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.u(_.P,{cond:e,
then:function(){return _.u(_.YA,{data:function(){return e()},
alt:function(){var z,T,O;return(O=(z=t().featureImage)==null?void 0:(T=z.accessibilityData)==null?void 0:T.label)!=null?O:""},
contentMode:G})}})),_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var z;return((z=q())==null?0:z.url)?"background-image: url("+_.of(q().url)+");":""}},_.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.u(_.P,{cond:N,
then:function(){return _.u(_.YA,{data:function(){return N()},
alt:function(){var z,T,O;return(O=(z=t().logo)==null?void 0:(T=z.accessibilityData)==null?void 0:T.label)!=null?O:""},
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"})}}),_.u(_.P,{cond:function(){return t().eyebrowText},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.u(_.zL,{text:function(){return t().eyebrowText}}))}}),_.u(_.P,{cond:function(){return t().title},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.u(_.zL,{text:function(){return t().title}}))}}),_.u(_.P,{cond:function(){return t().subtitles},
then:function(){return _.u("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.u(_.xk,{each:function(){return t().subtitles||[]}},function(z){return _.u(_.zL,{text:z})}))}})))))},"Ad");
Kpf.idomCompat=!0;var g2C=_.I(function(A){return _.u("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.u("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.u(_.el,{icon:function(){var t;return(t=A.data())==null?void 0:t.iconType},
className:function(){var t;switch((t=A.data())==null?void 0:t.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var t;return((t=A.data())==null?void 0:t.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.u("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.u(_.zL,{text:function(){var t;
return(t=A.data())==null?void 0:t.text},
className:function(){var t;return((t=A.data())==null?void 0:t.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Bd");var wPw=_.I(function(A){A=_.Sv(A,{config:void 0,themeOverride:void 0});var t=A.data,f=A.config,X=A.themeOverride;A={};A=_.Ao("ytmLpOfferCardOptionViewModelHost",(A.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var G;return(G=X())==null?void 0:G.useDarkTheme},A));
var Q=_.f1(function(){var G,N;(G=f())==null||(N=G.handleRadioButtonClick)==null||N.call(G,t());return!1}),q=function(){var G;
return(G=f())==null?void 0:G.shouldDisplayRadioButton},e=function(){var G;
return(G=t().featureListItems)!=null?G:[]};
return _.u("ytm-lp-offer-card-option-view-model",null,_.u("div",{class:A,"on:click":_.f1(function(){if(q()){var G,N;(G=f())==null||(N=G.handleRadioButtonClick)==null||N.call(G,t())}return!1})},_.u(_.P,{cond:q,
then:function(){return _.u("div",null,_.u("input",{type:"radio","on:click":Q,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var G;return!((G=f())==null||!G.isOptionSelected)}}))}}),_.u("div",null,_.u("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.u(_.zL,{text:function(){return t().eyebrowText}})),_.u("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.u(_.zL,{text:function(){return t().title}})),_.u("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.u(_.zL,
{text:function(){return t().subtitle}})),_.u(_.P,{cond:function(){return e().length>0},
then:function(){return _.u("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.u(_.P1,{data:e},{lpFeatureListItemViewModel:g2C}))}}),_.u("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.u(_.zL,{text:function(){return t().description}})))))},"Cd");
wPw.idomCompat=!0;var sTk=_.I(function(A){var t=A.data;var f=A.themeOverride;A=_.U(_.Jo(function(){var q,e=(q=t().offerOptions)==null?void 0:q[0];return _.C(e,kLp)||{}}));
var X=A.next().value,Q=A.next().value;A={};return _.u("ytm-lp-offer-card-view-model",null,_.u("div",{class:_.Ao("ytmLpOfferCardViewModelHost",(A.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(f==null||!f().useDarkTheme)},A))},_.u("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.u(_.P,{cond:function(){return t().titleIconType},
then:function(){return _.u("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.u(_.el,{icon:function(){var q;return((q=t().titleIconType)==null?void 0:q.toString())||""}}))}}),_.u("div",{class:"ytmLpOfferCardViewModelTitleText"},_.u(_.zL,{text:function(){return t().title}})),_.u(_.P1,{data:function(){return t().titleBadge}},{badgeViewModel:function(q){return _.u("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.u(_.Cj,{data:q.data}))}})),_.u("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.u(_.P1,{data:function(){return t().offerOptions}},{lpOfferCardOptionViewModel:function(q){var e=q.data;
return _.u(_.Tw,null,_.u("div",{class:"ytmLpOfferCardViewModelDivider"}),_.u(wPw,{data:e,config:function(){var G;return{shouldDisplayRadioButton:(t().offerOptions||[]).length>1,isOptionSelected:e().id===((G=X())==null?void 0:G.id),handleRadioButtonClick:function(N){return void Q(N)}}},
themeOverride:f}))}})),_.u("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.u(_.P1,{data:function(){var q;
return(q=X())==null?void 0:q.purchaseButtonOverride}},{buttonViewModel:_.nx}))))},"Dd");
sTk.idomCompat=!0;var k1f=_.I(function(A){var t=A.data;var f=A.themeOverride;A={};A=_.Ao("ytmLpOfferCardSectionViewModelHost",(A.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var X;return f==null?void 0:(X=f())==null?void 0:X.useDarkTheme},A));
return _.u("ytm-lp-offer-card-section-view-model",null,_.u("div",{class:A},_.u(_.P,{cond:function(){return t().title!==void 0},
then:function(){return _.u("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.u("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.u(_.zL,{text:function(){return t().title}})),_.u(_.P,{cond:function(){return t().subtitle},
then:function(){return _.u("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.u(_.zL,{text:function(){return t().subtitle}}))}}))}}),_.u("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.u(_.P1,{data:function(){return t().offerCards}},{lpOfferCardViewModel:function(X){return _.u("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.u(sTk,{data:X.data,
themeOverride:f}))}})),_.u(_.P,{cond:function(){return t().footer},
then:function(){return _.u("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.u(_.zL,{text:function(){return t().footer}}))}})))},"Ed");var r3T=_.I(function(A){var t=A.data;return _.u("lp-offer-table-cell-content-view-model",null,_.u("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.u(_.j2,null,_.u(_.FE,{when:function(){return t().title}},function(){return _.u(_.zL,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return t().title}})}),_.u(_.FE,{when:function(){return t().subTitle}},function(){return _.u(_.zL,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return t().subTitle}})}),_.u(_.FE,{when:function(){return t().featureDescription}},function(){return _.u(_.zL,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return t().featureDescription}})}),_.u(_.FE,{when:function(){return t().description}},function(){return _.u(_.zL,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return t().description}})}),_.u(_.FE,{when:function(){return t().iconType}},function(){return _.u("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.u(_.el,{icon:function(){return t().iconType.toString()}}))}),_.u(_.FE,{when:function(){return t().purchaseButton}},function(){return _.u(_.P1,{data:function(){return t().purchaseButton}},{buttonViewModel:function(f){return _.u("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.u(_.nx,
{data:f.data}))}})}),_.u(_.FE,{when:function(){return t().note}},function(){return _.u(_.zL,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return t().note}})}),_.u(_.FE,{when:function(){return t().featureDetail}},function(){return _.u(_.zL,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return t().featureDetail}})}),_.u(_.FE,{when:function(){return t().badge}},function(){return _.u(_.P1,{data:function(){return t().badge}},{badgeViewModel:_.Cj})}))))},"Fd");
r3T.idomCompat=!0;var AQf=_.I(function(A){var t=A.data;return _.u("lp-offer-table-cell-view-model",null,_.u("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(t().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;"}}},_.u(_.P1,{data:function(){return t().contents}},{lpOfferTableCellContentViewModel:r3T})))},
"Gd");
AQf.idomCompat=!0;var tpk=_.I(function(A){var t=A.data;var f=A.lpTableIsFirstRow;var X=A.lpTableIsLastRow;var Q=function(){return(f==null?0:f())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},q=function(){return(f==null?0:f())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(X==null?0:X())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.u("ytm-lp-offer-table-row-view-model",null,_.u("div",{class:"ytLpOfferTableRowViewModelHost"},_.u(_.P1,{data:function(){return t().rowHeaderCell}},{lpOfferTableCellViewModel:function(e){return _.u("div",{class:Q},_.u(AQf,{data:e.data}))}}),_.u(_.P1,{data:function(){return t().contentCells}},{lpOfferTableCellViewModel:function(e){return _.u("div",{class:q},_.u(AQf,{data:e.data}))}})))},"Hd");
tpk.idomCompat=!0;var faf=_.I(function(A){var t=A.data;var f=A.themeOverride;var X=_.Px().resolve(_.z7(_.FH)),Q=function(){return _.C(t().logo,BgE)||{}};
A={};return _.u("ytm-lp-offer-table-section-view-model",null,_.u("div",{class:"ytLpOfferTableViewModelHost"},_.u(_.P,{cond:function(){var q,e;return X&&X()||(f==null?0:f().useDarkTheme)?(q=Q())==null?void 0:q.imageDark:(e=Q())==null?void 0:e.imageLight},
then:function(q){return _.u(_.YA,{data:q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var e,G,N;return(N=(e=Q())==null?void 0:(G=e.accessibilityData)==null?void 0:G.label)!=null?N:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.u(_.zL,{text:function(){return t().title}})),_.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.u(_.zL,{text:function(){return t().subtitle}})),_.u(_.P,{cond:function(){return t().disclaimers},
then:function(q){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.u(_.xk,{each:q},function(e){return _.u("div",null,_.u(_.zL,{text:e}))}))}}),_.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.u(_.P1,{data:function(){return t().rows}},{lpOfferTableRowViewModel:function(q,e){return _.u(tpk,{data:q.data,
lpTableIsFirstRow:function(){return e()===0},
lpTableIsLastRow:function(){return e()===t().rows.length-1}})}})),_.u("div",{class:_.Ao((A.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return t().hasFooterBackground},A))},_.u(_.P,{cond:function(){return t().footer},
then:function(){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.u(_.zL,{text:function(){return t().footer}}))}}),_.u(_.P,{cond:function(){return t().footerTitle},
then:function(){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.u(_.zL,{text:function(){return t().footerTitle}}))}}),_.u(_.P,{cond:function(){return t().footerDescription},
then:function(){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.u(_.zL,{text:function(){return t().footerDescription}}))}}),_.u(_.P,{cond:function(){return t().footerDescriptions},
then:function(q){return _.u("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.u(_.xk,{each:q},function(e){return _.u("div",null,_.u(_.zL,{text:e}))}))}}))))},"Id");
faf.idomCompat=!0;var XJf=_.I(function(A){var t=A.data;var f=A.themeOverride;var X=_.Px().resolve(_.z7(_.FH)),Q=function(){var G;return f==null?void 0:(G=f())==null?void 0:G.useDarkTheme},q=function(){var G,N;
return X&&X()||Q()?(G=t().image)==null?void 0:G.imageDark:(N=t().image)==null?void 0:N.imageLight};
A={};A=_.Ao("ytmLpSmallFeatureSectionViewModelHost",(A.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=Q,A));var e=function(){var G,N,z;return(z=(G=t().image)==null?void 0:(N=G.accessibilityData)==null?void 0:N.label)!=null?z:""};
return _.u("ytm-lp-small-feature-section-view-model",{class:A},_.u(_.P,{cond:function(){return q()&&!XZu},
then:function(){return _.u("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.u(_.YA,{data:function(){return q()},
alt:e,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.u("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.u("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.u(_.P,{cond:function(){return t().title},
then:function(G){return _.u(_.zL,{text:G})}})),_.u("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.u(_.zL,{text:function(){return t().description}}))))},"Jd");
XJf.idomCompat=!0;var Q3w=_.I(function(A){var t=A.data;var f=A.themeOverride;A={};return _.u("ytm-lp-small-feature-section-group-view-model",null,_.u("div",{class:_.Ao("ytmLpSmallFeatureSectionGroupViewModelHost",(A.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(f==null||!f().useDarkTheme)},A))},_.u("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.u(_.P1,{data:function(){return t().smallFeatures}},{lpSmallFeatureSectionViewModel:function(X){return _.u("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.u(XJf,{data:X.data,
themeOverride:f}))}}))))},"Kd");
Q3w.idomCompat=!0;_.Hn(_.I(function(A){var t=A.data;var f=function(){return t().forcedTheme==="USER_INTERFACE_THEME_DARK"},X=function(){return t().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Q=function(){var e="",G,N;
var z=_.Px().resolve(_.z7(_.FH));z=f()||(z==null?0:z())?(G=t().themedImageViewModel)==null?void 0:G.imageDark:(N=t().themedImageViewModel)==null?void 0:N.imageLight;(G=t60((z==null?void 0:z.sources)||[]))&&G.url&&(e=X()?"background-image: linear-gradient(to bottom, transparent, "+(t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.of(G.url)+");":"background-image: url("+_.of(G.url)+");");return e},q=function(){return{useDarkTheme:f()}};
A={};return _.u("yt-section-group-view-model",null,_.u("div",{class:_.Ao("yt-lp-section-group-view-model",(A["yt-lp-section-group-view-model--premium-force-dark-mode"]=f,A["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},A))},_.u(_.P,{cond:function(){return Q().length},
then:function(){var e={};return _.u("div",{class:_.Ao("yt-lp-section-group-view-model__bg-image",(e["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=X,e)),style:Q})}}),_.u("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.u(_.P1,{data:function(){return t().sections}},{lpHeaderUpsellBannerViewModel:function(e){return _.u(Hzf,{data:e.data})},
lpFaqSectionViewModel:function(e){return _.u(SfC,{data:e.data,themeOverride:q})},
lpHeaderSectionViewModel:function(e){return _.u($Z7,{data:e.data,themeOverride:q})},
lpHeadlineSectionViewModel:function(e){return _.u(a88,{data:e.data,themeOverride:q})},
lpLargeFeatureSectionViewModel:function(e){return _.u(Kpf,{data:e.data,themeOverride:q})},
lpOfferCardSectionViewModel:function(e){return _.u(k1f,{data:e.data,themeOverride:q})},
lpComplexOfferCardSectionViewModel:function(e){return _.u(Vyi,{data:e.data})},
lpOfferTableSectionViewModel:function(e){return _.u(faf,{data:e.data,themeOverride:q})},
lpSmallFeatureSectionGroupViewModel:function(e){return _.u(Q3w,{data:e.data,themeOverride:q})},
lpCouponBannerViewModel:function(e){return _.u(Zzb,{data:e.data})}}))))},"Ld"),"yt-section-group-view-model",{props:{data:_.PS}});_.qeb=_.I(function(A){var t=_.Nt(c6p,function(){var e;return(e=A.data())==null?void 0:e.chipBarStateEntityKey}),f=function(){return A.data().disableDeselection},X=_.U(_.Jo(function(){var e;
if(((e=t())==null?void 0:e.selectedIndex)!=void 0)return t().selectedIndex;var G,N;e=_.U(((G=A.data())==null?void 0:(N=G.chips)==null?void 0:N.entries())||[]);for(G=e.next();!G.done;G=e.next()){G=_.U(G.value);N=G.next().value;G=G.next().value;var z=void 0;if((z=_.C(G,_.PX))==null?0:z.selected)return N}return-1})),Q=X.next().value,q=X.next().value;
return _.u("chip-bar-view-model",{class:_.Ao("ytChipBarViewModelHost",A.className),role:"tablist"},_.u(_.P1,{data:function(){return A.data().chips}},{chipViewModel:function(e,G){return _.u("div",{class:"ytChipBarViewModelChipWrapper"},_.u(_.nel,{data:e.data,
selected:function(){return G()===Q()},
callback:function(N,z){N=!!z;z=G();q(N?z:-1);var T,O=(T=A.data())==null?void 0:T.chipBarStateEntityKey;O&&N&&_.og(_.Ta("chipBarStateEntity",O,{key:O,selectedIndex:z}))},
disableDeselection:A.disableDeselection||f}))}}))},"Md");_.Hn(_.qeb,"chip-bar-view-model",{props:{data:_.dt,className:_.dt,disableDeselection:_.dt}});_.JQw=_.I(function(A){var t=A.data;A={};return _.u("divider-view-model",{class:_.Ao("dividerViewModelHost",(A.dividerViewModelInsetThinPadding=function(){return t().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},A))},_.u("div",{class:_.Ao("dividerViewModelBaseDivider",function(){return BYl(t().dividerStyle)})}))},"Nd");
_.JQw.idomCompat=!0;_.Hn(_.JQw,"divider-view-model",{props:{data:_.PS}});var Na=new Map,uM=new Map,htb=0,zq;var vr5=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],Erb={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var UD8,eu8;UD8=function(A){return function(t){return function(){return(t==null?void 0:t())!==void 0?String(t())+A:void 0}}};
_.lq=UD8("px");eu8=UD8("s");var Gg7=OCx(function(A){return A.targetGroupId}).useUpdatableData;_.N5=_.I(function(A){function t(Gz){return function(){var Tz=L().numItemsPerGridRow,y5=Gz()*Tz;Tz=y5+Tz;var cp,iu;return(iu=(cp=X().contents)==null?void 0:cp.slice(y5,Tz))!=null?iu:[]}}
var f=_.Sv(A,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),X=f.data,Q=f.layoutContainerWidth,q=f.shouldUseOwnContainerSize,e=f.marginSettings,G=f.useUpdatedMargin,N=tZx(),z=_.U(Gg7(function(){var Gz,Tz;return{targetGroupId:(Gz=X().targetingContext)==null?void 0:(Tz=Gz.targetGroupId)==null?void 0:Tz[0]}})).next().value;
f=_.U(_.hZ(!0,void 0,"lKny6d"));var T=f.next().value,O=f.next().value,c=function(){var Gz,Tz=(Gz=_.C(X().showMoreButton,_.zf))==null?void 0:Gz.trackingParams;Tz&&_.Zv(_.er(),Tz);O(!1)},B=function(){var Gz,Tz=(Gz=_.C(X().showLessButton,_.zf))==null?void 0:Gz.trackingParams;
Tz&&_.Zv(_.er(),Tz);O(!0)};
f=_.U(_.P$({canHaveZeroSize:!1}));var h=f.next().value;f=f.next().value;var W=function(){var Gz;return(Gz=X().contentAspectRatio)!=null?Gz:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},L=_.yq(function(){var Gz=q()&&h.width()>0?h.width()||Q():Q(),Tz,y5=(Tz=A.data())==null?void 0:Tz.responsiveContainerConfiguration;
Gz=_.nW({containerWidth:Gz,sizing:y5?DB(y5==null?void 0:y5.responsiveSize):"EXTRA_COMPACT",marginSettings:e(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:Gz.maxContainerWidth,numItemsPerGridRow:Gz.numItems,contentPadding:q()?Gz.margin:Gz.contentMargin,itemWidth:Gz.itemWidth,itemMargin:Gz.gutter/2}},void 0,"XYkF9e"),E=function(){if(X().enableVerticalExpansion){if(T())return D();
var Gz,Tz,y5=(Tz=(Gz=X().contents)==null?void 0:Gz.length)!=null?Tz:0;return Math.ceil(y5/L().numItemsPerGridRow)}return L().numItemsPerGridRow<=2?2:1},D=function(){var Gz;
return Math.ceil(((Gz=X().minCollapsedItemCount)!=null?Gz:1)/L().numItemsPerGridRow)},S=function(){return X().enableVerticalExpansion&&X().showLessButton&&!T()&&E()>D()},Z=function(){var Gz,Tz;
return X().enableVerticalExpansion&&X().showMoreButton&&T()&&((Tz=(Gz=X().contents)==null?void 0:Gz.length)!=null?Tz:0)>L().numItemsPerGridRow*D()},d=function(){return!S()},K=function(){return!Z()},k={};
return _.u("grid-shelf-view-model",{class:_.Ao("ytGridShelfViewModelHost",A.className,(k.ytGridShelfViewModelHostHasBottomButton=function(){return S()||Z()},k.ytGridShelfViewModelHostIsDismissed=function(){var Gz,Tz=(Gz=z())!=null?Gz:{};
Gz=Tz.behavior;var y5=Tz.isDismissed,cp=Tz.stamperContextTargetId;Tz=Tz.stamperIndex;if(!(_.M("mweb_see_fewer_shorts_group_dismissal")&&y5&&Gz&&cp))return!1;var iu;y5=N;for(var Fb,xq,Yq=((Fb=y5)==null?0:Fb.targetId)?_.$f((xq=y5)==null?void 0:xq.targetId):void 0;((iu=y5)==null?0:iu.parent)&&Yq!==cp;)y5=y5.parent,xq=Fb=void 0,Yq=((Fb=y5)==null?0:Fb.targetId)?_.$f((xq=y5)==null?void 0:xq.targetId):void 0;iu=Yq===cp?y5:void 0;if(!iu)return!1;var zk;cp=iu==null?void 0:(zk=iu.stamperIndex)==null?void 0:
zk.call(iu);return Gz==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||Gz==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&cp!=null&&Tz!=null&&cp>Tz},k.ytGridShelfViewModelHostOptionalMediumLayoutMargin=G,k)),
el:_.ZY(f),style:_.U7({"margin-left":(0,_.lq)(function(){return L().contentPadding}),
"margin-right":(0,_.lq)(function(){return L().contentPadding})})},_.u(_.P,{cond:function(){return _.C(X().header,mTp)},
then:function(Gz){return _.u(_.SB,{data:Gz,useUpdatedPadding:G,disableHorizontalPadding:!0})}}),_.u("div",null,_.u(_.xk,{each:function(){return Array(E())}},function(Gz,Tz){return _.u(lal,{className:A.className,
items:t(Tz),responsiveGridShelfLayout:L,contentAspectRatio:W})})),_.u("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.u(_.P1,{data:function(){return X().showMoreButton}},{buttonViewModel:function(Gz){return _.u("div",{hidden:K},_.u(_.nx,{data:Gz.data,
onClick:c}))}}),_.u(_.P1,{data:function(){return X().showLessButton}},{buttonViewModel:function(Gz){return _.u("div",{hidden:d},_.u(_.nx,{data:Gz.data,
onClick:B}))}})))},"Pd");
_.N5.idomCompat=!0;var lal=_.I(function(A){var t=A.items;var f=A.responsiveGridShelfLayout;var X=A.contentAspectRatio;A=A.className;var Q=_.GU("div");C9u(Q,function(){a:{var e=Q.value;for(var G=t(),N=[],z=0;z<G.length;z++){var T=_.C(G[z],X4T);if(!T||T==null||!T.inlinePlayerData){e=null;break a}var O=e.children.item(z);if(!O){e=null;break a}N.push({thumbnailElement:O,videoData:T})}e={gridVideoPreviewData:{gridItems:N}}}return e});
var q=(0,_.lq)(function(){return-f().itemMargin});
return _.u("div",{el:Q,class:_.Ao("ytGridShelfViewModelGridShelfRow",A),style:_.U7({"margin-left":q,"margin-right":q})},_.u(_.P1,{data:t,replacementWrapper:function(e){return _.u(NJf,{responsiveGridShelfLayout:f},e)}},{shortsLockupViewModel:function(e){return _.u(NJf,{responsiveGridShelfLayout:f},_.u(xol,{data:e.data,
aspectRatio:function(){return X()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.M("mweb_enable_one_line_title_on_shorts")?1:_.M("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(e){return _.u(NJf,{responsiveGridShelfLayout:f},_.u(_.VK,{data:e.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Qd"),NJf=_.I(function(A){return _.u("div",{style:_.U7({width:(0,_.lq)(function(){return A.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+A.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},A.children)},"Rd");
_.N5.idomCompat=!0;_.Hn(_.N5,"grid-shelf-view-model",{props:{data:_.PS,layoutContainerWidth:_.PS,shouldUseOwnContainerSize:_.PS,marginSettings:_.PS,useUpdatedMargin:_.PS,className:_.PS}});_.u2T=_.I(function(A){var t=_.U(_.hZ(!1,void 0,"FVl30c")),f=t.next().value,X=t.next().value;t={};return _.u("yt-alert-banner-view-model",{class:_.Ao("ytAlertBannerViewModelHost",A.className,function(){var Q;a:switch((Q=A.data())==null?void 0:Q.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Q="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Q="ytAlertBannerViewModelWarning";break a;default:Q="ytAlertBannerViewModelInformational"}return Q},(t.ytAlertBannerViewModelDismissed=
f,t.ytAlertBannerViewModelFullbleed=A.fullbleed,t.ytAlertBannerViewModelNarrow=A.narrow,t.ytAlertBannerViewModelIsInRichGrid=A.isInRichGrid,t))},_.u(_.P,{cond:function(){var Q;
return!((Q=A.data())==null?0:Q.hideIcon)},
then:function(){return _.u("div",{class:"ytAlertBannerViewModelIcon"},_.u(_.el,{icon:function(){return"info_circle"}}))}}),_.u("div",{class:"ytAlertBannerViewModelOuterContainer"},_.u("div",{class:"ytAlertBannerViewModelContainer"},_.u("div",{class:"ytAlertBannerViewModelContent"},_.u("div",{class:"ytAlertBannerViewModelHeading"},_.u(_.zL,{text:function(){var Q;
return(Q=A.data())==null?void 0:Q.heading}})),_.u("div",{class:"ytAlertBannerViewModelBody"},_.u(_.zL,{text:function(){var Q;
return(Q=A.data())==null?void 0:Q.body}})))),_.u(_.P1,{data:function(){var Q;
return(Q=A.data())==null?void 0:Q.actionButton}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.u(_.P1,{data:function(){var Q;
return(Q=A.data())==null?void 0:Q.dismissButton}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var q;((q=A.data())==null?0:q.disableLocalDismissBehavior)||X(!0)}})}}))},"Sd");_.Hn(_.u2T,"yt-alert-banner-view-model",{props:{data:_.PS,fullbleed:_.PS,narrow:_.PS,isInRichGrid:_.PS,className:_.PS}});var zuK;_.PBl=_.I(function(A){return _.u("basic-content-view-model",{class:_.Ao("ytBasicContentViewModelHost",_.dR(A.className))},_.u(_.P,{cond:function(){return A.data().headline},
then:function(t){return _.u("div",{class:"ytBasicContentViewModelHeadline"},_.u(_.zL,{text:t}))}}),_.u(_.xk,{each:function(){return A.data().paragraphs||[]},
keyBy:"INDEX"},function(t){return _.u("div",{class:"ytBasicContentViewModelParagraph"},_.u(_.P,{cond:function(){var f=t();return!!(f.header||f.customHeader||f.headline)},
then:function(){return _.u(zuK,{paragraph:t})}}),_.u(_.P,{cond:function(){return t().asset||t().text},
then:function(){return _.u("div",{class:"ytBasicContentViewModelParagraphContent"},_.u(_.P,{cond:function(){return t().asset},
then:function(f){return _.u("div",{class:"ytBasicContentViewModelParagraphAsset"},_.u(_.P1,{data:f},{contentPreviewImageViewModel:_.nj}))}}),_.u(_.P,{cond:function(){return t().text},
then:function(f){return _.u("div",{class:"ytBasicContentViewModelParagraphText"},_.u(_.zL,{text:f}))}}))}}))}))},"Td");
zuK=_.I(function(A){var t=A.paragraph;return _.u(_.Tw,null,_.u(_.P,{cond:function(){return t().headline},
then:function(f){return _.u(_.zL,{text:f,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.u(_.P1,{data:function(){return t().header||t().customHeader}},{sectionHeaderViewModel:function(f){return _.u(_.SB,{data:f.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ud");_.TJk=_.I(function(A){function t(){var B,h;N((h=(B=Q)==null?void 0:B.isKeyBoardInUse())!=null?h:!1)}
function f(){N(!1)}
function X(){var B;return G()?(B=A.focusedClassName)==null?void 0:B.call(A):""}
var Q=_.Px().resolve(_.z7(_.mJ)),q=_.U(_.hZ(!1,void 0,"SgkTXc")),e=q.next().value;q=q.next().value;var G=e,N=q,z=function(){var B,h;return((B=A.toggleable)==null?0:B.call(A))?(h=A.toggled)==null?void 0:h.call(A):void 0},T=_.f1(function(B){var h,W=(h=A.command)==null?void 0:h.call(A);
W&&_.Px().resolve(_.i2).resolveCommand(W);var L;(L=A.onClick)==null||L.call(A,B)}),O=_.f1(t),c=_.f1(f);
return _.u(_.P,{cond:function(){var B;if(B=A.command){B=A.command();B=N30(B);var h=B.href;B=!(!B.navigatingCommand||!h)}return B},
then:function(){return _.u(_.bc,Object.assign({},{command:A.command,style:A.style,ariaDescribedby:A.ariaDescribedby,ariaHidden:A.ariaHidden,ariaLabel:A.ariaLabel,ariaLabelledby:A.ariaLabelledby,ariaSelected:A.ariaSelected,disabled:A.disabled,dir:A.dir,tabIndex:A.tabIndex,target:A.target,title:A.title,onClick:A.onClick},{className:_.Ao("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",A.className,function(){return X()}),
onFocusin:t,onFocusout:f,ariaCurrent:function(){var B,h;return(h=(B=A.ariaCurrent)==null?void 0:B.call(A))!=null?h:z()}}),A.children)},
else:function(){return _.u("button",{"on:click":T,"on:focusin":O,"on:focusout":c,class:_.Ao("ytButtonOrAnchorHost","ytButtonOrAnchorButton",A.className,function(){return X()}),
style:A.style,"aria-describedby":A.ariaDescribedby,"aria-hidden":A.ariaHidden,"aria-label":A.ariaLabel,"aria-labelledby":A.ariaLabelledby,"aria-pressed":z,dir:A.dir,disabled:A.disabled,tabindex:A.tabIndex,title:A.title},A.children)}})},"Vd");var i0k=_.I(function(A){A=_.Sv(A,{disabled:!1});var t=A.active,f=A.disabled;A={};A=_.Ao("ytSwitchShapeTrack",(A.ytSwitchShapeTrackActive=function(){return t()},A.ytSwitchShapeTrackDisabled=function(){return f()},A));
var X={};X=_.Ao("ytSwitchShapeKnob",(X.ytSwitchShapeKnobActive=function(){return t()},X));
return _.u("switch-shape",{class:"ytSwitchShapeHost"},_.u("div",{class:A}),_.u("div",{class:X}))},"Wd");var O0f=_.I(function(A){var t=_.Sv(A,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),f=t.data;A=t.className;var X=t.handleOnTapEventInParent,Q=t.parentActive,q=t.onTap;t=_.U(_.Jo(function(){var c;return(c=Q())!=null?c:f().switchedOnByDefault||!1}));
var e=t.next().value,G=t.next().value,N=function(){return f().isDisabled},z=_.GU("button");
t=_.f1(function(c){return c.key==="Enter"?(c.preventDefault(),z.value.click(),!1):!0});
var T=_.f1(function(c){if(f().handleOnTapEventInParent||X())return!0;if(N())return!1;if(q)return q(c),!0;FY0(f(),e(),c);G(!e());return!1}),O={};
O=_.Ao("ytSwitchButtonViewModelButton",(O.ytSwitchButtonViewModelTappable=function(){return!N()},O));
return _.u("switch-button-view-model",{class:_.Ao("ytSwitchButtonViewModelHost",A)},_.u("button",{el:z,class:O,"on:click":T,"on:keydown":t,"aria-label":function(){return e()?f().a11yLabelSwitchedOn:f().a11yLabelSwitchedOff},
"aria-checked":e,"aria-disabled":N,role:"switch"},_.u(i0k,{active:e,disabled:N})))},"Xd");var cQp=_.I(function(A){var t=A.data;var f=A.isLeading;var X=A.hideSelectionTextChevron;var Q=A.isToggled;var q=A.shouldNotFillIcon;var e=function(){if(f())var O=t().leadingImage;else{var c;O=(c=t().trailingImage)!=null?c:_.Fl(t().themedTrailingImage)}return O},G=function(){a:switch(t().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var O="expand_more";
break a;default:O="chevron_right"}return O};
A={};var N=_.Ao("yt-list-item-view-model__image-container",(A["yt-list-item-view-model__leading"]=f,A["yt-list-item-view-model__trailing"]=function(){return!f()},A)),z=_.Ao("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
A={};var T=_.Ao("yt-list-item-view-model__accessory",(A["yt-list-item-view-model__leading"]=f,A["yt-list-item-view-model__trailing"]=function(){return!f()},A));
return _.u(_.P,{cond:function(){var O=t(),c=f();return!!(c&&(O.leadingImage||O.leadingAccessory)||!c&&(O.trailingImage||O.trailingButton||O.trailingButtons||O.selectionText||O.themedTrailingImage||O.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.u(_.Tw,null,_.u(_.P,{cond:e,then:function(O){return _.u("div",{class:N,"aria-hidden":"true"},_.u(_.YA,{data:O,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var c=(f()?t().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":t().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?f()?jtl(t().leadingIconAccessorySize):jtl(t().trailingIconAccessorySize):void 0;return c},
className:z,isToggled:function(){return!(q==null?0:q())&&(Q==null?void 0:Q())}}))}}),_.u(_.P,{cond:function(){return f()&&t().leadingAccessory},
then:function(){return _.u("div",{class:N},_.u(_.P1,{data:function(){return t().leadingAccessory}},{avatarViewModel:function(O){return _.u(_.QK,{data:O.data,
avatarButtonCustomClassName:z})},
collectionThumbnailViewModel:function(O){return _.u(EUl,{data:O.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.u(_.P,{cond:function(){return!f()&&t().trailingButton},
then:function(){return _.u("div",{class:"yt-list-item-view-model__button-container"},_.u(_.P1,{data:function(){return t().trailingButton}},{buttonViewModel:function(O){return _.u(_.nx,{data:O.data,
className:T})}}))}}),_.u(_.P,{cond:function(){var O;
return!f()&&((O=t().trailingButtons)==null?void 0:O.buttons)},
then:function(){return _.u("div",{class:"yt-list-item-view-model__button-container"},_.u(_.P1,{data:function(){var O;return(O=t().trailingButtons)==null?void 0:O.buttons}},{buttonViewModel:function(O){return _.u(_.nx,{data:O.data,
className:T})},
accountLinkButtonViewModel:function(O){return _.u(cvp,{data:O.data,className:T})},
switchButtonViewModel:function(O){return _.u(O0f,{data:O.data,className:T})},
subscribeButtonViewModel:function(O){return _.u(_.Qj,{data:O.data,isOverlay:!1,animateWidth:!1,className:T})},
toggleButtonViewModel:function(O){return _.u(_.s$,{data:O.data,className:T})}}))}}),_.u(_.P,{cond:function(){return!f()&&!!t().selectionText},
then:function(){return _.u(_.Tw,null,_.u(_.zL,{text:function(){return t().selectionText},
className:_.Ao("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.u(_.P,{cond:function(){return!(X==null?0:X())},
then:function(){return _.u(_.el,{icon:G,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.u(_.P,{cond:function(){return!f()&&t().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.u("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"Yd");var BJS=_.I(function(A){var t=A.data;return _.u(_.P,{cond:function(){return t().title||t().subtitle},
then:function(){return _.u("div",{class:"yt-list-item-view-model__text-wrapper"},_.u(_.P,{cond:function(){return t().title},
then:function(f){return _.u("div",{class:"yt-list-item-view-model__title-wrapper"},_.u(_.zL,{text:f,className:"yt-list-item-view-model__title"}))}}),_.u(_.P,{cond:function(){return t().subtitle},
then:function(f){return _.u(_.zL,{text:f,className:"yt-list-item-view-model__subtitle"})}}))}})},"Zd");var Mpp=_.I(function(A){var t=A.data;var f=A.hideSelectionTextChevron;var X=A.TrailingAccessory;var Q=A.isToggled;var q=A.disabled;var e=A.isSelectItem;var G=A.isCompact;var N=A.inPopup;var z=A.disableHorizontalPadding;var T=A.isTappableWithoutSelect;var O=A.useButtonOrAnchor;var c=A.onTap;var B=A.shouldNotFillIcon;var h=function(){return _.u(BJS,{data:t,onTap:c,useButtonOrAnchor:O,isTappableWithoutSelect:T,isToggled:Q})};
A={};return _.u("div",{class:_.Ao("yt-list-item-view-model__label",(A["yt-list-item-view-model__container"]=function(){return!(e==null?0:e())},A["yt-list-item-view-model__container--disabled"]=function(){return!!t().isDisabled||!(q==null||!q())},A["yt-list-item-view-model__container--has-subtitle"]=function(){return!!t().subtitle},A["yt-list-item-view-model__container--compact"]=G,A["yt-list-item-view-model__container--tappable"]=T,A["yt-list-item-view-model__container--in-popup"]=N,A["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(z==null?void 0:z())&&!(e==null?0:e())},A))},_.u(cQp,{data:t,
isLeading:!0,hideSelectionTextChevron:f,isToggled:Q,shouldNotFillIcon:B}),_.u(_.P,{cond:function(){return(O==null?void 0:O())&&(T==null?void 0:T())},
then:function(){return _.u(_.TJk,{command:function(){return _.mL(t().rendererContext)},
onClick:c,className:"yt-list-item-view-model__button-or-anchor",toggleable:Q!==void 0,toggled:Q},_.u(h,null))},
else:function(){return _.u(h,null)}}),_.u(_.P,{cond:function(){return!!X},
then:function(){return _.u("div",{class:"yt-list-item-view-model__trailing"},X&&_.u(X,null))},
else:function(){return _.u(cQp,{data:t,isLeading:!1,hideSelectionTextChevron:f,isToggled:Q,shouldNotFillIcon:B})}}))},"$d");var huT=_.I(function(A){var t=_.Sv(A,{checked:!1});A=t.name;var f=t.onChange,X=t.onClick,Q=t.checked,q=t.labelRenderable,e=t.hasLeadingLabel,G=t.labelClass,N=t.isCompact,z=t.selectElementClass;t=t.disableHorizontalPadding;var T="checkbox"+_.ZW(_.GN),O=_.f1(function(h){X==null||X(h);return!1}),c=_.f1(function(h){f==null||f(h);
return!1}),B={};
return _.u("checkbox-shape",null,_.u("label",{class:_.Ao("ytCheckboxShapeHost",G,(B.ytCheckboxShapeHostCompact=N,B.ytCheckboxShapeDisableHorizontalPadding=t,B))},_.u("input",{class:"ytCheckboxShapeInput",id:T,checked:Q,name:A,type:"checkbox","prop:checked":Q,"on:change":c,"on:click":O}),_.u(_.P,{cond:function(){return!(e==null?0:e())},
then:function(){return _.u(CBl,{isLeading:!0,selectElementClass:z})}}),_.u(_.P,{cond:function(){return!!q},
then:function(){return _.u("div",{class:"ytCheckboxShapeLabel"},q==null?void 0:q())}}),_.u(_.P,{cond:e,
then:function(){return _.u(CBl,{isLeading:!1,selectElementClass:z})}})))},"ae");
huT.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var CBl=_.I(function(A){var t=A.selectElementClass;A={};return _.u("div",{class:_.Ao("ytCheckboxShapeCheckbox",t,(A.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(t==null?0:t())},A)),
"aria-hidden":"true"},_.u(_.el,{icon:_.M("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.u(_.el,{icon:_.M("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"be");_.uq=_.I(function(A){var t=A.name;var f=A.onChange;var X=A.onClick;var Q=A.checked;var q=A.labelRenderable;var e=A.useCheckIcon;var G=A.hasLeadingLabel;var N=A.labelClass;var z=A.isCompact;var T=A.selectElementClass;var O=A.ariaLabel;A=A.className;var c="radio"+_.ZW(_.GN),B=_.GU("input"),h=_.f1(function(K){B.value.checked=!(Q==null||!Q());f==null||f(K);return!1}),W=_.f1(function(K){X==null||X(K);
return!1}),L=_.f1(function(K){_.M("enable_ios_webview_radio_button_responsiveness")&&(K.preventDefault(),B.value.click())}),E=_.U(_.hZ(!1,void 0,"TcCZlf")),D=E.next().value,S=E.next().value;
E=_.f1(function(){var K;((K=_.Px().resolve(_.z7(_.mJ)))==null?0:K.isKeyBoardInUse())&&S(!0)});
var Z=_.f1(function(){S(!1)}),d={};
return _.u("radio-shape",{class:_.Ao("yt-radio-shape",A)},_.u("input",{el:B,class:"yt-radio-shape__input",id:c,"prop:checked":Q,name:t,type:"radio","on:change":h,"on:click":W,"aria-label":O,"on:focusin":E,"on:focusout":Z}),_.u("label",{class:_.Ao("yt-radio-shape__label-container",N,(d["yt-radio-shape--compact"]=z,d["yt-radio-shape__label-container--keyboard-focused"]=D,d)),for:c,"on:click":L},_.u(_.P,{cond:function(){return!(G==null?0:G())},
then:function(){return _.u(RuS,{checked:Q,useCheckIcon:e,isLeading:!0,selectElementClass:T})}}),_.u(_.P,{cond:function(){return!!q},
then:function(){return _.u("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(O==null?0:O())?"true":"false"}},q==null?void 0:q())}}),_.u(_.P,{cond:G,
then:function(){return _.u(RuS,{checked:Q,useCheckIcon:e,isLeading:!1,selectElementClass:T})}})))},"ce");
_.uq.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var RuS=_.I(function(A){var t=A.useCheckIcon;var f=A.selectElementClass;A=function(){return(t==null?0:t())?"CHECK":_.M("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var X={};return _.u("div",{class:_.Ao("yt-radio-shape__radio",f,(X["yt-radio-shape__radio--check-icon"]=t,X["yt-radio-shape__radio--radio-default-style"]=function(){return!(f==null?0:f())},X)),
"aria-hidden":"true"},_.u(_.el,{icon:A}),_.u(_.el,{icon:A,active:function(){return!(t==null?0:t())}}))},"de");_.zN=_.I(function(A){var t=A.data;var f=A.isMenuItem;var X=A.isCompact;var Q=A.onTap;var q=A.trailingAccessory;var e=A.hideSelectionTextChevron;var G=A.disabled;var N=A.inPopup;var z=A.disableHorizontalPadding;var T=A.isOverlay;var O=A.isToggled;var c=A.ariaLabel;var B=A.ariaPressed;var h=A.shouldNotFillIcon;var W=!_.M("web_enable_killswitch_for_selectable_list_item_on_tap_fix");A=!_.M("web_enable_killswitch_for_skip_child_tags");var L=_.um(function(zk){return YZx(t(),zk)}),E=function(){return(z==
null?void 0:z())||t().disableHorizontalPadding},D=function(){return _.M("enable_web_shorts_captions_language_command")||_.M("web_shorts_audio_track_picker")||t().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},S=function(){return D()?Object.assign({},t(),L().data):t()},Z=_.Z50(function(){return S().rendererContext}),d=function(){return!(S().isSelected===void 0||!S().selectionStyle||S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},K=function(){return(_.bj(S().rendererContext)||
Q)&&!d()},k={},Gz=_.Ao("yt-list-item-view-model__container",(k["yt-list-item-view-model__container--tappable"]=function(){return _.bj(S().rendererContext)||d()},k["yt-list-item-view-model__container--compact"]=X,k["yt-list-item-view-model__container--in-popup"]=N,k["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(E==null?void 0:E())&&d()},k)),Tz=function(){return S().leadingImage||S().leadingAccessory},y5=_.Ao("yt-list-item-view-model__image-container",function(){return Tz()?
"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
k=_.jEg();var cp=_.U(_.hZ(!1,void 0,"w9yOLe")),iu=cp.next().value,Fb=cp.next().value,xq=function(){return _.u(Mpp,{data:S,hideSelectionTextChevron:e,TrailingAccessory:q,isToggled:O,disabled:G,isSelectItem:d,isCompact:X,inPopup:N,disableHorizontalPadding:E,isTappableWithoutSelect:K,useButtonOrAnchor:Yq,onTap:Q,shouldNotFillIcon:h})},Yq=_.M("web_button_or_anchor_list_item");
cp={};return _.u("yt-list-item-view-model",{el:_.ZY(_.W1(function(){return S().rendererContext},void 0,void 0,Yq?["A".toString(),
"BUTTON".toString()]:[]),Vwx(function(zk){var PT;if(PT=W)PT=S().selectionStyle,PT=PT==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||PT==="LIST_ITEM_SELECTION_STYLE_RADIO"||PT==="LIST_ITEM_SELECTION_STYLE_DEFAULT";PT||Q==null||Q(zk)},A?["A".toString(),
"BUTTON".toString()]:[]),sEp(function(){return K==null?void 0:K()},{focusin:function(){var zk;
((zk=_.Px().resolve(_.z7(_.mJ)))==null?0:zk.isKeyBoardInUse())&&Fb(!0)},
focusout:function(){Fb(!1)}})),
class:_.Ao("yt-list-item-view-model",(cp["yt-list-item-view-model--is-overlay"]=T,cp["yt-list-item-view-model--keyboard-focused"]=iu,cp["yt-list-item-view-model--hidden"]=function(){return D()?L().isHidden:!1},cp)),
role:function(){return(f==null?0:f())?"menuitem":"listitem"},
tabindex:function(){var zk=K();zk=Yq?void 0:Q||zk?0:void 0;return zk},
"on:keydown":k,"aria-label":function(){var zk;return(c==null?void 0:c())||((zk=Z())==null?void 0:zk.label)},
"aria-pressed":B},_.u(_.P,{cond:d,then:function(){return _.u(_.j2,null,_.u(_.FE,{when:function(){return S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.u(huT,{labelRenderable:xq,
isCompact:X,checked:function(){return S().isSelected},
hasLeadingLabel:function(){return!!Tz()},
labelClass:Gz,selectElementClass:y5,disableHorizontalPadding:E,onClick:W?Q:void 0})}),_.u(_.FE,{when:function(){return S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.u(_.uq,{labelRenderable:xq,
isCompact:X,checked:function(){return S().isSelected},
hasLeadingLabel:function(){return!!Tz()},
labelClass:Gz,selectElementClass:y5,onClick:W?Q:void 0})}),_.u(_.FE,{when:function(){return S().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.u(_.uq,{labelRenderable:xq,
isCompact:X,checked:function(){return S().isSelected},
hasLeadingLabel:function(){return!!Tz()},
labelClass:Gz,selectElementClass:y5,useCheckIcon:!0,onClick:W?Q:void 0})}),_.u(_.Ih,null,xq))},
else:xq}))},"ee");
_.zN.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Pc=_.I(function(A){var t=_.U(_.P$({canHaveZeroSize:!1})),f=t.next().value;t=t.next().value;var X=function(){return r6x(f.width(),A.data().responsiveContainerConfiguration)||KYu(f.width(),A.data().linearLayoutContainerConfiguration)};
return _.u("yt-linear-layout-view-model",{el:_.ZY(t),class:"ytLinearLayoutViewModelHost"},_.u("div",{class:_.Ao("ytLinearLayoutViewModelContainer",function(){a:switch(A.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var Q="ytLinearLayoutViewModelHorizontal";break a;default:Q="ytLinearLayoutViewModelVertical"}return Q},function(){var Q=A.data().linearLayoutContainerConfiguration;
return Q?[$og(Q.flexDirection),H5u(Q.justifyContent),aR5(Q.alignItems)].join(" "):""}),
style:function(){var Q;var q=((Q=X())==null?void 0:Q.containerStyles)||{};return _.U7(q)()}},_.u(_.P1,{data:function(){return A.data().items},
wrapper:function(Q,q,e){return _.u("div",{style:function(){var G=e(),N;if((N=X())==null)G=void 0;else{var z=N.itemStyles,T=G===0,O,c;var B=(c=(O=A.data().items)==null?void 0:O.length)!=null?c:0;G=z.call(N,T,G===B-1)}return _.U7(G||{})()}},Q())}},{lockupViewModel:function(Q){return _.u(_.VK,{data:Q.data,
containerLayoutConfig:function(){var q;return(q=X())==null?void 0:q.containerLayoutConfig}})},
basicContentViewModel:_.PBl,linearLayoutViewModel:_.Pc,thumbnailViewModel:_.vM,descriptionPreviewViewModel:_.dZ,listItemViewModel:_.zN,sectionHeaderViewModel:_.SB})))},"fe");_.Hn(_.Pc,"yt-linear-layout-view-model",{props:{data:_.PS}});_.Hn(_.S9,"chips-shelf-view-model",{props:{data:_.PS,callback:_.dt,selectionBehavior:_.PS,disableChipsScrollAnimation:_.PS}});_.Hn(_.I(function(A){return _.u("yt-comment-filter-context-view-model",{class:_.Ao("ytCommentFilterContextHost",A.className)},_.u(_.zL,{text:function(){return A.data().text}}))},"ge"),"yt-comment-filter-context-view-model",{props:{data:_.PS,
className:_.dt}});_.mDp=_.I(function(A){var t=A.data;var f=A.onTap;var X=A.onSwitch;var Q=A.overrideDisabled;A=A.disableHorizontalPadding;var q=_.U(_.Jo(function(){var c;return((c=xo5(T()))==null?void 0:c.switchedOnByDefault)||!1})),e=q.next().value,G=q.next().value;
q=_.U(_.hZ(!1,void 0,"V0hCrd"));var N=q.next().value,z=q.next().value,T=function(){var c;if(!(c=t().switchButton)){var B=t();c=Q==null?void 0:Q();B={switchOnCommand:B.switchOnCommand,switchOffCommand:B.switchOffCommand,switchedOnByDefault:B.switchedOnByDefault,isDisabled:B.isDisabled,a11yLabelSwitchedOn:B.a11yLabelSwitchedOn,a11yLabelSwitchedOff:B.a11yLabelSwitchedOff};c!==void 0&&(B.isDisabled=c);c={switchButtonViewModel:B}}return c},O=function(c){var B=xo5(T());
!B||B.isDisabled||t().ignoreTapUntilCommandCompletes&&N()||(f==null||f(c),FY0(B,e(),c,t().ignoreTapUntilCommandCompletes,z),G(!e()),X==null||X(e()))};
return _.u("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.u(_.zN,{data:function(){return{title:t().title,subtitle:t().attributedSubtitle,leadingImage:t().leadingImage,leadingAccessory:t().leadingAccessory,isDisabled:t().isDisabled}},
onTap:O,isToggled:e,shouldNotFillIcon:!0,trailingAccessory:function(){return _.u(_.P1,{data:T},{switchButtonViewModel:function(c){return _.u(O0f,{data:c.data,parentActive:e,onTap:O})}})},
disableHorizontalPadding:A}))},"he");var b0K=_.I(function(A){var t=_.U(_.Jo(function(){var Q,q;return!!((Q=A.data())==null?0:(q=Q.initialState)==null?0:q.isToggled)})),f=t.next().value,X=t.next().value;
return _.u("toggleable-list-item-view-model",{el:_.ZY(_.W1(function(){return A.data().rendererContext},{onTap:function(Q,q){q();
X(!f())}})),
class:_.Ao("toggleableListItemViewModelHost",A.className)},_.u(_.P,{cond:function(){if(f()){var Q=A.data().toggledListItem;Q=_.C(Q,_.On)}else Q=A.data().defaultListItem,Q=_.C(Q,_.On);return Q},
then:function(Q){return _.u(_.zN,{data:Q,isToggled:f,ariaLabel:function(){var q=f()?A.data().toggledListItem:A.data().defaultListItem,e;q=(e=_.C(q,_.On))==null?void 0:e.rendererContext;var G;return(G=_.C(q,_.Tq))==null?void 0:G.label},
ariaPressed:function(){return f()}})}}))},"ie");var Wg8=_.e5("DOWNLOAD",{},"Download"),yQw=_.e5("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),vTT=_.e5("RETRY",{},"Retry"),LgT=_.e5("PAUSE_DOWNLOADING",{},"Pause downloading"),pJk=_.e5("RESUME_DOWNLOAD",{},"Resume download"),Ajx={text:Wg8,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},iM={text:yQw,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Xh5={text:vTT,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
tx5={text:LgT,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},fjb={text:pJk,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var ETC=_.I(function(A){var t=function(){var G=A.data();G=_.mL(G.rendererContext);var N;return(N=_.C(G,_.Ga))==null?void 0:N.videoId},f=_.um(function(G){var N=t(),z=Jjq(A.data());
return N?_.LZ(G,N):z?_.pZ(G,z):"TRANSFER_STATE_UNKNOWN"}),X=_.Nt(_.s4g,t),Q=_.um(function(G){return _.S$b(G,t(),Jjq(A.data()))}),q=function(){return qoq(f(),X(),_.mL(A.data().rendererContext),!!Jjq(A.data()))},e=function(){return Q()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.u("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:e},_.u(_.P,{cond:function(){return!e()},
then:function(){return _.u(_.P,{cond:q,then:function(G){return _.u(_.xk,{each:G},function(N){return _.u(_.zN,{data:N,isCompact:A.isCompact,isMenuItem:A.isMenuItem,inPopup:A.inPopup,disableHorizontalPadding:A.disableHorizontalPadding})})}})}}))},"je");
ETC.idomCompat=!0;_.nTT=_.I(function(A){var t=A.data;var f=A.isCompact;var X=A.hideSelectionTextChevron;var Q=A.inPopup;var q=A.isOverlay;var e=A.disableHorizontalPadding;var G=function(){return UOb(t())&&(Q==null?void 0:Q())},N=_.M("web_list_view_model_listbox_killswitch")?"menu":"listbox";
A=_.f1(function(T){if(Q!=null&&Q()&&_.M("web_enable_arrow_key_navigation_in_dropdown")){var O=_.Ul0(T.currentTarget),c=O.length;if(c!==0){var B=Array.prototype.indexOf.call(O,document.activeElement);switch(T.key){case "ArrowDown":T.preventDefault();var h;(h=O[(B+1)%c])==null||h.focus();break;case "ArrowUp":T.preventDefault();var W;(W=O[B===-1?c-1:(B-1+c)%c])==null||W.focus()}}}});
var z={};return _.u("yt-list-view-model",{class:_.Ao("ytListViewModelHost",(z.ytListViewModelHostKaiosSpatNav=XZu&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",z.ytListViewModelCollectionThumbnailClass=function(){return ljb(t())},z)),
role:function(){return G()?N:"list"},
style:_.U7({"max-height":function(){var T,O=(T=t())==null?void 0:T.visibleElementCount;if(O)return ljb(t())?(O+.5)*48+"px":(O+.5)*40+"px"}}),
"on:keydown":A},_.u(_.P1,{data:function(){return t().listItems}},{listItemViewModel:function(T){return _.u(_.zN,{data:T.data,
isMenuItem:G,isCompact:f,hideSelectionTextChevron:X,inPopup:Q,isOverlay:q,disableHorizontalPadding:e})},
toggleableListItemViewModel:function(T){return _.u(b0K,{data:T.data})},
downloadListItemViewModel:function(T){return _.u(ETC,{data:T.data,isMenuItem:G,isCompact:f,inPopup:Q,disableHorizontalPadding:e})},
switchListItemViewModel:function(T){return _.u(_.mDp,{data:T.data,disableHorizontalPadding:e})}}))},"ke");
_.nTT.idomCompat=!0;var DDT=_.I(function(A){var t=A.data;var f=A.isOverlay;A={};return _.u("yt-course-perks-view-model",{class:_.Ao("ytwCoursePerksViewModelHost",(A.ytwCoursePerksViewModelHostOverlay=f,A))},_.u("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.u(_.zL,{text:function(){return t().title}})),_.u("div",null,_.u(_.P,{cond:function(){return t().perks},
then:function(X){return _.u(_.nTT,{data:function(){return{listItems:X()}},
isCompact:!0,isOverlay:f})}})))},"le");_.Hn(DDT,"yt-course-perks-view-model",{props:{data:_.dt,isOverlay:_.dt}});_.Hn(_.I(function(A){var t=A.data;return _.u("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.u("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.u(_.zL,{text:function(){return t().title}})),_.u("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.u(_.zL,{text:function(){return t().progressSummary}})),_.u("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.u("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.U7({width:function(){return t().progressPercentage*100+"%"}})})))},"me"),"yt-course-progress-view-model",{props:{data:_.PS}});var Fgk=_.I(function(A){var t={};return _.u("yt-progress-view-model",{class:_.Ao("ytwProgressViewModelHost",(t.ytwProgressViewModelHostOverlay=_.dR(A.isOverlay,!1),t))},_.u(_.P,{cond:function(){return A.data().progressSummary},
then:function(f){return _.u("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.u(_.zL,{text:f}))}}),_.u("div",{class:"ytwProgressViewModelHostProgressContainer"},_.u(_.P,{cond:function(){return A.data().leadingLabel},
then:function(f){return _.u("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.u(_.zL,{text:f}))}}),_.u("div",{class:"ytwProgressViewModelHostProgressBar"},_.u("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(A.data().progressPercentage||0)*100+"%"}}))))},"ne");var TN=_.I(function(A){var t=A.starNumber;var f=A.data;var X=function(){var Q;return((Q=f())==null?void 0:Q.rating)||0};
return _.u(_.P,{cond:function(){return t()},
then:function(Q){return _.u(_.j2,null,_.u(_.FE,{when:function(){return X()>=Q()-.25}},function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.el,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.u(_.FE,{when:function(){return X()>=Q()-.75}},function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.el,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.u(_.Ih,null,function(){return _.u("div",{class:"ytStarRatingViewModelHostStar"},_.u(_.el,{icon:"STAR",
size:function(){return 24}}))}))}})},"oe"),Ia8=_.I(function(A){A=A.data;
return _.u("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.u(TN,{starNumber:1,data:A}),_.u(TN,{starNumber:2,data:A}),_.u(TN,{starNumber:3,data:A}),_.u(TN,{starNumber:4,data:A}),_.u(TN,{starNumber:5,data:A}))},"pe");_.Hn(_.I(function(A){var t=_.Sv(A,{}).data;return _.u("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.u("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.u(_.zL,{text:function(){var f;return(f=t())==null?void 0:f.title}})),_.u("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.u(_.P,{cond:function(){return t().starProgressViewModels},
then:function(f){return _.u("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.u(_.P1,{data:f},{progressViewModel:Fgk}))}}),_.u("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.u("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.u(_.zL,{text:function(){var f;
return(f=t())==null?void 0:f.averageRatingLabel}})),_.u(_.P,{cond:function(){return t().zeroStateText},
then:function(f){return _.u("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.u(_.zL,{text:f}))}}),_.u(_.P,{cond:function(){return t().starRatingViewModel},
then:function(f){return _.u("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.u(_.P1,{data:f},{starRatingViewModel:Ia8}))}}),_.u("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.u(_.zL,{text:function(){var f;
return(f=t())==null?void 0:f.totalRatingsCountLabel}})))))},"qe"),"yt-course-ratings-view-model",{props:{data:_.dt}});var xDT;xDT={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.j3E=_.I(function(A){var t=_.GU("yt-learning-journey-loader-view-model"),f=_.Un();_.Zk(function(){requestAnimationFrame(function(){var Q;(Q=f.lottieEl)==null||Q.addEventListener("DOMLoaded",function(){var q;(q=A.onLottieLoaded)==null||q.call(A)})});
var X=A.data().browseEndpoint;X&&_.LI(X)});
return _.u("yt-learning-journey-loader-view-model",{class:_.Ao("learningJourneyLoaderViewModelHost",A.className),"data-target-id":function(){return A.data().targetId||""},
el:t},_.u(_.Ya,{className:_.Ao("learningJourneyLoaderViewModelLoader",A.className),animationName:function(){return xDT.animationConfig.name},
data:xDT,animationRef:f}))},"se");_.Hn(_.j3E,"yt-learning-journey-loader-view-model",{props:{data:_.PS,className:_.dt,onLottieLoaded:_.dt}});var u65=new Set,Nmg=null;var Yef=_.I(function(A){var t=void 0,f=function(){return A.data()},X=function(){return!!_.B$(_.Oj(f())).optionColor},Q=_.U(_.hZ(-1,void 0,"eTdwcb")),q=Q.next().value,e=Q.next().value,G=function(c){return q()===c},N=function(c){return f().correctAnswerIndex===c},z=function(){return q()!==-1};
Q=_.U(_.hZ("",void 0,"QwJs6"));var T=Q.next().value,O=Q.next().value;return _.u("learning-journey-quiz-view-model",{class:_.Ao("learningQuizComponentHost","learningJourneyQuizYoututorHost",A.className),style:_.U7({background:function(){return _.B$(_.Oj(f())).backgroundColor}})},_.u("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},T),_.u("div",{class:"learningQuizComponentQuizContainer"},_.u("div",{class:"learningQuizComponentQuiz"},_.u("div",{class:"learningQuizComponentQuizContent"},_.u(_.P,{cond:function(){return!!f().aiGeneratedQuizLabel},
then:function(){return _.u("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.u(_.zL,{text:function(){return f().aiGeneratedQuizLabel}}))}}),_.u("div",{class:"learningQuizComponentQuizHeader",
style:_.U7({"align-items":function(){return f().overflowMenu?"start":"center"}})},_.u("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.U7({"min-height":function(){return f().overflowMenu?"48px":"26px"}})},_.u("div",{class:"learningJourneyQuizYoututorText",
style:_.U7({color:function(){return _.B$(_.Oj(f())).primaryTextColor}})},_.u(_.zL,{text:function(){return f().questionHeaderText}})))),_.u("div",{class:"learningQuizComponentQuizSubheader",
style:_.U7({color:function(){return _.B$(_.Oj(f())).secondaryTextColor}})},_.u(_.zL,{text:function(){var c=f();
return z()?c.explanationText:c.questionSubheaderText}}))),_.u("div",{role:"group",
class:_.Ao("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.u(_.xk,{each:function(){return f().optionsData||[]}},function(c,B){var h={};
return _.u("button",{class:_.Ao("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(h.learningQuizComponentQuizHover=function(){return!z()},h.learningQuizComponentQuizOptionWithCustomColor=X,h.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return z()&&N(B())},h.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return q()!==f().correctAnswerIndex&&G(B())},h.learningQuizComponentQuizIncorrectShake=
function(){return q()!==f().correctAnswerIndex&&G(B())},h)),
"on:click":_.f1(function(){if(z())return!1;e(B());var W,L;O(N(B())?((W=f().successTitle)==null?void 0:W.content)||"":((L=f().failureTitle)==null?void 0:L.content)||"");return!1}),
style:_.U7({background:"transparent"}),"aria-description":function(){var W,L;return z()?N(B())?(W=f().successTitle)==null?void 0:W.content:(L=f().failureTitle)==null?void 0:L.content:""},
"aria-disabled":z,el:_.ZY(function(W){_.Ma(271905,W,t,function(L){t=L})}),
"client-ve-type":271905},_.u("div",{class:"learningQuizComponentQuizOptionContainer"},_.u(_.zL,{text:c.optionText}),_.u(_.P,{cond:function(){var W=B();return z()&&(G(W)||N(W))},
then:function(){var W={};return _.u(_.el,{className:_.Ao("learningJourneyQuizYoututorOptionIcon",(W.learningQuizComponentQuizPulse=function(){return q()===f().correctAnswerIndex&&N(B())},W)),
size:24,icon:function(){return N(B())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.u(_.P,{cond:z,
then:function(){return _.u("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.u("div",{class:"learningJourneyQuizYoututorExplanationText"},_.u(_.zL,{text:function(){return f().explanationHeaderText}})),_.u(_.zL,{text:function(){return f().optionsData[q()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"te");
Yef.idomCompat=!0;var Vpp;_.Z0T=_.I(function(A){var t=null,f=null,X=null,Q=function(){return A.data()},q=function(){return _.B$(_.Oj(Q()))},e=function(){return!!q().optionColor},G=_.U(_.hZ(-1,void 0,"gXauJb")),N=G.next().value,z=G.next().value,T=function(Z){return N()===Z},O=function(Z){return Q().correctAnswerIndex===Z},c=function(){return N()!==-1},B=function(){return N()===Q().correctAnswerIndex},h=function(){var Z=Q(),d=c(),K=B();
return d?K?Z.successTitle:Z.failureTitle:Z.questionHeaderText},W=function(){var Z=c(),d=B();
return Z?d?264685:264684:264683},L=function(){var Z=Q();
return c()?Z.explanationText:Z.questionSubheaderText},E=function(){return!!Q().video},D=function(Z){return B()&&O(Z)},S=_.f1(function(){z(-1);
return!1});
return _.u(_.P,{cond:function(){return Q().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.u(Yef,{data:function(){return Q()}})},
else:function(){return _.u("learning-journey-quiz-view-model",{class:_.Ao("learningQuizComponentHost",A.className),style:_.U7({background:function(){return q().backgroundColor}})},_.u(_.P,{cond:E,
then:function(){return _.u("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.U7({background:function(){return q().videoBackgroundColor}})},_.u(_.P1,{data:function(){return Q().video}},{lockupViewModel:function(Z){return _.u(_.VK,{data:Z.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.u("div",{class:"learningQuizComponentQuizContainer"},_.u("div",{class:"learningQuizComponentQuiz"},_.u("div",{class:"learningQuizComponentQuizContent"},_.u(_.P,{cond:function(){return!!Q().aiGeneratedQuizLabel},
then:function(){return _.u("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.u(_.zL,{text:function(){return Q().aiGeneratedQuizLabel}}))}}),_.u("div",{class:"learningQuizComponentQuizHeader",
style:_.U7({"align-items":function(){return Q().overflowMenu?"start":"center"}})},_.u("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.U7({"min-height":function(){return Q().overflowMenu?"48px":"26px"}})},_.u("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.ZY(function(Z){_.Ma(W(),Z,t,function(d){t=d})}),
style:_.U7({color:function(){return q().primaryTextColor}}),
"client-ve-type":W},_.u(_.zL,{text:h}))),_.u("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.u(_.P,{cond:c,then:function(){return _.u("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.ZY(function(Z){_.Ma(264687,Z,f,function(d){f=d})}),
"on:click":S,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.U7({fill:function(){return q().primaryTextColor}})},_.u("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"})))}}),
_.u(_.P1,{data:function(){return Q().overflowMenu}},{buttonViewModel:function(Z){return _.u(_.nx,{data:Z.data})}}))),_.u("div",{class:"learningQuizComponentQuizSubheader",
el:_.ZY(function(Z){_.Ma(264688,Z,X,function(d){X=d})}),
style:_.U7({color:function(){return q().secondaryTextColor}}),
"client-ve-type":264688},_.u(_.zL,{text:L}))),_.u("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.u(_.xk,{each:function(){return Q().optionsData||[]}},function(Z,d){var K={};
return _.u("button",{class:_.Ao("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(K.learningQuizComponentQuizHover=function(){return!c()},K.learningQuizComponentQuizOptionWithCustomColor=e,K.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return D(d())},K.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!B()&&T(d())},K.learningQuizComponentQuizIncorrectShake=function(){return!B()&&
T(d())},K.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return c()&&!T(d())},K)),
"on:click":_.f1(function(){if(c())return!1;z(d());return!1}),
style:_.U7({background:function(){var k=d();return c()&&T(k)?"":e()?q().optionColor:"transparent"}}),
"aria-disabled":c,"client-ve-type":264686},_.u("div",{class:"learningQuizComponentQuizOptionContainer"},_.u(_.P,{cond:c,then:function(){return _.u(Vpp,{isOptionCorrect:O,optionIndex:d,isOptionSelectedAndCorrect:D,colors:q})}}),_.u(_.zL,{text:Z.optionText})))})))))}})},"ue");
Vpp=_.I(function(A){var t={};return _.u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var f=A.optionIndex();return A.isOptionCorrect(f)?"0 0 24 24":"0 -960 960 960"},
class:_.Ao("learningJourneyQuizViewModelQuizOptionIconLeading",(t.learningQuizComponentQuizPulse=function(){return A.isOptionSelectedAndCorrect(A.optionIndex())},t)),
style:_.U7({fill:function(){return A.colors().primaryTextColor}})},_.u("path",{d:function(){var f=A.optionIndex();
return A.isOptionCorrect(f)?"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"}}))},"ve");
_.Z0T.idomCompat=!0;_.Hn(_.Z0T,"learning-journey-quiz-view-model",{props:{data:_.PS,className:_.PS}});var oTC=_.I(function(A){var t=_.U((0,_.txC)(function(){var e;return{targetId:(e=A.data().config)==null?void 0:e.suspenseKey,contents:[A.data()]}})).next().value,f=_.Px().resolve(_.i2),X=function(){var e=t().contents.length>0?t().contents[0]:void 0;
return e==null?void 0:e.config},Q=function(){var e;
return(e=X())==null?void 0:e.entityTriggerConfig},q=_.Nt(q4s,function(){var e,G;
return(G=(e=Q())==null?void 0:e.entityKey)!=null?G:""});
_.oo(function(){var e,G,N,z=(N=Number((e=Q())==null?void 0:(G=e.invalidationTimestamp)==null?void 0:G.seconds))!=null?N:0,T,O,c;if(((c=Number((T=q())==null?void 0:(O=T.lastUpdated)==null?void 0:O.seconds))!=null?c:0)>z){var B;(e=(B=X())==null?void 0:B.continuationCommand)&&f.resolveCommand(e)}},"tC8nKe");
return _.u("yt-suspense-view-model",{class:_.Ao("ytSuspenseViewModelHost")},_.u(_.P1,{data:function(){var e;return(e=X())==null?void 0:e.contents}},{lockupViewModel:_.VK}))},"xe");var dDk=_.I(function(A){var t=_.Sv(A,{palette:void 0,isLastItem:!1}),f=t.palette,X=t.isLastItem,Q=function(){return A.data().isHighlighted},q=function(){var N;
return PQs((N=f())==null?void 0:N.iconDisabledColor)},e=function(){var N;
return PQs((N=f())==null?void 0:N.primaryTitleColor)},G=function(){var N;
return PQs((N=f())==null?void 0:N.secondaryTitleColor)};
t={};return _.u("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.ZY(_.W1(function(){return A.data().rendererContext}))},_.u(_.P1,{data:function(){return A.data().thumbnail}},{thumbnailViewModel:_.vM}),_.u("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.u("div",{class:_.Ao("ytMacroMarkerListItemViewModelTimeDescription",(t.ytMacroMarkerListItemViewModelHighlighted=Q,t)),
style:_.U7({"background-color":function(){return Q()?e():q()},
color:function(){return Q()?"":G()}})},_.u(_.zL,{text:function(){return A.data().timestamp}})),_.u("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.U7({"background-color":function(){return X()?"transparent":q()}})}),_.u("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Q()?e():G())}},_.u(_.zL,{text:function(){return A.data().title}}))))},"ye");_.iq=_.I(function(A){function t(eT){D("transform:translateX("+(_.ah("HTML_DIR")==="rtl"?"":"-")+eT+"px)")}
function f(eT){return Math.min(Math.max(eT,0),E()-k())}
function X(){var eT=d()+cp();return Q()?(Math.round(k()/eT)||1)*eT:0}
var Q=function(){return A.data().items||[]},q=function(){return A.data().previousButton},e=function(){return A.data().nextButton},G=function(){var eT,fS;
return(fS=(eT=A.disableArrows)==null?void 0:eT.call(A))!=null?fS:!1},N=function(){var eT;
return!((eT=A.forceNarrowLayout)==null||!eT.call(A))},z=_.yq(function(){var eT;
return!((eT=A.centerAlignItems)==null||!eT.call(A))&&E()<=k()},void 0,"Uto0kc"),T=_.GU("horizontal-shelf-view-model"),O=_.GU("div"),c=_.U(_.hZ(0,void 0,"G0xZB")),B=c.next().value,h=c.next().value;
c=_.U(_.hZ(0,void 0,"kqCYFf"));var W=c.next().value,L=c.next().value,E=W;W=_.U(_.hZ("",void 0,"Hh6Uye"));c=W.next().value;var D=W.next().value;W=_.U(_.hZ(0,void 0,"yMGBKb"));var S=W.next().value,Z=W.next().value,d=S;W=_.U(_.hZ(0,void 0,"VChthd"));S=W.next().value;var K=W.next().value,k=S;W=_.U(_.hZ(!1,void 0,"qJlhhe"));var Gz=W.next().value,Tz=W.next().value;W=_.U(_.hZ(0,void 0,"x7H94"));S=W.next().value;var y5=W.next().value,cp=S;W=_.U(_.hZ(0,void 0,"ksuUee"));var iu=W.next().value,Fb=W.next().value;
W=_.U(_.hZ("50%",void 0,"uxCxde"));var xq=W.next().value,Yq=W.next().value,zk=function(){var eT,fS=(eT=A.data())==null?void 0:eT.responsiveContainerConfiguration,hf,wE;return fS?DB(fS==null?void 0:fS.responsiveSize):(wE=(hf=A.sizing)==null?void 0:hf.call(A))!=null?wE:"STANDARD"};
W=_.yq(function(){return!G()&&B()>0},void 0,"XK60w");
S=_.yq(function(){return!G()&&B()<E()-k()},void 0,"D22LVd");
var PT=function(){h(f(B()-X()));t(B())},rs=function(){h(f(B()+X()));
t(B())},OT=function(){T.value!==null&&ET()},bK;
_.oh(function(){ET();window.ResizeObserver?(bK=new ResizeObserver(_.yD(OT,0)),bK.observe(T.value)):window.addEventListener("resize",OT)});
_.dD(function(){if(window.ResizeObserver){var eT;(eT=bK)==null||eT.disconnect()}else window.removeEventListener("resize",OT)});
var ET=function(){var eT=T.value.clientWidth,fS=A.includeMargin!==void 0?A.includeMargin():!1,hf;var wE=A.hasPeek!==void 0?A.hasPeek():!((hf=A.data())==null||!hf.hasPeek);eT=_.nW({containerWidth:eT,hasPeek:wE,sizing:zk(),marginSettings:fS?N()?4:1:0});y5(eT.gutter);Fb(eT.margin);Z(eT.itemWidth);Tz(eT.maxContainerWidth<528||N());K(eT.maxContainerWidth);Q()&&L((eT.itemWidth+eT.gutter)*Q().length-eT.gutter);if(Q()){var Rp;if(((Rp=A.thumbnailAspectRatio)==null?void 0:Rp.call(A))!==void 0){var rE;Yq(d()/
xes((rE=A.thumbnailAspectRatio)==null?void 0:rE.call(A))/2+"px")}else Yq("50%")}},m3={},O2={};
return _.u("horizontal-shelf-view-model",{class:_.Ao("ytwHorizontalShelfViewModelHost",A.className),el:T},_.u(_.P,{cond:function(){var eT;return A.data().header&&!((eT=A.horizontalShelfExperiments)==null?0:eT.call(A).hideHeader)},
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.U7({width:function(){return k()+"px"},
padding:function(){return"0 "+iu()+"px"}})},_.u(_.P1,{data:function(){return A.data().header}},{sectionHeaderViewModel:function(eT){return _.u(_.SB,{data:eT.data,
disableHorizontalPadding:!0,forceSmallLayout:Gz,useResponsiveLayout:!0})}}))}}),_.u("div",{class:_.Ao("ytwHorizontalShelfViewModelOuterContainer",(m3.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return z()},m3)),
style:_.U7({"margin-top":function(){var eT,fS=A.data().header&&!((eT=A.horizontalShelfExperiments)==null?0:eT.call(A).hideHeader),hf;return(((hf=A.ensureMarginTop)==null?0:hf.call(A))&&!fS?12:0)+"px"}})},_.u("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.U7({width:function(){return k()+"px"},
padding:function(){return"0 "+iu()+"px"},
overflow:function(){return G()?"auto":"hidden"}})},_.u("div",{class:_.Ao("ytwHorizontalShelfViewModelItems",(O2.ytwHorizontalShelfViewModelCenterAlignItems=function(){return z()},O2)),
el:O,style:c},_.u(_.P1,{data:Q},{macroMarkerListItemViewModel:function(eT,fS){return _.u("div",{style:_.U7({width:function(){return d()+"px"},
"margin-right":function(){return(fS()===Q().length-1?0:cp())+"px"}})},_.u(dDk,{data:eT.data,
palette:_.dR(A.palette),isLastItem:function(){return fS()===Q().length-1}}))},
lockupViewModel:function(eT,fS){var hf=eT.data;return _.u("div",{style:_.U7({width:function(){return d()+"px"},
"margin-right":function(){return(fS()===Q().length-1?0:cp())+"px"}})},_.u(_.VK,{data:hf,
containerType:4,sizing:zk,protectBackground:A.protectBackground,thumbnailFixedWidth:function(){return Tms(hf())+"px"},
thumbnailTargetWidth:function(){return Tms(hf())}}))},
suspenseViewModel:function(eT,fS){return _.u("div",{style:_.U7({width:function(){return d()+"px"},
"margin-right":function(){return(fS()===Q().length-1?0:cp())+"px"}})},_.u(oTC,{data:eT.data}))}}))),_.u(_.P,{cond:W,
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.U7({top:function(){return xq()}})},_.u(_.P1,{data:q},{buttonViewModel:function(eT){return _.u(_.nx,{data:eT.data,
onClick:PT})}}))}}),_.u(_.P,{cond:S,
then:function(){return _.u("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.U7({top:function(){return xq()}})},_.u(_.P1,{data:e},{buttonViewModel:function(eT){return _.u(_.nx,{data:eT.data,
onClick:rs})}}))}})))},"ze");
_.iq.idomCompat=!0;var Sew=_.I(function(A){var t=function(){return A.data().targetId||""},f=function(){var W;
return((W=A.data())==null?void 0:W.expansionEntityKey)||""},X=_.Nt(_.QI5,f),Q=!0,q=function(){var W;
return((W=X())==null?void 0:W.value)===t()},e=function(W){_.og(_.Ta("stringEntity",f(),{key:f(),
value:W?t():""}))};
_.Zk(function(){Q=!1;A.data().isExpanded&&e(!0)});
var G=function(){if(q()){var W=!0;A.onCollapse!==void 0&&(W=A.onCollapse());W&&e(!1)}else e(!0)},N=_.f1(G),z=function(){var W;
return(((W=A.accordionStyle)==null?void 0:W.call(A))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},T=_.GU("div"),O=function(){var W,L;
return(L=(W=_.C(A.data().rendererContext,_.Tq))==null?void 0:W.label)!=null?L:""},c=function(){var W,L;
return{disabled:(W=A.hideIfNotExpanded)==null?void 0:W.call(A),ariaHidden:(L=A.hideIfNotExpanded)==null?void 0:L.call(A)}},B={},h={};
return _.u("yt-accordion-item-view-model",{class:_.Ao("ytAccordionItemViewModelHost",A.className,(B.ytAccordionItemViewModelExpanded=function(){return q()},B.ytAccordionItemViewModelHidden=function(){var W;
return(W=A.hideIfNotExpanded)==null?void 0:W.call(A)},B.ytAccordionItemViewModelMini=z,B)),
"data-target-id":t},_.u("div",{class:"ytAccordionItemViewModelContainer"},_.u("div",{class:"ytAccordionItemViewModelLeftSection","on:click":N,title:O,"aria-hidden":function(){var W;return(W=A.hideIfNotExpanded)==null?void 0:W.call(A)}},_.u(_.zL,{text:function(){return A.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:O})),_.u("div",{class:"ytAccordionItemViewModelRightSection"},_.u(_.P1,{data:function(){return q()?A.data().expandButton:A.data().collapseButton}},{buttonViewModel:function(W){return _.u(_.nx,{data:W.data,
className:"ytAccordionItemViewModelToggleButton",onClick:G,buttonOverrides:c})}}))),_.u("div",{class:"ytAccordionItemViewModelContainer"},_.u("div",{class:_.Ao("ytAccordionItemViewModelContent",(h.ytAccordionItemViewModelExpandedSubtitle=function(){return q()},h)),
el:T,style:_.U7({"max-height":function(){return Q?"auto":q()?T.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!q()}},_.u(_.P,{cond:function(){return!z()},
then:function(){return _.u(_.zL,{text:function(){return A.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.u(_.P1,{data:function(){return A.data().content}},{horizontalShelfViewModel:function(W){return _.u(_.iq,{data:W.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Be");_.$Dw=_.I(function(A){var t=_.U((0,_.txC)(A.data)).next().value,f=function(){return A.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},X=function(){return f()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Q=_.U(_.hZ(!0,void 0,"VFpYAb")),q=Q.next().value,e=Q.next().value,G=function(){return X()&&q()},N=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){e(!q())}}},z=_.f1(function(){t().onTitleTap&&_.LI(t().onTitleTap||{})});
Q={};return _.u("yt-accordion-view-model",{class:_.Ao("ytAccordionViewModelHost",(Q.ytAccordionViewModelMinimized=function(){return G()},Q)),
"data-target-id":function(){return A.data().targetId||""}},_.u(_.P,{cond:function(){return X()||!!t().title},
then:function(){return _.u("div",{class:"ytAccordionViewModelHeader"},_.u("div",{class:"ytAccordionViewModelTitleSection"},_.u("div",{class:"ytAccordionViewModelTitleWrapper"},_.u(_.P,{cond:function(){return!!A.data().headerIcon},
then:function(){return _.u(_.el,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var T;return(T=A.data().headerIcon)==null?void 0:T.iconType}})}}),_.u("div",{class:"ytAccordionViewModelTitle",
"on:click":z},_.u(_.zL,{className:"ytAccordionViewModelTitleText",text:function(){return t().title}})))),_.u("div",{class:"ytAccordionViewModelButtonSection"},_.u(_.P,{cond:X,
then:function(){return _.u(_.Lx,{data:N,iconName:function(){return G()?"chevron_down":"chevron_collapse"}})}})))}}),_.u("div",{class:"ytAccordionViewModelContent"},_.u(_.P1,{data:function(){return t().contents}},{accordionItemViewModel:function(T){return _.u(Sew,{data:T.data,
className:"ytAccordionViewModelRow",accordionStyle:f,hideIfNotExpanded:G,onCollapse:function(){return X()?(e(!0),!1):!0}})}})),_.u("div",null,_.u(_.P,{cond:function(){return!X()&&(!!t().disclaimerFooter||!!t().footer)},
then:function(){return _.u("div",{class:"ytAccordionViewModelFooter"},_.u(_.zL,{text:function(){return t().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.u(_.P1,{data:function(){return A.data().footer}},{flexibleActionsViewModel:function(T){return _.u(_.Jk,{data:T.data,
layout:0})}}))}})))},"Ce");_.Hn(_.$Dw,"yt-accordion-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=null,f=null,X,Q=(X=_.Px().resolve(_.z7(_.FH)))==null?void 0:X(),q=_.U(_.hZ(!1,void 0,"CmEVtc"));X=q.next().value;var e=q.next().value;q=_.U(_.hZ(!0,void 0,"yo9dR"));var G=q.next().value,N=q.next().value,z=_.GU("textarea",function(L){_.Ma(264503,L,t,function(E){t=E})}),T=function(L){e(!0);
L={learningJourneyFormData:{query:L}};_.LI(A.data().searchEndpoint||{},{form:{formData:L}});return!1},O=_.f1(function(L){L.target.closest("button-view-model")&&e(!0)});
q=_.f1(function(){N(z.value.value.length===0)});
var c=_.f1(function(L){if(L.key==="Enter"&&!L.shiftKey&&!G()){var E=L.target;L.preventDefault();T(E.value)}}),B={},h={},W={};
return _.u("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.u("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.u(_.YA,{data:function(){return A.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.u("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.u("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.u("div",{class:_.Ao("ytLearningJourneyZeroStateSearchBar",(B.ytLearningJourneyZeroStateSearchBarDark=Q,B))},_.u("textarea",{class:_.Ao("ytLearningJourneyZeroStateTextInput",(h.ytLearningJourneyZeroStateTextInputDark=Q,h)),el:z,"on:keyup":q,"on:keydown":c,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.u("div",{class:_.Ao("ytLearningJourneyZeroStateSearchButtonContainer",(W.ytLearningJourneyZeroStateSearchButtonContainerDark=Q,W))},_.u(_.nx,{data:function(){return _.C(A.data().searchButton,_.zf)},
className:"search-button",onClick:function(){return T(z.value.value)},
buttonOverrides:function(){return{disabled:G(),style:Q?"mono-inverse":"mono",size:"XL"}}}))),_.u(_.P,{cond:function(){return!!A.data().errorBanner},
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.ZY(function(L){_.Ma(264617,L,f,function(E){f=E})})},_.u(_.P1,{data:function(){return A.data().errorBanner}},{alertBannerViewModel:function(L){return _.u(_.u2T,{data:L.data,
"client-ve-type":264617})}}))}})),_.u(_.P,{cond:X,
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.u(_.P1,{data:function(){return A.data().loader}},{learningJourneyLoaderViewModel:function(L){return _.u(_.j3E,{data:L.data})}}))},
else:function(){return _.u("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.u(_.P,{cond:function(){return!!A.data().learningJourneyShelf},
then:function(){return _.u("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.u("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return A.data().learningJourneySectionTitle}),_.u(_.P1,{data:function(){return A.data().learningJourneyShelf}},{horizontalShelfViewModel:function(L){return _.u(_.iq,{data:L.data,
centerAlignItems:!0})}}))}}),_.u("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.u("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return A.data().suggestedJourneySectionTitle}),_.u("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":O},_.u(_.P1,{data:function(){return A.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(L){return _.u(_.Jk,{data:L.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"De"),"yt-learning-journey-zero-state",{props:{data:_.PS}});var H0f=_.I(function(A){var t=A.data;return _.u("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Ao("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.u(_.zL,{text:function(){var f;return(f=t())==null?void 0:f.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.u(_.P1,{data:function(){return t().actionButton}},{buttonViewModel:function(f){return _.u(_.nx,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:f.data})}}))},"Ee");var aaK=_.I(function(A){var t=A.data;return _.u("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Ao("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.u(_.zL,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var f;return(f=t())==null?void 0:f.displayName},
ellipsisTruncate:!0}),_.u(_.P1,{data:function(){return t().badge}},{buttonViewModel:function(f){return _.u(_.nx,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:f.data})}}))},"Fe");_.Hn(_.I(function(A){var t=A.data;return _.u("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.u("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.u(_.zL,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var f;return(f=t())==null?void 0:f.rank}})),_.u("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.u(_.P1,{data:function(){return t().avatar}},{avatarViewModel:_.QK})),_.u("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.u(_.P1,{data:function(){return t().content}},{liveLeaderboardItemChannelContentViewModel:aaK,
liveLeaderboardItemActionContentViewModel:H0f})),_.u(_.zL,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var f;return(f=t())==null?void 0:f.points}}))},"Ge"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;return _.u("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.u(_.zL,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var f,X;return(f=t())==null?void 0:(X=f.ranking)==null?void 0:X.rank}}),_.u("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.u(_.P1,{data:function(){return t().avatar}},{avatarViewModel:_.QK})),_.u(_.zL,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var f,X;return(f=t())==null?void 0:(X=f.channelContent)==null?void 0:X.channelName}}),_.u(_.zL,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var f;return(f=t())==null?void 0:f.points}}))},"He"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.PS}});var KgK=_.I(function(A){A=_.Sv(A,{wrapper:!1}).wrapper;return _.u(_.P,{cond:A,then:function(){return _.u("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.u("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.u("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ie");
KgK.idomCompat=!0;var gTp=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],wJK=_.I(function(A){var t=A.data;var f=_.ZY(),X=_.yq(function(){return t().command},void 0,"fyYsT");
_.oo(function(){X()&&_.Wn(X(),{form:{element:f.value}})},"B0nxdb");
return _.u("div",{el:f,class:"YtQrCodeRendererHostContainer"},_.u(_.P,{cond:function(){return t().qrCodeImage},
then:function(Q){return _.u(_.YA,{data:Q,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.u(_.P,{cond:function(){return t().spinner},
then:function(){return _.u(KgK,null)}})}}),_.u(_.P,{cond:function(){return t().label},
then:function(Q){return _.u(_.zL,{text:Q,className:"YtQrCodeRendererHostLabel"})}}),_.u(_.P,{cond:function(){return t().labels},
then:function(Q){return _.u("div",{class:"YtQrCodeRendererHostLabels"},_.u(_.xk,{each:Q},function(q){return _.u(_.zL,{text:q})}))}}))},"Le");_.Hn(_.I(function(A){var t=A.data;var f=_.yq(function(){return t().qrEntityKey},void 0,"LmZ2xf"),X=_.yq(function(){return t().deleteEntityOnDismiss},void 0,"my0Tzb"),Q=_.yq(function(){return t().command},void 0,"hzECIb"),q=_.Nt(BTg,f);
A=_.yq(function(){return t().qrCodeImage},void 0,"AnD9rc");
var e=_.yq(function(){return t().style&&gTp.includes(t().style)},void 0,"f5fZv"),G=_.OI({visibilityCallback:function(N){N&&Q()&&_.Wn(Q())},
showOption:{calledOnce:!0,state:"visible"}});_.oh(function(){_.dD(function(){X()&&f()&&_.ZK().dispatch(_.Ta("qrCodeEntity",f()))})});
return _.u("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.ZY(G)},_.u(_.P,{cond:e,then:function(){return _.u(_.P,{cond:q,then:function(N){return _.u(wJK,{data:N})}})}}),_.u(_.P,{cond:A,
then:function(N){return _.u(_.YA,{data:N,alt:""})}}))},"Je"),"yt-qr-code-renderer",{props:{data:_.PS}});var kgk=_.I(function(A){var t=function(){return _.bY(1728053247&(A.barColor!==void 0?lM(A.barColor()):4278190080))};
return _.u("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.u("div",{class:"ytVideoOverviewGhostCardDetails"},_.u(s3S,{animationDelay:0,percentWidth:100,barColor:function(){return t()}}),_.u(s3S,{animationDelay:600,
percentWidth:60,barColor:function(){return t()}})))},"Me"),s3S=_.I(function(A){return _.u("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+A.percentWidth()+"%"}},_.u("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var t=A.animationDelay(),f=A.barColor();return"animation-delay:"+t+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+f+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ne");var rQi;_.Ab3=_.I(function(A){function t(E){e(E)}
var f=A.data;var X=_.GU("yt-video-overview-view-model"),Q=_.ud("div");A=_.U(_.hZ(-1,void 0,"dW11He"));var q=A.next().value,e=A.next().value;A=_.U(_.hZ(0,void 0,"LqrsK"));var G=A.next().value,N=A.next().value,z={},T=_.Nt(iJ0,function(){return f().asyncDataEntityKey}),O=function(){var E;
if((E=T())==null?0:E.videoOverviewViewModel){var D;return _.C((D=T())==null?void 0:D.videoOverviewViewModel,RzT)}return f()};
_.oh(function(){N(Math.min((X.value.clientWidth-24)/4-8,72))});
var c=function(E){e(E);(Q==null?0:Q.value)&&Q.value.children[E]&&Q.value.children[E].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
C9u(X,function(){var E;if((E=O())==null||!E.inlinePlaybackEndpoint)return null;var D;E=z==null?void 0:(D=z.thumbnailElRef)==null?void 0:D.value;if(!E)return null;var S;D=(S=O())==null?void 0:S.inlinePlaybackEndpoint;S=_.C(D,VmS);return{multipleVideoPreviewData:{data:(S==null?0:S.playerDescriptors)&&(S==null?0:S.playerDescriptors.length)?S.playerDescriptors:[],thumbnailElement:E,trackingParams:"test",callbacks:{onPlaybackStarted:c},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var B=function(){var E;return((E=O())==null?void 0:E.headerSubtext)!==void 0?!0:!1},h=function(){var E,D=lM((E=O())==null?void 0:E.titleColor);
return D?"color: "+_.bY(D)+";":void 0},W=function(){var E,D=lM((E=O())==null?void 0:E.subtextColor);
return D?"color: "+_.bY(D)+";":void 0},L=function(){return _.u("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.u("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return h()}},_.u(_.zL,{text:function(){var E;
return(E=O())==null?void 0:E.headerText}})),_.u(_.P,{cond:B,
then:function(){return _.u("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.u("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return W()}},_.u(_.el,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.u("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return W()}},_.u(_.zL,{text:function(){var E;
return(E=O())==null?void 0:E.headerSubtext}})))}}))};
A={};return _.u("yt-video-overview-view-model",{class:_.Ao("ytGenAiVideoOverviewViewModelHost",(A.ytGenAiVideoOverviewViewModelMweb=!1,A.ytGenAiVideoOverviewViewModelDesktop=!0,A)),el:X,style:function(){var E,D=lM((E=O())==null?void 0:E.backgroundColor);return D?"background-color: "+_.bY(D)+";":void 0}},_.u(_.P,{cond:function(){var E;
return(E=O())==null?void 0:E.isLoading},
then:function(){return _.u(kgk,{barColor:function(){var E;return(E=O())==null?void 0:E.titleColor}})},
else:function(){return _.u(_.Tw,null,null,_.u("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.u(_.P1,{data:function(){var E;return(E=O())==null?void 0:E.thumbnail}},{thumbnailViewModel:function(E){return _.u(_.vM,{data:E.data,
aspectRatio:0,playbackRef:B7z(z)})}})),_.u("div",{class:"ytGenAiVideoOverviewViewModelDetails"},L(),_.u(_.P,{cond:function(){var E,D,S,Z;
return((E=O())==null?void 0:(D=E.listItems)==null?void 0:D.length)!==void 0&&((S=O())==null?void 0:(Z=S.listItems)==null?void 0:Z.length)>0?!0:!1},
then:function(){return _.u("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:Q},_.u(_.xk,{each:function(){var E;return(E=O())==null?void 0:E.listItems}},function(E,D){return _.u(rQi,{image:E.image,
index:D,isSelected:function(){return D()===q()},
onClick:t,itemWidth:G})}))}}),_.u("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.u("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return h()}},_.u(_.zL,{text:function(){var E,D,S,Z,d,K,k;
return(k=(E=O())==null?void 0:(D=E.listItems)==null?void 0:(S=D[q()])==null?void 0:S.headline)!=null?k:(Z=O())==null?void 0:(d=Z.listItems)==null?void 0:(K=d[0])==null?void 0:K.headline}})),_.u("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return W()}},_.u(_.zL,{text:function(){var E,D,S,Z,d,K,k;
return(k=(E=O())==null?void 0:(D=E.listItems)==null?void 0:(S=D[q()])==null?void 0:S.subtext)!=null?k:(Z=O())==null?void 0:(d=Z.listItems)==null?void 0:(K=d[0])==null?void 0:K.subtext}})))))}}))},"Oe");
rQi=_.I(function(A){var t=A.image;var f=A.itemWidth;var X=A.index;var Q=A.isSelected;var q=A.onClick;A=_.f1(function(){X!==void 0&&q!==void 0&&q(X());return!1});
var e={};return _.u("div",{class:_.Ao("ytGenAiVideoOverviewViewModelCarouselItem",(e.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return Q==null?void 0:Q()},e)),
style:function(){return"width: "+f()+"px;"},
"on:click":A},_.u(_.YA,{data:t,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.u(_.P,{cond:function(){return Q==null?void 0:Q()},
then:function(){return _.u("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.u("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Pe");
_.Ab3.idomCompat=!0;_.Hn(_.Ab3,"yt-video-overview-view-model",{props:{data:_.PS}});_.tT2=_.I(function(A){var t=A.data;var f=A.topbarOffset;var X,Q=((X=_.Px().resolve(_.z7(_.FH)))==null?void 0:X())||!1;return _.u("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var q=t();var e,G,N=Q?(e=q.config)==null?void 0:e.darkThemeBackgroundColor:(G=q.config)==null?void 0:G.lightThemeBackgroundColor;q=N?_.mt(N):void 0;q="background-color: "+q+";";f!==void 0&&(q+="top: -"+f()+"px;");return q},
"aria-hidden":!0},_.u(_.P,{cond:function(){var q,e,G;return!!((q=t().backgroundImageConfig)==null?0:(e=q.image)==null?0:(G=e.sources)==null?0:G.length)},
then:function(){return _.u(_.YA,{data:function(){var q;return(q=t().backgroundImageConfig)==null?void 0:q.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.u("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+OJq(Q,t().gradientColorConfig)+";"}}))},"Qe");
_.tT2.idomCompat=!0;var fx8=_.I(function(A){var t=A.data;var f=A.isOverlay;return _.u("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.u("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.u(_.P1,{data:function(){return t().header}},{sectionHeaderViewModel:function(X){return _.u(_.SB,{data:X.data,
isOverlay:f})}})),_.u("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.u(_.P1,{data:function(){return t().channelInfoButtons}},{flexibleActionsViewModel:_.Jk})),_.u("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.u(_.P1,{data:function(){return t().description}},{descriptionPreviewViewModel:function(X){return _.u(_.dZ,{data:X.data,
isOverlay:f})}})))},"Re");
fx8.idomCompat=!0;var Xp8=_.I(function(A){var t=A.data;var f={};return _.u("factoid-view-model",{class:_.Ao("ytwFactoidViewModelHost",(f.ytwFactoidViewModelHostOverlay=A.isOverlay,f))},_.u(_.zL,{text:function(){return t().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.u(_.zL,{text:function(){return t().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Se");
Xp8.idomCompat=!0;var Q03=_.I(function(A){var t=A.data;var f=A.isOverlay;return _.u("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.u(_.P1,{data:function(){return t().factoids}},{factoidViewModel:function(X){return _.u(Xp8,{data:X.data,
isOverlay:f})}}))},"Te");
Q03.idomCompat=!0;_.qx8=_.I(function(A){var t=A.data;var f=A.isOverlay;return _.u("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.u(_.P1,{data:function(){return t().items}},{channelInfoViewModel:function(X){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(fx8,{data:X.data,
isOverlay:f}))},
coursePerksViewModel:function(X){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(DDT,{data:X.data,isOverlay:f}))},
descriptionPreviewViewModel:function(X){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(_.dZ,{data:X.data,isOverlay:f}))},
factoidsRowViewModel:function(X){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(Q03,{data:X.data,isOverlay:f}))},
progressViewModel:function(X){return _.u("div",{class:"ytwCourseMetadataViewModelHostItem"},_.u(Fgk,{data:X.data,isOverlay:f}))}}))},"Ue");var Jby=_.I(function(A){return _.u("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.u(_.P1,{data:function(){return A.data().content}},{courseMetadataViewModel:function(t){return _.u(_.qx8,{data:t.data,
isOverlay:A.isOverlay})},
progressViewModel:function(t){return _.u(Fgk,{data:t.data})}}))},"Ve");var Ull=_.I(function(A){var t=A.data;A=A.className;var f=function(){var Q;return _.bj((Q=t())==null?void 0:Q.rendererContext)},X={};
X=(X.dynamicTextViewModelHost=!0,X.dynamicTextViewModelHostTappable=function(){return f()},X);
return _.u("yt-dynamic-text-view-model",{el:_.ZY(_.W1(function(){var Q;return(Q=t())==null?void 0:Q.rendererContext})),
role:function(){return f()?"link":void 0},
tabindex:function(){return f()?0:void 0},
class:_.Ao(A,X)},_.u("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var Q,q,e;return(e=(q=_.C((Q=t())==null?void 0:Q.rendererContext,_.Tq))==null?void 0:q.label)!=null?e:""}},_.u(_.zL,{text:function(){return t().text},
userInput:!0})))},"We");
Ull.idomCompat=!0;_.Os=_.I(function(A){var t=A.data;var f=A.isPositionRelative;var X=_.Bm5("(max-width: 527.9px)"),Q=function(){var q,e;return(e=(q=t())==null?void 0:q.style)!=null?e:"IMAGE_BANNER_STYLE_FULL_BLEED"};
A={};return _.u("yt-image-banner-view-model",{el:_.ZY(_.W1(function(){var q;return(q=t())==null?void 0:q.rendererContext})),
class:_.Ao((A.ytImageBannerViewModelHost=!0,A.ytImageBannerViewModelInset=function(){return Mx5(Q())},A.ytImageBannerViewModelPositionAbsolute=function(){return _.$f(!0)&&!(f==null?0:f())},A.ytImageBannerViewModelSmallInset=function(){return Mx5(Q())&&X()},A.ytImageBannerViewModelTappable=function(){var q;
return _.bj((q=t())==null?void 0:q.rendererContext)},A))},_.u(_.P,{cond:function(){var q;
return(q=t())==null?void 0:q.image},
then:function(){return _.u(_.YA,{data:function(){return t().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.u(_.P1,{data:function(){var q;
return(q=t())==null?void 0:q.overlays}},{thumbnailHoverOverlayViewModel:XV}))},"Xe");
_.Os.idomCompat=!0;var exy;exy=_.I(function(A){var t=A.condition;var f=A.content;return _.u(_.P,{cond:t,then:function(){return _.u("div",{class:"yt-page-header-view-model__scroll-container"},f())},
else:function(){return f()}})},"Ye");
_.Gz8=_.I(function(A){var t=A.data;var f=A.noPadding;var X=A.enableBanner;var Q=A.cinematicContainerTopbarOffset;var q=A.allowCinematicContainerOverflow;var e=A.displayAsSidebar;var G=A.displayAsPanel;var N=A.alwaysUseMediumTextDescription;var z=CQ0(),T=function(){return!!t().image||!!t().animatedImage},O=function(){return!!t().background},c=function(){return(e==null?0:e())||(G==null?0:G())?1:z()},B=function(){return c()===1},h=function(){return B()||c()===2},W=function(){return c()===4},L=function(){var iu=
t();
var Fb=!!t().heroImage;var xq=c(),Yq=hUl(t()),zk=e==null?void 0:e(),PT=!iu.metadata,rs;if(rs=Fb?_.C(iu.heroImage,NA8):_.C(iu.animatedImage||iu.image,NA8)){iu=rs.style;var OT=rs.layoutMode;if(OT!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(rs=HHz($Qu(rs)),Fb)Fb=cju(xq,iu,OT,rs,zk);else b:if(PT)Fb=xq===1?{size:48}:{size:72};else switch(xq){case 1:Fb={size:72};break b;case 2:Fb={size:120};break b;default:Fb=Yq<4?{size:120}:{size:160}}else Fb=void 0}else Fb={size:0};return Fb};
A={};A=_.Ao((A["yt-page-header-view-model"]=!0,A["yt-page-header-view-model--no-padding"]=function(){return!(f==null||!f())},A["yt-page-header-view-model--small-top-padding"]=function(){return B()&&!t().actions&&!(G==null?0:G())||c()===2&&!(T()||t().heroImage)},A["yt-page-header-view-model--small-bottom-padding"]=function(){return h()&&!t().actions&&!(G==null?0:G())},A["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(q==null?0:q())},A["yt-page-header-view-model--display-as-sidebar"]=
e,A));
var E={},D=_.Ao((E["yt-page-header-view-model__page-header-headline"]=!0,E["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var iu;return(iu=L())==null?void 0:iu.allowFullWidth},E)),S=function(){var iu;
return h()&&!((iu=L())==null?0:iu.allowFullWidth)},Z=function(){return B()&&(!!t().heroImage||T())&&hUl(t())>0},d=function(){return Z()&&(G==null?void 0:G())};
E={};var K=_.Ao((E["yt-page-header-view-model__page-header-title"]=!0,E["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!Z()},E["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return Z()&&!d()},E["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=d,E["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=O,E));
E={};var k=_.Ao((E["yt-page-header-view-model__page-header-headline-image"]=!0,E["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!t().heroImage&&h()},E));
E={};var Gz=_.Ao((E["yt-page-header-view-model__page-header-banner-container"]=X,E["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var iu;return(X==null?void 0:X())&&((iu=_.C(t().banner,_.zXp))==null?void 0:iu.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},E));
E={};var Tz=_.Ao((E["yt-page-header-view-model__page-header-content-metadata"]=!0,E["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=O,E));E={};var y5=_.Ao((E["yt-page-header-view-model__page-header-flexible-actions"]=!0,E["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!t().metadata||h()},E["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!h()},E));
E={};var cp=_.Ao((E["yt-page-header-view-model__page-header-attribution"]=!0,E["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=O,E));return _.u("yt-page-header-view-model",{class:A},_.u(_.P,{cond:O,then:function(){return _.u("div",{class:"yt-page-header-view-model__page-header-background"},_.u(_.P1,{data:function(){return t().background}},{cinematicContainerViewModel:function(iu){return _.u(_.tT2,{data:iu.data,
topbarOffset:Q})}}))}}),_.u(exy,{condition:function(){return!(e==null||!e())},
content:function(){return _.u("div",{class:"yt-page-header-view-model__page-header-content"},_.u(_.P,{cond:function(){return(X==null?void 0:X())&&t().banner},
then:function(){return _.u("div",{class:Gz},_.u(_.P1,{data:function(){return t().banner}},{imageBannerViewModel:_.Os}))}}),_.u("div",{class:D},_.u(_.P,{cond:T,
then:function(){return _.u(_.P1,{data:function(){var iu;if(!(iu=t().animatedImage)){iu=t();if(T()){var Fb=iu=Object.assign({},iu),xq=c(),Yq=hUl(t()),zk=Fb.image,PT=_.C(zk,uf7),rs=PT==null?void 0:PT.avatar,OT=_.C(rs,_.v1);if(zk&&rs&&OT){switch(xq){case 1:OT.avatarImageSize="AVATAR_SIZE_XL";break;case 2:OT.avatarImageSize="AVATAR_SIZE_XXL";break;default:Yq<4?OT.avatarImageSize="AVATAR_SIZE_XXL":OT.avatarImageSize="AVATAR_SIZE_XXXL"}_.Mx(rs,_.v1,Object.assign({},OT));PT.avatar=Object.assign({},rs);_.Mx(zk,
uf7,Object.assign({},PT));Fb.image=Object.assign({},zk)}}iu=iu.image}return iu}},{contentPreviewImageViewModel:function(iu){return _.u(_.nj,{data:iu.data,
className:k,imageSizeConfig:L})},
decoratedAvatarViewModel:function(iu){return _.u(_.qM,{data:iu.data,className:k})}})}}),_.u(_.P,{cond:function(){return!!t().heroImage&&!S()},
then:function(){return _.u(_.P1,{data:function(){return t().heroImage}},{contentPreviewImageViewModel:function(iu){return _.u(_.nj,{data:iu.data,
className:k,imageSizeConfig:L})}})}}),_.u("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.u(_.P,{cond:function(){return!!t().heroImage&&S()},
then:function(){return _.u("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.u(_.P1,{data:function(){return t().heroImage}},{contentPreviewImageViewModel:function(iu){return _.u(_.nj,{data:iu.data,
className:k,imageSizeConfig:L})}}))}}),_.u(_.P1,{data:function(){return t().title}},{dynamicTextViewModel:function(iu){return _.u(Ull,{data:iu.data,
className:K})}}),_.u(_.P1,{data:function(){return t().metadata}},{contentMetadataViewModel:function(iu){return _.u(_.FV,{data:iu.data,
layout:function(){return B()?1:0},
className:Tz,isOverlay:O,useMediumText:W})}}),_.u(_.P,{cond:function(){return t().description&&!B()},
then:function(){return _.u(_.P1,{data:function(){return t().description}},{descriptionPreviewViewModel:function(iu){return _.u(_.dZ,{data:iu.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:O,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:function(){return(N==null?void 0:N())||W()}})}})}}),_.u(_.P,{cond:function(){return t().attribution&&!h()},
then:function(){return _.u(_.P1,{data:function(){return t().attribution}},{attributionViewModel:function(iu){return _.u(D7,{data:iu.data,
className:cp,useMediumText:W})}})}}),_.u(_.P,{cond:function(){return t().actions&&!h()},
then:function(){return _.u(_.P1,{data:function(){return t().actions}},{flexibleActionsViewModel:function(iu){return _.u(_.Jk,{data:iu.data,
layout:function(){return RUb(c())},
className:y5})}})}}))),_.u("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.u(_.P,{cond:function(){return t().description&&B()},
then:function(){return _.u(_.P1,{data:function(){return t().description}},{descriptionPreviewViewModel:function(iu){return _.u(_.dZ,{data:iu.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:O,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:function(){return(N==null?void 0:N())||W()}})}})}}),_.u(_.P,{cond:function(){return t().attribution&&h()},
then:function(){return _.u(_.P1,{data:function(){return t().attribution}},{attributionViewModel:function(iu){return _.u(D7,{data:iu.data,
className:cp,useMediumText:W})}})}}),_.u(_.P,{cond:function(){return t().actions&&h()},
then:function(){return _.u(_.P1,{data:function(){return t().actions}},{flexibleActionsViewModel:function(iu){return _.u(_.Jk,{data:iu.data,
layout:function(){return RUb(c())},
className:y5})}})}})),_.u("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.u(_.P1,{data:function(){return t().bottomMetadataFlexibleContainer}},{flexibleContainer:function(iu){return _.u(Jby,{data:iu.data,
isOverlay:O})}})))}}))},"Ze");
_.Gz8.idomCompat=!0;_.Hn(_.I(function(A){var t=_.U(_.hZ(!1,void 0,"qvRy4d")),f=t.next().value,X=t.next().value;return _.u("yt-official-card-view-model",{class:_.Ao("ytOfficialCardViewModelHost",A.className),style:_.U7({"background-color":function(){var Q,q=lM((Q=A.data())==null?void 0:Q.backgroundColor);return q?_.bY(q):void 0}})},_.u(_.P1,{data:function(){return A.data().header}},{pageHeaderViewModel:function(Q){return _.u(_.Gz8,{data:Q.data,
noPadding:!0})}}),_.u(_.P1,{data:function(){return A.data().contents}},{horizontalShelfViewModel:function(Q){return _.u(_.iq,{data:Q.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.u(_.P,{cond:f,
then:function(){return _.u("div",{class:"ytOfficialCardViewModelExpandedContent"},_.u(_.P1,{data:function(){return A.data().expandedContents}},{horizontalShelfViewModel:function(Q){return _.u(_.iq,{data:Q.data,
sizing:"MINI"})}}),_.u("div",{class:"ytOfficialCardViewModelCollapseButton"},_.u(_.P1,{data:function(){return A.data().collapseButton}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
onClick:function(){X(!f())}})}})))},
else:function(){return _.u("div",{class:"ytOfficialCardViewModelExpandButton"},_.u(_.P1,{data:function(){return A.data().expandButton}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
onClick:function(){X(!f())}})}}))}}))},"$e"),"yt-official-card-view-model",{props:{data:_.PS,
className:_.PS}});var lxh=_.I(function(A){var t,f=(t=_.Px().resolve(_.z7(_.FH)))==null?void 0:t();return _.u("ytw-search-friction-view-model",{class:_.Ao("ytwSearchFrictionViewModelHost",A.className)},_.u("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.u("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.u(_.P,{cond:function(){return f&&A.data().darkThemeImage?A.data().darkThemeImage:A.data().image},
then:function(X){return _.u(_.YA,{data:X,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.u(_.P1,{data:function(){return A.data().overflowMenuButton}},{buttonViewModel:function(X){return _.u(_.nx,{data:X.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.u(_.zL,{text:function(){return A.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.u(_.xk,{each:function(){return A.data().bodyText||[]}},function(X){return _.u(_.zL,{text:X,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.u(_.P1,{data:function(){return A.data().actions}},{buttonViewModel:function(X){return _.u(_.nx,{data:X.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.u(_.zL,{text:function(){return A.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.u(_.zL,{text:function(){return A.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"af");
lxh.idomCompat=!0;_.Hn(lxh,"ytw-search-friction-view-model",{props:{data:_.PS,className:_.PS}});_.cc=_.I(function(A){var t=_.GU("markdown-div"),f,X=(f=_.Px().resolve(_.z7(_.FH)))==null?void 0:f();_.oo(function(){var Q=t.value;var q=new J5k,e=new Map(q.JSC$9381_sanitizerTable.globalAttributePolicies);e.set("style",{policyAction:4});q.JSC$9381_sanitizerTable=new vI(q.JSC$9381_sanitizerTable.allowedElements,q.JSC$9381_sanitizerTable.elementPolicies,q.JSC$9381_sanitizerTable.allowedGlobalAttributes,e,q.JSC$9381_sanitizerTable.globallyAllowedAttributePrefixes);var G=["data-time"];if(G===void 0)e=
new Set(q.JSC$9381_sanitizerTable.globallyAllowedAttributePrefixes),e.add("data-"),q.JSC$9381_sanitizerTable=new vI(q.JSC$9381_sanitizerTable.allowedElements,q.JSC$9381_sanitizerTable.elementPolicies,q.JSC$9381_sanitizerTable.allowedGlobalAttributes,q.JSC$9381_sanitizerTable.globalAttributePolicies,e);else{e=new Set(q.JSC$9381_sanitizerTable.allowedGlobalAttributes);G=_.U(G);for(var N=G.next();!N.done;N=G.next()){N=N.value;if(N.indexOf("data-")!==0)throw Error("ka`"+N);e.add(N)}q.JSC$9381_sanitizerTable=
new vI(q.JSC$9381_sanitizerTable.allowedElements,q.JSC$9381_sanitizerTable.elementPolicies,e,q.JSC$9381_sanitizerTable.globalAttributePolicies,q.JSC$9381_sanitizerTable.globallyAllowedAttributePrefixes)}e=new Set(q.JSC$9381_sanitizerTable.allowedGlobalAttributes);e.add("class");q.JSC$9381_sanitizerTable=new vI(q.JSC$9381_sanitizerTable.allowedElements,q.JSC$9381_sanitizerTable.elementPolicies,e,q.JSC$9381_sanitizerTable.globalAttributePolicies,q.JSC$9381_sanitizerTable.globallyAllowedAttributePrefixes);
_.eO(Q,_.tnE(q.build(),bJ5(A.text())));W2x(t.value)},"OZ439c");
f={};return _.u("div",null,_.u("markdown-div",{class:_.Ao("ytwMarkdownDivHost",(f.ytwMarkdownDivDark=X,f.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var Q;return((Q=A.isSmallText)==null?void 0:Q.call(A))||!1},f.ytwMarkdownDivHostWrapCodeBlocks=function(){var Q;
return((Q=A.wrapCodeBlocks)==null?void 0:Q.call(A))||!1},f.ytwMarkdownDivHostEnableDefaultStyling=function(){var Q;
return!((Q=A.disableDefaultStyling)==null?0:Q.call(A))},f)),
el:t}))},"cf");
_.cc.idomCompat=!0;var NsQ=_.I(function(A){var t=A.imageData;var f=_.dR(A.isInList,!1),X=function(){return f()?{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 _.u("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.u(_.P,{cond:function(){return t().image},
then:function(Q){return _.u(_.YA,{data:Q,alt:function(){return X().alt},
contentMode:function(){return X().contentMode},
targetWidth:function(){return X().targetWidth},
targetHeight:function(){return X().targetHeight},
className:function(){return X().className}})}}),_.u("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.u("div",{class:_.Ao("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.u(_.zL,{text:function(){return t().title}})),_.u(_.xk,{each:function(){var Q;
return(Q=t().description)!=null?Q:[]}},function(Q){return _.u("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.u(Bc,{content:Q}))})))},"df"),ub_=_.I(function(A){var t=A.list;
var f=function(){var X;return(X=t().items)!=null?X:[]};
return _.u("div",{class:"ytwGenAiRichTextViewModelListContent"},_.u(_.P,{cond:function(){return t().title},
then:function(X){return _.u("div",{class:_.Ao("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.u(_.zL,{text:X}))}}),_.u(_.P,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.u("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.u(_.xk,{each:f},function(X){return _.u("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.u(Bc,{content:X,isInList:!0}))}))}}),_.u(_.P,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.u("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.u(_.xk,{each:f},function(X){return _.u("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.u(Bc,{content:X,isInList:!0}))}))}}),_.u(_.P,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.u("div",{class:"ytwGenAiRichTextViewModelImageList"},_.u(_.xk,{each:f},function(X){return _.u("div",{class:"ytwGenAiRichTextViewModelListItem"},_.u(Bc,{content:X,isInList:!0}))}))}}))},"ef"),zx3=_.I(function(A){var t=A.table;
return _.u("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.u("thead",null,_.u("tr",null,_.u(_.xk,{each:function(){var f,X;return(X=(f=t().header)==null?void 0:f.cells)!=null?X:[]}},function(f){return _.u("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.u(_.xk,{each:function(){return f.contents}},function(X){return _.u(Bc,{content:X})}))}))),_.u("tbody",null,_.u(_.xk,{each:function(){var f;
return(f=t().rows)!=null?f:[]}},function(f){return _.u("tr",null,_.u(_.xk,{each:function(){return f.cells}},function(X){return _.u("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.u(_.xk,{each:function(){return X.contents}},function(Q){return _.u(Bc,{content:Q})}))}))})))},"ff"),Bc=_.I(function(A){var t=A.content;
var f=_.dR(A.isInList,!1),X=function(){var Q,q;return(q=(Q=t().contentBlock)==null?void 0:Q.contents)!=null?q:[]};
return _.u("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.u(_.P,{cond:function(){return t().text},
then:function(Q){return _.u(_.zL,{className:"ytwGenAiRichTextViewModelText",text:Q})}}),_.u(_.P,{cond:function(){return t().image},
then:function(Q){return _.u(NsQ,{imageData:Q,isInList:f})}}),_.u(_.P,{cond:function(){return t().list},
then:function(Q){return _.u(ub_,{list:Q})}}),_.u(_.P,{cond:function(){return t().contentBlock},
then:function(){return _.u("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.u(_.xk,{each:X},function(Q){return _.u(Bc,{content:Q,isInList:!1})}))}}),_.u(_.P,{cond:function(){return t().table},
then:function(Q){return _.u(zx3,{table:Q})}}))},"gf"),Pul=_.I(function(A){var t={};
t=_.CW("ytwGenAiRichTextViewModelHost",(t.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Bx("search_overview_link_style")),t));return _.u("gen-ai-rich-text-view-model",{class:t},_.u(Bc,{content:function(){return A.data().content}}))},"hf");_.Tsw=_.I(function(A){var t=A.data;var f=function(){var W;return((W=t().loadingUi)!=null?W:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},X=function(){return t().isLoading&&(f()==="UNSPECIFIED"||f()==="GHOST_CARD")},Q=function(){return!t().isLoading},q=function(){return!!t().content&&!t().contents},e=function(){return!!t().contents},G=function(){return!!t().nextQueryButtons},N=function(){return t().isLoading&&f()==="INVISIBLE"},z=function(){var W,L;
return(L=(W=t().headerIcon)==null?void 0:W.iconType)!=null?L:""},T=function(){var W;
return(W=t().content)!=null?W:""},O=function(){return!!t().sourcesSection},c,B=!((c=_.Px().resolve(_.z7(_.FH)))==null||!c()),h=_.yq(function(){var W=[],L=t().contents;
if(L)for(var E=0;E<L.length;E++){var D=_.C(L&&L[E],hzC);D&&W.push(D)}return W},void 0,"gcCsZb");
_.oh(function(){t().isLoading||_.Wt("so_re",void 0,"search_overview_answer")});
return _.u("ytd-overview-answer-view-model",{class:function(){var W={};W=(W.ytdOverviewAnswerViewModelHost=!0,W.ytdOverviewAnswerViewModelDarkBackground=B&&!N(),W.ytdOverviewAnswerViewModelLightBackground=!B&&!N(),W);return _.CW(W)}},_.u(_.P,{cond:function(){return!N()},
then:function(){return _.u(_.Tw,null,_.u("h2",null,_.u("div",{class:"ytdOverviewAnswerViewModelHeader"},_.u(_.P,{cond:z,then:function(W){return _.u("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.u(_.el,{icon:W}))}}),_.u("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.u("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return t().headerText}),_.u("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.u(_.zL,{text:function(){return t().headerSubtext}}))))),_.u(_.P,{cond:X,
then:function(){return _.u(yj5,null)}}),_.u(_.P,{cond:Q,
then:function(){return _.u(_.Tw,null,_.u(_.P,{cond:q,then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelText"},_.u(_.cc,{text:T,isSmallText:!0}))}}),_.u(_.P,{cond:e,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelRichText"},_.u(_.xk,{each:h},function(W){return _.u(Pul,{data:W})}))}}),_.u(_.P,{cond:G,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.u(_.P1,{data:function(){return t().nextQueryButtons}},{buttonViewModel:function(W){return _.u(_.nx,{data:W.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.iq}))}}),_.u("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.u("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.u(_.P,{cond:function(){return!!_.C(t().likeButtonViewModel,_.Xw)&&!!_.C(t().dislikeButtonViewModel,_.fl)},
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.u(_.eK,{data:function(){return _.C(t().likeButtonViewModel,_.Xw)},
disableIconAnimation:!0}),_.u(_.U3,{data:function(){return _.C(t().dislikeButtonViewModel,_.fl)}}))}})),_.u(_.P,{cond:function(){var W;
return(W=t().sourcesSection)==null?void 0:W.headerText},
then:function(W){return _.u("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.u(_.zL,{text:W}))}})),_.u(_.P,{cond:O,
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelSources"},_.u(_.P1,{data:function(){var W;return(W=t().sourcesSection)==null?void 0:W.sourcesShelf}},{buttonViewModel:_.nx,
horizontalShelfViewModel:function(W){return _.u(_.iq,{data:W.data,includeMargin:!0,hasPeek:!0})}}))}}),_.u(_.P,{cond:function(){return t().disclaimerText},
then:function(){return _.u("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.u(_.zL,{text:function(){return t().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"jf");var igw=_.I(function(A){var t=_.Sv(A,{}).data;return _.u("yt-shopping-content-line-item-view-model",{class:_.Ao("ytShoppingContentLineItemViewModelHost")},_.u(_.zL,{text:function(){var f;return(f=t().text)==null?void 0:f.attributedString}}))},"kf");_.M5=_.I(function(A){A=_.Sv(A,{});var t=A.data,f={};return _.u("yt-shopping-content-line-view-model",{class:_.Ao("ytShoppingContentLineViewModelHost",A.className,(f.ytShoppingContentLineViewModelTruncateText=function(){return!t().wrapContent},f)),
style:_.U7({"--shopping-content-line-gap":function(){return t().itemGap?t().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return t().lineHeight?t().lineHeight+"px":void 0}})},_.u(_.xk,{each:function(){return(t().items||[]).map(function(X){return _.C(X,nxb)}).filter(function(X){return!!X})}},function(X){return _.u(igw,{data:X})}))},"lf");var Ogm=_.I(function(A){var t=A.data;var f=function(){var q;return((q=t().image)==null?void 0:q.height)||48},X=function(){var q;
return((q=t().image)==null?void 0:q.width)||48},Q=function(){return"width: "+X()+"px; height: "+f()+"px;"};
return _.u("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var q,e,G,N=((q=_.Px().resolve(_.z7(_.FH)))==null?0:q())?(e=t())==null?void 0:e.darkThemeBackgroundColor:(G=t())==null?void 0:G.lightThemeBackgroundColor;return"background-color: "+(N?_.bY(N):"")+";"},
el:_.ZY(_.W1(function(){var q;return(q=t())==null?void 0:q.rendererContext}))},_.u(_.P,{cond:function(){var q,e;
return(e=(q=t().image)==null?void 0:q.image)!=null?e:t().thumbnail},
then:function(q){return _.u("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var e;return"background-color: "+(((e=t().image)==null?0:e.backgroundColor)?_.bY(t().image.backgroundColor):"")+";"+Q()}},_.u(_.YA,{data:q,
height:f,width:X,style:Q,alt:""}))}}),_.u("div",{class:"ytShoppingDescriptionItemViewModelText"},_.u(_.P1,{data:function(){return t().line1}},{shoppingContentLineViewModel:function(q){return _.u(_.M5,{data:q.data})}}),_.u(_.P1,{data:function(){return t().line2}},{shoppingContentLineViewModel:function(q){return _.u(_.M5,{data:q.data})}}),_.u(_.P1,{data:function(){return t().line3}},{shoppingContentLineViewModel:function(q){return _.u(_.M5,{data:q.data})}})))},"mf");var cbA=_.I(function(A){var t=A.data;var f=A.active;var X=_.GU("transcript-segment-view-model");_.oo(function(){var Q,q,e,G=((Q=_.Px().resolve(_.z7(_.FH)))==null?0:Q())?(q=t())==null?void 0:q.darkThemeColorPalette:(e=t())==null?void 0:e.lightThemeColorPalette;G&&(G.additiveBackground&&X.value.style.setProperty("--timestamp-active-background-color",_.bY(G.additiveBackground)),G.textSecondary&&X.value.style.setProperty("--timestamp-active-color",_.mt(G.textSecondary)))},"TnVCnb");
A={};return _.u("transcript-segment-view-model",{class:_.Ao("ytwTranscriptSegmentViewModelHost",(A.ytwTranscriptSegmentViewModelHostActive=f,A.ytwTranscriptSegmentViewModelHostModern=_.M("enable_timeline_view_modern_transcript")||_.M("enable_timeline_view_modern_transcript_fe"),A)),el:X},_.u(_.P,{cond:function(){var Q;return(Q=t())==null?void 0:Q.timestamp},
then:function(Q){var q={};return _.u(_.Tw,null,_.u("div",{class:_.Ao("ytwTranscriptSegmentViewModelTimestamp",(q.ytwTranscriptSegmentViewModelTimestampActive=f,q)),"aria-hidden":!0},Q),_.u("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var e=Q().split(":").map(Number),G=_.U(e.reverse());e=G.next().value;var N=G.next().value;G=G.next().value;return _.QHb({hours:G,minutes:N,seconds:e})}))}}),_.u(_.zL,{text:function(){var Q,q,e;
return(e=(Q=t())==null?void 0:Q.attributedText)!=null?e:{content:(q=t())==null?void 0:q.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"of");var Bsw=_.I(function(A){var t=A.data;return _.u("div",{class:"videoAttributesSectionViewModelHeader"},_.u("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.u("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return t().headerTitle}),_.u(_.P,{cond:function(){return t().headerInfoButton},
then:function(){return _.u(_.P1,{data:function(){return t().headerInfoButton}},{buttonViewModel:function(f){return _.u(_.nx,{data:f.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.u(_.P,{cond:function(){return t().headerSubtitle},
then:function(){return _.u("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return t().headerSubtitle})}}))},"pf"),MTy=_.I(function(A){function t(W){return Math.max(Math.min(W,0),z()-G())}
var f=A.data;var X;A=_.GU("div",function(W){var L=function(){T(W.clientWidth)};
L();window.ResizeObserver&&(X=new ResizeObserver(L),X.observe(W))});
var Q=_.GU("div",function(W){N(W.scrollWidth)}),q=_.U(_.hZ(0,void 0,"C3XQAe")),e=q.next().value;
q=q.next().value;var G=e,N=q;q=_.U(_.hZ(0,void 0,"db7y3"));e=q.next().value;q=q.next().value;var z=e,T=q;e=_.U(_.hZ(0,void 0,"RchC7"));var O=e.next().value,c=e.next().value;_.dD(function(){var W;(W=X)==null||W.disconnect()});
var B=function(){c(t(O()+z()))},h=function(){c(t(O()-z()))};
return _.u("yt-video-attributes-section-view-model",null,_.u("div",{class:"videoAttributesSectionViewModelHost"},_.u(_.P,{cond:function(){return f().headerTitle},
then:function(){return _.u(Bsw,{data:f})}}),_.u("div",{class:_.Ao("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:A},_.u("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.U7({transform:function(){var W=O();_.ah("HTML_DIR")==="rtl"&&(W*=-1);return"translateX("+W+"px)"}}),
el:Q},_.u(_.P1,{data:function(){return f().videoAttributeViewModels}},{videoAttributeViewModel:X88}))),_.u(_.P1,{data:function(){return f().footerButton}},{buttonViewModel:function(W){return _.u(_.nx,{data:W.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.u(_.P,{cond:function(){return O()<0&&f().previousButton},
then:function(){return _.u("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.u(_.P1,{data:function(){return f().previousButton}},{buttonViewModel:function(W){return _.u(_.nx,{data:W.data,
onClick:B})}}))}}),_.u(_.P,{cond:function(){return O()>z()-G()&&f().nextButton},
then:function(){return _.u("div",{class:"videoAttributesSectionViewModelRightArrow"},_.u(_.P1,{data:function(){return f().nextButton}},{buttonViewModel:function(W){return _.u(_.nx,{data:W.data,
onClick:h})}}))}})))},"qf");
MTy.idomCompat=!0;var Cu2=_.I(function(A){var t=A.data;var f=A.active;var X={},Q={};return _.u("timeline-item-view-model",{class:_.Ao("ytwTimelineItemViewModelHost",(X.ytwTimelineItemViewModelHostChapterChild=A.chapterChild,X.ytwTimelineItemViewModelModern=_.M("enable_timeline_view_modern_transcript")||_.M("enable_timeline_view_modern_transcript_fe"),X))},_.u("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.u("div",{class:_.Ao("ytwTimelineItemViewModelTimestamp",(Q.ytwTimelineItemViewModelTimestampActive=
f,Q))},function(){return t().timestamp})),_.u("div",{class:"ytwTimelineItemViewModelContentItems"},_.u(_.P1,{data:function(){return t().contentItems}},{transcriptSegmentViewModel:function(q){return _.u(cbA,{data:q.data,
active:f})},
videoAttributesSectionViewModel:MTy})))},"rf");var hx2=_.I(function(A){var t=A.data;A={};return _.u("timeline-chapter-view-model",{class:_.Ao("ytwTimelineChapterViewModelHost")},_.u("div",{class:_.Ao("ytwTimelineChapterViewModelTitle",(A.ytwTimelineChapterViewModelModern=_.M("enable_timeline_view_modern_transcript")||_.M("enable_timeline_view_modern_transcript_fe"),A))},function(){return t().title}),_.u(_.P1,{data:function(){return t().contents}},{timelineItemViewModel:function(f){return _.u(Cu2,{data:f.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(f){return _.u(MTy,{data:f.data})}}))},"sf");var Rxh=_.I(function(A){var t=A.data;var f=_.GU("macro-markers-panel-item-view-model"),X=_.Nt(_.Ph5,function(){var q;return(q=t().markersEngagementPanelSyncEntityKey)!=null?q:""}),Q=function(){var q;
return((q=X())==null?void 0:q.activeItemIndex)===t().index};
A=_.f1(function(q){var e,G,N,z,T;return _.l(function(O){if(O.nextAddress==1)return q.stopPropagation(),_.Rv(_.hE(q),f.value,["A".toString(),"BUTTON".toString()])?O.return():(e=_.bP(t().onTap))?O.yield(_.Q9(),2):O.return();G=O.yieldResult;z=(N=_.C(e,_.ZT))==null?void 0:N.startTimeSeconds;z===void 0||(T=G)!=null&&T.seekTo(z,!0);_.LO(O)})});
return _.u("macro-markers-panel-item-view-model",{class:_.Ao("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Q}),el:f,"on:click":A,tabindex:0,role:"button"},_.u(_.P1,{data:function(){var q;return(q=t())==null?void 0:q.item}},{timelineChapterViewModel:function(q){return _.u(hx2,{data:q.data,
active:Q})},
timelineItemViewModel:function(q){return _.u(Cu2,{data:q.data,active:Q})},
videoAttributeViewModel:X88,shoppingDescriptionItemViewModel:Ogm}))},"tf");
Rxh.idomCompat=!0;_.Hn(Rxh,"macro-markers-panel-item-view-model",{props:{data:_.PS}});_.Hn(MTy,"yt-video-attributes-section-view-model",{props:{data:_.PS}});var mld=_.I(function(A){var t=function(){var f,X,Q;return(Q=(f=A.data().leadingLogoAccessibility)==null?void 0:(X=f.accessibilityData)==null?void 0:X.label)!=null?Q:""};
return _.u("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.u(_.P,{cond:function(){return A.data().leadingLogo},
then:function(f){return _.u(_.YA,{className:"ytwFantasySectionHeaderViewModelLogo",data:f,alt:t})}}),_.u("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.u(_.zL,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return A.data().title}}),_.u(_.zL,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return A.data().subtitle}})),_.u(_.P1,{data:function(){return A.data().trailingButton}},{buttonViewModel:function(f){return _.u(_.nx,{data:f.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"uf");var bgd=_.I(function(A){var t={};t=_.Ao("ytwFantasyTeamViewModelHost",(t.ytwFantasyTeamViewModelCompact=function(){var Q;return!((Q=A.compact)==null||!Q.call(A))},t.ytwFantasyTeamViewModelUser=function(){return A.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},t.ytwFantasyTeamViewModelOpponent=function(){return A.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},t));
var f=function(){var Q,q,e;return(e=(Q=A.data().teamLogoAccessibility)==null?void 0:(q=Q.accessibilityData)==null?void 0:q.label)!=null?e:""},X=_.Nt(ics,function(){return A.data().teamEntityKey});
return _.u("ytw-fantasy-team-view-model",{class:t},_.u(_.P,{cond:function(){return A.data().teamLogo},
then:function(Q){return _.u(_.YA,{className:"ytwFantasyTeamViewModelLogo",data:Q,alt:f})}}),_.u("div",{class:"ytwFantasyTeamViewModelMetadata"},_.u("div",{class:"ytwFantasyTeamViewModelHeader"},_.u(_.zL,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Q;return(Q=X())==null?void 0:Q.score}}),_.u(_.el,{icon:function(){var Q;
return(Q=X())==null?void 0:Q.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.u(_.zL,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Q;return(Q=X())==null?void 0:Q.projectedScore}})),_.u(_.zL,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return A.data().primaryText}}),_.u(_.zL,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return A.data().secondaryText}}),_.u(_.zL,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return A.data().tertiaryText}})),_.u(_.zL,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Q;return(Q=X())==null?void 0:Q.score}}))},"vf");_.Hn(_.I(function(A){return _.u("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.u("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.u(_.P1,{data:function(){return A.data().summaryHeader}},{fantasySectionHeaderViewModel:mld})),_.u(_.P1,{data:function(){return A.data().userTeam}},{fantasyTeamViewModel:bgd}),_.u(_.P1,{data:function(){return A.data().opponentTeam}},{fantasyTeamViewModel:bgd}))},"wf"),"fantasy-league-summary-view-model",{props:{data:_.PS}});var W5c=_.I(function(A){var t=_.Sv(A,{shape:{},useCustomTabRenderable:!1}),f=t.shape;t=t.useCustomTabRenderable;var X=A.customTabRenderable,Q=function(){return f().disabled},q=function(){return f().selected},e=function(){return f().title},G=function(){return f().icon},N=_.GU("yt-tab-shape");
A=_.f1(function(O){var c;if(!Q()&&((c=f().aTagConfig)==null?0:c.onclick))f().aTagConfig.onclick(O);return!1});
var z=_.f1(function(O){if(O.key==="Enter"||O.key==="ArrowUp"||O.key==="ArrowDown")O.preventDefault(),N.value.click();return!1}),T={};
return _.u("yt-tab-shape",{class:_.Ao("yt-tab-shape",function(){return f().className},(T["yt-tab-shape__tab--last-tab"]=function(){return f().isLastTab},T["yt-tab-shape--host-disabled"]=Q,T["yt-tab-shape--host-clickable"]=!X,T)),
role:X?void 0:"tab","aria-selected":q!=null?q:!1,"aria-disabled":Q,tabindex:X?void 0:0,"on:click":A,"on:keydown":z,el:N,"tab-identifier":function(){return f().identifier},
"tab-title":e},_.u(_.P,{cond:t,then:function(){return X()},
else:function(){var O={},c={};return _.u(_.Tw,null,_.u("div",{class:_.Ao("yt-tab-shape__tab",(O["yt-tab-shape__tab--tab-selected"]=q,O))},_.u(_.P,{cond:G,then:function(B){return _.u(_.el,{className:"yt-tab-shape__tab-icon",icon:function(){return B().iconType}})}}),e),_.u("div",{class:_.Ao("yt-tab-shape__tab-bar",(c["yt-tab-shape__tab-bar--tab-bar-selected"]=q,c))}))}}))},"xf");
W5c.idomCompat={callbacks:{customTabRenderable:!0}};_.vqw=_.I(function(A){var t=A.shape;A=_.U(_.hZ(48,void 0,"nDAx4"));var f=A.next().value,X=A.next().value;A=_.U(_.hZ(0,void 0,"GCgjqb"));var Q=A.next().value,q=A.next().value,e=function(){return t().tabs},G=_.GU("yt-tab-group-shape"),N=function(){var c,B;
return(B=(c=e())==null?void 0:c.findIndex(function(h){return h.selected}))!=null?B:-1};
A=_.U(_.hZ(!1,void 0,"SU01tf"));var z=A.next().value,T=A.next().value,O=function(){z()||_.a6.addJob(function(){T(!0)},0)};
_.oo(function(){var c=N(),B=_.a6.addJob(function(){var h,W=((h=G.value)==null?void 0:h.querySelectorAll("yt-tab-shape"))||[],L;X(((L=c>-1?W[c]:void 0)==null?void 0:L.getBoundingClientRect().width)||0);for(L=h=0;L<c;L++)h+=W[L].offsetWidth+24;_.ah("HTML_DIR")==="rtl"&&(h=-h);q(h);O()},8,0);
_.dD(function(){_.a6.cancelJob(B)})},"PMwgb");
A={};return _.u("yt-tab-group-shape",{class:_.Ao("tabGroupShapeHost",(A.tabGroupShapeOverflowHidden=function(){return t().isOverflowHidden},A)),
el:G},_.u(_.P,{cond:e,then:function(c){return _.u(_.Tw,null,_.u("div",{class:"tabGroupShapeTabs",role:"tablist"},_.u(_.xk,{each:c},function(B,h){return _.u(W5c,{shape:function(){return Object.assign({},B,{isLastTab:h()===c().length-1})},
customTabRenderable:B.customTabRenderable,useCustomTabRenderable:!!B.customTabRenderable})})),_.u(yb2,{width:f,
sliderOffset:Q,enableTransition:z}))}}))},"zf");
_.vqw.idomCompat=!0;var yb2=_.I(function(A){var t=_.dR(A.sliderOffset,0),f=A.width,X=A.enableTransition;A={};return _.u("div",{class:_.Ao("tabGroupShapeSlider",(A.tabGroupShapeSliderTransition=function(){return X()},A)),
style:_.U7({width:function(){return f()+"px"},
transform:function(){return"translateX("+t()+"px)"}})})},"Af");var L53=_.I(function(A){var t=function(){var q,e,G;return(G=(q=A.data().playerLogoAccessibility)==null?void 0:(e=q.accessibilityData)==null?void 0:e.label)!=null?G:""},f=_.Nt(Ocz,function(){return A.data().playerEntityKey}),X={};
X=_.Ao("ytwFantasyPlayerViewModelHost",(X.ytwFantasyPlayerViewModelPlaying=function(){var q;return!((q=f())==null||!q.isPlayerPlaying)},X.ytwFantasyPlayerViewModelOnField=function(){var q;
return((q=f())==null?void 0:q.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},X.ytwFantasyPlayerViewModelRedZone=function(){var q;
return((q=f())==null?void 0:q.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},X));
var Q=function(){var q,e,G,N=((q=_.Px().resolve(_.z7(_.FH)))==null?0:q())?(e=A.data().playerLogoBackgroundColor)==null?void 0:e.darkTheme:(G=A.data().playerLogoBackgroundColor)==null?void 0:G.lightTheme;return N===void 0?"":_.bY(N)};
return _.u("ytw-fantasy-player-view-model",{class:X},_.u(_.P,{cond:function(){return A.data().playerLogo},
then:function(q){return _.u("div",{class:"ytwFantasyPlayerViewModelLogo"},_.u("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.u(_.YA,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.U7({"background-color":Q}),data:q,alt:t})),_.u("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.u(_.el,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.u("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.u("div",{class:"ytwFantasyPlayerViewModelHeader"},_.u(_.zL,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var q;return(q=A.data())==null?void 0:q.playerNameText}}),_.u(_.zL,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var q;return(q=A.data())==null?void 0:q.playerDescriptionText}})),_.u("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.u(_.zL,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var q;return(q=f())==null?void 0:q.gamePeriodText}}),_.u(_.zL,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var q;return(q=A.data())==null?void 0:q.opponentTeamText}}),_.u(_.zL,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var q;return(q=f())==null?void 0:q.gameStatusText}}),_.u(_.zL,{className:_.Ao("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var q;return(q=f())==null?void 0:q.playerStatusText}})),_.u("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.u(_.zL,{text:function(){var q;
return(q=f())==null?void 0:q.playerStatsText}}))),_.u(_.zL,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var q;return(q=f())==null?void 0:q.fantasyScore}}))},"Bf");var pp3=_.I(function(A){return _.u("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.u(_.P,{cond:function(){return A.data().players},
then:function(t){return _.u(_.P1,{data:t},{fantasyPlayerViewModel:L53})}}))},"Cf");var Eq8=_.I(function(A){var t=_.U(_.Jo(function(){var Q;return(Q=A.data().selectedTabIdentifierKey)!=null?Q:""})),f=t.next().value,X=t.next().value;
_.Zk(function(){var Q;(Q=A.setSelectedTabSignal)==null||Q.call(A,f)});
return _.u("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.u("div",{class:"ytTabbedViewModelTabGroup"},_.u(_.vqw,{shape:function(){var Q=A.data(),q=[],e={tabs:q};if(!Q.tabs)return e;Q=_.U(Q.tabs);for(var G=Q.next(),N={};!G.done;N={tabViewModel:void 0},G=Q.next())if(N.tabViewModel=_.C(G.value,Fu7),N.tabViewModel){var z=G=void 0;q.push({aTagConfig:{onclick:function(T){return function(){var O;X((O=T.tabViewModel.tabIdentifier)!=null?O:"")}}(N)},
identifier:N.tabViewModel.tabIdentifier,selected:f()===N.tabViewModel.tabIdentifier,title:(z=(G=N.tabViewModel.title)==null?void 0:G.content)!=null?z:""})}return e}})),_.u(_.P1,{data:function(){var Q,q=_.U((Q=A.data().tabs)!=null?Q:[]);
for(Q=q.next();!Q.done;Q=q.next())if((Q=_.C(Q.value,Fu7))&&Q.tabIdentifier===f())return Q.content}},{fantasyRosterViewModel:pp3}))},"Ef");_.Hn(_.I(function(A){var t=_.U(vnx()),f=t.next().value,X=t.next().value;return _.u("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.u(_.zL,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return A.data().title}}),_.u(_.P,{cond:function(){return A.data().tabbedViewModel},
then:function(Q){return _.u(_.P1,{data:Q},{tabbedViewModel:function(q){return _.u(Eq8,{data:q.data,setSelectedTabSignal:X})}})}}),_.u(_.P,{cond:function(){var Q,q=(Q=_.C(A.data().tabbedViewModel,IlC))==null?void 0:Q.tabs;
Q=_.C(q==null?void 0:q[0],Fu7);q=_.C(q==null?void 0:q[1],Fu7);var e=Q==null?void 0:Q.tabIdentifier;if(f()===e){var G,N;if(!((G=_.C(Q==null?void 0:Q.content,szl))==null?0:(N=G.players)==null?0:N.length))return A.data().noUserTeamPlayersText}else{var z,T;if(!((z=_.C(q==null?void 0:q.content,szl))==null?0:(T=z.players)==null?0:T.length))return A.data().noOpponentTeamPlayersText}},
then:function(Q){return _.u(_.zL,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Q})}}))},"Ff"),"ytw-fantasy-matchup-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){return _.u("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.u(_.zL,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return A.data().title}}),_.u(_.P,{cond:function(){return A.data().matchupTeamPairs},
then:function(t){return _.u(_.xk,{each:t,keyBy:"INDEX"},function(f){return _.u("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.u(_.P1,{data:function(){return[f().firstTeam,f().secondTeam]}},{fantasyTeamViewModel:function(X){return _.u(bgd,{data:X.data,
compact:!0})}}))})}}))},"Gf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=function(){var Q,q,e;return(e=(Q=A.data().userLogoAccessibility)==null?void 0:(q=Q.accessibilityData)==null?void 0:q.label)!=null?e:""},f=function(){var Q,q,e;
return(e=(Q=A.data().opponentLogoAccessibility)==null?void 0:(q=Q.accessibilityData)==null?void 0:q.label)!=null?e:""},X=_.Nt(TTs,function(){return A.data().entityKey});
return _.u("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.u("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.u(_.P,{cond:function(){return A.data().userLogo},
then:function(Q){return _.u(_.YA,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:t})}}),_.u("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.u(_.zL,{text:function(){return A.data().title}})),_.u(_.P,{cond:function(){return A.data().opponentLogo},
then:function(Q){return _.u(_.YA,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:f})}})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.u("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.u(_.zL,{text:function(){var Q;
return(Q=X())==null?void 0:Q.userWinNumberLabel}})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.u("div",{class:_.Ao("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.U7({flex:function(){var Q,q;return(q=(Q=X())==null?void 0:Q.userWinNumber)!=null?q:50}})}),_.u("div",{class:_.Ao("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.U7({flex:function(){var Q,q;return(q=(Q=X())==null?void 0:Q.opponentWinNumber)!=null?q:50}})})),_.u("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.u(_.zL,{text:function(){var Q;
return(Q=X())==null?void 0:Q.opponentWinNumberLabel}}))))},"Hf"),"fantasy-win-probability-view-model",{props:{data:_.PS}});var nq3={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},Dlj=_.I(function(A){return _.u(_.P1,{data:A.button},{buttonViewModel:function(t){return _.u(_.nx,{data:t.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"If"),F5_=_.I(function(A){return _.u("ytd-backstage-locked-post-view-model",{class:_.Ao("ytdBackstageLockedPostViewModelHost",A.className)},_.u("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.u("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.u(_.P1,
{data:function(){return A.data().authorAvatar}},{decoratedAvatarViewModel:_.qM})),_.u("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.u("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.u(_.zL,{text:function(){return A.data().authorText}})),_.u("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.u(_.zL,{text:function(){return A.data().publishedTimeText}}),_.u(_.P1,{data:function(){return A.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(t){return _.u(IqC,
{data:t.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.u("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.u(_.zL,{text:function(){return A.data().contentText}})),_.u(_.j2,null,_.u(_.FE,{when:function(){return A.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.u("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.u(_.YA,{data:nq3,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.u(_.zL,{text:function(){return A.data().lockedText}}))}),_.u(_.FE,{when:function(){return A.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.u("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.u("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.u(_.YA,{data:nq3,
alt:""})),_.u(_.zL,{text:function(){return A.data().lockedText}}))})),_.u("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.u(Dlj,{button:function(){return A.data().likeButton}}),_.u("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return A.data().voteCountA11y}},_.u(_.zL,{text:function(){return A.data().voteCount}})),_.u(Dlj,{button:function(){return A.data().dislikeButton}}),_.u(Dlj,{button:function(){return A.data().commentButton}}),_.u("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return A.data().commentCountA11y}},_.u(_.zL,{text:function(){return A.data().commentCount}}))))},"Jf");
F5_.idomCompat=!0;_.Hn(F5_,"ytd-backstage-locked-post-view-model",{props:{data:_.PS,className:_.PS}});_.C1("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var CD=function(){var A=_.F.apply(this,arguments)||this;A.darkerPanels=_.M("web_watch_darker_panels");A.commentsHidePanelButton=!1;A.isWatchGrid=!1;A.continuationShowButton=!1;A.isSearch=!1;A.isConstrainedList=!1;A.isWatch=!1;A.eligibleToSwitchToGrid=!1;A.useBigThumbs=!1;A.notSticky=!1;A.epRestyle=!1;A.isCarouselInFeed=!0;A.topSpacingZero=!1;A.continuationIsInitialLoad=!0;A.enableSqueezebackPanels=_.M("web_shorts_enable_squeezeback_panels");A.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");
A.mastheadHeight=0;A.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};A.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return A};
_.R(CD,_.F);_.J=CD.prototype;_.J.updateLockupContainerTypes=function(A){if(this.eligibleToSwitchToGrid){var t;(t=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||t.forEach(function(f){f.containerType=A})}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.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]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",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",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",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:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},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]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},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",
eduCardViewModel:"yt-edu-card-view-model",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",linearLayoutViewModel:"yt-linear-layout-view-model",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:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
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",videoOverviewViewModel:"yt-video-overview-view-model",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:_.M("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.M("kevlar_low_priority_continuation")}}};
_.J.created=function(){};
_.J.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.J.handleIntersect=function(A){this.notSticky=A[0].intersectionRatio===1};
_.J.attached=function(){var A=this;if(_.M("web_fix_sticky_playlist_header_v2")){var t=_.M("web_item_section_sticky_header_use_scroll_as_fallback");t||document.addEventListener("scroll",_.JY(this,this.updateHeaderState));var f;this.mastheadHeight=((f=document.querySelector("ytd-masthead"))==null?void 0:f.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(X){A.handleIntersect(X)},{rootMargin:"-"+
(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):t&&document.addEventListener("scroll",_.JY(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){A.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))}};
_.J.detached=function(){if(_.M("web_fix_sticky_playlist_header_v2")){document.removeEventListener("scroll",_.JY(this,this.updateHeaderState));var A;(A=this.intersectionObserver)==null||A.disconnect();var t;(t=this.resizeObserver)==null||t.disconnect()}};
_.J.updated=function(A){A.has("data")&&_.M("web_fix_sticky_playlist_header_v2")&&this.updateHeaderState()};
_.J.dispatchChipBarIsSticky=function(){_.M("web_fix_sticky_playlist_header_v2")&&this.ytdReduxBehavior.dispatch(Usl(!this.notSticky))};
_.J.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var A=_.sF(this.hostElement).querySelector("ytd-comments-header-renderer");A&&(A.hidePanelButton=this.commentsHidePanelButton)}};
_.J.onRetrieveLocation=function(A,t){this.containsComments()&&(this.firstCommentsLoaded=t.hasComments=!0)};
_.J.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.J.onLoadReloadContinuation=function(A,t){var f=this;A.stopPropagation();this.isReloading=!0;_.s9(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(X){var Q=_.Px().resolve(_.TD);X=t(X);Q.postData(X).then(function(q){f.onReloadContinuationData(q)})}})};
_.J.onReloadContinuationData=function(A){if(A=this.get("response.continuationContents.itemSectionContinuation",A)||this.get("response.contents.itemSectionRenderer",A)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",A)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",A))this.set("data.contents",A.contents||A.results),A.header&&this.set("data.header",A.header),this.set("data.continuations",
A.continuations||[]);this.isReloading=!1};
_.J.computeContentsClass=function(A){return A?"reloading":""};
_.J.computeSectionIdentifier=function(A){return A==null?void 0:A.sectionIdentifier};
_.J.computeFitContainer=function(A){return(A==null?void 0:A.sectionIdentifier)==="youchat-item-section"};
_.J.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.M("kevlar_disable_comments_auto_load")};
_.J.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.J.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeHasDestinationShelfRenderer=function(A){var t,f;return!!(A==null?0:(t=A.contents)==null?0:(f=t[0])==null?0:f.destinationShelfRenderer)};
_.J.computeHasSectionGroupViewModel=function(A){var t,f;return!!(A==null?0:(t=A.contents)==null?0:(f=t[0])==null?0:f.sectionGroupViewModel)};
_.J.computeHasQrCodeRenderer=function(A){var t,f;return!!(A==null?0:(t=A.contents)==null?0:(f=t[0])==null?0:f.qrCodeRenderer)};
_.J.computeStaticCommentsHeader=function(A){return A&&this.containsComments()};
_.J.computeEpRestyle=function(A){return _.M("web_ep_restyling")&&A&&this.containsComments()};
_.J.computeIsContinuationCommentSection=function(A){return(A==null?void 0:A.targetId)==="shorts-engagement-panel-comments-section"||(A==null?void 0:A.targetId)==="comments-section"||(A==null?void 0:A.targetId)==="engagement-panel-comments-section"};
_.J.computeSuppressPaddingDisclaimer=function(){var A,t,f,X;return!!((A=this.data)==null?0:(t=A.contents)==null?0:(f=t[0])==null?0:(X=f.productListHeaderRenderer)==null?0:X.suppressPaddingDisclaimer)};
_.J.computeHeaderStyle=function(A){switch(A==null?void 0:A.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.J.dataChanged=function(){this.firstCommentsLoaded=!1};
_.J.observeDataContentsLength=function(){var A,t;((A=this.data)==null?0:(t=A.contents)==null?0:t.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.J.onYtDismissibleItemDismissedChange=function(A){this._setItemDismissed(A.type==="yt-dismissible-item-dismissed")};
_.J.triggerContinuations=function(){for(var A=_.sF(this.hostElement).querySelector("#continuations").children,t=0;t<A.length;t++)A[t].trigger()};
_.J.triggerInitialContinuations=function(){for(var A=_.sF(this.hostElement).querySelector("#continuations").children,t=0;t<A.length;t++)A[t].triggerIfNotPreviouslyTriggered()};
_.J.handleYtItemSectionContinuation=function(A,t){var f;t&&((f=this.data)==null?void 0:f.sectionIdentifier)!==t||(this.set("data.continuations",[A]),this.triggerContinuations())};
_.J.handleYtItemSectionReplace=function(A,t){var f;t&&((f=this.data)==null?void 0:f.sectionIdentifier)!==t||(this.set("data.contents",A),this.set("data.continuations",[]))};
_.J.computeUseHeightHack=function(A){return A&&!_.M("kevlar_disable_height_hack")};
_.J.computeTopSpacingZero=function(A){return A};
_.J.continuationShowButtonChanged=function(){var A=_.sF(this.hostElement).querySelector("ytd-continuation-item-renderer");A&&(A.showButton=this.continuationShowButton)};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("data-changed",this.data))};
_.PV.Object.defineProperties(CD.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.M("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.M("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.M("web_fix_sticky_playlist_header_v2")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return!!((A=this.data)==null?0:(t=A.contents)==null?0:(f=t[0])==null?0:f.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X,Q,q,e;return!!((A=this.data)==null?0:(t=A.contents)==null?0:(f=t[0])==null?0:(X=f.shelfRenderer)==null?0:(Q=X.content)==null?0:(q=Q.gridRenderer)==null?0:(e=q.targetId)==null?0:e.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return!!((A=this.data)==null?0:(t=A.contents)==null?0:(f=t[0])==null?0:f.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return!!((A=this.data)==null?0:(t=A.contents)==null?0:(f=t[0])==null?0:f.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Bx("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.M("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.M("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
CD.prototype.dataChangedForBinding=CD.prototype.dataChangedForBinding;CD.prototype.continuationShowButtonChanged=CD.prototype.continuationShowButtonChanged;CD.prototype.onYtDismissibleItemDismissedChange=CD.prototype.onYtDismissibleItemDismissedChange;CD.prototype.observeDataContentsLength=CD.prototype.observeDataContentsLength;CD.prototype.dataChanged=CD.prototype.dataChanged;CD.prototype.onServiceRequestCompleted=CD.prototype.onServiceRequestCompleted;CD.prototype.onLoadReloadContinuation=CD.prototype.onLoadReloadContinuation;
CD.prototype.onRetrieveLocation=CD.prototype.onRetrieveLocation;CD.prototype.commentsHidePanelButtonChanged=CD.prototype.commentsHidePanelButtonChanged;CD.prototype.dispatchChipBarIsSticky=CD.prototype.dispatchChipBarIsSticky;CD.prototype.updateLockupContainerTypes=CD.prototype.updateLockupContainerTypes;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],CD.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.bC.YtLazyListBehavior),_.H("design:type",Object)],CD.prototype,"ytLazyListBehavior",void 0);_.V([_.b(_.MK.YtNextContinuationBehavior),_.H("design:type",Object)],CD.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.b(_.Ba),_.H("design:type",Object)],CD.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],CD.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],CD.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],CD.prototype,"darkerPanels",void 0);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Boolean)],CD.prototype,"engagementPanel",void 0);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"commentsHidePanelButton",void 0);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"isWatchGrid",void 0);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"continuationShowButton",void 0);_.V([_.n({computed:"computeIsContinuationCommentSection(data)"}),_.H("design:type",Boolean)],CD.prototype,"continuationIsCommentsSection",void 0);
_.V([_.n({value:!0}),_.H("design:type",Boolean)],CD.prototype,"autoFill",void 0);_.V([_.n(),_.H("design:type",Boolean)],CD.prototype,"continuationDisablePrescanVisibility",void 0);_.V([_.n(),_.H("design:type",Boolean)],CD.prototype,"isReloading",void 0);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"isSearch",void 0);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"isConstrainedList",void 0);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"isWatch",void 0);
_.V([_.n(),_.H("design:type",Object)],CD.prototype,"eligibleToSwitchToGrid",void 0);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"useBigThumbs",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],CD.prototype,"notSticky",void 0);_.V([_.n({selector:_.y6,reflectToAttribute:!0}),_.H("design:type",Object)],CD.prototype,"isGridViewEnabled",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.H("design:type",Object)],CD.prototype,"epRestyle",void 0);_.V([_.y("isWatch"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CD.prototype,"hideShortsShelfHeader",null);_.V([_.y("isSearch","isWatch"),_.H("design:type",String),_.H("design:paramtypes",[])],CD.prototype,"thumbnailWidth",null);
_.V([_.y("isSearch","containerWidth"),_.H("design:type",Object),_.H("design:paramtypes",[])],CD.prototype,"thumbnailTargetWidth",null);_.V([_.y("isSearch","isWatch","useBigThumbs"),_.H("design:type",String),_.H("design:paramtypes",[])],CD.prototype,"sizing",null);_.V([_.y("isWatch","isGridViewEnabled","useBigThumbs","data"),_.n({reflectToAttribute:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],CD.prototype,"lockupContainerType",null);
_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CD.prototype,"hasHeader",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CD.prototype,"expFixPlaylistHeader",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CD.prototype,"expFixPlaylistHeaderV2",null);
_.V([_.ev("lockupContainerType","data"),_.H("design:type",Function),_.H("design:paramtypes",[Number]),_.H("design:returntype")],CD.prototype,"updateLockupContainerTypes",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],CD.prototype,"pageSubtype",void 0);_.V([_.n(),_.H("design:type",Number)],CD.prototype,"containerWidth",void 0);_.V([_.n(),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CD.prototype,"isPlaylist",null);
_.V([_.n(),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CD.prototype,"isClipList",null);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"isCarouselInFeed",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CD.prototype,"isPlaylistVideoContainer",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CD.prototype,"isSearchFrictionPage",null);
_.V([_.n({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.H("design:type",Boolean)],CD.prototype,"useHeightHack",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.H("design:type",Object)],CD.prototype,"topSpacingZero",void 0);_.V([_.n({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.H("design:type",Boolean)],CD.prototype,"showButton",void 0);
_.V([_.n(),_.H("design:type",Boolean)],CD.prototype,"firstCommentsLoaded",void 0);_.V([_.n(),_.H("design:type",Object)],CD.prototype,"continuationIsInitialLoad",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0}),_.H("design:type",Boolean)],CD.prototype,"itemDismissed",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.H("design:type",String)],CD.prototype,"sectionIdentifier",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.H("design:type",String)],CD.prototype,"fitContainer",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.H("design:type",Boolean)],CD.prototype,"hasDestinationShelfRenderer",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.H("design:type",Boolean)],CD.prototype,"staticCommentsHeader",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],CD.prototype,"enableSqueezebackPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],CD.prototype,"enableAnchoredPanel",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.H("design:type",Boolean)],CD.prototype,"hasSectionGroupViewModel",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.H("design:type",Boolean)],CD.prototype,"hasQrCodeRenderer",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.H("design:type",Boolean)],CD.prototype,"suppressDisclaimerSeparator",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.H("design:type",String)],CD.prototype,"headerStyle",void 0);
_.V([_.y("isSearch","isWatch","useBigThumbs"),_.H("design:type",Object),_.H("design:paramtypes",[])],CD.prototype,"lockupExperiments",null);_.V([_.y("isSearch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CD.prototype,"typographyBump",null);_.V([_.lo("#header"),_.H("design:type",HTMLElement)],CD.prototype,"header",void 0);_.V([_.ev("notSticky"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"dispatchChipBarIsSticky",null);
_.V([_.ev("commentsHidePanelButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"commentsHidePanelButtonChanged",null);_.V([_.UQ("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],CD.prototype,"onRetrieveLocation",null);
_.V([_.UQ("yt-load-reload-continuation"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Function]),_.H("design:returntype")],CD.prototype,"onLoadReloadContinuation",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"onServiceRequestCompleted",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"dataChanged",null);
_.V([_.PU("data.contents.length"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"observeDataContentsLength",null);_.V([_.UQ("yt-dismissible-item-dismissed"),_.UQ("yt-dismissible-item-undismissed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],CD.prototype,"onYtDismissibleItemDismissedChange",null);
_.V([_.ev("continuationShowButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"continuationShowButtonChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"dataChangedForBinding",null);_.V([_.y_({is:"ytd-item-section-renderer",disableElementRegistration:!0})],CD);
_.Y(CD,"ytd-item-section-renderer",function(){if(o0f!==void 0)return o0f;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return o0f=A},{mode:1});var Ixm;var Enq=_.oC(_.e5("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var xl3={},phg=(xl3[0]={title:_.w0(_.e5("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.w0(_.e5("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.Kf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},xl3[1]={title:_.w0(_.e5("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.Kf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},xl3);_.C1("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var hc=function(){var A=_.F.apply(this,arguments)||this;A.allVideosCount=0;A.allPlaylistCount=0;A.isOnline=!1;A.shouldRenderDownloadsBanner=!1;A.shouldRenderDownloadsBannerUpsell=!1;A.hasOptedIntoSmartDownloads=!1;A.areAllSmartDownloadsDeleted=!1;A.smartDownloadsCompleted=!1;return A};
_.R(hc,_.F);hc.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
hc.prototype.attached=function(){this.downloadsToRenderChanged()};
hc.prototype.detached=function(){this.set("renderableData",{})};
hc.prototype.downloadsToRenderChanged=function(){var A=_.$I().getState().entities,t=_.CZ(A),f=_.M("kevlar_playlist_dl_page_killswitch")?bx5(A):_.hR(A),X=_.cag(A),Q=_.hg5(A),q=_.T$(t);A=_.RC(A);this.set("renderableData",DOl(f,t,X,Q,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,q,A))};
hc.prototype.downloadsToRenderChanged=hc.prototype.downloadsToRenderChanged;_.V([_.b(_.qT),_.H("design:type",Object)],hc.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],hc.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],hc.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],hc.prototype,"renderableData",void 0);_.V([_.n({selector:_.Y$0}),_.H("design:type",Object)],hc.prototype,"allVideosCount",void 0);_.V([_.n({selector:P9T}),_.H("design:type",Object)],hc.prototype,"allPlaylistCount",void 0);_.V([_.n({selector:_.vE}),_.H("design:type",Object)],hc.prototype,"isOnline",void 0);_.V([_.n({selector:_.Hxs}),_.H("design:type",Object)],hc.prototype,"shouldRenderDownloadsBanner",void 0);
_.V([_.n({selector:_.wST}),_.H("design:type",Object)],hc.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.V([_.n({selector:_.ams}),_.H("design:type",Object)],hc.prototype,"hasOptedIntoSmartDownloads",void 0);_.V([_.n({selector:_.KJu}),_.H("design:type",Object)],hc.prototype,"areAllSmartDownloadsDeleted",void 0);_.V([_.n({selector:gaq}),_.H("design:type",Object)],hc.prototype,"smartDownloadsCompleted",void 0);
_.V([_.PU("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hc.prototype,"downloadsToRenderChanged",null);_.V([_.y_({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],hc);
_.Y(hc,"ytd-offline-item-section-renderer",function(){if(Ixm!==void 0)return Ixm;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Ixm=A},
{mode:1});var j0y;var Yxd;var R$=function(){return _.F.apply(this,arguments)||this};
_.R(R$,_.F);
R$.prototype.onDataChanged=function(){if(this.JSC$16943_lastData){var A=this.getFilterClass(this.JSC$16943_lastData.status);A&&this.hostElement.classList.remove(A)}var t;(A=this.getFilterClass((t=this.data)==null?void 0:t.status))&&this.hostElement.classList.add(A);A==="selected"?_.sF(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.sF(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");A==="disabled"?_.sF(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.sF(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16943_lastData=this.data};
R$.prototype.getFilterClass=function(A){switch(A){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
R$.prototype.onDataChanged=R$.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],R$.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R$.prototype,"onDataChanged",null);_.V([_.y_({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],R$);
_.Y(R$,"ytd-search-filter-renderer",function(){if(Yxd!==void 0)return Yxd;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Yxd=A},{mode:_.sQ("kevlar_poly_si_batch_j075")?1:2});var mw=function(){return _.F.apply(this,arguments)||this};
_.R(mw,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],mw.prototype,"data",void 0);_.V([_.y_({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],mw);
_.Y(mw,"ytd-search-filter-group-renderer",function(){if(j0y!==void 0)return j0y;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return j0y=A},{mode:_.sQ("kevlar_poly_si_batch_j075")?1:2});var VTl;var bq=function(){return _.F.apply(this,arguments)||this};
_.R(bq,_.F);bq.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.RY());this.isCollapsed=!this.isCollapsed};
bq.prototype.navigateToAboutTheseResultsPage=function(){var A=_.Vb("https://www.youtube.com/howyoutubeworks/product-features/search/");A?_.tt(window,A,"_blank"):_.g9(Error("Vh"))};
bq.prototype.dataChanged=function(){this.isCollapsed=!0};
bq.prototype.computeShowBottomBorder=function(){var A,t,f;return!!((A=this.data)==null?0:(t=A.button)==null?0:t.toggleButtonRenderer)||!((f=this.data)==null||!f.aboutTheseResultsButton)};
bq.prototype.dataChanged=bq.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bq.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.H("design:type",Boolean)],bq.prototype,"showBottomBorder",void 0);_.V([_.n(),_.H("design:type",Boolean)],bq.prototype,"renderCollapsibleMenu",void 0);
_.V([_.n(),_.H("design:type",Boolean)],bq.prototype,"isCollapsed",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bq.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],bq);
_.Y(bq,"ytd-search-sub-menu-renderer",function(){if(VTl!==void 0)return VTl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return VTl=A},{mode:1});var Zg3;var oqc=new _.eh("SECTION_LIST_RENDERER_TOKEN");var dlA;var Wc=function(){return _.F.apply(this,arguments)||this};
_.R(Wc,_.F);Wc.prototype.computeStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Wc.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],Wc.prototype,"headerStyle",void 0);_.V([_.y_({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Wc);
_.Y(Wc,"ytd-text-header-renderer",function(){if(dlA!==void 0)return dlA;var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return dlA=A},{mode:1});var Sxd;var yR=function(){return _.F.apply(this,arguments)||this};
_.R(yR,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],yR.prototype,"data",void 0);_.V([_.y_({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],yR);
_.Y(yR,"ytd-minor-moment-header-renderer",function(){if(Sxd!==void 0)return Sxd;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Sxd=A},{mode:1});var $lh;var vc=function(){return _.F.apply(this,arguments)||this};
_.R(vc,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],vc.prototype,"data",void 0);_.V([_.y_({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],vc);
_.Y(vc,"ytd-minor-moment-setting-alert-renderer",function(){if($lh!==void 0)return $lh;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return $lh=A},{mode:1});var HgA;var axh;var LD=function(){var A=_.F.apply(this,arguments)||this;A.booleanSettingById=!1;A.smartDownloadsEnabledVE=_.Xl(128287);A.smartDownloadsDisabledVE=_.Xl(128286);A.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return A};
_.R(LD,_.F);_.J=LD.prototype;_.J.attachSmartDownloadsSettingVes=function(){var A;this.activeVeForLogging||((A=this.data)==null?void 0:A.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.jN(_.er(),this.smartDownloadsEnabledVE),_.jN(_.er(),this.smartDownloadsDisabledVE))};
_.J.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.s9(this.hostElement,"yt-settings-switch-ready")};
_.J.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.J.onSwitchChange=function(A){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(A=_.oO(A).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.M("kevlar_settings_switch_resolve_command_killswitch")?_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(A)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.J.handleUpdateSettingsSwitch=function(A){(A=_.C(A,i9K))&&this.data&&this.data.id===A.id&&this.set("data.enabled",!!A.enabled)};
_.J.onToggleSettingsSwitch=function(A,t){this.data&&this.data.id===A&&this.set("data.enabled",t!=null?t:!this.data.enabled)};
_.J.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.WX.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.J.maybeLogSmartDownloadsSettingVisibility=function(){var A=_.Ws(),t;A&&((t=this.data)==null?void 0:t.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Vg(A,[this.smartDownloadsEnabledVE]),_.ZN(A,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Vg(A,[this.smartDownloadsDisabledVE]),_.ZN(A,[this.smartDownloadsEnabledVE])))};
_.J.maybeLogSmartDownloadsSettingClick=function(){var A;((A=this.data)==null?void 0:A.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.VA(_.er(),this.activeVeForLogging)};
_.J.updateDataEnabledFromBinding=function(A){this.set("data.enabled",A.detail.value)};
_.PV.Object.defineProperties(LD.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!A&&(A=this.ytRendererBehavior.getSimpleString(this.data.title));return A}}});
LD.prototype.dataChanged=LD.prototype.dataChanged;_.V([_.b(_.qT),_.H("design:type",Object)],LD.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],LD.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],LD.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],LD.prototype,"data",void 0);_.V([_.n({selector:function(A,t){if(Object.keys(A==null?void 0:A.entities).length)switch(t){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return WJ5(A.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.H("design:type",Object)],LD.prototype,"booleanSettingById",void 0);_.V([_.n(),_.H("design:type",Rq)],LD.prototype,"activeVeForLogging",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LD.prototype,"toggleAriaLabel",null);_.V([_.PU("data"),_.PU("booleanSettingById"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LD.prototype,"dataChanged",null);
_.V([_.y_({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],LD);
_.Y(LD,"ytd-settings-switch-renderer",function(){if(axh!==void 0)return axh;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return axh=A},{mode:1});var pD=function(){return _.F.apply(this,arguments)||this};
_.R(pD,_.F);pD.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}}}}};
_.PV.Object.defineProperties(pD.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var A=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(A+=" remove-left-margin");this.data.extraBottomSpace&&(A+=" extra-bottom-space");return A}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],pD.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],pD.prototype,"contentsClassName",null);_.V([_.y_({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],pD);
_.Y(pD,"ytd-minor-moment-setting-section-renderer",function(){if(HgA!==void 0)return HgA;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return HgA=A},{mode:1});var K5j;var Es=function(){return _.F.apply(this,arguments)||this};
_.R(Es,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Es.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Es.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Es);
_.Y(Es,"ytd-empty-product-details-renderer",function(){if(K5j!==void 0)return K5j;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return K5j=A},{mode:1});var gqA;var wpc;var nD=function(){var A=_.F.apply(this,arguments)||this;A.expanded=!0;return A};
_.R(nD,_.F);nD.prototype.getBadgeRowClass=function(A,t,f){for(var X=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),Q=X.next();!Q.done;Q=X.next())Q.value.onShow();A=A.selected;return f?A!==-1?A===t?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(A!==void 0?A:0)===t?"badge-line":"badge-hidden"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],nD.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],nD.prototype,"expanded",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],nD);
_.Y(nD,"ytd-sponsorships-loyalty-badges-renderer",function(){if(wpc!==void 0)return wpc;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return wpc=A},{mode:1});var s0d;var Db=function(){var A=_.F.apply(this,arguments)||this;A.expanded=!0;return A};
_.R(Db,_.F);Db.prototype.getContainerClasses=function(A,t){A=A?"expanded":"collapsed";t&&(A+=" item");return A};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Db.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Db.prototype,"expanded",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Db);
_.Y(Db,"ytd-sponsorships-perk-renderer",function(){if(s0d!==void 0)return s0d;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return s0d=A},{mode:1});var kz_;var FY=function(){var A=_.F.apply(this,arguments)||this;A.expanded=!0;return A};
_.R(FY,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],FY.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],FY.prototype,"expanded",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],FY);
_.Y(FY,"ytd-sponsorships-perks-renderer",function(){if(kz_!==void 0)return kz_;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return kz_=A},{mode:1});var I$=function(){var A=_.F.apply(this,arguments)||this;A.isCollapsed=!1;return A};
_.R(I$,_.F);I$.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
I$.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
I$.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var A;this.expandCollapseButton=_.C((A=this.data)==null?void 0:A.expandButton,_.Gf)}else{var t;this.expandCollapseButton=_.C((t=this.data)==null?void 0:t.collapseButton,_.Gf)}};
I$.prototype.updateExpandCollapseButton=I$.prototype.updateExpandCollapseButton;I$.prototype.onDataChanged=I$.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],I$.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],I$.prototype,"isCollapsed",void 0);_.V([_.n(),_.H("design:type",Object)],I$.prototype,"expandCollapseButton",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I$.prototype,"onDataChanged",null);_.V([_.PU("data","isCollapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I$.prototype,"updateExpandCollapseButton",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],I$);
_.Y(I$,"ytd-sponsorships-expandable-perks-renderer",function(){if(gqA!==void 0)return gqA;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return gqA=A},{mode:1});var rbd;var xK=function(){return _.F.apply(this,arguments)||this};
_.R(xK,_.F);xK.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],xK.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],xK.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],xK);
_.Y(xK,"ytd-sponsorships-actionable-message-renderer",function(){if(rbd!==void 0)return rbd;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return rbd=A},{mode:1});var Af3;var jb=function(){return _.F.apply(this,arguments)||this};
_.R(jb,_.F);_.J=jb.prototype;_.J.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.J.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.J.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.computeMessageContainerStyle=function(A){var t=A.expandableItems?" style-clickable":"";return A.messageContainerStyle?A.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+t:"style-unspecified"+t};
_.J.isSinglePerk=function(A){return!!A.messageContainerStyle&&(A.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||A.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.J.onExpandedChanged=function(){var A=this;if(this.expanded)for(var t=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),f=t.next();!f.done;f=t.next())f.value.onShow();_.us(this,function(){_.s9(A.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
jb.prototype.onDataChanged=jb.prototype.onDataChanged;jb.prototype.onExpandedChanged=jb.prototype.onExpandedChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],jb.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],jb.prototype,"expanded",void 0);
_.V([_.ev("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jb.prototype,"onExpandedChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jb.prototype,"onDataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],jb);
_.Y(jb,"ytd-sponsorships-expandable-message-renderer",function(){if(Af3!==void 0)return Af3;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Af3=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var ti3;var YK=function(){return _.F.apply(this,arguments)||this};
_.R(YK,_.F);YK.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"}}}}};
YK.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.C(this.data.endButton,_.Gf).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
YK.prototype.onDataChanged=YK.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],YK.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YK.prototype,"onDataChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],YK);
_.Y(YK,"ytd-sponsorships-heading-renderer",function(){if(ti3!==void 0)return ti3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ti3=A},{mode:1});var fwh;var VR=function(){return _.F.apply(this,arguments)||this};
_.R(VR,_.F);_.V([_.n(),_.H("design:type",Object)],VR.prototype,"data",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],VR);
_.Y(VR,"ytd-sponsorships-links-renderer",function(){if(fwh!==void 0)return fwh;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return fwh=A},{mode:1});var XTm;var Zb=function(){return _.F.apply(this,arguments)||this};
_.R(Zb,_.F);_.J=Zb.prototype;_.J.onDataChanged=function(){if(this.data&&this.data.expandableItems){var A;(A=_.sF(this.hostElement).querySelector("tp-yt-paper-button"))==null||A.setAttribute("role","button")}else{var t;(t=_.sF(this.hostElement).querySelector("tp-yt-paper-button"))==null||t.removeAttribute("role")}};
_.J.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.J.getTileClasses=function(A){return A?"tile expandable-tile":"tile"};
_.J.getButtonDisabled=function(A){return A?void 0:""};
Zb.prototype.onDataChanged=Zb.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Zb.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Zb.prototype,"expanded",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zb.prototype,"onDataChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Zb);
_.Y(Zb,"ytd-sponsorships-list-tile-renderer",function(){if(XTm!==void 0)return XTm;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return XTm=A},{mode:1});var Qpj;var qT3;var o$=function(){return _.F.apply(this,arguments)||this};
_.R(o$,_.F);o$.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],o$.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],o$);
_.Y(o$,"ytd-sponsorships-promotion-renderer",function(){if(qT3!==void 0)return qT3;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return qT3=A},{mode:1});var JfQ;var dI=function(){return _.F.apply(this,arguments)||this};
_.R(dI,_.F);dI.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],dI.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],dI);
_.Y(dI,"ytd-sponsorships-purchase-option-renderer",function(){if(JfQ!==void 0)return JfQ;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return JfQ=A},{mode:1});var Ub3;var e7Q;var Gkd=function(){return _.F.apply(this,arguments)||this};
_.R(Gkd,_.F);_.V([_.n(),_.H("design:type",Object)],Gkd.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Gkd);
_.Y(Gkd,"ytd-ypc-offer-promo-renderer",function(){if(e7Q!==void 0)return e7Q;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return e7Q=A},{mode:1});var Sb=function(){return _.F.apply(this,arguments)||this};
_.R(Sb,_.F);_.J=Sb.prototype;
_.J.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"}}}}};
_.J.expansionCTA=function(A,t){return A&&(t?A.collapseCallToAction:A.expansionCallToAction)};
_.J.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.J.expansionCallToActionTap=function(){var A=this;this.expanded=!this.expanded;_.us(this,function(){_.s9(A.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var A,t=(A=this.data)==null?void 0:A.onVisible;t&&this.ytComponentBehavior.resolveCommand(t)};
_.J.computeDisplayTitle=function(A){return!(!A||this.titledisplaystatus!=="show")};
_.J.computeDisplaySeparator=function(){return!1};
_.J.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Sb.prototype.onDataChanged=Sb.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Sb.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Sb.prototype,"data",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],Sb.prototype,"expanded",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Sb.prototype,"purchaseButtonClicked",void 0);_.V([_.n({reflectToAttribute:!0,value:"show"}),_.H("design:type",String)],Sb.prototype,"titledisplaystatus",void 0);_.V([_.n({computed:"computeDisplayTitle(data.title)"}),_.H("design:type",Boolean)],Sb.prototype,"displayTitle",void 0);
_.V([_.n({computed:"computeDisplaySeparator(data)"}),_.H("design:type",Boolean)],Sb.prototype,"displaySeparator",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sb.prototype,"onDataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Sb);
_.Y(Sb,"ytd-sponsorships-tier-renderer",function(){if(Ub3!==void 0)return Ub3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Ub3=A},{mode:2});var $K=function(){return _.F.apply(this,arguments)||this};
_.R($K,_.F);
$K.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"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$K.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],$K);
_.Y($K,"ytd-sponsorships-management-renderer",function(){if(Qpj!==void 0)return Qpj;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Qpj=A},{mode:1});var lwA;var Hc=function(){return _.F.apply(this,arguments)||this};
_.R(Hc,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Hc.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Hc);
_.Y(Hc,"ytd-open-in-native-app-view-model",function(){if(lwA!==void 0)return lwA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return lwA=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var NEd;var upm;var z7j=_.dS(["top-"]),PKm=_.dS(["bottom-"]),TEm=_.dS(["left-"]),iS_=_.dS(["right-"]),OS2={},cfl=function(A,t,f){A.removeAttribute("top-"+f);A.removeAttribute("bottom-"+f);A.removeAttribute("left-"+f);A.removeAttribute("right-"+f);t&&(t.top&&_.GG([_.Pd(z7j)],A,"top-"+f,t.top),t.bottom&&_.GG([_.Pd(PKm)],A,"bottom-"+f,t.bottom),t.left&&_.GG([_.Pd(TEm)],A,"left-"+f,t.left),t.right&&_.GG([_.Pd(iS_)],A,"right-"+f,t.right))};
OS2.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(A){var t,f=_.sF((t=this.hostElement)!=null?t:this),X;t=this.cardItemBoxBehaviorMarginTargetId&&f?f.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(X=this.hostElement)!=null?X:this;cfl(t,A,"margin")},
cardItemContainerPaddingChanged_:function(A){var t,f=_.sF((t=this.hostElement)!=null?t:this),X;t=this.cardItemBoxBehaviorPaddingTargetId&&f?f.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(X=this.hostElement)!=null?X:this;cfl(t,A,"padding")}}];var a$={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 BEQ;var Mid;var KD=function(){return _.F.apply(this,arguments)||this};
_.R(KD,_.F);KD.prototype.textColorChanged_=function(){this.hostElement.style.color=a$[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
KD.prototype.textColorChanged_=KD.prototype.textColorChanged_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.V([_.b(OS2.YtCardItemBoxBehavior),_.H("design:type",Object)],KD.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],KD.prototype,"data",void 0);_.V([_.ev("data.textColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KD.prototype,"textColorChanged_",null);
_.V([_.WU({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],KD);
_.Y(KD,"yt-card-item-text-renderer",function(){if(Mid===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;BEQ===void 0&&(BEQ=document.createElement("template"));var X=BEQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Mid=A}A=Mid;return A},{mode:2});var CKj;var h7m;var gI=function(){return _.F.apply(this,arguments)||this};
_.R(gI,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gI.prototype,"data",void 0);_.V([_.WU({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],gI);
_.Y(gI,"yt-card-item-badge-renderer",function(){if(h7m===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;CKj===void 0&&(CKj=document.createElement("template"));var X=CKj;f.call(t,X.content.cloneNode(!0),A.content.firstChild);h7m=A}A=h7m;return A},{mode:2});var R7j;var mb3;var wI=function(){return _.F.apply(this,arguments)||this};
_.R(wI,_.F);wI.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wI.prototype,"data",void 0);_.V([_.WU({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],wI);
_.Y(wI,"yt-card-item-text-collection-renderer",function(){if(mb3===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;R7j===void 0&&(R7j=document.createElement("template"));var X=R7j;f.call(t,X.content.cloneNode(!0),A.content.firstChild);mb3=A}A=mb3;return A},{mode:2});var bS3;var Wlw;var ss=function(){return _.F.apply(this,arguments)||this};
_.R(ss,_.F);ss.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]]"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ss.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Number)],ss.prototype,"iconSize",void 0);_.V([_.WU({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],ss);
_.Y(ss,"yt-card-item-text-with-button-renderer",function(){if(Wlw===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;bS3===void 0&&(bS3=document.createElement("template"));var X=bS3;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Wlw=A}A=Wlw;return A},{mode:2});var kK=function(){return _.F.apply(this,arguments)||this};
_.R(kK,_.F);kK.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],kK.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],kK.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],kK);
_.Y(kK,"ytd-commerce-cart-summary-line-item-renderer",function(){if(upm!==void 0)return upm;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return upm=A},{mode:1});_.C1("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var rI=function(){var A=_.F.apply(this,arguments)||this;A.hidden=!1;return A};
_.R(rI,_.F);_.J=rI.prototype;_.J.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"}}}}};
_.J.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.J.updateSummary=function(){var A=this.commerceCartCheckoutButtonEntity,t;if(((t=this.data)==null?0:t.cartButton)&&A.checkoutSummaryText){var f,X=h0((f=this.data)==null?void 0:f.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+X+".cardItemTextRenderer.text",RJ(A.checkoutSummaryText));if(A.checkoutDetailText){var Q;f=h0((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",RJ(A.checkoutDetailText))}if(A.checkoutAdditionalMetadataText){var q;
Q=h0((q=this.data)==null?void 0:q.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",RJ(A.checkoutAdditionalMetadataText))}}else A.estimatedTotalPrice&&(q=h0((X=this.data)==null?void 0:X.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+q+".cardItemTextRenderer.text",RJ(A.estimatedTotalPrice)))};
_.J.updateIsHidden=function(){var A,t=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isHidden;t!==void 0&&(this.hidden=t)};
_.J.updateCheckoutButton=function(){var A,t=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isDisabled;t!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",t);var f;A=(f=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:f.innertubeCommand;A!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",A);var X;f=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.checkoutButtonText;f!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:f})};
rI.prototype.entityChanged=rI.prototype.entityChanged;_.V([_.b(_.qT),_.H("design:type",Object)],rI.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],rI.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],rI.prototype,"fullWidth",void 0);_.V([_.n(),_.H("design:type",Object)],rI.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],rI.prototype,"compact",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rI.prototype,"hidden",void 0);
_.V([_.n({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:qrx}),_.H("design:type",Object)],rI.prototype,"commerceCartCheckoutButtonEntity",void 0);_.V([_.ev("commerceCartCheckoutButtonEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rI.prototype,"entityChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],rI);
_.Y(rI,"ytd-commerce-cart-checkout-button-renderer",function(){if(NEd!==void 0)return NEd;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return NEd=A},{mode:2});var yfw;_.v8A={};
_.v8A.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",_.JY(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.JY(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(A){!this.tappableItemBehaviorTapEnabled||A.keyCode!==13&&A.keyCode!==32||A.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var A=this.data.onTap;A.ypcGetCartEndpoint?(_.Al(this.hostElement,[A]),this.tappableItemBehaviorTapEnabled=!1):A.ypcOffersEndpoint?_.Al(this.hostElement,[A]):_.tl(this.hostElement,[A],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(A){this.tappableItemBehaviorTapEnabled=!!A},
tappableItemBehaviorOnTapEnabledChanged_:function(){var A=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(A.setAttribute("tabIndex",0),A.setAttribute("role","button")):(A.removeAttribute("tabIndex"),A.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(A){A.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Llm;var pT8;var Am=function(){return _.F.apply(this,arguments)||this};
_.R(Am,_.F);Am.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.ho("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.ho("sharingToggleButtonAndDefaultButton")}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Am.prototype,"data",void 0);_.V([_.WU({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Am);
_.Y(Am,"yt-card-item-actions-renderer",function(){if(pT8===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Llm===void 0&&(Llm=document.createElement("template"));var X=Llm;f.call(t,X.content.cloneNode(!0),A.content.firstChild);pT8=A}A=pT8;return A},{mode:2});var E8Q;var n8m;var Dbh;var Fly;var Iwy;var xbh;var tm=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return A};
_.R(tm,_.F);tm.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
tm.prototype.handleDarkModeToggledAction_=function(A){this.isDarkTheme_=A};
tm.prototype.computeThemeImage_=function(A,t){if(!A||!A.imageLight)return!1;this.isCircular_=A.isCircular;A.imageWidth&&(this.hostElement.style.width=A.imageWidth+"px");A.imageHeight&&(this.hostElement.style.height=A.imageHeight+"px");A.borderWidth&&(this.image.style.borderWidth=A.borderWidth+"px",this.image.style.borderStyle="solid");A.borderColor&&(this.image.style.borderColor=_.bY(A.borderColor));return t&&A.imageDark?A.imageDark:A.imageLight};
tm.prototype.computeThemeIcon_=function(A){var t,f;if(!(A==null?0:(t=A.themedIcon)==null?0:(f=t.icon)==null?0:f.iconType))return!1;this.icon.style.color=a$[A.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(A.imageWidth||18)+"px";this.icon.style.height=(A.imageHeight||18)+"px";return _.t7(A.themedIcon.icon.iconType)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(OS2.YtCardItemBoxBehavior),_.H("design:type",Object)],tm.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],tm.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],tm.prototype,"data",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],tm.prototype,"fit",void 0);_.V([_.n(),_.H("design:type",Boolean)],tm.prototype,"isDarkTheme_",void 0);_.V([_.n({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.H("design:type",Object)],tm.prototype,"themeImage_",void 0);_.V([_.n({computed:"computeThemeIcon_(data)"}),_.H("design:type",Object)],tm.prototype,"themeIcon_",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Object)],tm.prototype,"isCircular_",void 0);
_.V([_.lo("#image"),_.H("design:type",Object)],tm.prototype,"image",void 0);_.V([_.lo("#icon"),_.H("design:type",Object)],tm.prototype,"icon",void 0);_.V([_.WU({is:"yt-themed-image-renderer",disableElementRegistration:!0})],tm);
_.Y(tm,"yt-themed-image-renderer",function(){if(xbh===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Iwy===void 0&&(Iwy=document.createElement("template"));var X=Iwy;f.call(t,X.content.cloneNode(!0),A.content.firstChild);xbh=A}A=xbh;return A},{mode:2});var fe=function(){return _.F.apply(this,arguments)||this};
_.R(fe,_.F);fe.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"}}}}};
fe.prototype.computeImagePlacement_=function(A){return A||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],fe.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fe.prototype,"data",void 0);_.V([_.n({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.H("design:type",String)],fe.prototype,"imagePlacement",void 0);
_.V([_.WU({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],fe);
_.Y(fe,"yt-card-item-text-with-image-renderer",function(){if(Fly===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Dbh===void 0&&(Dbh=document.createElement("template"));var X=Dbh;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Fly=A}A=Fly;return A},{mode:2});var XK=function(){return _.F.apply(this,arguments)||this};
_.R(XK,_.F);XK.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"}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],XK.prototype,"data",void 0);_.V([_.WU({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],XK);
_.Y(XK,"yt-card-item-error-renderer",function(){if(n8m===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;E8Q===void 0&&(E8Q=document.createElement("template"));var X=E8Q;f.call(t,X.content.cloneNode(!0),A.content.firstChild);n8m=A}A=n8m;return A},{mode:2});var jp_;var YTj;_.C1("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Qu=function(){return _.F.apply(this,arguments)||this};
_.R(Qu,_.F);_.J=Qu.prototype;
_.J.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"}}}}};
_.J.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.J.backgroundColorChanged_=function(){var A,t=(A=this.data)==null?void 0:A.backgroundColor;A=a$[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.sF(this.hostElement).querySelector("#main-content").style.backgroundColor=A};
_.J.headerPromoBackgroundColorChanged_=function(){var A,t=(A=this.data)==null?void 0:A.headerPromoBackgroundColor;A=a$[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.sF(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=A};
_.J.errorRendererVisibilityChanged_=function(){var A=this.isExpanded_,t;this.isErrorRendererVisible_=!((t=this.data)==null||!t.errorRenderer)&&!A};
_.J.onYtToggleButton_=function(A,t){this.isExpanded_=t.toggled};
Qu.prototype.onYtToggleButton_=Qu.prototype.onYtToggleButton_;Qu.prototype.errorRendererVisibilityChanged_=Qu.prototype.errorRendererVisibilityChanged_;Qu.prototype.headerPromoBackgroundColorChanged_=Qu.prototype.headerPromoBackgroundColorChanged_;Qu.prototype.backgroundColorChanged_=Qu.prototype.backgroundColorChanged_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Qu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(OS2.YtCardItemBoxBehavior),_.H("design:type",Object)],Qu.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.b(_.v8A.YtTappableItemBehavior),_.H("design:type",Object)],Qu.prototype,"ytTappableItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Qu.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Qu.prototype,"isExpanded_",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],Qu.prototype,"isErrorRendererVisible_",void 0);_.V([_.ev("data.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qu.prototype,"backgroundColorChanged_",null);_.V([_.ev("data.headerPromoBackgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qu.prototype,"headerPromoBackgroundColorChanged_",null);
_.V([_.ev("data.errorRenderer","isExpanded_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qu.prototype,"errorRendererVisibilityChanged_",null);_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Object]),_.H("design:returntype")],Qu.prototype,"onYtToggleButton_",null);_.V([_.WU({is:"yt-card-item-renderer",disableElementRegistration:!0})],Qu);
_.Y(Qu,"yt-card-item-renderer",function(){if(YTj===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;jp_===void 0&&(jp_=document.createElement("template"));var X=jp_;f.call(t,X.content.cloneNode(!0),A.content.firstChild);YTj=A}A=YTj;return A},{mode:2});_.C1("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var qg=function(){var A=_.F.apply(this,arguments)||this;A.hidden=!1;return A};
_.R(qg,_.F);_.J=qg.prototype;_.J.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.J.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var A,t=(A=this.commerceCartHeaderEntity)==null?void 0:A.isHidden;t!==void 0&&(this.hidden=t)}};
_.J.updateTitle=function(){var A=this.commerceCartHeaderEntity.isDisabled,t,f,X=(f=_.C((t=this.data)==null?void 0:t.item,P8T))==null?void 0:f.headingRenderer;X&&(t=h0(X,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+t+".0.cardItemTextRenderer.textColor",A?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.J.updateSummaryText=function(){var A=this.commerceCartHeaderEntity;if(this.compact){var t,f,X=(f=_.C((t=this.data)==null?void 0:t.item,P8T))==null?void 0:f.headingRenderer;X&&(t=h0(X,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+t+".1.cardItemTextRenderer.text",A.shortHeaderSummaryText?RJ(A.shortHeaderSummaryText):A.headerSummaryText?RJ(A.headerSummaryText):""))}else{var Q;if(t=(Q=_.C((X=this.data)==null?void 0:X.item,P8T))==null?void 0:Q.additionalInfoRenderer)t=h0(t,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".text",A.headerSummaryText?RJ(A.headerSummaryText):"")}};
_.J.updateCheckoutButton=function(){var A=this.commerceCartHeaderEntity,t,f,X=(f=_.C((t=this.data)==null?void 0:t.item,P8T))==null?void 0:f.additionalInfoRenderer;t=h0(X,"buttonRenderer");var Q;f=(Q=this.commerceCartHeaderEntity)==null?void 0:Q.isButtonDisabled;var q;Q=(q=this.commerceCartHeaderEntity)==null?void 0:q.isButtonHidden;f!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".buttonRenderer.isDisabled",f);Q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Q);var e;A=(e=A.checkoutButtonCommand)==null?void 0:e.innertubeCommand;A!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".buttonRenderer.command",A)};
qg.prototype.entityChanged=qg.prototype.entityChanged;_.V([_.b(_.qT),_.H("design:type",Object)],qg.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],qg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qg.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],qg.prototype,"compact",void 0);_.V([_.n({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(A,t){return _.q_(A.entities,"commerceCartHeaderEntity",t)}}),
_.H("design:type",Object)],qg.prototype,"commerceCartHeaderEntity",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qg.prototype,"hidden",void 0);_.V([_.ev("commerceCartHeaderEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qg.prototype,"entityChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],qg);
_.Y(qg,"ytd-commerce-cart-header-renderer",function(){if(yfw!==void 0)return yfw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return yfw=A},{mode:1});var ViQ;var ZSQ=_.yD(function(A,t){var f;return(f=A.onChangeCallback)==null?void 0:f.call(A,t)},1E3),o8y=_.I(function(A){var t=A.data;
var f=A.iconMinus;A=A.iconPlus;var X=function(){return!!t().disabled},Q=_.U(_.hZ(0,void 0,"mKh0af")),q=Q.next().value,e=Q.next().value;
Q=_.f1(function(){if(q()===1){var O,c;(c=(O=t()).onRemoveCommand)==null||c.call(O)}O=q()>t().maxValue?t().maxValue:q()-1;e(O);ZSQ(t(),O);return!1});
var G=_.f1(function(){if(q()===t().maxValue)return!1;var O=q()+1;e(O);ZSQ(t(),O);return!1});
_.Zk(function(){e(t().value)});
var N={},z={},T={};return _.u("quantity-incrementer-shape",null,_.u("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.u("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return q()===(t().onRemoveCommand?0:1)||X()},
"aria-label":function(){return q()!==1?t().minusLabel:t().minimumReachedLabel},
"on:click":Q},_.u(_.WS,{model:{circular:!0}}),_.u("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.u("div",{class:_.Ao("ytSpecQuantityIncrementerShapeIcon",(N.ytSpecQuantityIncrementerShapeIconDisabled=function(){return X()||q()===(t().onRemoveCommand?0:1)},N))},f()))),_.u("div",{class:_.Ao("ytSpecQuantityIncrementerShapeText",(z.ytSpecQuantityIncrementerShapeTextInvalid=function(){return q()>t().maxValue},z.ytSpecQuantityIncrementerShapeTextDisabled=X,z))},q),_.u("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return q()>=t().maxValue||X()},
"aria-label":function(){return q()!==t().maxValue?t().plusLabel:t().maximumReachedLabel},
"on:click":G},_.u(_.WS,{model:{circular:!0}}),_.u("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.u("div",{class:_.Ao("ytSpecQuantityIncrementerShapeIcon",(T.ytSpecQuantityIncrementerShapeIconDisabled=function(){return q()>=t().maxValue||X()},T))},A())))))},"Lf");_.Hn(_.I(function(A){function t(){f().onRemoveCommand&&_.LI(f().onRemoveCommand)}
var f=A.data;var X=_.Nt(BQx,function(){return f().quantityIncrementerEntityKey});
return _.u("yt-quantity-incrementer-view-model",null,_.u(o8y,{data:function(){var Q=f(),q;var e=X()?!((q=X())==null||!q.disabled):!1;var G;q=X()?(G=X())==null?void 0:G.quantity:f().quantity;return xOb(Q,e,t,q)},
iconMinus:function(){return _.u(_.el,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.u(_.el,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Mf"),"yt-quantity-incrementer-view-model",{props:{data:_.PS}});var Jm=function(){var A=_.F.apply(this,arguments)||this;A.compact=!1;A.hasQuantityIncrementer=!1;return A};
_.R(Jm,_.F);Jm.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"}}}};
Jm.prototype.computeHasQuantityIncrementer=function(){var A;return!!_.C((A=this.data)==null?void 0:A.picker,cwT)};
Jm.prototype.onLabelClick=function(){var A;(A=this.dropdownEl)==null||A.open()};
_.V([_.lo("ytd-dropdown-renderer"),_.H("design:type",Object)],Jm.prototype,"dropdownEl",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Jm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Jm.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Jm.prototype,"quantityColor",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Jm.prototype,"compact",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.H("design:type",Object)],Jm.prototype,"hasQuantityIncrementer",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Jm);
_.Y(Jm,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(ViQ!==void 0)return ViQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ViQ=A},{mode:1});var db3;var STd;var UN=function(){return _.F.apply(this,arguments)||this};
_.R(UN,_.F);UN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UN.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
UN.prototype.updateTitle=function(){var A=this.disabledCartItemEntity;A.disableActionName&&this.set("data.title",RJ(A.disableActionName))};
UN.prototype.updateButton=function(){var A,t=(A=this.disabledCartItemEntity.undoCommand)==null?void 0:A.innertubeCommand;t!==void 0&&(this.set("data.actionButton.buttonRenderer.command",t),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
UN.prototype.entityChanged=UN.prototype.entityChanged;_.V([_.b(_.qT),_.H("design:type",Object)],UN.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(A,t){return _.q_(A.entities,"disabledCartItemEntity",t)}}),
_.H("design:type",Object)],UN.prototype,"disabledCartItemEntity",void 0);_.V([_.n(),_.H("design:type",Object)],UN.prototype,"data",void 0);_.V([_.ev("disabledCartItemEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UN.prototype,"entityChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],UN);
_.Y(UN,"ytd-disabled-cart-item-renderer",function(){if(STd!==void 0)return STd;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return STd=A},{mode:1});_.C1("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var es=function(){var A=_.F.apply(this,arguments)||this;A.compact=!1;A.hidden=!1;A.errorHidden=!1;A.noOnTap=!1;return A};
_.R(es,_.F);_.J=es.prototype;
_.J.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"}}}};
_.J.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.J.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var A=this.firstButtonElement;A.alignByText=!0;A.iconAlignByText=!0}};
_.J.computeNoOnTap=function(A){return!A};
_.J.updateQuantityColor=function(){if(this.pickerElement){var A,t=(A=this.commerceCartItemEntity)==null?void 0:A.quantityColor;this.pickerElement.quantityColor=t}};
_.J.updateTotalPriceColor=function(){var A,t=(A=this.commerceCartItemEntity)==null?void 0:A.totalPriceColor;if(t){var f;A=_.C((f=this.data)==null?void 0:f.quantityPicker,ijp);if(f=_.C(A==null?void 0:A.price,Tgf))f.textColor=t}};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var A,t=(A=this.commerceCartItemEntity)==null?void 0:A.isHidden;t!==void 0&&(this.hidden=t)}};
_.J.updateHideErrorMessage=function(){var A,t=(A=this.commerceCartItemEntity)==null?void 0:A.hideErrorMessage;t!==void 0&&(this.errorHidden=t)};
_.J.updateQuantity=function(){var A=this,t,f=(t=this.commerceCartItemEntity)==null?void 0:t.quantity,X;t=(X=this.commerceCartItemEntity)==null?void 0:X.totalPrice;if(f){this.updateTotalPriceColor();this.updateQuantityColor();var Q;X=_.C((Q=this.data)==null?void 0:Q.quantityPicker,ijp);if(Q=_.C(X==null?void 0:X.price,Tgf))Q.text=t?{simpleText:t.content}:void 0;if(t=_.C(X==null?void 0:X.picker,cwT))t.quantity=f;var q;if(Q=(q=_.C(X==null?void 0:X.picker,PwK))==null?void 0:q.entries){q=!1;t=void 0;Q=
_.U(Q);for(X=Q.next();!X.done;X=Q.next())X=X.value,X.dropdownItemRenderer&&(t||(t=X.dropdownItemRenderer),X.dropdownItemRenderer.isSelected=!1,f===X.dropdownItemRenderer.int32Value&&(q=!0,X.dropdownItemRenderer.isSelected=!0));!q&&t&&(t.isSelected=!0)}_.us(this,function(){var e;A.set("data.quantityPicker",_.VG.unsafeClone((e=A.data)==null?void 0:e.quantityPicker))})}};
es.prototype.onYtRendererstamperFinished=es.prototype.onYtRendererstamperFinished;es.prototype.entityChanged=es.prototype.entityChanged;_.V([_.n(),_.H("design:type",Object)],es.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],es.prototype,"compact",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],es.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],es.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(A,t){return _.q_(A.entities,"commerceCartItemEntity",t)}}),
_.H("design:type",Object)],es.prototype,"commerceCartItemEntity",void 0);_.V([_.n(),_.H("design:type",Object)],es.prototype,"quantityPicker",void 0);_.V([_.n(),_.H("design:type",Object)],es.prototype,"compactQuantityPicker",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],es.prototype,"hidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],es.prototype,"errorHidden",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.H("design:type",Object)],es.prototype,"noOnTap",void 0);_.V([_.lo("ytd-commerce-cart-item-quantity-picker-renderer"),_.H("design:type",Object)],es.prototype,"pickerElement",void 0);_.V([_.lo("yt-button-renderer"),_.H("design:type",Element)],es.prototype,"firstButtonElement",void 0);
_.V([_.ev("commerceCartItemEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],es.prototype,"entityChanged",null);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],es.prototype,"onYtRendererstamperFinished",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],es);
_.Y(es,"ytd-commerce-cart-item-renderer",function(){if(db3!==void 0)return db3;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return db3=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var $bA;var HSl;var GC=function(){return _.F.apply(this,arguments)||this};
_.R(GC,_.F);GC.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}}}}}};
GC.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
GC.prototype.updateCheckoutLineItems=function(){var A,t=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.checkoutLineItems;t&&(A=t.map(function(f){a:{var X=f.price,Q=f.description;switch(f.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":f={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:RJ(Q),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:RJ(X),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:f={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:RJ(Q),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:RJ(X),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 f}),this.set("data.summaryLineItems",A))};
GC.prototype.updateIsHidden=function(){var A,t=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isHidden;t!==void 0&&(this.hostElement.hidden=t)};
GC.prototype.entityChanged=GC.prototype.entityChanged;_.V([_.b(_.qT),_.H("design:type",Object)],GC.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],GC.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],GC.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:qrx}),_.H("design:type",Object)],GC.prototype,"commerceCartCheckoutButtonEntity",void 0);_.V([_.ev("commerceCartCheckoutButtonEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GC.prototype,"entityChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],GC);
_.Y(GC,"ytd-commerce-cart-summary-renderer",function(){if(HSl!==void 0)return HSl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return HSl=A},{mode:1});var aw3={};aw3.InjectBehavior=[g1x.InjectBehavior];var Kl_;var g8j;var lD=function(){return _.F.apply(this,arguments)||this};
_.R(lD,_.F);
lD.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:_.ho("menuRenderer")}}};
lD.prototype.onMenuTap=function(A){A.stopPropagation()};
_.PV.Object.defineProperties(lD.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 A,t;return!(((A=this.data)==null||!A.sectionHeading)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var A,t;return!(((A=this.data)==null||!A.image)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var A,t;return!(((A=this.data)==null||!A.menu)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.v8A.YtTappableItemBehavior),_.H("design:type",Object)],lD.prototype,"ytTappableItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],lD.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("data.accessibilityData"),_.H("design:type",String),_.H("design:paramtypes",[])],lD.prototype,"ariaLabel",null);_.V([_.y("data.sectionHeading","data.layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lD.prototype,"sectionHeadingVisible",null);_.V([_.y("data.image","data.layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lD.prototype,"imageVisible",null);
_.V([_.y("data.menu","data.layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lD.prototype,"menuVisible",null);_.V([_.WU({is:"yt-activity-item-renderer",disableElementRegistration:!0})],lD);
_.Y(lD,"yt-activity-item-renderer",function(){if(g8j===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Kl_===void 0&&(Kl_=document.createElement("template"));var X=Kl_;f.call(t,X.content.cloneNode(!0),A.content.firstChild);g8j=A}A=g8j;return A},{mode:2});var wTy;var spj;var kk2;var rfy;var Ng=function(){return _.F.apply(this,arguments)||this};
_.R(Ng,_.F);
Ng.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"}}}}};
Ng.prototype.backgroundColorChanged_=function(){var A,t=(A=this.data)==null?void 0:A.backgroundColor;this.hostElement.style.backgroundColor=a$[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Ng.prototype.backgroundColorChanged_=Ng.prototype.backgroundColorChanged_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ng.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ng.prototype,"data",void 0);
_.V([_.ev("data.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ng.prototype,"backgroundColorChanged_",null);_.V([_.WU({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Ng);
_.Y(Ng,"yt-offer-item-upsell-renderer",function(){if(rfy===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;kk2===void 0&&(kk2=document.createElement("template"));var X=kk2;f.call(t,X.content.cloneNode(!0),A.content.firstChild);rfy=A}A=rfy;return A},{mode:2});_.C1("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var uD=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};A.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return A};
_.R(uD,_.F);_.J=uD.prototype;
_.J.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:_.ho("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.J.computeContainerStyle_=function(A){return A};
_.J.computeContainerIsHidden_=function(A){return A&&!!A.isHidden};
_.J.computeShowSpinner_=function(A,t){return A&&t==="in-progress"};
_.J.computeShowMoreContentsButton_=function(A,t,f,X,Q){return!(!(X&&X.length||Q&&Q.length&&f)||!A||t)};
_.J.onToggleButton_=function(A){var t=this;A.stopPropagation();this.isExpanded_=A.detail&&A.detail.toggled;var f,X;this.isExpanded_&&!this.data.continuationSection.length&&((f=this.data)==null?0:(X=f.continuation)==null?0:X.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.s9(this.hostElement,"yt-load-next-continuation",function(Q){return t.getContinuationUrl_(t.data.continuation.onClickContinuationData,Q)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Al(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.J.onShowMoreContentsButtonClicked_=function(A){var t=this;A.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.s9(this.hostElement,"yt-load-next-continuation",function(f){return t.getContinuationUrl_(t.data.continuations[0].nextContinuationData,f)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Al(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.J.getContinuationUrl_=function(A,t){var f=A.continuation;A=A.clickTrackingParams;var X=_.Ws();A&&X&&_.o7(X,_.zV(A));return _.U0(t,{continuation:f})};
_.J.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var A=_.sF(this.hostElement).querySelector("#continuation-section");A&&(A=A.querySelectorAll("ytmusic-item-section-renderer"))&&A.forEach(function(t){return t.classList.add("memberships-and-purchases")})};
_.J.dataChanged_=function(){var A;this.isExpanded_=!((A=this.data)==null||!A.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.J.updateCardOnClickCommand_=function(A){A=_.C(A,Jwb);var t,f;this.data&&((t=this.data)==null?0:t.targetId)&&A&&A.targetId===((f=this.data)==null?void 0:f.targetId)&&A.onClickCommand&&(this.data.onClickCommand=A.onClickCommand,this.isOnClickCommand_=!0)};
_.J.backgroundColorChanged_=function(){var A,t=(A=this.data)==null?void 0:A.backgroundColor;this.hostElement.style.backgroundColor=a$[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
uD.prototype.backgroundColorChanged_=uD.prototype.backgroundColorChanged_;uD.prototype.dataChanged_=uD.prototype.dataChanged_;uD.prototype.nextContinuationDataUpdated_=uD.prototype.nextContinuationDataUpdated_;uD.prototype.onToggleButton_=uD.prototype.onToggleButton_;_.V([_.b(_.Ba),_.H("design:type",Object)],uD.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],uD.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.MK.YtNextContinuationBehavior),_.H("design:type",Object)],uD.prototype,"ytNextContinuationBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.V([_.b(aw3.InjectBehavior),_.H("design:type",Object)],uD.prototype,"injectBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],uD.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],uD.prototype,"compact",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],uD.prototype,"isExpanded_",void 0);_.V([_.n({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.H("design:type",String)],uD.prototype,"containerStyle_",void 0);_.V([_.n({value:"not-started"}),_.H("design:type",String)],uD.prototype,"continuationStatus_",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.H("design:type",Boolean)],uD.prototype,"showSpinner_",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],uD.prototype,"isOnClickCommand_",void 0);_.V([_.n({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.H("design:type",Boolean)],uD.prototype,"showMoreContentsButton_",void 0);
_.V([_.n({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(A,t){return!t||A.entities?null:_.q_(A.entities,"cardItemContainerEntity",t)}}),
_.H("design:type",Object)],uD.prototype,"cardItemContainerEntity_",void 0);_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],uD.prototype,"onToggleButton_",null);_.V([_.UQ("yt-next-continuation-data-updated"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uD.prototype,"nextContinuationDataUpdated_",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uD.prototype,"dataChanged_",null);_.V([_.ev("data.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uD.prototype,"backgroundColorChanged_",null);_.V([_.WU({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],uD);
_.Y(uD,"yt-card-item-container-renderer",function(){if(spj===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;wTy===void 0&&(wTy=document.createElement("template"));var X=wTy;f.call(t,X.content.cloneNode(!0),A.content.firstChild);spj=A}A=spj;return A},{mode:2});var zC=function(){return _.F.apply(this,arguments)||this};
_.R(zC,_.F);zC.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"}}}};
zC.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
zC.prototype.computeLoadingHidden=function(){var A;return!((A=this.commerceCartPageStateEntity)==null?0:A.cartActionInProgress)};
zC.prototype.updateNotification=function(){var A,t=(A=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:A.summaryText;t&&this.set("data.cartNotification",RJ(t))};
zC.prototype.notificationEntityChanged=zC.prototype.notificationEntityChanged;_.V([_.b(_.qT),_.H("design:type",Object)],zC.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],zC.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],zC.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],zC.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(A,t){return _.q_(A.entities,"commerceCartExpandableNotificationEntity",t)}}),
_.H("design:type",Object)],zC.prototype,"commerceCartExpandableNotificationEntity",void 0);_.V([_.n({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(A,t){return _.q_(A.entities,"commerceCartPageStateEntity",t)}}),
_.H("design:type",Object)],zC.prototype,"commerceCartPageStateEntity",void 0);_.V([_.lo("#spinner"),_.H("design:type",HTMLElement)],zC.prototype,"spinner",void 0);_.V([_.ev("commerceCartExpandableNotificationEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zC.prototype,"notificationEntityChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],zC);
_.Y(zC,"ytd-commerce-cart-renderer",function(){if($bA!==void 0)return $bA;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return $bA=A},{mode:1});var A_d;var Pk=function(){var A=_.F.apply(this,arguments)||this;A.bigImage=!1;return A};
_.R(Pk,_.F);_.PV.Object.defineProperties(Pk.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.placeholderImageUrl}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Pk.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Pk.prototype,"bigImage",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Pk.prototype,"placeholderImageUrl",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Pk);
_.Y(Pk,"ytd-empty-product-shelf-renderer",function(){if(A_d!==void 0)return A_d;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return A_d=A},{mode:1});var tjj;var TC=function(){var A=_.F.apply(this,arguments)||this;A.itemStyle="link-item";A.watchMetadataRefresh=!1;A.skinnyMode=!1;A.metaPanel=!1;A.inStructuredDescription=!1;A.detailedDescriptionOverride=!1;A.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};A.updateOnResizeDebouncer=null;return A};
_.R(TC,_.F);_.J=TC.prototype;_.J.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.J.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"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.J.attachVEs=function(A){A.trackingParams&&_.er().graftServerVe(A.trackingParams)};
_.J.handleUpdateMerchShelfAction=function(A){var t=this,f=_.C(A.updateMerchandiseShelfAction.merchandiseShelf,_.Exf);f&&(f.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){t.attachVEs(f);t.data=f},Number(f.renderDelayMs))):(this.attachVEs(f),this.data=f))};
_.J.updateOnResize=function(){if(this.JSC$17111_scrollContainer!==void 0&&this.JSC$17111_scrollContainer.clientWidth!==0&&this.items!==void 0){var A=this.JSC$17111_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-A));this.ytdHorizontalListBehavior.reposition_();var t;switch((t=this.data)==null?void 0:t.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var f,
X;((f=this.data)==null?void 0:(X=f.items)==null?void 0:X.length)===1?this.itemStyle="cta-item":this.itemStyle=A>=740?"large-item":"small-item"}}};
_.J.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.cr(this.updateOnResizeDebouncer,_.Jh.after(100),this.updateOnResize)};
TC.prototype.debouncedUpdateOnResize=TC.prototype.debouncedUpdateOnResize;TC.prototype.dataChanged=TC.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.W7.YtdHorizontalListBehavior),_.H("design:type",Object)],TC.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],TC.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],TC.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],TC.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],TC.prototype,"itemStyle",void 0);_.V([_.n({value:6}),_.H("design:type",Number)],TC.prototype,"initialCount",void 0);
_.V([_.n({value:"data.items"}),_.H("design:type",String)],TC.prototype,"itemsPath",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],TC.prototype,"watchMetadataRefresh",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],TC.prototype,"skinnyMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],TC.prototype,"metaPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],TC.prototype,"inStructuredDescription",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],TC.prototype,"detailedDescriptionOverride",void 0);_.V([_.lo("#items"),_.H("design:type",HTMLDivElement)],TC.prototype,"items",void 0);_.V([_.lo("#scroll-container"),_.H("design:type",HTMLDivElement)],TC.prototype,"JSC$17111_scrollContainer",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TC.prototype,"dataChanged",null);
_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TC.prototype,"debouncedUpdateOnResize",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],TC);
_.Y(TC,"ytd-merch-shelf-renderer",function(){if(tjj!==void 0)return tjj;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return tjj=A},{mode:2});var fcw;var iD=function(){var A=_.F.apply(this,arguments)||this;A.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 A};
_.R(iD,_.F);_.J=iD.prototype;
_.J.addBackstagePostAction=function(A){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(A=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",A))&&(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:A}):this.set("data.contents",[{backstagePostThreadRenderer:A}]))};
_.J.addBackstageCommentAction=function(A){var t=this.get("addBackstageCommentAction.parentId",A);A=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",A);if(t&&A){t=this.postIdToIndices(t);for(var f=0;f<t.length;f++){var X=t[f];if(X<0)break;X="data.contents."+X+".backstagePostThreadRenderer.comments";this.get(X)&&(this.get(X+".backstageCommentsRenderer.contents")&&this.push(X+".backstageCommentsRenderer.contents",{commentThreadRenderer:A}),this.get(X+".backstageCommentsRenderer.teaserContents")?
this.push(X+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:A}):this.set(X+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:A}]))}}};
_.J.addBackstageReplyAction=function(A){var t=this.get("addBackstageReplyAction.parentId",A);A=this.get("addBackstageReplyAction.renderer.commentRenderer",A);t&&A&&this.setCreatorReply(t,A)};
_.J.banAuthorAction=function(A){var t=this.get("banAuthorAction.commentId",A);t&&(A=this.get("banAuthorAction.parentCommentId",A)||this.getParentPostId(t),this.removeFromStream(t,A))};
_.J.hideReportedCommentAction=function(A){var t=this.get("hideReportedCommentAction.commentId",A);t&&((A=this.get("hideReportedCommentAction.parentCommentId",A))||(A=this.getParentPostId(t)),this.removeFromStream(t,A))};
_.J.replaceBackstageCommentAction=function(A){var t=this.get("replaceBackstageCommentAction.commentId",A),f=this.get("replaceBackstageCommentAction.parentId",A);A=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",A);if(t&&f&&A){f=this.postIdToIndices(f);for(var X=0;X<f.length;X++){var Q=f[X];if(Q<0)break;var q=this.commentIdToIndex(t,Q,!1);if(q>=0){var e=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+q+".commentThreadRenderer.replies.commentRepliesRenderer");
e&&(A.replies={commentRepliesRenderer:e});this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",q,1,{commentThreadRenderer:A})}q=this.commentIdToIndex(t,Q,!0);if(q>=0){if(e=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(q+".commentThreadRenderer.replies.commentRepliesRenderer")))A.replies={commentRepliesRenderer:e};this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
q,1,{commentThreadRenderer:A})}}}};
_.J.replaceBackstagePostAction=function(A){var t=this.get("replaceBackstagePostAction.itemId",A);if(t){t=this.postIdToIndices(t);for(var f=0;f<t.length;f++){var X=t[f];if(X<0)break;var Q=this.getPostRendererType(X),q=this.get("replaceBackstagePostAction.renderer."+Q,A);if(!q&&Q!=="sharedPostRenderer")break;var e=!1;q||(e=!0,q=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",A));if(!q)break;var G={};e?(_.Mx(G,w0k,q),this.set("data.contents."+X+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
G)):(_.Mx(G,new _.UA(Q),q),this.set("data.contents."+X+".backstagePostThreadRenderer.post",G))}}};
_.J.replaceBackstageReplyAction=function(A){var t=this.get("replaceBackstageReplyAction.replyId",A),f=this.get("replaceBackstageReplyAction.parentId",A);A=this.get("replaceBackstageReplyAction.renderer.commentRenderer",A);t&&A&&f&&this.setCreatorReply(f,A)};
_.J.removeCommentAction=function(A){var t=this.get("removeCommentAction.commentId",A);if(t){var f=this.get("removeCommentAction.parentCommentId",A);f&&this.get("removeCommentAction.isCreatorReply",A)?this.setCreatorReply(f,void 0):(f||(f=this.getParentPostId(t)),this.removeFromStream(t,f))}};
_.J.setCreatorReply=function(A,t){var f=this.getParentPostId(A);if(f){f=this.postIdToIndices(f);for(var X=0;X<f.length;X++){var Q=f[X];if(Q<0)break;var q=this.commentIdToIndex(A,Q,!1);if(q>=0){var e="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+q;q=e+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";e+=".commentThreadRenderer.replies";t==void 0?(this.set(e,{}),this.set(q,!1)):(this.set(e,{commentRepliesRenderer:{teaserContents:[{commentRenderer:t}]}}),
this.set(e+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(q,!0))}q=this.commentIdToIndex(A,Q,!0);q>=0&&(q="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+q,Q=q+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",q+=".commentThreadRenderer.replies",t==void 0?(this.set(q,{}),this.set(Q,!1)):(this.set(q,{commentRepliesRenderer:{teaserContents:[{commentRenderer:t}]}}),this.set(Q,!0)))}}};
_.J.removeFromStream=function(A,t){if(t){t=this.postIdToIndices(t);for(var f=0;f<t.length;f++){var X=t[f];if(X<0)break;var Q=this.commentIdToIndex(A,X,!1);Q>=0&&this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Q,1);Q=this.commentIdToIndex(A,X,!0);Q>=0&&this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Q,1);X="data.contents."+X+".backstagePostThreadRenderer.post.backstagePostRenderer";
Q=X+".backstageAttachment.pollRenderer.votedCommentId";this.get(Q)===A&&(this.set(Q,null),this.set(X+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(t=this.postIdToIndices(A).reverse(),f=0;f<t.length;f++){X=t[f];if(X<0)break;Q=this.getPostRendererType(X);var q=this.get("backstagePostThreadRenderer.post."+Q,this.data.contents[X]);q.postId===A?this.splice("data.contents",X,1):Q==="sharedPostRenderer"&&this.set("data.contents."+X+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);q.scheduledPublishTimeSec&&_.kJ(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.J.postIdToIndices=function(A){for(var t=[],f=0;f<this.data.contents.length;f++){var X=this.getPostRendererType(f);this.get("backstagePostThreadRenderer.post."+X+".postId",this.data.contents[f])===A&&t.push(f);if(X==="sharedPostRenderer"){var Q=this.get("backstagePostThreadRenderer.post."+X+".originalPost.backstagePostRenderer.postId",this.data.contents[f]);X=this.get("backstagePostThreadRenderer.post."+X+".originalPost.postRenderer.postId",this.data.contents[f]);Q!==A&&X!==A||t.push(f)}}return t};
_.J.commentIdToIndex=function(A,t,f){if(t<0)return-1;var X,Q,q,e,G=_.C((X=this.data)==null?void 0:(Q=X.contents)==null?void 0:(q=Q[t])==null?void 0:(e=q.backstagePostThreadRenderer)==null?void 0:e.comments,K1i);return(t=f?G==null?void 0:G.teaserContents:G==null?void 0:G.contents)&&t.length?t.findIndex(function(N){return _.C(N,v3f).comment.commentRenderer.commentId===A}):-1};
_.J.getParentPostId=function(A){A=A.split(".");if(A[1])return A[0]};
_.J.getPostRendererType=function(A){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[A])?"sharedPostRenderer":"backstagePostRenderer"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],iD.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],iD.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:_.M("enable_community_page_on_desktop")}),_.H("design:type",Boolean)],iD.prototype,"useSmallerPostContainer",void 0);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-backstage-items"})],iD);
_.Y(iD,"ytd-backstage-items",function(){if(fcw!==void 0)return fcw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return fcw=
A},{mode:1});var XA3;var Ql2={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},ON=function(){var A=_.F.apply(this,arguments)||this;A.disablePrescanVisibility=!0;A.canScheduleJobs=!0;A.engagementPanel=!1;A.hidePanelButton=!1;A.isWatchGrid=
!1;A.hasShownSubscribersOnlyDisclaimer=!1;A.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","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_"};A.TEST_ONLY=void 0;return A};
_.R(ON,_.F);_.J=ON.prototype;_.J.created=function(){this.initCommentsCsi_();_.M("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.M("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.J.contentsChanged_=function(){var A;(A=this.data)!=null&&A.contents&&this.tickForCommentsTimer_("cml")};
_.J.headerChanged_=function(){var A;(A=this.data)!=null&&A.header&&this.tickForCommentsTimer_("cmhl")};
_.J.initCommentsCsi_=function(){_.b0("wn_comments");var A=_.Ws();A&&_.R7({clientScreenNonce:A},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.J.createCommentAction_=function(A){A=_.VG.unsafeClone(A);var t,f;if(A=(t=_.C(A,Bcw))==null?void 0:(f=t.contents)==null?void 0:f.commentThreadRenderer){var X,Q,q,e,G,N;!this.isBackstage&&((X=this.data)==null?0:(Q=X.header)==null?0:(q=Q.commentsHeaderRenderer)==null?0:(e=q.createRenderer)==null?0:(G=e.commentSimpleboxRenderer)==null?0:(N=G.zeroStep)==null?0:N.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var z,
T,O;this.isBackstage&&_.C((z=this.data)==null?void 0:(T=z.header)==null?void 0:(O=T.commentsHeaderRenderer)==null?void 0:O.zeroStateMessage,sRi)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(A)}};
_.J.doReplyInsert_=function(A,t,f,X){X?this.splice(A,X,0,t):this.push(A,t)};
_.J.getRepliesPath_=function(A){return"data.contents."+A+".commentThreadRenderer.replies"};
_.J.getRepliesContentsPath_=function(A,t){A=this.getRepliesPath_(A);return t?A+".commentRepliesRenderer.teaserContents":A+".commentRepliesRenderer.contents"};
_.J.showSubscribersOnlyDisclaimer_=function(A){(A=A.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&(_.kJ(this.hostElement,"yt-open-popup-action",[A,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.J.createCommentReplyAction_=function(A){A=_.VG.unsafeClone(A);var t=_.C(A,MPT);if(A=t==null?void 0:t.contents){var f=this.commentIdToIndex_(t==null?void 0:t.parentCommentId);if(!(f<0)){var X=this.getRepliesPath_(f);if(this.get(X)){t=t.replyToCommentId;X=this.getRepliesContentsPath_(f,!1);if(this.get(X)){var Q=this.get(X).length,q=X+"."+(Q-1)+".continuationItemRenderer";this.get(q+".button")?(q=this.replyIdToIndex_(t,f,!1),this.doReplyInsert_(X,A,q,Q-1)):this.get(q)||(Q=this.replyIdToIndex_(t,f,
!1),this.doReplyInsert_(X,A,Q,null))}X=this.getRepliesContentsPath_(f,!0);this.get(X)?(f=this.replyIdToIndex_(t,f,!0),(!t||f>=0)&&this.doReplyInsert_(X,A,f,null)):this.set(X,[A])}else this.set(X,{commentRepliesRenderer:{teaserContents:[A]}})}}};
_.J.hideReportedCommentAction_=function(A){var t=_.C(A,Z6C);if(A=t==null?void 0:t.commentId)(t=this.get("parentCommentId",t))||(t=this.getParentCommentId_(A)),this.remove_(A,t)};
_.J.getParentCommentId_=function(A){A=A.split(".");if(A[1])return A[0]};
_.J.removeCommentAction_=function(A){var t=_.C(A,b6T);if(A=t==null?void 0:t.commentId)t=(t==null?void 0:t.parentCommentId)||this.getParentCommentId_(A),this.remove_(A,t)};
_.J.pinCommentAction_=function(A){A=_.VG.unsafeClone(A);var t=_.C(A,m$l);t!=null&&t.commentId&&(A=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",A))&&(this.remove_(t.commentId),this.insert_(A,!0))};
_.J.unpinCommentAction_=function(A){A=_.VG.unsafeClone(A);A=_.C(A,Wb7);if(A!=null&&A.commentId){var t,f,X=(t=A.actionResult)==null?void 0:(f=t.update)==null?void 0:f.commentThreadRenderer;X&&(this.remove_(A.commentId),this.insert_(X))}};
_.J.banAuthorAction_=function(A){var t=_.C(A,chf);t!=null&&t.commentId&&(A=t.commentId,t=t.parentCommentId||this.getParentCommentId_(A),this.remove_(A,t))};
_.J.handleScrollToCommentElement_=function(A){this.hostElement.contains(A)&&(this.nearestScrollParent||(this.nearestScrollParent=jx5(A)),this.isCommentVisibleInScrollParent(A)||A.scrollIntoView({behavior:"smooth",block:"start"}))};
_.J.isCommentVisibleInScrollParent=function(A){if(!this.nearestScrollParent)return!1;A=A.getBoundingClientRect();var t=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return A.top>=t.top&&A.bottom<=t.bottom};
_.J.commentIdToIndex_=function(A){var t;return A&&(t=this.data)!=null&&t.contents?this.data.contents.findIndex(function(f){f=f.commentThreadRenderer;var X;return A===((f==null?void 0:f.commentViewModel)&&((X=_.C(f.commentViewModel,Fbk))==null?void 0:X.commentId))}):-1};
_.J.insert_=function(A,t){t=t===void 0?!1:t;var f,X;if((f=this.data)==null?0:(X=f.contents)==null?0:X.some(function(q){return!!q.commentThreadRenderer}))for(f=0,X=this.data.contents.length;f<X;f++){var Q=this.data.contents[f].commentThreadRenderer;
if(Ql2[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=Ql2[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){t&&Ql2[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===Ql2[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",f,1,{commentThreadRenderer:A}):this.splice("data.contents",f,0,{commentThreadRenderer:A});break}}else this.set("data.contents",[{commentThreadRenderer:A}])};
_.J.doReplyRemove_=function(A,t,f){A=this.replyIdToIndex_(A,t,f);A<0||(t=this.getRepliesContentsPath_(t,f),this.splice(t,A,1))};
_.J.remove_=function(A,t){t=this.commentIdToIndex_(t);t<0?(t=this.commentIdToIndex_(A),t<0||this.splice("data.contents",t,1)):_.M("web_delhi_comment_threads")||(this.doReplyRemove_(A,t,!1),this.doReplyRemove_(A,t,!0))};
_.J.replyIdToIndex_=function(A,t,f){if(t<0)return-1;t=this.getRepliesContentsPath_(t,f);t=this.get(t);if(!t||!t.length)return-1;f=0;for(var X=t.length;f<X;f++){var Q=void 0,q=void 0;if(((Q=t[f])==null?void 0:(q=Q.commentViewModel)==null?void 0:q.commentId)===A)return f}return-1};
_.J.tickForCommentsTimer_=function(A){_.yg(A,void 0,"wn_comments")};
_.J.reloadComments_=function(A){A=_.C(A,n38);_.C(A==null?void 0:A.command,_.L1)&&_.Al(this.hostElement,[A==null?void 0:A.command])};
_.PV.Object.defineProperties(ON.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return!!((A=this.data)==null?0:(t=A.header)==null?0:(f=t.commentsHeaderRenderer)==null?0:f.isBackstageContent)}}});
_.PV.Object.defineProperties(ON,{template:{configurable:!0,enumerable:!0,get:function(){if(XA3===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);XA3=A}A=XA3;return A}}});
ON.prototype.showSubscribersOnlyDisclaimer_=ON.prototype.showSubscribersOnlyDisclaimer_;ON.prototype.headerChanged_=ON.prototype.headerChanged_;ON.prototype.contentsChanged_=ON.prototype.contentsChanged_;_.V([_.b(_.RH),_.H("design:type",Object)],ON.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",Function)],ON.prototype,"ytPlayerListenerBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],ON.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ON.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.header.commentsHeaderRenderer.isBackstageContent"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ON.prototype,"isBackstage",null);
_.V([_.n(),_.H("design:type",Object)],ON.prototype,"disablePrescanVisibility",void 0);_.V([_.n(),_.H("design:type",Object)],ON.prototype,"canScheduleJobs",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ON.prototype,"engagementPanel",void 0);_.V([_.n(),_.H("design:type",Object)],ON.prototype,"hidePanelButton",void 0);_.V([_.n(),_.H("design:type",Object)],ON.prototype,"isWatchGrid",void 0);_.V([_.n(),_.H("design:type",Object)],ON.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.V([_.ev("data.contents"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ON.prototype,"contentsChanged_",null);_.V([_.ev("data.header"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ON.prototype,"headerChanged_",null);_.V([_.UQ("yt-show-subscribers-only-disclaimer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ON.prototype,"showSubscribersOnlyDisclaimer_",null);
_.V([_.y_({is:"ytd-comments"})],ON);var ck=function(){return _.uo.apply(this,arguments)||this};
_.R(ck,_.uo);_.J=ck.prototype;_.J.bindIf=function(A,t,f){return A?t:f};
_.J.bindIfDefined=function(A,t){return A!==void 0?A:t};
_.J.booleanString=function(A){return(!!A).toString()};
_.J.equals=function(){for(var A=_.Hu.apply(0,arguments),t=A[0],f=1;f<A.length;f++)if(t!=A[f])return!1;return!0};
_.J.isGreaterThan=function(A,t){return A>t};
_.J.isLessThan=function(A,t){return A<t};
_.J.logicalAND=function(){for(var A=_.Hu.apply(0,arguments),t=!!A[0],f=1;f<A.length;f++)t=t&&!!A[f];return t};
_.J.logicalOR=function(){for(var A=_.Hu.apply(0,arguments),t=!!A[0],f=1;f<A.length;f++)t=t||!!A[f];return t};
_.J.toBool=function(A){return!!A};
ck.prototype.toBool=ck.prototype.toBool;ck.prototype.logicalOR=ck.prototype.logicalOR;ck.prototype.logicalAND=ck.prototype.logicalAND;ck.prototype.isLessThan=ck.prototype.isLessThan;ck.prototype.isGreaterThan=ck.prototype.isGreaterThan;ck.prototype.equals=ck.prototype.equals;ck.prototype.booleanString=ck.prototype.booleanString;ck.prototype.bindIfDefined=ck.prototype.bindIfDefined;ck.prototype.bindIf=ck.prototype.bindIf;_.V([_.zh()],ck);_.q2l=[ck.prototype];var J_m;var Udl;var Bk=function(){return _.F.apply(this,arguments)||this};
_.R(Bk,_.F);Bk.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Bk.prototype.onBackIconTap_=function(){window.history.back()};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Bk.prototype,"data",void 0);_.V([_.WU({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Bk);
_.Y(Bk,"yt-header-with-back-renderer",function(){if(Udl===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;J_m===void 0&&(J_m=document.createElement("template"));var X=J_m;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Udl=A}A=Udl;return A},{mode:2});var e3d;var GQQ;var Mg=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(Mg,_.F);_.J=Mg.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A,this.setUrl())};
_.J.dataChanged=function(){var A=this;if(this.data){var t=this.setUrl();t&&_.UL({destination:window,iframe:this.iframe,origin:_.G_E(t.toString()),channelName:"yt-iframe",onMessage:function(f){(f=A.getCommunicationCommand(f.data))&&A.ytComponentBehavior.resolveCommand(f)},
onEstablished:function(){}})}};
_.J.setUrl=function(){if(this.data&&this.data.iframeUrl){var A=_.KU(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(A)return _.rW(this.iframe,A),A}};
_.J.getCommunicationCommand=function(A){var t;if((t=this.data)!=null&&t.onCommunicationCommandsMap){t=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===A});
if(t==null?0:t.value)return t==null?void 0:t.value;try{var f=saf(_.sx(A)),X=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===(f==null?void 0:f.getMethodName())});
if(X==null?0:X.value)return X==null?void 0:X.value}catch(Q){}}};
Mg.prototype.dataChanged=Mg.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Mg.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Mg.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Mg.prototype,"data",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],Mg.prototype,"isDarkTheme",void 0);_.V([_.lo("#iframe"),_.H("design:type",HTMLIFrameElement)],Mg.prototype,"iframe",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mg.prototype,"dataChanged",null);_.V([_.WU({is:"yt-iframe-renderer",disableElementRegistration:!0})],Mg);
_.Y(Mg,"yt-iframe-renderer",function(){if(GQQ===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;e3d===void 0&&(e3d=document.createElement("template"));var X=e3d;f.call(t,X.content.cloneNode(!0),A.content.firstChild);GQQ=A}A=GQQ;return A},{mode:2});_.Ce=function(A){_.DA.call(this);this.callback=A;this.bezier=new J0p(0,0,.4,0,.2,1,1,1);this.delay=new _.Og(this.next,window,this);this.JSC$17152_animating=!1;_.hV(this,this.delay)};
_.R(_.Ce,_.DA);_.Ce.prototype.isAnimating=function(){return this.JSC$17152_animating};
_.Ce.prototype.start=function(A,t,f){this.config={from:A,to:t,duration:f,startTime:(0,_.OJ)()};this.JSC$17152_animating=!0;this.next()};
_.Ce.prototype.stop=function(){this.delay.stop();this.JSC$17152_animating=!1;this.config=void 0};
_.Ce.prototype.next=function(){if(this.config){var A=this.config,t=A.from,f=A.to,X=A.duration;A=A.startTime;var Q=(0,_.OJ)()-A;A=this.bezier;X=eyC(A,Q/X);if(X==0)A=A.y0;else if(X==1)A=A.y3;else{Q=L3(A.y0,A.y1,X);var q=L3(A.y1,A.y2,X);A=L3(A.y2,A.y3,X);Q=L3(Q,q,X);q=L3(q,A,X);A=L3(Q,q,X)}A=_.ps(A,0,1);this.callback(t+(f-t)*A);A<1?this.delay.start():this.JSC$17152_animating=!1}};_.hm=new _.eh("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var lcd={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},u8Q=function(A,t,f,X){_.DA.call(this);this.JSC$17163_miniAppId=A;this.localReleaseId=t;this.derivedDeviceInterface=f;this.isForeground=X;this.JSC$17163_playNonceResolver=new _.Qc;this.playPingTimerId=NaN;this.playPingIntervalMs=_.cx("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.cx("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.M("enable_displaying_ppn");this.JSC$17163_miniAppClientDataProvider=_.Px().resolve(_.hm);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Nd3(this);var Q=setTimeout(function(){_.K4(new _.xj("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17163_playNonceResolver.promise.then(function(){clearTimeout(Q)})};
_.R(u8Q,_.DA);var Pyl=function(A,t){A.JSC$17163_playNonceResolver.resolve(t!=null?t:hG(8));A.enableDisplayingPpn&&z3w(A).then(function(f){A.JSC$17163_miniAppClientDataProvider.clientData.set("post_play_nonce",f)})},z3w=function(A){return _.l(function(t){return t.nextAddress==1?t.yield(A.JSC$17163_playNonceResolver.promise,2):t.return(t.yieldResult)})},Nd3=function(A){var t,f;
_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$17163_playNonceResolver.promise,2);t=X.yieldResult;f={miniAppInfo:{externalPostId:A.JSC$17163_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:t,derivedDeviceInterface:A.derivedDeviceInterface}};_.R7(f);_.LO(X)})},iw3=function(A){A.state!==0?_.K4(new _.xj("[MiniAppPlayLogger] recordPlayStart failed with state "+lcd[A.state])):(A.state=1,R2(A,"ma_cl"),mC(A,"PLAY_EVENT_TYPE_PLAY_START"),Tdh(A))},Owd=function(A){A.isForeground=!1;
mC(A,"PLAY_EVENT_TYPE_PLAY_PAUSE")},c_A=function(A){A.state!==1&&A.state!==2?_.K4(new _.xj("[MiniAppPlayLogger] recordPlayEnd failed with state "+lcd[A.state])):(A.state=3,window.clearInterval(A.playPingTimerId),A.playPingTimerId=NaN,Swb(),mC(A,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Bdw=function(A,t){A.state===2&&A.gameReady&&(A.firstClickRecorded?Date.now()-A.clickRecordedMs<A.playClickIntervalMs||(A.clickRecordedMs=Date.now(),mC(A,"PLAY_EVENT_TYPE_PLAY_CLICK")):t&&(R2(A,"ma_fua"),mC(A,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),A.firstClickRecorded=!0,A.clickRecordedMs=Date.now()))};
u8Q.prototype.logError=function(A){var t=this,f;_.l(function(X){if(X.nextAddress==1)return A.metadata.externalPostId=t.JSC$17163_miniAppId,f=A.metadata,X.yield(Promise.race([t.JSC$17163_playNonceResolver.promise,new Promise(function(Q){setTimeout(function(){Q("")},3E4)})]),2);
f.postPlayNonce=X.yieldResult;A.metadata.localReleaseId=t.localReleaseId;A.loggingError.level="WARNING";_.HQ(A.loggingError,A.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:A.metadata});_.LO(X)})};
var MjA=function(A,t,f,X){var Q,q,e,G,N,z;_.l(function(T){if(T.nextAddress==1)return T.yield(A.JSC$17163_playNonceResolver.promise,2);Q=T.yieldResult;q={externalPostId:A.JSC$17163_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:Q,sdkVersion:f,api:t};X!==void 0&&(q.networkRequestsMeasurement={networkRequests:_.Pf(X,1),cachedRequests:_.Pf(X,2),transferredBytes:_.Pf(X,3)},(e=X)==null?0:_.Pz(e,iJ,6))&&(q.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((G=_.Mq(X,
iJ,6))==null?void 0:vz(G,1))||"0",cacheHits:((N=_.Mq(X,iJ,6))==null?void 0:vz(N,2))||"0",cachedBytes:((z=_.Mq(X,iJ,6))==null?void 0:vz(z,3))||"0"});_.SY("miniAppSdkUsage",q);_.LO(T)})},h3h=function(A,t,f){var X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D;
_.l(function(S){if(S.nextAddress==1)return S.yield(A.JSC$17163_playNonceResolver.promise,2);X=S.yieldResult;Q={externalPostId:A.JSC$17163_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:X,sdkVersion:f,measurementWindow:{startTimestampMs:String(RD(t,1)),endTimestampMs:String(RD(t,2))},frameRate:{averageFrameTimeDeltaMs:ma(t,3),averageFrameIdleTimeMs:ma(t,4)}};_.Pz(t,Ow,5)&&(Q.networkRequests={networkRequests:(q=mM(t))==null?void 0:_.Pf(q,1),cachedRequests:(e=mM(t))==null?void 0:_.Pf(e,2),transferredBytes:(G=
mM(t))==null?void 0:_.Pf(G,3),sameOriginStatusCodeToCounts:CyA((N=mM(t))==null?void 0:_.F3z(N,4,void 0,db5,db5)),crossOriginStatusCodeToCounts:CyA((z=mM(t))==null?void 0:_.F3z(z,5,void 0,db5,db5))},(T=mM(t))==null?0:_.Pz(T,iJ,6))&&(Q.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((O=mM(t))==null?void 0:(c=_.Mq(O,iJ,6))==null?void 0:vz(c,1))||"0",cacheHits:((B=mM(t))==null?void 0:(h=_.Mq(B,iJ,6))==null?void 0:vz(h,2))||"0",cachedBytes:((W=mM(t))==null?void 0:(L=_.Mq(W,iJ,6))==
null?void 0:vz(L,3))||"0"});_.Pz(t,owC,7)&&(Q.gameCapture={averageFrameTimeDeltaMs:(E=_.Mq(t,owC,7))==null?void 0:ma(E,1),averageFrameIdleTimeMs:(D=_.Mq(t,owC,7))==null?void 0:ma(D,2)});_.SY("miniAppPerformanceMetrics",Q);_.LO(S)})},R3Q=function(A,t){var f,X;
return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(A.JSC$17163_playNonceResolver.promise,2);f=Q.yieldResult;X={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:A.JSC$17163_miniAppId,postPlayNonce:f,miniAppReleaseId:A.localReleaseId},derivedDeviceInterface:A.derivedDeviceInterface,adTriggerType:t,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.SY("miniAppAdEvent",X);_.LO(Q)})};
u8Q.prototype.disposeInternal=function(){_.DA.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var mC=function(A,t,f,X){f=f===void 0?{}:f;X=X===void 0?!1:X;var Q,q,e,G;_.l(function(N){if(N.nextAddress==1)return Q=A.isForeground,q=A.beforeReady,N.yield(A.JSC$17163_playNonceResolver.promise,2);e=N.yieldResult;G={externalPostId:A.JSC$17163_miniAppId,localReleaseId:A.localReleaseId,derivedDeviceInterface:A.derivedDeviceInterface,postPlayNonce:e,type:t};f.sequenceGroup=e;G.playState=q?"PLAY_STATE_NOT_READY":Q?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.SY("miniAppPlayEvent",G,
f);X&&_.$B();_.LO(N)})},R2=function(A,t){var f;
_.l(function(X){if(X.nextAddress==1)return f=(0,_.OJ)(),X.yield(A.JSC$17163_playNonceResolver.promise,2);_.Wt(t,f);_.LO(X)})},Tdh=function(A){isNaN(A.playPingTimerId)&&(A.playPingTimerId=_.my(function(){A.state!==1&&A.state!==2?_.K4(new _.xj("[MiniAppPlayLogger] reportPlayPing failed with state "+lcd[A.state])):mC(A,"PLAY_EVENT_TYPE_PLAY_PING")},A.playPingIntervalMs))},CyA=function(A){return Array.from(A.entries()).map(function(t){var f=_.U(t);
t=f.next().value;f=f.next().value;return{key:t,value:f}})};var md2=function(){},bwl=function(A,t){A.showMiniAppAdCommand=t.showMiniAppAdCommand;
A.isEmbeddedInWebview=t.isEmbeddedInWebview;A.playLogger=t.playLogger},y_d=function(A,t){var f;
return _.l(function(X){if(X.nextAddress==1){if(!A.showMiniAppAdCommand||!A.isEmbeddedInWebview)return X.return(W3A(A,t));A.adResolver=new _.Qc;var Q=new wB;f=_.CU(Q,3,t);yi(A.showMiniAppAdCommand,m2b(f));return X.yield(A.adResolver.promise,2)}return X.return(X.yieldResult)})};
md2.prototype.onAdFinished=function(A){A=Bzf(A);var t;(t=this.adResolver)==null||t.resolve(A)};
var W3A=function(A,t){var f;return _.l(function(X){if(X.nextAddress==1)X=X.yield((f=A.playLogger)==null?void 0:R3Q(f,HJp(t)),2);else{var Q=X.return;var q=new cHC;q=_.CU(q,1,2);X=Q.call(X,q)}return X})};var vm_=new _.eh("INNERTUBE_MANAGER_TOKEN");var L3y=function(){this.callbacks={}};
L3y.prototype.initialize=function(A){var t=this;this.callbacks=A;window.youtubewebview?window.youtubewebview.onmessage=function(f){pAw(t,f)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(f){pAw(t,f)})};
var pAw=function(A,t){if(t.data)try{var f=saf(t.data);if(_.Cw(_.zR(f,1))!=null){var X=cS8(_.Wz(f,2));switch(f.getMethodName()){case "yt-mini-app-load-audio-state":var Q,q;(q=(Q=A.callbacks).onAudioStateLoaded)==null||q.call(Q,_.hJ(X,D3(X,gB,1)));break;case "yt-mute-mini-app":var e,G;(G=(e=A.callbacks).onMuteMiniApp)==null||G.call(e);break;case "yt-unmute-mini-app":var N,z;(z=(N=A.callbacks).onUnmuteMiniApp)==null||z.call(N);break;case "yt-playable-exit":var T,O;(O=(T=A.callbacks).onExit)==null||O.call(T);
break;case "yt-post-play-nonce":var c,B;(B=(c=A.callbacks).onPostPlayNonceReceived)==null||B.call(c,Ld(X,2,gB));break;case "yt-confirm-exit-mini-app":var h,W;(W=(h=A.callbacks).confirmExitMiniApp)==null||W.call(h);break;case "yt-confirm-exit-mini-app-edu":var L,E;(E=(L=A.callbacks).confirmExitMiniAppEdu)==null||E.call(L);break;case "yt-benchmarking-response":var D,S;(S=(D=A.callbacks).onNativeBenchmarkingMessageReceived)==null||S.call(D,Ld(X,2,gB));break;case "yt-mini-app-load-3p-consent-state":var Z,
d;(d=(Z=A.callbacks).multiplayer3pAckStateLoaded)==null||d.call(Z,_.hJ(X,D3(X,gB,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var K,k;(k=(K=A.callbacks).exitMiniAppSeenStateLoaded)==null||k.call(K,_.hJ(X,D3(X,gB,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Gz,Tz;(Tz=(Gz=A.callbacks).onNavigateToNewMiniApp)==null||Tz.call(Gz);break;case "yt-game-data-available":var y5,cp;(cp=(y5=A.callbacks).onGameDataAvailable)==null||cp.call(y5,Ld(X,2,gB));break;case "yt-pause-mini-app":var iu,
Fb;(Fb=(iu=A.callbacks).onPauseMiniApp)==null||Fb.call(iu);break;case "yt-resume-mini-app":var xq,Yq;(Yq=(xq=A.callbacks).onResumeMiniApp)==null||Yq.call(xq);break;case "yt-playable-ad-finished":var zk,PT;(PT=(zk=A.callbacks).onAdFinished)==null||PT.call(zk,Ld(X,2,gB))}}else _.K4(Error("Wh"))}catch(rs){_.HQ(Error("Xh"))}else _.K4(Error("Yh"))};var K2T=function(A){this.rpcErrorCode=A};var bD=function(A,t,f){this.intervalMs=A;this.apiFunc=t;this.type=f;this.schedulerReady=!0};
bD.prototype.call=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1){if(t.type!==1&&A===t.cachedValue)return X.return();t.pendingApiRequestResolver||(t.pendingApiRequestResolver=new _.Qc);f=t.pendingApiRequestResolver.promise;t.cachedValue=A;return X.yield(Emy(t),2)}return X.return(f)})};
bD.prototype.flush=function(A){A=A===void 0?!1:A;var t=this;return _.l(function(f){return t.cachedValue===void 0?f.return():f.yield(t.apiFunc(t.cachedValue,A),0)})};
var Emy=function(A){var t,f,X;return _.l(function(Q){switch(Q.nextAddress){case 1:if(!A.schedulerReady||!A.pendingApiRequestResolver)return Q.return();A.schedulerReady=!1;t=A.pendingApiRequestResolver;A.pendingApiRequestResolver=void 0;_.ht(Q,2);if(A.cachedValue===void 0){Q.jumpTo(4);break}return Q.yield(A.apiFunc(A.cachedValue),5);case 5:f=Q.yieldResult,t.resolve(f);case 4:_.qq(Q,3);break;case 2:X=_.vC(Q),t.reject(X);case 3:setTimeout(function(){return _.l(function(q){A.schedulerReady=!0;return q.yield(Emy(A),
0)})},A.intervalMs),_.LO(Q)}})};var sxs=window.location.origin+"/miniapp_cloudsaves",gnp=[400,401],nm8=_.cx("cloud_save_game_data_rate_limit_ms",3E3),Ic_=function(A){var t=this;this.JSC$17207_miniAppId=A;this.loadAttempts=0;this.cloudSaveIntervalMs=nm8;this.initialDownloadDataSucceeded=!1;this.JSC$17207_playNonceResolver=new _.Qc;this.scottyUploadRateLimiter=new bD(this.cloudSaveIntervalMs,function(f,X){return Dd3(t,f,X)},2);
this.downloadDataPromise=F3Q(this);this.downloadDataPromise.then(function(){t.initialDownloadDataSucceeded=!0}).catch(function(){})},xd8=function(A,t){t.then(function(f){return A.JSC$17207_playNonceResolver.resolve(f)})},jlw=function(A){return _.l(function(t){return A.cachedData===void 0?t.return(A.downloadDataPromise):t.return(A.cachedData)})},Y23=function(A,t){return _.l(function(f){A.cachedData=t;
if(!A.initialDownloadDataSucceeded)throw Error("Zh");return f.yield(A.scottyUploadRateLimiter.call(t),0)})},Vjw=function(){return new Promise(function(A){setTimeout(A,1E3,"")})},ZwQ=function(A,t){var f,X;
return _.l(function(Q){if(Q.nextAddress==1)return f=A.JSC$17207_miniAppId,Q.yield(Promise.race([A.JSC$17207_playNonceResolver.promise,Vjw()]),2);X={"X-YouTube-MiniAppId":f,"X-YouTube-PostPlayNonce":Q.yieldResult};"DELEGATED_SESSION_ID"in _.$k&&lNu(t,X);return Q.return(X)})},Dd3=function(A,t,f){f=f===void 0?!1:f;
return _.l(function(X){return ajx()?_.M("enable_cloud_save_error_popup_after_retry")?X.return(new Promise(function(Q,q){var e,G,N,z,T;return _.l(function(O){switch(O.nextAddress){case 1:e=0,G=!0,z=N=null;case 2:if(!(G&&e++<2)){O.jumpTo(4);break}_.ht(O,5);return O.yield(om3(A,t,f),7);case 7:N=O.yieldResult;G=N.ok?!1:!gnp.includes(N.status);_.qq(O,2);break;case 5:z=T=_.vC(O);G=whT(z);O.jumpTo(2);break;case 4:N?N.ok?(Wk(A,nm8),Q()):(Wk(A,A.cloudSaveIntervalMs*2),q(Error("$h`"+String(N.status),{cause:{rpcErrorCode:N.status}}))):
(Wk(A,A.cloudSaveIntervalMs*2),q(z||Error("ai"))),_.LO(O)}})})):X.return(new Promise(function(Q,q){var e,G;
return _.l(function(N){if(N.nextAddress==1){if(A.JSC$17207_miniAppId==="")return q(Error("bi")),N.return();_.ht(N,2);return N.yield(om3(A,t,f),4)}if(N.nextAddress!=2)return e=N.yieldResult,e.ok?(Wk(A,nm8),Q()):(Wk(A,A.cloudSaveIntervalMs*2),q(Error("$h`"+String(e.status),{cause:{rpcErrorCode:e.status}}))),_.qq(N,0);G=_.vC(N);Wk(A,A.cloudSaveIntervalMs*2);q(G);_.LO(N)})})):X.return()})},om3=function(A,t,f){f=f===void 0?!1:f;
var X,Q,q;return _.l(function(e){if(e.nextAddress==1)return X=_.E2((new TextEncoder).encode(t)),Q=k2x(),e.yield(ZwQ(A,Q),2);q=e.yieldResult;return e.return(fetch(Q,{method:"POST",body:new Blob([X]),headers:q,keepalive:f}))})},F3Q=function(A){var t,f;
return _.l(function(X){if(X.nextAddress==1){if(!ajx())return X.return("");if(A.JSC$17207_miniAppId==="")throw Error("bi");if(A.loadAttempts>2)return X.return(A.downloadDataPromise);_.ht(X,2);return X.yield(dd3(A),4)}if(X.nextAddress!=2)return t=X.yieldResult,X.return(t);f=_.vC(X);if(whT(f)&&++A.loadAttempts<2)return X.return(F3Q(A));throw f;})},dd3=function(A){var t,f,X,Q,q;
return _.l(function(e){switch(e.nextAddress){case 1:return _.ht(e,2),t=k2x(),e.yield(ZwQ(A,t),4);case 4:return f=e.yieldResult,e.yield(fetch(t,{method:"GET",headers:f}),5);case 5:return X=e.yieldResult,X.ok?e.yield(X.text(),6):e.return(Promise.reject(Error("ci`"+String(X.status),{cause:new K2T(X.status)})));case 6:return Q=e.yieldResult,e.return((new TextDecoder).decode(_.sx(Q)));case 2:return q=_.vC(e),e.return(Promise.reject(q))}})},Wk=function(A,t){A.cloudSaveIntervalMs=t;
A.scottyUploadRateLimiter.intervalMs=A.cloudSaveIntervalMs};
Ic_.prototype.flush=function(){var A=this;return _.l(function(t){return A.initialDownloadDataSucceeded?t.yield(A.scottyUploadRateLimiter.flush(!0),0):t.return()})};var S2Q=hS(CX(1),BL(1)),$dm=hS(CX(1),BL(3)),yu=function(A){this.callbacks=A};
_.J=yu.prototype;_.J.onAudioToggled=function(A,t){(t===void 0||t)&&_.ci("yt-mini-app-is-audio-enabled",A,2592E3)};
_.J.onPause=function(){this.onAudioToggled(!1,!1)};
_.J.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.J.returnNativeBenchmarkingMessage=function(){};
_.J.sendGameData=function(){};
_.J.sendStartGameFrameCapture=function(){};
var rj5=function(A,t,f){this.callbacks=A;var X=this;this.sdkVersion=new _.Qc;this.channel=new TW8(_.UL({destination:window,iframe:t,origin:(new URL(f.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Q=vk;var q=CX(5);var e=new vw7;e=_.E1(e,1,1E4);q=_.Wu(q,4,x3k,e);Q(X,q);X.onAudioToggled(X.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){X.sdkVersion.resolve("")},1E4)};
_.R(rj5,yu);_.J=rj5.prototype;_.J.onAudioToggled=function(A,t){yu.prototype.onAudioToggled.call(this,A,t===void 0?!0:t);t=vk;var f=CX(2),X=new Wml;A=_.cf(X,1,A);A=_.Wu(f,3,x3k,A);t(this,A)};
_.J.onPause=function(){yu.prototype.onPause.call(this);vk(this,CX(3))};
_.J.onResume=function(){yu.prototype.onResume.call(this);vk(this,CX(4))};
_.J.returnNativeBenchmarkingMessage=function(A){var t=vk,f=CX(6);var X=BL(_.Pz(A,rU,1)?1:2);A=_.Pz(A,rU,1)?A:null;X=_.Wu(X,5,M2,A);t(this,hS(f,X))};
_.J.sendGameData=function(A){var t=vk,f=CX(7);A=_.Wu(f,5,x3k,A);t(this,A)};
_.J.sendStartGameFrameCapture=function(){vk(this,CX(9))};
var Le=function(A,t,f){var X,Q,q;return _.l(function(e){if(e.nextAddress==1)return X=A.callbacks,Q=X.onSdkCalled,q=t,e.yield(A.sdkVersion.promise,2);Q.call(X,q,e.yieldResult,f);_.LO(e)})};
rj5.prototype.onMessage=function(){var A=this;return crp(bJ,function(t){var f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K,k,Gz,Tz,y5,cp,iu,Fb,xq,Yq,zk,PT,rs,OT,bK,ET,m3,O2,eT,fS,hf,wE,Rp,rE,bL,$8;return _.l(function(Tk){switch(Tk.nextAddress){case 1:if(!HLT(t.data))return _.K4(Error("di")),Tk.return();f=_.ye(t.data,1);_.M("enable_iframe_message_get_type_via_fields")&&(X=t.data,f=Q=_.ye(X,1));switch(f){case 8:if(t.data.hasMetadata()){var iK=A.sdkVersion,Qh=iK.resolve;var Kg=t.data.getMetadata();Kg=_.Wz(Kg,
1);Qh.call(iK,Kg);clearTimeout(A.sdkVersionTimeoutId)}break;case 6:return Tk.jumpTo(2);case 16:if(!_.TR(t.data,VQT,14,WL))return Tk.return();q=_.pd(t.data,VQT,14,WL);(G=(e=A.callbacks).onGameFrameReceived)==null||G.call(e,q);return Tk.return();case 17:if(!_.TR(t.data,YEC,15,WL))return Tk.return();(z=(N=A.callbacks).onGameAudioReceived)==null||z.call(N,_.pd(t.data,YEC,15,WL));return Tk.return();case 1:if(iK=_.pd(t.data,Ewk,2,WL))switch(_.ye(iK,1)){case 1:A.callbacks.onFirstFrameReady();if(_.M("enable_network_request_logging_on_game_events")&&
_.Pz(iK,Ow,4)){Le(A,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Mq(iK,Ow,4));break}Le(A,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Kg=(Qh=A.callbacks).onGameReady)==null||Kg.call(Qh);if(_.M("enable_network_request_logging_on_game_events")&&_.Pz(iK,Ow,4)){Le(A,"MINI_APP_SDK_API_GAME_READY",_.Mq(iK,Ow,4));break}Le(A,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.TR(iK,cL,3,nwE))A.callbacks.onResourceLoaded(_.pd(iK,cL,3,nwE))}return Tk.return();case 3:return Tk.jumpTo(3);case 4:return Tk.jumpTo(4);
case 2:return Tk.jumpTo(5);case 9:return Tk.jumpTo(6);case 10:return A.callbacks.onClick(),Tk.return();case 5:return Tk.jumpTo(7);case 11:if(!_.TR(t.data,PL,9,WL))return Tk.return();T=_.pd(t.data,PL,9,WL);(c=(O=A.callbacks).onBenchmarkingMessageReceived)==null||c.call(O,T);iK=t.reply;Qh=CX(1);Kg=BL(1);var fw=new PL;var TH=new Uint8Array(DbC(T,D3(T,CRf,6))|0);fw=vQ(fw,5,CRf,_.nS(TH,!1));Kg=_.Wu(Kg,5,M2,fw);iK.call(t,hS(Qh,Kg));return Tk.return();case 12:return Tk.jumpTo(8);case 13:return Tk.jumpTo(9);
case 15:if(!_.M("enable_open_yt_content"))return t.reply($dm),Tk.return();if(!_.TR(t.data,jPp,12,WL))return t.reply(hS(CX(1),BL(2))),Tk.return();iK=_.pd(t.data,jPp,12,WL);B=_.Wz(iK,1);A.callbacks.onOpenYTContent(B);t.reply(S2Q);return Tk.return();case 14:return Tk.jumpTo(10);default:return Tk.return()}Tk.jumpTo(0);break;case 2:if(!_.TR(t.data,RX,5,WL))return Tk.return();Qh=t.data;iK=D3(Qh,WL,5);Qh=Qh.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;h=Y25(Qh,Qh[_.qb]|0,RX,iK)||RX[Viz]||(RX[Viz]=
ZSz(RX));iK=_.Nc(h,Tn,1,_.uI());W=_.U(iK);L=W.next();case 12:if(L.done){Tk.jumpTo(14);break}E=L.value;D=new _.xj;D.level=_.ye(E,2)===1?"WARNING":"ERROR";S=t_b(E.getSource());return Tk.yield(A.sdkVersion.promise,15);case 15:Z={source:S,sdkVersion:Tk.yieldResult};_.J_(_.zR(E,6))!=null?(D.message=E.getMessage(),D.stack=_.Wz(E,5),Z.sdkErrorType=fJT(_.ye(E,6)),_.J_(_.zR(E,7))!=null&&(Z.sdkApi=X6x(_.ye(E,7)))):D.stack=void 0;K=d=void 0;(K=(d=A.callbacks).onError)==null||K.call(d,{loggingError:D,metadata:Z});
L=W.next();Tk.jumpTo(12);break;case 14:return Tk.return();case 3:return _.ht(Tk,16),iK=Tk.yield,Qh=A.callbacks,Kg=Qh.onSave,fw=_.pd(t.data,yHE,4,WL),fw=_.Wz(fw,1),iK.call(Tk,Kg.call(Qh,fw),18);case 18:t.reply(S2Q);_.qq(Tk,17);break;case 16:return k=_.vC(Tk),Gz=v$,Tz=k,y5=A.callbacks,cp="MINI_APP_SDK_API_SAVE_DATA",Tk.yield(A.sdkVersion.promise,19);case 19:Gz(Tz,y5,cp,Tk.yieldResult),t.reply($dm);case 17:return Tk.yield(Le(A,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Tk.return();case 4:return _.ht(Tk,
21),Tk.yield(A.callbacks.onLoad(),23);case 23:iu=Tk.yieldResult;iK=t.reply;Qh=CX(1);Kg=BL(1);fw=new yHE;fw=_.Dg(fw,1,iu);Kg=_.Wu(Kg,3,M2,fw);iK.call(t,hS(Qh,Kg));_.qq(Tk,22);break;case 21:return Fb=_.vC(Tk),xq=v$,Yq=Fb,zk=A.callbacks,PT="MINI_APP_SDK_API_LOAD_DATA",Tk.yield(A.sdkVersion.promise,24);case 24:xq(Yq,zk,PT,Tk.yieldResult),t.reply($dm);case 22:return Tk.yield(Le(A,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Tk.return();case 5:_.ht(Tk,26);A.callbacks.onSendHighScore(Se(_.pd(t.data,
SET,3,WL).getValue()));t.reply(hS(CX(1),BL(1)));_.qq(Tk,27);break;case 26:return rs=_.vC(Tk),OT=v$,bK=rs,ET=A.callbacks,m3="MINI_APP_SDK_API_SEND_SCORE",Tk.yield(A.sdkVersion.promise,28);case 28:OT(bK,ET,m3,Tk.yieldResult),t.reply($dm);case 27:return Tk.yield(Le(A,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Tk.return();case 6:if(!_.TR(t.data,$3K,8,WL)){Tk.jumpTo(30);break}iK=Tk.yield;Qh=_.pd(t.data,$3K,8,WL);Qh=_.ye(Qh,1);return iK.call(Tk,Le(A,X6x(Qh)),30);case 30:return Tk.return();case 7:return iK=
t.reply,Qh=CX(1),Kg=BL(1),fw=A.callbacks.getLanguage(),Kg=vQ(Kg,4,M2,BA(fw)),iK.call(t,hS(Qh,Kg)),Tk.yield(Le(A,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Tk.return();case 8:if(!_.TR(t.data,d3C,10,WL))return Tk.return();O2=_.pd(t.data,d3C,10,WL);eT=A.callbacks;fS=eT.onSdkPerformanceUpdate;return Tk.yield(A.sdkVersion.promise,33);case 33:return fS.call(eT,O2,Tk.yieldResult),Tk.return();case 9:iK=t.data;Qh=D3(iK,WL,11);if(_.Cw(_.zR(iK,Qh))==null)return t.reply(hS(CX(1),BL(2))),Tk.return();
hf=Ld(t.data,11,WL);A.callbacks.onShareInviteCode(hf);t.reply(S2Q);return Tk.yield(Le(A,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Tk.return();case 10:if(_.TR(t.data,bLl,13,WL)){Tk.jumpTo(35);break}return Tk.yield(A.callbacks.onShowMiniAppAd(2),36);case 36:return wE=Tk.yieldResult,t.reply(hS(CX(1),Fml(wE))),Tk.yield(Le(A,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Tk.return();case 35:iK=_.pd(t.data,bLl,13,WL);a:switch(_.ye(iK,1)){case 1:iK={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:iK={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:iK={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Rp=iK;rE=Rp.adType;bL=Rp.sdkApi;iK=Tk.yield;Qh=A.callbacks;Kg=Qh.onShowMiniAppAd;fw=_.pd(t.data,bLl,13,WL);fw=_.Wz(fw,2);return iK.call(Tk,Kg.call(Qh,rE,fw||void 0),38);case 38:return $8=Tk.yieldResult,t.reply(hS(CX(1),Fml($8))),Tk.yield(Le(A,bL),39);case 39:return Tk.return()}})})};
var vk=function(A,t){_.l(function(f){A.channel.send(t);_.LO(f)})},L8=function(A,t,f){this.callbacks=A;
var X=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;A=rrp(t,(new URL(f.toString())).origin);this.gameSnacks=new Elf(A);this.gameSnacks.page.onReady(function(){X.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){X.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Q,q;(q=(Q=X.callbacks).onGameReady)==null||q.call(Q)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Q,q){try{X.callbacks.onSendHighScore(q)}catch(e){v$(e,X.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Q,q){var e;return _.l(function(G){if(G.nextAddress==1)return _.ht(G,2),G.yield(X.callbacks.onSave(X.decoder.decode(q)),4);if(G.nextAddress!=2)return _.qq(G,0);e=_.vC(G);v$(e,X.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return G.return()})});
this.gameSnacks.storage.onLoad(function(){var Q,q;return _.l(function(e){if(e.nextAddress==1)return _.ht(e,2),e.yield(X.callbacks.onLoad(),4);if(e.nextAddress!=2)return Q=e.yieldResult,e.return(X.encoder.encode(Q));q=_.vC(e);v$(q,X.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return e.return(X.encoder.encode(""))})});
this.gameSnacks.init()};
_.R(L8,yu);L8.prototype.onAudioToggled=function(A,t){yu.prototype.onAudioToggled.call(this,A,t===void 0?!0:t);var f;(f=this.gameSnacks)==null||f.audio.update(A)};
L8.prototype.onPause=function(){yu.prototype.onPause.call(this);var A;(A=this.gameSnacks)==null||A.game.pause()};
L8.prototype.onResume=function(){yu.prototype.onResume.call(this);var A;(A=this.gameSnacks)==null||A.game.resume()};var HwQ=QKu,acl=_.I(function(A){var t=A.data;var f=A.loadingProgress;var X=A.forPaused;A=_.U(_.hZ("",void 0,"LYYTdd"));var Q=A.next().value,q=A.next().value;A=_.U(_.hZ(!1,void 0,"K0waae"));var e=A.next().value,G=A.next().value,N=[],z=function(){return"transform: scaleX("+(_.$f(f)||0)+")"},T=null,O=function(){return t()&&T!==null&&T!==void 0?T:T=t().showAnniversaryAnimation?6:HwQ()};
_.oo(function(){var W;if(t().timeOutMessages&&((W=t().timeOutMessages)==null?0:W.length)){T=null;W=_.U(N);for(var L=W.next();!L.done;L=W.next())clearTimeout(L.value);N.length=0;qqp(t().timeOutMessages,N,q,G)}},"BNu9j");
var c=function(){return!!t().persistentErrorMessageTitle},B=function(){return f!==void 0},h=function(){return t().title};
return _.u("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.u("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.u("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.u("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var W,L=(W=t().backgroundImage)==null?void 0:W.sources,E;return(L==null?0:L.length)?"background-image: url("+((E=L[0])==null?void 0:E.url)+")":""}}),_.u("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.u(_.P,{cond:function(){return!c()&&!(X==null?0:X())},
then:function(){var W={};return _.u("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.u("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.u(_.Ya,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+O()},
data:function(){var L="loading_animation_"+O();return{animationConfig:{name:L,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+L+".json",loop:!0,autoplay:!0}}}})),_.u("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.u(_.P,{cond:h,
then:function(){return _.u("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},h)}}),_.u("p",{class:_.Ao("miniAppSplashScreenViewModelTimeoutMessage",(W.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return e()},W)),
"aria-live":"polite"},Q),_.u(_.P,{cond:B,then:function(){return _.u("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.u("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:z}))}})))}}),_.u(_.P,{cond:c,
then:function(){return _.u("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.u("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return t().persistentErrorMessageTitle}),_.u(_.P,{cond:function(){return!!t().persistentErrorMessageDescription},
then:function(){return _.u("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return t().persistentErrorMessageDescription})}}))}}),_.u(_.P,{cond:X,
then:function(){return _.u("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.u("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.u("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},h))}})))},"Of");var K3j=new _.eh("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var gmm=Gw;Gw=function(A){function t(f){if(f){var X,Q;(X=f.__spec)==null||(Q=X.didUnmount)==null||Q.call(X);for(X=0;X<f.childNodes.length;X++)t(f.childNodes[X])}}
gmm==null||gmm(A);cn(function(){for(var f=0;f<A.length;f++)t(A[f])})};var wAd=_.I(function(A){var t=A.data;var f=A.score;var X=A.formattedScore;var Q=A.onScoreChanged;var q=A.isEmbeddedInWebview;var e=_.ud("yt-mini-app-score-button-view-model"),G=function(){var B;return _.C(t==null?void 0:(B=t())==null?void 0:B.buttonViewModel,_.zf)},N=function(){var B;
return(f==null?void 0:f())||Number(t==null?void 0:(B=t())==null?void 0:B.lastScore)||0},z=function(){var B;
return(X==null?void 0:X())||((B=G())==null?void 0:B.title)||""},T,O=1;
if(A=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))A=Number(A),O=isNaN(A)?1:A/100;_.oo(function(){Q==null||Q(N());var B;var h=_.bP((B=G())==null?void 0:B.onTap);if(h){B=_.C(h,JsC);var W,L,E;B=_.C(B==null?void 0:(W=B.panelLoadingStrategy)==null?void 0:(L=W.inlineContent)==null?void 0:(E=L.dialogViewModel)==null?void 0:E.customContent,bXS)}else B=void 0;if(W=B)W.score=z()},"Aekez");
A=_.f1(function(){var B,h,W=t==null?void 0:(B=t())==null?void 0:(h=B.loggingDirectives)==null?void 0:h.trackingParams;W&&_.Zv(_.Px().resolve(_.gx),W);return!1});
_.oh(function(){if(e.value){var B=e.value.querySelector("button"),h=G();B&&h&&Jyl(B,h);_.TU("yt-share-playable-with-high-score",function(){var W=N().toString(),L=t==null?void 0:t().onShareHighScoreCommand,E=t==null?void 0:t().highScoreShareClientParamIdentifier,D=q==null?void 0:q();L&&(D?(E=new a0T,W=_.Dg(E,2,W),yi(L,W.JSC$12616_serializeBinary())):E&&(_.Px().resolve(K3j).clientParams.set(E,{miniAppClientParams:{highScore:W}}),ZJl(L,!1)))})}});
var c=function(){var B=G();B&&(f==null?0:f())&&B.accessibilityText&&(B.accessibilityText=B.accessibilityText.replace(T,z()));T=z();return{numberValue:N(),numberText:z(),heightPx:36,fontSizeMultiplier:O,shouldAnimate:!(f==null||!f())&&!0}};
return _.u("yt-mini-app-score-button-view-model",{class:function(){var B={};return _.CW("miniAppScoreButtonViewModelHost",(B.miniAppScoreButtonViewModelIsVisible=N()!==0,B))},
el:e,"on:click":A},Tbl(!1,function(){return _.u("span",{style:"display:none;"},N)}),_.u(_.P1,{data:function(){var B;
return t==null?void 0:(B=t())==null?void 0:B.buttonViewModel}},{buttonViewModel:function(B){return _.u(_.nx,{data:B.data,
animatedTextProps:c})}}))},"Qf");var t3l=_.I(function(A){var t,f=(t=_.Bi("yt-mini-app-is-theater-mode-enabled"))!=null?t:!1,X=_.M("enable_playable_container_save_button"),Q=_.M("enable_play_next_destination_page_in_toolbar");t={};return _.u("ytm-mini-app-top-bar-view-model",null,_.u("div",{class:_.Ao("yt-mini-app-top-bar-view-model",(t["yt-mini-app-top-bar-view-model--mobile"]=!1,t["yt-mini-app-top-bar-view-model--desktop"]=!0,t))},_.u("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.u(_.P,{cond:function(){var q;return!!A.data().backButtonEdu&&
!((q=A.isExitMiniAppSeen)==null?0:q.call(A))},
then:function(){return _.u(_.P1,{data:function(){return A.data().backButtonEdu}},{buttonViewModel:_.nx})},
else:function(){return _.u(_.P1,{data:function(){return A.data().backButton}},{buttonViewModel:_.nx})}}),_.u(_.P,{cond:function(){return A.data().viewAllButton&&!0},
then:function(){return _.u(_.P1,{data:function(){return A.data().viewAllButton}},{buttonViewModel:_.nx})}}),_.u(_.P,{cond:function(){return A.data().title&&!0},
then:function(){return _.u("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return A.data().title})}})),_.u("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.u(_.P,{cond:function(){var q;
return(q=A.isDesktopPlayPage)==null?void 0:q.call(A)},
then:function(){return _.u(_.Tw,null,_.u(slm,{highScoreButton:function(){return A.data().highScoreButton},
score:A.score,formattedScore:A.formattedScore,onScoreChanged:A.onScoreChanged,isEmbeddedInWebview:A.isEmbeddedInWebview}),_.u(kQ2,{enableSaveButton:function(){return _.$f(X)},
saveButton:function(){return A.data().saveButton},
isSaved:A.isSaved,onSaveToggled:function(){return A.onSaveToggled}}),_.u(r_h,{menuButton:function(){return A.data().menuButton}}))},
else:function(){return _.u(_.P,{cond:function(){return!1},
then:function(){return _.u(_.P1,{data:function(){return A.data().playPageButton}},{buttonViewModel:function(q){return _.u(_.nx,{data:q.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.u(slm,{highScoreButton:function(){return A.data().highScoreButton},
score:A.score,formattedScore:A.formattedScore,onScoreChanged:A.onScoreChanged,isEmbeddedInWebview:A.isEmbeddedInWebview})}})}})),_.u("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.u(_.P1,{data:function(){return A.data().muteButton}},{toggleButtonViewModel:function(q){var e=q.data;
return _.u(_.s$,{data:function(){var G,N;return Object.assign({},e(),{isToggled:(N=(G=A.isAudioEnabled)==null?void 0:G.call(A))!=null?N:!0})},
onToggle:A.onAudioToggled,useOutlinedIcon:!0})}}),_.u(_.P1,{data:function(){return A.data().theatreModeButton}},{toggleButtonViewModel:function(q){var e=q.data;
return _.u("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.u(_.s$,{data:function(){return Object.assign({},e(),{isToggled:f})},
useOutlinedIcon:!0}))}}),_.u(ArQ,{fullscreenButton:function(){return A.data().fullscreenButton}}),_.u(_.P,{cond:function(){return _.$f(Q)&&A.data().viewAllButton&&!1},
then:function(){return _.u(_.P1,{data:function(){return A.data().viewAllButton}},{buttonViewModel:_.nx})}}),_.u(_.P,{cond:function(){var q;
return!((q=A.isDesktopPlayPage)==null?0:q.call(A))},
then:function(){return _.u(_.Tw,null,_.u(kQ2,{enableSaveButton:function(){return _.$f(X)},
saveButton:function(){return A.data().saveButton},
isSaved:A.isSaved,onSaveToggled:function(){return A.onSaveToggled}}),_.u(r_h,{menuButton:function(){return A.data().menuButton}}))}}))))},"Rf");
t3l.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var r_h=_.I(function(A){return _.u(_.P1,{data:A.menuButton},{buttonViewModel:_.nx})},"Sf"),kQ2=_.I(function(A){var t=A.enableSaveButton;
var f=A.saveButton;var X=A.isSaved;var Q=A.onSaveToggled;return _.u(_.P,{cond:function(){return t()&&!(f==null||!f())},
then:function(){return _.u(_.P1,{data:function(){var q=_.C(f==null?void 0:f(),_.Tf),e;return{toggleButtonViewModel:Object.assign({},q,{isToggled:(e=X==null?void 0:X())!=null?e:!(q==null||!q.isToggled)})}}},{toggleButtonViewModel:function(q){return _.u(_.s$,{data:q.data,
onToggle:Q})}})}})},"Tf"),slm=_.I(function(A){var t=A.highScoreButton;
var f=A.score;var X=A.formattedScore;var Q=A.onScoreChanged;var q=A.isEmbeddedInWebview;return _.u(_.P1,{data:t},{miniAppScoreButtonViewModel:function(e){return _.u(wAd,{data:e.data,score:f,formattedScore:X,onScoreChanged:Q,isEmbeddedInWebview:q})}})},"Uf"),ArQ=_.I(function(A){A=A.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.u(_.Tw,null):_.u(_.P1,{data:A},{buttonViewModel:_.nx})},"Vf");_.fFd=_.I(function(A){var t=A.data;var f=A.extractOverlay;A={};return _.u("player-disclosure-view-model",{class:_.Ao("ytwPlayerDisclosureViewModelHost",(A.ytwPlayerDisclosureViewModelExtractOverlay=function(){return f==null?void 0:f()},A))},_.u(_.bc,{command:function(){return t().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.u(_.P,{cond:function(){return t().iconName},
then:function(X){return _.u(_.el,{icon:X})}}),_.u(_.P,{cond:function(){return t().iconName?void 0:t().image},
then:function(X){return _.u(_.YA,{data:X,alt:function(){return t().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.u(_.P,{cond:function(){return t().title||t().secondaryText},
then:function(){return _.u("div",null,_.u("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return t().title}),_.u("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return t().text}),_.u(_.P,{cond:function(){return t().secondaryText},
then:function(X){return _.u(_.Tw,null,_.u("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.u("div",{class:"ytwPlayerDisclosureViewModelText"},X))}}))},
else:function(){return _.u("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return t().text})}}),_.u(_.P,{cond:function(){return t().showEndChevron},
then:function(){return _.u(_.el,{icon:"CHEVRON_RIGHT"})}})))},"Wf");_.Xuh=new _.eh("DESKTOP_CURRENT_PAGE");var GHw=_.I(function(A){var t=A.data;var f=_.M("force_active_time_logging_webview"),X=!1,Q=new L3y,q=void 0,e=void 0,G=_.Px().resolve(vm_),N=new md2,z=void 0,T=void 0,O=[],c=void 0,B=void 0,h=!1,W=!1,L=!1,E=!1,D=new _.Qc,S=_.Px().resolve(K3j),Z=_.Px().resolve(_.hm),d=_.Px().resolve(_.z7($y)),K,k=(K=_.Px().resolve(_.z7(_.Xuh)))==null?void 0:K.getCurrentPage(),Gz=!1,Tz=0,y5=function(QC){QC.preventDefault();return QC.returnValue=""},cp,iu=_.U(_.hZ(!((cp=_.Bi("yt-mini-app-is-audio-enabled"))!=null&&!cp),
void 0,"wBOrKf")),Fb=iu.next().value,xq=iu.next().value,Yq,zk=_.U(_.hZ(!((Yq=_.Bi("exit-mini-app-seen-state"))==null||!Yq),void 0,"a2xYg")),PT=zk.next().value,rs=zk.next().value,OT=_.U(_.hZ(!1,void 0,"i8BH4")),bK=OT.next().value,ET=OT.next().value,m3=_.U(_.hZ(void 0,void 0,"UGqFqe")),O2=m3.next().value,eT=m3.next().value,fS=_.U(_.hZ(void 0,void 0,"jrV5Ob")),hf=fS.next().value,wE=fS.next().value,Rp=_.U(_.hZ(!0,void 0,"u5JS3d")),rE=Rp.next().value,bL=Rp.next().value,$8=_.U(_.hZ(!1,void 0,"MjPdB")),
Tk=$8.next().value,iK=$8.next().value,Qh=_.U(_.hZ(!1,void 0,"nT6Yxf")),Kg=Qh.next().value,fw=Qh.next().value,TH=_.U(_.hZ(void 0,void 0,"nkG6")),Xx=TH.next().value,cA=TH.next().value,$m=_.U(_.hZ(0,void 0,"KH4u0b")),z_=$m.next().value,Mw=$m.next().value,HT=_.GU("mini-app-container-view-model"),by=_.U(_.hZ(!1,void 0,"NsE4qb")),qd=by.next().value,gG=by.next().value,Gv=function(){return t().isEmbeddedInWebview},yG=function(){return t().hasPlayNextShelf};
_.Zk(function(){var QC,Md=(QC=_.C(t().contentDisclosure,oaS))==null?void 0:QC.animationParams;if((Md==null?0:Md.shouldHide)&&(Md==null?0:Md.hideDelaySecs)){var jj=setTimeout(function(){gG(!0)},Md.hideDelaySecs*1E3);
_.dD(function(){clearTimeout(jj)})}});
_.TU("yt-page-type-changed",function(QC){if(_.M("enable_is_mini_app_page_active_bugfix"))QC.detail.newPageSubtype==="mini_app"&&QC.detail.newPageType==="ytd-browse"||!rE()||bs();else if(QC=_.ov()==="mini_app",QC!==rE())if(bL(QC),QC){var Md;QC=(Md=t().playableId)==null?void 0:Md.toString();QC!==void 0&&window.location.href.includes(QC)&&!W&&(E=!0,fF(),q9.value&&C_(q9.value))}else QC||bs()});
_.TU("yt-action",function(QC){QC.detail.actionName==="yt-engagement-panel-visible-changed"&&QC.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&QC.detail.args[2]==="PAmini_app_panel"&&bs();_.M("enable_is_mini_app_page_active_bugfix")?QC.detail.actionName==="yt-history-load"&&!rE()&&(k==null?0:k.active)?(bL(!0),fF(),q9.value&&C_(q9.value)):QC.detail.actionName==="yt-history-load"&&rE()&&!t().isEmbeddedInWebview&&CS():rE()&&QC.detail.actionName==="yt-history-load"&&(E?E=!1:t().isEmbeddedInWebview||
CS())});
_.dD(function(){SO()});
_.oo(function(){fF()},"bzUf2c");
var fF=function(){var QC=t().playableId,Md=t().localReleaseId,jj=t().derivedDeviceInterface;if(W)_.K4(new _.xj("[MiniAppContainerViewModel] onEnter was called more than once"));else{W=!0;q=new u8Q(QC,Md,jj,document.visibilityState==="visible");iw3(q);e=new Ic_(QC);Qfc(G,QC);bwl(N,{showMiniAppAdCommand:t().showMiniAppAdCommand,isEmbeddedInWebview:t().isEmbeddedInWebview,playLogger:q});g7u()&&(B=document.body.style.backgroundColor,_.dU(document.body,"background-color","black"));Do();WR();D=new _.Qc;
if(t().isEmbeddedInWebview){if(QC=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Pyl(q,QC),Gz=!0;Q.initialize({onAudioStateLoaded:function(Ui){a0(Ui)},
onMuteMiniApp:function(){a0(!1)},
onUnmuteMiniApp:function(){a0(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Ui){Gz||(Pyl(q,Ui),Gz=!0)},
confirmExitMiniApp:function(){var Ui,VP,YC;return _.l(function(w9){if(w9.nextAddress==1)return t().confirmExitMiniAppCommand?w9.yield(Promise.race([D.promise,Promise.resolve(!1)]),2):w9.return();(Ui=w9.yieldResult)?!t().confirmExitMiniAppCommandEdu||(YC=(VP=PT)==null?void 0:VP())!=null&&YC?WV(t().confirmExitMiniAppCommand):(WV(t().confirmExitMiniAppCommandEdu),_.ci("exit-mini-app-seen-state","true",2592E6)):WV(t().closeMiniAppCommand);_.LO(w9)})},
onNativeBenchmarkingMessageReceived:function(Ui){Ui=R0b(_.V_q(Ui));if(_.TR(Ui,_.bM,3,MQT)){var VP=_.pd(Ui,_.bM,3,MQT),YC=ons();var w9=Se(YC.getSeconds())-Se(VP.getSeconds());VP=_.Pf(YC,2)-_.Pf(VP,2);w9<0&&VP>0?(w9+=1,VP-=1E9):w9>0&&VP<0&&(--w9,VP+=1E9);w9=(new rU).setSeconds(w9);w9=_.rd(w9,2,_.U2(VP),0);_.bi(Ui,1,w9)}var $p;($p=T)==null||$p.returnNativeBenchmarkingMessage(Ui)},
multiplayer3pAckStateLoaded:function(Ui){CS(Ui)},
exitMiniAppSeenStateLoaded:function(Ui){t().confirmExitMiniAppCommandEdu&&rs(Ui)},
onNavigateToNewMiniApp:function(){WV(t().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Ui){Ui=new URLSearchParams(Ui);var VP=void 0;Ui.has("invite_code")&&(VP=new pob,Ui=Ui.get("invite_code"),VP=_.Dg(VP,1,Ui));if(Ui=VP){var YC;(YC=T)==null||YC.sendGameData(Ui)}},
onPauseMiniApp:function(){X=!0;vp()},
onResumeMiniApp:function(){X=!0;V5()},
onAdFinished:function(Ui){N.onAdFinished(Ui)}});
t().showMultiplayer3pConsentDialogCommand||D.resolve(!0);WV(t().onContainerReadyCommand)}else Pyl(q),D.resolve(!0);xd8(e,z3w(q));z3w(q).then(function(Ui){Ui={miniAppPlayData:{postPlayNonce:Ui}};var VP,YC=(VP=t().loggingDirectives)==null?void 0:VP.trackingParams;YC&&_.er().stateChanged(YC,Ui)});
QC=t().showSignInDialogCommand;!ajx()&&QC&&(_.ci("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),WV(QC));t().confirmExitMiniAppCommand&&d&&(QC=Yo0(t().confirmExitMiniAppCommand))&&(d.customConfirmationCommand=QC)}},SO=function(){B&&_.dU(document.body,"background-color",B);
h=!1;c&&c.release();e.flush().catch(function(QC){_.K4(QC)});
G.flush().catch(function(QC){_.K4(QC)});
c_A(q);RS();T=void 0;qiy(S)},bs=function(){bL(!1);
SO();ET(!1);cA(void 0);eT(void 0);wE(void 0);Tz=0;Mw(0);W=!1},vp=function(){var QC;
(QC=T)==null||QC.onPause();c&&c.release();e.flush().catch(function(Md){_.K4(Md)});
G.flush().catch(function(Md){_.K4(Md)});
Owd(q);iK(!0)},V5=function(){var QC;
(QC=T)==null||QC.onResume();WR();QC=q;QC.isForeground=!0;mC(QC,"PLAY_EVENT_TYPE_PLAY_RESUME");iK(!1)},a0=function(QC){var Md;
(Md=T)==null||Md.onAudioToggled(QC);xq(QC)},CS=function(QC){t().showMultiplayer3pConsentDialogCommand&&(t().isEmbeddedInWebview&&QC!==void 0&&D.resolve(QC),!QC&&_.ov()==="mini_app"&&WV(t().showMultiplayer3pConsentDialogCommand))},Rl=function(){var QC,Md,jj,Ui;
return _.l(function(VP){if(VP.nextAddress==1){!t().isLivestream||t().disableVideoCapture||(QC=T)!=null&&QC.sendStartGameFrameCapture();Md=(new URL(window.location.href)).searchParams;if(Md.has("invite_code")){var YC=new pob,w9=Md.get("invite_code");jj=_.Dg(YC,1,w9);(Ui=T)==null||Ui.sendGameData(jj)}bK()||(ET(!0),YC=q,YC.state!==1?_.K4(new _.xj("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+lcd[YC.state])):(_.MG("mini_app_ids_without_game_ready").includes(YC.JSC$17163_miniAppId)&&(YC.gameReady=
!0),YC.state=2,YC.beforeReady=!1,R2(YC,"ma_ffr"),mC(YC,"PLAY_EVENT_TYPE_PLAY_READY")));return VP.yield(D.promise,2)}WV(t().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();t().isEmbeddedInWebview||CS();_.LO(VP)})},If=function(){var QC=q;
QC.gameReady=!0;R2(QC,"ma_gr")},pw=function(QC){var Md;
return _.l(function(jj){if(jj.nextAddress==1)return _.ht(jj,2),jj.yield(Y23(e,QC),4);if(jj.nextAddress!=2)return _.qq(jj,0);Md=_.vC(jj);WV(t().showSavingErrorPopupCommand);throw Md;})},LS=function(){var QC,Md;
return _.l(function(jj){if(jj.nextAddress==1)return _.ht(jj,2),jj.yield(jlw(e),4);if(jj.nextAddress!=2)return QC=jj.yieldResult,jj.return(QC);Md=_.vC(jj);WV(t().showLoadingErrorDialogCommand);throw Md;})},WT=function(QC){q.logError(QC)},ol=function(QC,Md,jj){MjA(q,QC,Md,jj)},S3=function(QC,Md){h3h(q,QC,Md)},Mb=function(){!f&&t().isEmbeddedInWebview||_.TO();
Bdw(q,!0);h||(window.addEventListener("beforeunload",y5,{capture:!0}),h=!0)},wG=function(QC){var Md,jj,Ui,VP,YC,w9,$p;
return _.l(function(L9){if(L9.nextAddress==1)return G&&(!z||z<QC)&&QC>0?L9.yield(Jr2(G,QC),3):L9.jumpTo(0);Md=L9.yieldResult;jj=_.U(Md);Ui=jj.next().value;VP=jj.next().value;YC=Ui;w9=VP;(($p=YC)==null?0:$p.displayString)&&w9&&(eT(w9),wE(YC.displayString));_.LO(L9)})},jG=function(QC){var Md=t().onBenchmarkingMessageReceivedCommand;
if(Md){var jj=ons();_.Wu(QC,3,MQT,jj);yi(Md,m3T(QC))}},$l=function(QC){var Md=t().onGameFrameReceivedCommand;
if(Md){var jj=new wB;var Ui=new M4l;var VP=RD(QC,1);Ui=_.Ii(Ui,1,VP);QC=_.Wz(QC,2);QC=_.Dg(Ui,2,QC);jj=_.bi(jj,2,QC);yi(Md,m2b(jj))}},gD=function(QC){var Md=t().onGameAudioDataReceivedCommand;
if(Md){var jj=new wB;var Ui=new hhk;QC=_.Wz(QC,1);Ui=_.Dg(Ui,1,QC);jj=_.bi(jj,4,Ui);yi(Md,m2b(jj))}},Qk=function(){var QC=new URLSearchParams(window.location.search);
if(t().isEmbeddedInWebview&&QC&&QC.get("override_hl")==="true"&&QC.get("hl"))return QC.get("hl");QC=document.documentElement.lang;return QC!==""?QC:Dt},n8=function(QC){var Md=t().onShareInviteCodeCommand;
if(Md)if(t().isEmbeddedInWebview){var jj=new a0T;QC=_.Dg(jj,1,QC);yi(Md,gop(QC))}else jj=t().inviteCodeShareClientParamIdentifier,S.clientParams.set(jj,{miniAppClientParams:{inviteCode:QC}}),WV(Md)},S2=function(QC){var Md,jj,Ui;
return _.l(function(VP){if(VP.nextAddress==1)return Md=t().onMiniAppOpenYtContentRequested,G&&_.M("enable_open_yt_content")&&Md?VP.yield(UyQ(G,QC),3):VP.jumpTo(0);jj=VP.yieldResult;if(jj==="OK")if(t().isEmbeddedInWebview){var YC=new iXl;Ui=vQ(YC,2,gB,BA(QC));yi(Md,BBS(Ui))}else Z.clientData.set("video_id",QC),WV(Md);_.LO(VP)})},br=function(QC){Tz+=_.Pf(QC,3);
QC=Math.min(Math.log(1+Tz/15E6*9)/Math.log(10),.99);Mw(QC);J6(QC)},J6=_.yD(function(QC){var Md=t().updateLoadingProgressCommand;
if(Md){var jj=new iXl;QC=vQ(jj,3,gB,_.KS(QC));yi(Md,BBS(QC))}},100),MJ=function(QC){return y_d(N,QC)},WR=function(){var QC,Md;
((QC=_.mu0())==null?void 0:(Md=QC.wakeLock)==null?void 0:Md.request)!=null&&_.mu0().wakeLock.request("screen").then(function(jj){c=jj}).catch(function(){})},q9=_.ud("iframe");
_.oo(function(){t().isSupportedCountry&&(ajx()||_.M("enable_sign_in_promo")||!t().showSignInDialogCommand?q9.value&&C_(q9.value):WV(t().onMiniAppReadyCommand))},"VjCqQ");
var vd=function(){return _.u("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return bK()?0:-1},
el:q9})},C_=function(QC,Md){Md=Md===void 0?!1:Md;
var jj=hw();if(jj&&(Md||jj.toString()!==QC.getAttribute("src"))){T=Ayp(t().source,{isAudioEnabled:Fb,onFirstFrameReady:Rl,onGameReady:If,onSave:pw,onLoad:LS,onError:WT,onSdkCalled:ol,onSdkPerformanceUpdate:S3,onClick:Mb,onSendHighScore:wG,onBenchmarkingMessageReceived:jG,getLanguage:Qk,onShareInviteCode:n8,onResourceLoaded:br,onOpenYTContent:S2,onShowMiniAppAd:MJ,onGameFrameReceived:$l,onGameAudioReceived:gD},QC,jj);Nx(QC,"load",function(){R2(q,"ma_il");Nx(QC,"load",function(){C_(QC,!0)})});
var Ui=_.cx("mini_app_container_iframe_src_update_delay_ms");t().isEmbeddedInWebview&&!Md&&Ui>0?$Op(QC,jj,Ui):_.rW(QC,jj)}},hw=function(){var QC=t().url;
if(QC&&(QC=_.KU(QC),QC!==null)){if(t().source&&t().source==="MINI_APP_SOURCE_GAMESNACKS")QC=_.cd(QC,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.M("enable_origin_query_parameter_bugfix")){var Md=_.RG(_.uaT(QC.toString()));Md=new URLSearchParams(Md||"");Md.set("origin",window.location.origin);Md=Md.toString();QC=_.Ei(QC).toString();QC=_.pb(Uwk.exec(QC)[0]+(Md.trim()?"#"+Md:""))}return QC}},n6=function(){var QC={};
QC=_.Ao("yt-mini-app-container-view-model__loading-screen",(QC["yt-mini-app-container-view-model__loading-screen--fade-out"]=bK,QC));var Md=function(){return bK()?1:z_()};
return _.u("div",{class:QC},_.u(_.P1,{data:function(){return t().splashScreen}},{miniAppSplashScreenViewModel:function(jj){return _.u(acl,{data:jj.data,
loadingProgress:Md})}}))},CT=function(){var QC={};
return _.u("div",{class:_.Ao("yt-mini-app-container-view-model__pause-interstitial",(QC["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!Tk()},QC["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=Tk,QC))},_.u(_.P1,{data:function(){return t().splashScreen}},{miniAppSplashScreenViewModel:function(Md){return _.u(acl,{data:Md.data,
forPaused:!0})}}))},Do=function(){O=[];
O.push(_.TV(window,"visibilitychange",function(){L||X&&Gv()||(document.visibilityState==="visible"?V5():vp())}));
O.push(_.TV(window,"pagehide",function(){SO()}));
O.push(_.TV(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&HT.value.dispatchEvent(new Event("tap"))},0)}));
O.push(_.TV(HT.value,"pointerdown",function(){Bdw(q,!1)},!0));
O.push(_.TV(HT.value,"pause",function(){L=!0;vp()}));
O.push(_.TV(HT.value,"play",function(){L=!1;V5()}));
O.push(_.TV(HT.value,"exit",function(){SO()}));
var QC=navigator.keyboard,Md=QC&&QC.lock;O.push(_.TV(window,Bel,function(){fw(Cmb());Cmb()?(t().hasPlayNextShelf&&y2("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),hD("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Md&&QC.lock(["Escape"])):(t().hasPlayNextShelf&&hD("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),y2("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Md&&QC.unlock())}));
t().showMultiplayer3pConsentDialogCommand&&O.push(_.TV(window,"yt-playables-ack-3p-data-usage",function(){ej2(G)}));
t().confirmExitMiniAppCommandEdu&&O.push(_.TV(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.ci("exit-mini-app-seen-state","true",2592E6)}));
t().onGameAudioDataReceivedCommand&&O.push(_.TV(window,"message",function(jj){jj=jj.event_;var Ui,VP=(Ui=q9.value)==null?void 0:Ui.src;if(VP&&jj.origin===(new URL(VP)).origin&&jj.data&&jj.data.type==="GAME_AUDIO"&&jj.data.audio&&jj.data.audio.length>0)if(_.M("enable_sending_unwrapped_game_audio_as_serialized_metadata"))So5(t().onGameAudioDataReceivedCommand,jj.data.audio);else{var YC=new FileReader;YC.onload=function(){var w9=new wB;var $p=new hhk;$p=_.Dg($p,1,YC.result);w9=_.bi(w9,4,$p);yi(t().onGameAudioDataReceivedCommand,
m2b(w9))};
YC.readAsDataURL(new Blob([jj.data.audio]))}}))},RS=function(){O.forEach(function(QC){uP(QC)});
window.removeEventListener("beforeunload",y5,{capture:!0})},WV=function(QC){QC&&ZJl(QC,t().isEmbeddedInWebview||!1)},hD=function(QC,Md){QC=_.U(HT.value.getElementsByClassName(QC));
for(var jj=QC.next();!jj.done;jj=QC.next())jj.value.classList.add(Md)},y2=function(QC,Md){QC=_.U(HT.value.getElementsByClassName(QC));
for(var jj=QC.next();!jj.done;jj=QC.next())jj.value.classList.remove(Md)};
return function(){var QC={};QC=_.Ao("yt-mini-app-container-view-model",(QC["yt-mini-app-container-view-model--desktop"]=!0,QC["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return t().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},QC["yt-mini-app-container-view-model--ios-web-view"]=g7u(),QC["yt-mini-app-container-view-model--no-top-bar"]=function(){return!t().topBar},QC["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return t().hasPlayNextShelf},QC["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return t().hasPlayNextShelf},QC["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Kg()&&t().hasPlayNextShelf},QC));
var Md={};Md=_.Ao("yt-mini-app-container-view-model__content",(Md["yt-mini-app-container-view-model__content--desktop-content"]=!0,Md["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return t().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Md["yt-mini-app-container-view-model--desktop-play-page"]=function(){return t().hasPlayNextShelf},Md));
return _.u("mini-app-container-view-model",{el:HT},_.u("div",{class:QC},_.u(_.P,{cond:function(){return t().topBar&&!Kg()},
then:function(){return _.u(_.P1,{data:function(){return t().topBar}},{miniAppTopBarViewModel:function(jj){return _.u(t3l,{data:jj.data,
isAudioEnabled:Fb,onAudioToggled:function(Ui){a0(Ui)},
score:O2,formattedScore:hf,onScoreChanged:function(Ui){z=Ui},
isEmbeddedInWebview:Gv,isSaved:Xx,onSaveToggled:function(Ui){cA(Ui)},
isExitMiniAppSeen:PT,isDesktopPlayPage:yG})}})}}),_.u("div",{class:Md},_.u(_.P,{cond:rE,
then:function(){return vd()}}),_.u(_.P,{cond:function(){return t().isLivestream},
then:function(){return CT()}}),_.u(_.P,{cond:function(){return!t().isEmbeddedInWebview},
then:function(){return n6()}}),_.u(_.P1,{data:function(){return t().contentDisclosure}},{playerDisclosureViewModel:function(jj){jj=jj.data;
var Ui={};return _.u("div",{class:_.Ao("yt-mini-app-container-view-model__content-disclosure-overlay",(Ui["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=qd,Ui))},_.u(_.fFd,{data:jj}))}}))))}()},"$f");
GHw.idomCompat=!0;_.Hn(GHw,"mini-app-container-view-model",{props:{data:_.PS}});var lFh=_.I(function(A){var t=A.data;return _.u("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.u("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.f1(function(){var f=t().onTap;f&&_.LI(f)})},_.u(_.P,{cond:function(){return t().icon},
then:function(f){return _.u(_.el,{icon:function(){return f().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.u("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return t().title})))},"ag");
lFh.idomCompat=!0;var NW8=_.I(function(A){var t=_.GU("div"),f=_.U(_.hZ(void 0,void 0,"dg3xff")),X=f.next().value,Q=f.next().value;f=_.U(_.hZ(void 0,void 0,"AgHNfc"));var q=f.next().value,e=f.next().value;f=_.U(_.hZ(void 0,void 0,"fuTKCc"));var G=f.next().value,N=f.next().value,z=function(){var E=X();return E!==void 0?Math.abs(E):void 0},T=function(){var E=z();
return E===void 0||E<=3},O=function(){var E=z();
var D=q(),S=G();E=E!==void 0&&D!==void 0&&S!==void 0?D-S-E:void 0;return E===void 0||E<=3},c=function(E){t.value&&t.value.scrollBy({top:0,
left:(_.ah("HTML_DIR")==="rtl"?-1:1)*E*t.value.clientWidth,behavior:"smooth"})},B=function(){var E;
Q((E=t.value)==null?void 0:E.scrollLeft);var D;e((D=t.value)==null?void 0:D.scrollWidth);var S;N((S=t.value)==null?void 0:S.clientWidth)},h=function(){c(-.5)},W=function(){c(.5)};
f=_.f1(function(){B()});
_.Zk(function(){B();if(t.value&&window.ResizeObserver){var E=new ResizeObserver(B);E.observe(t.value);_.dD(function(){E.disconnect()})}});
var L={};return _.u("yt-sponsorships-scrollable-shelf",{class:_.Ao("ytdSponsorshipsScrollableShelfHost",A.className)},_.u("div",{class:_.Ao("ytdSponsorshipsScrollableShelfContent",(L.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return A.data().previousButton&&A.data().nextButton&&!T()&&!O()},L.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return A.data().previousButton&&!T()&&O()},L.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return A.data().nextButton&&
T()&&!O()},L)),
el:t,"on:scroll":f},A.children),_.u(_.P,{cond:function(){return!T()},
then:function(){return _.u(_.P1,{data:function(){return A.data().previousButton}},{buttonViewModel:function(E){return _.u(_.nx,{data:E.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:h})}})}}),_.u(_.P,{cond:function(){return!O()},
then:function(){return _.u(_.P1,{data:function(){return A.data().nextButton}},{buttonViewModel:function(E){return _.u(_.nx,{data:E.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:W})}})}}))},"cg");
NW8.idomCompat=!0;var zjc=_.I(function(A){var t=A.data;A={};return _.u("yt-sponsorships-hub",{class:_.Ao("ytdSponsorshipsHubHost",(A.ytdSponsorshipsHubHostIndented=function(){return t().indented},A))},_.u("div",{class:"ytdSponsorshipsHubHeader"},_.u("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.u("div",{class:"ytdSponsorshipsHubAvatar"},_.u(_.P1,{data:function(){return t().avatar}},{avatarViewModel:_.QK})),_.u(_.P,{cond:function(){return t().badgeImage},
then:function(f){return _.u("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.u("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.u("div",{class:"ytdSponsorshipsHubBadge"},_.u(_.YA,{data:f,targetWidth:24,targetHeight:24,alt:""}))))}})),_.u("div",{class:"ytdSponsorshipsHubDetails"},_.u("div",{class:"ytdSponsorshipsHubTierName"},function(){return t().tierName}),_.u("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return t().membershipType}),_.u("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return t().membershipDurationOrExpiry})),_.u("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.u(_.P1,{data:function(){return t().manageButton}},{buttonViewModel:function(f){return _.u(_.nx,{data:f.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.u(_.P1,{data:function(){return t().actionMenuButton}},{buttonViewModel:function(f){return _.u(_.nx,{data:f.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.u("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return t().perksTitle}),_.u(NW8,{data:function(){return{previousButton:t().previousPerkButton,
nextButton:t().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.u("div",{class:"ytdSponsorshipsHubPerkCards"},_.u(_.P1,{data:function(){return t().perkCards}},{sponsorshipsHubPerkCardViewModel:lFh}),_.u(_.P,{cond:function(){return t().viewAllPerksButton},
then:function(f){return _.u(uxl,{data:f})}}))))},"dg");
zjc.idomCompat=!0;var uxl=_.I(function(A){var t=A.data;return _.u("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.u(_.P1,{data:function(){return t().button}},{buttonViewModel:_.nx}),_.u("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.u("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return t().title}),_.u("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return t().subtitle})))},"eg");
uxl.idomCompat=!0;_.Hn(zjc,"yt-sponsorships-hub",{props:{data:_.PS}});_.Pic=_.I(function(A){var t=A.data;return _.u("yt-dual-avatar-view-model",{class:_.Ao("ytDualAvatarViewModelHost",A.className),style:_.U7({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var f;return((f=t().badgeCutoutRadius)!=null?f:14)+"px"}})},_.u("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.u(_.P1,{data:function(){return t().startAvatar}},{avatarViewModel:_.QK}),_.u(_.P1,{data:function(){return t().endAvatar}},{avatarViewModel:_.QK})),_.u(_.P1,{data:function(){return t().badge}},
{contentPreviewImageViewModel:function(f){return _.u("div",{class:"ytDualAvatarViewModelBadge"},_.u(_.nj,{data:f.data}))}}))},"fg");
_.Pic.idomCompat=!0;var ibj=_.I(function(A){var t=A.data;var f,X=!((f=_.Px().resolve(_.z7(_.FH)))==null||!f());A=_.yq(function(){var T,O,c=X?(T=t().header)==null?void 0:T.backgroundColorDarkMode:(O=t().header)==null?void 0:O.backgroundColorLightMode;if(c!==void 0)return _.bY(c)},void 0,"TDdh7d");
f=_.yq(function(){var T,O;return X?(T=t().header)==null?void 0:T.backgroundImagePart1Dark:(O=t().header)==null?void 0:O.backgroundImagePart1Light},void 0,"X0peMe");
var Q=_.yq(function(){var T,O;return X?(T=t().header)==null?void 0:T.backgroundImagePart2Dark:(O=t().header)==null?void 0:O.backgroundImagePart2Light},void 0,"an0Hzd"),q=_.yq(function(){return _.ah("HTML_DIR")==="rtl"},void 0,"BltEgb"),e=_.GU("yt-sponsorships-perks-list"),G=!1,N=function(){var T=e.value;
if(T&&!G){var O,c=(O=T.parentElement)==null?void 0:O.parentElement;if(c)for(T=T.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),O=0;O<T.length;++O){var B=T[O];if(B instanceof HTMLElement){c.scrollTo({top:B.offsetTop+B.clientHeight/2-c.clientHeight/2,behavior:"smooth"});G=!0;break}}}};
_.oh(function(){var T=e.value;if(T&&window.ResizeObserver){var O=new ResizeObserver(N);O.observe(T);_.dD(function(){O.disconnect()})}});
var z={};return _.u("yt-sponsorships-perks-list",{el:e,class:_.Ao("ytdSponsorshipsPerksListHost",(z.ytdSponsorshipsPerksListHorizontalPadding=function(){return t().horizontalPaddingEnabled},z))},_.u("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.u("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.U7({"background-color":A})},_.u("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.u(_.P,{cond:f,then:function(T){var O={};return _.u("div",{class:_.Ao((O.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=X,O.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!X,O.ytdSponsorshipsPerksListFlipped=q,O))},_.u(_.YA,{data:T,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.u("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.u(_.P,{cond:Q,
then:function(T){var O={};return _.u("div",{class:_.Ao((O.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=X,O.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!X,O.ytdSponsorshipsPerksListFlipped=q,O))},_.u(_.YA,{data:T,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.u("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.u(_.P1,{data:function(){var T;
return(T=t().header)==null?void 0:T.dualAvatar}},{dualAvatarViewModel:_.Pic})))),_.u("div",{class:"ytdSponsorshipsPerksListBody"},_.u("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return t().title}),_.u(_.P,{cond:function(){return t().perks},
then:function(T){return _.u(_.xk,{each:T},function(O,c){var B={};return _.u("div",{class:_.Ao("ytdSponsorshipsPerksListPerkContainer",(B.ytdSponsorshipsPerksListSelectedPerk=function(){var h=c(),W=t().selectedPerkIndex;return h===W},B))},_.u(_.P,{cond:function(){return c()>0},
then:function(){return _.u("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.u("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.u(_.P,{cond:function(){return O.icon},
then:function(h){return _.u(_.el,{icon:function(){return h().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.u("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.u("div",{class:"ytdSponsorshipsPerksListPerkTitle"},O.title),_.u("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.u(_.zL,{text:O.description})),_.u(_.P,{cond:function(){return O.instructions},
then:function(){var h,W;return _.u("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.u("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(h=O.instructions)==null?void 0:h.title),_.u("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.u(_.zL,{text:(W=O.instructions)==null?void 0:W.text})))}}))),_.u(_.P,{cond:function(){return O.emoji},
then:function(h){return _.u("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.u(_.xk,{each:function(){return h()}},function(W){return _.u(_.YA,{data:W,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.u(TWm,{data:O}))})}})))},"gg");
ibj.idomCompat=!0;var TWm=_.I(function(A){var t=A.data;var f=function(e,G){return e===G},X=function(){var e=t();
e=_.C(e==null?void 0:e.badgesShelf,rBE);return e!==void 0&&e!==null?e:{previousButton:{},nextButton:{}}},Q=_.ud("div"),q=function(){var e=Q.value;
if(e){var G=e.parentElement;if(G){e=e.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var N=0;N<e.length;++N){var z=e[N];if(z instanceof HTMLElement){G.scrollTo({left:z.offsetLeft+z.clientWidth/2-G.clientWidth/2,behavior:"instant"});break}}}}};
_.oh(function(){var e=Q.value;if(e){var G=new ResizeObserver(q);G.observe(e);_.dD(function(){G.disconnect()})}});
return _.u("div",null,_.u(_.P,{cond:function(){return t().badges},
then:function(e){return _.u(NW8,{data:X},_.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Q},_.u(_.xk,{each:function(){return e()}},function(G,N){var z={},T={},O={};
return _.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.u(_.P,{cond:function(){return N()>0},
then:function(){return _.u("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.u("div",{class:_.Ao("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(z.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return f(N(),t().currentBadgeIndex)},z.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!f(N(),t().currentBadgeIndex)},z))},_.u("div",{class:_.Ao("ytdSponsorshipsPerksListLoyaltyBadge",(T.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return f(N(),
t().currentBadgeIndex)},T.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!f(N(),t().currentBadgeIndex)},T))},_.u(_.P,{cond:function(){return G.image},
then:function(c){var B={};return _.u("div",{class:_.Ao((B.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return f(N(),t().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!f(N(),t().currentBadgeIndex)},B))},_.u(_.YA,{data:c,
alt:""}))}})),_.u("div",{class:_.Ao("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(O.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return f(N(),t().currentBadgeIndex)},O))},G.title)))})))}}))},"hg");
TWm.idomCompat=!0;_.Hn(ibj,"yt-sponsorships-perks-list",{props:{data:_.PS}});_.Hn(_.I(function(A){return _.u("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.u(_.P,{cond:function(){return A.data().image},
then:function(t){return _.u(_.YA,{className:"ytwFantasyEmptyStateViewModelImage",data:t,ariaHidden:!0,alt:""})}}),_.u(_.zL,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return A.data().title}}),_.u(_.zL,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return A.data().subtitle}}),_.u(_.P1,{data:function(){return A.data().primaryButton}},{buttonViewModel:function(t){return _.u(_.nx,{data:t.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ig"),"ytw-fantasy-empty-state-view-model",{props:{data:_.PS}});var Obc;var cr8=_.I(function(A){var t=A.data;var f=A.uniqueId;var X=A.overrides;A=_.yq(function(){var Q,q=((Q=t().timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:f(),timings:q,experimentEnabled:q.length>0,enabled:q.length>0}},void 0,"hiuXI");
return _.u("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.u(rCl,{settings:A},_.u(_.P1,{data:function(){return t().buttonRenderer}},{buttonRenderer:function(Q){return _.u(_.MM,{data:Q.data,
buttonOverrides:X})}})))},"jg");
cr8.idomCompat=!0;_.Hn(cr8,"timed-animation-button-renderer",{props:{data:_.PS,uniqueId:_.PS,overrides:_.PS}});var pe=function(){var A=_.F.apply(this,arguments)||this;A.hideJoinButtonBeforeSubscribed=_.M("hide_join_button_before_subscribed");A.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return A};
_.R(pe,_.F);_.J=pe.prototype;_.J.hasShowDialogCommand=function(A){return!!_.C(A,JsC)};
_.J.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"}}}};
_.J.updateJoinButtonOverrides=function(){var A,t;(A=_.sF(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(t=A.polymerController)==null||t.set("overrides",this.joinButtonOverrides);if(A=_.sF(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))A.overrides=this.joinButtonOverrides};
_.J.handleButtonRefreshAction=function(A){if(A=_.C(A,Edf))this.set("data.membershipButton",A.membershipButton),this.notifyPath("data.membershipButton")};
_.J.onYtServiceRequestError=function(A){_.jL(this.hostElement,A.detail.error.message)};
_.J.onKeydown=function(A){if(A.key==="Enter"){var t;(t=this.data)!=null&&t.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.J.handleUnsubscribeAction=function(){var A,t,f;((A=this.data)==null?void 0:(t=A.membershipButton)==null?void 0:(f=t.buttonRenderer)==null?void 0:f.style)==="STYLE_PRIMARY"&&_.sF(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.PV.Object.defineProperties(pe.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.subscriptionStateEntity)==null||!A.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var A,t=(A=this.data)==null?void 0:A.membershipButton,f;A=(t==null?void 0:t.buttonRenderer)||_.C(t==null?void 0:(f=t.timedAnimationButtonRenderer)==null?void 0:f.buttonRenderer,_.Gf);return(A==null?void 0:A.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(A==null?void 0:A.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(A==null?void 0:A.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var A;if(this.hasShowDialogCommand((A=this.data)==null?void 0:A.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var A;if(this.hasShowDialogCommand((A=this.data)==null?void 0:A.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.attributedTitle)}}});
pe.prototype.onYtServiceRequestError=pe.prototype.onYtServiceRequestError;pe.prototype.updateJoinButtonOverrides=pe.prototype.updateJoinButtonOverrides;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],pe.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],pe.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.wO),_.H("design:type",Object)],pe.prototype,"ironButtonState",void 0);_.V([_.n(),_.H("design:type",Object)],pe.prototype,"data",void 0);_.V([_.y("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],pe.prototype,"hideJoin",null);
_.V([_.n(),_.H("design:type",String)],pe.prototype,"subscribeKey",void 0);_.V([_.n({selectorArgs:["subscribeKey"],selector:rNu}),_.H("design:type",Object)],pe.prototype,"subscriptionStateEntity",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],pe.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.V([_.y("subscriptionStateEntity"),_.n({reflectToAttribute:!0}),_.H("design:type",Object),_.H("design:paramtypes",[])],pe.prototype,"subscribed",null);
_.V([_.y("subscribed","data.membershipButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],pe.prototype,"joinButtonOverrides",null);_.V([_.y("data.navigationEndpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],pe.prototype,"channelNameTabIndex",null);_.V([_.y("data.navigationEndpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],pe.prototype,"channelNameRole",null);
_.V([_.y("data.attributedTitle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],pe.prototype,"hasAttributedTitle",null);_.V([_.ev("joinButtonOverrides"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pe.prototype,"updateJoinButtonOverrides",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],pe.prototype,"onYtServiceRequestError",null);
_.V([_.y_({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],pe);
var BWh=_.wR()(pe,"ytd-video-owner-renderer",function(){if(Obc===void 0){var A=document.createElement("template");_.m(A,'\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"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><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></template><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"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" 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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);Obc=A}A=Obc;return A},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.Hn(_.I(function(A){var t=A.data;var f;A=_.U(_.hZ(!((f=_.Bi("yt-mini-app-is-theater-mode-enabled"))==null||!f),void 0,"i2pjVd"));var X=A.next().value,Q=A.next().value;f=_.U(_.hZ(!1,void 0,"ga7V5c"));var q=f.next().value,e=f.next().value;_.oh(function(){var z=_.TV(window,Bel,function(){e(Cmb())});
_.dD(function(){uP(z)})});
var G;f=(G=_.Px().resolve(_.z7(oqc)))!=null?G:function(){return _.u("div",null)};
_.eU("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Q(!0);_.ci("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.eU("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Q(!1);_.ci("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
G={};A={};var N={};return _.u("mini-app-play-page-renderer",{class:_.Ao("miniAppPlayPageRendererHost",(G.miniAppPlayPageRendererHostDetailsView=function(){return!X()},G))},_.u("div",{class:_.Ao("miniAppPlayPageRendererGameContainer",(A.miniAppPlayPageRendererGameContainerDetailsView=function(){return!X()},A))},_.u(_.P1,{data:function(){return t().containerViewModel}},{miniAppContainerViewModel:GHw}),_.u(_.P,{cond:function(){return t().channel&&t().subscribeButton},
then:function(){var z={};return _.u("div",{class:_.Ao("miniAppPlayPageRendererChannelContainer",(z.miniAppPlayPageRendererHideVisibility=function(){return q()},z))},_.u(_.P1,{data:function(){return t().channel}},{videoOwnerRenderer:function(T){return _.u(BWh,{data:T.data})}}),_.u(_.P1,{data:function(){return t().subscribeButton}},{subscribeButtonViewModel:function(T){return _.u(_.Qj,{data:T.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.u(_.P,{cond:function(){return!X()&&t().description},
then:function(){var z={};return _.u("div",{class:_.Ao("miniAppPlayPageRendererMiniAppDescriptionWrapper",(z.miniAppPlayPageRendererHideVisibility=function(){return q()},z))},_.u("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return t().description}))}})),_.u("div",{class:_.Ao("miniAppPlayPageRendererPlayNextContainer",(N.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!X()},N.miniAppPlayPageRendererHideVisibility=function(){return q()},N))},_.u(_.P1,{data:function(){return t().sectionList}},
{sectionListRenderer:f})))},"kg"),"mini-app-play-page-renderer",{props:{data:_.PS}});var EN=function(){var A=_.F.apply(this,arguments)||this;A.isSearch=!1;A.isConstrainedList=!1;A.hasChipsBar=!1;A.inReplyPanel=!1;A.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"}};A.monitorScroll=!0;A.SCROLL_ANIMATION_DURATION_MS=300;A.nextContinuation={continuationType:"sectionListContinuation"};return A};
_.R(EN,_.F);_.J=EN.prototype;
_.J.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(A){switch(A.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{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},flowRootRenderer:{component:"ytd-flow-root-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:_.M("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.M("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.J.created=function(){var A=this;this.JSC$17303_scrollAnimation=new _.Ce(function(t){A.hostElement.scrollTop=t})};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.replacePrimaryContent=function(A){this.set("data.contents",A)};
_.J.computeHasSortFilter=function(A){return!!A&&!!A.sortFilterSubMenuRenderer};
_.J.computeShouldScrollInPanel=function(A){var t;return!!(A==null?0:(t=A.scrollPaneStyle)==null?0:t.scrollable)};
_.J.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.rH(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.J.scrollToTop=function(){this.hostElement.scrollTop=0};
_.J.scrollToItemSection=function(A){if(A=this.getItemByIdentifier(A))A=this.getScrollPositionForItem(A),this.hostElement.scrollTop!==A&&this.JSC$17303_scrollAnimation.start(this.hostElement.scrollTop,A,this.SCROLL_ANIMATION_DURATION_MS)};
_.J.getItemByIdentifier=function(A){var t=this.contents.querySelectorAll("ytd-item-section-renderer");if(t&&t.length!==0){var f=Array.from(t).findIndex(function(X){return X.sectionIdentifier===A});
return t[f===-1?0:f]}};
_.J.getScrollPositionForItem=function(A){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===A)return 0;A=_.$N(A).y+this.hostElement.scrollTop-_.$N(this.hostElement).y;return Math.min(A,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.PV.Object.defineProperties(EN.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.targetId)==="browse-feedFEclips"}}});
EN.prototype.onScroll=EN.prototype.onScroll;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],EN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.bC.YtLazyListBehavior),_.H("design:type",Object)],EN.prototype,"ytLazyListBehavior",void 0);_.V([_.b(_.MK.YtNextContinuationBehavior),_.H("design:type",Object)],EN.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.b(_.q2l),_.H("design:type",Object)],EN.prototype,"ytBooleanLogicBehavior",void 0);_.V([_.b(_.Ba),_.H("design:type",Object)],EN.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],EN.prototype,"data",void 0);_.V([_.n({value:2}),_.H("design:type",Number)],EN.prototype,"initialCount",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],EN.prototype,"autoFill",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.H("design:type",Boolean)],EN.prototype,"hasSortFilter",void 0);_.V([_.n({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.H("design:type",Boolean)],EN.prototype,"hideBottomSeparator",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.H("design:type",Boolean)],EN.prototype,"shouldScrollInPanel",void 0);
_.V([_.n(),_.H("design:type",Object)],EN.prototype,"isSearch",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],EN.prototype,"isConstrainedList",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],EN.prototype,"responsiveSizing",void 0);_.V([_.n(),_.H("design:type",Object)],EN.prototype,"hasChipsBar",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],EN.prototype,"pageSubtype",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],EN.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],EN.prototype,"liveChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],EN.prototype,"inReplyPanel",void 0);_.V([_.lo("#action-button"),_.H("design:type",HTMLElement)],EN.prototype,"actionButton",void 0);_.V([_.n(),_.H("design:type",Object)],EN.prototype,"scrollUpButtonData",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],EN.prototype,"engagementPanelDropdown",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],EN.prototype,"engagementPanelDialog",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],EN.prototype,"isClipList",null);_.V([_.lo("#contents"),_.H("design:type",HTMLElement)],EN.prototype,"monitorScrollElement",void 0);_.V([_.lo("#contents"),_.H("design:type",HTMLElement)],EN.prototype,"contents",void 0);
_.V([_.UQ("scroll"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],EN.prototype,"onScroll",null);_.V([_.y_({is:"ytd-section-list-renderer",disableElementRegistration:!0})],EN);
var M3y=_.wR()(EN,"ytd-section-list-renderer",function(){if(Zg3===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);Zg3=A}A=Zg3;return A},{mode:1});var CiQ;var hjw;var Rjj;var my3;var ne=function(){return _.F.apply(this,arguments)||this};
_.R(ne,_.F);ne.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
ne.prototype.onLikeButtonClick=function(A){A.stopPropagation();A.preventDefault()};
_.PV.Object.defineProperties(ne.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.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)})}}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ne.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],ne.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ne.prototype,"ytRendererStamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ne.prototype,"data",void 0);
_.V([_.n({selectorArgs:["data.likeStatusEntityKey"],selector:vO}),_.H("design:type",Object)],ne.prototype,"likeStatusEntity",void 0);_.V([_.y("data","likeStatusEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],ne.prototype,"likeButtonRenderer",null);_.V([_.y_({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],ne);
_.Y(ne,"ytd-slim-metadata-toggle-button-renderer",function(){if(my3!==void 0)return my3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return my3=A},{mode:1});var DO=function(){var A=_.F.apply(this,arguments)||this;A.showEqualizer=_.M("web_enable_playlist_video_lockup_equalizer");A.watchColorUpdate=_.M("kevlar_watch_color_update");A.actionMap={};return A};
_.R(DO,_.F);_.J=DO.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.J.computeEditableClass=function(A){return A&&A.menu?"editable":""};
_.J.computeSelected=function(A){return!(A==null||!A.selected)};
_.J.computeUseColorPalette=function(A){return!!((A==null?0:A.lightColorPalette)&&(A==null?0:A.darkColorPalette))};
_.J.computeLargerPlaylistThumbs=function(A,t){return _.M("web_enable_playlist_bigger_thumbnails")&&!t};
_.J.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.J.onYtServiceRequestSent=function(A,t){t.endpoint&&this.isHideEnclosingAction(t.endpoint)&&!this.selected&&jZC(_.cR(),this.data.videoId)};
_.J.isHideEnclosingAction=function(A){var t=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",A);A=this.get("likeEndpoint.status",A)==="INDIFFERENT";return t||A};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.PV.Object.defineProperties(DO.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.M("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var A;return!!(this.withinMiniplayer&&((A=this.data)==null?0:A.actionButtons))}}});
DO.prototype.onYtServiceRequestSent=DO.prototype.onYtServiceRequestSent;DO.prototype.canReorderChanged=DO.prototype.canReorderChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],DO.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.P7),_.H("design:type",Object)],DO.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],DO.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],DO.prototype,"withinMiniplayer",void 0);_.V([_.n({computed:"computeSelected(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],DO.prototype,"selected",void 0);
_.V([_.n({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],DO.prototype,"useColorPalette",void 0);_.V([_.n({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.H("design:type",Boolean)],DO.prototype,"largerPlaylistThumbs",void 0);_.V([_.n(),_.H("design:type",Object)],DO.prototype,"showEqualizer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],DO.prototype,"canReorder",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],DO.prototype,"touchPersistentDragHandle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],DO.prototype,"handleIsHovered",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],DO.prototype,"watchColorUpdate",void 0);_.V([_.n(),_.H("design:type",String),_.H("design:paramtypes",[])],DO.prototype,"reorderIcon",null);
_.V([_.n(),_.H("design:type",String),_.H("design:paramtypes",[])],DO.prototype,"playIcon",null);_.V([_.n({reflectToAttribute:!0}),_.y("withinMiniplayer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],DO.prototype,"minimizePipBreakages",null);_.V([_.y("largerPlaylistThumbs"),_.H("design:type",Number),_.H("design:paramtypes",[])],DO.prototype,"thumbnailWidth",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],DO.prototype,"showActionButtons",null);_.V([_.PU("canReorder"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DO.prototype,"canReorderChanged",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],DO.prototype,"onYtServiceRequestSent",null);
_.V([_.y_({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],DO);
_.Y(DO,"ytd-playlist-panel-video-renderer",function(){if(Rjj!==void 0)return Rjj;var A=document.createElement("template");_.m(A,'\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      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\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="" minimize-pip-breakages="[[minimizePipBreakages]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Rjj=A},{mode:2});var FK=function(){return _.F.apply(this,arguments)||this};
_.R(FK,_.F);FK.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],FK.prototype,"data",void 0);_.V([_.y_({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],FK);
_.Y(FK,"ytd-playlist-panel-supported-items",function(){if(hjw!==void 0)return hjw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return hjw=
A},{mode:1});Rq8=!0;eIS("\\P{N}");var efb;var bbA=_.e5("END_OF_PLAYLIST",void 0,"End of playlist"),WQc=_.e5("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),I2=function(){var A=_.F.apply(this,arguments)||this;A.minimizePipBreakages=_.M("web_pip_minimize_breakages");A.hideHeaderText=!1;A.useColorPalette=!1;A.collapsed=!1;A.collapsedPreServerOverride="not_tracked";A.isHovered=!1;A.expandLabel=_.e5("MINIPLAYER_EXPAND_LABEL");A.collapseLabel=_.e5("MINIPLAYER_COLLAPSE_LABEL");A.isFloating=!1;A.metaPanel=
!1;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};A.currentIndex=void 0;return A};
_.R(I2,_.F);_.J=I2.prototype;
_.J.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"}}}};
_.J.created=function(){var A=this;this.scrollThrottle=new _.qI(this.onThrottledScroll,1E3,this);this.JSC$17325_ytReorderableController=new _.NQf(56,function(t){A.handleDrop(t)})};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.computeOverflowMenuData=function(A){return A&&A.menu?A.menu:null};
_.J.computeCollapsible=function(A){return!A};
_.J.computeHasPlaylistButtons=function(A){return!(!A||!A.playlistButtons)};
_.J.computeHasSeparateSaveButton=function(A){return!(!A||!A.saveButton)};
_.J.computeHasToolbarButton=function(A,t){return!(!A||!(t||A.saveButton||A.menu))};
_.J.computePlaylistType=function(A){if(A&&A.playlistId)return A.playlistId.substring(0,4)};
_.J.computeCanReorder=function(A){return A?A.playlistId&&A.playlistId.startsWith("TLPQ")?!0:!!A.isEditable&&!A.isInfinite:!1};
_.J.attached=function(){var A=this;try{_.Px().resolve(_.zT).setPlaylistComponent(this.hostElement)}catch(t){if(_.M("kevlar_park_on_playlist_token_killswitch"))throw t;_.TT().parkOrScheduleJob(function(){_.Px().resolve(_.zT).setPlaylistComponent(A.hostElement)},2,"ci")}_.g2(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.J.detached=function(){_.w2(this.hostElement);_.dA(this.JSC$17325_ytReorderableController)};
_.J.computeTrailingIcon=function(A,t,f){return f?t?"yt-icons:collapse":"yt-icons:close":t?"yt-icons:expand":_.M("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.J.computeIndexMessage=function(A,t){return Nvx(A+1)+" / "+Nvx(t)};
_.J.onRenderStamperFinished=function(){if(this.scrollForStampDom){var A=!0;this.isHovered&&(A=!1);if(this.collapsed||this.hidden)A=!1;A&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.J.collapseChanged=function(){var A=this;this.collapsed||(_.NB(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.J.hiddenChanged=function(){var A=this;this.hidden||_.NB(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.scrollToCurrentVideo()})};
_.J.setupReordering=function(){var A=_.sF(this.hostElement).querySelector("#items");ZD7?_.u7S(this.JSC$17325_ytReorderableController,A,A,"playlist-drag-handle"):_.u7S(this.JSC$17325_ytReorderableController,A,A)};
_.J.scrollToCurrentVideo=function(){var A=this;_.a6.addJob(function(){var t=_.sF(A.hostElement).querySelector("#items");if(t){t.style.setProperty("padding-bottom","");var f=_.sF(A.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(f){t=f.parentElement||_.n3(document);var X=t||_.n3(document);var Q=_.$N(f),q=_.$N(X),e=_.wdw(X);if(X==_.n3(document)){var G=Q.x-X.scrollLeft;Q=Q.y-X.scrollTop}else G=Q.x-q.x-e.left,Q=Q.y-q.y-e.top;f=HnE(f);q=X.clientHeight-
f.height;e=X.scrollLeft;var N=X.scrollTop;e+=G-(X.clientWidth-f.width)/2;X=new _.ok(e,N+(Q-q/2));t.scrollLeft=X.x;t.scrollTop=X.y}}},8)};
_.J.dataChanged=function(){var A=this;_.dA(this.JSC$17325_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.us(this,function(){_.jY(A.ytTaskEmitterBehavior.getTaskManager(),function(){A.ytRendererBehavior.markDirty();A.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.J.onFullBleedPlayerChanged=function(){_.M("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.J.onFullscreenChanged=function(){_.M("web_watch_imax_theater_mode")||_.M("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.J.updateNowPlayingOverlay=function(){_.M("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.J.onPlaylistLockupNowPlaying=function(A,t){t&&(this.activeNowPlayingRenderer=t);this.updateNowPlayingOverlay()};
_.J.onScroll=function(){this.scrollThrottle.fire()};
_.J.onThrottledScroll=function(){var A=this;_.jY(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.ytRendererBehavior.markDirty()})};
_.J.onToggleExpanded=function(A){!this.collapsible||A&&(_.oO(A).tagName==="A"||_.Sl(_.Z2(A),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.J.setCollapsed=function(A){this.collapsible&&(this.collapsed=A,_.r2(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.J.handleCollapsedFromData=function(A){if(A){var t=A.playlistPanelCollapseState;t==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||t==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),t=t==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==t&&this.setCollapsed(t)):this.currentPlaylistId!==A.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(t=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==t&&this.setCollapsed(t),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=A.playlistId}};
_.J.handleDrop=function(A){var t=A.currDragItem;A=t.data.playlistSetVideoId;var f=_.jT(t.parentNode.childNodes,t),X=void 0;f>0&&(X=t.parentNode.childNodes[f-1].data.playlistSetVideoId);t=_.cR();if(t.responsePlaylistData&&t.responsePlaylistData.contents){var Q=Ku5(A,t.responsePlaylistData);t.responsePlaylistData=(0,_.VG.unsafeClone)(t.responsePlaylistData);Yxs(t.responsePlaylistData.contents,Q,f);t.queueProxy?zeK(t.queueProxy,Q,f,A,X):t.playlistProxy&&zeK(t.playlistProxy,Q,f,A,X);_.BR(t,_.Mr(t,t.response?
t.response.autoplayRenderer:void 0))}};
_.J.handleDarkModeChange=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
_.J.colorPaletteChanged=function(){var A,t=((A=this.data)==null?void 0:A.contents)||[],f;A=_.U(t);for(t=A.next();!t.done;t=A.next()){t=t.value;var X=void 0;if((X=t.playlistPanelVideoRenderer)==null?0:X.selected){A=t.playlistPanelVideoRenderer;X=t=void 0;(f=this.isDarkTheme?(t=A)==null?void 0:t.darkColorPalette:(X=A)==null?void 0:X.lightColorPalette)&&_.BO(this.hostElement,f);break}}this.useColorPalette=!!f};
_.PV.Object.defineProperties(I2.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.moveThreeDotsMenuToMainHeader)&&_.M("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var A=_.Px().resolve(_.z7(_.zT)),t;if(((t=this.data)==null?0:t.contents)&&(A==null?0:A.hasAutoplayData())){var f;if(((f=this.playlistLoopStateEntity)==null?void 0:f.state)==="PLAYLIST_LOOP_STATE_ONE"){if(A=this.data.currentIndex,A!==void 0){var X,Q;var q=(X=this.data.contents[A])==null?void 0:(Q=X.playlistPanelVideoRenderer)==null?void 0:Q.title}}else{var e,G=(e=_.C(A.getAutoplayEndpoint(),_.ZT))==null?void 0:e.videoId,N,z;q=(N=this.data.contents.find(function(T){var O;
return((O=T.playlistPanelVideoRenderer)==null?void 0:O.videoId)===G}))==null?void 0:(z=N.playlistPanelVideoRenderer)==null?void 0:z.title}return q}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)!=null&&A.nextVideoLabel?this.nextVideoTitle?_.dF(this.data.nextVideoLabel)+":":bbA:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?0:A.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.M("web_mix_long_byline_from_data"))return _.oC(WQc);var t;return(t=this.data)==null?void 0:t.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X=(A=this.data)==null?void 0:(t=A.playlistButtons)==null?void 0:(f=t.menuRenderer)==null?void 0:f.topLevelButtons;if(X)for(A=_.U(X),t=A.next();!t.done;t=A.next())if(t=t.value,t.playlistLoopButtonRenderer)return t.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var A;return!!(this.collapsed&&((A=this.data)==null?0:A.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.M("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
I2.prototype.colorPaletteChanged=I2.prototype.colorPaletteChanged;I2.prototype.onPlaylistLockupNowPlaying=I2.prototype.onPlaylistLockupNowPlaying;I2.prototype.updateNowPlayingOverlay=I2.prototype.updateNowPlayingOverlay;I2.prototype.onFullscreenChanged=I2.prototype.onFullscreenChanged;I2.prototype.onFullBleedPlayerChanged=I2.prototype.onFullBleedPlayerChanged;I2.prototype.dataChanged=I2.prototype.dataChanged;I2.prototype.hiddenChanged=I2.prototype.hiddenChanged;I2.prototype.collapseChanged=I2.prototype.collapseChanged;
I2.prototype.onRenderStamperFinished=I2.prototype.onRenderStamperFinished;I2.prototype.onMouseLeave=I2.prototype.onMouseLeave;I2.prototype.onMouseEnter=I2.prototype.onMouseEnter;_.V([_.b(_.K9),_.H("design:type",Object)],I2.prototype,"ironResizableBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],I2.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(jmp.YtPlaylistPanelBehavior),_.H("design:type",Object)],I2.prototype,"ytPlaylistPanelBehavior",void 0);_.V([_.b(_.BS.YtTaskEmitterBehavior),_.H("design:type",Object)],I2.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],I2.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],I2.prototype,"ytdReduxBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],I2.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],I2.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],I2.prototype,"autoplayData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],I2.prototype,"withinMiniplayer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],I2.prototype,"minimizePipBreakages",void 0);
_.V([_.n({computed:"setMenuData_(data)"}),_.H("design:type",Object)],I2.prototype,"menuRendererData",void 0);_.V([_.n({computed:"computeOverflowMenuData(data)"}),_.H("design:type",Object)],I2.prototype,"overflowMenuDataTopRow",void 0);_.V([_.n({computed:"computeOverflowMenuData(data)"}),_.H("design:type",Object)],I2.prototype,"overflowMenuData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],I2.prototype,"hideHeaderText",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],I2.prototype,"useColorPalette",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.H("design:type",Boolean)],I2.prototype,"collapsible",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],I2.prototype,"collapsed",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],I2.prototype,"hidden",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.H("design:type",Boolean)],I2.prototype,"hasPlaylistButtons",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.H("design:type",Boolean)],I2.prototype,"hasSeparateSaveButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.H("design:type",Boolean)],I2.prototype,"hasToolbar",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.H("design:type",String)],I2.prototype,"playlistType",void 0);_.V([_.n(),_.H("design:type",Object)],I2.prototype,"isHovered",void 0);_.V([_.n({selectorArgs:["playlistLoopStateEntityKey"],selector:_.wx.playlistLoopStateEntitySelector}),_.H("design:type",Object)],I2.prototype,"playlistLoopStateEntity",void 0);_.V([_.n({computed:"computeCanReorder(data)"}),_.H("design:type",Boolean)],I2.prototype,"canReorder",void 0);
_.V([_.n(),_.H("design:type",Object)],I2.prototype,"expandLabel",void 0);_.V([_.n(),_.H("design:type",Object)],I2.prototype,"collapseLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],I2.prototype,"isFloating",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],I2.prototype,"metaPanel",void 0);_.V([_.n({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.H("design:type",String)],I2.prototype,"trailingIcon",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],I2.prototype,"isDarkTheme",void 0);_.V([_.n({selector:_.WE}),_.H("design:type",Boolean)],I2.prototype,"miniplayerIsActive",void 0);_.V([_.n({selector:function(A){return A.watch.playerState}}),
_.H("design:type",Number)],I2.prototype,"playerState",void 0);_.V([_.n({selector:_.WO}),_.H("design:type",Boolean)],I2.prototype,"isFullscreen",void 0);_.V([_.n({selector:_.bm}),_.H("design:type",Boolean)],I2.prototype,"isTheaterMode",void 0);_.V([_.n(),_.H("design:type",Object)],I2.prototype,"activeNowPlayingRenderer",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],I2.prototype,"moveThreeDotMenuToTopRow",null);
_.V([_.y("data","autoplayData","playlistLoopStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],I2.prototype,"nextVideoTitle",null);_.V([_.y("data","nextVideoTitle"),_.H("design:type",String),_.H("design:paramtypes",[])],I2.prototype,"nextVideoLabel",null);_.V([_.y("collapsed"),_.H("design:type",String),_.H("design:paramtypes",[])],I2.prototype,"buttonAriaLabel",null);
_.V([_.y("data","playlistId","longBylineText"),_.H("design:type",Object),_.H("design:paramtypes",[])],I2.prototype,"mixLongByLine",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],I2.prototype,"playlistLoopStateEntityKey",null);_.V([_.UQ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"onMouseEnter",null);
_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"onMouseLeave",null);_.V([_.n({reflectToAttribute:!0}),_.y("data","collapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],I2.prototype,"showNextVideoHeader",null);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"onRenderStamperFinished",null);
_.V([_.ev("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"collapseChanged",null);_.V([_.ev("hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"hiddenChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"dataChanged",null);
_.V([_.y("isTheaterMode","isFullscreen"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],I2.prototype,"isFullBleedPlayer",null);_.V([_.ev("isTheaterMode","isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"onFullBleedPlayerChanged",null);_.V([_.ev("isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"onFullscreenChanged",null);
_.V([_.ev("playerState","miniplayerIsActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"updateNowPlayingOverlay",null);_.V([_.UQ("yt-playlist-lockup-now-playing-active"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],I2.prototype,"onPlaylistLockupNowPlaying",null);
_.V([_.ev("data","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I2.prototype,"colorPaletteChanged",null);_.V([_.y_({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],I2);
_.yr8=_.wR()(I2,"ytd-playlist-panel-renderer",function(){if(CiQ===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);CiQ=A}A=CiQ;return A},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var vld;var xQ=function(){return _.F.apply(this,arguments)||this};
_.R(xQ,_.F);xQ.prototype.computeShouldButtonBeVertical=function(A,t){return A||t};
xQ.prototype.onYtServiceRequestSent=function(A,t){(A=_.C(t.endpoint,_.p8))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Ta("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:A.status})):this.handleLikeEndpoint(A))};
xQ.prototype.computelikeStatusEntityKey=function(A){return A==null?void 0:A.likeStatusEntityKey};
xQ.prototype.handleLikeEndpoint=function(A){A.status==="LIKE"?this.JSC$17331_ytdDislikeToggleButtonRenderer.toggle(!1):A.status==="DISLIKE"?this.JSC$17331_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17331_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17331_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.PV.Object.defineProperties(xQ.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var A;return PTu(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(A=this.likeStatusEntity)==null?void 0:A.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var A;if(this.data&&((A=this.data)==null||!A.hideDislikeButton)){var t;return PTu(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(t=this.likeStatusEntity)==null?void 0:t.likeStatus)}}}});
xQ.prototype.onYtServiceRequestSent=xQ.prototype.onYtServiceRequestSent;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],xQ.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],xQ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],xQ.prototype,"vertical",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],xQ.prototype,"textTransform",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],xQ.prototype,"useShortsIcon",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],xQ.prototype,"underIconLabel",void 0);_.V([_.n({value:"left"}),_.H("design:type",String)],xQ.prototype,"buttonTooltipPosition",void 0);_.V([_.n(),_.H("design:type",Object)],xQ.prototype,"overrides",void 0);
_.V([_.lo("#like-button"),_.H("design:type",Object)],xQ.prototype,"JSC$17331_ytdLikeToggleButtonRenderer",void 0);_.V([_.lo("#dislike-button"),_.H("design:type",Object)],xQ.prototype,"JSC$17331_ytdDislikeToggleButtonRenderer",void 0);_.V([_.y("data","likeStatusEntity.likeStatus","useShortsIcon"),_.H("design:type",Object),_.H("design:paramtypes",[])],xQ.prototype,"likeButton",null);
_.V([_.y("data","likeStatusEntity.likeStatus","useShortsIcon"),_.H("design:type",Object),_.H("design:paramtypes",[])],xQ.prototype,"dislikeButton",null);_.V([_.n({computed:"computelikeStatusEntityKey(data)"}),_.H("design:type",String)],xQ.prototype,"likeStatusEntityKey",void 0);_.V([_.n({selectorArgs:["likeStatusEntityKey"],selector:vO}),_.H("design:type",Object)],xQ.prototype,"likeStatusEntity",void 0);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],xQ.prototype,"onYtServiceRequestSent",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],xQ);
var LQm=_.wR()(xQ,"ytd-like-button-renderer",function(){if(vld===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);vld=A}A=vld;return A},{mode:1});_.puh={};
_.puh.YtConditionalRendererBehavior=[_.g.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(A,t){var f=this,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:if(!t)return f.hidden=!0,f.showSpinner=!1,q.return();if((X=A)==null?0:(Q=X.visibilityCondition)==null?0:Q.mode)switch(A.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return q.jumpTo(5);default:return q.jumpTo(6)}f.showSpinner=
!1;f.hidden=!0;return q.yield(f.shouldShow_(A),4);case 4:f.hidden=!q.yieldResult;q.jumpTo(0);break;case 5:return q.yield(f.shouldShow_(A),8);case 8:f.showSpinner=q.yieldResult;f.hidden=!1;q.jumpTo(0);break;case 6:return f.showSpinner=!1,q.yield(f.shouldShow_(A),9);case 9:f.hidden=!q.yieldResult,_.LO(q)}})},
shouldShow_:function(A){return A&&A.supportedDatas&&A.supportedDatas.rendererVisibilityConditionData&&A.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(A.supportedDatas.rendererVisibilityConditionData.showIf):A&&A.visibilityCondition&&A.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(A.visibilityCondition.showIf):A&&A.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(A.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(A){switch(A){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(A){switch(A){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var A=_.kJ(this.hostElement,"yt-get-mdx-status");return A.length==1&&A[0].connected},
isLocationPermissionGranted_:function(){var A;return _.l(function(t){return t.nextAddress==1?navigator.permissions?t.yield(navigator.permissions.query({name:"geolocation"}),3):t.jumpTo(2):t.nextAddress!=2?(A=t.yieldResult,t.return(Promise.resolve(A.state==="granted"))):t.return(Promise.resolve(!1))})}}];var El_=Vbb("yt-icon",{callbackProps:["onKeydown"]}),nlc=_.M("kevlar_use_wil_icons")?_.I(function(A){var t=A.icon;var f=A.active;var X=A.className;var Q=A.style;var q=A.title;var e=A.size;var G=A.dataSelected;var N=A.dataDisabled;var z=A.role;var T=A.themeOverride;var O=A.animateIcon;var c=A.ariaHidden;var B=A.ariaExpanded;var h=A.ariaLabel;var W=A.tabindex;var L=A.id;var E=A.iconFilter;var D=A.gradientColor;var S=A.onKeydown;var Z=function(){var k=t==null?void 0:t(),Gz=null,Tz=void 0;k&&(k=zaf(k),
k=Trx(k),k.length&&(Gz=k[1],Tz=k[0]));return{iconName:Gz,iconSetName:Tz}},d=function(){return PhC(Z().iconName,f==null?void 0:f(),void 0,e==null?void 0:e(),Z().iconSetName,_.Px().resolve(_.fI))},K=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:E==null?void 0:E(),iconColor:D==null?void 0:D()}};
return _.u(_.P,{cond:O,then:function(){return _.u(El_,{icon:t,active:f,className:X,style:Q,title:q,dataSelected:G,dataDisabled:N,role:z,themeOverride:T,ariaHidden:c,ariaExpanded:B,ariaLabel:h,tabindex:W,id:L,iconFilter:E,gradientColor:D,onKeydown:S})},
else:function(){return _.u(_.P,{cond:d,then:function(k){return _.u("span",{class:_.Ao("ytIconWrapperHost",X),role:z,"aria-label":h,"aria-hidden":c,tabindex:function(){return isNaN(Number(W==null?void 0:W()))?void 0:Number(W==null?void 0:W())},
id:L,style:Q,title:q,"on:keydown":_.f1(function(Gz){return void(S==null?void 0:S(Gz))})},_.u(_.cO,{data:k,
options:K}))}})}})},"lg"):El_;var Dy_=function(A){var t=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];OI5();_.zm("ytglobal.ytUtilActivityCallback_",function(){_.r2(A,"yt-user-activity")});
new PQ(function(){return t.JSC$17348_onMouseMove});
document.addEventListener("scroll",function(){return t.onScroll});
window.addEventListener("resize",function(){return t.onResize})},FQQ=function(A,t,f){t in A.eventJobIds||(f=_.m_().addLowPriorityJob(function(){_.TO();
delete A.eventJobIds[t]},f),A.eventJobIds[t]=f)};
Dy_.prototype.onScroll=function(A){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):A.target===document&&FQQ(this,"scroll",200)};
Dy_.prototype.onResize=function(){FQQ(this,"resize",200)};
Dy_.prototype.JSC$17348_onMouseMove=function(){FQQ(this,"mousemove",100)};
_.Rd=function(A){A.scrollEventsToIgnore+=1;A.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){A.scrollEventsToIgnore--},500))};var IF2=function(A){this.element=A;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
IF2.prototype.showFeedbackDialog=function(A,t,f,X){var Q=xyl();if(!Q)return!1;var q=bt5();q.productId=Q;t&&(q.flow="submit",q.report={description:t});f&&(xyl()==="59"?q.callback=_.r9(function(){_.SY("userFeedbackEvent",{});f()}):q.callback=_.r9(f));
q.bucket=X||_.ah("GOOGLE_FEEDBACK_BUCKET","Other");jf2(q);A=Yih(this,"GFEEDBACK",A);try{_.B8b(q,A)}catch(e){return _.g9(e),!1}return!0};
IF2.prototype.showHelpDialog=function(A,t,f){var X=this,Q=xyl();if(!Q)return!1;var q={helpCenterPath:"/youtube",productData:Yih(this,"GUIDED_HELP",f)};jf2(q);var e=bt5();e.context=A||q.productData.context||"default";e.defaultHelpArticleId=t;e.enableSendFeedback=!0;(_.Ae("gapi.load")||function(G,N){return N()})("client",function(){try{var G=mq8(Q,q);
if(_.M("web_always_load_chat_support")&&!X.chatSupportLoaded)try{G.JSC$10058_loadChatSupport(e),X.chatSupportLoaded=!0}catch(N){}G.startHelp(e)}catch(N){_.g9(N)}})};
var xyl=function(){var A=_.ah("GOOGLE_FEEDBACK_PRODUCT_ID");A||_.g9(Error("hi"));return A},jf2=function(A){A&&(A.locale=_.M("kevlar_help_use_locale")?_.ah("INNERTUBE_CONTEXT_HL","en"):_.ah("HTML_LANG","en"))},Yih=function(A,t,f){var X=A.productData;
delete X.origin;X.device=_.Ox();var Q;a:{if(Q=document.createElement("canvas")){var q=Q.getContext("experimental-webgl",{stencil:!0});if(q){var e=q.getExtension("WEBGL_debug_renderer_info");if(e){Q=q.getParameter(e.UNMASKED_RENDERER_WEBGL);break a}}if(q=Q.getContext("webgl")){Q=q.getParameter(q.RENDERER);break a}}Q=null}X.gpu=Q;X.isSDC=!!_.ah("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Q=_.ah("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.VG.extend(X,Q);_.Rf0(t,X);_.mjg(X);(A=_.r2(A.element,"yt-get-autonav-pause-debug-state"))&&
A.length&&(X.autonav_pause_state=A[0]);A=_.pn();X.browser_resolution=A.width+"\u00d7"+A.height+"@"+(window.devicePixelRatio||1)+"x";f&&_.VG.extend(X,f);return X};
IF2.prototype.resetProductData=function(){this.productData={}};var V3h=function(A){this.feedbackManager=new IF2(A)};
V3h.prototype.showFeedbackDialog=function(A,t,f,X){return this.feedbackManager.showFeedbackDialog(A,t,f,X)};
V3h.prototype.showHelpDialog=function(A,t,f){return this.feedbackManager.showHelpDialog(A,t,f)};var Zb8=function(){this.baseUrl="";this.aTag=document.createElement("a")},HEC=function(A,t,f){f=f===void 0?{}:f;
f.pbj||(f.pbj=1);f=_.AEl(t,f);A.baseUrl&&f&&!_.eJ(f)[1]&&!_.G7(f)&&(t=A.baseUrl,Jb(t,"/")&&(t=t.slice(0,-1)),_.ql(f,"/")&&(f=f.slice(1)),f=t+"/"+f);Kb(A.aTag,_.Vb(f||""));return A.aTag.href};
Zb8.prototype.fetchData=function(A){return _.Otl(A)};
Zb8.prototype.postData=function(A,t){var f={method:"POST"};if(t){for(var X=_.U(Object.keys(t)),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var q=t[Q];_.Hp(q)&&(t[Q]=JSON.stringify(q))}f.postParams=t}return _.Otl(A,f)};
_.aIT=function(A,t,f,X,Q){A=HEC(A,t,f);if(!A)throw X=Error("ii"),Object.assign(X,{params:t}),X;return _.Otl(A,Q,X)};
Zb8.prototype.requestDataForServiceEndpoint=function(A,t){if(_.C(A,_.CVp))return this.fetchData("/getAccountSwitcherEndpoint");t=t||{};var f=_.C(A,yBC);f?t.se=f.base64EncodedServiceEndpoint:t.sej=JSON.stringify(A);(f=_.Ws())&&_.M("enable_service_ajax_csn")&&(t.csn=f);t.theme=_.np();_.C(A,Byb)&&_.ah("DELEGATION_CONTEXT")&&(t.delegation_context=JSON.stringify(_.ah("DELEGATION_CONTEXT")));f=null;for(var X in A)if(Jb(X,"Endpoint")||Jb(X,"Command")){f=X;break}if(!f){var Q=Error("ji");Object.assign(Q,{params:A});
_.sMq(Q,"WARNING");return new _.yy(function(e,G){G(Q)})}X={name:f};
var q;(f=(q=_.C(A,_.qJ))==null?void 0:q.signal)&&(X.signal=f);(q=_.qG(window.location.href))&&q.internalcountrycode&&(X.internalcountrycode=q.internalcountrycode);q="/service_ajax";_.M("debug_forward_web_query_parameters")&&(q=_.P0g(q,window.location.search));q=_.U0(q,X);A.clickTrackingParams&&_.$J(q,{itct:A.clickTrackingParams});return this.postData(q,t)};_.ol2=new _.eh("GFEEDBACK_TOKEN");var dyd;var Si8;var $y3;var Hb3;var js=function(){var A=_.F.apply(this,arguments)||this;A.compact=!1;A.dismissButtonDisabled=!1;A.shouldRenderReasonAsFormattedString=!_.M("web_player_error_message_reason_as_formatted_string_killswitch");return A};
_.R(js,_.F);js.prototype.computeHasIcon_=function(A){return!!A};
js.prototype.isSignInIcon_=function(A){return A=="yt-icons:prompted_sign_in"};
js.prototype.onDismissButtonClick=function(){var A=this,t=this.data.disableOnClick,f,X=(f=this.data.dismissButton)==null?void 0:f.buttonRenderer;t&&!this.dismissButtonDisabled&&X&&setTimeout(function(){A.dismissButtonDisabled=!0},0)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.puh.YtConditionalRendererBehavior),_.H("design:type",Object)],js.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],js.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.H("design:type",Object)],js.prototype,"icon_",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.H("design:type",Boolean)],js.prototype,"hasIcon_",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.H("design:type",Boolean)],js.prototype,"signInIcon_",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],js.prototype,"compact",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],js.prototype,"dismissButtonDisabled",void 0);
_.V([_.n({type:Boolean}),_.H("design:type",Object)],js.prototype,"shouldRenderReasonAsFormattedString",void 0);_.V([_.WU({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],js);
_.Y(js,"yt-player-error-message-renderer",function(){if(Hb3===void 0){var A=document.createElement("template");_.m(A,'\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\n<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    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" 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    </template>\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      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;$y3===void 0&&($y3=document.createElement("template"));var X=$y3;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Hb3=A}A=Hb3;return A},{mode:2});var aFQ;var KQm;var YQ=function(){return _.F.apply(this,arguments)||this};
_.R(YQ,_.F);YQ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
YQ.prototype.computeIcon_=function(A){return A?"yt-icons:"+A.iconType.toLowerCase():"error_outline"};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],YQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],YQ.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.H("design:type",Object)],YQ.prototype,"icon_",void 0);_.V([_.WU({is:"yt-player-kav-renderer",disableElementRegistration:!0})],YQ);
_.Y(YQ,"yt-player-kav-renderer",function(){if(KQm===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;aFQ===void 0&&(aFQ=document.createElement("template"));var X=aFQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);KQm=A}A=KQm;return A},{mode:2});var vvb=_.dS(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.Hn(_.I(function(A){var t=_.GU("div"),f=_.U(_.hZ(0,void 0,"jxh75d")),X=f.next().value,Q=f.next().value;f=_.U(_.hZ(null,void 0,"F5Zm8"));var q=f.next().value,e=f.next().value;_.oh(function(){L4p(t.value,Q,e);t.value.scrollIntoView()});
f=p6x.bind(null,A.data,X);_.TU("resize",function(){var G=q();if(X()===1&&G!==null){var N;(N=window.grecaptcha)==null||N.reset(G)}});
return _.u("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.u("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.u("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var G,N;return(G=A.data().accessibility)==null?void 0:(N=G.accessibilityData)==null?void 0:N.label}),_.u(_.zL,{text:f,
className:_.Ao("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.u("div",{el:t,class:"ytwPlayerCaptchaViewModelGridItem"})))},"mg"),"yt-player-captcha-view-model",{props:{data:_.dt}});var Ev0=!1;_.gl8=_.I(function(A){var t=A.data;return _.u("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.u(_.P,{cond:function(){return t().icon},
then:function(f){return _.u("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.u(_.YA,{data:f,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.u(_.P,{cond:function(){return t().title},
then:function(f){return _.u("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.u(_.zL,{text:f}))}}),_.u(_.P,{cond:function(){return t().description},
then:function(f){return _.u("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.u(_.zL,{text:f}))}}),_.u(_.P1,{data:function(){return t().primaryButton}},{buttonViewModel:function(f){return _.u(_.nx,{data:f.data,
className:"interstitialViewModelFlexItem"})}}),_.u(_.P1,{data:function(){return t().secondaryButton}},{buttonViewModel:function(f){return _.u(_.nx,{data:f.data,
className:"interstitialViewModelFlexItem"})}}))},"ng");
_.gl8.idomCompat=!0;var wuy=_.I(function(A){var t=A.data;_.IJ();return _.u("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.u("div",{class:"playerInterstitialRendererScrim"},_.u(_.P1,{data:function(){return t().content}},{interstitialViewModel:_.gl8})))},"og");
wuy.idomCompat=!0;_.Hn(wuy,"yt-player-interstitial-renderer",{props:{data:_.PS}});var Vu=function(){var A=_.F.apply(this,arguments)||this;A.noBackground=!1;A.compact=!1;A.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return A};
_.R(Vu,_.F);Vu.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"}}}};
Vu.prototype.onUpdatePlayerErrorMessageCommand_=function(A){if(_.C(A,ZxC)){var t;if(A=(t=_.C(A,ZxC))==null?void 0:t.newPlayerErrorMessageRenderer)this.data=A}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Vu.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Vu.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Vu.prototype,"status",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Vu.prototype,"noBackground",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Vu.prototype,"compact",void 0);_.V([_.WU({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Vu);
var sfm=_.wR()(Vu,"yt-playability-error-supported-renderers",function(){if(Si8===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;dyd===void 0&&(dyd=document.createElement("template"));var X=dyd;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Si8=A}A=Si8;return A},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var kHd=Vbb("ytd-button-renderer");var nvq=void 0,F4z=void 0;var jKx=new GmC;var tu=new _.eh("ENTITY_STATE_TOKEN"),ZO=new _.eh("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var rrA=function(A){this.store=A;this.iaX=new _.uiC},nTx=function(A,t,f){var X,Q;
if(!(Q=((X=t.playabilityStatus)==null?void 0:X.status)!=="OK")){A=A.store;var q;Q=t.offlineState&&((q=t.videoDetails)==null?0:q.videoId)?_.M("enable_pl_r_c_cd")?drx(A.getState().entities,t.videoDetails.videoId):!!ixs(A.getState().entities,t.videoDetails.videoId):!1}if(Q)return!0;Q=djs(t);if(Q===1){if(_.M("ab_v_vid_sig")){var e,G=(e=t.videoDetails)==null?void 0:e.videoId;if(!G||!f||G!==f){var N;t=new _.xj("282054944_vid",{tYo:f,vu6:(N=t.videoDetails)==null?void 0:N.videoId});_.HQ(t)}}return!0}pg0=
0;var z,T;N=(G=t.auxiliaryUi)==null?void 0:(z=G.messageRenderers)==null?void 0:(T=z.bkaEnforcementMessageViewModel)==null?void 0:T.displayType;if(Q!==3&&(N==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||N==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;N={reason:_.w0(_.e5("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.M("ks_something_wrong_learn_more")?gUs("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.w0(_.e5("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:_.w0("282054944")};At3(t,{playerErrorMessageRenderer:N});return!1},DDp=function(A,t){if(K6b(t)){_.UF(1,!0);
var f=(f=K6b(t))&&_.Djq()?f:void 0;f?(At3(t,{enforcementMessageViewModel:f}),A.iaX.increment("IN_PLAYER"),_.UF(5)):(A.iaX.increment("SKIP_DISPLAY"),_.UF(2))}},At3=function(A,t){A.playabilityStatus=Object.assign({},A.playabilityStatus,{status:"ERROR",
errorScreen:t});A.videoDetails=void 0};
rrA.prototype.handleResponse=function(A,t){if(A.playabilityStatus){var f,X,Q,q=(t==null?void 0:(f=t.innerTubeRequest)==null?void 0:f.videoId)||(t==null?void 0:(X=t.innerTubeRequest)==null?void 0:(Q=X.playerRequest)==null?void 0:Q.videoId);nTx(this,A,q)&&DDp(this,A)}};
rrA[T7]=[tu];var pJz=new _.eh("ADBLOCK_DETECTION_SERVICE_TOKEN");var Zd=function(A){this.rdY=A};
Zd.prototype.bindInnertubeChallengeFetcher=function(A){this.rdY.bicf(A)};
Zd.prototype.registerChallengeFetchedCallback=function(A){this.rdY.bcr(A)};
Zd.prototype.getLatestChallengeResponse=function(){return this.rdY.blc()};var tOA;tOA=_.dS(["https://static.doubleclick.net/instream/ad_status.js"]);_.fHQ=_.OP(tOA);var Jth;_.o2=function(A,t,f){var X=this;this.network=A;this.options=t;this.networkStatusManager=f;this.eN=null;if(t.useBotguardEverywhere){var Q=new _.Qc;this.eN=Q.promise;_.Xb.ytAtRC&&_.c1(_.a6,function(){var q,e;return _.l(function(G){if(G.nextAddress==1){if(!_.Xb.ytAtRC)return G.return();q=XC3(null);return G.yield(X.za(q),2)}e=G.yieldResult;_.Xb.ytAtRC&&_.Xb.ytAtRC(JSON.stringify(e));_.LO(G)})});
K4b().then(function(q){var e,G,N,z;return _.l(function(T){if(T.nextAddress==1)return q.bindInnertubeChallengeFetcher(function(O){return X.za(XC3(O))}),T.yield(S8l(),2);
e=T.yieldResult;G=q.getLatestChallengeResponse();N=G.challenge;if(!N)throw Error("ki");z={challenge:N,vQ:YY(N),vm:e,bgChallenge:new xY};Q.resolve(z);q.registerChallengeFetchedCallback(function(O){O=O.challenge;if(!O)throw Error("li");O={challenge:O,vQ:YY(O),vm:e,bgChallenge:new xY};X.eN=Promise.resolve(O)});
_.LO(T)})})}else t.preload&&Q9Q(this,new Promise(function(q){_.jY(_.a6,function(){q(qVA(X))},0)}))};
Jth=function(A){var t={preload:!0,useBotguardEverywhere:!0},f=!1;if(typeof t==="boolean")var X={preload:t};else typeof t==="undefined"?X={preload:!0}:(X=t,f=!!t.dbc);t=f?void 0:new _.qA;_.o2.instance=new _.o2(A,X,t);return _.o2.instance};
_.o2.prototype.yGW=function(){var A=this;return _.l(function(t){return t.nextAddress==1?t.yield(Promise.race([A.eN,null]),2):t.return(!!t.yieldResult)})};
_.o2.prototype.eZh=function(A,t,f){var X=this,Q,q,e;return _.l(function(G){X.eN===null&&Q9Q(X,qVA(X));Q=!1;q={};e=function(){var N,z,T;return _.l(function(O){switch(O.nextAddress){case 1:return O.yield(X.eN,2);case 2:N=O.yieldResult;q.challenge=N.challenge;if(!N.vm){"c1a"in N.vQ&&(q.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");O.jumpTo(3);break}z=Object.assign({},{c:N.challenge,e:A},t);_.ht(O,4);Q=!0;return O.yield(N.vm.snapshot({yj:z}),6);case 6:(T=O.yieldResult)?q.webResponse=T:q.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.qq(O,3);break;case 4:_.vC(O),q.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(A==="ENGAGEMENT_TYPE_PLAYBACK"){var c=N.vQ,B={};if(c.c6a){var h=Number(_.ah("DCLKSTAT",0));B.reportingStatus=String(Number(c.c)^(isNaN(h)?0:h))}c.c6b&&(B.broadSpectrumDetectionResult=String(Number(c.c)^Number(_.ah("CATSTAT",0))));q.adblockReporting=B}return O.return(q)}})};
return G.return(Promise.race([e(),UW8(f,function(){var N=Object.assign({},q);Q&&(N.error="ATTESTATION_ERROR_VM_TIMEOUT");return N})]))})};
var XC3=function(A){var t={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};A&&(t.interpreterHash=A);return t},qVA=function(A,t){t=t===void 0?0:t;
var f,X,Q,q,e,G,N,z,T,O,c,B;return _.l(function(h){switch(h.nextAddress){case 1:f=XC3(zTC().ez4);if(_.M("att_fet_ks"))return _.ht(h,7),h.yield(A.za(f),9);_.ht(h,4);return h.yield(eNw(A,f),6);case 6:e=h.yieldResult;Q=e.vLc;q=e.uIp;X=e;_.qq(h,3);break;case 4:return _.vC(h),_.K4(Error("mi`"+t)),GGy(A,864E5),h.return({challenge:"",vQ:{},vm:void 0,bgChallenge:void 0});case 9:X=h.yieldResult;if(!X)throw Error("ni");if(!X.challenge)throw Error("oi");Q=X.challenge;q=YY(Q);if("c1a"in q&&(!X.bgChallenge||!X.bgChallenge.program))throw Error("pi");
_.qq(h,3);break;case 7:G=_.vC(h);_.K4(G);t++;if(t>=5)return _.K4(Error("mi`"+t)),GGy(A,864E5),h.return({challenge:"",vQ:{},vm:void 0,bgChallenge:void 0});N=1E3*Math.pow(2,t-1)+Math.random()*1E3;return h.return(new Promise(function(W){_.jY(_.a6,function(){W(qVA(A,t))},N)}));
case 3:z=aJx(q);GGy(A,z*1E3);T=void 0;if(!("c1a"in q&&X.bgChallenge)){h.jumpTo(10);break}O=HtT(X.bgChallenge);_.ht(h,11);return h.yield(Ti8(zTC(),O),13);case 13:_.qq(h,12);break;case 11:return c=_.vC(h),_.K4(c),h.return({challenge:Q,vQ:q,vm:T,bgChallenge:O});case 12:return _.ht(h,14),T=new _.d_({challenge:O,hrg:{qZ:"aGIf"}}),h.yield(T.mLg,16);case 16:_.qq(h,10);break;case 14:B=_.vC(h),_.K4(B),T=void 0;case 10:return h.return({challenge:Q,vQ:q,vm:T,bgChallenge:O})}})},lH8=function(A,t){var f;
return _.l(function(X){if(X.nextAddress==1)return Vi(2),_.ht(X,2),X.yield(A.network.za(t),4);if(X.nextAddress!=2)return(f=X.yieldResult)?f.challenge&&!f.bgChallenge?Vi(1):Vi(4):Vi(3),X.return(f);_.vC(X);Vi(3);return X.return(void 0)})};
_.o2.prototype.za=function(A){var t=this,f;return _.l(function(X){f=t.networkStatusManager;if(!f||f.isNetworkAvailable())return X.return(lH8(t,A));_.vt("att_pna",void 0,"attestation_challenge_fetch");return X.return(new Promise(function(Q){f.listenOnce("publicytnetworkstatus-online",function(){lH8(t,A).then(Q)})}))})};
var Nk3=function(A){if(!A)throw Error("ni");if(!A.challenge)throw Error("oi");var t=A.challenge,f=YY(t);if("c1a"in f&&(!A.bgChallenge||!A.bgChallenge.program))throw Error("pi");return Object.assign({},A,{vLc:t,uIp:f})},eNw=function(A,t){var f,X,Q,q,e;
return _.l(function(G){switch(G.nextAddress){case 1:f=void 0,X=0,Q={};case 2:if(!(X<5)){G.jumpTo(4);break}if(!(X>0)){G.jumpTo(5);break}Q.rV4=1E3*Math.pow(2,X-1)+Math.random()*1E3;return G.yield(new Promise(function(N){return function(z){_.jY(_.a6,function(){z(void 0)},N.rV4)}}(Q)),5);
case 5:return _.ht(G,7),G.yield(A.za(t),9);case 9:return q=G.yieldResult,G.return(Nk3(q));case 7:f=e=_.vC(G),e instanceof Error&&_.K4(e);case 8:X++;Q={rV4:void 0};G.jumpTo(2);break;case 4:throw f;}})},Q9Q=function(A,t){A.eN=t},u3y=function(A){var t,f,X;
return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.race([A.eN,null]),2);t=Q.yieldResult;var q=qVA(A);A.eN=q;(f=t)==null||(X=f.vm)==null||X.dispose();_.LO(Q)})},GGy=function(A,t){var f=Date.now()+t,X=function(){var Q;
return _.l(function(q){Q=f-Date.now();return Q<1E3?q.yield(u3y(A),0):(_.jY(_.a6,X,Math.min(Q,6E4)),q.jumpTo(0))})};
X()},UW8=function(A,t){return new Promise(function(f){_.jY(_.a6,function(){f(t())},A)})};var zNQ=function(){};
zNQ.prototype.processContext=function(A){var t=_.o2.instance;if(!t)return _.MN();var f=Ap5(A);return f?new BX(t.eZh(f,sKb(A),500).then(function(X){var Q;(A==null?0:(Q=A.innerTubeRequest)==null?0:Q.context)||(A.innerTubeRequest.context={});Q=A.innerTubeRequest.context;Q.request||(Q.request={});Q.request.attestationResponseData=X})):_.MN()};var PLd=function(A){this.innertubeTransportService=A};
PLd.prototype.za=function(A){_.vt("att_fsr",void 0,"attestation_challenge_fetch");return _.uE(this.innertubeTransportService,A,_.HE(_.a7S)).then(function(t){_.vt("att_frr",void 0,"attestation_challenge_fetch");return t})};_.Tk2=function(A){this.innertubeTransportService=A};var iOc=new _.eh("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var OOw=function(){},Bk2=function(A,t,f,X,Q){var q=_.ah("YPC_MB_URL");
_.YDp(q).then(function(){ctA(q,A,t,f,X,Q)})},ctA=function(A,t,f,X,Q,q){try{var e=_.aJ.payments.business.integration,G=_.aJ.payments.business.integration.Style.create().withMaterialDesignStyle(),N=e.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.M("enable_window_constrained_buy_flow_dialog")&&(N=N.usingPopupStyle("windowConstrained"));q&&(N=N.usingCloseCallback(q));var z=f?f:_.ah("YPC_GB_LANGUAGE"),T=_.ah("SESSION_INDEX");e.bootstrap.fromPaymentsUrl(A);e.bootstrap.asMashupMode(N).usingGaiaIndex(T).usingLocale(z).usingStyle(G).usingDefaultActivityStatusChangeHandler().inStandaloneContext(e.standaloneContextAuthId.forGaia()).purchaseManager(t,function(O){X&&X(O)}).load(void 0,Q)}catch(O){throw Q&&Q(O),_.HQ(O),O;
}};var MOd=new _.eh("PURCHASE_MANAGER_TOKEN");var CLd=function(){var A=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return A.videos},
getContinuationsPresent:function(){return A.continuationsPresent},
setVideos:function(t){A.videos=t},
getRecommendedVideos:function(){return A.recommendedVideos},
setRecommendedVideos:function(t){A.recommendedVideos=t}}};
CLd.prototype.addVideos=function(A){A&&(this.videos=A.filter(function(t){return!!_.fyT(t)}).map(function(t){var f=_.fyT(t);
a:{var X;if(t.playlistVideoRenderer&&((X=t.playlistVideoRenderer)==null?0:X.voteSortTiebreaker))var Q=t.playlistVideoRenderer.voteSortTiebreaker;else{if(_.C(t,dP)){var q;if(X=(Q=_.C(t,dP))==null?void 0:(q=Q.playlistItemData)==null?void 0:q.voteSortTiebreaker){Q=X;break a}}Q=""}}return{itemId:f,videoId:_.qD5(t),voteCount:_.JpT(t),voteSortTiebreaker:Q}}),this.continuationsPresent=!!_.C(A[A.length-1],_.H$))};
var hNw=function(A,t){return A.videos.findIndex(function(f){return f.itemId===t})},RNQ=function(A,t){return A.recommendedVideos.findIndex(function(f){return f.itemId===t})},mWh=function(A){A={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:A}}}}};_.Px().resolve(_.i2).resolveCommand(A)};var bOl=function(){CLd.apply(this,arguments)};
_.R(bOl,CLd);
var Hqp=function(A,t,f,X){if(!A.parentElem)throw Error("ui");var Q=hNw(A,t);Q===-1&&(Q=RNQ(A,t),Q=Q!==-1?Q+A.videos.length:-1);if(Q===-1)throw Error("vi");var q=Q>=A.videos.length?A.recommendedVideos[Q-A.videos.length]:A.videos[Q];q.voteCount=f;q.voteSortTiebreaker=Date.now().toString();Q>=A.videos.length?A.recommendedVideos.splice(Q-A.videos.length,1):A.videos.splice(Q,1);var e=A.videos;for(var G=0,N=e.length-1;G<=N;){var z=Math.floor((G+N)/2);if(e[z].voteCount<q.voteCount)N=z-1;else if(e[z].voteCount>q.voteCount)G=
z+1;else{a:{var T=q.voteSortTiebreaker;var O=e[z].voteSortTiebreaker;if(T.length!==O.length)T=T.length>O.length;else{for(var c=0;c<T.length;c++){var B=T.charCodeAt(c),h=O.charCodeAt(c);if(B>h){T=!0;break a}if(B<h)break}T=!1}}T?N=z-1:G=z+1}}e=G;if(e===-1)throw Error("wi");A.videos.splice(e,0,q);Q!==e&&WzQ(A,Q,e,t,f,X)},WzQ=function(A,t,f,X,Q,q){var e,G=(e=A.parentElem)==null?void 0:e.children,N=Math.min(t,f),z=Math.max(t,f);
if(G)for(e=N;e<=z;e++)G[e].style.viewTransitionName="item-"+String(e);document.startViewTransition(function(){if(A.parentElem){var T=A.parentElem.children;if(!(!T||t<0||t>=T.length||f<0||f>=T.length)){var O=T[t];if(O){O.remove();A.showRefreshPill=f>=A.videos.length-1&&A.continuationsPresent;if(!A.showRefreshPill){T=T[f]||null;var c;(c=A.parentElem)==null||c.insertBefore(O,T)}_.s9(A.parentElem,"yt-update-video-data-voting-animation",{toIdx:f,itemId:X,newVoteCount:Q,voteStatus:q,hideItem:A.showRefreshPill})}}}}).finished.then(function(){if(G)for(var T=
N;T<=z;T++)G[T].style.viewTransitionName="";
if(A.showRefreshPill)mWh(_.e5("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var O;if(O=T=(O=A.parentElem)==null?void 0:O.children[f])O=T.getBoundingClientRect(),T=O.bottom,O=!(O.top>=0&&T<=A.clientHeight);O&&(O=_.Gt(t>f?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(t-f)),mWh(O))}})};var Lzd=function(A,t){var f=this;A?this.innertubeTransportServicePromise=Promise.resolve(A):t&&(this.innertubeTransportServicePromise=t(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new bD(3E3,function(X){return yt8(f,X)},0);
this.validateMiniAppVideoIdRateLimiter=new bD(3E3,function(X){return vVm(f,X)},1)},Qfc=function(A,t){A.JSC$17462_miniAppId=t;
A.reportMiniAppValueRateLimiter=new bD(3E3,function(f){return yt8(A,f)},0);
A.validateMiniAppVideoIdRateLimiter=new bD(3E3,function(f){return vVm(A,f)},1)},Jr2=function(A,t){var f;
return _.l(function(X){if(X.nextAddress==1)return X.yield(A.reportMiniAppValueRateLimiter.call(t),2);f=X.yieldResult;return X.return([f,t])})},yt8=function(A,t){var f,X,Q,q,e,G,N;
return _.l(function(z){switch(z.nextAddress){case 1:return z.yield(A.innertubeTransportServicePromise,2);case 2:return f=z.yieldResult,X=_.HE(rAk),Q=Date.now(),q={externalPostId:A.JSC$17462_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Q/1E3),nanos:Math.round(Q%1E3*1E6)},intValue:""+t}},_.ht(z,3),z.yield(_.uE(f,q,X),5);case 5:e=z.yieldResult;_.qq(z,4);break;case 3:throw G=_.vC(z),G;case 4:if(e){if("error"in e&&e.error)throw e.error;if(e.errorMetadata)throw Error("xi`"+
e.errorMetadata.status);if(N=e.userStatResult)return z.return(N);throw Error("yi");}throw Error("zi");}})},ej2=function(A){var t,f,X,Q,q;
_.l(function(e){switch(e.nextAddress){case 1:return e.yield(A.innertubeTransportServicePromise,2);case 2:return t=e.yieldResult,f=_.HE(rAk),X={externalPostId:A.JSC$17462_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.ht(e,3),e.yield(_.uE(t,X,f),5);case 5:Q=e.yieldResult;_.qq(e,4);break;case 3:throw q=_.vC(e),q;case 4:if(Q==null)throw Error("zi");if("error"in Q&&Q.error)throw Q.error;if(Q.errorMetadata)throw Error("xi`"+Q.errorMetadata.status);_.LO(e)}})};
Lzd.prototype.flush=function(){var A=this;return _.l(function(t){return t.nextAddress==1?t.yield(A.reportMiniAppValueRateLimiter.flush(),2):t.yield(A.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var UyQ=function(A,t){return _.l(function(f){return f.nextAddress==1?f.yield(A.validateMiniAppVideoIdRateLimiter.call(t),2):f.return(f.yieldResult)})},vVm=function(A,t){var f,X,Q,q,e,G;
return _.l(function(N){switch(N.nextAddress){case 1:return N.yield(A.innertubeTransportServicePromise,2);case 2:return f=N.yieldResult,X=_.HE($K8),Q={videoId:t},_.ht(N,3),N.yield(_.uE(f,Q,X),5);case 5:q=N.yieldResult;_.qq(N,4);break;case 3:throw e=_.vC(N),e;case 4:if(q){if("error"in q&&q.error)throw q.error;if(q.errorMetadata)throw Error("xi`"+q.errorMetadata.status);if(G=q.playabilityStatus)return N.return(G.status);throw Error("Ai");}throw Error("zi");}})};
Lzd[T7]=[_.z7(_.iY),_.z7(v98)];var pCQ=function(){this.clientData=new Map};
pCQ.prototype.getData=function(A){return this.clientData.get(A)};var EVQ=function(A){this.store=A};
EVQ.prototype.handleResponse=function(A){(A=_.C(A.frameworkUpdates,Zn))&&_.l$(A,this.store)};
EVQ[T7]=[_.Xk];var nVd=new _.eh("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var DWQ,Fzd;_.dr=new _.eh("FLOW_STATE_MANAGER_TOKEN");DWQ=function(){this.flowStates=new Map};
Fzd=function(A,t){A=_.U(A.flowStates.values());for(var f=A.next();!f.done;f=A.next())if(f=f.value,f.flowRenderer.targetId===t)return f};var IH_=function(A,t){this.JSC$17487_reduxStore=A;this.JSC$17487_flowStateManager=t};
_.R(IH_,Tu);
IH_.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O,c,B,h;return _.l(function(W){f=_.C(A,_.qwS);X=f.stepId;Q=f.targetId;q=Fzd(t.JSC$17487_flowStateManager,Q);G=(e=q)==null?void 0:e.flowRenderer;N=G.flowStateEntityKey;z=_.SM(t.JSC$17487_reduxStore.getState(),N);if(!z)return W.return();T=z.currentStepId;B=(c=(O=z)==null?void 0:O.stepIdStack)!=null?c:[];h=T===B[B.length-1]?X:T;t.JSC$17487_reduxStore.dispatch(_.m0("flowStateEntity",N,{currentStepId:X,stepIdStack:[h]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.LO(W)})};
var xWd=function(){IH_.apply(this,arguments)};
_.R(xWd,IH_);xWd[T7]=[_.Xk,_.dr];var j9l=function(A,t,f){this.JSC$17494_reduxStore=A;this.JSC$17494_flowStateManager=t;this.JSC$17494_commandHandler=f};
_.R(j9l,Tu);
j9l.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c,B,h,W;return _.l(function(L){X=_.C(A,_.JSE);Q=X.targetId;q=Fzd(f.JSC$17494_flowStateManager,Q);G=(e=q)==null?void 0:e.flowRenderer;N=G.flowStateEntityKey;z=_.SM(f.JSC$17494_reduxStore.getState(),N);c=[].concat(_.YV((O=(T=z)==null?void 0:T.stepIdStack)!=null?O:[]));B=c.pop();((h=z)==null?void 0:h.currentStepId)===B&&(B=c[c.length-1]);if(!B)return(W=X.onFirstStepCommand)&&f.JSC$17494_commandHandler.resolveCommand(W,t),L.return();
f.JSC$17494_reduxStore.dispatch(_.m0("flowStateEntity",N,{currentStepId:B,stepIdStack:c}));_.LO(L)})};
var YV3=function(){j9l.apply(this,arguments)};
_.R(YV3,j9l);YV3[T7]=[_.Xk,_.dr,_.i2];var VOd=function(A,t){this.innertubeTransportService=A;this.JSC$17499_commandHandler=t};
_.R(VOd,Tu);VOd.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1){X=_.C(A,U2b);if(!X)return N.return();_.ht(N,2);return N.yield(_.jl(f.innertubeTransportService,A),4)}if(N.nextAddress!=2){Q=N.yieldResult;if(!Q)return N.return();(q=Q.updateFlowCommand)&&f.JSC$17499_commandHandler.resolveCommand(q,t);return _.qq(N,0)}_.vC(N);(G=(e=X)==null?void 0:e.onFailureCommand)&&f.JSC$17499_commandHandler.resolveCommand(G,t);_.LO(N)})};
var ZOc=function(){VOd.apply(this,arguments)};
_.R(ZOc,VOd);ZOc[T7]=[_.iY,_.i2];var oVm=function(A,t){this.JSC$17505_flowStateManager=A;this.JSC$17505_commandHandler=t};
_.R(oVm,Tu);
oVm.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e;return _.l(function(G){X=_.C(A,_.GnT);Q=X.targetId;q=Fzd(f.JSC$17505_flowStateManager,Q);if(!q)return G.return(Promise.resolve());var N=q,z=(e=X.steps)!=null?e:[],T,O=(T=N.flowRenderer.steps)!=null?T:[];z=[].concat(_.YV(O),_.YV(z));N.flowRenderer.steps=z;X.flowContinuationCommand&&(q.flowRenderer.flowContinuationCommand=X.flowContinuationCommand);X.entityUpdateCommand&&f.JSC$17505_commandHandler.resolveCommand(X.entityUpdateCommand,t);
return G.return(Promise.resolve())})};
var Ss=function(){oVm.apply(this,arguments)};
_.R(Ss,oVm);Ss[T7]=[_.dr,_.i2];var dW3={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]],google_messages:[[0,1,192]],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_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[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_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 SVc=new _.eh("ICON_SET_TOKEN"),$Wc=new _.eh("ICON_URL_PROVIDER_TOKEN"),HOd=new _.eh("PREFETCH_ICONS_TOKEN"),aHj=new _.eh("ICON_MAP_FN_TOKEN");var $Q={},Kzl=($Q.ACCESS_TIME="clock",$Q.ACCOUNT_BOX=_.ah("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",$Q.ACCOUNT_BOX_CAIRO="person_account_cairo",$Q.ACCOUNT_CIRCLE="person_circle",$Q.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",$Q.ACCOUNT_LINKED="account_link_success",$Q.ACCOUNT_UNLINKED="account_link",$Q.ADD_FRIEND="people",$Q.ADD_MODERATOR="shield_add",$Q.ADD_TO_LIBRARY="bookmark",$Q.ADD_TO_PLAYLIST="add",$Q.ADD_TO_QUEUE_TAIL="list_queue",$Q.ADD_TO_REMOTE_QUEUE="list_music",
$Q.ADD_TO_WATCH_LATER="clock",$Q.ADD_VIDEO_LINK="film_strip_add",$Q.ALERT_WARN_RED="alert_triangle",$Q.ARROW_BACK="arrow_left",$Q.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",$Q.ARROW_DROP_DOWN="chevron_down",$Q.ARROW_DROP_UP="chevron_up",$Q.ARROW_FORWARD="arrow_right",$Q.ARTIST="person_music",$Q.AUDIOTRACK="audio",$Q.AUTO_AWESOME="sparkle",$Q.AVATAR_ANONYMOUS="person_circle",$Q.AVATAR_LOGGED_OUT="person_circle",$Q.BACK="arrow_left",$Q.BAR_CHART="bar_graph",$Q.BLOCK="slash_circle_left",
$Q.BLOCK_USER="slash_circle_left",$Q.BOOKMARK_BORDER="bookmark",$Q.BREAKING_NEWS_ALT_1="article_alert",$Q.BROADCAST_CAIRO="podcast_cairo",$Q.BUG_REPORT="bug",$Q.CAMERA_ALT="camera",$Q.CAMPAIGN="megaphone",$Q.CANCEL="x_circle",$Q.CAPTIONS="closed_caption",$Q.CAST_OUTLINE="chromecast",$Q.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",$Q.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",$Q.CHAT="message_bubble_left",$Q.CHAT_BUBBLE="message_bubble_empty",$Q.CHAT_SPARK="spark_message_bubble_left",$Q.CHECK_BOX_OUTLINE_BLANK=
"box_empty",$Q.CHECK_CIRCLE_OUTLINE="check_circle",$Q.CHECK_CIRCLE_THICK="check_circle",$Q.CLARIFY="article_clarify",$Q.CLOSED_CAPTION_SELECTED="closed_caption",$Q.CLOSE="x_mark",$Q.CLOUD_UPLOAD="cloud_arrow_up",$Q.COLLAPSE="chevron_up",$Q.COLLAPSE_CAIRO="chevron_up_cairo",$Q.COLLECTION="layers",$Q.COLOR_LENS="palette",$Q.COMMENT="message_bubble_right",$Q.CONSENT_SHIELD="person_shield",$Q.CONTENT_CUT="scissors",$Q.CONTENT_CUT_CAIRO="scissors_cairo",$Q.COURSE=_.M("web_enable_course_icon_update")?"creator_academy":
"lightbulb",$Q.COURSE_CAIRO=_.M("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",$Q.CREATION_LIVE="radar_live",$Q.CREATION_POST="box_pencil",$Q.CREATION_UPLOAD="my_videos",$Q.CREATION_UPLOAD_RED="upload",$Q.CREATOR_METADATA_MONETIZATION="dollar_sign",$Q.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",$Q.CREATOR_STUDIO="youtube_studio",$Q.DASHBOARD="grid_asymmetrical",$Q.DELETE="trash_can",$Q.DELETE_SWEEP="trash_can",$Q.DESKTOP="laptop",$Q.DISLIKE="thumb_down",$Q.DISLIKE_SELECTED=
"thumb_down",$Q.DISMISSAL="x_mark",$Q.DISMISS_QUEUE="list_remove",$Q.DONE_ALL="check_double",$Q.DOWN_ARROW="arrow_down",$Q.DO_NOT_DISTURB="slash_circle_left",$Q.DRAFT="paper_corner_folded",$Q.DRAG_HANDLE="bars_2",$Q.EDIT="pencil",$Q.EMOJI="face_very_happy",$Q.EMOJI_FLAGS="flag",$Q.EMOJI_OBJECTS="lightbulb",$Q.EMOJI_PEOPLE="face_very_happy",$Q.EMOJI_RECENT="clock",$Q.EMPTY_HEART="heart",$Q.EMPTY_LIKE="thumb_up",$Q.ERROR_BLACK="alert_circle",$Q.ERROR_OUTLINE="alert_circle",$Q.EXIT_APP="arrow_in",$Q.EXIT_TO_APP=
"arrow_in",$Q.EXPAND="chevron_down",$Q.EXPAND_ALL="chevron_expand",$Q.EXPAND_CAIRO="chevron_down_cairo",$Q.EXPAND_LESS="chevron_up",$Q.EXPAND_MORE="chevron_down",$Q.EXPLORE="compass",$Q.EXPLORE_DESTINATION="compass",$Q.EXTERNAL_LINK="open_new",$Q.FAB_UPLOAD="upload",$Q.FACE_HAPPY_OUTLINE="face_happy",$Q.FACT_CHECK="article_check",$Q.FASHION_LOGO="fashion",$Q.FASHION_LOGO_CAIRO="fashion_cairo",$Q.FAVORITE="heart",$Q.FEEDBACK="message_bubble_alert",$Q.FEEDBACK_CAIRO="message_bubble_alert_cairo",$Q.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",$Q.FILL_ARROW_SOLID_UP_16="arrow_solid_up",$Q.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",$Q.FILTER="menu_filter",$Q.FIRST_PAGE="chevron_first",$Q.FLAG="flag",$Q.FULL_HEART="heart",$Q.GAME_CONSOLE_DPAD="game_console_dpad",$Q.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",$Q.GAMING_LOGO="gaming",$Q.GAMING_LOGO_CAIRO="gaming_cairo",$Q.GO_TO_PAGE="arrow_right",$Q.GROUPS="people_group",$Q.HAPPY="face_happy",$Q.HEALTH_AND_SAFETY="shield_plus",$Q.HELP="question_circle",$Q.HELP_CAIRO=
"question_circle_cairo",$Q.HELP_OUTLINE="question_circle",$Q.HIDE="slash_circle_left",$Q.IMAGE="image",$Q.INFINITY_ICON="infinity",$Q.INFO="info_circle",$Q.INFO_OUTLINE="info_circle",$Q.INSERT_CHART="bar_graph_box_vertical",$Q.INSERT_CHART_OUTLINED="bar_graph_box_vertical",$Q.INSERT_PHOTO="image",$Q.KEEP="pin",$Q.KEEP_OFF="pin_off",$Q.KEYBOARD="keyboard",$Q.KEYBOARD_ARROW_DOWN="chevron_down",$Q.KEYBOARD_ARROW_UP="chevron_up",$Q.KIDS_BLOCK="slash_circle_left",$Q.LANGUAGE="globe",$Q.LAST_PAGE="chevron_last",
$Q.LAUNCH="open_new",$Q.LEARNING="lightbulb",$Q.LEARNING_CAIRO="lightbulb_cairo",$Q.LIBRARY_ADD=lyq("library_add"),$Q.LIBRARY_OUTLINE="library",$Q.LIBRARY_REMOVE=lyq(),$Q.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",$Q.LIKES_PLAYLIST="thumb_up",$Q.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",$Q.LIKE="thumb_up",$Q.LIKE_SELECTED="thumb_up",$Q.LIVE="radar_live",$Q.LIVE_CAIRO="radar_live_cairo",$Q.LIVE_UNLISTED="link",$Q.LOCATION_ON="location_point",$Q.LOCATION_PIN="location_point",$Q.LOOP="arrow_repeat",$Q.LOOP_ACTIVE=
"arrow_repeat",$Q.LOOP_ONE="arrow_repeat_1",$Q.LOOP_ONE_ACTIVE="arrow_repeat_1",$Q.MEH="face_meh",$Q.MEMBERS_ONLY_MODE_OFF="message_bubble_left",$Q.MESSAGE="message_bubble_left",$Q.MICROPHONE_ON="mic",$Q.MIX="youtube_mix",$Q.MONETIZATION_ON="dollar_sign_circle",$Q.MONEY_FILL="dollar_sign_container",$Q.MONEY_FILL_JPY="yen_sign_container",$Q.MONEY_HEART="dollar_sign_heart",$Q.MORE_HORIZ="overflow_horizontal",$Q.MORE_VERT="overflow_vertical",$Q.MUSIC="audio",$Q.MUSIC_CAIRO="audio_cairo",$Q.MUSIC_NOTE_SYMBOL=
"music",$Q.MUSIC_SHUFFLE="arrow_shuffle",$Q.MY_CHANNEL="person_circle",$Q.MY_LOCATION="location_point",$Q.NEWS_STORY="news",$Q.NEXT="chevron_right",$Q.NOTIFICATIONS="bell",$Q.NOTIFICATIONS_ACTIVE="bell_on",$Q.NOTIFICATIONS_CAIRO="bell_cairo",$Q.NOTIFICATIONS_DONE_CHECKMARK="check",$Q.NOTIFICATIONS_INBOX="bell",$Q.NOTIFICATIONS_NONE="bell",$Q.NOTIFICATIONS_OFF="bell_off",$Q.NOT_INTERESTED="slash_circle_left",$Q.OFFICIAL_ARTIST_BADGE="audio",$Q.OFFLINE_CLOUD="cloud_off",$Q.OFFLINE_DOWNLOAD="download",
$Q.OFFLINE_DOWNLOAD_CAIRO="download_cairo",$Q.OFFLINE_PAUSE="pause",$Q.OPEN_IN_NEW="open_new",$Q.OUTLINE_ADJUST="adjust",$Q.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",$Q.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",$Q.OUTLINE_BAG="bag",$Q.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",$Q.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",$Q.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",$Q.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",$Q.PAID="dollar_sign",$Q.PAUSE_OUTLINED="pause",$Q.PAYMENT=
"credit_card",$Q.PERSON_RADAR_FILLED="person_radar",$Q.PHONE_DOWNLOAD="mobile_download",$Q.PLAYABLES_LOGO="tic_tac_toe",$Q.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",$Q.PLAYLISTS="list_play_arrow",$Q.PLAYLISTS_CAIRO="list_play_arrow_cairo",$Q.PLAYLIST_ADD=lyq("list_add"),$Q.PLAYLIST_ADD_CHECK=lyq("list_check"),$Q.PLAYLIST_PLAY="list_play_arrow",$Q.PLAY_ALL="play_arrow",$Q.PLAY_CIRCLE="play_arrow_circle",$Q.PLAY_OUTLINED="play_arrow_circle",$Q.PRIVACY_INFO="shield",$Q.PRIVACY_PRIVATE="lock",$Q.PRIVACY_PUBLIC=
"earth",$Q.PRIVACY_UNLISTED="link",$Q.PROMOTE="megaphone",$Q.PURCHASES="price_tag",$Q.PURCHASE_SUPER_CHAT="super_chat",$Q.PURCHASE_SUPER_STICKER="super_sticker",$Q.QUESTION_ANSWER="message_bubble_question",$Q.QUEUE_PLAY_LAST="list_queue_last",$Q.QUEUE_PLAY_NEXT="list_play_arrow",$Q.REMIX_FILLED="youtube_shorts_remix",$Q.REMOVE="bar_circle",$Q.REMOVE_CIRCLE="bar_circle",$Q.REMOVE_CIRCLE_OUTLINE="bar_circle",$Q.REMOVE_DONE="check_double_off",$Q.REMOVE_FROM_HISTORY="bar_circle",$Q.REMOVE_FROM_PLAYLIST=
"bar_circle",$Q.REMOVE_MODERATOR="shield_off",$Q.REPLAY="arrow_circle",$Q.REPLAY_10="skip_back_10",$Q.REPORT_PROBLEM="alert_triangle",$Q.SAD="face_sad",$Q.SAVE_PLAYLIST="bookmark",$Q.SCHEDULE="clock",$Q.SCHOOL="creator_academy",$Q.SCREEN_FULLSCREEN="screen_full",$Q.SEARCH_HISTORY="arrow_time",$Q.SELL="price_tag",$Q.SETTINGS="gear",$Q.SETTINGS_CAIRO="gear_cairo",$Q.SETTINGS_LIGHT="gear",$Q.SETTINGS_MATERIAL="gear",$Q.SHARE_ARROW="share",$Q.SHIELD_WITH_AVATAR="person_shield",$Q.SHOPPING_BAG="bag",$Q.SHOPPING_BAG_CAIRO=
"bag_cairo",$Q.SHOPPING_CART="cart",$Q.SHORTS_COMMENT="youtube_shorts_message_bubble_right",$Q.SHORTS_DISLIKE="youtube_shorts_thumb_down",$Q.SHORTS_LIKE="youtube_shorts_thumb_up",$Q.SHORTS_SHARE="youtube_shorts_share",$Q.SHUFFLE="arrow_shuffle",$Q.SLOW_MODE_OFF="message_bubble_left",$Q.SOCIAL="people",$Q.SORT="menu_sort",$Q.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",$Q.SPEED_1X="1x",$Q.SPEED_1_POINT_2X="1_point_2x",$Q.SPEED_1_POINT_5X="1_point_5x",$Q.SPEED_1_POINT_8X="1_point_8x",$Q.SPEED_2X="2x",
$Q.SPEED_POINT_2X="point_2x",$Q.SPEED_POINT_8X="point_8x",$Q.SPONSORSHIP_STAR="star_circle",$Q.STAFF_PICK="spotlight",$Q.START_DVR="add",$Q.STAR_BORDER="star",$Q.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",$Q.STICKER_EMOTICON="face_happy",$Q.STOP_DVR="stop",$Q.SUBSCRIBE="youtube_logo_icon",$Q.SUBSCRIBE_PLUS="add_cairo",$Q.SUBSCRIPTION_MANAGER="gear",$Q.SUPERVISOR_ACCOUNT="people",$Q.SUPER_CHAT_FOR_GOOD="hands_heart",$Q.SWAP_HORIZ="arrow_swap_horizontal",$Q.SWITCH_ACCOUNTS="person_account",$Q.TAB_ACCOUNT=
"person",$Q.TAB_ACTIVITY="bell",$Q.TAB_BOOKMARK="bookmark",$Q.TAB_EXPLORE="compass",$Q.TAB_HOME="home",$Q.TAB_HOME_CAIRO="home_cairo",$Q.TAB_INBOX="mail",$Q.TAB_LIKED="thumb_up",$Q.TAB_MUSIC_PREMIUM="youtube_music",$Q.TAB_SHORTS="youtube_shorts",$Q.TAB_SHORTS_CAIRO="youtube_shorts_cairo",$Q.TAB_SUBSCRIPTIONS="subscriptions",$Q.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",$Q.TAB_TRENDING="fire",$Q.TIMER="stopwatch",$Q.TRAILER="youtube_originals",$Q.TRENDING="fire",$Q.TRENDING_CAIRO="fire_cairo",$Q.TRENDING_DOWN=
"rating_down",$Q.TRENDING_UP="rating_up",$Q.TROPHY="trophy",$Q.TROPHY_CELEBRATIONS="fireworks",$Q.TUNE="adjust",$Q.UNBLOCK_USER="bar_circle",$Q.UNLIMITED="youtube_logo_icon",$Q.UNPLUGGED_LIVE_GUIDE="radar_live",$Q.UNPLUGGED_SPORTS="eye_off",$Q.UPLOADS="library",$Q.UP_ARROW="arrow_up",$Q.VERTICAL_ALIGN_BOTTOM="download",$Q.VERY_HAPPY="face_very_happy",$Q.VERY_SAD="face_very_sad",$Q.VIDEOGAME_ASSET="gaming",$Q.VIDEOS="play_arrow_circle",$Q.VIDEO_CALL="video_camera_add",$Q.VIDEO_LIBRARY_WHITE="library",
$Q.VIDEO_YOUTUBE="youtube_logo_icon",$Q.VIEW_LIST="list_view",$Q.VIEW_LIST_CAIRO="list_view_cairo",$Q.VISIBILITY="eye",$Q.VISIBILITY_OFF="eye_off",$Q.VOLUME_MUTE="volume_off",$Q.VOLUME_UP="volume_on",$Q.WALLPAPER="image",$Q.WARNING="alert_triangle",$Q.WATCH_HISTORY="arrow_time",$Q.WATCH_HISTORY_CAIRO="arrow_time_cairo",$Q.WATCH_LATER="clock",$Q.WATCH_LATER_CAIRO="clock_cairo",$Q.WATCH_RELATED_MIX="youtube_mix",$Q.WHAT_TO_WATCH="home",$Q.YOUTUBE_MUSIC_MONOCHROME="youtube_music",$Q.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",$Q.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",$Q.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",$Q.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",$Q.YT_OUTLINE_MUSIC_24="music",$Q);var Hk={},gV8=(Hk.ACCESS_TIME="clock",Hk.ACCOUNT_BOX="person_square",Hk.ACCOUNT_BOX_CAIRO="person_square",Hk.ACCOUNT_CIRCLE="person_circle",Hk.ACCOUNT_CIRCLE_CAIRO="person_circle",Hk.ACCOUNT_LINKED="account_link",Hk.ACCOUNT_UNLINKED="account_link",Hk.ADD_CIRCLE="add_circle",Hk.ADD_CIRCLE_OUTLINE="add_circle",Hk.ADD_FRIEND="person_child",Hk.ADD_MODERATOR="shield_add",Hk.ADD_TO_LIBRARY="bookmark",Hk.ADD_TO_PLAYLIST="add",Hk.ADD_TO_QUEUE_TAIL="queue",Hk.ADD_TO_REMOTE_QUEUE="playlist_audio",Hk.ADD_TO_WATCH_LATER=
"clock",Hk.ADD_VIDEO_LINK="film_strip_add",Hk.ADMIN_PANEL_SETTINGS="person_gear",Hk.ALERT_WARN_RED="alert_triangle",Hk.ALIGN_LEFT="text_align_left",Hk.ARROWS_ALERT="arrow_split_alert",Hk.ARROW_BACK="arrow_left",Hk.ARROW_CIRCLE="arrow_counterclockwise",Hk.ARROW_CIRCLE_PLAY="replay",Hk.ARROW_CIRCLE_RIGHT="arrow_clockwise",Hk.ARROW_DIAGONAL="arrow_up_left",Hk.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Hk.ARROW_DROP_DOWN="triangle_down",Hk.ARROW_DROP_UP="triangle_up",Hk.ARROW_FORWARD="arrow_right",Hk.ARROW_PAUSE=
"pause_history",Hk.ARROW_UNDO="undo",Hk.ARTICLE="text_page",Hk.ARTICLE_ALERT="text_page_alert",Hk.ARTICLE_CHECK="text_page_check",Hk.ARTICLE_CLARIFY="text_page_info",Hk.ARTIST="person_audio",Hk.AUDIOTRACK="audio",Hk.AUDIO_BADGE="audio_badge",Hk.AUDIO_SURROUND="surround_sound",Hk.AUTO_AWESOME="sparkles",Hk.AVATAR_ANONYMOUS="person_circle",Hk.AVATAR_LOGGED_OUT="person_circle",Hk.BACK="arrow_left",Hk.BAR_CHART="chart_bar",Hk.BAR_CIRCLE="minus_circle",Hk.BAR_HORIZONTAL="minus",Hk.BLOCK="circle_slash",
Hk.BLOCK_USER="circle_slash",Hk.BOOKMARK_BORDER="bookmark",Hk.BOX_OPEN_CHECK="quiz",Hk.BOX_PENCIL="square_pencil",Hk.BOX_STACK_3="square3_stack",Hk.BREAKING_NEWS_ALT_1="text_page_alert",Hk.BROADCAST="podcast",Hk.BROADCAST_CAIRO="podcast",Hk.BUG_REPORT="bug",Hk.CAMERA_ALT="camera",Hk.CAMPAIGN="megaphone",Hk.CANCEL="x_circle",Hk.CAPTIONS="closed_captions",Hk.CAST_ICON="chromecast",Hk.CAST_OUTLINE="chromecast",Hk.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Hk.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
Hk.CHAT="text_bubble",Hk.CHAT_BUBBLE="bubble",Hk.CHECK_BOX="check_square",Hk.CHECK_BOX_OUTLINE_BLANK="square",Hk.CHECK_CIRCLE_FILLED="check_circle",Hk.CHECK_CIRCLE_OUTLINE="check_circle",Hk.CHECK_CIRCLE_THICK="check_circle",Hk.CHECK_DOUBLE="check_done",Hk.CHECK_DOUBLE_OFF="check_done_slash",Hk.CHEVRON_LEFT="chevron_left",Hk.CHEVRON_RIGHT="chevron_right",Hk.CHEVRON_RIGHT_CAIRO="chevron_right",Hk.CIRCLES_OVERLAP="account_link",Hk.CLAPPERBOARD_CAIRO="clapperboard",Hk.CLARIFY="text_page_info",Hk.CLOCK_ARROWS=
"clock_split",Hk.CLOCK_ARROWS_ALERT="clock_split_alert",Hk.CLOSED_CAPTION="closed_captions",Hk.CLOSED_CAPTION_SELECTED="closed_captions",Hk.CLOSE="x",Hk.CLOUD_UPLOAD="cloud_arrow_up",Hk.COLLAPSE="chevron_up",Hk.COLLAPSE_CAIRO="chevron_up",Hk.COLLECTION="square3d_stack",Hk.COLOR_LENS="paint_palette",Hk.COMMENT="text_bubble",Hk.CONSENT_SHIELD="person_shield",Hk.CONTENT_CUT="scissors",Hk.CONTENT_CUT_CAIRO="scissors",Hk.COURSE="graduation_cap",Hk.COURSE_CAIRO="graduation_cap",Hk.CREATION_LIVE="live",
Hk.CREATION_POST="square_pencil",Hk.CREATION_UPLOAD="video",Hk.CREATION_UPLOAD_RED="upload",Hk.CREATOR_ACADEMY="graduation_cap",Hk.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",Hk.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",Hk.CREATOR_STUDIO="youtube_studio",Hk.DARK_THEME="theme",Hk.DELETE="trash_can",Hk.DELETE_SWEEP="trash_can",Hk.DESKTOP="laptop",Hk.DISLIKE="thumb_down",Hk.DISLIKE_SELECTED="thumb_down",Hk.DISMISSAL="x",Hk.DISMISS_QUEUE="playlist_x",Hk.DOGFOOD="pawprint",Hk.DOLLAR_SIGN=
"dollar_sign_circle",Hk.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Hk.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Hk.DOWN_ARROW="arrow_down",Hk.DO_NOT_DISTURB="circle_slash",Hk.DRAFT="document",Hk.DRAG_HANDLE="equal",Hk.EARTH="globe",Hk.EDIT="pencil",Hk.EMOJI="face_very_happy",Hk.EMOJI_FLAGS="flag",Hk.EMOJI_OBJECTS="lightbulb",Hk.EMOJI_PEOPLE="face_very_happy",Hk.EMOJI_RECENT="clock",Hk.EMPTY_HEART="heart",Hk.EMPTY_LIKE="thumb_up",Hk.ERROR_BLACK="alert_circle",Hk.ERROR_OUTLINE="alert_circle",Hk.ERROR_WHITE=
"alert_circle",Hk.EXIT_APP="arrow_in",Hk.EXIT_TO_APP="arrow_in",Hk.EXPAND="chevron_down",Hk.EXPAND_ALL="chevron_expand",Hk.EXPAND_CAIRO="chevron_down",Hk.EXPAND_LESS="chevron_up",Hk.EXPAND_MORE="chevron_down",Hk.EXPLORE="compass",Hk.EXPLORE_DESTINATION="compass",Hk.EXTERNAL_LINK="arrow_up_right",Hk.EYE_OFF="eye_slash",Hk.FAB_UPLOAD="upload",Hk.FACE_HAPPY_OUTLINE="face_happy",Hk.FACE_MEH="face_neutral",Hk.FACT_CHECK="text_page_check",Hk.FASHION_LOGO="fashion",Hk.FASHION_LOGO_CAIRO="fashion",Hk.FAVORITE=
"thumb_up",Hk.FEEDBACK="alert_bubble",Hk.FEEDBACK_CAIRO="alert_bubble",Hk.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Hk.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Hk.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Hk.FIRST_PAGE="chevron_left_end",Hk.FLAG_CAIRO="flag",Hk.FLASH_OFF="flash_slash",Hk.FLASH_ON="flash",Hk.FULL_HEART="heart",Hk.GAMING_LOGO="gaming",Hk.GAMING_LOGO_CAIRO="gaming",Hk.GO_TO_PAGE="arrow_right",Hk.GRID_ASYMMETRICAL="dashboard",Hk.GROUPS="person3",Hk.HAND_SWIPE_LEFT="gesture_swipe_left",
Hk.HAND_SWIPE_RIGHT="gesture_swipe_right",Hk.HAPPY="face_happy",Hk.HEALTH_AND_SAFETY="shield_health",Hk.HEART_BOX="heart_cube",Hk.HELP="help_circle",Hk.HELP_CAIRO="help_circle",Hk.HELP_OUTLINE="help_circle",Hk.HIDE="circle_slash",Hk.INCOGNITO_CAIRO="incognito",Hk.INFINITY_ICON="infinity",Hk.INFO="info_circle",Hk.INFO_OUTLINE="info_circle",Hk.INSERT_CHART="chart_bar_square",Hk.INSERT_CHART_OUTLINED="chart_bar_square",Hk.INSERT_PHOTO="image",Hk.KEEP="pin",Hk.KEEP_OFF="pin_slash",Hk.KEYBOARD="keyboard",
Hk.KEYBOARD_ARROW_DOWN="chevron_down",Hk.KEYBOARD_ARROW_UP="chevron_up",Hk.KIDS_BLOCK="circle_slash",Hk.LANGUAGE="globe",Hk.LAST_PAGE="chevron_right_end",Hk.LAUNCH="arrow_up_right",Hk.LEARNING="lightbulb",Hk.LEARNING_CAIRO="lightbulb",Hk.LIBRARY_ADD="bookmark",Hk.LIBRARY_IMAGE="image_stack",Hk.LIBRARY_MUSIC="audio_square_stack",Hk.LIBRARY_OUTLINE="play_square_stack",Hk.LIBRARY_REMOVE="bookmark",Hk.LIBRARY_SAVED="check_square_stack",Hk.LIKES_PLAYLIST="thumb_up",Hk.LIKES_PLAYLIST_CAIRO="thumb_up",Hk.LIKE=
"thumb_up",Hk.LIKE_SELECTED="thumb_up",Hk.LIST_QUEUE="queue",Hk.LIVE_CAIRO="live",Hk.LIVE_UNLISTED="link",Hk.LOCATION_ON="location_pin",Hk.LOCATION_PIN="location_pin",Hk.LOCATION_POINT="location_pin",Hk.LOOP="repeat",Hk.LOOP_ACTIVE="repeat",Hk.LOOP_ONE="repeat1",Hk.LOOP_ONE_ACTIVE="repeat1",Hk.MEET="google_meet",Hk.MEH="face_neutral",Hk.MEMBERSHIPS="memberships",Hk.MEMBERS_ONLY_MODE_OFF="text_bubble",Hk.MENU_FILTER="filter",Hk.MESSAGE="text_bubble",Hk.MESSAGE_BUBBLE_GEAR="bubble_gear",Hk.MESSAGE_BUBBLE_LEFT=
"text_bubble",Hk.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Hk.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Hk.MESSAGE_BUBBLE_QUESTION="help_bubble",Hk.MICROPHONE_ON="mic",Hk.MONETIZATION_ON="dollar_sign_circle",Hk.MONEY_FILL="dollar_sign_rectangle",Hk.MONEY_FILL_JPY="yen_sign_rectangle",Hk.MONEY_HAND="dollar_sign_circle_hand",Hk.MONEY_HEART="dollar_sign_heart",Hk.MOON_Z="sleep_timer",Hk.MORE_HORIZ="overflow_horizontal",Hk.MORE_VERT="overflow_vertical",Hk.MUSIC="audio",Hk.MUSIC_CAIRO="audio",Hk.MUSIC_EXPLICIT_BADGE=
"explicit",Hk.MUSIC_NEW_RELEASE="audio_badge",Hk.MUSIC_NOTE_SYMBOL="audio",Hk.MUSIC_SCISSORS="audio_scissors",Hk.MUSIC_SHUFFLE="shuffle",Hk.MY_CHANNEL="person_circle",Hk.MY_LOCATION="location_pin",Hk.MY_VIDEOS="video",Hk.MY_VIDEOS_CAIRO="video",Hk.NEWS_CAIRO="news",Hk.NEWS_STORY="news",Hk.NEXT="chevron_right",Hk.NOTE_ADD="bubble_pencil",Hk.NOTIFICATIONS="bell",Hk.NOTIFICATIONS_ACTIVE="bell_waves",Hk.NOTIFICATIONS_CAIRO="bell",Hk.NOTIFICATIONS_DONE_CHECKMARK="check",Hk.NOTIFICATIONS_INBOX="bell",Hk.NOTIFICATIONS_NONE=
"bell",Hk.NOTIFICATIONS_OFF="bell_slash",Hk.NOT_INTERESTED="circle_slash",Hk.OFFICIAL_ARTIST_BADGE="audio",Hk.OFFLINE_CLOUD="cloud_slash",Hk.OFFLINE_DOWNLOAD="download",Hk.OFFLINE_DOWNLOAD_CAIRO="download",Hk.OFFLINE_PAUSE="pause",Hk.OPEN_IN_NEW="arrow_up_right",Hk.OUTLINE_ADJUST="adjust",Hk.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Hk.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Hk.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Hk.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Hk.OUTLINE_BAG="bag",Hk.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",Hk.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Hk.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Hk.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Hk.PAID="dollar_sign_circle",Hk.PAUSE_OUTLINED="pause",Hk.PAYMENT="credit_card",Hk.PEOPLE="person_child",Hk.PEOPLE_2="person2_rectangle",Hk.PEOPLE_GROUP="person3",Hk.PEOPLE_NOTE="bubble_asterisk",Hk.PERSON_2="person2",Hk.PERSON_ACCOUNT="person_square_stack",Hk.PERSON_MINUS="person_x",Hk.PERSON_MUSIC="person_audio",Hk.PERSON_RADAR="person_waves",
Hk.PERSON_RADAR_FILLED="person_waves",Hk.PERSON_SETTING="person_gear",Hk.PHONE="phone",Hk.PHONE_DOWNLOAD="mobile_arrow_down",Hk.PICTURE_IN_PICTURE="picture_in_picture",Hk.PLAYABLES_LOGO="playables",Hk.PLAYABLES_LOGO_CAIRO="playables",Hk.PLAYLISTS="playlist",Hk.PLAYLISTS_CAIRO="playlist",Hk.PLAYLIST_ADD_CHECK="bookmark",Hk.PLAY_ALL="play",Hk.PLAY_ARROW="play",Hk.PLAY_ARROW_CIRCLE="play_circle",Hk.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Hk.PLAY_CIRCLE="play_circle",Hk.PLAY_OUTLINED="play_circle",
Hk.PODCAST_ADD="podcast_add",Hk.PODCAST_CHECK="podcast_check",Hk.PRIVACY_INFO="shield_x",Hk.PRIVACY_PRIVATE="lock",Hk.PRIVACY_PUBLIC="globe",Hk.PRIVACY_UNLISTED="link",Hk.PROMOTE="megaphone",Hk.PURCHASES="price_tag",Hk.PURCHASE_SUPER_CHAT="super_chat",Hk.PURCHASE_SUPER_STICKER="super_sticker",Hk.QUESTION_ANSWER="help_bubble",Hk.QUESTION_CIRCLE="help_circle",Hk.QUEUE_PLAY_LAST="queue_last",Hk.QUEUE_PLAY_NEXT="queue_next",Hk.QUOTATION_MARK="quote",Hk.RADAR_LIVE="live",Hk.REMOVE="minus_circle",Hk.REMOVE_CIRCLE=
"minus_circle",Hk.REMOVE_CIRCLE_OUTLINE="minus_circle",Hk.REMOVE_FROM_HISTORY="minus_circle",Hk.REMOVE_FROM_PLAYLIST="minus_circle",Hk.REMOVE_MODERATOR="shield_slash",Hk.REPLAY="arrow_counterclockwise",Hk.REPLAY_10="skip10_back",Hk.REPLAY_ARROW="replay",Hk.REPORT_PROBLEM="alert_triangle",Hk.RSS_OFF="rss_slash",Hk.SAD="face_sad",Hk.SAVE_PLAYLIST="bookmark",Hk.SCHEDULE="clock",Hk.SCHOOL="graduation_cap",Hk.SCREEN_DEFAULT="player_default",Hk.SCREEN_FULLSCREEN="player_full_enter",Hk.SCREEN_LIGHT="ambient_mode",
Hk.SCREEN_ROTATION="rotate_portrait",Hk.SCREEN_SWITCH="player_switch",Hk.SCREEN_THEATRE="player_theater",Hk.SEARCH_CAIRO="search",Hk.SEARCH_HISTORY="history",Hk.SELL="price_tag",Hk.SETTINGS="gear",Hk.SETTINGS_CAIRO="gear",Hk.SETTINGS_LIGHT="gear",Hk.SETTINGS_MATERIAL="gear",Hk.SETTINGS_REMOTE="remote_waves",Hk.SHARE="share",Hk.SHARE_ARROW="share",Hk.SHARE_CAIRO="share",Hk.SHIELD="shield_x",Hk.SHIELD_EMPTY="shield",Hk.SHIELD_OFF="shield_slash",Hk.SHIELD_WITH_AVATAR="person_shield",Hk.SHOPPING_BAG=
"bag",Hk.SHOPPING_BAG_CAIRO="bag",Hk.SHOPPING_CART="cart",Hk.SHORTS_COMMENT="text_bubble",Hk.SHORTS_DISLIKE="thumb_down",Hk.SHORTS_LIKE="thumb_up",Hk.SHORTS_SHARE="share",Hk.SKIP_FORWARD_30="skip30_forward",Hk.SLASH_CIRCLE_LEFT="circle_slash",Hk.SLASH_CIRCLE_RIGHT="circle_slash",Hk.SLOW_MODE="bubble_slow",Hk.SLOW_MODE_OFF="text_bubble",Hk.SOCIAL="person_child",Hk.SPARKLE="sparkles",Hk.SPARK_IMAGE="image_spark",Hk.SPARK_PENCIL="pencil_spark",Hk.SPARK_RADAR="spark_waves",Hk.SPARK_VIDEO="video_spark",
Hk.SPEAKER_GROUP="speaker_stack",Hk.SPEAKER_OFF="speaker_slash",Hk.SPEED_1X="n1x",Hk.SPEED_1_POINT_2X="n1point2x",Hk.SPEED_1_POINT_5X="n1point5x",Hk.SPEED_1_POINT_8X="n1point8x",Hk.SPEED_2X="n2x",Hk.SPONSORSHIP_STAR="star_circle",Hk.SPORTS="basketball",Hk.SPOTLIGHT="spotlight",Hk.STAFF_PICK="spotlight",Hk.START_DVR="add",Hk.STAR_BORDER="star",Hk.STAR_CIRCLE_RIBBON="memberships_gift",Hk.STAR_HALF="star_full_half",Hk.STAR_SHOOTING="hype",Hk.STICKER="sticker",Hk.STICKER_EMOTICON="face_happy",Hk.STOP_DVR=
"stop",Hk.SUBSCRIBE="youtube",Hk.SUBSCRIBE_PLUS="add",Hk.SUBSCRIPTION_MANAGER="gear",Hk.SUPERSTAR="super_star",Hk.SUPERVISOR_ACCOUNT="person_child",Hk.SUPER_CHAT_FOR_GOOD="hands_heart",Hk.SWAP_HORIZ="arrow_swap_horizontal",Hk.SWITCH_ACCOUNTS="person_square_stack",Hk.TAB_ACCOUNT="person",Hk.TAB_ACTIVITY="bell",Hk.TAB_BOOKMARK="bookmark",Hk.TAB_EXPLORE="compass",Hk.TAB_HOME="home",Hk.TAB_HOME_CAIRO="home",Hk.TAB_INBOX="mail",Hk.TAB_LIKED="thumb_up",Hk.TAB_MUSIC_PREMIUM="youtube_music",Hk.TAB_SHORTS=
"shorts",Hk.TAB_SHORTS_CAIRO="shorts",Hk.TAB_SUBSCRIPTIONS="subscriptions",Hk.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Hk.TAB_TRENDING="trending",Hk.TARGET="target",Hk.TARGET_ADD="target_add",Hk.TEMPLATE_ADD="template_add",Hk.TEXT="font",Hk.TICKET_STAR="star_ticket",Hk.TIMER="stopwatch",Hk.TRENDING_CAIRO="trending",Hk.TRENDING_DOWN="arrow_trend_down",Hk.TRENDING_UP="arrow_trend_up",Hk.TROPHY_CAIRO="trophy",Hk.TROPHY_CELEBRATIONS="fireworks",Hk.TROPHY_STAR="star_trophy",Hk.TUNE="adjust",Hk.TV_OFF="tv_slash",
Hk.UNBLOCK_USER="minus_circle",Hk.UNFAVORITE="thumb_down",Hk.UNLIMITED="youtube",Hk.UNPLUGGED_LIVE_GUIDE="live",Hk.UNPLUGGED_SPORTS="eye_slash",Hk.UPLOADS="play_square_stack",Hk.UP_ARROW="arrow_up",Hk.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Hk.VERTICAL_ALIGN_TOP="chevron_up_end",Hk.VERY_HAPPY="face_very_happy",Hk.VERY_SAD="face_very_sad",Hk.VIDEOS="play_circle",Hk.VIDEO_CALL="video_camera_add",Hk.VIDEO_LIBRARY_WHITE="play_square_stack",Hk.VIDEO_QUALITY_4K="n4k",Hk.VIDEO_QUALITY_8K="n8k",Hk.VIDEO_YOUTUBE=
"youtube",Hk.VIEW_LIST_CAIRO="view_list",Hk.VIEW_MODULE="view_column3_row2",Hk.VISIBILITY="eye",Hk.VISIBILITY_OFF="eye_slash",Hk.VOLUME_DOWN="volume_min",Hk.VOLUME_MUTE="volume_mute",Hk.VOLUME_OFF="volume_mute",Hk.VOLUME_STABLE="stable_volume",Hk.VOLUME_UP="volume_max",Hk.WALLPAPER="image",Hk.WARNING="alert_triangle",Hk.WATCH_HISTORY="history",Hk.WATCH_HISTORY_CAIRO="history",Hk.WATCH_LATER="clock",Hk.WATCH_LATER_CAIRO="clock",Hk.WATCH_RELATED_MIX="mix",Hk.WHAT_TO_WATCH="home",Hk.YOUTUBE_LINKED_TV=
"tv_mobile",Hk.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Hk.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Hk.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Hk.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Hk.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Hk.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Hk.YOUTUBE_SHORTS_OUTLINE_24="shorts",Hk.YT_OUTLINE_MUSIC_24="audio",Hk);var wC_={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,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,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,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,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,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,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,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,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,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,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,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,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,2,24]],bell:[[0,10,24],[1,10,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,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,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]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,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,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,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,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,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,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,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,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,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,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,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,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,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,2,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,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,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,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,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,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,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,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,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_left_off:[[1,1,16],[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,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,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,2,24]],move:[[1,2,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,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,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,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,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,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,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,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,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,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],
[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[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,2,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,5,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,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,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,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,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,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,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,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,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]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,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,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,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,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,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,7,24],[1,7,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,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var s9l={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],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,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,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,2,24],[1,2,48]],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,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!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,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,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,2,12],[1,2,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,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],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]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],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,9,18],[0,9,24],[1,9,18],[1,9,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_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],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,10,24],[1,10,18],[1,10,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,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],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,9,18],[1,9,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_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,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,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,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,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],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,5,18],[0,5,24],[1,5,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,11,24],[1,11,18],[1,11,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:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],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,7,24],[0,7,48],[1,7,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,9,24],[1,9,18],[1,9,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_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,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:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,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,3,18],[0,3,24],[1,3,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_clap:[[1,1,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]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,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,2,18],[1,2,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,3,18],[1,3,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,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,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,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],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,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[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]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,
10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,
18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],
[1,2,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,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[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,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],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,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,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,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,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,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],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:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,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,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],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,2,24],[1,2,36]],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,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,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,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,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:[[0,2,24],[1,2,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,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,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,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],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]],template_play_spark:[[1,1,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,3,24],[1,3,18],[1,3,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,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,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,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[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:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,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,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,
1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,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_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var kG8={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},a2=function(A){this.iconUrlProvider=A};
a2.prototype.resolveIcon=function(A,t){var f=kG8[A.iconName.toUpperCase()];f&&(A.iconName=f);var X=A.iconName;X=X.replace(/-/g,"_");A=Object.assign({},A,{iconName:this.mapIconTypeToStandardName(X,!!f)||X.toLowerCase()});if(_.M("enable_web_delhi_icons")||f){var Q;return e4x(s9l,A,((Q=this.iconUrlProvider)==null?void 0:Q.getYtStandardUrl)||uQb,t)}var q;return e4x(wC_,A,((q=this.iconUrlProvider)==null?void 0:q.getYtStandardUrl)||N50,t)};
a2.prototype.mapIconTypeToStandardName=function(A,t){return _.M("enable_web_delhi_icons")||t?gV8[A.toUpperCase()]:Kzl[A.toUpperCase()]};
a2[T7]=[_.z7($Wc)];var rtj=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),A5y=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),tnd=function(A){this.urlProvider=this.iconUrlProvider=A};
_.R(tnd,a2);
tnd.prototype.resolveIcon=function(A,t){A.iconName==="youtube_logo"&&(A.iconName="yt-logo-updated");if(A.iconName==="youtube_premium_logo"||A.iconName==="youtube_red_logo")A.iconName="yt-logo-red-updated";var f=Object.assign({},A);A.iconName==="menu"&&(_.M("enable_web_delhi_icons")||(f.iconName="bars_3"),f.iconStyle="youtube_outline");A.iconSetName==="socialNetworksRound"&&(A.iconName==="mail"&&(f.iconName="email"),A.iconName==="embed"&&(f.iconSize=60));A.iconName==="more"&&(f.iconName="overflow_horizontal");
A.iconName==="fullscreen"&&(f.iconName="screen_full");A.iconName==="premium_standalone"&&(f.iconName="premium_standalone_cairo");_.M("enable_connect_icon_update_web")&&A.iconName==="account_linked"&&(f.iconName="circles_overlap_check",f.iconStyle="youtube_fill");_.M("enable_connect_icon_update_web")&&A.iconName==="account_unlinked"&&(f.iconName="circles_overlap",f.iconStyle="youtube_outline");rtj.has(A.iconName)&&(f.iconStyle="youtube_fill");if(_.M("enable_web_delhi_icons")){A.iconName==="playlist_add"&&
(f.iconName="bookmark");A.iconName==="offline_pin"&&(f.iconName="arrow_down_circle",f.iconStyle="youtube_fill");if(A.iconName==="circles_overlap_check"||f.iconName==="circles_overlap_check")f.iconName="account_link",f.iconStyle="youtube_fill";A5y.has(A.iconName)&&(f.iconName+="_updated")}A=Object.assign({},f,{iconName:(a2.prototype.mapIconTypeToStandardName.call(this,f.iconName)||f.iconName).toLowerCase()});var X;return(A=e4x(dW3,A,((X=this.urlProvider)==null?void 0:X.getUrl)||z4x,t))?A:a2.prototype.resolveIcon.call(this,
f,t)};
tnd[T7]=[_.z7($Wc)];_.fgA=1;var Ke=function(A,t){this.JSC$17526_commandHandler=A;this.innertubeTransportService=t};
_.R(Ke,Tu);Ke.prototype.resolveCommand=function(A,t){var f=this,X,Q,q;return _.l(function(e){return(X=_.C(A,R6K))?e.return(Xdm(f,X,(Q=t)==null?void 0:(q=Q.form)==null?void 0:q.element)):e.return()})};
var Xdm=function(A,t,f){t={profileCardContext:t.profileCardContext,profileOwnerExternalChannelId:t.profileOwnerExternalChannelId};var X=_.HE(vcl);return _.uE(A.innertubeTransportService,t,X).then(function(Q){if(!Q)throw new _.xj("GetProfileCard failed");if(Q=Q.popupCommand){A.JSC$17526_commandHandler.resolveCommand(Q,{form:{element:f}});_.xz(_.er(),66557);Q=Q==null?void 0:Q.clickTrackingParams;var q=_.mx();Q&&q&&_.er().graftServerVe(Q,q)}})};
Ke[T7]=[_.i2,_.iY];var gr=function(){};
_.R(gr,Tu);gr.prototype.resolveCommand=function(A){var t,f;return _.l(function(X){t=_.C(A,nd7);if(!t)return X.return();f=Number(t.enableDelayedPacfLoggingTvMs);if(isNaN(f)){var Q=oB();ZJb(Q,t,0)}else ZJb(oB(),t,f);_.LO(X)})};_.wr=function(){};
_.R(_.wr,Tu);
_.wr.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z;return _.l(function(T){X=_.C(A,DHS);q=(Q=t.form)==null?void 0:Q.element;G=(e=q)==null?void 0:e.closest("ytd-enforcement-message-view-model");if(!X||!G)return T.return();f.allowAdsAction||(N=X.fundingChoiceInstructionPageUrl,f.allowAdsAction=new vB8(window,_.KU(N)));var O=f.allowAdsAction;O.wallElement=G;O.allowAdsPopup.style.setProperty("display","flex","important");var c=O.scrollManager;c.isScrollingEnabled&&(c.originalBodyOverflow=c.JSC$10083_domHelper.JSC$9409_document_.body.style.overflow,
c.JSC$10083_domHelper.JSC$9409_document_.body.style.overflow="hidden",c.isScrollingEnabled=!1);O.wallElement.style.setProperty("display","none","important");VC8(O.accessibilityManager,O.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((z=f.allowAdsAction.allowAdsPopup)&&z instanceof HTMLElement)for(O=_.U(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),c=O.next();!c.done;c=O.next()){var B=_.U(c.value);c=B.next().value;B=B.next().value;
z.style.setProperty(c,B)}_.LO(T)})};
_.wr.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var sN=function(){};
_.R(sN,Tu);sN.prototype.resolveCommand=function(A){var t;return _.l(function(f){t=_.C(A,xRl);if(!t)return f.return();MVb(A);_.LO(f)})};_.kQ=new _.eh("AI_CHAT_CONTROLLER_TOKEN");var rr=function(A,t,f,X){this.JSC$17541_commandHandler=A;this.store=t;this.getPlayerCb=f;this.aiChatController=X};
_.R(rr,Tu);rr.prototype.pageContext=function(){var A=_.Iv.currentPageSubTypeSelector(this.store.getState()),t;return(t=this.aiChatController)==null?void 0:_.QkQ(t,A)};
rr.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e;return _.l(function(G){f=_.C(A,$HS);Q=(X=f)==null?void 0:X.command;if(!Q)return G.return();switch((e=f)==null?void 0:e.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var N="youchat-"+Date.now(),z;var T=String(Math.floor(((z=t.getPlayerCb())==null?void 0:z.getCurrentTime())||0)*1E3);q={inputComposerFormData:{clientMessageId:N,playerOffsetMs:T,pageContext:t.pageContext()}}}if(!q)return G.return();t.JSC$17541_commandHandler.resolveCommand(Q,
{form:{formData:q}});_.LO(G)})};
rr[T7]=[_.i2,_.Xk,DEu,_.z7(_.kQ)];var qPd=new _.eh("SESSION_STORAGE");var AD=function(A){this.sessionStorage=A("conversations")};
_.R(AD,Tu);AD.prototype.resolveCommand=function(A){var t=this,f;return _.l(function(X){f=_.C(A,HrC);if(!f)return X.return();f.conversationId?t.sessionStorage.set("conversation_id",f.conversationId):t.sessionStorage.remove("conversation_id");_.LO(X)})};
AD[T7]=[qPd];var tD=function(A){this.JSC$17553_commandHandler=A};
_.R(tD,Tu);
tD.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z;return _.l(function(T){if(T.nextAddress==1){f=_.C(A,NxK);if((X=f)==null||!X.text||!navigator.clipboard)return T.return();_.ht(T,2);return T.yield(navigator.clipboard.writeText(f.text),4)}if(T.nextAddress!=2){if(!f.successActions||f.successActions.length===0)return T.return();Q=_.U(f.successActions);for(q=Q.next();!q.done;q=Q.next())e=q.value,t.JSC$17553_commandHandler.resolveCommand(e);return _.qq(T,0)}_.vC(T);if(!f.failureActions||f.failureActions.length===
0)return T.return();G=_.U(f.failureActions);for(N=G.next();!N.done;N=G.next())z=N.value,t.JSC$17553_commandHandler.resolveCommand(z);_.LO(T)})};
tD[T7]=[_.i2];var fT=function(A){this.JSC$17557_commandHandler=A};
_.R(fT,Tu);
fT.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c;return _.l(function(B){switch(B.nextAddress){case 1:X=_.C(A,Sl7);if(!X)return B.return();_.ht(B,2);if(!X.imageBytes&&!X.imageUrl)throw Error("Bi");if(!X.imageUrl){if(X.imageBytes){q=X.imageBytes;e=q.replace(/-/g,"+").replace(/_/g,"/");var h=iB5(e);Q=_.dW(h)}B.jumpTo(4);break}return B.yield(fetch(X.imageUrl),5);case 5:return G=B.yieldResult,B.yield(G.blob(),6);case 6:N=B.yieldResult,Q=_.dW(N);case 4:O=(z=t)==null?void 0:(T=z.form)==
null?void 0:T.element;c=document.createElement("a");Kb(c,Q);O.appendChild(c);c.download="";c.click();O.removeChild(c);URL.revokeObjectURL(_.j3(Q));X.successCommand&&f.JSC$17557_commandHandler.resolveCommand(X.successCommand);_.qq(B,0);break;case 2:_.vC(B),X.errorCommand&&f.JSC$17557_commandHandler.resolveCommand(X.errorCommand),_.LO(B)}})};
fT[T7]=[_.i2];var Xh=function(A){this.store=A};
_.R(Xh,Tu);Xh.prototype.resolveCommand=function(A){var t=this,f,X,Q;return _.l(function(q){X=(f=_.C(A,_.Sm7))==null?void 0:f.entityBatchUpdate;if(!X)return q.jumpTo(0);Q=Object.assign({},X,{mutations:[].concat(_.YV(X.mutations||[]))});return q.yield(_.l$(Q,t.store),0)})};var J5Q=function(A){this.JSC$17564_commandHandler=A;this.feedbackDialogMap=new Map};
J5Q.prototype.openDialog=function(A,t){(A=this.feedbackDialogMap.get(A))&&this.JSC$17564_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:A}},t)};
J5Q[T7]=[_.i2];var Q1=new _.eh("FEEDBACK_CONTROLLER_TOKEN");var q8=new _.eh("APP_STORE_TOKEN");var JD=function(A,t,f){this.store=A;this.controller=t;this.JSC$17567_commandHandler=f};
_.R(JD,Tu);JD.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K;return _.l(function(k){if(k.nextAddress==1){X=_.C(A,_.vF);if(q=(Q=X)==null?void 0:Q.contentId)for(G=_.U(((e=X)==null?void 0:e.actions)||[]),N=G.next();!N.done;N=G.next())z=N.value,UwQ(f,z,q);c=(T=t)==null?void 0:(O=T.form)==null?void 0:O.element;return k.yield(_.Al(c,[A,{impression:(B=t)==null?void 0:B.disableClickTracking}]).catch(function(){}),2)}h=k.yieldResult;
if((W=h)==null?0:(L=W.data)==null?0:(E=L.feedbackResponses)==null?0:E.length)(S=(D=h.data.feedbackResponses[0])==null?void 0:D.followUpDialog)&&q&&(Z=f.controller)!=null&&Z.feedbackDialogMap.set(q,S),(K=(d=h.data.feedbackResponses[0])==null?void 0:d.isThumbnailReporting)&&f.JSC$17567_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.LO(k)})};
var UwQ=function(A,t,f){var X=_.C(t,_.Xd);if(X){X=_.U(X.commands||[]);for(var Q=X.next();!Q.done;Q=X.next())UwQ(A,Q.value,f)}_.C(t,_.Zu)&&A.store.dispatch(_.Ta("commandEntity",w2q(f),{key:f,command:t}));_.C(t,p0k)&&A.store.dispatch(_.Ta("commandEntity",w2q(f),{key:f,command:t}))};
JD[T7]=[q8,Q1,_.i2];var Uy=function(A){this.controller=A};
_.R(Uy,Tu);Uy.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e;return _.l(function(G){X=_.C(A,_.A4);q=(Q=X)==null?void 0:Q.targetId;if(((e=X)==null?void 0:e.signal)!=="TELL_US_WHY"||!q)return G.return();f.controller.openDialog(q,t);_.LO(G)})};
Uy[T7]=[Q1];var eV=function(A){this.store=A};
_.R(eV,Tu);eV.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z;return _.l(function(T){X=_.C(A,Ozb);q=(Q=X)==null?void 0:Q.contentId;N=(e=t)==null?void 0:(G=e.form)==null?void 0:G.element;z=_.Al(N,[A]);q&&f.undo(q);return T.yield(z,0)})};
eV.prototype.undo=function(A){this.store.dispatch(_.Ta("commandEntity",w2q(A),{key:A,command:void 0}))};
eV[T7]=[q8];var G5=function(A){this.JSC$17579_commandHandler=A};
_.R(G5,Tu);G5.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z;return _.l(function(T){f=_.C(A,ehb);X=f.flowStateKey;Q=f.validationFailureCommand;q=f.submitValidFormCommand;e=k9b(_.SM,[X||""]);G=_.C(e,NBp);((N=G)==null?0:N.isValid)&&q&&t.JSC$17579_commandHandler.resolveCommand(q);((z=G)==null?0:z.isValid)||!Q||t.JSC$17579_commandHandler.resolveCommand(Q);_.LO(T)})};
G5[T7]=[_.i2];var lf=function(A){this.innertubeTransportService=A};
_.R(lf,Tu);lf.prototype.resolveCommand=function(A,t){var f=this,X;return _.l(function(Q){return Q.yield(_.jl(f.innertubeTransportService,A,(X=t)==null?void 0:X.form).then(function(q){var e,G;t==null||(e=t.commandController)==null||(G=e.onSuccess)==null||G.call(e,A,q)},function(q){var e,G;
t==null||(e=t.commandController)==null||(G=e.onServerError)==null||G.call(e,A,q)}),0)})};
lf[T7]=[_.iY];var N8=function(){};
_.R(N8,Tu);N8.prototype.resolveCommand=function(A){var t,f,X,Q;return _.l(function(q){if(t=_.C(A,_.q5w)){if(f=t.gtmId)X=_.ah("GL",""),_.aF(f,X);(Q=t.gtmData)&&_.Ky(Q)}_.LO(q)})};var uf=function(A,t,f){this.innertubeTransportService=A;this.JSC$17590_actionRouter=t;this.JSC$17590_screenManager=f};
_.R(uf,Tu);uf.prototype.resolveCommand=function(A){var t=this,f,X;return _.l(function(Q){f=_.C(A,QY7);if(!f)return Q.return();X=f.command;if(!X)return Q.return();t.JSC$17590_actionRouter.triggerAction("yt-insert-rich-section-action",f);return Q.yield(_.jl(t.innertubeTransportService,X,{disableCache:!0}).then(function(q){A.clickTrackingParams&&(q==null?0:q.trackingParams)&&t.JSC$17590_screenManager.graftServerVe(q.trackingParams,_.zV(A.clickTrackingParams))}),0)})};
uf[T7]=[_.iY,b1,_.gx];cpg.bind(null,ib);var eww=cpg.bind(null,Xhl);Mu0.bind(null,ib);var Gvj=Mu0.bind(null,Xhl);h45.bind(null,ib);var lgQ=h45.bind(null,Xhl);var z5=function(){};
_.R(z5,Tu);
z5.prototype.resolveCommand=function(A){var t,f,X,Q,q,e,G,N,z,T;return _.l(function(O){t=_.C(A,o3k);if(!t)return O.return();X=((f=t.operations)==null?void 0:f.operations)||[];Q=_.U(X);for(q=Q.next();!q.done;q=Q.next())if(e=q.value,e.insertItemSectionContent){var c=e.insertItemSectionContent,B=c.contents||[];c.insertByPositionInSection?eww(c.insertByPositionInSection.sectionTargetId,B,c.insertByPositionInSection.position):c.insertByRelativePositionInSection&&c.insertByRelativePositionInSection.sectionTargetId&&c.insertByRelativePositionInSection.itemTargetId&&
Gvj(c.insertByRelativePositionInSection.sectionTargetId,c.insertByRelativePositionInSection.itemTargetId,B,c.insertByRelativePositionInSection.relativePosition)}else e.replaceSection?(c=e.replaceSection,B={},c.replaceByTargetId?B=c.replaceByTargetId:c.replaceByGroupId&&(B={targetId:c.replaceByGroupId.groupId,newContent:c.replaceByGroupId.newContent,undoKey:""}),B.newContent&&Jj8(B.targetId,{continuationItems:[B.newContent]})):e.removeItem?(c=e.removeItem,c.removeByTargetId&&c.sectionTargetId&&lgQ(c.sectionTargetId,
c.removeByTargetId.targetIds||[])):e.removeSection&&(e.removeSection.removeByTargetId?(G=void 0,NG2(((G=e.removeSection)==null?void 0:G.removeByTargetId.targetIds)||[])):e.removeSection.removeByGroupId&&(N=void 0,NG2(((N=e.removeSection)==null?void 0:N.removeByGroupId.groupIds)||[])));T=((z=t.operations)==null?void 0:z.scrollConfig)||{};uUd(T);_.LO(O)})};
var NG2=function(A){A=_.U(A);for(var t=A.next();!t.done;t=A.next())Jj8(t.value,{continuationItems:[]})},uUd=function(A){if(A.scrollToItem){var t=A.scrollToItem.item||{},f=t.itemTargetId;
t=t.sectionTargetId;if(f&&t){var X=document.querySelector("[data-target-id="+t+"]"),Q=X==null?void 0:X.querySelector("[data-target-id="+f+"]");X&&Q&&setTimeout(function(){var q=Q.offsetTop-X.offsetTop,e;if(((e=A.scrollToItem)==null?void 0:e.scrollPosition)==="SCROLL_POSITION_CENTER")q-=X.offsetHeight/2,q+=Q.offsetHeight/2;else{var G;((G=A.scrollToItem)==null?void 0:G.scrollPosition)==="SCROLL_POSITION_END"&&(q-=X.offsetHeight,q+=Q.offsetHeight)}X.scroll({top:q,behavior:"smooth"})},100)}}};var Pw=new _.eh("CLIENT_NAME_TOKEN");var zw3=new _.eh("DEFAULT_STORE_EXPIRATION_TOKEN");var ET5=new _.eh("CLIENT_LOCATION_SERVICE_TOKEN");var T5=function(A,t,f){this.clientName=A||_.ah("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=t||_.IO.getInstance();this.JSC$17618_commandHandler=f||_.XH.instance};
_.R(T5,Tu);T5.prototype.resolveCommand=function(A){var t=this,f,X;return _.l(function(Q){X=(f=_.C(A,Rlf))==null?void 0:f.onComplete;t.clientLocationService.clearLocationPlayabilityToken(t.clientName);X&&t.JSC$17618_commandHandler.resolveCommand(X);_.LO(Q)})};
T5[T7]=[Pw,ET5,_.i2];var Oy=function(A){this.innertubeTransportService=A};
_.R(Oy,Tu);Oy.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e;return _.l(function(G){q=(X=t)==null?void 0:(Q=X.form)==null?void 0:Q.element;return G.yield(_.jl(f.innertubeTransportService,A,(e=t)==null?void 0:e.form).then(function(N){OEs(q,new CustomEvent("yt-service-request-completed"),{data:N},_.ah("openPopupConfig"))}),0)})};
Oy[T7]=[_.iY];var cw=function(){};
_.R(cw,Tu);cw.prototype.resolveCommand=function(A){var t,f;return _.l(function(X){t=_.C(A,TBK);f=document.querySelector("mini-app-container-view-model");if(!t||!f)return X.return();t.isPlaying?f.dispatchEvent(new Event("play")):f.dispatchEvent(new Event("pause"));_.LO(X)})};var Bw=function(){};
_.R(Bw,Tu);Bw.prototype.resolveCommand=function(A){var t,f,X,Q,q,e,G;return _.l(function(N){t=_.C(A,rkC);if((f=t)==null||!f.paramKeys)return N.return();X=t.paramKeys;Q=_.kC(window.location.href);q=_.U(X);for(e=q.next();!e.done;e=q.next())G=e.value,Q.JSC$10115_queryData_.remove(G);window.history.replaceState(window.history.state,document.title,Q.toString());_.LO(N)})};var PU_=function(){this.dropdownMap=new Map};_.TG8=new _.eh("DROPDOWN_CONTROLLER_TOKEN");var M8=function(A){this.controller=A};
_.R(M8,Tu);M8.prototype.resolveCommand=function(A){var t=this,f,X,Q,q;return _.l(function(e){f=_.C(A,b2f);if(!f)return e.return();X=f;Q=X.dropdownId;q=X.selectedOptionIndex;if(Q===void 0||q===void 0)return e.return();var G=t.controller.dropdownMap.get(Q);G&&G(q);_.LO(e)})};
M8[T7]=[_.TG8];var RA=function(A){this.controller=A};
_.R(RA,Tu);RA.prototype.resolveCommand=function(A){var t=this,f;return _.l(function(X){return(f=_.C(A,jr8))?X.yield(t.controller.closeDialog(),0):X.return()})};
RA[T7]=[_.tk];var mW=function(A){this.controller=A};
_.R(mW,Tu);mW.prototype.resolveCommand=function(A){var t=this,f,X;return _.l(function(Q){f=_.C(A,MdC);if(!f)return Q.return();var q,e=f.panelIdentifier||((q=f.identifier)==null?void 0:q.tag);if(!e)throw Error("Ci");return(X=e)?Q.yield(t.controller.hidePanel({identifier:X}),0):Q.jumpTo(0)})};
mW[T7]=[_.rA];var bf=function(A){this.controller=A};
_.R(bf,Tu);bf.prototype.resolveCommand=function(A){var t=this,f;return _.l(function(X){return(f=_.C(A,Qdl))?X.yield(t.controller.closeSheet(),0):X.return()})};
bf[T7]=[_.Ak];var Ww=function(A,t){this.innertubeTransportService=A;this.controller=t};
_.R(Ww,Tu);Ww.prototype.resolveCommand=function(A){var t=this,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return f=_.C(A,CE7),(X=f)!=null&&X.panelId?e.yield(t.controller.getReloadContinuation(f.panelId),2):e.return();if(e.nextAddress!=3)return(Q=e.yieldResult)?e.yield(_.jl(t.innertubeTransportService,A,{continuation:Q}),3):e.return();q=e.yieldResult;return e.yield(t.controller.updatePanel({identifier:f.panelId,panelContents:q.content,shouldFocus:!1}),0)})};
Ww[T7]=[_.iY,_.rA];var y1=function(A,t,f){this.innertubeTransportService=A;this.JSC$17660_screenManager=t;this.JSC$17660_commandHandler=f};
_.R(y1,Tu);
y1.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1){f=_.C(A,_.PcE);if(!f)return N.return();if(f.commands)for(X=_.U(f.commands),Q=X.next();!Q.done;Q=X.next())q=Q.value,t.JSC$17660_commandHandler.resolveCommand(q,{disableClickTracking:!0});e=_.zV(A.clickTrackingParams);_.xz(t.JSC$17660_screenManager,21760,e,{layer:7,parentLayer:0});return N.yield(_.jl(t.innertubeTransportService,A),2)}G=N.yieldResult;if(!G)return N.return();t.JSC$17660_screenManager.graftServerVe(G.trackingParams,e,
7);_.LO(N)})};
y1[T7]=[_.iY,_.gx,_.i2];var vw=new _.eh("PANEL_LOADING_STRATEGY_TOKEN");var LT=function(A,t){this.controller=A;this.panelLoadingStrategy=t};
_.R(LT,Tu);
LT.prototype.resolveCommand=function(A,t){var f=this,X,Q,q;return _.l(function(e){X=_.C(A,JsC);if((Q=X)==null||!Q.panelLoadingStrategy)return e.return();q=function(G){var N,z,T,O,c,B,h,W,L,E;return _.l(function(D){z=_.C((N=G.dialogViewModel)==null?void 0:N.header,WuT);T={viewModel:G.dialogViewModel};O={};if(h=_.M("web_enable_dialog_header_label")?(c=z)==null?void 0:(B=c.headline)==null?void 0:B.content:void 0)O.ariaLabel=h;X.dismissOnBackgroundTap===!1&&(O.isModal=!0);return G.dialogViewModel?D.yield(f.controller.openDialog(T,
(E=(W=t)==null?void 0:(L=W.form)==null?void 0:L.element)!=null?E:document.body,O),0):D.return()})};
return e.yield(f.panelLoadingStrategy.execute({command:A,data:X.panelLoadingStrategy,renderFn:q,createScreenConfig:{layer:4}}),0)})};
LT[T7]=[_.tk,vw];var pT=function(A,t,f){this.innertubeTransportService=A;this.controller=t;this.JSC$17680_screenManager=f};
_.R(pT,Tu);
pT.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E;return _.l(function(D){switch(D.nextAddress){case 1:X=_.C(A,_.ys);if(!X)return D.return();var S,Z=X.panelIdentifier||((S=X.identifier)==null?void 0:S.tag);if(!Z)throw Error("Ci");Q=Z;return D.yield(f.controller.isVisible(Q,!0),2);case 2:if((q=D.yieldResult)&&X.blockIfPanelOpen)return D.return();N=(G=(e=f.controller).getPanelContent)==null?void 0:G.call(e,Q);if(!(S=N))if(X){var d;S=((d=X.globalConfiguration)==null?void 0:
d.initialState)||X.engagementPanel;if(d=!S)d=!!(X==null?0:(Z=X.engagementPanelPresentationConfigs)==null?0:Z.engagementPanelPopupPresentationConfig);d&&(S=_.R4l(X.panelIdentifier,X.identifier))}else S=void 0;z=S;T=X.engagementPanelPresentationConfigs;O=X.engagementPanelExtras;return D.yield(f.controller.showPanel({identifier:Q,panelContents:z,config:T,extras:O,target:(c=t)==null?void 0:(B=c.form)==null?void 0:B.element}),3);case 3:if(!X.globalConfiguration){D.jumpTo(0);break}if(X.globalConfiguration.reuseModelAndState&&
_.M("enable_ai_companion")&&(L=(W=(h=f.controller).getPanelContent)==null?void 0:W.call(h,Q)))return D.return();_.xz(f.JSC$17680_screenManager,32633);return D.yield(_.jl(f.innertubeTransportService,A),5);case 5:return E=D.yieldResult,f.JSC$17680_screenManager.graftServerVe(E.trackingParams),D.yield(f.controller.updatePanel({identifier:Q,panelContents:E.content,shouldFocus:!0,extras:O,updatePanelContinuationData:E.updatePanelContinuationData}),0)}})};
pT[T7]=[_.iY,_.rA,_.gx];var Ey=function(A,t){this.controller=A;this.panelLoadingStrategy=t};
_.R(Ey,Tu);
Ey.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c,B,h;return _.l(function(W){X=_.C(A,_.ij);if((Q=X)==null||!Q.panelLoadingStrategy)return W.return();G=in2(f.controller,(q=t)==null?void 0:(e=q.form)==null?void 0:e.element);z=(N=X.contextualSheetPresentationConfig)==null?void 0:N.position;O=(T=X.contextualSheetPresentationConfig)==null?void 0:T.hoverConfig;B=(c=X.contextualSheetPresentationConfig)==null?void 0:c.expandToFullWidth;h=function(L){return _.l(function(E){if(!L.sheetViewModel)return E.return();if(O){var D=
f.controller;D.shouldPreventClosingWhileHovered=!!O.preventCloseWhileHovered;var S;D.hideDelayMs=(S=O.hideDelayMs)!=null?S:0}return E.yield(f.controller.openSheet({viewModel:L.sheetViewModel,sheetPosition:z,expandToFullWidth:B},G),0)})};
return W.yield(f.panelLoadingStrategy.execute({command:A,data:X.panelLoadingStrategy,renderFn:h,createScreenConfig:{layer:0}}),0)})};
Ey[T7]=[_.Ak,vw];var nT=function(A,t){this.controller=A;this.JSC$17691_commandHandler=t};
_.R(nT,Tu);nT.prototype.resolveCommand=function(A,t){var f=this,X,Q,q;return _.l(function(e){if(e.nextAddress==1){X=_.C(A,byT);var G=_.C(X.showCommand,_.ys),N,z,T=(z=G==null?void 0:G.panelIdentifier)!=null?z:G==null?void 0:(N=G.identifier)==null?void 0:N.tag;if(!T)throw Error("Di");Q=T;return e.yield(f.controller.isVisible(Q),2)}return(q=e.yieldResult)?e.yield(f.controller.hidePanel({identifier:Q}),0):e.yield(f.JSC$17691_commandHandler.resolveCommand(X.showCommand,t),0)})};
nT[T7]=[_.rA,_.i2];var D1=function(A,t,f){this.innertubeTransportService=A;this.controller=t;this.JSC$17694_screenManager=f};
_.R(D1,Tu);
D1.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K,k;return _.l(function(Gz){switch(Gz.nextAddress){case 1:return X=f=_.C(A,LJ7),Q=X.targetPanelIdentifier,q=X.contentSourcePanelIdentifier,e=X.globalConfiguration,((G=Q)==null?0:G.tag)&&((N=q)==null?0:N.tag)?e?Gz.yield(t.controller.showPanel({identifier:Q.tag,panelContents:_.R4l(Q.tag,Q)}),5):Gz.yield((c=(O=t.controller).getPanel)==null?void 0:c.call(O,q.tag),4):Gz.return();case 4:B=Gz.yieldResult;z=(h=B)==
null?void 0:(L=(W=h).getPanelContent)==null?void 0:L.call(W);Gz.jumpTo(3);break;case 5:return Gz.yield(_.jl(t.innertubeTransportService,A),6);case 6:E=Gz.yieldResult,((D=E)==null?0:D.trackingParams)&&t.JSC$17694_screenManager.graftServerVe(E.trackingParams),z=(S=E)==null?void 0:S.content,T=(Z=E)==null?void 0:Z.updatePanelContinuationData;case 3:if(K=(d=z)==null?void 0:d.engagementPanelSectionListRenderer)return Gz.yield(t.controller.showPanel({identifier:Q.tag,panelUpdatableFields:{content:K.content,
secondaryHeaderContent:(k=K.header)!=null?k:{},targetId:K.targetId,loggingDirectives:K.loggingDirectives},updatePanelContinuationData:T}),0);Gz.jumpTo(0)}})};
D1[T7]=[_.iY,_.rA,_.gx];var Fh=function(){};
_.R(Fh,Tu);Fh.prototype.resolveCommand=function(A){var t,f,X;return _.l(function(Q){if(Q.nextAddress==1)return(t=_.C(A,DNw))?Q.yield(_.Q9(),2):Q.return();f=Q.yieldResult;if(!f)return Q.return();var q=f,e=(X=t)==null?void 0:X.languageCode,G;(q==null?0:(G=q.isReady)==null?0:G.call(q))&&(e=m0x(q,e))&&q.setAudioTrack(e);_.LO(Q)})};var IA=function(){};
_.R(IA,Ul);_.J=IA.prototype;_.J.getApiPaths=function(){return hbC};
_.J.getExtension=function(A){return _.C(A,_.ZT)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$14268_getStoreKey=function(A){if((A=this.getExtension(A))&&A.videoId){var t={videoId:A.videoId};A.playlistId&&(t.playlistId=A.playlistId);A.index&&(t.index=A.index);A.params&&(t.params=A.params);return _.VX("next",t)}};
_.J.JSC$14261_getClientScreen=function(A){var t;return((t=A.contentPlaybackContext)==null?void 0:t.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$14261_buildRequest=function(A,t,f){t.videoId&&(A.videoId=t.videoId);t.playlistId&&(A.playlistId=t.playlistId);t.params&&(A.params=t.params);t.index!==void 0&&(A.playlistIndex=t.index);A.racyCheckOk=!(!f.racyCheckOk&&!t.racyCheckOk);A.contentCheckOk=!!t.contentCheckOk;f.contentPlaybackContext&&(A.autonavState=f.contentPlaybackContext.autonavState,A.playbackContext={vis:f.contentPlaybackContext.vis,lactMilliseconds:f.contentPlaybackContext.lactMilliseconds});f.prefetchPlaybackContext&&(A.context.request||
(A.context.request={}),A.context.request.isPrefetch=!0);_.M("captions_hats_killswitch")||(t=_.NJ().getFlag(65),t=t!=null?!t:!1,f=!!_.Bi("yt-player-sticky-caption"),A.captionsRequested=t&&f)};
_.J.getRequestConfig=function(A){A=this.JSC$14268_getStoreKey(A);var t;A&&(t={storeStrategy:{storeKey:A}});_.M("web_log_player_watch_next_ticks")&&(t=t||{},t.requestTick="wn_s",t.responseTick="wn_r");return t};
var xh=function(){};
_.R(xh,Ul);xh.prototype.getApiPaths=function(){return hbC};
xh.prototype.getExtension=function(A){return _.C(A,_.L1)};
xh.prototype.JSC$14261_buildRequest=function(A,t){t.token&&(A.continuation=t.token)};var jV=function(){this.innerTubeTransport=_.Px().resolve(_.iY);this.miniplayerService=_.Px().resolve(_.DS)};
_.R(jV,Tu);var Onw=function(A){var t;return _.l(function(f){t=_.ah("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;A.JSC$17719_mainAppPlayer=new c7(t);document.addEventListener("yt-page-data-updated",A.JSC$17719_pauseOnNavigation.bind(A));_.LO(f)})},c5A=function(A,t){var f,X,Q,q;
return _.l(function(e){if(e.nextAddress==1){f=new IA;X=f.JSC$14261_getRequest(t);if(!X)return e.return(void 0);Q=X.innerTubeRequest;return e.yield(_.uE(A.innerTubeTransport,Q,"/youtubei/v1/next"),2)}q=e.yieldResult;var G;var N,z,T=(G=q.contents)==null?void 0:(N=G.twoColumnWatchNextResults)==null?void 0:(z=N.playlist)==null?void 0:z.playlist,O;G=(T==null?0:(O=T.contents)==null?0:O.length)?T:void 0;return e.return(G)})},BG3=function(A,t){var f,X,Q,q,e;
return _.l(function(G){if(G.nextAddress==1)return f=A.JSC$17719_mainAppPlayer,G.yield(f.api,2);if(G.nextAddress!=3)return X=G.yieldResult,t.watchCommand?G.yield(c5A(A,t.watchCommand),3):G.return();Q=G.yieldResult;if((q=Q)==null||!q.contents)return G.return();e=Q.contents.map(function(N){var z;return(z=N.playlistPanelVideoRenderer)==null?void 0:z.videoId}).filter(function(N){return!!N}).map(function(N){return{encrypted_id:N}});
X.updatePlaylist({video:e});_.LO(G)})},Mn8=function(A,t){var f,X,Q;
return _.l(function(q){return q.nextAddress==1?(f=A.JSC$17719_mainAppPlayer,Q=(X=t.playerParams)!=null?X:"",t.externalVideoId?q.yield(f.loadVideoWithPlayerVars({videoId:t.externalVideoId,audio_only:"1",player_params:Q}),2):q.jumpTo(2)):t.watchCommand?q.yield(BG3(A,t),0):q.jumpTo(0)})};
jV.prototype.JSC$17719_pauseOnNavigation=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1)return t=A.JSC$17719_mainAppPlayer,X.yield(t.api,2);f=X.yieldResult;f.pauseVideo();_.LO(X)})};
jV.prototype.pauseVideo=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1)return t=A.JSC$17719_mainAppPlayer,X.yield(t.api,2);f=X.yieldResult;f.pauseVideo();_.LO(X)})};
jV.prototype.playVideo=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1)return t=A.JSC$17719_mainAppPlayer,X.yield(t.api,2);f=X.yieldResult;f.playVideo();_.LO(X)})};
var CUm=function(A){var t,f;return _.l(function(X){if(X.nextAddress==1)return t=A.JSC$17719_mainAppPlayer,X.yield(t.api,2);f=X.yieldResult;f.mute();_.LO(X)})},hw2=function(A){var t,f;
return _.l(function(X){if(X.nextAddress==1)return t=A.JSC$17719_mainAppPlayer,X.yield(t.api,2);f=X.yieldResult;f.unMute();_.LO(X)})};
jV.prototype.stopVideo=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1)return t=A.JSC$17719_mainAppPlayer,X.yield(t.api,2);f=X.yieldResult;f.stopVideo();_.LO(X)})};
var Rwd=function(A,t){return _.l(function(f){switch(f.nextAddress){case 1:switch(t){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return f.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return f.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return f.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return f.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return f.jumpTo(6)}f.jumpTo(0);break;case 2:return f.yield(A.playVideo(),8);case 8:f.jumpTo(0);break;case 3:return f.yield(A.pauseVideo(),
9);case 9:f.jumpTo(0);break;case 4:return f.yield(A.stopVideo(),10);case 10:f.jumpTo(0);break;case 5:return f.yield(CUm(A),11);case 11:f.jumpTo(0);break;case 6:return f.yield(hw2(A),12);case 12:f.jumpTo(0)}})};
jV.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G;return _.l(function(N){return N.nextAddress==1?(f=_.C(A,J2T),((X=f)==null?0:X.newPlaybackParams)||((Q=f)==null?0:Q.controlAction)?t.JSC$17719_mainAppPlayer?N.jumpTo(2):N.yield(Onw(t),2):N.return()):((q=f)==null?0:q.newPlaybackParams)?(t.miniplayerService.isMiniplayerActive()&&((e=t.miniplayerService.getPlayerElement())==null||e.pause()),G=f.newPlaybackParams,G.externalVideoId||G.externalPlaylistId?N.yield(Mn8(t,G),0):N.return()):N.yield(Rwd(t,
f.controlAction),0)})};var Yh=function(A){this.JSC$17725_commandHandler=A};
_.R(Yh,Tu);
Yh.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1)return(f=_.C(A,FOS))?N.yield(_.Q9(),2):N.return();X=N.yieldResult;if(!X)return N.return();var z=X,T=(Q=f)==null?void 0:Q.languageCode,O=(q=f)==null?void 0:q.isAutoTranslated;z.getVideoData&&_.Wnx(z).length&&((T=vs5(z,T,O))?z.setOption("captions","track",T):(z.setOption("captions","stickyLoading",{}),z.setOption("captions","track",{})));e=X.isSubtitlesOn()?_.e5("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.e5("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");G=_.KZ(e,5E3);t.JSC$17725_commandHandler.resolveCommand(G);_.LO(N)})};
Yh[T7]=[_.i2];var V1=function(A,t){this.shortsPlayerPromise=A;this.JSC$17729_commandHandler=t};
_.R(V1,Tu);
V1.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z;return _.l(function(T){if(T.nextAddress==1)return(f=_.C(A,fmK))?T.yield(t.shortsPlayerPromise,2):T.return();X=T.yieldResult;var O=Lnl(X);O!=null&&O.length||(X.loadModule("captions"),O=Lnl(X));Q=O;if((q=Q)==null||!q.length)return e=_.e5("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),G=_.KZ(e),t.JSC$17729_commandHandler.resolveCommand(G),T.return();X.toggleSubtitles();N=X.isSubtitlesOn()?_.e5("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.e5("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");z=_.KZ(N);t.JSC$17729_commandHandler.resolveCommand(z);_.LO(T)})};
V1[T7]=[_.kyi,_.i2];var Z1=function(A){this.JSC$17732_actionRouter=A;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(t,f){t.triggerAction("yt-dismiss-shopping-timely-shelf-action",f);(t=_.Px().resolve(_.z7(_.lp8)))&&t.dismissFeaturedProductOverlay()}]])};
_.R(Z1,Tu);Z1.prototype.resolveCommand=function(A){var t=this,f,X,Q;return _.l(function(q){f=_.C(A,Y_E);if((X=f)==null||!X.overlayId)return q.return();Q=t.dismissPlayerOverlayActions.get(f.overlayId);if(!Q)throw Error("Ei`"+f.overlayId);Q(t.JSC$17732_actionRouter,f);_.LO(q)})};
Z1[T7]=[b1];var oA=function(A){this.JSC$17736_playerPromise=A};
_.R(oA,Tu);oA.prototype.resolveCommand=function(A){var t=this,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return(f=_.C(A,Rol))?e.yield(t.JSC$17736_playerPromise,2):e.return();X=e.yieldResult;Q=X.getVideoData().video_id;f.videoId===Q&&(q=Number(f.offsetFromVideoStartMilliseconds),q>=0&&X.seekTo(q/1E3));_.LO(e)})};
oA[T7]=[_.re];var mwd=_.QQ("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),d3=function(A){this.store=A};
_.R(d3,Tu);
var bnm=function(A){var t,f,X,Q;return _.l(function(q){if(q.nextAddress==1)return t=_.ah("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,f=_.ah("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,X=t||f,A.JSC$17740_mainAppPlayer=new c7(X),q.yield(A.JSC$17740_mainAppPlayer.api,2);Q=q.yieldResult;Q.addEventListener("onStateChange",A.JSC$17740_playerStateChangeListener.bind(A));document.addEventListener("yt-page-data-updated",A.JSC$17740_pauseOnNavigation.bind(A));window.addEventListener("state-navigatestart",
A.JSC$17740_pauseOnNavigation.bind(A));_.LO(q)})};
d3.prototype.JSC$17740_playerStateChangeListener=function(A){switch(A){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"}WSl(this)};
var WSl=function(A){A.store.dispatch(_.Ta("sfvAudioItemCurrentlyPlayingEntity",mwd,{key:mwd,externalVideoId:A.externalVideoId,sfvAudioItemPlaybackState:A.playbackState,nowPlayingEntityValue:A.nowPlayingEntityValue}))};
d3.prototype.JSC$17740_pauseOnNavigation=function(){var A=this,t,f,X,Q;return _.l(function(q){if(q.nextAddress==1){if(!A.JSC$17740_mainAppPlayer){var e=new _.xj("Error: mainAppPlayer is unavailable",A.JSC$17740_mainAppPlayer);_.HQ(e);return q.return()}return q.yield(A.JSC$17740_mainAppPlayer.api,2)}t=q.yieldResult;X=(f=t)==null?void 0:f.getPlayerState();X!==1||(Q=t)!=null&&Q.pauseVideo();_.LO(q)})};
d3.prototype.playVideo=function(A,t,f){var X=this,Q,q;return _.l(function(e){if(e.nextAddress==1)return e.yield((Q=X.JSC$17740_mainAppPlayer)==null?void 0:Q.api,2);q=e.yieldResult;if(!X.JSC$17740_mainAppPlayer||!q){var G=new _.xj("Error: mainAppPlayer is unavailable",X.JSC$17740_mainAppPlayer);_.HQ(G);return e.return()}return e.yield(X.JSC$17740_mainAppPlayer.loadVideoWithPlayerVars({videoId:X.externalVideoId,audio_only:"1",start:A/1E3,end:A/1E3+t,player_params:f}),0)})};
d3.prototype.pauseVideo=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1){if(!A.JSC$17740_mainAppPlayer){var Q=new _.xj("Error: mainAppPlayer is unavailable",A.JSC$17740_mainAppPlayer);_.HQ(Q);return X.return()}return X.yield(A.JSC$17740_mainAppPlayer.api,2)}t=X.yieldResult;(f=t)==null||f.pauseVideo();_.LO(X)})};
d3.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z;return _.l(function(d){if(d.nextAddress==1)return f=_.C(A,rai),Q=(X=f)==null?void 0:X.nowPlayingEntityValue,e=(q=f)==null?void 0:q.externalVideoId,O=Number((T=(G=f)==null?void 0:(N=G.defaultStartPoints)==null?void 0:(z=N[0])==null?void 0:z.offsetMs)!=null?T:"0"),E=Number((L=(c=f)==null?void 0:(B=c.defaultStartPoints)==null?void 0:(h=B[0])==null?void 0:(W=h.duration)==null?void 0:W.seconds)!=null?L:"15"),Z=(S=
(D=f)==null?void 0:D.playerParams)!=null?S:"",Q&&e?t.JSC$17740_mainAppPlayer?d.jumpTo(2):d.yield(bnm(t),2):d.return();if(d.nextAddress!=6){if(t.nowPlayingEntityValue&&Q===t.nowPlayingEntityValue)return t.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?d.yield(t.pauseVideo(),0):d.yield(t.playVideo(O,E,Z),0);t.externalVideoId=e;t.nowPlayingEntityValue=Q;t.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return d.yield(t.playVideo(O,E,Z),6)}WSl(t);return d.jumpTo(0)})};
d3[T7]=[tu];var SV=function(A){this.JSC$17758_commandHandler=A};
_.R(SV,Tu);SV.prototype.resolveCommand=function(A,t){var f=this,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return(X=_.C(A,Ivp))?e.yield(_.Q9(),2):e.return();Q=e.yieldResult;if(!Q)return e.return();(q=peT(Q))&&f.JSC$17758_commandHandler.resolveCommand(q,t);_.LO(e)})};
SV[T7]=[_.i2];var $h=function(A){this.JSC$17764_commandHandler=A};
_.R($h,Tu);$h.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1)return(X=_.C(A,xNS))?N.yield(_.Q9(),2):N.return();Q=N.yieldResult;if(!Q)return N.return();(q=Iyx(Q))?f.JSC$17764_commandHandler.resolveCommand(q,t):(e=_.e5("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),G=_.KZ(e),f.JSC$17764_commandHandler.resolveCommand(G));_.LO(N)})};
$h[T7]=[_.i2];var Hw=function(A){this.JSC$17767_playerPromise=A};
_.R(Hw,Tu);Hw.prototype.resolveCommand=function(A){var t=this,f,X;return _.l(function(Q){if(Q.nextAddress==1)return(f=_.C(A,dVl))?Q.yield(t.JSC$17767_playerPromise,2):Q.return();X=Q.yieldResult;X.isFullscreen()&&X.wakeUpControls();_.LO(Q)})};
Hw[T7]=[_.re];var aA=function(A){this.JSC$17770_playerPromise=A};
_.R(aA,Tu);aA.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e;return _.l(function(G){if(G.nextAddress==1){f=_.C(A,mrC);if(!f)return G.return();X=f.overlayRenderer;return X?(Q=_.C(X,K6p))?G.yield(t.JSC$17770_playerPromise,3):G.jumpTo(0):G.return()}q=G.yieldResult;q.renderChapterSeekingAnimation(1,_.dF(Q.text),(e=Q.icon)==null?void 0:e.iconType);_.LO(G)})};
aA[T7]=[_.re];var KT=function(A){this.store=A};
_.R(KT,Tu);
KT.prototype.resolveCommand=function(A){var t=this,f,X,Q;return _.l(function(q){if(q.nextAddress==1){f=_.C(A,UhC);if(!f)return q.return();X="";(Q=t.store.getState().collabInviteLink)&&f.id===Q.playlistId?X=Q.inviteLinkURL:f.shortUrl&&(X=f.shortUrl);return X?q.yield(navigator.clipboard.writeText(X),3):q.jumpTo(0)}var e={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.e5("COPY_LINK_SUCCESS_TOAST")}}}}};_.Px().resolve(_.i2).resolveCommand(e);_.LO(q)})};
KT[T7]=[q8];var g3=function(A,t){this.innertubeTransportService=A;this.JSC$17780_commandHandler=t};
_.R(g3,Tu);g3.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c;return _.l(function(B){if(B.nextAddress==1)return(X=_.C(A,_.u1))?B.yield(_.jl(f.innertubeTransportService,A,(Q=t)==null?void 0:Q.form),2):B.return();(q=B.yieldResult)&&q.errorMetadata&&(e=q,G=_.KZ(e.error.message),f.JSC$17780_commandHandler.resolveCommand(G));N=q;if((z=N)==null?0:z.actions)for(T=_.U(N.actions),O=T.next();!O.done;O=T.next())c=O.value,f.JSC$17780_commandHandler.resolveCommand(c);_.LO(B)})};
g3[T7]=[_.iY,_.i2];var w3=function(){};
_.R(w3,Tu);w3.prototype.resolveCommand=function(A){var t;return _.l(function(f){t=_.C(A,sYi);if(!t)return f.return();(new m5C(t)).show();_.LO(f)})};_.sy=new _.eh("PLAYLIST_EDIT_CONTROLLER_TOKEN");var kh=function(A,t,f,X){this.store=A;this.innertubeTransportService=t;this.controller=f;this.JSC$17788_commandHandler=X};
_.R(kh,Tu);
kh.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K,k,Gz,Tz,y5,cp,iu;return _.l(function(Fb){if(Fb.nextAddress==1){X=_.C(A,_.qN);if(!X)return Fb.return();if(X.clientActions){Q=_.U(X.clientActions);for(q=Q.next();!q.done;q=Q.next())e=q.value,f.JSC$17788_commandHandler.resolveCommand(e,t);var xq,Yq=t==null?void 0:(xq=t.form)==null?void 0:xq.element;Yq&&_.s9(Yq,"yt-dismissible-item-action",X.clientActions)}return Fb.yield(_.jl(f.innertubeTransportService,A,(G=
t)==null?void 0:G.form),2)}if(N=Fb.yieldResult)N.errorMetadata?(z=N,T=_.KZ(z.error.message),f.JSC$17788_commandHandler.resolveCommand(T),"error"in N&&((O=t)==null?0:(c=O.commandController)==null?0:c.onServerError)&&((B=t)==null||(h=B.commandController)==null||h.onServerError(A,N))):(W=t)==null||(L=W.commandController)==null||(D=(E=L).onSuccess)==null||D.call(E,A,N);S=N;((Z=S)==null?0:Z.collaborationInviteLink)&&X.playlistId&&(_.M("web_enable_invite_collaborators_link")||_.M("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
f.store.dispatch(_.r0({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:X.playlistId,inviteLinkUrl:S.collaborationInviteLink}}));((d=S)==null?0:d.redirectEndpoint)&&f.JSC$17788_commandHandler.resolveCommand(S.redirectEndpoint);((K=S)==null?0:(k=K.newHeader)==null?0:k.playlistHeaderRenderer)?y5w(f.controller,S.newHeader.playlistHeaderRenderer):((Gz=S)==null?0:(Tz=Gz.newHeader)==null?0:Tz.musicEditablePlaylistDetailHeaderRenderer)&&y5w(f.controller,S.newHeader.musicEditablePlaylistDetailHeaderRenderer);
f.controller.playlistVideoListElement&&((y5=S)==null?0:(cp=y5.playlistEditResults)==null?0:(iu=cp[0])==null?0:iu.playlistEditVideoAddedResultData)&&((Yq=f.controller.playlistVideoListElement)==null||Yq.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:S.playlistEditResults[0].playlistEditVideoAddedResultData})));_.LO(Fb)})};
kh[T7]=[_.Xk,_.iY,_.sy,_.i2];var r3=function(A,t){this.controller=A;this.JSC$17798_commandHandler=t};
_.R(r3,Tu);r3.prototype.resolveCommand=function(A,t){var f=this,X,Q,q;return _.l(function(e){X=_.C(A,e2K);f.controller.showRefreshPill&&((Q=X)==null?0:Q.command)&&(f.JSC$17798_commandHandler.resolveCommand((q=X)==null?void 0:q.command,t),f.controller.showRefreshPill=!1);_.LO(e)})};
r3[T7]=[_.Y9,_.i2];var AP=function(A,t){this.store=A;this.JSC$17802_commandHandler=t||_.XH.instance};
_.R(AP,Tu);AP.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c;return _.l(function(B){X=_.C(A,h2l);Q=f.store.getState().radioButtonGroup;if((q=X)==null?0:q.command)f.JSC$17802_commandHandler.resolveCommand((e=X)==null?void 0:e.command,t);else if(Q&&((G=X)==null?void 0:G.formId)===Q.currentFormId)for(N=Object.values(Q.commandsMap),z=_.U(N),T=z.next();!T.done;T=z.next())O=T.value,(c=_.bP(O))&&f.JSC$17802_commandHandler.resolveCommand(c,t);_.LO(B)})};
AP[T7]=[_.Xk];var tP=new _.eh("USER_PREFS");var fi=function(A){this.JSC$17807_prefCookie=A};
_.R(fi,Tu);fi.prototype.resolveCommand=function(A){var t=this,f;return _.l(function(X){(f=_.C(A,d$l))&&typeof f.useListView==="boolean"&&(_.u0(0,155,f.useListView),t.JSC$17807_prefCookie.save());_.LO(X)})};
fi[T7]=[tP];var Xe=function(A){this.JSC$17811_prefCookie=A};
_.R(Xe,Tu);Xe.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e;return _.l(function(G){f=_.C(A,rh7);if((X=f)==null||!X.gl)return G.return();Q=f.gl;q={persist_gl:"1",gl:Q};t.JSC$17811_prefCookie.set("gl",Q);t.JSC$17811_prefCookie.save();e=iAT(q);_.pp(e);_.LO(G)})};
Xe[T7]=[tP];var Q0=function(A){this.JSC$17815_prefCookie=A};
_.R(Q0,Tu);Q0.prototype.resolveCommand=function(A){var t=this,f,X;return _.l(function(Q){f=_.C(A,lel);if(!f)return Q.return();X=!1;f.flagNum&&typeof f.value==="boolean"?(_.u0(0,f.flagNum,f.value),X=!0):f.key&&typeof f.stringValue==="string"&&(t.JSC$17815_prefCookie.set(f.key,f.stringValue),X=!0);X&&t.JSC$17815_prefCookie.save();_.LO(Q)})};
Q0[T7]=[tP];var q7=new _.eh("PREF_STORAGE_PROMISE_TOKEN");var JP=function(A){this.JSC$17819_prefStoragePromise=A};
_.R(JP,Tu);JP.prototype.resolveCommand=function(A){var t=this,f,X;return _.l(function(Q){if(Q.nextAddress==1)return(f=_.C(A,u9i))?Q.yield(t.JSC$17819_prefStoragePromise,2):Q.return();X=Q.yieldResult;return X===void 0||f.key===void 0||f.value===void 0?Q.return():Q.yield(X.set(f.key,f.value),0)})};
JP[T7]=[q7];var Uc=function(A){this.innertubeTransportService=A};
_.R(Uc,Tu);Uc.prototype.resolveCommand=function(A,t){var f=this,X,Q;return _.l(function(q){(X=_.C(A,_.Cwi))&&X&&X.isFirstRequest&&(_.b0("search_overview_answer"),_.Wt("so_rq",void 0,"search_overview_answer"));return q.yield(_.jl(f.innertubeTransportService,A,(Q=t)==null?void 0:Q.form),0)})};
Uc[T7]=[_.iY];var vNw=function(){};
_.R(vNw,Tu);
vNw.prototype.resolveCommand=function(A){var t,f,X,Q,q,e,G,N,z;return _.l(function(T){t=_.C(A,hok);if((f=t)==null?0:f.sectionIdentifier){if(t.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Q=(X=document.getElementsByTagName(t.sectionIdentifier))==null?void 0:X.item(0))Q.scrollIntoView({behavior:"smooth"}),(q=epp(Q))&&q.focus({preventScroll:!0});return T.return()}e=document.querySelector("[section-identifier="+t.sectionIdentifier+"]");G=document.querySelector("[section-identifier="+t.referenceSectionIdentifier+
"]");if(!e)return T.return();N=t.verticalScrollOffsetDp?t.verticalScrollOffsetDp:0;G&&(N-=G.offsetTop);window.scrollTo({top:e.offsetTop+N,behavior:"smooth"});(z=epp(e))&&z.focus({preventScroll:!0})}_.LO(T)})};var e6=function(A){this.JSC$17831_commandHandler=A};
_.R(e6,Tu);
e6.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N;return _.l(function(z){if(z.nextAddress==1){f=_.C(A,$Rf);if(!f||!f.imageBytes||!navigator.clipboard)return z.return();if(f.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.HQ(Error("Gi")),z.return();_.ht(z,2);Q=(X=f)==null?void 0:X.imageBytes;q=Q.replace(/-/g,"+").replace(/_/g,"/");e=iB5(q);G={};N=[new ClipboardItem((G[e.type]=e,G))];return z.yield(navigator.clipboard.write(N),4)}if(z.nextAddress!=2)return f.successCommand&&
t.JSC$17831_commandHandler.resolveCommand(f.successCommand),_.qq(z,0);_.vC(z);f.errorCommand&&t.JSC$17831_commandHandler.resolveCommand(f.errorCommand);_.LO(z)})};
e6[T7]=[_.i2];var GX=function(A,t){this.innertubeTransportService=A;this.JSC$17835_commandHandler=t};
_.R(GX,Tu);GX.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1)return(X=_.C(A,HRE))?N.yield(_.jl(f.innertubeTransportService,A,(Q=t)==null?void 0:Q.form),2):N.return();(q=N.yieldResult)&&q.errorMetadata&&X.onFailureCommand&&f.JSC$17835_commandHandler.resolveCommand(X.onFailureCommand);e=q;((G=e)==null?0:G.shareCommand)&&f.JSC$17835_commandHandler.resolveCommand(e.shareCommand,t);_.LO(N)})};
GX[T7]=[_.iY,_.i2];var l4=function(){};
_.R(l4,Tu);l4.prototype.resolveCommand=function(A){var t,f;return _.l(function(X){t=_.C(A,qmC);if(!t||!navigator.share)return X.return();f={url:t.url};try{return X.return(navigator.share(f))}catch(Q){}_.LO(X)})};var N7=function(){};
_.R(N7,Tu);N7.prototype.resolveCommand=function(){return _.l(function(A){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.LO(A)})};var u4=function(A){this.JSC$17845_navigationConfirmationService=A};
_.R(u4,Tu);u4.prototype.resolveCommand=function(){var A=this;return _.l(function(t){A.JSC$17845_navigationConfirmationService.cancelPendingNavigation();_.LO(t)})};
u4[T7]=[$y];var zX=function(A){this.JSC$17848_screenManager=A};
_.R(zX,Tu);zX.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z;return _.l(function(T){Q=(X=t.form)==null?void 0:X.event;e=(q=t.form)==null?void 0:q.element;if(!Q)throw new _.xj("Event not passed in when resolving command");G=_.U(Q.composedPath());for(N=G.next();!N.done;N=G.next())if(z=N.value,z.tagName==="YT-COPY-LINK-RENDERER")return z.copyUrlToClipboard(),e&&_.FR(f.JSC$17848_screenManager,e),T.return();_.LO(T)})};
zX[T7]=[_.gx];var PW=function(){this.JSC$17852_miniAppClientDataProvider=_.Px().resolve(_.hm)};
_.R(PW,Tu);PW.prototype.resolveCommand=function(){var A=this,t,f;return _.l(function(X){if(A.JSC$17852_miniAppClientDataProvider.clientData.has("video_id")){var Q=A.JSC$17852_miniAppClientDataProvider,q=Q.clientData.get("video_id");q&&Q.clientData.delete("video_id");t="https://youtube.com/watch?v="+q;f=_.Vb(t);if(f===void 0)throw Error("Hi`"+t);_.tt(window,f)}_.LO(X)})};var TX=function(){};
_.R(TX,Tu);TX.prototype.resolveCommand=function(){return _.l(function(A){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.LO(A)})};var i4=function(){};
_.R(i4,Tu);i4.prototype.resolveCommand=function(){var A;return _.l(function(t){if(t.nextAddress==1)return t.yield(_.sz5(window.document.documentElement),2);(A=document.querySelector("mini-app-container-view-model iframe"))&&A.focus();_.LO(t)})};var Oc=function(A){this.JSC$17859_navigationConfirmationService=A};
_.R(Oc,Tu);
Oc.prototype.resolveCommand=function(){var A=this;return _.l(function(t){var f=A.JSC$17859_navigationConfirmationService,X=_.Px().resolve(_.V2),Q;if(((Q=f.navigateParams)==null?void 0:Q.data)!==void 0){var q;_.FVi(X,f.navigateParams.endpoint,f.navigateParams.data,(q=f.navigateParams.navigationType)!=null?q:1,f.navigateParams.tempData,f.navigateParams.isMiniplayer,void 0,!0);f.navigateParams=void 0;f.customConfirmationCommand=void 0}else f.navigateParams&&(X.navigate(f.navigateParams.endpoint,f.navigateParams.reload,
f.navigateParams.params,f.navigateParams.tempData,f.navigateParams.requestType,f.navigateParams.createScreenConfig,!0),f.navigateParams=void 0,f.customConfirmationCommand=void 0);_.LO(t)})};
Oc[T7]=[$y];var cW=function(){};
_.R(cW,Tu);cW.prototype.resolveCommand=function(){return _.l(function(A){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.LO(A)})};var BW=function(A){this.JSC$17864_prefStorage=A};
_.R(BW,Tu);BW.prototype.resolveCommand=function(){var A=this,t,f;return _.l(function(X){switch(X.nextAddress){case 1:return X.yield(A.JSC$17864_prefStorage,2);case 2:return(t=X.yieldResult)?X.yield(t.set("sfvle",!1),3):X.return();case 3:return X.yield(t.set("sfvles",!0),4);case 4:f=_.NJ(),_.u0(0,203,!1),_.u0(0,204,!0),f.save(),_.LO(X)}})};
BW[T7]=[q7];var M7=function(A){this.JSC$17867_prefStorage=A};
_.R(M7,Tu);M7.prototype.resolveCommand=function(){var A=this,t,f;return _.l(function(X){switch(X.nextAddress){case 1:return X.yield(A.JSC$17867_prefStorage,2);case 2:return(t=X.yieldResult)?X.yield(t.set("sfvle",!0),3):X.return();case 3:return X.yield(t.set("sfvles",!0),4);case 4:f=_.NJ(),_.u0(0,203,!0),_.u0(0,204,!0),f.save(),_.LO(X)}})};
M7[T7]=[q7];_.LSc=new _.eh("SNACKBAR_CONTROLLER_TOKEN");_.pd2=new _.eh("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Ci=function(A){this.controller=A};
_.R(Ci,Tu);Ci.prototype.resolveCommand=function(A){var t=this,f;return _.l(function(X){f=_.C(A,qWi);if(!f)return X.return();var Q=t.controller;Q.closeSnackbarFn&&Q.closeSnackbarFn();_.LO(X)})};
Ci[T7]=[_.LSc];var hP=function(A,t){this.controller=A;this.JSC$17874_sheetController=t};
_.R(hP,Tu);hP.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N;return _.l(function(z){X=_.C(A,UTT);if(!X)return z.return();e=in2(f.JSC$17874_sheetController,(Q=t)==null?void 0:(q=Q.form)==null?void 0:q.element);G=_.C(X.content,CC7);if(!G)return z.return();var T=f.controller,O=G,c=(N=X.animationStyle)!=null?N:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(T.showSnackbarFn)T.showSnackbarFn({snackbarViewModel:O,animationStyle:c,durationMs:X.durationSeconds*1E3,target:e});else throw Error("Aj");_.LO(z)})};
hP[T7]=[_.LSc,_.Ak];var Rn=function(){};
_.R(Rn,Tu);Rn.prototype.resolveCommand=function(A){var t;return _.l(function(f){t=_.C(A,NO8);if(!t||typeof t.key!=="string"||typeof t.value!=="string")return f.return();window.localStorage.setItem(t.key,t.value);_.LO(f)})};var mN=function(A){this.store=A};
_.R(mN,Tu);mN.prototype.resolveCommand=function(A){var t=this,f;return _.l(function(X){f=_.C(A,iz5);if(!f||!f.stepId||!f.token)return X.return();t.store.dispatch(tBE({stepId:f.stepId,token:f.token,isSelected:!1}));_.LO(X)})};
mN[T7]=[q8];var b4=function(A,t,f){this.innertubeTransportService=A;this.store=t;this.JSC$17886_screenManager=f};
_.R(b4,Tu);
b4.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K,k,Gz,Tz;return _.l(function(y5){f=_.C(A,qUK);if(!f||(X=f.stepIds)==null||!X.length)return y5.return();Q=t.store.getState().talkToRecs;q=[];e=[];G=_.U(f.stepIds);for(N=G.next();!N.done;N=G.next())for(z=N.value,T=void 0,(O=(T=Q.stepStates[z])==null?void 0:T.userQuery)&&e.push({userQuery:f.submitEmptyUserQuery?"":O.userQuery,userQueryToken:O.token}),B=c=void 0,h=(B=(c=Q.stepStates[z])==null?void 0:c.selectionStates)!=
null?B:{},W=_.U(Object.entries(h)),L=W.next();!L.done;L=W.next())E=L.value,D=_.U(E),S=D.next().value,Z=D.next().value,d=S,K=Z,K.isSelected&&q.push(d);k={selectedChipTokens:q,userQueries:e,submittedStepIds:f.stepIds};Gz={browseTalk2recsFormData:k};f.browseEndpoint?(Tz=A,_.Mx(Tz,_.GD,f.browseEndpoint)):f.command&&(Tz=f.command);return Tz?y5.yield(_.jl(t.innertubeTransportService,Tz,{formData:Gz,disableCache:!0}).then(function(cp){(cp==null?0:cp.trackingParams)&&t.JSC$17886_screenManager.graftServerVe(cp==
null?void 0:cp.trackingParams)}),0):y5.return()})};
b4[T7]=[_.iY,q8,_.gx];var WW=function(A){this.store=A};
_.R(WW,Tu);
WW.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z;return _.l(function(T){f=_.C(A,Tux);if(!f||!f.stepId||!f.token)return T.return();f.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY"?(e=(q=(X=t.store.getState().talkToRecs.stepStates[f.stepId])==null?void 0:(Q=X.userQuery)==null?void 0:Q.userQuery)!=null?q:"",G=e.length>0?". ":"",N=e+G+f.selectedText,t.store.dispatch(fZk({stepId:f.stepId,userQueryToken:f.token,userQuery:N}))):f.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY"?t.store.dispatch(fZk({stepId:f.stepId,
userQueryToken:f.token,userQuery:(z=f.selectedText)!=null?z:""})):t.store.dispatch(tBE({stepId:f.stepId,token:f.token,isSelected:!0}));_.LO(T)})};
WW[T7]=[q8];var y0=function(A){this.store=A};
_.R(y0,Tu);y0.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G;return _.l(function(N){X=_.C(A,Stx);if(!X||!X.stepId||!X.userQueryToken)return N.return();G=(e=(Q=t)==null?void 0:(q=Q.form)==null?void 0:q.userQuery)!=null?e:"";f.store.dispatch(fZk({stepId:X.stepId,userQueryToken:X.userQueryToken,userQuery:G}));_.LO(N)})};
y0[T7]=[q8];_.ENy=new _.eh("TIMELY_ACTIONS_CONTROLLER_TOKEN");var vW=function(A){this.controller=A};
_.R(vW,Tu);vW.prototype.resolveCommand=function(A){var t=this,f,X,Q,q;return _.l(function(e){f=_.C(A,Bab);if(!f)return e.return();X=f;Q=X.id;q=X.isVisible;if(Q===void 0||q===void 0)return e.return();var G;(G=t.controller.timelyActionsMap.get(Q))==null||G(Q,q);_.LO(e)})};
vW[T7]=[_.ENy];var nNm=function(){this.timelyActionsMap=new Map};var Li=function(A){this.JSC$17912_commandHandler=A};
_.R(Li,Tu);Li.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e;return _.l(function(G){f=_.C(A,_.L1k);if(!f)return G.return();q=(X=f.item)==null?void 0:(Q=X.notificationTextRenderer)==null?void 0:Q.successResponseText;if(!q)return G.return();e=_.aC(q);t.JSC$17912_commandHandler.resolveCommand(e);_.LO(G)})};
Li[T7]=[_.i2];var pi=function(A,t){this.innertubeTransportService=A;this.JSC$17917_playerApiPromise=t};
_.R(pi,Tu);
pi.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z,T;return _.l(function(O){if(O.nextAddress==1)return O.yield(t.JSC$17917_playerApiPromise,2);f=O.yieldResult;X=f.getOption("captions","track");Q=Object.assign({},_.C(A,_.DhK));(e=(q=f.getVideoData())==null?void 0:q.video_id)?Q.externalVideoId=e:_.te(Error("Ii"));if((G=X)==null?0:G.languageCode)Q.languageCode=X.languageCode;if((N=X)==null?0:N.kind)Q.kind=X.kind;if((z=X)==null?0:z.name)Q.name=X.name;T=Object.assign({},A,{getTranscriptEndpoint:Q});return O.yield(_.jl(t.innertubeTransportService,
T),0)})};
pi[T7]=[_.iY,_.re];var Ec=function(){};
_.R(Ec,Tu);Ec.prototype.resolveCommand=function(A){var t,f,X,Q,q,e,G,N;return _.l(function(z){t=_.C(A,Cai);if((f=t)==null||!f.paramKeyValuePairs)return z.return();X=window.location.href;Q=_.U(t.paramKeyValuePairs);for(q=Q.next();!q.done;q=Q.next())e=q.value,e.key&&e.value&&(G={},X=_.Je(X,(G[e.key]=e.value,G)));N=_.Px().resolve(_.Zl);_.Vn(N,X);_.LO(z)})};_.ni=new _.eh("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var DP=function(A,t,f,X){this.controller=A;this.JSC$17924_playerApiPromise=t;this.innertubeTransportService=f;this.JSC$17924_commandHandler=X};
_.R(DP,Tu);
DP.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S;return _.l(function(Z){if(Z.nextAddress==1){f=_.C(A,S3w);if((X=f)==null||!X.watchEndpoint)return Z.return();Q=new IA;q=Q.JSC$14261_getRequest(f.watchEndpoint);if(!q)return Z.return();e=f.watchEndpoint.clickTrackingParams;return Z.yield(_.uE(t.innertubeTransportService,q.innerTubeRequest,q.input,e,q.config),2)}if(Z.nextAddress!=3)return G=Z.yieldResult,Z.yield(t.JSC$17924_playerApiPromise,3);N=Z.yieldResult;N.updateVideoData({raw_watch_next_response:G});
if(h=(z=G)==null?void 0:(T=z.contents)==null?void 0:(O=T.twoColumnWatchNextResults)==null?void 0:(c=O.results)==null?void 0:(B=c.results)==null?void 0:B.contents)L=(W=h.find(function(d){return d.videoPrimaryInfoRenderer}))==null?void 0:W.videoPrimaryInfoRenderer,((E=L)==null?0:E.subtitle)&&Dwj(t.controller,L.subtitle);
(S=(D=G)==null?void 0:D.onUiReady)&&t.JSC$17924_commandHandler.resolveCommand(S);_.LO(Z)})};
DP[T7]=[_.ni,_.re,_.iY,_.i2];var FSm=function(){this.subtitleChangeCallbackMap=new Map},Dwj=function(A,t){A=_.U(A.subtitleChangeCallbackMap.values());
for(var f=A.next();!f.done;f=A.next())f=f.value,f(t)};var Fe=function(A,t){this.JSC$17934_commandHandler=A;this.innertubeTransportService=t};
_.R(Fe,Tu);
Fe.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S;return _.l(function(Z){switch(Z.nextAddress){case 1:return(q=(X=t)==null?void 0:(Q=X.form)==null?void 0:Q.element)&&_.Dd(q),e=_.NJ().get("hl"),G="",_.ht(Z,2),Z.yield(Vuz(e),4);case 4:G=Z.yieldResult;_.qq(Z,3);break;case 2:return _.vC(Z),q&&_.FI(q),_.HQ(Error("Ki"),"ERROR"),Z.return();case 3:N=_.C(A,f7K);if(!N)return q&&_.FI(q),Z.return();(O=(z=N.commerceActionConfig)==null?void 0:(T=z.commandLifeCycleConfig)==null?
void 0:T.onStartCommand)&&f.JSC$17934_commandHandler.resolveCommand(O);return Z.yield(_.jl(f.innertubeTransportService,A,{client_data:{paymentsClientToken:{token:G}}}),5);case 5:(c=Z.yieldResult)?(q&&_.FI(q),((L=c)==null?0:L.command)&&f.JSC$17934_commandHandler.resolveCommand(c.command),(S=(E=N.commerceActionConfig)==null?void 0:(D=E.commandLifeCycleConfig)==null?void 0:D.onSuccessCommand)&&f.JSC$17934_commandHandler.resolveCommand(S)):(q&&_.FI(q),_.HQ(Error("Li")),(W=(B=N.commerceActionConfig)==
null?void 0:(h=B.commandLifeCycleConfig)==null?void 0:h.onFailureCommand)&&f.JSC$17934_commandHandler.resolveCommand(W)),_.LO(Z)}})};
Fe[T7]=[_.i2,_.iY];var In=function(A,t,f){this.store=A;this.JSC$17950_commandHandler=t;this.innertubeTransportService=f};
_.R(In,Tu);
In.prototype.resolveCommand=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O;return _.l(function(c){X=_.C(A,XMf);Q=X.googlePaymentPayload;X.onStartCommand&&f.JSC$17950_commandHandler.resolveCommand(X.onStartCommand);q=Q.encryptedPurchaseParams;e=Q.ypcLogWalletAnalyticDataEndpoint;G=X.serializedTransactionFlowLoggingParams;N=Q.serializedPaymentsClientParams;z=X.ypcCujContext;O=d0z(f.innertubeTransportService,(T=t)==null?void 0:T.form,q,e,G,N,z);return c.return(O.then(function(B){ZB5(t==null?void 0:t.form,
!1);var h=f.store,W=f.JSC$17950_commandHandler,L=B.integratorData;L==null||L===""||B.error!=null?(String(B.error)==="-1"&&X.onDismissCommand?W.resolveCommand(X.onDismissCommand):String(B.error)!=="-1"&&X.onFailureCommand&&W.resolveCommand(X.onFailureCommand),String(B.error)!=="-1"&&String(B.error)!=="132"&&_.HQ(Error("Mi"),"ERROR")):(X.googlePaymentEntityKey&&h.dispatch(_.Ta("commerceAcquisitionClientPayloadEntity",X.googlePaymentEntityKey,{key:X.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:L,
fundsGuaranteeCallbackClientData:B.integratorClientCallbackData}}})),X.onSuccessCommand&&W.resolveCommand(X.onSuccessCommand));_.ff()},function(B){ZB5(t==null?void 0:t.form,!1);
_.HQ(B,"ERROR");X.onFailureCommand&&f.JSC$17950_commandHandler.resolveCommand(X.onFailureCommand)}))})};
In[T7]=[tu,_.i2,_.iY];var xW=function(A,t){this.JSC$17954_commandHandler=A;this.purchaseManager=t};
_.R(xW,Tu);
xW.prototype.resolveCommand=function(A){var t=this,f,X,Q,q,e,G,N,z,T;return _.l(function(O){f=_.C(A,QSK);((X=f)==null?0:(Q=X.commandLifeCycleConfig)==null?0:Q.onStartCommand)&&t.JSC$17954_commandHandler.resolveCommand(f.commandLifeCycleConfig.onStartCommand);if(!((q=f)==null?0:(e=q.googlePaymentPurchaseManagerPayload)==null?0:e.securePayloadBytes))return _.HQ(Error("Ni"),"ERROR"),O.return();G=HIl(_.sx(f.googlePaymentPurchaseManagerPayload.securePayloadBytes));N=_.NJ().get("hl");z=_.YE();Bk2(G.serialize(),
N,function(c){z.resolve(c)},function(c){z.reject(c)},z.resolve);
T=z.promise;return O.return(T.then(function(c){if(c)if(c==null?0:c.errorCode){_.HQ(Error("Oi`"+c.errorCode),"ERROR");var B,h;((B=f)==null?0:(h=B.commandLifeCycleConfig)==null?0:h.onFailureCommand)&&t.JSC$17954_commandHandler.resolveCommand(f.commandLifeCycleConfig.onFailureCommand)}else if(c==null?0:c.isCancelled){var W,L;((W=f)==null?0:(L=W.commandLifeCycleConfig)==null?0:L.onCancelCommand)&&t.JSC$17954_commandHandler.resolveCommand(f.commandLifeCycleConfig.onCancelCommand)}else{var E,D;((E=f)==
null?0:(D=E.commandLifeCycleConfig)==null?0:D.onSuccessCommand)&&t.JSC$17954_commandHandler.resolveCommand(f.commandLifeCycleConfig.onSuccessCommand)}},function(c){_.HQ(c,"ERROR");
var B,h;((B=f)==null?0:(h=B.commandLifeCycleConfig)==null?0:h.onFailureCommand)&&t.JSC$17954_commandHandler.resolveCommand(f.commandLifeCycleConfig.onFailureCommand)}))})};
xW[T7]=[_.i2,MOd];var Igc=function(A,t){this.JSC$17962_commandHandler=A;this.commandAllowlistOverride=t;var f;this.commandAllowlist=(f=this.commandAllowlistOverride)!=null?f:V6};
Igc.prototype.handleResponse=function(A,t,f){var X,Q=t==null?void 0:(X=t.config)==null?void 0:X.command;if(!Q||this.commandAllowlist.some(function(q){return!!_.C(Q,q)})){t=void 0;
f!==void 0&&(t={form:{element:f}});A.onResponseReceivedCommand&&this.JSC$17962_commandHandler.resolveCommand(A.onResponseReceivedCommand,t);A.onResponseReceivedAction&&this.JSC$17962_commandHandler.resolveCommand(A.onResponseReceivedAction,t);A.onResponseReceivedEndpoint&&this.JSC$17962_commandHandler.resolveCommand(A.onResponseReceivedEndpoint,t);A.command&&this.JSC$17962_commandHandler.resolveCommand(A.command,t);if(A.onResponseReceivedCommands)for(f=_.U(A.onResponseReceivedCommands),X=f.next();!X.done;X=
f.next())this.JSC$17962_commandHandler.resolveCommand(X.value,t);if(A.onResponseReceivedActions)for(f=_.U(A.onResponseReceivedActions),X=f.next();!X.done;X=f.next())this.JSC$17962_commandHandler.resolveCommand(X.value,t);if(A.onResponseReceivedEndpoints)for(f=_.U(A.onResponseReceivedEndpoints),X=f.next();!X.done;X=f.next())this.JSC$17962_commandHandler.resolveCommand(X.value,t);if(A.actions)for(A=_.U(A.actions),f=A.next();!f.done;f=A.next())this.JSC$17962_commandHandler.resolveCommand(f.value,t)}};
Igc[T7]=[_.i2,_.z7(bv5)];var xwm=new _.eh("INNERTUBE_TOKEN_SERVICE");var jk8=new _.eh("SCHEDULER_TOKEN");var YP3=function(A){this.scheduler=A;A={};this.tokenMap=(A.app={},A.user={},A)};
YP3.prototype.handleResponse=function(A,t){if(!t)throw Error("Pi");var f;if(A=(f=A.responseContext)==null?void 0:f.innertubeTokenJar){if(A.appTokens){var X,Q,q;f=(X=t.innerTubeRequest.context)==null?void 0:(Q=X.request)==null?void 0:(q=Q.innertubeTokenJar)==null?void 0:q.appTokens;Vnd(this,A.appTokens,this.tokenMap.app,f)}if(A.userTokens){var e,G,N;t=(e=t.innerTubeRequest.context)==null?void 0:(G=e.request)==null?void 0:(N=G.innertubeTokenJar)==null?void 0:N.userTokens;Vnd(this,A.userTokens,this.tokenMap.user,
t)}}};
YP3.prototype.processContext=function(A){A.request||(A.request={});var t=Object.keys(this.tokenMap.app).length,f=Object.keys(this.tokenMap.user).length;if(t||f)A.request.innertubeTokenJar={},t&&(A.request.innertubeTokenJar.appTokens=[].concat(_.YV(Object.values(this.tokenMap.app).flat()))),f&&(A.request.innertubeTokenJar.userTokens=[].concat(_.YV(Object.values(this.tokenMap.user).flat())))};
var Vnd=function(A,t,f,X){t=_.U(t);for(var Q=t.next(),q={};!Q.done;q={token$jscomp$139:void 0},Q=t.next()){q.token$jscomp$139=Q.value;if(q.token$jscomp$139.type===void 0)throw new _.xj("InnerTube token has no type",q.token$jscomp$139);if(q.token$jscomp$139.clearTokens)f[q.token$jscomp$139.type]=[];else if(q.token$jscomp$139.value!==void 0){f[q.token$jscomp$139.type]||(f[q.token$jscomp$139.type]=[]);if(X!==void 0&&X.length){Q=_.U(X);for(var e=Q.next(),G={};!e.done;G={requestToken:void 0},e=Q.next())G.requestToken=
e.value,e=f[q.token$jscomp$139.type].findIndex(function(N){return function(z){return z===N.requestToken||(0,_.VG.equals)(z,N.requestToken)}}(G)),e>-1&&f[q.token$jscomp$139.type].splice(e,1)}f[q.token$jscomp$139.type].push(q.token$jscomp$139);
q.token$jscomp$139.maxAgeSeconds&&Number(q.token$jscomp$139.maxAgeSeconds)>0&&A.scheduler.addLowPriorityJob(function(N){return function(){var z=f[N.token$jscomp$139.type].indexOf(N.token$jscomp$139);z>-1&&f[N.token$jscomp$139.type].splice(z,1)}}(q),Number(q.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.xj("InnerTube token has no value",q.token$jscomp$139);
}};
YP3[T7]=[jk8];var Znd=new _.eh("LOCAL_INNERTUBE_ROUTER_TOKEN"),oNd=new _.eh("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var j6=function(A){this.serviceMap=A};
j6.prototype.shouldPreferLocalResponse=function(A,t){return(A=dww(this,A))?A.shouldPreferLocalResponse(t):!1};
j6.prototype.localInnertubeResponse=function(A,t){var f=this,X;return _.l(function(Q){return(X=dww(f,A))?Q.return(X.localInnertubeResponse(t)):Q.return(Promise.reject(Error("Qi")))})};
j6.prototype.canProvideFallbackResponse=function(A,t){return(A=dww(this,A))?A.canProvideFallbackResponse(t):!1};
j6.prototype.localFallbackInnertubeResponse=function(A,t){var f=this,X;return _.l(function(Q){return(X=dww(f,A))?Q.return(X.localFallbackInnertubeResponse(t)):Q.return(Promise.reject(Error("Qi")))})};
var dww=function(A,t){t=_.Wx(t);return t?(A=A.serviceMap[t])?A:null:null};
j6[T7]=[oNd];var BF=function(){};
BF.prototype.shouldPreferLocalResponse=function(){return!1};
BF.prototype.localInnertubeResponse=function(){return _.l(function(A){return A.return(Promise.reject(Error("Ri")))})};
BF.prototype.canProvideFallbackResponse=function(){return!0};
BF.prototype.localFallbackInnertubeResponse=function(){var A,t,f;return _.l(function(X){A=eM("CLOSE_POPUP");t={openPopupAction:$0z()};f={actions:[A,t]};return X.return(f)})};var J3b=function(A,t){this.JSC$18011_upliftPromise=A;this.store=t};
_.J=J3b.prototype;_.J.shouldPreferLocalResponse=function(A){var t=A.videoId,f;if(f=t)f=drx(this.store.getState().entities,A.videoId);return f&&Sds(this.store.getState().entities,t)?ayp(this.store.getState().entities,A.playlistId):!1};
_.J.localInnertubeResponse=function(A){var t=this,f;return _.l(function(X){return(f=t.getPlayerResponse(A))?X.return(Promise.resolve(f)):X.return(Promise.reject(Error("Si")))})};
_.J.canProvideFallbackResponse=function(A){return!!A.videoId};
_.J.localFallbackInnertubeResponse=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(t.JSC$18011_upliftPromise,2);f=t.getPlayerResponse(A);var Q;f?Q=X.return(Promise.resolve(f)):Q=Op(t.store.getState().entities,A.videoId)?X.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.w0(_.e5("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:wH0()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
X.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.w0(_.e5("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:gUs()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Q})};
_.J.getPlayerResponse=function(A){return ixs(this.store.getState().entities,A.videoId)};var cF=function(A,t){this.localPlayerService=A;this.localWatchNextService=t};
cF.prototype.shouldPreferLocalResponse=function(A){var t=A.playerRequest;A=A.watchNextRequest;return!!(t&&this.localPlayerService.shouldPreferLocalResponse(t)&&A&&this.localWatchNextService.shouldPreferLocalResponse(A))};
cF.prototype.localInnertubeResponse=function(A){var t=this,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1){f=A.playerRequest;X=A.watchNextRequest;if(!f||!X)throw new _.xj("Missing streaming request",A);return e.yield(t.localPlayerService.localInnertubeResponse(f),2)}if(e.nextAddress!=3)return Q=e.yieldResult,e.yield(t.localWatchNextService.localInnertubeResponse(X),3);q=e.yieldResult;return e.return({playerResponse:Q,watchNextResponse:q})})};
cF.prototype.canProvideFallbackResponse=function(A){var t=A.playerRequest;A=A.watchNextRequest;return!!(t&&this.localPlayerService.canProvideFallbackResponse(t)&&A&&this.localWatchNextService.canProvideFallbackResponse(A))};
cF.prototype.localFallbackInnertubeResponse=function(A){var t=this,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return f=A.playerRequest,X=A.watchNextRequest,f&&X?e.yield(t.localPlayerService.localFallbackInnertubeResponse(f),2):e.return(Promise.reject(new _.xj("Missing streaming request",A)));if(e.nextAddress!=3)return Q=e.yieldResult,e.yield(t.localWatchNextService.localFallbackInnertubeResponse(X),3);q=e.yieldResult;return e.return({playerResponse:Q,watchNextResponse:q})})};var TF=function(A){this.JSC$18021_persistentStorePromiseAccessor=A};
TF.prototype.shouldPreferLocalResponse=function(){return!1};
TF.prototype.localInnertubeResponse=function(){return _.l(function(A){return A.return(Promise.reject(Error("Ti")))})};
TF.prototype.canProvideFallbackResponse=function(){return!0};
TF.prototype.localFallbackInnertubeResponse=function(){var A=this,t,f;return _.l(function(X){return X.nextAddress==1?X.yield(A.JSC$18021_persistentStorePromiseAccessor(),2):X.nextAddress!=3?(t=X.yieldResult)?X.yield(t.get("service:guide:fallback"),3):X.return(Promise.reject(Error("Ui"))):(f=X.yieldResult)&&_.wP(f)?X.return(Kng(_.wP(f))):X.return(Promise.reject(Error("Vi")))})};var MB=function(){};
MB.prototype.shouldPreferLocalResponse=function(){return!1};
MB.prototype.localInnertubeResponse=function(){return _.l(function(A){return A.return(Promise.reject(Error("Wi")))})};
MB.prototype.canProvideFallbackResponse=function(){return!0};
MB.prototype.localFallbackInnertubeResponse=function(){var A,t,f;return _.l(function(X){A=eM("CLOSE_POPUP");t={openPopupAction:$0z()};f={actions:[A,t]};return X.return(f)})};var PF=function(){this.urlMap=SP3;this.fallbackCommand=_.HX};
PF.prototype.shouldPreferLocalResponse=function(A){return(A=A.url)?!!$wh(this,A):!1};
PF.prototype.localInnertubeResponse=function(A){var t=this,f;return _.l(function(X){return(f=A.url)?X.return(Hnd(A,$wh(t,f))):X.return(Promise.reject(Error("Xi")))})};
PF.prototype.canProvideFallbackResponse=function(){return!0};
PF.prototype.localFallbackInnertubeResponse=function(A){var t=this,f,X,Q,q,e,G,N;return _.l(function(z){f=A.url;if(!f)return z.return(Hnd(A,t.fallbackCommand));if(X=$wh(t,f))return z.return(Hnd(A,X));Q=void 0;q=_.Wx(f);q==="/watch"&&(e=_.ww(f,"v"))&&(N=(G=_.ww(f,"list"))!=null?G:void 0,Q=_.g0(e,N));Q||(Q=t.fallbackCommand);return z.return(Hnd(A,Q))})};
var $wh=function(A,t){if(t)return A.urlMap[_.Iq(t)]},Hnd=function(A,t){t&&A.parentTrackingParams&&(t.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:A.parentTrackingParams}},t.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:t})};var ig=function(A,t,f){this.JSC$18032_upliftPromise=A;this.store=t;this.JSC$18032_persistentStorePromiseAccessor=f};
ig.prototype.shouldPreferLocalResponse=function(){return!1};
ig.prototype.localInnertubeResponse=function(){return _.l(function(A){return A.return(Promise.reject(Error("Yi")))})};
ig.prototype.canProvideFallbackResponse=function(){return!0};
ig.prototype.localFallbackInnertubeResponse=function(){var A=this;return _.l(function(t){return t.return(agm(A))})};
var agm=function(A){var t,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(gP(A.JSC$18032_upliftPromise,A.store),2);t=X.yieldResult;f={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[HBx(t)]}}}};return X.return(KSc(A,f))})},KSc=function(A,t){var f,X;
return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(A.JSC$18032_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return f=Q.yieldResult,Q.yield(Au(f),3);X=Q.yieldResult;return Q.return({responseContext:{},contents:t,topbar:X})})};var ug=function(A,t,f){this.JSC$18039_upliftPromise=A;this.store=t;this.JSC$18039_persistentStorePromiseAccessor=f};
ug.prototype.shouldPreferLocalResponse=function(A){var t=A.videoId;return t&&drx(this.store.getState().entities,t)&&Sds(this.store.getState().entities,t)?ayp(this.store.getState().entities,A.playlistId):!1};
ug.prototype.localInnertubeResponse=function(A){var t=this,f,X;return _.l(function(Q){if(Q.nextAddress==1)return(f=A.videoId)?Q.yield(t.JSC$18039_upliftPromise,2):Q.return(Promise.reject(Error("Zi")));if(Q.nextAddress!=3)return Q.yield(gNd(t,A,f),3);X=Q.yieldResult;return Q.return(wdc(t,X,f))})};
ug.prototype.canProvideFallbackResponse=function(A){return A.videoId?!0:!1};
ug.prototype.localFallbackInnertubeResponse=function(A){var t=this,f,X,Q,q;return _.l(function(e){switch(e.nextAddress){case 1:return(f=A.videoId)?e.yield(t.JSC$18039_upliftPromise,2):e.return(Promise.reject(Error("Zi")));case 2:return e.yield(gNd(t,A,f),3);case 3:X=e.yieldResult;if(Op(t.store.getState().entities,f)){e.jumpTo(4);break}return e.yield(gP(t.JSC$18039_upliftPromise,t.store),5);case 5:return Q=e.yieldResult,e.return(sk2(X,Q));case 4:return drx(t.store.getState().entities,f)&&Sds(t.store.getState().entities,
f)?e.return(wdc(t,X,f)):(q={title:_.w0(_.e5("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:wH0()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},e.return(sk2(X,q)))}})};
var gNd=function(A,t,f){var X,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1)return X=t.playlistId,Q=_.g0(f,X),N.yield(A.JSC$18039_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return q=N.yieldResult,N.yield(Au(q),3);e=N.yieldResult;G={responseContext:{},currentVideoEndpoint:Q,topbar:e};return N.return(G)})},wdc=function(A,t,f){if(A=Op(A.store.getState().entities,f)){var X;
f=A.videoEntity;var Q,q={title:sO(f.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.k7((X=f.localizedStrings)==null?void 0:X.viewCount),viewCount:_.k7((Q=f.localizedStrings)==null?void 0:Q.viewCount)}}};f.publishedTimestampMillis&&(q.dateText=_.k7(l0b(new Date(Number(f.publishedTimestampMillis)))));X={videoPrimaryInfoRenderer:q};Q=A.videoEntity;A=A.channelEntity;A={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:sO(_.e5("SHOW_MORE",void 0,"Show more")),
showLessText:sO(_.e5("SHOW_LESS",void 0,"Show less")),description:Q.formattedDescription,owner:{videoOwnerRenderer:{title:sO(A.title),thumbnail:A.avatar}}}};t.contents={twoColumnWatchNextResults:{results:{results:{contents:[X,A]}}}}}return t},sk2=function(A,t){A.contents={singleColumnWatchNextResults:{results:{results:{contents:[HBx(t)]}}}};
return A};var Ou=function(A,t,f){this.JSC$18044_upliftPromise=A;this.store=t;this.JSC$18044_persistentStorePromiseAccessor=f};
Ou.prototype.shouldPreferLocalResponse=function(){return!1};
Ou.prototype.localInnertubeResponse=function(){return _.l(function(A){return A.return(Promise.reject(Error("$i")))})};
Ou.prototype.canProvideFallbackResponse=function(){return!0};
Ou.prototype.localFallbackInnertubeResponse=function(){var A=this,t,f,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:return q.yield(A.JSC$18044_persistentStorePromiseAccessor(),2);case 2:return t=q.yieldResult,q.yield(Au(t),3);case 3:return f=q.yieldResult,X={responseContext:{},topbar:f},q.yield(A.JSC$18044_upliftPromise,4);case 4:return q.yield(gP(A.JSC$18044_upliftPromise,A.store),5);case 5:return Q=q.yieldResult,X.watchStatus={backgroundPromoRenderer:Q},q.return(X)}})};var kv3,r5y;_.YW=new _.eh("ENDPOINT_MAP");kv3=new _.eh("WATCH_ENDPOINT_MAP");r5y=new _.eh("REEL_ENDPOINT_MAP");var A$l=/^[a-zA-Z0-9_\-]{11}$/;var t8b=_.WI(function(){var A,t;return(t=(A=window).matchMedia)==null?void 0:t.call(A,"(prefers-reduced-motion: reduce)").matches});var AVQ=_.WI(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 A=_.Ae("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");A||(A=_.yT("VIDEO"),_.zm("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
A));return!!(A&&A.canPlayType&&A.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var teA=XMLHttpRequest.prototype.fetch,fAw=teA&&teA.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Nq?!0:!1;var V0=function(A){this.JSC$18055_storeWithEntities=A};
_.R(V0,Ul);_.J=V0.prototype;_.J.getApiPaths=function(){return $K8};
_.J.getExtension=function(A){return _.C(A,_.ZT)||_.C(A,_.zD)||_.C(A,VD7)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$14268_getStoreKey=function(A){if((_.M("kevlar_cache_on_ttl_player")||_.M("mweb_enable_shorts_innertube_player_prefetch")||_.M("mweb_use_new_history_manager")||_.M("web_shorts_prefetch_service_enabled"))&&(A=this.getExtension(A))&&A.videoId){var t={videoId:A.videoId};A.playlistId&&(t.playlistId=A.playlistId);A.playerParams&&(t.params=A.playerParams);return _.VX("player",t)}};
_.J.JSC$14261_getClientScreen=function(A){var t;return((t=A.contentPlaybackContext)==null?void 0:t.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$14261_buildRequest=function(A,t,f){if(_.M("enable_interstitial_entity_check")){var X=this.JSC$18055_storeWithEntities;if(t.videoId)for(var Q=_.U(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),q=Q.next();!q.done;q=Q.next()){q=q.value;var e;var G=void 0,N=void 0,z=t.videoId,T=q;(e=X)?(z=_.QQ(z+T,"interstitialInteractionStateEntity"),e=(G=(N=_.q_(e.getState().entities,"interstitialInteractionStateEntity",z))==null?void 0:N.primaryButtonClicked)!=null?G:!1):e=!1;if(e)switch(q){case "CONTENT_CHECK_REQUIRED":t.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":t.racyCheckOk=!0}}}t.videoId&&(A.videoId=t.videoId);t.playlistId&&(A.playlistId=t.playlistId);t.index!==void 0&&(A.playlistIndex=t.index+1);t.playerParams&&(A.params=t.playerParams);"startTimeSeconds"in t&&t.startTimeSeconds&&(_.M("enable_player_request_builder_start_time_floor")?A.startTimeSecs=Math.floor(t.startTimeSeconds):A.startTimeSecs=t.startTimeSeconds);f.contentPlaybackContext&&(A.playbackContext={contentPlaybackContext:f.contentPlaybackContext});f.prefetchPlaybackContext&&
(A.playbackContext=Object.assign({},A.playbackContext,{prefetchPlaybackContext:f.prefetchPlaybackContext}),A.context.request||(A.context.request={}),A.context.request.isPrefetch=!0);A.playbackContext||(A.playbackContext={});X=AVQ();A.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!X,supportXhr:fAw};f.overrideMutedAtStart&&(A.overrideMutedAtStart=f.overrideMutedAtStart);A.racyCheckOk=!!t.racyCheckOk;A.contentCheckOk=!!t.contentCheckOk;!_.M("captions_prefs_killswitch")&&(f=(f=_.Bi("yt-player-caption-language-preferences"))?
f:[],f==null?0:f.length)&&(A.captionParams={viewerSelectedCaptionLangs:f})};
_.J.getRequestConfig=function(A){A=this.JSC$14268_getStoreKey(A);var t;A&&(t={storeStrategy:{storeKey:A}});_.M("web_log_player_watch_next_ticks")&&(t=t||{},t.requestTick="ps_s",t.responseTick="ps_r");return t};
V0[T7]=[tu];var ZP=function(A,t){this.playerRequestBuilder=A;this.watchNextRequestBuilder=t};
_.R(ZP,Ul);ZP.prototype.getApiPaths=function(){return DKC};
ZP.prototype.getExtension=function(A){return _.C(A,_.ZT)};
ZP.prototype.isNavigationCommand=function(){return!0};
ZP.prototype.JSC$14261_buildRequest=function(A,t,f){A.playerRequest={};this.playerRequestBuilder.JSC$14261_buildRequest(A.playerRequest,t,f);_.M("web_streaming_watch")&&(A.watchNextRequest={},this.watchNextRequestBuilder.JSC$14261_buildRequest(A.watchNextRequest,t,f))};
ZP[T7]=[V0,IA];var Xf3;_.on=new _.eh("SHORTS_CONTROLLER_TOKEN");Xf3=new _.eh("SHORTS_STATE_STORE_TOKEN");var d1=function(A,t){var f=_.Hu.apply(2,arguments);A=A===void 0?0:A;_.xj.call(this,t,f);this.errorType=A;Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(d1,_.xj);var Qyj,qB_,JV2,eCT,x5,vTp,G_d,eL8,PIl,u1d,Nwh;Qyj=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(A){return A+"="}).join("|"));
qB_=RegExp(".*\\?.*playnext=1.*");JV2=function(A,t,f,X,Q){this.watchEndpointMap=A;this.reelWatchEndpointMap=t;this.innerTubeTransportService=f;this.fetchPbj=X;this.reloadOnPlayerFailure=Q===void 0?!0:Q};
_.Uc_=function(A,t){var f=_.cx("web_pbj_log_warning_rate",0);f=f>0&&Math.random()<f;var X;if((X=_.C(t.commandMetadata,_.Jl))==null||!X.rootVe)return f&&_.K4(Error("ej")),!1;var Q;X=(Q=_.C(t.commandMetadata,_.Jl))==null?void 0:Q.url;if(!X)return f&&_.K4(Error("fj")),!1;if(qB_.test(X))return!0;if(Qyj.test(X))return f&&_.K4(Error("gj`"+X)),!1;if(_.C(t,_.ZT)){if(!(A.watchEndpointMap.watchNext&&A.watchEndpointMap.player||_.M("kevlar_fetch_initial_data_op_watch_client")))return f&&_.K4(Error("aj")),!1;
A=_.cx("web_pbj_log_warning_rate",0);A=A>0&&Math.random()<A;_.C(t,_.ZT)?kxb(t)?t=!0:(A&&_.K4(Error("bj")),t=!1):(A&&_.K4(Error("aj")),t=!1);return t}if(_.C(t,_.zD))return rpg(t);if(_.C(t,_.JM))return!0;A=_.xE(A.innerTubeTransportService,t);!A&&f&&_.HQ(Error("hj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(t)});return A};
eCT=function(A,t,f,X,Q,q){t={url:t};if(f==null?0:f.itct)t.parentTrackingParams=f.itct;var e=_.HE(AKE);return _.uE(A.innerTubeTransportService,t,e).then(function(G){(G=G.endpoint)||(G=_.HX);(f==null?0:f.itct)&&G&&!G.trackingParams&&(G.trackingParams=f.itct);var N=Nv(G);return x5(A,G,f,X,N,Q,q)})};
x5=function(A,t,f,X,Q,q,e,G){G=G===void 0?{}:G;if(A.fetchPbj&&!_.Uc_(A,t)&&!_.M("force_one_platform")){G=A.fetchPbj(t);var N=_.ff(G.then(function(Z){if(!Z)throw Error("ij");e(N)||q(t,Z);return Z}));
return N}var z,T,O={rootVe:(z=_.C(t.commandMetadata,_.Jl))==null?void 0:z.rootVe,url:(T=_.C(t.commandMetadata,_.Jl))==null?void 0:T.url,endpoint:t,page:Q};if(_.C(t,_.ZT)){var c,B={contentPlaybackContext:_.Xt(f,(c=_.C(t.commandMetadata,_.Jl))==null?void 0:c.url,X)},h=_.YE();_.M("web_streaming_watch")&&window.TextDecoderStream?(G=pjT(A.innerTubeTransportService,t,B,function(Z){!O.response&&Z.content&&(O.response=Z.content);!O.playerResponse&&Z.player&&(O.playerResponse=Z.player);q(t,O)}),z=Z95(t),z.length&&
(O.preconnect=z,q(t,O)),eL8(G,h,O).catch(function(Z){Z instanceof d1&&Z.errorType===2&&_.M("web_streaming_watch_fallback")&&G_d(A,t,B,O,q,e,h)})):G_d(A,t,B,O,q,e,h);
return h.promise}if(_.C(t,_.zD)){var W;if(((W=_.C(t,_.zD))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var L=_.YE();_.lAw(_.Px().resolve(_.on),t).then(function(Z){Nwh(A,f,X,Q,q,L,Z)});
return L.promise}G=_.ff();var E;z={contentPlaybackContext:_.Xt(f,(E=_.C(t.commandMetadata,_.Jl))==null?void 0:E.url,X)};(E=A.reelWatchEndpointMap.player)&&(E=E().JSC$14261_getRequest(t,z))&&(G=_.uE(A.innerTubeTransportService,E.innerTubeRequest,E.input,t.clickTrackingParams,E.config));E=_.ff();(T=A.reelWatchEndpointMap.reelItemWatch)&&(T=T().JSC$14261_getRequest(t))&&(E=_.uE(A.innerTubeTransportService,T.innerTubeRequest,T.input,t.clickTrackingParams,T.config));T=_.ff();(c=A.reelWatchEndpointMap.reelWatchSequence)&&
_.C(t,_.zD).sequenceParams&&(z=c().JSC$14261_getRequest(t,z))&&(_.M("web_enable_delay_shorts_sequence_call_forget")?_.uE(A.innerTubeTransportService,z.innerTubeRequest,z.input,t.clickTrackingParams,z.config):T=_.uE(A.innerTubeTransportService,z.innerTubeRequest,z.input,t.clickTrackingParams,z.config));z=_.ff(O);c=_.YE();u1d(t,z,G,E,T,q,e,c);return c.promise}var D;if(_.C(t,XMb)&&((D=_.C(t.commandMetadata,_.Jl))==null?0:D.url))return G=Gup(_.kC(dG().location.href),_.kC(_.C(t.commandMetadata,_.Jl).url)).toString(),
eCT(A,G,f,X,q,function(){return!1});
if(_.C(t,_.JM))return q(t,O),_.ff(O);if(_.xE(A.innerTubeTransportService,t)){G=Object.assign({},{tempData:f,disableCache:f.disableCache},G);var S=_.jl(A.innerTubeTransportService,t,G).then(function(Z){O.response=Z;e(S)||q(t,O);return O});
return S}return _.ff(O)};
_.zLA=function(A,t,f,X){if(_.C(t,_.ZT)||_.C(t,_.zD)&&(_.M("mweb_enable_shorts_innertube_player_prefetch")||_.M("kevlar_enable_shorts_prefetch_in_sequence"))||_.C(t,VD7)&&_.M("web_enable_prefetching_videos_on_home")){var Q,q={contentPlaybackContext:_.Xt(f,(Q=_.C(t.commandMetadata,_.Jl))==null?void 0:Q.url,X),prefetchPlaybackContext:XGT(f)},e,G,N;if(((e=_.C(t,_.ZT))==null?void 0:(G=e.watchEndpointSupportedPrefetchConfig)==null?void 0:(N=G.prefetchHintConfig)==null?void 0:N.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(f=
A.watchEndpointMap.watchNext)if(q=f().JSC$14261_getRequest(t,q))return Promise.resolve(_.uE(A.innerTubeTransportService,q.innerTubeRequest,q.input,void 0,q.config).then(function(O){return O}))}else if(f=A.watchEndpointMap.player)if(q=f().JSC$14261_getRequest(t,q))return Promise.resolve(_.uE(A.innerTubeTransportService,q.innerTubeRequest,q.input,void 0,q.config).then(function(O){return O}))}else if(_.xE(A.innerTubeTransportService,t)){var z={tempData:f},T=bEw(A.innerTubeTransportService,t);
return T?new Promise(function(O,c){var B,h;return _.l(function(W){if(W.nextAddress==1)return W.yield(T,2);if(W.nextAddress!=4)return B=W.yieldResult,B.JSC$14268_getStoreKey(t,z)?W.yield(_.jl(A.innerTubeTransportService,t,z),4):(c(new _.xj("Prefetching request builder with no store key.",t)),W.jumpTo(0));h=W.yieldResult;O(h);_.LO(W)})}):Promise.reject(new _.xj("Prefetching unregistered request builder.",t))}return Promise.reject(new _.xj("No request builder available to prefetch endpoint.",t))};
vTp=function(A,t){var f,X,Q;if(_.C(t,_.ZT)){var q=A.watchEndpointMap.watchNext;q&&(f=q());(A=A.watchEndpointMap.player)&&(X=A())}else if(_.C(t,_.zD))(q=A.reelWatchEndpointMap.reelItemWatch)&&(f=q()),(q=A.reelWatchEndpointMap.player)&&(X=q()),(A=A.reelWatchEndpointMap.reelWatchSequence)&&(Q=A());else{a:{A=e_x(t,A.innerTubeTransportService.endpointMap);if(A!==void 0)if(typeof A.then==="function")_.HQ(new _.xj("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",t));else break a;
A=void 0}A&&(f=A)}var e,G,N;return{content:(e=f)==null?void 0:e.JSC$14268_getStoreKey(t),player:(G=X)==null?void 0:G.JSC$14268_getStoreKey(t),reelSequence:(N=Q)==null?void 0:N.JSC$14268_getStoreKey(t)}};
G_d=function(A,t,f,X,Q,q,e){var G=_.ff(),N=A.watchEndpointMap.player;_.M("web_streaming_player")&&(N=E7(ZP));N&&(N=N().JSC$14261_getRequest(t,f))&&(G=_.uE(A.innerTubeTransportService,N.innerTubeRequest,N.input,t.clickTrackingParams,N.config));N=_.ff();var z=A.watchEndpointMap.watchNext;z&&(f=z().JSC$14261_getRequest(t,f))&&(N=_.uE(A.innerTubeTransportService,f.innerTubeRequest,f.input,t.clickTrackingParams,f.config));X=_.ff(X);PIl(A,t,X,G,N,Q,q,e)};
eL8=function(A,t,f){var X;return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(A,2);_.M("web_streaming_watch_delay_200")||_.M("web_streaming_watch_delay_400")?(X=_.M("web_streaming_watch_delay_200")?200:400,setTimeout(function(){t.resolve(f)},X)):t.resolve(f);
_.LO(Q)})};
PIl=function(A,t,f,X,Q,q,e,G){var N,z,T,O,c;_.l(function(B){switch(B.nextAddress){case 1:return B.yield(f,2);case 2:N=B.yieldResult;if(e(G.promise))return G.resolve(N),B.return();q(t,N);z=Z95(t);if(!z.length){B.jumpTo(3);break}return B.yield(f,4);case 4:N.preconnect=z,q(t,N);case 3:return _.ht(B,5),B.yield(X,7);case 7:T=B.yieldResult;_.qq(B,6);break;case 5:return O=_.vC(B),G.reject(O),B.return();case 6:if(T===void 0&&A.reloadOnPlayerFailure)return N.reload=!0,q(t,N),G.resolve(N),B.return();if(e(G.promise))return G.resolve(N),
B.return();N.playerResponse=T;q(t,N);_.M("web_watch_stop_scheduler_on_player_response")&&LPT();_.ht(B,8);return B.yield(Q,10);case 10:c=B.yieldResult;_.qq(B,9);break;case 8:_.vC(B);case 9:if(c===void 0)return N.response={responseContext:{}},G.resolve(N),B.return();if(e(G.promise))return G.resolve(N),B.return();N.response=c;q(t,N);G.resolve(N);_.LO(B)}})};
u1d=function(A,t,f,X,Q,q,e,G){var N,z,T,O,c,B;_.l(function(h){switch(h.nextAddress){case 1:return h.yield(t,2);case 2:N=h.yieldResult;if(e(G.promise))return G.resolve(N),h.return();q(A,N);z=Z95(A);if(!z.length){h.jumpTo(3);break}return h.yield(t,4);case 4:N.preconnect=z,q(A,N);case 3:return _.ht(h,5),h.yield(f,7);case 7:T=h.yieldResult;_.qq(h,6);break;case 5:return O=_.vC(h),G.reject(O),h.return();case 6:if(T===void 0)return N.reload=!0,q(A,N),G.resolve(N),h.return();if(e(G.promise))return G.resolve(N),
h.return();N.playerResponse=T;q(A,N);_.M("web_shorts_stop_scheduler_on_player_response")&&LPT();_.ht(h,8);return h.yield(X,10);case 10:c=h.yieldResult;_.qq(h,9);break;case 8:_.vC(h);case 9:if(c===void 0)return N.response={responseContext:{}},G.resolve(N),h.return();if(e(G.promise))return G.resolve(N),h.return();N.response=c;q(A,N);_.ht(h,11);return h.yield(Q,13);case 13:B=h.yieldResult;_.qq(h,12);break;case 11:_.vC(h);case 12:if(e(G.promise))return G.resolve(N),h.return();B&&(N.reelWatchSequenceResponse=
B);q(A,N);G.resolve(N);_.LO(h)}})};
Nwh=function(A,t,f,X,Q,q,e){var G,N,z,T,O,c;_.l(function(B){if((G=e)==null||!G.replacementEndpoint)return q.reject(),B.return();N=e.replacementEndpoint;(z=_.C(N,_.zD))?(e.sequenceContinuation&&(z.sequenceParams=e.sequenceContinuation),T=_.Px().resolve(_.on),O=z.sequenceParams,Twd(T,N)&&delete z.sequenceParams,c=x5(A,N,t,f,X,Q,function(){return!1}),c.then(function(h){return _.l(function(W){if(W.nextAddress==1)return iA2(T,{reelWatchEndpoint:{sequenceParams:O}},h),W.yield(0,2);
q.resolve(h);_.LO(W)})})):q.reject();
_.LO(B)})};
JV2[T7]=[kv3,r5y,_.iY,_.z7(Cqp)];var OAh=function(){var A=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return A.sequenceMap}}},EZC=function(A,t,f){var X,Q=(X=t.config)==null?void 0:X.sequenceStrategy;
if(!Q)return f();A.sequenceMap.has(Q.sequenceKey)||A.sequenceMap.set(Q.sequenceKey,[]);A=A.sequenceMap.get(Q.sequenceKey);switch(Q.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return cVd(A,t,f);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Bwl(A,t,f);default:throw new _.xj("Request could not be sequenced",t);}},cVd=function(A,t,f){var X,Q,q;
return _.l(function(e){A.length>0?(Q=A[A.length-1],X=Q.responsePromise.then(function(){return f()})):X=f();
q={request:t,responsePromise:X};A.push(q);Mej(A,q);return e.return(q.responsePromise)})},Bwl=function(A,t,f){f=f();
if(A.length>0)for(var X=_.U(A),Q=X.next();!Q.done;Q=X.next())Q.value.responsePromise=f;var q={request:t,responsePromise:f};A.push(q);Mej(A,q);return Promise.resolve().then(function(){return A.indexOf(q)>0?q.responsePromise.then(function(e){return Object.assign({},e,{sequenceMetaData:{skipProcessing:!0}})}):q.responsePromise})},Mej=function(A,t){t.responsePromise.then(function(){var f=A.indexOf(t);
f>-1&&A.splice(f,1)})};var CIA=new _.eh("REQUEST_SEQUENCING");var S6=function(){};
_.R(S6,Ul);S6.prototype.getApiPaths=function(){return[]};
S6.prototype.getExtension=function(A){return _.C(A,Cei)};
S6.prototype.JSC$14261_buildRequest=function(A,t){A.recaptchaToken=t.recaptchaToken};
S6.prototype.getApiUrl=function(){return"/das_captcha"};var $W=function(){};
_.R($W,Ul);$W.prototype.getApiPaths=function(){return AAl};
$W.prototype.getExtension=function(A){return _.C(A,AhC)};
$W.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.createBackstagePostParams&&(A.createBackstagePostParams=t.createBackstagePostParams);f.comment_text&&(A.commentText=f.comment_text);if(f.attached_video_id)A.videoAttachment={videoId:f.attached_video_id};else if(f.image_poll_options)A.pollAttachmentData={options:f.image_poll_options};else if(f.poll_options)A.pollAttachment={choices:f.poll_options};else if(f.quiz_options)A.quizAttachmentData={options:f.quiz_options};else if(f.image_blob_id)A.imageAttachment=
{encryptedBlobId:f.image_blob_id},f.source_video_id&&(A.imageAttachment.sourceExternalVideoId=f.source_video_id),f.image_preview_coordinates&&(A.imageAttachment.previewCoordinates=JSON.parse(f.image_preview_coordinates));else if(f.images_data)A.imagesAttachment={imagesData:f.images_data};else if(f.clip_external_video_id!==void 0||f.clip_offset_ms!==void 0||f.clip_duration_ms!==void 0){var X,Q,q,e,G;A.clipAttachment={externalVideoId:(q=f.clip_external_video_id)!=null?q:"",offsetMs:(e=(X=f.clip_offset_ms)==
null?void 0:X.toString())!=null?e:"",durationMs:(G=(Q=f.clip_duration_ms)==null?void 0:Q.toString())!=null?G:""}}else f.shared_post_id&&(A.sharedPostAttachment={postId:f.shared_post_id});f.tagged_video_id&&(A.postCreationData={taggedVideoId:f.tagged_video_id});f.access_restrictions&&(typeof f.access_restrictions==="number"&&(t=f.access_restrictions,A.accessRestrictions={restriction:t!==1&&t===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof f.access_restrictions==="string"&&
(A.accessRestrictionsParams=f.access_restrictions));f.scheduled_publish_time_sec&&(A.scheduledPublishTimeSec=f.scheduled_publish_time_sec.toString())};var HW=function(){};
_.R(HW,Ul);HW.prototype.getApiPaths=function(){return UKK};
HW.prototype.getExtension=function(A){return _.C(A,s4S)};
HW.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.decorateMessageParams&&(A.params=t.decorateMessageParams);f.text&&(A.text=f.text)};var an=function(){};
_.R(an,Ul);an.prototype.getApiPaths=function(){return yAw};
an.prototype.getExtension=function(A){return _.C(A,tPi)};
an.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;f.video_id&&(A.videoId=f.video_id)};var Ki=function(){};
_.R(Ki,Ul);Ki.prototype.getApiPaths=function(){return ncC};
Ki.prototype.getExtension=function(A){return _.C(A,_.qJ)};
Ki.prototype.JSC$14261_buildRequest=function(A,t,f){f.suggestions_query&&(A.input=f.suggestions_query)};var g1=function(){};
_.R(g1,Ul);g1.prototype.getApiPaths=function(){return uF8};
g1.prototype.getExtension=function(A){return _.C(A,fof)};
g1.prototype.JSC$14261_buildRequest=function(A,t,f){f.comment_text!==void 0&&(A.commentText=f.comment_text);f.scheduled_publish_time_sec&&(A.scheduledPublishTimeSec=f.scheduled_publish_time_sec.toString());A.updateBackstagePostParams=t.updateBackstagePostParams};var w1=function(){};
_.R(w1,Ul);w1.prototype.getApiPaths=function(){return oJ};
w1.prototype.getExtension=function(A){return _.C(A,_.L1)};
w1.prototype.JSC$14261_buildRequest=function(A,t,f){f.formData&&(A.formData=f.formData);t.token?A.continuation=t.token:t.continuationTokenKey&&(f=_.$I().getState(),t=_.q_(f.entities,"continuationTokenEntity",t.continuationTokenKey))&&(A.continuation=String(t.continuationToken))};
var hLA=function(){};
_.R(hLA,Ul);_.J=hLA.prototype;_.J.getApiPaths=function(){return oJ};
_.J.getExtension=function(A){return _.C(A,_.GD)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$14268_getStoreKey=function(A){if((A=this.getExtension(A))&&A.browseId){var t={browseId:A.browseId};A.browseEndpointContextSupportedConfigs&&(t.browseEndpointContextSupportedConfigs=JSON.stringify(A.browseEndpointContextSupportedConfigs));A.params&&(t.params=A.params);A.query&&(t.query=A.query);return _.VX("browse",t)}};
_.J.JSC$14261_buildRequest=function(A,t,f){t.browseId&&(A.browseId=t.browseId);t.params&&(A.params=t.params);t.query&&(A.query=t.query);f.formData?A.formData=f.formData:t.formData&&(A.formData=t.formData);t.browseId==="FEsubscriptions"&&_.NJ().getFlag(155)&&(A.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");t.browseId==="SPaccount_playback"&&(f=_.NJ(),A.formData||(A.formData={}),A.formData.accountSettingsFormData={flagCaptionsDefaultOff:f.getFlag(65),flagAutoCaptionsDefaultOn:f.getFlag(66),
flagDisableInlinePreview:f.getFlag(186),flagAudioDescriptionDefaultOn:f.getFlag(198)});if(t.browseId==="FEwhat_to_watch"){f=_.NJ();var X=f.getFlag(196);f.getFlag(197)&&(A.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:X}}})}t.browseId==="FEwhat_to_watch"&&(t=_.NJ().getFlag(186),A.inlineSettingStatus=t?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.J.getRequestConfig=function(A,t){t=t===void 0?{}:t;var f={};if(A=this.JSC$14268_getStoreKey(A,t))f.storeStrategy={storeKey:A,disableCache:t.disableCache};_.M("web_log_browse_ticks_ks")||(f.requestTick="br_s",f.responseTick="br_r");return f};var sc=function(){};
_.R(sc,Ul);sc.prototype.getApiPaths=function(){return KKS};
sc.prototype.getExtension=function(A){return _.C(A,pYT)};
sc.prototype.JSC$14261_buildRequest=function(A,t,f){A.legacyYoutubeChannelUsername=f.legacyYouTubeChannelUsername||"";A.legacyYoutubeChannelPassword=f.legacyYouTubeChannelPassword||""};var kW=function(){};
_.R(kW,Ul);kW.prototype.getApiPaths=function(){return tAp};
kW.prototype.getExtension=function(A){return _.C(A,GIp)};
kW.prototype.JSC$14261_buildRequest=function(A,t,f){f.recaptcha_response_token&&(A.recaptchaResponseToken=f.recaptcha_response_token);f.channel_id&&(A.channelId=f.channel_id)};var r1=function(){};
_.R(r1,Ul);r1.prototype.getApiPaths=function(){return zbE};
r1.prototype.getExtension=function(A){return _.C(A,Tcf)};
r1.prototype.JSC$14261_buildRequest=function(A,t,f){t.externalChannelId&&(A.externalChannelId=t.externalChannelId);f.handle&&(A.handleUpdate={handle:f.handle},t.handleEditSource&&(A.handleUpdate.handleEditSource=t.handleEditSource))};var Ag=function(){};
_.R(Ag,Ul);Ag.prototype.getApiPaths=function(){return OQp};
Ag.prototype.getExtension=function(A){return _.C(A,jYw)};
Ag.prototype.JSC$14261_buildRequest=function(A,t,f){t.request&&(A.channelId=t.request.channelId);var X;if(f==null?0:(X=f.uploadDefaults)==null?0:X.emojiReactionSet)A.uploadDefaultsRequest||(A.uploadDefaultsRequest={}),A.uploadDefaultsRequest.emojiReactionSet=f.uploadDefaults.emojiReactionSet};var tg=function(){};
_.R(tg,Ul);tg.prototype.getApiPaths=function(){return MA7};
tg.prototype.getExtension=function(A){return _.C(A,loC)};
tg.prototype.JSC$14261_buildRequest=function(A,t,f){t.externalChannelId&&(A.externalChannelId=t.externalChannelId);t.channelHandleEntityKey&&(A.channelHandleEntityKey=t.channelHandleEntityKey);t.handleEditSource&&(A.handleEditSource=t.handleEditSource);f.handle?A.handle=f.handle:f.name&&(A.name=f.name)};var fc=function(){};
_.R(fc,Ul);fc.prototype.getApiPaths=function(){return sST};
fc.prototype.getExtension=function(A){return _.C(A,p4f)};
fc.prototype.JSC$14261_buildRequest=function(A,t){t.actions?A.actions=t.actions:t.action&&(A.actions=[t.action])};var Xq=function(){};
_.R(Xq,Ul);Xq.prototype.getApiPaths=function(){return kZC};
Xq.prototype.getExtension=function(A){return _.C(A,_.L1)};
Xq.prototype.JSC$14261_buildRequest=function(A,t){t.token&&(A.continuation=t.token)};var Qo=function(){};
_.R(Qo,Ul);Qo.prototype.getApiPaths=function(){return bhw};
Qo.prototype.getExtension=function(A){return _.C(A,_.L1)};
Qo.prototype.JSC$14261_buildRequest=function(A,t){A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";t.token&&(A.fetchCommentsParams={continuation:t.token})};var qe=function(){};
_.R(qe,Ul);qe.prototype.getApiPaths=function(){return Xal};
qe.prototype.getExtension=function(A){return _.C(A,LUE)};
qe.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.createReplyParams&&(A.createReplyParams=t.createReplyParams);t.commentText&&(A.commentText=_.dF(t.commentText));f.comment_text&&(A.commentText=f.comment_text);f.image_blob_id&&(A.imageAttachment={encryptedBlobId:f.image_blob_id});f.botguard_response&&(A.botguardResponse=f.botguard_response)};
_.PV.Object.defineProperties(qe.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jg=function(){};
_.R(Jg,Ul);Jg.prototype.getApiPaths=function(){return QBE};
Jg.prototype.getExtension=function(A){return _.C(A,_.voC)};
Jg.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.createCommentParams&&(A.createCommentParams=t.createCommentParams);t.commentText&&(A.commentText=_.dF(t.commentText));t.videoPositionMention&&(A.videoPositionMention=t.videoPositionMention);t.sources&&(A.sources=t.sources);f.comment_text&&(A.commentText=f.comment_text);f.attached_video_id?A.videoAttachment={videoId:f.attached_video_id}:f.poll_options?A.pollAttachment={choices:f.poll_options}:f.image_blob_id?A.imageAttachment=
{encryptedBlobId:f.image_blob_id}:f.shared_post_id&&(A.sharedPostAttachment={postId:f.shared_post_id});f.access_restrictions&&typeof f.access_restrictions==="number"&&(t=f.access_restrictions,A.accessRestrictions={restriction:t!==1&&t===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});f.botguard_response&&(A.botguardResponse=f.botguard_response)};
_.PV.Object.defineProperties(Jg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UC=function(){};
_.R(UC,Ul);UC.prototype.getApiPaths=function(){return Pv7};
UC.prototype.getExtension=function(A){return _.C(A,noE)};
UC.prototype.JSC$14261_buildRequest=function(A,t,f){t.commentText&&(A.replyText=_.dF(t.commentText));f.comment_text&&(A.replyText=f.comment_text);A.updateReplyParams=t.updateReplyParams};
_.PV.Object.defineProperties(UC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eF=function(){};
_.R(eF,Ul);eF.prototype.getApiPaths=function(){return Thf};
eF.prototype.getExtension=function(A){return _.C(A,Eob)};
eF.prototype.JSC$14261_buildRequest=function(A,t,f){t.commentText&&(A.commentText=_.dF(t.commentText));f.comment_text&&(A.commentText=f.comment_text);A.updateCommentParams=t.updateCommentParams};
_.PV.Object.defineProperties(eF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var GM=function(){};
_.R(GM,Ul);GM.prototype.getApiPaths=function(){return iQ8};
GM.prototype.getExtension=function(A){return _.C(A,D$E)};
GM.prototype.JSC$14261_buildRequest=function(A,t){t.settings&&(A.settings=t.settings)};var lh=function(){};
_.R(lh,Ul);lh.prototype.getApiPaths=function(){return cAi};
lh.prototype.getExtension=function(A){return _.C(A,Nc7)};
lh.prototype.JSC$14261_buildRequest=function(A,t){t.channelCreationToken&&(A.channelCreationToken=t.channelCreationToken);t.source&&(A.source=t.source)};var Ne=function(){};
_.R(Ne,Ul);Ne.prototype.getApiPaths=function(){return fL7};
Ne.prototype.getExtension=function(A){return _.C(A,PA7)};
Ne.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;if(f.name&&(f.given_name||f.family_name))A=new _.xj("channel creation cannot set both GAIA and YouTube names",t),_.HQ(A);else{if(t.zeroStepChannelCreationParams){if(!f.comment_text){A=new _.xj("zero_step_create_comment_params but no zero_step_texts",t);_.HQ(A);return}A.zeroStepChannelCreationParams=t.zeroStepChannelCreationParams;A.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(A.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
f.comment_text,f.botguard_response&&(A.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=f.botguard_response))}A.channelCreationToken=t.channelCreationToken;f.given_name&&(A.givenName=f.given_name);f.family_name&&(A.familyName=f.family_name);t.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(A.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(f.name||f.handle||f.avatar_url||f.encryptedBlobId||f.isNameChanged!==void 0||f.isHandleChanged!==void 0||f.isDefaultProfilePhoto!==
void 0||f.obakeImageSource)A.overrideChannelCreationParams={},f.name&&(A.overrideChannelCreationParams.name=f.name),f.handle&&(A.overrideChannelCreationParams.handle=f.handle),f.avatar_url&&(A.overrideChannelCreationParams.avatarUrl=f.avatar_url),f.encryptedBlobId&&(A.overrideChannelCreationParams.blobEncryptionId=f.encryptedBlobId),f.enableIdentityForAllChannelCreationDialog&&(f.encryptedBlobId?A.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
f.isDefaultProfilePhoto!==void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=f.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),f.isNameChanged!==void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationNameTag=f.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),f.isHandleChanged!==
void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=f.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),f.obakeImageSource&&(A.overrideChannelCreationParams.obakeImageSourceType=f.obakeImageSource))}};var uh=function(){};
_.R(uh,Ul);uh.prototype.getApiPaths=function(A){return(A=this.getExtension(A))&&A.status==="DISLIKE"?Nop:A&&A.status==="INDIFFERENT"?wal:jBf};
uh.prototype.getExtension=function(A){return _.C(A,_.p8)};
uh.prototype.JSC$14261_buildRequest=function(A,t){t.target&&(A.target=t.target);if(t=this.getParams(t))A.params=t};
uh.prototype.getParams=function(A){switch(A==null?void 0:A.status){case "DISLIKE":return A.dislikeParams;case "INDIFFERENT":return A.removeLikeParams;default:return A==null?void 0:A.likeParams}};var zM=function(){};
_.R(zM,Ul);zM.prototype.getApiPaths=function(){return JKC};
zM.prototype.getExtension=function(A){return _.C(A,YlT)};
zM.prototype.JSC$14261_buildRequest=function(A,t){t.settingItemId&&(A.settingItemId=t.settingItemId);t.stringValue!=null&&t.stringValue!==void 0?A.newValue={stringValue:t.stringValue}:t.intValue?A.newValue={intValue:t.intValue}:t.boolValue!==null&&t.boolValue!==void 0?A.newValue={boolValue:t.boolValue}:(A=new _.xj("Unknown value type for SetSettingEndpoint.",t),_.HQ(A))};var Pb=function(){};
_.R(Pb,Ul);Pb.prototype.getApiPaths=function(){return GAl};
Pb.prototype.getExtension=function(A){return _.C(A,flC)||void 0};
Pb.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.channelIds&&(A.channelIds=t.channelIds);t.siloName&&(A.siloName=t.siloName);t.params&&(A.params=t.params);f.botguardResponse&&(A.botguardResponse=f.botguardResponse);f.feature&&(A.clientFeature=f.feature)};
_.PV.Object.defineProperties(Pb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TM=function(){};
_.R(TM,Ul);TM.prototype.getApiPaths=function(){return Nhw};
TM.prototype.getExtension=function(A){return _.C(A,VHK)||void 0};
TM.prototype.JSC$14261_buildRequest=function(A,t){t.channelIds&&(A.channelIds=t.channelIds);t.siloName&&(A.siloName=t.siloName);t.params&&(A.params=t.params)};
_.PV.Object.defineProperties(TM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ih=function(A){this.shareClientParamsProvider=A};
_.R(ih,Ul);ih.prototype.getApiPaths=function(){return kbg};
ih.prototype.getExtension=function(A){return _.C(A,zg8)||_.C(A,_.PcE)||_.C(A,ukp)};
ih.prototype.JSC$14261_buildRequest=function(A,t){t.serializedShareEntity&&(A.serializedSharedEntity=t.serializedShareEntity);if(t.clientParamIdentifier){var f;if((f=this.shareClientParamsProvider)==null?0:f.clientParams.has(t.clientParamIdentifier)){f=this.shareClientParamsProvider;t=t.clientParamIdentifier;var X=f.clientParams.get(t);X&&f.clientParams.delete(t);A.clientParams=X}}};
ih[T7]=[K3j];var OC=function(){};
_.R(OC,Ul);OC.prototype.getApiPaths=function(){return $Mk};
OC.prototype.getExtension=function(A){return _.C(A,Z9l)};
OC.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var cb=function(){};
_.R(cb,Ul);cb.prototype.getApiPaths=function(){return uSS};
cb.prototype.getExtension=function(A){return _.C(A,jzT)};
cb.prototype.JSC$14261_buildRequest=function(A,t){t.dismissal&&(A.items=[t.dismissal])};
_.PV.Object.defineProperties(cb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Bb=function(){};
_.R(Bb,Ul);Bb.prototype.getApiPaths=function(){return ILb};
Bb.prototype.getExtension=function(A){return _.C(A,_.vF)||void 0};
Bb.prototype.JSC$14261_buildRequest=function(A,t,f){A.feedbackTokens=[];t.feedbackToken&&A.feedbackTokens.push(t.feedbackToken);if(t=t.cpn||f.cpn)A.feedbackContext={cpn:t};A.isFeedbackTokenUnencrypted=!!f.is_feedback_token_unencrypted;A.shouldMerge=!1;f.extra_feedback_tokens&&(A.shouldMerge=!0,A.feedbackTokens=A.feedbackTokens.concat(f.extra_feedback_tokens))};
_.PV.Object.defineProperties(Bb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Me=function(){};
_.R(Me,Ul);Me.prototype.getApiPaths=function(){return ILb};
Me.prototype.getExtension=function(A){return _.C(A,_.qJ)};
Me.prototype.JSC$14261_buildRequest=function(A,t,f){f.feedback_tokens&&(A.feedbackTokens=f.feedback_tokens,A.shouldMerge=!0)};
_.PV.Object.defineProperties(Me.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vb=function(){};
_.R(vb,Ul);vb.prototype.getApiPaths=function(){return ILb};
vb.prototype.getExtension=function(A){return _.C(A,Ozb)};
vb.prototype.JSC$14261_buildRequest=function(A,t){t.undoToken&&(A.feedbackTokens=[t.undoToken]);t.isUndoTokenUnencrypted&&(A.isFeedbackTokenUnencrypted=t.isUndoTokenUnencrypted)};
_.PV.Object.defineProperties(vb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Lc=function(){};
_.R(Lc,Ul);Lc.prototype.getApiPaths=function(){return CvK};
Lc.prototype.getExtension=function(A){return _.C(A,Fq7)};
Lc.prototype.JSC$14261_buildRequest=function(A,t){t.nextEndpoint&&_.C(t.nextEndpoint,_.fV)?A.nextEndpoint={urlEndpoint:_.C(t.nextEndpoint,_.fV)}:t.nextEndpoint&&_.C(t.nextEndpoint,_.ZT)&&(A.nextEndpoint={watchEndpoint:_.C(t.nextEndpoint,_.ZT)});t.setRacy&&(A.setRacy=t.setRacy);t.setControvercy&&(A.setControvercy=t.setControvercy)};var pc=function(A){this.JSC$18256_storeWithEntities=A};
_.R(pc,Ul);pc.prototype.getApiPaths=function(){return Pbi};
pc.prototype.getExtension=function(A){return _.C(A,U2b)};
pc.prototype.JSC$14261_buildRequest=function(A,t){t.flowId&&(A.flowId=t.flowId);t.targetId&&(A.targetId=t.targetId);t.continuation&&(A.continuation=t.continuation);var f=t.flowStateEntityKey;if(t.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&f&&this.JSC$18256_storeWithEntities){var X;if(t=(X=this.JSC$18256_storeWithEntities.getState())==null?void 0:X.entities)if(X=_.tR(f).entityType,X=_.q_(t,X,f))A.flowState=X,A.flowStateEntityKey=f}};
_.PV.Object.defineProperties(pc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
pc[T7]=[tu];var RLw=function(){};
_.R(RLw,Ul);_.J=RLw.prototype;_.J.getApiPaths=function(){return Fsp};
_.J.JSC$14268_getStoreKey=function(){return _.VX("guide")};
_.J.getRequestConfig=function(){var A=this.JSC$14268_getStoreKey(),t;A&&(t={storeStrategy:{storeKey:A}});return t};
_.J.isNavigationCommand=function(){return!0};
_.J.getExtension=function(A){return _.C(A,_.qJ)};
_.J.JSC$14261_buildRequest=function(A){A.fetchLiveState=!0};var EC=function(){};
_.R(EC,Ul);EC.prototype.getApiPaths=function(){return gbi};
EC.prototype.getExtension=function(A){return _.C(A,bRT)};
EC.prototype.JSC$14261_buildRequest=function(){};var nc=function(){};
_.R(nc,Ul);nc.prototype.getApiPaths=function(){return wMl};
nc.prototype.getExtension=function(A){return _.C(A,WUT)};
nc.prototype.JSC$14261_buildRequest=function(){};var DD=function(){};
_.R(DD,Ul);DD.prototype.getApiPaths=function(){return S58};
DD.prototype.getExtension=function(A){return _.C(A,_.L1)};
DD.prototype.JSC$14261_buildRequest=function(A,t){t.token&&(A.continuation=t.token);var f,X;A==null||(f=A.context)==null||(X=f.user)==null||delete X.onBehalfOfUser};
DD.prototype.getRequestConfig=function(A){var t={},f;if(((f=this.getExtension(A))==null?void 0:f.sessionIndex)!==void 0){var X;t={authStrategy:{sessionIndex:(X=this.getExtension(A))==null?void 0:X.sessionIndex}}}return t};var Fq=function(){};
_.R(Fq,Ul);Fq.prototype.JSC$14261_getRequest=function(A){var t=this.getExtension(A),f=A="";if(t==null?0:t.popup)A="true";if(t==null?0:t.disableSignout)f="true";t={};return{input:"/getAccountSwitcherEndpoint",requestShell:YJ("/getAccountSwitcherEndpoint","GET",(t["X-YouTube-Delegation-Context"]=_.ah("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),t["X-YouTube-Account-Switcher-Popup"]=A,t["X-YouTube-Account-Switcher-Disable-Signout"]=f,t)),innerTubeRequest:{}}};
Fq.prototype.getApiPaths=function(){return[]};
Fq.prototype.getExtension=function(A){return _.C(A,_.CVp)};
Fq.prototype.JSC$14261_buildRequest=function(){};var IU=function(){};
_.R(IU,Ul);IU.prototype.JSC$14261_getRequest=function(A){var t="/cross_account_channel_transfer";(A=this.getExtension(A))&&(t=S9z(t,{target_session:A.targetSessionIndex,source_rapt:A.sourceRapt,rapt:A.targetRapt}));return{input:t,requestShell:YJ(t,"GET"),innerTubeRequest:{}}};
IU.prototype.getApiPaths=function(){return[]};
IU.prototype.getExtension=function(A){return _.C(A,y9S)};
IU.prototype.JSC$14261_buildRequest=function(){};var x_=function(){};
_.R(x_,Ul);x_.prototype.getApiPaths=function(){return Tof};
x_.prototype.isNavigationCommand=function(){return!0};
x_.prototype.getExtension=function(A){return _.C(A,_.qJ)};
x_.prototype.JSC$14261_buildRequest=function(A){var t=_.NJ().get("gsml","");t&&(A.safetyModeLockerObfuscatedGaiaId=t);A.userInterfaceTheme=_.np(!0);_.D2()?A.deviceTheme="DEVICE_THEME_SELECTED":_.JAx()?A.deviceTheme="DEVICE_THEME_SUPPORTED":A.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var jF=function(){};
_.R(jF,Ul);jF.prototype.getApiPaths=function(){return S58};
jF.prototype.getExtension=function(A){return _.C(A,vdk)};
jF.prototype.JSC$14261_buildRequest=function(A,t){if(t&&t.requestType&&(A.requestType=t.requestType,t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var f=t.nextUrl;f&&(_.HGg(f)||NG(f))&&(A.nextNavendpoint={urlEndpoint:{url:f}})}t&&t.channelSwitcherQuery&&(A.channelSwitcherQuery=t.channelSwitcherQuery);t&&t.triggerChannelCreation&&(A.triggerChannelCreation=t.triggerChannelCreation);var X;if(t==null?0:(X=t.contentOwnerConfig)==
null?0:X.externalContentOwnerId)A.contentOwnerConfig=t.contentOwnerConfig;A.callCircumstance=t&&t.requestType&&t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Q,q;t=A==null?void 0:(Q=A.context)==null?void 0:(q=Q.user)==null?void 0:q.onBehalfOfUser;if(t!==void 0){A.obfuscatedSelectedGaiaId=t;var e,G;A==null||(e=A.context)==null||(G=e.user)==null||delete G.onBehalfOfUser}var N,z;if(Q=A==null?void 0:(N=A.context)==null?void 0:(z=N.user)==null?
void 0:z.serializedDelegationContext)A.selectedSerializedDelegationContext=Q};var Y_=function(){};
_.R(Y_,Ul);Y_.prototype.getApiPaths=function(){return Hjf};
Y_.prototype.getExtension=function(A){return _.C(A,TxS)};
Y_.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var Vo=function(){};
_.R(Vo,Ul);Vo.prototype.getApiPaths=function(){return t1i};
Vo.prototype.getExtension=function(A){return _.C(A,_.Wdf)};
Vo.prototype.JSC$14261_buildRequest=function(A,t){if(t=t.createBroadcastRequest)A.useMasks=t.useMasks,A.broadcastType=t.broadcastType,A.broadcastSource=t.broadcastSource,A.broadcastMetadata=t.broadcastMetadata,A.broadcastMetadataMask=t.broadcastMetadataMask,A.videoMetadata=t.videoMetadata,A.videoMetadataMask=t.videoMetadataMask,A.liveChatSettingsUpdate=t.liveChatSettingsUpdate,A.liveChatSettingsUpdateMask=t.liveChatSettingsUpdateMask,A.cloneVideoId=t.cloneVideoId,A.cloneWithOverrides=t.cloneWithOverrides,
A.targetEntity=t.targetEntity,A.scheduledRedirectMetadata=t.scheduledRedirectMetadata};var ZD=function(){};
_.R(ZD,Ul);ZD.prototype.getApiPaths=function(){return qhl};
ZD.prototype.getExtension=function(A){return _.C(A,cMw)};
ZD.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.params&&(A.params=t.params);f.questionText&&(A.questionText=f.questionText);f.optionText&&f.optionText.length>0&&(A.optionText=f.optionText)};var oU=function(){};
_.R(oU,Ul);oU.prototype.getApiPaths=function(){return eml};
oU.prototype.getExtension=function(A){return _.C(A,ilf)};
oU.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var dT=function(){};
_.R(dT,Ul);dT.prototype.getApiPaths=function(){return M1k};
dT.prototype.getExtension=function(A){return _.C(A,uw7)};
dT.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var SF=function(){};
_.R(SF,Ul);SF.prototype.getApiPaths=function(){return hml};
SF.prototype.getExtension=function(A){return _.C(A,zlE)};
SF.prototype.JSC$14261_buildRequest=function(A,t,f){t.params&&(A.params=t.params);t.continuation&&(A.continuation=t.continuation);f.currentPlayerState&&f.currentPlayerState.playerOffsetMs&&(A.currentPlayerState={playerOffsetMs:f.currentPlayerState.playerOffsetMs.toString()})};var $_=function(){};
_.R($_,Ul);$_.prototype.getApiPaths=function(){return RmC};
$_.prototype.getExtension=function(A){return _.C(A,NKK)};
$_.prototype.JSC$14261_buildRequest=function(A,t,f){t.params&&(A.params=t.params);f.continuation&&(A.continuation=f.continuation);"hidden"in f&&(A.webClientInfo={isDocumentHidden:f.hidden});f.isInvalidationTimeoutRequest&&(A.isInvalidationTimeoutRequest=f.isInvalidationTimeoutRequest);f.invalidationPayload&&(t=lvT(_.sx(u2(f.invalidationPayload))),A.invalidationPayloadLastPublishAtUsec=vz(t,2));f.reloadActionPanel&&(A.reloadActionPanel=f.reloadActionPanel);f.fullReload&&(A.fullReload=f.fullReload);
f.currentPlayerState&&(A.currentPlayerState=f.currentPlayerState)};var Hb=function(){};
_.R(Hb,Ul);Hb.prototype.getApiPaths=function(){return Yhb};
Hb.prototype.getExtension=function(A){return _.C(A,Ol7)};
Hb.prototype.JSC$14261_buildRequest=function(A,t){A.params=t.params};var aU=function(){};
_.R(aU,Ul);aU.prototype.getApiPaths=function(){return CbS};
aU.prototype.getExtension=function(A){return _.C(A,EaS)};
aU.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var Kc=function(){};
_.R(Kc,Ul);Kc.prototype.getApiPaths=function(){return mK7};
Kc.prototype.getExtension=function(A){return _.C(A,naC)};
Kc.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var gT=function(){};
_.R(gT,Ul);gT.prototype.getApiPaths=function(){return V1i};
gT.prototype.getExtension=function(A){return _.C(A,BKp)};
gT.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var wT=function(){};
_.R(wT,Ul);wT.prototype.getApiPaths=function(){return oci};
wT.prototype.getExtension=function(A){return _.C(A,MNb)};
wT.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var sC=function(){};
_.R(sC,Ul);sC.prototype.getApiPaths=function(){return sBK};
sC.prototype.getExtension=function(A){return _.C(A,caS)};
sC.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var k_=function(){};
_.R(k_,Ul);k_.prototype.getApiPaths=function(){return QVp};
k_.prototype.getExtension=function(A){return _.C(A,_.C1T)};
k_.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.params&&(A.params=t.params);f.client_message_id&&(A.clientMessageId=f.client_message_id);f.recaptcha_token&&(A.recaptchaToken=f.recaptcha_token);f.rich_message&&f.rich_message.text_segments?(t=f.rich_message.text_segments.map(function(X){var Q={};X.text&&(Q.text=X.text);X.emoji_id&&(Q.emojiId=X.emoji_id);return Q}),A.richMessage={textSegments:t}):f.message&&(A.message=f.message);
f.currentPlayerState&&(A.currentPlayerState=f.currentPlayerState)};var rT=function(){};
_.R(rT,Ul);rT.prototype.getApiPaths=function(){return qRE};
rT.prototype.getExtension=function(A){return _.C(A,hlf)};
rT.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var AI=function(){};
_.R(AI,Ul);AI.prototype.getApiPaths=function(){return l9b};
AI.prototype.getExtension=function(A){return _.C(A,mNE)};
AI.prototype.JSC$14261_buildRequest=function(A,t,f){t.isUserInitiated&&(A.isUserInitiated=t.isUserInitiated);t.initiationSource&&(A.initiationSource=t.initiationSource);f.locationInfo&&(A.context.client.locationInfo=f.locationInfo)};var tI=function(){};
_.R(tI,Ul);tI.prototype.getApiPaths=function(){return ZhS};
tI.prototype.getExtension=function(A){return _.C(A,yzk)};
tI.prototype.JSC$14261_buildRequest=function(A,t,f){t.metadataUpdateRequest&&(t=t.metadataUpdateRequest,A.encryptedVideoId=t.encryptedVideoId,t.liveChat&&(t=t.liveChat,A.liveChat||(A.liveChat={}),t.performAsExternalChannelId&&(A.liveChat.performAsExternalChannelId=t.performAsExternalChannelId),t.source&&(A.liveChat.source=t.source)));var X;if(f==null?0:(X=f.liveChat)==null?0:X.liveChatSettings)A.liveChat||(A.liveChat={}),f=f.liveChat.liveChatSettings,A.liveChat.newLiveChatSettings=f,A.liveChat.newLiveChatSettingsMask||
(A.liveChat.newLiveChatSettingsMask={}),f.emojiReactionSet&&(A.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var fE=function(){};
_.R(fE,Ul);fE.prototype.getApiPaths=function(){return Bhp};
fE.prototype.getExtension=function(A){return _.C(A,_.ZRK)};
fE.prototype.JSC$14261_buildRequest=function(A,t,f){f.continuation?A.continuation=f.continuation:t.videoId&&(A.videoId=t.videoId);f.clientParams&&(A.clientParams=f.clientParams)};var Xu=function(){};
_.R(Xu,Ul);Xu.prototype.getApiPaths=function(){return bhw};
Xu.prototype.getExtension=function(A){return _.C(A,_.QA)};
Xu.prototype.JSC$14261_buildRequest=function(A,t){A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";A.fetchCommentsParams={};t.videoId&&(A.fetchCommentsParams.encryptedVideoId=t.videoId);t.postId&&(A.fetchCommentsParams.postId=t.postId);t.externalChannelId&&(A.fetchCommentsParams.externalChannelId=t.externalChannelId);t.linkedCommentId&&(A.fetchCommentsParams.linkedCommentId=t.linkedCommentId);(0,_.VG.isEmpty)(A.fetchCommentsParams)&&delete A.fetchCommentsParams};var Qm=function(){};
_.R(Qm,Ul);Qm.prototype.getApiPaths=function(){return oJ};
Qm.prototype.JSC$14261_buildRequest=function(A){A.browseId="FEnotifications_inbox"};
Qm.prototype.getExtension=function(A){return _.C(A,_.qJ)};var qY=function(){};
_.R(qY,Ul);qY.prototype.getApiPaths=function(){return bhw};
qY.prototype.JSC$14261_buildRequest=function(A,t){t.signal==="GET_NOTIFICATIONS_MENU"&&(A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");t.ctoken&&(A.ctoken=t.ctoken)};
var mcd=function(){};
_.R(mcd,qY);mcd.prototype.getExtension=function(A){return _.C(A,_.qJ)};
var bAl=function(){};
_.R(bAl,qY);bAl.prototype.getExtension=function(A){return _.C(A,EDC)};var JI=function(){};
_.R(JI,Ul);JI.prototype.getApiPaths=function(){return Ec7};
JI.prototype.getExtension=function(A){return _.C(A,_.qJ)};
JI.prototype.JSC$14261_buildRequest=function(){};var Ub=function(){};
_.R(Ub,Ul);Ub.prototype.getApiPaths=function(){return dKk};
Ub.prototype.getExtension=function(A){return _.C(A,I0i)||void 0};
Ub.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params);t.secondaryParams&&(A.secondaryParams=t.secondaryParams)};var eZ=function(){};
_.R(eZ,Ul);eZ.prototype.getApiPaths=function(){return Shi};
eZ.prototype.getExtension=function(A){return _.C(A,ixE)};
eZ.prototype.JSC$14261_buildRequest=function(A,t){t.undo&&(A.undo=t.undo);t.serializedOptOut&&(A.serializedOptOut=t.serializedOptOut);t.serializedRecordInteractionsRequest&&(A.serializedRecordInteractionsRequest=t.serializedRecordInteractionsRequest)};var Gj=function(){};
_.R(Gj,Ul);Gj.prototype.getApiPaths=function(){return aLl};
Gj.prototype.getExtension=function(A){return _.C(A,Oxk)};
Gj.prototype.JSC$14261_buildRequest=function(A,t){t.serializedInteractionsRequest&&(A.serializedRecordNotificationInteractionsRequest=t.serializedInteractionsRequest)};var lW=function(){};
_.R(lW,Ul);lW.prototype.getApiPaths=function(){return ry0};
lW.prototype.getExtension=function(A){return _.C(A,_.de)};
lW.prototype.JSC$14261_buildRequest=function(A,t,f){t=t===void 0?{}:t;f=f===void 0?{}:f;t.videoId?A.videoId=t.videoId:t.playlistId&&(A.playlistId=t.playlistId);var X;A.crossDeviceDownloadData={isCrossDeviceDownload:(X=t.isCrossDeviceDownload)!=null?X:!1};!f.downloadToMobileEduShown&&t.isCrossDeviceDownload&&(A.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var Q;if(X=(Q=t.offlineWebClientEligibility)!=null?Q:f.offlineWebClientEligibility)A.offlineWebClientEligibility=X;var q;if(Q=(q=t.preferredFormatType)!=
null?q:f.preferredFormatType)A.preferredFormatType=Q;var e;if(q=(e=t.lastOfflineQualitySettingsSavedMs)!=null?e:f.lastOfflineQualitySettingsSavedMs)A.lastOfflineQualitySettingsSavedMs=q;t.params&&(A.params=t.params)};var NY=function(){};
_.R(NY,Ul);NY.prototype.getApiPaths=function(){return mO};
NY.prototype.getExtension=function(A){return _.C(A,_.L1)};
NY.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.token&&(A.continuation=t.token);f.formData&&(A.formData=f.formData)};var uW=function(){};
_.R(uW,Ul);uW.prototype.getApiPaths=function(){return mO};
uW.prototype.getExtension=function(A){return _.C(A,CE7)};
uW.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;A.continuation=f.continuation};var zj=function(){};
_.R(zj,Ul);zj.prototype.getApiPaths=function(){return mO};
zj.prototype.getExtension=function(A){return _.C(A,_.ys)};
zj.prototype.JSC$14261_buildRequest=function(A,t){var f,X=t.panelIdentifier||((f=t.identifier)==null?void 0:f.tag);X&&(A.panelId=X);var Q;if((Q=t.globalConfiguration)==null?0:Q.params){var q;A.params=(q=t.globalConfiguration)==null?void 0:q.params}if(_.M("enable_ai_companion")){var e;t=t.engagementPanelExtras;if(t==null?0:(e=t.aiCompanionPanelExtras)==null?0:e.includeClientConversationId){var G,N;e=(N=(G=_.Px().resolve(_.z7(qPd)))==null?void 0:G("conversations"))==null?void 0:N.get("conversation_id")}else e=
void 0;if(G=e)A.formData=Object.assign({},A.formData,{inputComposerFormData:{conversationId:G}})}};
_.PV.Object.defineProperties(zj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Pj=function(){};
_.R(Pj,Ul);Pj.prototype.getApiPaths=function(){return mO};
Pj.prototype.getExtension=function(A){return _.C(A,JsC)};
Pj.prototype.JSC$14261_buildRequest=function(A,t){t.panelLoadingStrategy&&Qcz(A,t.panelLoadingStrategy)};var Tj=function(){};
_.R(Tj,Ul);Tj.prototype.getApiPaths=function(){return mO};
Tj.prototype.getExtension=function(A){return _.C(A,va8)};
Tj.prototype.JSC$14261_buildRequest=function(A,t){t.loadingStrategy&&Qcz(A,t.loadingStrategy)};var iW=function(){};
_.R(iW,Ul);iW.prototype.getApiPaths=function(){return mO};
iW.prototype.getExtension=function(A){return _.C(A,_.ij)};
iW.prototype.JSC$14261_buildRequest=function(A,t){t.panelLoadingStrategy&&Qcz(A,t.panelLoadingStrategy)};var Ob=function(){};
_.R(Ob,Ul);Ob.prototype.getApiPaths=function(){return mO};
Ob.prototype.getExtension=function(A){return _.C(A,LJ7)};
Ob.prototype.JSC$14261_buildRequest=function(A,t){var f,X=(f=t.contentSourcePanelIdentifier)==null?void 0:f.tag;X&&(A.panelId=X);var Q;if((Q=t.globalConfiguration)==null?0:Q.params){var q;A.params=(q=t.globalConfiguration)==null?void 0:q.params}};var cj=function(){};
_.R(cj,Ul);cj.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
cj.prototype.getExtension=function(A){return _.C(A,pSl)};
cj.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var Bj=function(){};
_.R(Bj,Ul);Bj.prototype.getApiPaths=function(){return cK7};
Bj.prototype.getExtension=function(A){return _.C(A,DX8)};
Bj.prototype.JSC$14261_buildRequest=function(A,t){t.externalChannelId&&(A.externalChannelId=t.externalChannelId);t.superChatAction&&(A.superChatAction=t.superChatAction);t.superStickersAction&&(A.superStickersAction=t.superStickersAction)};var MY=function(){};
_.R(MY,Ul);MY.prototype.getApiPaths=function(){return ihp};
MY.prototype.getExtension=function(A){return _.C(A,mRE)||_.C(A,p3x)};
MY.prototype.JSC$14261_buildRequest=function(A,t){t.videoIds?A.videoIds=t.videoIds:t.videoId&&(A.videoIds=[t.videoId]);t.playlistId&&(A.playlistId=t.playlistId);t.params&&(A.params=t.params);A.excludeWatchLater=!1};var CE=function(){};
_.R(CE,Ul);CE.prototype.getApiPaths=function(){return JAT};
CE.prototype.getExtension=function(A){return _.C(A,_.u1)};
CE.prototype.JSC$14261_buildRequest=function(A,t,f){f.create_playlist_title?A.title=f.create_playlist_title:t.title&&(A.title=t.title);if(f.create_playlist_privacy_status&&typeof f.create_playlist_privacy_status==="number"){a:{var X=f.create_playlist_privacy_status;if(X!==0){if(X===1){X="PUBLIC";break a}if(X===2){X="UNLISTED";break a}}X="PRIVATE"}A.privacyStatus=X}else t.privacyStatus&&(A.privacyStatus=t.privacyStatus);f.create_playlist_description&&(A.description=f.create_playlist_description);t.videoIds&&
(A.videoIds=t.videoIds);t.params&&(A.params=t.params);t.sourcePlaylistId&&(A.sourcePlaylistId=t.sourcePlaylistId)};var hI=function(){};
_.R(hI,Ul);hI.prototype.getApiPaths=function(){return GuT};
hI.prototype.getExtension=function(A){return _.C(A,DRT)};
hI.prototype.JSC$14261_buildRequest=function(A,t){A.playlistId=t.playlistId};var Re=function(){};
_.R(Re,Ul);Re.prototype.getApiPaths=function(){return Wsl};
Re.prototype.getExtension=function(A){return _.C(A,lmi)};
Re.prototype.JSC$14261_buildRequest=function(A,t){t.playlistId&&(A.playlistId=t.playlistId);t.params&&(A.params=t.params)};var mH=function(){};
_.R(mH,Ul);mH.prototype.getApiPaths=function(){return HhT};
mH.prototype.getExtension=function(A){return _.C(A,_.qN)||void 0};
mH.prototype.JSC$14261_buildRequest=function(A,t){t.actions&&(A.actions=t.actions);t.params&&(A.params=t.params);t.playlistId&&(A.playlistId=t.playlistId)};var bW=function(){};
_.R(bW,Ul);_.J=bW.prototype;_.J.getApiPaths=function(){return Ksk};
_.J.getExtension=function(A){return _.C(A,_.zD)};
_.J.JSC$14261_buildRequest=function(A,t){t.videoId&&(A.playerRequest={videoId:t.videoId},t.playerParams&&(A.playerRequest.params=t.playerParams),t.racyCheckOk&&(A.playerRequest.racyCheckOk=!!t.racyCheckOk),t.contentCheckOk&&(A.playerRequest.contentCheckOk=!!t.contentCheckOk));t.params&&(A.params=t.params);t.inputType&&(A.inputType=t.inputType);A.disablePlayerResponse=!0};
_.J.getRequestConfig=function(A){var t;(A=this.JSC$14268_getStoreKey(A))&&(t={storeStrategy:{storeKey:A}});_.M("web_log_reels_ticks")&&(t=t||{},t.requestTick="r_wrs",t.responseTick="r_wrr");return t};
_.J.JSC$14268_getStoreKey=function(A){A=this.getExtension(A);if(A!=null&&A.videoId){var t={videoId:A.videoId};A.params&&(t.params=A.params);return _.VX("reel_item_watch",t)}};var Wj=function(){};
_.R(Wj,Ul);_.J=Wj.prototype;_.J.getApiPaths=function(){return gcS};
_.J.getExtension=function(A){return _.C(A,_.zD)};
_.J.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;A.sequenceParams=t.sequenceParams;var X;((X=f)==null?0:X.contentPlaybackContext)&&_.M("web_shorts_prefetch_service_enabled")&&(A.playbackContext={contentPlaybackContext:f.contentPlaybackContext})};
_.J.JSC$14268_getStoreKey=function(A){if(_.M("shorts_controller_retrieve_seedless_sequence_v2")&&(A=this.getExtension(A),A==null?0:A.sequenceParams))return _.VX("reel_watch_sequence",{sequenceParams:A.sequenceParams})};
_.J.getRequestConfig=function(A){A=this.JSC$14268_getStoreKey(A);var t;A&&(t={storeStrategy:{storeKey:A}});t=t||{};t.requestTick="r_wsrs";t.responseTick="r_wsrr";t.processorTick="r_wsrp";return t};
var ym=function(){};
_.R(ym,Ul);ym.prototype.getApiPaths=function(){return gcS};
ym.prototype.getExtension=function(A){return _.C(A,_.L1)};
ym.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.token&&(A.continuation=t.token);var X;((X=f)==null?0:X.contentPlaybackContext)&&_.M("web_shorts_prefetch_service_enabled")&&(A.playbackContext={contentPlaybackContext:f.contentPlaybackContext})};
ym.prototype.getRequestConfig=function(A){A=this.JSC$14268_getStoreKey(A);var t;A&&(t={storeStrategy:{storeKey:A}});t=t||{};t.requestTick="r_wsrs";t.responseTick="r_wsrr";t.processorTick="r_wsrp";return t};var vj=function(){};
_.R(vj,Ul);vj.prototype.getApiPaths=function(){return zmE};
vj.prototype.getExtension=function(A){return _.C(A,_.QXl)};
vj.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.flagAction&&(A.action=t.flagAction);t.flagRequestType&&(A.flagRequestType=t.flagRequestType);t.additionalDetailCheckboxChecked&&(A.additionalDetailCheckboxChecked=t.additionalDetailCheckboxChecked);t.legalCheckboxChecked&&(A.legalCheckboxChecked=t.legalCheckboxChecked);t={};f.flag_issue_type!==void 0&&(t.issue=f.flag_issue_type);f.flag_affiliation!==void 0&&(t.affiliation=f.flag_affiliation);f.flag_full_name&&(t.fullName=f.flag_full_name);
Object.keys(t).length&&(A.legalReportDetails=t);if(f.flag_description||f.text)A.userComments=f.flag_description||f.text;t={};f.minutes!==void 0&&f.seconds!==void 0&&(t.minutes=f.minutes,t.seconds=f.seconds);f.vss_id&&(t.vssId=f.vss_id);Object.keys(t).length&&(A.videoReportDetails=t);t={};f.video_ids&&(t.videoIds=f.video_ids);f.impersonated_channel_url&&(t.impersonatedChannelUrl=f.impersonated_channel_url);Object.keys(t).length&&(A.channelAbuseReportDetails=t)};
_.PV.Object.defineProperties(vj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LE=function(){};
_.R(LE,Ul);LE.prototype.getApiPaths=function(){return BoS};
LE.prototype.getExtension=function(A){return _.C(A,n4S)};
LE.prototype.JSC$14261_buildRequest=function(A,t){t.blockedForKidsContent&&(A.blockedForKidsContent=t.blockedForKidsContent)};var pE=function(){};
_.R(pE,Ul);pE.prototype.getApiPaths=function(){return kuK};
pE.prototype.getExtension=function(A){return _.C(A,L8q)};
pE.prototype.JSC$14261_buildRequest=function(A,t,f){A.params=t.params;f.impersonated_channel_url&&(A.impersonatedChannelUrl=f.impersonated_channel_url)};var Eb=function(){};
_.R(Eb,Ul);Eb.prototype.getApiPaths=function(){return xKw};
Eb.prototype.getExtension=function(A){return _.C(A,_.D2T)};
Eb.prototype.JSC$14261_buildRequest=function(A,t){t.items&&(A.items=t.items);t.kidGaiaId&&(A.kidGaiaId=t.kidGaiaId)};var nE=function(){};
_.R(nE,Ul);nE.prototype.getApiPaths=function(){return OhE};
nE.prototype.getExtension=function(A){return _.C(A,_.Cwi)};
nE.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params);t.targetId&&(A.targetId=t.targetId)};var DI=function(){};
_.R(DI,Ul);DI.prototype.getApiPaths=function(){return f9f};
DI.prototype.getExtension=function(A){return _.C(A,nDC)};
DI.prototype.JSC$14261_buildRequest=function(A,t){t.externalVideoId&&(A.externalVideoId=t.externalVideoId);t.query&&(A.query=t.query);t.sourceTimelines&&(A.sourceTimelines=t.sourceTimelines)};var Fu=function(){};
_.R(Fu,Ul);Fu.prototype.getApiPaths=function(){return XlT};
Fu.prototype.getExtension=function(A){return _.C(A,_.L1)||void 0};
Fu.prototype.JSC$14261_buildRequest=function(A,t){t.token&&(A.continuation=t.token)};
_.W7j=function(){};
_.R(_.W7j,Ul);_.J=_.W7j.prototype;_.J.getApiPaths=function(){return XlT};
_.J.getExtension=function(A){return _.C(A,_.lY)||void 0};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$14268_getStoreKey=function(A,t){t=t===void 0?{}:t;if(!t.disableCache&&(A=this.getExtension(A))&&A.query)return t={query:A.query},A.params&&(t.params=A.params),_.VX("search",t)};
_.J.JSC$14261_buildRequest=function(A,t,f){t.query&&(A.query=t.query);t.params&&(A.params=t.params);if(!_.M("web_forward_suggest_stats_killswitch")){var X=_.C(t,XSp);X&&(A.suggestStats=X)}var Q;!_.M("kevlar_searchbox_stats_killswitch")&&((Q=f.tempData)==null?0:Q.gs_l)&&!_.C(t,XSp)&&(A.webSearchboxStatsUrl="/search?oq="+(f.tempData.oq||"")+"&gs_l="+f.tempData.gs_l);var q;if((q=f.tempData)==null?0:q.entityMid)t=A.suggestionSearchParams||{},t.entityMid=f.tempData.entityMid,A.suggestionSearchParams=t;
if(_.M("enable_desktop_vdcbg_components")||_.M("enable_inline_muted_playback_on_web_search"))t=_.NJ().getFlag(186),A.inlineSettingStatus=t?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";f.isFromShorts&&(A.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.J.getRequestConfig=function(A,t){t=t===void 0?{}:t;A=this.JSC$14268_getStoreKey(A,t);var f;A&&(f={storeStrategy:{storeKey:A}});_.M("web_log_search_ticks_ks")||(f=f||{},f.requestTick="sr_s",f.responseTick="sr_r");return f};var Ie=function(){};
_.R(Ie,Ul);Ie.prototype.getApiPaths=function(){return Lsp};
Ie.prototype.getExtension=function(A){return _.C(A,HRE)};
Ie.prototype.JSC$14261_buildRequest=function(A,t){t.serializedGetSharingProviderDataParams&&(A.serializedGetSharingProviderDataParams=t.serializedGetSharingProviderDataParams)};var xZ=function(){};
_.R(xZ,Ul);xZ.prototype.getApiPaths=function(){return pa7};
xZ.prototype.getExtension=function(A){return _.C(A,r2K)};
xZ.prototype.JSC$14261_buildRequest=function(A,t){t.endpoint&&(A.endpoint=t.endpoint);t.action&&(A.action=t.action)};var jZ=function(){};
_.R(jZ,Ul);jZ.prototype.getApiPaths=function(){return lLp};
jZ.prototype.getExtension=function(A){return _.C(A,FUC)};
jZ.prototype.JSC$14261_buildRequest=function(A,t){A.videoId=t.videoId;t.scheduledRedirectMetadataSourceVideoId&&(A.scheduledRedirectMetadata={sourceVideoId:t.scheduledRedirectMetadataSourceVideoId})};var YZ=function(){};
_.R(YZ,Ul);YZ.prototype.getApiPaths=function(){return UmK};
YZ.prototype.getExtension=function(A){return _.C(A,_.nyT)};
YZ.prototype.JSC$14261_buildRequest=function(A,t){A.params=t.params;A.correctionText=t.correctionText};var Vm=function(){};
_.R(Vm,Ul);Vm.prototype.getApiPaths=function(){return w6g};
Vm.prototype.getExtension=function(A){return _.C(A,_.DhK)};
Vm.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params);A.searchQuery=t.searchQuery;A.languageCode=t.languageCode;A.kind=t.kind;A.name=t.name;A.externalVideoId=t.externalVideoId};var ZI=function(){};
_.R(ZI,Ul);ZI.prototype.getApiPaths=function(){return RbK};
ZI.prototype.getExtension=function(A){return _.C(A,kdi)};
ZI.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.params=t.params)};var oe=function(A){this.JSC$18532_storeWithEntities=A};
_.R(oe,Ul);oe.prototype.getApiPaths=function(){return rwp};
oe.prototype.getExtension=function(A){return _.C(A,Awi)||_.C(A,f7K)};
oe.prototype.JSC$14261_buildRequest=function(A,t,f){f.client_data&&(A.clientData=f.client_data);if(t.commerceActionConfig){var X=t.commerceActionConfig;t=X.actionId;X=X.commerceActionParams;t&&(A.actionId=t);X&&(A.commerceActionParams=X)}else{var Q=t.actionId,q=t.commerceActionParams;f=t.entityKeys;Q&&(A.actionId=Q);q&&(A.commerceActionParams=q);var e;t=(X=this.JSC$18532_storeWithEntities)==null?void 0:(e=X.getState())==null?void 0:e.entities;if(f&&t){X=[];e=_.U(f);for(f=e.next();!f.done;f=e.next())if(Q=
f.value,f=_.tR(Q).entityType,Q=_.q_(t,f,Q))q={},X.push((q[f]=Q,q));A.entityMutationPayloads=X}}};
oe.prototype.getRequestConfig=function(A){var t,f=(t=_.C(A,Awi))==null?void 0:t.requestSequenceType;if(f&&A.clickTrackingParams&&f!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:A.clickTrackingParams,sequenceType:f}}};
oe[T7]=[tu];var dj=function(){};
_.R(dj,Ul);dj.prototype.getApiPaths=function(){return mmi};
dj.prototype.getExtension=function(A){return _.C(A,_.MXl)};
dj.prototype.JSC$14261_buildRequest=function(A,t){t.feedbackData&&(A.feedbackData=t.feedbackData);t.params&&(A.itemParams=t.params)};
_.PV.Object.defineProperties(dj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SZ=function(){};
_.R(SZ,Ul);SZ.prototype.getApiPaths=function(){return bQb};
SZ.prototype.getExtension=function(A){return _.C(A,C8k)};
SZ.prototype.JSC$14261_buildRequest=function(A,t,f){f.payments_payload&&(A.paymentsPayload=f.payments_payload);f.offer_params&&(A.offerParams=f.offer_params);t.transactionParams&&(A.transactionParams=t.transactionParams)};var $Z=function(){};
_.R($Z,Ul);$Z.prototype.getApiPaths=function(){return WTp};
$Z.prototype.getExtension=function(A){return _.C(A,_.hQK)};
$Z.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.buybucketParams&&(A.buybucketData={params:t.buybucketParams},t.stickerParams?A.buybucketData.stickerParams=t.stickerParams:(f.rich_chat_message?A.buybucketData.richChatMessage=f.rich_chat_message:f.chat_message_text&&(A.buybucketData.chatMessageText=f.chat_message_text),f.purchase_price_micros&&(A.buybucketData.purchasePriceMicros=f.purchase_price_micros.toString())));t.donationAmountMicros&&(A.tipAmountMicros=t.donationAmountMicros,
t.tipParams&&(A.tipParams=t.tipParams));t.offerParams&&(A.offerParams=t.offerParams);t.productData&&(A.productData=t.productData);t.transactionParams&&(A.transactionParams=t.transactionParams)};var Hj=function(){};
_.R(Hj,Ul);Hj.prototype.getApiPaths=function(){return yKp};
Hj.prototype.getExtension=function(A){return _.C(A,bjE)};
Hj.prototype.JSC$14261_buildRequest=function(A,t){t.updateFopParams&&(A.updateFopParams=t.updateFopParams)};var ae=function(){};
_.R(ae,Ul);ae.prototype.getApiPaths=function(){return v1l};
ae.prototype.getExtension=function(A){return _.C(A,_.ZB)};
ae.prototype.JSC$14261_buildRequest=function(A,t){t.couponCode&&(A.couponCode=t.couponCode);t.params&&(A.itemParams=t.params)};var KE=function(){};
_.R(KE,Ul);KE.prototype.getApiPaths=function(){return LTk};
KE.prototype.getExtension=function(A){return _.C(A,_.tXi)};
KE.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;t.params&&(A.params=t.params);f.ctk&&(A.clientToken=f.ctk)};var gj=function(A){this.JSC$18567_storeWithEntities=A};
_.R(gj,Ul);gj.prototype.getApiPaths=function(){return plb};
gj.prototype.getExtension=function(A){return _.C(A,_.i1)};
gj.prototype.JSC$14261_buildRequest=function(A,t,f){f.purchase_price_micros&&(A.productData={pdgData:{purchasePriceMicros:f.purchase_price_micros.toString()}},f.rich_chat_message&&(A.productData.pdgData.richChatMessage=f.rich_chat_message),f.currency_code&&(A.productData.pdgData.currencyCode=f.currency_code));t.transactionParams&&(A.transactionParams=t.transactionParams);t.clientLocationContext&&(A.clientLocationContext=t.clientLocationContext);f.payments_payload&&(A.paymentsPayload=f.payments_payload);
f.funds_guarantee_callback_client_data&&(A.fundsGuaranteeCallbackClientData=f.funds_guarantee_callback_client_data);var X,Q;f=(X=this.JSC$18567_storeWithEntities)==null?void 0:(Q=X.getState())==null?void 0:Q.entities;if(t.entityKeys&&f){X=[];t=_.U(t.entityKeys);for(Q=t.next();!Q.done;Q=t.next()){var q=Q.value;Q=_.tR(q).entityType;if(q=_.q_(f,Q,q)){var e={};X.push((e[Q]=q,e))}}A.entityMutationPayloads=X}};
gj[T7]=[tu];var wj=function(){};
_.R(wj,Ul);wj.prototype.getApiPaths=function(){return E1C};
wj.prototype.getExtension=function(A){return _.C(A,RQi)};
wj.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;f.backend_analytics&&(A.serializedBackendAnalyticsEvent=f.backend_analytics);t.offerParams&&(A.offerParams=t.offerParams)};var sb=function(){};
_.R(sb,Ul);sb.prototype.getApiPaths=function(){return v1l};
sb.prototype.getExtension=function(A){return _.C(A,Oo0)};
sb.prototype.JSC$14261_buildRequest=function(A,t){t.params&&(A.itemParams=t.params)};var kZ=function(){};
_.R(kZ,Ul);kZ.prototype.getApiPaths=function(){return n1T};
kZ.prototype.getExtension=function(A){return _.C(A,_.UMT)};
kZ.prototype.JSC$14261_buildRequest=function(A,t,f){f.resume_time_ms&&(A.resumeTimeMs=f.resume_time_ms);t.pauseParams&&(A.pauseParams=t.pauseParams)};var rj=function(){};
_.R(rj,Ul);rj.prototype.getApiPaths=function(){return Dmp};
rj.prototype.getExtension=function(A){return _.C(A,_.mMf)};
rj.prototype.JSC$14261_buildRequest=function(A,t,f){f=f===void 0?{}:f;f.c&&(A.redeemCode=f.c);f.rd&&(A.riskData=f.rd);f.ctk&&(A.clientToken=f.ctk)};var Ai=function(){};
_.R(Ai,Ul);Ai.prototype.getApiPaths=function(){return FTS};
Ai.prototype.getExtension=function(A){return _.C(A,_.eQC)};
Ai.prototype.JSC$14261_buildRequest=function(A,t){t.resumeParams&&(A.resumeParams=t.resumeParams)};var ti=function(A,t){this.clientName=A;this.defaultExpirationDelayMs=t};
ti.prototype.put=function(A,t){var f=this,X;return _.l(function(Q){X=Object.assign({},t.data);X.key=A;X.clientName=f.clientName;X.expireTimestampMs===void 0&&(X.expireTimestampMs=(Math.round((0,_.OJ)())+f.defaultExpirationDelayMs).toString());return Q.return(f.putInternal(A,X))})};
ti[T7]=[Pw,zw3];var yVw=function(){ti.apply(this,arguments);this.JSC$18597_responseStore=new Map};
_.R(yVw,ti);_.J=yVw.prototype;_.J.get=function(A){var t=this;return _.l(function(f){return f.return(jk(t,A))})};
_.J.putInternal=function(A,t){var f=this,X,Q,q;return _.l(function(e){X=f.defaultExpirationDelayMs;t.expireTimestampMs&&(X=Number(t.expireTimestampMs)-Math.round((0,_.OJ)()),Q=_.cx("mweb_override_response_store_expiration_ms"),Q>0&&Q<X&&(X=Q));q=setTimeout(function(){f.remove(A)},X);
f.JSC$18597_responseStore.set(A,{entryData:t,timer:q});_.LO(e)})};
_.J.remove=function(A){var t=this;return _.l(function(f){vC3(t,A);_.LO(f)})};
_.J.removeAll=function(){var A=this;return _.l(function(t){A.JSC$18597_responseStore.forEach(function(f){clearTimeout(f.timer)});
A.JSC$18597_responseStore.clear();_.LO(t)})};
_.J.has=function(A){return!!this.JSC$18597_responseStore.get(A)};
_.J.getKeys=function(){return this.JSC$18597_responseStore.keys()};
var jk=function(A,t){if(A=A.JSC$18597_responseStore.get(t))return new _.xy(A.entryData)},vC3=function(A,t){var f=A.JSC$18597_responseStore.get(t);
f&&(clearTimeout(f.timer),A.JSC$18597_responseStore.delete(t))};var qGT;var erx=function(A,t,f){ti.call(this,A,t);this.token=f};
_.R(erx,ti);_.J=erx.prototype;_.J.get=function(A){var t=this,f,X;return _.l(function(Q){return Q.nextAddress==1?Q.yield(Uub(t.token),2):Q.nextAddress!=3?(f=Q.yieldResult,Q.yield(f.get("ResponseStore",[A,t.clientName]),3)):(X=Q.yieldResult)?Q.return(new _.xy(X)):Q.return(void 0)})};
_.J.putInternal=function(A,t){var f=this,X;return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(Uub(f.token),2);X=Q.yieldResult;return Q.yield(X.put("ResponseStore",t),0)})};
_.J.remove=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(Uub(t.token),2);f=X.yieldResult;return X.return(f.delete("ResponseStore",[A,t.clientName]))})};
_.J.removeAll=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return f.yield(Uub(A.token),2);t=f.yieldResult;return f.yield(SO8(t,IDBKeyRange.only(A.clientName)),0)})};
_.J.has=function(){throw Error("jj");};_.fv=new _.eh("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var L7_=function(A){var t;this.stateTagsData=(t=A.responseContext)==null?void 0:t.stateTags},pfl=function(A){var t;
return((t=A.stateTagsData)==null?void 0:t.stateTagsModified)||[]};var ECy;ECy=function(A){this.JSC$18610_responseStore=A};
_.jt=function(A,t,f){if(!_.M("state_tags_killswitch")){var X=new L7_(t);if(pfl(X).length>0){var Q=A.JSC$18610_responseStore.getKeys();Q=_.U(Q);for(var q=Q.next();!q.done;q=Q.next()){q=q.value;var e=jk(A.JSC$18610_responseStore,q);if(e){var G=_.wP(e);a:{var N=void 0;e=pfl(X);G=((N=(new L7_(G)).stateTagsData)==null?void 0:N.relevantStateTags)||[];N=_.U(G);for(G=N.next();!G.done;G=N.next())if(G=G.value,G.stateTag!=null&&e.includes(G.stateTag)&&G.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){e=
!0;break a}e=!1}e&&vC3(A.JSC$18610_responseStore,q)}}}}var z;X=(z=t.responseContext)==null?void 0:z.maxAgeSeconds;f&&X&&Number(X)>0&&(t=tE(t,X),A.JSC$18610_responseStore.put(f,new _.xy(t)))};
ECy.prototype.handleResponse=function(A,t){if(!t)throw Error("kj");var f,X;t=(f=t.config)==null?void 0:(X=f.storeStrategy)==null?void 0:X.storeKey;_.jt(this,A,t)};
ECy[T7]=[_.Id];_.yQx=new _.eh("STORE_RESPONSE_PROCESSOR_TOKEN");var nC2=function(A){this.JSC$18613_responseStore=A};
nC2.prototype.handleResponse=function(A,t){if(t.input.match(_.HE(gcS))){var f;if(A==null?0:(f=A.entries)==null?0:f.length)for(A=_.U(A.entries),t=A.next();!t.done;t=A.next()){f=t.value.command;var X=void 0;t=(X=_.C(f,_.zD))==null?void 0:X.unserializedPrefetchData;if(!f||!t)break;X=(new bW).JSC$14268_getStoreKey(f);var Q=_.C(t,qlp),q=void 0,e=void 0,G=void 0,N=void 0,z=void 0,T=void 0,O=((q=Q)==null?0:(e=q.responseContext)==null?0:e.maxAgeSeconds)&&Number((G=Q)==null?void 0:(N=G.responseContext)==null?
void 0:N.maxAgeSeconds)>0?Number((z=Q)==null?void 0:(T=z.responseContext)==null?void 0:T.maxAgeSeconds):600;X&&O>0&&(Q=tE(Q,O),this.JSC$18613_responseStore.put(X,new _.xy(Q)));f=(new V0).JSC$14268_getStoreKey(f);t=_.C(t,S$p);N=G=e=q=Q=X=void 0;z=((X=t)==null?0:(Q=X.responseContext)==null?0:Q.maxAgeSeconds)&&Number((q=t)==null?void 0:(e=q.responseContext)==null?void 0:e.maxAgeSeconds)>0?Number((G=t)==null?void 0:(N=G.responseContext)==null?void 0:N.maxAgeSeconds):600;f&&z>0&&(t=tE(t,z),this.JSC$18613_responseStore.put(f,
new _.xy(t)))}}};
nC2[T7]=[_.Id];var Dcc=function(A,t){this.innertubeTransportService=A;this.JSC$18616_commandHandler=t};
Dcc.prototype.submitForm=function(A,t,f,X,Q){var q=this,e,G,N,z,T,O;return _.l(function(c){if(c.nextAddress==1)return e={submitId:A,formData:t,submitBehavior:f,params:X},G=_.HE(ebE),c.yield(_.uE(q.innertubeTransportService,e,G,Q),2);N=c.yieldResult;if(!N)return c.return(Promise.reject(new _.xj("Submit API returned an undefined response. Submit ID: "+A)));z=N;(O=(T=z)==null?void 0:T.onResponseReceived)&&q.JSC$18616_commandHandler.resolveCommand(O);return c.return(z)})};
Dcc[T7]=[_.iY,_.i2];var XP=function(){this.scheduler=_.m_()},F7d;
XP.prototype.pause=function(){throw Error("lj");};
XP.prototype.resume=function(){throw Error("lj");};
XP.prototype.queue=function(A){var t=this,f=_.YE(),X=_.jY(this.scheduler,function(){try{var Q;if(_.XH.instance)var q=_.XH.instance;else{var e=new _.xj("Error: Unexpected uninitialized CommandHandler.");_.HQ(e);q=void 0}(Q=q)==null||Q.resolveCommand(A.command);f.resolve()}catch(G){f.reject(G)}});
f.promise.thenCatch(function(Q){Q instanceof _.Ej&&t.scheduler.cancelJob(X)});
return f.promise};
XP.prototype.queueAll=function(A){var t=new Map;A=_.U(A);for(var f=A.next();!f.done;f=A.next())f=f.value,t.set(f.id,this.queue(f));return t};var xcQ=function(A,t){var f=this;this.taskModel=A;this.onTaskCancelledCallback=t;this.resolver=_.YE();A=A.proto.prefetchConfig;if(!A)throw Error("mj");if(!A.prefetchAction)throw Error("nj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(X){X instanceof _.Ej&&(IA8(f,f.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),f.onTaskCancelledCallback(f.taskModel.id,f.jobId),f.tick("pcc"));
throw X;});
this.timerName=this.taskModel.id;_.b0(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
xcQ.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var IA8=function(A,t){_.R7({prefetchInfo:{cancellationReason:t}},A.timerName)};
xcQ.prototype.tick=function(A){_.Wt(A,void 0,this.timerName)};var qk=function(){var A=this;this.scheduler=_.m_();this.maxInflightTasks=_.cx("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.cx("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new hyf;this.onTaskCancelled=function(t,f){f&&A.scheduler.cancelJob(f);jyQ(A,t);Qa(A,3)}},YBd=function(){qk.instance||(qk.instance=new qk);
return qk.instance};
qk.prototype.pause=function(){this.prefetchCoordinatorState=0};
qk.prototype.resume=function(){Qa(this,0)};
qk.prototype.queue=function(A){A=Ve2(this,A);Qa(this,1);return A};
qk.prototype.queueAll=function(A){var t=new Map;A=_.U(A);for(var f=A.next();!f.done;f=A.next())f=f.value,t.set(f.id,Ve2(this,f));Qa(this,1);return t};
var Ve2=function(A,t){var f=A.allPrefetchTasks.get(t.id);if(f)return f.cancellablePromise;try{var X=new xcQ(t,A.onTaskCancelled)}catch(q){return _.OX(q)}f=X;f.tick("pcq");var Q={prefetchInfo:{taskId:f.taskModel.id,isPrefetch:!0,fetchAction:f.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:f.taskModel.command.clickTrackingParams}};f.taskModel.csn&&(Q.clientScreenNonce=f.taskModel.csn);_.R7(Q,f.timerName);A.allPrefetchTasks.set(t.id,X);A.drainingHeap.insert(-X.getPriority(),X);return X.cancellablePromise},
Qa=function(A,t){A.prefetchCoordinatorState===t&&(A.prefetchCoordinatorState=2,ZA8(A))},ZA8=function(A){for(var t={};A.prefetchCoordinatorState!==0;t={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(A.inflightPrefetchTasks.size>=A.maxInflightTasks){A.prefetchCoordinatorState=3;break}t.prefetchTask$jscomp$1=A.drainingHeap.remove();if(!t.prefetchTask$jscomp$1){A.prefetchCoordinatorState=1;break}t.taskId$jscomp$3=t.prefetchTask$jscomp$1.taskModel.id;if(A.allPrefetchTasks.has(t.taskId$jscomp$3)){var f=-1;A.coordinatorTimeoutMs>0&&(f=_.jY(A.scheduler,function(X){return function(){Ji(A,X.taskId$jscomp$3,Error("oj"))}}(t),A.coordinatorTimeoutMs));
A.inflightPrefetchTasks.set(t.taskId$jscomp$3,f);if(!A.JSC$18633_commandHandler){if(!_.XH.instance){Ji(A,t.taskId$jscomp$3,Error("pj"));continue}A.JSC$18633_commandHandler=_.XH.instance}a:switch(t.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":f=1;break a;default:f=0}t.prefetchTask$jscomp$1.jobId=A.scheduler.addJob(function(X){return function(){X.prefetchTask$jscomp$1.tick("pcr");try{A.JSC$18633_commandHandler.resolveCommand(X.prefetchTask$jscomp$1.taskModel.command)||
Ji(A,X.taskId$jscomp$3,Error("qj"))}catch(Q){Ji(A,X.taskId$jscomp$3,Q)}}}(t),f,0)}}},oCm=function(A,t){(t=jyQ(A,t))!=null&&(t.resolver.resolve(),t.tick("pce"));
Qa(A,3)},Ji=function(A,t,f){(t=jyQ(A,t,f))!=null&&(t.resolver.reject(f),t.tick("pcc"),IA8(t,"CANCELLATION_REASON_ERROR"),Math.random()<=_.cx("prefetch_coordinator_error_logging_sampling_rate")&&(f=new _.xj("Prefetch Command failed.",t.taskModel.id,f.message),_.HQ(f)));
Qa(A,3)},jyQ=function(A,t,f){var X=A.allPrefetchTasks.get(t);
X?((f=A.inflightPrefetchTasks.get(t))&&f!==-1&&A.scheduler.cancelJob(f),A.inflightPrefetchTasks.delete(t),A.allPrefetchTasks.delete(t)):_.K4(new _.xj("Unexpected missing prefetch task when deleting task.",t,f==null?void 0:f.message));return X};var dcw=function(A,t,f,X,Q){this.id=A;this.triggerOn=t;this.cancelOn=f;this.command=X;this.proto=Q};
_.PV.Object.defineProperties(dcw.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var SBm=function(){this.JSC$18638_prefetchCoordinator=YBd();F7d||(F7d=new XP);this.defaultCoordinator=F7d},$cy;
SBm.getInstance=function(){$cy||($cy=new SBm);return $cy};
SBm.prototype.get=function(A){switch(A){case 0:return this.JSC$18638_prefetchCoordinator;default:return this.defaultCoordinator}};var U4=function(){this.coordinatorSupplier=SBm.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},K7d=function(A){var t=_.Ws()||void 0,f=Object.keys(HAw)[0];
if(f){var X=A.taskIdByTriggerId.get(f);if(X!=null){A.taskIdByTriggerId.delete(f);f=[];X=_.U(X);for(var Q=X.next();!Q.done;Q=X.next())if(Q=A.tasks.get(Q.value))t!=="UNDEFINED_CSN"&&(Q.csn=t),f.push(Q);f=Nnb(f);t=[];f=_.U(f);for(X=f.next();!X.done;X=f.next()){Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;X=A.coordinatorSupplier.get(X).queueAll(Q);X=_.U(X);var q=X.next();for(Q={};!q.done;Q={taskId$jscomp$9:void 0},q=X.next()){var e=_.U(q.value);q=e.next().value;e=e.next().value;Q.taskId$jscomp$9=
q;q=e;t.push(Q.taskId$jscomp$9);A.queuedPromisesByTask.set(Q.taskId$jscomp$9,_.FZ(q,function(G){return function(){aA2(A,G.taskId$jscomp$9)}}(Q)))}}}}else _.K4(new _.xj("Unexpected malformed TriggerEvent."))};
U4.prototype.trigger=function(A,t){var f=this,X=this.tasks.get(A);if(!X||this.queuedPromisesByTask.has(A))return!1;gC_(this,A,X.triggerOn);t!=="UNDEFINED_CSN"&&(X.csn=t);t=this.coordinatorSupplier.get(X.taskType).queue(X);this.queuedPromisesByTask.set(A,_.FZ(t,function(){aA2(f,A)}));
return!0};
U4.prototype.cancel=function(A){var t=this.queuedPromisesByTask.get(A);if(t)t.cancel();else return aA2(this,A)};
var aA2=function(A,t){A.queuedPromisesByTask.delete(t);var f=A.tasks.get(t);if(!f)return!1;A.tasks.delete(t);gC_(A,t,f.triggerOn);(f=l45(f.cancelOn))&&(A=A.taskIdByCancelId.get(f))&&A.delete(t);return!0},gC_=function(A,t,f){(f=Object.keys(f)[0])&&(A=A.taskIdByTriggerId.get(f))&&A.delete(t)};var HAw={taskRegistered:{}},ef=function(){U4.instance||(U4.instance=new U4);this.JSC$18647_taskManager=U4.instance};
_.R(ef,Tu);
ef.prototype.resolveCommand=function(A){var t=this,f,X;return _.l(function(Q){f=_.C(A,X7l);if((X=f)==null||!X.tasks){var q=new _.xj("RegisterTasksCommand is missing tasks.");_.HQ(q);return Q.return()}q=t.JSC$18647_taskManager;for(var e=_.U(f.tasks),G=e.next();!G.done;G=e.next())if(G=G.value,G=G.id&&G.triggerOn&&G.cancelOn&&G.command?new dcw(G.id,G.triggerOn,G.cancelOn,G.command,G):void 0,G){var N=Object.keys(G.triggerOn)[0];if(N){var z=l45(G.cancelOn);z?(q.tasks.set(G.id,G),q.taskIdByTriggerId.has(N)||q.taskIdByTriggerId.set(N,
new Set),q.taskIdByTriggerId.get(N).add(G.id),q.taskIdByCancelId.has(z)||q.taskIdByCancelId.set(z,new Set),q.taskIdByCancelId.get(z).add(G.id)):_.K4(new _.xj("Unexpected malformed cancelOn field."))}else _.K4(new _.xj("Unexpected malformed triggerOn field."))}else _.K4(new _.xj("Unexpected malformed Task proto."));K7d(t.JSC$18647_taskManager);_.LO(Q)})};var wfm={},syd=(wfm.rendered={priority:_.M("web_adaptive_early_init")?8:0,callback:function(){var A={};A.numCpu=navigator.hardwareConcurrency;var t={};t.ramGb=_.Xb.navigator.deviceMemory;var f={staticContext:{}};t.ramGb&&Tlb(t.ramGb)&&(f.staticContext.memoryTotalKbytes=(t.ramGb*1048576).toString());A.numCpu&&Tlb(A.numCpu)&&(f.staticContext.cpuCores=A.numCpu);if(_.M("web_enable_adaptive_appl_signal")){A={};t=OXq();t=t.length>0?t[0]:void 0;var X,Q=(X=_.Lf("rses_dpj"))!=null?X:t==null?void 0:t.tick.rses_dpj,
q;X=(q=_.Lf("rsef_dpj"))!=null?q:t==null?void 0:t.tick.rsef_dpj;Q&&Number(Q)>0&&X&&Number(X)>0&&(q=Math.ceil(Number(X)-Number(Q)),q>0&&(A.loadLatency=q));A.loadLatency&&Tlb(A.loadLatency)&&(f.appL=A.loadLatency.toString())}_.SY("applicationStarted",f);iuz=f;_.M("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",Ous)}},wfm);var k__=new _.eh("WINDOW_ON_ERROR"),rV2=new _.eh("ERROR_WEIGHT_MAPS"),AZA=new _.eh("INIT_ERROR");var tGw={},fMc=(tGw.initialized={priority:10,callback:function(A){A.injector.resolve(AZA)()}},tGw);var Xmw=function(){},Qo3=function(){var A=_.Ae("meta_logger_impl");
A||(A=new Xmw,_.zm("meta_logger_impl",A));return A},qHc=function(){Qo3().csiSubscriptionKey=YFT("meta_logging_csi_event",function(A){var t=A.timerName;
if(A=A.timelineData){_.b0(t,{startTime:A.startTime},t);A.infos&&_.R7(A.infos,t);for(var f=_.U(Object.keys(A.ticks)),X=f.next();!X.done;X=f.next())X=X.value,_.Wt(X,A.ticks[X],t)}})};
Xmw.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&oOu(this.csiSubscriptionKey)};var JZd={},U4y=(JZd.initialized={priority:10,callback:function(){qHc()}},JZd);var e5l=function(A,t){this.innertubeClientName=A;this.JSC$18658_prefCookie=t};
e5l.prototype.record=function(){if(_.M("web_li_record_binary_eval_tick")){var A=_.Lf("rsef_dpj");var t=_.Lf("rses_dpj");A=A!==void 0&&t!==void 0?Math.round(A-t):void 0;if(A!==void 0&&A>0){t=_.Bi(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var f=this.poolSize;if(!(t.valuesSeen>=1E9)){if(t.valuesSample.length<f)t.valuesSample.push(A);else{var X=Math.floor(Math.random()*(t.valuesSeen+1));X<f&&(t.valuesSample[X]=A)}t.valuesSeen+=1}_.ci(this.storagePrefix+"-"+this.innertubeClientName,
t,2592E3);A=t.valuesSample;t=uJs(A);A=A.length<this.poolSize?void 0:t<400?1:t<1700?2:3;A!==void 0&&(this.JSC$18658_prefCookie.set(this.cookiePrefix+this.innertubeClientName,A),this.JSC$18658_prefCookie.save())}}else _.Mv(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18658_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18658_prefCookie.save()};
e5l[T7]=[Pw,tP];var Gcl=function(){e5l.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.R(Gcl,e5l);var lMj=new _.eh("PAGE_LOAD_TIME_TOKEN");var ND3=function(A){this.signal=A;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;A.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.jY(_.a6,this.disableLoggingAndSendPayload,1E4)};
ND3.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.a6.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),uNQ(this))};
var uNQ=function(A){var t=_.mx();if(t){var f={webClientComponentsData:{components:Array.from(A.ids,function(X){return{id:X}})}};
A.ids.clear();_.er().visualElementStateChanged(t,f)}};var z5m=RM({a11y:oGT});_.Px3=mf(z5m)(z5m.a11y,{ephemeralActionSelector:function(A){return A.ephemeralAction||null}});var TDc=RM({continuation:aGw});var iFj=mf(TDc)(TDc.continuation,{continuationCommandSelector:function(A){return A.continuationCommand}});var OFl=new _.eh("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var G0=function(A,t){this.JSC$18687_storeWithEntities=A;this.JSC$18687_commandHandler=t;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
G0.prototype.start=function(){this.JSC$18687_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
G0.prototype.observeDownloadingEntities=function(){var A=_.jFx(this.JSC$18687_storeWithEntities.getState().entities).map(function(X){return Ydx(X)});
if(A.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var t={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:su0()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.w0(_.e5("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18687_commandHandler.resolveCommand(t)}this.downloadingEntities=A}else if(this.downloadingEntities.length){var f=xrg(this.JSC$18687_storeWithEntities.getState().entities).map(function(X){return Ydx(X)});
this.downloadingEntities.filter(function(X){return f.includes(X)}).length&&(A={openPopupAction:SD5()},this.JSC$18687_commandHandler.resolveCommand(A));
this.downloadingEntities=[]}};
G0[T7]=[tu,_.i2];var cZ3;_.lV=function(A,t,f,X,Q,q,e,G){this.JSC$18690_playerApiPromise=A;this.JSC$18690_commandHandler=t;this.JSC$18690_screenManager=f;this.offlineWebClientEligibility=X;this.JSC$18690_prefStorage=Q;this.JSC$18690_actionRouter=q;this.entityTypeMap=e;this.JSC$18690_persistentStorePromiseAccessor=G;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
cZ3=function(){var A=_.Px().resolve(_.lV),t;_.l(function(f){if(f.nextAddress==1)return A.downloadFailureListenerBound?f.return():f.yield(A.JSC$18690_playerApiPromise,2);t=f.yieldResult;t.addEventListener("onOfflineOperationFailure",function(X){if(X.failureReason&&X.entityKey&&X.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(X.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Q=_.tR(X.entityKey).entityId;Q&&A.JSC$18690_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Q)}else if(_.M("kevlar_woffle")){Q=A.JSC$18690_commandHandler;var q=Q.resolveCommand;X=X.failureReason;var e=_.e5("TRANSFER_FAILED",void 0,"Download failed");X==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(e=_.e5("STORAGE_FULL",void 0,"Storage full"));q.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.w0(e),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
A.downloadFailureListenerBound=!0;_.LO(f)})};
_.lV.prototype.deleteVideo=function(A,t){var f=this,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return e.yield(f.JSC$18690_playerApiPromise,2);X=e.yieldResult;q={offlineLoggingData:{offlineDeleteReason:(Q=t)!=null?Q:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return e.yield(X.queueOfflineAction(A,f.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",q),0)})};
_.lV.prototype.pauseVideoDownload=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(t.JSC$18690_playerApiPromise,2);f=X.yieldResult;f.pauseVideoDownload(A);_.LO(X)})};
_.lV.prototype.resumeVideoDownload=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(t.JSC$18690_playerApiPromise,2);f=X.yieldResult;return X.yield(f.resumeVideoDownload(A),0)})};
_.lV[T7]=[_.re,_.i2,_.gx,OFl,q7,b1,Yzb,ZO];var BDh=new _.eh("DOWNLOAD_STATE_STORE_TOKEN");var MG3=function(A,t){this.JSC$18711_persistentStorePromiseAccessor=A;this.store=t;this.upliftCompletionResolver=new _.Qc},R5h=function(){var A=_.Px().resolve(Cx3),t;
_.l(function(f){switch(f.nextAddress){case 1:if(A.upliftImplPromise)return f.return(A.upliftImplPromise);_.ht(f,2);A.upliftImplPromise=h5h(A);return f.yield(A.upliftImplPromise,4);case 4:A.upliftCompletionResolver.resolve();_.qq(f,3);break;case 2:throw t=_.vC(f),A.upliftCompletionResolver.reject(t),t;case 3:return f.return(A.upliftImplPromise)}})},h5h=function(A){var t,f,X;
return _.l(function(Q){switch(Q.nextAddress){case 1:return _.Ka("LOGGED_IN")?Q.yield(A.JSC$18711_persistentStorePromiseAccessor(),2):Q.return();case 2:t=Q.yieldResult;if(!t)return _.Wt("vdeur"),Q.return();_.Wt("vdeus");_.ht(Q,3);return Q.yield(m4A(t),5);case 5:f=Q.yieldResult;A.store.dispatch(hoz(f));t.observe(function(q){Ro5(A.store,q)});
_.qq(Q,4);break;case 3:throw X=_.vC(Q),_.Wt("vdeur"),X;case 4:_.Wt("vdeuc"),_.LO(Q)}})},m4A=function(A){var t;
return _.l(function(f){if(f.nextAddress==1)return f.yield(c$g(A),2);t=f.yieldResult;return f.return(t.reduce(function(X,Q){if(!Q.data||!Q.key||!Q.entityType)return X;X[Q.entityType]||(X[Q.entityType]={});X[Q.entityType][Q.key]=Q.data;return X},{}))})};
MG3[T7]=[ZO,_.Xk];var Cx3;Cx3=new _.eh("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Nk=new _.eh("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var uV=function(A,t){this.JSC$18714_persistentStorePromiseAccessor=A;this.transportService=t};
uV.prototype.refresh=function(){var A=this,t,f,X,Q;return _.l(function(q){if(q.nextAddress==1)return _.Ka("LOGGED_IN")?q.yield(A.JSC$18714_persistentStorePromiseAccessor(),2):q.return();if(q.nextAddress!=3)return(t=q.yieldResult)?q.yield(weT(t),3):q.return();if((f=q.yieldResult)&&!(Number(f.data.refreshTimestampMs||0)<(0,_.OJ)()))return q.return();X={browseId:"SPaccount_downloads"};Q=_.HE(oJ);_.uE(A.transportService,X,Q).then(function(e){var G;if(t&&(e==null?void 0:(G=e.responseContext)==null?void 0:
G.maxAgeSeconds)!==0){var N;G=(e==null?void 0:(N=e.responseContext)==null?void 0:N.maxAgeSeconds)||604800;N=String(Math.floor((0,_.OJ)())+G*1E3);t.put("service:downloads_settings:fallback",new _.xy({innertubeResponse:e,refreshTimestampMs:N}))}});
_.LO(q)})};
uV[T7]=[_.fv,_.iY];var z0=function(A,t){this.JSC$18718_playerPromise=A;this.store=t;this.started=!1};
z0.prototype.start=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return A.started?f.return():f.yield(A.JSC$18718_playerPromise,2);t=f.yieldResult;t.addEventListener("onOrchestrationBecameLeader",A.updateIsLeader.bind(A,!0));t.addEventListener("onOrchestrationLostLeader",A.updateIsLeader.bind(A,!1));if(t.isOrchestrationLeader)A.updateIsLeader(t.isOrchestrationLeader());else{var X=new _.xj("Function isOrchestrationLeader is undefined",{"player.isReady":t.isReady(),"player.playVideo":t.playVideo?
"defined":"undefined"});_.HQ(X);A.updateIsLeader(!1)}A.started=!0;_.LO(f)})};
z0.prototype.updateIsLeader=function(A){this.store.dispatch(_.r0({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:A}}))};
z0[T7]=[_.re,_.Xk];var bFh=function(A,t){this.networkStatusManager=A;this.JSC$18721_prefStoragePromise=t;this.redirectsToPreload=["https://youtube.com"]},W$h=function(){var A=_.Px().resolve(bFh),t,f,X,Q,q,e;
_.l(function(G){switch(G.nextAddress){case 1:return G.yield(A.JSC$18721_prefStoragePromise,2);case 2:t=G.yieldResult;if(!(f=t)){G.jumpTo(3);break}return G.yield(t.get("yt-redirect-prefetch-id"),4);case 4:f=G.yieldResult;case 3:if(f||!A.networkStatusManager.isNetworkAvailable())return G.return();X={cache:"reload",redirect:"manual"};Q=_.U(A.redirectsToPreload);q=Q.next();case 5:if(q.done){if(!t){G.jumpTo(0);break}return G.yield(t.set("yt-redirect-prefetch-id",!0,86400),0)}e=q.value;_.ht(G,8);return G.yield(_.Xb.fetch(e,
X),10);case 10:_.qq(G,6);break;case 8:_.vC(G);case 6:q=Q.next(),G.jumpTo(5)}})};var yZ8=function(A){this.JSC$18727_pageManager=A},vfw=function(A){var t=[];
hrq(["videoId","contentId"],A.JSC$18727_pageManager.data,new Set,t);return t},L$m=function(A){return vfw(A).filter(function(t){return t.contentType==="video"}).map(function(t){return t.contentId}).filter(function(t){return t!==void 0})};
yZ8[T7]=[_.HO];var pm8=new _.eh("PAGE_CONTENT_EXTRACTOR_TOKEN");var P3=function(A){A?(this.container=A,this.containerWasInjected=!0):this.containerWasInjected=!1};
P3.prototype.openDialog=function(A,t,f){var X=this,Q;return _.l(function(q){(Q=X.container)==null||Q.openDialog(A,t,f);_.LO(q)})};
P3.prototype.closeDialog=function(){var A=this,t;return _.l(function(f){(t=A.container)==null||t.closeDialog();_.LO(f)})};
P3.prototype.isDialogOpen=function(){var A=this,t,f;return _.l(function(X){return X.return((f=(t=A.container)==null?void 0:t.isDialogOpen())!=null?f:!1)})};
P3[T7]=[_.z7(QNp)];_.Ef2=new _.eh("POPUP_CONTROLLER_TOKEN");var nfy=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
nfy.prototype.registerPanel=function(A,t){if(A){this.panelMap.set(A,t);var f=this.pendingPanelResolvers.get(A);f&&(f.resolve(t),this.pendingPanelResolvers.delete(A))}};
nfy.prototype.getPanel=function(A){var t=this,f;return _.l(function(X){return(f=t.panelMap.get(A))?X.return(f):X.return(D4_(t,A))})};
var D4_=function(A,t){var f,X;return _.l(function(Q){if(f=A.pendingPanelResolvers.get(t))return Q.return(f.promise);X=new _.Qc;A.pendingPanelResolvers.set(t,X);return Q.return(X.promise)})},F$y=function(A,t){nfy.call(this);
var f=this;this.popupController=A;this.persistentPanelController=t;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return f.panelMap.size}}};
_.R(F$y,nfy);_.J=F$y.prototype;_.J.getReloadContinuation=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(t.getPanel(A),2);f=X.yieldResult;return X.return(f.getReloadContinuation())})};
_.J.showPanel=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O,c,B;return _.l(function(h){if(h.nextAddress==1){f=A;X=f.identifier;Q=f.panelContents;q=f.config;e=f.extras;G=f.panelUpdatableFields;N=f.updatePanelContinuationData;z=A.target;N&&t.updatePanelContinuationDatas.set(X,N);if((T=q)==null?0:(O=T.engagementPanelPopupPresentationConfig)==null?0:O.popupType)if(c=q.engagementPanelPopupPresentationConfig.popupType,z===void 0&&(z=document.body),c==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!t.persistentPanelController)return _.K4(new _.xj("Persistent panel controller is not available.")),
h.return();var W=t.persistentPanelController;W.persistentPanelIdentifiers.has(X)||(W.persistentPanelWrapper.appendChild(W.engagementPanelElement({panelIdentifier:X},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),W.persistentPanelIdentifiers.add(X));a:switch(_.Iv.currentPageSubTypeSelector(W.store.getState())){case "watch":var L="WATCH";break a;default:L="APP"}_.IMm(W,L);W.store.dispatch(Sz7(!0))}else{if(c==="PANEL_POPUP_TYPE_DIALOG"||c==="PANEL_POPUP_TYPE_DROPDOWN"){W=h.return;L=t.popupController;
var E=L.openPopup;a:switch(c){case "PANEL_POPUP_TYPE_DIALOG":var D="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":D="DROPDOWN";break a;default:throw Error("sj`"+c);}return W.call(h,E.call(L,X,Q,D,z))}_.K4(new _.xj("Popup type "+c+" not supported in PanelController."))}return h.yield(t.getPanel(X),2)}B=h.yieldResult;(Q||G)&&B.updatePanel(Q,!1,e,G);B.showPanel(e);_.LO(h)})};
_.J.hidePanel=function(A){var t=this,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return f=A,X=f.identifier,e.yield(t.getPanel(X),2);Q=e.yieldResult;Q.hidePanel();t.popupController.closePopup(X);(q=t.persistentPanelController)!=null&&q.persistentPanelIdentifiers.has(X)&&q.store.dispatch(Sz7(!1));_.LO(e)})};
_.J.isVisible=function(A,t){var f=this,X;return _.l(function(Q){if(Q.nextAddress==1)return t&&!f.panelMap.has(A)?Q.return(!1):Q.yield(f.getPanel(A),2);X=Q.yieldResult;return Q.return(X.isVisible())})};
_.J.updatePanel=function(A){var t=this,f,X,Q,q,e,G,N,z;return _.l(function(T){if(T.nextAddress==1){f=A;X=f.identifier;Q=f.panelContents;q=f.shouldFocus===void 0?!1:f.shouldFocus;e=f.extras;G=f.panelUpdatableFields;N=f.updatePanelContinuationData;if(!Q&&!G)return T.return();N&&t.updatePanelContinuationDatas.set(X,N);_.M("enable_ai_companion")&&X==="PAai_companion"&&_.za.remove("youchat_messages_section");return T.yield(t.getPanel(X),2)}z=T.yieldResult;z.updatePanel(Q,q,e,G);Q&&_.M("enable_ai_companion")&&
t.registerPanelContent(X,Q);_.LO(T)})};
_.J.registerPanelContent=function(A,t){A&&this.panelContentMap.set(A,t)};
_.J.unregisterPanelContent=function(A){this.panelContentMap.delete(A)};
_.J.getPanelContent=function(A){return this.panelContentMap.get(A)};
_.J.getUpdatePanelContinuationData=function(A){return this.updatePanelContinuationDatas.get(A)};
F$y[T7]=[_.Ef2,_.z7(_.fm)];var T0=function(A,t){this.innertubeTransportService=A;this.JSC$18746_screenManager=t},x4h=function(A){var t;
return!((t=A.panelLoadingStrategy)==null||!t.requestTemplate)};
T0.prototype.makeRequest=function(A){var t=this,f,X;return _.l(function(Q){switch(Q.nextAddress){case 1:if(!x4h(t)){Q.jumpTo(2);break}_.ht(Q,3);return Q.yield(_.jl(t.innertubeTransportService,A),5);case 5:return f=Q.yieldResult,f?Q.return(f.content):(_.HQ(Error("tj")),Q.return(void 0));case 3:X=_.vC(Q),_.HQ(X);case 2:return Q.return(void 0)}})};
T0.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
T0.prototype.execute=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O;return _.l(function(c){if(c.nextAddress==1){f=A;X=f.data;Q=f.fallbackVe;q=f.parentVe;e=f.createScreenConfig;G=f.renderFn;N=f.command;t.panelLoadingStrategy=X;var B,h,W=((B=t.panelLoadingStrategy)==null?0:B.screenVe)?(h=t.panelLoadingStrategy)==null?void 0:h.screenVe:Q;W&&_.xz(t.JSC$18746_screenManager,W,q,e);return(z=t.getContent())?c.yield(G(z),2):c.jumpTo(2)}return c.nextAddress!=4?x4h(t)?c.yield(t.makeRequest(N),4):c.return():(O=T=
c.yieldResult)?c.yield(G(O),0):c.return()})};
T0[T7]=[_.iY,_.gx];var jo_;jo_=function(A,t){this.engagementPanelElement=A;this.store=t;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.IMm=function(A,t){var f=A.persistentPanelContainerMap.get(t);f?f.contains(A.persistentPanelWrapper)||(A=A.persistentPanelWrapper,_.Sr=!0,_.$A.set(A,!0),f.insertBefore(A,null),_.$A.delete(A),_.Sr=!1):_.K4(new _.xj("Persistent panel container not found for surface "+t+"."))};
jo_[T7]=[q6K,_.Xk];var iV=function(){var A=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.onHoverEntered=function(){A.isHovered=!0;var t;(t=A.hoverEnterCallback)==null||t.call(A)};
this.onHoverLeft=function(){A.isHovered=!1;var t;(t=A.hoverLeaveCallback)==null||t.call(A)}};
iV.prototype.getContainer=function(){return _.aq()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
iV.prototype.openSheet=function(A,t){var f=this,X,Q,q,e,G,N,z;return _.l(function(T){switch(T.nextAddress){case 1:return X={stack:[],error:void 0,hasError:!1},_.ht(T,2,3),Q=JZ,T.yield(f.isSheetOpen(),5);case 5:q=T.yieldResult;cbT(X,Cnl(Q));if(!q){T.jumpTo(6);break}if(!f.shouldPreventClosingWhileHovered){if(!_.M("delay_sheet_open_killswitch")){if(_.M("web_close_sheet_if_same_target_killswitch")&&t&&f.currentTarget===t)return(e=f.getContainer())==null||e.closeSheet(),T.return();f.pendingData={data:A,
target:in2(f,t)};return T.return()}T.jumpTo(6);break}if(f.currentTarget===t)return T.return();YHd(f);return T.yield((G=f.getContainer())==null?void 0:G.closeSheet(),6);case 6:if(A.viewModel&&(A={viewModel:A.viewModel,sheetPosition:A.sheetPosition,expandToFullWidth:A.expandToFullWidth}),(N=f.getContainer())==null||N.openSheet(A,t),f.currentTarget=t,f.shouldPreventClosingWhileHovered){var O;(O=f.currentTarget)==null||O.addEventListener("mouseenter",f.onHoverEntered);var c;(c=f.currentTarget)==null||
c.addEventListener("mouseleave",f.onHoverLeft);var B;O=(B=f.getContainer())==null?void 0:B.getSheetContainerElement();O==null||O.addEventListener("mouseenter",f.onHoverEntered);O==null||O.addEventListener("mouseleave",f.onHoverLeft);f.onHoverEntered()}case 3:_.mz(T);BsS(X);_.yP(T,0);break;case 2:z=_.vC(T),X.error=z,X.hasError=!0,T.jumpTo(3)}})};
iV.prototype.closeSheet=function(){var A=this;return _.l(function(t){return A.hideDelayMs?(setTimeout(function(){return _.l(function(f){return f.yield(VG8(A),0)})},A.hideDelayMs),t.return()):t.yield(VG8(A),0)})};
var VG8=function(A){var t;return _.l(function(f){if(f.nextAddress==1){if(A.shouldPreventClosingWhileHovered){if(A.isHovered)return f.return();YHd(A)}return f.yield((t=A.getContainer())==null?void 0:t.closeSheet(),2)}if(f.nextAddress!=4)return A.shouldPreventClosingWhileHovered=!1,A.currentTarget=void 0,!A.pendingData||_.M("delay_sheet_open_killswitch")?f.jumpTo(0):f.yield(A.openSheet(A.pendingData.data,A.pendingData.target),4);A.pendingData=void 0;_.LO(f)})};
iV.prototype.isSheetOpen=function(){var A=this,t,f;return _.l(function(X){return X.return((f=(t=A.getContainer())==null?void 0:t.isSheetOpen())!=null?f:!1)})};
var YHd=function(A){var t;(t=A.currentTarget)==null||t.removeEventListener("mouseenter",A.onHoverEntered);var f;(f=A.currentTarget)==null||f.removeEventListener("mouseleave",A.onHoverLeft);var X;t=(X=A.getContainer())==null?void 0:X.getSheetContainerElement();t==null||t.removeEventListener("mouseenter",A.onHoverEntered);t==null||t.removeEventListener("mouseleave",A.onHoverLeft)},in2=function(A,t){if(!_.M("web_parent_target_for_sheets"))return t;
var f,X;return(X=(f=A.getContainer())==null?void 0:f.getParentTarget(t))!=null?X:t};var Qs=window.documentPictureInPicture;var Eeb=_.dS(["dark"]),ne5=_.dS(["system-icons"]),Dub=_.dS(["typography"]),FDz=_.dS(["lang"]),I45=_.dS(["style"]),y$5=_.dS(["dir"]),vel=_.dS(["rounded-container"]),LDp=_.dS(["style"]),jcb=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],O4=function(A){this.JSC$18764_clientRoot=A;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
O4.prototype.openWindow=function(A){var t=this,f,X;return _.l(function(Q){switch(Q.nextAddress){case 1:if(!window.documentPictureInPicture||!_.Wp()||t.currentPipWindow)return Q.return(!1);_.ht(Q,2);return Q.yield((X=Qs?Qs:null)==null?void 0:X.requestWindow(A),4);case 4:f=Q.yieldResult;_.qq(Q,3);break;case 2:return _.vC(Q),Q.return(!1);case 3:if(!f)return Q.return(!1);f.addEventListener("pagehide",function(){ZFw(t)});
f.addEventListener("resize",t.handlePipWindowResize);xul(f);V85(f);Ttb(f);return Q.yield(WD0(f),5);case 5:if(!Rrb())return Q.return(!1);t.currentPipWindow=f;t.JSC$18764_eventForwarder=YGq(f,t.JSC$18764_clientRoot);t.pipWindowResizeDelay=new _.Og(function(){t.currentPipWindow&&_.kJ(t.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Ln(t.currentPipWindow.innerWidth,t.currentPipWindow.innerHeight)])},f);
t.pipWindowResizeDelay.start();return Q.return(!0)}})};
O4.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var ZFw=function(A){if(A.currentPipWindow){var t,f;(t=Qs?Qs:null)==null||(f=t.window)==null||f.close();A.currentPipWindow.removeEventListener("resize",A.handlePipWindowResize);var X;(X=A.pipWindowResizeDelay)==null||X.dispose();A.pipWindowResizeDelay=void 0;var Q;(Q=A.JSC$18764_eventForwarder)==null||Q.stop();A.JSC$18764_eventForwarder=void 0;t=_.U(A.onCloseCallbacks);for(f=t.next();!f.done;f=t.next())f=f.value,f();A.onCloseCallbacks=[];A.currentPipWindow=null}};
O4.prototype.getWindow=function(){return this.currentPipWindow};
var of3=function(A,t){var f;(f=A.onCloseCallbacks)==null||f.push(t)};
O4.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Wp()};
_.PV.Object.defineProperties(O4.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
O4[T7]=[Clw];var d48=new _.eh("PICTURE_IN_PICTURE_CONTROLLER");var ZM5=function(A,t){this.lengthY=this.lengthX=0;this.lengthX=t.x-A.x;this.lengthY=t.y-A.y};var SHd=function(){},y5w=function(A,t){var f;
(f=A.headerElement)==null||f.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:t}))};var $4d=function(){};
$4d.prototype.openPopup=function(A,t,f,X){var Q=this,q;return _.l(function(e){if(!Q.container)return e.return();q={openPopupAction:{popup:t,popupType:f,uniqueId:A}};return e.return(Q.container.handleOpenPopupAction(q,X))})};
$4d.prototype.closePopup=function(A){this.container&&this.container.closePopup(A)};var HFA=function(){this.openTunnels=new Map},C3s=function(A,t,f){if(a45(f)){var X=_.ww(f,"gclid");
f={handleEvent:function(G){t&&!t.closed&&typeof t.postMessage==="function"&&G&&G.origin&&G.source===t&&G.data&&G.data.action==="gcl_setup"&&t.postMessage(Object.assign({},{action:"gcl_transfer"},X&&{gclid:X},{gadSource:2}),G.origin)}};
for(var Q=_.U(A.openTunnels),q=Q.next();!q.done;q=Q.next()){var e=_.U(q.value);q=e.next().value;e=e.next().value;if(q.closed)try{window.removeEventListener("message",e),A.openTunnels.delete(q)}catch(G){_.HQ(G)}}t&&A.openTunnels.size<15&&(A.openTunnels.set(t,f),window.addEventListener("message",f))}};var aMj=function(){this.clientParams=new Map},qiy=function(A){for(var t=_.U(A.clientParams.keys()),f=t.next();!f.done;f=t.next())f=f.value,f.startsWith("yt-mini-app-share")&&A.clientParams.delete(f)};var K$h=function(A,t){_.DA.call(this);var f=this;this.shortsController=A;this.storeWithShorts=t;A=_.ar(this.storeWithShorts,_.dC0,function(X){if(X){var Q,q=(Q=f.shortsController.getRoot())==null?void 0:Q.getPlayer(),e;(Q=(e=f.shortsController.alternativePlayerContainerElement)==null?void 0:e.getPlayerContainer())&&(q==null||q.appendTo(Q))}else{var G;e=(G=f.shortsController.alternativePlayerContainerElement)==null?void 0:G.getPlayerContainer().querySelector("#player");Q=f.shortsController.activeIndex;
(G=(q=f.shortsController.getRoot())==null?void 0:q.querySelector('ytd-reel-video-renderer[id="'+Q+'"] #player-container'))&&(e==null||e.appendTo(G,void 0,!0))}});
this.addOnDisposeCallback(A)};
_.R(K$h,_.DA);var c3=function(A,t,f,X){var Q=this;this.storeWithShorts=A;this.ephemeralResponseStore=t;this.innertubeTransportService=f;this.innertubeTransportLoader=X;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.um(_.sn);this.isShortsPipActive=_.um(_.ku);this.nextReelVe=_.Xl(56921);this.prevReelVe=_.Xl(56922);this.backButtonVe=_.Xl(22156);this.TEST_ONLY={getActiveModules:function(){return Q.activeModules}}},gfA=function(A){A.unsubscribeFromStore=
_.ar(A.storeWithShorts,_.oL0,function(t){A.initOrDisposeActiveModules(t);
!t&&A.storeWithShorts.getState().shorts.isFullscreen&&(_.KG(document.documentElement),A.storeWithShorts.dispatch(_.KRp(!1)))});
A.initOrDisposeActiveModules(_.oL0(A.storeWithShorts.getState()))},Twd,iA2,wmd;
c3.prototype.initOrDisposeActiveModules=function(A){A?this.activeModules.push(new K$h(this,this.storeWithShorts)):(_.G_(this.activeModules),this.activeModules.length=0)};
c3.prototype.registerRootElement=function(A){this.rootElement=A;gfA(this)};
c3.prototype.getRoot=function(){return this.rootElement};
c3.prototype.setActiveIndex=function(A){this.activeIndex=A};
_.lAw=function(A,t){var f,X,Q,q,e,G,N;return _.l(function(z){switch(z.nextAddress){case 1:return f=new bW,(X=f.JSC$14268_getStoreKey(t))&&A.ephemeralResponseStore.has(X)?z.yield(A.ephemeralResponseStore.get(X),7):z.yield(wmd(A,t),4);case 4:Q=z.yieldResult;if(!X){z.jumpTo(3);break}q=tE(Q,3600);return z.yield(A.ephemeralResponseStore.put(X,new _.xy(q)),3);case 7:Q=(e=z.yieldResult)==null?void 0:_.wP(e);case 3:return((G=Q)==null?0:G.replacementEndpoint)&&(N=_.C(Q.replacementEndpoint,_.zD))&&Q.sequenceContinuation&&
(N.sequenceParams=Q.sequenceContinuation),z.return(Q)}})};
Twd=function(A,t){t=(new Wj).JSC$14268_getStoreKey(t);return!!t&&A.ephemeralResponseStore.has(t)};
iA2=function(A,t,f){var X,Q,q,e,G;_.l(function(N){if(N.nextAddress==1){X=new Wj;Q=X.JSC$14268_getStoreKey(t);if(!Q)return N.return();if(f.reelWatchSequenceResponse)return q=tE(f.reelWatchSequenceResponse,3600),A.ephemeralResponseStore.put(Q,new _.xy(q)),N.jumpTo(0);if(!A.ephemeralResponseStore.has(Q))return N.jumpTo(0);G=f;return N.yield(A.ephemeralResponseStore.get(Q),4)}G.reelWatchSequenceResponse=(e=N.yieldResult)==null?void 0:_.wP(e);_.LO(N)})};
wmd=function(A,t){var f=f===void 0?{}:f;var X,Q,q;return _.l(function(e){switch(e.nextAddress){case 1:if(A.innertubeTransportService){X=A.innertubeTransportService;e.jumpTo(2);break}if(!A.innertubeTransportLoader){_.g9(Error("vj"));e.jumpTo(2);break}return e.yield(A.innertubeTransportLoader(),4);case 4:X=e.yieldResult;case 2:return e.yield((Q=X)==null?void 0:_.jl(Q,t,f),5);case 5:return q=e.yieldResult,e.return(q)}})};
_.PV.Object.defineProperties(c3.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
c3[T7]=[Xf3,_.Id,_.z7(_.iY),_.z7(v98)];_.soQ=new _.eh("STORAGE_MANAGER_TOKEN");var zRq=["touchmove","scroll"];var kc8=!1;var r$u=!1;var uTb={onSpanEnd:function(A){A.parentId==null&&(kc8||(sc5(),setInterval(sc5,6E5),kc8=!0),tWx(A,"web_tracing_action"))}};var Jdz=URL.createObjectURL;var l$T,rZ8={traceAllComponents:_.M("web_tracing_all_components"),exportToCsi:_.M("web_tracing_export_to_csi"),enabledSpansArray:_.MG("web_tracing_enabled_spans"),exportToDevTools:_.M("web_tracing_export_to_devtools"),maxBreadcrumbs:_.cx("tel_max_breadcrumbs",0)};l$T=new qKx(rZ8);var Nq0=_.M("web_shorts_enable_tracing");var A8j=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},t28;
A8j.prototype.enqueue=function(A,t){t===1?this.currentPersistentToast=A:this.queue.push(A);this.openToast()};
A8j.prototype.openToast=function(){var A;(A=this.currentToast)!=null&&A.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.B3=new _.eh("TOAST_MANAGER_TOKEN");var fk2=new _.eh("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var X58=new _.eh("VIEW_TRANSITION_COORDINATOR_TOKEN");var Qh2=function(A){this.config=A;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;A=_.U(A.transitionConfigs);for(var t=A.next();!t.done;t=A.next())t=_.U(t.value).next().value,this.transitionTasksMap.set(t,[])};
Qh2.prototype.registerElement=function(A,t,f){f=f===void 0?!1:f;for(var X=_.U(Object.keys(t)),Q=X.next(),q={};!Q.done;q={viewTransitionName:void 0},Q=X.next()){Q=Q.value;q.viewTransitionName=t[Q];var e=this.elementTasksMap.get(A),G=void 0;if((G=e)==null?0:G.has(Q)){_.ai(new _.xj("Element already registered for transition",A.tagName,Q));break}e=e||new Map;e.set(Q,{beforeTransition:function(N){return function(){A.style.viewTransitionName=N.viewTransitionName}}(q),
afterTransition:function(){A.style.viewTransitionName&&(A.style.viewTransitionName="")},
runOnce:f});this.elementTasksMap.set(A,e)}};
_.pW=function(A,t){var f=A.elementTasksMap.get(t);f&&(f.clear(),f.size===0&&A.elementTasksMap.delete(t))};
Qh2[T7]=[fk2];var J8h=_.I(function(A){var t=_.GU("yt-expandable-metadata-header-view-model"),f=_.f1(function(X){if(!_.Rv(_.hE(X),t.value,["A".toString(),"BUTTON".toString()])){var Q;(Q=A.expandedCallback)==null||Q.call(A,!1)}});
return _.u("yt-expandable-metadata-header-view-model",{el:t,class:"ytExpandableMetadataHeaderViewModelHost"},_.u(_.P,{cond:function(){return A.expanded()},
then:function(){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":f},_.u("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.u(_.P,{cond:function(){return A.data().expandedTitleImage},
then:function(X){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.u(_.YA,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:X}))}}),_.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.u("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.u(_.zL,{text:function(){return A.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.u(_.zL,{text:function(){return A.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.u(_.zL,{text:function(){return A.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.u("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.u(_.P1,{data:function(){return A.data().infoButton}},{buttonViewModel:_.nx}),_.u(_.P1,{data:function(){return A.data().collapseButton}},{buttonViewModel:function(X){return _.u(_.nx,{data:X.data,
onClick:function(){var Q;(Q=A.expandedCallback)==null||Q.call(A,!1)}})}})))},
else:function(){return _.u(q8l,Object.assign({},A))}}))},"qg"),UpA=_.I(function(A){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.u(_.P,{cond:function(){return A.data().collapsedLabelImage},
then:function(t){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.u(_.YA,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:t,alt:""}))}}),_.u(_.zL,{text:function(){return A.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"rg"),q8l=_.I(function(A){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.f1(function(){var t;return void((t=A.expandedCallback)==null?void 0:t.call(A,!0))})},_.u("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.u(_.P,{cond:function(){return A.data().collapsedImage},
then:function(t){return _.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.u(_.YA,{height:20,preserveHeight:!0,preserveWidth:!0,data:t,alt:""}))}}),_.u(_.P,{cond:function(){return A.data().showLeadingCollapsedLabel},
then:function(){return _.u(UpA,Object.assign({},A))}}),_.u("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.u(_.zL,{text:function(){return A.data().collapsedTitle}}))),_.u("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.u(_.P,{cond:function(){return!A.data().showLeadingCollapsedLabel},
then:function(){return _.u(UpA,Object.assign({},A))}}),_.u(_.P1,{data:function(){return A.data().infoButton}},{buttonViewModel:_.nx}),_.u(_.P1,{data:function(){return A.data().expandButton}},{buttonViewModel:function(t){return _.u(_.nx,{data:t.data,
onClick:function(){var f;(f=A.expandedCallback)==null||f.call(A,!0)}})}})))},"sg");_.ech=_.I(function(A){var t=_.U(_.Jo(function(){return A.data().initiallyExpanded})),f=t.next().value,X=t.next().value,Q,q=(Q=_.Px().resolve(_.z7(_.FH)))==null?void 0:Q(),e=function(){var G=A.data().colorData;
if(G)return q?G==null?void 0:G.darkColorPalette:G==null?void 0:G.lightColorPalette};
return _.u("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.U7({"background-color":function(){var G=e();return(G==null?0:G.section2Color)?_.bY(G.section2Color):""}})},_.u(_.P1,{data:function(){return A.data().header}},{expandableMetadataHeaderViewModel:function(G){return _.u(J8h,{data:G.data,
expanded:function(){return!!f()},
expandedCallback:function(N){X(N)}})}}),_.u(_.P,{cond:function(){return f()},
then:function(){return _.u("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.u(_.P1,{data:function(){return A.data().expandedContent}},{horizontalShelfViewModel:function(G){return _.u(_.iq,{data:G.data,
includeMargin:!0,forceNarrowLayout:!0,palette:e})},
videoSummaryContentViewModel:function(G){return _.u(Qtk,{data:G.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(G){return _.u(_.VK,{data:G.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(G){return _.u(_.PBl,{data:G.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.u(_.P1,{data:function(){return A.data().expandedBottomButtons}},{buttonViewModel:function(G){return _.u("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.u(_.nx,{data:G.data}))}}))}}))},"tg");var Gwj=_.I(function(A){var t=A.text;var f=A.marqueeSpacing;var X=A.scrollDelay;var Q=A.scrollDuration;var q=A.enableMarqueeScroll;A=A.large;var e=_.U(_.hZ(!1,void 0,"WyNYFf")),G=e.next().value,N=e.next().value,z=_.U(_.hZ(0,void 0,"OoTdhe"));e=z.next().value;var T=z.next().value,O=_.GU("marquee-scroll");z=_.GU("div");var c=_.GU("span"),B=_.Px().resolve(_.xA);_.oo(function(){if(q()){var L=c.value.getBoundingClientRect().width,E=O.value.getBoundingClientRect().width;if(L>E){var D=(B==="ltr"?-1:1)*(L+
(f?f():16));Promise.resolve().then(function(){N(!0);T(D)})}}},"dv0Anf");
var h={},W={};return _.u("marquee-scroll",{class:_.Ao("ytMarqueeScrollHost",(h.ytMarqueeScrollHostLarge=A,h)),el:O},_.u("div",{id:"marquee-scroll-inner-container",class:_.Ao("ytMarqueeScrollInnerContainer",(W.ytMarqueeScrollAnimationEnabled=function(){return G()},W)),
el:z,style:_.U7({gap:f?(0,_.lq)(f):"16px","animation-duration":Q?eu8(Q):"16s","animation-delay":X?eu8(X):"3s","--marquee-translate":(0,_.lq)(e)})},_.u("span",{el:c,dir:"auto"},_.u(_.zL,{text:t,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.u(_.P,{cond:G,then:function(){return _.u("span",{"aria-hidden":"true",dir:"auto"},_.u(_.zL,{text:t,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"vg");_.lkm=_.I(function(A){var t=A.data;var f=A.overlayDensity;A=_.f1(function(){t().onTapCommand&&_.LI(t().onTapCommand);return!1});
var X=_.jEg(),Q=function(){return(f==null?void 0:f())===1?22:16},q={};
return _.u("reel-sound-metadata-view-model",{class:_.Ao("ytReelSoundMetadataViewModelHost",(q.ytReelSoundMetadataViewModelHostLarge=function(){return(f==null?void 0:f())===1},q)),
"on:click":A,tabindex:0,role:"button","on:keydown":X},_.u("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.u(_.P,{cond:function(){return t().musicIcon},
then:function(e){return _.u(_.YA,{data:e,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Q})}}),_.u("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.u(Gwj,{text:function(){return t().soundMetadata},
enableMarqueeScroll:function(){return!!t().enableMarqueeScroll},
large:function(){return(f==null?void 0:f())===1}}))))},"wg");var N9l,uE2,Mk,iad,c83,T92,Cky,M23;N9l=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];uE2=_.cx("wil_icon_max_concurrent_fetches",Infinity);
Mk=function(A,t,f){var X=this;this.iconSet=A;this.appDirection=t;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Xb.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.M("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.M("wil_icon_network_first");this.renderWhenIdle=_.M("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.M("wil_icon_load_immediately");this.isPurging=!1;A=function(){X.cacheStorageAvailable&&(X.cacheStorageAsync=_.Xb.caches.open("yt-icons").then(function(q){return X.cacheStorageSync=q}).catch(function(){X.cacheStorageAvailable=!1}))};
f=(f==null?void 0:f())||{};f=_.U(Object.entries(f));for(t=f.next();!t.done;t=f.next()){var Q=_.U(t.value);t=Q.next().value;Q=Q.next().value;Q=v5(Q);zc3(Q);this.iconCache[t]=Q.cloneNode(!0)}this.isPurging=Pkl(this);this.isPurging instanceof Promise?this.isPurging.then(A):A()};
_.jeu=function(A,t){var f=A.resolveIcon(t);return f?A.renderingMode===1?T92(A,f,A.renderingMode):(t=A.iconCache[f.url])?(t=t.cloneNode(!0),iad(A,t),T92(A,f,A.renderingMode,t)):_.Oaw(A,f).then(function(X){var Q=X?0:1;iad(A,X);return T92(A,f,Q,X)}):(_.ai(new _.xj("Icon not found",{iconShape:t})),function(){})};
iad=function(A,t){if(t){A.counter+=1;A="_yt"+A.counter;t=[t].concat(_.YV(t.getElementsByTagName("*")));t=_.U(t);for(var f=t.next();!f.done;f=t.next())if(f=f.value,f.tagName==="style"&&f.textContent)f.textContent=c83(f.textContent,A,!0);else for(var X=_.U(f.attributes),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;Q.name==="id"&&(Q.value+=A);["mask","fill","clip-path"].includes(Q.name)&&(Q.value=c83(Q.value,A));if(Q.name==="style"){var q=f.style;try{q.cssText=c83(q.cssText,A,!0)}catch(T){var e=void 0,G=
void 0,N=void 0,z=void 0;Cv({error:((e=T)==null?void 0:(N=(G=e).toString)==null?void 0:N.call(G))||"",el:f.outerHTML,style:!!q,cssText:(z=q)==null?void 0:z.cssText})}}Q.name==="xlink:href"&&(Q.value=Q.value.replace(/#(.*)/,"#$1"+A))}}};
c83=function(A,t,f){var X=/url\(["']?#(.*?)["']?\)/;(f===void 0?0:f)&&(X=/url\(["']?#(.*?)["']?\)/g);return A.replace(X,"url(#$1"+t+")")};
T92=function(A,t,f,X){return function(Q,q){var e;var G=Object.assign({},{iconWidth:t.size+"px",iconHeight:t.size+"px",iconDisplay:"block"},q,{iconColor:(e=q==null?void 0:q.iconColor)!=null?e:"currentcolor"});e=_.yT("DIV");q=G.iconColor;var N=G.iconFilter;G="width: "+G.iconWidth+"; height: "+G.iconHeight+"; display: "+G.iconDisplay+";";N&&(G+=" filter: "+N+";");f===0&&(G+=" fill: "+q+";");f===1&&(N=t.url,G+=" -webkit-mask: url("+N+") no-repeat center / cover; mask: url("+(N+") no-repeat center / cover; background-color: ")+
q);t.allowMirroring&&A.appDirection==="rtl"&&(G+=" transform: scale(-1, 1); transform-origin: center center;");e.setAttribute("style",G);f===0&&X&&e.appendChild(X);Q.appendChild(e)}};
_.Oaw=function(A,t){var f,X,Q;return _.l(function(q){f=function(e){return wW(e)};
X=t.url;if(!B9Q(X))throw Error("yj");Q=M23(A,X);return q.return(Q.then(function(e){return e.clone().text()}).then(function(e){var G=f(e);
e=t.size;var N=_.yT("DIV");_.eO(N,G);G=_.vf(N.firstElementChild!==void 0?N.firstElementChild:_.bn8(N.firstChild,!0));e=zc3(G,e);A.iconCache[X]=e.cloneNode(!0);delete A.responsePromises[X];return e}).catch(function(){}))})};
Cky=function(A){var t,f=(t=A.requestAninmationFrameResolver)==null?void 0:t.promise;f||(A.requestAninmationFrameResolver=new _.Qc,f=A.requestAninmationFrameResolver.promise,_.Xb.requestAnimationFrame(function(){var X;(X=A.requestAninmationFrameResolver)==null||X.resolve();A.requestAninmationFrameResolver=null}));
return f};
M23=function(A,t){var f,X;return _.l(function(Q){if(Q.nextAddress==1)return A.waitForAnimationFrame?Q.yield(Cky(A),2):Q.jumpTo(2);f=A.responsePromises[t];f||(X=function(){var q,e,G;return _.l(function(N){switch(N.nextAddress){case 1:if(!A.cacheStorageAvailable){q=void 0;N.jumpTo(2);break}if(e=A.cacheStorageSync){N.jumpTo(3);break}return N.yield(A.cacheStorageAsync,4);case 4:e=N.yieldResult;case 3:q=e;case 2:return G=q,A.isNetworkFirstStrategy?N.return(A.fetchAndUpdateCache(t,G).catch(A.getCacheStorageResponse.bind(A,
t,G))):N.return(A.getCacheStorageResponse(t,G).catch(A.fetchAndUpdateCache.bind(A,t,G)))}})},f=A.renderWhenIdle?new Promise(function(q,e){_.jY(_.a6,function(){X().then(q).catch(e)},10)}):X(),A.responsePromises[t]=f);
return Q.return(f.catch(function(q){delete A.responsePromises[t];Cv({error:(q==null?0:q.toString)?q.toString():"",url:t});throw q;}))})};
Mk.prototype.fetchAndUpdateCache=function(A,t){var f=this;return _.l(function(X){return X.return(hcQ(f,A).then(function(Q){Rc_(f,A,Q,t);return Q}))})};
var hcQ=function(A,t){var f;return _.l(function(X){if(A.numFetches<uE2)return A.numFetches+=1,X.return(mph(A,t).finally(function(){--A.numFetches;if(Object.keys(A.queuedResponseResolvers).length){var Q=Object.keys(A.queuedResponseResolvers)[0],q=A.queuedResponseResolvers[Q];delete A.queuedResponseResolvers[Q];q.resolve(hcQ(A,Q))}}));
f=new _.Qc;A.queuedResponseResolvers[t]=f;return X.return(f.promise)})},mph=function(A,t,f){f=f===void 0?2:f;
var X;return _.l(function(Q){X={credentials:"same-origin",priority:"low"};return Q.return(_.Xb.fetch(t,X).then(function(q){return q.ok?q:Promise.reject(Error("zj`"+q.status+"`"+q.statusText))}).catch(function(q){if(f>0)return mph(A,t,f-1);
throw q;}))})},Rc_=function(A,t,f,X){_.l(function(Q){return X?Q.return(new Promise(function(q){_.jY(_.a6,function(){var e,G;
return _.l(function(N){switch(N.nextAddress){case 1:if(!A.isNetworkFirstStrategy){e=void 0;N.jumpTo(2);break}return N.yield(X.match(t).catch(function(){}),3);
case 3:e=N.yieldResult;case 2:if(G=e){N.jumpTo(4);break}return N.yield(X.put(t,f.clone()).catch(function(z){Cv({error:(z==null?0:z.toString)?z.toString():"",url:t})}),4);
case 4:q(),_.LO(N)}})},50)})):Q.return()})};
Mk.prototype.getCacheStorageResponse=function(A,t){return _.l(function(f){return t?f.return(t.match(A).then(function(X){return X&&X.ok?X:Promise.reject()})):f.return(Promise.reject())})};
var zc3=function(A,t){t===void 0||A.getAttribute("viewBox")||A.setAttribute("viewBox","0 0 "+t+" "+t);A.setAttribute("focusable","false");A.setAttribute("aria-hidden","true");t=_.M("killswitch_remove_icon_fill_color");A.getAttribute("fill")!=="currentcolor"&&A.getAttribute("fill")!=="currentColor"||t||A.removeAttribute("fill");try{A.style.pointerEvents="none",A.style.display="inherit",A.style.width="100%",A.style.height="100%"}catch(Q){var f;Cv({error:((f=Q)==null?0:f.toString)?Q.toString():""});
try{A.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(q){var X;Cv({error:((X=q)==null?0:X.toString)?q.toString():""})}}return A},B9Q=function(A){for(var t=_.U(N9l),f=t.next();!f.done;f=t.next())if(A.startsWith(f.value)&&A.endsWith(".svg"))return!0;
return!1};
Mk.prototype.resolveIcon=function(A){return this.iconSet.resolveIcon(A)};
var Cv=function(A){_.K4(new _.xj("Error in IconManager",A))},Pkl=function(A){if(_.M("wil_icons_cache_purge_killswitch"))return!1;
try{var t=_.Xb.localStorage}catch(q){return!1}if(!t||!A.cacheStorageAvailable)return!1;var f=function(q){try{var e;(e=t)==null||e.setItem("yt-icons-last-purged",q.toString())}catch(N){var G;Cv({error:((G=N)==null?0:G.toString)?N.toString():""})}},X=Number(t.getItem("yt-icons-last-purged"));
if(!X)return X=new Date,X=X.setDate(X.getDate()-Math.floor(Math.random()*90+1)),f(X),!1;if(function(q,e){q=new Date(q);e=new Date(e);return e.getMonth()-q.getMonth()+12*(e.getFullYear()-q.getFullYear())}(X,Date.now())<3)return!1;
try{return _.Xb.caches.delete("yt-icons").then(function(q){q&&f(Date.now());return q}).catch(function(){return!1}).finally(function(){A.isPurging=!1})}catch(q){var Q;
Cv({error:((Q=q)==null?0:Q.toString)?q.toString():""});return!1}};
Mk[T7]=[SVc,_.xA,_.z7(aHj)];_.hi=function(A,t){this.iconManager=A;this.iconsToFetch=t};
_.hi[T7]=[_.fI,_.z7(HOd)];var ba3=function(){};var WhA=function(A,t,f){this.requestKey=A;this.unV=t;this.r64=f;this.uLV=function(){return new XMLHttpRequest};
this.bMX=void 0;this.as4=[]};
WhA.prototype.getLatestChallengeResponse=function(){return this.r64};
var vjT=function(A,t,f){var X,Q,q,e;return _.l(function(G){if(G.nextAddress==1){_.b0("attestation_challenge_fetch");_.Wt("att_fs",void 0,"attestation_challenge_fetch");if(!A.bMX)throw new _.xg(9,"Missing fetcher");return G.yield(A.bMX(t,f),2)}X=G.yieldResult;q=(Q=X)==null?void 0:Q.bgChallenge;if(!q)throw new _.xg(15,"Missing field");A.r64=X;A.as4.forEach(function(N){N(X)});
e=HtT(q);_.Wt("att_fc",void 0,"attestation_challenge_fetch");mP("attestation_challenge_fetch");return G.return(e)})},sjl=function(A,t){var f,X,Q,q,e;
return _.l(function(G){switch(G.nextAddress){case 1:f=new Bf(100,3E5,.25,2),X=void 0;case 2:if(!(f.currBackoffCount_<10)){G.jumpTo(4);break}_.ht(G,5);if(!(f.currBackoffCount_>0)){G.jumpTo(7);break}return G.yield(Tqp(f.getValue()),7);case 7:return G.yield(y82(A,t),9);case 9:return Q=G.yieldResult,G.return(Q);case 5:q=_.vC(G);q instanceof _.xg?X=q:(e=q instanceof Error?q.message:"Unknown",X=new _.xg(9,e));YHb(f);G.jumpTo(2);break;case 4:if(X)throw X;throw new _.xg(9,"Unknown error");}})},y82=function(A,
t){t=Oki(cek(new ikT,t),A.requestKey);
var f=new _.Qc,X=A.uLV();X.open("POST",A.unV);X.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");X.setRequestHeader("Content-Type","application/json+protobuf");X.onload=function(){if(_.Jl0(X)){var Q=WZ7(X.responseText);f.resolve(Q)}else f.reject(new _.xg(_.lUs(_.he(X)),X.statusText))};
X.onerror=function(){f.reject(new _.xg(_.lUs(_.he(X)),X.statusText))};
X.send(t.serialize());return f.promise};var Lhw=function(A){this.networkStatusManager=A;this.isDownloaded=sLz===void 0?function(){return!1}:sLz;
this.isReady=!1;this.sMV=vk2(this)},vk2=function(A){var t;
return _.l(function(f){if(f.nextAddress==1)return f.yield(S8l(),2);if(f.nextAddress!=3)return t=f.yieldResult,f.yield(oC8(t),3);A.wc=f.yieldResult;Oqu(A.wc).then(function(){A.isReady=!0});
return f.return(A.wc)})},p52=function(A,t,f){A.wc?(A=A.wc.dlj({yj:f,
oe6:!0,tjY:!0}),t.serviceIntegrityDimensions={poToken:A}):_.HQ(Error("Bj"))};
Lhw.prototype.processContext=function(A){var t=this;if(!A.input.match(_.HE($K8)))return _.MN();var f=A.innerTubeRequest,X=f.videoId;return!X||this.isDownloaded(f)||this.networkStatusManager&&!this.wc&&!this.networkStatusManager.isNetworkAvailable()?_.MN():this.wc?this.isReady?(p52(this,f,X),_.MN()):new BX(Oqu(this.wc).then(function(){p52(t,f,X)})):new BX(this.sMV.then(function(Q){return _.l(function(q){if(q.nextAddress==1)return q.yield(Oqu(Q),2);
p52(t,f,X);_.LO(q)})}))};var Ekw=new _.eh("WEB_PO_CONTEXT_PROCESSOR");var nkd=function(A,t){var f=this;this.kVP=0;var X;this.iaY=(X=t==null?void 0:t.iaY)!=null?X:window;this.networkStatusManagerPromise=t==null?void 0:t.networkStatusManagerPromise;var Q;this.requestKey=(Q=t==null?void 0:t.requestKey)!=null?Q:_.Bx("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var q;this.ixl=(q=t==null?void 0:t.ixl)!=null?q:function(N){return new S$(N)};
var e;X=(e=t==null?void 0:t.bld)!=null?e:function(N,z,T){return new WhA(N,z,T)};
this.bgChallenge=HtT(A.bgChallenge);this.ttlSeconds=aJx(YY(A.challenge||""));this.dL=X(this.requestKey,_.M("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Xb.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",A);this.rTJ=t==null?void 0:t.rTJ;iqg(this.dL);var G;this.lyi=(G=t==null?void 0:t.lyi)!=null?G:function(N){_.TV(f.iaY.document,"visibilitychange",
function(){f.iaY.document.visibilityState==="visible"&&N()})}},Fhd=function(A){if(!A.vm){var t={maxAttempts:5,
kYJ:A.ttlSeconds*1E3};cdu(A.iaY);A.vm=A.ixl({dL:A.dL,hrg:{disable:_.M("html5_web_po_disable_remote_logging"),qZ:"aGIf",hnV:t5l("html5_web_po_experiment_ids"),hrV:_.M("wpo_dis_lfdms")?0:1E3,khq:function(X){var Q=g9f.get(X);Q||(Q=new KB7(X),Q=new m7(Q),g9f.set(X,Q));return Q}},
wcu:t,xel:A.bgChallenge,oCV:Bqs});A.kVP=Date.now();RTp(A.vm,function(){A.kVP=Date.now()});
Khq(A.vm,function(){return _.l(function(X){return X.return(DpQ(A))})});
var f=A.e4d.bind(A);A.networkStatusManagerPromise&&A.ttlSeconds>0&&A.networkStatusManagerPromise.then(function(X){X.listen("publicytnetworkstatus-online",f)});
A.lyi(f)}};
nkd.prototype.e4d=function(){if(Date.now()>this.kVP+this.ttlSeconds*1E3){var A;(A=this.vm)==null||hTl(A)}};
var DpQ=function(A){if(A.nz6)return A.nz6;if(!A.vm)throw Error("Cj");A.nz6=new K_({vm:A.vm,dL:A.dL,swl:!0,onError:Bqs,wcu:A.rTJ});return A.nz6},Ct5=function(A,t){A=new nkd(A,t);
Fhd(A);(t==null?0:t.kBp)||DpQ(A)};var Ikm=_.Px3.ephemeralActionSelector,RI=function(A,t){this.store=A;this.queue=[];t==null||t.addEventListener("yt-navigate-start",this.reset.bind(this))};
RI.prototype.enqueue=function(A){var t=A.command,f=A.durationMs,X=A.elementToFocus;var Q=A.label;var q=A.elementToFocus;A.command?Q=_.e5("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Q,shortcut:_.e5("SHIFT_PLUS_ENTER")}):q&&(A=Q+". "+_.e5("SHIFT_PLUS_ENTER")+" for more information.",Q=_.e5("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Q,shortcut:_.e5("SHIFT_PLUS_ENTER")},A));f={announcement:Q,durationMs:f!=null?f:8E3};t?f.command=t:X&&(X.classList.add("ephemeral-action-focusable-element"),f.selector=X.tagName+
".ephemeral-action-focusable-element");this.queue.push(f);xp2(this)};
RI.prototype.activate=function(A){var t=Ikm(this.store.getState());if(t){if(t==null?0:t.command)_.Wn(t.command),this.store.dispatch(Z$f(null));if(t==null?0:t.selector)t=document.querySelector(t.selector),_.Hk0(t);A.preventDefault()}};
var xp2=function(A){if(!Ikm(A.store.getState())&&A.queue.length){var t=A.queue.shift();t&&(A.previousAnnouncement===t.announcement&&(t.announcement+="\u00a0"),A.store.dispatch(Z$f(t)),A.previousAnnouncement=t.announcement,A.timeoutId=setTimeout(function(){if(t.selector){var f;(f=document.querySelector(t.selector))==null||f.classList.remove("ephemeral-action-focusable-element")}A.store.dispatch(Z$f(null));xp2(A)},t.durationMs))}};
RI.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Z$f(null));this.queue.length=0;this.timeoutId=void 0};
RI[T7]=[_.Xk,_.z7(_.V2)];_.m8=new _.eh("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var jh3=new _.eh("AUTH_SERVICE_TOKEN");var mf5=_.dS(["about:blank"]),RRs;var Y8m=new _.eh("API_IFRAME_TOKEN"),V2y=new _.eh("FETCH_FN_TOKEN"),Zad=new _.eh("WINDOW_REQUEST_TOKEN"),okm=new _.eh("TEXT_DECODER_TOKEN");var LZk;LZk=new _.eh("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.dph=new _.eh("MISC_UI_SHARED_FLAGS_TOKEN");var S8d=function(){};
S8d.prototype.getFlag=function(A){if(A.configType!==2)throw Error("Dj");return $py(A)};
var $py=function(A){switch(A.flagType){case "bool":return _.M(A.flagName);case "int":return _.x8(_.cx(A.flagName));case "double":return _.cx(A.flagName);case "string":return _.Bx(A.flagName);case "int32_list":return t5l(A.flagName);case "int64_list":return t5l(A.flagName).map(function(t){return _.x8(t)});
case "string_list":return _.MG(A.flagName);default:throw Error("Ej");}};var bV=function(A,t,f){t=t===void 0?{}:t;oR.call(this,f===void 0?"uninitialized":f);this.env=A;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}];t.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=t.shouldWaitOnAsyncImmediate)};
_.R(bV,oR);bV.prototype.init=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?X.yield(A(t.env),2):(A(t.env),X.jumpTo(2));if(X.nextAddress!=4)return t.jobSet?X.yield(t.jobSet.completedResolver.promise,4):X.jumpTo(4);f=_.TT();f.parkOrScheduleJob(function(){t.transition("rendering")},10,"ci");
_.LO(X)})};
bV.prototype.initialRender=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?X.yield(A(t.env),2):(A(t.env),X.jumpTo(2));if(X.nextAddress!=4)return t.jobSet?X.yield(t.jobSet.completedResolver.promise,4):X.jumpTo(4);f=_.TT();f.parkOrScheduleJob(function(){t.transition("rendered")},10,"cr");
_.LO(X)})};
bV.prototype.afterRenderImmediate=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?X.yield(A(t.env),2):(A(t.env),X.jumpTo(2));if(X.nextAddress!=4)return t.jobSet?X.yield(t.jobSet.completedResolver.promise,4):X.jumpTo(4);f=_.TT();f.parkOrScheduleJob(function(){t.transition("after-render-deferred")},10,"carml");
_.LO(X)})};
bV.prototype.afterRenderDeferred=function(A){var t=this;return _.l(function(f){A(t.env);_.LO(f)})};_.H5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var Hay={},akd=(Hay.rendered={priority:0,callback:function(A){ltk(A.injector.resolve(YB))}},Hay);var Rug=new _.eh("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),Khm=new _.eh("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var gk3=function(A){this.callbackFnMap=A;this.configMap={}};
gk3.prototype.handleResponse=function(A){var t;if(A=(t=A.responseContext)==null?void 0:t.serviceTrackingParams)for(t=_.U(A),A=t.next();!A.done;A=t.next()){A=A.value;var f=A.params,X=A.service;if(f&&X){this.configMap[X]||(this.configMap[X]=new OEE);A=this.configMap[X];var Q=void 0,q=(Q=this.callbackFnMap)==null?void 0:Q[X];f=_.U(f);for(X=f.next();!X.done;X=f.next())Q=X.value,X=Q.key,Q=Q.value,X&&Q&&(A.set(X,Q),q&&q(X,Q))}}};
gk3.prototype.getConfig=function(A){return this.configMap[A]||void 0};
gk3[T7]=[_.z7(Khm)];var w53=!1,I$x=0,E0b=null,Fou=null;var shA=new _.eh("NETWORK_SLI_TOKEN");var kw2=function(A){this.networkSli=A};
kw2.prototype.fetch=function(A,t,f){var X=this,Q;return _.l(function(q){Q=r8w(X,A,t);return q.return(fetch(Q).then(function(e){return X.handleResponse(e,f)}).catch(function(e){_.K4(e);
if((f==null?0:f.expectJsonStrict)&&e instanceof d1&&e.errorType===1)return Promise.reject(e)}))})};
var LHE=function(A,t,f,X){var Q,q,e,G,N,z,T;return _.l(function(O){switch(O.nextAddress){case 1:return Q=r8w(A,t,f),_.ht(O,2),O.yield(fetch(Q),4);case 4:q=O.yieldResult;_.qq(O,3);break;case 2:throw _.vC(O),new d1(2,"Failed to parse streaming response",Q.url);case 3:if(!q.redirected&&!q.ok)throw(e=A.networkSli)==null||e.failure(),new _.xj("Streaming fetch request not ok",Q.url);if(!q.body)throw new _.xj("No response body in streaming response",Q.url);G={};if(_.M("web_streaming_fast"))return N=q.body.getReader(),
O.return(Aew(A,N,G,X));z=q.body.pipeThrough(new TextDecoderStream).getReader();T=new _.Mh;return O.return(tJ3(A,z,T,l60,G,X))}})},r8w=function(A,t,f){if(A.networkSli){var X=_.Wx(_.Hs(t,"key"))||"/UNKNOWN_PATH";
A.networkSli.start(X)}A=f;_.M("wug_networking_gzip_request")&&(A=uDu(f));return new window.Request(t,A)},Aew=function(A,t,f,X){var Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K,k,Gz,Tz,y5,cp,iu,Fb,xq,Yq,zk,PT,rs;
return _.l(function(OT){switch(OT.nextAddress){case 1:Q=new TextDecoder("utf-8"),q=[],G=e=0,_.ht(OT,2,3);case 5:return OT.yield(t.read(),8);case 8:N=OT.yieldResult;z=N.value;if(T=N.done){O=0;if(q.length>e)for(O=q[e].length-G,c=e+1;c<q.length;c++)O+=q[c].length;O>0&&(B=xf5(q,O,e,G),h=B.indexOf(123),W=B.lastIndexOf(125),h!==-1&&W!==-1&&W>h&&(L=B.subarray(h,W+1),E=JSON.parse(Q.decode(L)),l60(f,E),D=void 0,(D=X)==null||D(f,E)));S=void 0;(S=A.networkSli)==null||S.success();return OT.return(f)}q.push(z);
Z=e;for(d=G;Z<q.length;)if(K=q[Z],k=K.indexOf(10,d),k===-1){if(Z===q.length-1)break;Z++;d=0}else{Gz=Z;Tz=k+1;y5=0;if(e===Gz)y5=Tz-G;else{y5=q[e].length-G;for(cp=e+1;cp<Gz;cp++)y5+=q[cp].length;y5+=Tz}iu=xf5(q,y5,e,G,Gz,Tz);Fb=iu.indexOf(123);xq=iu.lastIndexOf(125);if(Fb!==-1&&xq!==-1&&xq>Fb){Yq=iu.subarray(Fb,xq+1);try{zk=JSON.parse(Q.decode(Yq)),l60(f,zk),PT=void 0,(PT=X)==null||PT(f,zk)}catch(bK){throw new d1(1,"Failed to parse streaming response object",Q.decode(Yq));}}e=Z;d=G=k+1;G===K.length&&
(e++,G=0,Z=e,d=0)}OT.jumpTo(5);break;case 3:_.mz(OT);t.releaseLock();_.yP(OT,0);break;case 2:rs=_.vC(OT);if(rs instanceof d1)throw rs;throw new d1(1,"Failed to process streaming response");}})},tJ3=function(A,t,f,X,Q,q){var e,G,N,z,T,O,c,B,h;
return _.l(function(W){if(W.nextAddress==1)return W.yield(t.read(),2);e=W.yieldResult;G=e.value;if(N=e.done)return(z=A.networkSli)==null||z.success(),W.return(Q);try{T=f.parse(G)}catch(L){throw new d1(1,"Failed to parse streaming response",G);}if(T!=null)for(O=_.U(T),c=O.next();!c.done;c=O.next())B=c.value,X(Q,B),h=void 0,(h=q)==null||h(Q,B);return W.return(tJ3(A,t,f,X,Q,q))})};
kw2.prototype.handleResponse=function(A,t){var f=A.text().then(function(X){if((t==null?0:t.jspbResponseCtor)&&A.ok)return glb(t.jspbResponseCtor,X);X=X.replace(")]}'","");if((t==null?0:t.expectJsonStrict)&&X)try{var Q=JSON.parse(X)}catch(e){throw new d1(1,"JSON parsing failed after fetch");}var q;return(q=Q)!=null?q:JSON.parse(X)});
A.redirected||A.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),f=f.then(function(X){_.K4(new _.xj("Error: API fetch failed",A.status,A.url,X));return Object.assign({},X,{errorMetadata:{status:A.status}})}));
return f};
kw2[T7]=[_.z7(shA)];var fUQ=new _.eh("NETWORK_MANAGER_TOKEN");var Xxw=[1,2,4,8,16,30],q0Q=function(A){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=A.maxTimeMs;this.maxFrameCount=A.maxFrameCount===void 0?Math.ceil(60*A.maxTimeMs/1E3):A.maxFrameCount;A=_.U(Xxw);for(var t=A.next();!t.done;t=A.next())this.brokenFrameSummarizers.push(new QjA(t.value/60*1E3))},Jec=function(A){var t=A.frameCountInternal>=A.maxFrameCount;
return A.elapsedTimeMs>=A.maxTimeMs||t};
q0Q.prototype.summarize=function(){for(var A=[],t=_.U(this.brokenFrameSummarizers),f=t.next();!f.done;f=t.next())f=f.value,f=f.brokenFrameCount!==0?{severityMs:Math.round(f.targetFrameTimeMs),eventCount:f.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(f.averageDurationBetweenEventsMs)}:void 0,f&&A.push(f);return{summaries:A,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.PV.Object.defineProperties(q0Q.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 QjA=function(A){this.targetFrameTimeMs=A;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.PV.Object.defineProperties(QjA.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var UGl=function(){};
UGl.prototype.start=function(A,t){var f=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var X=new q0Q({maxTimeMs:A});this.monitor=X;this.lastSummaryInternal=void 0;this.metadataToLog=t;return new Promise(function(Q){var q=function(e){if(e===void 0)f.stop(),Q(void 0);else if(f.monitor!==X)e=Object.assign({},X.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Q(e);else{var G=f.monitor;if(!Jec(G)){G.frameCountInternal++;if(G.prevTime===
void 0)G.startTime=e;else for(var N=e-G.prevTime,z=_.U(G.brokenFrameSummarizers),T=z.next();!T.done;T=z.next()){T=T.value;var O=T.currTimeMs;T.currTimeMs+=N;N>T.targetFrameTimeMs+2&&(T.brokenFrameCount++,T.timeOfFirstBrokenFrameMs===void 0&&(T.timeOfFirstBrokenFrameMs=O),T.timeOfLastBrokenFrameMs=O)}G.prevTime=e}Jec(f.monitor)?Q(f.stop()):_.a6.addJob(q,5,0)}};
_.a6.addJob(q,5,0)})};
UGl.prototype.stop=function(A){if(!this.monitor)return this.lastSummaryInternal;var t=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(t.monitoringDurationMs){A=A!=null?A:this.metadataToLog;var f={droppedFramesSummary:t,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};A&&(f[A.type]=A.data);_.SY("manualSmoothnessMeasurement",f)}this.monitor=void 0;this.lastSummaryInternal=t;this.metadataToLog=void 0;return t};_.eT8=new _.eh("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var G7j;G7j=function(A){this.JSC$18920_expiringStorage=new Yj(A)};
_.lUd=function(A){if(_.jsp()&&(A=_.dJT(_.F_()+"::"+A)))return new G7j(A)};
G7j.prototype.set=function(A,t,f){f=f!==void 0?Date.now()+f:void 0;this.JSC$18920_expiringStorage.set(A,t,f)};
G7j.prototype.get=function(A){return this.JSC$18920_expiringStorage.get(A)};
G7j.prototype.remove=function(A){this.JSC$18920_expiringStorage.remove(A)};_.W3=function(){};
_.W3.getInstance=function(){var A=_.Ae("ytglobal.storage_");A||(A=new _.W3,_.zm("ytglobal.storage_",A));return A};
_.W3.prototype.estimate=function(){var A,t,f;return _.l(function(X){A=navigator;return((t=A.storage)==null?0:t.estimate)?X.return(A.storage.estimate()):((f=A.webkitTemporaryStorage)==null?0:f.queryUsageAndQuota)?X.return(YK5()):X.return()})};
_.zm("ytglobal.storageClass_",_.W3);var Hqb=0;var rds=!1;var Ni3=_.dS(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),u_w=_.dS(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var SP3={"/":_.HX,"/?feature=ytca":_.HX,"/feed/downloads":_.ahq};var zTh=iFj.continuationCommandSelector,zF=function(A,t,f){this.JSC$18936_upliftPromise=A;this.store=t;this.JSC$18936_persistentStorePromiseAccessor=f};
zF.prototype.shouldPreferLocalResponse=function(A){return A.browseId==="FEdownloads"||A.browseId==="FEsmart_downloads"&&_.M("kevlar_modern_downloads_page")?!0:!1};
zF.prototype.localInnertubeResponse=function(A){var t=this;return _.l(function(f){return A.browseId==="FEdownloads"?_.M("kevlar_modern_downloads_page")?f.return(P2w(t)):f.return(Tim(t)):A.browseId==="FEsmart_downloads"&&_.M("kevlar_modern_downloads_page")?f.return(ikA(t)):f.return(Promise.reject(Error("Gj")))})};
zF.prototype.canProvideFallbackResponse=function(){return!0};
zF.prototype.localFallbackInnertubeResponse=function(A){var t=this,f,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:return q.yield(t.JSC$18936_persistentStorePromiseAccessor(),2);case 2:f=q.yieldResult;if(A.browseId!=="SPaccount_downloads"||!f){q.jumpTo(3);break}return q.yield(weT(f),4);case 4:if(X=q.yieldResult)return q.return(_.wP(X));case 3:return A.browseId==="FEwhat_to_watch"?q.return(Okj(t)):(Q=_.M("web_offline_continuation_automatic_retry")||_.M("web_offline_continuation_retry_button"))&&
A.continuation?q.return(ceQ(t)):q.return(Bid(t))}})};
var Okj=function(A){var t;return _.l(function(f){if(f.nextAddress==1)return f.yield(A.JSC$18936_upliftPromise,2);t=_.Txg(A.store.getState().entities);return t.length?f.return(MJd(A,t)):f.return(Bid(A))})},Tim=function(A){var t,f;
return _.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$18936_upliftPromise,2);if(X.nextAddress!=3)return t=C2c([{offlineItemSectionRenderer:{}}]),X.yield(hT3(A,t),3);f=X.yieldResult;f.onResponseReceivedActions=[eM("REFRESH_DOWNLOADS")];return X.return(f)})},P2w=function(A){var t,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L;
return _.l(function(E){if(E.nextAddress==1)return E.yield(A.JSC$18936_upliftPromise,2);if(E.nextAddress!=3)return t=A.store.getState(),f=t.entities,X=_.CZ(f),Q=_.hR(f),q=_.ams(t),e=_.Hxs(t),G=_.KJu(t),N=_.cag(f),z=_.T$(X),T=_.RC(f),O=_.hg5(f),c=_.wST(t),B=_.vE(t),h={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.etq(X,Q,N,O,q,e,z,T,G,c,B),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},W="",_.M("kevlar_modern_downloads_skip_downloads_title")||
(W=_.e5("DOWNLOADS",void 0,"Downloads")),E.yield(RT8(A,h,W),3);L=E.yieldResult;L.onResponseReceivedActions=[eM("REFRESH_DOWNLOADS")];return E.return(L)})},ikA=function(A){var t,f,X,Q,q,e,G,N,z;
return _.l(function(T){if(T.nextAddress==1)return T.yield(A.JSC$18936_upliftPromise,2);if(T.nextAddress!=3)return t=A.store.getState(),f=t.entities,X=_.CZ(f),Q=_.T$(X),q=_.RC(f),e={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.lR0(X),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},G=_.e5("SMART_DOWNLOADS",void 0,"Smart downloads"),N=J6s(Q,q),T.yield(RT8(A,e,G,N),3);z=T.yieldResult;z.onResponseReceivedActions=
[eM("REFRESH_DOWNLOADS")];return T.return(z)})},Bid=function(A){var t,f;
return _.l(function(X){if(X.nextAddress==1)return X.yield(gP(A.JSC$18936_upliftPromise,A.store),2);t=X.yieldResult;f=C2c([HBx(t)]);return X.return(hT3(A,f))})},ceQ=function(A){var t,f,X,Q;
return _.l(function(q){if(q.nextAddress==1)return t={},f=zTh(A.store.getState()),_.Mx(t,_.L1,f),q.yield(gP(A.JSC$18936_upliftPromise,A.store,t,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);X=q.yieldResult;Q={};_.Mx(Q,_.YUC,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:X}}}],targetId:"browse-feedFEwhat_to_watch"});return q.return({responseContext:{},onResponseReceivedActions:[Q]})})},C2c=function(A){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:A}}}}]}}},MJd=function(A,t){var f,X;
return _.l(function(Q){var q={contents:Gq(t)};f=q&&q.contents?q:{};_.M("kevlar_modern_downloads_page")&&(f=Object.assign({},_.NYq(t),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));X={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:f}}}]}};return Q.return(hT3(A,X))})},hT3=function(A,t){var f,X;
return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(A.JSC$18936_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return f=Q.yieldResult,Q.yield(Au(f),3);X=Q.yieldResult;return Q.return({responseContext:{},contents:t,topbar:X})})},RT8=function(A,t,f,X){var Q,q;
return _.l(function(e){if(e.nextAddress==1)return e.yield(A.JSC$18936_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return Q=e.yieldResult,e.yield(Au(Q),3);q=e.yieldResult;var G=e.return;var N=f;var z=X;N=N===void 0?"":N;z=z===void 0?"":z;N={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:N}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.e5("SETTINGS",void 0,"Settings"),accessibilityText:_.e5("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:_.Kf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:z}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:N};
return G.call(e,{responseContext:{},contents:t,topbar:q,header:{pageHeaderRenderer:N}})})};var mGA=function(){this.moduleRegistry={};this.fetchCount=0};
mGA.prototype.isFetching=function(){return this.fetchCount>0};
var Ft=function(A,t){A.moduleRegistry[t.toString()]={asyncId:t,isFetching:!1};return A};
mGA.prototype.JSC$18947_loadModules=function(){for(var A=this,t=new Map,f=[],X=_.U(_.Hu.apply(0,arguments)),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var q=this.moduleRegistry[Q];q?q.resolver?t.set(Q,q.resolver):(q.resolver=new _.Qc,t.set(Q,q.resolver),f.push(q.asyncId),q.isFetching=!0):(q=new _.Qc,t.set(Q,q),q.resolve(void 0))}f.length&&(this.fetchCount+=1,_.FZ(_.JB.getMultipleAsync.apply(_.JB,_.YV(f)).then(function(e){for(var G=0;G<f.length;G++){var N=e[G],z=A.moduleRegistry[f[G].toString()];z.isFetching=
!1;z.resolver.resolve(N)}}).catch(function(e){for(var G=_.U(f),N=G.next();!N.done;N=G.next()){N=N.value;
var z=A.moduleRegistry[N.toString()];z.resolver=void 0;z.isFetching=!1;t.get(N.toString()).reject(e)}}),function(){--A.fetchCount}));
return Promise.all([].concat(_.YV(t.values())).map(function(e){return e.promise}))};_.IG=new _.eh("MODULE_REGISTRY_TOKEN");var bk_={},Wyh=(bk_.rendered={priority:0,callback:function(A){a:{var t=void 0;try{var f;b:{if(_.obu()){var X=_.oj(_.F_()+"::pom");if(X){var Q=new da(X);break b}}Q=void 0}var q=(f=Q)==null?void 0:f.get("role_text");if(!q)break a;t={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:q}]}}}}}}catch(N){}t&&A.injector.resolve(_.i2).resolveCommand(t)}try{var e=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(e){var G=JSON.parse(e);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
G&&A.injector.resolve(_.i2).resolveCommand(G)}}catch(N){}}},bk_);var ye_,vj2={},Ly_=(vj2.initialized={priority:10,callback:function(){ye_=hu()}},vj2.rendering={callback:function(A){var t;
return _.l(function(f){if(f.nextAddress==1)return f.yield(ye_,2);t=f.yieldResult;if(!t.endpoint)throw Error("Ij`"+_.Xb.location.href);WF(A,t);_.LO(f)})}},vj2);var pxd={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.YV(_.M("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},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(A){var t=A.stack;if(t.includes("chrome://")||t.includes("chrome-extension://")||A.message.includes("chrome-extension://")||t.includes("moz-extension://")||
t.includes("local.adguard.org")||t.includes("auctioneer3.50million.club")||t.includes("youtubedownloader")||t.includes("youtube_home_page")||t.includes("is_youtube_video_no_longer_available")||t.includes("switchScreenSizeHack")||t.includes("yt_main_big_banner.js")||t.includes("YouTubeCenter.js")||t.includes("/mytube.js")||t.includes("JSON.parseWrapper")||t.includes("/inj_js/common.js")||t.includes("firebug-lite")||t.includes(".repl.co/")||t.includes("linkfix")||t.includes("playAfterAd")||A.message.includes("Access is denied for this document")&&
t.includes("<anonymous>")||A.fileName==="user-script"||A.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&t.includes("<anonymous>"))return!0;if(t.includes("https://www.youtube.com"))return!1;A=t.split("\n");if(!A.length)return!1;if(A.length<=3&&t.includes("s.onloadeddata"))return!0;t=0;for(var f=_.U(A),X=f.next();!X.done;X=f.next())X=X.value,(X.includes("https://")||X.includes("http://"))&&t++;return t/A.length>.95},
weight:0},{callback:function(A){return A.message==="Unknown Error"&&A.name.indexOf("NS_")===0},
weight:100},{callback:function(A){if(!_.XG)return!1;var t=A.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||A.message.includes("available to complete this operation"),f=A.stack.includes("webcomponents")&&A.message==="Object doesn't support this action";A=A.message.includes("object that does not implement interface Element");return t||f||A},
weight:0},{callback:function(A){return A.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(A){return A.message==="Operation is not supported"&&(A.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(A){return A.stack.includes("eval code (eval (code:1:1)")||A.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(A){return A.message.includes("Permission denied")&&A.stack.includes("this.domHandler")?!0:A.name.includes("TypeError")&&A.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(A){if(!A.stack)return!1;var t=A.stack.trim().split("\n");t.length&&t[0].endsWith("Error: "+A.message)&&t.shift();t.length&&t[t.length-1].includes("at window.onerror (")&&t.pop();if(!t.length)return!0;if(A.message==="Script error.")return t[0].includes("www.youtube.com")||t.length>=2&&t[0].startsWith("at new")&&t[1].startsWith("at window.onerror");if(A.message==="Unexpected token")return!0;A=_.U(t);for(t=A.next();!t.done;t=A.next())if(t=t.value,!(t.includes("<anonymous>")||
t.startsWith("load@")||t.startsWith("global code@")||t.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(A){return A.message==="Cannot read property 'experiments'"&&A.stack.includes("/s/player/")},
weight:500},{callback:function(A){return A.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(A){return A.stack.includes("/embed.js")?(A.params&&A.params&&(A.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.M("use_error_suppression"))var A=_.ah("SUPPRESS_CLIENT_ERRORS",!1);else{if(A=_.e7)A=/Chrome\/(\d+)/.exec(_.Ox()),A=(A?parseFloat(A[1]):NaN)>=66;A=!(A||_.U1&&_.JJ(65)||_.kj&&_.JJ(12.1)||Nq&&_.JJ(79))}return A},
weight:500}]};var EjA={},njc=(EjA.initialized={priority:10,callback:function(A){A.injector.addProvider({provide:Clw,useValue:A.root});A.injector.addProvider({provide:k__,useValue:jMb});A.injector.addProvider({provide:rV2,useValue:pxd});var t={};A.injector.addProvider((t.provide=AZA,t.useFactory=function(f,X){return function(){Tnl(f,X)}},t[T7]=[k__,
rV2],t));A.injector.addProvider({provide:od,useClass:od})}},EjA);var DG3={},Fy8=(DG3.initialized={priority:3,callback:function(){var A;if(A=IN5()){A=A.replace("/",".");var t=_.NJ();t.set("tz",A);t.save();A=!0}else A=!1;A||(A=_.NJ(),A.set("utco",-Math.floor((new Date).getTimezoneOffset())),A.save())}},DG3);var IU2={},xGh=(IU2.initialized={priority:10,callback:function(A){A.injector.resolve(od).start();A=_.xO();var t=_.Ka("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Ka("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Ka("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Ka("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.et(_.R2x(),{mainAppWeb:Object.assign({},A,{pageType:t})});_.et(b9q(),{mainAppWeb:Object.assign({},A,{pageType:t})});
_.et(Wqu(),{mainAppWeb:A});_.et(y2z(),{mainAppWeb:A});C0K(function(){_.GF(Wqu(),"FAILURE");_.GF(y2z(),"FAILURE")});
zCx();Ppx();Ebq()}},IU2);var jjy={},Y0j=(jjy.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Wt("dl"),_.TT().processSignal("pcl");else{var A=function(){_.Wt("dl");_.TT().processSignal("pcl");window.removeEventListener("load",A)};
window.addEventListener("load",A)}}},jjy);var VJd={},ZkQ=(VJd.rendering={priority:0,callback:function(){var A=_.TT();A.parkOrScheduleJob(function(){A.processSignal("eocs")},10,"eor",5E3)}},VJd);var oj2=function(){};
_.R(oj2,Tu);
oj2.prototype.resolveCommand=function(A,t){var f,X,Q,q,e,G,N,z;return _.l(function(T){Q=(f=_.C(A,_.Jaf))==null?void 0:(X=f.dialog)==null?void 0:X.commentReplyDialogRenderer;if(!Q)throw new _.xj("No dialog in createCommentReplyDialogEndpoint");e=(q=t.form)==null?void 0:q.event;if(!e)throw new _.xj("Event not passed in when resolving command");G=_.U(e.composedPath());for(N=G.next();!N.done;N=G.next())if(z=N.value,z.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||z.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return z.showReplyDialog(Q),T.return();
_.LO(T)})};var ya=function(){};
_.R(ya,Tu);ya.prototype.resolveCommand=function(A){var t,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return t=_.C(A,c2i),(f=t)!=null&&f.externalChannelId?e.yield((0,_.fdz)("NSzT5"),2):e.return();X=_.dGw;q=(Q=t.forceInstall)!=null?Q:!1;return e.yield(X(t.externalChannelId,q),0)})};var v3=function(A){this.JSC$18965_pageRequestService=A;this.JSC$18965_prefetchCoordinator=YBd()};
_.R(v3,Tu);v3.prototype.resolveCommand=function(A){var t=this,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1){f=_.C(A,VD7);if((X=f)==null||!X.taskId)throw Error("Jj");Q=f.taskId;_.ht(e,2);return e.yield(_.zLA(t.JSC$18965_pageRequestService,A,{},"").then(function(G){if(!G)throw Error("Kj");},function(G){throw Error("Lj`"+G);
}),4)}if(e.nextAddress!=2)return oCm(t.JSC$18965_prefetchCoordinator,Q),_.qq(e,0);
q=_.vC(e);Ji(t.JSC$18965_prefetchCoordinator,Q,q);_.LO(e)})};
v3[T7]=[_.Cs];var Lv=function(A,t){this.innertubeTransportService=A;this.JSC$18969_commandHandler=t};
_.R(Lv,Tu);Lv.prototype.resolveCommand=function(A){var t=this,f,X,Q;return _.l(function(q){if(q.nextAddress==1){f=_.C(A,YlT);if(f.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||f.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")X=f.boolValue?2:1,_.WX.getInstance().setState(X,!0,!0);return q.yield(_.jl(t.innertubeTransportService,A),2)}Q=q.yieldResult;S02(t,Q);_.LO(q)})};
var S02=function(A,t){t.actions&&t.actions.forEach(function(f){A.JSC$18969_commandHandler.resolveCommand(f)})};
Lv[T7]=[_.iY,_.i2];var pv={},E4=(pv.addToPlaylistEndpoint=a7(Oy),pv.addToToastAction=a7(Li),pv.adsControlFlowOpportunityReceivedCommand=a7(gr),pv.audioTrackSelectActionCommand=a7(Fh),pv.backgroundAudioPlaybackCommand=a7(jV),pv.captionLanguageSelectActionCommand=a7(Yh),pv.captionPickerEndpoint=a7(V1),pv.changeMiniAppPlayStateCommand=a7(cw),pv.changeTimelyActionVisibilityCommand=a7(vW),pv.channelCreationFormEndpoint=a7(lf),pv.clearLocationCommand=a7(T5),pv.clearUrlParamCommand=a7(Bw),pv.copyLinkCommand=a7(KT),pv.copyTextEndpoint=
a7(tD),pv.createCommentReplyDialogEndpoint=pXs(oj2),pv.createPlaylistServiceEndpoint=a7(g3),pv.dismissDialogEndpoint=a7(RA),pv.dismissPlayerOverlayCommand=a7(Z1),pv.entityUpdateCommand=a7(Xh),pv.feedbackEndpoint=a7(JD),pv.getAnswerCommand=a7(Uc),pv.getPaymentsClientTokenCommand=a7(Fe),pv.getTranscriptEndpoint=a7(pi),pv.googlePaymentBillingCommand=a7(In),pv.googlePaymentPurchaseManagerCommand=a7(xW),pv.hideEngagementPanelEndpoint=a7(mW),pv.hideSheetCommand=a7(bf),pv.hideSnackbarCommand=a7(Ci),pv.insertRichSectionCommand=
a7(uf),pv.listMutationCommand=a7(z5),pv.logGtmCommand=a7(N8),pv.notifyDropdownOptionSelectedCommand=a7(M8),pv.openAdAllowlistInstructionCommand=a7(_.wr),pv.openOnePickAddVideoModalCommand=a7(w3),pv.persistSubscriptionsDisplayPreferencesCommand=a7(fi),pv.pingingEndpoint=a7(sN),pv.playlistEditEndpoint=a7(kh),pv.playlistVotingRefreshPopupCommand=a7(r3),pv.profileCardCommand=a7(Ke),pv.refreshPanelEndpoint=a7(Ww),pv.saveImageToDeviceEndpoint=a7(fT),pv.scrollToSectionEndpoint=pXs(vNw),pv.seekToVideoTimestampCommand=
a7(oA),pv.selectCountryCommand=a7(Xe),pv.setCookieCommand=a7(Q0),pv.setLocalStorageCommand=a7(Rn),pv.setPrefStorageEntryCommand=a7(JP),pv.setSettingEndpoint=a7(Lv),pv.sfvAudioItemPlaybackCommand=a7(d3),pv.shareImageCommand=a7(e6),pv.sharingProviderDataCommand=a7(GX),pv.showAudioTrackPickerActionCommand=a7(SV),pv.showCaptionLanguageSelectActionCommand=a7($h),pv.showCreatorChatbotEngagementPanelCommand=a7(ya),pv.showDialogCommand=a7(LT),pv.showEngagementPanelEndpoint=a7(pT),pv.showFullscreenPlayerControlsCommand=
a7(Hw),pv.showSheetCommand=a7(Ey),pv.showSnackbarCommand=a7(hP),pv.showTransientPlayerScrimOverlayCommand=a7(aA),pv.submitFormWithValidationFlowCommand=a7(G5),pv.talkToRecsDeselectCommand=a7(mN),pv.talkToRecsNextCommand=a7(b4),pv.talkToRecsSelectCommand=a7(WW),pv.talkToRecsUpdateTextCommand=a7(y0),pv.toggleEngagementPanelCommand=a7(nT),pv.undoFeedbackEndpoint=a7(eV),pv.updateEngagementPanelContentCommand=a7(D1),pv.updateUrlParamCommand=a7(Ec),pv.updateVideoMetadataCommand=a7(DP),pv.verifyCommand=
a7(lf),pv.webNativeShareCommand=a7(l4),pv.webSubmitFormCommand=a7(AP),pv.ACK_PLAYABLES_3P_DATA_CONSENT=a7(N7),pv.CANCEL_NAVIGATION=a7(u4),pv.COPY_SHARE_URL=a7(zX),pv.MINI_APP_EXIT_DIALOG_SEEN=a7(TX),pv.MINI_APP_OPEN_URL=a7(PW),pv.REQUEST_MINI_APP_FULLSCREEN=a7(i4),pv.RESUME_NAVIGATION=a7(Oc),pv.SHARE_PLAYABLE_WITH_HIGH_SCORE=a7(cW),pv.TELL_US_WHY=a7(Uy),pv);_.M("web_enable_prefetching_videos_on_home")&&(E4.prefetchWatchCommand=a7(v3),E4.registerTasksCommand=a7(ef));
_.M("enable_share_panel_navigation_logging_fix_on_web")&&(E4.shareEntityServiceEndpoint=a7(y1));_.M("web_use_flow_state_manager")&&(E4.flowNextStepCommand=a7(xWd),E4.flowPrevStepCommand=a7(YV3),E4.getFlowCommand=a7(ZOc),E4.updateFlowCommand=a7(Ss));_.M("enable_ai_companion")&&(E4.updateConversationIdCommand=a7(AD),E4.formDataDecoratorCommand=a7(rr));var sVT=Object.assign({},E4);var $Gc={},Hkl=($Gc.initialized={priority:10,callback:Bu5},$Gc);var aU3={},Kyd=(aU3.initialized={callback:function(A){var t={},f={};AxT().install((t.document_disposed={callback:function(){_.M("finalize_all_timelines")?Swb():hl();n0u("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.cxx();var X=A.injector.resolve(od);X.intervalId!==void 0&&(X.intervalId&&_.a6.cancelJob(X.intervalId),X.intervalId=void 0,--X.currentPartitionIndex,X=USp(X),X>0&&I78({mainAppWeb:_.xO(),survivalSli:{partitionMinute:X,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));ywl(O_);cX!=null&&
cX.flush();rF&&rF.snapshotAndFlush();X=_.U(g9f.values());for(var Q=X.next();!Q.done;Q=X.next())Q.value.snapshotAndFlush()}},t),(f.flush_logs={callback:function(){_.$B()}},f))}},aU3);var gjc={},wxA=(gjc.rendered={priority:0,callback:function(){var A=new Uqf;A.increment("STARTED");if(_.ah("LOGGED_IN")&&!_.ah("IS_DBSC",!1)&&_.ah("SERVER_VERSION")!=="test"&&_.ah("SERVER_VERSION")!=="dev"&&!$Ww()&&!SVw()){A.increment("EXECUTING");var t=document.createElement("iframe");t.style.display="none";_.At(t,2,_.of("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.ah("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(t);A.increment("DONE")}}},
gjc);var sj3={},k7d=(sj3.rendered={callback:function(){YBd().resume()}},sj3);var re3={acknowledgeChannelTouStrikeCommand:p1(OC),addToPlaylistServiceEndpoint:p1(MY),addToPlaylistEndpoint:p1(MY),addUpcomingEventReminderEndpoint:p1(Y_),browseEndpoint:p1(hLA),channelCreationFormEndpoint:p1(lh),channelCreationServiceEndpoint:p1(Ne),claimLegacyYoutubeChannelEndpoint:p1(sc),clearSearchHistoryEndpoint:p1(EC),clearWatchHistoryEndpoint:p1(nc),commerceActionCommand:E7(oe),createBackstagePostEndpoint:p1($W),createBroadcastCommand:p1(Vo),createCommentEndpoint:p1(Jg),createCommentReplyEndpoint:p1(qe),
createLiveChatPollEndpoint:p1(ZD),createPlaylistServiceEndpoint:p1(CE),crossAccountChannelTransferEndpoint:p1(IU),deleteLiveChatMessageCommand:p1(oU),deletePlaylistEndpoint:p1(hI),deleteVideoEndpoint:p1(jZ),dismissalEndpoint:p1(cb),feedbackEndpoint:p1(Bb),flagEndpoint:p1(vj),getAccountSwitcherEndpoint:p1(Fq),verifyCommand:p1(S6),getAccountsListInnertubeEndpoint:p1(jF),getCommentsFromInboxCommand:p1(Xu),getDownloadActionCommand:p1(lW),getFlowCommand:E7(pc),getKidsBlocklistPickerCommand:p1(LE),getNotificationMenuEndpoint:p1(bAl),
getPaymentInstrumentsParamsCommand:p1(KE),getPaymentsClientTokenCommand:E7(oe),getPdgBuyFlowCommand:p1(cj),getReportFormEndpoint:p1(pE),getSearchInVideoCommand:p1(DI),getAnswerCommand:p1(nE),getSurveyCommand:p1(xZ),getTranscriptEndpoint:p1(Vm),getPostVideoPreviewEndpoint:p1(an),decorateMessageEndpoint:p1(HW),likeEndpoint:p1(uh),liveChatActionEndpoint:p1(Hb),liveChatEndpoint:p1($_),liveChatItemContextMenuEndpoint:p1(dT),liveChatPurchaseMessageEndpoint:p1(aU),liveChatReplayEndpoint:p1(SF),manageLiveChatUserEndpoint:p1(gT),
metadataUpdateCommand:p1(tI),moderateLiveChatEndpoint:p1(wT),modifyChannelNotificationPreferenceEndpoint:p1(Ub),notificationOptOutEndpoint:p1(eZ),openSuperStickerBuyFlowCommand:p1(Kc),performCommentActionEndpoint:p1(fc),playlistEditEndpoint:p1(mH),playlistEditorEndpoint:p1(Re),recordNotificationInteractionsEndpoint:p1(Gj),reelWatchEndpoint:p1(bW),refreshPanelEndpoint:p1(uW),removeUpcomingEventReminderEndpoint:p1(sC),resolveLocationCommand:p1(AI),revealBusinessEmailCommand:p1(kW),searchEndpoint:p1(_.W7j),
sendLiveChatMessageEndpoint:p1(k_),sendLiveChatVoteEndpoint:p1(rT),setSettingEndpoint:p1(zM),shareEntityServiceEndpoint:E7(ih),sharingProviderDataCommand:p1(Ie),showEngagementPanelEndpoint:p1(zj),showMoreDrawerCommand:p1(Tj),showSheetCommand:p1(iW),showDialogCommand:p1(Pj),subscribeEndpoint:p1(Pb),transcriptSubmitCaptionCorrectionCommand:p1(YZ),undoFeedbackEndpoint:p1(vb),unsubscribeEndpoint:p1(TM),updateBackstagePostEndpoint:p1(g1),updateCommentEndpoint:p1(eF),updateCommentReplyEndpoint:p1(UC),updateCommentsSettingsEndpoint:p1(GM),
updateCreatorChannelInnertubeCommand:p1(Ag),updateKidsBlacklistEndpoint:p1(Eb),updateEngagementPanelContentCommand:p1(Ob),updatePdgFeatureEnablementCommand:p1(Bj),updatedMetadataEndpoint:p1(fE),validateChannelHandleCommand:p1(tg),updateChannelPageSettingsEndpoint:p1(r1),verifyAgeEndpoint:p1(Lc),watchEndpoint:E7(V0),whitelistEditEndpoint:p1(ZI),ypcCancelRecurrenceEndpoint:p1(dj),ypcCompleteTransactionEndpoint:p1(SZ),ypcFixInstrumentEndpoint:p1(Hj),ypcGetCartEndpoint:p1($Z),ypcGetOffersEndpoint:p1(ae),
ypcHandleTransactionEndpoint:E7(gj),ypcLogWalletAnalyticDataEndpoint:p1(wj),ypcOffersEndpoint:p1(sb),ypcPauseSubscriptionCommand:p1(kZ),ypcRedeemCodeEndpoint:p1(rj),ypcResumeSubscriptionCommand:p1(Ai),ypcUpdateFopEndpoint:p1(Hj)},nv={},Aqc=(nv.GET_ACCOUNT_MENU=p1(x_),nv.GET_NOTIFICATIONS_MENU=p1(mcd),nv.GET_NOTIFICATIONS_INBOX=p1(Qm),nv.GET_UNSEEN_NOTIFICATION_COUNT=p1(JI),nv.GET_USER_MENTION_SUGGESTIONS=p1(Ki),nv.LOAD_GUIDE=p1(RLw),nv.SUBMIT_FEEDBACK=p1(Me),nv),D6={},tC8=(D6.CONTINUATION_REQUEST_TYPE_BROWSE=
p1(w1),D6.CONTINUATION_REQUEST_TYPE_SEARCH=p1(Fu),D6.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=p1(xh),D6.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=p1(DD),D6.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=p1(Qo),D6.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=p1(Xq),D6.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=p1(ym),D6.CONTINUATION_REQUEST_TYPE_GET_PANEL=p1(NY),D6),fs2={player:E7(V0),watchNext:p1(IA)},XDd={player:E7(V0),reelItemWatch:p1(bW),reelWatchSequence:p1(Wj)},Q63={watchEndpoint:E7(ZP)},qJm=
{commandEndpointMap:re3,signalEndpointMap:Aqc,continuationEndpointMap:tC8,watchEndpointMap:fs2,reelWatchEndpointMap:XDd,streamingEndpointMap:Q63};var JqA,Uq_,eGy;_.Gmh=((Uq_=(JqA=window).matchMedia)==null?void 0:(eGy=Uq_.call(JqA,"(prefers-reduced-motion: reduce)"))==null?void 0:eGy.matches)||!document.startViewTransition;var lsw={},NbQ={disableAllTransitions:_.Gmh,ignoredErrors:(lsw.DOCUMENT_HIDDEN=!0,lsw.WINDOW_SIZE_CHANGED=!0,lsw.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,lsw),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var uih=_.dS("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),Pnc=function(A){var t=this;this.viewTransitionCoordinator=
A;this.disableTransitionsForUltraHigh=_.M("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=zGA();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.Bx("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.M("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.M("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.M("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.Bx("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.M("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.a6.addJob(function(){t.registerRootElement();if(t.isAnyTransitionEnabled){var f=
_.cx("web_page_transition_exit_ms"),X=_.cx("web_page_transition_wait_ms"),Q=_.cx("web_page_transition_enter_fast_ms"),q=_.cx("web_page_transition_watch_exit_ms"),e=_.cx("web_page_transition_watch_wait_ms"),G=_.cx("web_page_transition_watch_enter_ms"),N=_.cx("web_page_transition_watch_next_exit_ms"),z=_.cx("web_page_transition_watch_next_wait_ms"),T=_.cx("web_page_transition_watch_next_enter_fast_ms"),O=_.cx("web_page_transition_enter_ms"),c=_.cx("web_page_transition_watch_next_enter_ms");t.enableFasterTransitions&&
t.isUltraHighBucketDevice&&(O=Q,c=T);isNaN(f)&&isNaN(X)&&isNaN(O)&&isNaN(q)&&isNaN(e)&&isNaN(G)&&isNaN(N)&&isNaN(z)&&isNaN(c)||!(f=jkb(uih,f,X,O,q,e,G,N,z,c))||(X=document.createElement("style"),X.textContent=OOg(f),document.head.appendChild(X))}},8)},zGA=function(){var A=_.Xb.navigator.deviceMemory;
return A>=8||A===void 0?!0:!1};
Pnc.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var A={};this.viewTransitionCoordinator.registerElement(document.documentElement,(A.slide="root-slide",A["lockup-to-watch"]="root-lockup-to-watch",A["learning-journey"]="root-learning-journey",A))}};
_.HMS=function(A,t){A.isLockupToWatchTransitionEnabled&&A.isLockupThumbnailRegistrationEnabled&&(A.registeredLockupThumbnail?A.lockupThumbnailRegisteredFromWatchEndpoint?_.K4(new _.xj("Lockup thumbnail registration order is incorrect.")):_.K4(new _.xj("Lockup thumbnail already registered.")):(A.registeredLockupThumbnail=t,_.Tbd(A,t)))};
_.Tbd=function(A,t){var f={};A.viewTransitionCoordinator.registerElement(t,(f["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",f),!0)};
Pnc[T7]=[X58];var Myu={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 hCu=["videoPrimaryInfoRenderer","title"],RCT=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var iUw;iUw=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.OU8=_.I(function(A){A=_.Sv(A,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var t=A.data,f=A.playlistData,X=A.expanded,Q=A.onExpandClick,q=A.isReadyToResume,e=function(){var T;return!((T=f())==null||!T.contents)},G=function(){var T=f();
return T&&T.totalVideos&&T.currentIndex!==void 0?T.currentIndex+1+" / "+T.totalVideos:""};
A=_.f1(function(){_.FP(_.Px().resolve(_.DS));return!1});
var N=_.f1(function(){e()&&Q&&Q()}),z={};
return _.u("ytd-miniplayer-info-bar",{class:_.Ao("ytdMiniplayerInfoBarHost",(z.ytdMiniplayerInfoBarHasPlaylistData=e,z)),"on:click":N},_.u("div",{class:"ytdMiniplayerInfoBarContent"},_.u("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":A},_.u(_.zL,{text:function(){var T=t();var O=f();if(O==null?0:O.contents){var c;T=(c=_.sdb(O))==null?void 0:c.title}else T=T==null?void 0:T.miniplayerTitle;return mZz(T)},
noEndpoints:!0,ellipsisTruncate:!0})),_.u("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.u(_.P,{cond:q,then:function(){return _.u(RBk,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:iUw})}}),_.u("h1",null,_.u(_.zL,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var T=t();var O=f();T=q()?{simpleText:_.e5("CONTINUE_WATCHING",void 0,"Continue watching")}:(O==null?0:O.contents)?O.titleText:T==null?void 0:T.miniplayerSubtitle;return mZz(T)},
noEndpoints:!0,ellipsisTruncate:!0})),_.u(_.P,{cond:function(){return!!G()&&!q()},
then:function(){return _.u("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.u("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.u("span",null,G))}}))),_.u(_.P,{cond:e,
then:function(){return _.u("div",{class:"ytdMiniplayerInfoBarExpand"},_.u(_.Lx,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(T){Q&&(Q(),T.stopPropagation())}}},
iconName:function(){return X()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"yg");var cqy;cqy=_.I(function(A){return _.u("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.u(_.Lx,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:A.onTap}},
iconName:"yt-icons:close"}))},"zg");
_.Bb8=_.I(function(A){A=_.Sv(A,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var t=A.size,f=A.playabilityStatus,X=A.isDisabled,Q=A.isPictureInPicture,q=_.GU("div");A=_.U(_.hZ(void 0,void 0,"w4RAU"));var e=A.next().value,G=A.next().value;A=_.um(_.ku);var N=!1,z=function(){return t().height<=0};
_.oo(function(){var B=t(),h=z(),W=e();W&&!h&&W.setInternalSize(B.width,B.height)},"BHFc2b");
_.Zk(function(){var B,h,W;return _.l(function(L){if(L.nextAddress==1){B=_.Px().resolve(_.DS);h=B.getPlayerElement();if(!B.isMiniplayerActive()||!h||!q.value)return L.return();h.appendTo(q.value);return L.yield(h.getPlayerPromise(),2)}W=L.yieldResult;Q()||W.setSizeStyle(!1,!0);G(W);_.LO(L)})});
_.dD(function(){T()});
_.oo(function(){var B=e();if(B)if(X()){var h=B.getPlayerState();(N=h===-1||h===1||h===3)&&B.pauseVideo()}else T()},"Invykd");
var T=function(){if(N){N=!1;var B;(B=e())==null||B.playVideo()}},O=_.f1(function(){_.FP(_.Px().resolve(_.DS))}),c={};
return _.u("ytd-miniplayer-player-container",{class:_.Ao("ytdMiniplayerPlayerContainerHost",(c.ytdMiniplayerPlayerContainerHidden=z,c.ytdMiniplayerPlayerContainerHostShortsPip=A,c)),style:_.U7({width:function(){return t().width+"px"},
height:function(){return t().height+"px"}})},_.u("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:q}),_.u(_.P,{cond:function(){return!!f()&&!_.SGx(f())},
then:function(){return _.u(sfm,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var B;return((B=f())==null?void 0:B.errorScreen)||null},
status:function(){var B;return((B=f())==null?void 0:B.status)||null}})}}),_.u(_.P,{cond:X,
then:function(){return _.u("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":O},_.u(cqy,{onTap:function(){_.Px().resolve(_.DS).close()}}))}}))},"Dg");_.MCQ=_.I(function(A){var t=A.toastData;var f=_.GU("ytd-miniplayer-toast");A=_.U(_.Jo(function(){return!!t()}));
var X=A.next().value,Q=A.next().value;A=_.U(_.hZ(!1,void 0,"BvfNQe"));var q=A.next().value,e=A.next().value,G=function(){var T;return _.dF((T=t())==null?void 0:T.data.title)};
_.oh(function(){_.q2.requestAvailability();t()&&Q(!1)});
var N,z;_.oo(function(){X()&&(_.s9(f.value,"iron-announce",{text:t().label+" "+G()}),N&&_.a6.cancelJob(N),N=_.a6.addLowPriorityJob(function(){e(!0)},2500))},"no1dZb");
_.oo(function(){q()&&(z&&_.a6.cancelJob(z),z=_.a6.addLowPriorityJob(function(){Q(!1);e(!1)},300))},"G3yPNe");
A={};return _.u("ytd-miniplayer-toast",{el:f,class:_.Ao("ytdMiniplayerToastHost",(A.ytdMiniplayerToastOpening=function(){return X()},A.ytdMiniplayerToastClosing=function(){return q()},A))},_.u(_.P,{cond:function(){var T;
return(T=t())==null?void 0:T.data},
then:function(T){return _.u(nLf,{className:"ytdMiniplayerToastThumbnail",data:T,width:78})}}),_.u("div",{class:"ytdMiniplayerToastInfo"},_.u("div",{class:"ytdMiniplayerToastLabel"},function(){var T;
return(T=t())==null?void 0:T.label}),_.u("div",{class:"ytdMiniplayerToastTitle"},G)))},"Gg");var Fpb;var jT5=null;var hG2=_.I(function(A){var t=A.progressState;var f=A.multiMarkersPlayerBarRenderer;var X=A.progressBarWidth;var Q=function(){return o25(f())},q=function(){return $Zx(t())},e=function(){return X()*(t().playedTime/t().videoDuration)};
return _.u("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.u(_.xk,{each:Q},function(G,N){return _.u(Cnd,{modifiedProps:q,chapters:Q,index:N,playedProgressWidth:e,backgroundGradientPosition:function(){var z=q(),T=Q(),O=N(),c=e();return(z.playedTime-ns(_.C(T[O],Eu)))/z.playedTime*c}})}))},"Hg"),Cnd=_.I(function(A){var t=A.modifiedProps;
var f=A.chapters;var X=A.index;var Q=A.playedProgressWidth;var q=A.backgroundGradientPosition;A={};A=_.Ao("ytChapteredProgressBarChapteredPlayerBarChapter",(A.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return e().isScrubbing},A.ytChapteredProgressBarHoveredMacroMarker=function(){return e().scrubberHovering},A.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return e().videoPosition==="seen"},A));
var e=function(){return Hzb(t(),f(),X())},G=function(){var N=t();
var z=f(),T=X();if(Hzb(N,z,T).videoPosition!=="active")N=0;else{var O=ns(_.C(z[T],Eu));N=(N.playedTime-O)/((ns(_.C(z[T+1],Eu))||N.videoDuration)-O)}return N};
return _.u("div",{class:A,style:_.U7({width:function(){var N=t(),z=f(),T=X(),O=_.C(z[T],Eu);z=_.C(z[T+1],Eu);return(z?ns(z)-ns(O):N.videoDuration-ns(O))/N.videoDuration*100+"%"},
"background-color":function(){a:{var N=e();switch(N.videoPosition){case "pending":N=N.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":N=N.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:N=""}}return N},
"background-size":function(){return(a8q(e())?Q():"")+"px"},
"background-position-x":function(){return(a8q(e())?q():"")+"px"}})},_.u("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var N=t(),z=f(),T=X();if(Hzb(N,z,T).videoPosition==="seen")var O=0;else O=ns(_.C(z[T],Eu)),z=ns(_.C(z[T+1],Eu))||N.videoDuration,N=N.videoDuration*N.percentLoaded,O=z<=N?1:O>=N?0:(N-O)/(z-O);return"width: "+O*100+"%"}}),_.u("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.U7({width:function(){return G()*100+"%"},
"background-size":function(){return(a8q(e(),G())?Q():"")+"px"},
"background-position-x":function(){return(a8q(e(),G())?q():"")+"px"}})}))},"Ig");var RGj=function(A,t){t=t===void 0?ZsE:t;var f,X=[],Q,q=!1;return function(){var e=_.Hu.apply(0,arguments);if(q&&f===this&&t(e,X))return Q;Q=A.apply(this,e);q=!0;f=this;X=e;return Q}}(function(A){var t=A.heatMarkers,f=A.minHeightDp===void 0?0:A.minHeightDp,X=A.maxHeightDp===void 0?60:A.maxHeightDp;
var Q=Q===void 0?!1:Q;var q=1E3/t.length;A=[];A.push({x:0,y:100});for(var e=0;e<t.length;e++){var G=void 0,N=((G=_.C(t[e],ai7))==null?void 0:G.heatMarkerIntensityScoreNormalized)||0;G=(e+.5)*q;N=100-_.ps(N*100,f/321*100,X/321*100);e!==0||Q||A.push({x:0,y:N});A.push({x:G,y:N});e===t.length-1&&A.push({x:1E3,y:N})}A.push({x:1E3,y:100});t="";for(f=0;f<A.length;f++)Q=A[f],f===0?Q="M "+Q.x.toFixed(1)+","+Q.y.toFixed(1):(X=oeg(A[f-1],A[f-2],Q),q=oeg(Q,A[f-1],A[f+1],!0),Q=" C "+(X.x.toFixed(1)+","+X.y.toFixed(1)+
" "+q.x.toFixed(1)+","+q.y.toFixed(1)+" "+Q.x.toFixed(1)+","+Q.y.toFixed(1))),t+=Q;return t});var mqm=_.I(function(A){var t=A.progressBarProps;var f=A.config;var X={};A=_.Ao("ytHeatSeekerHost",(X.ytHeatSeekerHighContrast=A.highContrast,X));var Q=function(){return Lp5(f().chapterData)};
return _.u("yt-progress-bar-heatseeker",{class:A,style:function(){var q;return"height: 320px; display: "+(t().isDragging&&((q=Q())==null?0:q.heatMarkers)?"block":"none")}},_.u(_.P,{cond:Q,
then:function(q){return _.u(_.P,{cond:function(){return q().heatMarkers},
then:function(){return _.u("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.u("path",{d:function(){return RGj(q())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Jg");var bUj=_.I(function(A){var t=A.progressBarProps;var f=A.config;A={};A=_.Ao("ytProgressBarLineProgressBarLine",(A.ytProgressBarLineProgressBarLineRounded=function(){return f().rounded},A.ytProgressBarLineProgressBarLineBottomInset=function(){return f().position===2},A));
return _.u("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.u("div",{class:A},_.u("div",{class:"ytProgressBarLineProgressBarBackground"}),_.u("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+t().percentLoaded*100+"%"}}),_.u("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var X=t();return"width: "+(X.videoDuration?_.ps(X.hoveredTime/X.videoDuration,0,1):0)*100+"%"}}),_.u("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Wpu(t())*100+"%"}})))},"Kg");
bUj.idomCompat=!0;var WZ3=_.I(function(A){var t=A.progressBarProps;var f=A.playheadData;var X=A.interpolateDotPosition;var Q=A.hidePlayhead;A={};var q=_.Ao("ytProgressBarPlayheadProgressBarPlayheadDot",(A.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return t().isDragging},A.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!t().isDragging&&Q()},A));
return _.u("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.U7({"margin-left":function(){return y3s(t())*100+"%"},
transform:function(){return"translateX(-"+(X()?y3s(t())*12:6)+"px)"}})},_.u(_.P,{cond:function(){var e;
return(e=_.dR(f)())==null?void 0:e.playheadImage},
then:function(e){var G={};return _.u("div",{class:_.Ao("ytProgressBarPlayheadProgressBarPlayheadCustom",(G.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return t().isDragging},G.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!t().isDragging&&Q()},G)),
style:_.U7({"transform-origin":function(){return(X()?y3s(t())*20:10)+"px center"}})},_.u(_.YA,{data:e,
alt:"","aria-hidden":"true"}))},
else:function(){return _.u("div",{class:q,style:_.U7({"transform-origin":function(){return(X()?y3s(t())*12:6)+"px center"}})})}}))},"Lg");
WZ3.idomCompat=!0;var II=function(A,t,f,X,Q,q){this.getProgressBarRect=A;this.updateProgressBarRect=t;this.getFilmstripYPosition=f;this.setFineScrubbingDraggedTime=X;this.updateFilmStripDraggedYDistance=Q;this.resetFilmStripYOffset=q;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.qI(this.onThrottledSeek,100,this)},yqc=function(A,t,f){return function(X){A.handleClick(X,t(),f())}},pDh=function(A,t){return function(f){vtl(A,
f,LZQ(f),t())}},Eth=function(A,t){return function(f){vtl(A,f,{x:f.clientX,
y:f.clientY},t())}},Dql=function(A,t,f){return function(X){var Q=t(),q=f();
ntm(A,X,LZQ(X),Q,q,!0);if(q.onTouchMove)q.onTouchMove(Q)}},Isd=function(A,t,f){return function(X){FZc(A,X,t(),f())}},xq_=function(A,t){return function(){A.handleMouseLeave(t())}},j6y=function(A,t,f){return function(){var X=t(),Q=f();
xS(A,X,Q);if(Q.onTouchEnd)Q.onTouchEnd(X)}},YJQ=function(A,t,f){return function(){var X=t(),Q=f();
xS(A,X,Q);if(Q.onTouchEnd)Q.onTouchEnd(X)}},VCm=function(A,t,f){return function(){xS(A,t(),f())}},ZUd=function(A){return function(t){if(t.keyCode===39||t.keyCode===38){var f,X;
(f=A())==null||(X=f.playerApi)==null||X.seekBy(5,void 0,void 0,72)}else if(t.keyCode===37||t.keyCode===40){var Q,q;(Q=A())==null||(q=Q.playerApi)==null||q.seekBy(-5,void 0,void 0,71)}}},otw=function(A,t,f){return function(X){!f().disableScrubbing&&A.startPosition&&FZc(A,X,t(),f())}},dqw=function(A,t,f){return function(){if(!f().disableScrubbing)if(A.startPosition){var X=t(),Q=f();
xS(A,t(),f());if(Q.onTouchEnd)Q.onTouchEnd(X)}else t().setState({isDragging:!1})}},LZQ=function(A){A=A.touches[0];
return{x:A.clientX,y:A.clientY}},FZc=function(A,t,f,X){if(t.buttons!==1){if(t.movementX||t.movementY)t.preventDefault(),t.stopPropagation(),A=SJA(A,f,t.clientX),f.setState({isHovering:!0,
hoveredTime:A*f.videoDuration})}else $qj(f),ntm(A,t,{x:t.clientX,y:t.clientY},f,X,!1)};
II.prototype.handleMouseLeave=function(A){$qj(A)};
var $qj=function(A){A.isHovering&&A.setState({isHovering:!1,hoveredTime:0})},vtl=function(A,t,f,X){A.startPosition||(A.startPosition=f,A.updateProgressBarRect(),A.controlsWereVisibleBeforeDragging=X.controlsVisible,t.stopPropagation(),_.M("medium_progress_bar_modification")||t.preventDefault())},ntm=function(A,t,f,X,Q,q){if(A.startPosition)if(q&&Q.isInlinePlayback&&A.startPosition&&!A.hasDraggedTheMinimumDistance&&Math.abs(f.y-A.startPosition.y)>Math.abs(f.x-A.startPosition.x))xS(A,X,Q);
else if(t.preventDefault(),t.stopPropagation(),X.videoDuration&&(A.startPosition&&!A.hasDraggedTheMinimumDistance&&(A.hasDraggedTheMinimumDistance=Math.abs(f.x-A.startPosition.x)>=1),Q.enableFineScrubbing&&(A.startPosition&&(A.isDraggedForFineScrubbing=-(f.y-A.startPosition.y)>=60),!A.startPosition||f.y>=A.startPosition.y||(X.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Kpb(X.draggedTime,X,Q.chapterData)}),A.setFineScrubbingDraggedTime(X.draggedTime),A.updateFilmStripDraggedYDistance(A.startPosition.y,
f.y,X))),A.hasDraggedTheMinimumDistance)){t=SJA(A,X,f.x);if(A.isDraggedForFineScrubbing){var e;(e=X.playerApi)==null||e.pauseVideo();X.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:X.draggedTime,filmStripXDistance:Kpb(t*X.videoDuration,X,Q.chapterData)})}Q.enableFineScrubbing&&(!Q.enableFineScrubbing||A.getFilmstripYPosition(X)<68)||X.setState({draggedTime:t*X.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:A.controlsWereVisibleBeforeDragging});var G;(G=
Q.cancelAutohideControlsFn)==null||G.call(Q)}},xS=function(A,t,f){var X=f.enableFineScrubbing&&t.fineScrubbingActiveState!=="off";
if(t.isDragging||X){X={isDragging:!1,playedTime:t.draggedTime,controlsVisible:A.controlsWereVisibleBeforeDragging};f.enableFineScrubbing&&t.fineScrubbingActiveState!=="on"&&(A.resetFilmStripYOffset(),X.fineScrubbingActiveState="off");var Q=Q===void 0?jT5:Q;var q=_.Ws(0);if(q&&Q){var e=Math.round(t.playedTime*1E3),G=Math.round(t.draggedTime*1E3);e>2147483647||G>2147483647||_.d0(q,Q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(e),endMediaTimeMs:String(G),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}t.setState(X);
A.seekThrottle.fire(t.draggedTime,t,7);_.M("mweb_new_progress_bar_play_on_seek")&&A.resumeVideo(t);f.unmuteOnSeek&&(f=t.playerApi,t.volumeMuted&&(f==null||f.unMute()))}else t.setState({controlsVisible:!t.controlsVisible}),(q=f.triggerAutohideControlsAfterDelayFn)==null||q.call(f);A.startPosition=null;A.hasDraggedTheMinimumDistance=!1;A.isDraggedForFineScrubbing=!1;A.controlsWereVisibleBeforeDragging=!1};
II.prototype.handleClick=function(A,t,f){this.updateProgressBarRect();A.stopPropagation();A=SJA(this,t,A.clientX)*t.videoDuration;t.setState({playedTime:A});if(t.playerState!==2){var X;(X=f.triggerAutohideControlsAfterDelayFn)==null||X.call(f)}this.seekThrottle.fire(A,t,7)};
var SJA=function(A,t,f){A=A.getProgressBarRect(t);return _.ps(0,(f-A.left)/A.width,1)};
II.prototype.resumeVideo=function(A){if(A.draggedTime<A.videoDuration){var t;(t=A.playerApi)==null||t.playVideo()}};
II.prototype.onThrottledSeek=function(A,t,f){if(t=t.playerApi){var X;if((X=t.getVideoData())==null?0:X.isLive)X=this.getProgressState(t),A+=(X==null?void 0:X.seekableStart)||0;t.seekTo(A,void 0,void 0,void 0,f)}};
II.prototype.getProgressState=function(A){var t=A==null?void 0:A.getPresentingPlayerType();return A==null?void 0:A.getProgressState(t)};var KZ2,asA,gth,s6m,HU_,kmh,rqA,AO3,tY_;KZ2=_.I(function(A){var t=A.progressBarProps;var f=A.config;var X=A.progressBarWidthPx;var Q=A.chapterData;var q=r3p(t,function(){return f().isShortsPage}),e=function(){return!t().isHovering&&!f().isShortsPage};
A={};var G=_.Ao("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(A.ytPlayerStoryboardHostMwebShorts=function(){return f().isShortsPage&&!1},A));
return _.u("yt-player-storyboard",null,_.u(_.P,{cond:function(){return t().isDragging||t().isHovering},
then:function(){return _.u(_.P,{cond:q,then:function(N){return _.u(_.P,{cond:e,then:function(){return _.u("div",{class:G,"aria-hidden":"true"},_.u(HU_,{props:t,config:f,isBigboard:!0,chapterData:Q}))},
else:function(){return _.u(asA,{props:t,frame:N,config:f,progressBarWidthPx:X,chapterData:Q})}})}})}}))},"Mg");
_.wDd=_.I(function(A){var t=A.progressBarProps;var f=r3p(t,A.isShortsPage);return _.u("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.u(_.P,{cond:function(){return t().isDragging||t().isHovering},
then:function(){return _.u(_.P,{cond:f,then:function(X){return _.u(gth,{frame:X,props:t,isBigboard:!0})}})}}))},"Ng");
asA=_.I(function(A){var t=A.props;var f=A.frame;var X=A.config;var Q=A.progressBarWidthPx;A=A.chapterData;var q={};q=_.Ao("ytPlayerStoryboardHost",(q.ytPlayerStoryboardHostMwebShorts=function(){return X().isShortsPage&&!1},q.ytPlayerStoryboardHostInlinePlayer=function(){return X().isInlinePlayer},q.ytPlayerStoryboardHostFadeIn=function(){return X().useFadeInAnimation},q));
return _.u("div",{class:q,"aria-hidden":"true",style:function(){var e=t(),G=g25(f()),N=Q();e=wPx(e)/e.videoDuration;var z=N*e,T=G/2+6;G=N-(G/2+6);return"left: "+(z<=T?T/N*100:z>=G?G/N*100:e*100)+"%"}},_.u(_.P,{cond:function(){var e=t();
return!(X().isShortsPage&&e.videoDuration<15)},
then:function(){return _.u(gth,{frame:f,props:t,isBigboard:!1})}}),_.u(HU_,{props:t,
config:X,isBigboard:!1,chapterData:A}))},"Og");
gth=_.I(function(A){var t=A.frame;var f=A.props;var X=A.isBigboard;var Q=function(){var G,N;return(N=(G=f().playerApi)==null?void 0:G.getVideoContentRect())!=null?N:{width:0,height:0}},q=function(){return g25(t())},e=function(){var G=t();
return G?G.height/G.rows:0};
A={};A=_.Ao((A.ytPlayerStoryboardBigboardImageWrapper=X,A.ytPlayerStoryboardStoryboardImageWrapper=function(){return!X()},A));
return _.u("div",{class:A,style:function(){return"width: "+(X()?Q().width:q())+"px; height: "+(X()?Q().height:e())+"px;"}},_.u(s6m,{frame:t,
storyboardWidth:q,storyboardHeight:e,storyboardScale:function(){return(X()?Q().width:q())/q()}}))},"Pg");
s6m=_.I(function(A){var t=A.frame;var f=A.storyboardWidth;var X=A.storyboardHeight;var Q=A.storyboardScale;var q=function(){var e=t().row,G=t().column,N=f(),z=X(),T=Q();return{left:-G*N*T,top:-e*z*T}};
return _.u("img",{src:function(){return t().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+q().left+"px; top: "+q().top+"px; width: "+t().width*Q()+"px; height: "+t().height*Q()+"px;"}})},"Qg");
HU_=_.I(function(A){var t=A.props;var f=A.config;var X=A.isBigboard;var Q=A.chapterData;A={};A=_.Ao("ytPlayerStoryboardMetadata",(A.ytPlayerStoryboardMetadataBigboard=X,A));return _.u("div",{class:A},_.u(_.P,{cond:X,then:function(){return _.u(_.Tw,null,_.u(kmh,{props:t,config:f}),_.u(_.P,{cond:function(){a:{var q=t();var e=f(),G=Q(),N;if((e==null?0:e.activeChapter)&&((N=_.C(e==null?void 0:e.activeChapter,Eu))==null?0:N.title))q=!0;else{e=_.U(pP5(G));for(e=e.next();!e.done;e=e.next()){q=(e=_.C(e.value,
gPK))&&sTz(q,e);break a}q=!1}}return q},
then:function(){return _.u(rqA,{props:t,config:f,isBigboard:!0,chapterData:Q})}}))},
else:function(){return _.u(_.Tw,null,_.u(rqA,{props:t,config:f,isBigboard:!0,chapterData:Q}),_.u(kmh,{props:t,config:f}))}}))},"Rg");
kmh=_.I(function(A){var t=A.props;var f=A.config;A={};A=_.Ao("ytPlayerStoryboardTimestamp",(A.ytPlayerStoryboardTimestampShorts=function(){return f().isShortsPage},A.ytPlayerStoryboardTimestampIsHovering=function(){return t().isHovering||f().isShortsPage&&!0},A));
return _.u("div",{class:A},_.u(_.Tw,null,function(){return _.k1b(wPx(t()))}))},"Sg");
rqA=_.I(function(A){var t=A.props;var f=A.config;var X=A.isBigboard;var Q=A.chapterData;A={};X=_.Ao("ytPlayerStoryboardTitle",(A.ytPlayerStoryboardTitleBigboard=X,A));return _.u("div",{class:X},_.u(_.P,{cond:function(){return!f().isShortsPage},
then:function(){return _.u(AO3,{props:t,activeChapter:function(){return f().activeChapter},
chapterData:Q})}}))},"Tg");
AO3=_.I(function(A){var t=A.props;var f=A.activeChapter;var X=A.chapterData;return _.u(_.Tw,null,_.u(_.xk,{each:function(){return pP5(X())},
keyBy:"INDEX"},function(Q){return _.u(_.Tw,null,_.u(_.P,{cond:function(){return _.C(Q(),gPK)&&sTz(t(),_.C(Q(),gPK))},
then:function(){return _.u(tY_,{timedMarker:function(){return _.C(Q(),gPK)}})}}))}),_.u(_.P,{cond:function(){var Q;
return f()&&((Q=_.C(f(),Eu))==null?void 0:Q.title)},
then:function(Q){return _.u(_.zL,{text:Q,noPreWrap:!0})}}))},"Ug");
tY_=_.I(function(A){var t=A.timedMarker;return _.u(_.Tw,null,_.u("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.u(_.el,{icon:function(){return t().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.u(_.zL,{text:function(){return t().label},
noPreWrap:!0}))},"Vg");_.f32=_.I(function(A){var t=A.progressBarProps;var f=A.playheadData;var X=A.config;A=_.GU("yt-progress-bar");var Q=_.GU("div"),q=_.GU("div"),e=_.U(_.hZ({width:0,left:0},void 0,"WloVn")),G=e.next().value,N=e.next().value,z=function(){q.value&&N(q.value.getBoundingClientRect())},T=function(){G().width<=0&&z();
return G()};
_.TU("resize",z);var O=new II(T,function(){},function(){return 0},function(){},function(){},function(){}),c=function(){return t()};
e=_.U(_.hZ(!1,void 0,"u8BZZb"));var B=e.next().value,h=e.next().value;e=_.f1(function(){h(!0);X().position===2?setTimeout(function(){z()},100):z()});
var W=_.f1(function(){h(!1);xq_(O,c)()}),L=_.f1(function(xq){X().doSeekOnClick&&yqc(O,c,X)(xq);
return!1}),E=_.f1(function(xq){pDh(O,c)(xq);
return!1}),D=_.f1(function(xq){Eth(O,c)(xq);
return!1}),S=_.f1(function(xq){Dql(O,c,X)(xq);
return!1}),Z=_.f1(function(xq){Isd(O,c,X)(xq);
return!1}),d=_.f1(function(){j6y(O,c,X)();
return!1}),K=_.f1(function(){YJQ(O,c,X)();
return!1}),k=_.f1(function(){VCm(O,c,X)();
return!1}),Gz=_.f1(function(xq){ZUd(c)(xq);
return!1});
_.TU("mousemove",otw(O,c,X));_.TU("mouseup",dqw(O,c,X));_.oh(function(){Yfb(Q.value);h(!1);z();dqw(O,c,X)()});
var Tz={};Tz=_.Ao("ytPlayerProgressBarHost",function(){return X().className},(Tz.ytPlayerProgressBarHostReadOnly=function(){return X().disableScrubbing},Tz.ytPlayerProgressBarHostHidden=function(){return X().hideProgressBar&&!B()},Tz.ytPlayerProgressBarHostLowerPlayer=function(){return X().position===0},Tz.ytPlayerProgressBarHostBottomEdge=function(){return X().position===1},Tz.ytPlayerProgressBarHostBottomInset=function(){return X().position===2},Tz.ytPlayerProgressBarHostCustom=function(){return X().position===
3},Tz));
var y5={},cp=_.Ao("ytPlayerProgressBarBackground",(y5.ytPlayerProgressBarBackgroundHide=function(){return X().position===2&&!B()&&!t().isDragging},y5));
y5={};y5=_.Ao("ytPlayerProgressBarDragContainer",(y5.ytPlayerProgressBarDragContainerBottomEdge=function(){return X().position===1},y5));
var iu={};iu=_.Ao("ytPlayerProgressBarProgressBar",(iu.ytPlayerProgressBarProgressBarInset=function(){return X().position===2},iu.ytPlayerProgressBarProgressBarInsetMinimized=function(){return X().position===2&&!B()&&!t().isDragging},iu));
var Fb=function(){return Math.floor(Wpu(t())*100)};
return _.u("yt-progress-bar",{el:A,class:Tz},_.u(_.P,{cond:function(){return X().position===2},
then:function(){return _.u("div",{class:cp})}}),_.u("div",{el:Q,
"on:click":L,"on:touchstart":E,"on:touchmove":S,"on:mouseenter":e,"on:mousedown":D,"on:mouseleave":W,"on:mousemove":Z,"on:mouseup":K,"on:touchend":d,"on:touchcancel":k,"on:keydown":Gz,class:y5,role:"slider","aria-valuenow":Fb,"aria-valuetext":function(){return Fb()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return t().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.e5("SEEK_SLIDER")},_.u("div",{el:q,class:iu},_.u(mqm,{progressBarProps:t,config:X,highContrast:function(){return!!X().isInlinePlayback}}),_.u(_.P,{cond:function(){return X().chapterData&&E2T(X().chapterData)},
then:function(){return _.u(hG2,{progressState:t,multiMarkersPlayerBarRenderer:function(){return X().chapterData},
progressBarWidth:function(){return G().width}})},
else:function(){return _.u(bUj,{progressBarProps:t,config:X})}}),_.u(WZ3,{progressBarProps:t,
playheadData:f,interpolateDotPosition:function(){return X().position!==2},
hidePlayhead:function(){return X().playheadDotBehavior===1&&!B()}}))),_.u(KZ2,{progressBarProps:t,
config:function(){return{activeChapter:Sf5(t(),X().chapterData),getProgressBarWidthPx:function(){return T().width},
isShortsPage:!!X().isShortsPage,isInlinePlayer:!!X().isInlinePlayback,useFadeInAnimation:!!X().isInlinePlayback}},
progressBarWidthPx:function(){return G().width},
chapterData:function(){return X().chapterData}}))},"Wg");
_.f32.idomCompat=!0;Object.assign({},_.n2x(),{setState:function(){},
domMeasurements:{},appApi:_.bzg(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var XQy;
_.Qim=_.I(function(){var A,t=(A=_.AQb(tpz().playerApi))!=null?A:void 0;A=_.U(_.hZ(!1,void 0,"Z9NQ1b"));var f=A.next().value,X=A.next().value;A=_.U(_.hZ(!1,void 0,"HoVJXe"));var Q=A.next().value,q=A.next().value;A=_.U(_.hZ(!1,void 0,"DWCY3"));var e=A.next().value,G=A.next().value;A=_.U(_.hZ(!1,void 0,"g4C2Zd"));var N=A.next().value,z=A.next().value;A=_.U(_.hZ(0,void 0,"lmVfFb"));var T=A.next().value,O=A.next().value;A=_.U(_.hZ(0,void 0,"mFLbzb"));var c=A.next().value,B=A.next().value;A=_.U(_.hZ(!1,void 0,
"hQN4Wb"));var h=A.next().value,W=A.next().value;A=_.U(_.hZ(0,void 0,"WWU0fb"));var L=A.next().value,E=A.next().value;A=_.U(_.hZ(0,void 0,"MJ7LMd"));var D=A.next().value,S=A.next().value;A=_.U(_.hZ("",void 0,"hnomOe"));var Z=A.next().value,d=A.next().value;A=_.U(_.hZ(-1,void 0,"ARe3pf"));var K=A.next().value,k=A.next().value,Gz=_.yq(function(){var Tz={controlsVisible:f(),isOverlayHidden:Q(),shouldWaitToHideControls:e(),isDragging:N(),isHovering:h(),videoDuration:L(),playedTime:D(),videoId:Z(),draggedTime:c(),
hoveredTime:T(),playerState:K()};return Object.assign({},_.n2x(),Tz,{domMeasurements:{},setState:function(y5){y5.controlsVisible!==void 0&&X(y5.controlsVisible);y5.isOverlayHidden!==void 0&&q(y5.isOverlayHidden);y5.shouldWaitToHideControls!==void 0&&G(y5.shouldWaitToHideControls);y5.isDragging!==void 0&&z(y5.isDragging);y5.isHovering!==void 0&&W(y5.isHovering);y5.draggedTime!==void 0&&B(y5.draggedTime);y5.hoveredTime!==void 0&&O(y5.hoveredTime);y5.videoDuration!==void 0&&E(y5.videoDuration);y5.playedTime!==
void 0&&S(y5.playedTime);y5.videoId!==void 0&&d(y5.videoId);y5.playerState!==void 0&&k(y5.playerState)},
appApi:_.bzg(),playerApi:t})},void 0,"Au4PIf");
_.Zk(function(){t==null||t.addEventListener("onVideoProgress",xZ5(Gz));t==null||t.addEventListener("onVideoDataChange",I85(Gz));t==null||t.addEventListener("onStateChange",DZ0(Gz))});
_.dD(function(){if(t==null?0:t.isReady())t==null||t.removeEventListener("onVideoProgress",xZ5(Gz)),t==null||t.removeEventListener("onVideoDataChange",I85(Gz)),t==null||t.removeEventListener("onStateChange",DZ0(Gz))});
return _.u("desktop-shorts-player-controls",null,_.u(XQy,{playerControlsProps:Gz}))},"Yg");
XQy=_.I(function(A){var t=A.playerControlsProps;return _.u("div",{class:"desktopShortsPlayerControlsHost"},_.u(_.f32,{progressBarProps:t,config:function(){return{isShortsPage:!0,hideProgressBar:t().videoDuration<30&&t().playerState!==2&&!t().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Zg");_.qvl=_.I(function(A){function t(Tz){Tz!==0||O()?Tz>50&&(O()||!B())?(c(!1),h(!0)):Tz<=50&&(O()||B())&&(c(!1),h(!1)):c(!0)}
function f(Tz,y5){var cp;return _.l(function(iu){if(iu.nextAddress==1)return iu.yield(_.Q9(),2);cp=iu.yieldResult;y5&&cp?(cp.unMute(!0),Tz&&(XJb(Tz,cp.getVolume()),L(cp.getVolume()))):cp&&(cp.mute(!0),Tz&&XJb(Tz,0));_.LO(iu)})}
function X(Tz){var y5,cp;return _.l(function(iu){if(iu.nextAddress==1)return iu.yield(_.Q9(),2);y5=iu.yieldResult;cp=50;y5&&(cp=y5.getVolume(),y5.isMuted()?XJb(Tz,0):XJb(Tz,cp));L(cp);_.LO(iu)})}
var Q=A.orientation;A=_.GU("desktop-shorts-volume-controls");var q=_.GU("button"),e=_.ud("input"),G=_.U(_.hZ(!1,void 0,"MvN0Tc")),N=G.next().value,z=G.next().value,T=_.U(_.hZ(!1,void 0,"aSjsEb"));G=T.next().value;T=T.next().value;var O=G,c=T;T=_.U(_.hZ(!0,void 0,"FUh46d"));G=T.next().value;T=T.next().value;var B=G,h=T;G=_.U(_.hZ(50,void 0,"yPke4d"));var W=G.next().value,L=G.next().value;G=_.yq(function(){var Tz=O();return _.M("web_shorts_keyboard_enable_mute_shortcut")?Tz?_.e5("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.e5("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Tz?_.e5("UNMUTE_VOLUME",void 0,"Unmute"):_.e5("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
T=_.yq(function(){var Tz=O(),y5=B();return{sources:[{clientResource:{imageName:Tz?_.M("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":y5?_.M("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.M("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var E=_.yq(function(){var Tz=W();return O()?Tz+"% volume muted":Tz+"% volume"},void 0,"xZsRmc"),D=_.yq(function(){return Q()==="vertical_down"},void 0,"FVqYmb");
_.oh(function(){function Tz(){z(!0)}
function y5(){z(!1)}
e&&e.value&&(e.value.addEventListener("focus",Tz),e.value.addEventListener("focusout",y5),X(e.value).then(function(){t(Number(Q3x(e.value)))}));
q&&q.value&&(q.value.addEventListener("focus",Tz),q.value.addEventListener("focusout",y5));_.dD(function(){var cp;e==null||(cp=e.value)==null||cp.removeEventListener("focus",Tz);var iu;e==null||(iu=e.value)==null||iu.removeEventListener("focusout",y5);var Fb;q==null||(Fb=q.value)==null||Fb.removeEventListener("focus",Tz);var xq;q==null||(xq=q.value)==null||xq.removeEventListener("focusout",y5)})});
var S=_.f1(function(){if(e&&e.value){var Tz=Number(Q3x(e.value));fab(Tz);L(Tz);e.value.style.setProperty("--gradient-percent",Tz+"%");t(Tz)}return!1}),Z=_.f1(function(){e&&e.value&&(f(e.value,O()),c(!O()));
return!1}),d={},K={},k={},Gz={};
return _.u("desktop-shorts-volume-controls",{"on:pointerleave":_.f1(function(){z(!1)}),
"on:pointerenter":_.f1(function(){z(!0)}),
class:_.Ao("ytdDesktopShortsVolumeControlsHost",(d.ytdDesktopShortsVolumeControlsHostVertical=D,d.ytdDesktopShortsVolumeControlsHostModern=_.M("web_shorts_modern_controls"),d.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.M("web_shorts_modern_controls")&&N()},d)),
el:A},_.u(_.P,{cond:function(){return!D()},
then:function(){var Tz={};return _.u("div",{class:_.Ao("ytdDesktopShortsVolumeControlsBackgroundScrim",(Tz.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=N,Tz.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.M("web_shorts_modern_controls")&&N()},Tz))})}}),_.u("div",{class:_.Ao((K.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=D,K))},_.u("button",{"aria-label":G,
title:G,el:q,"on:click":Z,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},T?_.u(_.YA,{data:T,alt:G,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.u("div",{class:_.Ao("ytdDesktopShortsVolumeControlsSliderContainer",(k.ytdDesktopShortsVolumeControlsSliderContainerExpanded=N,k.ytdDesktopShortsVolumeControlsSliderContainerVertical=D,k.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=D,k.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return N()&&
D()},k))},_.u("input",{"aria-label":_.e5("VOLUME"),
title:_.e5("VOLUME"),el:e,"on:input":S,type:"range",class:_.Ao("ytdDesktopShortsVolumeControlsNativeSlider",(Gz.ytdDesktopShortsVolumeControlsNativeSliderModern=_.M("web_shorts_modern_controls"),Gz)),id:"volume-input",role:"slider","aria-valuenow":W,"aria-valuetext":E,"aria-valuemin":0,"aria-valuemax":100})))},"$g");var JO2=_.I(function(A){var t=A.data;var f=A.overlayDensity;A={};return _.u("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.u(_.P1,{data:function(){return t().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(X){var Q=X.data;
return _.u(_.qM,{data:function(){return(f==null?void 0:f())===1?Object.assign({},Q(),{avatar:{avatarViewModel:Object.assign({},_.C(Q().avatar,_.v1),{avatarImageSize:"AVATAR_SIZE_M"})}}):Q()}})}}),_.u(_.P1,{data:function(){return t().avatarStackViewModel}},{avatarStackViewModel:function(X){return _.u(_.Jw,{data:X.data})}}),_.u(_.zL,{className:_.Ao("ytReelChannelBarViewModelChannelName",(A.ytReelChannelBarViewModelChannelNameLarge=function(){return(f==null?void 0:f())===1},A)),
text:function(){return t().channelName},
linkInheritColor:!0,userInput:!0}),_.u("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.u(_.P1,{data:function(){return t().subscribeButtonViewModel}},{subscribeButtonViewModel:function(X){var Q=X.data;
return _.u(_.Qj,{data:function(){return(f==null?void 0:f())===1?Object.assign({},Q(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Q().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Q()},
isOverlay:!1})},
buttonViewModel:_.nx})),_.u("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.u(_.P1,{data:function(){var X,Q;return(Q=_.C((X=t())==null?void 0:X.sponsorButtonViewModel,QHp))==null?void 0:Q.sponsorButton}},{buttonViewModel:function(X){return _.u(_.nx,{data:X.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ah");var UA8=_.I(function(A){var t=function(){var Q;return((Q=A.overlayDensity)==null?void 0:Q.call(A))===1},f=function(){return t()?22:16},X={};
return _.u("yt-reel-multi-format-link-view-model",{class:_.Ao("ytReelMultiFormatLinkViewModelHost",(X.ytReelMultiFormatLinkViewModelHostTall=!0,X.ytReelMultiFormatLinkViewModelHostLarge=function(){return t()},X))},_.u(_.bc,{ariaLabel:function(){return A.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return A.data().command}},_.u("h3",{class:function(){return t()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.u(_.P,{cond:function(){return A.data().icon},
then:function(Q){return _.u(_.YA,{data:Q,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:f})}}),_.u(_.zL,{text:function(){return A.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"bh");
UA8.idomCompat=!0;var eEd=_.I(function(A){var t=A.data;var f=A.overlayDensity;var X=A.extractOverlay;var Q=_.GU("yt-shorts-suggested-action-view-model");A=_.U(_.hZ(!1,void 0,"S60Hzc"));var q=A.next().value,e=A.next().value;A=_.U(_.hZ(!1,void 0,"O76chf"));var G=A.next().value,N=A.next().value,z=function(){return t().isMultiLineSa},T=_.Nt(cgb,function(){var d,K;
return(K=(d=t().toggleableContent)==null?void 0:d.entityKey)!=null?K:""}),O=function(){var d,K,k;
return(k=t().toggleableContent)!=null&&k.entityKey?(K=(d=T())==null?void 0:d.value)!=null?K:!1:!1},c=function(){var d,K,k,Gz,Tz,y5,cp,iu,Fb,xq,Yq;
return t().toggleableContent?O()?(d=t().toggleableContent)==null?void 0:d.toggledData:(K=t().toggleableContent)==null?void 0:K.untoggledData:{primaryText:(iu=(k=t().defaultContent)==null?void 0:k.primaryText)!=null?iu:t().text,secondaryText:(Gz=t().defaultContent)==null?void 0:Gz.secondaryText,onTapCommand:(Fb=(Tz=t().defaultContent)==null?void 0:Tz.onTapCommand)!=null?Fb:t().onTapCommand,icon:(xq=(y5=t().defaultContent)==null?void 0:y5.icon)!=null?xq:t().icon,image:(Yq=(cp=t().defaultContent)==null?
void 0:cp.image)!=null?Yq:t().image}},B=function(){return z()?t().trailingTapTarget:void 0},h=function(d,K){return function(){return q()?K:d}},W=function(){return{leadingSection:h("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(f==null?void 0:f())===1?h("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):h("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:h("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:h("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:h("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
A={};A=_.Ao((A.ytShortsSuggestedActionViewModelStaticHost=function(){return!z()},A.ytShortsSuggestedActionViewModelDynamicHost=z,A.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return z()&&G()},A.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return z()&&!G()},A.ytShortsSuggestedActionViewModelExtractOverlay=function(){return X==null?void 0:X()},A));
_.oh(function(){if(z()){var d=0,K;if((K=t().animationParams)==null?0:K.shouldExpand){var k,Gz;d=((Gz=(k=t().animationParams)==null?void 0:k.expansionDelaySecs)!=null?Gz:0)*1E3}var Tz,y5=((Tz=t().animationParams)==null?0:Tz.shouldExpand)?setTimeout(function(){e(!0)},d):void 0,cp,iu;
d=((cp=t().animationParams)==null?0:cp.visibilityDelaySecs)?((iu=t().animationParams)==null?NaN:iu.visibilityDelaySecs)*1E3:0;var Fb=setTimeout(function(){N(!0)},d);
_.dD(function(){y5&&clearTimeout(y5);clearTimeout(Fb)})}});
var L=function(d){_.LI(d,Object.assign({},{form:{element:Q.value}}))},E=_.f1(function(){var d,K=(d=c())==null?void 0:d.onTapCommand;
K&&L(K)}),D=_.f1(function(){var d,K;
if(d=(K=B())==null?void 0:K.onTapCommand)return L(d),!1}),S=_.U7({"vertical-align":"bottom",
"border-radius":function(){var d;return z()?((d=t().defaultContent)==null?0:d.isCircleImage)?"50%":"4px":"0px"},
width:function(){var d,K,k;return z()&&((d=t().defaultContent)==null?0:d.imageSize)?((k=(K=t().defaultContent)==null?void 0:K.imageSize)!=null?k:24)+"px":null},
height:function(){var d,K,k;return z()&&((d=t().defaultContent)==null?0:d.imageSize)?((k=(K=t().defaultContent)==null?void 0:K.imageSize)!=null?k:24)+"px":null}}),Z={};
return _.u("yt-shorts-suggested-action-view-model",{class:A,el:Q},_.u("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.u("button",{class:_.Ao(function(){return z()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var d;
return(d=t().useFullRoundedBorder)!=null&&d?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!B()&&z()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":z()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var d;
return(d=t().disableFixedHeight)!=null&&d?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(Z.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(f==null?void 0:f())===1},Z.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return X==null?void 0:X()},Z)),
"on:click":E},_.u(_.WS,{model:{color:4}}),_.u("div",{class:_.Ao(function(){return z()?W().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.u(_.P,{cond:function(){var d;
return(d=c())==null?void 0:d.image},
then:function(d){return _.u(_.YA,{data:d,alt:"",className:function(){return z()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:S})}}),_.u(_.P,{cond:function(){var d,K;
return(d=c())==null?void 0:(K=d.icon)==null?void 0:K.iconType},
then:function(d){return _.u(_.el,{icon:d,active:O,className:function(){return z()?q()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.u("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.u(_.P,{cond:function(){var d;
return(d=c())==null?void 0:d.primaryText},
then:function(d){var K={};return _.u("div",{class:_.Ao("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(K.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(f==null?void 0:f())===1},K))},_.u(_.zL,{text:d}))}}),_.u(_.P,{cond:function(){var d;
return(d=c())==null?void 0:d.secondaryText},
then:function(d){return _.u("div",{class:function(){return W().secondaryText()}},_.u(_.zL,{text:d}))}}))),_.u(_.P,{cond:B,
then:function(d){return _.u("div",{class:_.Ao(function(){return W().trailingSection()},function(){var K,k;
return(X==null?void 0:X())&&((k=(K=W()).trailingSectionExtractOverlay)==null?void 0:k.call(K))||""}),
"aria-label":function(){var K;return(K=d().a11yLabel)!=null?K:""},
"on:click":D,role:"button",tabindex:0},_.u(_.WS,{model:{color:4}}),_.u(_.el,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"ch");var GOQ=_.I(function(A){var t=A.data;var f=A.overlayDensity;var X=_.GU("yt-shorts-video-title-view-model");A=_.f1(function(e){if(_.Rv(_.hE(e),X.value,["A".toString()]))return!1;(e=t().truncatedTextOnTapCommand)&&_.LI(e);return!1});
var Q={},q={};return _.u("yt-shorts-video-title-view-model",{el:X,class:_.Ao("ytShortsVideoTitleViewModelHost",(Q.ytShortsVideoTitleViewModelHostClickable=function(){return!!t().truncatedTextOnTapCommand},Q)),
"on:click":A},_.u("h2",{class:_.Ao("ytShortsVideoTitleViewModelShortsVideoTitle",(q.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(f==null?void 0:f())===1},q))},_.u(_.zL,{text:function(){return t().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(f==null?void 0:f())===1}})))},"dh");_.l3m=_.I(function(A){var t=A.data;var f=A.overlayDensity;var X=A.extractOverlay;var Q=function(){return(f==null?void 0:f())===1};
return _.u("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.u(_.P1,{data:function(){return t().metadataItems}},{badgeViewModel:function(q){q=q.data;
return _.u("div",{class:_.Ao(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.u(_.Cj,{data:q}))},
playerDisclosureViewModel:function(q){q=q.data;return _.u("div",{class:_.Ao(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.u(_.fFd,{data:q,
extractOverlay:X}))},
shortsSuggestedActionViewModel:function(q){q=q.data;return _.u("div",{class:_.Ao(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.u(eEd,{data:q,
overlayDensity:f,extractOverlay:X}))},
reelChannelBarViewModel:function(q){q=q.data;var e={};return _.u("div",{class:_.Ao("ytReelMetapanelViewModelMetapanelItem",(e.ytReelMetapanelViewModelExpansive=function(){return Q()},e))},_.u(JO2,{data:q,
overlayDensity:f}))},
reelMultiFormatLinkViewModel:function(q){q=q.data;var e={};return _.u("div",{class:_.Ao("ytReelMetapanelViewModelMetapanelItem",(e.ytReelMetapanelViewModelExpansive=function(){return Q()},e))},_.u(UA8,{data:q,
overlayDensity:f}))},
shortsVideoTitleViewModel:function(q){q=q.data;var e={};return _.u("div",{class:_.Ao("ytReelMetapanelViewModelMetapanelItem",(e.ytReelMetapanelViewModelExpansive=function(){return Q()},e))},_.u(GOQ,{data:q,
overlayDensity:f}))},
reelSoundMetadataViewModel:function(q){q=q.data;var e={};return _.u("div",{class:_.Ao("ytReelMetapanelViewModelMetapanelItem",(e.ytReelMetapanelViewModelExpansive=function(){return Q()},e))},_.u(_.lkm,{data:q,
overlayDensity:f}))},
toggleButtonViewModel:function(q){q=q.data;var e={};return _.u("div",{class:_.Ao("ytReelMetapanelViewModelMetapanelItem",(e.ytReelMetapanelViewModelExpansive=function(){return Q()},e))},_.u(_.s$,{data:q}))}}))},"eh");var NLw=_.I(function(A){var t=_.Sv(A,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),f=t.size,X=t.onTap,Q=t.disabled,q=t.tooltipText;return _.u("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.u(_.Lx,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:f(),disabled:Q(),tooltipText:q(),onTap:X}},
iconName:A.iconType}))},"fh"),uOm=_.I(function(A){function t(T){T.stopPropagation();
T.code==="ArrowUp"?(T.preventDefault(),UDq(G.value)):T.code==="ArrowDown"?(T.preventDefault(),euq(G.value)):T.code==="KeyM"?qel():(T.code==="KeyK"||T.code==="Space")&&JQx(N())}
var f=_.Sv(A,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});A=f.previousButtonDisabled;var X=f.nextButtonDisabled,Q=f.data,q=f.playabilityStatus,e=f.previewThumbnail,G=_.GU("ytd-shorts-miniplayer-overlay"),N=_.um(_.FJx),z;_.Zk(function(){(z=_.Sn(G.value))&&z.addEventListener("keydown",t)});
_.dD(function(){var T;(T=z)==null||T.removeEventListener("keydown",t)});
f=function(){var T,O,c;return(T=Q())==null?void 0:(O=T.reelPlayerOverlayRenderer)==null?void 0:(c=O.likeButton)==null?void 0:c.likeButtonRenderer};
return _.u("ytd-shorts-miniplayer-overlay",{el:G,class:"ytdShortsMiniplayerOverlayHost"},_.u("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.U7({"background-image":function(){var T=e();return T?'url("'+_.KI(T.thumbnails)+'")':""}})}),_.u("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.u("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.u(NLw,{iconType:function(){var T=N();
return T===2||T===-1||T===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){JQx(N())},
tooltipText:function(){var T=N();return T===1||T===3?_.e5("PLAYER_LABEL_PAUSE"):_.e5("PLAYER_LABEL_PLAY")}}),_.u(_.qvl,{orientation:"horizontal_right"})),_.u("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.u(NLw,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:A,onTap:function(){UDq(G.value)},
tooltipText:_.e5("PREVIOUS_VIDEO_LABEL")}),_.u(NLw,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:X,onTap:function(){euq(G.value)},
tooltipText:_.e5("NEXT_VIDEO_LABEL")}),_.M("web_shorts_pip_like_button")?_.u("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.u(LQm,{buttonTooltipPosition:"left",data:f,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.u("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.u(_.P,{cond:function(){var T,O;return _.C((T=Q())==null?void 0:(O=T.reelPlayerOverlayRenderer)==null?void 0:O.metapanel,
tHp)},
then:function(T){return _.u("div",{class:_.Ao("ytdShortsMiniplayerOverlayInteractive")},_.u(_.l3m,{data:T}))}})),_.u("div",{class:_.Ao("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var T;return!((T=Q())==null||!T.adsOverlay)||q()&&!duu(q())}},_.u("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.u(_.Qim,null)))),_.u(_.P,{cond:function(){var T=Q(),O,c;
T=_.C(T==null?void 0:(O=T.adsOverlay)==null?void 0:(c=O.fulfillmentContent)==null?void 0:c.fulfilledLayout,jRT);return _.C(T==null?void 0:T.renderingContent,SAw)},
then:function(T){return _.u("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.u(Jyb,{data:T}))}}))},"hh");var Ggx=_.I(function(){var A=_.U(_.hZ(new _.Ln(NaN,NaN),void 0,"hq9Bjf")),t=A.next().value,f=A.next().value;A=_.U(_.hZ(!1,void 0,"Mu3aZc"));var X=A.next().value,Q=A.next().value,q=_.U(_.hZ(!1,void 0,"LGtoFb"));A=q.next().value;var e=q.next().value,G=_.Px().resolve(_.DS).miniplayerPropSignalMap[0],N=G.data,z=G.shortsData,T=G.nextButtonDisabled,O=G.shortsPreviewThumbnail,c=G.previousButtonDisabled,B=G.externalPlaylistData;q=G.toastData;var h=G.playabilityStatus,W=G.isDisabled,L=G.playerVe,E=G.closeVe;
G=_.um(_.ku);_.eU("yt-pip-window-resized",function(d){f(d)});
_.eU("yt-activate-pip-miniplayer",function(){return _.l(function(d){e(!0);_.LO(d)})});
var D=function(){var d;return!((d=B())==null||!d.contents)&&X()},S=function(){var d=t(),K=!!N(),k=D();
d=d.clone();K&&(d.height-=76);k&&(d.height-=285);return d},Z=function(){Q(!X())};
_.oo(function(){var d=L(),K=_.Ws(11),k=_.mx(11);K&&k&&d&&(_.x7(K,k,d),k=E())&&(_.j5(K,d,[k]),_.Vg(K,[k]))},"fHkmfb");
return _.u("ytd-pip-container",{class:"ytdPipContainerHost"},_.u(_.P,{cond:A,then:function(){return _.u(_.Bb8,{isDisabled:W,playabilityStatus:h,size:S,isPictureInPicture:!0})}}),_.u(_.P,{cond:N,
then:function(){return _.u(_.OU8,{data:N,expanded:X,onExpandClick:Z,playlistData:B})}}),_.u(_.P,{cond:D,
then:function(){return _.u("div",{class:"ytdPipContainerPlaylistPanel"},_.u(_.yr8,{data:B,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.u(_.P,{cond:G,
then:function(){return _.u(uOm,{data:z,nextButtonDisabled:T,previousButtonDisabled:c,playabilityStatus:h,previewThumbnail:O})}}),_.u("div",{class:"ytdPipContainerToast"},_.u(_.MCQ,{toastData:q})))},"jh");var jf=function(A,t,f){var X=this;this.pipController=A;this.JSC$19103_clientRoot=t;this.JSC$19103_pageRequestService=f;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Cpx();this.watchPipEnabled=_.M("web_watch_pip");this.shortsPipEnabled=_.M("web_shorts_pip");this.JSC$19103_watchWhileEnabled=_.M("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;_.ar(_.$I(),LJx,function(Q){X.isSingleOptionSurveyActive=Q});
this.JSC$19103_onPlayerPlayVideo=this.JSC$19103_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);_.J4(_.XA.getInstance(),this.miniplayerServiceActionMap,this.JSC$19103_clientRoot);A.pictureInPictureSupported()&&_.SY("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},WVE,hE3,cO2,RE_,mA3,Koi;
jf.prototype.handleMediaSessionPipActivation=function(){var A=this,t;return _.l(function(f){_.$z().mediaSessionPipActivation=!0;t=_.Px().resolve(_.HO);return t.isOnWatch()&&A.watchPipEnabled?(_.$z().watchPipActivation=!0,_.zEQ(A,t.data),f.jumpTo(0)):t.isOnShorts()&&A.shortsPipEnabled?(_.$z().shortsPipActivation=!0,_.PX2(A),f.jumpTo(0)):A.isMiniplayerActive()&&A.watchPipEnabled&&!A.watchWhileMode?f.yield(TL2(A),0):f.jumpTo(0)})};
var TL2=function(A){var t,f,X,Q;return _.l(function(q){if(q.nextAddress==1)return t=!A.miniplayerToPipMode,f=A.playerElement,X=A.miniplayerData,Q=A.watchResponse,q.yield(A.deactivate(),2);if(q.nextAddress!=3)return t?(_.$z().mediaSessionPipActivation=!0,_.$z().watchPipActivation=!0):_.$z().miniplayerButtonActivation=!0,q.yield(A.activate(f,X,Q),3);A.miniplayerToPipMode=t;_.LO(q)})};
jf.prototype.onDownloadedVideoDeleted=function(A){var t,f=_.C((t=this.miniplayerData)==null?void 0:t.watchEndpoint,_.ZT),X,Q;f&&((X=this.watchResponse)==null?void 0:(Q=X.playerResponse)==null?void 0:Q.offlineState)!==void 0&&(t=f.videoId)&&A&&t===A&&this.close()};
jf.prototype.onShowMiniplayerCommand=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O,c;return _.l(function(B){switch(B.nextAddress){case 1:return f=_.C(A,Zlf),Q=(X=f)==null?void 0:X.miniplayerCommand,q=_.C(Q,_.ZT),Q&&q&&!t.active?B.yield(_.Az.getInstance(),2):B.return();case 2:return e=B.yieldResult,B.yield((G=e)==null?void 0:G.get("yt-miniplayer-shown-video-id"),3);case 3:N=B.yieldResult;z=q.videoId;if(!z||N===z)return B.return();T=_.Px().resolve(_.HO);if(T.isOnWatch())return _.K4(Error("Uj")),B.return();
O={channelItem:{externalId:btoa(z)}};t.readyToResumeVe=_.Xl(121253,void 0,void 0,O);_.$z().showMiniplayerCommandActivation=!0;return B.yield(_.g0p(t,Q,!0),4);case 4:return t.active&&(_.YS(t,{readyToResumeVe:t.readyToResumeVe,isReadyToResume:!0}),t.isReadyToResume=!0),B.yield((c=e)==null?void 0:c.set("yt-miniplayer-shown-video-id",q.videoId),5);case 5:t.readyToResumeVe=void 0,_.LO(B)}})};
jf.prototype.init=function(A){this.miniplayerEl?_.K4(new _.xj("MiniplayerService already initialized.")):this.miniplayerEl=A};
jf.prototype.isInitialized=function(){var A=!!this.miniplayerEl;A||_.K4(new _.xj("MiniplayerService used before initialized."));return A};
_.zEQ=function(A,t){if(A.isInitialized()){var f=_.Ls(t.response,!1,t.playerResponse),X=_.Px().resolve(_.HO).getPlayerFromWatch();_.$z().currentEndpoint=f.watchEndpoint||null;A.activate(X,f,t)}};
_.PX2=function(A){if(A.isInitialized()){var t=_.Px().resolve(_.HO).getPlayerFromShorts();A.activate(t)}};
WVE=function(A,t){var f;(f=!A.isInitialized())||(f=_.Px().resolve(_.HO).isOnWatch()&&A.watchPipMode,f=!(A.isMiniplayerActive()&&(_.$z().userActivation||_.$z().lockupActivation||f)));if(f)return!1;i4j(A,t)?_.FP(A):Koi(A,t);return A.watchPipMode?!_.Px().resolve(_.HO).isOnWatch():!0};
jf.prototype.isMiniplayerActive=function(){return this.active};
var i4j=function(A,t){var f;t=(f=_.C(t,_.ZT))==null?void 0:f.videoId;var X,Q;A=(Q=_.C((X=A.miniplayerData)==null?void 0:X.watchEndpoint,_.ZT))==null?void 0:Q.videoId;return t!=null&&t===A};
jf.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.s9(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.kJ(this.miniplayerEl,"yt-navigate-home-action"))};
_.g0p=function(A,t,f,X){f=f===void 0?!1:f;var Q,q,e;return _.l(function(G){switch(G.nextAddress){case 1:if(A.active){G.jumpTo(2);break}Q=_.Px().resolve(_.HO);if(e=(q=A.playerElement)!=null?q:Q.getPlayerFromWatch()){G.jumpTo(3);break}return G.yield(_.Px().resolve(_.re),4);case 4:e=Q.getPlayerFromWatch();case 3:if(!e){_.K4(Error("Wj"));G.jumpTo(2);break}return G.yield(A.activate(e,X),2);case 2:return A.active?G.yield(Koi(A,t,f),0):G.return()}})};
jf.prototype.activate=function(A,t,f){var X=this,Q,q,e,G,N,z,T,O,c;return _.l(function(B){switch(B.nextAddress){case 1:if(!X.isInitialized())return B.return();if(!A)return _.K4(Error("Wj")),B.return();if(_.Unp()||X.isMiniplayerActive())var h=!0;else h=_.$z().watchPipActivation||_.$z().watchWhileActivation,_.Px().resolve(_.HO).isOnWatch()&&!h?(_.K4(new _.xj("miniplayer activated on watch page")),h=!0):h=_.$z().watchWhileActivation?X.userDeactivatedWatchWhile||!!document.pictureInPictureElement||Rrb():
!1;if(h)return JTK(),B.return();Q=_.$z().mediaSessionPipActivation;q=_.$z().shortsPipActivation;e=_.$z().watchPipActivation;N=(G=_.$z().watchWhileActivation)||e;z=e||q;if(!X.pictureInPictureEnabled()||!z){B.jumpTo(2);break}return B.yield(O4l(X,Q),3);case 3:if(!B.yieldResult)return _.K4(Error("Vj")),JTK(),B.return();case 2:return X.setActive(!0),X.watchResponse=f,X.playerElement=A,X.updateMiniplayerData(t),B.yield(cO2(X,A),4);case 4:if(!X.active)return _.K4(new _.xj("miniplayer deactivated during activation")),
X.removePlayerListeners(),B.return();h=_.Px().resolve(_.zT);h.addEventListener("yt-navigate",_.JY(X,X.onPlaylistNavigate));h.addEventListener("yt-playlist-data-updated",_.JY(X,X.JSC$19103_onPlaylistDataUpdated));X.JSC$19103_onPlaylistDataUpdated();JTK();X.JSC$19103_watchWhileEnabled&&_.BLA(X,G);X.pictureInPictureEnabled()&&X.shortsPipEnabled&&(X.shortsPipMode=q,_.$I().dispatch(gGE(X.shortsPipMode)));X.pictureInPictureEnabled()&&X.watchPipEnabled&&(X.watchPipMode=e,_.bMs(X.handleMediaSessionPipActivation));
X.player&&(T=X.player.getPlayerState(),O=T===1,_.$I().dispatch(qkE(T)),_.r2(X.miniplayerEl,"yt-miniplayer-play-state-changed",[O]),_.$z().isVideoPlaying=O);_.r2(X.miniplayerEl,"yt-miniplayer-endpoint-changed");MY3(X);_.CX8(X);if(X.shortsPipMode||X.watchPipMode)B=B.yield(_.kJ(X.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{h=B.yield;var W=_.kJ(X.miniplayerEl,"yt-activate-miniplayer",[N])[0];B=h.call(B,W,6)}return B;case 6:if(X.watchResponse){h=X.getScreenLayer();W=_.Ws(0);var L=GJl(0);W&&L&&
(_.vs(W,L,h),h===0&&Uh5(void 0,0))}hE3(X);RE_(X,!0);(c=X.getPlayerElement())==null||c.focusOnPlayer();_.LO(B)}})};
jf.prototype.updateMiniplayerData=function(A){this.miniplayerData=A;_.YS(this,{data:A})};
_.CX8=function(A){var t,f,X=((t=A.miniplayerData)==null?void 0:(f=t.miniplayerRenderer)==null?void 0:f.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";t=A.watchWhileMode||A.watchPipMode?X&&!_.Px().resolve(_.HO).isOnWatch():X;_.YS(A,{isDisabled:t});var Q,q;f=_.C((Q=A.miniplayerData)==null?void 0:(q=Q.miniplayerRenderer)==null?void 0:q.minimizedEndpoint,_.$4);t&&f&&_.Px().resolve(_.Ak).openSheet({openPopupActionCommand:{openPopupAction:f}},A.miniplayerEl)};
hE3=function(A){if(A.watchResponse&&!mA3(A)){var t,f=(t=A.watchResponse.playerResponse)==null?void 0:t.trackingParams;f&&(_.YS(A,{expandVe:_.Xl(35989),closeVe:_.Xl(34699),readyToResumeCloseVe:_.Xl(131070),repositionVe:_.Xl(226204),resizeVe:_.Xl(226205)}),_.YS(A,{playerVe:_.zV(f)}))}};
cO2=function(A,t){return _.l(function(f){if(f.nextAddress==1)return t.preparePlayer(),f.yield(t.getPlayerPromise(),2);A.player=f.yieldResult;A.player&&(A.player.addEventListener("onPlayVideo",A.JSC$19103_onPlayerPlayVideo),A.player.addEventListener("onCloseMiniplayer",A.onPlayerCloseMiniplayer),A.player.addEventListener("onExpandMiniplayer",A.onPlayerExpandMiniplayer),A.player.addEventListener("onStateChange",A.onPlayerStateChange));_.LO(f)})};
_.J=jf.prototype;_.J.JSC$19103_onPlayerPlayVideo=function(A){var t=A.sessionData&&"autonav"in A.sessionData,f;A.sessionData&&A.sessionData.itct&&(f=A.sessionData.itct);var X=A.watchEndpoint;t=X&&t?_.jI5(X,f):_.g0(A.videoId,A.listId||void 0,f);A.sessionData&&_.$J(_.C(t.commandMetadata,_.Jl).url,A.sessionData);Koi(this,t)};
_.J.onPlayerExpandMiniplayer=function(){_.FP(this)};
_.J.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.J.onPlayerStateChange=function(){if(this.player){var A=this.player.getPlayerState(),t=A===1;_.$I().dispatch(qkE(A));_.$I().dispatch(_.eep(A));_.r2(this.miniplayerEl,"yt-miniplayer-play-state-changed",[t]);_.$z().isVideoPlaying=t;if(A===0){t=!_.WX.getInstance().isAutoplaySetExplicitly();var f,X,Q,q,e,G,N=(f=this.watchResponse.response)==null?void 0:(X=f.contents)==null?void 0:(Q=X.twoColumnWatchNextResults)==null?void 0:(q=Q.autoplay)==null?void 0:(e=q.autoplay)==null?void 0:(G=e.autoplayExplicitChoiceDialogRenderer)==
null?void 0:G.confirmDialogRenderer;t&&N&&this.player.setAutonavState(1)}A===0&&this.watchWhileMode&&this.deactivate()}};
_.J.onPlaylistNavigate=function(A,t){var f=this,X,Q,q,e,G,N,z;return _.l(function(T){if(T.nextAddress==1){if(!_.C(t.endpoint,_.ZT))return T.return();_.$z().currentEndpoint=t.endpoint;_.r2(f.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.Px().resolve(_.HO).isOnWatch()&&(f.watchWhileMode||f.watchPipMode))return T.return();A.stopPropagation();(q=(Q=_.C((X=t.endpoint)==null?void 0:X.commandMetadata,_.Jl))==null?void 0:Q.url)&&t.tempData&&!_.VG.isEmpty(t.tempData)&&_.$J(q,t.tempData);e={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};G=new eOE(function(){return f.getPlayerElement()},e,{layer:f.getScreenLayer()});
N=function(O){G.processChunk({endpoint:t.endpoint,data:O})};
b4w(f);f.miniplayerFetchRequest=WiA(f,t.endpoint,N);_.ht(T,2);return T.yield(f.miniplayerFetchRequest,4)}if(T.nextAddress!=2)return z=T.yieldResult,yOA(f,z),_.qq(T,0);_.vC(T);_.LO(T)})};
_.J.JSC$19103_onPlaylistDataUpdated=function(){var A=_.Px().resolve(_.zT).getPlaylistData();this.hasPlaylistData=!!A;_.YS(this,{externalPlaylistData:A||{}})};
_.J.close=function(A){if(this.isInitialized())if(A){if(!((this.watchWhileMode||this.watchPipMode)&&_.Px().resolve(_.HO).isOnWatch()||this.shortsPipMode)){var t;(t=this.getPlayerElement())==null||t.stop()}this.deactivate()}else _.cR().closeMiniplayer(this.miniplayerEl)};
_.J.deactivate=function(A){var t=this,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1){if(!t.isInitialized()||!t.active)return e.return();t.setActive(!1);b4w(t);(f=!!A&&i4j(t,A))&&t.isSingleOptionSurveyActive&&_.kJ(t.miniplayerEl,"yt-show-watch-page-survey",[t.isSingleOptionSurveyActive]);return e.yield(vBm(t),2)}if(e.nextAddress!=3){RE_(t,!1);t.isReadyToResume=!1;t.watchResponse=void 0;t.updateMiniplayerData(void 0);t.shortsPipMode&&(t.shortsPipMode=!1,_.$I().dispatch(gGE(t.shortsPipMode)),ZFw(t.pipController),
(X=t.player)==null||X.setInternalSize(NaN,NaN));t.watchPipMode&&(t.watchPipMode=!1,ZFw(t.pipController));(Q=t.watchWhileMode)&&_.BLA(t,!1);t.removePlayerListeners();var G=_.Px().resolve(_.zT);G.removeEventListener("yt-navigate",_.JY(t,t.onPlaylistNavigate));G.removeEventListener("yt-playlist-data-updated",_.JY(t,t.JSC$19103_onPlaylistDataUpdated));_.$z().currentEndpoint=null;_.r2(t.miniplayerEl,"yt-miniplayer-endpoint-changed");t.playerElement=null;JTK();if(t.shortsPipMode||t.watchPipMode)e=e.jumpTo(3);
else{G=e.yield;var N=_.kJ(t.miniplayerEl,"yt-deactivate-miniplayer",[f,Q])[0];e=G.call(e,N,3)}return e}(q=t.player)==null||q.setInternalSize(NaN,NaN);t.player=null;_.LO(e)})};
var vBm=function(A){var t;return _.l(function(f){t=_.Px().resolve(_.HO);return A.shortsPipMode?f.yield(t.movePlayerToShorts(A.playerElement),0):f.yield(t.movePlayerToWatch(A.playerElement),0)})};
jf.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19103_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
jf.prototype.setActive=function(A){this.active=A;this.isSingleOptionSurveyActive?_.kJ(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.kJ(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.$I().dispatch(_.r0({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.BLA=function(A,t){A.watchWhileMode=t;_.YS(A,{watchWhile:t})};
RE_=function(A,t){if(!mA3(A))if(A.shortsPipMode||A.watchPipMode){var f;(f=A.player)==null||f.setDocumentPictureInPicture(t)}else{var X;(X=A.player)==null||X.setMinimized(t)}};
mA3=function(A){return A.watchWhileMode&&_.M("kevlar_watch_while_counterfactual")};
_.FP=function(A){var t;return _.l(function(f){switch(f.nextAddress){case 1:if(!A.isInitialized())return f.return();_.ht(f,2);return f.yield(A.miniplayerFetchRequest,4);case 4:_.qq(f,3);break;case 2:_.vC(f);case 3:A.watchResponse&&A.miniplayerData&&A.miniplayerData.watchEndpoint?(t={url:A.watchResponse.url,endpoint:A.miniplayerData.watchEndpoint,data:A.watchResponse,miniplayer:!0},_.s9(A.miniplayerEl,"yt-navigate-cache",t)):A.miniplayerData&&A.miniplayerData.watchEndpoint&&_.s9(A.miniplayerEl,"yt-navigate",
{endpoint:A.miniplayerData.watchEndpoint}),_.LO(f)}})};
Koi=function(A,t,f){var X,Q,q,e;return _.l(function(G){if(G.nextAddress==1){if(i4j(A,t))return G.return();_.$z().currentEndpoint=t;_.r2(A.miniplayerEl,"yt-miniplayer-endpoint-changed");_.r2(A.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.$z().isVideoPlaying=!1;X={clientParams:{miniplayer:!0,autoSaveToQueue:!f}};Q=new eOE(function(){return A.getPlayerElement()},X,{layer:A.getScreenLayer(),
parentLayer:0},void 0,A.readyToResumeVe);q=function(N){var z,T,O=Object.assign({},(z=N.playerResponse)==null?void 0:(T=z.playerConfig)==null?void 0:T.playbackStartConfig,{startPaused:!0}),c;f&&((c=N.playerResponse)==null?0:c.playerConfig)&&(N.playerResponse.playerConfig.playbackStartConfig=O);Q.processChunk({endpoint:t,data:N})};
b4w(A);A.miniplayerFetchRequest=WiA(A,t,q);_.ht(G,2);return G.yield(A.miniplayerFetchRequest,4)}if(G.nextAddress!=2)return e=G.yieldResult,yOA(A,e),_.qq(G,0);_.vC(G);_.LO(G)})};
jf.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var b4w=function(A){A.miniplayerFetchRequest&&(A.miniplayerFetchRequest.cancel&&A.miniplayerFetchRequest.cancel("Active request obsolete"),A.miniplayerFetchRequest=null)},WiA=function(A,t,f){var X,Q=(X=_.C(t.commandMetadata,_.Jl))==null?void 0:X.url,q;
X=!Q||_.M("disable_miniplayer_tempdata")?{}:(q=gDu(Q))!=null?q:{};return x5(A.JSC$19103_pageRequestService,t,X,window.location.href,"watch",function(e,G){f(G)},function(e){return e!==A.miniplayerFetchRequest})},yOA=function(A,t){var f;
_.l(function(X){if(!t)return X.return();A.watchResponse=t;hE3(A);MY3(A);f=_.Ls(t.response,!1,t.playerResponse);if(A.isMiniplayerActive()){t.response&&(A.playerElement.watchNextData=t.response);var Q=_.VG.getValueByKeys.apply(_.VG,[t].concat(_.YV(cn8)));_.VG.getValueByKeys.apply(_.VG,[t].concat(_.YV(Rep)))&&Q&&_.Px().resolve(_.zT).setAutoplayRenderer(Q);if(Q)if(_.M("kevlar_is_pupi_enabled")){var q,e,G,N,z,T=((q=t.response)==null?0:(e=q.playerOverlays)==null?0:(G=e.playerOverlayRenderer)==null?0:(N=
G.autonavToggle)==null?0:(z=N.autoplaySwitchButtonRenderer)==null?0:z.enabled)?2:1;_.WX.getInstance().setState(T,!1,!1)}else q=ehl()?2:1,(T=A.player)==null||T.setAutonavState(q);A.updateMiniplayerData(f);_.CX8(A)}_.LO(X)})},MY3=function(A){var t,f,X=(t=A.watchResponse)==null?void 0:(f=t.playerResponse)==null?void 0:f.playabilityStatus,Q;
t=X==null?void 0:(Q=X.miniplayer)==null?void 0:Q.miniplayerRenderer;(t==null?void 0:t.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&t.minimizedEndpoint&&_.Al(A.miniplayerEl,[t.minimizedEndpoint]);_.YS(A,{playabilityStatus:X})};
jf.prototype.openToast=function(A,t){_.YS(this,{toastData:{data:A,label:t}})};
_.YS=function(A,t){(0,A.miniplayerPropSignalMap[1])(t)};
jf.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var A;return this.playerElement?this.playerElement:(A=_.sF(this.miniplayerEl).querySelector("#player-container"))==null?void 0:A.firstElementChild};
jf.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var O4l=function(A,t){t=t===void 0?!1:t;var f,X,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1){if(!A.pictureInPictureSupported()||!NJb()&&!t)return N.return(!1);f=Lij(A);X=f.width;Q=f.height;return N.yield(A.pipController.openWindow({width:X,height:Q}),2)}q=N.yieldResult;e=A.pipController.getWindow();if(!e||!q)return N.return(!1);e.document.body.style.overflow="hidden";G=la5(e);of3(A.pipController,function(){pQh(A);G()});
return N.return(!0)})},Lij=function(A){var t=_.$z().shortsPipActivation,f,X;
A=t?.5625:(X=(f=A.player)==null?void 0:f.getVideoAspectRatio())!=null?X:16/9;f=Math.min(window.innerWidth,window.innerHeight)/2;t=t?0:76;return A>1?new _.Ln(f,t+f/A):new _.Ln(f*A,t+f)},pQh=function(A){var t;
_.l(function(f){t=_.Px().resolve(_.HO);return t.isOnWatch()&&A.watchPipMode||t.isOnShorts()&&A.shortsPipMode?f.yield(A.deactivate(),0):A.miniplayerToPipMode?f.yield(TL2(A),0):A.watchPipMode?f.yield(_.FP(A),0):f.jumpTo(0)})};
jf.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.PV.Object.defineProperties(jf.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
jf[T7]=[d48,Clw,_.Cs];var EBl="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(" "),
nBl="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(" "),DAc="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
Fih="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var I3d=function(A,t,f){_.DA.call(this);this.store=A;this.panelController=t;this.pageContentExtractor=f;this.isInitialized=!1};
_.R(I3d,_.DA);
I3d.prototype.init=function(A){var t=this;this.isInitialized||(this.isInitialized=!0,this.environment=A!=null?A:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.Iv.currentPageSubTypeSelector(this.store.getState()),A=_.ar(this.store,_.Iv.currentPageSubTypeSelector,function(f){a:if(_.xA_(t))switch(f){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var X=!0;break a;default:X=!1}else X=!1;X&&t.panelController.hidePanel({identifier:"PAai_companion"});
t.pageSubtype!==f&&(t.pageSubtype=f)}),this.addOnDisposeCallback(A))};
_.QkQ=function(A,t){if(_.xA_(A))switch(t){case "watch":var f,X;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(f=_.JE())==null?void 0:(X=f.getVideoData())==null?void 0:X.video_id};case "search":var Q,q,e;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(q=(Q=A.pageContentExtractor)==null?void 0:L$m(Q))!=null?q:[],entityId:(e=(new URLSearchParams(window.location.search)).get("search_query"))!=null?e:void 0};case "companion-canvas":var G,N;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(N=(G=
A.pageContentExtractor)==null?void 0:L$m(G))!=null?N:[]};default:var z,T;A={videoIds:(T=(z=A.pageContentExtractor)==null?void 0:L$m(z))!=null?T:[]};return _.M("enable_ai_companion_default_page_context")?A:void 0}};
_.xA_=function(A){return A.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
I3d[T7]=[_.Xk,_.rA,_.z7(pm8)];_.jij=_.I(function(A){return _.u("yt-ai-companion-attachment-view-model",{el:_.ZY(_.W1(function(){return A.data().rendererContext})),
class:_.Ao("ytAiCompanionAttachmentViewModelHost",A.className)},_.u("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.u(_.P,{cond:function(){return A.data().title},
then:function(t){return _.u("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return t().content}},_.u(_.zL,{text:t}))}}),_.u(_.P,{cond:function(){return _.Fl(A.data().trailingTitleIcon)},
then:function(t){return _.u("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.u(_.YA,{data:t,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.u(_.P,{cond:function(){return A.data().description},
then:function(t){return _.u("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.u(_.zL,{text:t}))}}),_.u(_.P,{cond:function(){return A.data().bottomItem},
then:function(t){return _.u("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.u(_.P1,{data:t},{tableViewModel:xzE}))}}))},"lh");_.Yvw=_.I(function(A){return _.u("yt-channel-attribution-view-model",{class:_.Ao("ytChannelAttributionViewModelHost",A.className)},_.u("div",{class:"ytChannelAttributionViewModelUpper"},_.u(_.P1,{data:function(){return A.data().avatar}},{decoratedAvatarViewModel:_.qM}),_.u("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.u(_.zL,{text:function(){return A.data().title}}))),_.u("div",{class:"ytChannelAttributionViewModelBottom"},_.u(_.zL,{text:function(){return A.data().subtitle}})))},"mh");var VYy=_.I(function(A){var t=_.U(_.hZ(!1,void 0,"MFRKRb")),f=t.next().value,X=t.next().value,Q=function(){return A.data().activeRenderer},q=function(){return A.data().inactiveRenderer};
return _.u("yt-channel-disclosure-view-model",{"on:mouseleave":_.f1(function(){X(!1)}),
"on:mouseover":_.f1(function(){X(!0)}),
class:_.Ao("ytChannelDisclosureViewModelHost",A.className)},_.u(_.P,{cond:function(){return f()},
then:function(){return _.u(_.P1,{data:Q},{channelAttributionViewModel:_.Yvw})},
else:function(){return _.u(_.P1,{data:q},{decoratedAvatarViewModel:_.qM})}}))},"nh");var Z4y=null;var oBd={},dA8=(oBd.initialized={priority:10,callback:function(A){var t=_.Px();t.addProvider({provide:LZk,useClass:S8d});t.addProvider({provide:_.dph,useFactory:function(){return new pDC}});
t.addProvider({provide:Pw,useValue:_.ah("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});t.addProvider({provide:zw3,useValue:5184E6});t.addProvider({provide:jk8,useValue:_.m_()});t.addProvider({provide:lMj,useClass:C4T});t.addProvider({provide:Oh,useClass:Oh});t.addProvider({provide:_.re,useFactory:function(){return wN8.promise}});
t.addProvider({provide:_.kyi,useFactory:function(){return _.sQ7.promise}});
t.addProvider({provide:DEu,useValue:function(){var N;return((N=_.K1())==null?void 0:N.getPlayer())||null}});
var f={};t.addProvider((f.provide=_.fv,f.useFactory=function(N,z){return function(){return G30(N,z)}},f[T7]=[Pw,
zw3],f));f={};t.addProvider((f.provide=_.Id,f.useClass=yVw,f[T7]=[Pw,zw3],f));f={};t.addProvider((f.provide=_.yQx,f.useClass=ECy,f[T7]=[_.Id],f));t.addProvider({provide:q8,useFactory:_.$I});t.addProvider({provide:tu,useFactory:_.$I});t.addProvider({provide:BDh,useFactory:_.$I});t.addProvider({provide:Xf3,useFactory:_.$I});t.addProvider({provide:_.Xk,useFactory:_.$I});t.addProvider({provide:ZO,useValue:_.eR});t.addProvider({provide:jh3,useClass:HZb});t.addProvider({provide:nVd,useClass:EVQ});t.addProvider({provide:oe,
useClass:oe});t.addProvider({provide:V0,useClass:V0});t.addProvider({provide:IA,useClass:IA});t.addProvider({provide:ZP,useClass:ZP});t.addProvider({provide:gj,useClass:gj});t.addProvider({provide:pc,useClass:pc});t.addProvider({provide:ih,useClass:ih});t.addProvider({provide:_.YW,useValue:qJm});f={};t.addProvider((f.provide=kv3,f.useFactory=function(N){return N.watchEndpointMap||{}},f[T7]=[_.YW],f));
f={};t.addProvider((f.provide=r5y,f.useFactory=function(N){return N.reelWatchEndpointMap||{}},f[T7]=[_.YW],f));
t.addProvider({provide:_.gx,useFactory:_.er});t.addProvider({provide:tP,useFactory:_.NJ});f={};t.addProvider((f.provide=l8g,f.useFactory=function(N){return function(z){var T={automatedLogEventSource:5};T=T===void 0?{}:T;var O,c,B=(c=_.C((O=z.endpoint)==null?void 0:O.commandMetadata,_.Jl))==null?void 0:c.rootVe;if(B){var h,W;if(O=z.previousCsn||((W=_.C((h=z.endpoint)==null?void 0:h.commandMetadata,BNk))==null?void 0:W.parentCsn)){var L=L===void 0?{}:L;if(O!==_.Ws(L.layer)||B!==GJl(L.layer))Pau(O,L.cttAuthInfo,
L.layer||0),Uh5(O,L.layer||0),h=L.layer||0,_.H5(e2u(h===void 0?0:h),B);T.parentCsn=O}z.endpoint&&O?SRS(N,z.endpoint,T):_.xz(N,B,void 0,T);var E;((E=z.response)==null?0:E.trackingParams)&&N.graftServerVe(z.response.trackingParams);var D;((D=z.playerResponse)==null?0:D.trackingParams)&&N.graftServerVe(z.playerResponse.trackingParams);var S;((S=z.reelWatchSequenceResponse)==null?0:S.trackingParams)&&N.graftServerVe(z.reelWatchSequenceResponse.trackingParams)}}},f[T7]=[_.gx],f));
f={};t.addProvider((f.provide=Cx3,f.useClass=MG3,f[T7]=[ZO,_.Xk],f));f={};t.addProvider((f.provide=z0,f.useClass=z0,f[T7]=[_.re,_.Xk],f));f={};t.addProvider((f.provide=G0,f.useClass=G0,f[T7]=[tu,_.i2],f));t.addProvider({provide:_.Ef2,useClass:$4d});f={};t.addProvider((f.provide=_.rA,f.useClass=F$y,f[T7]=[_.Ef2,_.z7(_.fm)],f));t.addProvider({provide:_.ni,useClass:FSm});f={};t.addProvider((f.provide=DP,f.useClass=DP,f[T7]=[_.ni,_.re,_.iY,_.i2],f));t.addProvider({provide:_.Ak,useClass:iV});t.addProvider({provide:_.LSc,
useClass:ba3});t.addProvider({provide:_.tk,useClass:P3});_.M("enable_ai_companion")&&(t.addProvider({provide:_.fm,useClass:jo_}),t.addProvider({provide:_.BQT,useClass:YZw}),t.addProvider({provide:pm8,useClass:yZ8}),t.addProvider({provide:AD,useClass:AD}),t.addProvider({provide:rr,useClass:rr}),t.addProvider({provide:C77,useValue:VYy}),t.addProvider({provide:_.hvE,useValue:_.jij}));_.M("enable_ai_chat_controller")&&t.addProvider({provide:_.kQ,useClass:I3d});f={};t.addProvider((f.provide=_.sy,f.useClass=
SHd,f[T7]=[_.sy],f));t.addProvider({provide:_.Y9,useClass:bOl});t.addProvider({provide:lf,useClass:lf});t.addProvider({provide:jV,useClass:jV});t.addProvider({provide:Oy,useClass:Oy});f={};t.addProvider((f.provide=Ke,f.useClass=Ke,f[T7]=[_.i2,_.iY],f));t.addProvider({provide:vw,useClass:T0});f={};t.addProvider((f.provide=Ey,f.useClass=Ey,f[T7]=[_.Ak,vw],f));f={};t.addProvider((f.provide=bf,f.useClass=bf,f[T7]=[_.Ak],f));f={};t.addProvider((f.provide=JD,f.useClass=JD,f[T7]=[q8,Q1,_.i2],f));t.addProvider({provide:Q1,
useClass:J5Q});_.M("web_enable_feedback_endpoint_resolver_batch_2")&&(f={},t.addProvider((f.provide=eV,f.useClass=eV,f[T7]=[q8],f)),f={},t.addProvider((f.provide=Uy,f.useClass=Uy,f[T7]=[Q1],f)));f={};t.addProvider((f.provide=LT,f.useClass=LT,f[T7]=[_.tk,vw],f));f={};t.addProvider((f.provide=RA,f.useClass=RA,f[T7]=[_.tk],f));f={};t.addProvider((f.provide=pT,f.useClass=pT,f[T7]=[_.iY,_.rA],f));f={};t.addProvider((f.provide=y1,f.useClass=y1,f[T7]=[_.iY,_.gx],f));t.addProvider({provide:e6,useClass:e6});
f={};t.addProvider((f.provide=AP,f.useClass=AP,f[T7]=[q8],f));t.addProvider({provide:hP,useClass:hP});t.addProvider({provide:Ci,useClass:Ci});f={};t.addProvider((f.provide=mN,f.useClass=mN,f[T7]=[q8],f));f={};t.addProvider((f.provide=b4,f.useClass=b4,f[T7]=[_.iY,q8],f));f={};t.addProvider((f.provide=WW,f.useClass=WW,f[T7]=[q8],f));f={};t.addProvider((f.provide=y0,f.useClass=y0,f[T7]=[q8],f));f={};t.addProvider((f.provide=mW,f.useClass=mW,f[T7]=[_.rA],f));f={};t.addProvider((f.provide=zX,f.useClass=
zX,f[T7]=[_.gx],f));f={};t.addProvider((f.provide=BW,f.useClass=BW,f[T7]=[q7],f));f={};t.addProvider((f.provide=M7,f.useClass=M7,f[T7]=[q7],f));t.addProvider({provide:i4,useClass:i4});t.addProvider({provide:Oc,useClass:Oc});t.addProvider({provide:u4,useClass:u4});f={};t.addProvider((f.provide=nT,f.useClass=nT,f[T7]=[_.rA,_.i2],f));t.addProvider({provide:z5,useClass:z5});f={};t.addProvider((f.provide=Ww,f.useClass=Ww,f[T7]=[_.iY,_.rA],f));t.addProvider({provide:cw,useClass:cw});f={};t.addProvider((f.provide=
kh,f.useClass=kh,f[T7]=[q8,_.iY,_.sy],f));f={};t.addProvider((f.provide=g3,f.useClass=g3,f[T7]=[_.iY,_.i2],f));t.addProvider({provide:TMp,useValue:T55});t.addProvider({provide:RvT,useValue:wW5});t.addProvider({provide:w3,useClass:w3});f={};t.addProvider((f.provide=KT,f.useClass=KT,f[T7]=[q8],f));f={};t.addProvider((f.provide=r3,f.useClass=r3,f[T7]=[_.Y9,_.i2],f));f={};t.addProvider((f.provide=G5,f.useClass=G5,f[T7]=[_.i2],f));t.addProvider({provide:Xh,useFactory:function(){return new Xh(_.$I())}});
t.addProvider({provide:ET5,useFactory:_.IO.getInstance});f={};t.addProvider((f.provide=T5,f.useClass=T5,f[T7]=[Pw,ET5,_.i2],f));t.addProvider({provide:N8,useClass:N8});t.addProvider({provide:gr,useClass:gr});t.addProvider({provide:sN,useClass:sN});t.addProvider({provide:_.wr,useClass:_.wr});t.addProvider({provide:pi,useClass:pi});f={};t.addProvider((f.provide=d3,f.useClass=d3,f[T7]=[tu],f));f={};t.addProvider((f.provide=Fh,f.useClass=Fh,f[T7]=[_.i2],f));f={};t.addProvider((f.provide=SV,f.useClass=
SV,f[T7]=[_.i2],f));f={};t.addProvider((f.provide=$h,f.useClass=$h,f[T7]=[_.i2],f));_.M("web_enable_prefetching_videos_on_home")&&(t.addProvider({provide:ef,useClass:ef}),t.addProvider({provide:v3,useClass:v3}));f={};t.addProvider((f.provide=Li,f.useClass=Li,f[T7]=[_.i2],f));t.addProvider({provide:tD,useClass:tD});f={};t.addProvider((f.provide=GX,f.useClass=GX,f[T7]=[_.iY,_.i2],f));f={};t.addProvider((f.provide=fT,f.useClass=fT,f[T7]=[_.i2],f));f={};t.addProvider((f.provide=Lv,f.useClass=Lv,f[T7]=
[_.iY,_.i2],f));t.addProvider({provide:ya,useClass:ya});t.addProvider({provide:V1,useClass:V1});f={};t.addProvider((f.provide=Yh,f.useClass=Yh,f[T7]=[tu,_.i2],f));t.addProvider({provide:Z1,useClass:Z1});f={};t.addProvider((f.provide=In,f.useClass=In,f[T7]=[tu,_.i2,_.iY],f));f={};t.addProvider((f.provide=xW,f.useClass=xW,f[T7]=[_.i2],f));f={};t.addProvider((f.provide=Fe,f.useClass=Fe,f[T7]=[_.i2,_.iY],f));f={};t.addProvider((f.provide=Uc,f.useClass=Uc,f[T7]=[_.i2,_.iY],f));f={};t.addProvider((f.provide=
aA,f.useClass=aA,f[T7]=[_.re],f));f={};t.addProvider((f.provide=Hw,f.useClass=Hw,f[T7]=[_.re],f));f={};t.addProvider((f.provide=oA,f.useClass=oA,f[T7]=[_.re],f));t.addProvider({provide:Q0,useClass:Q0});t.addProvider({provide:JP,useClass:JP});t.addProvider({provide:Rn,useClass:Rn});t.addProvider({provide:l4,useClass:l4});t.addProvider({provide:Xe,useClass:Xe});t.addProvider({provide:Bw,useClass:Bw});t.addProvider({provide:fi,useClass:fi});_.M("kevlar_enable_mss_lazy_load")&&t.addProvider({provide:_.IG,
useClass:mGA});t.addProvider({provide:_.on,useClass:c3});t.addProvider({provide:b1,useFactory:function(){return _.XA.getInstance()}});
t.addProvider({provide:OFl,useFactory:CHb});t.addProvider({provide:q7,useFactory:function(){return _.Az.getInstance()}});
t.addProvider({provide:Yzb,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});f={};t.addProvider((f.provide=_.lV,f.useClass=_.lV,f[T7]=[_.re,_.i2,_.gx,OFl,q7,b1,Yzb,ZO],f));t.addProvider({provide:_.Zl,useClass:XK8});t.addProvider({provide:_.TG8,useClass:PU_});f={};t.addProvider((f.provide=M8,f.useClass=M8,f[T7]=[_.TG8],f));f={};t.addProvider((f.provide=_.Nk,f.useFactory=function(N){return N.upliftCompletionResolver.promise},f[T7]=[Cx3],f));
f=_.Ka("IS_SHELL_LOAD")?"aa":"eocs";var X=_.Ka("IS_SHELL_LOAD")?3:2;_.TT().parkOrScheduleJob(function(){R5h()},X,f);
_.TT().parkOrScheduleJob(function(){_.Px().resolve(z0).start()},2,"eocs");
_.TT().parkOrScheduleJob(function(){cZ3()},2,"eocs");
_.TT().parkOrScheduleJob(function(){_.Px().resolve(G0).start()},2,"eocs");
_.M("kevlar_debug_data_app_registration_ks")||UEx();t.addProvider({provide:_.PO,useValue:new Dy_(A.root)});t.addProvider({provide:t4,useValue:new GaT});t.addProvider({provide:_.ol2,useValue:new V3h(A.root)});t.addProvider({provide:_.TD,useValue:new Zb8});t.addProvider({provide:_.V2,useClass:H7});t.addProvider({provide:d48,useClass:O4});_.M("kevlar_network_sli_killswitch")||t.addProvider({provide:shA,useValue:Ug8});t.addProvider({provide:Y8m,useFactory:bqT});_.M("web_bind_fetch")&&(f={},t.addProvider((f.provide=
V2y,f.useFactory=Wob,f[T7]=[_.z7(Y8m)],f)));_.M("web_bind_window_request")&&(f={},t.addProvider((f.provide=Zad,f.useFactory=ydz,f[T7]=[_.z7(Y8m)],f)));_.M("web_bind_text_decoder")&&(f={},t.addProvider((f.provide=okm,f.useFactory=v0x,f[T7]=[_.z7(Y8m)],f)));f={};t.addProvider((f.provide=oNd,f.useFactory=UZ0,f[T7]=[_.Nk,q8,_.fv],f));f={};t.addProvider((f.provide=Znd,f.useClass=j6,f[T7]=[oNd],f));t.addProvider({provide:CIA,useClass:OAh});t.addProvider({provide:xwm,useClass:YP3});f=[].concat(_.YV(V6));
_.M("web_continuation_response_processing")&&f.push(_.L1);f.push(Awi);_.M("enable_share_panel_navigation_logging_fix_on_web")&&f.push(_.PcE);t.addProvider({provide:bv5,useValue:f});t.addProvider({provide:Fgz,useClass:Igc});t.addProvider({provide:fUQ,useClass:kw2});f={};t.addProvider((f.provide=pJz,f.useClass=rrA,f[T7]=[tu],f));_.a6.addLowPriorityJob(function(){xj5()});
f={};t.addProvider((f.provide=Cqp,f.useFactory=function(N){return function(z){var T,O=(T=_.C(z.commandMetadata,_.Jl))==null?void 0:T.url;if(!O)throw new _.xj("No URL for PBJ Command",z);O=S9z(O,{pbj:"1"});T=lNu(O,{})||{};T=Object.assign({},T,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.ah("STS").toString()});z=_.vx({command:JSON.stringify(z),session_token:_.ah("XSRF_TOKEN")});return N.fetch(O,{method:"POST",headers:T,body:z})}},f[T7]=[fUQ],f));
t.addProvider({provide:Khm,useFactory:function(){var N={};return N.CSI=pqg(),N.ECATCHER=Lo5(),N}});
t.addProvider({provide:Rug,useClass:gk3});f=[];f.push(t.resolve(xwm));X={};X=(X.client_location=_.IO.getInstance(),X.consistency=_.lLb(),X.entities=t.resolve(nVd),X.response_received_commands=t.resolve(Fgz),X.store=t.resolve(_.yQx),X.tokens=t.resolve(xwm),X.service_params=t.resolve(Rug),X);if(_.M("web_shorts_prefetch_service_enabled")){var Q=new nC2(t.resolve(_.Id));X.shorts_prefetch=Q}X.adblock_detection=t.resolve(pJz);t.addProvider({provide:_.qA,useClass:_.qA});Q=t.resolve(_.YW);var q=[];_.M("PremiumClientSharedConfig__enable_att_context_processor")&&
(t.addProvider({provide:iOc,useClass:zNQ}),q.push(t.resolve(iOc)));if(_.M("owl_pl_await")){var e={};t.addProvider((e.provide=Ekw,e.useFactory=function(N){return new Lhw(N)},e[T7]=[_.qA],e));
q.push(t.resolve(Ekw))}mYT(Q,t.resolve(fUQ),t.resolve(jh3),X,t.resolve(_.Id),f,q,t.resolve(Znd),t.resolve(CIA));t.addProvider({provide:_.iY,useValue:_.IM.instance});_.M("start_client_gcf")&&t.addProvider({provide:YB,useValue:U_K()});t.addProvider({provide:bFh,useFactory:function(){return new bFh(_.Px().resolve(_.qA),_.Az.getInstance())}});
_.TT().parkOrScheduleJob(function(){W$h()},1,"eocs");
f={};t.addProvider((f.provide=uV,f.useClass=uV,f[T7]=[_.fv,_.iY],f));t.addProvider({provide:_.soQ,useFactory:_.W3.getInstance});_.TT().parkOrScheduleJob(function(){_.Px().resolve(uV).refresh()},0,"eocs");
t.addProvider({provide:_.Cs,useClass:JV2});_.M("kevlar_signal_collection_killswitch")||(f={},t.addProvider((f.provide=Gcl,f.useClass=Gcl,f[T7]=[Pw,tP],f)),_.TT().parkOrScheduleJob(function(){_.Px().resolve(Gcl).record()},1,"eocs"));
_.M("web_debug_handler_registration_killswitch")||_.TT().parkOrScheduleJob(function(){qSx("DOWNLOAD_PES",M8x);_.M("offline_client_state_export_ks")||qSx("OFFLINE_CLIENT_STATE",OM5)},0,"eocs");
_.M("kevlar_prevent_polymer_dynamic_font_load")&&_.TT().parkOrScheduleJob(function(){var N=[_.OP(Ni3),_.OP(u_w)];N=_.U(N);for(var z=N.next();!z.done;z=N.next()){z=z.value;var T=document.createElement("link");_.lL(T,z,"stylesheet");document.head.appendChild(T)}},1,"eocs");
f=A.injector.resolve(_.iY);_.Tk2.instance=new _.Tk2(f);gvx(Jth(new PLd(f)));f={};A.injector.addProvider((f.provide=id,f.useFactory=function(N){(N=N==null?void 0:N.getCurrentPage())?N=N.visibilityObserver:(Z4y||(Z4y=Ngx()),N=Z4y);return N},f[T7]=[_.z7(_.HO)],f.skipCache=!0,f));
t.addProvider({provide:_.DS,useClass:jf});t.addProvider({provide:$y,useClass:zYf});A.injector.addProvider({provide:U7l,useValue:nlc});t.addProvider({provide:kiT,useValue:kHd});t.addProvider({provide:q6K,useValue:Ujx});t.addProvider({provide:_.FH,useValue:hf0});A=t.addProvider;t28||(t28=new A8j);A.call(t,{provide:_.B3,useValue:t28});t.addProvider({provide:_.xA,useValue:_.ah("HTML_DIR")==="rtl"?"rtl":"ltr"});t.addProvider({provide:SVc,useClass:tnd});t.addProvider({provide:_.fI,useClass:Mk});_.Px().addProvider({provide:HOd,
useValue:_.M("enable_web_delhi_icons")?nBl.concat(Fih):EBl.concat(DAc)});t.addProvider({provide:_.hi,useClass:_.hi});t.addProvider({provide:_.eT8,useValue:new UGl});t.addProvider({provide:vm_,useClass:Lzd});t.addProvider({provide:N7,useClass:N7});t.addProvider({provide:PW,useClass:PW});A={};t.addProvider((A.provide=D1,A.useClass=D1,A[T7]=[_.iY,_.rA],A));t.addProvider({provide:Ec,useClass:Ec});t.addProvider({provide:K3j,useClass:aMj});t.addProvider({provide:cW,useClass:cW});t.addProvider({provide:eRT,
useValue:a4C});t.addProvider({provide:_.hm,useClass:pCQ});_.M("enable_payments_purchase_manager")&&t.addProvider({provide:MOd,useClass:OOw});t.addProvider({provide:qPd,useFactory:function(){return function(N){return _.lUd(N)}}});
t.addProvider({provide:_.ENy,useClass:nNm});A={};t.addProvider((A.provide=vW,A.useClass=vW,A[T7]=[_.ENy],A));t.addProvider({provide:TX,useClass:TX});t.addProvider({provide:oqc,useValue:M3y});t.addProvider({provide:nUT,useValue:_.ech});t.addProvider({provide:hP5,useClass:HFA});t.addProvider({provide:fk2,useValue:NbQ});A={};t.addProvider((A.provide=X58,A.useClass=Qh2,A[T7]=[fk2],A));A={};t.addProvider((A.provide=_.w4,A.useClass=Pnc,A[T7]=[X58],A));A={};t.addProvider((A.provide=_.m8,A.useClass=RI,A[T7]=
[_.Xk,_.V2],A));if(_.M("web_explore_hub_on_hover")||_.M("web_client_explore_hub_on_hover"))A={},t.addProvider((A.provide=uf,A.useClass=uf,A[T7]=[_.iY,b1],A));if(_.M("web_enable_renderer_logger")){var G=new dtx;ASu(function(){G.abort()});
t.addProvider({provide:EXb,useValue:new ND3(G.signal)})}t.addProvider({provide:GMS,useValue:LHs});t.addProvider({provide:zKz,useClass:Dcc});_.M("web_use_flow_state_manager")&&(t.addProvider({provide:_.dr,useClass:DWQ}),A={},t.addProvider((A.provide=Ss,A.useClass=Ss,A[T7]=[_.dr,_.i2],A)))}},oBd);var SvA={},$Aw=(SvA.initialized={priority:10,callback:function(){if(!w53){OI5();n0u("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.my(_.l0(n0u,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.M("log_heartbeat_with_lifecycles")){var A={};C2.instance||(C2.instance=new C2);C2.instance.install((A.document_visible={callback:Df5,priority:10},A.document_hidden={callback:Df5,priority:10},A))}else _.zO(document,"visibilitychange",Df5);w53=!0}(A=_.Ws())&&A!=="UNDEFINED_CSN"&&qm5(A)}},SvA);var H4w={},a32=(H4w.initialized={callback:function(A){var t=_.Xl(232091),f=A.injector.resolve(_.gx);_.jN(f,t);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?u2p()&&_.VA(f,t):(A=A.injector.resolve(qPd)("refresh_detector"))&&(A.get("first_tab_load")?_.VA(f,t):A.set("first_tab_load","1"))}},H4w);var Kih={},gBd=(Kih.initialized={priority:10,callback:Mp0},Kih);var wQd={},sid=(wQd.initialized={priority:0,callback:function(){var A=new JqT,t="other";_.e7?t="chrome":_.U1?t="firefox":_.kj?t="safari":Nq&&(t="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(f){A.increment(_.DU(),f,t)}).catch(function(){A.increment(_.DU(),!1,t)}):A.increment(_.DU(),!1,t)}},wQd);var kOd={},rO8=(kOd.rendering={priority:8,callback:CB5},kOd);var A4y={},tU8=(A4y.rendering={priority:10,callback:xDp},A4y.rendered={callback:Iaq},A4y),f_y={},X9j=(f_y.rendering={callback:xDp},f_y.rendered={callback:Iaq},f_y);var Qwd=!1,qI2={},J4d=(qI2.initialized={priority:10,callback:function(){Qwd||(dPu({didPatch:function(A){A.el&&$fb(A.el,A.props)},
didUnmount:function(A){dfq(A.el)}}),Qwd=!0)}},qI2);var U93=/^\/shorts\/?$/;_.H5("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:{}}}}}}});_.M("kevlar_use_common_module_manager_ks")?(_.gjx(new j3s),X$q()):Yeb();
(function(){var A=document.querySelector("ytd-app");if(!A)throw Error("Yj");A=new bV({root:A,injector:_.Px()});A.install($Aw);var t={};A.install((t.initialized={priority:10,callback:fLx},t));_.M("wp_lat_b")&&(t={},A.install((t.initialized={priority:10,callback:function(){hR5()}},t)));
t={};A.install((t.rendered={priority:0,callback:rw0},t));t={};A.install((t.rendered={priority:0,callback:function(){_.a6.addLowPriorityJob(function(){_.fgA>1&&(Hjb(),sSx())},4E4)}},t));
A.install(Y0j);A.install(a32);A.install(J4d);f80();A.install(Kyd);A.install(njc);A.install(xGh);A.install(fMc);A.install(U4y);A.install(Hkl);A.install(dA8);_.M("kevlar_enable_mss_lazy_load")&&A.install(gBd);A.install(Fy8);A.install(sid);if(!_.Ka("IS_SHELL_LOAD")||_.M("kevlar_fetch_initial_data_promise_client")||_.M("sw_nav_preload_pbj")){var f=_.Wx(window.location.href);t=f&&f==="/watch";f=f&&f.match(U93);t?A.install(X9j):f?A.install(rO8):A.install(tU8)}else A.install(Ly_);A.install(ZkQ);_.M("web_enable_prefetching_videos_on_home")&&
A.install(k7d);_.M("start_client_gcf")&&A.install(akd);A.install(syd);(new Uqf).increment("INSTALLED");A.install(wxA);A.install(Wyh);A.transition("initialized");Pt5();Ufp()})();
_.Xc=[[["OXJ2OXl0dWlneG1ia2luZCM=","dmtibzhrZjlmbTEydmFsdWUj"],"bDNyM2E2cWU4MTJnQURfUExBQ0VNRU5UX0tJTkRfTUlMTElTRUNPTkRTIw=="]];_.fp=["eDZzaDdlM3lldWh1Z2xvYmFsQ2FsbGJhY2tzIw==","NjE3Z2VxaWtyaGN5b25BYm5vcm1hbGl0eURldGVjdGVkIw==","Zm16ZG44OHBsMWkzb25BZFNraXAj","cjMwd3AzdDc3eDMzcmF3X3BsYXllcl9yZXNwb25zZSM=","bGFtdmhobTdkM3c4cGxheWVyQWRzIw=="];_.Cy="eDZzaDdlM3lldWh1Z2xvYmFsQ2FsbGJhY2tzIw== NjE3Z2VxaWtyaGN5b25BYm5vcm1hbGl0eURldGVjdGVkIw== Zm16ZG44OHBsMWkzb25BZFNraXAj cjMwd3AzdDc3eDMzcmF3X3BsYXllcl9yZXNwb25zZSM= NXRrMmVxOGEwNHBjd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIw== bnowZ3hnNGliNGJyYWJfc2FfZWYj bGFtdmhobTdkM3c4cGxheWVyQWRzIw==".split(" ");
_._ModuleManager_initialize=function(A,t){if(!_.je){if(!_.VT)return;_.gjx(_.VT())}_.je.setAllModuleInfoString(A,t)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var hMd,RMQ;_.Sf=function(A){return!!A.getOptions("captions")};
_.Cdh=function(A){return(A=A.getOption("captions","track"))?!!A.displayName:!1};
_.$S=function(A,t){_.Ma(t,A,function(){return hMd[t]},function(f){hMd[t]=f;
if(!_.M("mweb_player_ve_show_ks")){var X=_.Ws(0);X&&f&&_.Y7(X,f)}})};
_.H3=function(A){(A=hMd[A])&&_.VA(_.er(),A)};
hMd={};var m9y;/*

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
*/
_.CN({_template:function(){if(m9y!==void 0)return m9y;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;RMQ===void 0&&(RMQ=document.createElement("template"));var X=RMQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return m9y=A},
is:"tp-yt-paper-checkbox",behaviors:[_.eiS],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.us(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var A=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),t="px",f=A.match(/[A-Za-z]+$/);f!==null&&(t=f[0]);A=parseFloat(A);f=8/3*A;t==="px"&&(f=Math.floor(f),f%2!==A%2&&f++);this.updateStyles({"--paper-checkbox-ink-size":f+
t})}})},
_computeCheckboxClass:function(A,t){var f="";A&&(f+="checked ");t&&(f+="invalid");return f},
_computeCheckmarkClass:function(A){return A?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.JU7._createRipple.call(this)}});var bVd=new _.UA("radioButtonSurveyOptionRenderer"),WEd=new _.UA("checkboxSurveyOptionRenderer");var y4m;var vHQ;var LEd=0,aI=function(){var A=_.F.call(this)||this;A.selected=!1;A.isOverlay=!1;A.inputId="toggle-option-"+LEd;LEd++;return A};
_.R(aI,_.F);aI.prototype.onTap=function(){_.s9(this.hostElement,"ytd-toggle-option-clicked")};
_.V([_.n(),_.H("design:type",String)],aI.prototype,"label",void 0);_.V([_.n(),_.H("design:type",String)],aI.prototype,"inputId",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aI.prototype,"selected",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aI.prototype,"isOverlay",void 0);_.V([_.y_({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.H("design:paramtypes",[])],aI);
_.Y(aI,"ytd-toggle-option-renderer",function(){if(vHQ!==void 0)return vHQ;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return vHQ=A},{mode:1});var Kv=function(){var A=_.F.apply(this,arguments)||this;A.isToggleOption=!1;A.isOverlay=!1;return A};
_.R(Kv,_.F);Kv.prototype.onTap=function(A){A.preventDefault();this.data&&(A=!this.data.checked,this.set("data.checked",A),_.s9(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:A,value:this.data.value}))};
_.PV.Object.defineProperties(Kv.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Kv.prototype.onTap=Kv.prototype.onTap;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Kv.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Kv.prototype,"isToggleOption",void 0);_.V([_.n(),_.H("design:type",Object)],Kv.prototype,"isOverlay",void 0);_.V([_.y("data.responseText"),_.H("design:type",String),_.H("design:paramtypes",[])],Kv.prototype,"label",null);
_.V([_.UQ("ytd-toggle-option-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Kv.prototype,"onTap",null);_.V([_.y_({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Kv);
_.Y(Kv,"ytd-checkbox-survey-option-renderer",function(){if(y4m!==void 0)return y4m;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return y4m=A},{mode:1});var p9y;var EH8;var gy=function(){var A=_.F.apply(this,arguments)||this;A.checked=!1;A.isToggleOption=!1;return A};
_.R(gy,_.F);gy.prototype.onTap=function(){this.data&&(this.checked?_.kJ(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.kJ(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
gy.prototype.onTap=gy.prototype.onTap;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gy.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],gy.prototype,"checked",void 0);_.V([_.n(),_.H("design:type",Object)],gy.prototype,"isToggleOption",void 0);_.V([_.UQ("ytd-toggle-option-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],gy.prototype,"onTap",null);
_.V([_.y_({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],gy);
_.Y(gy,"ytd-radio-button-survey-option-renderer",function(){if(EH8!==void 0)return EH8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return EH8=A},{mode:1});var wy=function(){var A=_.F.apply(this,arguments)||this;A.disableAnimation=!1;A.isToggleOption=!0;A.followUpSurveyCommand=null;A.selectedRatingEndpoint=null;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;A.styleOverrideAttribute=!0;A.isDarkMode=!1;A.isSubmitted=!1;A.roundedContainer=!0;A.improveShortsResponseRate=_.M("web_improve_shorts_response_rate");A.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 A};
_.R(wy,_.F);_.J=wy.prototype;
_.J.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"}}}}};
_.J.attached=function(){var A=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(f){var X;if((X=f[0])!=null&&X.isIntersecting){_.J7().reportShown(A.hostElement);var Q;(Q=A.intersectionObserver)==null||Q.unobserve(A.hostElement)}},{rootMargin:"0px",
threshold:.6});var t;(t=this.intersectionObserver)==null||t.observe(this.hostElement)};
_.J.onDarkModeToggledAction=function(A){this.isDarkMode=A};
_.J.dataChanged=function(){var A;if(((A=this.data)==null?void 0:A.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var t;((t=this.data)==null?void 0:t.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var f,X,Q,q;this.darkColorPalette=(f=this.data)==null?void 0:(X=f.inlineContent)==null?void 0:(Q=X.compactVideoRenderer)==null?void 0:(q=Q.thumbnail)==null?
void 0:q.darkColorPalette;var e,G,N,z;this.lightColorPalette=(e=this.data)==null?void 0:(G=e.inlineContent)==null?void 0:(N=G.compactVideoRenderer)==null?void 0:(z=N.thumbnail)==null?void 0:z.lightColorPalette;var T,O;if(((T=this.data)==null?0:(O=T.inlineContent)==null?0:O.compactVideoRenderer)&&this.isShortsStyle){var c,B,h,W;A=_.KI((c=this.data)==null?void 0:(B=c.inlineContent)==null?void 0:(h=B.compactVideoRenderer)==null?void 0:(W=h.thumbnail)==null?void 0:W.thumbnails);_.Q_(this.hostElement,
{"--yt-background-url":"url("+A+")"})}};
_.J.handleRequestCompletion=function(){this.hostElement.hidden&&_.s9(this.hostElement,"yt-dismissible-item-dismissed")};
_.J.onPopupClosed=function(A){var t;((t=A.detail)==null?void 0:t.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.kJ(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.J.handleInlineSurveyRatingSelect=function(A,t){var f=this;this.selectedRatingEndpoint=A;this.followUpSurveyCommand=t;this.expanded=!!A;this.getOptionRenderers().forEach(function(X,Q){f.notifyPath("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked");f.set("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),A=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.kJ(this.hostElement,"yt-reel-non-video-content-dismissal-command",[A]))};
_.J.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.kJ(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var A,t=(A=this.data)==null?void 0:A.dismissalEndpoint;t&&this.ytComponentBehavior.resolveCommand(t)}};
_.J.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.kJ(this.hostElement,"yt-close-popup-action"))};
_.J.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var A=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{A=this.getOptionRenderers().filter(function(X){return X.checked});
if(A.length===0)return;A=A.map(function(X){return X.responseEndpoint})}var t=[];
A.forEach(function(X,Q){Q!==0&&(X=_.C(X,_.vF))&&X.feedbackToken&&t.push(X.feedbackToken)});
if(A=A[0]){var f={};t.length>0&&(f.extra_feedback_tokens=t);this.ytComponentBehavior.resolveCommand(A,{form:f})}}};
_.J.getOptionRenderers=function(){var A=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(t){A.isSingleSelect=!!_.C(t,bVd);return A.isSingleSelect?_.C(t,bVd):_.C(t,WEd)}):[]};
_.J.handleInlineSurveyOptionSelect=function(A){A=this.optionSelector.indexOf(A);A!==-1&&this.optionSelector.selectIndex(A)};
_.J.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.J.maybeGetBackgroundColor=function(A){return this.isDarkMode?A.section2Color:A.section3Color};
_.J.colorPaletteChanged=function(){var A=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;A=A&&this.maybeGetBackgroundColor(A);this.dismissibleEl.style.backgroundColor=!A||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.mt(A)};
_.PV.Object.defineProperties(wy.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
wy.prototype.colorPaletteChanged=wy.prototype.colorPaletteChanged;wy.prototype.onPopupClosed=wy.prototype.onPopupClosed;wy.prototype.handleRequestCompletion=wy.prototype.handleRequestCompletion;wy.prototype.dataChanged=wy.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],wy.prototype,"actionHandlerBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],wy.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],wy.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.lo("#follow-up-survey-options"),_.H("design:type",Object)],wy.prototype,"optionSelector",void 0);_.V([_.n(),_.H("design:type",Object)],wy.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],wy.prototype,"disableAnimation",void 0);_.V([_.n(),_.H("design:type",Object)],wy.prototype,"isToggleOption",void 0);_.V([_.n(),_.H("design:type",Object)],wy.prototype,"followUpSurveyCommand",void 0);_.V([_.n(),_.H("design:type",Object)],wy.prototype,"selectedRatingEndpoint",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],wy.prototype,"expanded",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],wy.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],wy.prototype,"isShortsStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],wy.prototype,"styleOverrideAttribute",void 0);_.V([_.n(),_.H("design:type",Boolean)],wy.prototype,"isSingleSelect",void 0);_.V([_.n(),_.H("design:type",Object)],wy.prototype,"isDarkMode",void 0);
_.V([_.n(),_.H("design:type",Object)],wy.prototype,"lightColorPalette",void 0);_.V([_.n(),_.H("design:type",Object)],wy.prototype,"darkColorPalette",void 0);_.V([_.y("selectedRatingEndpoint","isShortsStyle"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wy.prototype,"isOptionSelected",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],wy.prototype,"roundedContainer",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],wy.prototype,"improveShortsResponseRate",void 0);_.V([_.lo("#dismissible"),_.H("design:type",HTMLElement)],wy.prototype,"dismissibleEl",void 0);_.V([_.lo("#dismiss-button yt-icon-button"),_.H("design:type",HTMLElement)],wy.prototype,"dismissButtonEl",void 0);_.V([_.lo("#inline-survey-header yt-icon-button"),_.H("design:type",HTMLElement)],wy.prototype,"inlineHeaderDismissButtonEl",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wy.prototype,"dataChanged",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wy.prototype,"handleRequestCompletion",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],wy.prototype,"onPopupClosed",null);
_.V([_.ev("darkColorPalette","lightColorPalette","isDarkMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wy.prototype,"colorPaletteChanged",null);_.V([_.y_({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],wy);
_.Y(wy,"ytd-inline-survey-renderer",function(){if(p9y!==void 0)return p9y;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return p9y=A},{mode:1});var nHy=["en-CA","en","es-MX","fr-CA"];_.D92=_.I(function(A){var t=_.Sv(A,{isOverlay:!1,isModern:!1}),f=t.captionIconType,X=t.onClick;A=t.ariaLabel;var Q=t.ariaPressed,q=t.isOverlay,e=t.isModern;t=_.GU("button",function(z){_.$S(z,127299)});
var G=_.f1(function(z){_.H3(127299);X==null||X(z);return!1}),N={};
return _.u("ytm-closed-captioning-button",{class:_.Ao("ytmClosedCaptioningButtonHost",(N.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return f()===-1&&q()},N.ytmClosedCaptioningButtonIconDisabled=function(){return f()===-1&&!q()},N))},_.u("button",{el:t,
class:"ytmClosedCaptioningButtonButton",title:A,"aria-label":A,"aria-pressed":Q,"on:click":G},_.u(_.el,{icon:function(){var z="",T=e();var O=T?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";T=T?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var c=_.NJ().get("hl");O=!c||nHy.includes(c)?O:T;T=f();switch(T){case -1:case 0:z=O;break;case 1:z=O+"_FILLED";break;default:_.ap(T)}return z}})))},"oh");
_.D92.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Va=function(A,t,f,X,Q){var q={};t&&(q[t]=f);X?q.errorType=X:Q&&(q.errorReason=Q);_.SY(A,q);_.$B()};
_.Z6=function(A){var t=_.TT();return _.pyS(t,A,1)};
_.CN({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 A=this.query;A&&(this.full||A[0]==="("||(A="("+A+")"),this._mq=window.matchMedia(A),this._add(),this.queryHandler(this._mq))},
queryHandler:function(A){this._setQueryMatches(A.matches)}});var PdA;var T$Q;var iVm=function(){};
_.J=iVm.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J._createRipple=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
iVm=_.CN({is:"tp-yt-paper-radio-button",_template:function(){if(T$Q!==void 0)return T$Q;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;PdA===void 0&&(PdA=document.createElement("template"));var X=PdA;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return T$Q=A},
behaviors:[_.eiS],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(){_.us(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var A=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),t=Math.floor(3*A);t%2!==A%2&&t++;this.updateStyles({"--paper-radio-button-ink-size":t+"px"})}})}});var OVy;var c4j;_.CN({_template:function(){if(c4j!==void 0)return c4j;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;OVy===void 0&&(OVy=document.createElement("template"));var X=OVy;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return c4j=A},
is:"tp-yt-paper-radio-group",behaviors:[_.t7l],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(A){var t=this._valueToItem(A);if(!t||!t.hasAttribute("disabled")){if(this.selected){t=this._valueToItem(this.selected);if(this.selected==A)if(this.allowEmptySelection)A="";else{t&&(t.checked=!0);return}t&&
(t.checked=!1)}_.jv.select.apply(this,[A]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(A){this._focusPrevious();A.preventDefault();this._activateFocusedItem()},
_onDownKey:function(A){this._focusNext();A.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(A){_.AJf._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(A){_.AJf._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.jv._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.az._resetTabindices.apply(this,arguments);this.items.forEach(function(A){A.removeAttribute("aria-selected")},this)}});var B$y;_.C1("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var oI=function(){return _.F.apply(this,arguments)||this};
_.R(oI,_.F);_.J=oI.prototype;_.J.computeHasPrimaryIcon=function(A){return!(!A.icon&&!A.thumbnail)};
_.J.computeHasSecondary=function(A){return!(!A.secondaryIcon&&!A.secondaryNotificationText)};
_.J.computeHideSecondaryString=function(A){return!_.M("disable_hide_empty_secondary_string")&&!A.secondaryNotificationText};
_.J.computeCompactLinkStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.J.computeHasFitHeight=function(A){return A==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.J.isActiveEndpoint=function(A){return(A=this.get("commandMetadata.webCommandMetadata.url",A))?_.Wx(window.location.href)!=="/account_transfer_channel"&&_.Wx(window.location.href)!=="/gaia_link"&&_.Wx(window.location.href)!=="/channel_switcher"||A!=="/account"?_.Wx(window.location.href)===A:!0:!1};
_.J.onTap=function(){var A;((A=this.data)==null?0:A.serviceEndpoint)&&_.Al(this.hostElement,[this.data.serviceEndpoint])};
oI.prototype.onTap=oI.prototype.onTap;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],oI.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.H("design:type",Boolean)],oI.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.H("design:type",String)],oI.prototype,"compactLinkStyle",void 0);
_.V([_.n({computed:"computeIcon_(data.icon)"}),_.H("design:type",Object)],oI.prototype,"icon",void 0);_.V([_.n({computed:"computeIcon_(data.secondaryIcon)"}),_.H("design:type",Object)],oI.prototype,"secondaryIcon",void 0);_.V([_.n({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],oI.prototype,"hasSecondary",void 0);_.V([_.n({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],oI.prototype,"hideSecondaryString",void 0);
_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oI.prototype,"onTap",null);_.V([_.y_({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],oI);
_.Y(oI,"ytd-compact-link-renderer",function(){if(B$y!==void 0)return B$y;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return B$y=A},{mode:1});var MUd;_.C1("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var dy=function(){var A=_.F.apply(this,arguments)||this;A.role="link";A.tabindex="0";A.actionMap=_.M("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 A};
_.R(dy,_.F);_.J=dy.prototype;_.J.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.np()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.J.getCurrentTheme=function(){return _.D2()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.np()};
_.J.onThemeSelected=function(A,t){var f=A||t?A:_.EF(),X=(f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.UKu(_.Wx(window.location.href));_.u0(0,165,A);_.u0(0,174,t);this.prefs.save();X&&_.kJ(this.hostElement,"yt-dark-mode-toggled-action",[f]);_.kJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.onTap=function(){this.data.serviceEndpoint&&_.Al(this.hostElement,[this.data.serviceEndpoint])};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
dy.prototype.onTap=dy.prototype.onTap;dy.prototype.dataChanged=dy.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],dy.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.zn),_.H("design:type",Object)],dy.prototype,"paperItemBehaviors",void 0);_.V([_.n(),_.H("design:type",Object)],dy.prototype,"data",void 0);_.V([_.n({value:function(){return _.NJ()}}),
_.H("design:type",_.le)],dy.prototype,"prefs",void 0);_.V([_.n(),_.H("design:type",Object)],dy.prototype,"label",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dy.prototype,"role",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dy.prototype,"tabindex",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dy.prototype,"dataChanged",null);
_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dy.prototype,"onTap",null);_.V([_.y_({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],dy);
_.wR()(dy,"ytd-toggle-theme-compact-link-renderer",function(){if(MUd===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);MUd=A}A=MUd;return A},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var FEA,I_2,x9h,YIc,VU3,ZV_,oHA,d9w,SIA,$9h,kU_,ry,swd,a_h,w9h,gHw,KE8,HVy,r4m,AW8,t03,ffj,Ax,XVc,QW3,UPA,fu,qg2,qE,tx,Xa,JWd,Ql,esh,GS2,lfm,N62,uB_,zsc,T6c,iP3,OPm,cWh,B68,M0c,Csl,hs2,Rsy,mPm,WjA,yW3,vid,pV3,niw,Fjh,Ifj,xPm,jW3,V0j,ZPh,oiy,dPy,Sgm,$Pd,HPQ,Kjd,kSh,sWQ,giw,rW3,wVA,AG8,Qq3,Xsd,tal,fTw,US,q9c,Ui2,eZw,Grc,PSm,T2d,iGh,OGy,cG3,B2h,Ma2,CSh,hZd,mic,bGl,Wx8,yGl,vJl,Lxd,psd,EJ3,Fxc,lTh;
_.s4=function(A){var t=new _.xj("Error accessing DB");return _.ij0().then(function(f){return new Promise(function(X,Q){try{var q=f.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(A);q.onsuccess=function(){var e=q.result;X(e?e.value:null)};
q.onerror=function(){t.params={key:A,source:"onerror"};Q(t)}}catch(e){t.params={key:A,
thrownError:String(e)},Q(t)}})},function(){return null})};
FEA=function(A,t){return _.q_(A.entities,"inlineExpansionEntity",t)};
I_2=function(A,t){return _.q_(A.entities,"flowStateEntity",t)};
x9h=function(A,t){if(A&&t){var f=_.uj();f().set(A,t);_.ur5(f())}};
_.jwh=function(A,t){if(A&&t){var f=_.uj();f().set(A,t);_.ur5(f())}};
YIc=function(A,t){return _.q_(A.entities,"contextNoteUserRatingEntityPayload",t)};
VU3=function(A){return _.ng(A,function(t){return t.languageCode==="en"})};
ZV_=function(A){var t=kS;if(_.Cdh(A))A.setOption("captions","stickyLoading",{}),A.setOption("captions","track",{});else{var f=_.ng(_.Wnx(A),function(X){return X.displayName===t});
A.setOption("captions","track",f)}};
oHA=function(A){if(!A)return 0;var t=A.getPresentingPlayerType(),f=A.getVideoData();return f&&f.isLive?(A=A.getProgressState(t),A.seekableEnd-A.seekableStart):A.getDuration(t)};
d9w=function(A,t){for(var f=_.U(Object.keys(A)),X=f.next();!X.done;X=f.next())if(X=X.value,A[X]!==t[X])return!1;return!0};
SIA=function(){return document.getElementById("player-control-overlay")};
$9h=function(A){A!==-1&&!_.M("player_controls_log_creation_killswitch")&&SIA()&&(_.Wt("pcu_cs",A),_.Wt("pcu_ce"))};
kU_=function(A,t){var f=_.dR(A,{}),X=HVy("top",t),Q=HVy("bottom",t),q=HVy("left",t),e=HVy("right",t);return _.U7({top:function(){return ry(f().position,X)},
bottom:function(){return ry(f().position,Q)},
left:function(){return ry(f().position,q)},
right:function(){return ry(f().position,e)},
position:function(){return ry(f().positionType,a_h)},
height:function(){return ry(f().height,Ax)},
width:function(){return ry(f().width,Ax)},
"min-width":function(){return ry(f().minWidth,Ax)},
"min-height":function(){return ry(f().minHeight,Ax)},
"max-width":function(){return ry(f().maxWidth,Ax)},
"max-height":function(){return ry(f().maxHeight,Ax)},
"aspect-ratio":function(){return ry(f().aspectRatio,String)},
"margin-top":function(){return ry(f().margin,X)},
"margin-bottom":function(){return ry(f().margin,Q)},
"margin-left":function(){return ry(f().margin,q)},
"margin-right":function(){return ry(f().margin,e)},
"padding-top":function(){return ry(f().padding,X)},
"padding-bottom":function(){return ry(f().padding,Q)},
"padding-left":function(){return ry(f().padding,q)},
"padding-right":function(){return ry(f().padding,e)},
"flex-direction":function(){return ry(f().flexDirection,KE8)},
"justify-content":function(){return ry(f().justifyContent,gHw)},
"align-items":function(){return ry(f().alignItems,w9h)},
"flex-grow":function(){return ry(f().flexGrow,String)},
"flex-shrink":function(){return ry(f().flexShrink,String)},
"flex-basis":function(){return ry(f().flexBasis,Ax)},
"align-self":function(){return ry(f().alignSelf,w9h)},
"flex-wrap":function(){return ry(f().flexWrap,swd)},
"align-content":function(){return ry(f().alignContent,w9h)}})};
ry=function(A,t){return A!==void 0?t(A):void 0};
swd=function(A){switch(A){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
a_h=function(A){switch(A){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
w9h=function(A){switch(A){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"}};
gHw=function(A){switch(A){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"}};
KE8=function(A){switch(A){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"}};
HVy=function(A,t){var f=t==="rtl";switch(A){case "top":var X=r4m;break;case "bottom":X=AW8;break;case "left":X=t03;break;default:X=ffj}return function(Q){return ry(X(Q,f),Ax)}};
r4m=function(A){var t=A.top;var f=A.vertical;A=A.all;var X;return(X=t!=null?t:f)!=null?X:A};
AW8=function(A){var t=A.bottom;var f=A.vertical;A=A.all;var X;return(X=t!=null?t:f)!=null?X:A};
t03=function(A,t){var f=A.left;var X=A.end;var Q=A.start;var q=A.horizontal;A=A.all;var e,G;return(G=(e=f!=null?f:t?X:Q)!=null?e:q)!=null?G:A};
ffj=function(A,t){var f=A.right;var X=A.end;var Q=A.start;var q=A.horizontal;A=A.all;var e,G;return(G=(e=f!=null?f:t?Q:X)!=null?e:q)!=null?G:A};
Ax=function(A){var t=A.value;switch(A.unit){case "YPC_DIMENSION_UNIT_POINT":return t+"px";case "YPC_DIMENSION_UNIT_FRACTION":return t+"%";default:return""+t}};
XVc=function(A){switch(A){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"}};
QW3=function(A){var t=A!=null?A:{};A=t.fontRole;var f=t.fontSize;t=t.fontWeight;if(A!==null&&f!==null)switch(A){case "YPC_FONT_ROLE_DISPLAY":switch(f){case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(f){case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return t===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(f){case "YPC_FONT_SIZE_XL":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
UPA=function(A,t,f){function X(O){return Object.values(O).map(function(c){var B=c.productId;c=c.pricingOptionIndex;return tx(Q(B).pricingOptions,c).pricingOptionId})}
function Q(O){return N().get(O)}
function q(O){O=X(O);f(O)}
function e(O,c){return Array.from(fu(O.pricingOptions)).filter(function(B){B=_.U(B);B.next();B=B.next().value;return Xa(B.pricingGroupAttributes,c)}).map(function(B){return _.U(B).next().value})}
var G=Ql([A,t],function(O,c){var B=O==null?void 0:O.selectedPricingOptions;O={};var h=!0;if(B&&c.length)for(var W=_.U(c),L=W.next();!L.done;L=W.next()){L=L.value;var E=qg2(L.pricingOptions,function(Z){a:{Z=Z.pricingOptionId;for(var d=_.U(B),K=d.next();!K.done;K=d.next())if(K.value===Z){Z=!0;break a}Z=!1}return Z});
if(E>=0){h=!1;var D=tx(L.pricingOptions,E),S=void 0;O[L.groupId]={productId:L.productId,pricingOptionIndex:E,pricingGroupAttributes:(S=D)==null?void 0:S.pricingGroupAttributes}}}h&&c.length&&(h=tx(c[0].pricingOptions,0),O[c[0].groupId]={productId:c[0].productId,pricingOptionIndex:0,pricingGroupAttributes:h==null?void 0:h.pricingGroupAttributes});return O}),N=Ql([t],function(O){return new Map(O.map(function(c){return[c.productId,
c]}))}),z=Ql([t],function(O){var c=new Map;
O=_.U(O);for(var B=O.next();!B.done;B=O.next()){var h=B.value;B=h.groupId;var W=h.productId;h=_.U(fu(h.pricingOptions));for(var L=h.next();!L.done;L=h.next()){var E=_.U(L.value);L=E.next().value;E=E.next().value;c.set(E.pricingOptionId,{groupId:B,productId:W,index:L,pricingOption:E,pricingGroupAttributes:E.pricingGroupAttributes})}}return c}),T=Ql([t],function(O){var c=new Map;
O=_.U(O);for(var B=O.next();!B.done;B=O.next()){var h=B.value;B=h.groupId;var W=h.productId,L=void 0;h=_.U(fu((L=h.pricingGroups)!=null?L:[]));for(L=h.next();!L.done;L=h.next()){var E=_.U(L.value);L=E.next().value;E=E.next().value;c.set(E.pricingGroupId,{groupId:B,productId:W,index:L,pricingGroup:E,pricingGroupAttributes:E.pricingGroupAttributes})}}return c});
return{getProductById:Q,isProductSelected:function(O){var c=Q(O);if(!c)return!1;var B;return((B=G()[c.groupId])==null?void 0:B.productId)===O},
getSelectedPricingOptions:function(){return Object.values(G()).map(function(O){var c=O.productId;O=O.pricingOptionIndex;return tx(Q(c).pricingOptions,O)})},
getSelectedPricingGroupAttributesByGroupId:function(O){var c;return(O=(c=G()[O])==null?void 0:c.pricingGroupAttributes)?Array.from(O):void 0},
getSelectedProductByGroupId:function(O){var c;return(O=(c=G()[O])==null?void 0:c.productId)?Q(O):void 0},
onProductSelected:function(O){var c=Q(O);if(c){var B=G(),h;if(((h=B[c.groupId])==null?void 0:h.productId)!==O){var W=(h=(W=B[c.groupId])==null?void 0:W.productId)?Q(h):void 0;var L;h=(L=B[c.groupId])==null?void 0:L.pricingGroupAttributes;var E;L=(E=B[c.groupId])==null?void 0:E.pricingOptionIndex;if(W&&L!==void 0)if(h){E=e(W,h).indexOf(L);if(E===-1)throw Error("Zj`"+L+"`"+W.productId);L=e(c,h);E=E<L.length?L[E]:L.length>0?L[0]:0}else E=L<qE(c.pricingOptions)?L:0;else E=0;qE(c.pricingOptions)<=E&&(E=
0);L=tx(c.pricingOptions,E);var D;W={};q(Object.assign({},B,(W[c.groupId]={productId:O,pricingOptionIndex:E,pricingGroupAttributes:(D=L==null?void 0:L.pricingGroupAttributes)!=null?D:[]},W)))}}},
onPricingOptionSelected:function(O){var c=z().get(O);if(c){O=c.groupId;var B=c.productId;c=c.index;var h=G(),W,L;if(((W=h[O])==null?void 0:W.productId)!==B||((L=h[O])==null?void 0:L.pricingOptionIndex)!==c){var E,D;W={};q(Object.assign({},h,(W[O]={productId:B,pricingOptionIndex:c,pricingGroupAttributes:(D=(E=h[O])==null?void 0:E.pricingGroupAttributes)!=null?D:[]},W)))}}},
onPricingGroupSelected:function(O){var c=T().get(O);if(c){O=c.groupId;var B=c.productId,h=c.pricingGroup.pricingGroupAttributes,W=Q(B);if(W){c=G();var L=c[O].pricingGroupAttributes,E;if(((E=c[O])==null?void 0:E.productId)!==B||!Xa(JWd(L,qE(h)),h)){E=Array.from(h);for(h=qE(h);h<qE(L);h++){var D="",S=!1,Z=Array.from(E);Z.push(tx(L,h));for(var d=_.U(W.pricingGroups),K=d.next();!K.done;K=d.next())if(K=K.value,Xa(K.pricingGroupAttributes,Z)){E.push(tx(L,h));S=!0;break}else D===""&&qE(K.pricingGroupAttributes)===
Z.length&&Xa(JWd(K.pricingGroupAttributes,E.length),E)&&(D=tx(K.pricingGroupAttributes,h));S||E.push(D)}D=c[O].pricingOptionIndex;h=[];S=new Map;Z=0;W=_.U(fu(W.pricingOptions));for(d=W.next();!d.done;d=W.next())K=_.U(d.value),d=K.next().value,K=K.next().value,Xa(K.pricingGroupAttributes,E)&&h.push(d),Xa(K.pricingGroupAttributes,L)&&S.set(d,Z++);h.length===0?L=0:(L=S.get(D),L=L!==void 0&&L<h.length?h[L]:h[0]);W={};q(Object.assign({},c,(W[O]={productId:B,pricingOptionIndex:L,pricingGroupAttributes:E},
W)))}}}},
onClearGroupSelected:function(O){var c=G();c[O]&&(c=Object.fromEntries(Object.entries(c).filter(function(B){return _.U(B).next().value!==O})),q(c))}}};
fu=function(A){return function f(){var X,Q,q,e,G;return _.Ju(f,function(N){switch(N.nextAddress){case 1:_.WC(N,2),X=0,Q=_.U(A),q=Q.next();case 4:if(q.done){N.jumpTo(2);break}e=q.value;G=_.Uu;return N.yield([X++,e],7);case 7:G(N.yieldResult);q=Q.next();N.jumpTo(4);break;case 2:_.mz(N),_.yP(N,0)}})}()};
qg2=function(A,t){A=_.U(fu(A));for(var f=A.next();!f.done;f=A.next()){var X=_.U(f.value);f=X.next().value;X=X.next().value;if(t(X))return f}return-1};
qE=function(A){var t=0;for(A=A[Symbol.iterator]();!A.next().done;)++t;return t};
tx=function(A,t){A=_.U(fu(A));for(var f=A.next();!f.done;f=A.next()){var X=_.U(f.value);f=X.next().value;X=X.next().value;if(f===t)return X}};
Xa=function(A,t){if(!A&&!t)return!0;if(!A||!t)return!1;A=Array.from(A);t=Array.from(t);if(A.length!==t.length)return!1;for(var f=0;f<A.length;f++)if(A[f]!==t[f])return!1;return!0};
JWd=function(A,t){t=t===void 0?Infinity:t;var f=[];A=_.U(fu(A));for(var X=A.next();!X.done;X=A.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;if(X>=t)break;X>=0&&f.push(Q)}return f};
Ql=function(A,t){var f,X;return function(){for(var Q=A.map(function(e){return e()}),q=0;q<Q.length;q++)if(!f||Q[q]!==f[q]){f=Q;
X=t.apply(null,_.YV(Q));break}return X}};
esh=function(A,t,f){var X=[];A=_.U(A);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var q=void 0;((q=t)==null?0:q.length)&&!Xa(Q.pricingGroupAttributes,t)||X.push({pricingOption:Q,isSelected:f.includes(Q.pricingOptionId)})}return X};
GS2=function(A,t){return _.q_(A.entities,"pdpStateEntity",t)};
lfm=function(A){var t,f;return!!(A.productId&&A.groupId&&((t=A.pricingOptions)==null?0:t.length)&&A.pricingOptions.every(function(X){return X.pricingOptionId})&&((f=A.pricingGroups)==null||!f.length||Array.isArray(A.pricingGroups)&&A.pricingGroups.every(function(X){return X.pricingGroupId&&X.pricingGroupAttributes&&X.pricingGroupAttributes.length>0})))};
N62=function(A,t,f){return UPA(A,Ql([t],function(X){return X.filter(lfm)}),f)};
uB_=function(A,t){return t.length===0?[A]:[A.slice(0,t[0]),A.slice(t[0])].filter(function(f){return f.length>0})};
zsc=function(A){switch(A){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""}};
T6c=function(A,t,f,X){X=Object.assign({},X);_.Mx(X,Ps3,{selectedOptionId:A,primaryButtonOverride:f});_.ZK().dispatch(_.Ta("flowStateEntity",t,X))};
iP3=function(A,t,f){!_.C(f,Ps3)&&A.noPreselect&&t!==""&&A.defaultButtonOverride&&T6c("default",t,A.defaultButtonOverride,f)};
OPm=function(A){switch(A){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
cWh=function(A){switch(A){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
B68=function(A,t){if(t)return"ytCardViewModelCardSelected";switch(A){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
M0c=function(A,t){t.includes(A)?t=t.filter(function(f){return f!==A}):t.push(A);
return[].concat(_.YV(t))};
Csl=function(A,t){return _.q_(A.entities,"contextNoteFeedEntityPayload",t)};
hs2=function(A,t){switch(A){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return t==null?void 0:t.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return t==null?void 0:t.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return t==null?void 0:t.ratingNotHelpfulText}};
Rsy=function(A,t,f){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:f||A.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:A.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:A.deleteDialogTitle}]},dialogMessages:[{runs:[{text:A.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.deleteActionText}]},command:{performCommentActionEndpoint:{action:t}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
mPm=function(A,t,f){var X;if(A&&((X=t())==null?0:X.includes(A))){var Q;f((Q=t())==null?void 0:Q.filter(function(q){return q!==A}))}else f([].concat(_.YV(t()||[]),[A]))};
WjA=function(A,t){if(A){var f=[];t=_.U((t==null?void 0:t.checkboxes)||[]);for(var X=t.next();!X.done;X=t.next()){X=_.C(X.value,bP3);var Q=void 0;((Q=X)==null?0:Q.value)&&A.includes(X.key||"")&&f.push(X.value)}return f}};
yW3=function(A){A.style.height="auto";A.style.height=A.scrollHeight+"px"};
vid=function(A){return[A.syncStep,A.asyncStep].filter(function(t){return t!==void 0})};
pV3=function(A){var t,f,X;if(A=(t=A.structuredContextNoteFormSchema)==null?void 0:(f=t.fieldSchemas)==null?void 0:(X=f.noteBody)==null?void 0:X.validationSchema)for(t=_.U(vid(A)),f=t.next();!f.done;f=t.next()){f=f.value.rules;if(!f)break;f=_.U(f);for(f=f.next();!f.done;f=f.next())return _.C(f.value,_.Ljj)}};
niw=function(A){if(A){A=_.U(vid(A));for(var t=A.next();!t.done;t=A.next()){t=t.value.rules;if(!t)break;t=_.U(t);for(t=t.next();!t.done;t=t.next())return _.C(t.value,EiA)}}};
Fjh=function(A){if(A){A=_.U(vid(A));for(var t=A.next();!t.done;t=A.next()){t=t.value.rules;if(!t)break;t=_.U(t);for(t=t.next();!t.done;t=t.next())return _.C(t.value,DPc)}}};
Ifj=function(A){A=/^https?:\/\//.test(A)?A:"http://"+A;try{var t=_.kC(A)}catch(f){return!1}if(t.toString()!==A)return!1;A=t.JSC$10115_domain_.split(".");return A.length>1&&A.every(function(f){return!!f})};
xPm=function(A,t,f,X){var Q;X=(Q=X.structuredContextNoteData)==null?void 0:Q.createCommentEndpoint;if(Q=_.C(X,_.voC))return Q.commentText=_.oC(A),Q.videoPositionMention=t,Q.sources=f,X};
jW3=function(A){return A==null?void 0:A.stringValue};
V0j=function(A,t,f){A=A.map(function(X,Q){return{listItemViewModel:{title:X.title,subtitle:X.subtitle,leadingImage:X.leadingImage,trailingImage:Q===t?Ygh:void 0,rendererContext:{commandContext:{onTap:X.onTap}}}}});
return Object.assign({},f&&{header:{panelHeaderViewModel:{title:f}}},{content:{listViewModel:{listItems:A}}})};
ZPh=function(A,t){if(A&&t)switch(t){case "SELECTION_TYPE_BOOL":return A.boolValue;case "SELECTION_TYPE_INT":return A.intValue;case "SELECTION_TYPE_STRING":return A.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return A.privacyStatusValue}};
oiy=function(A){var t;A=(t=A.options)==null?void 0:t.findIndex(function(f){return f.isSelected});
return A===void 0?-1:A};
dPy=function(A,t,f){var X=function(){return A().label},Q={},q=_.Ao("ytDropdownViewModelLabel",(Q.ytDropdownViewModelLabelError=t,Q));
return _.u(_.P,{cond:function(){return A().label&&!(f()===-1&&A().label&&!A().placeholderText)},
then:function(){return _.u("div",{class:q},_.u(_.zL,{text:X}))}})};
Sgm=function(A,t){var f={};f=_.Ao("ytDropdownViewModelTitle",(f.ytDropdownViewModelTitlePlaceholder=function(){return t()===-1},f));
return _.u("div",{class:f},_.u(_.zL,{text:function(){var X=A();var Q=t();if(Q===-1)X=X.placeholderText?X.placeholderText:X.label;else{var q,e;X=(q=X.options)==null?void 0:(e=q[Q])==null?void 0:e.title}return X}}))};
$Pd=function(A,t){var f=function(){return A().hint};
return _.u(_.Tw,null,_.u(_.P,{cond:function(){return f()&&!t()},
then:function(){return _.u("div",{class:_.Ao("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.u(_.zL,{text:f,className:"ytDropdownViewModelSupportText"}))}}),_.u(_.P,{cond:t,
then:function(){return _.u("div",{id:"dropdown-view-model-error",role:"alert",class:_.Ao("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.u(_.el,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.u(_.zL,{text:t,className:"ytDropdownViewModelSupportText"}))}}))};
HPQ=function(A,t){var f=_.Px().resolve(_.TG8);_.oh(function(){var X=A().id;X&&f!=null&&f.dropdownMap.set(X,t)})};
Kjd=function(A){A=_.C(A.scheduleButton,afw);A=_.C(A==null?void 0:A.primaryButton,_.zf);A=_.C(A==null?void 0:A.onTap,_.mG);var t,f,X=((f=_.C(A,_.Xd))==null?void 0:f.commands)||[A];f=_.U(X);for(A=f.next();!A.done&&!(t=_.C(A.value,_.Wdf));A=f.next());var Q;t=(Q=t)==null?void 0:Q.createBroadcastRequest;if(!t)throw Error("fk");return t};
kSh=function(A,t,f){f=f===void 0?{}:f;var X,Q;return _.l(function(q){if(X=giw(t))return q.return(X);(Q=wVA(A,t,f))&&sWQ(t,Q);return q.return(Q)})};
sWQ=function(A,t){var f=rW3(A);f&&t.then(function(X){_.Px().resolve(_.Id).put(f,new _.xy({innertubeResponse:X}))})};
giw=function(A){if(A=rW3(A)){var t=_.Px().resolve(_.Id);if(t.has(A))return t.get(A).then(function(f){return f==null?void 0:_.wP(f)})}return null};
rW3=function(A){var t=_.C(A.endpoint,_.ZT);if(t!=null&&t.videoId)return t={videoId:t.videoId},_.M("web_imp_player_mute_params")&&(t.mutedAtStart=A.startPlaybackInMutedState),_.VX("inline_playback",t)};
wVA=function(A,t,f){A=_.jl(A,t.endpoint,AG8(t,f)).then(function(X){return X});
return Promise.resolve(A)};
AG8=function(A,t){t=_.M("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!A.startPlaybackInMutedState},t):Object.assign({},{vis:5,autonav:"1"},t);var f;t={contentPlaybackContext:_.Xt(t,(f=_.C(A.endpoint.commandMetadata,_.Jl))==null?void 0:f.url,window.location.href)};_.M("web_imp_player_mute_params")&&(t.overrideMutedAtStart=!A.startPlaybackInMutedState);return t};
Qq3=function(A,t){var f=window.MutationObserver;f&&(Jx=new f(function(X,Q){X=_.U(X);for(var q=X.next();!q.done;q=X.next()){q=q.value;var e;if(e=q.type==="childList"&&q.target)a:{e=A;q=tal(q.target);e=tal(e);for(var G=null,N=0;N<q.length;N++)if(e.includes(q[N])){if(N===0){e=!1;break a}G=q[N];break}G?(q=fTw(q,G),e=fTw(e,G),e=q<e):e=!1}if(e){t();Q.disconnect();break}}}),(f=Xsd())&&Jx.observe(f,{childList:!0,
subtree:!0}))};
Xsd=function(){var A=document.getElementsByTagName("ytd-rich-grid-renderer");if(A.length>0)return A[0];A=document.getElementsByTagName("ytd-section-list-renderer");return A.length>0?A[0]:null};
tal=function(A){for(var t=[];A;)t.push(A),A=A.parentElement;return t};
fTw=function(A,t){var f=Array.from(t.children);t=A.indexOf(t);return t>0?f.indexOf(A[t-1]):-1};
US=function(A,t,f){f=f===void 0?{}:f;return _.e5(A,f,t)};
q9c=function(A){switch(A){case "MUSIC":return!0;default:return!1}};
Ui2=function(A){if(A=A==null?void 0:A.find(function(X){var Q,q;return((Q=_.C(X,JGy))==null?void 0:(q=Q.inlinePlaybackBadgeData)==null?void 0:q.replicateAsTimestamp)===!0}))if(A=_.C(A,JGy),A==null?0:A.icon){var t,f;
if((A=(t=_.XW5(A.icon))==null?void 0:(f=t.clientResource)==null?void 0:f.imageName)&&q9c(A))return A}};
eZw=function(A){return A==null?void 0:A.filter(function(t){return t.premiereTrailerBadgeRenderer})};
Grc=function(A){var t,f=A==null?void 0:(t=A.find(function(N){return N.thumbnailOverlayTimeStatusRenderer}))==null?void 0:t.thumbnailOverlayTimeStatusRenderer,X,Q;
if((f==null?0:(X=f.icon)==null?0:X.iconType)&&q9c(f==null?void 0:(Q=f.icon)==null?void 0:Q.iconType)){var q;return{icon:f==null?void 0:(q=f.icon)==null?void 0:q.iconType}}var e;if(t=A==null?void 0:(e=A.find(function(N){return N.thumbnailOverlayBadgeViewModel}))==null?void 0:e.thumbnailOverlayBadgeViewModel)if(e=Ui2(t.thumbnailBadges))return{icon:e};
var G;if(A=A==null?void 0:(G=A.find(function(N){return N.thumbnailBottomOverlayViewModel}))==null?void 0:G.thumbnailBottomOverlayViewModel)if(G=Ui2(A.badges))return{icon:G};
return{}};
PSm=function(A,t){var f=new lTh(function(q){Q(q)},t);
t=_.U(_.hZ(N23(f),void 0,"D2uee"));var X=t.next().value,Q=t.next().value;_.oo(function(){Promise.resolve().then(function(){var q,e=(q=A())!=null?q:{};f.playerControlsData=e;f.lastSeenPlayerApi=_.AQb(e.playerApi);u5w(f)});
_.dD(function(){zZh(f)})},"xfRk8b");
return X};
T2d=function(A){return function(t){var f=A(),X={playerState:t};if(t===1){var Q;(Q=f.playerApi)==null||Q.loadModule("captions")}if(t===0){var q;(q=f.playerApi)==null||q.unloadModule("captions")}t!==-1&&f.setState(X)}};
iGh=function(A){return function(t){A().setState({playbackRate:t})}};
OGy=function(A){return function(t){var f=A(),X=f.playerApi,Q=X==null?void 0:X.getVideoData(),q=(Q==null?void 0:Q.isLive)||!1;Q=Q==null?void 0:Q.video_id;q={videoDuration:oHA(X||void 0),isLive:q,videoId:Q};q.videoId!==f.videoId&&(q=Object.assign({},_.n2x(X),q));if(t==null?0:t.playertype)q.playerType=t.playertype;if(X){q.captionsAvailable=_.Sf(X);t=q;var e;Q=(e=X.getStoryboardLevel(X.getNumberOfStoryboardLevels()-1))==null?void 0:e.intervalMs;t.storyboardInterval=Q?Q/1E3:void 0;q.captionsAvailable&&
(q.captionsEnabled=_.Cdh(X))}q.volumeMuted=!(X==null||!X.isMuted());f.setState(q)}};
cG3=function(A){return function(t){var f=A(),X=f.playerApi;if(X){var Q=X.getPresentingPlayerType();t={playedTime:t||0,percentLoaded:X.getVideoLoadedFraction(),playerType:Q};f.playerState===0&&(t.playedTime=f.videoDuration);f.isLive&&(Q=X.getProgressState(Q),t.playedTime-=Q.seekableStart,t.videoDuration=oHA(X));if(f.playerType===1)X=!1;else{var q;if((q=f.uxConfig)==null?0:q.showCuedOverlay){var e;X=!((e=f.playerApi)==null?0:e.getPlayerStateObject(f.playerType).isDomPaused)}else X=!0}X&&delete t.playedTime;
f.setState(t)}}};
B2h=function(A){return function(){var t=A(),f,X,Q,q={volume:(Q=(f=t.playerApi)==null?void 0:f.getVolume())!=null?Q:0,volumeMuted:!((X=t.playerApi)==null||!X.isMuted())};t.setState(q)}};
Ma2=function(A){return function(){var t=A(),f=t.playerApi;if(f){var X={captionsAvailable:_.Sf(f)};X.captionsAvailable&&(X.captionsEnabled=_.Cdh(f));t.setState(X)}}};
CSh=function(A){return{appApi:Object.assign({},_.bzg(),{showCaptionsToggleToast:function(t){var f,X;(X=(f=A()).showCaptionsToggleToast)==null||X.call(f,t)},
openInMiniplayer:function(){var t,f;(f=(t=A()).openInMiniplayer)==null||f.call(t)}})}};
hZd=function(A,t){var f,X,Q;return!!(A==null?0:(f=A.playerResponse)==null?0:(X=f.playerConfig)==null?0:(Q=X.inlinePlaybackConfig)==null?0:Q.showScrubbingControls)&&!(t==null?0:t.hideScrubbingControls)};
_.RZ8=function(A){var t=!A.miniplayerIsActive;return[5,2,0].includes(A.miniplayerPlaybackState)||t};
mic={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};bGl=function(A){this.onStepChangeCallback=function(){};
this.flowRenderer=A};
bGl.prototype.getCurrentStep=function(){var A=this,t;return((t=this.flowRenderer.steps)!=null?t:[]).map(function(f){return _.C(f,_.KX)}).find(function(f){return f&&f.stepId===A.currentStepId})};
Wx8=function(A,t){var f=t.flowStateEntityKey,X=A.flowStates.get(f);if(X)return X;t=new bGl(t);A.flowStates.set(f,t);return t};
yGl=function(A,t){for(var f=_.U(A.flowStates.entries()),X=f.next();!X.done;X=f.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;if(Q.flowRenderer.targetId===t){A.flowStates.delete(X);break}}};
vJl=function(A,t){A.onStepChangeCallback=t;A.onStepChangeCallback(A.getCurrentStep())};
Lxd=function(A,t){var f=A.getCurrentStep();if(!f||f.stepId!==t){var X;((X=A.flowRenderer.steps)!=null?X:[]).map(function(Q){return _.C(Q,_.KX)}).find(function(Q){return Q&&Q.stepId===t})&&(A.currentStepId=t,A.onStepChangeCallback(A.getCurrentStep()))}};
psd=function(A,t){var f,X,Q,q,e;_.l(function(G){if(!t.length)return G.return([]);f=[];X=_.U(t);for(Q=X.next();!Q.done;Q=X.next())q=Q.value,(e=A.resolveIcon(q))&&!A.iconCache[e.url]&&f.push(_.Oaw(A,e).then(function(){}).catch(function(){}));
return G.return(Promise.all(f))})};
EJ3=function(A,t){var f=[];t=(new Set(t)).values();t=_.U(t);for(var X=t.next();!X.done;X=t.next()){X=X.value;for(var Q=_.U(Object.values(mic)),q=Q.next();!q.done;q=Q.next())f.push({iconName:X,iconStyle:q.value})}psd(A.iconManager,f)};
_.nJ_=function(A,t,f){var X=f!=null?f:A.iconsToFetch;X!=null&&X.length?t!==void 0&&t>=0?_.jY(_.a6,function(){EJ3(A,X)},t):EJ3(A,X):Promise.resolve()};
_.Diy=_.li(function(A,t,f){if(A.nextWireType_!==5)return!1;_.ui(t,f,_.xp(A.decoder_));return!0},function(A,t,f){t=_.CKT(t);
t!=null&&(_.zH(A,f,5),_.Pu(A.encoder_,t))},_.Udp);
Fxc=[0,_.oD,_.Diy,-1];_.ITw=function(){return _.r0({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
lTh=function(A,t){var f=xi3,X=this;this.renderFn=A;this.listeners=f;this.context=t;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Q;this.lastSeenPlayerApi=_.AQb((Q=this.playerControlsData)==null?void 0:Q.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.n2x(),void 0);_.M("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){N23(X).setState({playerState:-1});X.resetRecentlyNavigatedJobId&&_.a6.cancelJob(X.resetRecentlyNavigatedJobId);
X.recentlyNavigated=!0;X.resetRecentlyNavigatedJobId=_.a6.addJob(function(){X.recentlyNavigated=!1},8,1E4)})};
lTh.prototype.setState=function(A){if(!_.M("mweb_player_skip_no_op_state_changes")||!d9w(A,this.state))if(this.state=Object.assign({},this.state,A),!_.M("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)A=-1,_.M("player_controls_log_creation_killswitch")||SIA()||(A=(0,_.OJ)()),_.Wt("pcu_s"),_.Wt("pcu_se"),_.Wt("pcu_rs"),this.renderFn(N23(this)),_.Wt("pcu_re"),$9h(A),_.a6.addJob(function(){_.Wt("pcu_ap")},8)};
var N23=function(A){var t;var f=_.AQb((t=A.playerControlsData)==null?void 0:t.playerApi);return Object.assign({},A.state,{setState:A.boundSetState,domMeasurements:{progressBarLineRect:A.progressBarLineRect},playerApi:f,appApi:A.context.appApi,playerContainer:A.context.playerContainer,playerControlContainer:A.context.playerControlContainer,uxConfig:A.context.uxConfig})},u5w=function(A){A.listeners.forEach(function(t){A.eventListenerCleanupFunctions.push(t.register(function(){return N23(A)},function(){return A.getData()}))})},
zZh=function(A){A.eventListenerCleanupFunctions.forEach(function(t){t()});
A.eventListenerCleanupFunctions.length=0};
lTh.prototype.getData=function(){return this.playerControlsData};var jqA=[0,_.Xy,_.aD,_.Xy,-1,_.aD,[0,_.Kd,_.wV,-1],_.Xy,-1];var Y93=[0,[1,2,3],_.kp,-2];var Vay=[0,_.Xy];var ZGA=new _.UA("crowdsourcedContextUserRatingFormFlowState");var oJj=new _.UA("noteViewModel");var eo=new _.UA("abuseReportFlowState");var dij=new _.UA("feedbackFormFlowState");var S9Q=new _.UA("inputBoxViewModel");_.Ljj=new _.UA("lengthValidationRule");var EiA=new _.UA("regexValidationRule");var DPc=new _.UA("selectedValidationRule");var $iy=[0,_.wV,_.Xy,_.UY];var HGw=[0,_.aD,-2,Fxc];var aTm=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(aTm,_.e3);aTm.prototype.getFeature=function(){return _.Wz(this,6)};
aTm.prototype.hasFeature=function(){return _.Cw(_.zR(this,6))!=null};var Kxj=[0,_.wV];var gJc=_.Bu(aTm,[0,_.aD,-2,Fxc,_.aD,_.wV,-1,_.S7,-1,_.wV,-3,_.W3T,_.Kd,HGw,_.wV,-1,jqA,_.S7,_.wV,$iy,[0,[0,_.wV,-2,2,_.wV,-1,[0,_.wV],[0,_.Xy,_.wV],[0,_.Xy],[0,_.wV],2,[0,_.Xy,2,[0,_.Xy,-1],[0,_.rV,Y93],1,[0,Vay],1,[0,_.wV]],[0,_.Kd],[0,[1,2],_.A1,[0,_.wV],_.A1,[0,_.wV,_.f3,-1]],[0,_.Xy],[0,_.wV,[0,[1,2,3,4],_.A1,[0,[0,_.wV],Kxj],_.A1,[0,[0,_.wV],Kxj],_.A1,[0,Kxj],_.A1,[0,[0,_.wV],Kxj]]],[0,_.wV],1,[0,_.wV,_.Xy],1,[0,_.wV],[0,_.Kd],[0,_.wV,_.Xy,-1,[0,_.wV,-4]],[0,_.wV],[0,_.wV,-2],1,[0,_.wV],[0,
_.Kd],[0,_.Kd,_.wV],1,[0,_.Kd],[0]],_.wV,_.Xy,_.oD,1,_.t1,_.wV,_.Xy],_.aD,_.t1,_.Xy,-1,_.aD]);var ws_=new _.UA("talkToRecsViewModel");var sqj=new _.UA("creatorGoalSetUpFlowDropdownItemViewModel");var krA=new _.UA("creatorGoalSetUpFlowDropdownViewModel");var JGy=new _.UA("thumbnailBadgeViewModel");var rGm=new _.UA("checkboxGroupViewModel");var bP3=new _.UA("checkboxItemViewModel");_.Ge=new _.UA("radioButtonGroupViewModel");var AlA=new _.UA("radioButtonItemViewModel");var afw=new _.UA("panelFooterViewModel");var t5d=new _.UA("ypcCancelRecurrenceCommand");var fNm=new _.UA("cancellationFlowState");var Ps3=new _.UA("premiumPurchaseFlowState");var Xtj=new _.UA("surveyAnswerCardRenderer");var Q7m=new _.UA("showMoreButtonRenderer");var qOd;var Jll,UJd=function(){if(Jll!==void 0)return Jll;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;qOd===void 0&&(qOd=document.createElement("template"));var X=qOd;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return Jll=A};var l3=function(){var A=_.F.apply(this,arguments)||this;A.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";A.goalDescription="";A.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";A.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";A.startButtonId="start-button";A.exampleButtonId="example-button";return A};
_.R(l3,_.F);_.J=l3.prototype;_.J.getGoalDropdownItems=function(){var A,t;return(t=_.C((A=this.data)==null?void 0:A.purchaseTargetDropdown,krA))==null?void 0:t.dropdownItems};
_.J.getTimerDropdownItems=function(){var A,t;return(t=_.C((A=this.data)==null?void 0:A.timerDropdown,krA))==null?void 0:t.dropdownItems};
_.J.getColorDropdownItems=function(){var A,t;return(t=_.C((A=this.data)==null?void 0:A.colorDropdown,krA))==null?void 0:t.dropdownItems};
_.J.getDropdownItemText=function(A){var t;return(t=_.C(A,sqj))==null?void 0:t.itemLabel};
_.J.getDropdownItemValue=function(A){A=_.C(A,sqj);return(A==null?void 0:A.timeLimit)||(A==null?void 0:A.purchaseTarget)||(A==null?void 0:A.eligiblePurchaseType)};
_.J.updateFlowState=function(A){_.kJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:A}])};
_.J.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.J.updateGoalValue=function(A){this.goal=A.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.J.onTextValueChanged=function(A){this.goalDescription=A.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.J.updateTimerValue=function(A){this.timer=A.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.J.updateTierValue=function(A){this.tier=A.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.J.getButtonViewModel=function(A){A=(A==null?void 0:A.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var t,f=_.C((t=this.data)==null?void 0:t.startGoalButton,_.zf);return Object.assign({},f,{state:A})};
_.PV.Object.defineProperties(l3,{template:{configurable:!0,enumerable:!0,get:function(){return UJd()}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],l3.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],l3.prototype,"goal",void 0);_.V([_.n(),_.H("design:type",Object)],l3.prototype,"goalDescription",void 0);_.V([_.n(),_.H("design:type",Object)],l3.prototype,"timer",void 0);_.V([_.n(),_.H("design:type",Object)],l3.prototype,"tier",void 0);
_.V([_.n(),_.H("design:type",Object)],l3.prototype,"startButtonId",void 0);_.V([_.n(),_.H("design:type",Object)],l3.prototype,"exampleButtonId",void 0);_.V([_.WU({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],l3);_.Y(l3,"yt-creator-goal-set-up-flow-view-model",function(){return UJd()},{mode:0});var e1l;var Gtd;var lNy;var N03=function(){return _.F.apply(this,arguments)||this};
_.R(N03,_.F);_.V([_.n(),_.H("design:type",Object)],N03.prototype,"data",void 0);_.V([_.WU({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],N03);
_.Y(N03,"yt-survey-answer-card-renderer",function(){if(lNy===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Gtd===void 0&&(Gtd=document.createElement("template"));var X=Gtd;f.call(t,X.content.cloneNode(!0),A.content.firstChild);lNy=A}A=lNy;return A},{mode:2});var udA;var z1w;var NE=function(){return _.F.apply(this,arguments)||this};
_.R(NE,_.F);_.J=NE.prototype;_.J.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.J.selectedItemChanged=function(A){_.kJ(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[A.feedbackToken||""]}])};
_.J.surveyAnswerCardRendererClicked=function(A){if(A.target&&_.C(A.model.item,Xtj)){var t=A.target;A=_.C(A.model.item,Xtj);A.onTapCommand?_.tl(t,[A.onTapCommand],t):this.data.onTapCommand&&_.tl(t,[this.data.onTapCommand],t);this.selectedItemChanged(A)}};
_.J.checkIsCancellationStyle=function(A){return A==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.J.updateSelectedItemFromBinding=function(A){this.selectedItem=A.detail.value};
NE.prototype.onSelectedItemChanged=NE.prototype.onSelectedItemChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],NE.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],NE.prototype,"selectedItem",void 0);_.V([_.n({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.H("design:type",Boolean)],NE.prototype,"isCancellationStyle",void 0);
_.V([_.ev("selectedItem"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NE.prototype,"onSelectedItemChanged",null);_.V([_.WU({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],NE);
_.Y(NE,"yt-survey-flow-step-renderer",function(){if(z1w===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;udA===void 0&&(udA=document.createElement("template"));var X=udA;f.call(t,X.content.cloneNode(!0),A.content.firstChild);z1w=A}A=z1w;return A},{mode:2});var u3=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return A};
_.R(u3,_.F);u3.prototype.handleSurveyFlowStepOptionChanged=function(A){this.ytdReduxBehavior.dispatch(_.r0({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:A}));_.kJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:A}}])};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],u3.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],u3.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],u3.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],u3);
_.Y(u3,"ytd-survey-flow-step-renderer",function(){if(e1l!==void 0)return e1l;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return e1l=A},{mode:1});_.Ofw=_.I(function(A){var t=A.data;var f=A.hideDivider;var X=A.isChannelInfoCard;A={};return _.u("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.u("div",{class:_.Ao("yt-profile-identity-info-view-model__frame",(A["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!t().channelBanner},A))},_.u(P0w,{profileIdentityInfoData:t}),_.u("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.u("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.u(_.P1,{data:function(){return t().avatar}},{avatarViewModel:_.QK})),_.u(T0j,{profileIdentityInfoData:t})),_.u(_.P,{cond:function(){return t().channelDescription},
then:function(Q){var q={};return _.u("div",{class:_.Ao((q["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(X==null||!X())},q["yt-profile-identity-info-view-model__channel-description"]=function(){return!(X==null?0:X())},q))},Q)}}),_.u(ifl,{profileIdentityInfoData:t}),_.u(_.P,{cond:function(){return!(f==null?0:f())},
then:function(){return _.u("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"ph");
_.Ofw.idomCompat=!0;var ifl=_.I(function(A){var t=A.profileIdentityInfoData;return _.u("div",{class:"yt-profile-identity-info-view-model__buttons"},_.u(_.xk,{each:function(){return t().subscribeButton?[t().subscribeButton,t().channelAccess]:[t().channelAccess]}},function(f){return _.u("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.u("div",{class:"yt-profile-identity-info-view-model--button"},_.u(_.P1,{data:function(){return f}},{buttonViewModel:_.nx,
subscribeButtonViewModel:_.Qj})))}))},"qh"),T0j=_.I(function(A){var t=A.profileIdentityInfoData;
return _.u("div",{class:"yt-profile-identity-info-view-model__trio"},_.u("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.u(clh,{profileIdentityInfoData:t}),_.u(_.P1,{data:function(){return t().threeDotMenu}},{buttonViewModel:_.nx})),_.u(B0h,{profileIdentityInfoData:t}))},"rh"),clh=_.I(function(A){var t=A.profileIdentityInfoData;
return _.u("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.u("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return t().channelDisplayName}),_.u(_.P,{cond:function(){return t().verifiedOrOacBadge},
then:function(f){return _.u("div",{class:"yt-profile-identity-info-view-model__badge"},_.u(_.YA,{data:function(){return{thumbnails:[{url:f().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"sh"),P0w=_.I(function(A){var t=A.profileIdentityInfoData;
return _.u("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.u(_.P1,{data:function(){var f=t().channelBanner;if(f)return{imageBannerViewModel:{image:f.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(f){return _.u("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.u(_.Os,{data:f.data,
isPositionRelative:!0}))}}))},"th"),B0h=_.I(function(A){var t=A.profileIdentityInfoData;
return _.u("div",{class:"yt-profile-identity-info-view-model__metadata"},_.u("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.u("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return t().channelHandle}),_.u(_.P,{cond:function(){return t().channelPronouns&&t().channelHandle},
then:function(){return _.u("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.u("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return t().channelPronouns})),_.u("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.u("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return t().leftOfBulletInfo}),_.u(_.P,{cond:function(){return t().leftOfBulletInfo&&t().rightOfBulletInfo},
then:function(){return _.u("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.u("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return t().rightOfBulletInfo})))},"uh");var M5d;var ze=function(){return _.F.apply(this,arguments)||this};
_.R(ze,_.F);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ze.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ze.prototype,"data",void 0);_.V([_.y_({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],ze);
_.Y(ze,"ytd-channel-history-renderer",function(){if(M5d!==void 0)return M5d;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return M5d=A},{mode:1});var C0y;var h1y=function(){return _.F.apply(this,arguments)||this};
_.R(h1y,_.F);_.V([_.n(),_.H("design:type",Object)],h1y.prototype,"data",void 0);_.V([_.y_({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],h1y);
_.Y(h1y,"ytd-feature-enablement-info-renderer",function(){if(C0y!==void 0)return C0y;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return C0y=A},{mode:1});var R1A;var mJQ;var PB=function(){var A=_.F.apply(this,arguments)||this;A.textBoxMaxLength=_.M("enable_tvod_campaign_code_integration")?15:12;return A};
_.R(PB,_.F);_.J=PB.prototype;_.J.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.J.onSubmit=function(){var A=this.data.serviceEndpoint,t=_.C(A,_.ZB);t&&A&&(t.couponCode=this.userInput,_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}}))};
_.J.validate=function(){var A=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=A&&!this.data.errorMessage;this.showErrorMessage=A&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.M("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.J.computeStyle=function(A){return A};
_.J.computeShowValidationBelowInput=function(A){return A!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.J.updateUserInputFromBinding=function(A){this.userInput=A.currentTarget.value};
_.J.updateShowErrorMessageFromBinding=function(A){this.showErrorMessage=A.detail.value};
_.PV.Object.defineProperties(PB.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
PB.prototype.dataChanged=PB.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],PB.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],PB.prototype,"userInput",void 0);_.V([_.n(),_.H("design:type",Boolean)],PB.prototype,"disableApplyButton",void 0);_.V([_.n(),_.H("design:type",Boolean)],PB.prototype,"hideApplyButton",void 0);
_.V([_.n(),_.H("design:type",Boolean)],PB.prototype,"hideErrorMessage",void 0);_.V([_.n(),_.H("design:type",Boolean)],PB.prototype,"showTick",void 0);_.V([_.n(),_.H("design:type",Boolean)],PB.prototype,"showErrorMessage",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],PB.prototype,"couponStyle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.H("design:type",Boolean)],PB.prototype,"showValidationBelowInput",void 0);_.V([_.n(),_.H("design:type",Object)],PB.prototype,"textBoxMaxLength",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PB.prototype,"dataChanged",null);
_.V([_.y("showTick","showErrorMessage","userInput"),_.H("design:type",String),_.H("design:paramtypes",[])],PB.prototype,"validationState",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],PB);
_.Y(PB,"ytd-ypc-coupon-renderer",function(){if(mJQ!==void 0)return mJQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return mJQ=A},{mode:1});var Te=function(){return _.F.apply(this,arguments)||this};
_.R(Te,_.F);Te.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"}}}};
Te.prototype.computeStyle=function(A){return A};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Te.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],Te.prototype,"buttonStyle",void 0);_.V([_.y_({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Te);
_.Y(Te,"ytd-flow-bottom-bar-renderer",function(){if(R1A!==void 0)return R1A;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return R1A=A},{mode:1});var bfy;var WPl;var yl_;var i3=function(){return _.F.apply(this,arguments)||this};
_.R(i3,_.F);i3.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
i3.prototype.focus=function(A){this.title&&_.eY(this.title,A)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],i3.prototype,"data",void 0);_.V([_.lo("#title"),_.H("design:type",HTMLElement)],i3.prototype,"title",void 0);_.V([_.y_({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],i3);
_.Y(i3,"ytd-flow-top-bar-renderer",function(){if(yl_!==void 0)return yl_;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return yl_=A},{mode:1});var v7j;var LPA;var ptm;var OS=function(){return _.F.apply(this,arguments)||this};
_.R(OS,_.F);OS.prototype.freeTextValueChanged=function(){_.kJ(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
OS.prototype.updateFreeTextValueFromBinding=function(A){this.freeTextValue=A.detail.value};
_.PV.Object.defineProperties(OS.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(t=(A=this.data)==null?void 0:A.responseMaxLength)!=null?t:500,X;return((X=this.freeTextValue)!=null?X:"").length>=f?"maxed-out":""}}});
OS.prototype.freeTextValueChanged=OS.prototype.freeTextValueChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],OS.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],OS.prototype,"freeTextValue",void 0);_.V([_.lo("#user-input"),_.H("design:type",HTMLTextAreaElement)],OS.prototype,"input",void 0);
_.V([_.y("freeTextValue"),_.H("design:type",Object),_.H("design:paramtypes",[])],OS.prototype,"characterLimitClass",null);_.V([_.ev("freeTextValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OS.prototype,"freeTextValueChanged",null);_.V([_.WU({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],OS);
_.Y(OS,"yt-free-text-input-flow-step-renderer",function(){if(ptm===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;LPA===void 0&&(LPA=document.createElement("template"));var X=LPA;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ptm=A}A=ptm;return A},{mode:2});var cB=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return A};
_.R(cB,_.F);cB.prototype.handleFreeTextFlowStepInputChanged=function(A){_.kJ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:A}}])};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],cB.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],cB.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cB.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],cB);
_.Y(cB,"ytd-free-text-input-flow-step-renderer",function(){if(v7j!==void 0)return v7j;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return v7j=A},{mode:1});var E7l;var n73;var DJ2=function(){return _.F.apply(this,arguments)||this};
_.R(DJ2,_.F);_.V([_.n(),_.H("design:type",Object)],DJ2.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],DJ2);
_.Y(DJ2,"ytd-metadata-line-renderer",function(){if(n73!==void 0)return n73;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return n73=A},{mode:1});var BB=function(){return _.F.apply(this,arguments)||this};
_.R(BB,_.F);BB.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],BB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],BB.prototype,"isMasthead",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],BB);
_.Y(BB,"ytd-media-product-renderer",function(){if(E7l!==void 0)return E7l;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return E7l=A},{mode:1});var FPA;var ME=function(){return _.F.apply(this,arguments)||this};
_.R(ME,_.F);ME.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
ME.prototype.onBillboardImageLoaded=function(){_.s9(this.hostElement,"yt-refit")};
ME.prototype.onBillboardImageLoaded=ME.prototype.onBillboardImageLoaded;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ME.prototype,"data",void 0);_.V([_.lo("#billboardImage"),_.H("design:type",Object)],ME.prototype,"billboardImage",void 0);_.V([_.UQ("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ME.prototype,"onBillboardImageLoaded",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],ME);
_.Y(ME,"ytd-billboard-masthead-renderer",function(){if(FPA!==void 0)return FPA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return FPA=A},{mode:1});var IN3;var Cu=function(){var A=_.F.apply(this,arguments)||this;A.smallSize=!1;return A};
_.R(Cu,_.F);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Cu.prototype,"ytComponentBehaviorType",void 0);_.V([_.n(),_.H("design:type",Object)],Cu.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Cu.prototype,"smallSize",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Cu);
_.Y(Cu,"ytd-bullet-formatted-string",function(){if(IN3!==void 0)return IN3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return IN3=A},{mode:1});var xJQ;var hx=function(){return _.F.apply(this,arguments)||this};
_.R(hx,_.F);hx.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],hx.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],hx);
_.Y(hx,"ytd-offer-detail-renderer",function(){if(xJQ!==void 0)return xJQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return xJQ=A},{mode:1});var j7h;var R5=function(){return _.F.apply(this,arguments)||this};
_.R(R5,_.F);R5.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],R5.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],R5);
_.Y(R5,"ytd-offer-detail-step-renderer",function(){if(j7h!==void 0)return j7h;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return j7h=A},{mode:1});var YOy;var me=function(){var A=_.F.apply(this,arguments)||this;A.isInOfferModule=!1;return A};
_.R(me,_.F);_.J=me.prototype;_.J.computeHasEndpoint=function(){var A;return!((A=this.data)==null||!A.onClickCommand)};
_.J.dataChanged=function(){var A;if((A=this.data)==null?0:A.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")};
_.J.detached=function(){var A;if((A=this.data)==null?0:A.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.J.handleClickEvent=function(){var A;if((A=this.data)==null?0:A.onClickCommand){var t;this.componentBehavior.resolveCommand((t=this.data)==null?void 0:t.onClickCommand)}};
_.J.onContentKeyDown=function(A){A.key==="Enter"?this.handleClickEvent(A):A.key===" "&&A.preventDefault()};
_.J.onContentKeyUp=function(A){A.key===" "&&this.handleClickEvent(A)};
me.prototype.dataChanged=me.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],me.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],me.prototype,"data",void 0);_.V([_.n({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],me.prototype,"hasEndpoint",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],me.prototype,"isInOfferModule",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],me.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],me);
_.Y(me,"ytd-channel-masthead-renderer",function(){if(YOy!==void 0)return YOy;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return YOy=A},{mode:1});var V58;var b3=function(){var A=_.F.apply(this,arguments)||this;A.thumbnailObjectFit="CONTAIN";A.thumbnailObjectPosition="LEFT";A.isExpanded=!1;return A};
_.R(b3,_.F);_.J=b3.prototype;_.J.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.J.dataChanged=function(){this.resetStates()};
_.J.computeisTapOnOfferInfoContainerEnabled=function(){var A;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.J.onExpandBtnClick=function(){var A,t=_.C((A=this.data)==null?void 0:A.showMoreButtonRenderer,Q7m);t&&_.Zv(_.er(),t.trackingParams);this.isExpanded=!this.isExpanded};
_.J.onOfferInfoClick=function(A){this.isTapOnOfferInfoContainerEnabled&&(_.Sl(_.Z2(A)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.$E(_.Z2(A)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.J.onBottomBarClick=function(){this.executeTapCommand()};
_.J.executeTapCommand=function(){var A,t=(A=this.data)==null?void 0:A.tapCommand;t&&this.ytComponentBehavior.resolveCommand(t)};
_.J.resetStates=function(){this.isExpanded=!1};
_.PV.Object.defineProperties(b3.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var A=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),t,f,X;return((t=this.data)==null?void 0:t.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&A&&!!((f=this.data)==null?0:(X=f.benefits)==null?0:X.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((t=_.C((A=this.data)==null?void 0:A.showMoreButtonRenderer,Q7m))==null?void 0:t.showMoreButtonTitle)||((f=this.data)==null?void 0:f.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((t=_.C((A=this.data)==null?void 0:A.showMoreButtonRenderer,Q7m))==null?void 0:t.showLessButtonTitle)||((f=this.data)==null?void 0:f.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var A;return(A=this.showLessButtonTitle)!=null?A:""}var t;return(t=this.showMoreButtonTitle)!=null?t:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((t=this.data)==null?0:t.footerTitle)||((f=this.data)==null?0:f.footerSubtitle))}}});
b3.prototype.dataChanged=b3.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],b3.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",String)],b3.prototype,"thumbnailObjectFit",void 0);
_.V([_.n(),_.H("design:type",String)],b3.prototype,"thumbnailObjectPosition",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.H("design:type",Boolean)],b3.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.V([_.n(),_.H("design:type",Object)],b3.prototype,"isExpanded",void 0);_.V([_.n(),_.H("design:type",Object)],b3.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.footerIcon)"}),_.H("design:type",String)],b3.prototype,"icon",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b3.prototype,"dataChanged",null);_.V([_.y("data.thumbnail"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],b3.prototype,"hasThumbnail",null);_.V([_.y("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],b3.prototype,"enableExpandButton",null);
_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],b3.prototype,"enableOfferContentIcon",null);_.V([_.y("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.H("design:type",Object),_.H("design:paramtypes",[])],b3.prototype,"showMoreButtonTitle",null);_.V([_.y("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.H("design:type",Object),_.H("design:paramtypes",[])],b3.prototype,"showLessButtonTitle",null);
_.V([_.y("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.H("design:type",String),_.H("design:paramtypes",[])],b3.prototype,"expandedBtnText",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],b3.prototype,"enableBottomBar",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],b3);
_.Y(b3,"ytd-offer-card-renderer",function(){if(V58!==void 0)return V58;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return V58=A},{mode:1});var Zf2;var WB=function(){return _.F.apply(this,arguments)||this};
_.R(WB,_.F);WB.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"}}}};
WB.prototype.onClick=function(A){if(!_.Sl(A.composedPath()||[],this.hostElement,["A".toString()])){var t,f;if((A=(f=_.C((t=this.data)==null?void 0:t.actionButton,_.Gf))==null?void 0:f.command)&&!this.ytComponentBehavior.resolveCommand(A)){var X;(X=_.er())==null||X.clickCommand(A);_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}})}}};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],WB.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],WB.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],WB);
_.Y(WB,"ytd-offer-content-renderer",function(){if(Zf2!==void 0)return Zf2;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Zf2=A},{mode:1});var o78;var yl=function(){return _.F.apply(this,arguments)||this};
_.R(yl,_.F);yl.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.PV.Object.defineProperties(yl.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var A,t;return!((A=this.data)==null||!A.title)||!((t=this.data)==null||!t.description)}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],yl.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],yl.prototype,"hasHeaderData",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],yl);
_.Y(yl,"ytd-offer-section-renderer",function(){if(o78!==void 0)return o78;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return o78=A},{mode:1});var dJj;var vB=function(){return _.F.apply(this,arguments)||this};
_.R(vB,_.F);
vB.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"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],vB.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],vB);
_.Y(vB,"ytd-offer-selection-step-renderer",function(){if(dJj!==void 0)return dJj;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return dJj=A},{mode:1});var SOm;var Lu=function(){return _.F.apply(this,arguments)||this};
_.R(Lu,_.F);Lu.prototype.computeStyle=function(A){return A};
Lu.prototype.computeImageWidth=function(A){return A==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.V([_.n({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.H("design:type",String)],Lu.prototype,"containerStyle",void 0);_.V([_.n({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.H("design:type",String)],Lu.prototype,"imageWidth",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Lu.prototype,"data",void 0);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Lu);
_.Y(Lu,"ytd-confirmation-masthead-renderer",function(){if(SOm!==void 0)return SOm;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return SOm=A},{mode:1});var $J_;var pu=function(){return _.F.apply(this,arguments)||this};
_.R(pu,_.F);pu.prototype.computeStyle=function(A){return A};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],pu.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.H("design:type",String)],pu.prototype,"containerStyle",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],pu);
_.Y(pu,"ytd-purchase-complete-detail-renderer",function(){if($J_!==void 0)return $J_;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return $J_=A},{mode:1});var Hfy;var ES=function(){var A=_.F.apply(this,arguments)||this;A.scriptsAppended=!1;return A};
_.R(ES,_.F);ES.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"}}}};
ES.prototype.onDataChanged=function(){var A=this.get("data.gtmId");A&&(_.aF(A,_.ah("GL","")),this.setupConversionTracking())};
ES.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var A=document.createElement("noscript");A.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(A);this.scriptsAppended=!0}};
ES.prototype.onDataChanged=ES.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ES.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],ES.prototype,"scriptsAppended",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ES.prototype,"onDataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],ES);
_.Y(ES,"ytd-purchase-complete-step-renderer",function(){if(Hfy!==void 0)return Hfy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Hfy=A},{mode:1});var aNA;var nu=function(){return _.F.apply(this,arguments)||this};
_.R(nu,_.F);nu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],nu.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],nu);
_.Y(nu,"ytd-ypc-transaction-error-message-renderer",function(){if(aNA!==void 0)return aNA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return aNA=A},{mode:1});var KP2;var g7y;var DV=function(){var A=_.F.apply(this,arguments)||this;A.handlePhoneVerificationSuccess=function(t){if(A.isValidPhoneVerificationCompletionMessageEvent(t)){var f;((f=A.data)==null?0:f.nextStepCommand)&&A.ytComponentBehavior.resolveCommand(A.data.nextStepCommand)}};
return A};
_.R(DV,_.F);DV.prototype.isValidPhoneVerificationCompletionMessageEvent=function(A){if(A.data!=="yt-phone-verification-complete")return!1;A=_.G7(A.origin);return A!==null&&A.includes("youtube.com")};
DV.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
DV.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],DV.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],DV.prototype,"data",void 0);_.V([_.WU({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],DV);
_.Y(DV,"yt-feature-enablement-soft-entry-renderer",function(){if(g7y===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;KP2===void 0&&(KP2=document.createElement("template"));var X=KP2;f.call(t,X.content.cloneNode(!0),A.content.firstChild);g7y=A}A=g7y;return A},{mode:1});var wtQ;var s7d;var ktj;var rlm;var AR3=function(){return _.F.apply(this,arguments)||this};
_.R(AR3,_.F);_.V([_.n(),_.H("design:type",Object)],AR3.prototype,"data",void 0);_.V([_.WU({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],AR3);
_.Y(AR3,"yt-benefits-item-renderer",function(){if(rlm===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;ktj===void 0&&(ktj=document.createElement("template"));var X=ktj;f.call(t,X.content.cloneNode(!0),A.content.firstChild);rlm=A}A=rlm;return A},{mode:2});var tRQ;var ftA;var Fa=function(){return _.F.apply(this,arguments)||this};
_.R(Fa,_.F);Fa.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Fa.prototype.computeisWithoutPadding=function(){var A;return((A=this.data)==null?void 0:A.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Fa.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.H("design:type",Boolean)],Fa.prototype,"isWithoutPadding",void 0);_.V([_.WU({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Fa);
_.Y(Fa,"yt-benefits-section-renderer",function(){if(ftA===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;tRQ===void 0&&(tRQ=document.createElement("template"));var X=tRQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ftA=A}A=ftA;return A},{mode:2});var I5=function(){return _.F.apply(this,arguments)||this};
_.R(I5,_.F);I5.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
I5.prototype.computeisUsingLargeWidth=function(){var A;return((A=this.data)==null?void 0:A.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],I5.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.H("design:type",Boolean)],I5.prototype,"isUsingLargeWidth",void 0);_.V([_.WU({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],I5);
_.Y(I5,"yt-benefits-flow-step-renderer",function(){if(s7d===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;wtQ===void 0&&(wtQ=document.createElement("template"));var X=wtQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);s7d=A}A=s7d;return A},{mode:2});var XEQ;var QCd;var xM=function(){return _.F.apply(this,arguments)||this};
_.R(xM,_.F);xM.prototype.checkIsUsingLargeWidth=function(){var A;return((A=this.data)==null?void 0:A.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.V([_.n(),_.H("design:type",Object)],xM.prototype,"data",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.V([_.n({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.H("design:type",Boolean)],xM.prototype,"isUsingLargeWidth",void 0);_.V([_.WU({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],xM);
_.Y(xM,"yt-confirmation-flow-step-renderer",function(){if(QCd===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;XEQ===void 0&&(XEQ=document.createElement("template"));var X=XEQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);QCd=A}A=QCd;return A},{mode:2});var qpl;var JRc;var U_y=function(){return _.F.apply(this,arguments)||this};
_.R(U_y,_.F);_.V([_.n(),_.H("design:type",Object)],U_y.prototype,"data",void 0);_.V([_.WU({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],U_y);
_.Y(U_y,"yt-info-flow-step-renderer",function(){if(JRc===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;qpl===void 0&&(qpl=document.createElement("template"));var X=qpl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);JRc=A}A=JRc;return A},{mode:2});var e$y;var G$h;var ltQ=function(){return _.F.apply(this,arguments)||this};
_.R(ltQ,_.F);_.V([_.n(),_.H("design:type",Object)],ltQ.prototype,"data",void 0);_.V([_.WU({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],ltQ);
_.Y(ltQ,"yt-info-list-flow-step-renderer",function(){if(G$h===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;e$y===void 0&&(e$y=document.createElement("template"));var X=e$y;f.call(t,X.content.cloneNode(!0),A.content.firstChild);G$h=A}A=G$h;return A},{mode:2});var NFj=_.I(function(A){var t=A.data;return _.u("styled-text-view-model",{class:_.Ao("ytStyledTextViewModelHost",function(){return QW3(t().fontAttributes)},function(){return XVc(t().color)})},_.u(_.zL,{text:function(){return t().text},
ariaLabel:function(){var f,X,Q;return(Q=(f=t().accessibility)==null?void 0:(X=f.accessibilityData)==null?void 0:X.label)!=null?Q:""}}))},"vh");
NFj.idomCompat=!0;var uC3=_.I(function(A){var t=function(){var Q,q,e,G;return(G=(e=(Q=A.alt)==null?void 0:Q.call(A))!=null?e:(q=A.data().accessibilityData)==null?void 0:q.label)!=null?G:""},f=function(){return A.data().imageWidth},X=function(){return A.data().imageHeight};
return _.u("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.u(_.P,{cond:function(){var Q=A.data();if(Q){var q,e,G;var N=((q=_.Px().resolve(_.z7(_.FH)))==null?0:q())?(e=Q.imageDark)!=null?e:Q.imageLight:(G=Q.imageLight)!=null?G:Q.imageDark}else N=void 0;return N},
then:function(Q){return _.u(_.YA,Object.assign({},A,{data:Q,alt:t,targetWidth:f,targetHeight:X,preserveHeight:!0,preserveWidth:!0}))}}))},"wh");
uC3.idomCompat=!0;var jo=_.I(function(A){var t=A.data;A=_.dR(function(){return t().slots},[]);
var f=_.dR(function(){return t().layoutProperties},{}),X=_.Px().resolve(_.xA);
return _.u("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:kU_(f,X)},_.u(_.xk,{each:A,keyBy:"INDEX"},function(Q){return _.u("div",{class:"ytContainerLayoutViewModelSlot",style:kU_(function(){return Q().layoutProperties},X)},_.u(_.P1,{data:function(){return Q().contents}},{containerLayoutViewModel:jo,
badgeViewModel:_.Cj,buttonViewModel:_.nx,styledTextViewModel:NFj,contentPreviewImageViewModel:function(q){return _.u(_.nj,{data:q.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(q){return _.u(uC3,{data:q.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"xh");
jo.idomCompat=!0;var z$3=_.I(function(A){var t=A.data;var f=A.stateFns;var X=function(){var z=t(),T=z.productId;return!(!z.clearGroupId&&!T)},Q=function(){var z=t(),T=z.clearGroupId;
return(z=z.productId)?f().isProductSelected(z):T?f().getSelectedProductByGroupId(T)==null:!1},q=function(z){var T=t(),O=T.clearGroupId;
if(T=T.productId)f().onProductSelected(T),z==null||z.forEach(function(c){_.LI(c)});
else if(O)f().onClearGroupSelected(O)},e=function(){var z=t(),T=z.clearGroupId;
if(z=z.productId){var O;return"group:"+(((O=f().getProductById(z))==null?void 0:O.groupId)||"")}return T?"group:"+T:""},G=_.dR(function(){return t().header},[]),N=_.dR(function(){return t().body},[]);
return _.u("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.u(_.P,{cond:function(){return G().length>0||X()},
then:function(){return _.u("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.u("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.u(_.P1,{data:G},{containerLayoutViewModel:function(z){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(jo,{data:z.data}))},
styledTextViewModel:function(z){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(NFj,{data:z.data}))}})),_.u(_.P,{cond:X,
then:function(){return _.u("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.u(_.uq,{checked:Q,name:e,onChange:function(){q(t().onSelect)}}))}}))}}),_.u(_.P,{cond:function(){return N().length>0},
then:function(){return _.u("div",null,_.u(_.P1,{data:N},{containerLayoutViewModel:function(z){return _.u("div",{class:"ytPdpCardSectionViewModelContentItem"},_.u(jo,{data:z.data}))}}))}}))},"yh");
z$3.idomCompat=!0;var P$l=_.I(function(A){var t=A.data;var f=A.stateFns;return _.u("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.u(_.P,{cond:function(){return t().banner},
then:function(X){return _.u("div",{class:"ytPdpCardViewModelBanner"},_.u(_.zL,{text:X}))}}),_.u(_.P1,{data:function(){return t().sections}},{pdpCardSectionViewModel:function(X){X=X.data;
var Q={};return _.u("div",{class:_.Ao("ytPdpCardViewModelSectionContainer",(Q.ytPdpCardViewModelShowDividers=function(){return t().showDividers},Q))},_.u(z$3,{data:X,
stateFns:f}))}}))},"zh");
P$l.idomCompat=!0;var TFd=_.I(function(A){var t=A.data;var f=A.isOverlay;A={};return _.u("pdp-masthead-view-model",{class:_.Ao("ytPdpMastheadViewModelHost",(A.ytPdpMastheadViewModelIsOverlay=f,A))},_.u(_.P1,{data:function(){return t().image}},{contentPreviewImageViewModel:_.nj,
themedImageViewModel:function(X){return _.u(uC3,{data:X.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.u(_.P,{cond:function(){return t().title},
then:function(X){return _.u("h1",{class:"ytPdpMastheadViewModelHeading"},_.u(_.zL,{text:X,isOverlay:f}))}}),_.u(_.xk,{each:function(){var X;
return(X=t().finePrint)!=null?X:[]}},function(X){return _.u("div",{class:"ytPdpMastheadViewModelFinePrint"},_.u(_.zL,{text:X,
isOverlay:f}))}))},"Ah");
TFd.idomCompat=!0;var iZy=_.I(function(A){var t=A.data;var f=A.stateFns;var X=function(){return"pdp-pricing-group-selector-"+t().pricingGroupAttributeIds},Q=_.dR(function(){return t().pricingGroupSelectorSectionHeader});
return _.u("pdp-pricing-group-selector-view-model",null,_.u(_.P,{cond:function(){return!!Q()},
then:function(){return _.u(_.P1,{data:Q},{sectionHeaderViewModel:function(q){q=q.data;var e={};return _.u("div",{class:_.Ao("ytPdpPricingGroupSelectorViewModelSectionHeader",(e.ytPdpPricingGroupSelectorViewModelFullBleed=!0,e.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,e))},_.u(_.SB,{data:q}))}})}}),_.u("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.u(_.xk,{each:function(){var q=f().getSelectedProductByGroupId(t().groupId);
if(!q)return _.ai(Error("$j`"+t().groupId)),[];var e,G=(e=t().pricingGroupAttributeIds)!=null?e:[],N;if((N=q.pricingGroups)==null||!N.length||!G.length)return[];e=q.pricingGroups.filter(function(c){return G.length?c.pricingGroupAttributes.every(function(B){return G.includes(B)}):!1});
q=[];if(G.length>0){e=[].concat(_.YV(e));N=_.U(G);for(var z=N.next(),T={};!z.done;T={targetAttrId:void 0},z=N.next())T.targetAttrId=z.value,z=e.findIndex(function(c){return function(B){return B.pricingGroupAttributes.includes(c.targetAttrId)}}(T)),z!==-1&&(q.push(e[z]),e.splice(z,1))}var O=f().getSelectedPricingGroupAttributesByGroupId(t().groupId);
return q.map(function(c){var B=!1;O&&c.pricingGroupAttributes&&(B=Xa(c.pricingGroupAttributes,O));return{pricingGroup:c,isSelected:B}})},
keyBy:function(q){return q.pricingGroup.pricingGroupId}},function(q){return _.u("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.u("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.u(_.P1,{data:function(){return q().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:jo})),_.u("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.u(_.uq,{checked:function(){return q().isSelected},
name:X,onClick:function(){var e=q().pricingGroup;f().onPricingGroupSelected(e.pricingGroupId);if(e=_.bP(e.onSelectPricingGroup)){var G;(G=_.Px().resolve(_.i2))==null||G.resolveCommand(e)}}})))})))},"Bh");
iZy.idomCompat=!0;var OZh=_.I(function(A){var t=A.data;var f=A.stateFns;var X=function(){var e=f().getSelectedPricingOptions().map(function(z){return z.pricingOptionId}),G=f().getSelectedProductByGroupId(t().groupId);
if(!G)return _.ai(Error("ak`"+t().groupId)),[];var N=f().getSelectedPricingGroupAttributesByGroupId(t().groupId);return esh(G.pricingOptions,N,e)},Q=_.dR(function(){return t().pricingOptionSelectorSectionHeader}),q=function(){return X().length>1};
return _.u("pdp-pricing-option-selector-view-model",null,_.u(_.P,{cond:function(){return!!Q()&&q()},
then:function(){return _.u(_.P1,{data:Q},{sectionHeaderViewModel:function(e){e=e.data;var G={};return _.u("div",{class:_.Ao("ytPdpPricingOptionSelectorViewModelSectionHeader",(G.ytPdpPricingOptionSelectorViewModelFullBleed=!0,G.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,G))},_.u(_.SB,{data:e}))}})}}),_.u(_.P,{cond:q,
then:function(){return _.u("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.u(_.xk,{each:X,keyBy:"INDEX"},function(e){return _.u("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.u("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.u(_.P1,{data:function(){return e().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:jo})),_.u("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.u(_.uq,{checked:function(){return e().isSelected},
onClick:function(){f().onPricingOptionSelected(e().pricingOption.pricingOptionId);var G=e().pricingOption.onSelectPricingOption;if(G=_.bP(G)){var N;(N=_.Px().resolve(_.i2))==null||N.resolveCommand(G)}}})))}))}}))},"Ch");
OZh.idomCompat=!0;var cRQ=_.I(function(A){var t=A.data;var f=A.stateFns;return _.u("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.u(_.P1,{data:function(){var X,Q;return(Q=(X=f().getSelectedPricingOptions()[0])==null?void 0:X.primaryButton)!=null?Q:t().emptyStateButton}},{buttonViewModel:_.nx}))},"Dh");
cRQ.idomCompat=!0;var BFw=_.I(function(A){var t=A.stateFns;return _.u("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.u(_.P1,{data:function(){return t().getSelectedPricingOptions().flatMap(function(f){return f.summaryLines}).filter(function(f){return!!f})}},{containerLayoutViewModel:function(f){return _.u("div",{class:"ytPdpSummaryViewModelLineItem"},_.u(jo,{data:f.data}))}}))},"Eh");
BFw.idomCompat=!0;var MRw=_.I(function(A){function t(h){var W=e();_.og(_.m0("pdpStateEntity",W,{key:W,selectedPricingOptions:h}))}
var f=A.data;var X=A.internalScrolling;var Q=A.stateFnsForTesting;var q=_.dR(function(){return f().allProducts},[]),e=_.dR(function(){return f().pdpStateEntityKey},""),G=_.Nt(GS2,e),N=_.yq(function(){_.$f(!0);
var h;return(h=Q==null?void 0:Q())!=null?h:N62(G,q,t)},void 0,"Pzdsic"),z=_.dR(function(){return f().body},[]),T=_.dR(function(){return f().columnBreakHints},[]),O=function(){return f().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},c=function(){return O()||f().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},B=_.yq(function(){var h=_.Fl(f().background),W;
if(h==null?0:(W=h.sources)==null?0:W.length){var L=L===void 0?!0:L;h=_.eVT(void 0,h.sources,void 0,L,L?1E3:void 0,L?void 0:1E3)}else h=null;return h},void 0,"RDPOae");
_.oh(function(){var h=f().onStartCommand;if(h&&(h=_.bP(h))){var W;(W=_.Px().resolve(_.i2))==null||W.resolveCommand(h)}});
A={};return _.u("pdp-view-model",{class:_.Ao("ytPdpViewModelHost",(A.ytPdpViewModelHasBackground=function(){return c()||!!B()},A.ytPdpViewModelHasDarkBackground=c,A.ytPdpViewModelHasScrim=O,A.ytPdpViewModelInternalScrolling=X,A.ytPdpViewModelForceSingleColumn=function(){return T().length===0},A)),
style:_.U7({"--pdp-view-model-background":function(){return B()?"url("+B()+")":void 0}})},_.u("div",{class:"ytPdpViewModelColumnContainer"},_.u(_.xk,{each:function(){return uB_(z(),T())},
keyBy:"INDEX"},function(h){return _.u("div",{class:"ytPdpViewModelColumn"},_.u(_.P1,{data:h},{containerLayoutViewModel:function(W){return _.u(YM,null,_.u(jo,{data:W.data}))},
dividerViewModel:function(W){return _.u(YM,{fullBleed:!0},_.u(_.JQw,{data:W.data}))},
pdpCardViewModel:function(W){return _.u(YM,null,_.u(P$l,{data:W.data,stateFns:N}))},
pdpMastheadViewModel:function(W){return _.u(YM,null,_.u(TFd,{data:W.data,isOverlay:c}))},
pdpPricingGroupSelectorViewModel:function(W){return _.u(YM,null,_.u(iZy,{data:W.data,stateFns:N}))},
pdpPricingOptionSelectorViewModel:function(W){return _.u(YM,null,_.u(OZh,{data:W.data,stateFns:N}))},
pdpPrimaryButtonViewModel:function(W){return _.u(YM,null,_.u(cRQ,{data:W.data,stateFns:N}))},
pdpSummaryViewModel:function(W){return _.u(YM,null,_.u(BFw,{data:W.data,stateFns:N}))},
sectionHeaderViewModel:function(W){return _.u(YM,{fullBleed:!0,noVerticalPadding:!0},_.u(_.SB,{data:W.data}))}}))})))},"Fh");
MRw.idomCompat=!0;var YM=_.I(function(A){var t={};return _.u("div",{class:_.Ao("ytPdpViewModelItem",(t.ytPdpViewModelFullBleed=A.fullBleed,t.ytPdpViewModelNoVerticalPadding=A.noVerticalPadding,t))},A.children)},"Gh");_.Hn(MRw,"pdp-view-model",{props:{data:_.PS,stateFnsForTesting:_.dt,internalScrolling:_.dt}});var C$2=_.I(function(A){var t=A.data;var f=A.className;var X=_.Nt(_.SM,function(){return t().flowStateEntityKey});
return _.u("ytm-premium-purchase-button-renderer",{class:_.Ao("ytPremiumPurchaseButtonRendererHost",f)},_.u(_.P1,{data:function(){var Q;return(Q=_.C(X(),Ps3))==null?void 0:Q.primaryButtonOverride}},{buttonRenderer:function(Q){return _.u(_.MM,{data:Q.data,
className:f})},
buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,className:f})}}))},"Hh");
C$2.idomCompat=!0;var h$3=_.I(function(A){var t=A.data;A=A.className;var f=function(){return zsc(t().style)},X=_.Ao("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",f),Q=_.Ao("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",f);
return _.u("yt-flow-bottom-bar-renderer",{class:_.Ao("yt-flow-bottom-bar-renderer",A,f)},_.u(_.P1,{data:function(){return t().secondaryButton}},{buttonRenderer:function(q){return _.u(_.MM,{data:q.data,
className:Q})},
buttonViewModel:function(q){return _.u(_.nx,{data:q.data,className:Q})},
premiumPurchaseButtonRenderer:function(q){return _.u(C$2,{data:q.data,className:Q})}}),_.u(_.P1,{data:function(){return t().primaryButton}},{buttonRenderer:function(q){return _.u(_.MM,{data:q.data,
className:X})},
buttonViewModel:function(q){return _.u(_.nx,{data:q.data,className:X})},
premiumPurchaseButtonRenderer:function(q){return _.u(C$2,{data:q.data,className:X})}}))},"Ih");
h$3.idomCompat=!0;_.Hn(h$3,"yt-flow-bottom-bar-renderer",{props:{data:_.PS,className:_.PS}});var R$l=_.I(function(A){var t=_.Ao(A.className,"ytOfferSummaryRendererHost");return _.u("yt-offer-summary-renderer",{class:t},_.u("div",{class:"ytOfferSummaryRendererTextContainer"},_.u("div",{class:"ytOfferSummaryRendererEyebrowText"},_.u(_.zL,{text:function(){return A.data().eyebrowText}})),_.u("div",{class:"ytOfferSummaryRendererTitle"},_.u(_.zL,{text:function(){return A.data().title}})),_.u("div",{class:"ytOfferSummaryRendererSubtitle"},_.u(_.zL,{text:function(){return A.data().subtitle}})),_.u("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.u(_.xk,{each:function(){var f;
return(f=A.data().featureListData)!=null?f:[]}},function(f){var X;
return _.u("div",{class:"ytOfferSummaryRendererFeatureList"},_.u(_.el,{icon:(X=f.icon)==null?void 0:X.iconType,active:function(){return f.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(f.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.u("div",{class:"ytOfferSummaryRendererFeatureListText"},_.u(_.zL,{text:f.text,
className:function(){return f.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.u("div",{class:"ytOfferSummaryRendererDescription"},_.u(_.zL,{text:function(){return A.data().description}}))))},"Jh");_.Hn(_.I(function(A){var t={};t=_.Ao("ytOfferSummaryFlowStepRendererHost",(t.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=A.shouldDisableHeaderTopMargin,t));return _.u("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:t},_.u("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.u("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.u(_.zL,{text:function(){return A.data().header}})),_.u("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.u(_.zL,{text:function(){return A.data().subtitle}}))),_.u("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.u(_.P1,{data:function(){return A.data().offerSummary}},{offerSummaryRenderer:function(f){return _.u(R$l,{data:f.data,
className:A.flowClassName})}})))},"Kh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.dt,
flowClassName:_.dt,flowStateEntityKey:_.dt,shouldDisableHeaderTopMargin:_.dt}});var m__=_.I(function(A){var t=A.data;var f=A.className;var X=A.flowStateEntityKey;var Q=A.selectionStepStyle;A=_.f1(function(N){var z=t(),T=X==null?void 0:X();N.target&&(N.stopPropagation(),N=T||"",T=_.SM(_.ZK().getState(),N),z=Object.assign({},T,{premiumPurchaseFlowState:{selectedOptionId:z.optionId,primaryButtonOverride:z.primaryButtonOverride}}),_.ZK().dispatch(_.Ta("flowStateEntity",N,z)));return!1});
var q=function(){return(X==null?void 0:X())||""},e=_.Nt(_.SM,q);
_.oh(function(){var N=t(),z=q(),T=e();N.defaultSelected&&z!==""&&N.primaryButtonOverride&&T6c(N.optionId||"",z,N.primaryButtonOverride,T)});
var G={};return _.u("ytm-option-item-renderer",{"on:click":A,class:_.Ao(f,"ytm-option-item-renderer",(G["ytm-option-item-renderer--lp2-style"]=function(){return(Q==null?void 0:Q())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},G))},_.u("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.u("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var N=t(),z=q(),T=e();T=_.C(T,Ps3);return(T?(T==null?void 0:T.selectedOptionId)||"":N.defaultSelected&&z!==""?(N==null?void 0:N.optionId)||"":"")===t().optionId},
name:("input"+_.ZW(_.GN)).toString()})),_.u("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.u(_.P1,{data:function(){return t().titleBadge}},{badgeViewModel:function(N){return _.u(_.Cj,{data:N.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.u(_.P,{cond:function(){return t().eyebrowText},
then:function(){return _.u("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.u(_.zL,{text:function(){return t().eyebrowText}}))}}),_.u("div",{class:"ytm-option-item-renderer__option-item-title"},_.u(_.zL,{text:function(){return t().title}})),_.u("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.u(_.zL,{text:function(){return t().subtitle}})),_.u(_.P,{cond:function(){return t().featureListData},
then:function(){return _.u("div",{class:"ytm-option-item-renderer__feature-list-data"},_.u(_.xk,{each:function(){return t().featureListData||[]}},function(N){var z,T=(z=N.icon)==null?void 0:z.iconType;
a:switch(N.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":z="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":z="ytm-option-item-renderer__feature-list-icon-small";break a;default:z="ytm-option-item-renderer__feature-list-icon-default"}return _.u("div",{class:"ytm-option-item-renderer__feature-list"},_.u(_.el,{icon:T,className:z,active:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.u("div",{class:"ytm-option-item-renderer__feature-list-text"},_.u(_.zL,{text:N.text,
className:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.u("div",{class:"ytm-option-item-renderer__option-item-description"},_.u(_.zL,{text:function(){return t().description}}))))},"Lh");var bZ2=_.I(function(A){var t=A.data;var f=A.flowClassName;var X=A.flowStateEntityKey;var Q=A.selectionStepStyle;return _.u("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.u("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.u("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.u(_.zL,{text:function(){return t().title}}),_.u(_.P1,{data:function(){return t().titleBadge}},{badgeViewModel:function(q){return _.u(_.Cj,{data:q.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.u(_.P,{cond:function(){return t().subtitle},
then:function(){return _.u("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.u(_.zL,{text:function(){return t().subtitle}}))}}),_.u(_.P,{cond:function(){return t().featureListData},
then:function(q){return _.u("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.u(_.xk,{each:q},function(e){var G;return _.u("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.u(_.el,{icon:(G=e.icon)==null?void 0:G.iconType,active:function(){return e.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(e.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.u("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.u(_.zL,{text:e.text,
className:function(){return e.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.u(_.P,{cond:function(){return t().secondaryTitle},
then:function(){return _.u("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.u(_.zL,{text:function(){return t().secondaryTitle}}))}}),_.u(_.xk,{each:function(){return t().sectionDisclaimers||[]}},function(q){return _.u("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.u(_.zL,{text:q}))})),_.u(_.P1,{data:function(){return t().optionItems}},{optionItemRenderer:function(q){return _.u("div",{class:"ytOptionSectionRendererOptionItem"},_.u(m__,{data:q.data,
className:f,flowStateEntityKey:X,selectionStepStyle:Q}))}}),_.u(_.P,{cond:function(){return t().offerText},
then:function(){return _.u("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.u(_.zL,{text:function(){return t().offerText}}))}}))},"Mh");
bZ2.idomCompat=!0;var Wvd=_.I(function(A){var t=A.data;var f=A.flowClassName;var X=A.flowStateEntityKey;A=A.isDesktop;var Q=_.GU("div"),q=function(){var T;return(T=t().flowStateEntityKey)!=null?T:X==null?void 0:X()},e=function(){return(q==null?void 0:q())||""},G=function(){return t().style},N=_.Nt(_.SM,e);
_.oh(function(){iP3(t(),e(),N());setTimeout(function(){var T;(T=Q.value)==null||T.focus()})});
var z={};return _.u("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Ao("ytm-option-selection-flow-step-renderer",(z["ytm-option-selection-flow-step-renderer--desktop"]=A,z["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return t().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},z))},_.u("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"},
_.u("div",{el:Q,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.u(_.zL,{text:function(){return t().header}})),_.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.u(_.zL,{text:function(){return t().subtitle}}))),_.u(_.P1,{data:function(){return t().optionItems||[]}},{optionItemRenderer:function(T){return _.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.u(m__,{data:T.data,
className:f,flowStateEntityKey:q,selectionStepStyle:G}))},
optionSectionRenderer:function(T){return _.u("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.u(bZ2,{data:T.data,flowClassName:f,flowStateEntityKey:q,selectionStepStyle:G}))}}))},"Nh");
Wvd.idomCompat=!0;_.Hn(Wvd,"yt-option-selection-flow-step-renderer",{props:{data:_.PS,flowClassName:_.PS,flowStateEntityKey:_.PS,isDesktop:_.PS}});_.Vl=_.I(function(A){var t=_.Sv(A,{type:1,disablePadding:!1,disablePrimaryButton:!1}),f=t.data,X=t.type;A=t.disablePadding;var Q=t.disablePrimaryButton,q=t.onClickPrimaryButton,e=function(){return f().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},G=function(){return{disabled:Q(),
state:Q()?"disabled":"active"}},N=function(){return f().leadingLabel||f().trailingLabel};
t={};return _.u("yt-panel-footer-view-model",{class:_.Ao("yt-panel-footer-view-model",(t["yt-panel-footer-view-model--hide-divider"]=function(){return f().shouldHideDivider},t["yt-panel-footer-view-model--disable-padding"]=A,t))},_.u(_.P,{cond:N,
then:function(){var z={},T={};return _.u("div",{class:_.Ao("yt-panel-footer-view-model__text-row",(z["yt-panel-footer-view-model--row-bottom-padding"]=function(){var O=f();return!(!O.leadingLabel&&!O.trailingLabel||!O.primaryButton&&!O.secondaryButton)},z))},_.u(_.zL,{text:function(){return f().leadingLabel},
className:_.Ao((T["yt-panel-footer-view-model--text-padding"]=N,T))}),_.u(_.zL,{text:function(){return f().trailingLabel}}))}}),_.u(_.P,{cond:e,
then:function(){var z={};return _.u("div",{class:"yt-panel-footer-view-model__button-stack"},_.u("div",{class:_.Ao("yt-panel-footer-view-model__primary-button",(z["yt-panel-footer-view-model__button-stack--top-button"]=function(){return f().secondaryButton},z))},_.u(_.P1,{data:function(){return f().primaryButton}},{buttonViewModel:function(T){return _.u(_.nx,{data:T.data,
buttonOverrides:G,onClick:q})}})),_.u(_.P1,{data:function(){return f().secondaryButton}},{buttonViewModel:_.nx}))}}),_.u(_.P,{cond:function(){return!e()},
then:function(){var z={},T={},O={};return _.u("div",{class:_.Ao("yt-panel-footer-view-model__button-row",(z["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===X()},z))},_.u("div",{class:_.Ao("yt-panel-footer-view-model__button-row--left-button",(T["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===X()},T["yt-panel-footer-view-model__button-row--hidden"]=function(){return!f().secondaryButton||0===X()},T["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===X()},T))},_.u(_.P1,{data:function(){return f().secondaryButton}},{buttonViewModel:_.nx})),_.u("div",{class:_.Ao("yt-panel-footer-view-model__primary-button",(O["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===X()||1===X()},O["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===X()},O))},_.u(_.P1,{data:function(){return f().primaryButton}},{buttonViewModel:function(c){return _.u(_.nx,{data:c.data,
buttonOverrides:G,onClick:q})}})))}}))},"Oh");
_.Vl.idomCompat=!0;_.yRc=_.I(function(A){A=_.Sv(A,{disablePadding:!1});var t=A.data,f=A.disablePadding;A=_.Gpz(function(){return t().formId});
var X=A.submitForm,Q=A.isValid,q=A.isSubmitting;return _.u("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.u(_.P1,{data:function(){return t().panelFooter}},{panelFooterViewModel:function(e){return _.u(_.Vl,{data:e.data,
onClickPrimaryButton:function(){X()},
disablePrimaryButton:function(){return!Q()||q()},
disablePadding:f})}}))},"Ph");_.Hn(_.yRc,"yt-form-footer-view-model",{props:{data:_.PS,disablePadding:_.PS}});var vIQ=_.I(function(A){var t=_.M("enable_user_rating_web");return _.u("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.u(_.P,{cond:function(){var f;return(f=A.data())==null?void 0:f.image},
then:function(f){return _.u(_.YA,{data:f,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.u(_.zL,{text:function(){var f;
return(f=A.data())==null?void 0:f.title}})),_.u("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.u(_.zL,{text:function(){var f;
return(f=A.data())==null?void 0:f.subtitle}})),_.u(_.P,{cond:function(){return!t},
then:function(){return _.u(_.P1,{data:function(){var f;return(f=A.data())==null?void 0:f.viewTipsButton}},{buttonViewModel:function(f){return _.u(_.nx,{data:f.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Qh");_.Hn(vIQ,"yt-contributor-zero-state-view-model",{props:{data:_.PS}});var Lv3=_.I(function(A){var t=function(){var f;return(f=A.data())==null?void 0:f.image};
return _.u("yt-featured-content-item-view-model",{class:_.Ao("ytFeaturedContentItemViewModelHost")},_.u("div",{class:_.Ao(function(){return t()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.u("div",{class:function(){return t()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.u(_.P,{cond:t,
then:function(){return _.u("div",{class:"ytFeaturedContentItemViewModelImage"},_.u(_.P1,{data:function(){return A.data().image}},{themedImageViewModel:function(f){return _.u(uC3,{data:f.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.u(_.P,{cond:function(){var f;
return!t()&&((f=A.data())==null?void 0:f.iconName)},
then:function(){return _.u("div",{class:"ytFeaturedContentItemViewModelIcon"},_.u(_.el,{icon:function(){return A.data().iconName}}))}}),_.u("div",{class:"ytFeaturedContentItemViewModelContent"},_.u(_.P,{cond:function(){var f;
return(f=A.data())==null?void 0:f.title},
then:function(){return _.u("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.u(_.zL,{text:function(){return A.data().title}}))}}),_.u(_.P,{cond:function(){var f;
return(f=A.data())==null?void 0:f.body},
then:function(){return _.u("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.u(_.zL,{text:function(){return A.data().body}}))}})))))},"Rh");var pEl=_.I(function(A){var t=function(){var Q;return OPm((Q=A.data())==null?void 0:Q.titleFontSize)},f=function(){var Q;
return cWh((Q=A.data())==null?void 0:Q.descriptionFontSize)},X=function(){var Q;
return((Q=A.data())==null?void 0:Q.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.u("yt-landing-page-view-model",{class:_.Ao("ytLandingPageViewModelHost",A.className)},_.u("div",{class:"ytLandingPageViewModelHeader"},_.u(_.P,{cond:function(){var Q;return(Q=A.data())==null?void 0:Q.bannerImage},
then:function(Q){return _.u("div",{class:"ytLandingPageViewModelHeaderImage"},_.u(_.P1,{data:function(){return Q()}},{imageBannerViewModel:function(q){return _.u(_.Os,{data:q.data,
isPositionRelative:!0})}}))}}),_.u(_.P,{cond:function(){var Q;
return(Q=A.data())==null?void 0:Q.bannerAnimation},
then:function(Q){return _.u(_.Ya,{data:function(){var q=Q();if(q==null?0:q.url){var e;q={path:(e=q==null?void 0:q.url)!=null?e:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(q==null?0:q.payload){var G;q={animationData:JSON.parse((G=q==null?void 0:q.payload)!=null?G:""),autoplay:!0,loop:!0,renderer:"svg"}}else q=void 0;return{animationConfig:q}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.u("div",{class:"ytLandingPageViewModelHeaderTitle"},_.u(_.P,{cond:function(){var Q;
return(Q=A.data())==null?void 0:Q.title},
then:function(Q){return _.u("div",{class:_.Ao("ytLandingPageViewModelHeaderTitleContent",t)},_.u(_.zL,{text:function(){return Q()}}))}}),_.u(_.P,{cond:function(){var Q;
return(Q=A.data())==null?void 0:Q.description},
then:function(Q){var q={};return _.u(_.zL,{className:_.Ao("ytLandingPageViewModelHeaderTitleDescription",f,(q.ytLandingPageViewModelHeaderTitleDescriptionMargin=X,q)),text:function(){return Q()}})}}))),_.u(_.P,{cond:function(){var Q,q;
return(Q=A.data())==null?void 0:(q=Q.featuredContentList)==null?void 0:q.length},
then:function(){return _.u("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.u(_.P1,{data:function(){return A.data().featuredContentList}},{featuredContentItemViewModel:function(Q){return _.u(Lv3,{data:Q.data})}}))}}),_.u(_.P,{cond:function(){var Q,q;
return(Q=A.data())==null?void 0:(q=Q.expandableContentList)==null?void 0:q.length},
then:function(){return _.u("div",{class:"ytLandingPageViewModelFaqSection"},_.u(_.P1,{data:function(){return A.data().expandableContentList}},{faqEntryViewModel:function(Q){return _.u("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.u(_.dZw,{data:Q.data}))}}))}}),_.u("div",{class:"ytLandingPageViewModelFooter"},_.u(_.P,{cond:function(){var Q;
return(Q=A.data())==null?void 0:Q.legalCopy},
then:function(Q){return _.u("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.u(_.zL,{text:function(){return Q()}}))}}),_.u(_.P,{cond:function(){var Q;
return(Q=A.data())==null?void 0:Q.actions},
then:function(Q){return _.u("div",null,_.u(_.P1,{data:function(){return Q()}},{flexibleActionsViewModel:function(q){return _.u(_.Jk,{data:q.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Sh");_.Hn(_.I(function(A){return _.u("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.u("div",{class:"ytLpSectionGroupViewModelContainer"},_.u(_.P1,{data:function(){return A.data().sections}},{landingPageViewModel:function(t){return _.u(pEl,{data:t.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Th"),"yt-lp-section-group-view-model",{props:{data:_.PS}});var EI2=_.I(function(A){var t=A.data;var f=A.selectedKey;var X=A.onSelected;var Q=A.groupName;var q=function(){return t().text},e=function(){return t().attributedText},G=function(){return t().subtext},N=function(){return t().attributedSubtext},z=_.u("div",{class:"ytRadioButtonItemViewModelLabel"},_.u(_.P,{cond:q,
then:function(){return _.u("div",null,q)}}),_.u(_.P,{cond:e,
then:function(){return _.u(_.zL,{text:e})}}),_.u(_.P,{cond:G,
then:function(){return _.u("div",{class:"ytRadioButtonItemViewModelSubText"},G)}}),_.u(_.P,{cond:N,
then:function(){return _.u("div",{class:"ytRadioButtonItemViewModelSubText"},_.u(_.zL,{text:N}))}})),T=function(){if(e()){var c;
return(c=e())==null?void 0:c.content}return q()},O=function(){if(N()){var c;
return(c=N())==null?void 0:c.content}return G()};
A={};return _.u("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.u(_.uq,{name:Q,checked:function(){return!(f==null||!f()||t().key!==(f==null?void 0:f()))},
onChange:function(c){X==null||X(c.target,t(),Q==null?void 0:Q())},
labelRenderable:function(){return z},
ariaLabel:function(){return O()?T()+", "+O():T()},
className:_.Ao((A.ytRadioButtonItemViewModelSubTitle=function(){return!!t().subtext},A))}))},"Uh");_.nIj=_.I(function(A){var t=A.data;var f=function(){var X;return _.bj((X=t())==null?void 0:X.rendererContext)};
A={};return _.u("content-list-item-view-model",{el:_.ZY(_.W1(function(){return t().rendererContext})),
class:_.Ao("ytContentListItemViewModelHost",(A.ytContentListItemViewModelTappable=f,A)),role:function(){return f()?"listitem":void 0},
tabindex:function(){return f()?0:void 0}},_.u("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.u("div",{class:"ytContentListItemViewModelImageContainer"},_.u(_.P,{cond:function(){return t().image},
then:function(X){return _.u(_.YA,{data:X,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.u(_.P1,{data:function(){var X;
return(X=t())==null?void 0:X.avatar}},{avatarViewModel:_.QK})),_.u("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.u("div",{class:_.Ao("ytContentListItemViewModelTitle",function(){a:{switch(t().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var X="ytContentListItemViewModelProminentTitle";
break a}X=void 0}return X})},_.u(_.zL,{text:function(){return t().title}})),_.u("div",{class:"ytContentListItemViewModelMetadata"},_.u(_.P1,{data:function(){return t().metadata}},{contentMetadataViewModel:function(X){return _.u(_.FV,{data:X.data,
layout:1})}})))),_.u("div",{class:"ytContentListItemViewModelActionButton"},_.u(_.P1,{data:function(){var X;
return(X=t())==null?void 0:X.actionButton}},{buttonViewModel:_.nx,
toggleButtonViewModel:_.s$})))},"Vh");var D_2=_.I(function(A){var t=A.data,f=function(){var Q;return(Q=t())==null?void 0:Q.description},X=function(){var Q;
return(Q=t())==null?void 0:Q.title};
return _.u("ytfc-youth-basic-section-header-view-model",{class:_.Ao("ytfcYouthBasicSectionHeaderViewModelHost",A.className)},_.u("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.u(_.P1,{data:function(){var Q;return(Q=t())==null?void 0:Q.avatar}},{avatarViewModel:_.QK}),_.u(_.P,{cond:function(){var Q;
return _.Fl((Q=t())==null?void 0:Q.themedImage)},
then:function(Q){return _.u(_.YA,{data:Q,alt:function(){var q,e;return(e=(q=X())==null?void 0:q.content)!=null?e:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.u("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.u(_.P,{cond:X,
then:function(){return _.u(_.zL,{text:X,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.u("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.u(_.P1,{data:function(){var Q;
return(Q=t())==null?void 0:Q.bottomBadge}},{badgeViewModel:function(Q){return _.u("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.u(_.Cj,{data:Q.data}))}}),_.u(_.P,{cond:f,
then:function(){return _.u(_.zL,{text:f,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Wh");var Fvy=_.I(function(A){var t=A.data;return _.u("ytfc-youth-section-body-view-model",{class:_.Ao("ytfcYouthSectionBodyViewModelHost",A.className)},_.u(_.P1,{data:function(){var f;return(f=t())==null?void 0:f.topContent}},{avatarStackViewModel:function(f){return _.u(_.Jw,{data:f.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.u(_.zL,{text:function(){var f;
return(f=t())==null?void 0:f.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Xh");var Itd=_.I(function(A){var t=_.U(_.hZ(!1,void 0,"SrK51e")),f=t.next().value,X=t.next().value,Q=function(){return A.data().inlineExpansionEntityKey},q=_.Nt(FEA,Q),e=function(){if(A.isSelected!==void 0)return A.isSelected();
if(Q()){var N;return(N=q())==null?void 0:N.expanded}return f()};
t={};var G={};return _.u("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.f1(function(){A.isSelected!==void 0||Q()||X(!f())})},_.u("div",{class:"ytInlineExpanderViewModelHeader"},_.u(_.P1,{data:function(){return A.data().headerContent}},{youthBasicSectionHeaderViewModel:D_2}),_.u("div",{class:_.Ao("ytInlineExpanderViewModelButton",(t.ytInlineExpanderViewModelButtonExpanded=e,t))},_.u(_.Lx,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:e(),accessibilityLabel:e()?_.e5("SHOW_LESS",void 0,"Show Less"):_.e5("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.u("div",{class:_.Ao("ytInlineExpanderViewModelBody",(G.ytInlineExpanderViewModelBodyExpanded=e,G)),"aria-hidden":function(){return!e()}},_.u("div",{class:"ytInlineExpanderViewModelBodyContent"},_.u(_.P1,{data:function(){return A.data().bodyContent}},{youthSectionBodyViewModel:Fvy}))))},"Yh");var x_l=new _.eh("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.jC8=_.I(function(A){var t=function(){return A.data().background},f=function(){return A.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},X=function(){return A.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},Q=_.Px().resolve(_.z7(x_l)),q={};
return _.u("yt-card-view-model",{el:_.ZY(_.W1(function(){return A.data().rendererContext})),
class:_.Ao("ytCardViewModelHost",A.className,(q.ytCardViewModelClickable=function(){return _.mL(A.data().rendererContext)},q))},_.u(_.IS,{contentId:function(){return A.data().contentId}},function(){var e={};
return _.u("div",{class:_.Ao("ytCardViewModelCardViewModelInner",function(){var G;return B68(A.data().cardStyle,(G=A.isSelected)==null?void 0:G.call(A))},function(){if(A.isSelected===void 0){var G;
a:{switch((G=A.data().cardState)==null?void 0:G.selectionState){case "CARD_SELECTION_STATE_SELECTED":G="ytCardViewModelSelected";break a}G=void 0}return G}})},_.u(_.P1,{data:t},{cinematicContainerViewModel:function(G){return _.u(_.tT2,{data:G.data})}}),_.u("div",{class:"ytCardViewModelContentWrapper"},_.u(_.P,{cond:function(){return!f()},
then:function(){var G={},N={};return _.u("div",{class:"ytCardViewModelTopContentContainer"},_.u("div",{class:_.Ao("ytCardViewModelTopContent",(G.ytCardViewModelInnerPadding=function(){return!A.data().disableTopContentPadding&&A.data().topContent},G))},_.u(_.P1,{data:function(){return A.data().topContent}},{contentListItemViewModel:function(z){return _.u(_.nIj,{data:z.data})},
basicContentViewModel:_.PBl,linearLayoutViewModel:_.Pc})),_.u("div",{class:_.Ao("ytCardViewModelInlineTrailingAction",(N.ytCardViewModelInlineCenterTrailingAction=X,N.ytCardViewModelInlineTrailingActionMargin=function(){return A.data().trailingAction},N))},_.u(_.P1,{data:function(){return A.data().trailingAction}},{buttonViewModel:function(z){return _.u(_.nx,{data:z.data})}})))}}),_.u("div",{class:_.Ao((e.ytCardViewModelInnerPadding=function(){return!A.data().disableBodyContentPadding&&A.data().bodyContent},
e))},_.u(_.P1,{data:function(){return A.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.Yvw,
contentListItemViewModel:_.nIj,descriptionPreviewViewModel:_.dZ,inlineExpanderViewModel:function(G){return _.u(Itd,{data:G.data,isSelected:A.isSelected})},
linearLayoutViewModel:_.Pc,listItemViewModel:_.zN},Q&&{contentSectionViewModel:Q})))),_.u(_.P,{cond:function(){return f()},
then:function(){return _.u("div",{class:"ytCardViewModelOverlayTrailingAction"},_.u(_.P1,{data:function(){return A.data().trailingAction}},{buttonViewModel:function(G){return _.u(_.nx,{data:G.data})}}))}}))}))},"Zh");var Yp2=_.I(function(A){var t=A.data,f=A.onSelected,X=A.selectedKey,Q=A.groupName;A=A.className;var q=_.U(_.hZ(!1,void 0,"mDtSad")),e=q.next().value,G=q.next().value,N=function(){if(X!==void 0){var z=X();return!(!z||t().key!==z)}return e()};
q=_.f1(function(z){f?f(z.currentTarget,t(),Q==null?void 0:Q()):G(!e())});
return _.u("yt-selectable-item-view-model",{class:_.Ao("ytSelectableItemViewModelHost",A,"ytSelectableItemViewModelContainer"),"on:click":q,"prop:checked":N},_.u(_.P1,{data:function(){return t().content}},{cardViewModel:function(z){return _.u(_.jC8,{data:z.data,
isSelected:N})}}))},"$h");_.VRh=_.I(function(A){var t=A.data;var f=A.onSelected;var X=A.selectedKey;var Q=A.groupName;var q=function(){return(Q==null?void 0:Q())||t().key};
return _.u("yt-radio-button-group-view-model",{class:_.Ao("ytRadioButtonGroupViewModelHost",A.className)},_.u("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.u(_.P1,{data:function(){return t().radioButtons}},{radioButtonItemViewModel:function(e){return _.u(EI2,{data:e.data,
onSelected:f,selectedKey:X,groupName:q})},
selectableItemViewModel:function(e){return _.u(Yp2,{data:e.data,onSelected:f,selectedKey:X,groupName:q})}})))},"ai");var ZZd=_.I(function(A){_.oh(function(){if(A.controlledMode()&&A.data().defaultSelected)_.HQ(Error("bk"));else{var q;!A.controlledMode()&&((q=A.selected)==null?0:q.call(A))&&_.HQ(Error("ck"))}});
var t=_.U(_.Jo(function(){if(!A.controlledMode())return A.data().defaultSelected})),f=t.next().value,X=t.next().value,Q=function(){if(!A.controlledMode())return f();
var q;return(q=A.selected)==null?void 0:q.call(A)};
return _.u("yt-checkbox-item-view-model",{class:_.Ao("ytCheckboxItemViewModelHost",A.className)},_.u(_.zN,{data:function(){var q=A.data(),e=Q();return{title:q.text,subtitle:q.subtext,superlabel:q.superlabel,isSelected:!!e,isDisabled:q.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!A.controlledMode()&&X(!f());var q,e;(e=A.onTap)==null||e.call(A,!!Q(),A.data(),(q=A.groupName)==null?void 0:q.call(A))},
isCompact:A.isCompact}))},"bi");var oIy=_.I(function(A){var t=A.data;var f=A.controlledMode;var X=A.selectedKeys;var Q=A.onItemTap;var q=A.groupName;var e=function(){return(q==null?void 0:q())||t().key};
_.oh(function(){f()&&t().defaultSelectedKeys?_.HQ(Error("dk")):!f()&&(X==null?0:X())&&_.HQ(Error("ek"))});
A=_.U(_.Jo(function(){if(!f())return t().defaultSelectedKeys}));
var G=A.next().value,N=A.next().value,z=function(T,O,c){T=[];!f()&&O.key&&(T=M0c(O.key,G()||[]),N(T));Q==null||Q(O,T,c)};
return _.u("yt-checkbox-group-view-model",{class:_.Ao("ytCheckboxGroupViewModelHost")},_.u("fieldset",{class:_.Ao("ytCheckboxGroupViewModelFieldset")},_.u(_.P1,{data:function(){return t().checkboxes}},{checkboxItemViewModel:function(T){var O=T.data;
return _.u(ZZd,{data:O,controlledMode:!0,selected:function(){var c=f()?(X==null?void 0:X())||[]:G()||[],B=O().key;return B?c.includes(B):!1},
onTap:z,groupName:e})}})))},"ci");var ZV=_.I(function(A){var t=_.Nt(Csl,_.dR(function(){var G;return(G=A.data())==null?void 0:G.noteFeedEntityKey},"")),f=_.Nt(YIc,_.dR(function(){var G;
return(G=A.data())==null?void 0:G.userRatingEntityKey},"")),X=_.M("enable_user_rating_web"),Q=function(){var G,N,z;
return((G=t())==null?0:G.contributorNote)?(N=t())==null?void 0:N.contributorNote:(z=A.data())==null?void 0:z.existingNote},q=function(){var G,N;
return!!f()&&!!hs2((G=f())==null?void 0:G.helpfulnessValue,(N=A.data())==null?void 0:N.noteData)};
if(X){var e={};return _.u("yt-note-view-model",{class:_.Ao("ytNoteViewModelHostUserRating",(e.ytNoteViewModelHostUserRatingPublishedNote=function(){var G,N,z,T;return((G=A.data())==null?void 0:(N=G.noteData)==null?void 0:N.isPublished)&&!((z=A.data())==null?0:(T=z.noteData)==null?0:T.isUserRatingForm)},e))},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.u(_.P,{cond:function(){var G,N;
return(G=A.data())==null?void 0:(N=G.noteData)==null?void 0:N.isPinned},
then:function(){return _.u(_.el,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.u(_.P,{cond:function(){var G,N;return(G=A.data())==null?void 0:(N=G.noteData)==null?void 0:N.isPublished},
then:function(){return _.u(_.el,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.u(_.P1,{data:function(){var G;
return(G=A.data())==null?void 0:G.metadata}},{contentMetadataViewModel:_.FV}),_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var G,N;
return(N=_.C((G=A.data())==null?void 0:G.metadata,_.csE))==null?void 0:N.delimiter}),_.u(_.zL,{text:function(){var G;
return(G=Q())==null?void 0:G.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.u(_.P,{cond:function(){var G,N;return!((G=A.data())==null?0:(N=G.noteData)==null?0:N.isUserRatingForm)},
then:function(){return _.u(_.P1,{data:function(){var G,N,z,T,O,c,B,h=!!((G=A.data())==null?0:(N=G.noteData)==null?0:N.isPinned);G=q();N=(z=A.data())==null?void 0:z.noteData;z=(T=t())==null?void 0:(O=T.contributorNote)==null?void 0:O.deleteAction;T=(c=A.data())==null?void 0:c.overflowButtonNoteWithRatingOnTapOverride;c=(B=A.data())==null?void 0:B.overflowButton;var W;B=(W=_.C(c,_.zf))==null?void 0:W.accessibilityText;return h?Rsy(N,z,B):G?{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",onTap:T,accessibilityText:B}}:c}},{buttonViewModel:function(G){return _.u(_.nx,{data:G.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.u("div",{class:"ytNoteViewModelNoteContent"},_.u(_.zL,{text:function(){var G;
return(G=Q())==null?void 0:G.text}})),_.u(_.P,{cond:function(){var G,N,z,T;
return!((G=A.data())==null?0:(N=G.noteData)==null?0:N.isPinned)&&!((z=A.data())==null?0:(T=z.noteData)==null?0:T.isUserRatingForm)},
then:function(){return _.u(_.P,{cond:q,then:function(){return _.u("div",{class:"ytNoteViewModelUserRatingContainer"},_.u(_.zL,{text:function(){var G,N;return hs2((G=f())==null?void 0:G.helpfulnessValue,(N=A.data())==null?void 0:N.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.u(_.P1,{data:function(){var G;return(G=A.data())==null?void 0:G.userRatingButton}},{buttonViewModel:function(G){return _.u(_.nx,{data:G.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.u(_.P,{cond:function(){var G,N,z,T;
return!((G=A.data())==null?0:(N=G.noteData)==null?0:N.ignoreDivider)&&!((z=A.data())==null?0:(T=z.noteData)==null?0:T.isUserRatingForm)},
then:function(){return _.u("div",{class:"ytNoteViewModelDivider"},_.u(_.P1,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(G){return _.u(_.JQw,{data:G.data})}}))}}))}return _.u("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.u(_.P,{cond:function(){var G,N;return(G=A.data())==null?void 0:(N=G.noteData)==null?void 0:N.isPinned},
then:function(){return _.u(_.el,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.u(_.P,{cond:function(){var G,N;return(G=A.data())==null?void 0:(N=G.noteData)==null?void 0:N.isPublished},
then:function(){return _.u(_.el,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.u(_.P,{cond:function(){return X},
then:function(){return _.u(_.P1,{data:function(){var G;return(G=A.data())==null?void 0:G.metadata}},{contentMetadataViewModel:function(G){return _.u(_.FV,{data:G.data})}})}}),_.u(_.zL,{text:function(){var G,N;
return(G=A.data())==null?void 0:(N=G.noteData)==null?void 0:N.headerText}}),_.u("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.u(_.zL,{text:function(){var G,N;
return(G=A.data())==null?void 0:(N=G.noteData)==null?void 0:N.delimiter}})),_.u(_.zL,{text:function(){var G,N;
return(G=t())==null?void 0:(N=G.contributorNote)==null?void 0:N.publishedTimeText}})),_.u(_.P1,{data:function(){var G,N,z;
return Rsy((G=A.data())==null?void 0:G.noteData,(N=t())==null?void 0:(z=N.contributorNote)==null?void 0:z.deleteAction)}},{buttonViewModel:function(G){return _.u(_.nx,{data:G.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.u("div",{class:"ytNoteViewModelNoteContent"},_.u(_.zL,{text:function(){var G,N;
return(G=t())==null?void 0:(N=G.contributorNote)==null?void 0:N.text}})))},"di");
ZV.idomCompat=!0;_.Hn(_.I(function(A){var t=_.dR(function(){var D;return(D=A.data())==null?void 0:D.flowStateEntityKey},""),f=_.Nt(_.SM,t),X=_.Nt(Csl,_.dR(function(){var D;
return(D=A.data())==null?void 0:D.noteFeedEntityKey},"")),Q=_.U(_.Jo(function(){var D;
return(D=_.C(A.data().helpfulnessValue,_.Ge))==null?void 0:D.defaultSelectedKey})),q=Q.next().value,e=Q.next().value;
Q=_.U(_.Jo(function(){var D,S,Z;return(Z=_.C((D=_.C(A.data().helpfulnessValue,_.Ge))==null?void 0:(S=D.radioButtons)==null?void 0:S.find(function(d){var K;return((K=_.C(d,AlA))==null?void 0:K.key)===q()}),AlA))==null?void 0:Z.value}));
var G=Q.next().value,N=Q.next().value;Q=_.U(_.Jo(function(){var D;return(D=_.C(A.data().helpfulReasons,rGm))==null?void 0:D.defaultSelectedKeys}));
var z=Q.next().value,T=Q.next().value;Q=_.U(_.Jo(function(){var D;return(D=_.C(A.data().notHelpfulReasons,rGm))==null?void 0:D.defaultSelectedKeys}));
var O=Q.next().value,c=Q.next().value,B=function(D,S){e(S.key);N(S.value);T([]);c([])},h=function(){var D,S;
return((D=G())==null?void 0:D.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((S=G())==null?void 0:S.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},W=function(){var D,S;
return((D=G())==null?void 0:D.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((S=G())==null?void 0:S.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},L=function(D){mPm(D.key,z,T)},E=function(D){mPm(D.key,O,c)};
_.oh(function(){var D,S,Z;x9h((D=A.data())==null?void 0:(S=D.userRatingFormSchema)==null?void 0:S.id,{isValid:function(){return!!q()},
formData:function(){var d=G(),K=WjA(z(),_.C(A.data().helpfulReasons,rGm)),k=WjA(O(),_.C(A.data().notHelpfulReasons,rGm));d={helpfulnessValue:d==null?void 0:d.noteHelpfulnessValue};if(K){d.helpfulReasons=[];K=_.U(K);for(var Gz=K.next();!Gz.done;Gz=K.next()){Gz=Gz.value;var Tz=void 0;if((Tz=Gz)==null?0:Tz.noteHelpfulReason)Tz=void 0,d.helpfulReasons.push((Tz=Gz)==null?void 0:Tz.noteHelpfulReason)}}if(k)for(d.notHelpfulReasons=[],k=_.U(k),K=k.next();!K.done;K=k.next())if(K=K.value,Gz=void 0,(Gz=K)==
null?0:Gz.noteNotHelpfulReason)Gz=void 0,d.notHelpfulReasons.push((Gz=K)==null?void 0:Gz.noteNotHelpfulReason);return{userRatingFormData:d}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(Z=_.C(f(),ZGA))==null?void 0:Z.submitFormParams},onSubmitResult:function(){var d,K=(d=_.C(f(),ZGA))==null?void 0:d.userRatingEntityKey,k;d={key:K,helpfulnessValue:(k=G())==null?void 0:k.noteHelpfulnessValue};K&&_.og(_.Ta("contextNoteUserRatingEntityPayload",K,d));var Gz;K=(Gz=A.data())==null?void 0:Gz.viewNoteFlowStepId;var Tz;if((Tz=X())==null||!Tz.contributorNote){var y5;K=(y5=A.data())==null?void 0:y5.zeroStateFlowStepId}(Gz=
Object.assign({},f()))&&K&&(Gz.currentStepId=K,Gz.stepIdStack=[K],_.og(_.Ta("flowStateEntity",t(),Gz)));var cp;(Gz=(cp=A.data())==null?void 0:cp.ratingSubmittedSnackbarCommand)&&_.LI(Gz)},
disableDuringSubmission:!0})});
return _.u("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.u(_.P1,{data:function(){var D=_.C(f(),ZGA);if(D){var S;var Z={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:D==null?void 0:(S=D.note)==null?void 0:S.headerText}]}],delimiter:"\u2022"}},existingNote:D.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else Z=void 0;return Z}},{noteViewModel:function(D){return _.u("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.u(ZV,{data:D.data}))}}),_.u(_.P1,{data:function(){var D;
return(D=A.data())==null?void 0:D.helpfulnessValue}},{radioButtonGroupViewModel:function(D){return _.u("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.u(_.VRh,{data:D.data,
onSelected:B,selectedKey:q}))}}),_.u(_.P,{cond:h,
then:function(){return _.u("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.u("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.u(_.zL,{text:function(){var D;return(D=A.data())==null?void 0:D.helpfulReasonQuestion}})),_.u(_.P1,{data:function(){var D;
return(D=A.data())==null?void 0:D.helpfulReasons}},{checkboxGroupViewModel:function(D){return _.u(oIy,{data:D.data,
onItemTap:L,selectedKeys:z,controlledMode:!0})}}))}}),_.u(_.P,{cond:W,
then:function(){return _.u("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.u("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.u(_.zL,{text:function(){var D;return(D=A.data())==null?void 0:D.notHelpfulReasonQuestion}})),_.u(_.P1,{data:function(){var D;
return(D=A.data())==null?void 0:D.notHelpfulReasons}},{checkboxGroupViewModel:function(D){return _.u(oIy,{data:D.data,
onItemTap:E,selectedKeys:O,controlledMode:!0})}}))}}),_.u(_.P,{cond:function(){return!h()&&!W()},
then:function(){return _.u(_.P1,{data:function(){var D;return(D=A.data())==null?void 0:D.helpfulNoteFeatures}},{alertBannerViewModel:function(D){return _.u("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.u(_.u2T,{data:D.data}))}})}}))},"ei"),"yt-note-user-rating-view-model",{props:{data:_.PS}});_.Hn(ZV,"yt-note-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=_.Nt(Csl,_.dR(function(){var f;return(f=A.data())==null?void 0:f.noteFeedEntityKey},""));
return _.u("yt-notes-wrapper-view-model",{class:_.Ao("ytNotesWrapperViewModelHost")},_.u(_.P,{cond:function(){var f,X,Q;return!((f=A.data())==null||!f.existingNotes)||!((X=A.data())==null||!X.currentNote)&&!((Q=t())==null||!Q.contributorNote)},
then:function(){return _.u(_.Tw,null,_.u(_.P1,{data:function(){var f,X,Q,q;return((X=_.C((f=A.data())==null?void 0:f.currentNote,oJj))==null?0:(Q=X.noteData)==null?0:Q.isPublished)?(q=A.data())==null?void 0:q.currentNote:void 0}},{noteViewModel:function(f){return _.u(ZV,{data:f.data})}}),_.u(_.P1,{data:function(){var f;
return(f=A.data())==null?void 0:f.existingNotes}},{noteViewModel:function(f){var X=f.data;
return _.u(_.P,{cond:function(){var Q,q;return(Q=X())==null?void 0:(q=Q.noteData)==null?void 0:q.isPublished},
then:function(){return _.u(ZV,{data:X})}})}}),_.u(_.P1,{data:function(){var f,X,Q,q,e;
return((X=_.C((f=A.data())==null?void 0:f.currentNote,oJj))==null?0:(Q=X.noteData)==null?0:Q.isPublished)||(q=t())==null||!q.contributorNote?void 0:(e=A.data())==null?void 0:e.currentNote}},{noteViewModel:function(f){return _.u(ZV,{data:f.data})}}),_.u(_.P1,{data:function(){var f;
return(f=A.data())==null?void 0:f.existingNotes}},{noteViewModel:function(f){var X=f.data;
return _.u(_.P,{cond:function(){var Q,q;return!((Q=X())==null?0:(q=Q.noteData)==null?0:q.isPublished)},
then:function(){return _.u(ZV,{data:X})}})}}))},
else:function(){return _.u(_.P1,{data:function(){var f;return(f=A.data())==null?void 0:f.zeroStateData}},{contributorZeroStateViewModel:vIQ})}}))},"fi"),"yt-notes-wrapper-view-model",{props:{data:_.PS}});var o5=_.I(function(A){var t=_.Sv(A,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,timePickerData:void 0}),f=t.label,X=t.text,Q=t.placeholder,q=t.hint;A=t.rows;var e=t.overflowStyle,G=t.outline,N=t.disabled,z=t.disableNewLines,T=t.characterLimit,O=t.validation,c=t.onInput,B=t.timePickerData,h=_.GU("textarea");t=_.U(_.Jo(function(){return X()}));
var W=t.next().value,L=t.next().value;t=_.U(_.hZ(!1,void 0,"q1mZCd"));var E=t.next().value,D=t.next().value,S=function(){D(!0)},Z=function(){D(!1)};
_.oh(function(){var Yq=h.value,zk=e(),PT=W();zk==="expand-vertically"&&PT&&yW3(Yq);h.value.addEventListener("focusin",S);h.value.addEventListener("focusout",Z)});
_.dD(function(){h.value.removeEventListener("focusin",S);h.value.removeEventListener("focusout",Z)});
var d=function(){var Yq;return(Yq=O())==null?void 0:Yq.validate(W())},K=function(){return T()&&!d()&&W().length>T().maxChars},k=function(){return!!d()||K()};
t=_.f1(function(Yq){if(!Yq.currentTarget)return!1;Yq=Yq.currentTarget;L(Yq.value);e()==="expand-vertically"&&yW3(Yq);c==null||c(Yq.value);return!0});
var Gz=_.f1(function(Yq){z()&&Yq.key==="Enter"&&Yq.preventDefault();return!1}),Tz=_.f1(function(){h.value.focus()}),y5=function(){return Q()||f()},cp={},iu={},Fb={},xq={};
return _.u("textarea-shape",{class:_.Ao("ytStandardsTextareaShapeHost",(cp.ytStandardsTextareaShapeTimePicker=function(){var Yq;return(Yq=B())==null?void 0:Yq.useTimePickerStyles},cp))},_.u("div",{class:_.Ao("ytStandardsTextareaShapeTextareaContainer",(iu.ytStandardsTextareaShapeTextareaContainerOutline=G,iu.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=N,iu.ytStandardsTextareaShapeTextareaContainerOutlineError=k,iu)),
"on:click":Tz},_.u("label",{class:_.Ao("ytStandardsTextareaShapeLabel",(Fb.ytStandardsTextareaShapeLabelFocused=E,Fb.ytStandardsTextareaShapeLabelDisabled=N,Fb.ytStandardsTextareaShapeLabelError=function(){return k()&&!N()},Fb.ytStandardsTextareaShapeLabelHidden=function(){return!E()&&!W()&&!!y5()},Fb))},f),_.u("div",{class:_.Ao("ytStandardsTextareaShapePlaceholder",(xq.ytStandardsTextareaShapePlaceholderVisible=function(){return!E()&&!W()},xq)),
"aria-hidden":"true"},y5),_.u("textarea",{el:h,class:"ytStandardsTextareaShapeTextarea",rows:A,disabled:N,placeholder:y5,"prop:value":W,"on:input":t,"on:keydown":Gz})),_.u(_.P,{cond:function(){return q()&&!k()},
then:function(){var Yq={};return _.u("div",{class:_.Ao("ytStandardsTextareaShapeHint",(Yq.ytStandardsTextareaShapeHintDisabled=N,Yq))},_.u("div",{class:"ytStandardsTextareaShapeHintHintMessage"},q))}}),_.u(_.P,{cond:d,
then:function(){return _.u(d_3,{disabled:N},_.u("div",{class:"ytStandardsTextareaShapeErrorMessage"},d))}}),_.u(_.P,{cond:T,
then:function(Yq){return _.u(_.P,{cond:K,then:function(){return _.u(d_3,{disabled:N},_.u("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Yq().errorMessage}),_.u("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return W().length+"/"+Yq().maxChars}))}})}}))},"gi");
o5.idomCompat={callbacks:{onInput:!0}};var d_3=_.I(function(A){var t={};return _.u("div",{class:_.Ao("ytStandardsTextareaShapeError",(t.ytStandardsTextareaShapeErrorDisabled=A.disabled,t)),role:"alert"},_.u(_.el,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),A.children)},"hi");_.Sph=_.I(function(A){var t=A.data;return _.u("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.u(o5,{text:A.text,label:function(){var f;return(f=t().contentProperties)==null?void 0:f.labelText},
placeholder:function(){var f;return(f=t().contentProperties)==null?void 0:f.placeholderText},
hint:function(){var f;return(f=t().contentProperties)==null?void 0:f.hintText},
outline:function(){var f;return!((f=t().displayProperties)==null?0:f.hideBorder)},
overflowStyle:function(){var f;return((f=t().displayProperties)==null?0:f.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:A.disabled,disableNewLines:function(){var f;return(f=t().displayProperties)==null?void 0:f.disableNewLines},
onInput:A.onInput,characterLimit:A.characterLimit,validation:A.validation,rows:function(){var f;return(f=t().displayProperties)==null?void 0:f.rows}}))},"ii");_.$_3=_.I(function(A){var t=A.data;return _.u("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.u(o5,{text:A.text,label:function(){var f;return(f=t().contentProperties)==null?void 0:f.labelText},
placeholder:function(){var f;return(f=t().contentProperties)==null?void 0:f.placeholderText},
hint:function(){var f;return(f=t().contentProperties)==null?void 0:f.hintText},
outline:function(){var f;return!((f=t().displayProperties)==null?0:f.hideBorder)},
overflowStyle:function(){var f;return((f=t().displayProperties)==null?0:f.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var f;return(f=t().displayProperties)==null?void 0:f.disableNewLines},
onInput:A.onInput,characterLimit:A.characterLimit,validation:A.validation,rows:function(){var f;return(f=t().displayProperties)==null?void 0:f.rows}}))},"ji");var HZ8=_.I(function(A){var t=_.U(_.Jo(function(){var Tz,y5;return((Tz=A.data().structuredContextNoteFormSchema)==null?0:(y5=Tz.initialValues)==null?0:y5.noteBody)?A.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),f=t.next().value,X=t.next().value;
t=_.U(_.Jo(function(){A.data();return!1}));
var Q=t.next().value,q=t.next().value;t=_.U(_.Jo(function(){A.data();return!1}));
var e=t.next().value,G=t.next().value;t=_.U(_.Jo(function(){var Tz,y5;return((Tz=A.data().structuredContextNoteFormSchema)==null?0:(y5=Tz.initialValues)==null?0:y5.timestamp)?A.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var N=t.next().value,z=t.next().value;t=_.U(_.Jo(function(){A.data();return!1}));
var T=t.next().value,O=t.next().value;t=_.U(_.Jo(function(){var Tz,y5;return((Tz=A.data().structuredContextNoteFormSchema)==null?0:(y5=Tz.initialValues)==null?0:y5.sources)?[A.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var c=t.next().value,B=t.next().value;t=_.U(_.Jo(function(){A.data();return!1}));
var h=t.next().value,W=t.next().value;t=_.U(_.Jo(function(){return!1}));
var L=t.next().value,E=t.next().value;_.oh(function(){var Tz;_.jwh((Tz=A.data().structuredContextNoteFormSchema)==null?void 0:Tz.id,{isSubmitting:L,onSubmit:function(){E(!0);var y5=xPm(f(),N(),c(),A.data()),cp=_.Px().resolve(_.i2);y5&&cp&&cp.resolveCommand(y5,{commandController:{onSuccess:function(){E(!1)}}})},
isValid:function(){return Q()&&!e()&&!T()&&!h()}})});
var D=function(Tz){if(Tz!==void 0&&(X(Tz),!Q()&&Tz.length>0&&q(!0),Q())){var y5=pV3(A.data());if(y5){var cp=y5.minLength;y5=y5.maxLength;cp&&Tz.length<cp?G(!0):y5&&Tz.length>y5?G(!0):G(!1)}}},S=function(Tz){if(Tz!==void 0){z(Tz);
if(Tz.length>0){var y5,cp,iu,Fb,xq=niw((y5=A.data())==null?void 0:(cp=y5.structuredContextNoteFormSchema)==null?void 0:(iu=cp.fieldSchemas)==null?void 0:(Fb=iu.timestamp)==null?void 0:Fb.validationSchema);if(xq&&(y5=xq.regex)&&!(new RegExp(y5)).test(Tz)){O(!0);return}}O(!1)}},Z=function(Tz){if(Tz!==void 0){var y5=Tz.split(/[ \n]/).map(function(cp){return cp.trim()});
B(y5);if(Tz.length>0)for(Tz=_.U(y5),y5=Tz.next();!y5.done;y5=Tz.next())if(!Ifj(y5.value)){W(!0);return}W(!1)}},d=function(){return{validate:function(Tz){if(Q()){var y5=pV3(A.data());
if(y5){var cp=y5.minLength;y5=y5.translations;if(cp&&Tz.length<cp)return y5==null?void 0:y5.minLengthErrorMessage}}}}},K=function(){var Tz=pV3(A.data()),y5=Tz==null?void 0:Tz.maxLength,cp;
Tz=Tz==null?void 0:(cp=Tz.translations)==null?void 0:cp.maxLengthErrorMessage;if(y5&&Tz)return{maxChars:y5,errorMessage:Tz}},k=function(){return{validate:function(Tz){if(Tz){var y5,cp,iu,Fb,xq=niw((y5=A.data())==null?void 0:(cp=y5.structuredContextNoteFormSchema)==null?void 0:(iu=cp.fieldSchemas)==null?void 0:(Fb=iu.timestamp)==null?void 0:Fb.validationSchema);
if(xq&&(y5=xq.regex,xq=xq.translations,y5&&!(new RegExp(y5)).test(Tz)))return xq==null?void 0:xq.regexErrorMessage}}}},Gz=function(){return{validate:function(Tz){if(Tz){var y5,cp,iu,Fb,xq=Fjh((y5=A.data())==null?void 0:(cp=y5.structuredContextNoteFormSchema)==null?void 0:(iu=cp.fieldSchemas)==null?void 0:(Fb=iu.sources)==null?void 0:Fb.validationSchema);
if(xq&&(y5=xq.translations,y5==null?0:y5.selectedErrorMessage))for(Tz=Tz.split(/[ \n]/).map(function(Yq){return Yq.trim()}),Tz=_.U(Tz),cp=Tz.next();!cp.done;cp=Tz.next())if(!Ifj(cp.value))return Tz=void 0,(Tz=y5)==null?void 0:Tz.selectedErrorMessage}}}};
return _.u("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.P1,{data:function(){var Tz;return(Tz=A.data())==null?void 0:Tz.noteContents}},{textFormFieldViewModel:function(Tz){return _.u(_.$_3,{data:Tz.data,
onInput:D,validation:d,characterLimit:K})},
textFieldViewModel:function(Tz){return _.u(_.Sph,{data:Tz.data,onInput:D,validation:d,characterLimit:K})}})),_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.P1,{data:function(){var Tz;
return(Tz=A.data())==null?void 0:Tz.noteTimestamp}},{textFormFieldViewModel:function(Tz){return _.u(_.$_3,{data:Tz.data,
onInput:S,validation:k})},
textFieldViewModel:function(Tz){return _.u(_.Sph,{data:Tz.data,onInput:S,validation:k})}})),_.u("div",{class:"ytStructuredContextNoteViewModelTextField"},_.u(_.P1,{data:function(){var Tz;
return(Tz=A.data())==null?void 0:Tz.noteSources}},{textFormFieldViewModel:function(Tz){return _.u(_.$_3,{data:Tz.data,
onInput:Z,validation:Gz})},
textFieldViewModel:function(Tz){return _.u(_.Sph,{data:Tz.data,onInput:Z,validation:Gz})}})))},"ki");
HZ8.idomCompat=!0;_.Hn(HZ8,"yt-structured-context-note-view-model",{props:{data:_.PS}});var atw=_.I(function(A){var t=_.U(_.Jo(function(){var q;if((q=A.controlled)==null?0:q.call(A))return[];var e;return(((e=A.data())==null?void 0:e.chips)||[]).map(function(G){G=_.C(G,_.PX);if(G==null?0:G.selected)return jW3(G.chipValue)}).filter(function(G){return G!==void 0})})),f=t.next().value,X=t.next().value,Q=function(q){var e=jW3(q.chipValue);
if(e!==void 0){var G;if((G=A.controlled)==null?0:G.call(A))return void A.controlled().onTap(e);q=f().includes(e)?[].concat(_.YV(f().filter(function(z){return z!==e}))):[].concat(_.YV(f()),[e]);
X(q);var N;if((N=A.uncontrolled)==null?0:N.call(A))A.uncontrolled().onUpdate(q)}};
return _.u("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.u(_.xk,{each:function(){return A.data().chips||[]}},function(q){return _.u("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.u(_.nel,{data:function(){return _.C(q,_.PX)},
selected:function(){var e;if(e=_.C(q,_.PX)){var G=jW3(e.chipValue);if(G!==void 0){var N;e=((N=A.controlled)==null?0:N.call(A))?A.controlled().selectedValues.includes(G):f().includes(G)}else e=void 0}else e=!1;return e},
callback:Q}))}))},"li");var Kvy=_.I(function(A){var t=A.data;var f=function(){var G;return((G=t())==null?void 0:G.flowStateKey)||""},X=_.Nt(_.SM,f),Q=function(){var G;
return(G=_.C(X(),dij))==null?void 0:G.chips},q=function(G){if(G!==void 0){var N=Q()||[];
N=N.find(function(z){return z===G})?N.filter(function(z){return z!==G}):[].concat(_.YV(N),[G]);
N=Object.assign({},X(),{feedbackFormFlowState:Object.assign({},_.C(X(),dij),{chips:N})});_.og(_.Ta("flowStateEntity",f(),N))}},e=function(){var G;
return _.C((G=t())==null?void 0:G.inputBox,S9Q)};
A=_.yD(function(G){var N=e();N=!(N==null?0:N.maxChars)||G.length<=N.maxChars;G=Object.assign({},X(),{feedbackFormFlowState:Object.assign({},_.C(X(),dij),{detail:G}),abuseReportFlowState:Object.assign({},_.C(X(),eo),{navigationEnabled:N})});_.og(_.Ta("flowStateEntity",f(),G))},150);
return _.u("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.u("div",{class:"ytFeedbackFormViewModelChips"},_.u(_.P1,{data:function(){var G;return(G=t())==null?void 0:G.chipSelection}},{chipSelectionFormFieldViewModel:function(G){return _.u(atw,{data:G.data,
controlled:function(){return{selectedValues:Q()||[],onTap:q}}})}})),_.u("div",{class:"ytFeedbackFormViewModelInputBox"},_.u(o5,{text:function(){var G;
return(G=_.C(X(),dij))==null?void 0:G.detail},
placeholder:function(){var G;return((G=e())==null?void 0:G.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var G=e();if(G&&G.maxChars)return{maxChars:G.maxChars,errorMessage:G.maxCharsExceededErrorMessage||""}},
onInput:A})),_.u("div",{class:"ytFeedbackFormViewModelFooterText"},_.u(_.zL,{text:function(){return t().footerText}})))},"mi");
Kvy.idomCompat=!0;_.Hn(Kvy,"yt-feedback-form-view-model",{props:{data:_.PS}});var gIm=_.I(function(A){var t=A.data;var f=_.Nt(I_2,function(){return t().flowStateKey||""}),X=function(){var Q;
_.LI((Q=_.C(f(),eo))==null?void 0:Q.navigationCommand)};
return _.u("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.u("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.u(_.P1,{data:function(){return t().cancelButton}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:X})}}),_.u(_.P1,{data:function(){var Q;
if(t().navButton){var q=Object;var e=q.assign,G=_.C(t().navButton,_.zf),N=((Q=_.C(f(),eo))==null?0:Q.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",z,T;Q=_.C((z=_.C(f(),eo))==null?void 0:z.navigationCommand,_.mG);z=(T=_.C(Q,_.fV))==null?void 0:T.url;q={buttonViewModel:e.call(q,{},G,{state:N,iconName:z?"OPEN_IN_NEW":""})}}else q=void 0;return q}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:X})}})))},"ni");
gIm.idomCompat=!0;_.Hn(gIm,"yt-report-form-bottom-bar-view-model",{props:{data:_.PS}});var wE3=_.I(function(A){var t=A.nextStep;return _.u("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.u("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.u(_.el,{icon:function(){return t().iconName||""}})),_.u("div",null,_.u(_.zL,{text:function(){return t().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"oi"),sC8=_.I(function(A){var t=A.data;
var f,X=(f=_.Px().resolve(_.z7(_.FH)))==null?void 0:f(),Q=_.Nt(_.SM,function(){return t().flowStateKey||""});
return _.u("yt-report-form-confirmation-page-view-model",{class:function(){var q;return((q=_.C(Q(),eo))==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.u("div",{class:function(){var q;
return((q=_.C(Q(),eo))==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.u(_.YA,{data:function(){return X&&t().imageDark?t().imageDark:t().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.u("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return t().confirmationHeader}),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.u(_.zL,{text:function(){return t().confirmationText}})),_.u("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.u(_.zL,{text:function(){return t().lawEnforcementText}})),
_.u("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return t().whatToExpectHeader}),_.u(_.P,{cond:function(){return t().nextSteps},
then:function(q){return _.u("div",null,_.u(_.xk,{each:q},function(e){return _.u(wE3,{nextStep:e})}))}}),_.u(_.P,{cond:function(){return t().legalReportText},
then:function(q){return _.u("div",null,_.u(_.zL,{text:q,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"pi");
sC8.idomCompat=!0;_.Hn(sC8,"yt-report-form-confirmation-page-view-model",{props:{data:_.PS}});var k$Q=_.I(function(A){var t=A.data;var f=function(){var q;return((q=_.C(t().inputBox,S9Q))==null?void 0:q.maxChars)||500},X=function(){return t().flowStateKey||""},Q=_.Nt(_.SM,X);
A=_.yD(function(q){q=Object.assign({},Q(),{flowFormState:{isValid:q.length<=f()},abuseReportFlowState:{userComments:q,navigationEnabled:!(q.length>f()),isReportFormDirty:!0}});_.ZK().dispatch(_.m0("flowStateEntity",X(),q))},150);
_.oh(function(){var q=Object.assign({},Q(),{flowFormState:{isValid:!0}});_.ZK().dispatch(_.m0("flowStateEntity",X(),q))});
return _.u("yt-report-form-details-page-view-model",{class:function(){var q;return((q=_.C(Q(),eo))==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.u("h1",{class:function(){var q;
return((q=_.C(Q(),eo))==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return t().detailsPageHeader}),_.u("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.u(_.zL,{text:function(){return t().bodyText}})),_.u("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.u(o5,{label:function(){var q;
return((q=_.C(t().inputBox,S9Q))==null?void 0:q.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var q;return{errorMessage:((q=_.C(t().inputBox,S9Q))==null?void 0:q.maxCharsExceededErrorMessage)||"",maxChars:f()}},
onInput:A})))},"qi");
k$Q.idomCompat=!0;_.Hn(k$Q,"yt-report-form-details-page-view-model",{props:{data:_.PS}});var rR_=_.I(function(A){var t=A.data;var f=function(){return t().flowStateKey||""},X=_.Nt(_.SM,f),Q=function(){return _.C(X(),eo)};
return _.u("yt-report-form-reason-select-page-view-model",{class:function(){var q;return((q=Q())==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.u("h1",{class:function(){var q;
return((q=Q())==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return t().pageHeader}),_.u("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.u(_.zL,{text:function(){return t().bodyText}})),_.u("div",{class:function(){var q;
return((q=Q())==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.u(_.VRh,{data:function(){return _.C(t().radioButtonGroup,_.Ge)},
onSelected:function(q,e){q=Object.assign({},X(),{abuseReportFlowState:Object.assign({},Q(),{reasonKey:e.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:e.command})});_.og(_.Ta("flowStateEntity",f(),q))},
selectedKey:function(){var q;return(q=Q())==null?void 0:q.reasonKey},
groupName:"report-form-reason-select-page"})))},"ri");
rR_.idomCompat=!0;_.Hn(rR_,"yt-report-form-reason-select-page-view-model",{props:{data:_.PS}});var ALl=_.I(function(A){var t=A.data;var f,X=(f=_.Px().resolve(_.z7(_.FH)))==null?void 0:f();return _.u("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.u("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.u(_.YA,{data:function(){return X&&t().imageDark?t().imageDark:t().image},
alt:""})),_.u("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.u("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return t().header}),_.u(_.zL,{text:function(){return t().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"si");
ALl.idomCompat=!0;_.Hn(ALl,"yt-report-form-sign-in-page-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=_.um(_.xub.talkToRecsStateSelector),X=function(){return t().titleSuperscript},Q=function(){return t().answersShelf},q=function(){return t().videoShelf},e=function(){var k;
return(k=t().textInputPlaceholder)==null?void 0:k.content},G=function(){return t().showOpenTextInput},N=function(){var k;
return(k=t().textInputValue)==null?void 0:k.content},z=function(){return t().isMultiTurnFlow?t().resetButtonViewModel:void 0},T="",O=function(){return t().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
A=_.U(_.hZ("",void 0,"GjDBze"));var c=A.next().value,B=A.next().value;A=_.U(_.hZ(!1,void 0,"cHfsvd"));var h=A.next().value,W=A.next().value,L=function(){return{state:h()||c()?"active":"disabled",disabled:!(h()||c())}};
_.Zk(function(){if(G()){N()&&B(N());var k;if(!z()&&((k=f())==null?0:k.stepStates)){var Gz;k=Object.keys((Gz=f())==null?void 0:Gz.stepStates);Gz=k[k.length-1];var Tz,y5;Gz=(Tz=f().stepStates[Gz])==null?void 0:(y5=Tz.userQuery)==null?void 0:y5.userQuery;_.og(_.ITw());Gz&&E(Gz)}}});
var E=function(k){var Gz=t().onUpdateText;Gz&&_.LI(Gz,{form:{userQuery:k}});B(k)},D=_.yD(function(k){E(k.target.value.trim())},150),S=_.f1(function(k){var Gz;
T=(Gz=k.target.value)==null?void 0:Gz.trim();D(k);return!1}),Z=_.f1(function(k){k.key==="Enter"&&(h()||c())&&(E(k.target.value.trim()),K());
return!1}),d=function(k,Gz){W(Gz);
if(Gz){if(t().isMultiTurnFlow&&!T){var Tz;E((Tz=k==null?void 0:k.text)!=null?Tz:"")}t().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&K()}else B(T)},K=function(){var k=_.C(t().nextButtonViewModel,_.zf);
if(k==null?0:k.trackingParams){k=_.zV(k.trackingParams);var Gz=_.Ws();Gz&&k&&_.d0(Gz,k,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(k=t().onNextStepCommand)&&_.LI(k)};
A={};return _.u("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.u("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.u(_.P1,{data:function(){return t().topCornerButton}},{buttonViewModel:_.nx})),_.u("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.u("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.u(_.zL,{text:function(){return t().title}}),_.u(_.P,{cond:X,
then:function(){return _.u("sup",{class:"ytwTalkToRecsSuperScript"},_.u(_.zL,{text:X}))}})),_.u("div",{class:"ytwTalkToRecsSubtitle"},_.u(_.zL,{text:function(){return t().subtitle}})),_.u("div",{class:"ytwTalkToRecsResultsShelf"},_.u(_.P,{cond:Q,
then:function(){return _.u(_.P1,{data:Q},{chipsShelfViewModel:function(k){return _.u("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.u(_.S9,{data:k.data,callback:d,selectionBehavior:O}))}})}}),_.u(_.P,{cond:q,
then:function(){return _.u(_.P1,{data:q},{horizontalShelfViewModel:function(k){return _.u("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.u(_.iq,{data:k.data,thumbnailAspectRatio:0}))}})}})),_.u("div",{class:_.Ao("ytwTalkToRecsRefinementContainer",(A.ytwTalkToRecsBottomMargin=function(){return t().isMultiTurnFlow},A))},_.u(_.P,{cond:G,
then:function(){return _.u("div",{class:"ytwTalkToRecsUserInputBox"},_.u("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:e,value:c,"on:input":S,"on:keyup":Z,maxlength:200}))}}),_.u(_.P1,{data:function(){return t().isMultiTurnFlow?t().nextButtonViewModel:void 0}},{buttonViewModel:function(k){return _.u("div",{class:"ytwTalkToRecsFlowControlButtons"},_.u(_.nx,{data:k.data,
buttonOverrides:L}))}}),_.u(_.P1,{data:z},{buttonViewModel:function(k){return _.u("div",{class:"ytwTalkToRecsFlowControlButtons"},_.u(_.nx,{data:k.data,
onClick:function(){var Gz=_.C(t().resetButtonViewModel,_.zf);E(c());(Gz=Gz==null?void 0:Gz.onTap)&&_.LI(Gz)}}))}}))))},"ui"),"yt-talk-to-recs-view-model",{props:{data:_.PS}});var Ygh={sources:[{clientResource:{imageName:"CHECK"}}]};_.tIw=_.I(function(A){var t=_.GU("div");A=_.Sv(A,{error:void 0});var f=A.data,X=A.error,Q=A.onSelected;A=_.U(_.Jo(function(){return oiy(f())}));
var q=A.next().value,e=A.next().value;HPQ(f,function(c){e(c);var B,h,W=ZPh((B=f().options)==null?void 0:(h=B[c])==null?void 0:h.value,f().type);Q==null||Q(W);t.value.focus()});
A=_.f1(function(){if(!f().disabled){var c=f(),B=q(),h=t.value;c.options&&(c=V0j(c.options,B,c.label),_.Px().resolve(_.Ak).openSheet({viewModel:c},h))}});
var G=_.Yrs(),N=function(){return!!X()},z=function(){return!!f().disabled},T={},O={};
return _.u("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.u("div",{class:_.Ao("ytDropdownViewModelDropdownContainer",(T.ytDropdownViewModelDropdownContainerErrorBorder=N,T.ytDropdownViewModelDropdownContainerDisabled=z,T)),"on:click":A,el:t,role:"combobox",tabindex:0,"on:keydown":G,"aria-invalid":N,"aria-disabled":z,"aria-describedby":function(){return N()?"dropdown-view-model-error":void 0}},_.u("div",{class:"ytDropdownViewModelText"},dPy(f,N,q),Sgm(f,q)),_.u("div",{class:_.Ao("ytDropdownViewModelChevronDown",
(O.ytDropdownViewModelChevronDownDisabled=z,O))},_.u(_.el,{icon:"CHEVRON_DOWN"}))),$Pd(f,X))},"vi");_.Hn(_.I(function(A){var t=A.data;var f=function(Q){var q=Kjd(t());q.videoMetadata||(q.videoMetadata={});q.videoMetadata.sponsorshipsMetadata||(q.videoMetadata.sponsorshipsMetadata={});q.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Q)},X=function(Q){var q=Kjd(t());
q.scheduledRedirectMetadata||(q.scheduledRedirectMetadata={});q.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Q)};
return _.u("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.u("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.u("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.u(_.zL,{text:function(){return t().title}}),_.u(_.el,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.u(_.zL,{text:function(){return t().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.u(_.P1,{data:function(){return t().tierChoices}},{dropdownViewModel:function(Q){return _.u("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.u(_.tIw,{data:Q.data,
onSelected:f}))}}),_.u(_.P1,{data:function(){return t().startTimeChoices}},{dropdownViewModel:function(Q){return _.u("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.u(_.tIw,{data:Q.data,
onSelected:X}))}}),_.u(_.zL,{text:function(){return t().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.u("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.u(_.P1,{data:function(){return t().scheduleButton}},{panelFooterViewModel:_.Vl})))},"wi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;A=A.className===void 0?"":A.className;var f=_.Nt(I_2,function(){return t().flowStateEntityKey||""}),X={};
X=_.Ao("ytFlowBottomBarViewModelFlowBottomBarButtons",(X.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},X));
var Q={},q=_.Ao("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",X,(Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Q));
Q={};var e=_.Ao("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",X,(Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Q));
X={};X=_.Ao("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(X.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},X.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},X.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
X));
A=_.Ao("ytFlowBottomBarViewModelHost",A);return _.u("yt-flow-bottom-bar-view-model",{class:A},_.u(_.P,{cond:function(){var G;return(G=t())==null?void 0:G.textSection},
then:function(G){return _.u("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.u(_.zL,{text:G}))}}),_.u("div",{class:X},_.u(_.P1,{data:function(){return t().secondaryButton}},{buttonViewModel:function(G){return _.u(_.nx,{data:G.data,
className:e})}}),_.u(_.P1,{data:function(){return t().primaryButton}},{buttonViewModel:function(G){return _.u(_.nx,{data:G.data,
className:q,buttonOverrides:function(){var N;return{disabled:!((N=f())==null||!N.primaryButtonDisabled)}}})}})))},"xi"),"yt-flow-bottom-bar-view-model",{props:{data:_.PS,
className:_.dt}});var f2h="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),dl=function(){var A=_.F.apply(this,arguments)||this;A.enableScrollingFix=!0;A.bottomBar=!1;A.fitContent=!1;return A};
_.R(dl,_.F);_.J=dl.prototype;_.J.ready=function(){_.M("enable_pdp_icon_prefetch")&&_.nJ_(_.Px().resolve(_.hi),0,f2h)};
_.J.focus=function(A){this.topBar?_.eY(this.topBar,A):this.paperDialog.focus(A)};
_.J.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19471_scroller&&(this.JSC$19471_scroller.dialogElement=this.paperDialog,this.JSC$19471_scroller.attached&&typeof this.JSC$19471_scroller.attached==="function"&&this.JSC$19471_scroller.attached())};
_.J.onDataChanged=function(){var A;this.fitContent=!((A=this.data)==null||!A.fitContent);var t;this.bottomBar=!((t=this.data)==null||!t.bottomBar)};
_.J.onProgressChanged=function(){var A,t,f=((t=(A=this.data)==null?void 0:A.progress)!=null?t:0)*100;this.progressElement.style.width=f+"%"};
_.J.isProgressHidden=function(){var A;return!((A=this.data)==null?0:A.progress)};
_.J.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",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-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(A){return A&&!A.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
dl.prototype.onProgressChanged=dl.prototype.onProgressChanged;dl.prototype.onDataChanged=dl.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],dl.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dl.prototype,"enableScrollingFix",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dl.prototype,"bottomBar",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dl.prototype,"fitContent",void 0);_.V([_.lo("#progress"),_.H("design:type",HTMLElement)],dl.prototype,"progressElement",void 0);_.V([_.lo("#scroller"),_.H("design:type",Object)],dl.prototype,"JSC$19471_scroller",void 0);_.V([_.lo("ytd-flow-top-bar-renderer"),_.H("design:type",HTMLElement)],dl.prototype,"topBar",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dl.prototype,"onDataChanged",null);_.V([_.ev("data.progress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dl.prototype,"onProgressChanged",null);_.V([_.y_({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],dl);
_.Y(dl,"ytd-flow-step-renderer",function(){if(WPl!==void 0)return WPl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return WPl=A},{mode:1});var So=function(A){this.resolveCommand=A;this.steps={}},Xi_=function(A,t){t=_.U(t||[]);
for(var f=t.next();!f.done;f=t.next()){f=f.value;var X=Object.values(f)[0],Q=void 0;if((Q=X)==null?0:Q.stepId)A.steps[X.stepId]=f}},qFd=function(A,t){var f,X,Q,q,e;
return _.l(function(G){if((f=A.state)==null||!f.currentStepId)return G.return(void 0);X=A.getCurrentStep();if(!X)return G.return(QOy(A));if(Q=_.C(X,_.KX))A.logVEScreen(Q),((q=Q)==null?0:q.onStepStartCommand)&&A.resolveCommand((e=Q)==null?void 0:e.onStepStartCommand,{});Q&&t&&(A.logFlowEvent(Q,t),t.steps&&!t.steps.includes(X)&&t.steps.push(X));return G.return(X)})};
So.prototype.back=function(){var A;(A=this.state)!=null&&A.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
So.prototype.handleUpdateFlowCommand=function(A){A.steps&&Xi_(this,A.steps);A.entityUpdateCommand&&this.resolveCommand(A.entityUpdateCommand,{});A.flowContinuationCommand&&(A=A.flowContinuationCommand)&&(this.getFlowContinuationCommand=A);this.awaitFlowContinuation&&(A=this.getCurrentStep(),this.awaitFlowContinuation(A),this.awaitFlowContinuation=void 0)};
So.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var QOy=function(A){return _.l(function(t){return A.getFlowContinuationCommand?t.return(new Promise(function(f){A.awaitFlowContinuation=f;A.getFlowContinuationCommand&&A.resolveCommand(A.getFlowContinuationCommand,{flow_state:A.state})})):t.return(Promise.resolve(void 0))})};
So.prototype.getCurrentStep=function(){var A;if((A=this.state)!=null&&A.currentStepId)return this.steps[this.state.currentStepId]};
So.prototype.logVEScreen=function(A){var t;((t=A.screenLoggingData)==null?0:t.screenVeType)&&_.xz(_.er(),A.screenLoggingData.screenVeType)};
So.prototype.logFlowEvent=function(A,t){var f,X,Q,q;((f=t.flowLoggingData)==null?0:f.eventNamespace)&&((X=A.flowEventData)==null?0:X.eventType)&&((Q=A.flowEventData)==null?0:Q.eventMetadata)&&((q=t.flowLoggingData)==null?0:q.flowType)&&(A=_.qv(t.flowLoggingData.eventNamespace,A.flowEventData.eventType,A.flowEventData.eventMetadata),_.JL().logFlowEvent(A,t.flowLoggingData.flowType))};
_.PV.Object.defineProperties(So.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.state)==null?void 0:A.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.state)!=null&&A.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(t,f){f.key&&f.value&&(t[f.key]=f.value);return t},{})}}});var $M=function(){var A=_.F.apply(this,arguments)||this;A.flowState=_.M("web_use_flow_state_manager")?void 0:new So(function(t,f){f=f===void 0?{}:f;_.XH.instance.resolveCommand(t,{form:{form:f,element:A.hostElement}})});
A.JSC$19482_flowStateManager=_.M("web_use_flow_state_manager")?_.Px().resolve(_.dr):void 0;A.currentTargetId="";A.initialState=!0;A.isLoading=!1;A.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"};A.containsTalkToRecs=!1;return A};
_.R($M,_.F);_.J=$M.prototype;_.J.onPopupClosed=function(A){if(!A||this.hostElement===A.detail.popupRenderer){if(this.JSC$19482_flowStateManager){var t;((t=this.data)==null?0:t.flowStateEntityKey)&&this.JSC$19482_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.J.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.J.focus=function(A){var t=this;_.FD(function(){var f=_.sF(t.hostElement).querySelector("ytd-flow-step-renderer");(f==null?0:f.topBar)?f.focus(A):t.topBar&&_.eY(t.topBar,A)},1)};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.J.computeTopBarHidden=function(A){var t;return!((t=_.C(A,_.KX))==null||!t.topBarOverride)};
_.J.onCurrentFlowChange=function(){if(this.JSC$19482_flowStateManager&&this.data&&this.flow){var A=Wx8(this.JSC$19482_flowStateManager,this.data),t;A&&((t=this.flow)==null?0:t.currentStepId)&&(Lxd(A,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.J.observeData=function(){var A=this;if(this.JSC$19482_flowStateManager){var t=this.currentTargetId,f,X,Q=(X=(f=this.data)==null?void 0:f.targetId)!=null?X:"";t!==Q&&t&&yGl(this.JSC$19482_flowStateManager,t);this.currentTargetId=Q;this.data&&vJl(Wx8(this.JSC$19482_flowStateManager,this.data),function(q){q&&(A.initialState=!1,A.currentFlowStep={flowStepRenderer:q},A.isLoading=!A.currentFlowStep,A.autofocusAndRefit(),A.updateContainsTalkToRecs(),A.logVEScreen(),A.logFlowEvent())})}};
_.J.dataChanged=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1){if(!A.flowState)return X.return();((t=A.data)==null?0:t.steps)&&Xi_(A.flowState,A.data.steps);if((f=A.data)==null?0:f.flowContinuationCommand){var Q=A.flowState,q=A.data.flowContinuationCommand;q&&(Q.getFlowContinuationCommand=q)}return X.yield(qFd(A.flowState,A.data),2)}A.currentFlowStep=X.yieldResult;_.LO(X)})};
_.J.flowChanged=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1){if(!A.flowState||!A.flow)return f.return();A.flowState.state=A.flow;A.isLoading=!0;return f.yield(qFd(A.flowState,A.data),2)}t=f.yieldResult;if(!t||A.flow.isLoading)return f.return();A.currentFlowStep=t;A.initialState=!1;A.isLoading=!1;A.autofocusAndRefit();A.updateContainsTalkToRecs();_.LO(f)})};
_.J.logVEScreen=function(){var A,t,f=(A=_.C(this.currentFlowStep,_.KX))==null?void 0:(t=A.screenLoggingData)==null?void 0:t.screenVeType;f&&_.xz(_.Px().resolve(_.gx),f)};
_.J.logFlowEvent=function(){var A=_.C(this.currentFlowStep,_.KX),t,f,X,Q,q,e;(this==null?0:(t=this.data)==null?0:(f=t.flowLoggingData)==null?0:f.eventNamespace)&&(this==null?0:(X=this.data)==null?0:(Q=X.flowLoggingData)==null?0:Q.flowType)&&(A==null?0:(q=A.flowEventData)==null?0:q.eventType)&&(A==null?0:(e=A.flowEventData)==null?0:e.eventMetadata)&&(A=_.qv(this.data.flowLoggingData.eventNamespace,A.flowEventData.eventType,A.flowEventData.eventMetadata),_.JL().logFlowEvent(A,this.data.flowLoggingData.flowType))};
_.J.updateContainsTalkToRecs=function(){var A,t=(A=_.C(this.currentFlowStep,_.KX))==null?void 0:A.content;this.containsTalkToRecs=!!t&&!!_.C(t,ws_)};
_.J.autofocusAndRefit=function(){var A=this,t=_.Px().resolve(_.z7(_.mJ)),f=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),X=document.querySelector("yt-report-form-confirmation-page-view-model"),Q=document.querySelector("yt-report-form-details-page-view-model"),q=document.querySelector("yt-report-form-reason-select-page-view-model"),e=document.querySelector("yt-contributor-zero-state-view-model"),
G=document.querySelector("yt-structured-context-note-view-model"),N=document.querySelector("yt-note-view-model");(!f&&t&&t.isKeyBoardInUse()||X||!f&&Q||!f&&q||!f&&(e||G||N))&&_.GO(this.hostElement);_.us(this,function(){_.s9(A.hostElement,"yt-refit")})};
_.J.handleUpdateFlowCommand=function(A){this.flowState?this.data&&(A=_.C(A,_.GnT),A.targetId===this.data.targetId&&(A.flowContinuationCommand&&(this.data.flowContinuationCommand=A.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(A),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(A)};
_.J.handleFlowNextStepCommand=function(A){this.JSC$19482_flowStateManager?this.ytComponentBehavior.resolveCommand(A):this.data&&this.flow&&this.flow.key&&(A=_.C(A,_.qwS),A.targetId===this.data.targetId&&(A=A.stepId||"",this.ytdReduxBehavior.dispatch(_.m0("flowStateEntity",this.flow.key,{currentStepId:A,stepIdStack:(this.flow.stepIdStack||[]).concat(A)}))))};
_.J.handleFlowPrevStepCommand=function(A){if(this.JSC$19482_flowStateManager)this.ytComponentBehavior.resolveCommand(A);else if(this.data&&this.flow&&this.flow.key&&(A=_.C(A,_.JSE),A.targetId===this.data.targetId)){var t=[].concat(_.YV(this.flow.stepIdStack||[]));t.length>1?(t.pop(),this.ytdReduxBehavior.dispatch(_.m0("flowStateEntity",this.flow.key,{currentStepId:t[t.length-1],stepIdStack:t}))):A.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(A.onFirstStepCommand)}};
_.J.handleYpcCancelRecurrenceCommand=function(A){if(this.data&&this.flow&&this.flow.key&&(A=_.C(A,t5d),A.targetId===this.data.targetId&&A.endpointCommand)){var t=_.C(this.flow,fNm);t&&_.C(A.endpointCommand,_.MXl)&&(_.C(A.endpointCommand,_.MXl).feedbackData=t.surveyFeedback);this.ytComponentBehavior.resolveCommand(A.endpointCommand)}};
_.J.handlePartialUpdateFlowStateEntity=function(A){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.m0("flowStateEntity",this.flow.key,A,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
$M.prototype.flowChanged=$M.prototype.flowChanged;$M.prototype.dataChanged=$M.prototype.dataChanged;$M.prototype.observeData=$M.prototype.observeData;$M.prototype.onCurrentFlowChange=$M.prototype.onCurrentFlowChange;$M.prototype.onPopupClosed=$M.prototype.onPopupClosed;_.V([_.b(_.qT),_.H("design:type",Object)],$M.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],$M.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],$M.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$M.prototype,"initialState",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$M.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",Object)],$M.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],$M.prototype,"currentFlowStep",void 0);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$M.prototype,"onPopupClosed",null);
_.V([_.n({selectorArgs:["data.flowStateEntityKey"],selector:I_2}),_.H("design:type",Object)],$M.prototype,"flow",void 0);_.V([_.lo("ytd-flow-top-bar-renderer"),_.H("design:type",HTMLElement)],$M.prototype,"topBar",void 0);_.V([_.ev("data","flow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$M.prototype,"onCurrentFlowChange",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$M.prototype,"observeData",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],$M.prototype,"dataChanged",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$M.prototype,"containsTalkToRecs",void 0);_.V([_.PU("flow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],$M.prototype,"flowChanged",null);_.V([_.y_({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],$M);
_.JL2=_.wR()($M,"ytd-flow-root-renderer",function(){if(bfy!==void 0)return bfy;var A=document.createElement("template");_.m(A,'\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="root-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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return bfy=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var Uvm;var Jx=null;_.Hn(_.I(function(A){return _.u("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.u("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.u(_.zL,{text:function(){return A.data().text}}),_.u("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"yi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.PS}});var e9w=_.I(function(A){var t=A.playerControlsProps;var f=A.isShortsPage;return _.u("yt-bigboard",null,_.u(_.P,{cond:function(){return t().isDragging},
then:function(){return _.u("div",{class:"ytBigboardStoryboardHost"},_.u(_.wDd,{progressBarProps:t,isShortsPage:f}))}}))},"zi");
e9w.idomCompat=!0;_.HB={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"),AUDIO_TRACK:US("AUDIO_TRACK","Audio Track"),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"),AUTO_ZOOM:US("AUTO_ZOOM","Auto zoom"),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"),PREMIUM_BADGE_LABEL:US("PREMIUM_BADGE_LABEL","Premium"),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_ATTRIBUTION_LABEL:US("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),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 GDQ=_.I(function(A){var t=A.playerApi;A=_.GU("button",function(X){_.$S(X,36843)});
var f=US("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.u("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.u("button",{el:A,class:"ytPlayerControlsJumpForwardButtonButton",title:f,"aria-label":f,"on:click":_.f1(function(){_.H3(36843);t&&t().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.u("span",null,_.u(_.el,{icon:"FAST_FORWARD"}))))},"Ai");var l2h=_.I(function(A){var t=A.appApi;A=_.GU("button",function(X){_.$S(X,62946)});
var f=US("OPEN_IN_MINIPLAYER");return _.u("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.u("button",{el:A,class:"ytMiniplayerButtonButton",title:f,"aria-label":f,"on:click":_.f1(function(){_.H3(62946);var X,Q;(Q=(X=t()).openInMiniplayer)==null||Q.call(X);return!1})},_.u(_.el,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Bi");var NHl=_.I(function(A){var t=A.playerApi;A=_.GU("button",function(q){_.$S(q,142812)});
var f=_.U(_.hZ(!1,void 0,"eOMRAb")),X=f.next().value,Q=f.next().value;f=function(){return US("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(X()?1:2)})};
return _.u("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.u("button",{el:A,class:"ytPlaybackSpeedButtonButton",title:f,"aria-label":f,"on:click":_.f1(function(){_.H3(142812);if(t){var q=t(),e=X();q.setPlaybackRate(e?1:2);Q(!X())}return!1})},_.u("span",null,_.u(_.el,{icon:function(){return X()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Ci");var ucl=_.I(function(A){var t=A.title;var f=A.ariaLabel;var X=A.icon;var Q=A.command;var q=A.visualElementId;A=_.GU("button",function(e){q&&_.$S(e,q())});
return _.u("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.u("button",{el:A,class:"ytdThumbnailOverlayButtonButton",title:t,"aria-label":f,"on:click":_.f1(function(){q&&_.H3(q());Q&&_.Px().resolve(_.i2).resolveCommand(Q())})},_.u(_.el,{icon:X})))},"Di");var kS="";var z98=_.I(function(A){var t=A.playerControlsProps,f=A.onClickFn;A=_.yq(function(){var q=t(),e=-1;q.captionsAvailable&&(e=q.captionsEnabled?1:0);return e},void 0,"MZ0Wqe");
var X=_.yq(function(){var q=t();return q.captionsAvailable?_.e5(q.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.e5("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),Q=_.yq(function(){var q=t();
q=q.captionsAvailable?q.captionsEnabled:void 0;return q},void 0,"fhuQRe");
return _.u("yt-closed-captions-toggle-button",null,_.u(_.D92,{captionIconType:A,ariaLabel:X,ariaPressed:Q,onClick:function(q){var e=t();if(e.captionsAvailable){var G=e.playerApi;if(G){var N=e.playerApi;if(N){var z=kS;if(z){N=N.getOption("captions","track");var T;kS=(T=N?N.displayName:null)!=null?T:z}else _.Sf(N)?(z=_.Wnx(N),kS=z.length?(T=VU3(z))?T.displayName:z[0].displayName:""):kS=""}ZV_(G);_.M("mweb_disable_set_state_captions_killswitch")&&e.setState({captionsEnabled:!e.captionsEnabled})}}var O,
c;(c=(O=e.appApi).showCaptionsToggleToast)==null||c.call(O,e);f==null||f(q)},
isOverlay:!0}))},"Ei");var PYj=_.I(function(A){var t=A.data;return _.u("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.u(_.lO,{data:function(){return{type:17,text:_.nUx(t().label)}}}))},"Fi");var THc=_.I(function(A){var t=_.Ao("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return A.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return A.size()==="small"?A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.u("animated-seek-arrows",{class:_.Ao("ytPlayerControlsAnimatedSeekArrowsHost")},_.u("span",{class:t}),_.u("span",{class:t}),_.u("span",{class:t}))},"Gi");
THc.idomCompat=!0;var ipd=_.I(function(){var A=_.e5("PLAYER_SECONDS",{seconds_placeholder:"30"}),t=_.U(_.hZ(!1,void 0,"iRJu8c")),f=t.next().value,X=t.next().value,Q=_.U(_.hZ(!1,void 0,"MPnizf"));t=Q.next().value;var q=Q.next().value;Q={};var e=_.Ao("jumpForwardOverlayOverlay",(Q.jumpForwardOverlayOverlayHidden=t,Q));_.oh(function(){var G=null,N=null,z=function(){G!==null&&_.m_().cancelJob(G);N!==null&&_.m_().cancelJob(N);q(!0);X(!0);_.sX(_.m_(),function(){q(!1)});
G=_.sX(_.m_(),function(){q(!0);N=_.sX(_.m_(),function(){X(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",z);_.dD(function(){window.removeEventListener("jump-forward-clicked",z)})});
return _.u("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.u(_.P,{cond:f,then:function(){return _.u("div",{class:e},_.u(THc,{direction:1,size:"large"}),_.u("div",null,A))}}))},"Hi");var Opd=_.HB.MUTE_VOLUME,cLd=_.HB.UNMUTE_VOLUME,BH8=_.I(function(A){var t=A.muteIconType;var f=A.onClick;var X=A.useOutlineIcon;var Q=A.useDelhiIcons;A=_.GU("button",function(G){_.$S(G,28662)});
var q=function(){var G=t(),N=X==null?void 0:X(),z=Q==null?void 0:Q(),T="",O="";switch(G){case -1:case 0:T=N?"VOLUME_OFF":z?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";O=cLd;break;case 1:T=N?"VOLUME_UP_OUTLINE":z?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";O=Opd;break;case 2:T=N?"VOLUME_DOWN_OUTLINE":z?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";O=Opd;break;default:_.ap(G)}return{iconName:T,ariaLabel:O}},e=function(){return q().ariaLabel};
return _.u("ytm-mute-button",{class:"ytmMuteButtonHost"},_.u("button",{el:A,class:"ytmMuteButtonButton",title:e,"aria-label":e,"on:click":_.f1(function(G){_.H3(28662);f==null||f(G);return!1})},_.u("span",null,_.u(_.el,{icon:function(){return q().iconName}}))))},"Ii");var MIy=_.I(function(A){var t=A.volumeProps;var f=A.onClickFn;var X=A.useOutlineIcon;var Q=A.useDelhiIcons;return _.u("yt-mute-toggle-button",null,_.u(BH8,{muteIconType:function(){var q=t();return q.volumeMuted||q.volume===0?0:q.volume>50?1:2},
onClick:function(q){var e=t().playerApi;e&&(e.isMuted()?e.unMute():e.mute(!1));f==null||f(q)},
useOutlineIcon:function(){return!(X==null||!X())},
useDelhiIcons:function(){return!(Q==null||!Q())}}))},"Ji");
MIy.idomCompat=!0;var CY_=_.I(function(A){var t=A.data;var f=_.GU("ytm-paid-content-overlay-renderer");return _.u("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:f,"on:animationend":_.f1(function(){f.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.u(_.bc,{command:function(){return t().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.u(_.P,{cond:function(){var X;return(X=t().icon)==null?void 0:X.iconType},
then:function(){return _.u("span",null,_.u(_.el,{icon:function(){var X;return(X=t().icon)==null?void 0:X.iconType}}))}}),_.u("div",{class:"ytmPaidContentOverlayText"},_.u(_.zL,{text:function(){return t().text}})),_.u(_.P,{cond:function(){return t().navigationEndpoint},
then:function(){return _.u(_.el,{icon:"CHEVRON_RIGHT"})}})))},"Ki");
CY_.idomCompat=!0;var xi3=[].concat(_.YV([{register:function(A){var t=B2h(A),f;(f=A().playerApi)==null||f.addEventListener("onVolumeChange",t);return function(){}}},
{register:function(A){var t=Ma2(A);A=A().playerApi;A==null||A.addEventListener("captionschanged",t);A==null||A.addEventListener("captionssettingschanged",t);A==null||A.addEventListener("onCaptionsTrackListChanged",t);return function(){}}}]),[{register:function(A){var t=T2d(A),f;
(f=A().playerApi)==null||f.addEventListener("onStateChange",t);return function(){}}},
{register:function(A){var t=iGh(A),f;(f=A().playerApi)==null||f.addEventListener("onPlaybackRateChange",t);return function(){}}},
{register:function(A){var t=OGy(A),f;(f=A().playerApi)==null||f.addEventListener("onVideoDataChange",t);return function(){}}},
{register:function(A){var t=cG3(A),f,X;(f=A())==null||(X=f.playerApi)==null||X.addEventListener("onVideoProgress",t);return function(){}}}]);var h9m=_.I(function(A){var t=A.data;var f=function(){return _.e5("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+t().playbackRate})};
return _.u(_.P,{cond:function(){return t().playbackRate&&t().playbackRate!==1},
then:function(){return _.u("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.u("div",{class:"ytPlaybackRateOverlayOverlay"},_.u(THc,{direction:1,size:"small"}),_.u("div",{class:"ytPlaybackRateOverlayLabel"},f)))}})},"Mi");var R9w=_.I(function(A){var t=A.data;return _.u("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.u(_.P,{cond:function(){var f,X=(f=t())==null?void 0:f.playerResponse,Q;return X==null?void 0:(Q=X.paidContentOverlay)==null?void 0:Q.paidContentOverlayRenderer},
then:function(f){return _.u(CY_,{data:f})}}))},"Oi"),mvh=_.I(function(A){var t=A.props;
var f=A.data;var X=A.options;var Q=function(){var z,T,O,c;return(z=f())==null?void 0:(T=z.playerResponse)==null?void 0:(O=T.playerConfig)==null?void 0:(c=O.inlinePlaybackConfig)==null?void 0:c.showAudioControls},q=function(){var z,T;
if(Q()&&((z=X())==null?void 0:(T=z.additionalButton)==null?void 0:T.button)!==void 0){var O,c,B;z=(O=f())==null?void 0:(c=O.playerApi)==null?void 0:(B=c.getSize())==null?void 0:B.height;if(!(z===void 0||z<180)){var h,W;return(h=X())==null?void 0:(W=h.additionalButton)==null?void 0:W.button}}},e=function(){var z,T;
return(z=X())==null?void 0:(T=z.additionalButton)==null?void 0:T.thumbnailOverlayButtonRenderers},G=function(){var z,T;
return(z=X())==null?void 0:(T=z.additionalButton)==null?void 0:T.thumbnailOverlayButtonViewModels},N=function(){var z=[_.u(MIy,{volumeProps:t})],T;
((T=X())==null?0:T.hideCaptionsToggleButton)||z.push(_.u(z98,{playerControlsProps:t}));q()===1&&z.push(_.u(GDQ,{playerApi:function(){return t().playerApi}}));
q()===2&&z.push(_.u(l2h,{appApi:function(){return t().appApi}}));
q()===3&&z.push(_.u(NHl,{playerApi:function(){return t().playerApi}}));
T=e();if(q()===4&&T){T=_.U(T);for(var O=T.next(),c={};!O.done;c={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$603:void 0},O=T.next()){O=O.value;c.tooltip$jscomp$2=O.tooltip;var B=void 0,h=void 0;c.ariaLabel$jscomp$19=((B=O.accessibility)==null?void 0:(h=B.accessibilityData)==null?void 0:h.label)||c.tooltip$jscomp$2;B=void 0;c.icon$jscomp$50=(B=O.icon)==null?void 0:B.iconType;c.command$jscomp$603=O.command;c.tooltip$jscomp$2&&c.ariaLabel$jscomp$19&&c.icon$jscomp$50&&
z.push(_.u(ucl,{title:function(W){return function(){return W.tooltip$jscomp$2}}(c),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$19}}(c),
icon:function(W){return function(){return W.icon$jscomp$50}}(c),
command:function(W){return function(){return W.command$jscomp$603}}(c)}))}}T=G();
if(q()===4&&T)for(T=_.U(T),O=T.next(),c={};!O.done;c={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$604:void 0,trackingParamsVeType:void 0},O=T.next())O=O.value,c.tooltip$jscomp$3=O.title,c.ariaLabel$jscomp$20=O.accessibilityText||c.tooltip$jscomp$3,c.icon$jscomp$51=O.iconName,c.command$jscomp$604=_.bP(O.onTap),h=B=void 0,c.trackingParamsVeType=((B=O.loggingDirectives)==null?0:B.trackingParams)?(h=gJc(_.sx(O.loggingDirectives.trackingParams)))==null?void 0:
_.Pf(h,2):void 0,c.tooltip$jscomp$3&&c.ariaLabel$jscomp$20&&c.icon$jscomp$51&&z.push(_.u(ucl,{title:function(W){return function(){return W.tooltip$jscomp$3}}(c),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$20}}(c),
icon:function(W){return function(){return W.icon$jscomp$51}}(c),
command:function(W){return function(){return W.command$jscomp$604}}(c),
visualElementId:function(W){return function(){return W.trackingParamsVeType}}(c)}));
return z};
return _.u(_.P,{cond:Q,then:function(){return _.u("div",{class:"ytInlinePlayerControlsTopRightControls"},_.u(_.xk,{each:N},function(z){return _.u("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.u("div",{class:"ytInlinePlayerControlsButtonIcon"},z))}))}})},"Pi"),yLc=_.I(function(A){var t=A.props;
var f=A.data;var X=A.options;A={};A=_.Ao("ytInlinePlayerControlsBottomRightControls",(A.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Q;return hZd(f(),X())&&((Q=X())==null?void 0:Q.insetProgressBar)&&(t().isHovering||t().isDragging)},A));
return _.u("div",{class:A},_.u(bp3,{data:f}),_.u(_.P,{cond:function(){var Q;return!((Q=X())==null?0:Q.hideTimeDisplay)},
then:function(){return _.u(Wtd,{props:t,data:f})}}))},"Qi"),bp3=_.I(function(A){var t=A.data;
return _.u(_.P1,{data:function(){var f;return eZw((f=t())==null?void 0:f.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:PYj})},"Ri"),Wtd=_.I(function(A){var t=A.props;
var f=A.data;return _.u(_.P,{cond:function(){return t().isLive},
then:function(){return _.u(vOm,{props:t,data:f})},
else:function(){return _.u(Lt2,{props:t,data:f})}})},"Si"),Lt2=_.I(function(A){var t=A.props;
var f=A.data;var X=_.yq(function(){var Q;return Grc((Q=f())==null?void 0:Q.thumbnailOverlays)},void 0,"AFvHu");
return _.u("div",{class:_.Ao("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.HB.PLAYER_TIME_ELAPSED+" "+_.k1b(t().playedTime)}},_.u(_.lO,{data:function(){var Q=_.k1b(t().videoDuration-t().playedTime);
return Object.assign({},{type:17,text:Q},X())}}))},"Ti"),piA=_.I(function(A){A=A.badgeShapeData;
return _.u("div",{class:_.Ao("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.u(_.lO,{data:A}))},"Ui"),vOm=_.I(function(A){var t=A.data;
A=_.yq(function(){if(_.M("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var X,Q;return(X=t())==null?void 0:(Q=X.thumbnailOverlays)==null?void 0:Q.find(function(q){return q.thumbnailOverlayTimeStatusRenderer||q.thumbnailOverlayBadgeViewModel})}},void 0,"y9XYN");
var f=_.yq(function(){var X,Q,q,e,G,N;return _.jUT((X=t())==null?void 0:(Q=X.playerApi)==null?void 0:(q=Q.getSize())==null?void 0:q.width,(e=t())==null?void 0:(G=e.playerApi)==null?void 0:(N=G.getSize())==null?void 0:N.height)},void 0,"anNoxe");
return _.u(_.P,{cond:A,then:function(X){return _.u(_.P1,{data:X},{thumbnailOverlayTimeStatusRenderer:function(Q){var q=Q.data;Q=_.yq(function(){return _.bKp(q(),0)},void 0,"Ncdcme");
return _.u(piA,{badgeShapeData:Q})},
thumbnailOverlayBadgeViewModel:function(Q){return _.u(_.pZT,{data:Q.data,thumbnailSize:f})}})},
else:function(){var X={type:18,text:_.HB.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.u(piA,{badgeShapeData:function(){return X}})}})},"Vi"),EO8=_.I(function(A){var t=A.props;
var f=A.data;var X=A.options;return _.u(_.f32,{progressBarProps:t,config:function(){var Q,q=_.C((Q=f())==null?void 0:Q.multiMarkersPlayerBar,_.Hml),e;Q=((e=X())==null?0:e.insetProgressBar)?2:1;var G;e=(G=X())==null?void 0:G.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Q,chapterData:q,isInlinePlayback:!0,doSeekOnClick:e,playheadDotBehavior:e?1:0}}})},"Wi");_.Hn(_.I(function(A){var t=A.data;var f=A.appApi;var X=A.options;var Q=PSm(t,CSh(f));A={};f={};return _.u("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.u("div",{class:_.Ao("ytInlinePlayerControlsDarkenedOverlay",(A.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Q().isHovering},A))}),_.u(ipd,null),_.u(h9m,{data:Q}),_.u(R9w,{data:t}),_.u(e9w,{playerControlsProps:Q,
isShortsPage:!1}),_.u("div",{class:_.Ao((f.ytInlinePlayerControlsControlsHidden=function(){return Q().isDragging},f))},_.u(mvh,{props:Q,
data:t,options:X}),_.u(yLc,{props:Q,data:t,options:X})),_.u(_.P,{cond:function(){return hZd(t(),X())},
then:function(){return _.u(EO8,{props:Q,data:t,options:X})}}))},"Ni"),"yt-inline-player-controls",{props:{data:_.PS,
appApi:_.dt,options:_.PS}});var a5=function(){var A=_.F.apply(this,arguments)||this;A.opts=null;A.playerControlsData=null;A.playerControlsAppApi={openInMiniplayer:function(){A.openInMiniplayer()}};
A.playerControlsOptions={};A.noAnimation=!1;A.playbackIntentTriggered=!1;A.positionData=null;A.hidden=!0;A.active=!1;A.playing=!1;A.persistentPanelVisible=!1;A.videoPreviewDataIndex=0;A.JSC$19525_playerPromise=null;A.player=null;A.enableAudioControls=!1;A.hasBeenUnmuted=!1;A.captionsHaveBeenTurnedOff=!1;A.JSC$19525_playerEvents=new Map;A.videoPreviewFetchRequest=null;A.scheduledPreviewEndJobId=null;A.JSC$19525_preventProgressSaveTimer=null;A.watchEndpointStartTimeUpdaterInterval=null;A.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};A.windowOnBlurFn=function(){A.deactivate()};
return A};
_.R(a5,_.F);_.J=a5.prototype;
_.J.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{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",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.J.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19525_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19525_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19525_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19525_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.JY(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.JY(this,this.onScroll))};
_.J.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.JY(this,this.onScroll))};
_.J.onPageTypeChange=function(){this.deactivate()};
_.J.onWindowResized=function(){this.deactivate()};
_.J.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.J.onCaptionsChanged=function(A){A=!!A.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!A);this.setCaptionSize()};
_.J.setCaptionSize=function(){var A;if(this.active&&!this.captionsHaveBeenTurnedOff&&((A=this.player)==null?0:A.getCaptionWindowContainerId())){var t;(t=this.player)==null||t.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.J.currentPageAllowed=function(){return!this.isWatchPage};
_.J.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.M("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var A=this.positionData,t=A.initialTopPosition,f=A.initialHorizontalPosition;_.Q_(this.hostElement,{"--ytd-video-preview-translate-left":A.finalHorizontalPosition-f+"px","--ytd-video-preview-translate-top":A.finalTopPosition-t+"px","--ytd-video-preview-original-top-position":t+
"px","--ytd-video-preview-original-horizontal-position":f+"px","--ytd-video-preview-initial-scale":"scale("+A.initialScale+")","--ytd-video-preview-width":A.videoPreviewWidth+"px","--ytd-video-preview-height":A.videoPreviewHeight+"px"});return!0};
_.J.isOutOfBounds=function(A){var t=A.initialHorizontalPosition+12;A=t+A.videoPreviewWidth>window.innerWidth;return t<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&t<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&t<72||A};
_.J.handleOpenVideoPreviewAction=function(A){var t=this,f;return _.l(function(X){if(!t.currentPageAllowed())return X.return(0);t.opts=A;return(f=t.alignVideoPreviewForAnimation(A.thumbnail))?X.return(t.activate()):X.return(0)})};
_.J.onMouseLeave=function(A){var t,f;(t=this.opts)==null||(f=t.mouseleaveCallback)==null||f.call(t);this.shouldDeactivateOnMouseLeave(A)&&this.deactivate()};
_.J.onScroll=function(){var A,t;((A=this.opts)==null?0:A.isAutoplay)&&((t=this.opts)==null?0:t.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.J.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.a6.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.J.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.J.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",a5.JSC$19524_DEFAULT_CLICK_LOCATION_BEHAVIOR,a5.JSC$19524_CLICK_LOCATION_ID_MAP)};
_.J.shouldDeactivateOnMouseLeave=function(A){A=A.relatedTarget;if(!A)return!0;var t;return(t=this.opts)!=null&&t.mediaRenderer?!_.kO(this.opts.mediaRenderer).contains(A):!0};
_.J.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.J.onPlaybackStart=function(){var A=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$19525_preventProgressSaveTimer=
_.sX(_.a6,function(){A.resetPreventProgressSaveTimer()},1E4);
var t;if((t=this.opts)==null?0:t.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.sX(_.a6,function(){A.hasMultipleVideoPreviews()?A.startPlaybackForNextVideo():A.deactivate()},this.opts.videoPreviewDurationMs);
var f;this.player.setGlobalCrop(((f=this.opts)==null?0:f.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.J.getRoundedCornersSize=function(){var A;if((A=this.opts)==null?0:A.roundedCornersSize){var t;return(t=this.opts)==null?void 0:t.roundedCornersSize}var f;if((f=this.opts)==null?0:f.enableRounding){var X;if(((X=this.opts)==null?void 0:X.thumbnailSize)==="small")return 1;var Q;if(((Q=this.opts)==null?void 0:Q.thumbnailSize)==="medium")return 2;var q;if(((q=this.opts)==null?void 0:q.thumbnailSize)==="large")return 3}return _.M("web_imp_inset_progress_bar")?3:0};
_.J.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.J.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.J.onMediaContainerClick=function(A){this.isShortcutClick(A)||(this.navigateToWatch(A),A.preventDefault(),A.stopPropagation())};
_.J.activate=function(){var A=this,t,f,X,Q,q,e,G,N,z;return _.l(function(T){switch(T.nextAddress){case 1:if(!A.currentPageAllowed())return T.return(0);f=(t=A.videoPreviewData)==null?void 0:t.inlinePlaybackEndpoint;X=_.IM.instance;if(!f||!X)return T.return(0);A.playbackIntentTriggered=!0;((Q=A.opts)==null?0:Q.mediaRenderer)&&((q=A.opts)==null||!q.isAutoplay)&&Qq3(A.opts.mediaRenderer,function(){A.deactivate()});
_.us(A,function(){A.revealPreviewUi()});
e={};_.M("enable_unknown_lact_fix_on_html5")&&(_.Px().resolve(_.PO),e.lact=_.iX());A.videoPreviewFetchRequest=kSh(X,A.getInlinePlaybackRequestData(A.videoPreviewData),e);_.ht(T,2);return T.yield(A.videoPreviewFetchRequest,4);case 4:G=T.yieldResult;if(((N=G)==null?void 0:(z=N.playabilityStatus)==null?void 0:z.status)==="OK")return T.return(A.handlePlayerResponse(G));throw Error("gk");case 2:_.vC(T),A.deactivate();case 3:return T.return(1)}})};
_.J.getInlinePlaybackRequestData=function(A){var t,f=_.M("web_imp_player_mute_params")?((t=this.opts)==null?void 0:t.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:A.inlinePlaybackEndpoint,startPlaybackInMutedState:f}};
_.J.handlePlayerResponse=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O,c,B,h,W;return _.l(function(L){if(L.nextAddress==1){f=t.getInlinePlaybackVideoId();if(!(((X=A)==null?0:(Q=X.videoDetails)==null?0:Q.videoId)&&t.currentPageAllowed()&&t.playbackIntentTriggered&&t.opts&&f))return t.deactivate(),L.return(0);if(A.videoDetails.videoId!==f)return L.return(0);t.enableAudioControls=!!((q=A.playerConfig)==null?0:(e=q.inlinePlaybackConfig)==null?0:e.showAudioControls);A.trackingParams=t.getInlinePlaybackTrackingParams();
if(!t.inlinePlayer)return L.return(0);G={};if(z=_.C((N=t.videoPreviewData)==null?void 0:N.inlinePlaybackEndpoint,_.ZT))G.watch_endpoint=z;if(t.videoPreviewData){var E,D=(E=_.C(t.videoPreviewData.inlinePlaybackEndpoint,_.ZT))==null?void 0:E.startTimeSeconds;D!==void 0&&(A.playerConfig||(A.playerConfig={}),A.playerConfig.playbackStartConfig||(A.playerConfig.playbackStartConfig={}),A.playerConfig.playbackStartConfig.startPosition||(A.playerConfig.playbackStartConfig.startPosition={}),A.playerConfig.playbackStartConfig.startSeconds=
D,A.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(D*1E3))}t.inlinePlayer.loadVideoWithPlayerResponse(A,G);if(t.JSC$19525_playerPromise)return L.jumpTo(2);t.JSC$19525_playerPromise=t.inlinePlayer.getPlayerPromise();return L.yield(t.JSC$19525_playerPromise,3)}L.nextAddress!=2&&(T=L.yieldResult,T.setInlinePreview(!0),O=!_.M("web_imp_theater_bugfix"),T.setSizeStyle(!1,O),t.ytPlayerListenerBehavior.listenToPlayerEvents(T,t.JSC$19525_playerEvents),t.player=T,_.s9(t.hostElement,
"player-api-ready"));((c=t.opts)==null?0:c.showPlayerControls)&&t.videoPreviewData&&t.player&&(t.playerControlsData={playerResponse:A,isInlinePlayback:!0,thumbnailOverlays:t.videoPreviewData.thumbnailOverlays,playerApi:t.player},t.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!t.unroundCornersForPlayback,additionalButton:t.getAdditionalButtonType(t.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(B=t.opts)==null?void 0:B.hideTimeDisplay,hideScrubbingControls:(h=t.opts)==
null?void 0:h.hideScrubber,hideCaptionsToggleButton:(W=t.opts)==null?void 0:W.hideCaptionsToggleButton});return L.return(2)})};
_.J.revealPreviewUi=function(){var A=this;this.playbackIntentTriggered&&_.TVb(this,function(){A.hasThumbnailPositionChangedSinceTriggered()||(A.updateActiveState(!0),A.noAnimation=!1)})};
_.J.hasThumbnailPositionChangedSinceTriggered=function(){var A=this.positionData,t=this.getThumbnailPositionData();return(A==null?void 0:A.initialTopPosition)!==(t==null?void 0:t.initialTopPosition)||(A==null?void 0:A.initialHorizontalPosition)!==(t==null?void 0:t.initialHorizontalPosition)};
_.J.getThumbnailPositionData=function(){var A,t;if((t=this.opts)==null||!t.thumbnail)return null;t=this.opts.thumbnail;var f=((A=this.opts)==null?0:A.cropPlayerToFillThumbnailHorizontally)?!1:!0;var X=t.getBoundingClientRect();A=X.width;t=X.height;var Q=X.top+window.scrollY;X=X.left+window.scrollX;var q=f?Math.ceil(A):A;f=f?Math.ceil(t):t;var e=A/q;A={initialScale:e,initialTopPosition:Q-12*e,finalTopPosition:Q-12-(f-t)/2,initialHorizontalPosition:X-(12+(q-A)/2),finalHorizontalPosition:X-12-(q-A)/
2,videoPreviewWidth:q,videoPreviewHeight:f};return A};
_.J.updateActiveState=function(A){this.active=A;this.ytdReduxBehavior.dispatch(_.r0({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:A}))};
_.J.stopPlayer=function(A){A=A.resetWatchEndpointStartTime===void 0?!1:A.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(A)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.a6.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.J.deactivate=function(A){A=A===void 0?{}:A;A=A.resetWatchEndpointStartTime===void 0?!1:A.resetWatchEndpointStartTime;Jx&&(Jx.disconnect(),Jx=null);this.stopPlayer({resetWatchEndpointStartTime:A});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.J.isValidThumbnailOverlayButton=function(A,t){A=A.thumbnailOverlayButtonRenderer;var f;return!!A&&!!A.tooltip&&!((f=A.icon)==null||!f.iconType)&&t.includes(A.icon.iconType)};
_.J.isValidThumbnailOverlayButtonViewModel=function(A,t){var f;A=_.C((f=A.thumbnailOverlayButtonViewModel)==null?void 0:f.overlayButton,_.zf);return!!A&&!!A.title&&!!A.iconName&&t.includes(A.iconName)};
_.J.getAdditionalButtonType=function(A){var t=this;if(_.M("web_imp_fastforward_button"))return{button:1};if(_.M("web_imp_miniplayer_button"))return{button:2};if(_.M("web_imp_playback_speed_button"))return{button:3};var f=["BOX_STACK_3"],X=(A||[]).filter(function(q){return t.isValidThumbnailOverlayButton(q,f)}).map(function(q){return q.thumbnailOverlayButtonRenderer});
if(X.length)return{button:4,thumbnailOverlayButtonRenderers:X};var Q=["BOX_STACK_3"];A=(A||[]).filter(function(q){return t.isValidThumbnailOverlayButtonViewModel(q,Q)}).map(function(q){return _.C(q.thumbnailOverlayButtonViewModel.overlayButton,_.zf)});
if(A.length)return{button:4,thumbnailOverlayButtonViewModels:A}};
_.J.allowCaptions=function(){var A;return!((A=this.opts)==null?0:A.forceCaptionsOff)};
_.J.allowUnmuting=function(){var A;return this.enableAudioControls&&!((A=this.opts)==null?0:A.forceMutedVolume)};
_.J.beginStartTimeUpdater=function(){var A=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.my(function(){A.updateWatchEndpointStartTime()},1E3)};
_.J.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.J.resetPreventProgressSaveTimer=function(){this.JSC$19525_preventProgressSaveTimer!==null&&(_.a6.cancelJob(this.JSC$19525_preventProgressSaveTimer),this.JSC$19525_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.J.updateWatchEndpointStartTime=function(A){var t=this.videoPreviewData;if(this.player&&t!=null&&t.inlinePlaybackEndpoint&&!this.JSC$19525_preventProgressSaveTimer){A=A?0:Math.floor(this.player.getCurrentTime());var f=_.C(t.navigationEndpoint,_.ZT);f&&(f.startTimeSeconds=A);if(t=_.C(t.inlinePlaybackEndpoint,_.ZT))t.startTimeSeconds=A}};
_.J.isShortcutClick=function(A){return!!A&&(A.ctrlKey||A.shiftKey||A.metaKey)};
_.J.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.J.openInMiniplayer=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1){f=(t=A.videoPreviewData)==null?void 0:t.navigationEndpoint;if(!f)return X.return();_.$z().lockupActivation=!0;return X.yield(_.g0p(_.Px().resolve(_.DS),f),2)}_.$z().userActivation=!0;_.LO(X)})};
_.J.navigateToWatch=function(A){var t,f=(t=this.videoPreviewData)==null?void 0:t.navigationEndpoint;if(f){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(f,A,!0);else{var X;_.M("web_thumbnail_to_watch_transition")&&((X=this.opts)==null?0:X.thumbnail)&&_.HMS(_.Px().resolve(_.w4),this.opts.thumbnail);_.s9(this.hostElement,"yt-navigate",{endpoint:f})}this.deactivate()}};
_.J.getInlinePlaybackVideoId=function(){var A,t;return(t=_.C((A=this.videoPreviewData)==null?void 0:A.inlinePlaybackEndpoint,_.ZT))==null?void 0:t.videoId};
_.J.getInlinePlaybackTrackingParams=function(){var A,t;return(A=this.videoPreviewData)==null?void 0:(t=A.inlinePlaybackEndpoint)==null?void 0:t.clickTrackingParams};
_.J.hasMultipleVideoPreviews=function(){var A;return!!(((A=this.opts)==null?0:A.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.J.startPlaybackForNextVideo=function(){var A;(A=this.opts)!=null&&A.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())};
_.PV.Object.defineProperties(a5.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.opts)==null?0:A.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.opts)==null||!A.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 A;if(Array.isArray((A=this.opts)==null?void 0:A.videoPreviewData)){var t;return(t=this.opts)==null?void 0:t.videoPreviewData[this.videoPreviewDataIndex]}var f;return(f=this.opts)==null?void 0:f.videoPreviewData}}});
a5.prototype.onIsAdsVideoChange=a5.prototype.onIsAdsVideoChange;a5.prototype.onInlinePreviewIsEnabledChange=a5.prototype.onInlinePreviewIsEnabledChange;a5.prototype.optsChanged=a5.prototype.optsChanged;a5.prototype.onMouseLeave=a5.prototype.onMouseLeave;a5.prototype.onPersistentPanelVisibleChange=a5.prototype.onPersistentPanelVisibleChange;a5.JSC$19524_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
a5.JSC$19524_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"}];_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],a5.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],a5.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],a5.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],a5.prototype,"componentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],a5.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.mu.YtSparklesClickLocationBehavior),_.H("design:type",Object)],a5.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],a5.prototype,"opts",void 0);_.V([_.n(),_.H("design:type",Object)],a5.prototype,"playerControlsData",void 0);_.V([_.n(),_.H("design:type",Object)],a5.prototype,"playerControlsAppApi",void 0);
_.V([_.n(),_.H("design:type",Object)],a5.prototype,"playerControlsOptions",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],a5.prototype,"noAnimation",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],a5.prototype,"hidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],a5.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],a5.prototype,"playing",void 0);
_.V([_.n({selector:_.DXq}),_.H("design:type",Boolean)],a5.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.n(),_.H("design:type",String)],a5.prototype,"pagePath",void 0);_.V([_.n({selector:_.pS5}),_.H("design:type",Boolean)],a5.prototype,"isWatchPage",void 0);_.V([_.n({selector:_.Iv.persistentPanelVisibleSelector}),_.H("design:type",Object)],a5.prototype,"persistentPanelVisible",void 0);
_.V([_.y("videoPreviewData"),_.H("design:type",Object),_.H("design:paramtypes",[])],a5.prototype,"thumbnailData",null);_.V([_.y("opts","active"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],a5.prototype,"hidePlayerControls",null);_.V([_.y("opts"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],a5.prototype,"isAdsVideo",null);
_.V([_.y("opts"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],a5.prototype,"roundedCornersSmall",null);_.V([_.y("opts"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],a5.prototype,"roundedCornersMedium",null);_.V([_.y("opts"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],a5.prototype,"roundedCornersLarge",null);
_.V([_.y("opts"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],a5.prototype,"unroundCornersForPlayback",null);_.V([_.y("opts","videoPreviewDataIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],a5.prototype,"videoPreviewData",null);_.V([_.n(),_.H("design:type",Object)],a5.prototype,"videoPreviewDataIndex",void 0);_.V([_.lo("#inline-player"),_.H("design:type",Object)],a5.prototype,"inlinePlayer",void 0);
_.V([_.ev("persistentPanelVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a5.prototype,"onPersistentPanelVisibleChange",null);_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],a5.prototype,"onMouseLeave",null);_.V([_.PU("opts"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a5.prototype,"optsChanged",null);
_.V([_.PU("inlinePreviewIsEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a5.prototype,"onInlinePreviewIsEnabledChange",null);_.V([_.ev("isAdsVideo"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a5.prototype,"onIsAdsVideoChange",null);_.V([_.y_({is:"ytd-video-preview",disableElementRegistration:!0})],a5);
_.Y(a5,"ytd-video-preview",function(){if(Uvm!==void 0)return Uvm;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Uvm=A},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.lF=function(A){return function(t,f){var X=A||f.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(t,f,{get:function(){var Q;return this.$?this.$[X]:(Q=_.Gh(this))==null?void 0:Q.querySelector("#"+X)},
enumerable:!0,configurable:!0})}};_.N6=function(A){A=A===void 0?!1:A;_.DA.call(this);this.pubSub_=new _.Lk(A);_.hV(this,this.pubSub_)};
_.rS(_.N6,_.DA);_.N6.prototype.subscribe=function(A,t,f){return this.isDisposed()?0:this.pubSub_.subscribe(A,t,f)};
_.N6.prototype.unsubscribe=function(A,t,f){return this.isDisposed()?!1:this.pubSub_.unsubscribe(A,t,f)};
_.N6.prototype.unsubscribeByKey=function(A){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(A)};
_.N6.prototype.publish=function(A,t){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var wTi=function(){_.Va("ypcRedeemFlowStarted")},sp3=function(A){_.Va("ypcRedeemFlowFailed",void 0,void 0,void 0,A)},kki=function(A,t,f){t&&f&&(A.videos.forEach(function(X){X.videoId===t&&(X.itemId=f)}),A.recommendedVideos.forEach(function(X){X.videoId===t&&(X.itemId=f)}))};var rfi;var A_W;/*

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
*/
_.CN({_template:function(){if(A_W!==void 0)return A_W;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;rfi===void 0&&(rfi=document.createElement("template"));var X=rfi;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return A_W=A},
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(A,t){var f=this._resolveSrc(A);f!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",A===""||t?this._setLoading(!1):(this._resolvedSrc=f,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 A=this.$.sizedImgDiv.style,t=this.$.placeholder.style;A.backgroundSize=t.backgroundSize=this.sizing;A.backgroundPosition=t.backgroundPosition=this.sizing?this.position:"";A.backgroundRepeat=t.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(A){A=_.h4(A,this.$.baseURIAnchor.href);A.length>=2&&A[0]==="/"&&A[1]!=="/"&&(A=(location.origin||location.protocol+"//"+location.host)+A);return A}});var tj3;var fcb;_.CN({_template:function(){if(fcb!==void 0)return fcb;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;tj3===void 0&&(tj3=document.createElement("template"));var X=tj3;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return fcb=A},
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(A){return A?"false":"true"},
_headingChanged:function(A){var t=this.getAttribute("heading"),f=this.getAttribute("aria-label");typeof f==="string"&&f!==t||this.setAttribute("aria-label",A)},
_computeHeadingClass:function(A){return A?" over-image":""},
_computeAnimated:function(A){return A}});var XAj=new _.UA("addRendererToItemSectionAction");var Qli;var DJ=function(){return _.F.apply(this,arguments)||this};
_.R(DJ,_.F);DJ.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],DJ.prototype,"rendererBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],DJ.prototype,"dismissibleItemBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],DJ.prototype,"rendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],DJ.prototype,"data",void 0);_.V([_.y_({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],DJ);
_.Y(DJ,"ytd-comment-history-entry-renderer",function(){if(Qli!==void 0)return Qli;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Qli=A},{mode:1});var q2f;_.C1("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.C1("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var F0=function(){return _.F.apply(this,arguments)||this};
_.R(F0,_.F);_.J=F0.prototype;_.J.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.onKeyUp=function(A){if(A.keyCode===13)this.onTap()};
_.J.onTap=function(){this.data.recordClickEndpoint&&_.Px().resolve(_.i2).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var A=this.data.navigationEndpoint;A&&_.C(A,_.QA)&&_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}})};
_.J.readChanged=function(){var A;_.rH(this.hostElement,"unread",!((A=this.data)==null?0:A.read))};
_.J.dataChanged=function(){this.data&&_.rH(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.J.computeThumbnailSize=function(){var A;return((A=this.data)==null?0:A.highPriorityNotification)?32:48};
_.J.getEndpointURL=function(A){return A&&!_.C(A,_.QA)?this.componentBehavior.computeHref_(A):null};
_.J.getEndpointData=function(A){return A&&!_.C(A,_.QA)?A:null};
F0.prototype.computeThumbnailSize=F0.prototype.computeThumbnailSize;F0.prototype.dataChanged=F0.prototype.dataChanged;F0.prototype.readChanged=F0.prototype.readChanged;F0.prototype.onKeyUp=F0.prototype.onKeyUp;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],F0.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],F0.prototype,"data",void 0);_.V([_.n({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.H("design:type",Number)],F0.prototype,"thumbnailSize",void 0);_.V([_.UQ("keyup"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],F0.prototype,"onKeyUp",null);
_.V([_.ev("data.read"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F0.prototype,"readChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F0.prototype,"dataChanged",null);_.V([_.ev("data.highPriorityNotification"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F0.prototype,"computeThumbnailSize",null);
_.V([_.y_({is:"ytd-notification-renderer",disableElementRegistration:!0})],F0);
_.Y(F0,"ytd-notification-renderer",function(){if(q2f!==void 0)return q2f;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return q2f=A},{mode:1});var J_l;var IK=function(){return _.F.apply(this,arguments)||this};
_.R(IK,_.F);IK.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"}}}};
IK.prototype.computeActionButtonClass=function(A){return!A.actionButtons||A.actionButtons.length<=1?"single-button":A.description?"vertical-buttons":"horizontal-buttons"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],IK.prototype,"data",void 0);_.V([_.y_({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],IK);
_.Y(IK,"ytd-playlist-show-metadata-renderer",function(){if(J_l!==void 0)return J_l;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return J_l=A},{mode:1});var Udf;_.C1("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var xv=function(){return _.F.apply(this,arguments)||this};
_.R(xv,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],xv.prototype,"data",void 0);_.V([_.y_({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],xv);
_.Y(xv,"ytd-purchase-item-renderer",function(){if(Udf!==void 0)return Udf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Udf=A},{mode:1});var e3W;var GQH={};GQH.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(A){if(A)return A.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(A){if(A==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.C1("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var j_=function(){return _.F.apply(this,arguments)||this};
_.R(j_,_.F);j_.prototype.onYtNavigate=function(A){var t=this.openPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);t&&(A.stopPropagation(),this.openPopupBehavior.openPopup(t))};
j_.prototype.onYtNavigate=j_.prototype.onYtNavigate;_.V([_.b(GQH.YtSimpleTextSectionBehavior),_.H("design:type",Object)],j_.prototype,"ytSimpleTextSectionBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],j_.prototype,"openPopupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],j_.prototype,"data",void 0);
_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],j_.prototype,"onYtNavigate",null);_.V([_.y_({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],j_);
_.Y(j_,"ytd-simple-text-section-renderer",function(){if(e3W!==void 0)return e3W;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return e3W=A},{mode:1});var lcW;_.C1("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var NdQ=function(){return _.F.apply(this,arguments)||this};
_.R(NdQ,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],NdQ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],NdQ.prototype,"data",void 0);_.V([_.y_({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],NdQ);
_.Y(NdQ,"ytd-unlimited-page-feature-info-renderer",function(){if(lcW!==void 0)return lcW;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return lcW=A},{mode:1});var u8H;var z3b;var Yv=function(){return _.F.apply(this,arguments)||this};
_.R(Yv,_.F);Yv.prototype.dataChanged=function(){if(this.data){var A=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);A&&(A=_.a8(A,screen.width),this.hostElement.style.backgroundImage="url("+A+")")}};
Yv.prototype.dataChanged=Yv.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Yv.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Yv.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Yv);
_.Y(Yv,"ytd-post-redemption-section-renderer",function(){if(z3b!==void 0)return z3b;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return z3b=A},{mode:1});var Pyf;var VL=function(){return _.F.apply(this,arguments)||this};
_.R(VL,_.F);VL.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],VL.prototype,"data",void 0);_.V([_.y_({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],VL);
_.Y(VL,"ytd-ypc-post-redemption-renderer",function(){if(Pyf!==void 0)return Pyf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Pyf=A},{mode:1});_.C1("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var ZJ=function(){var A=_.F.apply(this,arguments)||this;A.MIN_CODE_LENGTH=12;A.MAX_CODE_LENGTH=24;return A};
_.R(ZJ,_.F);_.J=ZJ.prototype;_.J.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.J.created=function(){this.riskService=new _.x00;this.loadPaymentThenable=_.YDp(_.ah("YPC_MB_URL"))};
_.J.ready=function(){var A=this;this.code.addEventListener("keypress",function(t){A.onCodeInputKeypress(t)})};
_.J.dataChanged=function(){var A=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(t){t=_.U(t);for(var f=t.next();!f.done;f=t.next())f=f.value,f.type==="attributes"&&f.attributeName==="dark"&&A.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.J.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var A=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+A+")")}};
_.J.computeRedeemButton=function(A){(A=this.get("redeemButton.buttonRenderer",A))&&(A=Object.assign({},A,{serviceEndpoint:void 0}));return A};
_.J.onRedeemButtonTap=function(A){A.stopPropagation();wTi();this.redeemCode()};
_.J.redeemCode=function(){var A=this;this.isLoading=!0;var t=this.riskService.init();_.DX([t,this.loadPaymentThenable]).then(function(){var f=A.data.redeemButton.buttonRenderer.serviceEndpoint,X=_.jL5(),Q=_.aJ.payments.business.integration.ClientTokenFactory.createClientToken(_.C(f,_.mMf).countryCode,X);X={c:A.code.value.trim(),rd:window.btoa(X),ctk:Q};f&&_.Px().resolve(_.i2).resolveCommand(f,{form:Object.assign({},X,{element:A.hostElement})})},function(){A.showGenericError();
sp3("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.g9(Error("Qo"))})};
_.J.onYtServiceRequestCompleted=function(A){A.stopPropagation();this.isLoading=!1;var t,f;this.errorMessage=(t=A.detail)==null?void 0:(f=t.data)==null?void 0:f.errorMessage;var X,Q;this.postRedemptionRenderer=(X=A.detail)==null?void 0:(Q=X.data)==null?void 0:Q.renderer;var q,e;if(A=(q=A.detail)==null?void 0:(e=q.data)==null?void 0:e.redirectEndpoint)this.isLoading=!0,_.s9(this.hostElement,"yt-navigate",{endpoint:A});this.errorMessage?sp3("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
A)&&_.Va("ypcRedeemFlowSucceeded")};
_.J.onYtServiceRequestError=function(A){A.stopPropagation();this.isLoading=!1;if(A=this.get("detail.error.message",A))this.errorMessage=_.oC(A);sp3("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.J.onInvokeInstrumentManagerActionCompleted=function(A){A.stopPropagation();this.redeemCode()};
_.J.onInvokeInstrumentManagerActionError=function(A){A.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",A)){case "instrumentManagerLoadError":this.showGenericError();sp3("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();sp3("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Va("ypcRedeemFlowCancelled")}};
_.J.onInput=function(){var A=this;_.Ig(this,"onInput",function(){var t=A.code.value.trim();A.redeemButtonDisabled=t.length<A.MIN_CODE_LENGTH||t.length>A.MAX_CODE_LENGTH},200)};
_.J.onCodeInputKeypress=function(A){A.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(wTi(),this.redeemCode())};
_.J.computeImageUrl=function(A){return A?_.a8(A.thumbnails,600):null};
_.J.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
ZJ.prototype.onInvokeInstrumentManagerActionError=ZJ.prototype.onInvokeInstrumentManagerActionError;ZJ.prototype.onInvokeInstrumentManagerActionCompleted=ZJ.prototype.onInvokeInstrumentManagerActionCompleted;ZJ.prototype.onYtServiceRequestError=ZJ.prototype.onYtServiceRequestError;ZJ.prototype.onYtServiceRequestCompleted=ZJ.prototype.onYtServiceRequestCompleted;ZJ.prototype.dataChanged=ZJ.prototype.dataChanged;
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ZJ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],ZJ.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",Boolean)],ZJ.prototype,"redeemButtonDisabled",void 0);
_.V([_.n(),_.H("design:type",Object)],ZJ.prototype,"errorMessage",void 0);_.V([_.n(),_.H("design:type",Object)],ZJ.prototype,"postRedemptionRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],ZJ.prototype,"observer",void 0);_.V([_.lo("#code"),_.H("design:type",HTMLInputElement)],ZJ.prototype,"code",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZJ.prototype,"dataChanged",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ZJ.prototype,"onYtServiceRequestCompleted",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ZJ.prototype,"onYtServiceRequestError",null);
_.V([_.UQ("yt-invoke-instrument-manager-action-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ZJ.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.V([_.UQ("yt-invoke-instrument-manager-action-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ZJ.prototype,"onInvokeInstrumentManagerActionError",null);_.V([_.y_({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],ZJ);
_.Y(ZJ,"ytd-redeem-code-renderer",function(){if(u8H!==void 0)return u8H;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return u8H=A},{mode:1});var Tdb;_.C1("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var oK=function(){var A=_.F.apply(this,arguments)||this;A.businessEmailDisplayState="HIDE_SECTION";return A};
_.R(oK,_.F);_.J=oK.prototype;_.J.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}}}}}};
_.J.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"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.DT(_.iqS),this.businessEmailDisplayState="CAPTCHA"))};
_.J.onYtServiceRequestCompleted=function(A){var t;if((t=A.detail.data)==null?0:t.businessEmail)this.businessEmail=A.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var f;if((f=A.detail.data)==null?0:f.errorMessage)this.businessEmailErrorMessage=A.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.computeEmailHref=function(A){return"mailto:"+A};
_.J.computeSafeUrl=function(A){if(A)return _.of(A)};
_.J.onBusinessEmailCaptchaSubmit=function(){var A;(A=this.data)!=null&&A.onBusinessEmailRevealClickCommand&&(A=this.JSC$22262_captchaTextarea.value)&&(A={recaptcha_response_token:A,channel_id:this.data.channelId},_.Px().resolve(_.i2).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},A,{element:this.hostElement})}))};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.PV.Object.defineProperties(oK.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 A,t;return!((A=this.data)==null||!A.primaryLinks)&&!((t=this.data)==null?0:t.links)&&this.data.primaryLinks.every(function(f){return f.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var A,t;return!((A=this.data)==null||!A.primaryLinks)&&!((t=this.data)==null?0:t.links)&&!this.shouldShowNewLinks}}});
oK.prototype.onYtServiceRequestCompleted=oK.prototype.onYtServiceRequestCompleted;oK.prototype.dataChanged=oK.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],oK.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.lo("#g-recaptcha-response"),_.H("design:type",HTMLTextAreaElement)],oK.prototype,"JSC$22262_captchaTextarea",void 0);_.V([_.n(),_.H("design:type",Object)],oK.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],oK.prototype,"businessEmailDisplayState",void 0);_.V([_.n(),_.H("design:type",String)],oK.prototype,"businessEmail",void 0);_.V([_.n(),_.H("design:type",String)],oK.prototype,"businessEmailErrorMessage",void 0);
_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oK.prototype,"hideDetailsSection",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oK.prototype,"dataChanged",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oK.prototype,"shouldShowNewLinks",null);_.V([_.y("data","shouldShowLinks"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oK.prototype,"shouldShowLegacyLinks",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oK.prototype,"onYtServiceRequestCompleted",null);_.V([_.y_({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],oK);
_.Y(oK,"ytd-channel-about-metadata-renderer",function(){if(Tdb!==void 0)return Tdb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Tdb=A},{mode:1});var iwQ;_.C1("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var dv=function(){return _.F.apply(this,arguments)||this};
_.R(dv,_.F);dv.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",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],dv.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],dv.prototype,"lockupContainerType",void 0);_.V([_.n(),_.H("design:type",String)],dv.prototype,"thumbnailFixedWidth",void 0);
_.V([_.y_({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],dv);
_.Y(dv,"ytd-channel-featured-content-renderer",function(){if(iwQ!==void 0)return iwQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return iwQ=A},{mode:1});var OwW;_.C1("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var S_=function(){var A=_.F.apply(this,arguments)||this;A.roundContainer=!0;A.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return A};
_.R(S_,_.F);_.J=S_.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.dataChanged=function(){this.imageWidth=this.imageHeight=24;var A=this.data;A.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!A.style&&A.image&&A.image.thumbnails.length&&(A=A.image.thumbnails[0],this.imageWidth=A.width||0,this.imageHeight=A.height||0)};
_.J.computeSource=function(A){return A.secondarySource?_.dF(A.secondarySource):_.dF(A.source)};
_.J.computeClarifyStyle=function(A){return A?A.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.J.isLargeStyle=function(A){return A==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.J.computeBackgroundStyle=function(A){return A?A.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.J.computeHasActionButton=function(A){return!!A.actionButton};
_.J.computeHasBottomSection=function(A){return!!A.ctaHasBottomSection};
_.J.computeIsSourceMissing=function(A){return A.ctaHasBottomSection===!1?!0:A&&this.computeSource(A)?!1:!0};
_.J.computeSecondaryEndpoint=function(A){return A.secondaryEndpoint||A.endpoint};
S_.prototype.dataChanged=S_.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],S_.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],S_.prototype,"imageWidth",void 0);_.V([_.n(),_.H("design:type",Number)],S_.prototype,"imageHeight",void 0);
_.V([_.n({computed:"computeSecondaryEndpoint(data)"}),_.H("design:type",Object)],S_.prototype,"secondaryEndpoint",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.H("design:type",Boolean)],S_.prototype,"hasActionButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.H("design:type",Boolean)],S_.prototype,"hasBottomSection",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.H("design:type",Boolean)],S_.prototype,"missingSource",void 0);_.V([_.n({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],S_.prototype,"icon",void 0);_.V([_.n({computed:"computeIcon_(data.secondaryIcon)"}),_.H("design:type",String)],S_.prototype,"secondaryIcon",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.H("design:type",String)],S_.prototype,"clarifyStyle",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.H("design:type",String)],S_.prototype,"backgroundStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],S_.prototype,"roundContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],S_.prototype,"amsterdamEnabled",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],S_.prototype,"dataChanged",null);
_.V([_.y_({is:"ytd-clarification-renderer",disableElementRegistration:!0})],S_);
_.Y(S_,"ytd-clarification-renderer",function(){if(OwW!==void 0)return OwW;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return OwW=A},{mode:1});var c_u;var Bdb;var $v=function(){var A=_.F.apply(this,arguments)||this;A.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return A};
_.R($v,_.F);_.J=$v.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.J.computeIcon=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.J.computeUseContacts=function(A){return!!A.contacts&&A.contacts.length>0};
_.J.computePhoneContact=function(A){var t,f;return(t=A.contacts)==null?void 0:(f=t.find(function(X){var Q;return(X==null?void 0:(Q=X.icon)==null?void 0:Q.iconType)==="PHONE"}))==null?void 0:f.actionText};
_.J.computeSmsContact=function(A){var t,f;return(t=A.contacts)==null?void 0:(f=t.find(function(X){var Q;return(X==null?void 0:(Q=X.icon)==null?void 0:Q.iconType)==="SMS"}))==null?void 0:f.actionText};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$v.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],$v.prototype,"amsterdamEnabled",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.H("design:type",Boolean)],$v.prototype,"useContacts",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.H("design:type",String)],$v.prototype,"phoneContact",void 0);_.V([_.y_({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],$v);
_.Y($v,"ytd-single-action-emergency-support-renderer",function(){if(Bdb!==void 0)return Bdb;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Bdb=A},{mode:1});_.C1("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var H6=function(){var A=_.F.apply(this,arguments)||this;A.roundedContainer=!0;A.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return A};
_.R(H6,_.F);H6.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"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],H6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],H6.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],H6.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],H6.prototype,"amsterdamEnabled",void 0);
_.V([_.y_({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],H6);
_.Y(H6,"ytd-emergency-onebox-renderer",function(){if(c_u!==void 0)return c_u;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return c_u=A},{mode:1});var Mju;_.C1("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var aK=function(){return _.F.apply(this,arguments)||this};
_.R(aK,_.F);aK.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],aK.prototype,"data",void 0);_.V([_.y_({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],aK);
_.Y(aK,"ytd-exploratory-results-renderer",function(){if(Mju!==void 0)return Mju;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Mju=A},{mode:1});var Cyu;_.C1("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Kt=function(){var A=_.F.apply(this,arguments)||this;A.messageData=null;return A};
_.R(Kt,_.F);_.J=Kt.prototype;_.J.onServiceRequestCompleted=function(A,t){A=t.actions||[];t=0;for(var f=A.length;t<f;t++){var X=A[t],Q=void 0,q=void 0;if((Q=_.C(X,_.Zu))==null?0:(q=Q.item)==null?0:q.messageRenderer)this.messageData=_.C(X,_.Zu).item.messageRenderer}};
_.J.dataChanged=function(){var A=this.data;this.hostElement.hidden=!1;_.rH(this.hostElement,"is-channel",A&&!A.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.J.computeThumbnailWidth=function(A){return A?126:56};
_.J.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.J.onSubmitTap=function(){var A=this.data,t=this.selectedResponseIndex;A!==void 0&&t!==void 0&&(A=A.responses[t],A.responseData&&_.Px().resolve(_.i2).resolveCommand(A.responseData,{form:{element:this.hostElement}}))};
_.J.onDismissTap=function(){this.hostElement.hidden=!0;var A=this.data;A!==void 0&&A.dismissalEndpoint&&_.Px().resolve(_.i2).resolveCommand(A.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.updateSelectedResponseIndexFromBinding=function(A){this.selectedResponseIndex=A.detail.value};
Kt.prototype.onSelectedResponseIndexChange=Kt.prototype.onSelectedResponseIndexChange;Kt.prototype.dataChanged=Kt.prototype.dataChanged;Kt.prototype.onServiceRequestCompleted=Kt.prototype.onServiceRequestCompleted;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Kt.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Kt.prototype,"messageData",void 0);
_.V([_.n(),_.H("design:type",Number)],Kt.prototype,"selectedResponseIndex",void 0);_.V([_.lo("#submit-button"),_.H("design:type",HTMLButtonElement)],Kt.prototype,"submitButton",void 0);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],Kt.prototype,"onServiceRequestCompleted",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kt.prototype,"dataChanged",null);
_.V([_.ev("selectedResponseIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kt.prototype,"onSelectedResponseIndexChange",null);_.V([_.y_({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Kt);
_.Y(Kt,"ytd-feedback-elicitation-single-question-renderer",function(){if(Cyu!==void 0)return Cyu;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Cyu=A},{mode:1});var h3b;var gv=function(){return _.F.apply(this,arguments)||this};
_.R(gv,_.F);gv.prototype.computeThumbnailWidth=function(A){return A?602:428};
gv.prototype.updateWideFromBinding=function(A){this.wide=A.detail.value};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gv.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],gv.prototype,"wide",void 0);_.V([_.y_({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],gv);
_.Y(gv,"ytd-newspaper-hero-video-renderer",function(){if(h3b!==void 0)return h3b;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return h3b=A},{mode:1});var R3H;var mdi=function(){return _.F.apply(this,arguments)||this};
_.R(mdi,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],mdi.prototype,"rendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],mdi.prototype,"data",void 0);_.V([_.y_({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],mdi);
_.Y(mdi,"ytd-newspaper-mini-video-renderer",function(){if(R3H!==void 0)return R3H;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return R3H=A},{mode:1});var bwf;_.C1("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var wv=function(){return _.F.apply(this,arguments)||this};
_.R(wv,_.F);wv.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"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wv.prototype,"data",void 0);_.V([_.y_({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],wv);
_.Y(wv,"ytd-newspaper-renderer",function(){if(bwf!==void 0)return bwf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return bwf=A},{mode:1});var W3u;_.C1("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var sq=function(){var A=_.F.apply(this,arguments)||this;A.isSegment=!1;A.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};A.nextContinuation={continuationType:"playlistVideoListContinuation"};return A};
_.R(sq,_.F);_.J=sq.prototype;_.J.created=function(){var A=this;this.JSC$22295_ytReorderableController=new _.NQf(101,function(t){A.handleDrop(t)})};
_.J.attached=function(){_.Px();var A;(A=_.Px().resolve(_.z7(_.sy)))!=null&&(A.playlistVideoListElement=this.hostElement)};
_.J.detached=function(){var A;(A=_.Px().resolve(_.z7(_.sy)))!=null&&(A.playlistVideoListElement=void 0);A=_.Px().resolve(_.z7(_.Y9));_.M("web_enable_voting_animation")&&A&&(A.parentElem=void 0,A.videos=[],A.continuationsPresent=!1,A.showRefreshPill=!1);_.dA(this.JSC$22295_ytReorderableController)};
_.J.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"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.dataChanged=function(){var A=_.Px().resolve(_.z7(_.Y9));if(_.M("web_enable_voting_animation")&&this.data&&A){var t=_.sF(this.hostElement).querySelector("#contents");t&&(A.parentElem=t);A.addVideos(this.data.contents)}_.dA(this.JSC$22295_ytReorderableController)};
_.J.onRendererstamperFinished=function(){this.canReorder&&_.u7S(this.JSC$22295_ytReorderableController,_.sF(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.J.onPlaylistReloading=function(){this.isReloading=!0};
_.J.onUpdateSetVideoId=function(A){if(A.detail&&this.data&&this.data.contents){var t=A.detail;A=this.data.contents.findIndex(function(Q){var q;return((q=Q.playlistVideoRenderer)==null?void 0:q.videoId)===t.videoId});
if(!(A<0)&&t.setVideoId&&(this.set("data.contents."+A+".playlistVideoRenderer.setVideoId",t.setVideoId),_.M("web_enable_voting_animation"))){var f;if(A=_.C((f=this.data.contents[A].playlistVideoRenderer)==null?void 0:f.engagementBar,_.Xe5)){var X;(X=A.actions)==null||X.forEach(function(Q){if(Q=_.C(Q,_.QLb))Q.itemId=t.setVideoId})}(f=_.Px().resolve(_.z7(_.Y9)))&&kki(f,t.videoId,t.setVideoId)}}};
_.J.computeContentsClass=function(A){return A?"reloading":""};
_.J.computeIsSortable=function(A,t){return A&&t>0&&!this.isSegment&&!_.M("shorts_in_playlists_web")};
_.J.computeIsEditable=function(A){return A};
_.J.computeCanReorder=function(A){return A};
_.J.handlePlaylistRemoveVideosAction=function(A){if(this.get("playlistRemoveVideosAction.setVideoIds",A)&&this.data&&this.data.contents){A=_.C(A,_.SUp).setVideoIds;for(var t=this.data.contents.length-1;t>=0;){var f=this.data.contents[t].playlistVideoRenderer;f&&f.setVideoId&&A.includes(f.setVideoId)&&this.splice("data.contents",t,1);t--}_.kJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.J.updateIndices=function(){if(this.data&&this.data.contents)for(var A=0;A<this.data.contents.length;A++)this.set("data.contents."+A+".playlistVideoRenderer.index",_.oC(String(A+1)))};
_.J.handleDrop=function(A){A=A.currDragItem;var t=_.jT(A.parentNode.childNodes,A),f=this.data.contents.splice(Number(_.dF(A.data.index))-1,1)[0];this.data.contents.splice(t,0,f);t=t?this.get("contents."+(t-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();A=this.buildReorderServiceEndpoint(A.data.setVideoId,t);this.ytComponentBehavior.resolveCommand(A)};
_.J.buildReorderServiceEndpoint=function(A,t){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",A),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",t),this.data.onReorderEndpoint):null};
_.J.handleUpdatePlaylistAction=function(A){var t;(A=_.C((t=_.C(A,_.$$8))==null?void 0:t.updatedRenderer,_.HxE))&&this.canReorder!==A.canReorder&&this.set("data.canReorder",A.canReorder);A&&A.contents&&(this.set("data.contents",A.contents),this.isReloading=!1);A&&A.continuations&&this.set("data.continuations",A.continuations)};
_.J.handleAddRendererToItemSectionAction=function(A){var t,f=(t=_.C(A,XAj))==null?void 0:t.renderer,X;f&&((X=_.C(A,XAj))==null?void 0:X.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,f),A=_.Px().resolve(_.z7(_.Y9)),_.M("web_enable_voting_animation")&&A&&(f&&(t=_.fyT(f))&&A.recommendedVideos.push({itemId:t,videoId:_.qD5(f),voteCount:_.JpT(f),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.J.isVotingEnabledOnPlaylist=function(A){if(!A)return!1;A=_.U(A);for(A=A.next();!A.done;A=A.next()){var t=void 0;return!!_.C((t=A.value.playlistVideoRenderer)==null?void 0:t.engagementBar,_.Xe5)}return!1};
_.J.onAppendContinuationItemsActionFinished=function(){var A;this.isVotingEnabledOnPlaylist((A=this.data)==null?void 0:A.contents)&&(this.updateIndices(),A=_.Px().resolve(_.z7(_.Y9)),_.M("web_enable_voting_animation")&&A&&this.data&&A.addVideos(this.data.contents))};
_.J.updateVideoData=function(A){if(A.detail&&this.data&&this.data.contents){var t=A.detail;A=t.toIdx;var f=t.itemId,X=t.newVoteCount,Q=t.voteStatus;t=t.hideItem;var q,e,G=(q=this.data)==null?void 0:(e=q.contents)==null?void 0:e.findIndex(function(O){return _.fyT(O)===f});
if(!(G<0)){q=this.data.contents[G];var N;if((N=q.playlistVideoRenderer)==null?0:N.voteCount)q.playlistVideoRenderer.voteCount=X;var z;if(N=_.C((z=q.playlistVideoRenderer)==null?void 0:z.engagementBar,_.Xe5)){var T;(T=N.actions)==null||T.forEach(function(O){(O=_.C(O,_.QLb))&&O.initialState&&(O.initialState.votes=X,O.initialState.status=Q)})}this.data.contents.splice(G,1);
t||this.data.contents.splice(A,0,q);this.updateIndices()}}};
sq.prototype.updateVideoData=sq.prototype.updateVideoData;sq.prototype.onAppendContinuationItemsActionFinished=sq.prototype.onAppendContinuationItemsActionFinished;sq.prototype.onUpdateSetVideoId=sq.prototype.onUpdateSetVideoId;sq.prototype.onPlaylistReloading=sq.prototype.onPlaylistReloading;sq.prototype.onRendererstamperFinished=sq.prototype.onRendererstamperFinished;sq.prototype.dataChanged=sq.prototype.dataChanged;
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],sq.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.MK.YtNextContinuationBehavior),_.H("design:type",Object)],sq.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.b(_.Ba),_.H("design:type",Object)],sq.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],sq.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sq.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],sq.prototype,"isReloading",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],sq.prototype,"isSegment",void 0);
_.V([_.n({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.H("design:type",Boolean)],sq.prototype,"isSortable",void 0);_.V([_.n({computed:"computeIsEditable(data.isEditable)"}),_.H("design:type",Boolean)],sq.prototype,"isEditable",void 0);_.V([_.n({computed:"computeCanReorder(data.canReorder)"}),_.H("design:type",Boolean)],sq.prototype,"canReorder",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sq.prototype,"dataChanged",null);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sq.prototype,"onRendererstamperFinished",null);_.V([_.UQ("yt-playlist-reloading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sq.prototype,"onPlaylistReloading",null);
_.V([_.UQ("yt-update-set-video-id"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sq.prototype,"onUpdateSetVideoId",null);_.V([_.UQ("yt-append-continuation-items-action-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sq.prototype,"onAppendContinuationItemsActionFinished",null);
_.V([_.UQ("yt-update-video-data-voting-animation"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sq.prototype,"updateVideoData",null);_.V([_.y_({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],sq);
_.Y(sq,"ytd-playlist-video-list-renderer",function(){if(W3u!==void 0)return W3u;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return W3u=A},{mode:_.sQ("kevlar_poly_si_batch_j047")?1:2});var y_W;var kv=function(){return _.F.apply(this,arguments)||this};
_.R(kv,_.F);kv.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"}}}}};
kv.prototype.onTextWrapperTap=function(A){var t=this.data&&this.data.navigationEndpoint;t&&!_.Sl(_.Z2(A),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.s9(this.hostElement,"yt-navigate",{endpoint:t})};
kv.prototype.dataChanged=function(){var A=this.get("data.offerButton.buttonRenderer.serviceEndpoint");A&&A.commandMetadata&&_.C(A.commandMetadata,_.HL)&&_.C(A.commandMetadata,_.HL).fireAutomatically&&_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}})};
kv.prototype.dataChanged=kv.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.P7),_.H("design:type",Object)],kv.prototype,"ytdLockupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],kv.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],kv.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Bx("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],kv.prototype,"biggerThumbsStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],kv.prototype,"leftAligned",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kv.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-movie-renderer"})],kv);
_.Y(kv,"ytd-movie-renderer",function(){if(y_W!==void 0)return y_W;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return y_W=A},{mode:1});var vmr;var rv=function(){var A=_.F.apply(this,arguments)||this;A.rounded=!0;A.pageAttachedTo=void 0;A.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return A};
_.R(rv,_.F);rv.prototype.attached=function(){this.pageAttachedTo=_.Px().resolve(_.HO).getCurrentPage();_.s9(this.hostElement,"yt-player-attached",this.player)};
rv.prototype.detached=function(){var A;if((A=this.pageAttachedTo)==null?0:A.hostElement)_.s9(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
rv.prototype.dataChanged=function(){var A;if((A=this.data)==null?0:A.videoId)A={video_id:this.data.videoId,autoplay:!0},!_.M("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Px().resolve(_.DS).isMiniplayerActive()&&(A.pause_at_start=!0,A.autoplay=!1),this.player.loadVideoWithPlayerVars(A)};
rv.prototype.handleSignalActionPausePlayer=function(){_.ge().pause()};
rv.prototype.dataChanged=rv.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],rv.prototype,"data",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],rv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rv.prototype,"rounded",void 0);_.V([_.lo("#player"),_.H("design:type",Object)],rv.prototype,"player",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rv.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],rv);
_.Y(rv,"ytd-channel-video-player-renderer",function(){if(vmr!==void 0)return vmr;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return vmr=A},{mode:1});var L3i;var pAb;var Emi;var Ap=function(){var A=_.F.apply(this,arguments)||this;A.playing=!1;A.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.gs(A);A.active=!1;return A};
_.R(Ap,_.F);_.J=Ap.prototype;_.J.detached=function(){this.stop()};
_.J.play=function(){var A=this,t,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return A.active=!0,t=A.get("data.inlinePlaybackEndpoint.watchEndpoint"),f=t.videoId||A.data.videoId,X=t.startTimeSeconds||0,Q=t.playerParams||null,_.M("kevlar_player_update_killswitch")?e.yield(A.playerEl.update({args:{video_id:f,startSeconds:X,player_params:Q}}),2):(A.playerEl.loadVideoWithPlayerVars({video_id:f,startSeconds:X,player_params:Q,autoplay:!0}),e.jumpTo(2));if(e.nextAddress!=4)return e.yield(A.playerEl.getPlayerPromise(),
4);q=e.yieldResult;q.unloadModule("annotations_module");q.addEventListener("onStateChange",function(G){A.onPlayerStateChange(G)});
_.LO(e)})};
_.J.onPlayerStateChange=function(A){if(this.active)switch(this.playing=A===1,A){case 1:_.s9(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.s9(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.J.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.J.resize=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return f.yield(A.playerEl.getPlayerPromise(),2);t=f.yieldResult;t.setSize(NaN,NaN);_.LO(f)})};
_.V([_.n(),_.H("design:type",Object)],Ap.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ap.prototype,"playing",void 0);_.V([_.n(),_.H("design:type",Object)],Ap.prototype,"playerId",void 0);_.V([_.lo("#player"),_.H("design:type",Object)],Ap.prototype,"playerEl",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Ap);
_.Y(Ap,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Emi!==void 0)return Emi;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Emi=A},{mode:1});var nmx;var DdQ;var tp=function(){var A=_.F.apply(this,arguments)||this;A.width=0;return A};
_.R(tp,_.F);_.J=tp.prototype;_.J.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.JY(this,this.onEnded));this.mp4El.addEventListener("error",_.JY(this,this.onError))};
_.J.detached=function(){this.videoEl.removeEventListener("ended",_.JY(this,this.onEnded));this.mp4El.removeEventListener("error",_.JY(this,this.onError))};
_.J.play=function(){var A=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var t=this.videoEl.play();t?t.then(function(){A.handleVideoStartPlaying()}).catch(function(){_.s9(A.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.s9(this.hostElement,"yt-video-thumbnail-not-playing")};
_.J.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.J.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.J.dataChanged=function(){var A;if((A=this.data)==null?0:A.thumbnailPlaceholder)A=_.a8(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+A+")";this.stop();this.autoplay&&this.play()};
_.J.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.J.onEnded=function(){this.stop();_.s9(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.J.onError=function(){_.s9(this.hostElement,"yt-video-thumbnail-error")};
_.J.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.J.getVideoThumbnail=function(A){if(A&&A.length)return A[0]};
tp.prototype.dataChanged=tp.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],tp.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],tp.prototype,"animatePlaceholderOnEntrance",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],tp.prototype,"autoplay",void 0);_.V([_.n({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.H("design:type",Object)],tp.prototype,"videoThumbnail",void 0);
_.V([_.n(),_.H("design:type",Boolean)],tp.prototype,"loop",void 0);_.V([_.n(),_.H("design:type",Boolean)],tp.prototype,"isVideoPlaying",void 0);_.V([_.n(),_.H("design:type",Object)],tp.prototype,"width",void 0);_.V([_.lo("#mp4"),_.H("design:type",HTMLElement)],tp.prototype,"mp4El",void 0);_.V([_.lo("#placeholder"),_.H("design:type",HTMLElement)],tp.prototype,"placeholderEl",void 0);_.V([_.lo("#video"),_.H("design:type",HTMLVideoElement)],tp.prototype,"videoEl",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tp.prototype,"dataChanged",null);_.V([_.WU({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],tp);
_.Y(tp,"yt-video-as-thumbnail-details",function(){if(DdQ===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;nmx===void 0&&(nmx=document.createElement("template"));var X=nmx;f.call(t,X.content.cloneNode(!0),A.content.firstChild);DdQ=A}A=DdQ;return A},{mode:2});var fB=function(){var A=_.F.apply(this,arguments)||this;A.disableGridStateAware=!1;A.animationEnabled=_.M("enable_web_ketchup_hero_animation");A.transitioningOut=!1;A.narrow=!1;A.narrower=!1;A.isCarouselInFeed=!1;A.videoTimeoutJobId=0;A.panelTimeoutJobId=0;A.panelTimeoutJobStartMs=0;A.actionMap={"yt-window-resized":"onWindowResized"};return A};
_.R(fB,_.F);_.J=fB.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.J.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var A;this.player&&((A=this.data)==null?0:A.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.J.attached=function(){this.onWindowResized()};
_.J.detached=function(){this.clearTimeouts()};
_.J.onWindowResized=function(){this.updateSize()};
_.J.computePanelLayout=function(A){return A&&A.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.playVideo=function(){var A;this.video&&((A=this.data)==null?0:A.videoThumbnail)&&this.video.play();var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.play()};
_.J.stopVideo=function(){var A;this.video&&((A=this.data)==null?0:A.videoThumbnail)&&this.video.stop();var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.stop()};
_.J.transitionOut=function(){var A=this;this.transitioningOut=!0;return new Promise(function(t){var f=function(){_.sF(A.hostElement).querySelector("#action-button").removeEventListener("animationend",f);_.a6.cancelJob(X);t();A.transitioningOut=!1};
var X=_.jY(_.a6,f,1E3);_.sF(A.hostElement).querySelector("#action-button").addEventListener("animationend",f);A.player&&(A.player.playing=!1)})};
_.J.computeMetadataOrder=function(A){return A&&A.metadataOrder&&A.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?A.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.J.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.J.computeAvatarSize=function(A){return A&&A.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.J.onContentClick=function(A){if(!_.Sl(_.Z2(A),this.hostElement,["A".toString(),"BUTTON".toString()])){var t;if((t=this.data)==null?0:t.navigationEndpoint){var f;this.componentBehavior.resolveCommand((f=this.data)==null?void 0:f.navigationEndpoint)}}};
_.J.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.J.setBackgroundImage=function(A){if(A=this.getBackgroundImageUrl(A))_.sF(this.hostElement).querySelector("#hero").style.backgroundImage="url("+A+")"};
_.J.setScrimLayer=function(A){var t=this.getScrimLayerColorStops(A);A=((A==null?void 0:A.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(A=180);_.ah("HTML_DIR")==="rtl"&&(A=-A);t&&(_.sF(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+A+"deg, "+t+")")};
_.J.isNarrower=function(){return this.hostElement.clientWidth<fB.NARROW_VERSION_SIZE};
_.J.getScrimLayerColorStops=function(){var A,t=(A=this.data)==null?void 0:A.scrimColorValues;if(!t)return null;if(t.length===1)return A=_.bY(t[0]),A+" 0%, "+A+" 100%";if(t.length===3){var f=[0,72,98];return t.map(function(X,Q){return _.bY(X)+" "+f[Q]+"%"}).join(",")}return null};
_.J.getBackgroundImageUrl=function(A){return A&&A.largeFormFactorBackgroundThumbnail?_.a8((A.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||A.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.J.onPlaying=function(){this.startVideoTimeout()};
_.J.onEnded=function(){this.rotate()};
_.J.startPanelTimeout=function(){var A=this;if(!this.panelTimeoutJobId){var t=this.get("data.minPanelDisplayDurationMs");t&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.jY(_.a6,function(){A.rotate()},t))}};
_.J.startVideoTimeout=function(){var A=this;if(!this.videoTimeoutJobId){_.a6.cancelJob(this.panelTimeoutJobId);var t=Date.now()-this.panelTimeoutJobStartMs;t=Math.max(0,this.get("data.minPanelDisplayDurationMs")-t);t=Math.max(this.get("data.minVideoPlayDurationMs")||0,t);this.videoTimeoutJobId=_.jY(_.a6,function(){A.rotate()},t)}};
_.J.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.a6.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.a6.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.J.rotate=function(){this.clearTimeouts();_.s9(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.PV.Object.defineProperties(fB.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.sF(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.sF(this.hostElement).querySelector("#video")}}});
_.PV.Object.defineProperties(fB,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
fB.prototype.onEnded=fB.prototype.onEnded;fB.prototype.onPlaying=fB.prototype.onPlaying;fB.prototype.dataChanged=fB.prototype.dataChanged;_.V([_.b(_.GB),_.H("design:type",Object)],fB.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],fB.prototype,"componentBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],fB.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.b(_.q2l),_.H("design:type",Object)],fB.prototype,"ytBooleanLogicBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],fB.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fB.prototype,"disableGridStateAware",void 0);_.V([_.n(),_.H("design:type",Object)],fB.prototype,"data",void 0);_.V([_.n({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.H("design:type",String)],fB.prototype,"panelLayout",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fB.prototype,"animationEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fB.prototype,"transitioningOut",void 0);
_.V([_.n({computed:"computeMetadataOrder(data)"}),_.H("design:type",Boolean)],fB.prototype,"metadataOrder",void 0);_.V([_.n({computed:"computeByline(data)"}),_.H("design:type",Object)],fB.prototype,"byline",void 0);_.V([_.n({computed:"computeAvatarSize(data)"}),_.H("design:type",Number)],fB.prototype,"avatarSize",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fB.prototype,"narrow",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fB.prototype,"narrower",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fB.prototype,"layoutStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fB.prototype,"isCarouselInFeed",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fB.prototype,"dataChanged",null);_.V([_.UQ("yt-default-promo-panel-renderer-playing"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fB.prototype,"onPlaying",null);
_.V([_.UQ("yt-default-promo-panel-renderer-ended"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fB.prototype,"onEnded",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],fB);
_.Y(fB,"ytd-default-promo-panel-renderer",function(){if(pAb!==void 0)return pAb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return pAb=A},{mode:1});_.C1("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var XQ=function(){var A=_.F.apply(this,arguments)||this;A.narrower=!1;A.dotMenuVisible=!1;A.paginationThumbnailsVisible=!1;A.active=!0;A.disableGridStateAware=!1;A.actionMap={"yt-window-resized":"onWindowResized"};return A};
_.R(XQ,_.F);_.J=XQ.prototype;_.J.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]]"}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.JY(this,this.onPageTypeChange));this.currentPageSubtype=_.tXT(location.pathname);this.onWindowResized()};
_.J.detached=function(){this.jobId&&_.a6.cancelJob(this.jobId);this.updateSizeJobId&&_.a6.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.JY(this,this.onPageTypeChange))};
_.J.onPageTypeChange=function(A){this.active=A.detail.newPageSubtype===this.currentPageSubtype};
_.J.onWindowResized=function(){this.updateSize()};
_.J.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.J.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.J.setCarouselItem=function(A){A>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.a6.cancelJob(this.jobId);var t=this.getCurrentPanelElement();t&&t.stopVideo();this.currentItemIndex=A%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(t||(t=this.getCurrentPanelElement()),t.playVideo()):this.startRotationJob()};
_.J.scrollThumbnails=function(A){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var t=this.getCurrentPaginationElement();if(t){var f=_.sF(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?f.style.transform="translateX(0)":(t=t.offsetWidth+8,f.style.transform="translateX(-"+t*(A-Math.ceil(Math.floor(this.overlay.offsetWidth/t)/2)+1)+"px)")}}};
_.J.onDataChanged=function(){var A=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.NB(_.a6,function(){var t;(t=A.getCurrentPanelElement())==null||t.updateSize();A.updateSize()}))};
_.J.getCurrentPanelElement=function(){return _.sF(_.sF(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.J.getCurrentPaginationElement=function(){return _.sF(_.sF(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.J.getNavigationClass=function(A,t){return A===t?"selected":""};
_.J.getNavigationDurationStyle=function(A){return"animation-duration:"+(this.get("data.carouselItems."+A+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.J.onNavigationTap=function(A){var t=this,f=A.model.index;f!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){t.setCarouselItem(f)}),this.autorotateActive=!1)};
_.J.onVideoThumbnailEnded=function(){var A=this;if(this.shouldRotate()){var t=this.getCurrentPaginationElement();t&&(t.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){t.classList.remove("finished");A.setNextCarouselItem()}))}};
_.J.onVideoThumbnailError=function(){this.startRotationJob()};
_.J.onVideoNotPlaying=function(){this.startRotationJob()};
_.J.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.J.startRotationJob=function(){var A=this;_.a6.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.a6.addLowPriorityJob(function(){A.getCurrentPanelElement().transitionOut().then(function(){A.setNextCarouselItem()})},this.rotationTimeout))};
_.J.computeDotMenuVisible=function(A,t){return!!A&&!!A.carouselItems&&A.carouselItems.length>1&&!A.paginationThumbnails||!!t};
_.J.computePaginationThumbnailsVisible=function(A,t){var f,X;return((X=A==null?void 0:(f=A.paginationThumbnails)==null?void 0:f.length)!=null?X:0)>1&&!t};
_.J.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.computePaginatorAlignment=function(A){return(A==null?void 0:A.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.J.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.J.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.J.isNarrower=function(A){return(A!=null?A:0)<fB.NARROW_VERSION_SIZE};
XQ.prototype.activeChanged=XQ.prototype.activeChanged;XQ.prototype.onVideoNotPlaying=XQ.prototype.onVideoNotPlaying;XQ.prototype.onVideoThumbnailError=XQ.prototype.onVideoThumbnailError;XQ.prototype.onVideoThumbnailEnded=XQ.prototype.onVideoThumbnailEnded;XQ.prototype.onDataChanged=XQ.prototype.onDataChanged;_.V([_.b(_.GB),_.H("design:type",Object)],XQ.prototype,"ytdGridStateAwareBehavior",void 0);
_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],XQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],XQ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],XQ.prototype,"currentItem",void 0);
_.V([_.n(),_.H("design:type",Number)],XQ.prototype,"currentItemIndex",void 0);_.V([_.n(),_.H("design:type",Number)],XQ.prototype,"rotationTimeout",void 0);_.V([_.n(),_.H("design:type",Number)],XQ.prototype,"loopCount",void 0);_.V([_.n({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.H("design:type",String)],XQ.prototype,"paginatorAlignment",void 0);_.V([_.n(),_.H("design:type",Number)],XQ.prototype,"jobId",void 0);
_.V([_.n(),_.H("design:type",Number)],XQ.prototype,"updateSizeJobId",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],XQ.prototype,"isCarouselInFeed",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],XQ.prototype,"narrower",void 0);_.V([_.n({computed:"computeDotMenuVisible(data, narrower)"}),_.H("design:type",Object)],XQ.prototype,"dotMenuVisible",void 0);
_.V([_.n({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.H("design:type",Object)],XQ.prototype,"paginationThumbnailsVisible",void 0);_.V([_.n({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.H("design:type",String)],XQ.prototype,"layoutType",void 0);_.V([_.n({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],XQ.prototype,"autorotateActive",void 0);_.V([_.n(),_.H("design:type",Object)],XQ.prototype,"active",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],XQ.prototype,"disableGridStateAware",void 0);_.V([_.lo("#overlay"),_.H("design:type",HTMLElement)],XQ.prototype,"overlay",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"onDataChanged",null);
_.V([_.UQ("yt-video-thumbnail-ended"),_.UQ("yt-default-promo-panel-renderer-rotate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"onVideoThumbnailEnded",null);_.V([_.UQ("yt-video-thumbnail-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"onVideoThumbnailError",null);
_.V([_.UQ("yt-video-thumbnail-not-playing"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"onVideoNotPlaying",null);_.V([_.PU("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"activeChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],XQ);
_.Y(XQ,"ytd-carousel-item-renderer",function(){if(L3i!==void 0)return L3i;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return L3i=A},{mode:2});var F3H;var Icr;var xdx;var jlb;var QY=function(){var A=_.F.apply(this,arguments)||this;A.originalQuery=null;A.originalEndpoint=null;return A};
_.R(QY,_.F);QY.prototype.computeShowOriginalQueryWithoutEndpoint_=function(A,t){return!(!A||t)};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],QY.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],QY.prototype,"correctedText",void 0);_.V([_.n(),_.H("design:type",Object)],QY.prototype,"correctedQuery",void 0);_.V([_.n(),_.H("design:type",Object)],QY.prototype,"correctedEndpoint",void 0);_.V([_.n(),_.H("design:type",Object)],QY.prototype,"originalText",void 0);_.V([_.n(),_.H("design:type",Object)],QY.prototype,"originalQuery",void 0);
_.V([_.n(),_.H("design:type",Object)],QY.prototype,"originalEndpoint",void 0);_.V([_.n({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.H("design:type",Boolean)],QY.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.V([_.WU({is:"yt-search-query-correction",disableElementRegistration:!0})],QY);
_.Y(QY,"yt-search-query-correction",function(){if(jlb===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;xdx===void 0&&(xdx=document.createElement("template"));var X=xdx;f.call(t,X.content.cloneNode(!0),A.content.firstChild);jlb=A}A=jlb;return A},{mode:2});_.C1("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Y2Q=function(){return _.F.apply(this,arguments)||this};
_.R(Y2Q,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Y2Q.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Y2Q.prototype,"data",void 0);_.V([_.WU({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Y2Q);
_.Y(Y2Q,"yt-did-you-mean-renderer",function(){if(Icr===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;F3H===void 0&&(F3H=document.createElement("template"));var X=F3H;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Icr=A}A=Icr;return A},{mode:2});var Vjb;var ZwH;_.C1("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var omj=function(){return _.F.apply(this,arguments)||this};
_.R(omj,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],omj.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],omj.prototype,"data",void 0);_.V([_.WU({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],omj);
_.Y(omj,"yt-including-results-for-renderer",function(){if(ZwH===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Vjb===void 0&&(Vjb=document.createElement("template"));var X=Vjb;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ZwH=A}A=ZwH;return A},{mode:2});var ddQ;var S2H;_.C1("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var q0=function(){return _.F.apply(this,arguments)||this};
_.R(q0,_.F);q0.prototype.computeExtraClasses_=function(A,t){var f="";A&&(f+=" "+A.toLowerCase().replace(/_/g,"-"));t&&(f+=" "+t.toLowerCase().replace(/_/g,"-"));return f};
q0.prototype.computeUrlImg_=function(){var A=this.data;A.image&&(_.sF(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.a8(A.image.thumbnails,Number.MAX_VALUE)+")")};
q0.prototype.computeUrlImg_=q0.prototype.computeUrlImg_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],q0.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],q0.prototype,"computeUrlImg_",null);_.V([_.WU({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],q0);
_.Y(q0,"yt-music-pass-feature-info-renderer",function(){if(S2H===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;ddQ===void 0&&(ddQ=document.createElement("template"));var X=ddQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);S2H=A}A=S2H;return A},{mode:2});var $dl;var HwH;_.C1("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var acf=function(){return _.F.apply(this,arguments)||this};
_.R(acf,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],acf.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],acf.prototype,"data",void 0);_.V([_.WU({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],acf);
_.Y(acf,"yt-no-results-found-showing-results-for-renderer",function(){if(HwH===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;$dl===void 0&&($dl=document.createElement("template"));var X=$dl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);HwH=A}A=HwH;return A},{mode:2});var K33;var gml;_.C1("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var wAy=function(){return _.F.apply(this,arguments)||this};
_.R(wAy,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wAy.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wAy.prototype,"data",void 0);_.V([_.WU({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],wAy);
_.Y(wAy,"yt-results-without-quotes-renderer",function(){if(gml===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;K33===void 0&&(K33=document.createElement("template"));var X=K33;f.call(t,X.content.cloneNode(!0),A.content.firstChild);gml=A}A=gml;return A},{mode:2});var sll;var kQi;_.C1("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var r_b=function(){return _.F.apply(this,arguments)||this};
_.R(r_b,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],r_b.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],r_b.prototype,"data",void 0);_.V([_.WU({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],r_b);
_.Y(r_b,"yt-search-no-results-renderer",function(){if(kQi===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;sll===void 0&&(sll=document.createElement("template"));var X=sll;f.call(t,X.content.cloneNode(!0),A.content.firstChild);kQi=A}A=kQi;return A},{mode:2});var ArH;var t3f;_.C1("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var fFy=function(){return _.F.apply(this,arguments)||this};
_.R(fFy,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],fFy.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fFy.prototype,"data",void 0);_.V([_.WU({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],fFy);
_.Y(fFy,"yt-showing-results-for-renderer",function(){if(t3f===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;ArH===void 0&&(ArH=document.createElement("template"));var X=ArH;f.call(t,X.content.cloneNode(!0),A.content.firstChild);t3f=A}A=t3f;return A},{mode:2});var Xub;var QfF;var qii;var Jri;var Jp=function(){var A=_.F.apply(this,arguments)||this;A.answerExpanded=!1;return A};
_.R(Jp,_.F);Jp.prototype.toggleAnswer_=function(A){var t=_.oO(A);t&&t.classList.contains("yt-simple-endpoint")||(A.preventDefault(),A.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Jp.prototype.toggleAnswer_=Jp.prototype.toggleAnswer_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Jp.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Jp.prototype,"answerExpanded",void 0);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Jp.prototype,"toggleAnswer_",null);
_.V([_.WU({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Jp);
_.Y(Jp,"yt-generic-faq-question-renderer",function(){if(Jri===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;qii===void 0&&(qii=document.createElement("template"));var X=qii;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Jri=A}A=Jri;return A},{mode:2});_.C1("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var UD=function(){return _.F.apply(this,arguments)||this};
_.R(UD,_.F);UD.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],UD.prototype,"data",void 0);_.V([_.WU({is:"yt-faq-section-renderer",disableElementRegistration:!0})],UD);
_.Y(UD,"yt-faq-section-renderer",function(){if(QfF===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Xub===void 0&&(Xub=document.createElement("template"));var X=Xub;f.call(t,X.content.cloneNode(!0),A.content.firstChild);QfF=A}A=QfF;return A},{mode:2});var UyH;var eji;_.C1("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var eu=function(){return _.F.apply(this,arguments)||this};
_.R(eu,_.F);
eu.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"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],eu.prototype,"data",void 0);_.V([_.WU({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],eu);
_.Y(eu,"yt-offer-item-expanded-renderer",function(){if(eji===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;UyH===void 0&&(UyH=document.createElement("template"));var X=UyH;f.call(t,X.content.cloneNode(!0),A.content.firstChild);eji=A}A=eji;return A},{mode:2});var GHb;var lFb;_.C1("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Gx=function(){return _.F.apply(this,arguments)||this};
_.R(Gx,_.F);
Gx.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"}}}}};
Gx.prototype.computeFullWidthMode=function(A){return!(!A||!A.fullWidthMode)};
Gx.prototype.computeBorderlessMode=function(A){return!(!A||!A.borderlessMode)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Gx.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.H("design:type",Boolean)],Gx.prototype,"fullWidthMode",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.H("design:type",Boolean)],Gx.prototype,"borderlessMode",void 0);_.V([_.WU({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Gx);
_.Y(Gx,"yt-offer-item-renderer",function(){if(lFb===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;GHb===void 0&&(GHb=document.createElement("template"));var X=GHb;f.call(t,X.content.cloneNode(!0),A.content.firstChild);lFb=A}A=lFb;return A},{mode:2});var NWx;var uxf;_.C1("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var lZ=function(){return _.F.apply(this,arguments)||this};
_.R(lZ,_.F);lZ.prototype.computeAriaLevel_=function(A){return this.getLevelID_(A)};
lZ.prototype.getLevelID_=function(A){return(A=A.match(/[0-9]+$/))&&A.length==1?A[0]:"1"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],lZ.prototype,"data",void 0);_.V([_.n({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.H("design:type",String)],lZ.prototype,"ariaLevel",void 0);_.V([_.n({value:"heading",reflectToAttribute:!0}),_.H("design:type",String)],lZ.prototype,"role",void 0);
_.V([_.n({value:-1,reflectToAttribute:!0}),_.H("design:type",Number)],lZ.prototype,"tabindex",void 0);_.V([_.WU({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],lZ);
_.Y(lZ,"yt-subscription-product-header-renderer",function(){if(uxf===void 0){var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;NWx===void 0&&(NWx=document.createElement("template"));var X=NWx;f.call(t,X.content.cloneNode(!0),A.content.firstChild);uxf=A}A=uxf;return A},{mode:2});var zjF;var PiF;_.C1("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var N0=function(){return _.F.apply(this,arguments)||this};
_.R(N0,_.F);N0.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:_.ho("menuRenderer"),events:!0}}};
N0.prototype.onStampFinished_=function(){_.sF(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
N0.prototype.onStampFinished_=N0.prototype.onStampFinished_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],N0.prototype,"data",void 0);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],N0.prototype,"onStampFinished_",null);
_.V([_.WU({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],N0);
_.Y(N0,"yt-subscription-product-renderer",function(){if(PiF===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;zjF===void 0&&(zjF=document.createElement("template"));var X=zjF;f.call(t,X.content.cloneNode(!0),A.content.firstChild);PiF=A}A=PiF;return A},{mode:2});var TWl;var ib3;_.C1("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var uZ=function(){return _.F.apply(this,arguments)||this};
_.R(uZ,_.F);uZ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
uZ.prototype.imageScrimColorValuesChanged_=function(){var A,t=(A=this.data)==null?void 0:A.imageScrimColorValues;_.sF(this.hostElement).querySelector("#scrim").style.backgroundColor=t?_.bY(t[0]):"transparent"};
uZ.prototype.imageScrimColorValuesChanged_=uZ.prototype.imageScrimColorValuesChanged_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],uZ.prototype,"data",void 0);
_.V([_.ev("data.imageScrimColorValues"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uZ.prototype,"imageScrimColorValuesChanged_",null);_.V([_.WU({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],uZ);
_.Y(uZ,"yt-subscription-product-upsell-offer-renderer",function(){if(ib3===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;TWl===void 0&&(TWl=document.createElement("template"));var X=TWl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ib3=A}A=ib3;return A},{mode:2});var ObF;var crx;var BWb;var M3i;var CiH;var hjb;var We=function(){return _.F.apply(this,arguments)||this};
_.R(We,_.F);We.prototype.onYtServiceRequestError_=function(A){_.jL(this.hostElement,A.detail.error.message)};
We.prototype.onYtServiceRequestError_=We.prototype.onYtServiceRequestError_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],We.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],We.prototype,"collapsible",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],We.prototype,"isManageRed",void 0);
_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],We.prototype,"onYtServiceRequestError_",null);_.V([_.WU({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],We);
_.Y(We,"yt-single-ypc-offer-renderer",function(){if(hjb===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;CiH===void 0&&(CiH=document.createElement("template"));var X=CiH;f.call(t,X.content.cloneNode(!0),A.content.firstChild);hjb=A}A=hjb;return A},{mode:2});var yY=function(){return _.F.apply(this,arguments)||this};
_.R(yY,_.F);yY.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],yY.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],yY.prototype,"isManageRed",void 0);_.V([_.WU({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],yY);
_.Y(yY,"yt-single-ypc-offer-list-renderer",function(){if(M3i===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;BWb===void 0&&(BWb=document.createElement("template"));var X=BWb;f.call(t,X.content.cloneNode(!0),A.content.firstChild);M3i=A}A=M3i;return A},{mode:2});var Rj3;var myj;_.C1("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ve=function(){return _.F.apply(this,arguments)||this};
_.R(ve,_.F);ve.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ve.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],ve.prototype,"isManageRed",void 0);_.V([_.WU({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],ve);
_.Y(ve,"yt-ypc-offers-list-renderer",function(){if(myj===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Rj3===void 0&&(Rj3=document.createElement("template"));var X=Rj3;f.call(t,X.content.cloneNode(!0),A.content.firstChild);myj=A}A=myj;return A},{mode:2});_.C1("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var LB=function(){return _.F.apply(this,arguments)||this};
_.R(LB,_.F);
LB.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}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],LB.prototype,"data",void 0);_.V([_.WU({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],LB);
_.Y(LB,"yt-unlimited-manage-subscription-page-renderer",function(){if(crx===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;ObF===void 0&&(ObF=document.createElement("template"));var X=ObF;f.call(t,X.content.cloneNode(!0),A.content.firstChild);crx=A}A=crx;return A},{mode:2});var bbu;var WQF;var pB=function(){return _.F.apply(this,arguments)||this};
_.R(pB,_.F);_.J=pB.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.J.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.onKeypress_=function(A){A.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.J.handleHeaderTap_=function(A){A.preventDefault();A.stopPropagation();this.expandOffers_()};
_.J.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.J.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
pB.prototype.dataChanged_=pB.prototype.dataChanged_;_.V([_.b(_.YD),_.H("design:type",Object)],pB.prototype,"ironA11yKeysBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],pB.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],pB.prototype,"offersVisible_",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pB.prototype,"dataChanged_",null);_.V([_.WU({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],pB);
_.Y(pB,"yt-collapsible-ypc-offer-renderer",function(){if(WQF===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;bbu===void 0&&(bbu=document.createElement("template"));var X=bbu;f.call(t,X.content.cloneNode(!0),A.content.firstChild);WQF=A}A=WQF;return A},{mode:2});var yrx;var vlW;_.C1("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var ED=function(){return _.F.apply(this,arguments)||this};
_.R(ED,_.F);_.J=ED.prototype;_.J.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.J.dataChanged_=function(){if(this.data.backgroundImage){var A=_.a8(this.data.backgroundImage.thumbnails,screen.width),t=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=t?"linear-gradient(180deg, "+t+"), url("+A+")":"url("+A+")";this.data.gtmId&&_.aF(this.data.gtmId,_.ah("GL",""))}};
_.J.onYtServiceRequestError_=function(A){_.jL(this.hostElement,A.detail.error.message)};
_.J.getScrimLayerColorStops_=function(){var A,t,f=(A=this.data.unlimitedHeaderV2Data)==null?void 0:(t=A.unlimitedHeaderV2Data)==null?void 0:t.scrimLayerColors;if(!f)return null;var X=100/f.length;return f.map(function(Q,q){q*=X;return _.bY(Q)+" "+q+"%"}).join(",")};
_.J.computeLogoWithPadding=function(A){var t,f,X;return(A=(t=A.unlimitedLogoImage)==null?void 0:(f=t.thumbnails)==null?void 0:(X=f[0])==null?void 0:X.height)&&A%31===0?!0:!1};
ED.prototype.onYtServiceRequestError_=ED.prototype.onYtServiceRequestError_;ED.prototype.dataChanged_=ED.prototype.dataChanged_;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.V([_.n({computed:"computeLogoWithPadding(data)"}),_.H("design:type",Boolean)],ED.prototype,"logoWithPadding",void 0);
_.V([_.n(),_.H("design:type",Object)],ED.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ED.prototype,"dataChanged_",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ED.prototype,"onYtServiceRequestError_",null);_.V([_.WU({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],ED);
_.Y(ED,"yt-unlimited-page-header-renderer",function(){if(vlW===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;yrx===void 0&&(yrx=document.createElement("template"));var X=yrx;f.call(t,X.content.cloneNode(!0),A.content.firstChild);vlW=A}A=vlW;return A},{mode:2});var LQl;var pub;_.C1("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var nB=function(){return _.F.apply(this,arguments)||this};
_.R(nB,_.F);nB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],nB.prototype,"data",void 0);_.V([_.WU({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],nB);
_.Y(nB,"yt-unlimited-user-notification-renderer",function(){if(pub===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;LQl===void 0&&(LQl=document.createElement("template"));var X=LQl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);pub=A}A=pub;return A},{mode:2});
}catch(e){_._DumpException(e)}
try{
var EFQ,DLQ,FIc,xLw,jg8,ZNj;_.iF=function(A){var t=A.clientMessageId;var f=A.playerOffsetMs;var X=A.pageContext;A=A.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:t},!!f&&{playerOffsetMs:f},!!X&&{pageContext:X},!!A&&{userInputText:A})}};
_.pUh=function(A,t,f){t=t===void 0?5:t;if(t!==0){var X=typeof A==="function"?A():document.querySelector(A);X?(f==null?0:f.enableSmartFocus)?_.Hk0(X):X.focus():setTimeout(function(){_.pUh(A,t-1,f)},500)}};
EFQ=function(A){return String.raw.apply(String,[{raw:A}].concat(_.YV(_.Hu.apply(1,arguments).map(function(t){return t instanceof Array?t.join(""):t}))))};
DLQ=function(A){var t=_.Hu.apply(1,arguments),f=t.length;if(!Array.isArray(A)||!Array.isArray(A.raw)||A.length!==A.raw.length||!_.Hbl&&A===A.raw||!(_.Hbl&&!_.aFk||_.nb(A))||f+1!==A.length)throw new TypeError("$");return new nF3(Object.freeze({strings:Object.freeze(A),args:Object.freeze(t)}))};
_.OM=function(A){return{continuationCommand:{token:A,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
FIc=function(){return _.Hu.apply(0,arguments).flat().filter(function(A){return A}).join(";")};
xLw=function(){return DLQ(IKm,FIc.apply(null,_.YV(_.Hu.apply(0,arguments))))};
jg8=function(A,t){if(_.M("web_enable_chat_autoscroll_to_user_turn")&&A&&t)return A-4+"px"};
_.YQh=function(A,t){return _.q_(A.entities,"youchatPendingResponseEntity",t)};
_.Vvw=function(A){return function(t){_.og(_.Ta("youchatPendingResponseEntity",A,{entityKey:A,isPendingResponse:t}))}};
ZNj=function(A){A==null||A.addEventListener("DOMLoaded",function(){A.goToAndPlay(A.totalFrames-48,!0)})};
_.uk=function(A){this.__isSoyCss=!0;this.css=EFQ.apply(null,[A.strings].concat(_.YV(A.args)))};
_.uk.prototype.toString=function(){return this.css};
var nF3=function(){_.uk.apply(this,arguments)};
_.R(nF3,_.uk);var IKm=_.dS(["",""]);_.oFA=_.I(function(A){var t=_.Sv(A,{numberOfChips:5}).numberOfChips;return _.u("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.u(_.xk,{each:function(){return Array(t==null?void 0:t())}},function(){return _.u("div",{class:"ytGhostChipShelfChip"})}))},"Xi");var dL_=_.I(function(A){var t=void 0,f=function(){return A.data()},X=function(){return!!_.B$(_.Oj(f())).optionColor},Q=_.U(_.hZ(-1,void 0,"WFh1pc")),q=Q.next().value,e=Q.next().value,G=function(c){return q()===c},N=function(c){return f().correctAnswerIndex===c},z=function(){return q()!==-1};
Q=_.U(_.hZ("",void 0,"Vi7Gfe"));var T=Q.next().value,O=Q.next().value;return _.u("yoututor-quiz-view-model",{class:_.Ao("learningQuizComponentHost","learningYoututorQuizHost",A.className),style:_.U7({background:function(){return _.B$(_.Oj(f())).backgroundColor}})},_.u("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},T),_.u("div",{class:"learningQuizComponentQuizContainer"},_.u("div",{class:"learningQuizComponentQuiz"},_.u("div",{class:"learningQuizComponentQuizContent"},_.u(_.P,{cond:function(){return!!f().aiGeneratedQuizLabel},
then:function(){return _.u("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.u(_.zL,{text:function(){return f().aiGeneratedQuizLabel}}))}}),_.u("div",{class:"learningQuizComponentQuizHeader"},_.u("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.u("div",{class:"learningYoututorQuizText",
style:_.U7({color:function(){return _.B$(_.Oj(f())).primaryTextColor}})},_.u(_.zL,{text:function(){return f().questionHeaderText}}))))),_.u("div",{role:"group",
class:_.Ao("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.u(_.xk,{each:function(){return f().optionsData||[]}},function(c,B){var h={};
return _.u("button",{class:_.Ao("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(h.learningQuizComponentQuizHover=function(){return!z()},h.learningQuizComponentQuizOptionWithCustomColor=X,h.learningYoututorQuizOptionSelectedCorrectOutline=function(){return z()&&N(B())},h.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return q()!==f().correctAnswerIndex&&G(B())},h.learningQuizComponentQuizIncorrectShake=function(){return q()!==
f().correctAnswerIndex&&G(B())},h)),
"on:click":_.f1(function(){if(z())return!1;e(B());O(N(B())?f().correctAnswerAriaLabel||"":f().incorrectAnswerAriaLabel||"");return!1}),
style:_.U7({background:"transparent"}),"aria-description":function(){return z()?N(B())?f().correctAnswerAriaLabel:f().incorrectAnswerAriaLabel:""},
"aria-disabled":z,el:_.ZY(function(W){_.Ma(271905,W,t,function(L){t=L})}),
"client-ve-type":271905},_.u("div",{class:"learningQuizComponentQuizOptionContainer"},_.u(_.zL,{text:c.optionText}),_.u(_.P,{cond:function(){var W=B();return z()&&(G(W)||N(W))},
then:function(){var W={};return _.u(_.el,{className:_.Ao("learningYoututorQuizOptionIcon",(W.learningQuizComponentQuizPulse=function(){return q()===f().correctAnswerIndex&&N(B())},W)),
size:24,icon:function(){return N(B())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.u(_.P,{cond:z,
then:function(){return _.u("div",{class:"learningYoututorQuizExplanationContainer"},_.u("div",{class:"learningYoututorQuizExplanationText"},_.u(_.zL,{text:function(){return f().explanationHeaderText}})),_.u(_.zL,{text:function(){return f().optionsData[q()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Yi");
dL_.idomCompat=!0;var SQ3=_.I(function(A){var t=A.thumbsUp,f=A.thumbsDown,X=A.rightAlignThumbs;A=_.U(_.hZ(!1,void 0,"OxPsH"));var Q=A.next().value,q=A.next().value;A=_.U(_.hZ(!1,void 0,"V5vWne"));var e=A.next().value,G=A.next().value;A={};return _.u("div",{class:_.Ao("ytwThumbsUpDownThumbs",(A.ytwThumbsUpDownRightAlign=function(){return X==null?void 0:X()},A))},_.u(_.s$,{data:t,
onToggle:function(N){q(N);e()&&G(!1)},
buttonShapeOverrides:function(){return{toggled:Q()}}}),_.u(_.s$,{data:f,
onToggle:function(N){G(N);Q()&&q(!1)},
buttonShapeOverrides:function(){return{toggled:e()}}}))},"Zi");
SQ3.idomCompat=!0;var HNA=_.I(function(A){var t=function(){return A.data().pendingStateEntityKey||""},f=_.Nt(_.YQh,t),X=function(){var G;
if(!(G=A.disabled())){var N;G=!((N=f())==null||!N.isPendingResponse)}return G},Q=_.U(_.hZ(xLw(""),void 0,"Q6q6y")),q=Q.next().value,e=Q.next().value;
_.Zk(function(){requestAnimationFrame(function(){var G=A.data().onShowAnimationMs||0;G=G>0?xLw("--chip-animation-duration: "+G+"ms;"):xLw("");e(G)})});
return _.u("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:q},_.u(_.xk,{each:function(){return A.data().chipData||[]},
keyBy:"REFERENCE"},function(G){return _.u($Ll,{data:G,disabled:X,pendingStateKey:t,onError:A.onError})}))},"aj"),$Ll=_.I(function(A){var t=_.ud("button"),f=_.U(_.hZ(!0,void 0,"baSFEf")),X=f.next().value,Q=f.next().value,q=function(){return A.data().text.content},e=function(){return A.data().transparentWhenLoading},G=_.um(_.Iv.currentPageSubTypeSelector),N=function(){var T;
return(T=_.Px().resolve(_.z7(_.kQ)))==null?void 0:_.QkQ(T,G())},z=_.f1(function(T){var O,c,B,h,W,L,E,D;
return _.l(function(S){switch(S.nextAddress){case 1:T.stopPropagation();if(A.disabled())return S.return();c=String(Math.floor(((O=_.JE())==null?void 0:O.getCurrentTime())||0)*1E3);B="youchat-"+Date.now();h=function(){_.Wn(A.data().onClick||{});var Z=_.OM(A.data().continuation),d=_.iF({clientMessageId:B,playerOffsetMs:c,pageContext:N()});return new Promise(function(K,k){_.Wn(Z,{form:{formData:d},commandController:{onSuccess:function(Gz,Tz){K(Tz)},
onServerError:function(Gz,Tz){k(Tz.error)}}})})};
W=_.Vvw(A.pendingStateKey());W(!0);_.pUh("#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");Q(!1);_.ht(S,2);return S.yield(h(),4);case 4:_.qq(S,3);break;case 2:L=_.vC(S),(D=(E=A).onError)==null||D.call(E,L);case 3:W(!1),_.LO(S)}})});
return _.u(_.P,{cond:X,then:function(){return _.u("div",{class:"ytwYouChatChipsDataChipWrapper"},_.u("button",{el:t,class:"ytwYouChatChipsDataChip","data-disabled":A.disabled,"data-transparent-loading":e,"on:click":z,tabindex:0},q))}})},"bj");var aKj=_.I(function(A){var t=A.data;var f=A.initiallyExpanded;var X=function(){var z;return(z=t().conversationResourceData)==null?void 0:z.learningGuideData};
A=_.U(_.Jo(function(){var z;return(z=f==null?void 0:f())!=null?z:!1}));
var Q=A.next().value,q=A.next().value,e=function(){q(!0)},G=_.yq(function(){var z,T;
return(T=(z=X())==null?void 0:z.sections)!=null?T:[]},void 0,"QxyRyf"),N=_.yq(function(){return G().length>4},void 0,"MEbwoe");
A=_.yq(function(){var z;return!Q()&&N()&&(z=X())!=null&&z.expandButton?G().slice(0,4):G()},void 0,"hIE70b");
return _.u("yt-conversation-resource-view-model",{class:_.Ao("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.u(_.P1,{data:A},{expandableMetadataViewModel:_.ech}),_.u(_.P,{cond:function(){return N()&&!Q()},
then:function(){return _.u("div",{id:"showMoreButton"},_.u(_.P1,{data:function(){var z;return(z=X())==null?void 0:z.expandButton}},{buttonViewModel:function(z){return _.u(_.nx,{data:z.data,
onClick:e})}}))}}))},"cj");_.KIc=_.I(function(A){var t=function(){var D;return(D=A.data().text)==null?void 0:D.content},f=function(){var D,S;
return(D=A.data().webData)==null?void 0:(S=D.textResult)==null?void 0:S.content},X=_.Px().resolve(_.xA),Q=_.Un(),q=function(){return A.data().chatResponseStyle},e=function(){return!A.data().transparentBackground},G=function(){return A.data().rightAlignThumbs},N=function(){return A.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||A.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},z=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:N()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:A.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},T=function(){var D;
return A.data().webData||((D=A.data().text)==null?void 0:D.content)||A.data().videoResultsData||A.data().conversationResourceViewModel||A.data().quiz||A.data().yoututorQuiz||A.data().richContent},O=function(){return!!A.data().sectionHeader||T()},c=function(){var D;
return(D=A.data().videoResultsData)==null?void 0:D.videoShelf},B=function(){var D;
return(D=A.data().webData)==null?void 0:D.sourcesShelf},h=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:A.data().thumbsDownViewModel&&A.data().thumbsUpViewModel},W=function(){return _.C(A.data().thumbsUpViewModel,_.Tf)},L=function(){return _.C(A.data().thumbsDownViewModel,_.Tf)};
_.Zk(function(){requestAnimationFrame(function(){var D;(D=A.shouldAnimateIcon)!=null&&D.call(A)&&ZNj(Q.lottieEl)})});
var E={};return _.u("you-chat-item-view-model",{class:_.Ao("ytwYouChatItemViewModelYouChatItemViewModel",(E.ytwYouChatItemViewModelColumnLayout=function(){return N()},E)),
style:_.U7({"min-height":function(){var D,S;return jg8((D=A.containerHeight)==null?void 0:D.call(A),(S=A.isLastItem)==null?void 0:S.call(A))}}),
"data-target-id":function(){return A.data().id||""}},_.u(_.P,{cond:function(){return A.data().removeIcon?!1:O()},
then:function(){var D={};return _.u("div",{"aria-hidden":"true"},_.u(_.Ya,{className:_.Ao("ytwYouChatItemViewModelIcon",(D.ytwYouChatItemViewModelRtl=X==="rtl",D.ytwYouChatItemViewModelHidden=function(){return!(A.data().hideIcon||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:O())},D)),
animationName:"YOUCHAT_ICON",data:z,animationRef:Q}))}}),_.u(_.P,{cond:O,
then:function(){var D={};return _.u("div",{class:_.Ao("ytwYouChatItemViewModelHost",(D.ytwYouChatItemViewModelHostNoPadding=function(){return!!A.data().sectionHeader&&!T()},D.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},D.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},D.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
D.ytwYouChatItemViewModelGradientBackground=e,D.ytwYouChatItemViewModelHostAlignStart=function(){return!N()},D.ytwYouChatItemViewModelHostDefaultFlex=function(){return!N()},D)),
role:"alert"},_.u(_.P,{cond:t,then:function(S){return _.u(_.cc,{text:S,wrapCodeBlocks:!0})}}),_.u(_.P1,{data:function(){return A.data().sectionHeader}},{sectionHeaderViewModel:function(S){var Z={};
return _.u(_.SB,{data:S.data,className:_.Ao("ytwYouChatItemViewModelSectionHeader",(Z.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!A.data().sectionHeader&&!T()},Z)),
forceSmallLayout:!0})}}),_.u(_.P,{cond:f,
then:function(S){return _.u(_.cc,{text:S,wrapCodeBlocks:!0})}}),_.u(_.P,{cond:c,
then:function(){return _.u("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.u(_.P1,{data:function(){var S;return(S=A.data().videoResultsData)==null?void 0:S.videoShelf}},{horizontalShelfViewModel:function(S){return _.u(_.iq,{data:S.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.u(_.P,{cond:B,
then:function(){return _.u("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.u(_.P1,{data:function(){var S;return(S=A.data().webData)==null?void 0:S.sourcesShelf}},{horizontalShelfViewModel:function(S){return _.u(_.iq,{data:S.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.u(_.P1,{data:function(){return A.data().conversationResourceViewModel}},{conversationResourceViewModel:aKj}),_.u(_.P1,{data:function(){return A.data().quiz}},{learningJourneyQuizViewModel:_.Z0T}),_.u(_.P1,{data:function(){return A.data().yoututorQuiz}},{yoututorQuizViewModel:dL_}),_.u(_.P1,{data:function(){return A.data().richContent}},{cardViewModel:_.jC8,
linearLayoutViewModel:_.Pc}),_.u(_.P,{cond:h,then:function(){return _.u(SQ3,{thumbsUp:W,thumbsDown:L,rightAlignThumbs:G})}}))}}),_.u(_.P,{cond:function(){return A.data().chipsData},
then:function(D){return _.u(HNA,{data:D,disabled:A.pending,onError:A.onError})}}))},"ej");
_.KIc.idomCompat={callbacks:{onError:!0,onSend:!0}};_.gFc=_.I(function(A){var t=function(){var e;return((e=A.data)==null?void 0:e.call(A).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},f=_.Un(),X=_.Px().resolve(_.xA);
_.Zk(function(){requestAnimationFrame(function(){var e;(e=f.lottieEl)==null||e.addEventListener("DOMLoaded",function(){var G;(G=A.onLottieLoaded)==null||G.call(A)})})});
var Q=function(){var e;return(e=A.data)==null?void 0:e.call(A).loadingAnimationA11yLabel},q={};
return _.u("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var e;return((e=A.data)==null?void 0:e.call(A).targetId)||""},
"aria-label":function(){return Q()||""},
role:function(){return Q()?"progressbar":void 0},
style:_.U7({"min-height":function(){var e,G;return jg8((e=A.containerHeight)==null?void 0:e.call(A),(G=A.isLastItem)==null?void 0:G.call(A))}})},_.u(_.Ya,{"aria-hidden":"true",
className:_.Ao((q.ytChatLoadingViewModelRtl=X==="rtl",q)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:t()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||t()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:t()}}},
animationRef:f}))},"gj");_.wU3=_.I(function(A){var t=function(){return A.data().choiceSelectedText},f=function(){return A.data().hasGradientBackground},X={};
return _.u("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.U7({"min-height":function(){var Q,q;return jg8((Q=A.containerHeight)==null?void 0:Q.call(A),(q=A.isLastItem)==null?void 0:q.call(A))}}),
"data-target-id":function(){var Q;return(Q=A.data().itemTargetId)!=null?Q:""}},_.u(_.P,{cond:t,
then:function(){return _.u("div",{class:"ytYouChatUserTurnChoiceSelected"},_.u(_.zL,{text:t}))}}),_.u("div",{class:_.Ao("ytYouChatUserTurnUserMessage",(X.ytYouChatUserTurnGradientContainer=f,X.ytYouChatUserTurnDefaultContainer=function(){return!f()},X))},function(){return A.data().text}))},"hj");
}catch(e){_._DumpException(e)}
try{
var e5f,Gcf,lM3;e5f=function(A){return _.M("kevlar_watch_cinematics_invisible")||A.fullscreen&&_.M("kevlar_watch_cinematics_invisible_in_fullscreen")||A.theater&&!A.fullscreen&&_.M("kevlar_watch_cinematics_invisible_in_theater")};
Gcf=function(){var A=document.createElement("canvas"),t=A.getContext("2d");if(!t)throw Error("Uo");_.dU(A,{position:"absolute",width:"100%",height:"100%"});return{element:A,context:t}};
lM3=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.M("kevlar_watch_cinematics_css_blur")};
_.NDQ=function(A,t,f){return Math.abs(A-t)<=(f||1E-6)};
_.uNH=function(A,t){return A==t?!0:A&&t?A.width==t.width&&A.height==t.height:!1};_.z5l=new _.UA("notificationActionRenderer");var PxQ=function(A){var t=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Qc;this.element.addEventListener("load",function(){t.loaded=!0;t.resolver.resolve(t.element)});
this.element.addEventListener("error",function(){t.failed=!0});
this.element.src=A};var TDF=function(A,t){this.image=A;this.frame=t};
TDF.prototype.drawToCanvas=function(A,t){var f=this.frame.width/this.frame.columns,X=this.frame.height/this.frame.rows,Q=t.offsetX,q=t.offsetY;e5f(t)?(A.fillStyle=t.fullscreen?"#000":"#0f0f0f",A.fillRect(Q,q,(t==null?void 0:t.width)||f,(t==null?void 0:t.height)||X)):A.drawImage(this.image,this.frame.column*f,this.frame.row*X,f,X,Q,q,(t==null?void 0:t.width)||f,(t==null?void 0:t.height)||X)};
var iF3=function(A){this.color=A};
iF3.prototype.drawToCanvas=function(A,t){var f=t.offsetX,X=t.offsetY,Q=t.width,q=t.height;A.fillStyle=e5f(t)?t.fullscreen?"#000":"#0f0f0f":this.color;A.fillRect(f,X,Q,q)};var z8=function(A,t){_.N6.call(this);this.playerApi=t;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Ln(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();OFf(this,A);cZQ(this);this.update()};
_.R(z8,_.N6);z8.prototype.addEventListeners=function(){var A=this,t=function(){A.update()},f=function(Q){A.paused||(Q.type==="newdata"&&(A.mosaics.clear(),BDb(A),Pq(A)),cZQ(A),A.update())},X=function(){A.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",t);this.playerApi.addEventListener("onVideoDataChange",f);this.playerApi.addEventListener("onStateChange",X);this.addOnDisposeCallback(function(){A.playerApi.removeEventListener("onVideoProgress",t);A.playerApi.removeEventListener("onVideoDataChange",f);A.playerApi.removeEventListener("onStateChange",X)})};
var OFf=function(A,t){A.cinematicContainerRenderer!==t&&(A.cinematicContainerRenderer=t,BDb(A),Pq(A),A.colorStoreUpdateJobId=_.a6.addLowPriorityJob(function(){var f;if((f=A.cinematicContainerRenderer.colorStore)!=null&&f.sampledColors){f=Infinity;for(var X=_.U(A.cinematicContainerRenderer.colorStore.sampledColors),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var q=Number(Q.key);q!==0&&q<f&&(f=q);q=_.bY(Q.value);A.colorStore.set(Q.key,q)}A.colorStoreTimeInterval=f}}))},BDb=function(A){A.colorStoreUpdateJobId&&
(_.a6.cancelJob(A.colorStoreUpdateJobId),A.colorStoreUpdateJobId=void 0);
A.colorStore.clear();A.currentStoryboardColor=void 0},MGQ=function(A,t){var f;
return(f=A.getStoryboardFrame(t))==null?void 0:f.url};
z8.prototype.onPlayerStateChange=function(){this.update()};
z8.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var cZQ=function(A){var t=A.getStoryboardFrame(0);t&&(t=new _.Ln(t.width/t.columns,t.height/t.rows),_.uNH(A.currentStoryboardSize,t)||(A.currentStoryboardSize=t,A.publish("STORYBOARD_SIZE_CHANGED",A.currentStoryboardSize)))},Cxj=function(A,t){A.currentStoryboardIndex=t;
A.pendingStoryboardIndex=NaN;t=A.getStoryboardFrame(A.currentStoryboardIndex);A.currentStoryboard=new TDF(A.mosaics.get(t.url).element,t);A.publish("STORYBOARD_CHANGED",A.currentStoryboard);A.lastUpdateTime=(0,_.OJ)()};
z8.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Pq=function(A){A.currentStoryboardIndex=NaN;A.pendingStoryboardIndex=NaN;A.currentStoryboard&&(A.currentStoryboard=void 0,A.publish("STORYBOARD_CHANGED",void 0));A.lastUpdateTime=NaN};
z8.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Pq(this);else{var A=this.playerApi.getPlayerState(1);if(A===-1||A===5||A===0)Pq(this);else if(isNaN(this.lastUpdateTime)||!((0,_.OJ)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(A=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){A=""+Math.round(A*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var t=this.colorStore.get(A);t?t!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=t,this.currentStoryboard=new iF3(t),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.OJ)()):(_.K4(new _.xj("Could not find color for timestamp: "+A,this.cinematicContainerRenderer)),Pq(this))}else Pq(this);else h5b(this,A)}};
var h5b=function(A,t){var f=A.getStoryboardFrameIndex(t);if(f!==A.currentStoryboardIndex&&f!==A.pendingStoryboardIndex){t=MGQ(A,f);var X=A.mosaics.get(t);X?X.loaded&&Cxj(A,f):(A.pendingStoryboardIndex=f,f=new PxQ(t),A.mosaics.set(t,f),f.resolver.promise.then(function(){if(!A.isDisposed()&&!A.paused&&!isNaN(A.pendingStoryboardIndex)){var Q=MGQ(A,A.pendingStoryboardIndex);if(Q){var q;(q=A.mosaics.get(Q))!=null&&q.loaded&&Cxj(A,A.pendingStoryboardIndex)}else Pq(A)}}))}};
z8.prototype.getStoryboardFrameIndex=function(A){var t=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(A,t)};
z8.prototype.getStoryboardFrame=function(A){var t=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,f,X;return((X=(f=this.playerApi).getStoryboardFrame)==null?void 0:X.call(f,A,t))||null};
z8.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var OK=function(A,t,f,X){X=X===void 0?!1:X;_.DA.call(this);this.cinematicContainerRenderer=t;this.playerApi=f;this.theater=this.fullscreen=!1;var Q;this.ambientLightThemeEnabled=!X&&!!(t==null?0:(Q=t.config)==null?0:Q.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=X)&&!0;this.container=document.createElement("div");A.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);R5b(this);this.backCanvas=
Gcf();this.frontCanvas=Gcf();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new z8(t,this.playerApi);_.hV(this,this.storyboardManager);this.addEventListeners();m4u(this)?bFb(this,100+T8(this)*3*2,100+T8(this)*3*2):W$b(this);yZx(this,this.storyboardManager.currentStoryboard)};
_.R(OK,_.DA);
var R5b=function(A){var t=A.playerApi.getVideoAspectRatio();_.dU(A.container,{"aspect-ratio":""+t,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var f;var X;if((A.fullscreen||A.theater)&&((f=A.cinematicContainerRenderer.config)==null?0:(X=f.watchFullscreenConfig)==null?0:X.colorSourceWidthMultiplier))f=A.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var Q;f=(Q=
A.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Q:A.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var q,e;if((A.fullscreen||A.theater)&&((q=A.cinematicContainerRenderer.config)==null?0:(e=q.watchFullscreenConfig)==null?0:e.colorSourceHeightMultiplier))Q=A.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var G;Q=(G=A.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?G:A.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.dU(A.innerContainer,
{"aspect-ratio":""+t,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+f+", "+Q+")"});lM3()&&_.dU(A.innerContainer,"filter","blur("+_.cx("cinematic_watch_css_filter_blur_strength",40)+"px)")};
OK.prototype.setFullscreen=function(A,t){this.fullscreen=A;this.theater=!!t;R5b(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),A=this.storyboardManager.currentStoryboard,vfb(this),A&&L$l(this,A)};
OK.prototype.addEventListeners=function(){var A=this,t=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Q){yZx(A,Q)}),f=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){W$b(A)});
this.addOnDisposeCallback(function(){A.storyboardManager.unsubscribeByKey(t);A.storyboardManager.unsubscribeByKey(f)});
var X=function(){R5b(A)};
this.playerApi.addEventListener("onVideoDataChange",X);this.addOnDisposeCallback(function(){A.playerApi.removeEventListener("onVideoDataChange",X)})};
var W$b=function(A){if(!m4u(A)){var t=A.storyboardManager.currentStoryboardSize;isNaN(t.width)||isNaN(t.height)||bFb(A,Number(t.width)+T8(A)*3*2,Number(t.height)+T8(A)*3*2)}},bFb=function(A,t,f){A.backCanvas.element.width=t;
A.backCanvas.element.height=f;A.frontCanvas.element.width=t;A.frontCanvas.element.height=f},m4u=function(A){return A.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},yZx=function(A,t,f){f=f===void 0?!1:f;
var X=A.frontCanvas.element.getAnimations()[0];X?(X.pause(),A.backCanvas.context.globalAlpha=Number(getComputedStyle(A.frontCanvas.element).opacity),A.frontCanvas.element.style.opacity="0",X.finish()):A.backCanvas.context.globalAlpha=1;A.backCanvas.context.drawImage(A.frontCanvas.element,0,0,A.backCanvas.element.width,A.backCanvas.element.height);vfb(A);t&&L$l(A,t);t=t?A.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.cx("cinematic_watch_fade_out_duration",500);X=_.cx("cinematic_watch_transition_frame_rate")/
1E3;var Q={};X&&(Q={easing:"steps("+Math.round(t*X)+")"});(f===void 0?0:f)||A.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:t,iterations:1},Q));A.frontCanvas.element.style.opacity="1"},vfb=function(A){var t=A.ambientLightThemeEnabled||A.ambientTheaterModeEnabled,f=A.ambientLightThemeEnabled||A.ambientFullscreenEnabled;
A.frontCanvas.context.fillStyle=A.theater&&t||A.fullscreen&&f?"#000":"#0f0f0f";lM3()||(A.frontCanvas.context.filter="blur(0)");A.frontCanvas.context.fillRect(0,0,A.frontCanvas.element.width,A.frontCanvas.element.height)},L$l=function(A,t){lM3()||(A.frontCanvas.context.filter="blur("+T8(A)+"px)");
A.frontCanvas.context.globalAlpha=A.fullscreen&&A.ambientFullscreenEnabled||A.theater&&A.ambientTheaterModeEnabled?_.cx("cinematic_watch_effect_letterbox_opacity",.4):_.cx("cinematic_watch_effect_opacity",.4);var f={offsetX:T8(A)*3,offsetY:T8(A)*3,theater:A.theater,fullscreen:A.fullscreen};m4u(A)&&(f.width=100,f.height=100);t.drawToCanvas(A.frontCanvas.context,f);A.frontCanvas.context.globalAlpha=1},T8=function(A){var t;
return(t=A.cinematicContainerRenderer.config.blurStrength)!=null?t:5};
OK.prototype.disposeInternal=function(){_.DA.prototype.disposeInternal.call(this);this.container.remove()};
OK.prototype.clear=function(){yZx(this,void 0,!0)};
OK.prototype.pause=function(){this.storyboardManager.pause()};var pmx;pmx=_.WI(function(){var A,t,f=!((t=(A=document.createElement("canvas")).getContext)==null||!t.call(A,"2d")),X;A=!((X=CSS)==null||!X.supports("filter: blur(0)"));X=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var Q;return f&&A&&X&&!((Q=CSS)==null||!Q.supports("aspect-ratio: 1 / 1"))});
_.cq=function(A,t){_.N6.call(this);this.container=A;this.playerApi=t;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Efi(this);this.update()};
_.R(_.cq,_.N6);_.nfi=function(A){var t=document.documentElement.hasAttribute("dark");A.isDarkModeEnabled=t;A.update()};
_.D4r=function(A,t){A.settingEnabled=t;A.update()};
_.cq.prototype.setFullscreen=function(A,t){this.fullscreen=A;this.theater=!!t;this.update()};
_.F$i=function(A,t){A.cinematicContainerRenderer=t;A.cinematicContainerRenderer&&(A.cinematicsVe=_.Xl(A.isShorts()?227858:159022),_.jN(_.er(),A.cinematicsVe),A.loggingClientData={watchCinematicContainerData:{presentationStyle:A.cinematicContainerRenderer.presentationStyle}});A.update()};
_.cq.prototype.isShorts=function(){var A,t;return((A=this.cinematicContainerRenderer)==null?void 0:(t=A.config)==null?void 0:t.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.cq.prototype.isAllowed=function(){var A;if(A=pmx()){var t,f,X;A=((f=this.cinematicContainerRenderer)==null?void 0:f.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((X=this.cinematicContainerRenderer)==null||!X.colorStore)||((t=this.cinematicContainerRenderer)==null?void 0:t.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(A)if(_.M("web_cinematics_pausing")){var Q,q;A=this.isDarkModeEnabled||!!((Q=this.cinematicContainerRenderer)==
null?0:(q=Q.config)==null?0:q.enableInLightTheme)}else{var e,G;Q=!!((e=this.cinematicContainerRenderer)==null?0:(G=e.config)==null?0:G.enableInLightTheme)&&(_.ah("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);A=this.isDarkModeEnabled||Q}if(e=A){var N,z;e=!((z=(N=this.prefersReducedMotionQuery)==null?void 0:N.matches)!=null&&z)}return e};
_.IMl=function(A){(A=A.currentCinematicEffect)!=null&&(A=A.storyboardManager,A.paused=!1,cZQ(A),A.update())};
_.cq.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Efi=function(A){if(!_.M("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion: reduce)"),f=function(){A.update()};
t.addListener(f);A.addOnDisposeCallback(function(){t.removeListener(f)});
return t}};
_.cq.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var A=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new OK(this.container,A,this.playerApi,this.isDarkModeEnabled),_.hV(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var t=this.currentCinematicEffect;t.cinematicContainerRenderer!==
A&&(t.cinematicContainerRenderer=A,OFf(t.storyboardManager,A),R5b(t));A=_.NJ();_.u0(0,194,!0);A.save();A=_.Ws();this.cinematicsVe&&A&&_.Vg(A,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(A=_.Ws(),this.cinematicsVe&&A&&_.ZN(A,[this.cinematicsVe],!1,this.loggingClientData),_.ee(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.PV.Object.defineProperties(_.cq.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var F7y;var IAx;_.CN({_template:function(){if(IAx!==void 0)return IAx;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=
A.content,f=t.insertBefore;F7y===void 0&&(F7y=document.createElement("template"));var X=F7y;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return IAx=A},
is:"tp-yt-iron-pages",behaviors:[_.K9,_.jv],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var EVH;_.nVW=function(){if(_.M("kevlar_home_skeleton")&&!EVH){var A=document.querySelector("#home-page-skeleton");A&&(_.Wt("hgcr"),_.vf(A),EVH=!0)}};
EVH=!1;_.ks=new _.UA("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Elr=function(A){return _.Zjb(_.VXq(A&16777215))<.5},nlF=function(A,t,f){var X=f.minimumRowsOfVideosBetweenSections===void 0?1:f.minimumRowsOfVideosBetweenSections;
return A<(f.minimumRowsOfVideosAtStart===void 0?2:f.minimumRowsOfVideosAtStart)||t!==null&&A-t<=X?!1:!0},Dyr=function(A,t){var f=0,X=0;
A=_.U(A);for(var Q=A.next();!Q.done;Q=A.next()){var q=Q.value;if(q.richItemRenderer)q.richItemRenderer.rowIndex=X,q.richItemRenderer.colIndex=f++,f===t&&(f=0,X++);else if(q.richGroupRenderer&&q.richGroupRenderer.numColumns!==void 0)q.richGroupRenderer.rowIndex=X,q.richGroupRenderer.colIndex=f,f+=q.richGroupRenderer.numColumns,f===t&&(f=0,X++);else if(q.richSectionRenderer){var e=Q=void 0;if(q=_.C((Q=q)==null?void 0:(e=Q.richSectionRenderer)==null?void 0:e.content,_.WqK))q.rowIndex=X++}}},FQH=function(A,
t){var f=t.contentElement;
t=t.rendererToTagNameMap;if(f&&t&&t.size!==0){for(var X=new Map,Q=_.U(f.children),q=Q.next();!q.done;q=Q.next()){q=q.value;var e=q.tagName.toLowerCase(),G=X.get(e);G||(G=[],X.set(e,G));G.push(q)}if(X.size!==0)for(Q=Math.min(A.length,f.children.length),q=new Map,e=0;e<Q;e++){G=Object.keys(A[e])[0];G=t.get(G);if(!G)break;var N=q.get(G);N===void 0&&(N=0,q.set(G,N));var z=X.get(G);if(!z||N>=z.length)break;q.set(G,N+1);G=z[N];N=f.children[e];N!==G&&(_.Sr=!0,_.$A.set(G,!0),f.insertBefore(G,N),_.$A.delete(G),
_.Sr=!1)}}},IFi=function(A,t,f,X,Q,q,e){X=X===void 0?{}:X;
if(!A||!A.length)return{orderedContent:[]};A=A.slice();var G=[],N=[];Q=null;for(var z=0,T=function(S){N.sort(function(K,k){return k.skippedOnRow-K.skippedOnRow});
for(var Z,d=(Z=N.shift())==null?void 0:Z.content;d;)!d.richSectionRenderer&&S||G.push(d),Z=void 0,d=(Z=N.shift())==null?void 0:Z.content},O=void 0,c=void 0,B=new Set;A.length>0||N.length>0;){for(var h=[],W=t;W>0;){var L=void 0,E=void 0,D=(E=N[0]&&N[0].skippedOnRow<z?(L=N.shift())==null?void 0:L.content:void 0)!=null?E:A.shift();
if(!D)break;if(D.richItemRenderer)L=D.richItemRenderer.targetId,E=void 0,L&&((E=e)==null?0:E.has(L))&&(E=e.get(L),!O||E&&E.timestamp>O.timestamp)&&(O=E,c&&B.add(c),c=L),h.push(D),W--;else if(D.richGroupRenderer&&D.richGroupRenderer.numColumns!==void 0)D.richGroupRenderer.numColumns<=W?(h.push(D),W-=D.richGroupRenderer.numColumns):W===t&&D.richGroupRenderer.numColumns>t?(h.push({richGroupRenderer:Object.assign({},D.richGroupRenderer,{numColumns:t})}),W=0):N.push({content:D,skippedOnRow:z});else if(D.richSectionRenderer)if(nlF(z,
Q,X)&&W===t){G.push(D);Q=z;z++;continue}else N.push({content:D,skippedOnRow:z});else if(D.continuationItemRenderer){T(!0);G.push(D);W=0;break}if(W===0)G.push.apply(G,_.YV(h));else if(!f&&A.length===0){T(!1);G.push.apply(G,_.YV(h));W=0;break}}z++;O&&(G.push(O.content),z++);c=O=void 0}Dyr(G,t);q&&FQH(G,q);return{orderedContent:G,pinnedContentNotShownTargetIds:B}},Yib=function(A,t){if(t){var f=_.$I().getState().entities.flowStateEntity,X=xyf(A),Q=[t];
X&&X!==t&&Q.push(X);var q=!0,e;if(f&&A.flowStateEntityKey&&((e=f[A.flowStateEntityKey])==null?void 0:e.primaryButtonDisabled)!==void 0){var G;q=!((G=f[A.flowStateEntityKey])==null||!G.primaryButtonDisabled)}jfi(A,X!=null?X:t,Q,q)}},Zbx=function(A){return _.ar(_.$I(),function(t){return t.entities.flowStateEntity},function(t,f){if(A.flowStateEntityKey){var X,Q=t==null?void 0:(X=t[A.flowStateEntityKey])==null?void 0:X.currentStepId,q;
f=f==null?void 0:(q=f[A.flowStateEntityKey])==null?void 0:q.currentStepId;q=_.$I().getState().talkToRecs;if(Q&&Q!==f){var e;t=(t==null?void 0:(e=t[A.flowStateEntityKey])==null?void 0:e.stepIdStack)||Object.keys(q.stepStates);e=!V3b(q==null?void 0:q.stepStates[Q]);jfi(A,Q,t,e)}}})},dyy=function(A){return _.ar(_.$I(),oli,function(t){var f=xyf(A);
if(f){var X=Object.keys(t.stepStates);t=!V3b(t==null?void 0:t.stepStates[f]);jfi(A,f,X,t)}})},V3b=function(A){var t=Object.keys((A==null?void 0:A.selectionStates)||{}).reduce(function(q,e){return q||(A==null?void 0:A.selectionStates[e].isSelected)},!1),f,X,Q=!!(A==null?0:(f=A.userQuery)==null?0:(X=f.userQuery)==null?0:X.trim());
return t||Q},xyf=function(A){if(A.flowStateEntityKey){var t,f,X=(t=_.$I().getState().entities.flowStateEntity)==null?void 0:(f=t[A.flowStateEntityKey])==null?void 0:f.currentStepId;
if(X)return X}},jfi=function(A,t,f,X){_.$I().dispatch(_.Ta("flowStateEntity",A.flowStateEntityKey,{currentStepId:t,
stepIdStack:f,key:A.flowStateEntityKey,primaryButtonDisabled:X}))},Six;var $yQ;_.CN({_template:function(){if($yQ!==void 0)return $yQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
var t=A.content,f=t.insertBefore;Six===void 0&&(Six=document.createElement("template"));var X=Six;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return $yQ=A},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var HbQ=new _.UA("flowRootRenderer");var aFH=new _.UA("chipsShelfViewModel");var KQl=new _.UA("responsiveContainerConfiguration");_.glx=new _.UA("engagementPanelSectionListRenderer");var wui=function(){this.horizontal=!1},sfl=function(A,t){A.horizontal=t};
wui.prototype.position=function(A,t,f,X){X=X===void 0?1:X;A=this.delta(A)*X+t;X=Math.max(t,f);return A>=Math.min(t,f)&&A<=X?A:f};
wui.prototype.axis=function(A){A=this.direction(A);return A==="up"||A==="down"?"Y":"X"};var Dy=function(A,t,f){t=t===void 0?_.oF():t;this.target=A;this.manager=t;this.touchAction=f;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Dy.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(_.YV(this.events)));for(var A=_.U(this.events),t=A.next();!t.done;t=A.next())this.listen(t.value)}};
Dy.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.YV(this.events)));for(var A=_.U(this.events),t=A.next();!t.done;t=A.next())this.unlisten(t.value)}};
Dy.prototype.listen=function(A){this.eventMap[A]&&this.target.addEventListener(A,this.eventMap[A])};
Dy.prototype.unlisten=function(A){this.eventMap[A]&&this.target.removeEventListener(A,this.eventMap[A])};var FQ=function(){wui.apply(this,arguments)};
_.R(FQ,wui);FQ.prototype.direction=function(A){var t=A.detail;A=t.deltaY;t=t.deltaX;return A&&!this.horizontal?A>0?"down":"up":t&&this.horizontal?t>0?"right":"left":"none"};
FQ.prototype.distance=function(A){return Math.abs(this.delta(A))};
FQ.prototype.delta=function(A){var t=this.direction(A),f=A.detail;A=f.deltaX;f=f.deltaY;return t==="up"||t==="down"?f||0:A||0};
FQ.prototype.velocity=function(A){var t=this.direction(A),f=A.detail;A=f.velocityX;f=f.velocityY;return Math.abs(t==="up"||t==="down"?f||0:A||0)};_.IL=function(A,t,f,X,Q,q){Q=Q===void 0?new FQ:Q;q=q===void 0?_.oF():q;Dy.call(this,t,q,X);var e=this;this.element=A;this.target=t;this.config=f;this.input=Q;this.manager=q;this.events=["panstart","panmove","panend"];this.onPanStart=function(){e.config.draggingClass&&e.element.classList.add(e.config.draggingClass);e.config.startAction&&e.config.startAction()};
this.onPanMove=function(G){var N=kHW(e,G);if(N){e.move(G,N);N.fade&&e.fade(G,N);var z=e.input.direction(G);N.moveAction&&N.moveAction(rru(e,G,N),z)}};
this.onPanEnd=function(G){var N,z,T,O,c,B;return _.l(function(h){if(h.nextAddress==1){e.animationRequestId&&cancelAnimationFrame(e.animationRequestId);e.animationRequestId=void 0;N=kHW(e,G);if(!N)return h.return();z=N;T=z.triggerAction;O=z.fade;c=z.disableFinish;B=z.translateBack;var W=e.input.velocity(G),L=e.input.distance(G),E=e.threshold(N);return W>.3&&L>10||L>E?c?h.jumpTo(6):O?h.yield(Atj(e,G),6):h.yield(tOu(e,G,N),6):B?h.yield(e.translateBack(G),3):h.jumpTo(3)}h.nextAddress!=3&&T&&T();e.config.draggingClass&&
e.element.classList.remove(e.config.draggingClass);e.reset();_.LO(h)})};
A=Object.keys(f.triggers);this.directions=new Set(A);sfl(this.input,this.directions.has("right")||this.directions.has("left"))};
_.R(_.IL,Dy);_.IL.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var kHW=function(A,t){t=A.input.direction(t);return A.config.triggers[t]};
_.IL.prototype.move=function(A,t){var f=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var X=f.input.axis(A),Q=f.input.position(A,f.config.startPosition,t.endPosition,t.moveRatio||1);f.element.style.transform="translate"+X+"("+Q+"px)";f.animationRequestId=void 0}))};
var rru=function(A,t,f){var X=f.moveRatio||1;f=Math.abs(A.config.startPosition-f.endPosition);return Math.min(A.input.distance(t)*X,f)/f};
_.IL.prototype.fade=function(A,t){var f=t.endOpacity;A=rru(this,A,t);A>0&&(this.element.style.opacity=""+(((f||0)-1)*A+1))};
_.IL.prototype.threshold=function(A){return A.threshold?A.threshold:Math.abs(A.endPosition-this.config.startPosition)/3};
var tOu=function(A,t,f){var X,Q,q,e,G,N,z;return _.l(function(T){if(T.nextAddress==1)return X=A.input.delta(t)+A.config.startPosition,Q=A.input.axis(t),q=f,e=q.endPosition,G=q.transitionEndPosition,z=(N=G)!=null?N:e,T.yield(A.element.animate([{transform:"translate"+Q+"("+X+"px)"},{transform:"translate"+Q+"("+z+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.element.style.transform="translate"+Q+"("+z+"px)";_.LO(T)})};
_.IL.prototype.translateBack=function(A){var t=this,f,X;return _.l(function(Q){if(Q.nextAddress==1){if(!t.element.style.transform)return Q.return();f=t.input.axis(A);X=t.config.startPosition;return Q.yield(t.element.animate([{transform:t.element.style.transform},{transform:"translate"+f+"("+X+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}t.element.style.transform="translate"+f+"("+X+"px)";_.LO(Q)})};
var Atj=function(A,t){var f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return f=A.input.delta(t)+A.config.startPosition,X=A.input.axis(t),Q=f+70,q=A.element.style.opacity===""?1:A.element.style.opacity,e.yield(A.element.animate([{transform:"translate"+X+"("+f+"px)",opacity:q},{transform:"translate"+X+"("+Q+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.element.style.transform="translate"+X+"("+Q+"px)";A.element.style.opacity="0";_.LO(e)})};var xs=function(){var A=_.uo.apply(this,arguments)||this;A._noAccessors=!0;A.scrollRate=3;A.autoScrollAnimationStart=0;A.autoScrollPaused=!1;A.autoScrollRafId=0;return A};
_.R(xs,_.uo);_.J=xs.prototype;_.J.created=function(){var A=this;this.boundAutoScrollHandler=function(t){A.autoScroll(t)}};
_.J.detached=function(){this.hostElement.removeEventListener("mouseout",_.JY(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.JY(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.JY(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.J.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.JY(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.JY(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.JY(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.JY(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.JY(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.JY(this,this.endAutoScroll)),this.endAutoScroll())};
_.J.autoScroll=function(A){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=A);var t;if(t=!this.autoScrollPaused&&this.scrollTarget)t=this.scrollTarget,t=t.scrollHeight-t.scrollTop!==t.clientHeight;t&&(t=1E3/this.scrollRate,A-=this.autoScrollAnimationStart,A>t&&(this.scrollTarget.scrollTop+=Math.ceil(A/t),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.J.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.J.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
xs.prototype.autoScrollEnabledChanged=xs.prototype.autoScrollEnabledChanged;_.V([_.n(),_.H("design:type",Object)],xs.prototype,"scrollRate",void 0);_.V([_.n(),_.H("design:type",Object)],xs.prototype,"scrollTarget",void 0);_.V([_.n(),_.H("design:type",Boolean)],xs.prototype,"autoScrollEnabled",void 0);_.V([_.ev("autoScrollEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xs.prototype,"autoScrollEnabledChanged",null);_.V([_.zh()],xs);_.fHH=[xs.prototype];var XCQ;var ju=function(){var A=_.F.apply(this,arguments)||this;A.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};A.forceDarkTheme=!1;A.forceLightTheme=!1;A.dynamicTextHeight=94;A.hasOverflowButton=!1;A.isInfeedModernization=!1;return A};
_.R(ju,_.F);_.J=ju.prototype;_.J.computeUrlImg=function(A){if(A)return _.KI(A.thumbnails)};
_.J.getLogoHeight=function(A){return this.logoWithPadding(A)?"31":"24"};
_.J.getLogoClassName=function(A){return this.logoWithPadding(A)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.J.logoWithPadding=function(A){var t,f;return(A=(t=A.thumbnails)==null?void 0:(f=t[0])==null?void 0:f.height)&&A%31===0?!0:!1};
_.J.sendImpressionEndpoints=function(A){A.impressionEndpoints&&_.Al(this.hostElement,A.impressionEndpoints)};
_.J.observeBasicPalette=function(){var A,t,f=(A=this.data)==null?void 0:(t=A.colorData)==null?void 0:t.basicColorPaletteData;f?_.BO(this.hostElement,f):_.BO(this.hostElement,{})};
_.J.observeDataChanged=function(){var A;this.dynamicTextHeight=((A=this.data)==null?0:A.supplementalText)?74:94;var t;this.hasSupplementalText=!((t=this.data)==null||!t.supplementalText);var f,X,Q,q;A=(f=this.data)==null?void 0:(X=f.actionButton)==null?void 0:(Q=X.buttonRenderer)==null?void 0:(q=Q.colorData)==null?void 0:q.basicColorPaletteData;var e,G,N;if(!((e=this.data)==null?0:(G=e.actionButton)==null?0:(N=G.buttonRenderer)==null?0:N.style)&&A){this.computeIsInfeedModernization(this.data)||(A.borderColor=
A.foregroundTitleColor);var z,T;this.set("data.actionButton.buttonRenderer",_.VG.unsafeClone((z=this.data)==null?void 0:(T=z.actionButton)==null?void 0:T.buttonRenderer))}};
_.J.observeDataForCounterfactual=function(){if(_.M("kevlar_banner_cf_extra_logging")){var A;((A=this.data)==null?0:A.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.J.computeSupplementalStyle=function(){var A;if((A=this.data)!=null&&A.supplementalText){var t,f,X;if((t=this.data)==null?0:(f=t.colorData)==null?0:(X=f.basicColorPaletteData)==null?0:X.foregroundActivatedColor)return A=_.mt(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+A+"; --yt-endpoint-hover-color:"+A+"; --yt-endpoint-visited-color:"+A+"; --yt-formatted-string-bold-font-weight:700;"}};
_.J.computeForcedDarkTheme=function(){var A,t,f,X=(A=this.data)==null?void 0:(t=A.actionButton)==null?void 0:(f=t.buttonRenderer)==null?void 0:f.style,Q,q,e;A=Elr(((Q=this.data)==null?void 0:(q=Q.colorData)==null?void 0:(e=q.basicColorPaletteData)==null?void 0:e.backgroundColor)||0);return X&&A};
_.J.computeForcedLightTheme=function(){var A,t,f,X=(A=this.data)==null?void 0:(t=A.actionButton)==null?void 0:(f=t.buttonRenderer)==null?void 0:f.style,Q,q,e;A=!Elr(((Q=this.data)==null?void 0:(q=Q.colorData)==null?void 0:(e=q.basicColorPaletteData)==null?void 0:e.backgroundColor)||0);return X&&A};
_.J.computeHasOverflowButton=function(A){return!!A.overflowButton};
_.J.computeHasTitle=function(A){return!!A.title};
_.J.computeTitleMaxFontSize=function(A){return this.computeHasOverflowButton(A)?28:64};
_.J.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.J.computeIsInfeedModernization=function(){var A,t,f,X,Q=(A=this.data)==null?void 0:(t=A.actionButton)==null?void 0:(f=t.buttonRenderer)==null?void 0:(X=f.colorData)==null?void 0:X.basicColorPaletteData;return(Q==null?void 0:Q.backgroundColor)===452984831||(Q==null?void 0:Q.backgroundColor)===218103808};
ju.prototype.observeDataForCounterfactual=ju.prototype.observeDataForCounterfactual;ju.prototype.observeDataChanged=ju.prototype.observeDataChanged;ju.prototype.observeBasicPalette=ju.prototype.observeBasicPalette;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],ju.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],ju.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ju.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],ju.prototype,"hasSupplementalText",void 0);_.V([_.n(),_.H("design:type",Object)],ju.prototype,"dismissButtonOverrides",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.H("design:type",Boolean)],ju.prototype,"hasTitle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.H("design:type",Object)],ju.prototype,"forceDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.H("design:type",Object)],ju.prototype,"forceLightTheme",void 0);_.V([_.n(),_.H("design:type",Object)],ju.prototype,"dynamicTextHeight",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.H("design:type",Object)],ju.prototype,"hasOverflowButton",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.H("design:type",Object)],ju.prototype,"isInfeedModernization",void 0);_.V([_.ev("data.colorData.basicColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ju.prototype,"observeBasicPalette",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ju.prototype,"observeDataChanged",null);_.V([_.ev("data.isVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ju.prototype,"observeDataForCounterfactual",null);_.V([_.y_({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],ju);
_.Y(ju,"ytd-banner-promo-renderer",function(){if(XCQ!==void 0)return XCQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return XCQ=A},{mode:1});var Q9H;var qVu;var Jtb;var UWx=function(){return _.F.apply(this,arguments)||this};
_.R(UWx,_.F);_.V([_.n(),_.H("design:type",Object)],UWx.prototype,"data",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],UWx.prototype,"ytRendererBehavior",void 0);_.V([_.y_({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],UWx);
_.Y(UWx,"ytd-hashtag-grid-tile-renderer",function(){if(Jtb!==void 0)return Jtb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Jtb=A},{mode:1});var Ys=function(){return _.F.apply(this,arguments)||this};
_.R(Ys,_.F);Ys.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Ys.prototype.updateRichGridTrendingHashtagsVisibility=function(){var A,t;if(((A=this.data)==null||!A.isExpanded)&&(t=this.data)!=null&&t.tiles){A=this.data.tiles.length;t=A>this.richGridItemsPerRow?this.richGridItemsPerRow+1:A;var f=Math.ceil(A/t);this.fullyVisibleRows=A%t===1&&f===2?1:Math.min(f,2);this.isShowMoreVisible=this.fullyVisibleRows<f}};
Ys.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Ys.prototype.updateRichGridTrendingHashtagsVisibility=Ys.prototype.updateRichGridTrendingHashtagsVisibility;_.V([_.n(),_.H("design:type",Object)],Ys.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Number)],Ys.prototype,"fullyVisibleRows",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ys.prototype,"isShowMoreVisible",void 0);_.V([_.n({selector:_.b$,value:0}),_.H("design:type",Number)],Ys.prototype,"richGridItemsPerRow",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Ys.prototype,"ytdReduxBehavior",void 0);_.V([_.ev("data","richGridItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ys.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.V([_.y_({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Ys);
_.Y(Ys,"ytd-hashtag-grid-shelf-renderer",function(){if(qVu!==void 0)return qVu;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return qVu=A},{mode:1});var eNb;var GGi;var VY=function(){var A=_.F.apply(this,arguments)||this;A.visibleVideos=[];A.hiddenVideos=[];A.modern=_.M("web_modern_buttons");A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(VY,_.F);_.J=VY.prototype;_.J.attached=function(){var A=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.onDarkModeToggledAction(A)};
_.J.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"}}}};
_.J.dataChanged=function(){var A=this;this.requestElementsPerRow();var t,f;this.currentColorPalette=this.isDarkTheme?(t=this.data)==null?void 0:t.darkColorData:(f=this.data)==null?void 0:f.lightColorData;var X;if((X=this.currentColorPalette)==null?0:X.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.us(this,function(){A.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.computeIsFirstFeedItem=function(A){return A};
_.J.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A);this.data&&(this.currentColorPalette=A?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.J.getCurrentLogo=function(A,t){if(A)return t?A.darkLogoImage:A.lightLogoImage};
_.J.computeTitleStyle=function(A){var t;if((t=this.data)!=null&&t.title&&A&&A.textPrimary!==void 0)return"color:"+_.mt(A.textPrimary)+";"};
_.J.computeSubtitleStyle=function(A){var t;if((t=this.data)!=null&&t.subtitle&&A&&A.textSecondary!==void 0)return"color:"+_.mt(A.textSecondary)+";"};
_.J.computeDismissIconStyle=function(A){if(this.data&&this.data.dismissButton&&A&&A.textPrimary!==void 0)return"--yt-button-color:"+_.mt(A.textPrimary)+";"};
_.J.computeOverflowButtonStyle=function(A){if(this.data&&this.data.overflowButton&&A&&A.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.mt(A.textPrimary)+";--yt-spec-icon-active-other:"+_.mt(A.textPrimary)+";"};
_.J.computeBackgroundStyle=function(A){if(A&&this.data){var t="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var f=_.KI((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);f&&(t+='background-image:url("'+f+'");')}A.backgroundColor!==void 0&&(t+="background-color:"+_.bY(A.backgroundColor)+";");return t}};
_.J.computeButton=function(){var A,t=Object.assign({},_.C((A=this.data)==null?void 0:A.showMoreButton,_.Gf));if(this.modern&&t){t.style="STYLE_MONO_OUTLINE";var f;if(A=(f=this.currentColorPalette)==null?void 0:f.textPrimary)t.colorData={basicColorPaletteData:{foregroundTitleColor:A,borderColor:A}}}return t};
_.J.shouldShowBottomButton=function(A,t){return!(A==null?0:A.header)&&!(A==null||!A.primaryButton)&&t<3};
_.J.checkExpanded=function(A){this.isExpanded=A&&A.content?this.hiddenVideos.length===0:!0};
_.J.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.J.getLogoHeight=function(A){return this.logoWithPadding(A)?"26":"20"};
_.J.getLogoImageId=function(A){return this.logoWithPadding(A)?"logo-image-with-padding":"logo-image"};
_.J.computeHasSectionHeader=function(A){return!!A.header};
_.J.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var A;if((A=this.data.primaryButton)==null?0:A.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 t;((t=this.data.dismissButton)==null?0:t.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var f,X;((f=this.data)==null?0:(X=f.primaryButton)==null?0:X.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.J.setVisibleVideos=function(A){if(this.data&&this.data.content)if(this.data.content.length){var t=this.data.content.length;this.data.header?A?(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.slimItemsPerRow),t)):(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow),t)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(t,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow),t)):(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow-1),t))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.J.setHasMovieRenderer=function(){var A;if((A=this.data)!=null&&A.content){var t;this.hasMovieRenderer=!!_.C((t=this.data)==null?void 0:t.content[0],_.FdT)}else this.hasMovieRenderer=!1};
_.J.requestElementsPerRow=function(){_.s9(this.hostElement,"yt-request-elements-per-row")};
_.J.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var A=_.U(this.hiddenMediaRenderers),t=A.next();!t.done;t=A.next())t.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(A=_.sF(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&A.focus()}};
_.J.updateTitleSpec=function(){var A;(A=this.data)!=null&&A.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.J.logoWithPadding=function(A){var t,f,X;return(A=(t=this.getCurrentLogo(A,this.isDarkTheme))==null?void 0:(f=t.thumbnails)==null?void 0:(X=f[0])==null?void 0:X.height)&&A%31===0?!0:!1};
_.J.onUpdateElementsPerRowAction=function(A,t,f){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A);f&&this.slimItemsPerRow!==f&&(this.slimItemsPerRow=f)};
VY.prototype.slimItemsPerRowChanged=VY.prototype.slimItemsPerRowChanged;VY.prototype.elementsPerRowChanged=VY.prototype.elementsPerRowChanged;VY.prototype.dataChanged=VY.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],VY.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],VY.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],VY.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],VY.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],VY.prototype,"currentColorPalette",void 0);_.V([_.n(),_.H("design:type",Array)],VY.prototype,"visibleVideos",void 0);_.V([_.n(),_.H("design:type",Array)],VY.prototype,"hiddenVideos",void 0);
_.V([_.n(),_.H("design:type",Object)],VY.prototype,"primaryButton",void 0);_.V([_.n({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],VY.prototype,"elementsPerRow",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],VY.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],VY.prototype,"isExpanded",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],VY.prototype,"largeTitle",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],VY.prototype,"hasMovieRenderer",void 0);_.V([_.n(),_.H("design:type",Number)],VY.prototype,"slimItemsPerRow",void 0);_.V([_.n(),_.H("design:type",Boolean)],VY.prototype,"showLightVideoMetadata",void 0);_.V([_.n(),_.H("design:type",Boolean)],VY.prototype,"showDarkVideoMetadata",void 0);_.V([_.n(),_.H("design:type",Number)],VY.prototype,"videoMetadataColor",void 0);
_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],VY.prototype,"miniMode",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.H("design:type",Boolean)],VY.prototype,"isFirstFeedItem",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.H("design:type",Boolean)],VY.prototype,"hasSectionHeader",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],VY.prototype,"roundedContainer",void 0);_.V([_.NL("#visible-video-container ytd-rich-grid-media"),_.H("design:type",Array)],VY.prototype,"visibleMediaRenderers",void 0);_.V([_.NL("#hidden-video-container ytd-rich-grid-media"),_.H("design:type",Array)],VY.prototype,"hiddenMediaRenderers",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],VY.prototype,"modern",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VY.prototype,"dataChanged",null);_.V([_.ev("elementsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VY.prototype,"elementsPerRowChanged",null);_.V([_.ev("slimItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VY.prototype,"slimItemsPerRowChanged",null);
_.V([_.y_({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],VY);
_.Y(VY,"ytd-brand-video-shelf-renderer",function(){if(GGi!==void 0)return GGi;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return GGi=A},{mode:1});var lHx;var Zy=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(Zy,_.F);_.J=Zy.prototype;_.J.attached=function(){var A=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.onDarkModeToggledAction(A)};
_.J.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"}}}};
_.J.dataChanged=function(){this.requestElementsPerRow();var A,t;this.currentColorPalette=this.isDarkTheme?(A=this.data)==null?void 0:A.darkColorData:(t=this.data)==null?void 0:t.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.J.computeIsFirstFeedItem=function(A){return A};
_.J.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A);this.data&&(this.currentColorPalette=A?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(A),this.updateButtonPalette())};
_.J.shouldShowThumbnailInMetadata=function(A){return A<=1};
_.J.computeVideoMetadataColor=function(){if(this.data){var A;if((A=this.currentColorPalette)==null?0:A.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.J.computeTitleStyle=function(A){var t;if((t=this.data)!=null&&t.title&&A&&A.textPrimary!==void 0)return"color:"+_.mt(A.textPrimary)+";"};
_.J.computeSubtitleStyle=function(A){var t;if((t=this.data)!=null&&t.subtitle&&A&&A.textSecondary!==void 0)return"color:"+_.mt(A.textSecondary)+";"};
_.J.computeOverflowButtonStyle=function(A){if(this.data&&this.data.overflowButton&&A.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.mt(A.textPrimary)+";--yt-spec-icon-active-other:"+_.mt(A.textPrimary)+";"};
_.J.computeBackgroundStyle=function(A){if(A&&this.data){var t="";A.backgroundColor!==void 0&&(t+="background-color:"+_.bY(A.backgroundColor)+";");return t}};
_.J.computeHasOverflowButton=function(A){return!!A.overflowButton};
_.J.updateButtonPalette=function(){if(this.data){var A;if((A=this.data.primaryButton)==null?0:A.buttonRenderer){var t;if((t=this.currentColorPalette)==null?0:t.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var f;((f=this.currentColorPalette)==null?0:f.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)})}}};
_.J.requestElementsPerRow=function(){_.s9(this.hostElement,"yt-request-elements-per-row")};
_.J.updateTitleSpec=function(){var A;(A=this.data)!=null&&A.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")};
_.J.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
Zy.prototype.elementsPerRowChanged=Zy.prototype.elementsPerRowChanged;Zy.prototype.dataChanged=Zy.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],Zy.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Zy.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Zy.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Zy.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Zy.prototype,"currentColorPalette",void 0);_.V([_.n(),_.H("design:type",Object)],Zy.prototype,"primaryButton",void 0);
_.V([_.n({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],Zy.prototype,"elementsPerRow",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Zy.prototype,"isDarkTheme",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],Zy.prototype,"titleSize",void 0);_.V([_.n(),_.H("design:type",Number)],Zy.prototype,"videoMetadataColor",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],Zy.prototype,"miniMode",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.H("design:type",Boolean)],Zy.prototype,"isFirstFeedItem",void 0);_.V([_.n({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],Zy.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.H("design:type",Boolean)],Zy.prototype,"hasOverflowButton",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zy.prototype,"dataChanged",null);_.V([_.ev("elementsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zy.prototype,"elementsPerRowChanged",null);_.V([_.y_({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],Zy);
_.Y(Zy,"ytd-brand-video-singleton-renderer",function(){if(lHx!==void 0)return lHx;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return lHx=A},{mode:_.sQ("kevlar_poly_si_batch_j070")?1:2});var NkQ;var u3i=_.I(function(A){var t=A.data;return _.u(_.YA,{data:function(){return t().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(t().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var f=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":f=88;break a;default:f=88}return f},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return t().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"dn"),PLW=_.I(function(A){var t=A.metadataRow;
var f=A.delimiter;return _.u(_.xk,{each:function(){return t().textParts||[]},
keyBy:"INDEX"},function(X,Q){return _.u(_.Tw,null,_.u(_.zL,{text:X,noWrap:!0,userInput:!0}),_.u(zNH,{delimiter:f,max:function(){return t().textParts.length},
index:Q}))})},"en"),zNH=_.I(function(A){var t=A.delimiter;
var f=A.max;var X=A.index;return _.u(_.P,{cond:function(){return(t==null?void 0:t())&&f()-1>X()},
then:function(){return _.u("span",null,t)}})},"fn"),Tki=_.I(function(A){var t=A.data;
A={};return _.u("yt-profile-page-header-information-view-model",{class:_.Ao("profilePageHeaderInformationViewModelHost",(A.profilePageHeaderInformationViewModelMobile=!1,A))},_.u(_.P,{cond:function(){return t().onTap},
then:function(){return _.u(_.bc,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.bP(t().onTap)}},_.u(_.P1,{data:function(){return t().thumbnail}},{profilePageHeaderThumbnailViewModel:u3i}))},
else:function(){return _.u("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.u(_.P1,{data:function(){return t().thumbnail}},{profilePageHeaderThumbnailViewModel:u3i}))}}),_.u("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.u(_.P,{cond:function(){return t().onTap},
then:function(){return _.u(_.P1,{data:function(){return t().title}},{profilePageHeaderTitleViewModel:function(f){var X=f.data;
return _.u(_.bc,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.bP(X().onTap)}},_.u(_.zL,{text:function(){return X().title}}))}})},
else:function(){return _.u(_.P1,{data:function(){return t().title}},{profilePageHeaderTitleViewModel:function(f){var X=f.data;
return _.u(_.zL,{text:function(){return X().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.u(_.P1,{data:function(){return t().metadata}},{profilePageHeaderMetadataViewModel:function(f){var X=f.data;
return _.u(_.P,{cond:function(){return X().metadataRows},
then:function(Q){return _.u("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.u(_.xk,{each:Q,keyBy:"INDEX"},function(q,e){return _.u(_.Tw,null,_.u(PLW,{metadataRow:q,delimiter:" \u2022 "}),_.u(zNH,{delimiter:" \u2022 ",max:function(){return Q().length},
index:e}))}))}})}})))},"gn");
Tki.idomCompat=!0;_.Hn(Tki,"yt-profile-page-header-information-view-model",{props:{data:_.PS}});var oL=function(){return _.F.apply(this,arguments)||this};
_.R(oL,_.F);oL.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],oL.prototype,"data",void 0);_.V([_.y_({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],oL);
_.Y(oL,"ytd-effect-pivot-header-view-model",function(){if(NkQ!==void 0)return NkQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return NkQ=
A},{mode:1});var iOF;var d5=function(){return _.F.apply(this,arguments)||this};
_.R(d5,_.F);d5.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],d5.prototype,"data",void 0);_.V([_.y_({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],d5);
_.Y(d5,"ytd-source-pivot-header-renderer",function(){if(iOF!==void 0)return iOF;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return iOF=A},{mode:1});_.Hn(_.jC8,"yt-card-view-model",{props:{data:_.PS,className:_.PS,isSelected:_.PS}});var oli=_.xub.talkToRecsStateSelector;_.Hn(_.I(function(A){var t=function(){return _.C(A.data().flowRoot,HbQ)};
_.oh(function(){var f=t(),X=function(){},Q=function(){};
if(f){var q,e,G,N=((G=_.C((q=t())==null?void 0:(e=q.steps)==null?void 0:e[0],_.KX))==null?void 0:G.stepId)||"";Yib(f,N);X=Zbx(f);Q=dyy(f)}_.dD(function(){var z=t();z&&_.$I().dispatch(_.Ta("flowStateEntity",z.flowStateEntityKey));X();X=function(){};
Q();Q=function(){};
_.og(_.ITw())})});
return _.u("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.u(_.IS,{contentId:function(){return A.data().contentId}},function(){return _.u("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.u(_.P,{cond:t,
then:function(f){return _.u(_.JL2,{data:f})}}))}))},"hn"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.PS}});_.Hn(_.I(function(){return _.u("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.u("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.u("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.u(_.oFA,null)),_.u(_.stK,{data:{rows:1},isExploreHub:!0}))},"jn"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Hn(_.I(function(A){var t=A.data;var f=A.standardUnitMinWidth;A=_.U((0,_.txC)(t));var X=A.next().value,Q=A.next().value,q=function(){var G,N=(G=X())==null?void 0:G.contents;return N==null||N.length===0},e=function(){Q(Object.assign({},X(),{contents:[]}))};
return _.u("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.ZY(_.OI({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var G=_.C(t().chipsShelf,aFH);if(G!=null&&G!=null&&G.autoselectChipOnVisible){var N,z,T=_.C(G==null?void 0:(N=G.contents)==null?void 0:N[(z=G.autoselectedChipIndex)!=null?z:0],_.PX);T&&T.tapCommand&&_.LI(T.tapCommand)}}}))},_.u(_.IS,{contentId:function(){return t().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.u("div",null,_.u("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.u(_.P1,{data:function(){return t().header}},{sectionHeaderViewModel:function(G){return _.u(_.SB,{data:G.data,
disableHorizontalPadding:!0})}})),_.u("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.u(_.P1,{data:function(){return t().chipsShelf}},{chipsShelfViewModel:function(G){return _.u(_.S9,{data:G.data,
callback:e,selectionBehavior:1})}})),_.u("div",null,_.u(_.P,{cond:q,
then:function(){return _.u("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.u(_.stK,{data:{rows:1},isExploreHub:!0}))}}),_.u(_.P1,{data:function(){var G;
return(G=X())==null?void 0:G.contents}},{richShelfRenderer:function(G){return _.u(_.Nqp,{data:G.data,
isInnerShelf:!0,standardUnitMinWidth:f})}})))}))},"kn"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.PS,
standardUnitMinWidth:_.PS}});var Su=function(){return _.F.apply(this,arguments)||this};
_.R(Su,_.F);
Su.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",eduCardViewModel:"yt-edu-card-view-model",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}}};
Su.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.V([_.b(_.qT),_.H("design:type",Object)],Su.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ba),_.H("design:type",Object)],Su.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Su.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Number)],Su.prototype,"standardUnitMinWidth",void 0);_.V([_.y_({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Su);
_.Y(Su,"ytd-rich-section-renderer",function(){if(eNb!==void 0)return eNb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return eNb=A},{mode:_.sQ("kevlar_poly_si_batch_j029")?
1:2});_.Hn(_.Ofw,"yt-profile-identity-info-view-model",{props:{data:_.PS,hideDivider:_.PS,isChannelInfoCard:_.PS}});_.Hn(_.Gz8,"yt-page-header-view-model",{props:{data:_.PS,noPadding:_.PS,enableBanner:_.PS,cinematicContainerTopbarOffset:_.PS,allowCinematicContainerOverflow:_.PS,displayAsSidebar:_.PS,displayAsPanel:_.PS,alwaysUseMediumTextDescription:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=function(){var Q;return(Q=t().numColumns)!=null?Q:2},X=function(){return f()>1?3:2};
A={};return _.u("ytd-rich-grid-group",{class:_.Ao("ytdRichGridGroupHost",(A.ytdRichGridGroupHostFirstColumn=function(){return t().colIndex===0},A)),
style:_.U7({"--ytd-rich-grid-group-num-columns":f,"--ytd-rich-grid-items-per-group":X})},_.u("div",{class:"ytdRichGridGroupContents"},_.u(_.P1,{data:function(){var Q;return(Q=t().contents)==null?void 0:Q.slice(0,X())}},{richItemRenderer:function(Q){return _.u(_.G8p,{data:Q.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ln"),"ytd-rich-grid-group",{props:{data:_.PS}});var $s=function(){var A=_.F.apply(this,arguments)||this;A.resizeOnObserverInit=!1;A.isInlinePreviewDisabled=_.M("web_disable_inline_preview");A.disableStickyFilterBar=!1;A.transparentBackgroundChipsBar=!1;A.hideChipsBar=!1;A.collapseFeedCustomizationForm=!1;A.isWatchDefaultLayout=!0;A.continuationShowButton=!1;A.rowReducedHorizontalMargin=!1;A.useCompactList=!1;A.manualDownloadsPresent=!1;A.smartDownloadsPresent=!1;A.isOnline=!1;A.shouldRenderDownloadsBanner=!1;A.shouldRenderDownloadsBannerUpsell=
!1;A.hasOptedIntoSmartDownloads=!1;A.elementsPerRow=4;A.typographyBump=!1;A.slimItemsPerRow=1;A.pageLoadingFromNavigation=!1;A.resizeObserver=null;A.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"};A.rendererToTagNameMap=
new Map(Object.entries(A.contentMapping()).map(function(t){var f=_.U(t);t=f.next().value;f=f.next().value;return[t,f.component]}));
A.insertedContent=new Map;return A};
_.R($s,_.F);_.J=$s.prototype;_.J.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var A=_.U(_.sF(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),t=A.next();!t.done;t=A.next())t.value.useCompactList=this.useCompactList};
_.J.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var A=_.U(_.sF(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),t=A.next();!t.done;t=A.next())t=t.value,t.sizing=this.sizing,t.typographyBump=this.typographyBump};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.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]]"}}}};
_.J.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]",collapseFeedCustomizationForm:"[[collapseFeedCustomizationForm]]"}},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}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.JY(this,this.onPageChange));document.addEventListener("scroll",_.JY(this,this.onScroll));document.addEventListener("yt-feed-customization-scroll-up",_.JY(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22452_throttledOnResize=new _.qI(this.resizeObserved,_.cx("rich_grid_resize_delay_ms",50),this)};
_.J.detached=function(){var A;(A=this.resizeObserver)==null||A.disconnect();document.removeEventListener("yt-page-type-changed",_.JY(this,this.onPageChange));document.removeEventListener("scroll",_.JY(this,this.onScroll));document.removeEventListener("yt-feed-customization-scroll-up",_.JY(this,this.onFeedCustomizationScrollUp))};
_.J.insertRichSection=function(A){var t=A.richItemTargetId;A=A.richSectionRendererToInsert;t&&A&&(this.insertedContent.set(t,{content:A,timestamp:Date.now()}),this.reflowContent())};
_.J.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeIsInlinePreviewEnabled=function(A,t,f){return _.M("web_disable_inline_preview")?!1:!f&&_.RZ8({miniplayerIsActive:A,miniplayerPlaybackState:t})};
_.J.computeSizing=function(){var A=_.FXq(this.data);if(A||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return A?this.useCompactList?"COMPACT":A:this.miniMode?"COMPACT":"STANDARD"};
_.J.updateItemMinAndMaxWidth=function(){var A=_.cx("rich_grid_max_item_width",500);A>0&&_.Q_(this.hostElement,{"--ytd-rich-grid-item-max-width":A+"px"});var t;A=this.getRichItemMinWidth((t=this.hostElement)==null?void 0:t.clientWidth);A>0&&_.Q_(this.hostElement,{"--ytd-rich-grid-item-min-width":A+"px"})};
_.J.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.J.resizeObserved=function(){_.r2(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.J.onPageChange=function(){var A=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.r2(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.a6.addJob(function(){A.pageLoadingFromNavigation=!1;A.setMasthead();A.maybeSetBigYoodle();A.forceRefreshAndLog();A.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.J.dataChanged=function(){var A=this;_.r2(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.us(this,function(){A.updateRichItemGridPositions();A.contentsElement&&_.Q_(A.hostElement,{"--ytd-rich-grid-content-offset-top":A.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.J.initResizeObserver=function(){var A=this;if(window.ResizeObserver){var t;(t=this.resizeObserver)==null||t.disconnect();var f=!1;this.resizeObserver=new ResizeObserver(function(){if(f){var X;(X=A.resizeObserver)==null||X.disconnect();var Q;(Q=A.JSC$22452_throttledOnResize)==null||Q.fire();requestAnimationFrame(function(){var e;(e=A.JSC$22452_throttledOnResize)==null||e.fire();A.initResizeObserver()})}else if(f=!0,A.resizeOnObserverInit){var q;
(q=A.JSC$22452_throttledOnResize)==null||q.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.J.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.r2(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.updateElementsPerRow=function(){_.r2(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.r0({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.r0({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.J.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.J.onRichShelfRendererCollapse=function(A){if(this.shownItems){var t=A.detail;A=this.shownItems.findIndex(function(X){var Q,q;return((q=_.C(X==null?void 0:(Q=X.richSectionRenderer)==null?void 0:Q.content,_.WqK))==null?void 0:q.trackingParams)===t});
var f=A+1;A<0||f>=this.contentsElement.children.length||!this.shownItems[f].richItemRenderer||this.contentsElement.children[f].scrollIntoView({behavior:"smooth",block:"start"})}};
_.J.onSoftReloadPage=function(){this.scrollUpToTop()};
_.J.handleRerenderDownloadsData=function(){_.M("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.J.handlePlaylistRemoveVideosAction=function(A){var t;if(((t=_.C(A,_.SUp))==null?0:t.setVideoIds)&&this.data&&this.data.contents){A=_.C(A,_.SUp).setVideoIds;for(t=this.data.contents.length-1;t>=0;){var f=_.C(this.data.contents[t],_.aX);(f=f&&_.C(f.content,_.U_))&&f.setVideoId&&A.includes(f.setVideoId)&&this.splice("data.contents",t,1);t--}this.updateIndices()}};
_.J.updateIndices=function(){if(this.data&&this.data.contents)for(var A=0;A<this.data.contents.length;A++)this.set("data.contents."+A+".richItemRenderer.index",_.oC(String(A+1)))};
_.J.hasTopRowInlinePlayableVideoWithEndorsement=function(A){var t;return!((t=A.slice(0,this.getItemsPerRow()))==null||!t.some(function(f){var X;f=_.C(f==null?void 0:(X=f.richItemRenderer)==null?void 0:X.content,_.NN);var Q;return(f==null?void 0:f.inlinePlaybackEndpoint)&&(f==null?void 0:(Q=f.thumbnailOverlays)==null?void 0:Q.some(function(q){return q.thumbnailOverlayEndorsementRenderer}))}))};
_.J.refreshGridLayoutNew=function(A,t,f,X){var Q=X.postsPerRow;var q=X.slimItemsPerRow;var e=X.gameCardsPerRow;X=X.miniGameCardsPerRow;var G;if((G=this.data)==null||!G.contents||!this.containerWidth)return!1;var N;if((N=this.data.responsiveContainerConfiguration)==null?0:N.responsiveSize){var z=_.TYb(this.data.responsiveContainerConfiguration,this.containerWidth,2),T;G=_.nW(Object.assign({},z,{standardUnitMinWidth:(T=this.data)==null?void 0:T.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&z.isCompactList)}else G=_.nW({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(z=this.data)==null?void 0:z.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=G.typographyBump;T=!1;if(A||this.elementsPerRow!==G.numItems||this.postsPerRow!==Q||this.slimItemsPerRow!==q||this.gameCardsPerRow!==
e||this.miniGameCardsPerRow!==X||this.gutter!==G.gutter)T=this.elementsPerRow!==G.numItems,this.elementsPerRow=G.numItems,this.postsPerRow=Q,this.slimItemsPerRow=q,this.gameCardsPerRow=e,this.miniGameCardsPerRow=X,this.gutter=G.gutter,this.itemWidth=G.itemWidth,this.reflowContent(t),_.Q_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":G.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(f);this.ytdReduxBehavior.dispatch(_.r0({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:G.maxContainerWidth}));return T};
_.J.refreshGridLayout=function(A,t){var f,X=(f=this.hostElement)==null?void 0:f.clientWidth;this.containerWidth=this.adjustRichGridWidth(X,!0);var Q;if((Q=this.data)==null||!Q.contents||!this.containerWidth)return A&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(A=!0,this.pendingForceReflow=!1);f=this.getRichItemMinWidth(X);var q=this.isShortsPanel?146:194,e=this.getMiniGameCardMinWidth(),G=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.cx("rich_grid_default_max_items_per_row",
6);X=f=this.calcElementsPerRow(f,G);(Q=f<=3&&this.miniModeAllowed())&&(f=this.calcElementsPerRow(240,4));var N=this.calcMaxSlimElementsPerRow(f,G,this.isDefaultGrid);G=this.calcElementsPerRow(q,N);var z=this.calcElementsPerRow(this.isCompactGrid?q:154,N);q=this.calcElementsPerRow(this.isCompactGrid?q:e,N);e=!1;if(this.sizing)return this.refreshGridLayoutNew(A,t,Q,{postsPerRow:X,slimItemsPerRow:G,gameCardsPerRow:z,miniGameCardsPerRow:q});if(A||this.elementsPerRow!==f||this.postsPerRow!==X||this.slimItemsPerRow!==
G||this.gameCardsPerRow!==z||this.miniGameCardsPerRow!==q)e=this.elementsPerRow!==f,this.elementsPerRow=f,this.postsPerRow=X,this.slimItemsPerRow=G,this.gameCardsPerRow=z,this.miniGameCardsPerRow=q,this.reflowContent(t),this.updateElementsPerRow(),_.Q_(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)&&_.Q_(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Q);_.r2(this.hostElement,"yt-rich-grid-layout-refreshed");return e};
_.J.getRichItemMinWidth=function(A){var t=_.cx("rich_grid_min_item_width",310);if(!_.M("kevlar_disable_min_width_override")){var f,X;t=(X=(f=this.data)==null?void 0:f.minItemWidth)!=null?X:t}return t+_.vRx(A)};
_.J.calcMaxSlimElementsPerRow=function(A,t,f){return(f===void 0?0:f)?A===1?2:A%2===0?A/2*3:A+2:t*2};
_.J.adjustRichGridWidth=function(A,t){var f=_.M("disable_rich_grid_guide_compensation");if(!this.isWatch&&!f){f=_.Px().resolve(_.z7(_.lC));var X=f==null?void 0:f.guideElement;if(!(!f||f.getData()||X!=null&&X.opened||f.getMiniGuideVisible()))if(f.canFitPersistentGuide(A)&&f.getGuideExpandsAutomatically()){var Q,q,e=Number((Q=window.getComputedStyle(this.hostElement))==null?void 0:(q=Q.getPropertyValue("--app-drawer-width"))==null?void 0:q.replace("px",""));A-=e||0}else if(f.canFitMiniGuide(A)){var G;
Q=Number((e=window.getComputedStyle(this.hostElement))==null?void 0:(G=e.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:G.replace("px",""));A-=Q||0}}A>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(A-=t?32:48));return A};
_.J.calcElementsPerRow=function(A,t){var f=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),X=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((f+X)/(A+X))||1,t)};
_.J.reflowContent=function(A){var t=this;if(!this.isReflowing){this.isReflowing=!0;var f,X,Q=!!((f=this.data)==null?0:(X=f.contents)==null?0:X.some(function(G){return _.C(G,_.H$)}));
f=this.getItemsPerRow();var q;X=(q=this.data)==null?void 0:q.reflowOptions;A&&(_.Wt("rgr_s"),_.us(this,function(){_.Wt("rgr_nrf")}));
A={};(q=_.sF(this.hostElement).querySelector("#contents"))&&(A={contentElement:q,rendererToTagNameMap:this.rendererToTagNameMap});q=(q=this.data.contents)?q.slice():[];Q=IFi(q,f,Q,X,this.getRichGridStyle(),A,this.insertedContent);var e=Q.orderedContent;if(Q=Q.pinnedContentNotShownTargetIds)for(Q=_.U(Q),f=Q.next();!f.done;f=Q.next())this.insertedContent.delete(f.value);Q=function(){t.shownItems=e;t.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(e),_.us(this,Q)):Q()}};
_.J.getFirstRowItems=function(A){for(var t=[],f=0;f<A.length;f++){var X=void 0,Q=void 0,q=void 0,e=void 0,G=void 0,N=void 0;if(((X=A[f])==null?void 0:(Q=X.richItemRenderer)==null?void 0:Q.rowIndex)===0||((q=A[f])==null?void 0:(e=q.richGroupRenderer)==null?void 0:e.rowIndex)===0||((G=A[f])==null?void 0:(N=G.richSectionRenderer)==null?void 0:N.rowIndex)===0)t.push(A[f]);else break}return t};
_.J.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.J.resetInsertedContentIfNeeded=function(){(_.M("web_explore_hub_on_hover")||_.M("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.J.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.J.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.J.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.J.terminateVideoPreview=function(){_.r2(this.hostElement,"yt-terminate-video-preview-action")};
_.J.updateRichItemGridPositions=function(){var A={gridData:{gridColumnCount:this.elementsPerRow}},t;((t=this.data)==null?0:t.trackingParams)&&(t=_.Ws())&&_.S5(t,_.zV(this.data.trackingParams),A);_.r2(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.miniModeAllowed=function(){return this.isChannelPage};
_.J.getMiniGameCardMinWidth=function(){return 154};
_.J.updateMiniMode=function(A){this.miniMode=this.miniModeAllowed()&&A;this.ytdReduxBehavior.dispatch(_.r0({type:"SET_RICH_GRID_MINI_MODE",payload:A}))};
_.J.isCurrentPage=function(){return location.pathname===this.pagePath};
_.J.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var A=_.Px().resolve(_.HO).getCurrentPage();A&&A.setScrollTop(0)}};
_.J.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.J.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.J.maybeSetBigYoodle=function(){var A,t=(A=this.data)==null?void 0:A.bigYoodle;this.bigYoodleData!==t&&(this.bigYoodleData=t)};
_.J.setMasthead=function(){var A;((A=this.data)==null?0:A.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.J.getRichGridStyle=function(){var A,t;return(t=(A=this.data)==null?void 0:A.style)!=null?t:"RICH_GRID_STYLE_UNKNOWN"};
_.J.onIsShortsGridChange=function(){var A=this.ytdReduxBehavior,t=A.dispatch,f=this.getRichGridStyle();t.call(A,_.r0({type:"SET_RICH_GRID_STYLE",payload:f}))};
_.J.onScroll=function(){this.collapseFeedCustomizationForm=window.scrollY>20};
_.J.onFeedCustomizationScrollUp=function(){this.collapseFeedCustomizationForm=!1;this.scrollUpToTop()};
_.PV.Object.defineProperties($s.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var A=_.Px().resolve(_.HO).getCurrentPage(),t,f,X;return(((t=this.data)==null?void 0:t.targetId)==="browse-feedFEsfv_audio_pivot"||_.M("web_enable_channel_pivot_panel")&&((f=this.data)==null?void 0:f.targetId)==="browse-feedFEsfv_channel_pivot"||_.M("web_enable_effect_pivot_panel")&&((X=this.data)==null?void 0:X.targetId)==="browse-feedFEsfv_effect_pivot")&&(A==null?void 0:A.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.M("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 A;return!((A=this.data)==null?0:A.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var A;return((A=_.Px().resolve(_.HO).getCurrentPage())==null?void 0:A.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var A;return((A=_.Px().resolve(_.HO).getCurrentPage())==null?void 0:A.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"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.data)==null?0:A.enableContentSpecificAspectRatio)||((t=this.data)==null?0:(f=t.responsiveContainerConfiguration)==null?0:f.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.cx("web_continuation_handler_margin",0):0}}});
$s.prototype.onIsShortsGridChange=$s.prototype.onIsShortsGridChange;$s.prototype.onReloadContinuationFinish=$s.prototype.onReloadContinuationFinish;$s.prototype.reflowContent=$s.prototype.reflowContent;$s.prototype.handleRerenderDownloadsData=$s.prototype.handleRerenderDownloadsData;$s.prototype.onRichShelfRendererCollapse=$s.prototype.onRichShelfRendererCollapse;$s.prototype.onRequestElementsPerRow=$s.prototype.onRequestElementsPerRow;$s.prototype.contentLengthChanged=$s.prototype.contentLengthChanged;
$s.prototype.dataChanged=$s.prototype.dataChanged;$s.prototype.onSizingChange=$s.prototype.onSizingChange;$s.prototype.onUseCompactListChange=$s.prototype.onUseCompactListChange;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.K9),_.H("design:type",Object)],$s.prototype,"ironResizableBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],$s.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.Ba),_.H("design:type",Object)],$s.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],$s.prototype,"componentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],$s.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$s.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],$s.prototype,"miniMode",void 0);_.V([_.n({value:[]}),_.H("design:type",Array)],$s.prototype,"shownItems",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],$s.prototype,"isReflowing",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],$s.prototype,"isFilteredFeed",void 0);_.V([_.n({selector:_.vaq}),_.H("design:type",Boolean)],$s.prototype,"guideIsExpanded",void 0);
_.V([_.n({selectorArgs:["entitySelectorType"],selector:function(A,t){if(_.M("kevlar_modern_downloads_page")&&t&&t!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(t){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":t=A.entities;var f=_.CZ(t),X=_.hR(t),Q=_.ams(A),q=_.Hxs(A),e=_.KJu(A),G=_.cag(t),N=_.T$(f),z=_.RC(t);return _.etq(f,X,G,_.hg5(t),Q,q,N,z,e,_.wST(A),_.vE(A));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return A=_.CZ(A.entities),_.lR0(A);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return A=
_.Txg(A.entities),_.NYq(A);default:_.K4(new _.xj("Error: entitySelectorType defined but not matched in selector.",A,t))}}}),
_.H("design:type",Object)],$s.prototype,"entityDrivenRichGridData",void 0);_.V([_.n(),_.H("design:type",Object)],$s.prototype,"resizeOnObserverInit",void 0);_.V([_.n(),_.H("design:type",Object)],$s.prototype,"bigYoodleData",void 0);_.V([_.n(),_.H("design:type",Object)],$s.prototype,"mastheadData",void 0);_.V([_.n(),_.H("design:type",Boolean)],$s.prototype,"isInlinePreviewDisabled",void 0);_.V([_.n(),_.H("design:type",Object)],$s.prototype,"disableStickyFilterBar",void 0);
_.V([_.n(),_.H("design:type",Object)],$s.prototype,"transparentBackgroundChipsBar",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$s.prototype,"hideChipsBar",void 0);_.V([_.n(),_.H("design:type",Object)],$s.prototype,"collapseFeedCustomizationForm",void 0);_.V([_.n(),_.H("design:type",Object)],$s.prototype,"isWatchDefaultLayout",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$s.prototype,"continuationShowButton",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$s.prototype,"rowReducedHorizontalMargin",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$s.prototype,"useCompactList",void 0);_.V([_.n({selector:function(A){return _.hR(A.entities).length>0}}),
_.H("design:type",Object)],$s.prototype,"manualDownloadsPresent",void 0);_.V([_.n({selector:function(A){return _.CZ(A.entities).length>0}}),
_.H("design:type",Object)],$s.prototype,"smartDownloadsPresent",void 0);_.V([_.n({selector:_.vE}),_.H("design:type",Object)],$s.prototype,"isOnline",void 0);_.V([_.n({selector:_.Hxs}),_.H("design:type",Object)],$s.prototype,"shouldRenderDownloadsBanner",void 0);_.V([_.n({selector:_.wST}),_.H("design:type",Object)],$s.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.V([_.n({selector:_.ams}),_.H("design:type",Object)],$s.prototype,"hasOptedIntoSmartDownloads",void 0);
_.V([_.ev("useCompactList"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"onUseCompactListChange",null);_.V([_.ev("sizing","typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"onSizingChange",null);_.V([_.n({selector:_.FJx}),_.H("design:type",Number)],$s.prototype,"miniplayerPlaybackState",void 0);_.V([_.n({selector:_.WE}),_.H("design:type",Boolean)],$s.prototype,"miniplayerIsActive",void 0);
_.V([_.n({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.H("design:type",Boolean)],$s.prototype,"isInlinePreviewEnabled",void 0);_.V([_.n({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.H("design:type",String)],$s.prototype,"sizing",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$s.prototype,"elementsPerRow",void 0);
_.V([_.n(),_.H("design:type",Object)],$s.prototype,"typographyBump",void 0);_.V([_.n(),_.H("design:type",Number)],$s.prototype,"itemWidth",void 0);_.V([_.lo("#header"),_.H("design:type",HTMLElement)],$s.prototype,"headerElement",void 0);_.V([_.lo("#contents"),_.H("design:type",HTMLElement)],$s.prototype,"contentsElement",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"dataChanged",null);
_.V([_.PU("data.contents.length"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"contentLengthChanged",null);_.V([_.UQ("yt-request-elements-per-row"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"onRequestElementsPerRow",null);
_.V([_.UQ("yt-rich-shelf-renderer-collapse"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$s.prototype,"onRichShelfRendererCollapse",null);_.V([_.PU("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"handleRerenderDownloadsData",null);
_.V([_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],$s.prototype,"entitySelectorType",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"isSub",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"isWatch",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"isShortsPanel",null);_.V([_.n({reflectToAttribute:!0}),_.y("isWatch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"reducedTopMargin",null);_.V([_.n({reflectToAttribute:!0}),_.y("data","isWatch","isWatchDefaultLayout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"noTopMargin",null);
_.V([_.n({reflectToAttribute:!0}),_.y("isInlinePreviewEnabled","shownItems"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"topRowEndorsement",null);_.V([_.y("data.header"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"hideHeader",null);_.V([_.UQ("yt-rich-grid-reflow"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean]),_.H("design:returntype")],$s.prototype,"reflowContent",null);
_.V([_.UQ("yt-reload-continuation-finish"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"onReloadContinuationFinish",null);_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"isSlimGrid",null);_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"isShortsGrid",null);
_.V([_.y("data","isSlimGrid","isShortsGrid"),_.n(),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"noRichItemGutterMargins",null);_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"isShortsGridSlim",null);_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"isCompactGrid",null);
_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"isDefaultGrid",null);_.V([_.y("data.targetId"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"hideChipsBarOnWatch",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$s.prototype,"onIsShortsGridChange",null);
_.V([_.y("data.enableContentSpecificAspectRatio"),_.n(),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$s.prototype,"force16By9ThumbnailAspectRatio",null);_.V([_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],$s.prototype,"continuationTriggerOffset",null);_.V([_.y_({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],$s);
_.Y($s,"ytd-rich-grid-renderer",function(){if(Q9H!==void 0)return Q9H;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Q9H=A},{mode:2});var OOb=_.I(function(A){return _.u("yt-feedback-prompt-view-model",{class:_.Ao("ytFeedbackPromptViewModelHost",A.className)},_.u(_.P,{cond:function(){return A.data().text},
then:function(t){return _.u(_.zL,{text:t,className:"ytFeedbackPromptViewModelPrompt"})}}),_.u(_.P1,{data:function(){return A.data().likeButton}},{likeButtonViewModel:function(t){return _.u(_.eK,{data:t.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.u(_.P1,{data:function(){return A.data().dislikeButton}},{dislikeButtonViewModel:_.U3}))},"mn");var ctu=_.I(function(A){var t=_.U((0,_.Qx7)(A.data)).next().value,f=function(){var X,Q;return(Q=(X=t().contents)==null?void 0:X.length)!=null?Q:0};
return _.u("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return A.data().targetId||""},
"aria-busy":function(){var X,Q;return(Q=(X=t().contents)==null?void 0:X.some(function(q){return!!q.chatLoadingViewModel}))!=null?Q:!1}},_.u(_.P1,{data:function(){return A.data().header}},{chipBarViewModel:_.qeb,
sectionHeaderViewModel:_.SB}),_.u(_.P1,{data:function(){return t().contents}},{accordionViewModel:_.$Dw,
alertBannerViewModel:_.u2T,chatLoadingViewModel:function(X,Q){return _.u(_.gFc,{data:X.data,containerHeight:A.containerHeight,isLastItem:function(){return Q()===f()-1}})},
chatUserTurnViewModel:function(X,Q){return _.u(_.wU3,{data:X.data,containerHeight:A.containerHeight,isLastItem:function(){return Q()===f()-1}})},
feedbackPromptViewModel:OOb,gridShelfViewModel:function(X){return _.u(_.N5,{data:X.data,shouldUseOwnContainerSize:!0,marginSettings:A.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.j3E,linearLayoutViewModel:_.Pc,lockupViewModel:function(X){return _.u(_.VK,{data:X.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:A.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.SB,videoOverviewViewModel:_.Ab3,youChatItemViewModel:function(X,Q){return _.u(_.KIc,{data:X.data,pending:!1,containerHeight:A.containerHeight,isLastItem:function(){return Q()===f()-1}})}}))},"nn");_.Hn(_.I(function(A){var t=_.U((0,_.Qx7)(A.data)).next().value,f=_.U(_.P$()),X=f.next().value;f=f.next().value;var Q=_.ZY(f);f=_.U(_.hZ(void 0,void 0,"fqbUqd"));var q=f.next().value,e=f.next().value,G=function(){var N;return _.C((N=A.data().sectionListLayoutConfiguration)==null?void 0:N.layoutConfiguration,KQl)};
_.oh(function(){var N,z=(N=Q.value)==null?void 0:N.clientWidth;N=G()?_.stu(z,G()):void 0;e(N)});
f={};return _.u("yt-section-list-renderer",{class:_.Ao("ytSectionListRendererHost",A.className,(f.ytSectionListRendererHostOverscrollContain=function(){var N;return(N=A.overscrollContain)==null?void 0:N.call(A)},f)),
el:Q,"data-target-id":function(){return A.data().targetId||""}},_.u(_.P1,{data:function(){return t().contents}},{itemSectionRenderer:function(N){return _.u(ctu,{data:N.data,
containerLayoutConfig:q,marginSettings:A.marginSettings,containerHeight:function(){return X.height()}})}}))},"on"),"yt-section-list-renderer",{props:{data:_.PS,
className:_.dt,marginSettings:_.PS,overscrollContain:_.PS}});var Bki;var MOy;var CLy=function(){return _.F.apply(this,arguments)||this};
_.R(CLy,_.F);_.V([_.n(),_.H("design:type",Object)],CLy.prototype,"data",void 0);_.V([_.WU({is:"yt-alert-renderer",disableElementRegistration:!0})],CLy);
_.Y(CLy,"yt-alert-renderer",function(){if(MOy===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Bki===void 0&&(Bki=document.createElement("template"));var X=Bki;f.call(t,X.content.cloneNode(!0),A.content.firstChild);MOy=A}A=MOy;return A},{mode:2});
}catch(e){_._DumpException(e)}
try{
var nO3;nO3=function(A,t,f,X){f||(A?X&&(X.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||X.WINDOW_SIZE_CHANGED&&(t.width!==window.innerWidth||t.height!==window.innerHeight)||X.SAFARI_ABORTED_BY_NEW_TRANSITION&&A instanceof DOMException&&A.name==="AbortError"&&A.message.includes("Old view transition aborted by new view transition"))||_.HQ(A):_.HQ(Error("xj")))};
_.Dv_=function(A,t){t=t===void 0?{}:t;var f,X,Q,q,e,G,N,z,T,O,c,B,h;return _.l(function(W){switch(W.nextAddress){case 1:f=t;X=f.shouldWrap===void 0?!0:f.shouldWrap;Q=f.skipTransitionTimeoutMs===void 0?300:f.skipTransitionTimeoutMs;q=f.beforeTransition;e=f.afterTransition;if(!X||!document.startViewTransition||document.visibilityState==="hidden")return W.return(A());G={width:window.innerWidth,height:window.innerHeight};N=!1;(z=q)==null||z();_.ht(W,2);T=document.startViewTransition(A);O=setTimeout(function(){T.skipTransition();
N=!0},Q);
return W.yield(T.ready,4);case 4:return clearTimeout(O),W.yield(T.finished,5);case 5:clearTimeout(O);(c=e)==null||c();_.qq(W,0);break;case 2:B=_.vC(W),(h=e)==null||h(),nO3(B,G,N,t.ignoredErrors),_.LO(W)}})};
_.Ft8=function(A,t){var f=_.lHb(t);f!=="javascript:"&&f!=="data:"&&A.setAttribute("href",t)};
_.Ku=function(){for(var A=Array(36),t=0,f,X=0;X<36;X++)X==8||X==13||X==18||X==23?A[X]="-":X==14?A[X]="4":(t<=2&&(t=33554432+Math.random()*16777216|0),f=t&15,t>>=4,A[X]=_.dF5[X==19?f&3|8:f]);return A.join("")};
_.I2A=function(A,t,f){A.persistentPanelContainerMap.set(f,t)};/*

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 xvj=_.dS(['<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>']),
jO_=_.SQ7(xvj);jO_.setAttribute("style","display: none;");document.head.appendChild(jO_.content);_.gl=_.Pnx(function(A){var t=_.yT("DIV");A&&(t.className=A);t.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";A=_.yT("DIV");_.dwS(A,"200px","200px");t.appendChild(A);document.body.appendChild(t);A=t.offsetWidth-t.clientWidth;_.vf(t);return A});var YFj;var VIh;var wl=function(){var A=_.F.apply(this,arguments)||this;A.icon=null;return A};
_.R(wl,_.F);wl.prototype.dismiss=function(){_.s9(this.hostElement,"yt-live-chat-error-message-dismiss")};
wl.prototype.computeIcon=function(A){return A&&A.iconType?"yt-icons:"+A.iconType.toLowerCase():"yt-icons:close"};
_.V([_.n(),_.H("design:type",Object)],wl.prototype,"data",void 0);_.V([_.n({computed:"computeIcon(data.icon)"}),_.H("design:type",Object)],wl.prototype,"icon",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],wl);
_.Y(wl,"yt-live-chat-error-message-renderer",function(){if(VIh===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;YFj===void 0&&(YFj=document.createElement("template"));var X=YFj;f.call(t,X.content.cloneNode(!0),A.content.firstChild);VIh=A}A=VIh;return A},{mode:0});
}catch(e){_._DumpException(e)}
try{
var Ikl,xpi,jhj,Y8l,dpb,Hai,akW,Khl,gkj,w5Q,shu,kwi,r8b,Lq,Aeb,tJQ,fUH,Xxb,Qju,q0H,JeF,UGf,eTx,lUW,NiQ,u_b,zTb,P2b,Til,iku,Ok3,ceH,BiW,MJy,C2F,hTQ,RTx,mGu,yer,Lyr,Eju,njF,DGQ,Fyx,bkr,Wyb,jji,Y03,VJy,ZkH,oji,dGb,S0i,$GF,IUi;Ikl=function(A,t){return _.q_(A.entities,"timedMarkersListSyncEntity",t)};
xpi=function(A,t){return _.q_(A.entities,"liveReactionsDataEntity",t)};
jhj=function(A,t){A=_.q_(A.entities,"booleanEntity",t);return!(!A||!A.value)};
Y8l=function(A,t){var f=_.Ws();f&&A&&_.x7(f,_.zV(A),t)};
_.V2i=function(A){return A.watch.isWatchActive};
_.ZaW=function(A){return _.bm(A)||_.WO(A)||_.tfl(A)};
_.okl=function(A){return!_.ZaW(A)};
_.vq=function(A){return A.watch.watchScrollTop};
dpb=function(A){return A.watch.isLiveChatCollapsed};
_.S8y=function(){_.M("web_watch_log_theater_mode")&&_.mSl("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.$pi=function(A,t,f){if(!A.includes("START_TIME_PLACEHOLDER")||!A.includes("END_TIME_PLACEHOLDER"))return A;var X=new Date(0),Q=new Date(0);X.setUTCMilliseconds(t);Q.setUTCMilliseconds(f);return A.replace("START_TIME_PLACEHOLDER",_.YI(X,7)).replace("END_TIME_PLACEHOLDER",_.YI(Q,7))};
Hai=function(A){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:A}}]}}}};
akW=function(A,t,f){var X=_.M("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;t=Object.assign({},{text:t,hasGradientBackground:f},X&&{itemTargetId:X});X=_.M("web_enable_chat_autoscroll_to_user_turn")&&X?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:X,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:t}],insertByPositionInSection:{sectionTargetId:A,
position:"INSERTION_POSITION_LAST"}}}]},X?{scrollConfig:X}:{})}}};
Khl=function(A,t){return _.q_(A.entities,"booleanEntity",t)};
gkj=function(){return function(A){_.og(_.Ta("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:A}))}};
w5Q=function(A){switch(A){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}};
shu=function(A,t,f){var X=_.bP(f);A&&t&&X&&A.getPlayerPromise().then(function(Q){_.LeT(X)&&_.$B();(new _.fh(Q)).executeCommand(X,t);_.M("continue_playback_on_desktop_companion_click")||Q.pauseVideo()})};
kwi=function(A){var t=_.K1(),f;if(f=_.Ae("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var X;f=(X=f())==null?void 0:X.layoutId}else f=null;shu(t,f,A)};
r8b=function(A){var t=_.K1(),f;if(f=_.Ae("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var X;f=(X=f())==null?void 0:X.layoutId}else f=null;shu(t,f,A)};
Lq=function(A,t){var f=A<0?"-":"";A=Math.abs(A);var X=Math.floor(A/3600),Q=Math.floor(A)%3600,q=Math.floor(Q/60);Q=Math.floor(Q)%60;var e="";(t===void 0?0:t)&&(e="."+Math.round((A-Math.floor(A))*10));return X>0?f+X+":"+(q<10?"0"+q:""+q)+":"+(Q<10?"0"+Q:""+Q)+e:f+q+":"+(Q<10?"0"+Q:""+Q)+e};
Aeb=function(A){var t=A.match(/[^0-9:\.]/g);if(t&&t.length>0)return null;A=A.split(":");if(A.length===0||A.length>3)return null;t=1;for(var f=0;A.length>0;){var X=A.pop();if(X===void 0)break;var Q=Number(X);if(X===""||isNaN(Q))return null;f+=Q*t;t*=60}return f};
tJQ=function(A,t,f,X){A=Math.max(f,A);t=Math.min(t,X-f);A+t>X?(f=X,A=f-t):f=A+t;return{start:A,end:f}};
fUH=function(A,t,f,X,Q,q){A<f?A=f:A+Q>X&&(A=X-Q);t>X&&(t=X);t=Math.min(A+q,Math.max(A+Q,t));return{start:A,end:t}};
Xxb=function(A,t,f,X,Q,q){t>X?t=X:t-Q<f&&(t=f+Q);A<f&&(A=f);A=Math.min(t-Q,Math.max(t-q,A));return{start:A,end:t}};
Qju=function(A){return _.M("web_transcript_cue_id_killswitch")?String(A):"ytd-transcript-renderer_"+A};
q0H=function(A){return _.M("web_transcript_cue_id_killswitch")?!0:A.startsWith("ytd-transcript-renderer")};
JeF=function(A){var t=_.K1(),f;if(f=_.Ae("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var X;f=(X=f())==null?void 0:X.layoutId}else f=null;shu(t,f,A)};
UGf=function(A){A.style.height="auto";A.style.height=Math.min(A.scrollHeight||20,80)+"px"};
eTx=function(){var A;return String(Math.floor(((A=_.JE())==null?void 0:A.getCurrentTime())||0)*1E3)};
lUW=function(A){if(A.onWelcomeCommand)return _.bP(A.onWelcomeCommand);A=_.C(A.inputComposerViewModel,G73);if(A==null?0:A.welcomeFeatureContinuation)return _.OM(A.welcomeFeatureContinuation)};
NiQ=function(A){var t=_.K1(),f;f=(f=_.Ae("yt.www.ads.eventcache.getLastCompanionData"))?(f=f())&&f.layoutId:null;shu(t,f,A)};
u_b=function(A){var t=_.K1(),f;f=(f=_.Ae("yt.www.ads.eventcache.getLastCompanionData"))?(f=f())&&f.layoutId:null;shu(t,f,A)};
zTb=function(A){if(A.simpleText)return[{text:A.simpleText}];var t;return(t=A.runs)!=null?t:[]};
P2b=function(A){var t=A.startEndTimeTemplate,f=A.startTimeUtcMillis;A=A.endTimeUtcMillis;if(t&&f&&A)return _.oC(_.$pi(_.dF(t),Number(f),Number(A)))};
Til=function(A,t){var f,X,Q=A==null?void 0:(f=A.viewCount)==null?void 0:(X=f.videoViewCountRenderer)==null?void 0:X.shortViewCount;if(!t&&Q)return Q;var q,e;return A==null?void 0:(q=A.viewCount)==null?void 0:(e=q.videoViewCountRenderer)==null?void 0:e.viewCount};
iku=function(A,t){var f=A==null?void 0:A.relativeDateText;return!t&&f?[f,!0]:[A==null?void 0:A.dateText,!1]};
Ok3=function(A,t,f,X,Q){X=X===void 0?"":X;Q=Q===void 0?!1:Q;var q=Til(A,t),e=_.U(iku(A,t)),G=e.next().value;e=e.next().value;t=t?A==null?void 0:A.sponsorsOnlyFirstTimeLongText:A==null?void 0:A.sponsorsOnlyFirstTimeShortText;var N=[];f&&q&&N.push(q);!f&&e||!G||N.push(G);A=[Q?A==null?void 0:A.subtitle:void 0].concat(_.YV(N),[t,A==null?void 0:A.stationName,A==null?void 0:A.rating,A?P2b(A):void 0,A==null?void 0:A.upNextProgramText,A==null?void 0:A.superTitleLink]).filter(function(z){return!!z});
f={runs:[]};for(Q=0;Q<A.length;Q++)f.runs.push.apply(f.runs,_.YV(zTb(A[Q]))),Q<A.length-1&&f.runs.push({text:" "+X+" "});return f};
ceH=function(A){return A.filter(function(t){return!_.C(t,_.fl)})};
BiW=function(A){var t,f,X,Q;if(A=A==null?void 0:(t=A.contents)==null?void 0:(f=t.twoColumnWatchNextResults)==null?void 0:(X=f.results)==null?void 0:(Q=X.results)==null?void 0:Q.contents){var q,e;return(e=(q=A.find(function(G){return!!G.videoPrimaryInfoRenderer}))==null?void 0:q.videoPrimaryInfoRenderer)==null?void 0:e.updatedMetadataEndpoint}};
MJy=function(A,t){var f;return(f=A.sourceConfigs)==null?void 0:f.find(function(X){return X.videoId===t})};
C2F=function(A){return A==="End of video"||A==="End of playlist"};
hTQ=function(A){var t,f,X,Q;return(t=A.getWatchNextResponse())==null?void 0:(f=t.contents)==null?void 0:(X=f.twoColumnWatchNextResults)==null?void 0:(Q=X.playlist)==null?void 0:Q.playlist};
RTx=function(A){var t,f,X,Q,q,e;return(t=hTQ(A))==null?void 0:(f=t.playlistButtons)==null?void 0:(X=f.menuRenderer)==null?void 0:(Q=X.topLevelButtons)==null?void 0:(q=Q[0])==null?void 0:(e=q.playlistLoopButtonRenderer)==null?void 0:e.playlistLoopStateEntityKey};
mGu=function(A){var t=_.Px().resolve(_.zT),f;return(t=(f=_.C(t.getAutoplayEndpoint(),_.ZT))==null?void 0:f.playlistId)&&t===A};
yer=function(A,t,f,X,Q){function q(){_.a6.cancelJob(pq);var e=bkr(t,f/A.getPlaybackRate()),G=e.hours,N=e.minutes;e=(e.seconds*1E3||6E4)/A.getPlaybackRate();A.setVideoTimeLeft(Wyb(G,N));X&&A.getPlayerState()!==0&&A.setSleepTimerTimeLeft(Wyb(G,N,!0));(G>0||N>0)&&!Q&&(pq=_.c1(_.a6,q,e))}
_.a6.cancelJob(pq);pq=_.c1(_.a6,q)};
Lyr=function(A,t,f){function X(){_.a6.cancelJob(vji);var Q=bkr(t,f),q=Q.hours;Q=Q.minutes;var e=6E4/A.getPlaybackRate();if(q>0||Q>0)A.setSleepTimerTimeLeft(Wyb(q,Q,!0)),vji=_.c1(_.a6,X,e)}
_.a6.cancelJob(vji);vji=_.c1(_.a6,X)};
Eju=function(A,t){var f=A.getVolume()/(t/500),X=function(Q){_.a6.cancelJob(pxy);var q=Math.floor(Q-f);A.setVolume(q,!1);q>0&&(pxy=_.c1(_.a6,function(){X(q)},500))};
_.a6.cancelJob(pxy);pxy=_.c1(_.a6,function(){X(A.getVolume())})};
njF=function(A,t){_.a6.cancelJob(pxy);t&&A.syncVolume()};
DGQ=function(){var A={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.e5("SLEEP_TIMER_DISRUPTED")}}}}};_.Px().resolve(_.i2).resolveCommand(A)};
Fyx=function(A){return(A.getDuration()-A.getProgressState().current)*1E3};
bkr=function(A,t){A=A+t-(0,_.OJ)();if(A<=0)return{hours:0,minutes:0,seconds:0};var f=new IUi(0,0,0,0,0,0,A);A=f.getHours();t=f.getMinutes();f=f.getSeconds();f!==0&&t++;t!==0&&t%60===0&&(A++,t=0);return{hours:A,minutes:t,seconds:f}};
Wyb=function(A,t,f){return A>0&&t>0?f?_.e5("TIME_LEFT_HOURS_MINUTES",{hours:A.toString(),minutes:t.toString()}):_.e5("TIME_HOURS_MINUTES",{hours:A.toString(),minutes:t.toString()}):A>0?f?_.Gt("TIME_LEFT_HOURS",A):_.Gt("TIME_HOURS",A):f?_.e5("TIME_LEFT_MINUTES",{minutes:t.toString()}):_.e5("TIME_MINUTES",{minutes:t.toString()})};
jji=function(A,t){if(A.timelyActions)return A.timelyActions.find(function(f){var X;return((X=_.C(f,xGb))==null?void 0:X.cueRangeId)===t})};
Y03=function(A){var t=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.OE(A);A.keyMap_.forEach(function(f,X){_.Zx(t,X)||this.remove(X)},A)};
VJy=function(A,t){A.reloadContinuationItemsCommandMatcher=t};
ZkH=function(A,t){var f;return _.l(function(X){return X.nextAddress==1?t&&A.lastWelcomeContinuationSent!==t?_.xA_(A)?X.yield(A.panelController.isVisible("PAai_companion"),3):X.jumpTo(2):X.return(!1):X.nextAddress==2||(f=X.yieldResult,f)?X.return(!0):X.return(!1)})};
oji=function(A){var t,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1){if(!A.welcomeOptions)return e.return();t=A.welcomeOptions;f=t.command;X=t.setPending;if(f){var G;var N=(G=_.C(f,_.L1))==null?void 0:G.token}else N=void 0;Q=N;return e.yield(ZkH(A,Q),2)}if(!e.yieldResult)return e.return();A.lastWelcomeContinuationSent=Q;(q=X)==null||q(!0);N="youchat-"+Date.now();G=(G=_.JE())?String(Math.floor(G.getCurrentTime())*1E3):void 0;_.Wn(f,{form:{formData:_.iF({clientMessageId:N,playerOffsetMs:G,pageContext:_.QkQ(A,
A.pageSubtype)})}});_.LO(e)})};
dGb=function(A,t){_.l(function(f){A.welcomeOptions=t;return f.yield(oji(A),0)})};
_.EK=function(A,t){A.insertBefore(t,A.childNodes[0]||null)};
S0i=function(A){if(A>=48&&A<=57||A>=96&&A<=106||A>=65&&A<=90||_.q1&&A==0)return!0;switch(A){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 _.Qe;default:return!1}};
$GF=function(A){if(A.altKey&&!A.ctrlKey||A.metaKey||A.keyCode>=112&&A.keyCode<=123)return!1;if(S0i(A.keyCode))return!0;switch(A.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!_.Qe;default:return A.keyCode<166||A.keyCode>183}};
IUi=function(A,t,f,X,Q,q,e){this.date=typeof A==="number"?new Date(A,t||0,f||1,X||0,Q||0,q||0,e||0):new Date(A&&A.getTime?A.getTime():_.k5())};
_.rS(IUi,_.x3);_.J=IUi.prototype;_.J.getHours=function(){return this.date.getHours()};
_.J.getMinutes=function(){return this.date.getMinutes()};
_.J.getSeconds=function(){return this.date.getSeconds()};
_.J.getMilliseconds=function(){return this.date.getMilliseconds()};
_.J.getUTCDay=function(){return this.date.getUTCDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.J.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.J.setHours=function(A){this.date.setHours(A)};
_.J.setMinutes=function(A){this.date.setMinutes(A)};
_.J.setSeconds=function(A){this.date.setSeconds(A)};
_.J.setMilliseconds=function(A){this.date.setMilliseconds(A)};
_.J.setUTCHours=function(A){this.date.setUTCHours(A)};
_.J.setUTCMinutes=function(A){this.date.setUTCMinutes(A)};
_.J.setUTCSeconds=function(A){this.date.setUTCSeconds(A)};
_.J.setUTCMilliseconds=function(A){this.date.setUTCMilliseconds(A)};
_.J.add=function(A){_.x3.prototype.add.call(this,A);A.hours&&this.setUTCHours(this.date.getUTCHours()+A.hours);A.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+A.minutes);A.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+A.seconds)};
_.J.JSC$11417_toIsoString=function(A){var t=_.x3.prototype.JSC$11417_toIsoString.call(this,A);return A?t+"T"+_.lz(this.getHours(),2)+":"+_.lz(this.getMinutes(),2)+":"+_.lz(this.getSeconds(),2):t+"T"+_.lz(this.getHours(),2)+_.lz(this.getMinutes(),2)+_.lz(this.getSeconds(),2)};
_.J.equals=function(A){return this.getTime()==A.getTime()};
_.J.toString=function(){return this.JSC$11417_toIsoString()};
_.J.clone=function(){var A=new IUi(this.date);A.firstDayOfWeek_=this.firstDayOfWeek_;A.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return A};
_.Hkf=function(A){return _.r0({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:A}})};var aUj=new _.UA("imageTileRenderer");var KyW=new _.UA("promotedSparklesWebRenderer");var gjF=new _.UA("adGridCardCollectionViewModel");var wxu=new _.UA("carouselTitleViewModel");var sjQ=new _.UA("ctaCarouselItemViewModel");var k7W=new _.UA("textFieldViewModel");_.reQ=new _.UA("engagementPanelHeaderShowNavigationButtonCommand");var AqF=new _.UA("hideEngagementPanelScrimAction");var tCx=new _.UA("setActivePanelItemAction");var fsi=new _.UA("showEngagementPanelScrimAction");var XDy=new _.UA("updateEngagementPanelAction");var Q6Q=new _.UA("updateSearchInVideoResultsAction");var qJl=new _.UA("transcriptCueGroupRenderer");var Jqu=new _.UA("transcriptCueRenderer");var Uqr=new _.UA("transcriptFooterRenderer");var eGi=new _.UA("engagementPanelAdSubtitleRenderer");var Gmb=new _.UA("videoDescriptionFantasySectionViewModel");var lsb=new _.UA("deleteClipEngagementPanelCommand");var NbH=new _.UA("loopCommand");var uib=new _.UA("changeCreatorEndscreenVisibilityCommand");var zGu=new _.UA("liveChatCallForQuestionsRenderer");var PnF=new _.UA("updateTimedMarkersSyncObserverCommand");var xGb=new _.UA("timelyActionViewModel");var Tby=new _.UA("timelyActionsOverlayViewModel");var iUb=new _.UA("repeatChapterCommand");var OUx=new _.UA("watchPlayerOverflowMenuCommand");var cqi=new _.UA("compositeVideoOverlayRenderer");var Bbx=new _.UA("sortFilterSubMenuRenderer");var MCH=new _.UA("switchListItemViewModel");var G73=new _.UA("inputComposerViewModel");var Cny=new _.UA("transcriptEditSegmentCommand");var hGi=new _.UA("transcriptUpdateSegmentTextCommand");var RG3=new _.UA("transcriptSearchBoxRenderer");var mql=new _.UA("transcriptSegmentListRenderer");var bU3=new _.UA("transcriptSegmentRenderer");_.WZj=new _.UA("updateDateTextAction");var yqF=new _.UA("updateTitleAction");var vtf=new _.UA("updateViewershipAction");var LZH=new _.UA("relatedChipCommand");var pDb=new _.UA("carouselLockupRenderer");var nq=new _.UA("expandableVideoDescriptionBodyRenderer");var Etb=new _.UA("videoDescriptionHeaderRenderer");var ntl=new _.UA("videoDescriptionYouchatSectionViewModel");_.D$=_.cx("kevlar_watch_page_horizontal_margin",24);_.Dqf=_.cx("kevlar_watch_page_columns_top_padding",24);_.FZF=426+_.D$*2;_.FT=_.cx("kevlar_watch_two_column_width_threshold",1E3);_.IsW=_.D$*2;_.xqr=_.cx("kevlar_watch_secondary_width",402);_.j6i=_.cx("kevlar_watch_max_player_width",1280);_.YJH=_.cx("kevlar_watch_flexy_metadata_height",136);_.VCl=_.IsW+310+_.D$;_.ZUW=_.IsW+360+_.D$;var otb={PAUSE_CHAT:18};var dqb;var SJu;var Is=function(){return _.F.apply(this,arguments)||this};
_.R(Is,_.F);Is.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Is.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var A=_.C(this.data.button,_.zf);A&&(A.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.PV.Object.defineProperties(Is,{template:{configurable:!0,enumerable:!0,get:function(){if(SJu===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;dqb===void 0&&(dqb=document.createElement("template"));var X=dqb;f.call(t,X.content.cloneNode(!0),A.content.firstChild);SJu=A}A=SJu;return A}}});
_.V([_.b(_.Qv),_.H("design:type",Object)],Is.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Is.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({selectorArgs:["data.enabledEntityKey"],selector:jhj,observer:"onEnabledChange"}),_.H("design:type",Boolean)],Is.prototype,"enabled",void 0);_.V([_.n(),_.H("design:type",Object)],Is.prototype,"data",void 0);_.V([_.WU({is:"yt-disableable-button-view-model",noInjection:!0})],Is);var $q3;var HUr;var asu=["transVert01","transVert02","transVert03"],KZi="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),x0=function(){var A=_.F.apply(this,arguments)||this;A.emojiManager=_.z4;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};A.reactionBuckets=[];A.noEmojiIdentifier="NO_EMOJI";return A};
_.R(x0,_.F);_.J=x0.prototype;_.J.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.J.desktopFountainEmojiSizePxChanged=function(){_.Q_(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.J.createUserReactionAnimation=function(A){this.createEmojiAnimation(A,!0)};
_.J.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var A;((A=this.data)==null?0:A.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Ta("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.YV(this.emojiContainer.children)).forEach(function(t){t.remove()})};
_.J.detached=function(){this.cleanupFountain()};
_.J.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var A;this.reactionBuckets=_.VG.unsafeClone((A=this.emojiFountainData)==null?void 0:A.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.J.processEmojiBucket=function(A){var t=this;if(this.reactionBuckets&&!(A>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var f=this.reactionBuckets[A];this.generateEmojiAnimations(f);if(A<this.reactionBuckets.length-1){var X;if(f==null?0:(X=f.duration)==null?0:X.seconds)this.emojiBucketTimerId=setTimeout(function(){t.processEmojiBucket(A+1)},Number(f.duration.seconds)*1E3)}}};
_.J.generateEmojiAnimations=function(A){var t=this,f=this.getRandomEmojiIdFromBucketWithOverride(A);if(f&&f!==this.noEmojiIdentifier){var X=0;A.targetEps?(X=this.linearInterpolateBounded(1,20,100,12,A.emojiSizeIndex||0),this.createEmojiAnimation(f,!1,A.emojiAnimationMs,X),X=this.getEmojiDelayMsFromTargetEps(A.targetEps)):(this.createEmojiAnimation(f),X=this.getEmojiDelayMsFromDistribution(A.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){t.generateEmojiAnimations(A)},X)}};
_.J.getRandomEmojiIdFromBucketWithOverride=function(A){if(!(A&&A.reactionsData&&A.reactionsData.length&&A.totalReactions))return this.noEmojiIdentifier;for(var t=A.totalReactions,f=1,X=_.U(A.reactionsData),Q=X.next();!Q.done;Q=X.next())Q=Q.value,(Q.reactionWeightOverride||Q.reactionWeightOverride===0)&&Q.reactionCount&&(t-=Q.reactionCount,f-=Q.reactionWeightOverride);X=!0;f<0&&(X=!1,t=A.totalReactions,f=1);if(X&&f>0&&t===0)if(f===1){Q=0;for(var q=_.U(A.reactionsData),e=q.next();!e.done;e=q.next())e=
e.value,e.reactionCount&&e.reactionCount>0&&Q++;Q=1/Q;q=_.U(A.reactionsData);for(e=q.next();!e.done;e=q.next())e.value.reactionWeightOverride=Q}else for(Q=1/(1-f),q=_.U(A.reactionsData),e=q.next();!e.done;e=q.next())e=e.value,e.reactionWeightOverride&&(e.reactionWeightOverride*=Q);Q=Math.random();q=0;e=_.U(A.reactionsData);for(var G=e.next();!G.done;G=e.next())if(G=G.value,G.reactionCount&&(q=(G.reactionWeightOverride||G.reactionWeightOverride===0)&&X?q+G.reactionWeightOverride:q+f*G.reactionCount/
t,q>Q&&(G.reactionCount--,A.totalReactions--,G=this.reactionItemToEmojiString(G),G!==this.noEmojiIdentifier)))return G;return this.noEmojiIdentifier};
_.J.reactionItemToEmojiString=function(A){if(A.unicodeEmojiId)return A.unicodeEmojiId;if(A.emoteId)return A.emoteId;if(A.videoReactionType)switch(A.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.J.createEmojiAnimation=function(A,t,f,X){t=t===void 0?!1:t;this.lastEmojiRequestedForTesting=A;var Q=A.startsWith("yt-icons:"),q=_.NR(this.emojiManager,A);if(q||Q){var e=document.createElement("emoji");e.classList.add("yt-emoji-fountain-view-model");e.classList.add(asu[Math.floor(Math.random()*asu.length)]);var G=document.createElement("div");G.classList.add("yt-emoji-fountain-view-model");G.classList.add("horizontal-container");G.classList.add(KZi[Math.floor(Math.random()*KZi.length)]);t?(f=document.createElement("div"),
f.classList.add("user-reaction-bubble"),f.classList.add("yt-emoji-fountain-view-model"),G.appendChild(f)):(f&&(e.style.animationDuration=f+"ms",G.style.animationDuration=f+"ms"),X&&(e.style.width=X+"px",e.style.height=X+"px"));Q?(Q=document.createElement("yt-icon"),Q.polymerController.icon=A,X&&(Q.style.width=X+"px",Q.style.height=X+"px"),A=Q):A=this.emojiManager.createEmoji(q,!1);A.classList.add("yt-emoji-fountain-view-model");G.appendChild(A);e.appendChild(G);this.emojiContainer.appendChild(e);
e.addEventListener("animationend",function(){e.remove()});
var N,z;if((N=this.data)==null?0:(z=N.loggingDirectives)==null?0:z.trackingParams)t=t?_.Xl(183501):_.Xl(183500),Y8l(this.data.loggingDirectives.trackingParams,t),_.zdT(t);setTimeout(function(){e&&e.remove()},2E3)}};
_.J.getEmojiDelayMsFromDistribution=function(A){return Math.random()*(A||1)*1E3};
_.J.getEmojiDelayMsFromTargetEps=function(A){return Math.random()*2*(1/A)*1E3};
_.J.linearInterpolateBounded=function(A,t,f,X,Q){Q=Math.min(Math.max(Q,A),f);return(t*(f-Q)+X*(Q-A))/(f-A)};
x0.prototype.onEmojiFountainDataEntityUpdate=x0.prototype.onEmojiFountainDataEntityUpdate;x0.prototype.desktopFountainEmojiSizePxChanged=x0.prototype.desktopFountainEmojiSizePxChanged;x0.prototype.isActiveChanged=x0.prototype.isActiveChanged;_.V([_.n(),_.H("design:type",_.lw)],x0.prototype,"emojiManager",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],x0.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],x0.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],x0.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(A,t){return _.q_(A.entities,"emojiFountainDataEntity",t)}}),
_.H("design:type",Object)],x0.prototype,"emojiFountainData",void 0);_.V([_.n(),_.H("design:type",Boolean)],x0.prototype,"isActive",void 0);_.V([_.ev("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x0.prototype,"isActiveChanged",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],x0.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",String)],x0.prototype,"lastEmojiRequestedForTesting",void 0);
_.V([_.n({value:function(){return _.cx("desktop_fountain_emoji_size_px",20)}}),
_.H("design:type",Number)],x0.prototype,"desktopFountainEmojiSizePx",void 0);_.V([_.ev("desktopFountainEmojiSizePx"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x0.prototype,"desktopFountainEmojiSizePxChanged",null);_.V([_.lo("#emoji-container"),_.H("design:type",HTMLElement)],x0.prototype,"emojiContainer",void 0);
_.V([_.ev("emojiFountainData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x0.prototype,"onEmojiFountainDataEntityUpdate",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],x0);
_.Y(x0,"yt-emoji-fountain-view-model",function(){if(HUr===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;$q3===void 0&&($q3=document.createElement("template"));var X=$q3;f.call(t,X.content.cloneNode(!0),A.content.firstChild);HUr=A}A=HUr;return A},{mode:0});var gtb;var wDy;var jW=function(){return _.F.apply(this,arguments)||this};
_.R(jW,_.F);jW.prototype.onChoiceChanged=function(){this.data&&_.Q_(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
jW.prototype.onChoiceChanged=jW.prototype.onChoiceChanged;_.V([_.n(),_.H("design:type",Object)],jW.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jW.prototype,"onChoiceChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],jW);
_.Y(jW,"yt-live-chat-banner-poll-choice",function(){if(wDy===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;gtb===void 0&&(gtb=document.createElement("template"));var X=gtb;f.call(t,X.content.cloneNode(!0),A.content.firstChild);wDy=A}A=wDy;return A},{mode:0});var s6l;var kmb;var Y0=function(){var A=_.F.apply(this,arguments)||this;A.modern=_.M("web_button_rework_with_live");A.small=!1;return A};
_.R(Y0,_.F);Y0.prototype.computeIsSmall=function(){var A;return((A=this.buttonOverrides)==null?void 0:A.size)==="S"};
Y0.prototype.computeId=function(){return this.data&&this.data.targetId};
_.V([_.b(_.qX.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],Y0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",String)],Y0.prototype,"id",void 0);_.V([_.n(),_.H("design:type",Object)],Y0.prototype,"buttonOverrides",void 0);_.V([_.n(),_.H("design:type",Object)],Y0.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Y0.prototype,"modern",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.H("design:type",Object)],Y0.prototype,"small",void 0);_.V([_.y_({disableElementRegistration:!0,is:"yt-live-chat-button"})],Y0);
_.Y(Y0,"yt-live-chat-button",function(){if(kmb===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;s6l===void 0&&(s6l=document.createElement("template"));var X=s6l;f.call(t,X.content.cloneNode(!0),A.content.firstChild);kmb=A}A=kmb;return A},{mode:0});var rqu;var AOj;var VJ=function(){var A=_.F.apply(this,arguments)||this;A.inCollapsedBanner=!1;A.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};A.questionButtonOverrides={style:"mono",type:"filled"};return A};
_.R(VJ,_.F);_.J=VJ.prototype;_.J.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]]"}}}}}};
_.J.onContextMenuButtonClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
_.J.onYtRendererstamperFinished=function(){this.menuButton=_.sF(this.hostElement).querySelector("#menu-button")};
_.J.dataChanged=function(){var A,t;if((t=_.C((A=this.data)==null?void 0:A.overflowMenuButton,_.Gf))==null?0:t.command)this.data.contextMenuEndpoint=_.C(this.data.overflowMenuButton,_.Gf).command};
_.J.onButtonClick=function(){var A,t=_.C((A=this.data)==null?void 0:A.askQuestionButton,_.Gf);if(t){if(t.trackingParams&&(A=_.zV(t.trackingParams))){var f=_.Ws();f&&_.o7(f,A)}_.s9(this.hostElement,"innertube-command",t.command)}};
VJ.prototype.onYtRendererstamperFinished=VJ.prototype.onYtRendererstamperFinished;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],VJ.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],VJ.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.n({observer:"dataChanged"}),_.H("design:type",Object)],VJ.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],VJ.prototype,"inCollapsedBanner",void 0);_.V([_.n(),_.H("design:type",Object)],VJ.prototype,"buttonOverrides",void 0);_.V([_.n(),_.H("design:type",Object)],VJ.prototype,"questionButtonOverrides",void 0);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VJ.prototype,"onYtRendererstamperFinished",null);
_.V([_.y_({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],VJ);
_.Y(VJ,"yt-live-chat-call-for-questions-renderer",function(){if(AOj===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;rqu===void 0&&(rqu=document.createElement("template"));var X=rqu;f.call(t,X.content.cloneNode(!0),A.content.firstChild);AOj=A}A=AOj;return A},{mode:0});var tYr={};tYr.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 A=this;window.requestAnimationFrame(function(){A.restoreFocusNode_||(A.restoreFocusNode_=document.activeElement);var t=_.Z3f(A.hostElement);t.length&&t[t.length-1].focus()})},
isAttachedChanged_:function(A,t){A?this.focusChild_():t&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(A){this.hidden||_.Z2(A).indexOf(this.hostElement)!==-1||(A.stopPropagation(),this.focusChild_())}};var f3i;var XQi;var Z$=function(){return _.F.apply(this,arguments)||this};
_.R(Z$,_.F);Z$.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Z$.prototype.onClick=function(A){A.target!==this.confirmButton&&A.target!==this.cancelButton&&(this.hidden=!0)};
_.V([_.lo("#confirm_button"),_.H("design:type",Object)],Z$.prototype,"confirmButton",void 0);_.V([_.lo("#cancel_button"),_.H("design:type",Object)],Z$.prototype,"cancelButton",void 0);_.V([_.n(),_.H("design:type",Qil)],Z$.prototype,"data",void 0);_.V([_.n({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],Z$.prototype,"hidden",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(tYr.YtLiveChatDialogBehavior),_.H("design:type",Object)],Z$.prototype,"ytLiveChatDialogBehavior",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Z$);
var Qil=_.Y(Z$,"yt-live-chat-dialog-renderer",function(){if(XQi===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;f3i===void 0&&(f3i=document.createElement("template"));var X=f3i;f.call(t,X.content.cloneNode(!0),A.content.firstChild);XQi=A}A=XQi;return A},{mode:0});var qvf;var JOi,UAx=function(){if(JOi!==void 0)return JOi;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;qvf===void 0&&(qvf=document.createElement("template"));var X=qvf;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return JOi=A};var eEy;var GOH;var dq=function(){var A=_.F.apply(this,arguments)||this;A.tooltip=null;A.data=null;A.id="";A.active=!1;A.icon="";A.disabled=!1;A.showTooltip=!1;A.useToggledActiveState=!0;A.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return A};
_.R(dq,_.F);_.J=dq.prototype;
_.J.dataChanged=function(){var A;((A=this.data)==null?0:A.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,_.XD)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var t;if((t=this.data)==null?0:t.disabled)this.disabled=!0};
_.J.computeId=function(A){return A};
_.J.computeIcon=function(A,t){if(!A)return"";if(this.useToggledActiveState)return"yt-icons:"+A.toLowerCase();var f,X;return t&&((f=this.data)==null?0:(X=f.toggledIcon)==null?0:X.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+A.toLowerCase()};
_.J.logPDGEntryPoint=function(){_.sab(_.qv("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")};
_.J.immediatelyShowTooltip=function(){var A=_.sF(this.hostElement).querySelector("#tooltip");A.animationDelay=0;A.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};A.show()};
_.J.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.J.onClick=function(A){var t;((t=this.data)==null?0:t.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(),A.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.s9(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.J.computeShowTooltip=function(A,t){return!!(A&&A.tooltip&&t)};
_.J.maybeUpdateTooltipText=function(){var A=this,t;if((t=this.data)==null?0:t.tooltip){var f=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.XD)(A.tooltip).textContent=f},250)}};
_.J.handleLiveChatActions=function(A){var t=this;A.length&&(this.id!=="creator"&&this.id!=="product-picker"||A.forEach(function(f){(f=t.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",f))&&f.durationSec===f.fullDurationSec&&t.startBubble(t.colorFromDecimal(f.startBackgroundColor))}))};
_.J.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.J.startBubble=function(A){_.Q_(this.hostElement,{"--yt-live-chat-monetization-button-glow":A});this.hostElement.setAttribute("bubble","")};
_.J.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.J.colorFromDecimal=function(A){typeof A==="string"&&(A=Number(A));return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
dq.prototype.onAnimationEnd=dq.prototype.onAnimationEnd;dq.prototype.disabledChanged=dq.prototype.disabledChanged;dq.prototype.dataChanged=dq.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],dq.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.qX.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],dq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],dq.prototype,"data",void 0);_.V([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",Object)],dq.prototype,"id",void 0);_.V([_.n({notify:!0,reflectToAttribute:!0}),_.H("design:type",Object)],dq.prototype,"active",void 0);
_.V([_.n({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.H("design:type",Object)],dq.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dq.prototype,"disabled",void 0);_.V([_.n({computed:"computeShowTooltip(data, disabled)"}),_.H("design:type",Object)],dq.prototype,"showTooltip",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dq.prototype,"useToggledActiveState",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dq.prototype,"dataChanged",null);_.V([_.ev("disabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dq.prototype,"disabledChanged",null);_.V([_.UQ("animationend"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],dq.prototype,"onAnimationEnd",null);
_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],dq);
_.Y(dq,"yt-live-chat-icon-toggle-button-renderer",function(){if(GOH===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;eEy===void 0&&(eEy=document.createElement("template"));var X=eEy;f.call(t,X.content.cloneNode(!0),A.content.firstChild);GOH=A}A=GOH;return A},{mode:0});var l3l;var NLb;var SW=function(){return _.F.apply(this,arguments)||this};
_.R(SW,_.F);SW.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V([_.n(),_.H("design:type",Object)],SW.prototype,"data",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.y_({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],SW);
_.Y(SW,"yt-live-chat-message-input-prompt-header-renderer",function(){if(NLb===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;l3l===void 0&&(l3l=document.createElement("template"));var X=l3l;f.call(t,X.content.cloneNode(!0),A.content.firstChild);NLb=A}A=NLb;return A},{mode:0});var uOl;var zEH;var PXi;var TLi;var i43;var O4f;var cOi=function(){return _.F.apply(this,arguments)||this};
_.R(cOi,_.F);_.V([_.n(),_.H("design:type",Object)],cOi.prototype,"data",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],cOi);
_.Y(cOi,"yt-live-chat-message-subtext-renderer",function(){if(O4f===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;i43===void 0&&(i43=document.createElement("template"));var X=i43;f.call(t,X.content.cloneNode(!0),A.content.firstChild);O4f=A}A=O4f;return A},{mode:0});var $0=function(){var A=_.F.apply(this,arguments)||this;A.subtextOnBottom=!1;A.buttonOverrides={style:"mono",type:"tonal"};return A};
_.R($0,_.F);$0.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$0.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$0.prototype,"subtextOnBottom",void 0);_.V([_.n(),_.H("design:type",Object)],$0.prototype,"buttonOverrides",void 0);
_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],$0);
_.Y($0,"yt-live-chat-message-renderer",function(){if(TLi===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;PXi===void 0&&(PXi=document.createElement("template"));var X=PXi;f.call(t,X.content.cloneNode(!0),A.content.firstChild);TLi=A}A=TLi;return A},{mode:0});var BLu;var MYj;var Hq=function(){var A=_.F.apply(this,arguments)||this;A.isRemovable=!1;A.hasPrefilledText=!1;A.isInputDirty=!1;A.overCharacterLimit=!1;A.underCharacterLimit=!1;A.showErrorMessage=!1;return A};
_.R(Hq,_.F);_.J=Hq.prototype;_.J.computeId=function(){return this.data.id};
_.J.computeInputData=function(){return this.data.inputData};
_.J.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.J.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.J.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.J.getLiveChatRichMessageInput=function(){return _.sF(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.J.clearInput=function(){_.sF(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.J.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.J.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.J.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.J.handleTextInputCharCountChanged=function(A){A=A.detail&&A.detail.characterCount;A!==void 0&&(this.characterCount=A,A!==0&&(this.isInputDirty=!0))};
_.J.onInputFocusOut=function(){this.isInputDirty=!0};
_.J.onClickCloseButton=function(){_.s9(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Hq.prototype.handleTextInputCharCountChanged=Hq.prototype.handleTextInputCharCountChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Hq.prototype,"data",void 0);_.V([_.n({computed:"computeId(data.id)"}),_.H("design:type",String)],Hq.prototype,"id",void 0);_.V([_.n({computed:"computeInputData(data.inputData)"}),_.H("design:type",Object)],Hq.prototype,"inputData",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.H("design:type",Object)],Hq.prototype,"isRemovable",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.H("design:type",Object)],Hq.prototype,"hasPrefilledText",void 0);_.V([_.n({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.H("design:type",Number)],Hq.prototype,"charactersRemaining",void 0);
_.V([_.n(),_.H("design:type",Number)],Hq.prototype,"characterCount",void 0);_.V([_.n(),_.H("design:type",Object)],Hq.prototype,"isInputDirty",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.H("design:type",Object)],Hq.prototype,"overCharacterLimit",void 0);_.V([_.n({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.H("design:type",Object)],Hq.prototype,"underCharacterLimit",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.H("design:type",Object)],Hq.prototype,"showErrorMessage",void 0);_.V([_.UQ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Hq.prototype,"handleTextInputCharCountChanged",null);
_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Hq);
_.Y(Hq,"yt-live-chat-poll-editor-input",function(){if(MYj===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;BLu===void 0&&(BLu=document.createElement("template"));var X=BLu;f.call(t,X.content.cloneNode(!0),A.content.firstChild);MYj=A}A=MYj;return A},{mode:0});var CXx;var hEQ;var REr={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},as=function(){var A=_.F.apply(this,arguments)||this;A.modern=_.M("web_button_rework_with_live");A.closeButtonOverrides={iconPosition:"icon-only"};A.startButtonOverrides={style:"mono",type:"filled"};A.addOptionButtonOverrides={style:"mono",type:"text"};return A};
_.R(as,_.F);_.J=as.prototype;
_.J.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"}}}}};
_.J.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var A;_.C((A=this.data)==null?void 0:A.startButton,_.Gf)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.computeId=function(){return this.data&&this.data.id||""};
_.J.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.J.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.J.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.J.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.J.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var A=0;A<this.pollEditorInfoWithDefaults.minPollOptions;A++)this.addPollOptionData()};
_.J.getIsValidPoll=function(){var A=this;if(!this.pollEditorInfoWithDefaults)return!1;var t=this.pollEditorInfoWithDefaults,f=t.minPollOptionChars,X=t.maxPollOptionChars,Q=t.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>t.maxPollQuestionChars)return!1;t=_.sF(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(t).every(function(q,e){q=q.characterCount;!q&&Q[e]&&(q=A.ytRendererBehavior.getSimpleString(Q[e]).length);return q!==void 0&&q>=f&&q<=X})};
_.J.isValidPollChanged=function(){var A;_.C((A=this.data)==null?void 0:A.startButton,_.Gf)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.addPollOptionData=function(){var A=this.pollEditorInfoWithDefaults,t=A.maxPollOptionChars,f=A.optionPlaceholderText,X=A.customOptionPlaceholderText,Q=A.pollOptionData;this.currentNumPollOptions>=A.maxPollOptions||(A={liveChatPollOptionInput:{inputData:{placeholder:X[this.currentNumPollOptions]||f,maxCharacterLimit:t},maxCharacterLimit:t,minCharacterLimit:A.minPollOptionChars,hasPrefilledText:!!X[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=A.minPollOptions}},Q.charCountErrorText&&
(A.liveChatPollOptionInput.charCountErrorText=Q.charCountErrorText),Q.charsRemainingAltLabel&&(A.liveChatPollOptionInput.charsRemainingAltLabel=Q.charsRemainingAltLabel),Q.removeOptionAltText&&(A.liveChatPollOptionInput.removeOptionAltText=Q.removeOptionAltText),this.push("pollOptionsData",A),Q=Array.from(_.sF(_.sF(this.hostElement).querySelector("#poll-options")).children),Q.forEach(function(q,e){q.polymerController.set("data.id",e)}),_.sF(Q[Q.length-1]).querySelector("#input").focus())};
_.J.getPollOptionInputValues=function(){var A=this,t=[],f=_.sF(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),X=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(f).forEach(function(Q,q){var e=null;Q=Q.getLiveChatRichMessageInput();var G;(Q==null?0:(G=Q.textSegments)==null?0:G.length)?e=_.n1(Q):X[q]&&(e=A.formattedStringToLiveChatRichMessageInput(X[q]));t.push(e)});
return t};
_.J.requestCreateAndStartPoll=function(A){var t=this.getPollOptionInputValues();if(!t.some(function(X){return!X})){t={optionText:t};
var f=_.sF(_.sF(this.hostElement).querySelector("#poll-question")).firstChild;f&&f.liveChatRichMessageInput&&(t.questionText=_.n1(f.liveChatRichMessageInput));_.Al(this.hostElement,[A,t])}};
_.J.selectedChanged=function(){if(this.selected){var A=_.sF(_.sF(this.hostElement).querySelector("#start-button")).firstElementChild;if(A){var t;(t=_.sF(A).querySelector("#button")||_.kO(A).querySelector("button"))==null||t.focus()}}};
_.J.handleTextInputChanged=function(A){var t;((t=A.target)==null?void 0:t.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=A.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.J.handleStartButtonAction=function(A){A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),(A=A.detail.args[1])&&this.requestCreateAndStartPoll(A))};
_.J.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(A){this.createPollRequestInFlight=!1;(A=A.detail&&A.detail.data)&&A.success&&(_.s9(this.hostElement,"picker-cancelled"),_.kJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.J.onCloseClick=function(){_.s9(this.hostElement,"picker-cancelled");_.kJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.J.handlePollEditorInputClosed=function(A){var t=this.pollOptionsData.findIndex(function(f){return f.liveChatPollOptionInput.id===A.detail.id});
this.splice("pollOptionsData",t,1);this.isValidPoll=this.getIsValidPoll()};
_.J.onPickerCancelled=function(){this.reset()};
_.J.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var A=_.sF(_.sF(this.hostElement).querySelector("#poll-question")).firstChild;A&&A.setLiveChatRichMessageInput(null);if(A=_.sF(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){A=_.U(Array.from(A));for(var t=A.next();!t.done;t=A.next())t.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.J.formattedStringToLiveChatRichMessageInput=function(A){return A.simpleText?{text_segments:[A.simpleText]}:{text_segments:A.runs}};
_.PV.Object.defineProperties(as.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(REr,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
as.prototype.onPickerCancelled=as.prototype.onPickerCancelled;as.prototype.handlePollEditorInputClosed=as.prototype.handlePollEditorInputClosed;as.prototype.handleServiceRequestCompleted=as.prototype.handleServiceRequestCompleted;as.prototype.handleServiceRequestSent=as.prototype.handleServiceRequestSent;as.prototype.handleTextInputChanged=as.prototype.handleTextInputChanged;as.prototype.selectedChanged=as.prototype.selectedChanged;as.prototype.isValidPollChanged=as.prototype.isValidPollChanged;
as.prototype.shouldInitializePollChanged=as.prototype.shouldInitializePollChanged;as.prototype.dataChanged=as.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],as.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],as.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],as.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],as.prototype,"modern",void 0);
_.V([_.n(),_.H("design:type",Object)],as.prototype,"closeButtonOverrides",void 0);_.V([_.n(),_.H("design:type",Object)],as.prototype,"startButtonOverrides",void 0);_.V([_.n(),_.H("design:type",Object)],as.prototype,"addOptionButtonOverrides",void 0);_.V([_.n({computed:"computeId(data.id)",reflectToAttribute:!0}),_.H("design:type",String)],as.prototype,"id",void 0);_.V([_.n({value:function(){return[]}}),
_.H("design:type",Array)],as.prototype,"pollOptionsData",void 0);_.V([_.y("pollEditorInfoWithDefaults"),_.H("design:type",Object),_.H("design:paramtypes",[])],as.prototype,"pollQuestionData",null);_.V([_.n({value:0}),_.H("design:type",Number)],as.prototype,"pollQuestionCharacterCount",void 0);_.V([_.y("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.H("design:type",Object),_.H("design:paramtypes",[])],as.prototype,"pollQuestionCharactersRemaining",null);
_.V([_.n({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.H("design:type",Boolean)],as.prototype,"overQuestionCharacterLimit",void 0);_.V([_.y("data.pollEditorInfo"),_.H("design:type",Object),_.H("design:paramtypes",[])],as.prototype,"pollEditorInfoWithDefaults",null);_.V([_.n({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.H("design:type",Number)],as.prototype,"currentNumPollOptions",void 0);
_.V([_.n({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.H("design:type",Boolean)],as.prototype,"hasMaxNumPollOptions",void 0);_.V([_.y("pollEditorInfoWithDefaults","pollOptionsData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],as.prototype,"shouldInitializePoll",null);_.V([_.n(),_.H("design:type",Object)],as.prototype,"isValidPoll",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],as.prototype,"createPollRequestInFlight",void 0);_.V([_.n(),_.H("design:type",Object)],as.prototype,"selected",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.H("design:type",Boolean)],as.prototype,"showQuestionErrorMessage",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],as.prototype,"dataChanged",null);_.V([_.ev("shouldInitializePoll"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],as.prototype,"shouldInitializePollChanged",null);_.V([_.ev("isValidPoll"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],as.prototype,"isValidPollChanged",null);
_.V([_.ev("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],as.prototype,"selectedChanged",null);_.V([_.UQ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],as.prototype,"handleTextInputChanged",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],as.prototype,"handleServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],as.prototype,"handleServiceRequestCompleted",null);
_.V([_.UQ("yt-live-chat-poll-editor-input-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],as.prototype,"handlePollEditorInputClosed",null);_.V([_.UQ("picker-cancelled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],as.prototype,"onPickerCancelled",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],as);
_.Y(as,"yt-live-chat-poll-editor-panel-renderer",function(){if(hEQ===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;CXx===void 0&&(CXx=document.createElement("template"));var X=CXx;f.call(t,X.content.cloneNode(!0),A.content.firstChild);hEQ=A}A=hEQ;return A},{mode:0});var mAQ;var b4b;var Kq=function(){return _.F.apply(this,arguments)||this};
_.R(Kq,_.F);Kq.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Kq.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.PV.Object.defineProperties(Kq.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var A,t;return(A=this.data)==null?void 0:(t=A.title)==null?void 0:t.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var A;return _.bP((A=this.data)==null?void 0:A.onTapCommand)}}});
_.V([_.b(_.xa.YtEndpointBehavior),_.H("design:type",Object)],Kq.prototype,"ytEndpointBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Kq.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Kq.prototype,"itemId",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kq.prototype,"hasPromotion",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Kq.prototype,"innertubeCommand",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Kq);
_.Y(Kq,"yt-live-chat-product-picker-panel-item-view-model",function(){if(b4b===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;mAQ===void 0&&(mAQ=document.createElement("template"));var X=mAQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);b4b=A}A=b4b;return A},{mode:0});var Wiu;var yOu;var gq=function(){var A=_.F.apply(this,arguments)||this;A.id="product-picker";A.selected=!1;A.closeButtonId="close-button";A.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return A};
_.R(gq,_.F);_.J=gq.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var A=_.sF(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");A.length&&A[0].focus()};
_.J.onCloseBuyFlow=function(){_.s9(this.hostElement,"picker-cancelled")};
_.J.onCloseClick=function(){_.s9(this.hostElement,"picker-cancelled");var A;((A=this.data)==null?0:A.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.C(this.data.closeButton,_.zf))};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.s9(this.hostElement,"picker-cancelled")};
gq.prototype.observeSelected=gq.prototype.observeSelected;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],gq.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],gq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gq.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gq.prototype,"id",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gq.prototype,"selected",void 0);_.V([_.n(),_.H("design:type",Object)],gq.prototype,"closeButtonId",void 0);_.V([_.ev("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gq.prototype,"observeSelected",null);
_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],gq);
_.Y(gq,"yt-live-chat-product-picker-panel-view-model",function(){if(yOu===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Wiu===void 0&&(Wiu=document.createElement("template"));var X=Wiu;f.call(t,X.content.cloneNode(!0),A.content.firstChild);yOu=A}A=yOu;return A},{mode:0});var vBl;var Li3;var wq=function(){var A=_.F.apply(this,arguments)||this;A.iconId="";A.icon="";A.disabled=!1;A.systemIcons=_.M("kevlar_system_icons");return A};
_.R(wq,_.F);_.J=wq.prototype;_.J.computeIconId=function(A){return A&&A.icon&&A.icon.iconType?A.icon.iconType.toLowerCase():""};
_.J.computeIcon=function(A){return A&&A.icon&&A.icon.iconType?(A=A.icon.iconType.toLowerCase(),(A.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+A):""};
_.J.computeDisabled=function(A){return!!A};
_.J.computeCommand=function(A,t){return t?void 0:A};
_.J.computeTooltip=function(A,t){return t&&A?A:""};
_.J.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.PV.Object.defineProperties(wq.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var A="",t,f,X;if((t=this.data)==null?0:(f=t.text)==null?0:(X=f.runs)==null?0:X.length)A=this.data.text.runs[0].text||"";else{var Q,q;if((Q=this.data)==null?0:(q=Q.text)==null?0:q.simpleText)A=this.data.text.simpleText}var e,G,N;if((e=this.data)==null?0:(G=e.subtext)==null?0:(N=G.runs)==null?0:N.length)A&&(A+=". "),A+=this.data.subtext.runs[0].text||"";else{var z,T;if((z=this.data)==null?0:(T=z.subtext)==
null?0:T.simpleText)A&&(A+=". "),A+=this.data.subtext.simpleText}return A}}});
_.V([_.b(_.xa.YtEndpointBehavior),_.H("design:type",Object)],wq.prototype,"ytEndpointBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wq.prototype,"data",void 0);_.V([_.n({computed:"computeIconId(data)",reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"iconId",void 0);
_.V([_.n({computed:"computeIcon(data)",reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"icon",void 0);_.V([_.n({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"disabled",void 0);_.V([_.n({computed:"computeCommand(data.command, disabled)"}),_.H("design:type",Object)],wq.prototype,"command",void 0);_.V([_.n({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.H("design:type",String)],wq.prototype,"tooltip",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"systemIcons",void 0);_.V([_.y("data.text","data.subtext"),_.n(),_.H("design:type",String),_.H("design:paramtypes",[])],wq.prototype,"ariaLabel",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],wq);
_.Y(wq,"yt-live-chat-product-button-renderer",function(){if(Li3===void 0){var A=document.createElement("template");_.m(A,'\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" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;vBl===void 0&&(vBl=document.createElement("template"));var X=vBl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Li3=A}A=Li3;return A},{mode:0});var pQb;var EBf;var sK=function(){var A=_.F.apply(this,arguments)||this;A.selected=!1;A.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return A};
_.R(sK,_.F);_.J=sK.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.computeId=function(A){return A.id||""};
_.J.onCloseClick=function(){_.s9(this.hostElement,"picker-cancelled")};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var A=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");A.length&&A[0].focus()};
_.J.onCloseBuyFlow=function(){_.s9(this.hostElement,"picker-cancelled")};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.s9(this.hostElement,"picker-cancelled")};
sK.prototype.observeSelected=sK.prototype.observeSelected;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],sK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sK.prototype,"data",void 0);
_.V([_.n({computed:"computeId(data)",reflectToAttribute:!0}),_.H("design:type",String)],sK.prototype,"id",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],sK.prototype,"selected",void 0);_.V([_.ev("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sK.prototype,"observeSelected",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],sK);
_.Y(sK,"yt-live-chat-product-picker-renderer",function(){if(EBf===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;pQb===void 0&&(pQb=document.createElement("template"));var X=pQb;f.call(t,X.content.cloneNode(!0),A.content.firstChild);EBf=A}A=EBf;return A},{mode:0});var nBf;var DAF;var Fib;var I3W;var k0=function(){return _.F.apply(this,arguments)||this};
_.R(k0,_.F);k0.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()};
k0.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
k0.prototype.created=function(){this.ids={background:_.Ku(),maskOne:_.Ku(),maskTwo:_.Ku(),gradient:_.Ku(),largeBackground:_.Ku(),largeGradientOne:_.Ku(),largeGradientTwo:_.Ku(),largeGradientPath:_.Ku()}};
k0.prototype.maybeLoadAnimationBackground=k0.prototype.maybeLoadAnimationBackground;_.V([_.n({value:!1}),_.H("design:type",Boolean)],k0.prototype,"useLargeBackground",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],k0.prototype,"useAnimationBackground",void 0);_.V([_.n({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.H("design:type",Boolean)],k0.prototype,"useRegularBackground",void 0);
_.V([_.n(),_.H("design:type",Object)],k0.prototype,"ids",void 0);_.V([_.n(),_.H("design:type",Object)],k0.prototype,"lottieAnimation",void 0);_.V([_.lo("#animation-background"),_.H("design:type",HTMLDivElement)],k0.prototype,"animationBackground",void 0);_.V([_.ev("useAnimationBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],k0.prototype,"maybeLoadAnimationBackground",null);
_.V([_.WU({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],k0);
_.Y(k0,"yt-live-interactivity-component-background",function(){if(I3W===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Fib===void 0&&(Fib=document.createElement("template"));var X=Fib;f.call(t,X.content.cloneNode(!0),A.content.firstChild);I3W=A}A=I3W;return A},{mode:0});var rq=function(){var A=_.F.apply(this,arguments)||this;A.characterCount=0;A.showInputErrorMessage=!1;A.startQnaRequestInFlight=!1;A.modern=_.M("web_button_rework_with_live");A.buttonOverrides={style:"mono",type:"filled"};A.closeButtonOverrides={iconPosition:"icon-only"};A.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return A};
_.R(rq,_.F);_.J=rq.prototype;
_.J.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]]"}}}}}};
_.J.onCharacterCountChanged=function(A){var t,f,X,Q,q=(f=_.C(this==null?void 0:(t=this.data)==null?void 0:t.creatorCallForQuestions,zGu))==null?void 0:(X=f.inputField)==null?void 0:(Q=X.liveChatTextInputFieldRenderer)==null?void 0:Q.maxCharacterLimit,e,G;q!=null&&(A==null?void 0:(e=A.detail)==null?void 0:e.characterCount)!=null&&_.C(this==null?void 0:(G=this.data)==null?void 0:G.startButton,_.Gf)&&(t=A.detail.characterCount>q,this.set("data.startButton.buttonRenderer.isDisabled",A.detail.characterCount===
0||t),this.showInputErrorMessage=t)};
_.J.onCloseClick=function(){_.s9(this.hostElement,"picker-cancelled");_.kJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onPickerCancelled=function(){var A=_.sF(this.hostElement).querySelector("#qna-creator-text-input-field");A&&A.setLiveChatRichMessageInput(null)};
_.J.handleOpenQnaStartPanel=function(){var A=_.sF(this.hostElement).querySelector("#qna-creator-text-input-field");A&&A.focus()};
_.J.handleStartButtonAction=function(A){var t=this;if(A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),A=A.detail.args[1])){var f=_.sF(this.hostElement).querySelector("#qna-creator-text-input-field"),X;(f==null?0:(X=f.liveChatRichMessageInput)==null?0:X.textSegments)&&f.liveChatRichMessageInput.textSegments.length!==0&&(X={rich_message:_.n1(f.liveChatRichMessageInput)},_.Al(this.hostElement,[A,X]).then(function(){_.s9(t.hostElement,"picker-cancelled")}))}};
_.J.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(A){var t;A=A==null?void 0:(t=A.detail)==null?void 0:t.data;(A==null?0:A.actions)&&A.actions.length>0?this.startQnaRequestInFlight=!1:_.kJ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
rq.prototype.handleServiceRequestError=rq.prototype.handleServiceRequestError;rq.prototype.handleServiceRequestCompleted=rq.prototype.handleServiceRequestCompleted;rq.prototype.handleServiceRequestSent=rq.prototype.handleServiceRequestSent;rq.prototype.onPickerCancelled=rq.prototype.onPickerCancelled;rq.prototype.onCharacterCountChanged=rq.prototype.onCharacterCountChanged;_.V([_.n(),_.H("design:type",Object)],rq.prototype,"characterCount",void 0);
_.V([_.n(),_.H("design:type",Object)],rq.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rq.prototype,"showInputErrorMessage",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rq.prototype,"startQnaRequestInFlight",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rq.prototype,"modern",void 0);_.V([_.n(),_.H("design:type",Object)],rq.prototype,"buttonOverrides",void 0);
_.V([_.n(),_.H("design:type",Object)],rq.prototype,"closeButtonOverrides",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],rq.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.b(_.P4.YtLiveChatItemBehavior),_.H("design:type",_.T4)],rq.prototype,"ytLiveChatItemBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],rq.prototype,"ytActionHandlerBehavior",void 0);_.V([_.UQ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],rq.prototype,"onCharacterCountChanged",null);_.V([_.UQ("picker-cancelled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rq.prototype,"onPickerCancelled",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rq.prototype,"handleServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],rq.prototype,"handleServiceRequestCompleted",null);
_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],rq.prototype,"handleServiceRequestError",null);_.V([_.y_({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],rq);
_.Y(rq,"yt-live-chat-qna-start-panel-renderer",function(){if(DAF===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;nBf===void 0&&(nBf=document.createElement("template"));var X=nBf;f.call(t,X.content.cloneNode(!0),A.content.firstChild);DAF=A}A=DAF;return A},{mode:0});var xAr;var ji3;var A3=function(){return _.F.apply(this,arguments)||this};
_.R(A3,_.F);A3.prototype.dismiss=function(){_.s9(this.hostElement,"yt-live-chat-error-message-dismiss")};
A3.prototype.edit=function(){_.s9(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.V([_.n(),_.H("design:type",Object)],A3.prototype,"data",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],A3);
_.Y(A3,"yt-live-chat-text-actions-error-message-renderer",function(){if(ji3===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;xAr===void 0&&(xAr=document.createElement("template"));var X=xAr;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ji3=A}A=ji3;return A},{mode:0});var Yvb;var VYi;var Z4i;var oBW;var t3=function(){var A=_.F.apply(this,arguments)||this;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.newnessDotEligible=!1;return A};
_.R(t3,_.F);t3.prototype.sendReaction=function(){var A,t,f=((A=this.data)==null?void 0:A.emojiId)||((t=this.data)==null?void 0:t.emoteId),X;f&&((X=this.data)==null?0:X.shouldTriggerAnimation)&&_.kJ(this.hostElement,"yt-create-user-reaction-animation",[f]);var Q;(A=_.bP((Q=this.data)==null?void 0:Q.onTap))&&_.Qx(A,this.hostElement);this.showNewnessDot&&_.kJ(this.hostElement,"yt-hide-newness-dot")};
t3.prototype.onClick=function(A){(!A||A.clientX||A.clientY)&&this.sendReaction()};
t3.prototype.onKeyDown=function(A){A.key!=="Enter"&&A.key!==" "||A.repeat||this.sendReaction()};
_.PV.Object.defineProperties(t3.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var A,t;return!!(((A=this.data)==null?0:A.emojiId)||((t=this.data)==null?0:t.emoteId))}}});
_.V([_.n(),_.H("design:type",Object)],t3.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],t3.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",Object)],t3.prototype,"newnessDotEligible",void 0);_.V([_.y("data.maybeShowNewnessDot"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],t3.prototype,"showNewnessDot",null);_.V([_.y("data.emojiId","data.emoteId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],t3.prototype,"useYtImage",null);
_.V([_.WU({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],t3);
_.Y(t3,"yt-reaction-control-panel-button-view-model",function(){if(oBW===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Z4i===void 0&&(Z4i=document.createElement("template"));var X=Z4i;f.call(t,X.content.cloneNode(!0),A.content.firstChild);oBW=A}A=oBW;return A},{mode:0});var dAx;var Svu;var fz=function(){var A=_.F.apply(this,arguments)||this;A.reactionControlPanelExpanded=!1;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.newnessDotEligible=!1;return A};
_.R(fz,_.F);_.J=fz.prototype;_.J.expandedButtonsChanged=function(){var A,t;_.Q_(this.hostElement,{"--expanded-buttons-height":((t=(A=this.expandedButtonsData)==null?void 0:A.length)!=null?t:0)*36+"px"})};
_.J.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}}};
_.J.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.J.onMouseLeave=function(){var A=this;this.collapseTimer=setTimeout(function(){A.reactionControlPanelExpanded=!1},500)};
_.J.onFocusIn=function(){this.onMouseEnter()};
_.J.onFocusOut=function(){this.onMouseLeave()};
_.J.onCollapsedButtonFocusIn=function(){var A=this;setTimeout(function(){var t;(t=A.expandedButtons.querySelector("button"))==null||t.focus()},100)};
_.J.onCollapsedButtonFocusOut=function(A){A.stopPropagation()};
_.PV.Object.defineProperties(fz.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var A,t;return _.VG.unsafeClone((A=this.liveReactionsData)==null?void 0:A.emojiButtonData)||((t=this.data)==null?void 0:t.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var A;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((A=this.data)==null||!A.maybeShowNewnessDot)}}});
fz.prototype.expandedButtonsChanged=fz.prototype.expandedButtonsChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],fz.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fz.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fz.prototype,"reactionControlPanelExpanded",void 0);_.V([_.n({selectorArgs:["data.liveReactionsDataEntityKey"],selector:xpi}),_.H("design:type",Object)],fz.prototype,"liveReactionsData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],fz.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",Object)],fz.prototype,"newnessDotEligible",void 0);
_.V([_.y("liveReactionsData","data.expandedButtons"),_.H("design:type",Object),_.H("design:paramtypes",[])],fz.prototype,"expandedButtonsData",null);_.V([_.y("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.n({reflectToAttribute:!0}),_.H("design:type",Object),_.H("design:paramtypes",[])],fz.prototype,"showNewnessDot",null);_.V([_.lo("#expanded-buttons"),_.H("design:type",HTMLElement)],fz.prototype,"expandedButtons",void 0);
_.V([_.ev("expandedButtonsData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fz.prototype,"expandedButtonsChanged",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],fz);
_.Y(fz,"yt-reaction-control-panel-view-model",function(){if(Svu===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;dAx===void 0&&(dAx=document.createElement("template"));var X=dAx;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Svu=A}A=Svu;return A},{mode:0});var X4=new _.kt("yt-live-chat"),$Ab=Date.parse("2024-7-24"),QF=function(){var A=_.F.apply(this,arguments)||this;A.emojiManager=_.z4;A.newnessDotEligible=!1;A.newnessDotImpressionCounted=!1;A.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return A};
_.R(QF,_.F);_.J=QF.prototype;_.J.emojiCustomizationEnabledChanged=function(){var A;((A=this.data)==null?0:A.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((A=X4.getCreationTime("emoji-customization-count"))&&A<$Ab&&X4.set("emoji-customization-count","0"),A=Number(X4.get("emoji-customization-count"))||0,A<3&&(this.newnessDotEligible=!0,X4.set("emoji-customization-count",(A+1).toString())),this.newnessDotImpressionCounted=!0)};
_.J.hideNewnessDot=function(){this.newnessDotEligible=!1;X4.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.J.handleReactionsMute=function(A){var t=_.Ws(),f=_.Xl(206221),X={checkboxData:{state:A?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};t&&_.o7(t,f,X);this.reactionsMuted=A};
_.J.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.J.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}}};
_.PV.Object.defineProperties(QF.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var A;return(!((A=this.liveReactionsData)==null||!A.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
QF.prototype.liveReactionsSettingChanged=QF.prototype.liveReactionsSettingChanged;QF.prototype.emojiCustomizationEnabledChanged=QF.prototype.emojiCustomizationEnabledChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Qv),_.H("design:type",Object)],QF.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],QF.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],QF.prototype,"data",void 0);_.V([_.n(),_.H("design:type",_.lw)],QF.prototype,"emojiManager",void 0);_.V([_.n(),_.H("design:type",Object)],QF.prototype,"newnessDotEligible",void 0);_.V([_.n(),_.H("design:type",Object)],QF.prototype,"newnessDotImpressionCounted",void 0);
_.V([_.n({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:jhj}),_.H("design:type",Boolean)],QF.prototype,"liveReactionsSetting",void 0);_.V([_.n({selectorArgs:["data.liveReactionsDataEntityKey"],selector:xpi}),_.H("design:type",Object)],QF.prototype,"liveReactionsData",void 0);_.V([_.n({value:function(){var A=_.M("enable_lwe_web_mute"),t=X4.get("allow-reactions");return t===void 0?!1:!t&&A}}),
_.H("design:type",Boolean)],QF.prototype,"reactionsMuted",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QF.prototype,"liveReactionsEnabled",null);_.V([_.ev("data.emojiCustomizationEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QF.prototype,"emojiCustomizationEnabledChanged",null);
_.V([_.ev("liveReactionsEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QF.prototype,"liveReactionsSettingChanged",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],QF);
_.Y(QF,"yt-reaction-control-panel-overlay-view-model",function(){if(VYi===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Yvb===void 0&&(Yvb=document.createElement("template"));var X=Yvb;f.call(t,X.content.cloneNode(!0),A.content.firstChild);VYi=A}A=VYi;return A},{mode:0});var H4b={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(A){var t=this.$.pickers.selected;if(t){_.sF(this.hostElement).removeAttribute(t+"-open");var f="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(f="#picker-buttons",t==="emoji"&&_.sF(this.hostElement).querySelector("#emoji-picker-button")&&(f="#emoji-picker-button"));if(f=_.sF(this.hostElement).querySelector(f).querySelector("#"+t))f.active=!1}f=A;t==A&&(f=null);t!=
A&&_.sF(this.hostElement).setAttribute(A+"-open","");this.$.pickers.selected=f;_.kJ(this.hostElement,"yt-live-chat-picker-changed",[f])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var qZ=function(){var A=_.F.apply(this,arguments)||this;A.numSentMessages=0;A.timeoutDurationMs=0;A.timeoutMs=0;A.lastTimeoutTimeMs=0;A.pendingMessageId="";A.hasFiredInitialFocusActions=!1;A.isBeforeFocusEnabled=!0;A.id="";A.characterCount=0;A.maxCharacterLimit=0;A.remainingCharacterCount=0;A.inputExpanded=!1;A.buttonOverrides={iconPosition:"icon-only"};A.inReplyPanel=!1;A.countdownRatio=0;A.isTooltipVisible=!1;A.tooltipTimeout=1E4;A.systemIcons=_.M("kevlar_system_icons");A.tallerEmojiPicker=_.M("live_chat_taller_emoji_picker");
A.sendReplyMessageInFlight=!1;A.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"};A.onResize=function(){A.maybeToggleCharacterCount()};
return A};
_.R(qZ,_.F);_.J=qZ.prototype;
_.J.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"}}}};
_.J.attached=function(){window.addEventListener("resize",this.onResize)};
_.J.detached=function(){window.removeEventListener("resize",this.onResize)};
_.J.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.J.sendMessage=function(){var A=this,t,f,X,Q;return _.l(function(q){if(A.sendDisabled)return q.return();A.isTooltipVisible&&_.kJ(A.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(A.data.sendButton&&A.data.sendButton.buttonRenderer){A.input.completeEmojis();t=A.data.sendButton.buttonRenderer.serviceEndpoint;if(!t)return q.return();X=((f=_.C(t,_.C1T))==null?void 0:f.clientIdPrefix)||"";Q={client_message_id:X+String(A.numSentMessages++),rich_message:_.n1(A.input.liveChatRichMessageInput)};
A.pendingMessageId=Q.client_message_id;A.inReplyPanel&&(A.sendReplyMessageInFlight=!0);_.Al(A.hostElement,[t,Q]);A.input.setLiveChatRichMessageInput(null)}_.LO(q)})};
_.J.handleSendButtonAction=function(A){A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),this.sendMessage())};
_.J.onSendCompleted=function(A,t){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(A=this.get("timeoutDurationUsec",t.data))&&this.handleTimeout(Number(A)/1E3);this.errorMessage=this.get("errorMessage",t.data);this.pendingMessageId=""};
_.J.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.kJ(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.J.handlePickerButtonToggle=function(A){A=A.detail.targetId;this.ytPickerBehavior.togglePicker_(A);if(A==="emoji")this.input.focus();else if(A==="qna-start-panel"){var t,f;(t=_.sF(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(f=t.querySelector("#qna-creator-text-input-field"))==null||f.focus()}};
_.J.onComponentReplaced=function(A){var t,f;A.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((t=A.replacement.liveChatMessageInputRenderer)==null?0:(f=t.headerRenderer)==null?0:f.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.J.onEmojiSelect=function(A){this.input.focus();this.input.insertEmoji(A.detail)};
_.J.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.J.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.kJ(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.kJ(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.J.onOpenPopupAction=function(A,t){var f=this;t===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.kJ(f.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.J.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.J.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.J.focusChanged=function(){this.maybeToggleCharacterCount()};
_.J.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var A=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",A>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.J.computeId=function(){return this.data&&this.data.targetId||""};
_.J.computeSendDisabled=function(A,t,f,X){A=!!(!A||t&&A>t||X);(t=_.sF(this.hostElement).querySelector("#send-button"))&&t.children.length&&(t.children[0].disabled=A);return A};
_.J.handleTimeout=function(A){this.timeoutDurationMs=this.timeoutMs=A;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.J.updateTimeout=function(A){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(A-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=A,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.J.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.J.onErrorMessageEdit=function(A){this.input.setLiveChatRichMessageInput(A.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.J.errorMessageChanged=function(){var A=this;_.FD(function(){_.kJ(A.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.J.computeAuthorNameColor=function(A){var t;if(_.M("live_chat_author_name_color_usernames")&&(A==null?0:(t=A.authorName)==null?0:t.simpleText))return _.z8q(_.PDl(A.authorName.simpleText));if(_.M("live_chat_seed_color_usernames")&&(A==null?0:A.authorSeedColorArgb))return _.z8q(_.rR(A.authorSeedColorArgb));if(_.M("live_chat_colored_usernames"))return"#cc0000";var f;return _.M("live_chat_simple_color_usernames")&&(A==null?0:(f=A.authorName)==null?0:f.simpleText)&&(A==null?0:A.authorUsernameColorLight)&&
(A==null?0:A.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.rR(A.authorUsernameColorDark):_.rR(A.authorUsernameColorLight):""};
_.J.onIsTooltipVisibleChanged=function(){var A=_.sF(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){A.hidden=!1;A.setAttribute("role","alert")},0):(A.hidden=!0,A.removeAttribute("role"))};
_.J.onFocusedChanged=function(A){this.inputFocused=A.detail.value};
_.PV.Object.defineProperties(qZ.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 A;return!((A=this.data)==null||!A.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:(t=A.pickers)==null?void 0:t.find(function(f){return f.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return A?this.ytRendererBehavior.getSimpleString(A):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
qZ.prototype.onIsTooltipVisibleChanged=qZ.prototype.onIsTooltipVisibleChanged;qZ.prototype.errorMessageChanged=qZ.prototype.errorMessageChanged;qZ.prototype.onErrorMessageEdit=qZ.prototype.onErrorMessageEdit;qZ.prototype.onErrorMessageDismiss=qZ.prototype.onErrorMessageDismiss;qZ.prototype.focusChanged=qZ.prototype.focusChanged;qZ.prototype.characterCountChanged=qZ.prototype.characterCountChanged;qZ.prototype.onEmojiSelect=qZ.prototype.onEmojiSelect;qZ.prototype.handlePickerButtonToggle=qZ.prototype.handlePickerButtonToggle;
qZ.prototype.onSendError=qZ.prototype.onSendError;qZ.prototype.onSendCompleted=qZ.prototype.onSendCompleted;qZ.prototype.sendMessage=qZ.prototype.sendMessage;qZ.prototype.dataChanged=qZ.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],qZ.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(H4b.YtPickerBehavior),_.H("design:type",Object)],qZ.prototype,"ytPickerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qX.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],qZ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"hasFiredInitialFocusActions",void 0);
_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"isBeforeFocusEnabled",void 0);_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"data",void 0);_.V([_.n({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",Object)],qZ.prototype,"id",void 0);_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"characterCount",void 0);_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"maxCharacterLimit",void 0);
_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"remainingCharacterCount",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qZ.prototype,"inputExpanded",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],qZ.prototype,"inputFocused",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],qZ.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.V([_.n(),_.H("design:type",_.c4)],qZ.prototype,"participantsManager",void 0);
_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"buttonOverrides",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qZ.prototype,"inReplyPanel",void 0);_.V([_.y("characterCount, maxCharacterLimit, countdownActive"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qZ.prototype,"sendDisabled",null);_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"countdownRatio",void 0);
_.V([_.y("countdownRatio"),_.H("design:type",Number),_.H("design:paramtypes",[])],qZ.prototype,"countdownStrokeDashOffset",null);_.V([_.y("countdownRatio"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qZ.prototype,"countdownActive",null);_.V([_.y("data.interactionMessage"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qZ.prototype,"hasInteractionMessage",null);
_.V([_.y("data.emojiPickerButton"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qZ.prototype,"hasEmojiPickerButton",null);_.V([_.y("data, characterCount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qZ.prototype,"showAvatar",null);_.V([_.y("data.pickers"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qZ.prototype,"hasProductPickerPanelViewModel",null);
_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"errorMessage",void 0);_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"genericErrorMessage",void 0);_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"isTooltipVisible",void 0);_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"tooltipTimeout",void 0);_.V([_.y("data.onInitialFocusCommand"),_.H("design:type",String),_.H("design:paramtypes",[])],qZ.prototype,"tooltipMessage",null);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qZ.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qZ.prototype,"tallerEmojiPicker",void 0);_.V([_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],qZ.prototype,"authorNameColor",null);_.V([_.n(),_.H("design:type",Object)],qZ.prototype,"sendReplyMessageInFlight",void 0);_.V([_.lo("#input"),_.H("design:type",_.f6p)],qZ.prototype,"input",void 0);
_.V([_.lo("#count"),_.H("design:type",HTMLElement)],qZ.prototype,"count",void 0);_.V([_.lo("#input-container"),_.H("design:type",HTMLElement)],qZ.prototype,"inputContainer",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"dataChanged",null);_.V([_.UQ("yt-live-chat-send-message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],qZ.prototype,"sendMessage",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[Event,_.oM]),_.H("design:returntype")],qZ.prototype,"onSendCompleted",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"onSendError",null);
_.V([_.UQ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],qZ.prototype,"handlePickerButtonToggle",null);_.V([_.UQ("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],qZ.prototype,"onEmojiSelect",null);
_.V([_.ev("characterCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"characterCountChanged",null);_.V([_.ev("inputFocused"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"focusChanged",null);_.V([_.UQ("yt-live-chat-error-message-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"onErrorMessageDismiss",null);
_.V([_.UQ("yt-live-chat-error-message-edit"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],qZ.prototype,"onErrorMessageEdit",null);_.V([_.ev("errorMessage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"errorMessageChanged",null);_.V([_.ev("isTooltipVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"onIsTooltipVisibleChanged",null);
_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],qZ);
_.Y(qZ,"yt-live-chat-message-input-renderer",function(){if(zEH===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;uOl===void 0&&(uOl=document.createElement("template"));var X=uOl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);zEH=A}A=zEH;return A},{mode:0});var a3i;var Kib;var J3=function(){var A=_.F.apply(this,arguments)||this;A.systemIcons=_.M("kevlar_system_icons");A.firedOnClickCommand=!1;A.inReplyPanel=!1;return A};
_.R(J3,_.F);
J3.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"}}}};
J3.prototype.onButtonToggle=function(A){A.target.disabled||this.ytPickerBehavior.togglePicker_(A.detail.targetId)};
J3.prototype.onClick=function(){var A=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.kJ(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return A.firedOnClickCommand=!1},5E3))};
_.PV.Object.defineProperties(J3.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:(t=A.panels)==null?void 0:t.find(function(f){return f.liveChatProductPickerPanelViewModel}))!==void 0}}});
J3.prototype.onButtonToggle=J3.prototype.onButtonToggle;_.V([_.b(H4b.YtPickerBehavior),_.H("design:type",Object)],J3.prototype,"ytPickerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],J3.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],J3.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!1}),_.H("design:type",Object)],J3.prototype,"firedOnClickCommand",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],J3.prototype,"inReplyPanel",void 0);_.V([_.y("data.pickers"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],J3.prototype,"hasProductPickerPanelViewModel",null);
_.V([_.UQ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],J3.prototype,"onButtonToggle",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],J3);
_.Y(J3,"yt-live-chat-restricted-participation-renderer",function(){if(Kib===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;a3i===void 0&&(a3i=document.createElement("template"));var X=a3i;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Kib=A}A=Kib;return A},{mode:0});var Uf=function(){var A=_.F.apply(this,arguments)||this;A.genericErrorMessage=_.oC("Error, try again.");A.inReplyPanel=!1;A.hideBorder=!1;return A};
_.R(Uf,_.F);Uf.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}}}}}};
_.PV.Object.defineProperties(Uf,{template:{configurable:!0,enumerable:!0,get:function(){return UAx()}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Uf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Uf.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Uf.prototype,"genericErrorMessage",void 0);_.V([_.n(),_.H("design:type",Object)],Uf.prototype,"inReplyPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Uf.prototype,"hideBorder",void 0);
_.V([_.WU({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Uf);_.Y(Uf,"yt-live-chat-engagement-panel-input-renderer",function(){return UAx()},{mode:0});var gBW,wQW;gBW=_.Xl(115994);wQW=_.Xl(115993);_.ey=function(A,t,f){var X=this;var Q=f.dragDownAction;this.layer=0;this.JSC$23051_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return X.dragDownAction()}}}};
this.JSC$23051_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return X.dragDownAction()}}}};
this.fullscreen=!1;var q=_.er();_.Yz(q,gBW,this.layer);_.Yz(q,wQW,this.layer);this.dragDownAction=function(){Q();_.FR(q,{visualElement:X.fullscreen?gBW:wQW})};
this.gesture=new _.IL(A,t,this.getConfig(!1),"pandown");this.attach()};
_.ey.prototype.attach=function(){this.gesture.attach()};
_.ey.prototype.detach=function(){this.gesture.detach()};
_.ey.prototype.update=function(A){this.fullscreen=A;var t=this.gesture;A=this.getConfig(A);t.config=A};
_.ey.prototype.getConfig=function(A){return A?this.JSC$23051_watchFullScreenConfig:this.JSC$23051_watchConfig};var siW={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(A){if(A&&A.length==1&&Array.isArray(A[0].loggingUrls)){A=_.VG.unsafeClone(A[0]);var t=this.macros||{},f=this.getAdModuleClient_();if(!f)return _.ff();A.loggingUrls.forEach(function(X){if(X.baseUrl){var Q=X.baseUrl;var q=t;q=q===void 0?{}:q;Q=f.getOptions().includes("replaceUrlMacros")?_.C9K(f,"replaceUrlMacros",{url:Q,additionalMapping:q}):Q;X.baseUrl=Q}},this);
A=[A]}return _.Al(this.hostElement,A)},
getAdModuleClient_:function(){var A=_.K1(this);return A?(A=A.getPlayer())?new _.fh(A):null:null}}]};var kOy;var rOx;var G1=function(){return _.F.apply(this,arguments)||this};
_.R(G1,_.F);G1.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],G1.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],G1);
_.Y(G1,"ytd-compact-tvfilm-entry-point-renderer",function(){if(rOx!==void 0)return rOx;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return rOx=A},{mode:1});var A4i;var tUx;var f_i;var lp=function(){return _.F.apply(this,arguments)||this};
_.R(lp,_.F);lp.prototype.ready=function(){this.initializeDefs()};
lp.prototype.initializeDefs=function(){var A=this.meta.byKey("yt-icons"),t=_.sF(A).querySelector("#star"),f=_.sF(A).querySelector("#star_half");A=_.sF(A).querySelector("#star_border");t&&this.defs.appendChild(t.cloneNode(!0));f&&this.defs.appendChild(f.cloneNode(!0));A&&this.defs.appendChild(A.cloneNode(!0))};
lp.prototype.percentChanged=function(){for(var A=this.rating;A.firstChild;)A.removeChild(A.firstChild);var t=Math.round(this.percent/10);A=Math.floor(t/2);t%=2;var f=5-A-t;this.appendStars("star",A,0);this.appendStars("star_half",t,A);this.appendStars("star_border",f,A+t)};
lp.prototype.appendStars=function(A,t,f){for(var X=0;X<t;X++){var Q=(18+this.spacing)*(X+f),q=document.createElementNS("http://www.w3.org/2000/svg","use");_.Ft8(q,"#"+A);q.setAttribute("x",""+Q);q.setAttribute("y","0");this.rating.appendChild(q)}};
lp.prototype.percentChanged=lp.prototype.percentChanged;_.V([_.lo("#defs"),_.H("design:type",HTMLElement)],lp.prototype,"defs",void 0);_.V([_.lo("#rating"),_.H("design:type",HTMLElement)],lp.prototype,"rating",void 0);_.V([_.n(),_.H("design:type",Number)],lp.prototype,"percent",void 0);_.V([_.n({value:6}),_.H("design:type",Number)],lp.prototype,"spacing",void 0);_.V([_.n({value:_.IY.create("iron-meta",{type:"iconset"})}),_.H("design:type",_.Sm)],lp.prototype,"meta",void 0);
_.V([_.ev("percent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lp.prototype,"percentChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-ratings"})],lp);
_.Y(lp,"ytd-ratings",function(){if(f_i!==void 0)return f_i;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return f_i=A},{mode:1});var X93=function(){return _.F.apply(this,arguments)||this};
_.R(X93,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],X93.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],X93.prototype,"data",void 0);_.V([_.y_({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],X93);
_.Y(X93,"ytd-offer-review-renderer",function(){if(tUx!==void 0)return tUx;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return tUx=A},{mode:1});var NZ=function(){var A=_.F.apply(this,arguments)||this;A.badges=[{textBadge:{label:_.oC("CC")}}];return A};
_.R(NZ,_.F);_.J=NZ.prototype;_.J.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.J.dataChanged=function(){var A=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(A&&A.commandMetadata&&_.C(A.commandMetadata,_.HL)&&_.C(A.commandMetadata,_.HL).fireAutomatically)_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}});else{var t;A&&((t=_.C(A,_.HL))==null?0:t.fireAutomatically)&&_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}})}};
_.J.isEmptyContent=function(A){return this.isStorefrontEntryPointEmpty(A)&&this.shouldHideOfferModule(A)};
_.J.isStorefrontEntryPointEmpty=function(A){return!A||!A.storefrontEntryPoint};
_.J.shouldHideOfferModule=function(A){return!!A.hideVideoDetails};
_.J.isOfferModuleNavigationInactive=function(A){return!A.navigationEndpoint&&!A.serviceEndpoint};
_.J.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.Px().resolve(_.i2).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
NZ.prototype.dataChanged=NZ.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],NZ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.H("design:type",Boolean)],NZ.prototype,"hidden",void 0);
_.V([_.n(),_.H("design:type",Object)],NZ.prototype,"badges",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NZ.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],NZ);
_.Y(NZ,"ytd-movie-offer-module-renderer",function(){if(A4i!==void 0)return A4i;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return A4i=A},{mode:1});var Qwy;var qIi=function(){return _.F.apply(this,arguments)||this};
_.R(qIi,_.F);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],qIi.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qIi.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],qIi);
_.Y(qIi,"ytd-media-masthead-renderer",function(){if(Qwy!==void 0)return Qwy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Qwy=A},{mode:1});var J4W;_.Hn(_.qx8,"course-metadata-view-model",{props:{data:_.dt,isOverlay:_.dt}});var up=function(){var A=_.F.apply(this,arguments)||this;A.isMetadataVisible=!1;A.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return A};
_.R(up,_.F);_.J=up.prototype;
_.J.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"}}}}};
_.J.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.J.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.J.expanderChanged=function(){var A;if((A=this.data)==null?0:A.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.J.isExpandButtonToggled=function(){var A,t;return(t=_.C((A=this.data)==null?void 0:A.expandMetadataButton,_.Tf))==null?void 0:t.isToggled};
_.J.onVisibilityButtonClick=function(){var A;if((A=this.data)==null?0:A.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.J.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
up.prototype.expanderChanged=up.prototype.expanderChanged;up.prototype.dataChanged=up.prototype.dataChanged;up.prototype.descriptionChanged=up.prototype.descriptionChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b([_.jD.YtActionHandlerBehavior]),_.H("design:type",Object)],up.prototype,"actionHandlerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],up.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],up.prototype,"isMetadataVisible",void 0);_.V([_.lo("#expander"),_.H("design:type",Object)],up.prototype,"expander",void 0);_.V([_.ev("data.description"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],up.prototype,"descriptionChanged",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],up.prototype,"dataChanged",null);_.V([_.ev("isMetadataVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],up.prototype,"expanderChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],up);
_.Y(up,"ytd-tvfilm-offer-module-renderer",function(){if(J4W!==void 0)return J4W;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return J4W=A},{mode:2});var U9Q;var z1=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return A};
_.R(z1,_.F);z1.prototype.dataChanged=function(){this.hostElement.hidden=!1};
z1.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
z1.prototype.onThumbnailTap=function(A){this.data&&this.data.serviceEndpoint&&(_.Px().resolve(_.i2).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),A.stopPropagation())};
z1.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
z1.prototype.dataChanged=z1.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],z1.prototype,"rendererBehaviors",void 0);_.V([_.b([_.jD.YtActionHandlerBehavior]),_.H("design:type",Object)],z1.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],z1.prototype,"data",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],z1.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],z1);
_.Y(z1,"ytd-unlimited-offer-module-renderer",function(){if(U9Q!==void 0)return U9Q;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return U9Q=A},{mode:1});var eMW;var GUF;var PP=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return A};
_.R(PP,_.F);PP.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
PP.prototype.handleRelatedChipCommand=function(A){A=_.C(A,LZH);var t=A.contents;t?_.r2(this.hostElement,"yt-item-section-replace-action",[t,A.targetSectionIdentifier]):_.r2(this.hostElement,"yt-item-section-continuation-action",[A.continuationData,A.targetSectionIdentifier])};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],PP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],PP.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],PP.prototype,"data",void 0);_.V([_.WU({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],PP);
_.Y(PP,"yt-related-chip-cloud-renderer",function(){if(GUF===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;eMW===void 0&&(eMW=document.createElement("template"));var X=eMW;f.call(t,X.content.cloneNode(!0),A.content.firstChild);GUF=A}A=GUF;return A},{mode:2});var T1=function(){var A=_.F.apply(this,arguments)||this;A.isTwoColumns=!0;A.watchFeedBigThumbs=_.M("kevlar_watch_feed_big_thumbs");A.watchFeedBigThumbsOnLockup=_.M("web_watch_next_big_thumbs");A.watchNextGridHideChips=_.M("kevlar_watch_grid_hide_chips");A.eligibleToSwitchToGrid=!0;A.disableShortsShelfHeightOverride=_.M("web_shorts_wn_shelf_ratio_tuning");A.isWatchNextGrid=!1;A.reuseComponents=!_.M("kevlar_watch_grid");A.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return A};
_.R(T1,_.F);_.J=T1.prototype;
_.J.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]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.M("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}}};
_.J.getItemsPath=function(){return"data.results"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.J.created=function(){this.ytLazyListBehavior.initialCount=1};
_.J.ready=function(){_.Q_(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.J.resultsChanged=function(){if(this.data&&this.data.results){for(var A=this.data.results,t=null,f=null,X=0;X<A.length;X++)A[X].relatedChipCloudRenderer?t=A[X].relatedChipCloudRenderer:A[X].itemSectionRenderer&&(f=A[X].itemSectionRenderer);if(t&&f)for(this.set("data.continuations",[]),A=_.C(t.content,_.uWE).chips,t=0;t<A.length;t++)if(X=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",A[t]),X.loadCached||!X.contents){X.contents=f.contents;break}}};
_.J.dataChanged=function(){var A=this,t;if((t=this.data)!=null&&t.results&&this.hasAllowedInstreamAd(this.playerData)){if(t=this.data.results.filter(function(G){return!!G.promotedSparklesWebRenderer})){for(var f=0;f<t.length;f++){var X=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",t[f]);
if(X)for(var Q=0;Q<X.length;Q++)X[Q]&&X[Q].baseUrl&&_.XO(X[Q].baseUrl)}this.set("data.results",this.data.results.filter(function(G){return!G.promotedSparklesWebRenderer}))}if(t=this.data.results.filter(function(G){return!!A.getSparklesAd(G)})){t=_.U(t);
for(Q=t.next();!Q.done;Q=t.next())if(X=f=void 0,Q=(f=this.getSparklesAd(Q.value))==null?void 0:(X=f.errorCommand)==null?void 0:X.loggingUrls)for(f=_.U(Q),X=f.next();!X.done;X=f.next())(X=X.value)&&X.baseUrl&&_.XO(X.baseUrl);var q,e;this.set("data.results",(q=this.data)==null?void 0:(e=q.results)==null?void 0:e.filter(function(G){return!G.adSlotRenderer}))}}};
_.J.getSparklesAd=function(A){var t,f;A=_.C((t=A.adSlotRenderer)==null?void 0:(f=t.fulfillmentContent)==null?void 0:f.fulfilledLayout,_.xH7);return _.C(A==null?void 0:A.renderingContent,KyW)};
_.J.hasAllowedInstreamAd=function(A){A=this.get("adPlacements",A)||[];for(var t=0;t<A.length;t++){var f=this.get("adPlacementRenderer.config.adPlacementConfig",A[t]);if(f&&f.suppressDisplayAd)return!0}return!1};
_.J.computeHideUnlimitedOfferModule=function(A,t){return A&&A.offerModule&&t&&A.offerModule.unlimitedOfferModuleRenderer&&A.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(t)?!0:!1};
_.J.hideUnlimitedOfferModuleChanged=function(){var A=_.sF(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");A&&(A.hidden=this.hideUnlimitedOfferModule)};
_.J.updateLockupContainerTypes=function(A){if(this.eligibleToSwitchToGrid){var t;(t=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||t.forEach(function(f){f.containerType=A})}};
_.J.computeHideTvfilmOfferModule=function(A,t){var f,X;return!!((A==null?0:(f=A.offerModule)==null?0:(X=f.tvfilmOfferModuleRenderer)==null?0:X.clientShouldSuppressIfCompanionAdDisplayed)&&t&&this.hasCompanionAds(t))};
_.J.hideTvfilmOfferModuleChanged=function(){var A=_.sF(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");A&&(A.hidden=this.hideTvfilmOfferModule)};
_.J.hasCompanionAds=function(A){A=this.get("adPlacements",A)||[];for(var t=0;t<A.length;t++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",A[t]))return!0;var f=void 0,X=void 0,Q=void 0;if(!_.M("web_watch_top_banner_companion_check_killswitch")&&((f=A[t])==null?0:(X=f.adPlacementRenderer)==null?0:(Q=X.renderer)==null?0:Q.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.J.hasSuppressedResults=function(A){return A==null?!0:A.filter(function(t){return!t.continuationItemRenderer&&!t.compactPromotedVideoRenderer&&!t.promotedSparklesWebRenderer}).length===0};
_.J.computeShowButton=function(A,t){return this.isWatchNextGrid?A:A||this.hasSuppressedResults(t)};
_.J.showButtonChanged=function(){if(this.isWatchNextGrid){var A=_.sF(this.hostElement).querySelector("ytd-rich-grid-renderer");A&&this.showButton!==null&&(A.continuationShowButton=this.showButton)}else{A=_.sF(this.hostElement).querySelector("yt-next-continuation");var t=_.sF(this.hostElement).querySelector("ytd-continuation-item-renderer"),f=_.sF(this.hostElement).querySelector("ytd-item-section-renderer");A&&(A.showButton=this.showButton);t&&(t.showButton=this.showButton);f&&(f.continuationShowButton=
this.showButton)}};
_.J.continuationTap=function(A){var t;if(((t=this.data)==null?void 0:t.continuations)!=null&&A.target.tagName==="TP-YT-PAPER-BUTTON")for(A=this.data.continuations,t=0;t<A.length;t++)A[t].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(A[t].nextContinuationData||{})};
_.J.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("shown-items-changed",this.shownItems))};
_.PV.Object.defineProperties(T1.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.shownItems)==null||!A.some(function(t){return!!t.lockupViewModel||t.compactVideoRenderer}))}}});
T1.prototype.shownItemsChangedForBinding=T1.prototype.shownItemsChangedForBinding;T1.prototype.showButtonChanged=T1.prototype.showButtonChanged;T1.prototype.hideTvfilmOfferModuleChanged=T1.prototype.hideTvfilmOfferModuleChanged;T1.prototype.updateLockupContainerTypes=T1.prototype.updateLockupContainerTypes;T1.prototype.hideUnlimitedOfferModuleChanged=T1.prototype.hideUnlimitedOfferModuleChanged;T1.prototype.dataChanged=T1.prototype.dataChanged;T1.prototype.resultsChanged=T1.prototype.resultsChanged;
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.bC.YtLazyListBehavior),_.H("design:type",Object)],T1.prototype,"ytLazyListBehavior",void 0);_.V([_.b(_.MK.YtNextContinuationBehavior),_.H("design:type",Object)],T1.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.b(_.Ba),_.H("design:type",Object)],T1.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],T1.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],T1.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],T1.prototype,"playerData",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],T1.prototype,"autoFill",void 0);_.V([_.n({value:60}),_.H("design:type",Number)],T1.prototype,"targetFramerate",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],T1.prototype,"isTwoColumns",void 0);_.V([_.n(),_.H("design:type",Object)],T1.prototype,"shownItems",void 0);_.V([_.n({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.H("design:type",Boolean)],T1.prototype,"hideUnlimitedOfferModule",void 0);_.V([_.n({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.H("design:type",Boolean)],T1.prototype,"hideTvfilmOfferModule",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],T1.prototype,"watchFeedBigThumbs",void 0);_.V([_.n(),_.H("design:type",Object)],T1.prototype,"watchFeedBigThumbsOnLockup",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],T1.prototype,"watchNextGridHideChips",void 0);_.V([_.n(),_.H("design:type",Object)],T1.prototype,"eligibleToSwitchToGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],T1.prototype,"disableShortsShelfHeightOverride",void 0);
_.V([_.n({selector:_.y6,reflectToAttribute:!0}),_.H("design:type",Object)],T1.prototype,"isGridViewEnabled",void 0);_.V([_.n({selector:_.Ais,reflectToAttribute:!0}),_.H("design:type",Object)],T1.prototype,"isSwatcherooActive",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],T1.prototype,"showMoreButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],T1.prototype,"isWatchNextGrid",void 0);
_.V([_.n({computed:"computeShowButton(showMoreButton, data.results)"}),_.H("design:type",Boolean)],T1.prototype,"showButton",void 0);_.V([_.PU("data.results.*"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],T1.prototype,"resultsChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],T1.prototype,"dataChanged",null);
_.V([_.ev("hideUnlimitedOfferModule"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],T1.prototype,"hideUnlimitedOfferModuleChanged",null);_.V([_.y("isGridViewEnabled","containsLockups","data"),_.n({reflectToAttribute:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],T1.prototype,"lockupContainerType",null);
_.V([_.ev("lockupContainerType","data"),_.H("design:type",Function),_.H("design:paramtypes",[Number]),_.H("design:returntype")],T1.prototype,"updateLockupContainerTypes",null);_.V([_.ev("hideTvfilmOfferModule"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],T1.prototype,"hideTvfilmOfferModuleChanged",null);_.V([_.ev("showButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],T1.prototype,"showButtonChanged",null);
_.V([_.ev("shownItems"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],T1.prototype,"shownItemsChangedForBinding",null);_.V([_.y("shownItems"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],T1.prototype,"containsLockups",null);
_.Y(T1,"ytd-watch-next-secondary-results-renderer",function(){if(kOy===void 0){var A=document.createElement("template");_.m(A,'\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" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);kOy=A}A=kOy;return A},{mode:1});var l_u;var ip=function(){var A=_.F.apply(this,arguments)||this;A.isCollapsed=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return A};
_.R(ip,_.F);_.J=ip.prototype;_.J.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.onDonateTap=function(){var A=this.get("data.donateButton.buttonRenderer.command");if(A){var t=_.Ws(),f=this.get("data.donateButton.buttonRenderer.trackingParams");t&&f&&_.o7(t,_.zV(f));this.ytOpenPopupBehavior.openPopup(A)}};
_.J.onShowMore=function(){this.isCollapsed=!1;var A=_.Ws(),t=this.get("data.expandButton.buttonRenderer.trackingParams");A&&t&&_.o7(A,_.zV(t))};
_.J.onShowLess=function(){this.isCollapsed=!0};
_.J.dataChanged=function(){_.Q_(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.J.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.J.handleUpdate=function(A){if(A=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",A))this.set("data.startLabel",A.startLabel),this.set("data.endLabel",A.endLabel),this.set("data.progress",A.progress),this.set("data.amountRaisedLabel",A.amountRaisedLabel),this.dataChanged()};
_.J.handleOpenPopupAction=function(A){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",A)&&_.kJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.J.computeHeaderBackgroundUrl=function(A,t){if(A)return t?A.headerBackgroundDarkUrl:A.headerBackgroundUrl};
_.J.isProgressBarVisible=function(A){return!(!A||A.progress===void 0)};
_.J.headerBackgroundClass=function(){return _.ah("HTML_DIR")==="rtl"?"flip":""};
ip.prototype.dataChanged=ip.prototype.dataChanged;_.V([_.b(_.I4.YtOpenPopupBehavior),_.H("design:type",Object)],ip.prototype,"ytOpenPopupBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ip.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],ip.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],ip.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],ip.prototype,"isCollapsed",void 0);_.V([_.n({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.H("design:type",String)],ip.prototype,"headerBackgroundUrl",void 0);_.V([_.n(),_.H("design:type",Boolean)],ip.prototype,"isDarkTheme",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ip.prototype,"dataChanged",null);
_.V([_.y_({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],ip);
_.Y(ip,"ytd-donation-shelf-renderer",function(){if(l_u!==void 0)return l_u;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return l_u=A},{mode:1});var N$i;var uAb=function(){return _.F.apply(this,arguments)||this};
_.R(uAb,_.F);_.V([_.n(),_.H("design:type",Object)],uAb.prototype,"data",void 0);_.V([_.y_({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],uAb);
_.Y(uAb,"ytd-donation-unavailable-renderer",function(){if(N$i!==void 0)return N$i;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return N$i=A},{mode:1});var zMl;var Of=function(){return _.F.apply(this,arguments)||this};
_.R(Of,_.F);Of.prototype.computeIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Of.prototype,"data",void 0);_.V([_.y_({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Of);
_.Y(Of,"ytd-limited-state-message-renderer",function(){if(zMl!==void 0)return zMl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return zMl=A},{mode:1});var Pdu;var cP=function(){return _.F.apply(this,arguments)||this};
_.R(cP,_.F);cP.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
cP.prototype.onTap=function(A){var t=this.data&&this.data.endpoint;t&&!_.Sl(_.Z2(A),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.s9(this.hostElement,"yt-navigate",{endpoint:t})};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cP.prototype,"data",void 0);_.V([_.y_({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],cP);
_.Y(cP,"ytd-autotagging-metadata-renderer",function(){if(Pdu!==void 0)return Pdu;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Pdu=A},{mode:1});var T$H;var BP=function(){return _.F.apply(this,arguments)||this};
_.R(BP,_.F);BP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],BP.prototype,"data",void 0);_.V([_.y_({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],BP);
_.Y(BP,"ytd-autotagging-metadata-row-renderer",function(){if(T$H!==void 0)return T$H;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return T$H=A},{mode:1});var iVl;var OVi;var MZ=function(){var A=_.F.apply(this,arguments)||this;A.engagementPanelContent=!1;return A};
_.R(MZ,_.F);MZ.prototype.computeHasDividerLine=function(A,t){return A&&!t};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],MZ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.H("design:type",Boolean)],MZ.prototype,"hasDividerLine",void 0);_.V([_.n(),_.H("design:type",Object)],MZ.prototype,"engagementPanelContent",void 0);
_.V([_.y_({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],MZ);
_.Y(MZ,"ytd-metadata-row-header-renderer",function(){if(OVi!==void 0)return OVi;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return OVi=A},{mode:1});var c43;var Cz=function(){return _.F.apply(this,arguments)||this};
_.R(Cz,_.F);Cz.prototype.computeHasDividerLine=function(A){return A};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Cz.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.H("design:type",Boolean)],Cz.prototype,"hasDividerLine",void 0);_.V([_.y_({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Cz);
_.Y(Cz,"ytd-metadata-row-renderer",function(){if(c43!==void 0)return c43;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return c43=A},{mode:1});var B$i;var MUy=function(){return _.F.apply(this,arguments)||this};
_.R(MUy,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],MUy.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],MUy.prototype,"data",void 0);_.V([_.y_({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],MUy);
_.Y(MUy,"ytd-metadata-with-image-row-renderer",function(){if(B$i!==void 0)return B$i;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return B$i=A},{mode:1});var Cdb;var h3=function(){var A=_.F.apply(this,arguments)||this;A.rounded=!0;A.fixie=!1;A.fullWidth=!1;return A};
_.R(h3,_.F);_.J=h3.prototype;_.J.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.onDataChanged=function(){var A=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(t){A.onEndpointLinkKeyPress(t)}))};
_.J.onEndpointLinkKeyPress=function(A){A.target===this.endpointLink&&A.keyCode===13&&_.s9(this.hostElement,"click")};
_.J.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var A;if((A=this.data)==null?0:A.endpoint)_.tl(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.J.onYtNavigate=function(A){this.endpointHref||(A.stopPropagation(),A.preventDefault())};
_.J.onInformationButtonContainerClick=function(A){A.target.id!=="information-button-container"&&(A.stopPropagation(),A.preventDefault())};
_.J.computeStyle=function(A){return A};
_.J.computeIsThumbnailStyle=function(A){return A==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.J.computeThumbnailWidth=function(A){switch(A){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}};
_.J.computeThumbnailObjectFit=function(A){switch(A){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.PV.Object.defineProperties(h3.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
h3.prototype.onYtNavigate=h3.prototype.onYtNavigate;h3.prototype.onClick=h3.prototype.onClick;h3.prototype.onDataChanged=h3.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],h3.prototype,"componentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],h3.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],h3.prototype,"componentStyle",void 0);_.V([_.n({computed:"computeIsThumbnailStyle(data.style)"}),_.H("design:type",Boolean)],h3.prototype,"isThumbnailStyle",void 0);_.V([_.n({computed:"computeThumbnailObjectFit(data.style)"}),_.H("design:type",String)],h3.prototype,"thumbnailObjectFit",void 0);
_.V([_.n({computed:"computeThumbnailWidth(data.style)"}),_.H("design:type",Number)],h3.prototype,"thumbnailWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],h3.prototype,"rounded",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],h3.prototype,"fixie",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],h3.prototype,"fullWidth",void 0);_.V([_.lo("#endpoint-link"),_.H("design:type",HTMLAnchorElement)],h3.prototype,"endpointLink",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h3.prototype,"onDataChanged",null);_.V([_.y("data.endpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],h3.prototype,"endpointHref",null);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],h3.prototype,"onClick",null);
_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],h3.prototype,"onYtNavigate",null);_.V([_.y_({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],h3);
_.Y(h3,"ytd-rich-metadata-renderer",function(){if(Cdb!==void 0)return Cdb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Cdb=A},{mode:_.sQ("kevlar_poly_si_batch_j075")?1:2});var hMy;var RT=function(){var A=_.F.apply(this,arguments)||this;A.fixie=!1;A.fullWidth=!1;return A};
_.R(RT,_.F);RT.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
RT.prototype.computeHasDividerLine=function(A){return A};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],RT.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.H("design:type",Boolean)],RT.prototype,"hasDividerLine",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],RT.prototype,"fixie",void 0);_.V([_.n(),_.H("design:type",Object)],RT.prototype,"fullWidth",void 0);
_.V([_.y_({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],RT);
_.Y(RT,"ytd-rich-metadata-row-renderer",function(){if(hMy!==void 0)return hMy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return hMy=A},{mode:1});var mp=function(){var A=_.F.apply(this,arguments)||this;A.engagementPanelContent=!1;A.fixie=!1;A.fullWidth=!1;return A};
_.R(mp,_.F);
mp.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"}}}};
mp.prototype.computeCollapsibleItems=function(A,t,f){return A===void 0||t===void 0||f===void 0||f?[]:A.slice(t)};
mp.prototype.computeAlwaysShownItems=function(A,t){return A&&A.length?A.slice(0,t):[]};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],mp.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],mp.prototype,"collapsed",void 0);
_.V([_.n({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.H("design:type",Array)],mp.prototype,"alwaysShownItems",void 0);_.V([_.n({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.H("design:type",Array)],mp.prototype,"collapsibleItems",void 0);_.V([_.n(),_.H("design:type",Object)],mp.prototype,"engagementPanelContent",void 0);_.V([_.n(),_.H("design:type",Object)],mp.prototype,"fixie",void 0);
_.V([_.n(),_.H("design:type",Object)],mp.prototype,"fullWidth",void 0);_.V([_.y_({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],mp);
_.Y(mp,"ytd-metadata-row-container-renderer",function(){if(iVl!==void 0)return iVl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return iVl=A},{mode:1});var RMH;var bp=function(){var A=_.F.apply(this,arguments)||this;A.currentPageUrl="";A.baseUrl="";A.isHiddenByUser=null;A.hidden=!1;A.showAboveScrim=!1;A.watchNextGrid=_.M("kevlar_watch_grid");A.modernButtons=_.M("web_modern_buttons");A.roundedContainer=!0;A.noBorder=!1;A.roundBackground=!_.M("live_chat_round_background_killswitch");A.overflowHideChat=_.M("live_chat_overflow_hide_chat");A.forceDarkTheme=!1;A.theaterWatchWhile=!1;A.isListeningForPlayerProgress=!1;A.JSC$23122_playerEvents=new Map;A.isFrameReady=
!1;A.player=null;A.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 A};
_.R(bp,_.F);_.J=bp.prototype;_.J.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.r2(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.J.created=function(){var A=this;this.handleIframeEventListener=function(t){A.handleIframeEvent(t)};
this.handleKeyboardEventListener=function(t){A.handleKeyboardEvent(t)};
this.JSC$23122_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23122_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23122_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23122_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23122_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.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()};
_.J.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};
_.J.computeBaseUrl=function(A){var t="/live_chat";this.isChatReplay()&&(t="/live_chat_replay");return _.uR(_.N3(_.lR(_.kC(A),t),null),"").toString()};
_.J.dataChanged=function(){_.M("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.J.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var A=this.url;if(this.isChatReplay()&&this.player){var t=Math.floor(this.player.getProgressState().current*1E3);A=_.AZ(_.kC(A),"playerOffsetMs",t.toString()).toString()}t=this.chatframe;try{var f=A==="about:blank"?_.KQ8:_.of(A),X=t.contentDocument.location,Q=_.af(f);Q!==void 0&&X.replace(Q)}catch(q){t.src=A}}};
_.J.collapsedChanged=function(){_.s9(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.J.handleIframeEvent=function(A){if(A&&this.baseUrl.startsWith(A.origin)&&A.source===this.chatframe.contentWindow&&_.Hp(A.data))if(A.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(A);else if(A.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(A.data["yt-show-feedback-dialog"]){var t=_.Px().resolve(_.z7(_.ol2));if(t){var f=A.ports,X;f&&f.length&&(X=function(){f[0].postMessage({})});
A=A.data["yt-show-feedback-dialog"];t.showFeedbackDialog(A.customProductData,A.feedbackContent,X,A.bucket)}}else if(A.data["yt-show-survey"])_.s9(this.hostElement,"yt-show-survey",A.data["yt-show-survey"]);else if(A.data["yt-purchase-membership"])_.Px().resolve(_.i2).resolveCommand(A.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(A.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(A.data["yt-tunnel-out-live-service-request"]);else if(A.data["yt-user-activity"])_.TO();
else if(A.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(A.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(A.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(A.data["yt-open-popup"]);else if(A.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(A.data["yt-log-flow-logging-event-command"]);else if(A.data["yt-hide-live-chat"])this.onShowHideChat();else A.data["yt-report-moderation-state-log"]&&
this.player&&(t={cpn:this.player.getVideoData().cpn},_.SY("liveChatBeingModerated",t))};
_.J.attachLiveChatResponseVeTrackingParams=function(A){A=_.zV(A);var t=_.Ws(),f=_.Ae("liveChatRenderer.trackingParams",this.data);t&&f&&_.x7(t,_.zV(f),A)};
_.J.handleBuyflowMessages=function(A){var t=A.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,f=A.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,X=A.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.osb(_.K8(_.Vc),t.replace(/-/g,"+").replace(/_/g,"/"),function(Q){A.ports[0].postMessage({success:!0,buyFlowResponse:Q})},void 0,function(Q){A.ports[0].postMessage({success:!1,
error:Q&&Q.message||"Buyflow rejected without error."})},_.NJ().get("hl"),void 0,function(){A.ports[0].postMessage({closed:!0})},f,X)};
_.J.setupPlayerProgressRelay=function(){var A=this;if(!this.isListeningForPlayerProgress){var t=_.ge();t!=null&&t.getPlayerPromise&&(t.getPlayerPromise().then(function(f){A.playerApiReady(f)}),this.isListeningForPlayerProgress=!0)}};
_.J.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.J.playerApiReady=function(A){this.setPlayer(A)};
_.J.playerProgressHandler=function(){if(this.player){var A=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":A.current})}};
_.J.playerAdStartHandler=function(A){this.postToContentWindow({"yt-player-ad-start":A})};
_.J.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.J.playerStateChangeHandler=function(A){this.postToContentWindow({"yt-player-state-change":A})};
_.J.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23122_playerEvents);A&&(this.player=A,this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23122_playerEvents),_.s9(this.hostElement,"player-api-ready"))};
_.J.liveChatPageUrl=function(A,t,f,X){return!f||t?"about:blank":f.liveChatRenderer?(t=_.kC(this.currentPageUrl).JSC$10115_queryData_,Y03(t),A=_.kC(A),t.add("continuation",f.liveChatRenderer.continuations[0].reloadContinuationData.continuation),f=_.np()==="USER_INTERFACE_THEME_DARK",(X||f)&&t.add("dark_theme","true"),_.N3(A,t),X=_.kC(A.toString()),f=X.JSC$10115_queryData_,"SESSION_INDEX"in _.$k&&(f.add("authuser",_.ah("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.$k&&f.add("pageId",_.ah("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.$k&&f.add("sdc",_.ah("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),X.toString()):""};
_.J.isCollapsed=function(A,t){return t!==null?t:this.isChatReplay()||A&&A.conversationBarRenderer&&A.conversationBarRenderer.availabilityMessage?!0:A?A.liveChatRenderer?A.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.M("live_chat_hide_premiere_replay_message")||A.conversationBarRenderer&&A.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.J.isHidden=function(A,t,f){var X=t&&t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage,Q=t&&t.liveChatRenderer&&t.liveChatRenderer.showHideButton,q=t&&t.liveChatRenderer&&t.liveChatRenderer.showButton;return f&&A&&!X&&!q||!f&&A&&!X&&!Q?!0:t&&t.liveChatRenderer&&t.liveChatRenderer.initialDisplayState?t.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.J.computeButtonOverride=function(A,t){if(A&&t)return{type:"outline"}};
_.J.setCollapsedState=function(A){_.C(A,_.jXp)&&((this.isHiddenByUser=!!_.C(A,_.jXp).collapsed)||_.kJ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.J.forwardReduxActionToIframe=function(A){this.postToContentWindow({"yt-live-chat-forward-redux-action":A})};
_.J.onLoopRangeChange=function(A){this.showAboveScrim=!(A==null||!A.postId)};
_.J.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.J.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.J.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.J.sendDarkThemePostMessage=function(A){this.postToContentWindow({"yt-live-chat-set-dark-theme":A})};
_.J.onLiveChatBuyFlowCallback=function(A){this.postToContentWindow({"yt-live-chat-buy-flow-callback":A})};
_.J.handleKeyboardEvent=function(A){(0,_.VG.containsValue)(otb,A.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:A.type,keyCode:A.keyCode}})};
_.J.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.J.postToContentWindow=function(A){if(this.isFrameReady)try{var t=window.location.protocol+"//"+window.location.host,f;(f=this.chatframe)!=null&&f.contentWindow?this.chatframe.contentWindow.postMessage(A,t):_.K4(new _.xj("Tried posting a message to an iframe with no content window",A))}catch(X){_.HQ(X)}};
_.J.shouldHideChatFrame=function(A){return A&&_.M("hide_live_chat_button_when_collapsed")};
_.PV.Object.defineProperties(bp.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.M("live_chat_overflow_hide_chat")||_.M("web_watch_chat_hide_button_killswitch"))return _.M("live_chat_overflow_hide_chat");var A,t,f,X;return!!((A=this.data)==null?0:(t=A.liveChatRenderer)==null?0:(f=t.header)==null?0:(X=f.liveChatHeaderRenderer)==null?0:X.collapseButton)}}});
bp.prototype.collapsedChanged=bp.prototype.collapsedChanged;bp.prototype.urlChanged=bp.prototype.urlChanged;bp.prototype.dataChanged=bp.prototype.dataChanged;bp.prototype.onShowHideChat=bp.prototype.onShowHideChat;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],bp.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],bp.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],bp.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.b(_.I4.YtOpenPopupBehavior),_.H("design:type",Object)],bp.prototype,"ytOpenPopupBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bp.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],bp.prototype,"currentPageUrl",void 0);
_.V([_.n({computed:"computeBaseUrl(currentPageUrl,data)"}),_.H("design:type",Object)],bp.prototype,"baseUrl",void 0);_.V([_.n({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.H("design:type",String)],bp.prototype,"url",void 0);_.V([_.n(),_.H("design:type",Object)],bp.prototype,"isHiddenByUser",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.H("design:type",Object)],bp.prototype,"hidden",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.H("design:type",Boolean)],bp.prototype,"collapsed",void 0);_.V([_.n({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.H("design:type",Boolean)],bp.prototype,"hideChatFrame",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bp.prototype,"showAboveScrim",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bp.prototype,"watchNextGrid",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],bp.prototype,"modernButtons",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bp.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bp.prototype,"noBorder",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],bp.prototype,"roundBackground",void 0);
_.V([_.n({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.H("design:type",Object)],bp.prototype,"toggleButtonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],bp.prototype,"overflowHideChat",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bp.prototype,"forceDarkTheme",void 0);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bp.prototype,"enableShowWithoutHideChatButton",null);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bp.prototype,"theaterWatchWhile",void 0);_.V([_.lo("#chatframe"),_.H("design:type",HTMLIFrameElement)],bp.prototype,"chatframe",void 0);_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bp.prototype,"onShowHideChat",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bp.prototype,"dataChanged",null);
_.V([_.ev("url"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bp.prototype,"urlChanged",null);_.V([_.ev("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bp.prototype,"collapsedChanged",null);_.V([_.y_({is:"ytd-live-chat-frame",disableElementRegistration:!0})],bp);
_.Y(bp,"ytd-live-chat-frame",function(){if(RMH!==void 0)return RMH;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return RMH=A},{mode:1});var m9i;var WP=function(){var A=_.F.apply(this,arguments)||this;A.modern=_.M("web_modern_buttons");A.buttonOverrides={style:"call-to-action",type:"filled"};return A};
_.R(WP,_.F);WP.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=_.mt(this.data.backgroundColor)))};
WP.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var A=this.getFormattedStringLoggingDirectives(this.data.headline);A&&this.rendererBehavior.logExplicitClick(A)}};
WP.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var A=this.getFormattedStringLoggingDirectives(this.data.description);A&&this.rendererBehavior.logExplicitClick(A)}};
WP.prototype.getFormattedStringLoggingDirectives=function(A){return A&&A.runs&&A.runs.length>0&&A.runs[0]&&A.runs[0].loggingDirectives?A.runs[0].loggingDirectives:null};
WP.prototype.dataChanged=WP.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],WP.prototype,"rendererBehavior",void 0);_.V([_.b(siW.YtMacroReplacementBehavior),_.H("design:type",Object)],WP.prototype,"macroReplacementBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],WP.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],WP.prototype,"navigationEndpoint",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],WP.prototype,"enableColors",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WP.prototype,"modern",void 0);_.V([_.n(),_.H("design:type",Object)],WP.prototype,"buttonOverrides",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WP.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],WP);
_.Y(WP,"ytd-action-basic-immersive-content-renderer",function(){if(m9i!==void 0)return m9i;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return m9i=A},{mode:1});var bVy;var WEy;var yF=function(){return _.F.apply(this,arguments)||this};
_.R(yF,_.F);yF.prototype.dataChanged=function(){var A;((A=this.data)==null?void 0:A.backgroundColor)!==void 0&&_.Q_(this.hostElement,{"--bgu-color":_.mt(this.data.backgroundColor)})};
yF.prototype.onImageTileClick=function(){var A;((A=this.data)==null?0:A.navigationEndpoint)&&_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var t;((t=this.data)==null?0:t.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.PV.Object.defineProperties(yF.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?void 0:A.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 A;return((A=this.data)==null?void 0:A.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var A,t,f;if(((A=this.data)==null?void 0:(t=A.detailsLine)==null?void 0:t.texts)!=null&&((f=this.data)==null?void 0:f.detailsLine.texts.length)>0){var X;return(X=this.data)==null?void 0:X.detailsLine.texts.map(function(Q){return Q.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var A,t,f;if(((A=this.data)==null?void 0:(t=A.optionalDetailsLine)==null?void 0:t.texts)!=null&&((f=this.data)==null?void 0:f.optionalDetailsLine.texts.length)>0){var X;return(X=this.data)==null?void 0:X.optionalDetailsLine.texts.map(function(Q){return Q.text}).join("")}return null}}});
yF.prototype.dataChanged=yF.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yF.prototype,"rendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],yF.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],yF.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.backgroundColor"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yF.prototype,"hasBackgroundColor",null);
_.V([_.y("data.objectFit"),_.H("design:type",Object),_.H("design:paramtypes",[])],yF.prototype,"getObjectFit",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.tileRenderingStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yF.prototype,"hasTileMetadata",null);_.V([_.y("data.detailsLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],yF.prototype,"getSecondaryDetails",null);
_.V([_.y("data.optionalDetailsLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],yF.prototype,"getOptionalDetails",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yF.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],yF);
_.Y(yF,"ytd-image-tile-renderer",function(){if(WEy!==void 0)return WEy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return WEy=A},{mode:1});var y4l;var vP=function(){return _.F.apply(this,arguments)||this};
_.R(vP,_.F);vP.prototype.getOpenLinkIcon=function(){return _.M("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
vP.prototype.onSitelinkTap=function(){_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.M("kevlar_command_handler_migration_killswitch"))_.tl(this.hostElement,this.data.clickCommands,this.hostElement);else for(var A=_.U(this.data.clickCommands),t=A.next();!t.done;t=A.next())this.ytComponentBehavior.resolveCommand(t.value)};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],vP.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],vP.prototype,"rendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],vP.prototype,"data",void 0);_.V([_.y_({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],vP);
_.Y(vP,"ytd-sitelink-renderer",function(){if(y4l!==void 0)return y4l;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return y4l=A},{mode:1});var Lz=function(){var A=_.F.apply(this,arguments)||this;A.paddingFix=_.M("enable_ads_web_ep_buenos_aires_and_padding_fix");return A};
_.R(Lz,_.F);Lz.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"}}}};
Lz.prototype.dataChanged=function(){var A=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;A.ytMacroReplacementBehavior.sendServiceRequestAction([t])})};
Lz.prototype.shouldHideFooter=function(A){return!(A&&_.M("use_ads_engagement_panel_desktop_footer_cta"))};
_.PV.Object.defineProperties(Lz.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:A.imageTileRenderers)===void 0||((t=this.data)==null?void 0:t.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(f){var X;return(X=_.C(f,aUj))==null?void 0:X.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:A.imageTileRenderers)===void 0||((t=this.data)==null?void 0:t.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(f){var X;return((X=_.C(f,aUj))==null?void 0:X.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Lz.prototype.dataChanged=Lz.prototype.dataChanged;_.V([_.b(siW.YtMacroReplacementBehavior),_.H("design:type",Object)],Lz.prototype,"ytMacroReplacementBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Lz.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Lz.prototype,"paddingFix",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.imageTileRenderers"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Lz.prototype,"removeBorderFromImageTiles",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.imageTileRenderers"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Lz.prototype,"useFooteredMetadataRenderingStyle",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lz.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Lz);
_.Y(Lz,"ytd-action-engagement-panel-content-renderer",function(){if(bVy!==void 0)return bVy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return bVy=A},{mode:1});var vHH;var LEW=_.I(function(A){var t=A.data;var f=A.customCommandResolver;return _.u("ad-grid-card-image-full-metadata-view-model",{class:function(){var X;return((X=t().interaction)==null?0:X.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.ZY(_.OI({visibilityCallback:function(X){var Q,q=(Q=t().interaction)==null?void 0:Q.onFirstVisible;X&&q&&_.LI(q)},
showOption:_.Lj}),_.En(function(){return t().interaction},f)),
"aria-label":function(){var X,Q;return(X=t().interaction)==null?void 0:(Q=X.accessibility)==null?void 0:Q.label}},_.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.u(_.P1,{data:function(){return t().adImage}},{adImageViewModel:function(X){return _.u(_.Ha,{data:X.data,
customCommandResolver:f})}})),_.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.u(_.P,{cond:function(){return t().headline},
then:function(X){return _.u(_.zL,{text:X,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.u(_.P,{cond:function(){return t().detailsLine},
then:function(X){return _.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.u(_.P1,{data:X},{adDetailsLineViewModel:function(Q){return _.u(_.jX,{data:Q.data,customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.u(_.P,{cond:function(){return t().secondaryDetailsLine},
then:function(X){return _.u("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.u(_.P1,{data:X},{adDetailsLineViewModel:function(Q){return _.u(_.jX,{data:Q.data,customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Hn");var p9i=_.I(function(A){var t=A.data;var f=A.customCommandResolver;return _.u("ad-grid-card-image-view-model",{class:function(){var X;return((X=t().interaction)==null?0:X.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.ZY(_.OI({visibilityCallback:function(X){var Q,q=(Q=t().interaction)==null?void 0:Q.onFirstVisible;X&&q&&_.LI(q)},
showOption:_.Lj}),_.En(function(){return t().interaction},f)),
"aria-label":function(){var X,Q;return(X=t().interaction)==null?void 0:(Q=X.accessibility)==null?void 0:Q.label}},_.u(_.P1,{data:function(){return t().adImage}},{adImageViewModel:function(X){return _.u(_.Ha,{data:X.data,
customCommandResolver:f})}}),_.u("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.u(_.P1,{data:function(){return t().adCardBadge}},{adCardBadgeViewModel:_.gnT})))},"In");var EHx=_.I(function(A){var t=A.data;var f=A.customCommandResolver;return _.u("ad-grid-card-text-view-model",{class:function(){var X;return((X=t().interaction)==null?0:X.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.ZY(_.OI({visibilityCallback:function(X){var Q,q=(Q=t().interaction)==null?void 0:Q.onFirstVisible;X&&q&&_.LI(q)},
showOption:_.Lj}),_.En(function(){return t().interaction},f)),
"aria-label":function(){var X,Q;return(X=t().interaction)==null?void 0:(Q=X.accessibility)==null?void 0:Q.label}},_.u("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.u(_.P,{cond:function(){return t().title},
then:function(X){return _.u(_.zL,{text:X,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.u("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.u(_.xk,{each:function(){var X;
return((X=t())==null?void 0:X.descriptions)||[]},
keyBy:"INDEX"},function(X){return _.u(_.zL,{text:X,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.u("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.u(_.P1,{data:function(){return t().moreInfoButton}},{adButtonViewModel:function(X){return _.u(_.E5,{data:X.data,
customCommandResolver:f})}})))},"Jn");var nHi=_.I(function(A){var t=A.data;var f=A.customCommandResolver;var X=A.adGridCardCollectionStyle;return _.u("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.ZY(_.OI({visibilityCallback:function(Q){var q,e=(q=t().interaction)==null?void 0:q.onFirstVisible;Q&&e&&_.LI(e)},
showOption:_.Lj})),style:function(){return"grid-template-columns: repeat("+w5Q(X?X():t().style)+", minmax(0, 1fr));"}},_.u(_.P1,{data:function(){var Q;
return(Q=t())==null?void 0:Q.gridCards}},{adGridCardImageViewModel:function(Q){return _.u(p9i,{data:Q.data,
customCommandResolver:f})},
adGridCardImageFullMetadataViewModel:function(Q){return _.u(LEW,{data:Q.data,customCommandResolver:f})},
adGridCardTextViewModel:function(Q){return _.u(EHx,{data:Q.data,customCommandResolver:f})}}))},"Kn");_.Hn(_.I(function(A){var t=A.data;return _.u("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.ZY(_.OI({visibilityCallback:function(f){var X,Q=(X=t().interaction)==null?void 0:X.onFirstVisible;f&&Q&&_.LI(Q)},
showOption:_.Lj}),_.En(function(){return t().interaction},kwi))},_.u("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.u(_.P,{cond:_.Bm5("(min-width: "+((0,_.gl)()+_.FT)+"px)"),
then:function(){return _.u(_.P1,{data:function(){return t().adGridCardCollection}},{adGridCardCollectionViewModel:function(f){return _.u(nHi,{data:f.data,
customCommandResolver:kwi})}})},
else:function(){return _.u(_.P1,{data:function(){return t().adGridCardCollection}},{adGridCardCollectionViewModel:function(f){return _.u(nHi,{data:f.data,
customCommandResolver:kwi,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.u("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.u(_.P1,{data:function(){return t().adButton}},{adButtonViewModel:function(f){return _.u(_.E5,{data:f.data,
customCommandResolver:kwi})}})))},"Ln"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;return _.u("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.ZY(_.OI({visibilityCallback:function(f){var X,Q=(X=t().interaction)==null?void 0:X.onFirstVisible;f&&Q&&_.LI(Q)},
showOption:_.Lj}),_.En(function(){return t().interaction},r8b))},_.u("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.u(_.P1,{data:function(){if(_.Bm5("(min-width: "+((0,_.gl)()+_.FT)+"px)")())var f=t().adGridCardCollection;
else{f=Object.assign({},_.C(t().adGridCardCollection,gjF));var X;f.gridCards!==void 0&&((X=f.gridCards)==null?void 0:X.length)>1?f.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":f.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";f={adGridCardCollectionViewModel:f}}return f}},{adGridCardCollectionViewModel:function(f){return _.u(nHi,{data:f.data,
customCommandResolver:r8b})}})),_.u("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.u(_.P1,{data:function(){return t().adButton}},{adButtonViewModel:function(f){return _.u(_.E5,{data:f.data,
customCommandResolver:r8b})}})))},"Mn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.PS}});var pz=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return A};
_.R(pz,_.F);_.J=pz.prototype;_.J.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"}}}};
_.J.attached=function(){this.getDataFromPlayerAndRender()};
_.J.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.J.getDataFromPlayerAndRender=function(){var A=this,t=_.K1(this.hostElement);t&&t.getPlayerPromise().then(function(f){A.getCachedDataAndListen(f)})};
_.J.getCachedDataAndListen=function(A){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=A)};
_.J.resolveCachedActions=function(){var A=_.Ae("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(A=A&&A())&&!_.VG.isEmpty(A)&&this.sendUpdateEngagementPanelAction(A);(A=(A=_.Ae("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&A())&&!_.VG.isEmpty(A)&&this.sendChangeEngagementPanelVisibilityAction(A);(A=(A=_.Ae("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&A())&&!_.VG.isEmpty(A)&&this.sendScrollToEngagementPanelCommand(A)};
_.J.sendUpdateEngagementPanelAction=function(A){var t;_.kJ(this.hostElement,"yt-update-engagement-panel-action",[(t=_.VG.get(A,"action"))!=null?t:A])};
_.J.sendChangeEngagementPanelVisibilityAction=function(A){_.kJ(this.hostElement,"yt-change-engagement-panel-visibility-action",[A])};
_.J.sendScrollToEngagementPanelCommand=function(A){_.kJ(this.hostElement,"yt-scroll-to-engagement-panel-command",[A])};
_.J.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.M("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.K4(Error("dp"))};
pz.prototype.dataChanged=pz.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],pz.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],pz.prototype,"componentBehavior",void 0);_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],pz.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],pz.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],pz.prototype,"player",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pz.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],pz);
_.Y(pz,"ytd-ads-engagement-panel-content-renderer",function(){if(vHH!==void 0)return vHH;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return vHH=A},{mode:1});var D9i;var Ef=function(){var A=_.F.apply(this,arguments)||this;A.player=null;A.JSC$23159_playerEvents=new Map;A.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return A};
_.R(Ef,_.F);_.J=Ef.prototype;_.J.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]]"}}}}}};
_.J.created=function(){this.player=null;this.JSC$23159_playerEvents=new Map;this.JSC$23159_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23159_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23159_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23159_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.attached=function(){var A=this,t=_.K1();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));t&&t.getPlayerPromise().then(function(f){A.setPlayer(f);A.set("isPageLoad",!1)})};
_.J.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23159_playerEvents);this.set("player",A);A&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23159_playerEvents),A.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.J.onLoopRangeChange=function(A){var t=_.Px().resolve(_.z7(_.HO));if((!t||t.isOnWatch())&&this.hostElement.clientHeight){var f;!A&&((f=this.data)==null?0:f.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.J.onVideoProgress=function(A){var t,f,X=((t=this.player)==null?void 0:(f=t.getPresentingPlayerType)==null?void 0:f.call(t))===2;this.isAdPlaying!==X&&this.set("isAdPlaying",X);var Q;if(!X&&(Q=this.player)!=null&&Q.getLoopRange()){f=this.player.getLoopRange();t=f.startTimeMs;f=f.endTimeMs;X=this.player.getProgressState(1).seekableStart;var q;t<X*1E3&&((q=this.data)==null?0:q.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
A=f<A*1E3;var e;((e=this.player)==null?0:e.getLoopRange())&&A&&this.player.seekTo(t/1E3)}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onYtDeleteClipEngagementPanelCommand=function(A){_.C(A,lsb).command&&this.ytComponentBehavior.resolveCommand(_.C(A,lsb).command)};
_.PV.Object.defineProperties(Ef.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.oC("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Ef.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Ef.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],Ef.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ef.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Ef.prototype,"isAdPlaying",void 0);_.V([_.n({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],Ef.prototype,"isPageLoad",void 0);_.V([_.n({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],Ef.prototype,"isDarkTheme",void 0);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ef.prototype,"voteCount",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ef.prototype,"channelEndpoint",null);_.V([_.y("channelEndpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ef.prototype,"channelHref",null);_.V([_.y_({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Ef);
_.Y(Ef,"ytd-clip-attribution-renderer",function(){if(D9i!==void 0)return D9i;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return D9i=A},{mode:1});var FEu;var nz=function(){var A=_.F.apply(this,arguments)||this;A.player=null;A.JSC$23164_playerEvents=new Map;return A};
_.R(nz,_.F);_.J=nz.prototype;_.J.created=function(){this.player=null;this.JSC$23164_playerEvents=new Map;this.JSC$23164_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23164_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23164_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.J.attached=function(){var A=this,t=_.K1();t&&t.getPlayerPromise().then(function(f){A.setPlayer(f);A.set("isPageLoad",!1)})};
_.J.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23164_playerEvents);this.set("player",A);if(A){this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23164_playerEvents);var t;(A==null?void 0:(t=A.getPresentingPlayerType)==null?void 0:t.call(A))===2&&this.playerAdStartHandler()}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onVideoProgress=function(){var A,t,f=((A=this.player)==null?void 0:(t=A.getPresentingPlayerType)==null?void 0:t.call(A))===2;this.isAdPlaying!==f&&this.set("isAdPlaying",f)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],nz.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],nz.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],nz.prototype,"isAdPlaying",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],nz.prototype,"isPageLoad",void 0);_.V([_.y_({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],nz);
_.Y(nz,"ytd-clip-section-footer-renderer",function(){if(FEu!==void 0)return FEu;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return FEu=A},{mode:1});var I_i;var x9b;var jwb=function(){return _.F.apply(this,arguments)||this};
_.R(jwb,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],jwb.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],jwb.prototype,"data",void 0);_.V([_.y_({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],jwb);
_.Y(jwb,"ytd-clip-ad-state-renderer",function(){if(x9b!==void 0)return x9b;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return x9b=A},{mode:1});var YIF;var D8=function(){var A=_.F.apply(this,arguments)||this;A.value="";A.valid=!1;A.userChangedValue=!1;A.disabled=!1;A.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return A};
_.R(D8,_.F);_.J=D8.prototype;_.J.detached=function(){this.userChangedValue=!1};
_.J.handleKeyDown=function(A){if(_.Qe)var t=13;else _.K5i&&_.q1?t=13:t=13;A.keyCode===t&&A.preventDefault()};
_.J.handleInput=function(){var A=_.sF(this.hostElement).querySelector("#title");if(A){var t=(A.value||"").replace(/\r|\n/g," ");this.set("value",t);A.value=t;this.valid=A.validate();this.userChangedValue=!0}};
_.J.handleBlur=function(){this.valid=_.sF(this.hostElement).querySelector("#title").validate()};
_.J.onValueChanged=function(){_.s9(this.hostElement,"title-changed",{title:this.value})};
_.J.onValidChanged=function(){_.s9(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.J.setInput=function(A,t){var f=_.sF(this.hostElement).querySelector("#title");f&&(f.value=A,this.handleInput(),t&&(f.invalid=!1,this.valid=!0))};
_.J.onClipCreationDisable=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable=function(){this.set("disabled",!1)};
_.J.onClipCreationVisibilityChange=function(A){var t=this;A.visible?requestAnimationFrame(function(){var f;((f=_.sF(t.hostElement).querySelector("#title"))==null?void 0:f.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
D8.prototype.onValidChanged=D8.prototype.onValidChanged;D8.prototype.onValueChanged=D8.prototype.onValueChanged;D8.prototype.handleBlur=D8.prototype.handleBlur;D8.prototype.handleInput=D8.prototype.handleInput;D8.prototype.handleKeyDown=D8.prototype.handleKeyDown;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],D8.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],D8.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],D8.prototype,"value",void 0);_.V([_.n(),_.H("design:type",Object)],D8.prototype,"valid",void 0);_.V([_.n(),_.H("design:type",Object)],D8.prototype,"userChangedValue",void 0);_.V([_.n(),_.H("design:type",Object)],D8.prototype,"disabled",void 0);_.V([_.UQ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],D8.prototype,"handleKeyDown",null);
_.V([_.UQ("input"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],D8.prototype,"handleInput",null);_.V([_.UQ("blur"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],D8.prototype,"handleBlur",null);_.V([_.ev("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],D8.prototype,"onValueChanged",null);
_.V([_.ev("valid"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],D8.prototype,"onValidChanged",null);_.V([_.y_({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],D8);
_.Y(D8,"ytd-clip-creation-text-input-renderer",function(){if(YIF!==void 0)return YIF;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return YIF=A},{mode:1});var VUQ;var ZVr;var oHu;var d9b;var SIu;var F4=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};A.pendingStoryboardImages_={};A.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];A.tickLabelInterval=30;A.mediumTickInterval=5;A.largeTickInterval=15;A.aboveRulerHeight=32;A.rulerHeight=50;A.smallTickHeight=4;A.mediumTickHeight=8;A.largeTickHeight=16;A.mediaListeners_=
{};return A};
_.R(F4,_.F);_.J=F4.prototype;_.J.attached=function(){var A=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(t){t=_.U(["screen and (min-resolution: "+t+")","screen and (max-resolution: "+t+")"]);for(var f=t.next();!f.done;f=t.next()){f=f.value;var X=window.matchMedia(f);X&&(A.mediaListeners_[f]=A.updatePixelRatio_.bind(A),X.addEventListener?X.addEventListener("change",A.mediaListeners_[f]):X.addListener?X.addListener(A.mediaListeners_[f]):delete A.mediaListeners_[f])}})};
_.J.detached=function(){this.setPlayer(null);for(var A=_.U(Object.keys(this.mediaListeners_)),t=A.next();!t.done;t=A.next()){var f=t.value;t=this.mediaListeners_[f];(f=window.matchMedia(f))&&(f.removeEventListener?f.removeEventListener("change",t):f.removeListener&&f.removeListener(t))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.J.onVisibilityChangedAction_=function(A){var t=this;A.visible&&!this.player_&&(A=_.K1())&&A.getPlayerPromise().then(function(f){t.setPlayer(f)})};
_.J.setPlayer=function(A){A&&this.set("player_",A)};
_.J.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.J.setUpCanvas_=function(){var A=this.rulerWidth,t=this.devicePixelRatio_,f=this.visible;this.set("canvasReady_",!1);if(f&&t!==0){f=this.aboveRulerHeight+this.rulerHeight;var X=_.sF(this.hostElement).querySelector("#ticks");X.width=A*t;X.height=f*t;X.style.width=A+"px";X.style.height=f+"px";X.getContext("2d").scale(t,t);this.set("canvasReady_",!0)}};
_.J.drawRuler_=function(A,t,f,X,Q,q,e,G,N,z,T,O){A&&f&&t&&(A=_.sF(this.hostElement).querySelector("#ticks"),t=A.getContext("2d"),t.clearRect(0,0,A.width,A.height),t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),t.lineWidth=2,t.beginPath(),t.moveTo(0,this.aboveRulerHeight),t.lineTo(A.width,this.aboveRulerHeight),t.moveTo(0,A.height),t.lineTo(A.width,A.height),t.stroke(),this.drawRulerTicks_(A,q,Q,X),this.drawStoryboardImages_(A,f,q,Q,X),t.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
t.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(e-q,X,!1),this.rulerHeight),f=this.timeToPixels_(G-q,X,!1),t.fillRect(f,this.aboveRulerHeight,A.width-f,this.rulerHeight),this.drawSpeedLines_(A,q,O))};
_.J.drawRulerTicks_=function(A,t,f,X){var Q=A.getContext("2d");Q.save();Q.lineWidth=1;for(var q=Math.floor(Math.max(0,t-this.tickLabelInterval));q<t+f;q++){Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var e=(q-t)*X;Q.beginPath();Q.moveTo(e,A.height);var G=this.smallTickHeight;q%this.largeTickInterval===0?G=this.largeTickHeight:q%this.mediumTickInterval===0&&(G=this.mediumTickHeight);Q.lineTo(e,A.height-G);Q.stroke();q%this.tickLabelInterval===0&&(Q.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Q.fillText(Lq(q),e+4,12),Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Q.moveTo(e,0),Q.lineTo(e,this.aboveRulerHeight),Q.stroke())}Q.restore()};
_.J.percentToHex_=function(A){A=Math.round(A*255).toString(16);A.length<2&&(A="0"+A);return A};
_.J.drawSpeedLines_=function(A,t,f){var X=A.getContext("2d");X.save();var Q=Math.min(25,Math.abs(f)-15)/25,q=A.width*.3*Q,e=A.width*-.3,G=A.width*1.3,N=this.aboveRulerHeight;A=A.height;var z=Math.round(4*Q),T=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");T.length<7&&(T="#"+T.substring(1,4).repeat(2));var O=this.percentToHex_(.5+Q/2);O=T+O;T+="00";if(Q>0)for(Q=0;Q<z;Q++){var c=e+Math.random()*(G-e),B=N+Math.random()*(A-N),h=q+t%q,W=X.createLinearGradient(c,B,c+h,B);
f<0?(W.addColorStop(0,O),W.addColorStop(.4,O),W.addColorStop(.9,T)):(W.addColorStop(.1,T),W.addColorStop(.6,O),W.addColorStop(1,O));X.strokeStyle=W;X.lineWidth=1;X.beginPath();X.moveTo(c,B);X.lineTo(c+h,B);X.stroke()}X.restore()};
_.J.getStoryboardForTime_=function(A,t,f){f===void 0&&(f=t.getNumberOfStoryboardLevels()-1);A=t.getStoryboardFrameIndex(A,f);return t.getStoryboardFrame(A,f)};
_.J.drawStoryboardImages_=function(A,t,f,X,Q){if(!this.disabled){A=A.getContext("2d");var q=this.getStoryboardForTime_(0,t);if(q){var e=q.width/q.columns;q=q.height/q.rows;var G=e/q,N=this.rulerHeight*G;N=this.tickLabelInterval*(G<this.tickLabelInterval*Q/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Q/N):Math.round(N/(this.tickLabelInterval*Q)));var z=N*Q,T=this.rulerHeight,O=z/this.rulerHeight,c=Math.floor(Math.max(0,f-N));for(c-=c%N;c<f+X;c+=N){var B=this.getStoryboardForTime_(c,t),h=this.getPreloadedStoryboard_(B.url);
if(h){var W=(c-f)*Q,L=this.aboveRulerHeight,E=B.column*e,D=B.row*q;if(G<O){var S=T/(z/G);B=e;S*=q;D+=(q-S)/2}else B=z/(T*G)*e,S=q,E+=(e-B)/2;A.drawImage(h,E,D,B,S,W,L,z,T)}else this.fetchStoryboardImage_(B)}}}};
_.J.getPreloadedStoryboard_=function(A){return this.storyboardImages_.find(function(t){if(t.src==A)return!0;var f=t.src.indexOf(A);return f!=-1&&f==t.src.length-A.length})};
_.J.fetchStoryboardImage_=function(A){var t=this,f=this.getPreloadedStoryboard_(A.url),X=this.pendingStoryboardImages_[A.url];f||X!==void 0||(f=new Promise(function(Q){var q=new Image(A.width,A.height);q.src=A.url;q.onload=function(){Q(q)};
q.onerror=function(){Q(null)}}),this.pendingStoryboardImages_[A.url]=f,f.then(function(Q){Q&&t.push("storyboardImages_",Q);
return Q}).finally(function(){delete t.pendingStoryboardImages_[A.url]}))};
_.J.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.J.timeToPixels_=function(A,t,f){A*=t;return f===void 0||f?A+"px":A};
_.J.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
F4.prototype.drawRuler_=F4.prototype.drawRuler_;F4.prototype.setUpCanvas_=F4.prototype.setUpCanvas_;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],F4.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],F4.prototype,"start",void 0);_.V([_.n({value:30}),_.H("design:type",Number)],F4.prototype,"end",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],F4.prototype,"visible",void 0);_.V([_.n(),_.H("design:type",Object)],F4.prototype,"player_",void 0);_.V([_.n(),_.H("design:type",Number)],F4.prototype,"tickSpacing",void 0);_.V([_.n(),_.H("design:type",Number)],F4.prototype,"windowSizeSec",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],F4.prototype,"rulerWidth",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],F4.prototype,"rulerShift",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],F4.prototype,"canvasReady_",void 0);_.V([_.n({value:function(){return[]}}),
_.H("design:type",Array)],F4.prototype,"storyboardImages_",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],F4.prototype,"disabled",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],F4.prototype,"forceRender_",void 0);_.V([_.n({value:1}),_.H("design:type",Number)],F4.prototype,"devicePixelRatio_",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],F4.prototype,"windowSpeed",void 0);
_.V([_.ev("visible","devicePixelRatio_","rulerWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F4.prototype,"setUpCanvas_",null);
_.V([_.ev("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.H("design:returntype")],F4.prototype,"drawRuler_",null);_.V([_.WU({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],F4);
_.Y(F4,"yt-clip-creation-scrubber-canvas",function(){if(SIu===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);SIu=A}A=SIu;return A},
{mode:2});var $9b;var HVi;var IT=function(){var A=_.F.apply(this,arguments)||this;A.start=0;A.end=30;A.visible=!1;A.draggingLeft_=!1;A.draggingRight_=!1;A.draggingRuler_=!1;A.draggingWindow_=!1;A.seekableStart=0;A.seekableEnd=0;A.rulerWidth_=0;A.rulerShift_=0;A.windowSlideSpeed=0;A.disabled=!1;A.initialized=!1;A.durationAccessibilityLabel="";A.activeLoopRange_=!1;A.rulerDragMouseStart_=0;A.rulerDragRulerStart_=0;A.rulerDragStartTime_=0;A.rulerDragEndTime_=0;A.dragMouseLastX_=0;A.scrollInterval_=null;A.scrubberVe_=null;A.boundHandlers_=
{};A.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return A};
_.R(IT,_.F);_.J=IT.prototype;
_.J.created=function(){var A=this;this.JSC$23177_playerEvents=new Map;this.JSC$23177_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23177_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23177_playerEvents.set("onStateChange",this.onStateChange_);var t={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(t).forEach(function(f){A.boundHandlers_[f]=t[f].bind(A)})};
_.J.attached=function(){this.activeLoopRange_=!1;_.sF(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.sF(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Xl(156731)};
_.J.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.sF(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.sF(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.J.onVisibilityChangedAction_=function(A){var t=this;A.visible&&!this.player_&&(A=_.K1())&&A.getPlayerPromise().then(function(f){t.setPlayer(f)})};
_.J.setPlayer=function(A){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23177_playerEvents);A&&(this.set("player_",A),this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23177_playerEvents))};
_.J.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.beginHandleDrag_=function(A){this.disabled||(A.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=A.clientX,A.target===_.sF(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():A.target===_.sF(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.J.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.J.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.J.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.J.beginRulerDrag_=function(A){this.disabled||(A.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=A.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.J.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.J.beginWindowScroll_=function(){var A=this;this.scrollInterval_=setInterval(function(){var t=A.windowSlideSpeed;if(t=_.NDQ(A.start,A.boundedRulerStartLimit_())?t-.1:_.NDQ(A.end,A.boundedRulerEndLimit_())?t+.1:0){var f=A.capRulerOffset_(A.rulerShift_+t);f==A.rulerShift_?t=0:(A.set("rulerShift_",f),_.s9(A.hostElement,"set-fixed-length-range",{start:A.start+t,duration:A.end-A.start}))}A.set("windowSlideSpeed",t)},33)};
_.J.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.J.endDrag_=function(){this.logClick();var A=void 0;this.draggingRight_?A=this.end-1:this.draggingLeft_&&(A=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,A);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))};
_.J.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.J.updateRulerSize_=function(){this.set("rulerWidth_",_.sF(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.J.handleMouseDrag_=function(A){A.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(A):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(A):this.draggingWindow_&&this.handleWindowDrag_(A))};
_.J.handleRulerDrag_=function(A){A=this.pixelsToTime_(A.clientX-this.rulerDragMouseStart_);A=this.capRulerOffset_(this.rulerDragRulerStart_-A);this.set("rulerShift_",A);var t=this.rulerDragStartTime_-(this.rulerDragRulerStart_-A);_.s9(this.hostElement,"set-fixed-length-range",{start:t,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-A)-t})};
_.J.handleWindowDrag_=function(A){var t=A.clientX-this.dragMouseLastX_;this.dragMouseLastX_=A.clientX;A=this.pixelsToTime_(t);_.s9(this.hostElement,"set-fixed-length-range",{start:this.start+A,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.capRulerOffset_=function(A){var t=this.seekableStart-this.pixelsToTime_(16),f=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(t,A),f)};
_.J.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.J.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.J.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.J.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.J.handleWindowHandleDrag_=function(A){var t=A.clientX-this.dragMouseLastX_;this.dragMouseLastX_=A.clientX;A=this.pixelsToTime_(t);if(this.draggingLeft_){var f=this.start+A;var X=this.end}else this.draggingRight_&&(f=this.start,X=this.end+A);_.s9(this.hostElement,"set-range",{start:f,end:X,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.onVideoProgress_=function(A){this.disabled||(A=this.timeToPixels_(A-this.rulerShift_,this.tickSpacing_),_.sF(this.hostElement).querySelector("#playhead").style.transform="translateX("+A+")")};
_.J.onClipCreationDisable_=function(){this.endDrag_()};
_.J.timeToPixels_=function(A,t,f){A*=t;return f===void 0||f?A+"px":A};
_.J.pixelsToTime_=function(A){return A/this.tickSpacing_};
_.J.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.centerRuler_=function(A,t,f){this.set("rulerShift_",this.capRulerOffset_(A+(t-A)/2-f/2))};
_.J.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.J.updateLoopRange_=function(A,t,f,X,Q,q,e){A&&(t&&X&&!f?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(A.pauseVideo(),A.seekTo(Q,!1,void 0,void 0,50)):this.draggingRight_?(A.pauseVideo(),A.seekTo(q-.1,!1,void 0,void 0,50)):(e!==void 0?A.seekTo(e,!0,void 0,void 0,50):(t=A.getCurrentTime(),t<Q||t>q?A.seekTo(Q,!0,void 0,void 0,50):A.seekTo(t,!0,void 0,void 0,50)),A.playVideo()),A.setLoopRange({startTimeMs:Q*1E3,endTimeMs:q*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(A.getCurrentTime())):
this.activeLoopRange_&&(A.setLoopRange(null),this.activeLoopRange_=!1))};
_.J.updateHandles_=function(){_.sF(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.sF(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.J.updateRuler_=function(){var A=this.end,t=this.start,f=this.draggableStartLimit_(),X=this.draggableEndLimit_();(t<f-.001||A>X+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.computeDurationLabel_=function(A,t){return A?A.replace("$clip_length",parseFloat(t).toFixed(1)):""};
_.J.computeDuration_=function(A,t){return this.isValidTime_(A)&&this.isValidTime_(t)&&A<t?t-A:0};
_.J.isValidTime_=function(A){return isNaN(parseFloat(A))||A<0?!1:this.player_?A>=this.seekableStart&&A<=this.seekableEnd:!0};
_.J.computeWindowSizeSec_=function(A,t,f){return Math.min((A||12E4)/1E3,f-t)};
_.J.computeTickSpacing_=function(A,t){return t?t/A:1};
_.J.onDragStateChanged_=function(){_.s9(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.J.centerRangeOnTime_=function(A){var t=this.duration;A=tJQ(A-t/2,t,this.seekableStart,this.seekableEnd);_.s9(this.hostElement,"set-fixed-length-range",{start:A.start,duration:A.end-A.start})};
_.J.nearlyLessThan_=function(A,t,f){return A+(f===void 0?1E-6:f)<t};
_.J.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var A=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(A,this.start)||this.nearlyLessThan_(this.end,A))&&this.centerRangeOnTime_(A)}};
_.J.onStateChange_=function(A){this.visible&&!this.disabled&&A==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.J.computeDragState_=function(A,t,f,X){return A?"left":t?"right":f?"ruler":X?"window":"none"};
_.J.logClick=function(){var A=_.Ws(),t=_.mx();A&&t&&this.scrubberVe_&&(_.M("combine_ve_grafts")?_.jN(_.er(),this.scrubberVe_,t):_.x7(A,t,this.scrubberVe_),_.o7(A,this.scrubberVe_))};
IT.prototype.onDragStateChanged_=IT.prototype.onDragStateChanged_;IT.prototype.updateRuler_=IT.prototype.updateRuler_;IT.prototype.updateHandles_=IT.prototype.updateHandles_;IT.prototype.onUpdateLoopRange=IT.prototype.onUpdateLoopRange;IT.prototype.onInitializedChanged_=IT.prototype.onInitializedChanged_;IT.prototype.onVisibleChanged_=IT.prototype.onVisibleChanged_;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],IT.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",Object)],IT.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"start",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"end",void 0);_.V([_.n({computed:"computeDuration_(start, end)"}),_.H("design:type",Number)],IT.prototype,"duration",void 0);
_.V([_.n(),_.H("design:type",String)],IT.prototype,"lengthTemplate",void 0);_.V([_.n({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.H("design:type",String)],IT.prototype,"durationLabel",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"visible",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"player_",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"draggingLeft_",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"draggingRight_",void 0);
_.V([_.n(),_.H("design:type",Object)],IT.prototype,"draggingRuler_",void 0);_.V([_.n({value:!1}),_.H("design:type",Object)],IT.prototype,"draggingWindow_",void 0);_.V([_.n({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.H("design:type",Number)],IT.prototype,"tickSpacing_",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"seekableStart",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"seekableEnd",void 0);
_.V([_.n(),_.H("design:type",Number)],IT.prototype,"windowSizeMs",void 0);_.V([_.n({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.H("design:type",Number)],IT.prototype,"windowSizeSec_",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"rulerWidth_",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"rulerShift_",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"windowSlideSpeed",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],IT.prototype,"disabled",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"initialized",void 0);_.V([_.n(),_.H("design:type",Object)],IT.prototype,"durationAccessibilityLabel",void 0);_.V([_.n({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.H("design:type",String)],IT.prototype,"dragState",void 0);
_.V([_.ev("visible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IT.prototype,"onVisibleChanged_",null);_.V([_.ev("initialized"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IT.prototype,"onInitializedChanged_",null);_.V([_.ev("player_","visible","disabled","initialized","start","end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IT.prototype,"onUpdateLoopRange",null);
_.V([_.ev("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IT.prototype,"updateHandles_",null);_.V([_.ev("start","end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IT.prototype,"updateRuler_",null);
_.V([_.ev("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IT.prototype,"onDragStateChanged_",null);_.V([_.WU({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],IT);
_.Y(IT,"yt-clip-creation-scrubber-view",function(){if(HVi===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;$9b===void 0&&($9b=document.createElement("template"));var X=$9b;f.call(t,X.content.cloneNode(!0),A.content.firstChild);HVi=A}A=HVi;return A},{mode:2});var x2=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};A.startHighlightTimeout=0;A.endHighlightTimeout=0;return A};
_.R(x2,_.F);_.J=x2.prototype;_.J.attached=function(){var A=this;this.startInput.addEventListener("input",function(t){return A.handleStartInput_(t)});
this.endInput.addEventListener("input",function(t){return A.handleEndInput_(t)});
this.startInput.addEventListener("focusout",function(t){return A.handleStartBlur_(t)});
this.endInput.addEventListener("focusout",function(t){return A.handleEndBlur_(t)})};
_.J.setPlayer=function(A){this.set("player_",A)};
_.J.onSetFixedLengthRange_=function(A){var t=A.detail;A=t.start;var f=t.duration,X=t.startLimit;t=t.endLimit;X||(X=this.seekableStart_);t||(t=this.seekableEnd_);A=tJQ(A,f,X,t);this.start=A.start;this.end=A.end};
_.J.onSetRange_=function(A){var t=A.detail;A=t.start;var f=t.end,X=t.startLimit;t=t.endLimit;X||(X=this.seekableStart_);t||(t=this.seekableEnd_);if(A=fUH(A,f,X,t,this.minLengthSec,this.maxLengthSec))this.start=A.start,this.end=A.end};
_.J.updateInputs_=function(){var A=this.end,t=this.start;this.startInput.focused||(this.startInput.value=Lq(t,!0));this.endInput.focused||(this.endInput.value=Lq(A,!0))};
_.J.handleStartInput_=function(A){A=Aeb(A.target.value);if(A===null)this.set("startValid",!1);else{var t=this.end,f=fUH(A,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);f?(this.set("endWillUpdate",f.end!==t),this.set("startValid",f.start===A)):this.set("startValid",!1)}};
_.J.handleEndInput_=function(A){A=Aeb(A.target.value);if(A===null)this.set("endValid",!1);else{var t=this.start,f=Xxb(this.start,A,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);f?(this.set("startWillUpdate",f.start!==t),this.set("endValid",f.end===A)):this.set("endValid",!1)}};
_.J.handleStartBlur_=function(A){A=Aeb(A.target.value);A===null?this.startInput.value=Lq(this.start,!0):this.forceUpdateInputs_(fUH(A,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.handleEndBlur_=function(A){A=Aeb(A.target.value);A===null?this.endInput.value=Lq(this.end,!0):this.forceUpdateInputs_(Xxb(this.start,A,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.forceUpdateInputs_=function(A){A&&(this.start=A.start,this.end=A.end);this.startInput.value=Lq(this.start,!0);this.endInput.value=Lq(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.J.initializeClipRange_=function(){var A=this.seekableEnd_,t=this.seekableStart_,f=this.visible_,X=this.player_;if(!X||!f||t===null||!A)this.set("initialized",!1);else if(!this.initialized){var Q=X.getCurrentTime(),q=this.getDefaultLengthSec_();f=X.getVideoData();var e=X.getPlayerState()==1,G=f.isLive;q=Math.min(q,A-t);Q=Math.max(0,Q);A=G?Xxb(Q-q,Q,t,A,this.minLengthSec,this.maxLengthSec):e?tJQ(Q-q/2,q,t,A):tJQ(Q,q,t,A);this.start=A.start;this.end=A.end;this.set("initialized",!0);f.isLive&&X.seekTo(A.start);
this.startInput.value=Lq(this.start,!0);this.endInput.value=Lq(this.end,!0)}};
_.J.onStartChanged_=function(){var A=this;_.s9(this.hostElement,"start-changed",{start:this.start});var t;isNaN((t=this.oldStart)!=null?t:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){A.set("highlightStart",!1);A.startHighlightTimeout=0;A.oldStart=A.start},3E3))};
_.J.onEndChanged_=function(){var A=this;_.s9(this.hostElement,"end-changed",{end:this.end});var t;isNaN((t=this.oldEnd)!=null?t:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){A.set("highlightEnd",!1);A.endHighlightTimeout=0;A.oldEnd=A.end},3E3))};
_.J.onVisibilityChangedAction_=function(A){var t=this;this.set("visible_",A.visible);this.visible_&&!this.player_&&(A=_.K1())&&A.getPlayerPromise().then(function(f){t.setPlayer(f)})};
_.J.computeMinLengthSec_=function(A){return A/1E3||5};
_.J.computeMaxLengthSec_=function(A){return A/1E3||60};
_.J.computeDefaultLengthSec_=function(A){return A/1E3};
_.J.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.J.computeSeekableStart_=function(A,t){return A&&t?A.getProgressState(1).seekableStart:0};
_.J.computeSeekableEnd_=function(A,t){return A&&t?A.getProgressState(1).seekableEnd:0};
_.J.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.J.onDragState_=function(A){this.set("highlightStart",A.detail.startChanging);this.set("highlightEnd",A.detail.endChanging)};
x2.prototype.onDragState_=x2.prototype.onDragState_;x2.prototype.onEndChanged_=x2.prototype.onEndChanged_;x2.prototype.onStartChanged_=x2.prototype.onStartChanged_;x2.prototype.initializeClipRange_=x2.prototype.initializeClipRange_;x2.prototype.updateInputs_=x2.prototype.updateInputs_;x2.prototype.onSetRange_=x2.prototype.onSetRange_;x2.prototype.onSetFixedLengthRange_=x2.prototype.onSetFixedLengthRange_;
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],x2.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],x2.prototype,"data",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],x2.prototype,"start",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],x2.prototype,"startValid",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],x2.prototype,"startWillUpdate",void 0);_.V([_.n({value:30}),_.H("design:type",Number)],x2.prototype,"end",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],x2.prototype,"endValid",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],x2.prototype,"endWillUpdate",void 0);_.V([_.n({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.H("design:type",Number)],x2.prototype,"minLengthSec",void 0);
_.V([_.n({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.H("design:type",Number)],x2.prototype,"maxLengthSec",void 0);_.V([_.n({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.H("design:type",Number)],x2.prototype,"defaultLengthSec",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],x2.prototype,"visible_",void 0);_.V([_.n(),_.H("design:type",Object)],x2.prototype,"player_",void 0);
_.V([_.n({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.H("design:type",Number)],x2.prototype,"seekableStart_",void 0);_.V([_.n({computed:"computeSeekableEnd_(player_, visible_)"}),_.H("design:type",Number)],x2.prototype,"seekableEnd_",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],x2.prototype,"initialized",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],x2.prototype,"disabled",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],x2.prototype,"highlightStart",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],x2.prototype,"highlightEnd",void 0);_.V([_.lo("#start"),_.H("design:type",HTMLInputElement)],x2.prototype,"startInput",void 0);_.V([_.lo("#end"),_.H("design:type",HTMLInputElement)],x2.prototype,"endInput",void 0);
_.V([_.UQ("set-fixed-length-range"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],x2.prototype,"onSetFixedLengthRange_",null);_.V([_.UQ("set-range"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],x2.prototype,"onSetRange_",null);_.V([_.ev("start","end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x2.prototype,"updateInputs_",null);
_.V([_.ev("player_","visible_","seekableStart_","seekableEnd_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x2.prototype,"initializeClipRange_",null);_.V([_.ev("start"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x2.prototype,"onStartChanged_",null);_.V([_.ev("end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x2.prototype,"onEndChanged_",null);
_.V([_.UQ("clips-drag-state"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],x2.prototype,"onDragState_",null);_.V([_.WU({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],x2);
_.Y(x2,"yt-clip-creation-scrubber-renderer",function(){if(d9b===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;oHu===void 0&&(oHu=document.createElement("template"));var X=oHu;f.call(t,X.content.cloneNode(!0),A.content.firstChild);d9b=A}A=d9b;return A},{mode:2});var jy=function(){var A=_.F.apply(this,arguments)||this;A.player_=null;A.JSC$23191_playerEvents=new Map;A.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return A};
_.R(jy,_.F);_.J=jy.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$23191_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23191_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23191_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23191_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.J.detached=function(){this.setPlayer(null)};
_.J.onVisibilityChangedAction_=function(A){var t=this,f;if((f=this.data)==null?0:f.externalVideoId){var X;this.videoId=(X=this.data)==null?void 0:X.externalVideoId}this.getPlayer().then(function(Q){if(A.visible)t.returnTime=Q.getCurrentTime(),t.isAtLiveHead=Q.getProgressState().isAtLiveHead;else{var q=t.returnTime;t.isAtLiveHead&&(q=Number.POSITIVE_INFINITY);Q.seekTo(q,void 0,void 0,void 0,51)}})};
_.J.getPlayer=function(){var A=this;if(!this.player_){var t=_.K1();if(t)return t.getPlayerPromise().then(function(f){A.setPlayer(f);return f})}return Promise.resolve(this.player_)};
_.J.setPlayer=function(A){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23191_playerEvents);if(A){this.player_=A;var t;((t=this.data)==null?0:t.externalVideoId)||this.set("videoId",A.getVideoData().video_id||"");var f;(A==null?void 0:(f=A.getPresentingPlayerType)==null?void 0:f.call(A))===2&&(this.set("isAdPlaying",!0),_.kJ(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23191_playerEvents)}};
_.J.ready=function(){_.sF(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.J.onTitleChanged_=function(A){this.set("titleValue",A.detail.title)};
_.J.onStartChanged_=function(A){this.set("start",A.detail.start)};
_.J.onEndChanged_=function(A){this.set("end",A.detail.end)};
_.J.onTitleValidChanged_=function(A){this.set("titleValid",A.detail.valid)};
_.J.onStartValidChanged_=function(A){this.set("startValid",A.detail.valid)};
_.J.onEndValidChanged_=function(A){this.set("endValid",A.detail.valid)};
_.J.onVideoDataChange_=function(){var A;if((A=this.data)==null||!A.externalVideoId){var t;this.set("videoId",((t=this.player_)==null?void 0:t.getVideoData().video_id)||"")}};
_.J.computeFormValid_=function(A,t,f,X){return!!(A&&t&&f&&X)};
_.J.computeCancelButton_=function(A,t,f){return A&&_.C(A,_.Gf)?{buttonRenderer:Object.assign({},_.C(A,_.Gf),{isDisabled:t||f})}:null};
_.J.computeSubmitButton_=function(A,t,f){return A&&_.C(A,_.Gf)?{buttonRenderer:Object.assign({},_.C(A,_.Gf),{command:void 0,isDisabled:!this.formValid||t||f})}:null};
_.J.computeSubmitCommand_=function(A){return A||null};
_.J.onSubmit_=function(A){var t=this;A.stopPropagation();A.preventDefault();this.submitCommand_&&(A={},A.comment_text=this.titleValue,A.clip_external_video_id=this.videoId,A.clip_offset_ms=parseInt(this.start*1E3,10),A.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Al(this.hostElement,[this.submitCommand_,A]).then(function(){t.set("isLoading_",!1)},function(){t.set("isLoading_",!1)}))};
_.J.playerAdStartHandler_=function(){_.kJ(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler_=function(){_.kJ(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.J.onVideoProgress_=function(){var A=this;this.getPlayer().then(function(t){var f,X=(t==null?void 0:(f=t.getPresentingPlayerType)==null?void 0:f.call(t))===2;A.isAdPlaying!==X&&(X?A.playerAdStartHandler_():A.playerAdEndHandler_())})};
jy.prototype.onEndValidChanged_=jy.prototype.onEndValidChanged_;jy.prototype.onStartValidChanged_=jy.prototype.onStartValidChanged_;jy.prototype.onTitleValidChanged_=jy.prototype.onTitleValidChanged_;jy.prototype.onEndChanged_=jy.prototype.onEndChanged_;jy.prototype.onStartChanged_=jy.prototype.onStartChanged_;jy.prototype.onTitleChanged_=jy.prototype.onTitleChanged_;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],jy.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",Object)],jy.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],jy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],jy.prototype,"data",void 0);_.V([_.n({value:""}),_.H("design:type",String)],jy.prototype,"titleValue",void 0);
_.V([_.n({value:!1}),_.H("design:type",Boolean)],jy.prototype,"titleValid",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],jy.prototype,"start",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],jy.prototype,"startValid",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],jy.prototype,"end",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],jy.prototype,"endValid",void 0);_.V([_.n({value:""}),_.H("design:type",String)],jy.prototype,"videoId",void 0);
_.V([_.n({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.H("design:type",Boolean)],jy.prototype,"formValid",void 0);_.V([_.n({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.H("design:type",Object)],jy.prototype,"submitButton_",void 0);_.V([_.n({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.H("design:type",Object)],jy.prototype,"submitCommand_",void 0);
_.V([_.n({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.H("design:type",Object)],jy.prototype,"cancelButton_",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],jy.prototype,"isLoading_",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],jy.prototype,"isAdPlaying",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],jy.prototype,"returnTime",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],jy.prototype,"isAtLiveHead",void 0);
_.V([_.UQ("title-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],jy.prototype,"onTitleChanged_",null);_.V([_.UQ("start-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],jy.prototype,"onStartChanged_",null);_.V([_.UQ("end-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],jy.prototype,"onEndChanged_",null);
_.V([_.UQ("title-valid-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],jy.prototype,"onTitleValidChanged_",null);_.V([_.UQ("start-valid-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],jy.prototype,"onStartValidChanged_",null);_.V([_.UQ("end-valid-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],jy.prototype,"onEndValidChanged_",null);
_.V([_.WU({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],jy);
_.Y(jy,"yt-clip-creation-renderer",function(){if(ZVr===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;VUQ===void 0&&(VUQ=document.createElement("template"));var X=VUQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ZVr=A}A=ZVr;return A},{mode:2});var Y2=function(){return _.F.apply(this,arguments)||this};
_.R(Y2,_.F);Y2.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"}}}};
Y2.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(A){return A.hasOwnProperty("clipCreationRenderer")})&&_.kJ(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Y2.prototype.onPanelContentVisibleChanged=Y2.prototype.onPanelContentVisibleChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Y2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.GL.YtVisibilityBehavior),_.H("design:type",Object)],Y2.prototype,"ytVisibilityBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Y2.prototype,"ytdReduxBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Y2.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Y2.prototype,"panelContentVisible",void 0);_.V([_.ev("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Y2.prototype,"onPanelContentVisibleChanged",null);_.V([_.y_({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Y2);
_.Y(Y2,"ytd-clip-section-renderer",function(){if(I_i!==void 0)return I_i;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return I_i=A},{mode:1});var a_b;var VF=function(){return _.F.apply(this,arguments)||this};
_.R(VF,_.F);_.J=VF.prototype;
_.J.onKeyDown=function(A){if(this.snippetElements.length!==0&&(A=A.keyCode,A===38||A===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);A===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.ps(this.highlightedIndex,-1,this.snippetElements.length);A=this.snippetElements.length;var t=this.highlightedIndex%A;this.highlightedIndex=t*A<0?t+A:t;A=this.snippetElements[this.highlightedIndex];this.highlightSnippet(A);this.ensureVisible(A)}};
_.J.onKeyUp=function(A){var t=this;$GF(A)&&(A.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.a6.cancelJob(this.inputTimerId),this.inputTimerId=_.a6.addLowPriorityJob(function(){t.typedValue&&(t.fetchSnippets(t.typedValue),t.logInputGesture(t.data))},1E3))};
_.J.onClick=function(A){(A=_.YP7(A.target,null,"snippet-item"))&&this.selectSnippet(A)};
_.J.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.J.ready=function(){var A=this;this.inputElement.addEventListener("focus",function(){A.snippetsWrapper.style.removeProperty("display")})};
_.J.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.J.getSourceTimelines=function(){if(!this.data)return[];var A=[];if(this.data.searchInVideoSources)for(var t=_.U(this.data.searchInVideoSources),f=t.next();!f.done;f=t.next())f=f.value,f==="SEARCH_IN_VIDEO_SOURCE_ASR"?A.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):f==="SEARCH_IN_VIDEO_SOURCE_OCR"&&A.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return A};
_.J.fetchSnippets=function(A){var t=_.kJ(this.hostElement,"yt-get-current-video-id-action")[0],f=this.getSourceTimelines();A={getSearchInVideoCommand:{externalVideoId:t,query:A!=null?A:"",sourceTimelines:f},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}})};
_.J.filterSnippets=function(A,t){var f=this;if(t){this.filteredSnippets=(0,_.VG.unsafeClone)(A);var X=RegExp(_.W1b(t),"i");this.filteredSnippets=this.filteredSnippets.filter(function(e){return X.test(f.ytRendererBehavior.getSimpleString(e.snippet))});
A=_.U(this.filteredSnippets);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var q=this.ytRendererBehavior.getSimpleString(Q.snippet);Q.snippet={runs:[{text:q.substring(0,q.toLowerCase().indexOf(t))},{text:q.substring(q.toLowerCase().indexOf(t),q.toLowerCase().indexOf(t)+t.length),bold:!0},{text:q.substring(q.toLowerCase().indexOf(t)+t.length,q.length)}]}}}else this.filteredSnippets=A};
_.J.onUpdateSearchInVideoResults=function(A){if(!(this.snippets.length>0)){var t,f,X;if((X=(t=_.C(A,Q6Q))==null?void 0:(f=t.results)==null?void 0:f.length)!=null&&X){var Q;this.filteredSnippets=this.snippets=((Q=_.C(A,Q6Q))==null?void 0:Q.results).map(function(q){var e,G,N;return{startMs:q==null?void 0:(e=q.searchInVideoResultRenderer)==null?void 0:e.startMs,startTimeText:q==null?void 0:(G=q.searchInVideoResultRenderer)==null?void 0:G.startTimeText,snippet:q==null?void 0:(N=q.searchInVideoResultRenderer)==
null?void 0:N.snippet}})}}};
_.J.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};
_.J.highlightSnippet=function(A){A.classList.add("highlighted")};
_.J.removeSnippetHighlight=function(A){A.classList.remove("highlighted")};
_.J.selectSnippet=function(A){this.typedValue=String(A.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(A);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.J.ensureVisible=function(A){var t=this.snippetsWrapper.scrollTop,f=t+this.snippetsWrapper.clientHeight,X=A.offsetTop-this.snippetsWrapper.offsetTop;A=X+A.clientHeight;X<t?this.snippetsWrapper.scrollTop-=t-X:A>f&&(this.snippetsWrapper.scrollTop+=A-f)};
_.J.seekPlayer=function(A){var t,f;return _.l(function(X){if(X.nextAddress==1){if(!A)return X.jumpTo(0);t=Number(A.dataset.startOffset);return X.yield(_.ge().getPlayerPromise(),3)}f=X.yieldResult;f.seekTo(t/1E3,!0);f.wakeUpControls();_.LO(X)})};
_.J.logInputGesture=function(A){var t=_.Ws();t&&(A==null?0:A.trackingParams)&&_.d0(t,_.zV(A.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.J.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("typed-value-changed",this.typedValue))};
_.J.updateTypedValueFromBinding=function(A){this.typedValue=A.currentTarget.value};
VF.prototype.typedValueChangedForBinding=VF.prototype.typedValueChangedForBinding;VF.prototype.dataChanged=VF.prototype.dataChanged;VF.prototype.panelContentVisibleChanged=VF.prototype.panelContentVisibleChanged;VF.prototype.onClick=VF.prototype.onClick;VF.prototype.onKeyUp=VF.prototype.onKeyUp;VF.prototype.onKeyDown=VF.prototype.onKeyDown;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],VF.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],VF.prototype,"data",void 0);_.V([_.n({value:[]}),_.H("design:type",Array)],VF.prototype,"snippets",void 0);_.V([_.n({value:[]}),_.H("design:type",Array)],VF.prototype,"filteredSnippets",void 0);_.V([_.n({value:[]}),_.H("design:type",Array)],VF.prototype,"snippetElements",void 0);
_.V([_.lo("#siv-input"),_.H("design:type",HTMLElement)],VF.prototype,"inputElement",void 0);_.V([_.lo("#siv-snippets-wrapper"),_.H("design:type",HTMLElement)],VF.prototype,"snippetsWrapper",void 0);_.V([_.n(),_.H("design:type",String)],VF.prototype,"typedValue",void 0);_.V([_.n({value:-1}),_.H("design:type",Number)],VF.prototype,"highlightedIndex",void 0);_.V([_.UQ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[_.W_]),_.H("design:returntype")],VF.prototype,"onKeyDown",null);
_.V([_.UQ("keyup"),_.H("design:type",Function),_.H("design:paramtypes",[_.W_]),_.H("design:returntype")],VF.prototype,"onKeyUp",null);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],VF.prototype,"onClick",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],VF.prototype,"panelContentVisible",void 0);
_.V([_.ev("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VF.prototype,"panelContentVisibleChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VF.prototype,"dataChanged",null);_.V([_.ev("typedValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VF.prototype,"typedValueChangedForBinding",null);
_.V([_.y_({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],VF);
_.Y(VF,"ytd-search-in-video-renderer",function(){if(a_b!==void 0)return a_b;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return a_b=A},{mode:1});var KEx;var Z8=function(){return _.F.apply(this,arguments)||this};
_.R(Z8,_.F);Z8.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Z8.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]]"}}}}}};
Z8.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var A,t,f,X,Q=(t=_.C((A=this.data)==null?void 0:A.onClickCommand,_.L1k))==null?void 0:(f=t.item)==null?void 0:(X=f.notificationTextRenderer)==null?void 0:X.successResponseText;Q&&_.NXb(this.hostElement,Q)}};
_.PV.Object.defineProperties(Z8.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X;return this.isProductPlaceholder&&((A=this.data)==null?void 0:(t=A.hiddenProductOptions)==null?void 0:t.showDropCountdown)&&!!((f=this.data)==null?0:(X=f.hiddenProductOptions)==null?0:X.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var A;return!this.isProductPlaceholder&&!((A=this.data)==null?0:A.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var A,t;return!((A=this.data)==null?0:A.priceReplacementText)&&!((t=this.data)==null||!t.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Z8.prototype,"componentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Z8.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("isProductPlaceholder"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z8.prototype,"useCenterLayoutContainer",null);_.V([_.n({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],Z8.prototype,"buttonOverride",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z8.prototype,"isProductPlaceholder",null);
_.V([_.y("isProductPlaceholder"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z8.prototype,"showDropCountdown",null);_.V([_.y("isProductPlaceholder","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z8.prototype,"showBrandName",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z8.prototype,"showPriceReplacementText",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z8.prototype,"showPrice",null);
_.V([_.y("isProductPlaceholder"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z8.prototype,"showMetadata",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Z8);
_.Y(Z8,"ytd-product-list-item-renderer",function(){if(KEx!==void 0)return KEx;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return KEx=A},{mode:1});var gHb;var oT=function(){return _.F.apply(this,arguments)||this};
_.R(oT,_.F);oT.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
oT.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
oT.prototype.panelContentVisibleChanged=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return A.playerApi?f.jumpTo(2):f.yield(_.ge().getPlayerPromise(),3);f.nextAddress!=2&&(A.playerApi=f.yieldResult);(t=A.playerApi)==null||t.productsInVideoVisibilityUpdated(!!A.panelContentVisible);_.LO(f)})};
oT.prototype.panelContentVisibleChanged=oT.prototype.panelContentVisibleChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],oT.prototype,"panelContentVisible",void 0);_.V([_.n(),_.H("design:type",Object)],oT.prototype,"data",void 0);
_.V([_.ev("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],oT.prototype,"panelContentVisibleChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],oT);
_.Y(oT,"ytd-product-list-renderer",function(){if(gHb!==void 0)return gHb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return gHb=A},{mode:1});var w9b;var du=function(){var A=_.F.apply(this,arguments)||this;A.hideTimestamps=!!_.Bi("hide-transcript-timestamps");A.currentCueIndex=-1;A.flatCues=[];A.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};A.TEST_ONLY={getFlatCues:function(){return A.flatCues}};
return A};
_.R(du,_.F);_.J=du.prototype;_.J.hideTimestampsChanged=function(){_.ci("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.dataChanged=function(){var A;if((A=this.data)!=null&&A.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;A=_.U(this.data.cueGroups);for(var t=A.next();!t.done;t=A.next()){t=_.U(_.C(t.value,qJl).cues);for(var f=t.next();!f.done;f=t.next())this.flatCues.push(Number(_.C(f.value,Jqu).startOffsetMs))}}};
_.J.onYtPlayerTimeChanged=function(A){if(!(A<0)){for(var t=this.currentCueIndex,f=t;;){var X=f>=0?this.flatCues[f]/1E3:-1;if(A+.5<X)--f;else if(X=f+1<this.flatCues.length?this.flatCues[f+1]/1E3:Infinity,A+.5>X)f+=1;else break}f!==t&&(t>=0&&((A=this.getCueElement(t))&&A.classList.remove("active"),(t=this.getCueGroupElement(t))&&t.classList.remove("active")),(t=this.getCueElement(f))&&t.classList.add("active"),(t=this.getCueGroupElement(f))&&t.classList.add("active"),this.currentCueIndex=f,this.isHovered||
this.scrollElementToTop(f))}};
_.J.scrollElementToTop=function(A){A=this.getCueElement(A>=3?A-3:0);this.hostElement.scrollTop=Math.min(A.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.J.getCueElement=function(A){return _.sF(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[A]+'"]')};
_.J.getCueGroupElement=function(A){return(A=this.getCueElement(A))&&A.parentElement?A.parentElement.parentElement:null};
_.J.onTap=function(A){var t=_.oO(A);A.target.classList.contains("cue")&&this.seekCueElement(t)};
_.J.onKeyPress=function(A){A.keyCode==13&&(A=_.YP7(A.target,null,"cue"))&&this.seekCueElement(A)};
_.J.seekCueElement=function(A){A=Number(A.getAttribute("start-offset"));_.kJ(this.hostElement,"yt-transcript-player-seek",[A/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
du.prototype.onMouseLeave=du.prototype.onMouseLeave;du.prototype.onMouseEnter=du.prototype.onMouseEnter;du.prototype.onKeyPress=du.prototype.onKeyPress;du.prototype.onTap=du.prototype.onTap;du.prototype.dataChanged=du.prototype.dataChanged;du.prototype.hideTimestampsChanged=du.prototype.hideTimestampsChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],du.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],du.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],du.prototype,"hideTimestamps",void 0);_.V([_.n(),_.H("design:type",Boolean)],du.prototype,"isHovered",void 0);_.V([_.ev("hideTimestamps"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],du.prototype,"hideTimestampsChanged",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],du.prototype,"dataChanged",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],du.prototype,"onTap",null);_.V([_.UQ("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],du.prototype,"onKeyPress",null);
_.V([_.UQ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],du.prototype,"onMouseEnter",null);_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],du.prototype,"onMouseLeave",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],du);
_.Y(du,"ytd-transcript-body-renderer",function(){if(w9b!==void 0)return w9b;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return w9b=A},{mode:1});var swy;var Sy=function(){var A=_.F.apply(this,arguments)||this;A.darkerPanels=_.M("web_watch_darker_panels");return A};
_.R(Sy,_.F);Sy.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Sy.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Sy.prototype,"darkerPanels",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Sy);
_.Y(Sy,"ytd-transcript-footer-renderer",function(){if(swy!==void 0)return swy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return swy=A},{mode:1});var kUr;var r4l;var $2=function(){var A=_.F.apply(this,arguments)||this;A.systemIcons=_.M("kevlar_system_icons");A.showClearButton=!1;return A};
_.R($2,_.F);_.J=$2.prototype;_.J.handleInput=function(A){var t=this;A.target.value.length?_.Ig(this,"ytdTranscriptSearchBoxSearch",function(){t.emitSearchEvent(A)},500):(_.BZb(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=A.target.value.length>0};
_.J.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.J.handleClick=function(){var A,t=(A=this.data)==null?void 0:A.trackingParams;t&&_.Zv(_.er(),t)};
_.J.handleClear=function(){_.BZb(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var A,t,f=(t=_.C((A=this.data)==null?void 0:A.clearButton,_.Gf))==null?void 0:t.trackingParams;f&&_.Zv(_.er(),f);this.clear()};
_.J.emitSearchEvent=function(A){_.s9(this.hostElement,"yt-transcript-search-box-search",{query:A.target.value});var t,f;(A=(f=_.C((t=this.data)==null?void 0:t.searchButton,_.Gf))==null?void 0:f.trackingParams)&&_.Zv(_.er(),A)};
_.J.emitClearEvent=function(){_.s9(this.hostElement,"yt-transcript-search-box-clear")};
_.PV.Object.defineProperties($2.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.sF(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$2.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],$2.prototype,"systemIcons",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],$2);
_.Y($2,"ytd-transcript-search-box-renderer",function(){if(r4l!==void 0)return r4l;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return r4l=A},{mode:1});var AWx;var t0Q;var HP=function(){return _.F.apply(this,arguments)||this};
_.R(HP,_.F);HP.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var A,t;this.sectionHeaderAriaLabel=(A=this.data)==null?void 0:(t=A.accessibility)==null?void 0:t.accessibilityData.label}};
HP.prototype.fireSelectedEvent=function(A){_.s9(this.hostElement,"ytd-transcript-section-header",{startMs:A})};
HP.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
HP.prototype.handleKeyPress=function(A){this.data&&A.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.PV.Object.defineProperties(HP.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=(A=this.data)==null?void 0:A.enableTappableTranscriptHeader)!=null?t:!1}}});
HP.prototype.dataChanged=HP.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],HP.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],HP.prototype,"sectionHeaderAriaLabel",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],HP.prototype,"enableTappableTranscriptHeader",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HP.prototype,"dataChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],HP);
_.Y(HP,"ytd-transcript-section-header-renderer",function(){if(t0Q!==void 0)return t0Q;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return t0Q=A},{mode:1});var ff3;var XVF;var aT=function(){var A=_.F.apply(this,arguments)||this;A.isEditMode=!1;A.touchCaptionsEnabled=!1;A.deleteCaptionCorrectionPopupCommand=null;A.voteCaptionCorrectionPopupCommand=null;A.roundedContainer=!0;A.mouseOver=!1;A.textChanged=!1;A.messages={suggest_correction:_.e5("suggest_correction",void 0,"Edit caption"),suggested_caption:_.e5("suggested_caption",void 0,"Suggested caption"),submit_correction:_.e5("submit_correction",void 0,"Submit for review"),cancel_correction:_.e5("cancel_correction",
void 0,"Cancel"),replay_segment:_.e5("replay_segment",void 0,"Re-play segment"),delete_correction:_.e5("delete_correction",void 0,"Delete correction")};A.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return A};
_.R(aT,_.F);_.J=aT.prototype;_.J.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)};
_.J.handleDelete=function(A){if(this.deleteCaptionCorrectionPopupCommand){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);t&&this.ytdOpenPopupBehavior.openPopup(t);A.stopPropagation()}};
_.J.handleSubmit=function(A){if(this.data&&this.data.submitCaptionCorrectionCommand&&(A.stopPropagation(),this.textChanged)){var t;A=(t=_.C(this.data.submitCaptionCorrectionCommand,_.nyT))==null?void 0:t.params;t=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:A,correctionText:String(this.ironTextAreaElement.value),originalText:_.dF(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(t);this.isEditMode=!1}};
_.J.handleUpdateSegmentText=function(A){(A=_.C(A,hGi))&&A.targetId&&this.data&&A.targetId===this.data.targetId&&(A.userCorrection&&(this.editedText=A.userCorrection),A.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.dF(this.data.snippet)),A.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=A.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=A.voteCaptionCorrectionPopupCommand?
A.voteCaptionCorrectionPopupCommand:null,A.accessibility&&(this.segmentAriaLabel=A.accessibility.accessibilityData.label))};
_.J.handleCancel=function(A){this.isEditMode=!1;A.stopPropagation();this.logClientVe(159409)};
_.J.handleEditSegmentCommand=function(A){(A=_.C(A,Cny))&&A.targetId&&this.data&&A.targetId===this.data.targetId&&this.handleEdit()};
_.J.handleEditButtonClick=function(A){this.data&&(this.handleEdit(),A.stopPropagation())};
_.J.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var A;(A=this.ironTextAreaElement.textarea)==null||A.focus();this.logClientVe(159407)}};
_.J.handleMouseEnter=function(){this.mouseOver=!0};
_.J.handleMouseLeave=function(){this.mouseOver=!1};
_.J.handleReplay=function(A){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),A.stopPropagation(),this.logClientVe(159408))};
_.J.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()))};
_.J.handleKeypress=function(A){this.data&&(this.isEditMode?A.stopPropagation():this.isEnterPress(A)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(A)&&this.logClientVe(138758))};
_.J.handleTextboxClick=function(A){A.stopPropagation()};
_.J.handleTextboxKeydown=function(A){this.isControlEnterPress(A)?this.handleSubmit(A):A.key==="Escape"&&this.handleCancel(A)};
_.J.handleTextboxKeyup=function(){this.textChanged=_.dF(this.latestText)!==String(this.ironTextAreaElement.value)};
_.J.fireSelectedEvent=function(A){_.s9(this.hostElement,"yt-transcript-segment-selected",{startMs:A})};
_.J.fireReplayEvent=function(A,t){_.s9(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(A-100,0),endMs:t})};
_.J.fireEditEvent=function(A,t){_.s9(this.hostElement,"yt-transcript-segment-edit",{startMs:A,endMs:t})};
_.J.isEnterPress=function(A){return A.key==="Enter"||A.code==="Enter"||A.code==="NumpadEnter"||A.keyCode===13?!0:!1};
_.J.isControlEnterPress=function(A){var t=A.key==="Enter"||A.code==="Enter"||A.code==="NumpadEnter"||A.keyCode===13;return(A.ctrlKey||A.metaKey)&&t};
_.J.isCopyPress=function(A){var t=A.ctrlKey;return A.key==="c"&&t};
_.J.logClick=function(){var A,t=(A=this.data)==null?void 0:A.trackingParams;t&&_.Zv(_.er(),t)};
_.J.logClientVe=function(A){_.VA(_.er(),_.Xl(A))};
_.PV.Object.defineProperties(aT.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}}});
aT.prototype.handleMouseLeave=aT.prototype.handleMouseLeave;aT.prototype.handleMouseEnter=aT.prototype.handleMouseEnter;aT.prototype.dataChanged=aT.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],aT.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],aT.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],aT.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aT.prototype,"isEditMode",void 0);_.V([_.n(),_.H("design:type",Object)],aT.prototype,"touchCaptionsEnabled",void 0);_.V([_.n(),_.H("design:type",Object)],aT.prototype,"editedText",void 0);_.V([_.n(),_.H("design:type",Object)],aT.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.V([_.n(),_.H("design:type",Object)],aT.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.V([_.n(),_.H("design:type",String)],aT.prototype,"segmentAriaLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aT.prototype,"roundedContainer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aT.prototype,"mouseOver",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],aT.prototype,"textChanged",void 0);_.V([_.n(),_.H("design:type",Object)],aT.prototype,"messages",void 0);
_.V([_.lo("#suggestion"),_.H("design:type",Object)],aT.prototype,"ironTextAreaElement",void 0);_.V([_.y("data","editedText"),_.H("design:type",Object),_.H("design:paramtypes",[])],aT.prototype,"latestText",null);_.V([_.y("touchCaptionsEnabled","isEditMode"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aT.prototype,"enableEditButton",null);
_.V([_.y("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aT.prototype,"enableUndoButton",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aT.prototype,"dataChanged",null);_.V([_.UQ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aT.prototype,"handleMouseEnter",null);
_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aT.prototype,"handleMouseLeave",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],aT);
_.Y(aT,"ytd-transcript-segment-renderer",function(){if(XVF!==void 0)return XVF;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return XVF=A},{mode:1});var Kz=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};A.isError=!1;A.darkerPanels=_.M("web_watch_darker_panels");A.useParentMaxHeight=_.M("web_watch_transscript_use_parent_max_height");A.segmentOffsets=[];A.segmentIndex=-1;return A};
_.R(Kz,_.F);_.J=Kz.prototype;_.J.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"}}}}};
_.J.segmentsChanged=function(){this.updateOffsets()};
_.J.onYtPlayerTimeChanged=function(A){for(var t=this.segmentIndex,f=t;;){if(f>=0){var X=this.segmentOffsets[f].start;var Q=this.segmentOffsets[f].isAutoScrollable}else X=-1,Q=!0;var q=A+.5;if(!Q){X=f+1<this.segmentOffsets.length?this.segmentOffsets[f+1].start:Infinity;if(q>=X){f+=1;continue}f=-1;break}if(q<X)X=f-1>=0&&this.segmentOffsets[f-1].isAutoScrollable,Q=f===0||X?1:2,f-=Q;else if(Q=f+1<this.segmentOffsets.length&&this.segmentOffsets[f+1].isAutoScrollable?1:2,X=f+Q<this.segmentOffsets.length?
this.segmentOffsets[f+Q].start:Infinity,q>X)f+=Q;else{if(f<0)break;f<this.segmentOffsets.length&&q>this.segmentOffsets[f].end&&(f=-1);break}}if(t!==f){if(t>=0){var e;(e=this.getSegmentElement(t))==null||e.classList.remove("active")}this.segmentIndex=f;if(!(f<0)){var G;(G=this.getSegmentElement(f))==null||G.classList.add("active");this.isHovered||this.scrollElementToTop(f)}}};
_.J.handleSegmentEdit=function(A){A.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=A.target,_.kJ(this.hostElement,"yt-transcript-player-edit",[A.detail.startMs/1E3,A.detail.endMs/1E3]))};
_.J.handleSegmentSelected=function(A){_.kJ(this.hostElement,"yt-transcript-player-seek",[A.detail.startMs/1E3])};
_.J.handleSegmentReplay=function(A){_.kJ(this.hostElement,"yt-transcript-player-replay",[A.detail.startMs/1E3,A.detail.endMs/1E3])};
_.J.handleSectionHeaderSelected=function(A){_.kJ(this.hostElement,"yt-transcript-player-seek",[A.detail.startMs/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.onRetryButtonClick=function(){_.s9(this.hostElement,"transcript-retry-button-click")};
_.J.getSegmentElement=function(A){return _.sF(this.hostElement).querySelector(":nth-child("+(A+1)+")")};
_.J.scrollElementToTop=function(A){A=this.getSegmentElement(A>=2?A-2:0);this.hostElement.scrollTop=Math.min(A.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.J.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(A){var t,f=(t=A.transcriptSegmentRenderer)!=null?t:A.transcriptSectionHeaderRenderer;return{start:Number(f.startMs)/1E3,end:Number(f.endMs)/1E3,isAutoScrollable:A.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.J.clearHighlightedSegments=function(){var A=_.sF(this.hostElement);A=_.U(A.querySelectorAll("ytd-transcript-segment-renderer"));for(var t=A.next();!t.done;t=A.next())t.value.classList.remove("active")};
_.PV.Object.defineProperties(Kz.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:A.searchResultSegments)||((t=this.data)==null?void 0:t.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Kz.prototype.onMouseLeave=Kz.prototype.onMouseLeave;Kz.prototype.onMouseEnter=Kz.prototype.onMouseEnter;Kz.prototype.handleSectionHeaderSelected=Kz.prototype.handleSectionHeaderSelected;Kz.prototype.handleSegmentReplay=Kz.prototype.handleSegmentReplay;Kz.prototype.handleSegmentSelected=Kz.prototype.handleSegmentSelected;Kz.prototype.handleSegmentEdit=Kz.prototype.handleSegmentEdit;Kz.prototype.segmentsChanged=Kz.prototype.segmentsChanged;
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Kz.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Kz.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Kz.prototype,"isError",void 0);
_.V([_.n(),_.H("design:type",Object)],Kz.prototype,"noResultLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Kz.prototype,"darkerPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Kz.prototype,"useParentMaxHeight",void 0);_.V([_.y("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Kz.prototype,"segments",null);
_.V([_.y("segments","noResultLabel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kz.prototype,"displayNoResults",null);_.V([_.ev("segments"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kz.prototype,"segmentsChanged",null);_.V([_.UQ("yt-transcript-segment-edit"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Kz.prototype,"handleSegmentEdit",null);
_.V([_.UQ("yt-transcript-segment-selected"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Kz.prototype,"handleSegmentSelected",null);_.V([_.UQ("yt-transcript-segment-replay"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Kz.prototype,"handleSegmentReplay",null);
_.V([_.UQ("ytd-transcript-section-header"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Kz.prototype,"handleSectionHeaderSelected",null);_.V([_.UQ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kz.prototype,"onMouseEnter",null);_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kz.prototype,"onMouseLeave",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Kz);
_.Y(Kz,"ytd-transcript-segment-list-renderer",function(){if(ff3!==void 0)return ff3;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ff3=A},{mode:1});var gu=function(){var A=_.F.apply(this,arguments)||this;A.hideTimestamps=!!_.Bi("hide-transcript-timestamps");A.isLoadingTranscripts=!1;A.darkerPanels=_.M("web_watch_darker_panels");A.isError=!1;A.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return A};
_.R(gu,_.F);_.J=gu.prototype;_.J.headerChanged=function(){var A,t;this.baseGetTranscriptsCommand=(t=_.C((A=this.data)==null?void 0:A.header,RG3))==null?void 0:t.onTextChangeCommand};
_.J.bodyChanged=function(){var A=this.getBodyRenderer();A&&(A.initialSegments&&(this.initialTranscriptsRenderer=A),A.noResultLabel&&(this.noResultLabel=A.noResultLabel),A.retryLabel&&(this.retryLabel=A.retryLabel))};
_.J.detached=function(){this.clearSearchBoxText()};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.J.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"}}}};
_.J.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.J.fireSearch=function(A){var t=this;if(A){var f=A.detail.query;if(this.baseGetTranscriptsCommand){var X;A=(X=_.C(this.baseGetTranscriptsCommand,_.DhK))==null?void 0:X.params;var Q;X=_.C((Q=this.data)==null?void 0:Q.footer,Uqr);var q;if((Q=(q=_.C(X==null?void 0:X.languageMenu,Bbx))==null?void 0:q.subMenuItems)&&Q.length>0&&(q=Q.find(function(N){return N.selected}))){var e,G;
A=(e=q.continuation)==null?void 0:(G=e.reloadContinuationData)==null?void 0:G.continuation}e=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:A,searchQuery:f}});this.ytComponentBehavior.resolveCommand(e,{commandController:{onServerError:function(){t.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});VJy(this.ytContinuationHandlerBehavior,function(){return f===t.getCurrentSearchBoxText()})}}};
_.J.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.J.onRetryButtonClick=function(){this.isError=!1;var A={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:A}))};
_.J.hideTimestampsChanged=function(){_.ci("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.handleSignalActionCopyTranscript=function(){var A=this,t=this.getBodyRenderer();t&&(t=((t==null?void 0:t.searchResultSegments)||(t==null?void 0:t.initialSegments)||[]).map(function(f){return _.C(f,bU3)}).filter(function(f){return!!f}).map(function(f){return{snippet:f.snippet||{runs:[{text:""}]},
startTimeText:f.startTimeText||{simpleText:""}}}).map(function(f){var X=(f.snippet.runs||[]).reduce(function(Q,q){return Q+q.text},"");
return A.hideTimestamps?X:f.startTimeText.simpleText+" "+X}).join("\n"),this.copyToClipboard(t))};
_.J.copyToClipboard=function(A){navigator.clipboard&&navigator.clipboard.writeText(A)};
_.J.getCurrentSearchBoxText=function(){var A;return(A=this.searchBox)==null?void 0:A.value};
_.J.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.J.getBodyRenderer=function(){var A;return _.C((A=this.data)==null?void 0:A.body,mql)};
_.J.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.PV.Object.defineProperties(gu.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.sF(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
gu.prototype.hideTimestampsChanged=gu.prototype.hideTimestampsChanged;gu.prototype.searchCleared=gu.prototype.searchCleared;gu.prototype.fireSearch=gu.prototype.fireSearch;gu.prototype.onReloadContinuationFinish=gu.prototype.onReloadContinuationFinish;gu.prototype.bodyChanged=gu.prototype.bodyChanged;gu.prototype.headerChanged=gu.prototype.headerChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],gu.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ba),_.H("design:type",Object)],gu.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gu.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gu.prototype,"hideTimestamps",void 0);
_.V([_.n(),_.H("design:type",Object)],gu.prototype,"isLoadingTranscripts",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gu.prototype,"darkerPanels",void 0);_.V([_.n(),_.H("design:type",Object)],gu.prototype,"isError",void 0);_.V([_.ev("data.header"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gu.prototype,"headerChanged",null);
_.V([_.PU("data.body"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gu.prototype,"bodyChanged",null);_.V([_.UQ("yt-reload-continuation-finish"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gu.prototype,"onReloadContinuationFinish",null);_.V([_.UQ("yt-transcript-search-box-search"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],gu.prototype,"fireSearch",null);
_.V([_.UQ("yt-transcript-search-box-clear"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gu.prototype,"searchCleared",null);_.V([_.ev("hideTimestamps"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gu.prototype,"hideTimestampsChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],gu);
_.Y(gu,"ytd-transcript-search-panel-renderer",function(){if(AWx!==void 0)return AWx;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return AWx=A},{mode:1});var wu=function(){var A=_.F.apply(this,arguments)||this;A.player=null;A.playerPollJobId=0;return A};
_.R(wu,_.F);_.J=wu.prototype;_.J.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.J.onLoadReloadContinuation=function(A){_.M("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:A.target.data.continuation}}):(A={clickTrackingParams:A.target.data.clickTrackingParams,getTranscriptEndpoint:{params:A.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}}))};
_.J.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"}}}};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.J.attached=function(){this.updatePlayerListening()};
_.J.detached=function(){this.updatePlayerListening()};
_.J.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.J.startPlayerListening=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return(t=_.K1())?f.yield(t.getPlayerPromise(),2):f.return();A.player=f.yieldResult;A.playerPollJobId=_.a6.addLowPriorityJob(function(){A.getPlayerVideoProgress()},1E3);
A.player.addEventListener("onCueRangeEnter",function(X){A.onCueRangeEnter(X)});
A.player.addEventListener("onCueRangeExit",function(X){A.onCueRangeExit(X)});
A.player.addEventListener("onStateChange",function(X){A.onPlayerStateChange(X)});
A.player.addEventListener("SEEK_TO",function(X){A.onPlayerSeek(X)});
_.LO(f)})};
_.J.getPlayerVideoProgress=function(){var A=this;_.a6.cancelJob(this.playerPollJobId);if(this.player){var t=this.player.getCurrentTime();_.kJ(this.hostElement,"yt-player-time-changed",[t])}this.playerPollJobId=_.a6.addLowPriorityJob(function(){A.getPlayerVideoProgress()},1E3)};
_.J.stopPlayerListening=function(){this.player=null;_.a6.cancelJob(this.playerPollJobId)};
_.J.onPlayerStateChange=function(A){A===2&&this.removePendingCue()};
_.J.onPlayerSeek=function(A){var t;if(t=this.pendingReplayCueId)t=this.pendingReplayCueId,t=A===(_.M("web_transcript_cue_id_killswitch")?Number(t):Number(t.split("_")[1]));t||this.removePendingCue()};
_.J.onCueRangeEnter=function(A){q0H(A)&&(this.pendingReplayCueId=A)};
_.J.onCueRangeExit=function(A){q0H(A)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.J.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.J.onYtTranscriptPlayerSeek=function(A){this.player&&this.player.seekTo(A,!0)};
_.J.onYtTranscriptPlayerReplay=function(A,t){this.player&&(this.player.addCueRange(Qju(A),A,t),this.player.seekTo(A,!0),this.player.playVideo())};
_.J.onYtTranscriptPlayerEdit=function(A,t){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(Qju(A),A,t),this.player.seekTo(A,!0))};
wu.prototype.onLoadReloadContinuation=wu.prototype.onLoadReloadContinuation;wu.prototype.panelContentVisibleChanged=wu.prototype.panelContentVisibleChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],wu.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],wu.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wu.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],wu.prototype,"panelContentVisible",void 0);_.V([_.ev("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wu.prototype,"panelContentVisibleChanged",null);
_.V([_.UQ("yt-load-reload-continuation"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],wu.prototype,"onLoadReloadContinuation",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],wu);
_.Y(wu,"ytd-transcript-renderer",function(){if(kUr!==void 0)return kUr;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return kUr=A},{mode:1});var QWj;var qgi;var sf=function(){return _.F.apply(this,arguments)||this};
_.R(sf,_.F);sf.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.tl(this.hostElement,[this.data.clickCommand],this.hostElement))};
sf.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.gl)()+_.FT)+"px)"};
sf.prototype.updateShouldHideFromBinding=function(A){this.shouldHide=A.detail.value};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],sf.prototype,"rendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sf.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],sf.prototype,"shouldHide",void 0);_.V([_.y_({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],sf);
_.Y(sf,"ytd-ad-engagement-panel-banner-renderer",function(){if(qgi!==void 0)return qgi;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return qgi=A},{mode:_.sQ("kevlar_poly_si_batch_j070")?1:2});var JWy;var k2=function(){var A=_.F.apply(this,arguments)||this;A.buttonUpdate=_.M("web_modern_buttons");A.adsSemanticText=_.M("enable_ads_web_ep_buenos_aires_and_padding_fix");return A};
_.R(k2,_.F);k2.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.V([_.n(),_.H("design:type",Object)],k2.prototype,"data",void 0);_.V([_.n({computed:"computeHideDefaultAdBadge(data)"}),_.H("design:type",Boolean)],k2.prototype,"hideDefaultAdBadge",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],k2.prototype,"buttonUpdate",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],k2.prototype,"adsSemanticText",void 0);_.V([_.y_({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],k2);
_.Y(k2,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(JWy!==void 0)return JWy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return JWy=A},{mode:1});var UPu;var ru=function(){var A=_.F.apply(this,arguments)||this;A.darkerPanels=_.M("web_watch_darker_panels");A.enableSqueezebackPanels=_.M("web_shorts_enable_squeezeback_panels");A.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");A.headerClickListener=function(t){A.onHeaderClick(t)};
A.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return A};
_.R(ru,_.F);_.J=ru.prototype;_.J.computeAdsInfoButton=function(){if(_.M("web_modern_buttons")){var A,t;return(t=_.C((A=this.data)==null?void 0:A.subtitleComplex,eGi))==null?void 0:t.adInfoRenderer}};
_.J.updateHeaderClickListener=function(){var A,t,f;((A=this.data)==null?0:A.navigationEndpoint)||((t=this.data)==null?0:t.onClickCommand)||_.C((f=this.data)==null?void 0:f.visibilityButton,_.l1)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.J.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}}}}}};
_.J.collapsedChanged=function(){var A;(A=this.data)!=null&&A.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.M("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.J.focus=function(A){var t=this;this.titleElement&&_.a6.addJob(function(){_.eY(t.titleElement,A)},0,500)};
_.J.computeTitleAriaLabel=function(A){var t=[];if(A.title){var f,X;t.push(this.ytRendererBehavior.getSimpleString(A.title)||((f=A.title.accessibility)==null?void 0:(X=f.accessibilityData)==null?void 0:X.label))}A.contextualInfo&&t.push(this.ytRendererBehavior.getSimpleString(A.contextualInfo));return t.join(" ")};
_.J.onHeaderClick=function(A){this.shouldTriggerHeaderClick(A)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.tl(this.hostElement,[this.data.onClickCommand],this.hostElement)):(A=this.getVisibilityToggleButton())&&A.click())};
_.J.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var A=_.C(this.data.visibilityButton,_.Gf)||_.C(this.data.visibilityButton,_.l1);A&&this.ytRendererBehavior.logExplicitClick(A)}};
_.J.getVisibilityToggleButton=function(){var A=_.sF(this.hostElement).querySelector("#visibility-button").firstElementChild;return(A==null?void 0:A.is)==="ytd-toggle-button-renderer"?A:null};
_.J.shouldTriggerHeaderClick=function(A){return!_.Sl(_.Z2(A),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.J.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(A){A=_.C(A,_.reQ);this.targetId&&(A==null?void 0:A.targetId)===this.targetId&&(A=A.navigationButton)&&this.set("data.navigationButton",A)};
_.PV.Object.defineProperties(ru.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!!(((A=this.entity)==null?0:A.isActionButtonHidden)||this.hideActionButton)}}});
ru.prototype.collapsedChanged=ru.prototype.collapsedChanged;ru.prototype.updateHeaderClickListener=ru.prototype.updateHeaderClickListener;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],ru.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],ru.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ru.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],ru.prototype,"targetId",void 0);_.V([_.n(),_.H("design:type",Boolean)],ru.prototype,"collapsed",void 0);_.V([_.n(),_.H("design:type",Boolean)],ru.prototype,"hideActionButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"shortsPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"liveChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"learningChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ru.prototype,"darkerPanels",void 0);_.V([_.lo("#title"),_.H("design:type",HTMLElement)],ru.prototype,"titleElement",void 0);_.V([_.lo("#header"),_.H("design:type",HTMLElement)],ru.prototype,"headerElement",void 0);
_.V([_.n({computed:"computeAdsInfoButton(data)"}),_.H("design:type",Object)],ru.prototype,"adsInfoButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ru.prototype,"enableSqueezebackPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ru.prototype,"enableAnchoredPanel",void 0);_.V([_.n({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(A,t){return _.q_(A.entities,"engagementPanelTitleHeaderEntity",t)}}),
_.H("design:type",Object)],ru.prototype,"entity",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ru.prototype,"adsSemanticText",null);_.V([_.ev("data","data.navigationEndpoint","data.onClickCommand"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ru.prototype,"updateHeaderClickListener",null);
_.V([_.PU("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ru.prototype,"collapsedChanged",null);_.V([_.y("entity","hideActionButton"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ru.prototype,"isActionButtonHidden",null);_.V([_.y_({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],ru);
_.Y(ru,"ytd-engagement-panel-title-header-renderer",function(){if(UPu!==void 0)return UPu;var A=document.createElement("template");_.m(A,'\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" 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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return UPu=A},{mode:1});var esb;var AQ=function(){return _.F.apply(this,arguments)||this};
_.R(AQ,_.F);AQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],AQ.prototype,"data",void 0);_.V([_.y_({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],AQ);
_.Y(AQ,"ytd-macro-markers-info-item-renderer",function(){if(esb!==void 0)return esb;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return esb=A},{mode:1});var GSi;var tQ=function(A,t,f,X,Q,q){_.DA.call(this);var e=this;this.JSC$23292_containerElement=A;this.hostElement=t;this.supportedSyncItems=f;this.syncEntityKey=X;this.options=Q;this.renderLazyListItems=q;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;lfl(this);N6i(this);this.JSC$23292_scrollAnimation=new _.Ce(function(G){A.scrollTop=G});
_.hV(this,this.JSC$23292_scrollAnimation);this.addOnDisposeCallback(function(){uBr(e,!1);e.activeItem&&e.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.R(tQ,_.DA);var lfl=function(A){var t=_.ar(_.Px().resolve(_.Xk),function(f){return f.entities.markersEngagementPanelSyncEntity||{}},function(f,X){var Q;
if(f[A.syncEntityKey]!==X[A.syncEntityKey]&&((Q=f[A.syncEntityKey])==null?void 0:Q.activeItemIndex)!==void 0)if(X=f[A.syncEntityKey].activeItemIndex,f=A.getItemByIndex(X)){if(zsF(A,f),A.contentVisible)if(A.browsingMode){var q;((q=A.options)==null?void 0:q.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(q=Psj(A),f.offsetTop<A.JSC$23292_containerElement.clientHeight+A.JSC$23292_containerElement.scrollTop&&q&&!A.activeItemBelowSyncPosition&&uBr(A,!1));T6F(A)}else A.scrollToItem(f)}else _.K4(new _.xj("Could not find "+
A.supportedSyncItems+" sync child to set active.",X,A.JSC$23292_containerElement.querySelectorAll(A.supportedSyncItems).length))});
A.unsubscribeFromTimedMarkersListSyncEntity=t;A.addOnDisposeCallback(t);iPQ(A)},iPQ=function(A){var t=_.Px().resolve(_.Xk);
t=_.Ph5(t.getState(),A.syncEntityKey);(t==null?void 0:t.activeItemIndex)!==void 0&&(t=A.getItemByIndex(t.activeItemIndex))&&zsF(A,t)},N6i=function(A){var t=new _.qI(A.onScroll,50,A);
_.hV(A,t);var f=function(){t.fire()};
A.JSC$23292_containerElement.addEventListener("scroll",f);A.addOnDisposeCallback(function(){A.JSC$23292_containerElement.removeEventListener("scroll",f)})};
tQ.prototype.getItemByIndex=function(A){var t;(t=this.renderLazyListItems)==null||t.call(this,A);t=this.JSC$23292_containerElement.querySelectorAll(this.supportedSyncItems);if(t.length>A)return t[A]};
var zsF=function(A,t){A.activeItem&&A.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));t.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));A.activeItem=t};
tQ.prototype.scrollToItem=function(A){A=this.getScrollPositionForItem(A);this.JSC$23292_containerElement.scrollTop!==A&&this.JSC$23292_scrollAnimation.start(this.JSC$23292_containerElement.scrollTop,A,300)};
tQ.prototype.getScrollPositionForItem=function(A){if(this.JSC$23292_containerElement.querySelectorAll(this.supportedSyncItems)[0]===A)return 0;var t,f=((t=this.options)==null?0:t.percentOffset)?this.JSC$23292_containerElement.clientHeight*this.options.percentOffset:0;A=_.$N(A).y+this.JSC$23292_containerElement.scrollTop-(_.$N(this.JSC$23292_containerElement).y+f);return Math.max(0,Math.min(A,this.JSC$23292_containerElement.scrollHeight-this.JSC$23292_containerElement.offsetHeight))};
tQ.prototype.onScroll=function(){this.activeItemBelowSyncPosition=Psj(this);if(this.activeItem&&!this.JSC$23292_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23292_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var A;switch((A=this.options)==null?void 0:A.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":OPl(this,!cWb(this));T6F(this);break;default:OPl(this,!0)}}};
var OPl=function(A,t){var f,X;_.l(function(Q){if(Q.nextAddress==1){if(A.browsingMode)return Q.return();A.browsingMode=!0;t&&A.hostElement.classList.add("browsing-mode");A.playerExitBrowsingModeListener=function(){uBr(A,!1)};
return Q.yield(_.Q9(),2)}f=Q.yieldResult;(X=f)==null||X.addEventListener("SEEK_TO",A.playerExitBrowsingModeListener);_.LO(Q)})},uBr=function(A,t){t=t===void 0?!0:t;
A.browsingMode&&(A.browsingMode=!1,A.hostElement.classList.remove("browsing-mode"),t&&A.scrollToItem(A.activeItem),B6x(A))},B6x=function(A){var t,f;
_.l(function(X){if(X.nextAddress==1)return A.playerExitBrowsingModeListener?X.yield(_.Q9(),3):X.jumpTo(0);t=X.yieldResult;(f=t)==null||f.removeEventListener("SEEK_TO",A.playerExitBrowsingModeListener);A.playerExitBrowsingModeListener=void 0;_.LO(X)})},T6F=function(A){var t;
((t=A.options)==null?void 0:t.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(cWb(A)?A.hostElement.classList.remove("browsing-mode"):A.activeItem&&A.hostElement.classList.add("browsing-mode"))},Psj=function(A){if(!A.activeItem)return!1;
var t,f=((t=A.options)==null?0:t.percentOffset)?A.JSC$23292_containerElement.clientHeight*A.options.percentOffset:0;return A.activeItem.offsetTop>=A.JSC$23292_containerElement.scrollTop+f},cWb=function(A){if(!A.activeItem)return!1;
var t=A.activeItem.offsetTop+14<=A.JSC$23292_containerElement.scrollTop+A.JSC$23292_containerElement.clientHeight;return A.activeItem.offsetTop+A.activeItem.clientHeight-14>=A.JSC$23292_containerElement.scrollTop&&t};
tQ.prototype.panelContentVisibleChanged=function(A){(this.contentVisible=A)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var M0F=function(A,t){A.syncEntityKey=t;var f;(f=A.unsubscribeFromTimedMarkersListSyncEntity)==null||f.call(A);lfl(A)},Csf=function(A,t){A.options=t};var f0=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return A};
_.R(f0,_.F);_.J=f0.prototype;_.J.detached=function(){var A;(A=this.scrollController)==null||A.dispose();this.scrollController=void 0};
_.J.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"}}}};
_.J.dataChanged=function(){var A=this;_.us(this,function(){if(A.scrollController){var t;(t=A.scrollController)==null||uBr(t,!1);var f,X,Q;(X=A.scrollController)==null||M0F(X,(Q=(f=A.data)==null?void 0:f.syncModelEntityKey)!=null?Q:"default-macro-markers-list-renderer-entity-key");var q,e,G;(G=A.scrollController)==null||Csf(G,{percentOffset:(q=A.data)==null?void 0:q.selectedItemAlignmentPercentOffset,floatingPillType:(e=A.data)==null?void 0:e.floatingPillType})}else{var N,z,T,O;A.scrollController=
new tQ(A.contents,A.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(O=(N=A.data)==null?void 0:N.syncModelEntityKey)!=null?O:"default-macro-markers-list-renderer-entity-key",{percentOffset:(z=A.data)==null?void 0:z.selectedItemAlignmentPercentOffset,floatingPillType:(T=A.data)==null?void 0:T.floatingPillType},function(c){A.renderLazyListItems(c)})}A.scrollController.panelContentVisibleChanged(!!A.panelContentVisible)})};
_.J.computeButtonShape=function(){var A=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){A.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.J.renderLazyListItems=function(A){for(var t=this.contents.children,f=0,X=0;X<t.length;X++){var Q=void 0;(Q=t[X].ytLazyListBehavior)==null||Q.fillRemainingListItems();var q=void 0,e=void 0;Q=_.C((q=this.data)==null?void 0:(e=q.contents)==null?void 0:e[X],_.iRT);e=q=void 0;if((q=Q)==null?0:(e=q.contents)==null?0:e.length)f+=Q.contents.length;if(f>=A)break}};
_.J.handleSetActivePanelItemAction=function(A){if((A=_.C(A,tCx))&&this.panelTargetId===A.panelTargetId){A=A.itemIndex;var t,f,X=(f=(t=this.data)==null?void 0:t.syncModelEntityKey)!=null?f:"default-macro-markers-list-renderer-entity-key",Q;((Q=this.syncEntity)==null?void 0:Q.activeItemIndex)!==A&&this.ytdReduxBehavior.dispatch(_.Ta("markersEngagementPanelSyncEntity",X,{key:X,activeItemIndex:A}))}};
_.J.onSyncClick=function(){var A;(A=this.scrollController)==null||uBr(A)};
_.J.panelContentVisibleChanged=function(){var A;(A=this.scrollController)==null||A.panelContentVisibleChanged(!!this.panelContentVisible)};
f0.prototype.panelContentVisibleChanged=f0.prototype.panelContentVisibleChanged;f0.prototype.dataChanged=f0.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],f0.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],f0.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],f0.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],f0.prototype,"useCustomColors",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],f0.prototype,"panelTargetId",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],f0.prototype,"panelContentVisible",void 0);
_.V([_.lo("#contents"),_.H("design:type",HTMLElement)],f0.prototype,"contents",void 0);_.V([_.n({selectorArgs:["data.syncModelEntityKey"],selector:_.Ph5}),_.H("design:type",Object)],f0.prototype,"syncEntity",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],f0.prototype,"dataChanged",null);
_.V([_.ev("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],f0.prototype,"panelContentVisibleChanged",null);_.V([_.y_({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],f0);
_.Y(f0,"ytd-macro-markers-list-renderer",function(){if(GSi!==void 0)return GSi;var A=document.createElement("template");_.m(A,'\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" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return GSi=A},{mode:1});var hsi;var X2=function(){return _.F.apply(this,arguments)||this};
_.R(X2,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],X2.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],X2.prototype,"data",void 0);_.V([_.y_({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],X2);
_.Y(X2,"ytd-error-corrections-section-item-renderer",function(){if(hsi!==void 0)return hsi;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return hsi=A},{mode:1});var Rsi;var QE=function(){return _.F.apply(this,arguments)||this};
_.R(QE,_.F);QE.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],QE.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],QE.prototype,"data",void 0);_.V([_.y_({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],QE);
_.Y(QE,"ytd-error-corrections-section-renderer",function(){if(Rsi!==void 0)return Rsi;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Rsi=A},{mode:1});var mPl;var qD=function(){return _.F.apply(this,arguments)||this};
_.R(qD,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],qD.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qD.prototype,"data",void 0);_.V([_.y_({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],qD);
_.Y(qD,"ytd-topic-link-renderer",function(){if(mPl!==void 0)return mPl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return mPl=A},{mode:1});var bPQ;var JQ=function(){var A=_.F.apply(this,arguments)||this;A.modernLockupV2=_.M("modernize_structured_description_playlist_lockups_v2");return A};
_.R(JQ,_.F);JQ.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],JQ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],JQ.prototype,"modernLockupV2",void 0);_.V([_.y_({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],JQ);
_.Y(JQ,"ytd-video-description-course-section-renderer",function(){if(bPQ!==void 0)return bPQ;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return bPQ=A},{mode:1});var Wju;var Ue=function(){return _.F.apply(this,arguments)||this};
_.R(Ue,_.F);Ue.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ue.prototype,"data",void 0);_.V([_.y_({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Ue);
_.Y(Ue,"ytd-video-description-files-section-renderer",function(){if(Wju!==void 0)return Wju;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Wju=A},{mode:1});var yWj;var ep=function(){return _.F.apply(this,arguments)||this};
_.R(ep,_.F);ep.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ep.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ep.prototype,"data",void 0);_.V([_.y_({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],ep);
_.Y(ep,"ytd-video-description-gaming-section-renderer",function(){if(yWj!==void 0)return yWj;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return yWj=A},{mode:1});var viW;var Gg=function(){var A=_.F.apply(this,arguments)||this;A.isExpanded=!1;return A};
_.R(Gg,_.F);Gg.prototype.computeHasDefaultMetadataEndpoint=function(A){var t;A=A==null?void 0:(t=A.defaultMetadata)==null?void 0:t.runs;return!(!A||A.length!==1||!A[0].navigationEndpoint)};
Gg.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.PV.Object.defineProperties(Gg.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Gg.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Gg.prototype,"isExpanded",void 0);_.V([_.n({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Gg.prototype,"hasDefaultMetadataEndpoint",void 0);
_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Gg.prototype,"isExpandable",null);_.V([_.y("data","isExpandable","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Gg.prototype,"showExpandedMetadata",null);_.V([_.y_({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Gg);
_.Y(Gg,"ytd-info-row-renderer",function(){if(viW!==void 0)return viW;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return viW=A},{mode:1});var Lj3;var lB=function(){var A=_.F.apply(this,arguments)||this;A.currentIndex=0;A.supportComponentResize=!0;A.JSC$23321_lastScrollContainerWidth=NaN;return A};
_.R(lB,_.F);_.J=lB.prototype;
_.J.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"}}}};
_.J.getItemsPath=function(){return"videoLockups"};
_.J.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.J.onIronResize=function(){this.updateVideoLockupStyles()};
_.J.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.J.updateVideoLockupStyles=function(){var A;this.JSC$23321_scrollContainer!==void 0&&(A=this.videoLockups)!=null&&A.length&&(A=this.JSC$23321_scrollContainer.clientWidth,A!==this.JSC$23321_lastScrollContainerWidth&&(this.JSC$23321_lastScrollContainerWidth=A,_.Q_(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(A*.8,415)+"px"}),_.s9(this.hostElement,"iron-resize")))};
_.PV.Object.defineProperties(lB.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var A=[],t;if((t=this.data)==null||!t.carouselLockups)return A;t=_.U(this.data.carouselLockups);for(var f=t.next();!f.done;f=t.next()){f=f.value;var X=void 0;((X=_.C(f,pDb))==null?0:X.videoLockup)&&A.push(_.C(f,pDb).videoLockup)}return A}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoLockups)==null||!A.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var A=[],t;if((t=this.data)==null||!t.carouselLockups)return A;var f;return(f=_.C(this.data.carouselLockups[this.scrollCount],pDb))==null?void 0:f.infoRows}}});
lB.prototype.dataChanged=lB.prototype.dataChanged;lB.prototype.onIronResize=lB.prototype.onIronResize;lB.prototype.hiddenChanged=lB.prototype.hiddenChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],lB.prototype,"componentBehavior",void 0);_.V([_.b(_.W7.YtdHorizontalListBehavior),_.H("design:type",Object)],lB.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],lB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],lB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],lB.prototype,"inlineStructuredDescription",void 0);_.V([_.n({value:2}),_.H("design:type",Number)],lB.prototype,"initialCount",void 0);_.V([_.n(),_.H("design:type",Object)],lB.prototype,"currentIndex",void 0);
_.V([_.n(),_.H("design:type",Number)],lB.prototype,"scrollCount",void 0);_.V([_.n(),_.H("design:type",Object)],lB.prototype,"supportComponentResize",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],lB.prototype,"contentHidden",void 0);_.V([_.lo("#scroll-container"),_.H("design:type",HTMLDivElement)],lB.prototype,"JSC$23321_scrollContainer",void 0);
_.V([_.ev("contentHidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lB.prototype,"hiddenChanged",null);_.V([_.y("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],lB.prototype,"videoLockups",null);_.V([_.y("videoLockups"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lB.prototype,"hasVideoLockups",null);
_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lB.prototype,"onIronResize",null);_.V([_.y("data","scrollCount"),_.H("design:type",Object),_.H("design:paramtypes",[])],lB.prototype,"infoRows",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lB.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],lB);
_.Y(lB,"ytd-video-description-music-section-renderer",function(){if(Lj3!==void 0)return Lj3;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Lj3=A},{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var pVj;var ND=function(){return _.F.apply(this,arguments)||this};
_.R(ND,_.F);ND.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.V([_.n({}),_.H("design:type",Object)],ND.prototype,"data",void 0);_.V([_.y_({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],ND);
_.Y(ND,"ytd-video-description-transcript-section-renderer",function(){if(pVj!==void 0)return pVj;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return pVj=A},{mode:1});var Eiu;_.Hn(_.I(function(A){var t=_.Nt(_.iKT,function(){return A.data().firstProviderLinkStatusEntityKey}),f=_.Nt(_.iKT,function(){return A.data().secondProviderLinkStatusEntityKey}),X=function(){var Q,q;
return((Q=t())==null?void 0:Q.linked)||((q=f())==null?void 0:q.linked)};
return _.u("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.u(_.zL,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return A.data().sectionTitle}}),_.u(_.zL,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return X()?A.data().connectedMessage:A.data().notConnectedMessage}}),_.u(_.P,{cond:X,
then:function(){return _.u(_.P1,{data:function(){return A.data().connectedButton}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.u(_.P,{cond:function(){return!X()},
then:function(){return _.u(_.P1,{data:function(){return A.data().notConnectedButton}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Nn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;return _.u("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.u("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.u(_.zL,{text:function(){return t().sectionTitle}})),_.u("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.u(_.zL,{text:function(){return t().bodyHeader}})),_.u("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.u(_.zL,{text:function(){return t().bodyText}})),_.u(_.P,{cond:function(){return t().attributionText},
then:function(){return _.u("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.u(_.zL,{text:function(){return t().attributionText}}))}}))},"On"),"how-this-was-made-section-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){return _.u("yt-video-description-youchat-section-view-model",{class:_.Ao("ytVideoDescriptionYouchatSectionViewModelHost")},_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.u(_.zL,{text:function(){return A.data().sectionTitle}})),_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.u(_.zL,{text:function(){return A.data().subHeaderText}})),_.u("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.u(_.nx,{data:function(){return _.C(A.data().primaryButton,
_.zf)}})))},"Pn"),"yt-video-description-youchat-section-view-model",{props:{data:_.PS}});var uB=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return A};
_.R(uB,_.F);_.J=uB.prototype;
_.J.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}}}}}};
_.J.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.J.dataChanged=function(){var A,t;this.hasDescriptionOnly=!(((A=this.data)==null?void 0:(t=A.items)==null?void 0:t.length)!==1||!_.C(this.data.items[0],nq))};
_.J.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.J.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.J.autoFocusDescription=function(){var A;((A=_.Px().resolve(_.z7(_.mJ)))==null?0:A.isKeyBoardInUse())&&this.description&&_.GO(this.description)};
_.J.resize=function(){if(_.M("kevlar_disable_sd_resize"))this.JSC$23329_cardList&&_.s9(this.JSC$23329_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.s9(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.s9(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.J.scrollToSection=function(A){if(A=this.getSectionElement(A))_.kJ(this.hostElement,"yt-scroll-to-watch-element",[A]),A.focus()};
_.J.getSectionElement=function(A){switch(A){case "infocards-item-section":var t;return(t=this.infocardsSection)!=null?t:null;case "transcript-item-section":var f;return(f=this.transcriptSection)!=null?f:null;case "how-this-was-made-section-item-section":var X;return(X=this.howThisWasMadeSection)!=null?X:null;case "files-item-section":var Q;return(Q=this.filesSection)!=null?Q:null;default:return null}};
_.J.handleSetActiveItemAction=function(A){var t=_.C(A,tCx),f=t&&(t==null?void 0:t.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23329_cardList;if(t&&f){A=this.currentActiveChapter;var X=this.currentActiveProblem;t=f==null?void 0:f.getItemByIndex(t.itemIndex);var Q=f=!0;t&&(t.active=!0,t.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(f=A!==t,Q=!1,this.currentActiveChapter=t):(t==null?void 0:t.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(f=!1,Q=X!==t,this.currentActiveProblem=t));A&&f&&(A.active=!1);X&&Q&&(X.active=!1)}};
_.PV.Object.defineProperties(uB.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.M("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
uB.prototype.onYtExpanderMoreTapped=uB.prototype.onYtExpanderMoreTapped;uB.prototype.onHiddenChanged=uB.prototype.onHiddenChanged;uB.prototype.dataChanged=uB.prototype.dataChanged;uB.prototype.panelContentVisibleChanged=uB.prototype.panelContentVisibleChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],uB.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.K9),_.H("design:type",Object)],uB.prototype,"ironResizableBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],uB.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],uB.prototype,"panelContentVisible",void 0);_.V([_.n(),_.H("design:type",Boolean)],uB.prototype,"hasDescriptionOnly",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],uB.prototype,"inlineStructuredDescription",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],uB.prototype,"hidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],uB.prototype,"shortsPanel",void 0);_.V([_.n(),_.H("design:type",Object)],uB.prototype,"videoSummary",void 0);_.V([_.n(),_.H("design:type",Object)],uB.prototype,"merchShelf",void 0);
_.V([_.y("videoSummary"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uB.prototype,"showVideoSummary",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],uB.prototype,"engagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],uB.prototype,"watchWhileSdp",void 0);_.V([_.lo("ytd-expandable-video-description-body-renderer"),_.H("design:type",Object)],uB.prototype,"description",void 0);
_.V([_.lo("ytd-horizontal-card-list-renderer"),_.H("design:type",Object)],uB.prototype,"JSC$23329_cardList",void 0);_.V([_.lo("ytd-horizontal-card-list-renderer[center-items]"),_.H("design:type",Object)],uB.prototype,"problemWalkthroughCardList",void 0);_.V([_.lo("ytd-shelf-renderer"),_.H("design:type",Object)],uB.prototype,"shelfSection",void 0);_.V([_.lo("ytd-video-description-music-section-renderer"),_.H("design:type",Object)],uB.prototype,"musicMetadataSection",void 0);
_.V([_.lo("ytd-video-description-infocards-section-renderer"),_.H("design:type",Object)],uB.prototype,"infocardsSection",void 0);_.V([_.lo("ytd-video-description-transcript-section-renderer"),_.H("design:type",Object)],uB.prototype,"transcriptSection",void 0);_.V([_.lo("how-this-was-made-section-view-model"),_.H("design:type",Object)],uB.prototype,"howThisWasMadeSection",void 0);_.V([_.lo("ytd-video-description-files-section-renderer"),_.H("design:type",Object)],uB.prototype,"filesSection",void 0);
_.V([_.ev("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uB.prototype,"panelContentVisibleChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uB.prototype,"dataChanged",null);_.V([_.ev("hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uB.prototype,"onHiddenChanged",null);
_.V([_.UQ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uB.prototype,"onYtExpanderMoreTapped",null);_.V([_.y_({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],uB);
_.Y(uB,"ytd-structured-description-content-renderer",function(){if(Eiu!==void 0)return Eiu;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Eiu=A},{mode:2});var nib;var DPF;var zg=function(){return _.F.apply(this,arguments)||this};
_.R(zg,_.F);zg.prototype.computeAriaLabel=function(A){var t,f;return(A==null?void 0:(t=A.accessibility)==null?void 0:(f=t.accessibilityData)==null?void 0:f.label)||_.e5("LOADING",void 0,"Loading")};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],zg.prototype,"data",void 0);_.V([_.n({computed:"computeAriaLabel(data)"}),_.H("design:type",String)],zg.prototype,"ariaLabel",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],zg);
_.Y(zg,"yt-content-loading-renderer",function(){if(DPF===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;nib===void 0&&(nib=document.createElement("template"));var X=nib;f.call(t,X.content.cloneNode(!0),A.content.firstChild);DPF=A}A=DPF;return A},{mode:_.sQ("kevlar_poly_si_batch_j043")?1:2});_.Hn(_.I(function(A){var t=_.U(_.hZ(!1,void 0,"OZMtVb")),f=t.next().value,X=t.next().value;t=_.U(_.hZ(!1,void 0,"qWERsf"));var Q=t.next().value,q=t.next().value;_.oh(function(){var N=_.C(A.data().collaboratePlaylistCollaborationSetting,MCH);N&&X(N.switchedOnByDefault);var z=_.C(A.data().allowNewCollaboratorsPlaylistCollaborationSetting,MCH);z&&q(z.switchedOnByDefault);if(!N&&!z||!N&&A.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")X(!0),q(!0)});
var e=function(N){X(N);q(N);var z=A.data().playlistCollaborationEntityKey||"";var T=_.ZK().getState();(T=_.q_(T.entities,"playlistCollaborationEntity",z))&&(T==null?void 0:T.isCollaborative)===N||_.ZK().dispatch(_.Ta("playlistCollaborationEntity",z,Object.assign({},T,{isCollaborative:N})))},G=function(N){q(N)};
return _.u("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.u("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.u(_.P1,{data:function(){return A.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(N){return _.u(_.mDp,{data:N.data,
onSwitch:e})}})),_.u(_.P,{cond:f,
then:function(){return _.u(_.Tw,null,_.u("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.u(_.P1,{data:function(){return A.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(N){return _.u(_.mDp,{data:N.data,
onSwitch:G,overrideDisabled:!1})}})),_.u(_.P,{cond:Q,
then:function(){return _.u("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.u(_.P1,{data:function(){return A.data().copyLinkButton}},{buttonViewModel:_.nx}))}}),_.u("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.u(_.P1,{data:function(){return A.data().playlistCollaborators}},{contentListItemViewModel:_.nIj})))}}))},"Qn"),"playlist-collaboration-view-model",{props:{data:_.PS}});var Fjb=_.I(function(A){var t=A.data;var f=A.customCommandResolver;return _.u(_.Tw,null,_.u("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.u(_.P1,{data:function(){return t().adAvatar}},{adAvatarViewModel:function(X){return _.u(_.Krk,{data:X.data,
customCommandResolver:f})}})),_.u("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.u(_.P,{cond:function(){return t().headline},
then:function(X){return _.u(_.zL,{text:X,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.u("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.u(_.P1,{data:function(){return t().adBadge}},{adBadgeViewModel:function(X){return _.u(_.xb,{data:X.data,
hasDot:function(){return t().primaryDetailsLine!==void 0},
customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.u(_.P1,{data:function(){return t().primaryDetailsLine}},{adDetailsLineViewModel:function(X){return _.u(_.jX,{data:X.data,
customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Rn"),If3=_.I(function(A){var t=A.data;
var f=A.customCommandResolver;return _.u("ad-avatar-lockup-view-model",{class:function(){var X;return((X=t().interaction)==null?0:X.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.ZY(_.OI({visibilityCallback:function(X){var Q,q=(Q=t().interaction)==null?void 0:Q.onFirstVisible;X&&q&&_.LI(q)},
showOption:_.Lj}),_.En(function(){return t().interaction},f)),
"aria-label":function(){var X,Q;return(X=t().interaction)==null?void 0:(Q=X.accessibility)==null?void 0:Q.label}},_.u(_.j2,null,_.u(_.FE,{when:function(){return t().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.u(Fjb,{data:t,
customCommandResolver:f})}),_.u(_.Ih,null,function(){return null})))},"Sn");_.Hn(_.I(function(A){var t=A.data;var f=A.panelContentVisibility;A=_.OI({visibilityCallback:function(q){var e,G=(e=t().interaction)==null?void 0:e.onFirstVisible;q&&G&&_.LI(G)},
showOption:_.Lj});var X=_.En(function(){return t().interaction},JeF);
_.ZM(function(){var q,e;if(e=_.Ae("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var G;e=(G=e())==null?void 0:G.onLayoutVisibleCallback}else e=null;(q=e)==null||q()},"Tn");
var Q=function(){return f()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.u("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.ZY(A,X)},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.u(_.P,{cond:_.Bm5("(min-width: "+((0,_.gl)()+_.FT)+"px) or (max-width: 600px)"),then:function(){return _.u(_.P1,{data:function(){return t().adImage}},{adImageViewModel:function(q){return _.u(_.Ha,{data:q.data,
targetHeight:80,customCommandResolver:JeF})}})}})),_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.u(_.P1,{data:function(){return t().adAvatarLockup}},{adAvatarLockupViewModel:function(q){return _.u(If3,{data:q.data,
customCommandResolver:JeF})}})),_.u(_.P,{cond:Q,
then:function(){return _.u(_.P1,{data:function(){return t().adButton}},{adButtonViewModel:function(q){return _.u(_.E5,{data:q.data,
customCommandResolver:JeF})}})},
else:function(){return _.u(_.P1,{data:function(){return t().menu}},{buttonViewModel:_.nx})}}),_.u("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.u(_.P1,{data:function(){var q=_.C(t().toggleButton,_.Tf);
return{toggleButtonViewModel:Object.assign({},q,{isTogglingDisabled:!0,isToggled:Q()})}}},{toggleButtonViewModel:_.s$})))))},"Un"),"panel-ad-header-image-lockup-view-model",{props:{data:_.PS,
panelContentVisibility:_.PS}});_.Hn(_.I(function(A){var t=function(){return _.C(A.data().inputComposerViewModel,G73)},f=_.um(_.Iv.currentPageSubTypeSelector),X=_.um(_.Iv.persistentPanelVisibleSelector),Q=_.U(_.hZ(!1,void 0,"IASwBb")),q=Q.next().value,e=Q.next().value;
Q=_.U(_.hZ(!1,void 0,"GdQ0qf"));var G=Q.next().value,N=Q.next().value,z=function(){W(!0);var iu;_.LI(((iu=t())==null?void 0:iu.onSubmitCommand)||{})},T=function(){if(X()&&!G()){var iu;
(iu=_.JE())==null||iu.removeCueRange("aic-proactive");e(!1);N(!0);z();_.Wn(_.OM(t().endOfVideoContinuation),{form:{formData:_.iF({clientMessageId:"youchat-"+Date.now(),pageContext:y5()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.Wn(Hai(S()));W(!1)}}})}},O=function(){var iu=_.JE();
if(iu&&!q()&&!G()){var Fb=iu.getDuration();Fb>60&&(iu.addCueRange("aic-proactive",Fb-60,Fb-20),e(!0))}},c=function(){var iu;
return((iu=t())==null?void 0:iu.youchatPendingResponseEntityKey)||""},B=_.Nt(_.YQh,c),h=function(){var iu;
return!((iu=B())==null||!iu.isPendingResponse)},W=function(iu){_.Vvw(c())(iu)};
Q=_.U(_.hZ(!0,void 0,"n0Jijf"));var L=Q.next().value,E=Q.next().value,D=function(){var iu,Fb;var xq=_.C((Fb=t())==null?void 0:Fb.inputFormField,k7W);return xq==null?void 0:(iu=xq.contentProperties)==null?void 0:iu.placeholderText},S=function(){return t().sectionTargetId||"youchat_messages_section"};
Q=_.ud("yt-chat-input-view-model");var Z=_.GU("textarea"),d=_.Nt(Khl,"chat_input_view_model_state"),K=gkj(),k=function(){var iu;return!((iu=d())==null||!iu.value)},Gz=function(){return A.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},Tz=function(){var iu;
(iu=_.JE())==null||iu.removeCueRange("aic-proactive");e(!1);N(!1);var Fb;_.M("enable_navigational_proactive_messages_on_ai_companion")&&((Fb=t())==null?0:Fb.navigationContinuation)&&X()&&(z(),_.Wn(_.OM(t().navigationContinuation),{form:{formData:_.iF({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:eTx(),pageContext:y5()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.Wn(Hai(S()));W(!1)}}}))},y5=function(){var iu;
return(iu=_.Px().resolve(_.z7(_.kQ)))==null?void 0:_.QkQ(iu,f())};
_.oh(function(){if(_.M("enable_ai_chat_controller")){var iu;(iu=_.Px().resolve(_.z7(_.kQ)))==null||iu.init(A.data().environment)}else if(iu=lUW(A.data()),!k()&&iu){var Fb;((Fb=t())==null?0:Fb.setPendingResponseOnWelcome)&&W(!0);_.Wn(iu,{form:{formData:_.iF({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:eTx(),pageContext:y5()})}});K(!0)}var xq=S(),Yq=_.Px().resolve(_.z7(_.V2)),zk=function(){_.za.remove(xq);if(_.M("enable_ai_chat_controller")){var rs;(rs=_.Px().resolve(_.z7(_.kQ)))!=null&&rs.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(rs.lastWelcomeContinuationSent=void 0)}else K(!1)},PT=function(){_.CF(function(){if(Gz()&&(Tz(xq),f()==="watch")){var rs=_.JE();
rs&&(rs.addEventListener("onStateChange",O),rs.addEventListener("onCueRangeEnter",T))}})};
Fb=_.M("enable_ai_companion")?!Gz():!0;Yq==null||Yq.addEventListener("yt-navigate-start",zk,{once:Fb});Yq==null||Yq.addEventListener("yt-navigate-finish",PT,{once:Fb});_.dD(function(){Yq==null||Yq.removeEventListener("yt-navigate-start",zk);Yq==null||Yq.removeEventListener("yt-navigate-finish",PT);var rs=_.JE();rs&&(rs.removeEventListener("onCueRangeEnter",T),rs.removeEventListener("onStateChange",O),rs.removeCueRange("aic-proactive"))})});
_.oo(function(){if(_.M("enable_ai_chat_controller")){var iu=lUW(A.data());if(iu){var Fb,xq=((Fb=t())==null?0:Fb.setPendingResponseOnWelcome)?W:void 0,Yq;(Yq=_.Px().resolve(_.z7(_.kQ)))==null||dGb(Yq,{command:iu,setPending:xq})}}},"Z4XQCb");
var cp=function(){var iu=Z.value.value;Z.value.value="";UGf(Z.value);var Fb,xq=((Fb=t())==null?void 0:Fb.enableGradientColorBg)||!1;Fb=akW(S(),iu,xq);_.Wn(Fb);z();var Yq,zk,PT;Fb=(PT=_.bP((Yq=A.data())==null?void 0:Yq.sendUserQueryCommand))!=null?PT:_.OM((zk=t())==null?void 0:zk.continuation);_.Wn(Fb,{form:{formData:_.iF({clientMessageId:"youchat-"+Date.now(),userInputText:iu,playerOffsetMs:eTx(),pageContext:y5()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.Wn(Hai(S()));W(!1)}}})};
return _.u("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:Q},_.u("div",{class:"chatInputViewModelChatInputWrapper"},_.u("form",{class:"chatInputViewModelChatInputForm"},_.u("textarea",{class:"chatInputViewModelChatInput",el:Z,"on:keydown":_.f1(function(iu){var Fb=h()||!1;UGf(Z.value);Fb||iu.key!=="Enter"||iu.shiftKey||(iu.preventDefault(),cp());return!1}),
"on:keyup":_.f1(function(){E(Z.value.value.length===0);return!1}),
"aria-label":function(){return h()?A.data().loadingAnimationA11yLabel||"":D()},
placeholder:D,rows:1}),_.u(_.nx,{data:function(){return _.C(A.data().sendButton,_.zf)},
onClick:function(iu){iu.preventDefault();cp();E(Z.value.value.length===0)},
buttonOverrides:function(){return{disabled:L()||h()}}})),_.u(_.zL,{className:"chatInputViewModelChatDisclaimer",
text:function(){var iu;return(iu=_.C(A.data().disclaimer,_.ORi))==null?void 0:iu.text}})))},"Wn"),"yt-chat-input-view-model",{props:{data:_.PS}});var xPl=["engagement-panel-clip-create","engagement-panel-clip-view"],jWQ=0,PJ=function(){var A=_.F.apply(this,arguments)||this;var t;A.headerData=(t=A.data)==null?void 0:t.header;A.darkerPanels=_.M("web_watch_darker_panels");A.matchContentTheme=_.M("web_watch_panel_content_match_theme");A.disableAutoFill=!1;A.isFullscreen=!1;A.isTheaterMode=!1;A.liveChatReplyPanel=!1;A.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");A.disableBackdropFilter=_.M("web_disable_backdrop_filter");A.isPersistentPanel=
!1;A.trackEngagementPanelVisibility=_.M("web_watch_track_engagement_panel_visibility");A.overscrollContain=!1;A.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 A};
_.R(PJ,_.F);_.J=PJ.prototype;
_.J.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},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(A){var t;return(A==null?void 0:(t=A.webComponentHint)==null?void 0:t.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]]",overscrollContain:"[[overscrollContain]]"}},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"}}}};
_.J.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var A;if((A=this.hostElement.parentElement)==null?0:A.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.J.detached=function(){this.updateTheaterDisablement()};
_.J.showPanel=function(){var A=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.a6.addJob(function(){A.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.J.maybeScrollToItemSection=function(A){var t=this,f,X=A==null?void 0:(f=A.sectionListEngagementPanelExtras)==null?void 0:f.scrollToItemSectionIdentifier;X&&_.a6.addJob(function(){var Q;(Q=t.sectionListRendererElement)==null||Q.scrollToItemSection(X)},8)};
_.J.hidePanel=function(){var A=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.a6.addJob(function(){A.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.J.updatePanel=function(A,t,f,X){var Q=this;if((A=A==null?void 0:A.engagementPanelSectionListRenderer)||X){if(A){X=A.header;var q=A.content,e=A.footer;(A=A.targetId)&&this.set("data.targetId",A);X&&this.set("data.header",X);q&&this.set("data.content",q);e&&this.set("data.footer",e)}else X&&(A=X.content,q=X.secondaryHeaderContent,e=X.targetId,X=X.loggingDirectives,e&&this.set("data.targetId",e),A&&this.set("data.content",A),X&&_.M("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
X),q&&(this.secondaryHeaderData=q));this.updateChildVisibilityProperties();if(t){var G;_.M("kevlar_update_panel_focus_scroll_killswitch")||(G={preventScroll:!0});this.focus(G)}_.us(this,function(){_.s9(Q.hostElement,"yt-refit");Q.maybeScrollToItemSection(f)})}};
_.J.computeHeaderData=function(){var A,t=(0,_.VG.unsafeClone)((A=this.data)==null?void 0:A.header);if(t){A=new _.UA(Object.keys(t)[0]);var f=_.C(t,A),X=_.C(this.secondaryHeaderData,A);X&&_.Mx(t,A,Object.assign({},X,f))}return t};
_.J.getReloadContinuation=function(){var A,t,f,X=_.U(((A=this.data)==null?void 0:(t=A.content)==null?void 0:(f=t.sectionListRenderer)==null?void 0:f.continuations)||[]);for(A=X.next();!A.done;A=X.next())if(A=A.value,A.reloadContinuationData)return A.reloadContinuationData.continuation};
_.J.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var A;((A=this.data)==null?0:A.targetId)&&(A=this.contentElement.firstElementChild)&&A.setAttribute("panel-target-id",this.data.targetId)};
_.J.forwardPopupClosedToFlowRootRenderer=function(){var A=_.sF(this.hostElement).querySelector("ytd-flow-root-renderer");if(A&&this.hostElement.closest("ytd-popup-container"))A.onPopupClosed()};
_.J.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var A;if(!xPl.includes((A=this.theaterDisablementPanelIdentifier)!=null?A:""))if(A=_.M("web_watch_imax_theater_mode")&&this.isTheaterMode,A=_.M("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||A,_.M("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||A){var t;this.visibility=(t=this.data)==null?void 0:t.visibility;var f;this.trackEngagementPanelVisibility&&((f=this.data)==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var X,Q,q,e;this.contentEmpty=!!(((X=this.data)==null?0:(Q=X.content)==null?0:Q.structuredDescriptionContentRenderer)&&Object.keys((q=this.data)==null?void 0:(e=q.content)==null?void 0:
e.structuredDescriptionContentRenderer).length===0);(t=_.Px().resolve(_.rA))&&t.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.J.isTheaterModeChanged=function(){_.M("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.J.isFullscreenChanged=function(){_.M("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.J.focus=function(A){if(this.header)this.header.focus(A);else{var t;(t=_.sF(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||t.focus(A)}};
_.J.visibilityChanged=function(){if(!_.M("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var A=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",X=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=X||!this.lastVisibility,q,e,G,N=((q=this.data)==null?void 0:(e=q.identifier)==null?void 0:
e.tag)||((G=this.data)==null?void 0:G.panelIdentifier);if(A&&Q){var z;((z=this.data)==null?0:z.onShowCommands)&&_.tl(this.hostElement,this.data.onShowCommands,this.hostElement);N&&_.$I().dispatch(_.r0({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:N}}))}else if(t&&f){var T;((T=this.data)==null?0:T.onHideCommands)&&_.tl(this.hostElement,this.data.onHideCommands,this.hostElement);N&&_.$I().dispatch(_.r0({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:N}}))}A&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*jWQ++));_.M("kevlar_watch_focus_on_engagement_panels")&&A&&X&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.J.notifyVisibilityChanged=function(A){var t;_.r2(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,A,(t=this.data)==null?void 0:t.targetId]);if(_.M("autonav_pause_for_comments_ep")){var f;_.s9(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:A==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(f=this.data)==null?void 0:f.targetId})}};
_.J.updateTheaterDisablement=function(){if(!_.M("kevlar_watch_theater_disablement_killswitch")){var A=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&xPl.includes(A)&&!_.M("watch_next_grid_ignore_disallowed_panels")){var t=_.bm(_.$I().getState()),f=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";A!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():f?(this.originalTheaterState===void 0&&(this.originalTheaterState=t,this.theaterDisablementPanelIdentifier=
A),t&&_.kJ(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.J.clearTheaterDisablement=function(){_.kJ(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.J.updateChildVisibilityProperties=function(){this.hostElement||_.M("kevlar_panel_property_init_killswitch")||this._enableProperties();var A=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=A);var t,f=(t=this.headerElement)==null?void 0:t.firstElementChild;if(f&&!this.adHeaderImageLockupViewModel){t=A==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";f.collapsed=t;f=_.sF(f).querySelector("#visibility-button");if(!f)return;(f=f.firstElementChild)&&
f.polymerController.is==="ytd-toggle-button-renderer"&&f.polymerController.data.isToggled!==t&&f.polymerController.set("data.isToggled",t)}var X;if(t=(X=this.contentElement)==null?void 0:X.firstElementChild)if(A&&A!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")t.removeAttribute("panel-content-visible");else{t.setAttribute("panel-content-visible","");var Q;(Q=t.markDirty)==null||Q.call(t)}};
_.J.onYtChangeEngagementPanelVisibilityAction=function(A){var t=this,f,X=(f=this.data)==null?void 0:f.targetId,Q,q,e;f=((Q=this.data)==null?void 0:(q=Q.identifier)==null?void 0:q.tag)||((e=this.data)==null?void 0:e.panelIdentifier);var G=_.C(A,_.VPi),N;A=X&&(G==null?void 0:G.targetId)===X||f&&(G==null?void 0:(N=G.panelIdentifier)==null?void 0:N.tag)===f;this.dialog&&A&&(G==null?void 0:G.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(X==="engagement-panel-comments-section"?_.kJ(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.kJ(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",f]));!_.M("kevlar_use_engagement_panel_management_component")&&A&&(X=G.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!X?_.a6.addJob(function(){t.visibility=G.visibility},2,this.hideDelayMs):this.visibility=G.visibility,G.visibility&&this.notifyVisibilityChanged(G.visibility))};
_.J.onYtScrollToEngagementPanelCommand=function(A){var t,f=(t=this.data)==null?void 0:t.targetId,X,Q,q;t=((X=this.data)==null?void 0:(Q=X.identifier)==null?void 0:Q.tag)||((q=this.data)==null?void 0:q.panelIdentifier);A=_.C(A,_.kIS);var e;(f&&(A==null?void 0:A.targetId)===f||t&&(A==null?void 0:(e=A.panelIdentifier)==null?void 0:e.tag)===t)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.kJ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.J.attachVEs=function(A){var t,f;(A==null?0:(t=A.content)==null?0:(f=t.productListRenderer)==null?0:f.trackingParams)&&_.er().graftServerVe(A.content.productListRenderer.trackingParams);var X,Q;(A==null?0:(X=A.content)==null?0:(Q=X.transcriptRenderer)==null?0:Q.trackingParams)&&_.er().graftServerVe(A.content.transcriptRenderer.trackingParams)};
_.J.onYtUpdateEngagementPanelAction=function(A){var t,f=(t=this.data)==null?void 0:t.targetId;A=_.C(A,XDy);f&&(A==null?void 0:A.targetId)===f&&(this.updatePanel({engagementPanelSectionListRenderer:{header:A==null?void 0:A.header,content:A==null?void 0:A.content}},!1),this.attachVEs(A))};
_.J.onYtShowEngagementPanelScrimAction=function(A){var t,f=(t=this.data)==null?void 0:t.targetId;A=_.C(A,fsi);f&&(A==null?void 0:A.engagementPanelTargetId)===f&&(this.scrimmed=!0)};
_.J.onYtHideEngagementPanelScrimAction=function(A){var t,f=(t=this.data)==null?void 0:t.targetId;A=_.C(A,AqF);f&&(A==null?void 0:A.engagementPanelTargetId)===f&&(this.scrimmed=!1)};
_.J.getIdentifier=function(){var A,t,f;return((A=this.data)==null?void 0:A.panelIdentifier)||((t=this.data)==null?void 0:(f=t.identifier)==null?void 0:f.tag)};
_.J.getSurface=function(){var A,t;return(A=this.data)==null?void 0:(t=A.identifier)==null?void 0:t.surface};
_.PV.Object.defineProperties(PJ.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var A=this.getIdentifier();return A==="engagement-panel-youchat"||A==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
PJ.prototype.visibilityChanged=PJ.prototype.visibilityChanged;PJ.prototype.isFullscreenChanged=PJ.prototype.isFullscreenChanged;PJ.prototype.isTheaterModeChanged=PJ.prototype.isTheaterModeChanged;PJ.prototype.dataChanged=PJ.prototype.dataChanged;PJ.prototype.forwardPopupClosedToFlowRootRenderer=PJ.prototype.forwardPopupClosedToFlowRootRenderer;PJ.prototype.onYtRendererstamperFinished=PJ.prototype.onYtRendererstamperFinished;
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],PJ.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],PJ.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],PJ.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],PJ.prototype,"data",void 0);
_.V([_.n({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.H("design:type",Object)],PJ.prototype,"headerData",void 0);_.V([_.n(),_.H("design:type",Object)],PJ.prototype,"secondaryHeaderData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],PJ.prototype,"visibility",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],PJ.prototype,"contentEmpty",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],PJ.prototype,"scrimmed",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],PJ.prototype,"dialog",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],PJ.prototype,"dropdown",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],PJ.prototype,"darkerPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],PJ.prototype,"matchContentTheme",void 0);_.V([_.n(),_.H("design:type",Object)],PJ.prototype,"disableAutoFill",void 0);
_.V([_.n({reflectToAttribute:!0,value:_.M("optimal_reading_width_comments_ep")}),_.H("design:type",Boolean)],PJ.prototype,"optimalReadingWidthComments",void 0);_.V([_.n(),_.H("design:type",Number)],PJ.prototype,"hideDelayMs",void 0);_.V([_.n({selector:_.WO,reflectToAttribute:!0}),_.H("design:type",Object)],PJ.prototype,"isFullscreen",void 0);_.V([_.n({selector:_.bm,reflectToAttribute:!0}),_.H("design:type",Object)],PJ.prototype,"isTheaterMode",void 0);
_.V([_.n(),_.H("design:type",Number)],PJ.prototype,"showDelayMs",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.targetId"),_.H("design:type",Object),_.H("design:paramtypes",[])],PJ.prototype,"targetId",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],PJ.prototype,"webSize",null);_.V([_.n(),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],PJ.prototype,"hideFooterBorder",null);
_.V([_.n(),_.H("design:type",Object)],PJ.prototype,"isWatch",void 0);_.V([_.n(),_.H("design:type",Object)],PJ.prototype,"originalTheaterState",void 0);_.V([_.n(),_.H("design:type",Object)],PJ.prototype,"theaterDisablementPanelIdentifier",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],PJ.prototype,"isWatchWhilePanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],PJ.prototype,"shortsPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],PJ.prototype,"liveChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],PJ.prototype,"learningChatEngagementPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],PJ.prototype,"liveChatReplyPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],PJ.prototype,"enableAnchoredPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],PJ.prototype,"disableBackdropFilter",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],PJ.prototype,"isPersistentPanel",void 0);_.V([_.n(),_.H("design:type",Object)],PJ.prototype,"trackEngagementPanelVisibility",void 0);_.V([_.n(),_.H("design:type",Object)],PJ.prototype,"overscrollContain",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],PJ.prototype,"isAiCompanionPanel",null);
_.V([_.lo("#header"),_.H("design:type",HTMLElement)],PJ.prototype,"headerElement",void 0);_.V([_.lo("#header > *"),_.H("design:type",HTMLElement)],PJ.prototype,"header",void 0);_.V([_.lo("ytd-section-list-renderer"),_.H("design:type",Object)],PJ.prototype,"sectionListRendererElement",void 0);_.V([_.lo("panel-ad-header-image-lockup-view-model"),_.H("design:type",HTMLElement)],PJ.prototype,"adHeaderImageLockupViewModel",void 0);
_.V([_.lo("#content"),_.H("design:type",HTMLElement)],PJ.prototype,"contentElement",void 0);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PJ.prototype,"onYtRendererstamperFinished",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PJ.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.V([_.PU("data","isFullscreen","isTheaterMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PJ.prototype,"dataChanged",null);_.V([_.ev("isTheaterMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PJ.prototype,"isTheaterModeChanged",null);_.V([_.ev("isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PJ.prototype,"isFullscreenChanged",null);
_.V([_.ev("visibility"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PJ.prototype,"visibilityChanged",null);_.V([_.y_({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],PJ);
_.Y(PJ,"ytd-engagement-panel-section-list-renderer",function(){if(QWj!==void 0)return QWj;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return QWj=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var Ygb;var Tg=function(){var A=_.F.apply(this,arguments)||this;A.lastRenderedPanelIds=new Set;A.visiblePanels=[];A.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return A};
_.R(Tg,_.F);_.J=Tg.prototype;_.J.dataChanged=function(){if(this.data){for(var A=[],t=_.U(this.data),f=t.next();!f.done;f=t.next()){f=f.value;var X=void 0,Q=void 0,q=(X=f)==null?void 0:(Q=X.engagementPanelSectionListRenderer)==null?void 0:Q.visibility;Q=X=void 0;((X=f)==null?0:(Q=X.engagementPanelSectionListRenderer)==null?0:Q.targetId)&&q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&A.push(f)}this.visiblePanels=A}else this.visiblePanels=[]};
_.J.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}}};
_.J.withoutVisiblePanelById=function(A){return this.visiblePanels.filter(function(t){var f;return((f=t.engagementPanelSectionListRenderer)==null?void 0:f.targetId)!==A})};
_.J.onYtChangeEngagementPanelVisibilityAction=function(A){var t=this,f=_.C(A,_.VPi);if(this.data&&(f==null?0:f.targetId)&&(f==null?0:f.visibility)){var X,Q=(X=this.data.find(function(e){var G;return((G=e.engagementPanelSectionListRenderer)==null?void 0:G.targetId)===f.targetId}))==null?void 0:X.engagementPanelSectionListRenderer;
if(Q){var q=this.withoutVisiblePanelById(f.targetId);f.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(A=this.data.find(function(e){var G;return((G=e.engagementPanelSectionListRenderer)==null?void 0:G.targetId)===f.targetId}))&&(q=[A].concat(_.YV(q)));
this.hideDelayMs&&f.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&q.length===0?_.a6.addJob(function(){Q.visibility=f.visibility;t.visiblePanels=q},10,this.hideDelayMs):(Q.visibility=f.visibility,this.visiblePanels=q);
_.r2(this.hostElement,"yt-engagement-panels-visible-changed",[q])}}};
_.J.onRendererstamperFinished=function(){var A=new Set(this.visiblePanels.map(function(t){var f;return(f=t.engagementPanelSectionListRenderer)==null?void 0:f.targetId}));
this.handlePanelVisibilityChange(A,this.lastRenderedPanelIds);this.lastRenderedPanelIds=A};
_.J.handlePanelVisibilityChange=function(A,t){A=A===void 0?new Set:A;t=t===void 0?new Set:t;if(this.data)for(var f=_.U(this.data),X=f.next();!X.done;X=f.next()){X=X.value;var Q=void 0,q=void 0,e=(Q=X)==null?void 0:(q=Q.engagementPanelSectionListRenderer)==null?void 0:q.targetId;if(e&&(Q=t.has(e),q=A.has(e),e=void 0,!Q&&q?(q=Q=void 0,e=(Q=X)==null?void 0:(q=Q.engagementPanelSectionListRenderer)==null?void 0:q.onShowCommands):Q&&!q&&(q=Q=void 0,e=(Q=X)==null?void 0:(q=Q.engagementPanelSectionListRenderer)==
null?void 0:q.onHideCommands),e))for(X=_.U(e),e=X.next();!e.done;e=X.next())this.ytComponentBehavior.resolveCommand(e.value)}};
Tg.prototype.onRendererstamperFinished=Tg.prototype.onRendererstamperFinished;Tg.prototype.dataChanged=Tg.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Tg.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Tg.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Tg.prototype,"lastRenderedPanelIds",void 0);_.V([_.n(),_.H("design:type",Number)],Tg.prototype,"hideDelayMs",void 0);_.V([_.n(),_.H("design:type",Array)],Tg.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Array)],Tg.prototype,"visiblePanels",void 0);_.V([_.n(),_.H("design:type",Boolean)],Tg.prototype,"isWatchWhilePanel",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tg.prototype,"dataChanged",null);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tg.prototype,"onRendererstamperFinished",null);_.V([_.y_({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Tg);
_.Y(Tg,"ytd-watch-engagement-panels",function(){if(Ygb!==void 0)return Ygb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Ygb=A},{mode:1});var V03;var iB=function(){return _.F.apply(this,arguments)||this};
_.R(iB,_.F);iB.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.eO(_.sF(this.hostElement).querySelector("#text"),_.tnE(_.Qkk,this.data.companionLegalText))};
iB.prototype.computeAutoScrollEnabled=function(A,t){return A&&!t};
iB.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
iB.prototype.onToggleTap=function(){this.expanded=!this.expanded};
iB.prototype.expandedChanged=iB.prototype.expandedChanged;iB.prototype.dataChanged=iB.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.fHH),_.H("design:type",Object)],iB.prototype,"ytdAutoScrollBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],iB.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],iB.prototype,"expanded",void 0);
_.V([_.n({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.H("design:type",Boolean)],iB.prototype,"autoScrollEnabled",void 0);_.V([_.n(),_.H("design:type",String)],iB.prototype,"expanderIcon",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iB.prototype,"dataChanged",null);
_.V([_.ev("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iB.prototype,"expandedChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],iB);
_.Y(iB,"ytd-companion-legal-text-renderer",function(){if(V03!==void 0)return V03;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return V03=A},{mode:1});var ZPb;var Oe=function(){var A=_.F.apply(this,arguments)||this;A.buttonUpdate=_.M("web_modern_buttons");A.kevlarWatchGrid=_.M("kevlar_watch_grid");A.centerAlignDescription=_.M("action_companion_center_align_description");A.truncateDomain=_.M("action_companion_truncate_domain");A.enableMonoStyle=_.M("enable_default_mono_cta_migration_web_client");return A};
_.R(Oe,_.F);_.J=Oe.prototype;_.J.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.J.getOnLayoutVisibleCallback=function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.J.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Oe.JSC$23374_DEFAULT_AD_BADGE_RENDERER);var A=this.getOnLayoutVisibleCallback();A&&A()}};
_.J.getButtonRenderer=function(A){return A.actionButton&&_.C(A.actionButton,_.Gf)?(delete _.C(A.actionButton,_.Gf).navigationEndpoint,_.C(A.actionButton,_.Gf)):{}};
_.J.onClick=function(A){var t=this;if((!_.M("web_modern_buttons")||!_.Sl(_.Z2(A),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){A=_.K1();var f=this.getLayoutId();A&&f&&_.M("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(X){(new _.fh(X)).executeCommand(t.data.navigationEndpoint,f)}):_.M("kevlar_companion_resolve_command_killswitch")?_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.kJ(this.hostElement,"yt-companion-ad-clicked",["action-companion",f])}};
_.PV.Object.defineProperties(Oe.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.data)==null?0:(t=A.detailsLine)==null?0:(f=t.adRating)==null?0:f.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 A,t,f,X;return((A=this.data)==null?0:(t=A.detailsLine)==null?0:(f=t.adRating)==null?0:(X=f.ratingIcon)==null?0:X.iconType)?_.t7(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X;return((A=this.data)==null?0:(t=A.detailsLine)==null?0:(f=t.texts)==null?0:(X=f[0])==null?0:X.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 A,t;return((A=this.data)==null?0:(t=A.description)==null?0:t.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var A=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return A?A.indexOf("/default_banner")!==-1:!0}}});
Oe.prototype.onClick=Oe.prototype.onClick;Oe.prototype.dataChanged=Oe.prototype.dataChanged;Oe.JSC$23374_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.e5("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Oe.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Oe.prototype,"rendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Oe.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Oe.prototype,"buttonUpdate",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Oe.prototype,"kevlarWatchGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Oe.prototype,"centerAlignDescription",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Oe.prototype,"truncateDomain",void 0);
_.V([_.n({computed:"computeButtonOverride(buttonUpdate)"}),_.H("design:type",Object)],Oe.prototype,"buttonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Oe.prototype,"enableMonoStyle",void 0);_.V([_.y("data.detailsLine.adRating.ratingText"),_.H("design:type",Object),_.H("design:paramtypes",[])],Oe.prototype,"getRating",null);_.V([_.y("getRating"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Oe.prototype,"computeRatingHidden",null);
_.V([_.y("data.detailsLine.adRating.ratingIcon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],Oe.prototype,"iconType",null);_.V([_.y("data.detailsLine.texts.0.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],Oe.prototype,"getDetailsLine",null);_.V([_.y("getDetailsLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Oe.prototype,"computeDetailsLineHidden",null);
_.V([_.y("data.description.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],Oe.prototype,"getDescriptionText",null);_.V([_.y("getDescriptionText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Oe.prototype,"computeDescriptionTextHidden",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Oe.prototype,"interactionLoggingClientData",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Oe.prototype,"hideBanner",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Oe.prototype,"dataChanged",null);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Oe.prototype,"onClick",null);_.V([_.y_({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Oe);
_.Y(Oe,"ytd-action-companion-ad-renderer",function(){if(ZPb!==void 0)return ZPb;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return ZPb=A},{mode:_.sQ("kevlar_poly_si_batch_j067")?1:2});var oii;var dPi;var cJ=function(){var A=_.F.apply(this,arguments)||this;A.buttonUpdate=_.M("web_modern_buttons");A.hideLegacyBanner=_.M("enable_dsa_one_click_ata_translators_infeed_elements");A.adInfoButtonStyle="mono";A.adInfoButtonType="text";A.noDotAdBadge=!0;return A};
_.R(cJ,_.F);_.J=cJ.prototype;_.J.getOnLayoutVisibleCallback=function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.J.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 A=this.data.image.thumbnail.thumbnails[0];this.imageSrc=A.url?_.of(A.url):void 0;this.imageWidth=A.width||0;this.imageHeight=A.height||0}this.data.clickthroughEndpoint&&_.C(this.data.clickthroughEndpoint,_.fV)&&(A=_.C(this.data.clickthroughEndpoint,_.fV).url,_.M("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
A||"":A?(A=_.of(A),this.clickThroughUrl=_.j3(A)):this.clickThroughUrl=void 0);(A=this.getOnLayoutVisibleCallback())&&A()}};
_.J.onClick=function(A){_.Sl(_.Z2(A),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(A)};
_.J.handleClick=function(){var A=this;this.data&&this.data.clickthroughEndpoint&&(_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(t){A.macroReplacementBehavior.sendServiceRequestAction([t])}),_.kJ(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.J.onLoad=function(){_.r2(this.hostElement,"yt-refit-popups-action")};
_.PV.Object.defineProperties(cJ.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}}});
cJ.prototype.onLoad=cJ.prototype.onLoad;cJ.prototype.onClick=cJ.prototype.onClick;cJ.prototype.dataChanged=cJ.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cJ.prototype,"rendererBehavior",void 0);_.V([_.b(siW.YtMacroReplacementBehavior),_.H("design:type",Object)],cJ.prototype,"macroReplacementBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cJ.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],cJ.prototype,"buttonUpdate",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],cJ.prototype,"hideLegacyBanner",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],cJ.prototype,"adInfoButtonStyle",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],cJ.prototype,"adInfoButtonType",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],cJ.prototype,"macros",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],cJ.prototype,"interactionLoggingClientData",null);_.V([_.n(),_.H("design:type",String)],cJ.prototype,"clickThroughUrl",void 0);_.V([_.n(),_.H("design:type",_.DF)],cJ.prototype,"imageSrc",void 0);_.V([_.n(),_.H("design:type",Number)],cJ.prototype,"imageWidth",void 0);_.V([_.n(),_.H("design:type",Number)],cJ.prototype,"imageHeight",void 0);_.V([_.n(),_.H("design:type",Object)],cJ.prototype,"noDotAdBadge",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cJ.prototype,"dataChanged",null);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],cJ.prototype,"onClick",null);_.V([_.UQ("load"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cJ.prototype,"onLoad",null);_.V([_.y_({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],cJ);
_.Y(cJ,"ytd-image-companion-renderer",function(){if(dPi!==void 0)return dPi;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return dPi=A},{mode:_.sQ("kevlar_poly_si_batch_j067")?1:2});var Sgl;var BJ=function(){return _.F.apply(this,arguments)||this};
_.R(BJ,_.F);_.J=BJ.prototype;_.J.dataChanged=function(){this.set("data.adBadge",BJ.JSC$23383_DEFAULT_AD_BADGE_RENDERER);if(this.data){var A=this.getOnLayoutVisibleCallback();A&&A()}};
_.J.getOnLayoutVisibleCallback=function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.J.onCompanionClicked=function(A){this.data&&(A.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.kJ(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.J.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var A=_.K1(),t=this.getLayoutId(),f=this.data.clickToAdvSiteEndpoint;A&&t&&_.M("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(X){(new _.fh(X)).executeCommand(f,t)}):_.s9(this.hostElement,"yt-navigate",{endpoint:f})}};
_.J.sendTrackingPings=function(A){if(A&&A.length!==0&&A[0].loggingUrls&&(A=A[0].loggingUrls.map(this.getBaseUrl)))for(var t=0;t<A.length;t++)_.XO(A[t])};
_.J.getBaseUrl=function(A){return A.baseUrl||""};
_.PV.Object.defineProperties(BJ.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.Ae("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}}});
BJ.prototype.onCompanionClicked=BJ.prototype.onCompanionClicked;BJ.prototype.dataChanged=BJ.prototype.dataChanged;BJ.JSC$23383_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.e5("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],BJ.prototype,"data",void 0);_.V([_.lo("#title"),_.H("design:type",HTMLElement)],BJ.prototype,"shopTitle",void 0);
_.V([_.PU("data.impressionEndpoints"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BJ.prototype,"dataChanged",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],BJ.prototype,"interactionLoggingClientData",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],BJ.prototype,"onCompanionClicked",null);
_.V([_.y_({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],BJ);
_.Y(BJ,"ytd-shopping-companion-renderer",function(){if(Sgl!==void 0)return Sgl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Sgl=A},{mode:1});_.Hn(_.I(function(A){var t=A.data;A=_.OI({visibilityCallback:function(X){var Q,q=(Q=t().interaction)==null?void 0:Q.onFirstVisible;X&&q&&_.LI(q)},
showOption:_.Lj});var f=_.En(function(){return t().interaction},NiQ);
_.ZM(function(){var X,Q;Q=(Q=_.Ae("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(X=Q)==null||X()},"Xn");
return _.u("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.f1(function(X){_.r2(X.currentTarget,"yt-refit-popups-action")}),
el:_.ZY(A,f),"aria-label":function(){var X,Q;return(X=t().interaction)==null?void 0:(Q=X.accessibility)==null?void 0:Q.label}},_.u("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.u(_.P1,{data:function(){return t().adImage}},{adImageViewModel:function(X){return _.u(_.Ha,{data:X.data,
targetHeight:80,customCommandResolver:NiQ})}})),_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.u(_.P1,{data:function(){return t().adBadge}},{adBadgeViewModel:function(X){return _.u(_.xb,{data:X.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.u("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.u(_.P1,{data:function(){return t().menu}},{buttonViewModel:_.nx}))))},"Yn"),"banner-image-layout-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;A=_.OI({visibilityCallback:function(X){var Q,q=(Q=t().interaction)==null?void 0:Q.onFirstVisible;X&&q&&_.LI(q)},
showOption:_.Lj});var f=_.En(function(){return t().interaction},u_b);
_.ZM(function(){var X,Q;Q=(Q=_.Ae("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(X=Q)==null||X()},"Zn");
return _.u("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.ZY(A,f)},_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.u(_.P1,{data:function(){return t().adImage}},{adImageViewModel:function(X){return _.u(_.Ha,{data:X.data,
targetHeight:80,customCommandResolver:u_b})}})),_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.u(_.P1,{data:function(){return t().adAvatarLockup}},{adAvatarLockupViewModel:function(X){return _.u(If3,{data:X.data,
customCommandResolver:u_b})}})),_.u(_.P1,{data:function(){return t().adButton}},{adButtonViewModel:function(X){return _.u(_.E5,{data:X.data,
customCommandResolver:u_b})}}),_.u("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.u(_.P1,{data:function(){return t().menu}},{buttonViewModel:_.nx}))))},"$n"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.PS}});var $PW={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"},MD=function(){var A=_.F.apply(this,arguments)||this;A.updateCompanionDataJobId=0;A.contentVideoId=null;A.player=null;A.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return A};
_.R(MD,_.F);_.J=MD.prototype;_.J.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:$PW}}};
_.J.attached=function(){var A=this,t=_.K1();t&&t.getPlayerPromise().then(function(f){A.getCachedDataAndListen(f)})};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.J.updateRendererStamper=function(){var A={};if(this.data)for(var t in $PW)if(this.data[t]){A[t]=this.data[t];break}if(this.oneofRenderer!=void 0||Object.keys(A).length)this.oneofRenderer=A};
_.J.getCachedDataAndListen=function(A){var t=this.retrieveCachedCompanionData();t&&Object.keys(t).length&&this.receiveCompanionData(t);this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=A};
_.J.retrieveCachedCompanionData=function(){return _.Xb.yt&&_.Xb.yt.www&&_.Xb.yt.www.ads&&_.Xb.yt.www.ads.eventcache&&_.Xb.yt.www.ads.eventcache.getLastCompanionData?_.Xb.yt.www.ads.eventcache.getLastCompanionData():null};
_.J.receiveCompanionData=function(A){A&&Object.keys(A).length?(this.contentVideoId=A.contentVideoId,this.setCompanionData(A)):this.setCompanionData(A)};
_.J.setCompanionData=function(A){this.cancelPendingCompanionAdJobs();if(A){this.updateCompanionDataJobId=0;for(var t in $PW)$PW.hasOwnProperty(t)&&(this.data[t]=void 0);A.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",A.shoppingCompanionCarouselRenderer):A.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",A.imageCompanionAdRenderer):A.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",A.actionCompanionAdRenderer),_.r2(this.hostElement,
"yt-hide-unlimited-offer-module"),_.r2(this.hostElement,"yt-hide-tvfilm-offer-module")):A.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",A.bannerImageLayoutViewModel):A.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",A.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.J.dataChanged=function(){var A=this,t=_.K1();t?t.getPlayerPromise().then(function(f){A.contentVideoId&&f.getVideoUrl().includes("v="+A.contentVideoId)||(A.cancelPendingCompanionAdJobs(),A.updateRendererStamper())}):_.te(Error("ep"))};
_.J.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.a6.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.J.handleCompanionAdClicked=function(A,t){this.player.onAdUxClicked(A,t);this.player.pauseVideo()};
MD.prototype.dataChanged=MD.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],MD.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],MD.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],MD.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],MD.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],MD.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],MD.prototype,"oneofRenderer",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MD.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],MD);
_.Y(MD,"ytd-companion-slot-renderer",function(){if(oii!==void 0)return oii;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return oii=A},{mode:_.sQ("kevlar_poly_si_batch_j067")?
1:2});var HPH;var C0=function(){return _.F.apply(this,arguments)||this};
_.R(C0,_.F);C0.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
C0.prototype.dataChanged=C0.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],C0.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],C0.prototype,"companionSlotData",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],C0.prototype,"dataChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],C0);
_.Y(C0,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(HPH!==void 0)return HPH;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return HPH=A},{mode:1});var afb;var hQ=function(){var A=_.F.apply(this,arguments)||this;A.skinnyMode=!1;A.COMPACT_EVENT_COUNT=4;A.onShelfToggleButtonTap=function(){A.logTap(A.data);A.showingMore=!A.showingMore};
A.onShelfToggleButtonFocus=function(){A.showingMore||(A.logTap(A.data),A.showingMore=!0,_.us(A,function(){var t=A.COMPACT_EVENT_COUNT-1,f;(f=_.sF(A.hostElement).querySelector("#event-"+t))==null||f.focus()}))};
return A};
_.R(hQ,_.F);_.J=hQ.prototype;_.J.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.J.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.J.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.JY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.JY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.JY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.JY(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.JY(this.infoTooltip,this.infoTooltip.hide))};
_.J.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.JY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.JY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.JY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.JY(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.JY(this.infoTooltip,this.infoTooltip.hide))};
_.J.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)};
_.J.onShowingMoreChanged=function(){var A;this.showingMoreChanged((A=this.showingMore)!=null?A:!1)};
_.J.showingMoreChanged=function(A){var t=this.get("data.events")||[];this.set("restEvents",t.slice(1,A?t.length:this.COMPACT_EVENT_COUNT).map(function(f){return f.ticketEventRenderer}));
t.slice(0,A?t.length:this.COMPACT_EVENT_COUNT).forEach(function(f){var X=_.Ws();f=f.ticketEventRenderer.trackingParams;_.mx()&&X&&f&&(f=_.zV(f),X&&_.Y7(X,f))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.J.computeAriaLabel=function(A){return A.subtitle1+", "+A.subtitle2};
_.J.logTap=function(A){_.mx()&&this.ytRendererBehavior.logExplicitClick(A)};
_.J.isKeyboardAction=function(A){return this.get("detail.x",A)===0&&this.get("detail.y",A)===0};
_.J.onFirstEventTap=function(A){A.target&&this.handleTap(A.target,this.firstEvent,this.isKeyboardAction(A))};
_.J.onTicketLinkTap=function(A){A.target&&this.handleTap(A.target,A.model.item,this.isKeyboardAction(A))};
_.J.handleTap=function(A,t,f){if(t.buttonCommand)if(t.hasMultipleOffers)Object.assign(_.C(t.buttonCommand,_.$4),{properties:{source:f?"keyboard":"tap"}}),this.logTap(t),this.popupPositionTarget=A,_.tl(this.hostElement,[t.buttonCommand],this.hostElement);else{var X;if((X=_.C(t.buttonCommand,_.fV))==null?0:X.url)this.logTap(t),_.tt(window,_.C(t.buttonCommand,_.fV).url)}};
hQ.prototype.onShowingMoreChanged=hQ.prototype.onShowingMoreChanged;hQ.prototype.dataChanged=hQ.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],hQ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],hQ.prototype,"firstEvent",void 0);_.V([_.n(),_.H("design:type",Object)],hQ.prototype,"restEvents",void 0);_.V([_.n(),_.H("design:type",String)],hQ.prototype,"imageUrl",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],hQ.prototype,"showingMore",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],hQ.prototype,"canShowMore",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hQ.prototype,"skinnyMode",void 0);_.V([_.n(),_.H("design:type",HTMLElement)],hQ.prototype,"popupPositionTarget",void 0);_.V([_.lo("#banner-info-tooltip"),_.H("design:type",Object)],hQ.prototype,"infoTooltip",void 0);
_.V([_.lo("#info-container"),_.H("design:type",HTMLElement)],hQ.prototype,"infoContainer",void 0);_.V([_.lo("#shelf-toggler"),_.H("design:type",HTMLElement)],hQ.prototype,"shelfToggleButton",void 0);_.V([_.lo("#separator"),_.H("design:type",HTMLDivElement)],hQ.prototype,"separator",void 0);_.V([_.n(),_.H("design:type",String)],hQ.prototype,"shelfTogglerLabelText",void 0);_.V([_.n(),_.H("design:type",String)],hQ.prototype,"shelfTogglerIcon",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hQ.prototype,"dataChanged",null);_.V([_.PU("showingMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hQ.prototype,"onShowingMoreChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],hQ);
_.Y(hQ,"ytd-ticket-shelf-renderer",function(){if(afb!==void 0)return afb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return afb=A},{mode:1});var Kjy;var gib;var wVu=function(){return _.F.apply(this,arguments)||this};
_.R(wVu,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wVu.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wVu.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],wVu);
_.Y(wVu,"ytd-comments-entry-point-message-renderer",function(){if(gib!==void 0)return gib;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return gib=A},{mode:1});var sWH;var R3=function(){return _.F.apply(this,arguments)||this};
_.R(R3,_.F);_.PV.Object.defineProperties(R3.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.teaserAvatar)}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],R3.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],R3.prototype,"hasAvatar",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],R3);
_.Y(R3,"ytd-comments-entry-point-teaser-renderer",function(){if(sWH!==void 0)return sWH;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return sWH=A},{mode:1});var kSb;var rWQ=function(){return _.F.apply(this,arguments)||this};
_.R(rWQ,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rWQ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rWQ.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],rWQ);
_.Y(rWQ,"ytd-comments-simplebox-renderer",function(){if(kSb!==void 0)return kSb;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return kSb=A},{mode:1});var mg=function(){var A=_.F.apply(this,arguments)||this;A.fullHeight=!_.M("comment_teaser_full_height_kill_switch")&&_.M("kevlar_watch_grid");return A};
_.R(mg,_.F);mg.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"}}}};
mg.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
mg.prototype.onTap=function(){var A=this.tapCommand;A&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(A))};
mg.prototype.onKeyUp=function(A){if(A.keyCode===13)this.onTap()};
_.PV.Object.defineProperties(mg.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.onTap)return this.data.onTap;var t,f;if(((t=this.data)==null?0:t.teaserContent)||((f=this.data)==null?0:f.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)!=null&&A.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
mg.prototype.onKeyUp=mg.prototype.onKeyUp;mg.prototype.onTap=mg.prototype.onTap;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],mg.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],mg.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],mg.prototype,"fullHeight",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mg.prototype,"tapCommand",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mg.prototype,"simpleboxPlaceholder",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mg.prototype,"hasSimpleboxPlaceholder",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mg.prototype,"simpleboxAvatar",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mg.prototype,"teaserContent",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mg.prototype,"hasTeaserContent",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mg.prototype,"teaserAvatar",null);
_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mg.prototype,"hasTeaserAvatar",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mg.prototype,"messageText",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],mg.prototype,"contentRenderer",null);_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mg.prototype,"hasContents",null);
_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mg.prototype,"hasContentRenderer",null);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mg.prototype,"onTap",null);_.V([_.UQ("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[_.W_]),_.H("design:returntype")],mg.prototype,"onKeyUp",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],mg);
_.Y(mg,"ytd-comments-entry-point-header-renderer",function(){if(Kjy!==void 0)return Kjy;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Kjy=A},{mode:1});var AGx;_.Hn(_.ScS,"yt-animated-rolling-number",{props:{numberText:_.PS,numberValue:_.PS,heightPx:_.PS,fontSizeMultiplier:_.PS,shouldAnimate:_.PS,forceRollUp:_.PS}});var taf=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),fTb={numberText:"",heightPx:2*taf,shouldAnimate:!1},bB=function(){var A=_.F.apply(this,arguments)||this;A.usingAnimatedComponents=!0;A.wasDetailed=!1;A.JSC$23420_browserSupportsAnimation=_.M("web_supports_animations_api");A.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};A.detailed=!1;A.shouldAnimate=!1;A.viewCountProps=fTb;A.dateTextProps=
fTb;A.metadataBadgesInDescription=_.M("web_metadata_badges_in_description");return A};
_.R(bB,_.F);_.J=bB.prototype;_.J.attached=function(){var A=this;_.Px().resolve(_.ni).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(t){A.set("videoPrimaryInfoRenderer.subtitle",t)})};
_.J.detached=function(){_.Px().resolve(_.ni).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.J.resetAnimationState=function(){this.shouldAnimate=!1};
_.J.updateDynamicMetadata=function(){if(this.JSC$23420_browserSupportsAnimation){if(!this.detailed){var A,t,f,X;var Q=(A=this.videoPrimaryInfoRenderer)==null?void 0:(t=A.viewCount)==null?void 0:(f=t.videoViewCountRenderer)==null?void 0:(X=f.extraShortViewCount)==null?void 0:X.simpleText;var q,e,G,N;var z=(q=this.videoPrimaryInfoRenderer)==null?void 0:(e=q.viewCount)==null?void 0:(G=e.videoViewCountRenderer)==null?void 0:(N=G.shortViewCount)==null?void 0:N.simpleText}if(!z){var T,O,c,B;Q=(T=this.videoPrimaryInfoRenderer)==
null?void 0:(O=T.viewCount)==null?void 0:(c=O.videoViewCountRenderer)==null?void 0:(B=c.unlabeledViewCountValue)==null?void 0:B.simpleText;var h,W,L,E;z=(h=this.videoPrimaryInfoRenderer)==null?void 0:(W=h.viewCount)==null?void 0:(L=W.videoViewCountRenderer)==null?void 0:(E=L.viewCount)==null?void 0:E.simpleText}var D,S,Z;A=Number((D=this.videoPrimaryInfoRenderer)==null?void 0:(S=D.viewCount)==null?void 0:(Z=S.videoViewCountRenderer)==null?void 0:Z.originalViewCount);var d,K;D=(d=this.videoPrimaryInfoRenderer)==
null?void 0:(K=d.relativeDateText)==null?void 0:K.simpleText;var k;d=!((k=this.videoPrimaryInfoRenderer)==null||!k.relativeDateText);if(Q&&z&&A&&(D||!d)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;k=z.split(new RegExp("("+Q+")"));Q=_.oC(k[0]);var Gz;z={numberText:(Gz=k[1])!=null?Gz:"",numberValue:A,heightPx:2*taf,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Tz;Gz=((Tz=k[2])!=null?Tz:"")+"  ";this.setViewCount(z,Q,_.oC(Gz));if(!this.detailed&&
d){Q=D.split(/(\d+)/);Tz=_.oC(Q[0]);var y5;Gz={numberText:(y5=Q[1])!=null?y5:"",heightPx:2*taf,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var cp;y5=((cp=Q[2])!=null?cp:"")+"  ";this.setDateText(Gz,Tz,_.oC(y5))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.J.setViewCount=function(A,t,f){_.dF(t)!==_.dF(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=t);this.viewCountProps.numberText!==(A==null?void 0:A.numberText)&&(this.viewCountProps=A||fTb);_.dF(f)!==_.dF(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=f)};
_.J.setDateText=function(A,t,f){_.dF(t)!==_.dF(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=t);this.dateTextProps.numberText!==(A==null?void 0:A.numberText)&&(this.dateTextProps=A||fTb);_.dF(f)!==_.dF(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=f)};
_.J.onYtUpdateViewershipAction=function(A){this.videoPrimaryInfoRenderer&&(_.C(A,vtf).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.C(A,vtf).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.C(A,vtf).viewCount)))};
_.J.onYtUpdateDateTextAction=function(A){if(this.videoPrimaryInfoRenderer){A=_.C(A,_.WZj).dateText;this.shouldAnimate=!0;var t;((t=this.videoPrimaryInfoRenderer)==null?0:t.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",A):this.set("videoPrimaryInfoRenderer.dateText",A)}};
_.PV.Object.defineProperties(bB.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Ok3(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.dF(Ok3(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.dF(this.viewCountPreNumberText),this.viewCountProps.numberText,_.dF(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.dF(this.dateTextPreNumberText),this.dateTextProps.numberText,_.dF(this.dateTextPostNumberText)].join("")}}});
bB.prototype.updateDynamicMetadata=bB.prototype.updateDynamicMetadata;bB.prototype.resetAnimationState=bB.prototype.resetAnimationState;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],bB.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],bB.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bB.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bB.prototype,"detailed",void 0);_.V([_.n(),_.H("design:type",Object)],bB.prototype,"shouldAnimate",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bB.prototype,"viewCountPreNumberText",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bB.prototype,"viewCountProps",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bB.prototype,"viewCountPostNumberText",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bB.prototype,"dateTextPreNumberText",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bB.prototype,"dateTextProps",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bB.prototype,"dateTextPostNumberText",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],bB.prototype,"metadataBadgesInDescription",void 0);_.V([_.y("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.H("design:type",Object),_.H("design:paramtypes",[])],bB.prototype,"infoText",null);
_.V([_.y("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.H("design:type",String),_.H("design:paramtypes",[])],bB.prototype,"descriptionInfoTooltipText",null);_.V([_.y("detailed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bB.prototype,"showDescriptionInfoTooltip",null);
_.V([_.y("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.H("design:type",String),_.H("design:paramtypes",[])],bB.prototype,"animatedViewCountAccessibilityLabel",null);_.V([_.y("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.H("design:type",String),_.H("design:paramtypes",[])],bB.prototype,"animatedDateTextAccessibilityLabel",null);
_.V([_.ev("videoPrimaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bB.prototype,"resetAnimationState",null);_.V([_.ev("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bB.prototype,"updateDynamicMetadata",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-watch-info-text"})],bB);
_.Y(bB,"ytd-watch-info-text",function(){if(AGx!==void 0)return AGx;var A=document.createElement("template");_.m(A,'\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  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\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 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return AGx=A},{mode:1});var Xsy;var Qqj="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var q9F=_.I(function(A){var t=A.data;var f=A.setTapCommand;_.oo(function(){var X=_.bP(t().onTap);f(X)},"CLm0Xe");
return _.u("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.u(_.P1,{data:function(){return t().avatar}},{avatarViewModel:_.QK}),_.u("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.u("span",null,function(){return t().simpleboxText})))},"bo");var JGi=_.I(function(A){return _.u("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.u(_.P,{cond:function(){return _.C(A.data().avatar,_.v1)},
then:function(t){return _.u(_.QK,{data:t,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.u("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.u(_.zL,{text:function(){return A.data().teaserText}})))},"co");var Uii=_.I(function(A){var t=A.data;var f=A.setTapCommand;_.oo(function(){var X=_.bP(t().onTap);f(X)},"qxjCCd");
return _.u("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.u(_.P1,{data:function(){return t().teasers}},{commentsEntryPointTeaserViewModel:JGi}))},"fo");var eZb=_.I(function(A){var t=A.data;var f=A.setTapCommand;_.oo(function(){var X=_.bP(t().onTap);f(X)},"CRZByf");
return _.u("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.u(_.zL,{text:function(){return t().messageText}}))},"ho");var GrF=_.I(function(A){var t=A.data;var f=A.setTapCommand;var X=A.isDisabled;_.oo(function(){var Q=(X==null?0:X())?void 0:_.bP(t().onTap);f(Q)},"GZxRqd");
return _.u("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.u(_.el,{icon:function(){return t().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.u(_.P,{cond:function(){return t().image},
then:function(Q){return _.u(_.YA,{data:Q,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.u(_.zL,{text:function(){return t().text},
className:function(){return t().image||t().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.u(_.P1,{data:function(){return t().button}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:X==null?void 0:X()}}})}}))},"jo");var lTb=_.I(function(A){var t=A.data;var f=A.itemIndex;var X=A.selectedIndex;var Q=A.indexUpdatedCallback;var q=A.observer;A=A.title;var e=_.GU("yt-carousel-item-view-model",function(O){q&&q().observe(O)}),G=function(O){f()===X()&&Q(O)},N=_.um(dpb),z=_.um(_.f6b),T=function(){var O,c,B,h,W;
return((O=t())==null?void 0:O.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!N()||((c=t())==null?void 0:c.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((B=z())==null?void 0:B.includes("PAposts_by_host"))||((h=t())==null?void 0:h.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((W=z())==null?void 0:W.includes("PAyouchat"))};
return _.u("yt-carousel-item-view-model",{el:e,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":A},_.u(_.P1,{data:function(){var O,c;return(c=(O=_.C(t().carouselItem,sjQ))==null?void 0:O.textCarousel)!=null?c:t().carouselItem}},{textCarouselItemViewModel:function(O){return _.u(GrF,{data:O.data,
setTapCommand:G,isDisabled:T})},
commentTeaserCarouselItemViewModel:function(O){return _.u(Uii,{data:O.data,setTapCommand:G})},
commentInputBoxCarouselItemViewModel:function(O){return _.u(q9F,{data:O.data,setTapCommand:G})},
commentsEntryPointMessageViewModel:function(O){return _.u(eZb,{data:O.data,setTapCommand:G})}}))},"ko");var N2Q=_.I(function(A){var t=A.numDots;var f=A.activeIndex;return _.u("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.u(_.xk,{each:function(){return Array.from({length:t()})},
keyBy:"INDEX"},function(X,Q){return _.u("div",{class:function(){var q={};return _.CW("ytCarouselDotsShapeDot",(q.ytCarouselDotsShapeDotActive=Q===f(),q))}})}))},"lo");var u5b=_.I(function(A){var t=A.data;var f=A.handleCarouselNavigation;var X=A.numItems;var Q=A.selectedIndex;var q=function(){return{disabled:Q()===0}},e=function(){return{disabled:Q()===X()-1}};
return _.u("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.u("div",null,_.u("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return t().title}),_.u(_.P,{cond:function(){return t().subtitle},
then:function(G){return _.u("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return t().subtitleAccessibilityText}},G)}})),_.u(_.P,{cond:function(){return X()>1},
then:function(){return _.u("div",{class:"ytCarouselTitleViewModelNavigation"},_.u(N2Q,{numDots:X,activeIndex:Q}),_.u(_.P,{cond:function(){return t().previousButton},
then:function(G){return _.u(_.P1,{data:G},{buttonViewModel:function(N){return _.u(_.nx,{data:N.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return f(-1)},
buttonOverrides:q})}})}}),_.u(_.P,{cond:function(){return t().nextButton},
then:function(G){return _.u(_.P1,{data:G},{buttonViewModel:function(N){return _.u(_.nx,{data:N.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return f(1)},
buttonOverrides:e})}})}}))}}))},"mo");_.Hn(_.I(function(A){var t=A.data;var f,X=_.GU("yt-video-metadata-carousel-view-model"),Q=_.GU("div",function(d){var K=function(){var k=d.offsetWidth*W(),Gz=24*(W()-1);c(k+Gz)};
K();window.ResizeObserver&&(f=new ResizeObserver(K),f.observe(d))}),q=_.ah("HTML_DIR")==="rtl",e=!1,G=0,N=0;
A=_.U(_.hZ(0,void 0,"M49TDf"));var z=A.next().value,T=A.next().value;A=_.U(_.hZ(0,void 0,"zLIok"));var O=A.next().value,c=A.next().value;A=_.U(_.hZ(!1,void 0,"bhelhc"));var B=A.next().value,h=A.next().value,W=function(){var d,K,k;return(k=(d=t())==null?void 0:(K=d.carouselTitles)==null?void 0:K.length)!=null?k:0},L=function(){Q.value&&Q.value.scrollLeft!==G&&T((q?Q.value.scrollLeft<G:Q.value.scrollLeft>G)?Math.min(z()+1,W()-1):Math.max(z()-1,0))},E;
window.IntersectionObserver&&(E=new IntersectionObserver(function(d){d=_.U(d);for(var K=d.next();!K.done;K=d.next())if(K.value.isIntersecting){if(e){e=!1;break}L()}else T(N)},{threshold:.2}));
_.oo(function(){if(Q.value){var d=(q?-1:1)*(O()/W()+12)*(B()&&E?N:z());typeof Q.value.scrollTo==="function"?Q.value.scrollTo({left:d,behavior:"smooth"}):Q.value.scrollLeft=d;G=d;N=B()&&E?N:z()}},"s9rbgc");
var D,S=function(d){D=d};
_.dD(function(){var d;(d=f)==null||d.disconnect();var K;(K=E)==null||K.disconnect()});
var Z=function(d){d=z()+d;d>=0&&d<W()&&(e=!0,T(d))};
return _.u("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:X,"on:click":_.f1(function(d){if(_.Rv(_.hE(d),X.value,["BUTTON".toString()])||!D)return!1;_.Px().resolve(_.i2).resolveCommand(D,{forceClickLogging:!0});return!1}),
"on:touchstart":_.f1(function(){h(!0);return!1}),
"on:touchend":_.f1(function(){E||L();h(!1);return!1}),
hidden:function(){var d,K;return!((d=t())==null?0:(K=d.carouselItems)==null?0:K.length)}},_.u("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.u(_.P,{cond:function(){return t().carouselTitles},
then:function(d){return _.u(_.P1,{data:function(){return d()[B()&&E?N:z()]}},{carouselTitleViewModel:function(K){return _.u(u5b,{data:K.data,
handleCarouselNavigation:Z,numItems:W,selectedIndex:z})}})}})),_.u("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Q},_.u("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+O()+"px;"}},_.u(_.P,{cond:function(){return t().carouselItems},
then:function(d){return _.u(_.xk,{each:d},function(K,k){return _.u(_.P1,{data:function(){return K}},{carouselItemViewModel:function(Gz){return _.u(lTb,{data:Gz.data,
itemIndex:k,selectedIndex:z,indexUpdatedCallback:S,observer:E,title:function(){a:{var Tz=k();var y5,cp=(y5=t())==null?void 0:y5.carouselTitles;if(cp&&(Tz=cp[Tz])){var iu;Tz=(iu=_.C(Tz,wxu))==null?void 0:iu.title;break a}Tz=void 0}return Tz}})}})})}}))))},"oo"),"yt-video-metadata-carousel-view-model",{props:{data:_.PS}});var zZb=_.M("web_action_buttons_update_owner_width")?32:12,WJ=function(){var A=_.F.apply(this,arguments)||this;A.isHovering=!1;A.enableColorSampling=_.M("web_delhi_colorful_sd");A.metadataBadgesInDescription=_.M("web_metadata_badges_in_description");A.descriptionCollapsed=!0;A.useFadedScrimDescription=_.M("kevlar_enable_faded_scrim_on_description");A.skinnyMode=!1;A.playlist=!1;A.isDark=document.documentElement.hasAttribute("dark");A.disableVideoOwnerOnTap=_.M("swatchie_video_owner_on_tap_ks");A.swatcherooDelayLoad=
_.M("swatcheroo_enable_ghost_cards");A.primaryMenuWidth=0;A.videoId="";A.titleHeadlineXs=_.M("web_watch_typography_title_headline_xs");A.titleHeadlineS=_.M("web_watch_typography_title_headline_s");A.titleHeadlineM=_.M("web_watch_typography_title_headline_m");A.titleHashtagBlackLinkified=_.M("web_title_hashtag_black_linkified");A.titleHashtagGreyLinkified=_.M("web_title_hashtag_grey_linkified");A.actionButtonsUpdateOwnerWidth=_.M("web_action_buttons_update_owner_width");A.shouldForceIconOnly=!1;A.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};A.isFullscreen=!1;A.isTheaterMode=!1;return A};
_.R(WJ,_.F);_.J=WJ.prototype;_.J.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.J.updateOwnerAndDescriptionPosition=function(){_.M("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.EK(this.bottomRowElement,this.ownerElement)):(_.EK(this.bottomRowElement,this.descriptionElement),_.EK(this.topRowElement,this.ownerElement)))};
_.J.titleOnTap=function(A){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Sl(_.Z2(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||this.handleExpandDescriptionCommands()}};
_.J.videoOwnerOnTap=function(A){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Sl(_.Z2(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.J.detached=function(){var A=this,t;return _.l(function(f){(t=A.resizeObserver)==null||t.disconnect();_.LO(f)})};
_.J.maybeAttachResizeObserver=function(){var A=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.qI(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){A.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.J.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var A=this.hostElement.clientWidth,t=Math.max(this.largerItemWrap?400:350,A/2-zZb);_.M("web_action_buttons_update_owner_width")&&(t=this.ownerElement.clientWidth+zZb);this.actionsOnSeparateLine=this.primaryMenuWidth>A-t?!0:!1}};
_.J.stripAttributedDescription=function(A){return{content:A.content.replace(/[\r\n]{2,}/g,"\n")}};
_.J.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.M("web_modern_buttons"),forceIconButton:!_.M("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:_.M("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"}}}};
_.J.videoPrimaryInfoRendererChanged=function(){var A;if((A=this.videoPrimaryInfoRenderer)==null?0:A.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.J.videoSecondaryInfoRendererChanged=function(){var A,t;(A=this.descriptionInlineExpander)==null||(t=A.collapse)==null||t.call(A);this.descriptionExpandClientVe=_.Xl(110509);this.descriptionCollapseClientVe=_.Xl(110510);A=_.Ws();t=_.mx();A&&t&&(_.M("combine_ve_grafts")?(_.jN(_.er(),this.descriptionExpandClientVe,t),_.jN(_.er(),this.descriptionCollapseClientVe,t)):_.j5(A,t,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.J.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.J.updateTopLevelIconsOnly=function(){var A=this;_.M("top_level_update_killswitch")||this.menu&&_.a6.addLowPriorityJob(function(){A.menu.topLevelIconsOnly=A.skinnyMode},_.cx("swathceroo_delay_flexible_menu_update",100))};
_.J.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.M("web_action_buttons_minimize_subscribe")};
_.J.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.J.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.J.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.J.onYtTextInlineExpanderExpandedChanged=function(){if(!_.M("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var A,t;(t=(A=this.structuredDescriptionContentRendererElement).resize)==null||t.call(A)}};
_.J.onRenderStamperFinished=function(A){(A==null?void 0:A.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.J.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.J.onYtExpanderLessTapped=function(){var A,t=(A=this.videoSecondaryInfoRenderer)==null?void 0:A.showLessCommand;t&&this.ytComponentBehavior.resolveCommand(t)};
_.J.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.J.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.J.onDescriptionClick=function(A){if(!_.Sl(_.Z2(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.M("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.J.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.J.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.J.logCollapseClick=function(){var A=_.Ws();A&&this.descriptionCollapseClientVe&&_.o7(A,this.descriptionCollapseClientVe)};
_.J.logExpandClick=function(){var A=_.Ws();A&&this.descriptionExpandClientVe&&_.o7(A,this.descriptionExpandClientVe)};
_.J.collapseDescription=function(){this.descriptionCollapsed=!0};
_.J.scrollToTopOfContainer=function(){_.kJ(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.J.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.J.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.J.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.J.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var A,t;(t=(A=this.descriptionInlineExpander).resize)==null||t.call(A)}else _.K4(new _.xj("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var f;(f=this.menu)==null||f.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.J.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var A,t,f,X,Q=_.M("web_action_buttons_update_owner_width")?(f=(A=_.sF(this.menu).querySelector("#button-shape"))==null?void 0:A.clientWidth)!=null?f:0:(X=(t=_.sF(this.menu).querySelector("#button"))==null?void 0:t.clientWidth)!=null?X:0,q,e;A=((e=(q=_.sF(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:q.clientWidth)!=null?e:0)+8+Q;var G,N;Q=(N=(G=_.sF(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:G.children.length)!=null?N:2;A<=8*Q||(this.primaryMenuWidth=A)}};
_.J.onYtUpdateTitleAction=function(A){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.C(A,yqF).title)};
_.J.onYtUpdateDescriptionAction=function(A){if(A=_.C(A,_.Zmp)){var t,f=!((t=this.videoSecondaryInfoRenderer)==null||!t.attributedDescription);A.isEmpty||!A.description&&!A.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):A.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",A.attributedDescription):A.description&&(f?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.CI(A.description)):this.set("videoSecondaryInfoRenderer.description",A.description))}};
_.J.onYtDarkModeToggledAction=function(A){this.isDark=A};
_.J.registerPanel=function(){if(!_.M("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var A=_.M("web_watch_imax_theater_mode")&&this.isTheaterMode;A=_.M("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||A;var t=_.Px().resolve(_.rA);t&&!A&&t.registerPanel("engagement-panel-structured-description",this)}};
_.J.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.J.parseColorSamplingData=function(){var A;if(_.M("web_delhi_colorful_sd")&&((A=this.structuredDescriptionContentRenderer)==null?0:A.items)&&(A=this.structuredDescriptionContentRenderer.items.find(function(Q){return!!_.C(Q,nq)}))){var t,f;
this.hoverColor={lightTheme:(t=_.C(A,nq))==null?void 0:t.lightThemeColorPalette,darkTheme:(f=_.C(A,nq))==null?void 0:f.darkThemeColorPalette};var X;this.hoverText=(X=_.C(A,nq))==null?void 0:X.colorSampledDescriptionBodyText}};
_.J.updateHoverColor=function(){if(_.M("web_delhi_colorful_sd")){var A=this.hoverColor,t={},f;A=(f=this.isDark?A==null?void 0:A.darkTheme:A==null?void 0:A.lightTheme)!=null?f:{};f=_.U(Qqj);for(var X=f.next();!X.done;X=f.next()){X=X.value;var Q=A[X];t["--yt-saturated-"+_.ea(X)]=Q?_.bY(Q):"initial"}_.Q_(this.hostElement,t)}};
_.J.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.J.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.J.showPanel=function(A){this.expandDescription();var t=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;t.resize();var f,X=A==null?void 0:(f=A.sectionListEngagementPanelExtras)==null?void 0:f.scrollToItemSectionIdentifier;X?_.a6.addJob(function(){t==null||t.scrollToSection(X)},8):this.scrollToTopOfContainer()};
_.J.isVisible=function(){return!this.descriptionCollapsed};
_.J.getReloadContinuation=function(){};
_.J.hidePanel=function(){};
_.J.updatePanel=function(){};
_.PV.Object.defineProperties(WJ.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var A;return _.M("web_delhi_colorful_sd")&&(A=this.structuredDescriptionContentRenderer)!=null&&A.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(t){return!_.C(t,nq)&&!_.C(t,Etb)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.structuredDescriptionContentRendererComputed)!=null&&A.items){var t;A=_.U((t=this.structuredDescriptionContentRendererComputed)==null?void 0:t.items);for(t=A.next();!t.done;t=A.next())if(t=_.C(t.value,_.Exf))return t}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoPrimaryInfoRenderer)==null?0:A.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return!!((A=this.videoSecondaryInfoRenderer)==null?0:(t=A.owner)==null?0:(f=t.videoOwnerRenderer)==null?0:f.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var A,t;if((A=this.videoSecondaryInfoRenderer)==null?0:(t=A.attributedDescription)==null?0:t.content){var f,X;return(X=this.stripAttributedDescription((f=this.videoSecondaryInfoRenderer)==null?void 0:f.attributedDescription))!=null?X:{runs:[]}}}if(_.M("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var Q,q,e,G;return(G=(e=(Q=this.videoSecondaryInfoRenderer)==
null?void 0:Q.description)!=null?e:(q=this.videoSecondaryInfoRenderer)==null?void 0:q.attributedDescription)!=null?G:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=(A=this.videoSecondaryInfoRenderer)==null?void 0:A.headerRuns)!=null?t:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.commentsEntryPointHeaderRenderer)==null||!A.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoMetadataCarousel)==null||!A.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.cx("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var A,t,f=Object.assign({},(A=this.videoSecondaryInfoRenderer)==null?void 0:(t=A.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(f&&f.rows&&f.collapsedItemCount!==void 0&&!(f.rows.length<=f.collapsedItemCount))return f.rows=f.rows.slice(f.collapsedItemCount),f.collapsedItemCount=0,f}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var A,t,f=Object.assign({},(A=this.videoSecondaryInfoRenderer)==null?void 0:(t=A.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(f&&f.rows&&f.collapsedItemCount!==void 0)return f.rows=f.rows.slice(0,f.collapsedItemCount),f.collapsedItemCount=f.rows.length,f}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var A,t;return!!((A=this.structuredDescriptionContentRendererComputed)==null?0:(t=A.items)==null?0:t.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var A;return(A=this.videoSecondaryInfoRenderer)==null?void 0:A.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.videoSecondaryInfoRenderer)==null?0:(t=A.owner)==null?0:(f=t.videoOwnerRenderer)==null?0:f.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X;return!!((A=this.videoPrimaryInfoRenderer)==null?0:(t=A.videoActions)==null?0:(f=t.menuRenderer)==null?0:(X=f.flexibleItems)==null?0:X.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.I8(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.I8(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var A=this;if(_.M("web_title_hashtag_grey_delinkified")){var t,f=_.VG.unsafeClone((t=this.videoPrimaryInfoRenderer)==null?void 0:t.title);(t=f==null?void 0:f.runs)&&t.forEach(function(X){if(X==null?0:X.navigationEndpoint)X.textColor=4284506208,A.isDark&&(X.textColor=4289374890)});
return f}return(f=this.videoPrimaryInfoRenderer)==null?void 0:f.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.M("web_title_hashtag_black_delinkified")||_.M("web_title_hashtag_grey_delinkified")}}});
WJ.prototype.updateHoverColor=WJ.prototype.updateHoverColor;WJ.prototype.parseColorSamplingData=WJ.prototype.parseColorSamplingData;WJ.prototype.resetDescriptionState=WJ.prototype.resetDescriptionState;WJ.prototype.registerPanel=WJ.prototype.registerPanel;WJ.prototype.onYtExpanderLessTapped=WJ.prototype.onYtExpanderLessTapped;WJ.prototype.onYtExpanderMoreTapped=WJ.prototype.onYtExpanderMoreTapped;WJ.prototype.onRenderStamperFinished=WJ.prototype.onRenderStamperFinished;
WJ.prototype.onYtTextInlineExpanderExpandedChanged=WJ.prototype.onYtTextInlineExpanderExpandedChanged;WJ.prototype.onYtTextInlineExpanderCollapseClicked=WJ.prototype.onYtTextInlineExpanderCollapseClicked;WJ.prototype.onYtTextInlineExpanderExpandClicked=WJ.prototype.onYtTextInlineExpanderExpandClicked;WJ.prototype.moveActionsElement=WJ.prototype.moveActionsElement;WJ.prototype.updateShouldForceIconOnly=WJ.prototype.updateShouldForceIconOnly;WJ.prototype.updateTopLevelIconsOnly=WJ.prototype.updateTopLevelIconsOnly;
WJ.prototype.structuredDescriptionContentRendererChanged=WJ.prototype.structuredDescriptionContentRendererChanged;WJ.prototype.videoSecondaryInfoRendererChanged=WJ.prototype.videoSecondaryInfoRendererChanged;WJ.prototype.videoPrimaryInfoRendererChanged=WJ.prototype.videoPrimaryInfoRendererChanged;WJ.prototype.maybeUpdateActionsOnSeparateLine=WJ.prototype.maybeUpdateActionsOnSeparateLine;WJ.prototype.updateOwnerAndDescriptionPosition=WJ.prototype.updateOwnerAndDescriptionPosition;
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],WJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],WJ.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],WJ.prototype,"ytdReduxBehavior",void 0);_.V([_.lo("#above-the-fold"),_.H("design:type",HTMLElement)],WJ.prototype,"aboveTheFoldContainer",void 0);_.V([_.lo("#menu ytd-menu-renderer"),_.H("design:type",Object)],WJ.prototype,"menu",void 0);_.V([_.lo("#description-inline-expander"),_.H("design:type",Object)],WJ.prototype,"descriptionInlineExpander",void 0);
_.V([_.lo("#faded-structured-description"),_.H("design:type",Object)],WJ.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.V([_.lo("#structured-description"),_.H("design:type",Object)],WJ.prototype,"structuredDescriptionContentRendererElement",void 0);_.V([_.lo("#title"),_.H("design:type",HTMLElement)],WJ.prototype,"titleElement",void 0);_.V([_.lo("#description"),_.H("design:type",HTMLElement)],WJ.prototype,"descriptionElement",void 0);
_.V([_.lo("#description-interaction"),_.H("design:type",Object)],WJ.prototype,"descriptionInteraction",void 0);_.V([_.lo("#owner"),_.H("design:type",HTMLElement)],WJ.prototype,"ownerElement",void 0);_.V([_.lo("#top-row"),_.H("design:type",HTMLElement)],WJ.prototype,"topRowElement",void 0);_.V([_.lo("#bottom-row"),_.H("design:type",HTMLElement)],WJ.prototype,"bottomRowElement",void 0);_.V([_.lo("#actions"),_.H("design:type",HTMLElement)],WJ.prototype,"actionsElement",void 0);
_.V([_.lo("#bottom-actions"),_.H("design:type",HTMLElement)],WJ.prototype,"bottomActionsElement",void 0);_.V([_.lo("#ytd-watch-info-text"),_.H("design:type",Object)],WJ.prototype,"watchInfoTextElement",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"videoSecondaryInfoRenderer",void 0);
_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"commentsEntryPointHeaderRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"videoMetadataCarousel",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"structuredDescriptionContentRenderer",void 0);_.V([_.y("structuredDescriptionContentRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"structuredDescriptionContentRendererComputed",null);
_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"videoSummary",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"merchShelf",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"infoPanelBelowMetadata",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"hoverColor",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"hoverText",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"isHovering",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"enableColorSampling",void 0);_.V([_.y("structuredDescriptionContentRendererComputed"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"productShelf",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"metadataBadgesInDescription",void 0);_.V([_.y("videoPrimaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"shouldHideBadges",null);
_.V([_.y("productShelf","descriptionCollapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],WJ.prototype,"shouldShowProductShelf",null);_.V([_.n(),_.H("design:type",Boolean)],WJ.prototype,"isWatchFlexy",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"descriptionCollapsed",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],WJ.prototype,"useFadedScrimDescription",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"skinnyMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("videoSecondaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"largerItemWrap",null);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"playlist",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"clarifyBox",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"playerAds",void 0);
_.V([_.n(),_.H("design:type",Boolean)],WJ.prototype,"isDark",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],WJ.prototype,"actionsOnSeparateLine",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"disableVideoOwnerOnTap",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"swatcherooDelayLoad",void 0);_.V([_.n(),_.H("design:type",Boolean)],WJ.prototype,"suppressTopLevelMetadataRows",void 0);
_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"primaryMenuWidth",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"videoId",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"titleHeadlineXs",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"titleHeadlineS",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"titleHeadlineM",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"titleHashtagBlackLinkified",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"titleHashtagGreyLinkified",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.V([_.n(),_.H("design:type",Object)],WJ.prototype,"shouldForceIconOnly",void 0);
_.V([_.PU("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"updateOwnerAndDescriptionPosition",null);_.V([_.PU("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.V([_.y("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"descriptionText",null);_.V([_.y("videoSecondaryInfoRenderer.headerRuns"),_.H("design:type",Array),_.H("design:paramtypes",[])],WJ.prototype,"headerRuns",null);
_.V([_.n({value:!1}),_.y("commentsEntryPointHeaderRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"hasTeaser",null);_.V([_.n({value:!1,reflectToAttribute:!0}),_.y("videoMetadataCarousel"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"hasTeaserCarousel",null);_.V([_.n({value:3}),_.y("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"descriptionMaxLines",null);
_.V([_.y("videoSecondaryInfoRenderer.metadataRowContainer"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"collapsibleMetadataRows",null);_.V([_.y("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"alwaysVisibleMetadataRows",null);
_.V([_.y("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],WJ.prototype,"hasInlineStructuredDescription",null);_.V([_.y("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],WJ.prototype,"showInlineStructuredDescription",null);
_.V([_.y("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"descriptionExpandCommand",null);_.V([_.y("videoSecondaryInfoRenderer.owner"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"videoOwnerCommand",null);_.V([_.n({reflectToAttribute:!0}),_.y("videoPrimaryInfoRenderer.videoActions"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],WJ.prototype,"flexMenuEnabled",null);
_.V([_.n({selector:_.WO,reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"isFullscreen",void 0);_.V([_.n({selector:_.bm,reflectToAttribute:!0}),_.H("design:type",Object)],WJ.prototype,"isTheaterMode",void 0);_.V([_.y("descriptionText","useFadedScrimDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],WJ.prototype,"showAttributedStringDescription",null);
_.V([_.y("descriptionText","useFadedScrimDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],WJ.prototype,"showFormattedStringDescription",null);_.V([_.y("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],WJ.prototype,"showFadedStructuredDescription",null);
_.V([_.PU("videoPrimaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"videoPrimaryInfoRendererChanged",null);_.V([_.y("videoPrimaryInfoRenderer.title"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"videoTitle",null);_.V([_.y("videoPrimaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],WJ.prototype,"noEndpoints",null);
_.V([_.PU("videoSecondaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"videoSecondaryInfoRendererChanged",null);_.V([_.ev("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"structuredDescriptionContentRendererChanged",null);
_.V([_.ev("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"updateTopLevelIconsOnly",null);_.V([_.ev("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"updateShouldForceIconOnly",null);_.V([_.ev("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"moveActionsElement",null);
_.V([_.UQ("yt-text-inline-expander-expand-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"onYtTextInlineExpanderExpandClicked",null);_.V([_.UQ("yt-text-inline-expander-collapse-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.V([_.UQ("yt-text-inline-expander-expanded-changed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],WJ.prototype,"onRenderStamperFinished",null);
_.V([_.UQ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"onYtExpanderMoreTapped",null);_.V([_.UQ("yt-expander-less-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"onYtExpanderLessTapped",null);
_.V([_.ev("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"registerPanel",null);_.V([_.ev("videoSecondaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"resetDescriptionState",null);
_.V([_.ev("structuredDescriptionContentRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"parseColorSamplingData",null);_.V([_.ev("hoverColor","isDark"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WJ.prototype,"updateHoverColor",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-watch-metadata"})],WJ);
_.Y(WJ,"ytd-watch-metadata",function(){if(Xsy!==void 0)return Xsy;var A=document.createElement("template");_.m(A,'\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    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" 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" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\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]]" detailed-description-override="[[!descriptionCollapsed]]" 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="[[structuredDescriptionContentRendererComputed]]" 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="[[structuredDescriptionContentRendererComputed]]" 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    </template>\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Xsy=A},{mode:2});_.CSb=function(A){_.DA.call(this);this.JSC$23445_watchApi=A;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;PSl(this);T2W(this);iGb(this);OGi(this);cGj(this);B2b(this);Mai(this)};
_.R(_.CSb,_.DA);var iGb=function(A){var t=function(){_.M("kevlar_is_pupi_enabled")||yE(A)};
A.JSC$23445_watchApi.getRoot().addEventListener("yt-player-updated",t);A.addOnDisposeCallback(function(){A.JSC$23445_watchApi.getRoot().removeEventListener("yt-player-updated",t)})},cGj=function(A){if(_.M("kevlar_endscreen_auto_theater_mode")){var t=A.JSC$23445_watchApi.subscribeToActiveChanged(function(){hZW(A)},!1);
A.addOnDisposeCallback(t)}},PSl=function(A){var t,f,X,Q,q;
_.l(function(e){if(e.nextAddress==1)return e.yield(A.JSC$23445_watchApi.playerApi,2);t=e.yieldResult;f=function(G){G=!!G;RZx(A)&&(G=G?2:1,_.WX.getInstance().setState(G,!0,!1))};
X=function(G){G&&_.okl(_.$I().getState())&&(_.kJ(A.JSC$23445_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),A.temporaryTheaterMode=!0)};
Q=function(G){_.M("kevlar_player_update_autonav_on_new_data")&&G.type==="newdata"&&(_.M("kevlar_is_pupi_enabled")||yE(A))};
q=function(G){A.onPlayerStateChange(G)};
_.M("kevlar_endscreen_auto_theater_mode")&&t.addEventListener("onAutonavCancelled",X);t.addEventListener("onAutonavChangeRequest",f);t.addEventListener("onVideoDataChange",Q);t.addEventListener("onStateChange",q);A.addOnDisposeCallback(function(){t.removeEventListener("onAutonavChangeRequest",f);t.removeEventListener("onVideoDataChange",Q);t.removeEventListener("onStateChange",q);_.M("kevlar_endscreen_auto_theater_mode")&&t.removeEventListener("onAutonavCancelled",X)});
_.LO(e)})},T2W=function(A){A.JSC$23445_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){A.autonavCancelledBySignal=!0;
_.M("kevlar_is_pupi_enabled")||yE(A)});
A.JSC$23445_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(t,f,X){f&&yE(A,X)});
A.JSC$23445_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){RZx(A)&&_.WX.getInstance().setState(2,!0,!0)});
A.JSC$23445_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){RZx(A)&&_.WX.getInstance().setState(1,!0,!0)});
A.addOnDisposeCallback(function(){A.JSC$23445_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");A.JSC$23445_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");A.JSC$23445_watchApi.unregisterActionHandler("yt-enable-autoplay-command");A.JSC$23445_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},OGi=function(A){var t=A.JSC$23445_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Mai(A)}),f=A.JSC$23445_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){B2b(A)});
A.addOnDisposeCallback(function(){A.JSC$23445_watchApi.unsubscribeByKey(t);A.JSC$23445_watchApi.unsubscribeByKey(f)})},Mai=function(A){A.autonavCancelledBySignal=!1;
_.M("kevlar_is_pupi_enabled")||yE(A)},B2b=function(A){var t=A.JSC$23445_watchApi.getWatchNextResponse(),f,X;
var Q=(t=(X=_.C(t==null?void 0:(Q=t.playerOverlays)==null?void 0:(f=Q.playerOverlayRenderer)==null?void 0:f.autonavToggle,_.$V7))==null?void 0:X.enabled)?2:1;_.M("kevlar_is_pupi_enabled")?_.WX.getInstance().setState(Q,!1,!1):yE(A);_.M("web_persist_server_autonav_state_on_client")&&typeof t==="boolean"&&_.Gnx(Q===2)},RZx=function(A){if(A.autonavCancelledBySignal)return!1;
var t,f,X,Q;return!!((t=A.JSC$23445_watchApi.getWatchNextResponse())==null?0:(f=t.contents)==null?0:(X=f.twoColumnWatchNextResults)==null?0:(Q=X.autoplay)==null?0:Q.autoplay)};
_.CSb.prototype.onPlayerStateChange=function(A){if(A===0){A=!_.WX.getInstance().isAutoplaySetExplicitly();var t=this.JSC$23445_watchApi.getWatchNextResponse(),f,X,Q,q;t=_.C(t==null?void 0:(f=t.contents)==null?void 0:(X=f.twoColumnWatchNextResults)==null?void 0:(Q=X.autoplay)==null?void 0:(q=Q.autoplay)==null?void 0:q.autoplayExplicitChoiceDialogRenderer,_.URT);RZx(this)&&A&&t&&_.XH.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:t},popupType:"DIALOG"}})}else hZW(this)};
var hZW=function(A){A.temporaryTheaterMode&&(A.temporaryTheaterMode=!1,_.kJ(A.JSC$23445_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},yE=function(A,t){t=t===void 0?!1:t;
var f;_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23445_watchApi.playerApi,2);f=X.yieldResult;RZx(A)?f.setAutonavState(_.WX.getInstance().getState(),t):f.setAutonavState(1,t);_.LO(X)})};var miF={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",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.Wxx=function(A){_.DA.call(this);var t=this;this.JSC$23450_watchApi=A;var f=this.JSC$23450_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){bGf(t)});
this.addOnDisposeCallback(function(){t.JSC$23450_watchApi.unsubscribeByKey(f)});
bGf(this)};
_.R(_.Wxx,_.DA);var bGf=function(A){var t=A.JSC$23450_watchApi.getPlayerResponse(),f=A.JSC$23450_watchApi.getWatchNextResponse();if(!_.SGx(t==null?void 0:t.playabilityStatus,f==null?void 0:f.playerOverlays)){var X;var Q=t==null?void 0:(X=t.playabilityStatus)==null?void 0:X.errorScreen}A.JSC$23450_watchApi.provideRenderingData("ERROR_SCREEN",Q)};var yGf=_.I(function(A){return _.u("yt-player-grid-renderer",{class:_.Ao("ytPlayerGridRendererHost",A.className)},_.u(_.P1,{data:A.data},{lockupViewModel:function(t){return _.u(_.VK,{data:t.data,useOverlayStyling:!0})}}))},"po");var vJf=_.I(function(A){var t=A.data;A=_.M("web_watch_video_details_hide_subtitle");var f=_.M("web_watch_video_details_single_line_title"),X=_.f1(function(){var G=t().onTap;G&&_.Px().resolve(_.i2).resolveCommand(G)}),Q={},q={},e={};
return _.u("yt-player-overlay-video-details-renderer",{class:_.Ao("ytPlayerOverlayVideoDetailsRendererHost",(Q.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.M("web_watch_video_details_transparent_background"),Q)),"on:click":X,role:"button"},_.u("h2",{class:_.Ao("ytPlayerOverlayVideoDetailsRendererTitle",(q.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return f},q))},_.u(_.zL,{text:function(){return t().title}})),_.u("div",{class:_.Ao("ytPlayerOverlayVideoDetailsRendererSubtitle",
(e.ytPlayerOverlayVideoDetailsRendererHideSubtitle=A,e))},_.u(_.zL,{text:function(){return t().subtitle}})))},"qo");var vJ={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Lxy=_.I(function(A){var t=A.data;var f=_.um(_.WO),X=_.M("web_watch_action_bar_resize_buttons"),Q=_.M("web_watch_video_action_dsdvb"),q=_.M("delhi_modern_web_player_icons")&&!_.M("enable_web_delhi_icons");A=_.M("delhi_modern_web_player_disable_frosted_glass");var e=_.M("delhi_modern_web_player_compact_video_actions_controls"),
G=_.M("web_player_quick_action_buttons_icon_only"),N=function(){var T=X&&!f(),O={};e?O.size="S":T&&(O.size="M");G&&(O.iconPosition="icon-only");if(Object.keys(O).length!==0)return O},z={};
return _.u("yt-player-quick-action-buttons",{class:_.Ao("ytPlayerQuickActionButtonsHost",(z.ytPlayerQuickActionButtonsHostCompactControls=function(){return!f()||e},z.ytPlayerQuickActionButtonsHostDisableBackdropFilter=A,z))},_.u(_.xk,{each:function(){var T=t();
if(q){T=JSON.parse(JSON.stringify(T));for(var O=_.U(T),c=O.next();!c.done;c=O.next()){var B=c.value,h=void 0;c=_.C((h=_.C(B,_.Xw))==null?void 0:h.toggleButtonViewModel,_.Tf);var W=void 0;h=_.C((W=_.C(B,_.fl))==null?void 0:W.toggleButtonViewModel,_.Tf);W=_.C(B,_.zf);B=_.C(B,_.Tf);if(c)h=_.C(c.defaultButtonViewModel,_.zf),c=_.C(c.toggledButtonViewModel,_.zf),h&&h.iconName&&(h.iconName=vJ[h.iconName]),c&&c.iconName&&(c.iconName=vJ[c.iconName]);else if(h)c=_.C(h.defaultButtonViewModel,_.zf),h=_.C(h.toggledButtonViewModel,
_.zf),c&&c.iconName&&(c.iconName=vJ[c.iconName]),h&&h.iconName&&(h.iconName=vJ[h.iconName]);else if(W)W.iconName&&(W.iconName=vJ[W.iconName]);else if(B){c=_.C(B.defaultButtonViewModel,_.zf);h=_.C(B.toggledButtonViewModel,_.zf);B=void 0;if((B=c)==null?0:B.iconName)c.iconName=vJ[c.iconName];c=void 0;if((c=h)==null?0:c.iconName)h.iconName=vJ[h.iconName]}}}Q&&(T=ceH(T));return T}},function(T){return _.u(_.P1,{data:function(){return T}},{buttonViewModel:function(O){return _.u(_.nx,{data:O.data,
buttonOverrides:N})},
likeButtonViewModel:function(O){return _.u(_.eK,{data:O.data,buttonShapeOverrideables:N})},
dislikeButtonViewModel:function(O){return _.u(_.U3,{data:O.data,buttonShapeOverrideables:N})},
toggleButtonViewModel:function(O){return _.u(_.s$,{data:O.data,buttonShapeOverrides:N})}})}))},"ro");_.EJj=function(A){_.DA.call(this);var t=this;this.JSC$23456_watchApi=A;A=_.U(_.hZ({},void 0,"OB6c5e"));this.quickActionsViewModel=A.next().value;this.setQuickActionsViewModel=A.next().value;A=_.U(_.hZ({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=A.next().value;this.setPlayerOverlayVideoDetailsRenderer=A.next().value;A=_.U(_.hZ([],void 0,"A7tRk"));this.lockupViewModels=A.next().value;this.setLockupViewModels=A.next().value;var f=this.JSC$23456_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){psW(t)});
this.addOnDisposeCallback(function(){t.JSC$23456_watchApi.unsubscribeByKey(f)});
psW(this)};
_.R(_.EJj,_.DA);
var psW=function(A){var t,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E;_.l(function(D){if(D.nextAddress==1)return D.yield(A.JSC$23456_watchApi.playerApi,2);t=D.yieldResult;f=A.JSC$23456_watchApi.getWatchNextResponse();q=(X=f)==null?void 0:(Q=X.playerOverlays)==null?void 0:Q.playerOverlayRenderer;G=_.C((e=q)==null?void 0:e.fullscreenQuickActionsBar,_.dX7);(z=(N=A).setQuickActionsViewModel)==null||z.call(N,G||{});G&&nJr(A,t);c=(T=q)==null?void 0:(O=T.videoDetails)==null?void 0:O.playerOverlayVideoDetailsRenderer;(h=
(B=A).setPlayerOverlayVideoDetailsRenderer)==null||h.call(B,c||{});c&&Dii(A,t);if(_.M("web_player_use_external_grid_component")){var S=[],Z,d,K,k,Gz=f==null?void 0:(Z=f.contents)==null?void 0:(d=Z.twoColumnWatchNextResults)==null?void 0:(K=d.secondaryResults)==null?void 0:(k=K.secondaryResults)==null?void 0:k.results;if(Gz)for(Z=_.U(Gz),d=Z.next();!d.done;d=Z.next())if(d=d.value,d.lockupViewModel)S.push(d);else if(K=void 0,(K=d.itemSectionRenderer)==null?0:K.contents)for(d=_.U(d.itemSectionRenderer.contents),
K=d.next();!K.done;K=d.next())K=K.value,K.lockupViewModel&&S.push(K);W=S;(E=(L=A).setLockupViewModels)==null||E.call(L,W||[]);FxF(A,t)}_.LO(D)})},nJr=function(A,t){if(!A.quickActionButtonsContainer)if(t.setFullscreenQuickActions){A.quickActionButtonsContainer=document.createElement("div");
t.setFullscreenQuickActions(A.quickActionButtonsContainer);var f=function(){return A.quickActionsViewModel().quickActionButtons||[]},X=_.Vz(A.quickActionButtonsContainer,function(){return _.u(Lxy,{data:f})},"so");
A.addOnDisposeCallback(function(){t.setFullscreenQuickActions(void 0);X()})}else _.K4(new _.xj("setFullscreenQuickActions not defined",{playerApi:Object.keys(t),
isReady:t.isReady(),appState:t.getAppState()}))},Dii=function(A,t){if(!A.playerOverlayVideoDetailsRendererContainer)if(t.setPlayerOverlayVideoDetailsRenderer){A.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
t.setPlayerOverlayVideoDetailsRenderer(A.playerOverlayVideoDetailsRendererContainer);var f=_.Vz(A.playerOverlayVideoDetailsRendererContainer,function(){return _.u(vJf,{data:A.playerOverlayVideoDetailsRenderer})},"to");
A.addOnDisposeCallback(function(){t.setPlayerOverlayVideoDetailsRenderer(void 0);f()})}else _.K4(new _.xj("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(t),
isReady:t.isReady(),appState:t.getAppState()}))},FxF=function(A,t){if(!A.gridRendererContainer)if(t.setFullscreenGrid){A.gridRendererContainer=document.createElement("div");
t.setFullscreenGrid(A.gridRendererContainer);var f=_.Vz(A.gridRendererContainer,function(){return _.u(yGf,{data:A.lockupViewModels})},"uo");
A.addOnDisposeCallback(function(){t.setFullscreenGrid(void 0);f()})}else _.K4(new _.xj("setFullscreenGrid not defined",{playerApi:Object.keys(t),
isReady:t.isReady(),appState:t.getAppState()}))};_.L0=function(A){_.DA.call(this);var t=this;this.JSC$23462_watchApi=A;this.JSC$23462_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;A=_.ar(_.$I(),_.WO,function(f){t.onFullscreenChanged(f)});
this.addOnDisposeCallback(A);A=_.ar(_.$I(),_.vq,function(f){t.onWatchScroll(f)});
this.addOnDisposeCallback(A);_.M("kevlar_watch_while_v2")&&(A=_.ar(_.$I(),_.WE,function(f){ITb(t,f)}),this.addOnDisposeCallback(A));
xij(this);jqu(this);Y9Q();this.onWatchScroll(_.vq(_.$I().getState()));_.Ka("START_IN_FULL_WINDOW_MODE")&&this.JSC$23462_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.R(_.L0,_.DA);var xij=function(A){A.JSC$23462_watchApi.registerActionHandler("yt-fullscreen-change-action",function(t){var f=A.JSC$23462_watchApi.isActive();t&&!f||_.$I().dispatch(_.r0({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!t}}))});
A.addOnDisposeCallback(function(){A.JSC$23462_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},jqu=function(A){var t,f;
_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23462_watchApi.playerApi,2);t=X.yieldResult;f=function(){A.onFullerscreenEduClicked()};
t.addEventListener("onFullerscreenEduClicked",f);A.addOnDisposeCallback(function(){t.removeEventListener("onFullerscreenEduClicked",f)});
_.LO(X)})};
_.L0.prototype.onFullscreenChanged=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return t.isFullscreen=!!_.aq(),X.yield(t.JSC$23462_watchApi.playerApi,2);f=X.yieldResult;t.JSC$23462_miniplayerActive||f.setFauxFullscreen(t.isFullscreen);if(A&&(t.JSC$23462_watchApi.focusOnPlayer(),!t.fullerscreenEduButtonShownThisPlayback)){t.fullerscreenEduButtonShownThisPlayback=!0;var Q=_.Bi("yt-fullerscreen-edu-button-shown-count")||0;_.ci("yt-fullerscreen-edu-button-shown-count",Q+1,31536E3);
t.updateFullerscreenEduButtonSubtleModeState()}_.LO(X)})};
var ITb=function(A,t){var f;_.l(function(X){if(X.nextAddress==1)return A.JSC$23462_miniplayerActive=t,X.yield(A.JSC$23462_watchApi.playerApi,2);f=X.yieldResult;f.setFauxFullscreen(!A.JSC$23462_miniplayerActive&&A.isFullscreen);_.LO(X)})};
_.L0.prototype.onWatchScroll=function(A){var t=this,f,X;return _.l(function(Q){if(Q.nextAddress==1)return _.M("external_fullscreen_with_edu")?Q.yield(t.JSC$23462_watchApi.playerApi,2):Q.return();f=Q.yieldResult;X=A<=0;t.shouldShowFullerscreenEdu!==X&&(t.shouldShowFullerscreenEdu=X,f.updateFullerscreenEduButtonVisibility(!t.shouldShowFullerscreenEdu));_.LO(Q)})};
_.L0.prototype.onFullerscreenEduClicked=function(){this.JSC$23462_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var A=_.Bi("yt-fullerscreen-edu-button-click-count")||0;_.ci("yt-fullerscreen-edu-button-click-count",A+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.L0.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var A=this,t,f,X,Q,q,e;return _.l(function(G){if(G.nextAddress==1)return t=_.Bi("yt-fullerscreen-edu-button-click-count")||0,f=_.Bi("yt-fullerscreen-edu-button-shown-count")||0,X=_.cx("external_fullscreen_button_click_threshold"),Q=_.cx("external_fullscreen_button_shown_threshold"),q=t>=X||f>=Q,G.yield(A.JSC$23462_watchApi.playerApi,2);e=G.yieldResult;e.updateFullerscreenEduButtonSubtleModeState(q);_.LO(G)})};
_.L0.prototype.disposeInternal=function(){_.DA.prototype.disposeInternal.call(this);var A=_.aq();_.M("kevlar_exit_fullscreen_leaving_watch")&&A&&_.KG(A)};
var Y9Q=function(){if(_.M("web_watch_add_viewport_meta_tag")){var A=document.querySelector("meta[name=viewport]"),t=document.head;t&&!A&&(A=document.createElement("meta"),A.name="viewport",A.content="width=device-width, initial-scale=1.0, viewport-fit=cover",t.appendChild(A))}};_.ZGu=function(A){_.DA.call(this);var t=this;this.JSC$23465_watchApi=A;this.jobId=0;this.pendingRequestId=void 0;var f=this.JSC$23465_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Vai(t)});
this.addOnDisposeCallback(function(){t.JSC$23465_watchApi.unsubscribeByKey(f)});
Vai(this)};
_.R(_.ZGu,_.DA);var oJ3=function(A){_.a6.cancelJob(A.jobId);A.pendingRequestId=void 0},Vai=function(A){oJ3(A);
var t=BiW(A.JSC$23465_watchApi.getWatchNextResponse());if(t){var f=250,X,Q=(X=_.C(t,_.ZRK))==null?void 0:X.initialDelayMs;_.M("web_watch_updated_metadata_server_initial_delay")&&Q&&(f=Q);A.jobId=_.a6.addLowPriorityJob(function(){return A.fetchUpdatedMetadata(t)},f)}};
_.ZGu.prototype.fetchUpdatedMetadata=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E;return _.l(function(D){switch(D.nextAddress){case 1:t&&(X={continuation:t});if(!_.M("web_get_updated_metadata_fantasy_panel_continuation_params")){D.jumpTo(2);break}Q=_.Px().resolve(_.rA);q="PAsports_fantasy";return D.yield(Q.isVisible(q,!0),3);case 3:D.yieldResult&&(z=(G=(e=Q).getUpdatePanelContinuationData)==null?void 0:(N=G.call(e,q))==null?void 0:N.updatePanelContinuationRequest)&&(X||(X={}),X.clientParams=
{panelContinuationParams:{panelContinuation:z}});case 2:T=_.Px().resolve(_.iY);if(!T)return _.HQ(Error("fp")),D.return();O={};f.pendingRequestId=O;return D.yield(_.jl(T,A,X),4);case 4:c=D.yieldResult;if(O!==f.pendingRequestId)return D.return();W=(B=c)==null?void 0:(h=B.continuation)==null?void 0:h.timedContinuationData;((L=W)==null?0:L.continuation)&&((E=W)==null?0:E.timeoutMs)&&(f.jobId=_.a6.addLowPriorityJob(function(){return f.fetchUpdatedMetadata(A,W.continuation)},W.timeoutMs));
_.LO(D)}})};
_.ZGu.prototype.disposeInternal=function(){_.DA.prototype.disposeInternal.call(this);oJ3(this)};var di3=_.I(function(A){var t=_.f1(function(){var X=A.data().videoId;if(A.active())X=_.g0(X),_.Px().resolve(_.i2).resolveCommand(X);else{var Q=A.playerApi(),q=Q.getAvailableAudioTracks(),e,G,N=(e=A.sourceVideoConfig().audioTracks)==null?void 0:(G=e.find(function(z){return z.isDefaultForSource}))==null?void 0:G.id;
if(q=q.find(function(z){return z.getLanguageInfo().getId()===N}))Q.setAudioTrack(q,!0),Q.setCompositeParam({activeVideoId:X}),A.setActiveSourceId(X)}}),f={};
return _.u("ytw-composite-source-video-overlay",{class:_.Ao("ytwCompositeSourceVideoOverlayHost",(f.ytwCompositeSourceVideoOverlayActive=A.active,f.ytwCompositeSourceVideoOverlayInteracting=A.interacting,f)),style:_.U7({left:function(){var X;return((X=A.data().topLeftCornerX)!=null?X:0)*100+"%"},
top:function(){var X;return((X=A.data().topLeftCornerY)!=null?X:0)*100+"%"},
width:function(){var X;return((X=A.data().width)!=null?X:0)*100+"%"},
height:function(){var X;return((X=A.data().height)!=null?X:0)*100+"%"}}),
"on:click":t},_.u("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"vo");var S9H=_.I(function(A){var t=_.U(_.Jo(function(){var e,G=(e=A.data().sources)==null?void 0:e.find(function(N){return N.isActive});
if(G)return G.videoId})),f=t.next().value,X=t.next().value;
t=_.U(_.hZ(!1,void 0,"rmRJ8d"));var Q=t.next().value,q=t.next().value;return _.u("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.f1(function(){q(!0)}),
"on:mouseout":_.f1(function(){q(!1)})},_.u(_.P,{cond:function(){return A.data().sources},
then:function(e){return _.u(_.xk,{each:e},function(G){return _.u(di3,{data:G,active:function(){return G.videoId===f()},
setActiveSourceId:X,interacting:Q,playerApi:A.playerApi,sourceVideoConfig:function(){return MJy(A.compositeVideoConfig(),G.videoId)}})})}}))},"wo");_.aTl=function(A){_.DA.call(this);this.JSC$23481_watchApi=A;A=_.U(_.hZ({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=A.next().value;this.setCompositeVideoOverlayRenderer=A.next().value;A=_.U(_.hZ({},void 0,"OlaJpc"));this.compositeVideoConfig=A.next().value;this.setCompositeVideoConfig=A.next().value;$ii(this);HGb(this)};
_.R(_.aTl,_.DA);var $ii=function(A){var t=A.JSC$23481_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){HGb(A)});
A.addOnDisposeCallback(function(){A.JSC$23481_watchApi.unsubscribeByKey(t)})},Kx3=function(A){var t;
return _.l(function(f){if(f.nextAddress==1)return f.yield(A.JSC$23481_watchApi.playerApi,2);t=f.yieldResult;t.setCompositeVideoOverlayRendererComponent(A.container);_.LO(f)})},gJF=function(A){var t;
return _.l(function(f){if(f.nextAddress==1)return f.yield(A.JSC$23481_watchApi.playerApi,2);t=f.yieldResult;t.setCompositeVideoOverlayRendererComponent(void 0);_.LO(f)})},wsr=function(A){var t,f;
return _.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23481_watchApi.playerApi,2);t=X.yieldResult;A.container=document.createElement("div");f=_.Vz(A.container,function(){return _.u(S9H,{data:A.compositeVideoOverlayRenderer,compositeVideoConfig:A.compositeVideoConfig,playerApi:t})},"xo");
A.addOnDisposeCallback(f);_.LO(X)})},HGb=function(A){var t,f,X,Q,q,e,G,N;
_.l(function(z){return z.nextAddress==1?(t=A.JSC$23481_watchApi.getPlayerResponse(),q=_.C((f=t)==null?void 0:(X=f.overlay)==null?void 0:(Q=X.playerControlsOverlayRenderer)==null?void 0:Q.compositeVideoOverlay,cqi),N=(e=t)==null?void 0:(G=e.playerConfig)==null?void 0:G.compositeVideoConfig,q&&A.setCompositeVideoOverlayRenderer(q),N&&A.setCompositeVideoConfig(N),q&&N?A.container?z.jumpTo(6):z.yield(wsr(A),6):sq3(A)?z.yield(gJF(A),0):z.jumpTo(0)):sq3(A)?z.jumpTo(0):z.yield(Kx3(A),0)})},sq3=function(A){var t;
return!((t=A.container)==null||!t.parentElement)};
_.aTl.prototype.disposeInternal=function(){sq3(this)&&gJF(this);_.DA.prototype.disposeInternal.call(this)};_.fNl=function(A){_.DA.call(this);var t=this;this.JSC$23487_watchApi=A;var f=this.JSC$23487_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var X=t.JSC$23487_watchApi.getPlayerResponse();if(X){var Q,q;if(X=_.C((Q=X.endscreen)==null?void 0:(q=Q.endscreenRenderer)==null?void 0:q.hideButton,_.Tf)){var e;(e=t.setEndscreenHideButton)==null||e.call(t,X);kru(t)}}});
this.addOnDisposeCallback(function(){t.JSC$23487_watchApi.unsubscribeByKey(f)});
A=_.U(_.hZ({},void 0,"ER3tqb"));this.endscreenHideButton=A.next().value;this.setEndscreenHideButton=A.next().value;rGl(this);Alu(this);t5y(this)};
_.R(_.fNl,_.DA);
var kru=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return A.creatorEndscreenHideButtonContainer?X.return():X.yield(A.JSC$23487_watchApi.playerApi,2);t=X.yieldResult;A.creatorEndscreenHideButtonContainer=document.createElement("div");_.tZ(A.creatorEndscreenHideButtonContainer,!1);t.setCreatorEndscreenHideButton(A.creatorEndscreenHideButtonContainer);f=_.Vz(A.creatorEndscreenHideButtonContainer,function(){return _.u(_.s$,{data:A.endscreenHideButton,useOutlinedIcon:!0})},"yo");
A.addOnDisposeCallback(function(){f();var Q;(Q=t)==null||Q.setCreatorEndscreenHideButton(void 0)});
_.LO(X)})},rGl=function(A){var t,f;
_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23487_watchApi.playerApi,2);t=X.yieldResult;f=function(){A.creatorEndscreenHideButtonContainer&&_.tZ(A.creatorEndscreenHideButtonContainer,!0)};
t.addEventListener("endscreenelementshown",f);A.addOnDisposeCallback(function(){var Q;(Q=t)==null||Q.removeEventListener("endscreenelementshown",f)});
_.LO(X)})},Alu=function(A){var t=function(){A.creatorEndscreenHideButtonContainer&&_.tZ(A.creatorEndscreenHideButtonContainer,!1)},f=A.JSC$23487_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",t),X=A.JSC$23487_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",t);
A.addOnDisposeCallback(function(){A.JSC$23487_watchApi.unsubscribeByKey(f);A.JSC$23487_watchApi.unsubscribeByKey(X)})},t5y=function(A){A.JSC$23487_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(t){var f=_.C(t,uib);
A.JSC$23487_watchApi.playerApi.then(function(X){X==null||X.setCreatorEndscreenVisibility(!!f.hide)})});
A.addOnDisposeCallback(function(){A.JSC$23487_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.Q7l=function(A){_.DA.call(this);this.JSC$23493_watchApi=A;Xt3(this)};
_.R(_.Q7l,_.DA);var Xt3=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23493_watchApi.playerApi,2);t=X.yieldResult;f=function(Q){_.$I().dispatch(_.r0({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Q}}))};
t.addEventListener("onRetroModeChanged",f);A.addOnDisposeCallback(function(){t.removeEventListener("onRetroModeChanged",f)});
_.LO(X)})};var vji=0,pq=0,pxy=0;var qOy;qOy=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.p0=function(A){_.DA.call(this);this.JSC$23498_watchApi=A;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Jlf(this)};
_.R(_.p0,_.DA);
var Jlf=function(A){var t,f,X;_.l(function(Q){if(Q.nextAddress==1)return Q.yield(A.JSC$23498_watchApi.playerApi,2);t=Q.yieldResult;if(A.isDisposed())return Q.return();A.sessionStorage=_.lUd("yt-sleep-timer");A.sessionStorage||_.K4(new _.xj("SessionStorage for Sleep Timer is undefined."));((f=A.sessionStorage)==null?void 0:f.get("yt-sleep-timer"))==="true"&&(DGQ(),(X=A.sessionStorage)==null||X.remove("yt-sleep-timer"),t.syncVolume());UJy(A,t);e1f(A,t);Gty(A,t);_.LO(Q)})},UJy=function(A,t){var f=function(z){A.onSleepTimerSettingsChanged(z,
t)},X=function(z){A.onPlayerStateChange(z,t)},Q=function(){A.onLoopChange(t)},q=function(){A.onCloseMiniplayer(t)},e=function(){yer(t,(0,_.OJ)(),Fyx(t),A.selectedOption==="End of video",t.getPlayerState()!==1)},G=function(){A.onSeekComplete(t)},N=function(){_.a6.cancelJob(pq);
var z=t.getCurrentTime()>=t.getDuration(),T=A.selectedOption==="End of video"||A.selectedOption==="End of playlist"&&!mGu(A.playlistId);z&&T&&lNi(A,t)};
t.addEventListener("onSleepTimerSettingsChanged",f);t.addEventListener("onLoopChange",Q);t.addEventListener("onLoopRangeChange",Q);t.addEventListener("onStateChange",X);t.addEventListener("onCloseMiniplayer",q);t.addEventListener("onSleepTimerFeatureAvailable",e);t.addEventListener("SEEK_COMPLETE",G);t.addEventListener("onAdStart",N);A.addOnDisposeCallback(function(){t.removeEventListener("onSleepTimerSettingsChanged",f);t.removeEventListener("onLoopChange",Q);t.removeEventListener("onLoopRangeChange",
Q);t.removeEventListener("onStateChange",X);t.removeEventListener("onCloseMiniplayer",q);t.removeEventListener("onSleepTimerFeatureAvailable",e);t.removeEventListener("SEEK_COMPLETE",G);t.removeEventListener("onAdStart",N)})},e1f=function(A,t){var f=A.JSC$23498_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var X=t.getVideoData().video_id,Q,q=(Q=hTQ(A.JSC$23498_watchApi))==null?void 0:Q.playlistId;
A.pauseAutonavPlayback&&(t.pauseVideo(),t.syncVolume(),A.pauseAutonavPlayback=!1);if(A.selectedOption==="End of video"&&X!==A.videoId)Ee(A,t);else{if(A.selectedOption==="End of playlist"){Q=mGu(A.playlistId);if(q!==A.playlistId){Ee(A,t);break a}Q?Q&&N0Q(A,t):udu(A,t)}A.videoId=X;A.playlistId=q}}});
A.addOnDisposeCallback(function(){A.JSC$23498_watchApi.unsubscribeByKey(f)})},Gty=function(A,t){var f=_.Px().resolve(_.Xk),X=_.ar(f,_.Eag,function(q){q&&A.selectedOption!=="Off"&&Ee(A,t)}),Q=A.JSC$23498_watchApi.subscribeToActiveChanged(function(q){var e,G;
return _.l(function(N){if(N.nextAddress==1)return N.yield(_.$z().navigationFinishPromise,2);e=!_.Unp();G=_.Px().resolve(_.DS).isMiniplayerActive();q||!C2F(A.selectedOption)||G||e||Ee(A,t);_.LO(N)})},!1);
f=_.ar(f,function(q){return q.entities.playlistLoopStateEntity||{}},function(q){q=q===void 0?{}:q;
var e=RTx(A.JSC$23498_watchApi);if(e){var G;((G=q[e])==null?void 0:G.state)==="PLAYLIST_LOOP_STATE_ALL"&&C2F(A.selectedOption)&&Ee(A,t)}});
A.addOnDisposeCallback(X);A.addOnDisposeCallback(f);A.addOnDisposeCallback(Q)};
_.p0.prototype.onSleepTimerSettingsChanged=function(A,t){switch(A){case "Off":this.selectedOption!=="Off"&&Ee(this,t);break;case "End of video":case "End of playlist":z1b(this,A,t);break;default:z1b(this,A,t,qOy.get(A))}};
_.p0.prototype.onLoopChange=function(A){(A.getLoopVideo()||A.getLoopRange())&&C2F(this.selectedOption)&&Ee(this,A)};
_.p0.prototype.onCloseMiniplayer=function(A){C2F(this.selectedOption)&&Ee(this,A)};
var z1b=function(A,t,f,X){P0b(A,f);A.selectedOption=t;A.videoId=f.getVideoData().video_id;A.playlistId="";var Q;(Q=A.sessionStorage)==null||Q.set("yt-sleep-timer","true");A.adjustmentsCount++;yer(f,(0,_.OJ)(),Fyx(f),A.selectedOption==="End of video");if(A.selectedOption==="End of video")udu(A,f),T03(A,f);else if(A.selectedOption==="End of playlist"){T03(A,f);var q,e;A.playlistId=(e=(q=hTQ(A.JSC$23498_watchApi))==null?void 0:q.playlistId)!=null?e:"";mGu(A.playlistId)||udu(A,f)}else X&&(A.presetFadeSchedulerId=
_.c1(_.a6,function(){Eju(f,15E3)},X-15E3),A.presetPauseSchedulerId=_.c1(_.a6,function(){lNi(A,f)},X),Lyr(f,(0,_.OJ)(),X))},lNi=function(A,t){if(A.JSC$23498_watchApi.isActive()){var f={dismissDialogEndpoint:{}};
var X={commandExecutorCommand:{commands:[f,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};f={buttonViewModel:{title:_.e5("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:f}}};X={buttonViewModel:{title:_.e5("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:X}}};var Q={dialogHeaderViewModel:{headline:{content:_.e5("SLEEP_TIMER_ENDED_TITLE")}}},
q={basicContentViewModel:{paragraphs:[{text:{content:_.e5("SLEEP_TIMER_ENDED_TEXT")}}]}};f={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Q,content:q,footer:{panelFooterViewModel:{primaryButton:f,secondaryButton:X,shouldHideDivider:!0}}}}}}};_.Px().resolve(_.i2).resolveCommand(f,{form:{element:A}})}else DGQ();iff(A,!1);Ofb(A,t);t.pauseVideo();_.WX.getInstance().getState()===2&&t.getPlayerState()===5&&(A.pauseAutonavPlayback=!0)},Ee=function(A,t){iff(A,!0);
Ofb(A,t);DGQ()},Ofb=function(A,t){P0b(A,t);
A.selectedOption="Off";A.videoId="";A.playlistId="";A.adjustmentsCount=0;var f;(f=A.sessionStorage)==null||f.remove("yt-sleep-timer");_.a6.cancelJob(vji);t.resetSleepTimerMenuSettings()},iff=function(A,t){t={timer_length_adjustment_times_during_session:A.adjustmentsCount-1,
is_session_cancelled:t};switch(A.selectedOption){case "Off":t.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":t.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":t.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:t.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",t.option_duration_in_minutes=qOy.get(A.selectedOption)/6E4}_.SY("sleepTimerSessionFinishEvent",t)};
_.p0.prototype.onPlayerStateChange=function(A,t){A===1?yer(t,(0,_.OJ)(),Fyx(t),this.selectedOption==="End of video"):A===0?(_.a6.cancelJob(pq),t.setVideoTimeLeft(Wyb(0,0))):A===2&&_.a6.cancelJob(pq);this.selectedOption==="End of video"?A===0?lNi(this,t):A===2&&njF(t):this.selectedOption!=="End of playlist"||mGu(this.playlistId)||(A===0?lNi(this,t):A===2&&njF(t))};
_.p0.prototype.onSeekComplete=function(A){A.getPlayerState()===2&&yer(A,(0,_.OJ)(),Fyx(A),this.selectedOption==="End of video",!0)};
_.p0.prototype.onCueRangeEnter=function(A,t){A==="sleep-timer-fade-audio"&&Eju(t,(t.getDuration()-t.getProgressState().current)*1E3)};
_.p0.prototype.onCueRangeExit=function(A,t){A==="sleep-timer-fade-audio"&&t.getPlayerState()!==0&&njF(t,!0)};
var udu=function(A,t){t.addCueRange("sleep-timer-fade-audio",t.getDuration()-15,t.getDuration());t.addEventListener("onCueRangeEnter",function(f){A.onCueRangeEnter(f,t)});
t.addEventListener("onCueRangeExit",function(f){A.onCueRangeExit(f,t)})},N0Q=function(A,t){t.removeCueRange("sleep-timer-fade-audio");
t.removeEventListener("onCueRangeEnter",function(f){A.onCueRangeEnter(f,t)});
t.removeEventListener("onCueRangeExit",function(f){A.onCueRangeExit(f,t)})},P0b=function(A,t){C2F(A.selectedOption)?N0Q(A,t):(_.a6.cancelJob(A.presetPauseSchedulerId),_.a6.cancelJob(A.presetFadeSchedulerId),A.presetPauseSchedulerId=0,A.presetFadeSchedulerId=0);
njF(t,!0)},T03=function(A,t){t.setLoop(!1);
t.setLoopVideo(!1);t.setLoopRange(null);(A=RTx(A.JSC$23498_watchApi))&&_.Px().resolve(_.Xk).dispatch(_.Ta("playlistLoopStateEntity",A,{key:A,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.h1i=function(A){_.DA.call(this);var t=this;this.JSC$23501_watchApi=A;_.M("web_watch_force_start_in_theater_mode")&&clb(this,!0,!1);B0b(this);M5y(this);C0i(this);var f=this.JSC$23501_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.cx("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.E0.get("wide",void 0)==="1"&&_.nk("wide","1",_.cx("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){t.JSC$23501_watchApi.unsubscribeByKey(f)});
A=A.getRoot();if(A.is==="ytd-watch-flexy"||A.is==="ytd-watch-grid")A.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.S8y();_.M("web_watch_log_theater_mode_cookie_state")&&_.E0.get("wide","0")==="1"&&_.mSl("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.R(_.h1i,_.DA);var B0b=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23501_watchApi.playerApi,2);t=X.yieldResult;f=function(Q){clb(A,!!Q)};
t.addEventListener("SIZE_CLICKED",f);A.addOnDisposeCallback(function(){t.removeEventListener("SIZE_CLICKED",f)});
_.LO(X)})},M5y=function(A){A.JSC$23501_watchApi.registerActionHandler("yt-toggle-theater-mode",function(t,f){clb(A,t,f===void 0?!0:f)});
A.addOnDisposeCallback(function(){A.JSC$23501_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.h1i.prototype.getState=function(){return _.bm(_.$I().getState())};
var clb=function(A,t,f){f=f===void 0?!0:f;var X,Q,q,e=_.M("enable_player_resize_transition")&&!!A.JSC$23501_watchApi.getWatchNextResponse()&&!((X=A.JSC$23501_watchApi.getWatchNextResponse())==null?0:(Q=X.contents)==null?0:(q=Q.twoColumnWatchNextResults)==null?0:q.conversationBar);_.Dv_(function(){_.$I().dispatch(_.r0({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:t}}));_.M("theater_mode_scroll_to_top_killswitch")||A.JSC$23501_watchApi.scrollWatchTo(0,!1);_.aq()&&_.M("external_fullscreen")&&_.KG(document.documentElement);
C0i(A);f&&_.nk("wide",t?"1":"0",_.cx("theater_mode_cookie_max_age_seconds",-1));_.kJ(A.JSC$23501_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);A.JSC$23501_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:t});t&&_.S8y()},{shouldWrap:e})},C0i=function(A){var t;
_.l(function(f){if(f.nextAddress==1)return f.yield(A.JSC$23501_watchApi.playerApi,2);t=f.yieldResult;t.setSizeStyle(!0,A.getState());_.LO(f)})};var bfi=function(A){_.DA.call(this);var t=this;this.playerApi=A;this.timeToPanelSyncKeyMap={};var f;if(A==null?0:(f=A.isReady)==null?0:f.call(A)){f=_.ar(_.Px().resolve(_.Xk),function(Q){return Q.entities.timedMarkersListSyncEntity||{}},function(Q,q){Q=Q===void 0?{}:Q;
q=q===void 0?{}:q;for(var e=_.U(Object.keys(q)),G=e.next();!G.done;G=e.next())G=G.value,Q[G]!==q[G]&&R1u(t,q[G]);q=_.U(Object.keys(Q));for(e=q.next();!e.done;e=q.next())e=e.value,G=Q[e],t.timeToPanelSyncKeyMap[e]&&mJH(t,G)});
this.addOnDisposeCallback(f);var X=function(Q){t.onCueRangeEnter(Q)};
A.addEventListener("onCueRangeEnter",X);this.addOnDisposeCallback(function(){var Q;(Q=A.removeEventListener)==null||Q.call(A,"onCueRangeEnter",X)})}};
_.R(bfi,_.DA);
var mJH=function(A,t){var f,X;if((f=A.playerApi)==null?0:(X=f.isReady)==null?0:X.call(f)){var Q;if((f=t==null?void 0:(Q=t.timedListData)==null?void 0:Q.sections)&&t!=null&&t.key)for(Q=_.U(f),f=Q.next();!f.done;f=Q.next())if(f=f.value,f.timedSyncDataList&&f.sectionId)for(X=0;X<f.timedSyncDataList.length;X++){var q=f.timedSyncDataList[X];q.syncItemId&&A.playerApi.addCueRange(f.sectionId+"_"+t.key+"_"+q.syncItemId,Number(q.videoTimeMs)/1E3,X===f.timedSyncDataList.length-1?0x8000000000000:Number(f.timedSyncDataList[X+
1].videoTimeMs)/1E3)}}},R1u=function(A,t){var f,X;
if((f=A.playerApi)==null?0:(X=f.isReady)==null?0:X.call(f)){var Q;if((f=t==null?void 0:(Q=t.timedListData)==null?void 0:Q.sections)&&t!=null&&t.key)for(Q=_.U(f),f=Q.next();!f.done;f=Q.next())if(f=f.value,f.timedSyncDataList&&f.sectionId){X=_.U(f.timedSyncDataList);for(var q=X.next();!q.done;q=X.next())q=q.value,q.syncItemId&&A.playerApi.removeCueRange(f.sectionId+"_"+t.key+"_"+q.syncItemId)}}};
bfi.prototype.onCueRangeEnter=function(A){for(var t=_.U(Object.keys(this.timeToPanelSyncKeyMap)),f=t.next();!f.done;f=t.next()){f=f.value;var X=_.U(A.split("_"+f+"_")),Q=X.next().value;X=X.next().value;if(Q&&X){A=_.Px().resolve(_.Xk);t=this.timeToPanelSyncKeyMap[f];var q=_.Ph5(A.getState(),t);f=WPf(f,Q,X);if(f===-1)break;f={activeSyncId:X,activeItemIndex:f,activeSectionInfo:{sectionIdentifier:Q}};q?A.dispatch(_.m0("markersEngagementPanelSyncEntity",t,f)):A.dispatch(_.Ta("markersEngagementPanelSyncEntity",
t,Object.assign({},{key:t},f)));break}}};
var WPf=function(A,t,f){var X=_.Px().resolve(_.Xk),Q,q;A=(Q=Ikl(X.getState(),A))==null?void 0:(q=Q.timedListData)==null?void 0:q.sections;if(!A)return-1;Q=0;q=_.U(A);for(A=q.next();!A.done;A=q.next()){A=A.value;X=A.timedSyncDataList||[];if(A.sectionId===t)return t=X.findIndex(function(e){return e.syncItemId===f}),t===-1?t:Q+t;
Q+=X.length}return-1};_.LPu=function(A){_.DA.call(this);var t=this;this.JSC$23514_watchApi=A;this.unresolvedCommands=[];this.JSC$23514_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(f){ylr(t,f)});
this.addOnDisposeCallback(function(){t.JSC$23514_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
v73(this)};
_.R(_.LPu,_.DA);var v73=function(A){var t;_.l(function(f){if(f.nextAddress==1)return f.yield(A.JSC$23514_watchApi.playerApi,2);t=f.yieldResult;if(A.isDisposed())return f.return();A.timedSyncObserver=new bfi(t);A.unresolvedCommands.length&&(A.unresolvedCommands.forEach(function(X){return ylr(A,X)}),A.unresolvedCommands=[]);
_.hV(A,A.timedSyncObserver);_.LO(f)})},ylr=function(A,t){if(A.timedSyncObserver){var f=_.C(t,PnF);
if(f&&f.timedSyncEntityKey&&f.panelSyncEntityKey){A=A.timedSyncObserver;t=f.timedSyncEntityKey;var X=f.panelSyncEntityKey;f=!!f.isEnabled;f=f===void 0?!0:f;var Q=_.Px().resolve(_.Xk);Q=Ikl(Q.getState(),t);f?A.timeToPanelSyncKeyMap[t]||(A.timeToPanelSyncKeyMap[t]=X,mJH(A,Q)):(delete A.timeToPanelSyncKeyMap[t],R1u(A,Q))}}else A.unresolvedCommands.push(t)};var ptl=_.I(function(A){var t=A.data,f=A.maybeLogSmartSkipClientData,X=null,Q=null,q=_.M("web_enable_auto_focus_for_timely_action_button"),e=function(){X=document.activeElement},G=function(){t().smartSkipMetadata&&(X=document.activeElement,_.pUh(function(){return Q}))},N=function(T){if(t().smartSkipMetadata&&(!T||T.key!=="Enter")){X&&X.isConnected&&(_.pUh(function(){return X}),X=null);
var O;(O=Q)==null||O.blur()}};
A=_.f1(function(){f==null||f(!0,t());return!1});
var z=_.ZY(_.W1(function(){return t().rendererContext},{onTap:function(T,O){O({disableClickTracking:!0})}}),_.OI({visibilityCallback:function(T){if(q)T?Q&&t().smartSkipMetadata&&(G(),document.addEventListener("focusin",e)):(document.removeEventListener("focusin",e),N());
else if(T){T=_.mL(t().rendererContext);var O=Number(t().maxVisibleDurationMilliseconds),c,B=(c=_.C(t().rendererContext,_.Tq))==null?void 0:c.label;T&&O&&B&&(c={label:B,command:T,durationMs:O},_.Px().resolve(_.m8).enqueue(c))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.Zk(function(){if(q){var T;if((Q=(T=z.value)==null?void 0:T.querySelector("button"))&&t().smartSkipMetadata){var O;(O=z.value)==null||O.addEventListener("keydown",N)}}});
_.dD(function(){q&&(Q&&t().smartSkipMetadata&&Q.removeEventListener("keydown",N),document.removeEventListener("focusin",e),N())});
return _.u("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:z,"on:click":A},_.u(_.P1,{data:function(){return t().content}},{buttonViewModel:_.nx}))},"Ao");var E7f=_.I(function(A){var t=A.data,f=A.playerApi,X=_.Px().resolve(_.ENy);A=_.U(_.Jo(function(){t()}));
var Q=A.next().value,q=A.next().value,e=function(){return jji(t(),Q())},G=function(z,T){var O,c,B=(O=_.C(T==null?void 0:T.rendererContext,_.GV))==null?void 0:(c=O.loggingDirectives)==null?void 0:c.trackingParams;
if((T=T==null?void 0:T.smartSkipMetadata)&&T.loggingData&&(c=T.loggingData,T=c.algorithmId,O=c.startMilliseconds,c=c.endMilliseconds,T&&O!==void 0&&c!==void 0)){var h,W;z={smartSkipData:Object.assign({},{versionName:T,startMediaTimeMs:O,endMediaTimeMs:c},z&&{userInteractionMediaTimeMs:(Math.floor(((h=_.K1())==null?void 0:(W=h.getPlayer())==null?void 0:W.getCurrentTime())||0)*1E3).toString()})};h=_.Ws();var L;B&&(L=_.zV(B));h&&L&&_.S5(h,L,z)}},N=function(z,T){var O=jji(t(),z);
if(O){var c=_.C(O,xGb),B;if(B=T)B=f(),O=_.C(O,xGb),B=O!=null&&O.smartSkipMetadata?!(B==null?0:B.isSameMarkerTypeVisible((O==null?void 0:O.smartSkipMetadata.markerKey)||"")):!0;if(B){var h,W;(c==null?0:(h=c.smartSkipMetadata)==null?0:(W=h.loggingData)==null?0:W.isCounterfactual)||(G(!1,c),q(z))}else T||Q()!==z||q(void 0)}};
_.oo(function(){var z=t().timelyActions;if(z){z=_.U(z);for(var T=z.next();!T.done;T=z.next()){T=_.C(T.value,xGb);var O=void 0;(O=T)!=null&&O.cueRangeId&&X.timelyActionsMap.set(T.cueRangeId,N)}_.dD(function(){X.timelyActionsMap.clear()})}},"l2RtC");
return _.u("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.u(_.P1,{data:e},{timelyActionViewModel:function(z){return _.u(ptl,{data:z.data,maybeLogSmartSkipClientData:function(){G(!0,_.C(e(),xGb))}})}}))},"Co");_.DJi=function(A){_.DA.call(this);this.JSC$23526_watchApi=A;A=_.U(_.hZ({},void 0,"UN7k5e"));this.timelyActionsOverlay=A.next().value;this.setTimelyActionsOverlay=A.next().value;n7Q(this)};
_.R(_.DJi,_.DA);var n7Q=function(A){var t,f,X,Q;_.l(function(q){if(q.nextAddress==1)return FPu(A),INQ(A),A.timelyActionsContainer=document.createElement("div"),q.yield(A.JSC$23526_watchApi.playerApi,2);t=q.yieldResult;(X=(f=t).insertTimelyActionUi)==null||X.call(f,A.timelyActionsContainer);Q=_.Vz(A.timelyActionsContainer,function(){return _.u(E7f,{data:A.timelyActionsOverlay,playerApi:t})},"Do");
A.addOnDisposeCallback(Q);_.LO(q)})},INQ=function(A){var t=A.JSC$23526_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){FPu(A)});
A.addOnDisposeCallback(function(){A.JSC$23526_watchApi.unsubscribeByKey(t)})},FPu=function(A){var t=A.JSC$23526_watchApi.getWatchNextResponse();
if(t){var f,X;if(t=_.C((f=t.playerOverlays)==null?void 0:(X=f.playerOverlayRenderer)==null?void 0:X.timelyActionsOverlayViewModel,Tby)){var Q;(Q=A.setTimelyActionsOverlay)==null||Q.call(A,t)}}};_.j7b=function(A){_.DA.call(this);this.JSC$23530_watchApi=A;xJH(this)};
_.R(_.j7b,_.DA);var xJH=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23530_watchApi.playerApi,2);t=X.yieldResult;f=function(Q){_.XH.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.C(Q,_.z5l)},popupType:"TOAST"}})};
t.addEventListener("onYtShowToast",f);A.addOnDisposeCallback(function(){t.removeEventListener("onYtShowToast",f)});
_.LO(X)})};var YOi,o7x,aNu,V5x,Zfi,Hfi,SOl,$Jr,KPi,wtH;YOi=!1;_.dJ3=function(A){_.DA.call(this);this.JSC$23533_watchApi=A;this.fullscreen=this.theater=!1;V5x(this);Zfi(this);o7x(this)};
_.R(_.dJ3,_.DA);o7x=function(A){var t,f,X;_.l(function(Q){if(Q.nextAddress==1)return Q.yield(A.JSC$23533_watchApi.playerApi,2);t=Q.yieldResult;if(A.isDisposed())return Q.return();f=A.JSC$23533_watchApi.getElement("CINEMATICS");if(!f)return Q.return();A.JSC$23533_cinematicController=new _.cq(f,t);_.hV(A,A.JSC$23533_cinematicController);_.nfi(A.JSC$23533_cinematicController);SOl(A,_.f4q());X=A.JSC$23533_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(q){$Jr(A,q)});
A.addOnDisposeCallback(function(){A.JSC$23533_watchApi.unsubscribeByKey(X)});
Hfi(A);$Jr(A,A.JSC$23533_cinematicController.isAllowed());aNu(A);KPi(A);_.LO(Q)})};
aNu=function(A){A.fullscreen=_.WO(_.$I().getState());A.theater=_.bm(_.$I().getState());_.g7i(A,A.fullscreen,A.theater);var t=_.ar(_.$I(),_.WO,function(X){A.fullscreen=X;_.g7i(A,A.fullscreen,A.theater)}),f=_.ar(_.$I(),_.bm,function(X){A.theater=X;
_.g7i(A,A.fullscreen,A.theater)});
A.addOnDisposeCallback(t);A.addOnDisposeCallback(f)};
V5x=function(A){var t=A.JSC$23533_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Hfi(A)});
A.addOnDisposeCallback(function(){A.JSC$23533_watchApi.unsubscribeByKey(t)})};
Zfi=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23533_watchApi.playerApi,2);t=X.yieldResult;f=function(Q){SOl(A,Q)};
t.addEventListener("cinematicSettingsToggleChange",f);A.addOnDisposeCallback(function(){t.removeEventListener("cinematicSettingsToggleChange",f)});
_.LO(X)})};
Hfi=function(A){var t=A.JSC$23533_watchApi.getWatchNextResponse(),f;t=_.C(t==null?void 0:(f=t.pageVisualEffects)==null?void 0:f[0],_.ks);var X;(X=A.JSC$23533_cinematicController)==null||_.F$i(X,t)};
SOl=function(A,t){var f;(f=A.JSC$23533_cinematicController)==null||_.D4r(f,t);wtH(A)};
$Jr=function(A,t){var f;_.l(function(X){if(X.nextAddress==1)return _.M("kevlar_watch_cinematics_invisible")&&(t=!1),X.yield(A.JSC$23533_watchApi.playerApi,2);f=X.yieldResult;f.updateCinematicSettings(t);wtH(A);_.LO(X)})};
KPi=function(A){var t=_.NJ();if(_.M("kevlar_measure_ambient_mode_idle")&&!t.getFlag(192)&&!YOi){YOi=!0;var f=_.jY(_.a6,function(){_.Px().resolve(_.eT8).start(1E4)},5E3);
A.addOnDisposeCallback(function(){_.a6.cancelJob(f);_.Px().resolve(_.eT8).stop()})}};
_.g7i=function(A,t,f){A.fullscreen=t;A.theater=f;var X;(X=A.JSC$23533_cinematicController)==null||X.setFullscreen(A.fullscreen,A.theater);if(_.M("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(A.theater||A.fullscreen){var Q;(Q=A.JSC$23533_cinematicController)==null||_.IMl(Q)}else if((A=A.JSC$23533_cinematicController)!=null){var q;(q=A.currentCinematicEffect)==null||q.pause()}};
wtH=function(A){var t;A.JSC$23533_watchApi.getRoot().toggleCinematicsActive(!((t=A.JSC$23533_cinematicController)==null||!t.isEnabled()))};_.ARj=function(A){_.DA.call(this);var t=this;this.JSC$23536_watchApi=A;this.commentsReady=!1;this.setCommentsJobId=0;A=_.ar(_.$I(),_.vq,function(){s7W(t)});
this.addOnDisposeCallback(A);var f=this.JSC$23536_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kt3(t)}),X=this.JSC$23536_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){kt3(t)});
this.addOnDisposeCallback(function(){t.JSC$23536_watchApi.unsubscribeByKey(f);t.JSC$23536_watchApi.unsubscribeByKey(X)});
var Q=function(){_.M("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&rll(t,"false")};
this.JSC$23536_watchApi.getRoot().addEventListener("yt-page-data-will-update",Q);this.addOnDisposeCallback(function(){t.JSC$23536_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Q)});
kt3(this)};
_.R(_.ARj,_.DA);var kt3=function(A){A.commentsReady=!1;_.a6.cancelJob(A.setCommentsJobId);A.setCommentsJobId=_.jY(_.a6,function(){s7W(A)},1E3)},s7W=function(A){if(!A.commentsReady){_.Wt("cmi");
_.a6.cancelJob(A.setCommentsJobId);var t,f,X,Q,q=(t=A.JSC$23536_watchApi.getWatchNextResponse())==null?void 0:(f=t.contents)==null?void 0:(X=f.twoColumnWatchNextResults)==null?void 0:(Q=X.results)==null?void 0:Q.results.contents;t=void 0;if(q&&q.length)for(q=_.U(q),f=q.next();!f.done;f=q.next())if(f=f.value,Q=X=void 0,((X=f)==null?void 0:(Q=X.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"){_.M("web_watch_provide_undefined_comments")?t=f.itemSectionRenderer:A.JSC$23536_watchApi.provideRenderingData("COMMENTS",
f.itemSectionRenderer);rll(A,"true");break}_.M("web_watch_provide_undefined_comments")&&A.JSC$23536_watchApi.provideRenderingData("COMMENTS",t);A.commentsReady=!0;A.JSC$23536_watchApi.dispatchEvent("yt-watch-comments-ready")}},rll=function(A,t){var f;
(f=A.JSC$23536_watchApi.getElement("COMMENTS"))==null||f.setAttribute("canScheduleJobs",t)};_.qpf=function(A){_.DA.call(this);var t=this;this.JSC$23539_watchApi=A;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.M("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.M("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.M("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.cx("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)tRH(this);
else{var f=this.JSC$23539_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ftu(t);n0(t)}),X=this.JSC$23539_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Da(t);
n0(t)});
this.JSC$23539_watchApi.getRoot().is==="ytd-watch-grid"&&_.M("swatcheroo_pbs_load_grid")&&(XEH(this),QCy(this));this.addOnDisposeCallback(function(){t.JSC$23539_watchApi.unsubscribeByKey(f);t.JSC$23539_watchApi.unsubscribeByKey(X);_.a6.cancelJob(t.provideRichGridJobId)});
ftu(this);Da(this)}};
_.R(_.qpf,_.DA);var tRH=function(A){var t=A.JSC$23539_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){A.providePlayerJobId=_.NB(_.a6,function(){ftu(A);n0(A)},A.provideAllDataDelayMs)}),f=A.JSC$23539_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){A.provideWatchNextJobId=_.NB(_.a6,function(){Da(A);
n0(A)},A.provideAllDataDelayMs)}),X=A.JSC$23539_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){A.provideWatchNextJobId=_.NB(_.a6,function(){Da(A);
n0(A)},A.provideAllDataDelayMs)});
A.JSC$23539_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.jY(_.a6,function(){ftu(A);Da(A);n0(A)},100)});
A.JSC$23539_watchApi.addPageDisposeJob(function(){_.a6.cancelJob(A.provideWatchNextJobId);_.a6.cancelJob(A.providePlayerJobId)});
A.addOnDisposeCallback(function(){A.JSC$23539_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");A.JSC$23539_watchApi.unsubscribeByKey(t);A.JSC$23539_watchApi.unsubscribeByKey(f);A.JSC$23539_watchApi.unsubscribeByKey(X);_.a6.cancelJob(A.providePlayerJobId);_.a6.cancelJob(A.provideWatchNextJobId)});
ftu(A);Da(A)},ftu=function(A){var t=A.JSC$23539_watchApi.getPlayerResponse(),f,X,Q=(X=t==null?void 0:(f=t.playabilityStatus)==null?void 0:f.messageRenderers)!=null?X:[],q,e;
t=(e=t==null?void 0:(q=t.playabilityStatus)==null?void 0:q.messages)!=null?e:[];q=_.U(t);for(e=q.next();!e.done;e=q.next())Q.push({alertRenderer:{text:_.oC(e.value),type:"WARNING"}});A.JSC$23539_watchApi.provideRenderingData("ALERTS",Q)},Da=function(A){var t=[],f,X,Q,q=A.JSC$23539_watchApi.getWatchNextResponse(),e,G,N,z,T=q==null?void 0:(e=q.contents)==null?void 0:(G=e.twoColumnWatchNextResults)==null?void 0:(N=G.results)==null?void 0:(z=N.results)==null?void 0:z.contents;
if(T)for(e=_.U(T),G=e.next();!G.done;G=e.next())if(G=G.value,G.videoPrimaryInfoRenderer)var O=G;else if(G.videoSecondaryInfoRenderer){var c=G;z=N=void 0;G=Object.assign({},(N=G.videoSecondaryInfoRenderer)==null?void 0:(z=N.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer);if(G.rows&&G.collapsedItemCount!==void 0){G.rows=G.rows.slice(0,G.collapsedItemCount).filter(function(rE){return!!rE.richMetadataRowRenderer});
G.collapsedItemCount=G.rows.length;var B={metadataRowContainerRenderer:G}}}else if(G.merchandiseShelfRenderer)var h=G;else if(G.ticketShelfRenderer)var W=G;else if(G.expandableMetadataRenderer)var L=G;else if(G.itemSectionRenderer)if(N=G.itemSectionRenderer.contents,z=void 0,A.directlyProvideComments&&((z=G.itemSectionRenderer)==null?void 0:z.sectionIdentifier)==="comment-item-section")_.Wt("cmi"),A.JSC$23539_watchApi.provideRenderingData("COMMENTS",G.itemSectionRenderer);else if(N)for(G=_.U(N),N=
G.next();!N.done;N=G.next())if(N=N.value,N.commentsEntryPointHeaderRenderer)var E=N;else if(N.clarificationRenderer||N.infoPanelContainerRenderer||N.infoPanelContentRenderer||N.emergencyOneboxRenderer){t.push(N);var D=D||!!c}else N.limitedStateMessageRenderer?X=N:N.videoMetadataCarouselViewModel&&(Q=N);if(_.M("web_watch_merch_in_sd_when_ticket_shelf_present")&&h&&W){var S=h;h=void 0}if(A.provideWatchNextSecondaryResults){var Z,d,K;A.JSC$23539_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
q==null?void 0:(Z=q.contents)==null?void 0:(d=Z.twoColumnWatchNextResults)==null?void 0:(K=d.secondaryResults)==null?void 0:K.secondaryResults)}if(A.JSC$23539_watchApi.getRoot().is==="ytd-watch-grid"){var k,Gz;A.JSC$23539_watchApi.provideRenderingData("LIVE_CHAT",q==null?void 0:(k=q.contents)==null?void 0:(Gz=k.twoColumnWatchNextResults)==null?void 0:Gz.conversationBar)}var Tz,y5,cp,iu;(Z=q==null?void 0:(Tz=q.contents)==null?void 0:(y5=Tz.twoColumnWatchNextResults)==null?void 0:(cp=y5.secondaryResults)==
null?void 0:(iu=cp.secondaryResults)==null?void 0:iu.offerModule)&&(Z.donationShelfRenderer||Z.donationUnavailableRenderer)&&A.JSC$23539_watchApi.getRoot().is!=="ytd-watch-grid"&&(f=Z);Tz=A.JSC$23539_watchApi.getPlayerResponse();if(!Tz||!_.SGx(Tz.playabilityStatus,q==null?void 0:q.playerOverlays)){var Fb;if(q==null?0:(Fb=q.contents)==null?0:Fb.singleColumnWatchNextResults){var xq,Yq;var zk=q==null?void 0:(xq=q.contents.singleColumnWatchNextResults.results)==null?void 0:(Yq=xq.results)==null?void 0:
Yq.contents}else{var PT,rs,OT,bK;Fb=!!(T==null?0:(PT=T[0])==null?0:(rs=PT.itemSectionRenderer)==null?0:(OT=rs.contents)==null?0:(bK=OT[0])==null?0:bK.backgroundPromoRenderer);var ET,m3;PT=!!(q==null?0:(ET=q.contents)==null?0:(m3=ET.twoColumnWatchNextResults)==null?0:m3.secondaryResults);Fb&&!PT&&(zk=T)}}T=t[0];ET=t[1];D&&t.length===1&&(ET=T,T=void 0);A.JSC$23539_watchApi.provideRenderingData("PRIMARY_INFO",O);A.JSC$23539_watchApi.provideRenderingData("SECONDARY_INFO",c);A.JSC$23539_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
E);A.JSC$23539_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Q);A.JSC$23539_watchApi.provideRenderingData("CLARIFICATION",T);A.JSC$23539_watchApi.provideRenderingData("RICH_METADATA",B);A.JSC$23539_watchApi.provideRenderingData("MERCH_SHELF",h);_.M("web_watch_merch_in_sd_when_ticket_shelf_present")&&A.JSC$23539_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",S);A.JSC$23539_watchApi.provideRenderingData("TICKET_SHELF",W);A.JSC$23539_watchApi.provideRenderingData("LIMITED_STATE",X);A.JSC$23539_watchApi.getRoot().is!==
"ytd-watch-grid"&&A.JSC$23539_watchApi.provideRenderingData("DONATION_SHELF",f);A.JSC$23539_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",zk);A.JSC$23539_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",ET);A.JSC$23539_watchApi.provideRenderingData("EXPANDABLE_METADATA",L);if(A.swatcherooProvideAllDataOnScheduledJob){var O2,eT,fS,hf,wE,Rp;O=q==null?void 0:(O2=q.contents)==null?void 0:(eT=O2.twoColumnWatchNextResults)==null?void 0:(fS=eT.secondaryResults)==null?void 0:(hf=fS.secondaryResults)==
null?void 0:(wE=hf.results)==null?void 0:(Rp=wE[0])==null?void 0:Rp.richGridRenderer;A.JSC$23539_watchApi.provideRenderingData("RICH_GRID_RENDERER",O)}};
_.qpf.prototype.hasCompanionAds=function(A){var t,f;return(f=A==null?void 0:(t=A.adPlacements)==null?void 0:t.some(function(X){var Q,q,e,G;return(X==null?void 0:(Q=X.adPlacementRenderer)==null?void 0:(q=Q.renderer)==null?void 0:q.actionCompanionAdRenderer)||(X==null?void 0:(e=X.adPlacementRenderer)==null?void 0:(G=e.renderer)==null?void 0:G.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?f:!1};
var n0=function(A){if(!_.M("swaterdoo_ps_wn_handle_ks")){A.swatcherooProvideAllDataOnScheduledJob||QCy(A,3E3);var t=A.JSC$23539_watchApi.getPlayerResponse(),f,X,Q,q,e,G=(f=A.JSC$23539_watchApi.getWatchNextResponse())==null?void 0:(X=f.contents)==null?void 0:(Q=X.twoColumnWatchNextResults)==null?void 0:(q=Q.secondaryResults)==null?void 0:(e=q.secondaryResults)==null?void 0:e.offerModule;t=A.hasCompanionAds(t);var N,z;f=(G==null?void 0:(N=G.tvfilmOfferModuleRenderer)==null?void 0:N.clientShouldSuppressIfCompanionAdDisplayed)||
(G==null?void 0:(z=G.unlimitedOfferModuleRenderer)==null?void 0:z.suppressIfCompanionAds);N=t&&f;A.JSC$23539_watchApi.getRoot().is==="ytd-watch-grid"&&A.JSC$23539_watchApi.provideRenderingData("OFFER_MODULE",N?void 0:G)}},QCy=function(A,t){_.M("swatcheroo_pbs_load_grid")&&(A.provideRichGridJobId&&_.a6.cancelJob(A.provideRichGridJobId),A.provideRichGridJobId=_.NB(_.a6,function(){A.provideRichGridJobId=0;
var f,X,Q,q,e,G,N,z=(f=A.JSC$23539_watchApi.getWatchNextResponse())==null?void 0:(X=f.contents)==null?void 0:(Q=X.twoColumnWatchNextResults)==null?void 0:(q=Q.secondaryResults)==null?void 0:(e=q.secondaryResults)==null?void 0:(G=e.results)==null?void 0:(N=G[0])==null?void 0:N.richGridRenderer;z&&A.JSC$23539_watchApi.provideRenderingData("RICH_GRID_RENDERER",z)},t))},XEH=function(A){var t,f;
_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23539_watchApi.playerApi,2);t=X.yieldResult;f=function(){A.onPlaybackStart()};
t.addEventListener("onPlaybackStartExternal",f);A.addOnDisposeCallback(function(){t.removeEventListener("onPlaybackStartExternal",f)});
_.LO(X)})};
_.qpf.prototype.onPlaybackStart=function(){QCy(this)};_.U_i=function(A){_.DA.call(this);var t=this;this.JSC$23551_watchApi=A;A.playerApi.then(function(f){t.player=f});
this.gestures=new _.ey(this.JSC$23551_watchApi.getRoot(),A.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.V2i(_.$I().getState())&&_.vq(_.$I().getState())<=0)if(_.WO(_.$I().getState())){var f;(f=t.player)==null||f.toggleFullscreen()}else _.kJ(t.JSC$23551_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
JRF(this)};
_.R(_.U_i,_.DA);var JRF=function(A){var t=_.ar(_.$I(),_.WO,function(f){A.onFullscreenChanged(f)});
A.addOnDisposeCallback(t);t=_.ar(_.$I(),_.vq,function(f){A.gestures&&(f>0?A.gestures.detach():A.gestures.attach())});
A.addOnDisposeCallback(t)};
_.U_i.prototype.onFullscreenChanged=function(A){this.gestures&&this.gestures.update(A)};var e$i;e$i=["PLAYLIST"];_.ltH=function(A){_.DA.call(this);var t=this;this.JSC$23554_watchApi=A;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(A.subscribeToActiveChanged(function(f){t.onActiveChanged(f)}));
G$b(this)};
_.R(_.ltH,_.DA);var NF3=function(A){A.pageDisposalDataTypes=Object.values(miF).filter(function(t){return!e$i.includes(t)})},G$b=function(A){if(_.M("swatcheroo_enable_ghost_cards")||_.M("web_watch_clear_data_on_page_dispose"))NF3(A),A.JSC$23554_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.a6.cancelJob(A.clearDataJobId);
A.clearDataJobId=0}),A.runPageDisposeJob=function(){var t=_.Px().resolve(_.HO).getDestinationPageType()==="watch";
A.clearDataJobId=_.NB(_.a6,A.runClearDataJob,t?0:_.cx("web_watch_delay_page_dispose_ms",1E4))},A.runClearDataJob=function(){uCQ(A)},A.runOnYtNavigateAwayFinish=function(){A.clearDataJobId&&(_.a6.cancelJob(A.clearDataJobId),A.clearDataJobId=0,uCQ(A))},document.addEventListener("yt-navigate-finish",A.runOnYtNavigateAwayFinish),A.JSC$23554_watchApi.addPageDisposeJob(A.runPageDisposeJob),A.addOnDisposeCallback(function(){A.JSC$23554_watchApi.removePageDisposeJob(A.runPageDisposeJob);
A.JSC$23554_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",A.runOnYtNavigateAwayFinish)})},uCQ=function(A){A.pageDisposalDataTypes.forEach(function(t){A.JSC$23554_watchApi.provideRenderingData(t,void 0)});
A.clearDataJobId=0};
_.ltH.prototype.onActiveChanged=function(A){A&&((A=document.querySelector("#watch-page-skeleton"))&&_.vf(A),z$Q(this),document.body.removeAttribute("no-y-overflow"),_.Ka("IS_SHELL_LOAD")&&_.nVW())};
var z$Q=function(A){_.l(function(t){if(t.nextAddress==1)return t.yield(A.JSC$23554_watchApi.playerApi,2);_.IJ();_.LO(t)})};var P$f;P$f=_.M("kevlar_watch_while_counterfactual")?0:.25;_.cRH=function(A){_.DA.call(this);this.JSC$23557_watchApi=A;this.JSC$23557_watchWhileEnabled=_.M("kevlar_watch_while_v2");this.pipEnabled=_.M("web_enable_pip_on_miniplayer");TFW(this);iZi(this);OZb(this)};
_.R(_.cRH,_.DA);var TFW=function(A){A.JSC$23557_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){BFb(A)});
A.addOnDisposeCallback(function(){A.JSC$23557_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},iZi=function(A){var t,f;
_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23557_watchApi.playerApi,2);t=X.yieldResult;f=function(){BFb(A)};
t.addEventListener("onCollapseMiniplayer",f);A.addOnDisposeCallback(function(){t.removeEventListener("onCollapseMiniplayer",f)});
_.LO(X)})},OZb=function(A){var t=A.JSC$23557_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&t&&A.JSC$23557_watchWhileEnabled&&(A.playerIntersectionObserver=new IntersectionObserver(function(f){A.handleIntersect(f)},{threshold:[P$f]}),A.playerIntersectionObserver.observe(t),A.addOnDisposeCallback(function(){var f;
(f=A.playerIntersectionObserver)==null||f.disconnect()}))},BFb=function(A){var t,f,X;
_.l(function(Q){if(Q.nextAddress==1){t=_.Px().resolve(_.HO);f=t.data;X=_.Ls(f.response,!1,f.playerResponse);_.$z().miniplayerButtonActivation=!0;if(A.pipEnabled)return _.$z().watchPipActivation=!0,Q.jumpTo(2);_.Px().resolve(_.DS).collapse();return Q.yield(_.$z().navigationFinishPromise,2)}if(Q.nextAddress!=4)return _.$z().currentEndpoint=X.watchEndpoint||null,Q.yield(_.Px().resolve(_.DS).activate(A.JSC$23557_watchApi.getElement("PLAYER"),X,f),4);_.$z().userActivation=!0;_.LO(Q)})};
_.cRH.prototype.handleIntersect=function(A){MRb(this,A[A.length-1])};
var MRb=function(A,t){A.watchWhileJobId&&_.a6.cancelJob(A.watchWhileJobId);A.watchWhileJobId=_.a6.addLowPriorityJob(function(){var f,X;return _.l(function(Q){if(Q.nextAddress==1)return A.watchWhileJobId=void 0,f=_.Px().resolve(_.DS),t.intersectionRatio>P$f?f.isMiniplayerActive()?Q.yield(f.deactivate(),0):Q.jumpTo(0):(X=!f.isMiniplayerActive())?Q.yield(C$i(A),5):Q.jumpTo(4);Q.nextAddress!=4&&(X=Q.yieldResult);if(!X)return Q.jumpTo(0);_.$z().watchWhileActivation=!0;return Q.yield(h$Q(A),0)})},100)},
C$i=function(A){return _.l(function(t){return t.nextAddress==1?_.M("kevlar_watch_while_paused")?t.return(!0):t.yield(A.isPlayerPlaying(),2):t.return(t.yieldResult)})};
_.cRH.prototype.isPlayerPlaying=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return f.yield(A.JSC$23557_watchApi.playerApi,2);t=f.yieldResult;return f.return(t.getPlayerStateObject().isPlaying)})};
var h$Q=function(A){var t,f;return _.l(function(X){t=_.Px().resolve(_.HO).data;f=_.Ls(t.response,!1,t.playerResponse);_.$z().currentEndpoint=f.watchEndpoint||null;return X.yield(_.Px().resolve(_.DS).activate(A.JSC$23557_watchApi.getElement("PLAYER"),f,t),0)})};_.bZi=function(A){_.DA.call(this);this.JSC$23561_watchApi=A;R$f(this);m_r(this)};
_.R(_.bZi,_.DA);var m_r=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23561_watchApi.playerApi,2);t=X.yieldResult;f=function(Q){var q;Q.sessionData&&Q.sessionData.itct&&(q=Q.sessionData.itct);var e=Q.watchEndpoint;if(e&&Q.sessionData&&Q.sessionData.autonav)e=_.jI5(e,q);else{var G;e=_.g0(Q.videoId,(G=Q.listId)!=null?G:void 0,q)}q={endpoint:e};Q.sessionData&&(q.tempData=Q.sessionData);A.JSC$23561_watchApi.dispatchEvent("yt-navigate",q)};
t.addEventListener("onPlayVideo",f);A.addOnDisposeCallback(function(){t.removeEventListener("onPlayVideo",f)});
_.LO(X)})},R$f=function(A){var t=function(f){A.onYtNavigate(f)};
A.JSC$23561_watchApi.getRoot().addEventListener("yt-navigate",t);A.addOnDisposeCallback(function(){A.JSC$23561_watchApi.getRoot().removeEventListener("yt-navigate",t)})};
_.bZi.prototype.onYtNavigate=function(A){var t=this,f,X,Q,q,e,G,N,z,T;return _.l(function(O){if(O.nextAddress==1){if(!((f=A.detail)==null?0:(X=f.endpoint)==null?0:X.watchEndpoint))return O.return();Q=A.detail.endpoint.watchEndpoint;q=t.JSC$23561_watchApi.getWatchNextResponse();G=_.C((e=q)==null?void 0:e.currentVideoEndpoint,_.ZT);if(!G)return O.return();if(Q.videoId!==G.videoId||Q.playlistId&&Q.playlistId!==G.playlistId||typeof Q.startTimeSeconds!=="number")return O.jumpTo(0);A.stopPropagation();
(N=_.M("kevlar_watch_while_v2")&&!_.M("kevlar_watch_while_counterfactual"))&&_.Px().resolve(_.DS).isMiniplayerActive()||t.JSC$23561_watchApi.scrollWatchTo(0,!0);return O.yield(t.JSC$23561_watchApi.playerApi,3)}z=O.yieldResult;T=Q.startTimeSeconds;z.seekTo(T,void 0,void 0,void 0,84);z.wakeUpControls();T<z.getDuration()&&z.playVideo();_.LO(O)})};_.yRF=function(A){_.DA.call(this);var t=this;this.JSC$23564_watchApi=A;var f=this.JSC$23564_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WvW(t)});
this.addOnDisposeCallback(function(){t.JSC$23564_watchApi.unsubscribeByKey(f)});
WvW(this);_.M("enable_ai_companion")&&(A=this.JSC$23564_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.I2A(_.Px().resolve(_.fm),A,"WATCH")};
_.R(_.yRF,_.DA);var WvW=function(A){var t=A.JSC$23564_watchApi.getWatchNextResponse();if(t){var f,X=[].concat(_.YV((f=t==null?void 0:t.engagementPanels)!=null?f:[]));_.M("web_watch_comments_visible_by_default")&&(f=X.find(function(Q){var q;return((q=Q.engagementPanelSectionListRenderer)==null?void 0:q.targetId)==="engagement-panel-comments-section"}),f==null?0:f.engagementPanelSectionListRenderer)&&(f.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
X.unshift.apply(X,_.YV(vIH(t)));A.JSC$23564_watchApi.provideRenderingData("ENGAGEMENT_PANELS",X)}},Lvj=function(A){var t,f,X,Q=(t=A.engagementPanels)==null?void 0:(f=t.find(function(B){var h;
return((h=B.engagementPanelSectionListRenderer)==null?void 0:h.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(X=f.engagementPanelSectionListRenderer.content)==null?void 0:X.structuredDescriptionContentRenderer,q;
if(_.C(Q==null?void 0:(q=Q.items)==null?void 0:q.find(function(B){return!!_.C(B,ntl)}),ntl))return!0;
var e,G,N,z;if(A=(((e=A.contents)==null?void 0:(G=e.twoColumnWatchNextResults)==null?void 0:(N=G.results)==null?void 0:(z=N.results)==null?void 0:z.contents)||[]).find(function(B){return B.videoPrimaryInfoRenderer})){var T,O,c;
return(((T=A.videoPrimaryInfoRenderer)==null?void 0:(O=T.videoActions)==null?void 0:(c=O.menuRenderer)==null?void 0:c.flexibleItems)||[]).some(function(B){B=_.C(B,_.G4l);if(!B)return!1;var h,W;B=(h=B.topLevelButton)==null?void 0:(W=h.buttonViewModel)==null?void 0:W.onTap;if(!B)return!1;h=_.bP(B);if(!h)return!1;var L;return((L=_.C(h,_.ys))==null?void 0:L.panelIdentifier)==="PAyouchat"})}return!1},vIH=function(A){var t=[];
if(!_.M("web_watch_inject_placeholder_fantasy_panel_killswitch")){var f,X,Q,q=(f=A.engagementPanels)==null?void 0:(X=f.find(function(G){var N;return((N=G.engagementPanelSectionListRenderer)==null?void 0:N.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Q=X.engagementPanelSectionListRenderer.content)==null?void 0:Q.structuredDescriptionContentRenderer,e;
_.C(q==null?void 0:(e=q.items)==null?void 0:e.find(function(G){return!!_.C(G,Gmb)}),Gmb)&&(f=_.R4l("PAsports_fantasy"),f.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t.push(f))}Lvj(A)&&(A=_.R4l("PAyouchat"),A.engagementPanelSectionListRenderer.targetId="PAyouchat",A.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t.push(A));
return t};_.EIi=function(A){_.DA.call(this);this.JSC$23567_watchApi=A;pEf(this)};
_.R(_.EIi,_.DA);var pEf=function(A){A.JSC$23567_watchApi.registerActionHandler("yt-loop-command",function(t){nI3(A,t)});
A.JSC$23567_watchApi.registerActionHandler("yt-repeat-chapter-command",function(t){D_i(A,t)});
A.addOnDisposeCallback(function(){A.JSC$23567_watchApi.unregisterActionHandler("yt-loop-command");A.JSC$23567_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},nI3=function(A,t){var f;
_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23567_watchApi.playerApi,2);f=X.yieldResult;_.C(t,NbH).loop?(f.setLoopRange({startTimeMs:Number(_.C(t,NbH).startTimeMs),endTimeMs:Number(_.C(t,NbH).endTimeMs),postId:_.C(t,NbH).postId,type:"clips"}),f.playVideo()):f.setLoopRange(null);_.LO(X)})},D_i=function(A,t){var f,X;
_.l(function(Q){if(Q.nextAddress==1)return Q.yield(A.JSC$23567_watchApi.playerApi,2);f=Q.yieldResult;X=_.C(t,iUb).repeat;X==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(f.setLoopRange({startTimeMs:Number(_.C(t,iUb).startTimeMs),endTimeMs:Number(_.C(t,iUb).endTimeMs),type:"repeatChapter"}),f.playVideo()):X==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&f.setLoopRange(null);_.LO(Q)})};_.Ity=function(A){_.DA.call(this);this.JSC$23572_watchApi=A;Fvi(this)};
_.R(_.Ity,_.DA);var Fvi=function(A){A.JSC$23572_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(t){x_f(A,t)});
A.addOnDisposeCallback(function(){A.JSC$23572_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},x_f=function(A,t){var f,X,Q,q,e,G,N,z,T,O,c;
_.l(function(B){if(B.nextAddress==1)return B.yield(A.JSC$23572_watchApi.playerApi,2);f=B.yieldResult;if(q=(Q=(X=_.C(t,OUx))==null?void 0:X.highlightedMenuItemKey)!=null?Q:"")(G=(e=f).highlightSettingsMenuItem)==null||G.call(e,q);if(T=(z=(N=_.C(t,OUx))==null?void 0:N.openMenuItemKey)!=null?z:"")(c=(O=f).openSettingsMenuItem)==null||c.call(O,T);_.LO(B)})};var jCx=_.QQ("/youtube/app/watch/player_state","playerStateEntity");_.F2=function(A){_.DA.call(this);this.JSC$23575_watchApi=A;Ypi(this)};
_.R(_.F2,_.DA);var VRb=function(A){switch(A){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"}},Ypi=function(A){var t,f,X,Q,q;
_.l(function(e){if(e.nextAddress==1)return e.yield(A.JSC$23575_watchApi.playerApi,2);t=e.yieldResult;if(A.isDisposed())return e.return();f=function(G){A.onPlayerStateChange(G)};
X=function(G){A.onAdStateChange(G)};
Q=function(){A.onAdSkip()};
q=function(G){A.onVideoDataChange(G)};
t.addEventListener("onStateChange",f);t.addEventListener("onAdStateChange",X);t.addEventListener("onAdSkip",Q);t.addEventListener("onVideoDataChange",q);A.addOnDisposeCallback(function(){t.removeEventListener("onStateChange",f);t.removeEventListener("onAdStateChange",X);t.removeEventListener("onAdSkip",Q);t.removeEventListener("onVideoDataChange",q)});
_.LO(e)})},ZZW=function(A){var t=_.ZK(),f=t.dispatch;
a:switch(A.adsState){case -1:case 0:var X="ADS_STATE_NONE";break a;case 1:case 2:case 3:X="ADS_STATE_PLAYING";break a;default:X="ADS_STATE_UNKNOWN"}f.call(t,_.Ta("playerStateEntity",jCx,{key:jCx,playerState:VRb(A.playerState),adsState:X,videoId:A.videoId}))};
_.F2.prototype.onPlayerStateChange=function(A){var t=this,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(t.JSC$23575_watchApi.playerApi,2);f=X.yieldResult;if(t.isDisposed())return X.return();t.playerState=A;t.videoId=f.getVideoData().video_id;ZZW(t);_.LO(X)})};
_.F2.prototype.onAdStateChange=function(A){this.adsState=A;ZZW(this)};
_.F2.prototype.onAdSkip=function(){this.adsState=0;ZZW(this)};
_.F2.prototype.onVideoDataChange=function(A){A.type==="newdata"&&(this.adsState=-1,ZZW(this))};_.d_j=function(A){_.DA.call(this);var t=this;this.JSC$23579_watchApi=A;this.enableExternalPlaylistPanelInPlayer=_.M("delhi_web_player_use_external_playlist_panel");_.Px().resolve(_.zT).setPlayer(this.JSC$23579_watchApi.getElement("PLAYER"));A=this.JSC$23579_watchApi.subscribeToActiveChanged(function(f){t.onActiveChanged(f)});
this.addOnDisposeCallback(A);oIi(this)};
_.R(_.d_j,_.DA);var oIi=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return A.enableExternalPlaylistPanelInPlayer?X.yield(A.JSC$23579_watchApi.playerApi,2):X.return();t=X.yieldResult;f=function(){if(A.playlistPanelElement)A.playlistPanelElement.onToggleExpanded()};
t.addEventListener("onToggleExternalPlaylistPanel",f);A.addOnDisposeCallback(function(){t.removeEventListener("onToggleExternalPlaylistPanel",f)});
_.LO(X)})};
_.d_j.prototype.onActiveChanged=function(A){var t=this,f=_.Px().resolve(_.zT),X=function(){Spb(t)};
A?(this.playlistPanelElement=this.JSC$23579_watchApi.getElement("PLAYLIST_PANEL"))?(f.setPlaylistComponent(this.playlistPanelElement),f.addEventListener("yt-playlist-data-updated",X),this.addOnDisposeCallback(function(){f.removeEventListener("yt-playlist-data-updated",X)}),Spb(this)):_.te(Error("gp")):(f.removeEventListener("yt-playlist-data-updated",X),f.cancelVideoSkip())};
var Spb=function(A){var t=_.Px().resolve(_.zT);A.JSC$23579_watchApi.provideRenderingData("PLAYLIST",t.getPlaylistData())};_.I3=function(A){_.DA.call(this);var t=this;this.JSC$23582_watchApi=A;this.onPageScroll=function(){t.scrollThrottle.fire();t.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.qI(this.onThrottledScroll,200,this);_.hV(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.qI(this.onMastheadThrottledScroll,50,this);_.hV(this,this.mastheadScrollThrottle);this.animation=new _.Ce(function(f){t.JSC$23582_watchApi.getRoot().setScrollTop(f)});
A=_.ar(_.$I(),_.WO,function(){t.onFullscreenChanged()});
this.addOnDisposeCallback(A);$_j(this);HZx(this);this.onThrottledScroll()};
_.R(_.I3,_.DA);
_.I3.prototype.onFullscreenChanged=function(){var A=this,t=this.JSC$23582_watchApi.getRoot();!this.pageScrollElement&&t.pageScrollElement?(this.pageScrollElement=t.pageScrollElement,t.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){A.pageScrollElement&&A.pageScrollElement.removeEventListener("scroll",A.onPageScroll)})):this.pageScrollElement&&!t.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var $_j=function(A){window.addEventListener("scroll",A.onPageScroll);A.addOnDisposeCallback(function(){window.removeEventListener("scroll",A.onPageScroll)})},HZx=function(A){A.JSC$23582_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(t){a:{var f;
if(f=A.JSC$23582_watchApi.getRoot().contains(t)&&!A.animation.isAnimating()){f=t.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var X,Q,q=(t==null?void 0:(X=t.parentElement)==null?void 0:(Q=X.parentElement)==null?void 0:Q.id)==="fixed-secondary";f=!(f&&q)}if(f){if(_.M("kevlar_watch_scroll_manager_absolute_offset_killswitch"))X=t.offsetTop;else for(X=0,Q=t;Q!==null;)X+=Q.offsetTop,X-=Q.scrollTop,Q=Q.offsetParent;Q=X;X=Q-24;t=Q+t.offsetHeight+24;Q=A.JSC$23582_watchApi.getRoot().getPageScrollingElement();
f=A.JSC$23582_watchApi.getRoot().getScrollTop();q=f+Q.clientHeight-56;if(X<f+56)t=X-56;else if(t>q)t-=Q.clientHeight;else break a;A.scrollWatchTo(Math.max(0,t),!0)}}});
A.addOnDisposeCallback(function(){A.JSC$23582_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.I3.prototype.onThrottledScroll=function(){var A=_.$I(),t=A.dispatch,f=this.JSC$23582_watchApi.getRoot().getScrollTop();t.call(A,_.r0({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:f}}))};
_.I3.prototype.onMastheadThrottledScroll=function(){this.JSC$23582_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23582_watchApi.getRoot().getScrollTop())};
_.I3.prototype.scrollWatchTo=function(A,t){(t===void 0?0:t)?this.animation.start(this.JSC$23582_watchApi.getRoot().getScrollTop(),Math.max(0,A),500):this.JSC$23582_watchApi.getRoot().setScrollTop(A)};_.gIl=function(A){_.DA.call(this);var t=this;this.JSC$23585_watchApi=A;var f=this.JSC$23585_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){atb(t)}),X=this.JSC$23585_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Kvi(t)});
this.addOnDisposeCallback(function(){t.JSC$23585_watchApi.unsubscribeByKey(f);t.JSC$23585_watchApi.unsubscribeByKey(X)});
atb(this);Kvi(this)};
_.R(_.gIl,_.DA);
var atb=function(A){var t,f,X,Q=(X=(t=A.JSC$23585_watchApi.getPlayerResponse())==null?void 0:(f=t.videoDetails)==null?void 0:f.title)!=null?X:"";A.JSC$23585_watchApi.dispatchEvent("yt-update-title",Q)},Kvi=function(A){var t,f,X,Q,q,e,G,N=(G=((e=(t=A.JSC$23585_watchApi.getWatchNextResponse())==null?void 0:(f=t.contents)==null?void 0:(X=f.twoColumnWatchNextResults)==null?void 0:(Q=X.results)==null?void 0:(q=Q.results)==null?void 0:q.contents)!=null?e:[]).find(function(z){return!!z.videoPrimaryInfoRenderer}))==null?
void 0:G.videoPrimaryInfoRenderer;
(t=_.dF(N==null?void 0:N.title))&&A.JSC$23585_watchApi.dispatchEvent("yt-update-title",t)};_.sCx=function(A){_.DA.call(this);this.JSC$23588_watchApi=A;wEj(this)};
_.R(_.sCx,_.DA);var wEj=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23588_watchApi.playerApi,2);t=X.yieldResult;f=function(){A.onYpcContentRequest()};
t.addEventListener("onYpcContentRequest",f);A.addOnDisposeCallback(function(){t.removeEventListener("onYpcContentRequest",f)});
_.LO(X)})};
_.sCx.prototype.onYpcContentRequest=function(){var A,t,f,X,Q,q=(A=this.JSC$23588_watchApi.getWatchNextResponse())==null?void 0:(t=A.contents)==null?void 0:(f=t.twoColumnWatchNextResults)==null?void 0:(X=f.secondaryResults)==null?void 0:(Q=X.secondaryResults)==null?void 0:Q.offerModule,e,G,N,z;A=(z=(N=(G=(e=q==null?void 0:q.episodeOfferModuleRenderer)!=null?e:q==null?void 0:q.movieOfferModuleRenderer)!=null?G:q==null?void 0:q.unlimitedOfferModuleRenderer)!=null?N:q==null?void 0:q.liveOfferModuleRenderer)!=
null?z:q==null?void 0:q.tvfilmOfferModuleRenderer;var T,O,c;q=(c=q==null?void 0:(T=q.tvfilmOfferModuleRenderer)==null?void 0:(O=T.actionButtons)==null?void 0:O.length)!=null?c:0;O=Math.max(q-1,0);var B,h,W;T=(W=A==null?void 0:(B=A.offerButton)==null?void 0:B.buttonRenderer)!=null?W:A==null?void 0:(h=A.actionButtons)==null?void 0:h[O].buttonRenderer;var L,E;(B=(E=(L=T==null?void 0:T.navigationEndpoint)!=null?L:T==null?void 0:T.serviceEndpoint)!=null?E:T==null?void 0:T.command)&&_.XH.instance.resolveCommand(B)};
}catch(e){_._DumpException(e)}
try{
var hFh,BRd,ONj;_.cYd=function(){var A=_.VG.clone(iNy),t;return(new _.yy(function(f,X){A.onSuccess=function(Q){_.Jl0(Q)?f(new ONj(Q)):X(new _.UM("Request failed, status="+_.he(Q),"net.badstatus",Q))};
A.onError=function(Q){X(new _.UM("Unknown request error","net.unknown",Q))};
A.onTimeout=function(Q){X(new _.UM("Request timed out","net.timeout",Q))};
t=_.y$("//googleads.g.doubleclick.net/pagead/id",A)})).thenCatch(function(f){if(f instanceof _.Ej){var X;
(X=t)==null||X.abort()}return _.OX(f)})};
_.Mv3=function(A){a:{var t="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(t="EMBEDDED_PLAYER_MODE_PFL");var f=A.raw_embedded_player_response;if(!f&&(A=A.embedded_player_response))try{f=JSON.parse(A)}catch(Q){break a}if(f)b:for(var X in BRd)if(BRd[X]==f.embeddedPlayerMode){t=BRd[X];break b}}return t==="EMBEDDED_PLAYER_MODE_PFL"};
_.Co_=function(){if(_.M("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.Smx())return Error("xf");var A=_.ah("PLAYER_VARS",{});if(_.VG.get(A,"privembed",!1)=="1")return Error("yf");if(_.Mv3(A))return Error("zf")};
hFh=function(A){switch(A){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:_.ap(A,"unknown result type")}};
_.RF3=function(A,t,f){t=_.gPu[t];f={detected:A===0,source:t.ehl,detectionResult:hFh(A),contentCpn:f};_.SY("biscottiBasedDetection",f);_.AcT.increment(t.ehl,A);t.btq!==void 0&&_.H5("CATSTAT",_.aix(A,t))};
_.eg=function(A,t){var f={};f.key=A;f.value=t;return _.ij0().then(function(X){return new Promise(function(Q,q){try{var e=X.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(f);e.onsuccess=function(){Q()};
e.onerror=function(){q()}}catch(G){q(G)}})})};
_.bNj=function(){var A=_.cx("user_engagement_experiments_rate_limit_ms"),t=mLm.get("last-user-engagement-exp-trigger-timestamp");return!t||(0,_.OJ)()>=t+A?(mLm.set("last-user-engagement-exp-trigger-timestamp",(0,_.OJ)()),!0):!1};
_.Gp=function(A,t,f,X,Q){t=t===void 0?null:t;f=f===void 0?null:f;X=X===void 0?null:X;Q=Q===void 0?null:Q;A={youThereEventType:A};f&&(A.lactThresholdMs=f.lactThresholdMs,A.mediaPosSec=f.promptDelaySec,A.lactServerRequestMs=f.lactServerRequestMs,A.triggerReason=f.triggerReason);Q!=null&&(A.renderingMediaPosSec=Math.round(Q));t||(t=_.Ws());t&&(A.clientScreenNonce=t);X&&(A.clientPlaybackNonce=X);_.SY("youThere",A)};
BRd={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"};ONj=function(A){this.xhr=A};
_.UM=function(A,t,f){_.Ab.call(this,A+", errorCode="+t);this.errorCode=t;this.xhr=f;this.name="PromiseAjaxError"};
_.R(_.UM,_.Ab);var iNy={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var mLm=new _.kt("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.TRw=function(A){return _.r0({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:A})};
}catch(e){_._DumpException(e)}
try{
var dJ,WtW,vOl,Lti,piu,EOx,Dvr,dvy,SFF,$vF,nOj,yLF,jOr,xv3,Kti;_.bpj=function(){var A=window.location.hash;A.charAt(0)==="#"&&(A=A.charAt(1)==="!"?A.substring(2):A.substring(1));return _.Q$(A)};
dJ=function(A,t,f){var X;return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(t(),2);X=Q.yieldResult;f(X,A);_.LO(Q)})};
WtW=function(){return _.l(function(A){return A.nextAddress==1?A.yield((_.Co_()!==void 0?_.OX(Error("Af")):_.cYd()).then(function(){return 1},function(t){if(t.message==="Biscotti id is disabled")return 3;
_.K4("Failed fetching bid");return 0}),2):A.return(A.yieldResult)})};
vOl=function(){var A=_.gF("cHd6bmVzM2Q2NTNweXQtaGF2ZW4tZW1iZWQtcGxheWVyIw=="),t=_.gF("YTNkcjZvZWp1dmpjaWZyYW1lIw==");return document.querySelector(t+yLF+A)?0:1};
Lti=function(){return _.DVl(_.Cy)};
piu=function(){return _.F6b()===0?0:_.Iiz()};
EOx=function(){return _.Zmb(_.tKx([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Dvr=function(){return _.bmb(nOj)};
_.Ftx=function(A){_.l(function(t){switch(t.nextAddress){case 1:return t.yield(dJ("b.f_",WtW,A),2);case 2:return t.yield(dJ("j.s_",_.Rkp,A),3);case 3:return t.yield(dJ("r.s_",_.MK5,A),4);case 4:return t.yield(dJ("e.h_",Dvr,A),5);case 5:if(!_.M("ab_det_sc_inj")){t.jumpTo(6);break}return t.yield(dJ("s.i_",_.EP0,A),6);case 6:if(_.M("ab_deg_unex_thr")){t.jumpTo(8);break}return t.yield(dJ("a.o_",_.L6x,A),8);case 8:if(_.M("ks_get_o_pp")){t.jumpTo(10);break}return t.yield(dJ("g.o_",_.vP5,A),10);case 10:if(_.M("ks_det_gpbl")){t.jumpTo(12);
break}return t.yield(dJ("p.i_",_.yks,A),12);case 12:return t.yield(dJ("f.i_",_.Gdp,A),14);case 14:return t.yield(dJ("a.b_",_.ck5,A),15);case 15:return t.yield(dJ("p.m_",_.uvx,A),16);case 16:if(!_.M("ab_det_el_h_v2")){t.jumpTo(17);break}return t.yield(dJ("n.h_",EOx,A),17);case 17:return t.yield(dJ("o.p_",Lti,A),19);case 19:return t.yield(dJ("e.i_",vOl,A),20);case 20:if(_.M("ab_det_apm"))return t.yield(dJ("o.a_",piu,A),0);t.jumpTo(0)}})};
_.I2u=function(A,t){A={videoId:A};t&&(A.playlistId=t);return A};
_.YF3=function(){if(_.Smx()){var A=_.ah("PLAYER_VARS",{});if(_.VG.get(A,"privembed",!1)!="1"&&!_.Mv3(A)){var t=function(){xv3=!0;"google_ad_status"in window?_.H5("DCLKSTAT",1):_.H5("DCLKSTAT",2)};
try{_.DT(_.fHQ,t)}catch(f){}jOr.push(_.a6.addLowPriorityJob(function(){if(!(xv3||"google_ad_status"in window)){try{_.Iex(_.fHQ.toString(),t)}catch(f){}xv3=!0;_.H5("DCLKSTAT",3)}},5E3))}}};
_.VIb=function(A,t,f){f=f===void 0?!1:f;var X=Math.max(A.width,_.FZF);if(_.M("kevlar_watch_feed_big_thumbs")&&A.width>=1550-_.gl()&&A.height>=800)X-=_.ZUW;else if(A.width>=_.FT){var Q=_.IsW+_.xqr+_.D$;_.M("kevlar_watch_feed_big_thumbs")&&(Q=_.VCl);X-=Q}else X-=_.IsW;X=Math.min(X,_.j6i);Q=240;f&&(Q=380);t<.5624||(!_.M("kevlar_watch_flexy_disable_small_window_sizing")&&(A.height<630&&A.width>=657||A.height>=630&&A.width>=_.FT&&A.width<1327)?Q=360:!_.M("kevlar_watch_flexy_disable_large_window_sizing")&&
A.height>=630&&A.width>=1327&&(Q=480));var q=Math.min(X*t,A.height-(56+_.Dqf+_.YJH));q=Math.max(q,Q);t<1?X=q/t:A.width>=_.FT&&(X=_.VIb(A,.5625,f).width);return new _.Ln(Math.round(X),Math.round(q))};
_.Zpb=function(A){var t=0;A.indexOf("h")!=-1&&(A=A.split("h"),t=A[0]*60*60,A=A[1]);A.indexOf("m")!=-1&&(A=A.split("m"),t=A[0]*60+t,A=A[1]);A.indexOf("s")!=-1?(A=A.split("s"),t=A[0]*1+t):t=A*1+t;return t};
_.oOi=function(){_.cx("service_worker_push_logged_out_prompt_watches")!=-1&&_.s4("WatchCount").then(function(A){A>=100||_.eg("WatchCount",A+1)})};
dvy=function(A){var t=A.externalVideoId||"";return t?A.isShortsEligible?"https://www.youtube.com/shorts/"+t:"https://www.youtube.com/watch?v="+t:""};
SFF=function(A){var t=[];A.viewCount&&t.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:A.viewCount});A.likeCount&&t.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:A.likeCount});return t};
$vF=function(A){var t,f,X={"@context":"https://schema.org","@type":"VideoObject",description:_.dF(A.description),duration:"PT"+(A.lengthSeconds||"0")+"S",embedUrl:A.embed?A.embed.iframeUrl:"",name:_.dF(A.title),thumbnailUrl:((t=A.thumbnail)==null?void 0:(f=t.thumbnails)==null?void 0:f.map(function(T){return T&&T.url||""}))||[],
uploadDate:A.publishDate};_.M("mweb_video_schema_id_killswitch")||(X["@id"]=dvy(A));t=SFF(A);t.length&&(X.interactionStatistic=t);A.category&&(X.genre=A.category);A.ownerChannelName&&(X.author=A.ownerChannelName);A.liveBroadcastDetails&&(X.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:A.liveBroadcastDetails.startTimestamp,endDate:A.liveBroadcastDetails.endTimestamp}]);if(A.learningResource){A=A.learningResource;X["@type"]=["VideoObject","LearningResource"];var Q;if((Q=A.learningResourceType)==
null?0:Q.length)X.learningResourceType=A.learningResourceType[0];var q;if((q=A.educationalAlignment)==null?0:q.length)X.educationalAlignment={"@type":"AlignmentObject",targetName:A.educationalAlignment[0]};var e;if((e=A.educationalLevel)==null?0:e.length){Q=A.educationalLevel[0];var G;if((G=A.educationalLevelCountry)==null?0:G.length)Q+=" ("+A.educationalLevelCountry+")";X.educationalLevel=Q}var N,z;if(((N=A.learningResourceType)==null?0:N.length)&&A.learningResourceType[0]==="Problem walkthrough"&&
((z=A.problemDescriptions)==null?0:z.length))for(X.hasPart=[],G=_.U(A.problemDescriptions),N=G.next();!N.done;N=G.next())Q=N.value,N=Q.problemDescriptionText,z=Q.startOffset,Q=Q.url,N&&z!==void 0&&Q&&X.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:N,text:N,startOffset:z,url:Q})}return X};
_.Hpr=function(A){return _.r0({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:A}})};
nOj=[[["amc3czNtNzV4cGF2cHJpbWFyeSM=",null,null],[null,["OXhvanh1aHA5M3Z4eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","cGpnb2xtajhmcHV6c3R5bGUtc2NvcGUj"],null],["bGFtaWxkOTYwZnF2bWFzdGhlYWQtYWQj",["dGd3MWR4Mjkwd28xeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM="],null],[null,["I3M0dnI0NHllMXg3eXRkLXJpY2gtZ3JpZC1yZW5kZXJlcg==","aHQwaTEyNnhkaDc0c3R5bGUtc2NvcGUj"],null],[null,["djg0NzZpaXRxb2MweXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","dDM3bXBwcDU1bXY4c3R5bGUtc2NvcGUj"],null],[null,["I2RrN2NpNzhyajh5eXRkLWFkLXNsb3QtcmVuZGVyZXI="],
null]],[["ZDN2M3VjZmZzY2V2cGxheWVyLWFkcyM=",null,null]],[[null,null,"dmtpcDE3NDJtYnl0eXRsci1iYW5uZXItY3RhLXJlbmRlcmVyIw=="]]];yLF="#";jOr=[];xv3=!1;_.a2l=["engagement-panel-ads"];Kti=new _.UA("updateSentimentBarStateCommand");_.gOf=new _.UA("showSurveyCommand");_.Sp=new _.UA("changeMarkersVisibilityCommand");var sOj,kDy,fKy,tvr,AYi,$T;_.wil=function(A,t){this.playerProvider_=A;this.actionSenderElement_=t;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.wil.prototype.reset=function(){sOj(this);this.isUserPredictedAbsent_=!1};
sOj=function(A,t){!A.youThereData_||A.showWarningJob_||t!==void 0&&t||(_.Gp("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Ws(),A.youThereData_,A.clientPlaybackNonce_),_.$B());_.a6.cancelJob(A.showWarningJob_);A.showWarningJob_=0;_.a6.cancelJob(A.showBlockingWarningJob_);A.showBlockingWarningJob_=0;_.a6.cancelJob(A.pausePlaybackJob_);A.pausePlaybackJob_=0;A.youThereData_=null;A.clientPlaybackNonce_=void 0;A.inYouThereFlow_=!1};
_.rLi=function(A,t){var f,X,Q;_.l(function(q){if(q.nextAddress==1)return A.reset(),q.yield(A.playerProvider_().getPlayerPromise(),2);f=q.yieldResult;A.clientPlaybackNonce_=f.getVideoData().cpn;A.youThereData_=t.configData.youThereData;if(!A.youThereData_)return q.return();if(A.youThereData_.triggerReason&&A.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.bNj())return _.Gp("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Ws(),A.youThereData_,A.clientPlaybackNonce_),q.return();X=A.youThereData_.promptDelaySec;
Q=f.getCurrentTime();A.showWarningJob_=_.a6.addLowPriorityJob(function(){return _.l(function(e){A.showWarningJob_=0;return e.yield(kDy(A),0)})},Math.max(X-Q,0)*1E3);
_.LO(q)})};
kDy=function(A){var t,f,X,Q,q,e;return _.l(function(G){if(G.nextAddress==1)return G.yield(A.playerProvider_().getPlayerPromise(),2);if(G.nextAddress!=3)return t=G.yieldResult,f=t.getCurrentTime(),G.yield(AYi(A),3);X=G.yieldResult;if(!X||!A.youThereData_)return G.return();if(_.M("check_user_lact_at_prompt_shown_time_on_web")&&(Q=parseInt(A.youThereData_.lactThresholdMs,10),_.iX()<Q))return _.Gp("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Ws(),A.youThereData_,A.clientPlaybackNonce_),G.return();if(A.youThereData_.playbackPauseDelayMs<=
0)return tvr(A),G.return();!_.M("external_fullscreen")&&(q=_.aq())&&(A.ignoreFullscreenExitUserActivity_=!0,_.a6.addLowPriorityJob(function(){A.ignoreFullscreenExitUserActivity_=!1},2E3),_.KG(q));
A.youThereData_.showToastWarningPrompt&&($T(A,A.youThereData_.showWarningActions),A.inYouThereFlow_=!0,_.Gp("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Ws(),A.youThereData_,A.clientPlaybackNonce_,f),_.Gp("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Ws(),A.youThereData_,A.clientPlaybackNonce_,f));e=0;A.youThereData_.blockingPromptDelayMs&&(e=A.youThereData_.blockingPromptDelayMs);A.showBlockingWarningJob_=_.a6.addLowPriorityJob(function(){return _.l(function(N){A.showBlockingWarningJob_=0;return N.yield(fKy(A),
0)})},e);
_.LO(G)})};
fKy=function(A){var t,f,X;return _.l(function(Q){if(Q.nextAddress==1)return Q.yield(AYi(A),2);t=Q.yieldResult;if(!A.youThereData_)return Q.return();t&&(A.youThereData_.showBlockingWarningAction&&(_.Gp("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Ws(),A.youThereData_,A.clientPlaybackNonce_),(f=_.C(A.youThereData_.showBlockingWarningAction,_.Xd))?$T(A,f.commands):$T(A,[A.youThereData_.showBlockingWarningAction]),A.inYouThereFlow_=!0),X=A.youThereData_.playbackPauseDelayMs,A.pausePlaybackJob_=
_.a6.addLowPriorityJob(function(){return _.l(function(q){A.pausePlaybackJob_=0;return q.yield(tvr(A),0)})},X));
_.LO(Q)})};
tvr=function(A){var t;return _.l(function(f){if(f.nextAddress==1)return f.yield(AYi(A),2);t=f.yieldResult;if(!A.youThereData_)return f.return();t&&(_.Gp("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Ws(),A.youThereData_,A.clientPlaybackNonce_),$T(A,A.youThereData_.showPausedActions),A.inYouThereFlow_=!0);_.LO(f)})};
_.wil.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var A=_.C(this.youThereData_.userActiveDuringFlowAction,_.Xd);A?$T(this,A.commands):$T(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Gp("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Ws(),this.youThereData_,this.clientPlaybackNonce_),_.$B());sOj(this,!0)}_.XUQ(this,!1)};
_.Qgy=function(A){_.Gp("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Ws(),A.youThereData_,A.clientPlaybackNonce_)};
AYi=function(A){var t,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(A.playerProvider_().getPlayerPromise(),2);t=X.yieldResult;f=t.getPlayerState();return X.return(f==-1||f==1||f==3)})};
_.XUQ=function(A,t){var f;_.l(function(X){if(X.nextAddress==1){if(A.isUserPredictedAbsent_==t)return X.jumpTo(0);A.isUserPredictedAbsent_=t;return X.yield(A.playerProvider_().getPlayerPromise(),3)}f=X.yieldResult;f.setUserEngagement(t);t&&_.Gp("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Ws(),A.youThereData_,A.clientPlaybackNonce_);_.LO(X)})};
$T=function(A,t){if(_.M("handle_service_request_actions")||_.M("kevlar_youthere_service_endpoint_actions_killswitch"))_.tl(A.actionSenderElement_,t,A.actionSenderElement_);else{t=_.U(t);for(var f=t.next();!f.done;f=t.next())f=f.value,f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.sendPost?_.Al(A.actionSenderElement_,[f]):_.tl(A.actionSenderElement_,[f],A.actionSenderElement_)}};var qQb;var JYH;var HJ=function(){var A=_.F.apply(this,arguments)||this;A.systemIcons=_.M("kevlar_system_icons");A.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return A};
_.R(HJ,_.F);HJ.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var A=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(A=this.data.percentIfLiked||0,this.activated=!0):(A=this.data.percentIfIndifferent||0,this.activated=!1);_.sF(this.hostElement).querySelector("#like-bar").style.width=A+"%"}};
HJ.prototype.handleUpdateSentimentBarStateCommand=function(A){this.data&&this.set("data.likeStatus",_.C(A,Kti).likeStatus)};
HJ.prototype.observeLikeStatus=HJ.prototype.observeLikeStatus;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],HJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],HJ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],HJ.prototype,"activated",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],HJ.prototype,"systemIcons",void 0);_.V([_.ev("data.likeStatus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HJ.prototype,"observeLikeStatus",null);_.V([_.y_({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],HJ);
_.Y(HJ,"ytd-sentiment-bar-renderer",function(){if(JYH!==void 0)return JYH;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return JYH=A},{mode:1});var ULl;var a3=function(){var A=_.F.apply(this,arguments)||this;A.small=!0;return A};
_.R(a3,_.F);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],a3.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],a3.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],a3.prototype,"small",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],a3);
_.Y(a3,"ytd-video-view-count-renderer",function(){if(ULl!==void 0)return ULl;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ULl=A},{mode:_.sQ("kevlar_poly_si_batch_j080")?1:2});var K0=function(){var A=_.F.apply(this,arguments)||this;A.infoFormattedStrings=[];A.wrapVideoActions=_.M("kevar_watch_wrap_video_actions");A.hideSentimentBar=_.M("kevlar_watch_hide_sentiment_bar");A.actionMap={};return A};
_.R(K0,_.F);_.J=K0.prototype;_.J.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.M("web_modern_buttons"),forceIconButton:!_.M("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.J.dataChanged=function(){_.M("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.J.computeInfoFormattedStrings=function(A){if(!A)return[];var t=[];A.dateText&&t.push(A.dateText);A.stationName&&t.push(A.stationName);A.rating&&t.push(A.rating);A.startEndTimeTemplate&&A.startTimeUtcMillis&&A.endTimeUtcMillis&&t.push(_.oC(_.$pi(_.dF(A.startEndTimeTemplate),Number(A.startTimeUtcMillis),Number(A.endTimeUtcMillis))));A.upNextProgramText&&t.push(A.upNextProgramText);return t};
_.J.scheduleInitialUpdatedMetadataRequest=function(){var A,t=(A=this.data)==null?void 0:A.updatedMetadataEndpoint;if(t){var f;A=Number((f=_.C(t,_.ZRK))==null?void 0:f.initialDelayMs);f=isNaN(A)?250:A;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),f)}};
_.J.setSentimentBarWidth=function(){var A=this;_.us(this,function(){var t=_.sF(A.hostElement).querySelector("ytd-menu-renderer");if(t){t=t.topLevelButtons;for(var f=0,X=0;X<t.length;X++){var Q=t[X],q=A.get("toggleButtonSupportedData.toggleButtonIdData.id",Q.data);if(q==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||q==="TOGGLE_BUTTON_ID_TYPE_LIKE")f+=Q.clientWidth+8;else break}f&&(A.sentiment.style.width=f-8+" px")}})};
_.J.fetchUpdatedMetadata=function(A){var t;A&&(t={continuation:A});var f;(A=(f=this.data)==null?void 0:f.updatedMetadataEndpoint)&&_.Px().resolve(_.i2).resolveCommand(A,{form:Object.assign({},t,{element:this.hostElement})})};
_.J.onYtServiceRequestSent=function(A,t){t.endpoint&&_.C(t.endpoint,_.p8)&&(this.hasUpdateSentimentBarStateCommands()&&!_.M("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.C(t.endpoint,_.p8).status),this.setSentimentBarWidth())};
_.J.hasUpdateSentimentBarStateCommands=function(){var A,t,f,X,Q=(X=(A=this.data)==null?void 0:(t=A.videoActions)==null?void 0:(f=t.menuRenderer)==null?void 0:f.topLevelButtons)!=null?X:[];A=_.U(Q);for(t=A.next();!t.done;t=A.next()){t=t.value;Q=X=f=void 0;var q=(f=t.toggleButtonRenderer)==null?void 0:(X=f.toggleButtonSupportedData)==null?void 0:(Q=X.toggleButtonIdData)==null?void 0:Q.id;if(q==="TOGGLE_BUTTON_ID_TYPE_LIKE"||q==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){X=f=void 0;t=(X=_.C((f=t.toggleButtonRenderer)==
null?void 0:f.defaultServiceEndpoint,_.Xd))==null?void 0:X.commands;if(!t)break;t=_.U(t);for(f=t.next();!f.done;f=t.next())if(_.C(f.value,Kti))return!0}}return!1};
_.J.onYtServiceRequestCompleted=function(A,t){var f;(A=(f=t.data)==null?void 0:f.loggingDirectives)&&_.ss0(_.er(),A);this.get("continuation.timedContinuationData",t.data)&&this.data&&this.data.updatedMetadataEndpoint&&(t=t.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,t.continuation),t.timeoutMs))};
_.J.computeHasDateText=function(A){return!!A&&!!A.dateText};
_.PV.Object.defineProperties(K0.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X;return!((X=(A=this.data)==null?void 0:(t=A.videoActions)==null?void 0:(f=t.menuRenderer)==null?void 0:f.flexibleItems)==null||!X.length)}}});
K0.prototype.onYtServiceRequestCompleted=K0.prototype.onYtServiceRequestCompleted;K0.prototype.onYtServiceRequestSent=K0.prototype.onYtServiceRequestSent;K0.prototype.dataChanged=K0.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],K0.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.BS.YtTaskEmitterBehavior),_.H("design:type",Object)],K0.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],K0.prototype,"data",void 0);_.V([_.n({computed:"computeInfoFormattedStrings(data)"}),_.H("design:type",Array)],K0.prototype,"infoFormattedStrings",void 0);
_.V([_.n({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],K0.prototype,"hasDateText",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],K0.prototype,"wrapVideoActions",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],K0.prototype,"hideSentimentBar",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],K0.prototype,"flexMenuEnabled",null);
_.V([_.lo("#sentiment"),_.H("design:type",Object)],K0.prototype,"sentiment",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K0.prototype,"dataChanged",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],K0.prototype,"onYtServiceRequestSent",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],K0.prototype,"onYtServiceRequestCompleted",null);
_.Y(K0,"ytd-video-primary-info-renderer",function(){if(qQb===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);qQb=A}A=qQb;return A},{mode:1});var eF3;var gJ=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return A};
_.R(gJ,_.F);_.J=gJ.prototype;_.J.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"}}}};
_.J.dataChanged=function(){var A;this.descriptionToggled=!((A=this.data)==null||!A.defaultExpanded);var t;this.collapsed=this.descriptionAlwaysCollapsed||!((t=this.data)==null?0:t.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Xl(110509);this.showLessClientVe=_.Xl(110510);A=_.Ws();t=_.mx();A&&t&&_.j5(A,t,[this.showMoreClientVe,this.showLessClientVe])};
_.J.onYtExpanderMoreTapped=function(){var A,t=(A=this.data)==null?void 0:A.showMoreCommand;t&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(t);(A=_.Ws())&&this.showMoreClientVe&&_.o7(A,this.showMoreClientVe)};
_.J.onYtExpanderLessTapped=function(){var A=_.Ws();A&&this.showLessClientVe&&_.o7(A,this.showLessClientVe);var t;(A=(t=this.data)==null?void 0:t.showLessCommand)&&this.componentBehavior.resolveCommand(A)};
_.J.handleUpdateDateTextAction=function(A){this.data&&this.data.dateText&&this.set("data.dateText",_.C(A,_.WZj).dateText)};
_.J.handleUpdateDescriptionAction=function(A){if(A=_.C(A,_.Zmp))A.isEmpty||!A.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.CI(A.description)):this.set("data.description",A.description)};
_.J.onYtChangeEngagementPanelVisibilityAction=function(A){if(_.M("web_structured_description_show_more")||_.M("web_engagement_panel_open_description")){var t,f=(t=_.C(A,_.VPi))==null?void 0:t.targetId,X;A=((X=_.C(A,_.VPi))==null?void 0:X.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";f==="engagement-panel-structured-description"&&A&&(this.descriptionToggled=!0)}};
_.J.updateCollapsedFromBinding=function(A){this.collapsed=A.detail.value};
_.J.updateDescriptionToggledFromBinding=function(A){this.descriptionToggled=A.detail.value};
_.J.updateCanCollapseFromBinding=function(A){this.canCollapse=A.detail.value};
_.PV.Object.defineProperties(gJ.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(A=this.data)==null?void 0:(t=A.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer;return!!f&&!!f.rows&&f.rows.length>f.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.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}}});
gJ.prototype.onYtExpanderLessTapped=gJ.prototype.onYtExpanderLessTapped;gJ.prototype.onYtExpanderMoreTapped=gJ.prototype.onYtExpanderMoreTapped;gJ.prototype.dataChanged=gJ.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],gJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],gJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],gJ.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gJ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],gJ.prototype,"collapsed",void 0);_.V([_.n(),_.H("design:type",Boolean)],gJ.prototype,"descriptionToggled",void 0);
_.V([_.n(),_.H("design:type",Boolean)],gJ.prototype,"canCollapse",void 0);_.V([_.n(),_.H("design:type",Object)],gJ.prototype,"subscribeButtonData",void 0);_.V([_.n(),_.H("design:type",Number)],gJ.prototype,"descriptionCollapsedHeight",void 0);_.V([_.n(),_.H("design:type",Object)],gJ.prototype,"structuredDescriptionContentRenderer",void 0);_.V([_.n({value:function(){return _.M("web_watch_description_always_collapsed")}}),
_.H("design:type",Boolean)],gJ.prototype,"descriptionAlwaysCollapsed",void 0);_.V([_.lo("#description"),_.H("design:type",HTMLDivElement)],gJ.prototype,"description",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gJ.prototype,"dataChanged",null);_.V([_.UQ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gJ.prototype,"onYtExpanderMoreTapped",null);
_.V([_.UQ("yt-expander-less-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gJ.prototype,"onYtExpanderLessTapped",null);_.V([_.y("data.metadataRowContainer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gJ.prototype,"metadataCollapsible",null);_.V([_.y("data","structuredDescriptionContentRenderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gJ.prototype,"hasInlineStructuredDescription",null);
_.V([_.y("data.attributedDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gJ.prototype,"hasAttributedDescription",null);_.V([_.y("hasInlineStructuredDescription","collapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gJ.prototype,"loadStructuredDescription",null);_.V([_.y("data","structuredDescriptionContentRenderer","collapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gJ.prototype,"showInlineStructuredDescription",null);
_.V([_.y("data","hasInlineStructuredDescription","metadataCollapsible"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gJ.prototype,"descriptionAlwaysCollapsible",null);
_.Y(gJ,"ytd-video-secondary-info-renderer",function(){if(eF3===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);eF3=A}A=eF3;return A},{mode:2});var Ghy;var wJ=function(){return _.F.apply(this,arguments)||this};
_.R(wJ,_.F);wJ.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:_.M("web_modern_buttons"),forceIconButton:!_.M("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
wJ.prototype.activate=function(A){A.appendTo(this.player);A.getPlayerPromise().then(function(t){t.setMinimized(!0)});
this.active=!0};
wJ.prototype.deactivate=function(){var A=this.player.firstElementChild;A.getPlayerPromise().then(function(t){t.setMinimized(!1)});
this.active=!1;return A};
wJ.prototype.onScrollUpTap=function(){var A=_.Px().resolve(_.HO).getCurrentPage();A&&A.setScrollTop(0)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],wJ.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wJ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],wJ.prototype,"active",void 0);
_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.H("design:type",Boolean)],wJ.prototype,"darkLaunch",void 0);_.V([_.lo("#player"),_.H("design:type",HTMLDivElement)],wJ.prototype,"player",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],wJ);
_.Y(wJ,"ytd-miniplayer-bar-renderer",function(){if(Ghy!==void 0)return Ghy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Ghy=A},{mode:1});_.Hn(_.I(function(A){var t=_.GU("script");_.oo(function(){var f;if(f=JSON)f=$vF(A.data()),f=_.QP(JSON.stringify(f).replace(/</g,"\\u003C"));var X=A.data(),Q=_.dF(X.title).trim().length===0,q=!X.publishDate||X.publishDate.trim().length===0,e,G,N,z,T=!((e=X.thumbnail)==null?0:(G=e.thumbnails)==null?0:G.length)||!((N=X.thumbnail)==null?0:N.thumbnails[0].url)||((z=X.thumbnail)==null?void 0:z.thumbnails[0].url.trim().length)===0;t.value&&f&&!(Q||q||T)&&_.Jt(t.value,f)},"Vy9K7b");
return _.u("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.u("script",{el:t,type:"application/ld+json"}))},"Fo"),"player-microformat-renderer",{props:{data:_.dt}});
}catch(e){_._DumpException(e)}
try{
var rRr,ALf,f2b;_.k$H=function(A){return A.watch.watchWindowSize};
rRr=function(A,t){var f=document.querySelector(A);f?t(f):setTimeout(function(){rRr(A,t)},1E3)};
ALf=function(A,t,f,X){if(A.isLockupToWatchTransitionEnabled){if(t){var Q={};Q=(Q["watch-next-appears"]="player-watch-next-loaded",Q);Q["lockup-to-watch"]=A.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";A.viewTransitionCoordinator.registerElement(t,Q)}f&&(t={},A.viewTransitionCoordinator.registerElement(f,(t["lockup-to-watch"]="below-lockup-to-watch",t["watch-next-appears"]="below-watch-next-loaded",t)));X&&(f={},A.viewTransitionCoordinator.registerElement(X,
(f["watch-next-appears"]="secondary-watch-next-loaded",f)))}};
_.tIb=function(A){return _.r0({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:A}})};
f2b=new _.UA("webWatchNextResponseExtensionData");var QOi=function(A){_.DA.call(this);var t=this;this.JSC$23592_watchApi=A;this.observer=null;var f=this.JSC$23592_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Xir(t)});
this.addOnDisposeCallback(function(){t.JSC$23592_watchApi.unsubscribeByKey(f);t.observer&&(t.observer.disconnect(),t.observer=null)});
Xir(this)};
_.R(QOi,_.DA);
var Xir=function(A){var t,f,X,Q,q;_.l(function(e){if(e.nextAddress==1){A.observer&&(A.observer.disconnect(),A.observer=null);t=A.JSC$23592_watchApi.getWatchNextResponse();if(!t)return e.return();f=_.C(t,f2b);return((X=f)==null?0:X.enableCreatorChatbot)&&f.creatorChannelId?_.M("enable_creator_chatbot_link_out")?e.yield((0,_.fdz)("NSzT5"),6):e.yield((0,_.fdz)("NSzT5"),5):e.jumpTo(0)}if(e.nextAddress!=6)return Q=_.qFy,Q(f.creatorChannelId),rRr("ytd-watch-metadata",function(G){A.observer=new MutationObserver(function(){var N,
z;(N=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(z=N.closest("yt-button-view-model.ytd-menu-renderer"))==null||z.remove()});
A.observer.observe(G,{childList:!0,subtree:!0})}),e.jumpTo(0);
q=_.JLi;q(f.creatorChannelId);_.LO(e)})};var xT=function(A){_.DA.call(this);this.JSC$23596_watchApi=A;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;Uvl(this)};
_.R(xT,_.DA);var Uvl=function(A){_.l(function(t){if(t.nextAddress==1)return t.yield(e9b(A),2);GDH(A);_.LO(t)})},e9b=function(A){var t,f,X,Q,q,e,G,N,z;
return _.l(function(T){if(T.nextAddress==1)return T.yield(A.JSC$23596_watchApi.playerApi,2);t=T.yieldResult;A.JSC$23596_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){l2b(A)});
A.JSC$23596_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){A.isShelfVisible?NHf(A):jp(A)});
f=_.$I().subscribe(function(){A.isTheaterMode=_.bm(_.$I().getState());A.isTheaterMode?jp(A):ucf(A)});
X=A.JSC$23596_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){GDH(A)});
Q=function(O){A.onCueRangeEnter(O)};
t.addEventListener("onCueRangeEnter",Q);q=function(O){A.onCueRangeExit(O)};
t.addEventListener("onCueRangeExit",q);e=function(){A.isSeeking=!0};
t.addEventListener("SEEK_TO",e);G=function(){A.onSeekComplete()};
t.addEventListener("SEEK_COMPLETE",G);N=function(){A.onAdStart()};
t.addEventListener("onAdStart",N);z=function(){A.onAdComplete()};
t.addEventListener("onAdComplete",z);A.addOnDisposeCallback(function(){f();A.JSC$23596_watchApi.unsubscribeByKey(X);t.removeEventListener("onCueRangeEnter",Q);t.removeEventListener("onCueRangeExit",q);t.removeEventListener("SEEK_TO",e);t.removeEventListener("SEEK_COMPLETE",G);t.removeEventListener("onAdStart",N);t.removeEventListener("onAdComplete",z)});
_.LO(T)})},z9x=function(A){var t,f,X,Q,q,e,G,N,z;
return(q=(t=A.contents)==null?void 0:(f=t.twoColumnWatchNextResults)==null?void 0:(X=f.results)==null?void 0:(Q=X.results)==null?void 0:Q.contents)==null?void 0:(e=q.find(function(T){var O,c,B;return(O=T.itemSectionRenderer)==null?void 0:(c=O.contents)==null?void 0:(B=c[0])==null?void 0:B.shoppingTimelyShelfViewModel}))==null?void 0:(G=e.itemSectionRenderer)==null?void 0:(N=G.contents)==null?void 0:(z=N[0])==null?void 0:z.shoppingTimelyShelfViewModel},GDH=function(A){var t;
_.l(function(f){if(f.nextAddress==1)return(t=A.JSC$23596_watchApi.getWatchNextResponse())?f.yield(l2b(A),2):f.return();A.shoppingTimelyShelfViewModel=z9x(t);PY3(A);THF(A);_.LO(f)})},PY3=function(A){var t,f=(t=A.shoppingTimelyShelfViewModel)==null?void 0:t.offerIdToVariants;
f&&(t=f.filter(function(X){return X.key&&X.value}).map(function(X){return[X.key,
X.value]}),A.variantsMap=new Map(t))},THF=function(A){var t,f,X,Q,q,e;
_.l(function(G){if(G.nextAddress==1)return(f=(t=A.shoppingTimelyShelfViewModel)==null?void 0:t.cueRanges)?G.yield(A.JSC$23596_watchApi.playerApi,2):G.return();X=G.yieldResult;A.cueRanges=f;Q=_.U(f);for(q=Q.next();!q.done;q=Q.next())e=q.value,e.startTime!==void 0&&e.endTime!==void 0&&e.id!==void 0&&X.addCueRange("shopping_timely_shelf"+e.id,ipW(e.startTime),ipW(e.endTime));_.LO(G)})},ipW=function(A){return Number(A.seconds||0)+(A.nanos||0)/1E9};
xT.prototype.onCueRangeEnter=function(A){if(A.startsWith("shopping_timely_shelf")&&(this.activeCueId=A,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){A=A.substring(21);var t,f,X=(t=this.variantsMap)==null?void 0:(f=t.get(A))==null?void 0:f.shelf;X&&(this.JSC$23596_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",X),NHf(this))}};
xT.prototype.onCueRangeExit=function(A){A.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||jp(this))};
xT.prototype.onSeekComplete=function(){this.isSeeking=!1;ucf(this)};
var NHf=function(A){A.shoppingTimelyShelfViewModel&&(A.isShelfVisible=!0,_.XA.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},jp=function(A){A.shoppingTimelyShelfViewModel&&(A.isShelfVisible=!1,_.XA.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},l2b=function(A){var t,f,X,Q,q;
return _.l(function(e){if(e.nextAddress==1)return e.yield(A.JSC$23596_watchApi.playerApi,2);t=e.yieldResult;if(A.cueRanges)for(f=_.U(A.cueRanges),X=f.next();!X.done;X=f.next())Q=X.value,Q.id&&(q="shopping_timely_shelf"+Q.id,t.removeCueRange(q));A.JSC$23596_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});jp(A);A.shoppingTimelyShelfViewModel=void 0;A.cueRanges=void 0;A.variantsMap=void 0;A.isSeeking=!1;A.activeCueId=void 0;_.LO(e)})};
xT.prototype.onAdStart=function(){this.isAdPlaying=!0;jp(this)};
xT.prototype.onAdComplete=function(){this.isAdPlaying=!1;ucf(this)};
var ucf=function(A){if(A.activeCueId)A.onCueRangeEnter(A.activeCueId);else jp(A)};var CYr=function(A){_.DA.call(this);var t=this;this.JSC$23603_watchApi=A;A=_.ar(_.$I(),_.tfl,function(){Opy(t)});
this.addOnDisposeCallback(A);A=_.ar(_.$I(),_.k$H,function(){Opy(t)});
this.addOnDisposeCallback(A);cLy(this);BHx(this);MIi()};
_.R(CYr,_.DA);var cLy=function(A){var t=function(X){_.$I().dispatch(_.Hkf(X.matches))},f=window.matchMedia("(max-width: "+(999+_.gl())+"px)");
f.addListener(t);A.addOnDisposeCallback(function(){f.removeListener(t)});
t(f)},BHx=function(A){A.JSC$23603_watchApi.registerActionHandler("yt-window-resized",function(){MIi()});
A.addOnDisposeCallback(function(){A.JSC$23603_watchApi.unregisterActionHandler("yt-window-resized")})},MIi=function(){var A=_.uY();
_.$I().dispatch(_.r0({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:A.width,height:A.height}}}))},Opy=function(A){var t;
_.l(function(f){if(f.nextAddress==1)return f.yield(A.JSC$23603_watchApi.playerApi,2);t=f.yieldResult;t.setSize(NaN,NaN);_.LO(f)})};var h9l=function(A){_.DA.call(this);var t=_.Px().resolve(_.w4);ALf(t,A.getElement("PLAYER_CONTAINER"),A.getElement("BELOW_THE_PLAYER"),A.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var f=A.getElement("PLAYER_CONTAINER"),X=A.getElement("BELOW_THE_PLAYER"),Q=A.getElement("SECONDARY");t.isLockupToWatchTransitionEnabled&&(f&&_.pW(t.viewTransitionCoordinator,f),X&&_.pW(t.viewTransitionCoordinator,X),Q&&_.pW(t.viewTransitionCoordinator,Q))})};
_.R(h9l,_.DA);_.VE=function(A){_.N6.call(this);var t=this;this.rootElement=A;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return t.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(f){t.initOrDisposeActiveModules(f)}));
this.onAttached()};
_.R(_.VE,_.N6);_.J=_.VE.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(A){return this.rootElement.getElement(A)};
_.J.setPlayerResponse=function(A){this.playerResponse=A;this.publish("PLAYER_RESPONSE_UPDATED",A)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(A){this.watchNextResponse===A?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=A,this.publish("WATCH_NEXT_RESPONSE_UPDATED",A))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(A,t){var f=this;if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var X={};_.J4(_.XA.getInstance(),(X[A]=t,X),this.getRoot())}else this.actionHandlers.has(A)||(this.actionHandlers.set(A,[]),X={},_.J4(_.XA.getInstance(),(X[A]=function(){var Q=_.Hu.apply(0,arguments);return(f.actionHandlers.get(A)||[]).map(function(q){return q.apply(null,_.YV(Q))})},X),this.getRoot())),this.actionHandlers.get(A).push(t)};
_.J.unregisterActionHandler=function(A){if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.UI(_.XA.getInstance(),(t[A]=!0,t),this.getRoot())}else(t=this.actionHandlers.get(A))?(t.pop(),t.length===0&&(t={},_.UI(_.XA.getInstance(),(t[A]=!0,t),this.getRoot()),this.actionHandlers.delete(A))):_.K4(new _.xj("Attempted to unregister an action handler which is not registered.",A))};
_.J.addPageDisposeJob=function(A){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.pp5(this.rootElement.pageDisposeJobs,A)};
_.J.removePageDisposeJob=function(A){this.rootElement.pageDisposeJobs&&_.o0(this.rootElement.pageDisposeJobs,A)};
_.J.dispatchEvent=function(A,t){_.s9(this.rootElement,A,t)};
_.J.provideRenderingData=function(A,t){this.rootElement.provideRenderingData(A,t)};
_.J.scrollWatchTo=function(A,t){var f;(f=this.watchScrollManager)==null||f.scrollWatchTo(A,t)};
_.J.focusOnPlayer=function(){var A=this.getElement("PLAYER");_.us(A,function(){if(A&&A.firstElementChild){var t=A.querySelector(".html5-video-player");t&&(_.Rd(_.Px().resolve(_.PO)),t.focus())}else _.K4(Error("hp"))})};
_.J.subscribeToActiveChanged=function(A,t){t=t===void 0?!0:t;var f=_.ar(_.$I(),_.V2i,function(X){A(X)});
t&&A(_.V2i(_.$I().getState()));return f};
_.J.isActive=function(){return _.V2i(_.$I().getState())};
_.J.onAttached=function(){var A=_.M("external_fullscreen");_.M("use_unified_flag_accessor")&&(A=_.Px().resolve(_.dph).retriever.getFlag(_.vtp));(A||_.Ka("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var R9b=function(A){return A.getRoot().is==="ytd-watch-flexy"||A.getRoot().is==="ytd-watch-grid"},Za=function(A){return A.getRoot().is==="ytd-watch-fixie"};
_.VE.prototype.initPersistentModules=function(){if(Za(this)||R9b(this)&&_.M("kevlar_watch_flexy_theater_manager")){var A=new _.h1i(this);_.hV(this,A)}A=new _.ltH(this);_.hV(this,A);A=new _.L0(this);_.hV(this,A);A=new _.qpf(this);_.hV(this,A);A=new _.F2(this);_.hV(this,A);A=new _.p0(this);_.hV(this,A);if(Za(this)||R9b(this)&&_.M("kevlar_watch_flexy_playlist_manager"))A=new _.d_j(this),_.hV(this,A);_.M("web_thumbnail_to_watch_transition")&&(A=new h9l(this),_.hV(this,A))};
_.VE.prototype.initOrDisposeActiveModules=function(A){A?(this.watchScrollManager=new _.I3(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.bZi(this)),_.M("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new xT(this)),this.activeModules.push(new _.CSb(this)),Za(this)&&this.activeModules.push(new CYr(this)),this.activeModules.push(new _.gIl(this)),this.activeModules.push(new _.cRH(this)),(Za(this)||_.M("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.Wxx(this)),this.activeModules.push(new _.EIi(this)),(Za(this)||_.M("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.sCx(this)),(Za(this)||_.M("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.j7b(this)),_.M("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.dJ3(this),this.activeModules.push(this.watchCinematicManager)),_.M("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Ity(this)),_.M("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.U_i(this)),A=_.M("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.M("kevlar_watch_flexy_comments_manager")&&!A&&this.activeModules.push(new _.ARj(this)),_.M("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.ZGu(this)),this.activeModules.push(new _.LPu(this)),this.activeModules.push(new _.yRF(this)),_.M("web_enable_timely_actions")&&this.activeModules.push(new _.DJi(this)),_.M("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.fNl(this)),_.M("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.aTl(this)),_.M("web_fullscreen_components")&&this.activeModules.push(new _.EJj(this)),_.M("web_player_rtr_ctrls")&&this.activeModules.push(new _.Q7l(this)),(_.M("enable_creator_chatbot")||_.M("enable_creator_chatbot_link_out"))&&this.activeModules.push(new QOi(this))):(_.G_(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.VE.prototype.disposeInternal=function(){_.N6.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.PV.Object.defineProperties(_.VE.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var FzW,A$,IHr,xWy,YVQ,VOW,j9f,ZOF;FzW=function(){var A=_.zt();A.info||(A.info={});return A.info};
A$=function(A){return Math.round(_.OO()+A)};
IHr=function(){var A;if(_.M("csi_use_performance_navigation_timing")){var t,f,X,Q=_.i0==null?void 0:(A=_.i0.getEntriesByType)==null?void 0:(t=A.call(_.i0,"navigation"))==null?void 0:(f=t[0])==null?void 0:(X=f.toJSON)==null?void 0:X.call(f);Q?(Q.requestStart=A$(Q.requestStart),Q.responseEnd=A$(Q.responseEnd),Q.redirectStart=A$(Q.redirectStart),Q.redirectEnd=A$(Q.redirectEnd),Q.domainLookupEnd=A$(Q.domainLookupEnd),Q.connectStart=A$(Q.connectStart),Q.connectEnd=A$(Q.connectEnd),Q.responseStart=A$(Q.responseStart),
Q.secureConnectionStart=A$(Q.secureConnectionStart),Q.domainLookupStart=A$(Q.domainLookupStart),Q.isPerformanceNavigationTiming=!0,A=Q):A=_.i0.timing}else A=_.M("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.i0.timing)):_.i0.timing;return A};
xWy=function(){if(_.i0.getEntriesByType){var A=_.i0.getEntriesByType("paint");if(A=_.ng(A,function(f){return f.name==="first-paint"}))return A$(A.startTime)}var t;
_.M("csi_use_performance_navigation_timing")?t=_.i0.getEntriesByType("first-paint")[0].startTime:t=_.i0.timing.msFirstPaint;return t?Math.max(0,t):0};
YVQ=function(){var A=window.location.protocol,t=_.i0.getEntriesByType("resource");t=_.tJ(t,function(f){return f.name.indexOf(A+"//fonts.gstatic.com/s/")===0});
(t=j9f(t,function(f,X){return X.duration>f.duration?X:f}))&&t.startTime>0&&t.responseEnd>0&&(_.ct("wffs",A$(t.startTime)),_.ct("wffe",A$(t.responseEnd)))};
VOW=function(A,t){A=document.querySelector(A);if(!A)return!1;var f="",X=A.nodeName;X==="SCRIPT"?(f=A.src,f||(f=A.getAttribute("data-timing-href"))&&(f=window.location.protocol+f)):X==="LINK"&&(f=A.href);_.fO(document)&&A.setAttribute("nonce",_.fO(document));return f?(A=_.i0.getEntriesByName(f))&&A[0]&&(A=A[0],f=_.OO(),_.ct("rsf_"+t,f+Math.round(A.fetchStart)),_.ct("rse_"+t,f+Math.round(A.responseEnd)),A.transferSize!==void 0&&A.transferSize===0)?!0:!1:!1};
_.oVl=function(A,t){_.r9(function(){_.Tt("").info.actionType=A;t&&_.H5("TIMING_AFT_KEYS",t);_.H5("TIMING_ACTION",A);var f=_.FMx(_.ah("TIMING_INFO",{}));Object.keys(f).length>0&&_.Bt(f);f={isNavigation:!0,actionType:_.CJb(_.ah("TIMING_ACTION"))};var X=_.ah("PREVIOUS_ACTION");X&&(f.previousAction=_.CJb(X));if(X=_.ah("CLIENT_PROTOCOL"))f.httpProtocol=X;if(X=_.ah("CLIENT_TRANSPORT"))f.transportProtocol=X;(X=_.Ws())&&X!=="UNDEFINED_CSN"&&(f.clientScreenNonce=X);X=_.D2p();if(X===1||X===-1)f.isVisible=!0;
X=_.zhb().loadType==="cold";var Q=FzW();X||(X=Q.yt_lt==="cold");if(X){f.loadType="cold";X=FzW();Q=IHr();var q=_.OO(),e=_.ah("CSI_START_TIMESTAMP_MILLIS",0);e>0&&!_.M("embeds_web_enable_csi_start_override_killswitch")&&(q=e);q&&(_.ct("srt",Q.responseStart),X.prerender!==1&&_.WMp(q));X=xWy();X>0&&_.ct("fpt",X);X=IHr();X.isPerformanceNavigationTiming&&_.Bt({performanceNavigationTiming:!0},void 0);_.ct("nreqs",X.requestStart,void 0);_.ct("nress",X.responseStart,void 0);_.ct("nrese",X.responseEnd,void 0);
X.redirectEnd-X.redirectStart>0&&(_.ct("nrs",X.redirectStart,void 0),_.ct("nre",X.redirectEnd,void 0));X.domainLookupEnd-X.domainLookupStart>0&&(_.ct("ndnss",X.domainLookupStart,void 0),_.ct("ndnse",X.domainLookupEnd,void 0));X.connectEnd-X.connectStart>0&&(_.ct("ntcps",X.connectStart,void 0),_.ct("ntcpe",X.connectEnd,void 0));X.secureConnectionStart>=_.OO()&&X.connectEnd-X.secureConnectionStart>0&&(_.ct("nstcps",X.secureConnectionStart,void 0),_.ct("ntcpe",X.connectEnd,void 0));_.i0&&"getEntriesByType"in
_.i0&&YVQ();X=[];if(document.querySelector&&_.i0&&_.i0.getEntriesByName)for(var G in ZOF)ZOF.hasOwnProperty(G)&&(Q=ZOF[G],VOW(G,Q)&&X.push(Q));if(X.length>0)for(f.resourceInfo=[],G=_.U(X),X=G.next();!X.done;X=G.next())f.resourceInfo.push({resourceCache:X.value})}_.Bt(f);f=_.Pt();f.preLoggedGelInfos||(f.preLoggedGelInfos=[]);G=f.preLoggedGelInfos;f=_.TBu();X=void 0;for(Q=0;Q<G.length;Q++)if(q=G[Q],q.loadType){X=q.loadType;break}if(_.zhb().loadType==="cold"&&(f.loadType==="cold"||X==="cold")){X=_.PJx();
Q=_.Pt();Q=Q.gelTicks?Q.gelTicks:Q.gelTicks={};for(var N in X)if(!(N in Q))if(typeof X[N]==="number")_.ct(N,_.Cf(N));else if(_.M("log_repeated_ytcsi_ticks"))for(q=_.U(X[N]),e=q.next();!e.done;e=q.next())e=e.value,_.ct(N.slice(1),e);N={};X=!1;G=_.U(G);for(Q=G.next();!Q.done;Q=G.next())X=Q.value,_.pG(f,X),_.pG(N,X),X=!0;X&&_.Bt(N)}_.x2x(!0);N=_.ah("TIMING_ACTION");_.Ae("ytglobal.timingready_")&&N&&_.HXq()&&_.Iu0()&&_.E4z()})()};
j9f=function(A,t){return Array.prototype.reduce.call(A,t,{duration:0})};
ZOF={'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 dWj={};dWj.YtVisibilityRootBehavior=[_.RJp.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.ee(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.ah("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var A=_.ah("INNERTUBE_CLIENT_NAME")!=="WEB";_.M("kevlar_use_vimio_behavior")&&A&&_.dmp()}}];_.t$={};_.t$.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(A){A.detail.contextProvider=this;A.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
dWj.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.YE();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(A){var t=this;this.pageCount+=1;_.M("kevlar_use_vimio_behavior")&&(_.ah("INNERTUBE_CLIENT_NAME")==="WEB"?_.a6.addJob(function(){t.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(A)},
loadPage_:function(A){this.data=A},
ytPageBehaviorActiveObserver_:function(A){var t=this;_.M("kevlar_use_vimio_behavior")&&(A?_.ah("INNERTUBE_CLIENT_NAME")==="WEB"?_.a6.addJob(function(){t.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(A){if(!this.setScrollTopJobId_){var t=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){t.setScrollTopJobId_=0;var f=_.Px().resolve(_.z7(_.PO));f&&_.Rd(f);this.getPageScrollingElement().scrollTop=A}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.n3(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var DWH;var r5=function(){var A=_.F.apply(this,arguments)||this;A.playerListenerConfig=null;A.actionMap={"yt-show-watch-page-survey":"openSurvey"};return A};
_.R(r5,_.F);_.J=r5.prototype;_.J.dataChanged=function(){var A=this,t=_.K1();t&&t.getPlayerPromise().then(function(X){A.maybeRemovePlayerListeners(X)});
var f=this.data&&this.data.survey;f&&((f=(f=f.singleOptionSurveyRenderer||f.checkboxSurveyRenderer||f.multiStageSurveyRenderer)&&f.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(t,f):this.openSurvey())};
_.J.triggerWatchPageSurvey=function(A,t){var f=this,X,Q,q,e,G,N,z,T,O;return _.l(function(c){if(c.nextAddress==1)return A?c.yield(A.getPlayerPromise(),2):c.return();f.player=c.yieldResult;if(!f.player)return c.return();X={};Q=_.U(t);for(q=Q.next();!q.done;q=Q.next())e=q.value,G=_.U(f.createEventListenerPair(e)),N=G.next().value,z=G.next().value,T=N,O=z,T&&O&&(X[T]=O,f.ytPlayerListenerBehavior.listenToPlayerEvent(f.player,T,O));f.playerListenerConfig=X;_.LO(c)})};
_.J.createEventListenerPair=function(A){var t=A.playbackEventTrigger;return t?this.handlePlaybackTrigger(t):(A=A.watchTimeTrigger)?this.handleWatchTimeTrigger(A):[void 0,void 0]};
_.J.handleWatchTimeTrigger=function(A){var t=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var f=A.videoWatchFraction,X=A.watchTimeSec;return X&&f?["onVideoProgress",function(){t.player&&t.isWatchTimeConditionMet(t.player,f,X)&&t.showSurvey()}]:[void 0,
void 0]};
_.J.isWatchTimeConditionMet=function(A,t,f){var X=A.getProgressState(),Q=X.current-this.lastKnownPlaybackPosition;Q<5&&(this.accumulatedMediaTime+=Q);this.lastKnownPlaybackPosition=X.current;X=Math.round(this.accumulatedMediaTime/X.duration*1E3)/1E3;return A.getPresentingPlayerType&&A.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>f||X>t)};
_.J.handlePlaybackTrigger=function(A){var t=this;A=A.playbackEvent;if(A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var f="onStateChange";var X=function(Q){Q===0&&t.showSurvey()}}else A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(f="onVideoProgress",X=function(Q){t.player&&t.player.getPresentingPlayerType&&t.player.getPresentingPlayerType()===1&&Q&&t.showSurvey()}):A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(f="onAdEnd",X=this.showSurvey);
return[f,X]};
_.J.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.J.openSurvey=function(){var A=this,t=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.TRw(!!t));_.a6.addJob(function(){A.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:t}})},0,0)};
_.J.maybeRemovePlayerListeners=function(A){if(this.playerListenerConfig){for(var t=_.U(Object.keys(this.playerListenerConfig)),f=t.next();!f.done;f=t.next())f=f.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(A,f,this.playerListenerConfig[f]);this.playerListenerConfig=null}};
r5.prototype.dataChanged=r5.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],r5.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],r5.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],r5.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],r5.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],r5.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],r5.prototype,"playerListenerConfig",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],r5.prototype,"lastKnownPlaybackPosition",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],r5.prototype,"accumulatedMediaTime",void 0);_.V([_.n(),_.H("design:type",Object)],r5.prototype,"player",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r5.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],r5);
_.Y(r5,"ytd-survey-trigger-renderer",function(){if(DWH!==void 0)return DWH;var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return DWH=A},{mode:1});
}catch(e){_._DumpException(e)}
try{
var sg2;_.cv=function(A){var t=document.createElement("link");_.lL(t,A,"stylesheet");document.head.appendChild(t)};
_.Bv=function(A,t){var f,X;return _.l(function(Q){f=document.createElement("div");f.id=A.id;A.className&&(f.className=A.className);X=A.element;if(!X)throw Error("hk");if(A.location==="prepend")X.prepend(f);else if(A.location==="appendChild")X.appendChild(f);else if(A.location==="after")X.after(f);else throw Error("ik");return Q.return(_.Vz(f,t,"jj"))})};
_.M6=function(A){var t;return _.l(function(f){(t=document.getElementById(A))&&t.remove();_.LO(f)})};
_.CC=function(A,t){var f=document.querySelector(A);f?t(f):setTimeout(function(){_.CC(A,t)},1E3)};
_.kh3=function(A,t,f){var X;_.l(function(Q){if(Q.nextAddress==1)return(X=document.getElementById(A))?Q.jumpTo(2):Q.yield(sg2(A,t,f),2);if(X=document.getElementById(A))X.style.display="block";_.LO(Q)})};
sg2=function(A,t,f){return _.l(function(X){return X.return(new Promise(function(Q){_.CC("div #panels",function(q){_.Bv({element:q,location:"appendChild",id:A,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+f},t);Q()})}))})};_.hN=_.I(function(A){var t=A.text;var f=A.onClick;var X=A.color;var Q=A.backgroundColor;var q=A.buttonSize;var e=A.disabled;var G=A.iconName;var N=A.iconSize;var z=A.className;var T=A.iconClassName;A=A.ariaLabel;var O=_.f1(function(B){f(B)}),c={};
return _.u("button",{class:_.Ao("ytpStandardButtonsHost",(c.ytpStandardButtonsLarge=function(){return(q==null?void 0:q())==="large"},c),z),
"on:click":O,style:_.U7({color:X,"background-color":Q}),disabled:e,"aria-label":A},_.u(_.P,{cond:G,then:function(){return _.u(_.el,{className:_.Ao("ytpStandardButtonsIconContainer",T),icon:G,size:N})}}),t)},"ij");_.rYd=_.I(function(A){var t,f,X={};return _.u("div",{class:_.Ao("ytprototypesEngagementPanelComponentHost",(X.ytprototypesEngagementPanelComponentHostMweb=A.isMweb,X),A.className),id:A.id},_.u("div",{class:_.Ao("ytprototypesEngagementPanelComponentEngagementPanelHeader",A.headerClassName)},_.u("div",null,A.header()),_.u("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.u("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(t=A.HeaderButton)==null?void 0:t.call(A)),
_.u(_.hN,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var Q;(Q=A.onHide)==null||Q.call(A);var q;if((q=A.preventDefault)==null||!q.call(A))if(Q=A.id(),Q=document.getElementById(Q))Q.style.display="none"}}))),_.u("div",{class:_.Ao("ytprototypesEngagementPanelComponentEngagementPanelContent",A.contentClassName),
style:function(){var Q,q;return"height: "+(((Q=A.height)==null?0:Q.call(A))||((q=A.isMweb)==null?0:q.call(A))?"100%":"800px")+";"}},A.content()),_.u("div",null,(f=A.Footer)==null?void 0:f.call(A)))},"kj");
}catch(e){_._DumpException(e)}
try{
var hNb=new _.UA("replaceFeedContentAction");var RNH;var mWb;var bOf=function(){return _.F.apply(this,arguments)||this};
_.R(bOf,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],bOf.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bOf.prototype,"data",void 0);_.V([_.y_({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],bOf);
_.Y(bOf,"ytd-sub-feed-option-renderer",function(){if(mWb!==void 0)return mWb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return mWb=A},{mode:1});var WzH;var He=function(){return _.F.apply(this,arguments)||this};
_.R(He,_.F);He.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],He.prototype,"ytRendererStamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],He.prototype,"data",void 0);_.V([_.y_({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],He);
_.Y(He,"ytd-sub-feed-selector-renderer",function(){if(WzH!==void 0)return WzH;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return WzH=A},{mode:1});var aL=function(){return _.F.apply(this,arguments)||this};
_.R(aL,_.F);
aL.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}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],aL.prototype,"data",void 0);_.V([_.y_({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],aL);
_.Y(aL,"ytd-browse-feed-actions-renderer",function(){if(RNH!==void 0)return RNH;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return RNH=A},{mode:1});var ytx;var vVl;var KB=function(){return _.F.apply(this,arguments)||this};
_.R(KB,_.F);KB.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],KB.prototype,"data",void 0);_.V([_.y_({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],KB);
_.Y(KB,"ytd-mini-channel-renderer",function(){if(vVl!==void 0)return vVl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return vVl=A},{mode:1});var Lzy;var g5=function(){return _.F.apply(this,arguments)||this};
_.R(g5,_.F);g5.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],g5.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],g5);
_.Y(g5,"ytd-vertical-channel-section-renderer",function(){if(Lzy!==void 0)return Lzy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Lzy=A},{mode:1});var w5=function(){return _.F.apply(this,arguments)||this};
_.R(w5,_.F);w5.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],w5.prototype,"data",void 0);_.V([_.y_({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],w5);
_.Y(w5,"ytd-browse-secondary-contents-renderer",function(){if(ytx!==void 0)return ytx;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return ytx=A},{mode:1});var pCH;var sD=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};A.notActive=!1;A.isConstrainedList=!1;A.marginSettings=0;return A};
_.R(sD,_.F);_.J=sD.prototype;
_.J.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]]",marginSettings:"[[marginSettings]]"},matcher:function(A){var t;return(A==null?void 0:(t=A.webComponentHint)==null?void 0:t.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}}}}};
_.J.getPath=function(A,t){var f="data.tabs.#"+t+".";A.tabs[t].tabRenderer?f+="tabRenderer.":A.tabs[t].expandableTabRenderer&&(f+="expandableTabRenderer.");return f+"content.sectionListRenderer"};
_.J.computeDisplayedContent=function(A){this.unlinkPaths("content");if(A&&A.tabs)for(var t=A.tabs.length,f=0;f<t;f++){var X=A.tabs[f].tabRenderer||A.tabs[f].expandableTabRenderer;if(X.selected&&X.content)return this.linkPaths("content",this.getPath(A,f)),X.content}return null};
_.J.computeHasSecondaryColumnData=function(A){return!!A&&!!A.secondaryContents};
_.J.onRetrieveLocation=function(A,t){t.locationRetrieved(t.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);A.stopPropagation()};
_.J.onYtServiceRequestSent=function(A,t){_.M("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(t)};
_.J.onYtServiceRequestCompleted=function(A,t){_.M("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(t)};
_.J.onReplaceFeedContentAction=function(A){if(!_.M("replace_feed_content_action_killswitch")&&!this.notActive){var t;(A=(t=_.C(A,hNb))==null?void 0:t.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(A)}};
_.J.handleServiceRequestActions=function(A){if(A=A.actions){A=_.U(A);for(var t=A.next();!t.done;t=A.next()){t=t.value;var f=void 0;((f=_.C(t,hNb))==null?0:f.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.C(t,hNb).items)}}};
sD.prototype.onYtServiceRequestCompleted=sD.prototype.onYtServiceRequestCompleted;sD.prototype.onYtServiceRequestSent=sD.prototype.onYtServiceRequestSent;sD.prototype.onRetrieveLocation=sD.prototype.onRetrieveLocation;_.V([_.b(_.GB),_.H("design:type",Object)],sD.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],sD.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sD.prototype,"data",void 0);_.V([_.n({computed:"computeDisplayedContent(data)"}),_.H("design:type",Object)],sD.prototype,"content",void 0);
_.V([_.n({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],sD.prototype,"hasSecondaryColumnData",void 0);_.V([_.n({value:function(){return window.outerHeight>1024?3:2}}),
_.H("design:type",Number)],sD.prototype,"initialCount",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],sD.prototype,"pageSubtype",void 0);_.V([_.lo("ytd-section-list-renderer"),_.H("design:type",Object)],sD.prototype,"listRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],sD.prototype,"notActive",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],sD.prototype,"isConstrainedList",void 0);
_.V([_.n(),_.H("design:type",String)],sD.prototype,"responsiveSizing",void 0);_.V([_.n(),_.H("design:type",Number)],sD.prototype,"marginSettings",void 0);_.V([_.UQ("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],sD.prototype,"onRetrieveLocation",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],sD.prototype,"onYtServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],sD.prototype,"onYtServiceRequestCompleted",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],sD);
_.Y(sD,"ytd-two-column-browse-results-renderer",function(){if(pCH!==void 0)return pCH;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return pCH=A},{mode:2});
}catch(e){_._DumpException(e)}
try{
var lKW=function(A){if((A==null?void 0:A.value)===void 0||A==null||!A.unit)return"initial";a:{switch(A.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var t="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":t="%";break a}t=void 0}return t?""+A.value+t:"initial"};_.Hn(_.I(function(A){var t=A.data;A=_.U(_.hZ(!1,void 0,"VotqNe"));var f=A.next().value,X=A.next().value;_.oh(function(){_.XA.getInstance().triggerAction("yt-request-timely-shelf-state")});
var Q=_.yq(function(){var z,T,O=(z=_.C(t().rendererContext,_.GV))==null?void 0:(T=z.loggingDirectives)==null?void 0:T.trackingParams;if(O)return _.zV(O)},void 0,"AvMXxb");
_.J4(_.XA.getInstance(),{"yt-hide-shopping-timely-shelf":function(){X(!1);var z=_.Ws(),T=Q();z&&T&&_.ZN(z,[T])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){X(!0);var z=_.Ws(),T=Q();z&&T&&_.Vg(z,[T])})}});
var q=function(){var z;return(z=t().image)==null?void 0:z.image},e=function(){var z,T;
return!!((z=q())==null?0:(T=z.sources)==null?0:T.some(function(O){var c;return!!(O==null?0:(c=O.clientResource)==null?0:c.imageName)}))},G=function(){var z;
return((z=t().image)==null?void 0:z.height)||40},N=function(){var z;
return(z=t().image)==null?void 0:z.backgroundColor};
A={};return _.u("yt-shopping-timely-shelf-content-view-model",{el:_.ZY(_.W1(function(){return t().rendererContext})),
class:_.Ao("ytShoppingTimelyShelfContentViewModelHost",(A.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(t().image||t().avatar||t().line1)&&f()},A)),
style:_.U7({"--shopping-timely-shelf-content-padding-top":function(){var z;return lKW((z=t().padding)==null?void 0:z.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var z;return lKW((z=t().padding)==null?void 0:z.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var z;return lKW((z=t().padding)==null?void 0:z.start)},
"--shopping-timely-shelf-content-padding-end":function(){var z;return lKW((z=t().padding)==null?void 0:z.end)},
"--yt-shopping-timely-shelf-background-color":function(){return t().backgroundColor!==void 0?_.bY(t().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var z,T;return((T=(z=t().image)==null?void 0:z.cornerRadius)!=null?T:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return N()!==void 0?_.bY(N()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var z;return(((z=t().image)==null?void 0:z.width)||40)+"px"}})},_.u(_.P,{cond:q,
then:function(z){var T={};return _.u(_.YA,{preserveHeight:!0,preserveWidth:!0,height:G,data:z,alt:"",className:_.Ao("ytShoppingTimelyShelfContentViewModelImage",(T.ytShoppingTimelyShelfContentViewModelIcon=e,T))})}}),_.u(_.P1,{data:function(){return t().avatar}},{avatarViewModel:_.QK}),_.u("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.u(_.P1,{data:function(){return t().line1}},{shoppingContentLineViewModel:function(z){return _.u(_.M5,{data:z.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.u(_.P1,{data:function(){return t().line2}},{shoppingContentLineViewModel:function(z){return _.u(_.M5,{data:z.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.u("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.u(_.P1,{data:function(){var z;
return(z=t().button)!=null?z:[]}},{buttonViewModel:function(z){var T=z.data;
return _.u(_.nx,{data:T,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(O){T().onTap&&O.stopPropagation()}})}})))},"Go"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.PS}});_.NRF={};
_.NRF.YtdWatchBehavior=[_.g.YtRendererBehavior,_.iC.YtPlayerListenerBehavior,_.R4.YtRendererstamperBehavior,_.jD.YtActionHandlerBehavior,_.t$.YtPageBehavior,_.xa.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)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{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 _.Ka("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.M("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 _.Ka("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_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},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 _.M("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.M("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,reflectToAttribute:!0,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,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.cx("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.cx("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.M("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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, isSingleColumn)"},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 _.M("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.M("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.M("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.M("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("swatcheroo_enable_ghost_cards")||_.M("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.M("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(A,t,f){return A&&(t||!f)},
computeShowGhostRelated_:function(A,t,f){return A&&(t||!f)},
monitorScroll:!0,configureRendererStamper:function(){var A={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"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},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:_.Z6(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Z6(["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"||_.M("swa_prov_panels_ks")?A.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(A.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},A.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return A},
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 A=this;this.watchController=void 0;this.pageDisposeJobs=[function(){A.showMetadataPlaceholder_()},
function(){_.M("web_watch_dont_clear_comments")||A.clearComments_()},
function(){A.clearPlayerAds_()},
function(){A.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=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;_.M("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.M("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.wil(function(){return _.aM(A)},this.hostElement);
this.pageDisposeJobs.push(function(){A.youThereManager_.reset()});
_.M("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){A.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Rz;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;this.watchMetadata=void 0;_.M("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));_.M("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.JY(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(A){A&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:A}),A.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(A){_.M("kevlar_watch_flexy_theater_manager")&&(this.theater=A,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(A){!_.M("kevlar_watch_while_v2")&&!_.M("web_watch_pip")||A||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(A){this.active!==void 0&&(this.fullscreen=A,_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(A){this.active!==void 0&&(_.s9(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(A>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(A){this.initCsi_();this.updatePageData_(A)},
updatePageData_:function(A){var t=this;if(A)if(this.data===A){this.onPageLoadWithSameData_();var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data)}else this.data=A;this.playlist&&_.R7({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Wt("nw");this.loading=!1;_.jY(_.a6,function(){t.initDclkstatus_();var X,Q=((X=t.player)==null?void 0:X.getVideoData().cpn)||"";_.Ftx(function(q,e){_.RF3(q,e,Q)})})},
onPageLoadWithSameData_:function(){_.M("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 A=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!A);this.set("loadingData.playlistLoading",A&&A!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),A=this.watchNextSkeletonEl_.firstElementChild;A;)A.classList.remove("hidden"),A=A.nextElementSibling;if(_.M("kevlar_watch_frame0_loading_state")){var t,f,X;A=(t=this.loadingData)==null?void 0:(f=t.endpoint)==null?void 0:(X=f.watchEndpoint)==null?void 0:X.videoId;var Q;A&&(Q="https://i.ytimg.com/vi/"+A+"/frame0.jpg");_.sF(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var A=_.sF(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&A&&(A.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var t,f;(f=(t=this.watchMetadata).updateSentimentBarWidth)==
null||f.call(t);var X,Q;(Q=(X=this.watchMetadata).resize)==null||Q.call(X)}_.M("kevlar_watch_frame0_loading_state")&&(_.sF(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(A){var t=_.sF(this.hostElement).querySelector(A);t?_.g2(t,!1):_.K4(new _.xj("Overscroll monitor not found for component: ",A))},
removeSplitScrollMouseTrap:function(A){var t=_.sF(this.hostElement).querySelector(A);t?_.w2(t):_.K4(new _.xj("Disposal component for  overscroll monitoring not found: ",A))},
onLoadingChanged_:function(A){A?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.M("web_thumbnail_to_watch_transition")&&!_.Gmh||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.M("web_thumbnail_to_watch_transition")&&!_.Gmh||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(A){var t=this;A?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.a6.addLowPriorityJob(function(){t.onWindowResized_(_.uY(!0))})},
updateTheaterModeState_:function(A){if(!_.M("kevlar_watch_flexy_theater_manager")){A=A||this.fullWindowMode_;if(this.theater!==void 0||A)this.theater=A;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();A&&_.S8y()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var A=this.fullBleedPlayer?_.sF(this.hostElement).querySelector("#player-full-bleed-container"):_.sF(this.hostElement).querySelector("#player-container-inner");var t=this.getPlayerContainer(),f=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip");t.parentElement!==A&&(f&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.aM(this).appendTo(A,t))},
updateErrorScreenLocation:function(){var A=_.sF(this.hostElement).querySelector("#error-screen"),t=this.fullBleedPlayer?_.sF(this.hostElement).querySelector("#player-full-bleed-container"):_.sF(this.hostElement).querySelector("#player");A.parentElement!==t&&t.appendChild(A)},
deactivateMiniplayerAndResetPlayer:function(){var A=this;return _.l(function(t){if(t.nextAddress==1)return t.yield(_.Px().resolve(_.DS).deactivate(),2);A.updatePlayerLocation();_.LO(t)})},
updateCinematicsLocation:function(){var A=this.getElement("CINEMATICS");if(A){var t=this.getCinematicsLocationContainer();A.parentElement!==t&&t.appendChild(A)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.sF(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.sF(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(A,t,f){var X=document.documentElement.hasAttribute("dark"),Q=!X&&this.cinematicLightTheme;return f||A&&X||t&&X||(t||A)&&Q},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var A=this,t;(t=this.watchController)==null||t.setWatchNextResponse(this.data);_.M("kevlar_watch_flexy_comments_manager")||this.initComments_();_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Px().resolve(_.zT).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.M("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.a6.addLowPriorityJob(function(){_.r2(A.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.M("web_watch_start_chat_in_theater_mode")){var f,X,Q;if((f=this.data)==null?0:(X=f.contents)==null?0:(Q=X.twoColumnWatchNextResults)==null?0:Q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var q,e;((q=this.data)==null?0:(e=q.contents)==null?0:e.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(A){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData);A&&A.playabilityStatus&&(t=this.isVideoPlayable_(A.playabilityStatus,this.getPlayerOverlays_(this.data)),A=this.isLiveStreamOffline_(A.playabilityStatus),t&&!A||_.us(this,function(){_.Wt("pbu")}));
this.setPlayerAds_();_.r2(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(A,t){if((_.M("kevlar_watch_while_v2")||_.M("web_watch_pip"))&&this.playerData&&t)return this.playerData.videoDetails},
watchPageActiveChanged_:function(A){_.$I().dispatch(_.tIb(this.active));A?this.activate_():this.deactivate_()},
attached:function(){var A=this;this.watchController=new _.VE(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);_.M("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var t=_.aM(this);_.M("kevlar_disable_prepare_player")||
t.preparePlayer();_.M("kevlar_watch_flexy_playlist_manager")||_.Px().resolve(_.zT).setPlayer(t);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();t={"--ytd-watch-flexy-scrollbar-width":_.gl()+"px"};this.is==="ytd-watch-grid"&&(_.$I().dispatch(_.r0({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),t["--ytd-watch-flexy-sidebar-width"]=_.xqr+"px",t["--ytd-watch-grid-horizontal-page-margins"]=_.D$+"px",t["--ytd-watch-grid-columns-top-margins"]=
_.Dqf+"px",t["--ytd-watch-grid-min-player-height-medium"]="360px");!_.cx("kv_pl_mx_sz_ks")&&_.cx("kevlar_watch_max_player_width")&&(t["--ytd-watch-flexy-max-player-width-wide-screen"]=_.j6i+"px");_.cx("kevlar_watch_flexy_metadata_height")&&(t["--ytd-watch-flexy-space-below-player"]=_.YJH+"px");this.safeUpdateStyles(t);_.M("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.ey(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return A.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.sF(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var A=_.gl(),t=_.FT+A,f=t;this.fixedPanels&&(t+=_.xqr);var X=657+A;A=1327+A;_.sF(this.hostElement).querySelector("#two-column-query").query="(min-width: "+t+"px)";_.sF(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(X+"px), (min-height: 630px) and (min-width: ")+(t+"px) and (max-width: ")+(A+"px)");_.sF(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(A+"px)");
_.sF(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+f+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var A=_.sF(this.hostElement).querySelector("#miniplayer-bar").firstChild,t=this.squeezeback&&!_.M("web_watch_squeezeback_player_size_killswitch");return A&&A.active||this.theater||_.M("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||t||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Ln(NaN,NaN):_.VIb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.VIb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ee(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var A=this;this.onWindowResized_(_.uY());_.M("browse_skeleton_removal_on_watch_killswitch")||_.Ka("IS_SHELL_LOAD")&&_.nVW();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var t=_.aM(this);t.addEventListener("yt-player-updated",_.JY(this,this.onPlayerUpdated_));t.getPlayerPromise().then(function(f){A.playerApiReady_(f)});
_.M("kevlar_watch_flexy_playlist_manager")||(t=_.Px().resolve(_.zT),_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&t.addEventListener("yt-navigate",_.JY(this,this.onYtNavigate_)),t.setPlaylistComponent(_.sF(this.hostElement).querySelector("#playlist")),t.addEventListener("yt-playlist-data-updated",_.JY(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.a6.addLowPriorityJob(function(){_.s9(A.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.aM(this).removeEventListener("yt-player-updated",_.JY(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.M("kevlar_watch_flexy_playlist_manager")){var A=_.Px().resolve(_.zT);_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&A.removeEventListener("yt-navigate",_.JY(this,this.onYtNavigate_));
A.cancelVideoSkip();A.removeEventListener("yt-playlist-data-updated",_.JY(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.s9(this.hostElement,"yt-autonav-pause-player",!1);A=_.aq();_.M("kevlar_exit_fullscreen_leaving_watch")&&A&&_.KG(A)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(A){this.player&&this.player.updateVideoData({rvs:A.rvs})},
getPageContents:function(A){return A&&A.contents&&A.contents.twoColumnWatchNextResults&&A.contents.twoColumnWatchNextResults.results&&A.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(A){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A)},
onRetrieveLocation_:function(A,t){t.hasComments?t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):t.locationRetrieved("/related_ajax",void 0);A.stopPropagation()},
onSubscriptionChanged_:function(A,t){this.player&&(t?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.oVl("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.sF(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.sF(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(A){this.player=A;this.setPlayerState(A.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.M("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.M("kevlar_unified_player")||_.M("kevlar_player_new_bootstrap_adoption"))&&_.IJ()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(A,t){t=t===void 0?!0:t;_.aq()&&_.M("external_fullscreen")&&_.KG(document.documentElement);this.theaterRequested_=A;t&&_.nk("wide",A?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.kJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.s9(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(A){_.gL(A,typeof this.player),this.player&&_.gL(A,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var A;((A=this.player)==null?0:A.isFullscreen())?this.player.toggleFullscreen():_.kJ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(A,t){return this.loading?t:!!Object.keys(A).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(A){if(A){A=_.U(A);for(var t=A.next();!t.done;t=A.next())t=t.value,t.youThereRenderer&&_.rLi(this.youThereManager_,t.youThereRenderer)}},
setPlaylistData_:function(A){return A||{}},
userEngagementConfigDataChanged_:function(A){if(A)if(A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var t=this.youThereManager_;_.iX()<A.lowEngagementThresholdMs||_.XUQ(t,!0)}else A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.kJ(this.hostElement,"yt-autonav-pause-user-engagement",[A])},
isPlayerUnavailable_:function(A,t,f){return!!A&&!this.isVideoPlayable_(A,f)&&!t},
getPlayerOverlays_:function(A){return(A==null?void 0:A.playerOverlays)||null},
isVideoPlayable_:function(A,t){if(!A)return!1;var f=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",X=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",A)||this.get("errorScreen.ypcTrailerRenderer",A);A=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",A);var Q;t=t==null?void 0:(Q=t.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!f||!!X||!!A||!!t},
hasWatchNextResponseErrorRenderer:function(A){var t=this.getPageContents(A),f,X,Q,q,e;return!(A==null?0:(f=A.contents)==null?0:(X=f.twoColumnWatchNextResults)==null?0:X.secondaryResults)&&!!((Q=t[0])==null?0:(q=Q.itemSectionRenderer)==null?0:(e=q.contents[0])==null?0:e.backgroundPromoRenderer)},
isLiveStreamOffline_:function(A){return A?A.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(A,t,f){var X=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.M("web_no_skip_video_on_verification_checks")?(A==null?void 0:A.status)&&Q.includes(A.status):A&&A.status==="AGE_CHECK_REQUIRED";var q=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",A);q==void 0&&(q=!0);!f||this.isVideoPlayable_(A,this.getPlayerOverlays_(t))||
X||Q||!q||_.Px().resolve(_.zT).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.oOi()},
onPlayerFeedbackStartRequest_:function(A){_.kJ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:A}])},
onPlayerFeedbackArticleRequest_:function(A){_.kJ(this.hostElement,"yt-help-dialog-requested",[A])},
onPlayerYpcContentRequest_:function(){var A,t,f,X,Q,q,e,G,N=((A=this.data)==null?NaN:(t=A.contents)==null?NaN:(f=t.twoColumnWatchNextResults)==null?NaN:(X=f.secondaryResults)==null?NaN:(Q=X.secondaryResults)==null?NaN:(q=Q.offerModule)==null?NaN:(e=q.tvfilmOfferModuleRenderer)==null?NaN:(G=e.actionButtons)==null?NaN:G.length)-1;A=[".offerButton.buttonRenderer.",".actionButtons."+(N>=0?N:0)+".buttonRenderer."];t=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(f=t.next();!f.done;f=t.next())for(f=f.value,X=_.U(A),Q=X.next();!Q.done;Q=X.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+f+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.Qx(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(A){_.s9(this.hostElement,"yt-autonav-pause-player",A)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(A){A()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.s9(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(A)},
setPlayerState:function(A){_.$I().dispatch(_.eep(A))},
onPlayerSubscribe_:function(A){_.kJ(this.hostElement,"yt-player-subscribe",[A])},
onPlayerUnsubscribe_:function(A){_.kJ(this.hostElement,"yt-player-unsubscribe",[A])},
onPlayerAdYtShowToast_:function(A){_.kJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:A.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(A){if(A)return A},
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(A){return!_.M("web_watch_move_summary_to_sd")&&!!A},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.M("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var A,t,f,X;this.watchNextSecondaryResults=(A=this.data)==null?void 0:(t=A.contents)==null?void 0:(f=t.twoColumnWatchNextResults)==null?void 0:(X=f.secondaryResults)==null?void 0:X.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var A,t=(A=this.data)==null?void 0:A.engagementPanels;if(t==null?0:t.length){A=null;t=_.U(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;var X=void 0;if(((X=f.engagementPanelSectionListRenderer)==null?void 0:X.targetId)==="engagement-panel-structured-description"){A=f;break}}var Q,q,e;A=(Q=A)==null?void 0:(q=Q.engagementPanelSectionListRenderer)==null?void 0:(e=q.content)==null?void 0:e.structuredDescriptionContentRenderer;if(A==null?0:A.items){Q=
[];q=_.U(A.items);for(e=q.next();!e.done;e=q.next()){e=e.value;if(!_.M("sd_horizontal_list_show_nav_killswitch")){var G=X=f=t=A=void 0,N=void 0,z=(A=e.horizontalCardListRenderer)==null?void 0:(t=A.header)==null?void 0:(f=t.richListHeaderRenderer)==null?void 0:(X=f.navigationButton)==null?void 0:(G=X.buttonRenderer)==null?void 0:(N=G.command)==null?void 0:N.commandExecutorCommand;z&&z.commands&&(z.commands=z.commands.filter(function(T){return!_.C(T,_.reQ)}))}(!e.expandableVideoDescriptionBodyRenderer&&
!e.videoDescriptionHeaderRenderer||_.M("web_delhi_colorful_sd"))&&Q.push(e)}return{items:Q}}}},
constructWarning_:function(A){return{text:_.oC(A),type:"WARNING"}},
isPlaShelfEnabled_:function(A){if((this.get("adPlacements",A)||[]).length)return!0;A=this.get("playerAds",A)||[];return!(!A.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",A[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var A=this;_.s9(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var t=this.getScrollTop()>0;this.gestures_&&(t?this.gestures_.detach():this.gestures_.attach());t!==this.showFullerscreenEdu_&&_.M("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=t,_.aM(this).getPlayerPromise().then(function(f){f.updateFullerscreenEduButtonVisibility(A.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.s9(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var A=this;this.commentsReady=!1;_.a6.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.jY(_.a6,function(){A.setComments_()},1E3)},
setComments_:function(){if(!_.M("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Wt("cmi");_.a6.cancelJob(this.setCommentsJobId_);var A=this.getPageContents(this.data);if(A&&A.length){A=_.U(A);for(var t=A.next();!t.done;t=A.next())if(t=t.value,this.get("itemSectionRenderer.sectionIdentifier",t)==="comment-item-section"){this.comments=t.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.s9(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.M("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Wt("cmc")},
doRemoveComments_:function(){this.comments={};_.M("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.a6.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.a6.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(A,t){var f=_.C(t.endpoint,_.ZT);f&&(!(t=this.get("data.currentVideoEndpoint.watchEndpoint"))||f.videoId!==t.videoId||f.playlistId&&f.playlistId!==t.playlistId||f.index!==void 0&&f.index!==t.index||typeof f.startTimeSeconds!=="number"||(A.stopPropagation(),this.setScrollTop(0),_.aM(this).getPlayerPromise().then(function(X){var Q=f.startTimeSeconds;X.seekTo(Q);X.wakeUpControls();Q<X.getDuration()&&X.playVideo()})))},
updatePlayerStartTime_:function(){var A=_.bpj();"t"in A&&(A=_.Zpb(A.t),this.player.seekTo(A,!0))},
updateTitleFromWatchNext:function(A){A=this.getPageContents(A);var t,f;(A=_.dF(A==null?void 0:(t=A[0])==null?void 0:(f=t.videoPrimaryInfoRenderer)==null?void 0:f.title))&&_.s9(this.hostElement,"yt-update-title",A)},
updateTitle_:function(A){A=this.get("videoDetails.title",A)||"";_.s9(this.hostElement,"yt-update-title",A)},
syncWithRemoteVideo_:function(A,t,f){if(this.active&&this.player){var X=this.player.getVideoData();if(X.video_id===f&&(f=X.list,_.M("polymer_enable_mdx_queue")&&f&&f.startsWith("RQ")&&(f=void 0),X.video_id!==A||f!=t)){var Q;_.M("kevlar_player_watch_endpoint_navigation")?Q=_.jI5(_.I2u(A,t)):Q=this.buildWatchEndpoint_(A,t);_.s9(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(A,t,f){return _.g0(A,t,f)},
initDclkstatus_:function(){_.YF3()},
attachWatchPageSkeleton_:function(){var A=document.querySelector("#watch-page-skeleton");if(A){var t=A.querySelector("#primary-info"),f=A.querySelector("#secondary-info"),X=A.querySelector("#related");t&&_.sF(this.hostElement).querySelector("#info-skeleton").appendChild(t);f&&_.sF(this.hostElement).querySelector("#meta-skeleton").appendChild(f);X&&(_.sF(this.hostElement).querySelector("#related-skeleton").appendChild(X),this.watchNextSkeletonEl_=X);_.vf(A)}},
handlePlayerUpdated_:function(){_.aM(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(A,t){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof t!=="undefined"){var f=this.watchNextSkeletonEl_.children,X=A&&A.indexSplices.length?A.indexSplices[0].index:0;A=Math.min(this.watchNextShownItems.length,f.length);t||(X=0,A=f.length);if(!this.ghostCardsEnabled)for(t=X;t<A;t++)f[t].classList.add("hidden")}},
onPlayerFullscreenChange_:function(A){_.M("external_fullscreen")||_.kJ(this.hostElement,"yt-player-fullscreen",[A.fullscreen])},
onFullscreenChange_:function(A){this.fullscreen=A;this.gestures_&&this.gestures_.update(this.fullscreen);var t=_.aM(this);t.getPlayerPromise().then(function(f){f.setFauxFullscreen(!!_.aq())});
this.updateFullBleedElementLocations();A&&(t.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(A,t){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!t},
computeIsDonationShelfCollapsed_:function(A){return A},
computeShouldShowMerchShelf:function(A,t){return t&&!!A},
computeResponseHasComments:function(A){var t,f,X,Q,q;return!!(A==null?0:(t=A.contents)==null?0:(f=t.twoColumnWatchNextResults)==null?0:(X=f.results)==null?0:(Q=X.results)==null?0:(q=Q.contents)==null?0:q.some(function(e){var G;return(e==null?void 0:(G=e.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(A,t,f,X){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&X?!1:!!A&&!!Object.keys(A).length&&!t},
identity:_.I0,onWindowResized_:function(A){this.windowSize_=A;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(A){var t=this;A&&A.type!=="dataloaded"&&A.type!=="dataupdated"||_.aM(this).getPlayerPromise().then(function(f){var X=f.getPlayerState();X!==5&&X!==0&&(f=1/f.getVideoAspectRatio(),t.videoHeightToWidthRatio_!==f&&(t.videoHeightToWidthRatio_=f))})},
schedulePlayerSizeUpdate_:function(A){var t=this,f=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip"),X=function(){if(t.watchMetadata){var Q,q;(q=(Q=t.watchMetadata).resize)==null||q.call(Q)}_.aM(t).getPlayerPromise().then(function(e){if(_.M("kevlar_set_internal_player_size")){if(!f||!t.isMiniplayerActive()){var G=t.calculateCurrentPlayerSize_();e.setInternalSize(G.width,G.height)}}else e.setSize(NaN,NaN);_.M("kevlar_watch_while")&&t.updateWatchWhileScrollThreshold_()})};
A?X():_.NB(_.a6,X)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(A){this.set("data.survey",A.detail)},
onYtShowSurveyCommand_:function(A){this.set("data.survey",_.C(A,_.gOf).survey)},
onDownloadedVideoDeleted:function(A){var t=this,f,X;return _.l(function(Q){if(Q.nextAddress==1){if(!t.active||(f=t.playerData)==null||!f.offlineState||t.videoId!==A)return Q.return();(X=t.player)==null||X.stopVideo();_.$z().navigatingAwayFromWatchDeletedVideo=!0;_.Qx(_.ahq,t.hostElement);return Q.yield(_.$z().navigationFinishPromise,2)}_.$z().navigatingAwayFromWatchDeletedVideo=!1;_.LO(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var A;this.theater?A=_.ps(.5625*this.windowSize_.width,480,this.windowSize_.height-185):A=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==A&&(this.watchWhileScrollThreshold_=A,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var A=_.sF(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&A){var t=this.windowSize_.height>=624,f=this.active?this.getScrollTop():0;!A.active&&t&&f>=this.watchWhileScrollThreshold_?(A.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):A.active&&(!t||f<this.watchWhileScrollThreshold_&&!_.aq())&&(A.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var A=_.sF(this.hostElement).querySelector("#secondary-inner");if(A){var t=_.sF(this.hostElement).querySelector("#below"),f=_.sF(this.hostElement).querySelector("#secondary"),X=_.sF(this.hostElement).querySelector("#comments");X&&f&&t&&(this.defaultTwoColumnLayout?(A.appendChild(X),f.appendChild(A)):(t.appendChild(X),_.EK(t,A)))}}},
isTwoColumnsChanged_:function(A,t){if(A!==!0||t!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(A=_.sF(this.hostElement).querySelector("#secondary-inner"))){t=_.sF(this.hostElement).querySelector("#below");var f=_.sF(this.hostElement).querySelector("#secondary"),X=_.sF(this.hostElement).querySelector("#comments");X&&f&&t&&(this.isTwoColumns_?(A.appendChild(X),f.appendChild(A)):(t.appendChild(X),_.EK(t,A)))}}else{A=!_.M("web_watch_enable_fs_squeezeback_panels");
t=_.sF(this.hostElement).querySelector("#panels");var Q=_.sF(this.hostElement).querySelector("#alerts"),q=_.sF(this.hostElement).querySelector("#shopping-timely-shelf");f=_.sF(this.hostElement).querySelector("#playlist");X=_.sF(this.hostElement).querySelector("#related");var e=_.sF(this.hostElement).querySelector("#donation-shelf"),G=_.sF(this.hostElement).querySelector("#comments"),N=_.sF(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(Q=_.sF(this.hostElement).querySelector("#secondary-inner"),
A&&(Q.appendChild(t),Q.appendChild(f),this.aiCompanionEnabled&&N&&Q.appendChild(N)),Q.appendChild(e),Q.appendChild(X)):(A&&(_.jq(t,Q),_.jq(f,Q),this.aiCompanionEnabled&&N&&_.jq(N,Q),_.jq(q,f)),_.jq(e,Q),G&&_.jq(X,G));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.M("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.M("web_watch_enable_fs_squeezeback_panels")&&_.M("web_watch_theater_chat")){var A=_.sF(this.hostElement).querySelector("#chat-container"),t=this.theater&&!this.fullscreen||_.M("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&t?(t=_.sF(this.hostElement).querySelector("#columns"),(A==null?void 0:A.parentElement)!==t&&t.append(A),this.fixedPanels=!0):(this.fixedPanels=
!1,t=_.sF(this.hostElement).querySelector("#playlist"),A&&t?_.Y6(A,t):_.K4(new _.xj("Missing element when updating chat location",{"chatContainer defined":!!A,"playlist defined":!!t})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(A,t){return _.M("sw_metadata_vis_toggle_ks")?!0:!!A||!!t},
computeForceDarkPanelTheme:function(A){return _.M("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&A:!1},
safeUpdateStyles:function(A){try{_.Q_(this.hostElement,A)}catch(t){_.K4(t)}},
videoHeightToWidthRatioChanged_:function(A,t){t&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(A){this.videoHeightToWidthRatio_=1/A},
computeIsVerticalVideo_:function(A){return A>=1},
computeIsFourThreeToSixteenNineVideo_:function(A){return A<=.7501&&A>=.5624},
computeIsExtraWideVideo_:function(A){return A<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.aM(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.aM(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Qgy(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(A){var t=_.Bi(A)||0;_.ci(A,t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var A=_.Bi("yt-fullerscreen-edu-button-click-count")||0,t=_.Bi("yt-fullerscreen-edu-button-shown-count")||0,f=_.cx("external_fullscreen_button_shown_threshold"),X=A>=_.cx("external_fullscreen_button_click_threshold")||t>=f;_.aM(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(X)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(A,t){return t},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Px().resolve(_.zT).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var A=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.a6.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.a6.addLowPriorityJob(function(){A.fullHeightPanelPositionUpdateJobId=0;var t=_.sF(A.hostElement).querySelector("#secondary"),f=_.sF(A.hostElement).querySelector("#fixed-secondary");t=t.getBoundingClientRect();var X=t.width;A.swatcherooSqueezeback&&
(X+=_.D$);if(A.swatcherooSqueezeback){var Q=_.sF(A.hostElement).querySelector("#squeezeback-constraining-container");Q.style.width=X+"px";Q.style.flex="0 0 "+X+"px"}f.style.width=X+"px";f.style.left=t.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var A=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.a6.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.a6.addLowPriorityJob(function(){A.panelMaxHeightUpdateJob_=0;var t;!A.isTwoColumns_||A.theater||A.fullscreen?t=460:t=A.calculateNormalPlayerSize_().height;var f=t+"px";_.M("live_chat_taller_height")&&!A.theater&&(f="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.M("live_chat_medium_height")&&!A.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.M("live_chat_scaled_height")&&!A.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 238px)");A.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":t+"px","--ytd-watch-flexy-chat-max-height":f,"--ytd-watch-flexy-structured-description-max-height":t+"px","--ytd-watch-flexy-comments-panel-max-height":t+"px","--ytd-comments-engagement-panel-content-height":t+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(A){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",A)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.tl(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(A){var t=_.sF(this.hostElement).querySelector("#engagement-panel-scrim");A?t.addEventListener("tap",_.JY(this,this.onEngagementPanelScrimClick_)):t.removeEventListener("tap",_.JY(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(A){if(this.hostElement.contains(A)&&!this.scrollToAnimation_.isAnimating()){var t=A.offsetTop-24;A=A.offsetTop+A.offsetHeight+24;var f=this.getPageScrollingElement(),X=this.getScrollTop(),Q=X+f.clientHeight-56;if(t<X+56)t-=56;else if(A>Q)t=A-f.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtSignalActionScrollToComments:function(){var A=this.hostElement.querySelector("#comments");if(A&&!this.scrollToAnimation_.isAnimating()){A=A.offsetTop-56-24;if(_.M("kevlar_comment_teaser_scroll_to_midpoint")&&(A-=_.pn().height/3,A<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,A),500)}},
onYtEngagementPanelVisibleChanged:function(A,t,f){if(this.active&&this.trackEngagementPanelVisibility&&!_.a2l.includes(f)){if(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.r2(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var X=_.Px().resolve(_.rA);this.visiblePanelIdentifiers_.forEach(function(Q){Q!==f&&X.hidePanel({identifier:Q})})}this.visiblePanelIdentifiers_.add(f)}t!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&t!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(f);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(A){return A?"":"watch-active-metadata"},
computeNewMetadataClass:function(A){return A?"watch-active-metadata":""},
computeIsSingleColumn:function(A,t){return t&&!A},
computeFullBleedPlayer:function(A,t,f){return _.M("external_fullscreen")&&A||t||f},
computeDefaultLayout:function(A){return!A},
computeDefaultTwoColumnLayout:function(A,t){return!A&&t},
updatePanelsLocation:function(){if(_.M("web_watch_enable_fs_squeezeback_panels")){var A=_.sF(this.hostElement).querySelector("#below"),t=_.sF(this.hostElement).querySelector("#panels"),f=_.sF(this.hostElement).querySelector("#playlist"),X=_.sF(this.hostElement).querySelector("#chat-container"),Q=_.sF(this.hostElement).querySelector("#panels-full-bleed-container"),q=_.sF(this.hostElement).querySelector("#secondary-inner"),e=_.sF(this.hostElement).querySelector("#shopping-timely-shelf"),G=_.sF(this.hostElement).querySelector("#persistent-panel-container");
if(A&&t&&f&&X&&Q&&q&&e&&(this.aiCompanionEnabled?G:1)){var N=this.fullscreen||this.theater&&this.iMaxTheaterMode,z=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;z?(z=_.sF(this.hostElement).querySelector("#columns"),(X==null?void 0:X.parentElement)!==z&&z.append(X),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):N?Q.appendChild(X):this.isTwoColumns_?_.EK(q,X):_.EK(A,X);N?(Q.appendChild(t),Q.appendChild(f),
this.aiCompanionEnabled&&G&&Q.appendChild(G)):(this.isTwoColumns_?(_.EK(q,t),_.EK(q,f),this.aiCompanionEnabled&&G&&_.EK(q,G)):(_.EK(A,t),_.EK(A,f),this.aiCompanionEnabled&&G&&_.EK(A,G)),_.EK(A,e))}}},
swatcherooUpdatePanelsLocation:function(A,t,f,X,Q,q){if(this.is==="ytd-watch-grid"){t=A&&!t;this.swatcherooSplitScroll&&(t?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));f=_.sF(this.hostElement).querySelector("#panels");var e=_.sF(this.hostElement).querySelector("#playlist"),G=_.sF(this.hostElement).querySelector("#persistent-panel-container"),
N=_.sF(this.hostElement).querySelector("#fixed-secondary"),z=_.sF(this.hostElement).querySelector("#fixed-below"),T=_.sF(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),O=_.sF(this.hostElement).querySelector("#chat-container");q&&(A?(N.appendChild(f),this.aiCompanionEnabled&&G&&N.appendChild(G)):(z.appendChild(f),this.aiCompanionEnabled&&G&&z.appendChild(G)));Q?A?N.appendChild(O):z.appendChild(O):_.Y6(O,T);X?A?N.appendChild(e):z.appendChild(e):_.Y6(e,
T);this.swatcherooSplitScroll&&(A=_.sF(this.hostElement).querySelector("#secondary"),X=_.sF(this.hostElement).querySelector("#columns"),Q=_.sF(this.hostElement).querySelector("#fixed-columns-secondary"),t?Q.appendChild(A):X.appendChild(A))}},
computeMetadataSkinnyMode:function(A,t,f){return this.is!=="ytd-watch-grid"?!1:A?f:t},
computeWatchWhilePanelsActive:function(A,t){return A||t},
computeNoBorderOnChat:function(A){return _.M("web_watch_theater_chat_no_border")&&A},
computeLiveChatPresentAndExpanded:function(A,t){return A&&!t},
computePanelExpanded:function(A,t,f){return A||t||f},
computeSqueezeback:function(A,t,f,X){if(_.M("web_watch_enable_fs_squeezeback_panels")){var Q=this.iMaxTheaterMode&&this.theater,q=this.theater&&!this.iMaxTheaterMode;return(A||t||f)&&(Q||X)||t&&q}},
computeSwatcherooSqueezeback:function(A,t,f){return this.is!=="ytd-watch-grid"||_.M("ww_squeezeback_killswitch")?!1:A&&t&&f},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(A){_.aM(this).getPlayerPromise().then(function(t){var f;(f=t.changeMarkerVisibility)==null||f.call(t,_.C(A,_.Sp).isVisible||!1,_.C(A,_.Sp).entityKeys||[],_.C(A,_.Sp).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(A){this.liveChatCollapsed=A.detail;_.$I().dispatch(_.Hpr(A.detail));if(!this.liveChatCollapsed&&this.squeezeback){var t=_.Px().resolve(_.rA);this.visiblePanelIdentifiers_.forEach(function(f){t.hidePanel({identifier:f})})}},
onSetPlaylistCollapsed:function(A){_.M("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!A)},
provideRenderingData:function(A,t){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=t;break;case "PRIMARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=t);this.videoPrimaryInfoRendererValue=t==null?void 0:t.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=t);this.videoSecondaryInfoRendererValue=t==null?void 0:t.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
t;break;case "CLARIFICATION":this.clarifyBoxValue=t;break;case "LIVE_CHAT":this.conversationBar=t;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=t;break;case "PLAYLIST":this.externalPlaylistData_=t!=null?t:{};break;case "MERCH_SHELF":this.merchShelfValue=t==null?void 0:t.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=t;break;case "TICKET_SHELF":this.ticket=t;break;case "OFFER_MODULE":this.offerModule=t;break;case "LIMITED_STATE":this.limitedStateValue=
t;break;case "DONATION_SHELF":this.donation=t;break;case "ALERTS":this.alertsValue=t;break;case "COMMENTS":this.comments=t;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=t;break;case "ENGAGEMENT_PANELS":this.engagementPanels=t;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=t;break;case "RICH_GRID_RENDERER":this.richGridRendererData=t;break;case "EXPANDABLE_METADATA":this.expandableMetadata=t;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
t;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=t;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=t}},
toggleCinematicsActive:function(A){this.cinematicsActive=A},
isMiniplayerActive:function(){return _.Px().resolve(_.DS).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var yYc;_.WI3=function(A){if(!(0,_.CKi)(A))throw Error("K``"+String(A));};
_.vF3=function(A){return A.findIndex(function(t){return yYc.indexOf(t.tagName)>-1})>-1};
_.LIl=function(){var A=_.Px().resolve(_.on);_.Ux5(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(A.isFullscreenEnabled()?_.KG(document.documentElement):_.sz5(document.documentElement))};
yYc=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.uF=new Map;_.uF.set(32,59972);_.uF.set(27,50765);_.uF.set(70,60102);_.uF.set(76,60221);_.uF.set(77,60222);_.uF.set(74,60223);_.uF.set(84,60224);_.uF.set(38,61941);_.uF.set(40,61942);_.uF.set(73,62521);_.uF.set(67,62522);_.uF.set(80,63390);_.uF.set(78,63397);_.uF.set(75,59972);_.uF.set(188,63385);_.uF.set(190,63384);_.uF.set(36,63387);
_.uF.set(35,63386);_.uF.set(37,63388);_.uF.set(39,63389);_.uF.set(79,63423);_.uF.set(87,63424);_.uF.set(107,63426);_.uF.set(109,63425);_.uF.set(65,63428);_.uF.set(83,63430);_.uF.set(68,63429);_.uF.set(221,63431);_.uF.set(219,63432);_.uF.set(97,63439);_.uF.set(98,63440);_.uF.set(99,63441);_.uF.set(100,63442);_.uF.set(101,63443);_.uF.set(102,63444);_.uF.set(103,63445);_.uF.set(104,63446);_.uF.set(105,63447);_.zp=new Map;_.zp.set(80,63390);_.zp.set(78,63397);_.zp.set(188,63400);_.zp.set(190,63401);
_.zp.set(191,60765);_.zp.set(13,247917);_.Pv=new Map;_.Tp=new Map;
}catch(e){_._DumpException(e)}
try{
var $vc,Kty,gOl,wim;_.Zpw=function(A){return A.ui.guideIsVisibleButNotPersistent};
_.oOy=function(A){return A.ui.tabGesturesIsActive};
_.dvd=function(){var A=_.Bx("service_worker_scope");try{return navigator.serviceWorker.getRegistration(A)}catch(t){return Promise.reject(t)}};
_.SFc=function(A){return!(!A||!A.pushManager)};
$vc=function(){return _.dvd().then(_.SFc).catch(function(){return!1})};
_.Hp_=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?$vc():Promise.resolve(!1)};
_.a2m=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Kty=function(){var A,t,f;return _.l(function(X){switch(X.nextAddress){case 1:return X.yield(_.Az.getInstance(),2);case 2:A=X.yieldResult;if(!A){t=void 0;X.jumpTo(3);break}return X.yield(A.get("lmqf"),4);case 4:t=X.yieldResult;case 3:switch((f=t)||(f="SD"),f){case "HD":return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
gOl=function(A){var t,f,X;return _.l(function(Q){if(Q.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.M("disable_av1_setting")){var q=window.localStorage["yt-player-av1-pref"];q=q==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":q==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else q="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(t=A===q)return Q.jumpTo(2);X=f=A;return Q.yield(Kty(),3)}Q.nextAddress!=2&&(t=X===Q.yieldResult);return Q.return(t)})};var sO3;var kDd=_.oz.IronButtonState,rL2=(0,_.FX)(HTMLElement);
_.CN({_template:function(){if(sO3!==void 0)return sO3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;wim===void 0&&(wim=document.createElement("template"));var X=wim;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return sO3=A},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[kDd,_.Vt,_.dO,_.HY],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(A){var t=(0,_.FA)(this);t.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:A});t.shadowRoot.appendChild(A);return rL2.prototype._attachDom.call(this,A)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var A=this.contentElement;A&&A.selectedItem&&this._setSelectedItem(A.selectedItem)},
get contentElement(){for(var A=_.iS(this.$.content).getDistributedNodes(),t=0,f=A.length;t<f;t++)if(A[t].nodeType===Node.ELEMENT_NODE)return A[t]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(A){this._setSelectedItem(A.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(A){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)===this&&this.open()},
_selectedItemChanged:function(A){var t="";A?t=A.label||A.getAttribute("label")||A.textContent.trim():t="";this.value=t;this._setSelectedItemLabel(t)},
_computeMenuVerticalOffset:function(A,t){return t?t:A?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var A=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",A)}});_.sS=new _.UA("navigateAction");var AYy=new _.UA("formRenderer");var kM=function(){var A=_.uo.apply(this,arguments)||this;A.showInput=!1;return A};
_.R(kM,_.uo);_.J=kM.prototype;_.J.detached=function(){this.showInput&&window.removeEventListener("click",_.JY(this,this.closeOnOutsideClick_))};
_.J.stopPropagation_=function(A){this.showInput&&A.stopPropagation()};
_.J.closeOnOutsideClick_=function(A){this.closeOnOutsideClickCondition(A)&&(this.showInput=!1,window.removeEventListener("click",_.JY(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.J.closeOnOutsideClickCondition=function(){return!0};
_.J.closeOnOutsideClickHandler=function(){};
_.J.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.JY(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.J.openOnClickHandler=function(){};
_.J.showInputChanged=function(){};
_.J.setShowInput=function(A){this.showInput=A};
kM.prototype.setShowInput=kM.prototype.setShowInput;kM.prototype.showInputChanged=kM.prototype.showInputChanged;kM.prototype.openOnClickHandler=kM.prototype.openOnClickHandler;kM.prototype.openOnClick_=kM.prototype.openOnClick_;kM.prototype.closeOnOutsideClickHandler=kM.prototype.closeOnOutsideClickHandler;kM.prototype.closeOnOutsideClickCondition=kM.prototype.closeOnOutsideClickCondition;kM.prototype.closeOnOutsideClick_=kM.prototype.closeOnOutsideClick_;kM.prototype.stopPropagation_=kM.prototype.stopPropagation_;
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],kM.prototype,"showInput",void 0);_.V([_.UQ("click"),_.UQ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],kM.prototype,"stopPropagation_",null);_.V([_.ev("showInput"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean]),_.H("design:returntype")],kM.prototype,"showInputChanged",null);_.V([_.zh()],kM);_.tv_=[kM.prototype];var fKd;var XU3;var rl=function(){return _.F.apply(this,arguments)||this};
_.R(rl,_.F);_.J=rl.prototype;_.J.computePreselectedOption=function(A,t){return t===this.itemSelected_?A:void 0};
_.J.dataChanged_=function(){var A=this;this.preselectedSubreason=this.itemSelected_=-1;var t;(t=this.data)!=null&&t.key&&_.us(this,function(){var f,X=Number((f=A.data)==null?void 0:f.key);!Number.isNaN(X)&&(A.itemSelected_=X,f=(f=(A.data.items||[])[X])&&f.optionSelectableItemRenderer&&f.optionSelectableItemRenderer.preselectedIndex)&&(A.preselectedSubreason=f)})};
_.J.isSubReasonHidden_=function(A,t){return A!=t};
_.J.onTopItemSelected_=function(A,t){for(var f=_.sF(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),X=0,Q=f.length;X<Q;X++)f[X].select(0);_.kJ(this.hostElement,"yt-report-form-update",[t.item.value]);A.stopPropagation()};
_.J.onItemSelected_=function(A,t){_.kJ(this.hostElement,"yt-report-form-update",[t.item.value]);A.stopPropagation()};
_.J.getItem_=function(A){return A.serviceItem?A.serviceItem:A.navigationItem?A.navigationItem:A.optionSelectableItemRenderer?A.optionSelectableItemRenderer:null};
_.J.computeText_=function(A){return(A=this.getItem_(A))?this.ytRendererBehavior.getSimpleString(A.text):null};
_.J.validate=function(){return this.itemSelected_!==-1};
_.J.computeAriaLabel_=function(A){var t=_.dF(A.text);(A=A.accessibility&&A.accessibility.accessibilityData&&A.accessibility.accessibilityData.label)&&(t+=". "+A);return t};
_.J.computeItemSelected_=function(A){return A};
_.J.preventSelection_=function(A){A.stopPropagation();this.tooltipTapped=!0};
_.J.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.J.updateItemSelectedFromBinding=function(A){this.itemSelected_=A.detail.value};
_.J.save=function(){var A;this.validate()&&(A=this.data)!=null&&A.items&&(A=this.data.items[this.itemSelected_],A!=null&&A.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(A.optionSelectableItemRenderer.submitEndpoint)||_.Al(this.hostElement,[A.optionSelectableItemRenderer.submitEndpoint])))};
rl.prototype.onPaperRippleTransitionEnd_=rl.prototype.onPaperRippleTransitionEnd_;rl.prototype.dataChanged_=rl.prototype.dataChanged_;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],rl.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rl.prototype,"data",void 0);_.V([_.n({value:-1}),_.H("design:type",Number)],rl.prototype,"itemSelected_",void 0);
_.V([_.n({computed:"computeItemSelected_(itemSelected_)"}),_.H("design:type",Number)],rl.prototype,"value",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],rl.prototype,"restoreFocusOnClose",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],rl.prototype,"tooltipTapped",void 0);_.V([_.n({value:-1}),_.H("design:type",Number)],rl.prototype,"preselectedSubreason",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rl.prototype,"dataChanged_",null);_.V([_.UQ("transitionend"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rl.prototype,"onPaperRippleTransitionEnd_",null);_.V([_.WU({is:"yt-options-renderer",disableElementRegistration:!0})],rl);
_.Y(rl,"yt-options-renderer",function(){if(XU3===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;fKd===void 0&&(fKd=document.createElement("template"));var X=fKd;f.call(t,X.content.cloneNode(!0),A.content.firstChild);XU3=A}A=XU3;return A},{mode:2});var Qgd;var qQh;var JYQ;var ULm;var eFj;var Ghd;var AN=function(){return _.F.apply(this,arguments)||this};
_.R(AN,_.F);AN.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
AN.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
AN.prototype.onTap=function(A){if(this.hostElement.classList.contains("selected")||_.kJ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])A&&A.detail&&(A.detail.x||A.detail.y)&&_.sF(this.hostElement).querySelector("#target").blur(),(A=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),A={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:A?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.kJ(this.hostElement,"yt-share-panel-select-contact-action",[A])};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.V([_.n({observer:"onDataChanged"}),_.H("design:type",Object)],AN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.H("design:type",String)],AN.prototype,"componentTitle",void 0);_.V([_.lo("#thumbnail"),_.H("design:type",Object)],AN.prototype,"thumbnail",void 0);_.V([_.WU({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],AN);
_.Y(AN,"yt-enrolled-contact-renderer",function(){if(Ghd===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;eFj===void 0&&(eFj=document.createElement("template"));var X=eFj;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Ghd=A}A=Ghd;return A},{mode:2});var lKd;var NRc;var tN=function(){return _.F.apply(this,arguments)||this};
_.R(tN,_.F);tN.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
tN.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
tN.prototype.onTap=function(A){if(this.hostElement.classList.contains("selected")||_.kJ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])A&&A.detail&&(A.detail.x||A.detail.y)&&_.sF(this.hostElement).querySelector("#target").blur(),(A=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),A={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:A?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.kJ(this.hostElement,"yt-share-panel-select-contact-action",[A])};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.V([_.n({observer:"onDataChanged"}),_.H("design:type",Object)],tN.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.H("design:type",String)],tN.prototype,"componentTitle",void 0);_.V([_.lo("#thumbnail"),_.H("design:type",Object)],tN.prototype,"thumbnail",void 0);_.V([_.WU({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],tN);
_.Y(tN,"yt-suggested-contact-renderer",function(){if(NRc===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;lKd===void 0&&(lKd=document.createElement("template"));var X=lKd;f.call(t,X.content.cloneNode(!0),A.content.firstChild);NRc=A}A=NRc;return A},{mode:2});var fC=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-share-panel-reset-action":"onReset"};return A};
_.R(fC,_.F);fC.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"}}}}}};
fC.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.kJ(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
fC.prototype.onReset=function(){for(var A=_.sF(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),t=A.length-1;t>=0;t--)A[t].classList.toggle("selected")};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],fC.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({observer:"onDataChanged"}),_.H("design:type",Object)],fC.prototype,"data",void 0);
_.V([_.WU({is:"yt-contact-section-renderer",disableElementRegistration:!0})],fC);
_.Y(fC,"yt-contact-section-renderer",function(){if(ULm===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;JYQ===void 0&&(JYQ=document.createElement("template"));var X=JYQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ULm=A}A=ULm;return A},{mode:2});var Xr=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return A};
_.R(Xr,_.F);_.J=Xr.prototype;_.J.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"}}}};
_.J.onYtRefreshFormCommand=function(A){var t;(A=_.C((t=_.C(A,_.wrl))==null?void 0:t.formRenderer,AYy))&&this.set("data",A)};
_.J.reset=function(){var A=_.sF(this.hostElement).querySelector("#fields").children;A=_.U(A);for(var t=A.next();!t.done;t=A.next())t=t.value,t.reset&&t.reset()};
_.J.getForm=function(){var A={},t=_.sF(this.hostElement).querySelector("#fields").children;t=_.U(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;if(!f.validate())return null;A[f.data.key]=f.value}return A};
_.J.submitFormFields=function(){if(this.fields)for(var A=_.U(this.fields),t=A.next();!t.done;t=A.next())t=t.value,t.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?t.save():t.nodeName==="YT-OPTIONS-RENDERER"&&t.save()};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Xr.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Xr.prototype,"data",void 0);_.V([_.NL("#fields > *"),_.H("design:type",Array)],Xr.prototype,"fields",void 0);
_.V([_.WU({is:"yt-form-renderer",disableElementRegistration:!0})],Xr);
_.Y(Xr,"yt-form-renderer",function(){if(qQh===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Qgd===void 0&&(Qgd=document.createElement("template"));var X=Qgd;f.call(t,X.content.cloneNode(!0),A.content.firstChild);qQh=A}A=qQh;return A},{mode:2});var uDy;var QI=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return A};
_.R(QI,_.F);QI.prototype.onCheckboxChange=function(A){this.data&&(A=(this.checked=_.oO(A).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}})};
QI.prototype.handleUpdateCheckboxCommand=function(A){(A=_.C(A,_.z27))&&this.data&&this.data.id===A.id&&(this.set("data.disabled",A.disabled),this.set("data.title",A.title))};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],QI.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],QI.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],QI.prototype,"checked",void 0);_.V([_.y_({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],QI);
_.Y(QI,"ytd-settings-checkbox-renderer",function(){if(uDy!==void 0)return uDy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return uDy=A},{mode:1});var zF_;var q6=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return A};
_.R(q6,_.F);q6.prototype.dataChanged=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return A.radio.removeAttribute("checked"),!A.data||!A.data.id||A.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.a2m()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(t=A.data&&A.data.id)?f.yield(gOl(A.data.id),4):f.jumpTo(3):(A.set("data.hidden",!0),f.jumpTo(0));f.nextAddress!=3&&(t=f.yieldResult);t&&_.kJ(A.hostElement,"yt-select-settings-radio-option",[A.data.id]);_.LO(f)})};
q6.prototype.onButtonChanged=function(A){_.oO(A).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.Px().resolve(_.i2).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.kJ(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
q6.prototype.onSelectOption=function(A){this.data&&this.data.id&&(this.data.id===A?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
q6.prototype.dataChanged=q6.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],q6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.lo("#radio"),_.H("design:type",Object)],q6.prototype,"radio",void 0);_.V([_.n(),_.H("design:type",Object)],q6.prototype,"data",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],q6.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],q6);
_.Y(q6,"ytd-settings-radio-option-renderer",function(){if(zF_!==void 0)return zF_;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return zF_=A},{mode:1});var Po8;var JN=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return A};
_.R(JN,_.F);
JN.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"}}}};
JN.prototype.handleUpdateTextCommand=function(A){(A=_.C(A,_.PaK))&&this.data&&this.data.id===A.id&&this.set("data",A)};
JN.prototype.handleUpdateConnectedAppRendererCommand=function(A){if(_.C(A,_.O9C)&&this.data){var t,f;if(A=(t=_.C(A,_.O9C))==null?void 0:(f=t.newConnectedAppRenderer)==null?void 0:f.connectedAppRenderer)this.data=A}};
JN.prototype.computeConnectedAppStyle=function(A){return A.style?A.style.toLowerCase().replace(/_/g,"-"):""};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],JN.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],JN.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.H("design:type",String)],JN.prototype,"connectedAppStyle",void 0);_.V([_.y_({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],JN);
_.Y(JN,"ytd-connected-app-renderer",function(){if(Po8!==void 0)return Po8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Po8=A},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.oy("iuT5Oc");

_.dw();
}catch(e){_._DumpException(e)}
try{
_.oy("NSzT5");
var yYF=function(){var A;return _.l(function(t){if(t.nextAddress==1)return t.yield(_.Px().resolve(_.re),2);(A=t.yieldResult)&&A.pauseVideo();_.LO(t)})};var vFj=_.dS(["https://portraits.google.com"]),LIf=_.dS(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),pUb=_.dS(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),EFH=_.OP(vFj),nFQ=_.I(function(A){function t(T){var O;if(T=(O=T.detail)==null?void 0:O.endpoint){O=_.C(T,_.GD);var c;O&&((c=O.browseId)==null?0:c.startsWith("UC"))&&O.browseId!==Q()&&(_.M6("creator_chatbots-panel-persistent"),N.removeEventListener("yt-navigate-start",t))}}
var f=A.usePlayerHeight;var X=A.isPersistentPanel;var Q=A.creatorChannelId;var q=_.ZY(function(T){var O=Q();O=_.OP(LIf,O);_.At(T,1,O)}),e=function(){var T,O,c;
return _.l(function(B){return B.nextAddress==1?B.yield(_.Px().resolve(_.re),2):(T=B.yieldResult)?B.return({video_id:(c=(O=T.getVideoData())==null?void 0:O.video_id)!=null?c:"",timestamp_sec:T.getCurrentTime().toString()}):B.return({})})};
_.TU("message",function(T){var O,c,B,h,W,L;return _.l(function(E){if(E.nextAddress==1){if((O=X)==null?0:O())return E.return();if(T.origin!==EFH.toString())return console.warn("Received message from untrusted origin:",T.origin),E.return();c=T.data;if(typeof c!=="object"||c===null||!c.action)return E.return();if(c.action==="pause")return E.yield(yYF(),0);if(c.action!=="getYouTubeContext"||!T.source)return E.jumpTo(0);B=T.source;h=B.postMessage;W=JSON;L=W.stringify;return E.yield(e(),7)}h.call(B,L.call(W,
{youTubeContext:E.yieldResult}),{targetOrigin:T.origin});return E.jumpTo(0)})});
var G=function(){var T,O;(T=q.value)==null||(O=T.contentWindow)==null||O.postMessage("ep_closed",EFH.toString())};
_.TU("yt-page-type-changed",function(){if(X==null?0:X()){var T;((T=_.Px().resolve(_.HO).getCurrentPage())==null?void 0:T.pageSubtype)!=="channels"&&(T=document.getElementById("creator_chatbots-panel-persistent"))&&(T.style.display="none")}});
var N=_.Px().resolve(_.V2),z;(z=N)==null||z.addEventListener("yt-navigate-start",t);_.dD(function(){var T;(T=N)==null||T.removeEventListener("yt-navigate-start",t)});
return _.u("div",{class:"ytprotoCreatorChatbotsAppHost",style:_.U7({height:function(){return(f==null?0:f())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.u(_.rYd,{id:function(){return(X==null?0:X())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:G,header:function(){return _.u("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.u("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator's Portrait"),_.u(_.lO,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.u(_.hN,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var T=_.Vb("https://portraits.google.com/gallery?ytChannelId="+Q());T&&_.tt(window,T,"_blank");G()}})},
content:function(){return _.u("iframe",{el:q,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+EFH.toString()})}}))},"Ho"),DLH=_.I(function(A){var t=A.creatorChannelId;
var f=_.ZY(function(Q){var q=t();q=_.OP(pUb,q);_.At(Q,1,q)}),X=_.UX(_.er(),{veType:281629});
return _.u("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.u(_.rYd,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.u("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.u("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator's Portrait"),_.u(_.lO,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.u("iframe",{el:f,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.u("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.u(_.hN,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var Q=_.Vb("https://portraits.google.com/gallery?ytChannelId="+t());Q&&_.tt(window,Q,"_blank");yYF();X&&_.FR(_.er(),{visualElement:X})},
"client-ve-type":281629}),_.u("div",null,"This will take you to Google Portraits"))}}))},"Io");var FIF,IKl,xLb;FIF=_.dS(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);IKl=_.OP(FIF);
_.qFy=function(A){A=A===void 0?"":A;_.M6("creator_chatbots-entry-point");_.M6("creator_chatbots-panel");_.cv(IKl);_.CC("ytd-watch-metadata #top-level-buttons-computed",function(t){document.getElementById("creator_chatbots-entry-point")||(_.Bv({element:t,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.u(xLb,{creatorChannelId:A})}),_.kh3("creator_chatbots-panel",function(){return _.u(nFQ,{usePlayerHeight:!0,
creatorChannelId:A})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.JLi=function(A){A=A===void 0?"":A;_.M6("creator_chatbots-panel");_.CC("ytd-watch-metadata #top-level-buttons-computed",function(){_.kh3("creator_chatbots-panel",function(){return _.u(DLH,{creatorChannelId:A})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
xLb=_.I(function(A){var t=A.creatorChannelId;var f=function(){_.kh3("creator_chatbots-panel",function(){return _.u(nFQ,{usePlayerHeight:!0,creatorChannelId:t})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.u("div",{class:"ytd-menu-renderer"},_.u(_.Lx,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:f}},
icon:function(){return _.u(_.el,{icon:"SPARK"})}}))},"Jo");
_.dGw=function(A,t){A=A===void 0?"":A;t=t===void 0?!1:t;var f;return _.l(function(X){f=document.getElementById("creator_chatbots-panel-persistent");return!t||f?(!t&&f&&f.style.display==="none"&&(f.style.display="block"),X.jumpTo(0)):X.yield(new Promise(function(Q){_.CC("ytd-app",function(q){_.Bv({element:q,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.u(nFQ,
{isPersistentPanel:!0,creatorChannelId:A})});
Q()})}),0)})};
_.dw();
}catch(e){_._DumpException(e)}
try{
_.oy("L3n37");
var cYy=function(A){return A.watch.isLearningJourneyActive},BRy=_.Xl(115994),MvQ=_.Xl(115993),Cor=function(A,t,f){var X=this;
var Q=f.dragDownAction;this.layer=0;this.JSC$23671_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return X.dragDownAction()}}}};
this.JSC$23671_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return X.dragDownAction()}}}};
this.fullscreen=!1;var q=_.er();_.Yz(q,BRy,this.layer);_.Yz(q,MvQ,this.layer);this.dragDownAction=function(){Q();_.FR(q,{visualElement:X.fullscreen?BRy:MvQ})};
this.gesture=new _.IL(A,t,this.getConfig(!1),"pandown");this.attach()};
Cor.prototype.attach=function(){this.gesture.attach()};
Cor.prototype.detach=function(){this.gesture.detach()};
Cor.prototype.update=function(A){this.fullscreen=A;var t=this.gesture;A=this.getConfig(A);t.config=A};
Cor.prototype.getConfig=function(A){return A?this.JSC$23671_watchFullScreenConfig:this.JSC$23671_watchConfig};var hFb=function(A){_.N6.call(this);var t=this;this.rootElement=A;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return t.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(f){t.initOrDisposeActiveModules(f)}));
this.onAttached()};
_.R(hFb,_.N6);_.J=hFb.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(A){return this.rootElement.getElement(A)};
_.J.setPlayerResponse=function(A){this.playerResponse=A;this.publish("PLAYER_RESPONSE_UPDATED",A)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(A){this.watchNextResponse===A?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=A,this.publish("WATCH_NEXT_RESPONSE_UPDATED",A))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(A,t){var f=this;if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var X={};_.J4(_.XA.getInstance(),(X[A]=t,X),this.getRoot())}else this.actionHandlers.has(A)||(this.actionHandlers.set(A,[]),X={},_.J4(_.XA.getInstance(),(X[A]=function(){var Q=_.Hu.apply(0,arguments);return(f.actionHandlers.get(A)||[]).map(function(q){return q.apply(null,_.YV(Q))})},X),this.getRoot())),this.actionHandlers.get(A).push(t)};
_.J.unregisterActionHandler=function(A){if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.UI(_.XA.getInstance(),(t[A]=!0,t),this.getRoot())}else(t=this.actionHandlers.get(A))?(t.pop(),t.length===0&&(t={},_.UI(_.XA.getInstance(),(t[A]=!0,t),this.getRoot()),this.actionHandlers.delete(A))):_.K4(new _.xj("Attempted to unregister an action handler which is not registered.",A))};
_.J.addPageDisposeJob=function(A){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.pp5(this.rootElement.pageDisposeJobs,A)};
_.J.removePageDisposeJob=function(A){this.rootElement.pageDisposeJobs&&_.o0(this.rootElement.pageDisposeJobs,A)};
_.J.dispatchEvent=function(A,t){_.s9(this.rootElement,A,t)};
_.J.provideRenderingData=function(A,t){this.rootElement.provideRenderingData(A,t)};
_.J.scrollWatchTo=function(A,t){var f;(f=this.watchScrollManager)==null||f.scrollWatchTo(A,t)};
_.J.focusOnPlayer=function(){var A=this.getElement("PLAYER");_.us(A,function(){if(A&&A.firstElementChild){var t=A.querySelector(".html5-video-player");t&&(_.Rd(_.Px().resolve(_.PO)),t.focus())}else _.K4(Error("hp"))})};
var RFj=function(A){var t=!!A.rootElement.theater,f=!!A.rootElement.fullscreen,X;(X=A.watchCinematicManager)==null||_.g7i(X,f,t)};
_.J=hFb.prototype;_.J.subscribeToActiveChanged=function(A,t){t=t===void 0?!0:t;var f=_.ar(_.$I(),cYy,function(X){A(X)});
t&&A(cYy(_.$I().getState()));return f};
_.J.isActive=function(){return cYy(_.$I().getState())};
_.J.onAttached=function(){var A=_.M("external_fullscreen");_.M("use_unified_flag_accessor")&&(A=_.Px().resolve(_.dph).retriever.getFlag(_.vtp));(A||_.Ka("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.J.initPersistentModules=function(){if(_.M("kevlar_watch_flexy_theater_manager")){var A=new _.h1i(this);_.hV(this,A)}A=new _.ltH(this);_.hV(this,A);A=new _.L0(this);_.hV(this,A);A=new _.qpf(this);_.hV(this,A);A=new _.F2(this);_.hV(this,A);A=new _.p0(this);_.hV(this,A);_.M("kevlar_watch_flexy_playlist_manager")&&(A=new _.d_j(this),_.hV(this,A))};
_.J.initOrDisposeActiveModules=function(A){A?(this.watchScrollManager=new _.I3(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.bZi(this)),this.activeModules.push(new _.CSb(this)),this.activeModules.push(new _.gIl(this)),this.activeModules.push(new _.cRH(this)),_.M("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.Wxx(this)),this.activeModules.push(new _.EIi(this)),_.M("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.sCx(this)),
_.M("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.j7b(this)),_.M("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.dJ3(this),this.activeModules.push(this.watchCinematicManager),RFj(this)),_.M("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Ity(this)),_.M("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.U_i(this)),A=_.M("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.M("kevlar_watch_flexy_comments_manager")&&
!A&&this.activeModules.push(new _.ARj(this)),_.M("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.ZGu(this)),this.activeModules.push(new _.LPu(this)),this.activeModules.push(new _.yRF(this)),_.M("web_enable_timely_actions")&&this.activeModules.push(new _.DJi(this)),_.M("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.fNl(this)),_.M("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.aTl(this)),_.M("web_fullscreen_components")&&
this.activeModules.push(new _.EJj(this)),_.M("web_player_rtr_ctrls")&&this.activeModules.push(new _.Q7l(this))):(_.G_(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.J.disposeInternal=function(){_.N6.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.PV.Object.defineProperties(hFb.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var mLl={},bN3=["learning-journey-engagement-panel","PAlearning_chat"];
mLl.YtdLearningJourneyWatchBehavior=[_.g.YtRendererBehavior,_.iC.YtPlayerListenerBehavior,_.R4.YtRendererstamperBehavior,_.jD.YtActionHandlerBehavior,_.t$.YtPageBehavior,_.xa.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 _.Ka("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.M("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 _.Ka("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 _.M("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.M("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 _.cx("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.cx("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_rounded_player_large")||_.M("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 _.M("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.M("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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!0}}},
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:_.Z6(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Z6(["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,learningChatEngagementPanel:!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 A=this;this.watchController=void 0;this.pageDisposeJobs=[function(){A.showMetadataPlaceholder_()},
function(){_.M("web_watch_dont_clear_comments")||A.clearComments_()},
function(){A.clearPlayerAds_()},
function(){A.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.M("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.M("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.wil(function(){return _.aM(A)},
this.hostElement);
this.pageDisposeJobs.push(function(){A.youThereManager_.reset()});
_.M("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){A.resetFullerscreenEduButtonForNewPlayback_()}));
_.M("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Rz;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;_.M("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.M("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));_.M("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.JY(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(A){A&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:A}),A.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(A){_.M("kevlar_watch_flexy_theater_manager")&&(this.theater=A,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.M("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(A){!_.M("kevlar_watch_while_v2")&&!_.M("web_watch_pip")||A||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(A){this.active!==void 0&&(this.fullscreen=A,_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(A){this.active!==void 0&&(_.s9(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(A>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(A){this.initCsi_();this.updatePageData_(A)},
updatePageData_:function(A){var t=this;if(A)if(this.data===A){this.onPageLoadWithSameData_();var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data)}else this.data=A;this.playlist&&_.R7({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Wt("nw");this.loading=!1;_.jY(_.a6,function(){t.initDclkstatus_();var X,Q=((X=t.player)==null?void 0:X.getVideoData().cpn)||"";_.Ftx(function(q,e){_.RF3(q,e,Q)})})},
onPageLoadWithSameData_:function(){_.M("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 A=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!A);this.set("loadingData.playlistLoading",A&&A!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),A=this.watchNextSkeletonEl_.firstElementChild;A;)A.classList.remove("hidden"),A=A.nextElementSibling;var t,f,X;A=(t=this.loadingData)==null?void 0:(f=t.endpoint)==null?void 0:(X=f.watchEndpoint)==null?void 0:X.videoId;var Q;A&&(Q="https://i.ytimg.com/vi/"+A+"/frame0.jpg");_.sF(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var A=_.sF(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&A&&(A.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var t,f;(f=(t=this.watchMetadata).updateSentimentBarWidth)==
null||f.call(t);var X,Q;(Q=(X=this.watchMetadata).resize)==null||Q.call(X)}_.sF(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(A){var t=_.sF(this.hostElement).querySelector(A);t?_.g2(t,!1):_.K4(new _.xj("Overscroll monitor not found for component: ",A))},
removeSplitScrollMouseTrap:function(A){var t=_.sF(this.hostElement).querySelector(A);t?_.w2(t):_.K4(new _.xj("Disposal component for  overscroll monitoring not found: ",A))},
onLoadingChanged_:function(A){A?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(A){var t=this;A?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.a6.addLowPriorityJob(function(){t.onWindowResized_(_.uY(!0))})},
updateTheaterModeState_:function(A){if(!_.M("kevlar_watch_flexy_theater_manager")){A=A||this.fullWindowMode_;if(this.theater!==void 0||A)this.theater=A;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();A&&_.S8y()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var A=this.theater;_.M("external_fullscreen")&&this.fullscreen&&(A=!0);A=A?_.sF(this.hostElement).querySelector("#player-full-bleed-container"):_.sF(this.hostElement).querySelector("#player-container-inner");var t=this.getPlayerContainer(),f=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip");t.parentElement!==A&&(f&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.aM(this).appendTo(A,t),A.appendChild(_.sF(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var A=this;return _.l(function(t){if(t.nextAddress==1)return t.yield(_.Px().resolve(_.DS).deactivate(),2);A.updatePlayerLocation();_.LO(t)})},
updateCinematicsLocation:function(){var A=this.getElement("CINEMATICS");if(A){var t=this.getCinematicsLocationContainer();A.parentElement!==t&&t.appendChild(A);var f;(f=this.watchController)==null||RFj(f)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.sF(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.sF(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(A,t){var f=document.documentElement.hasAttribute("dark"),X=!f&&this.cinematicLightTheme;return A&&f||t&&f||(t||A)&&X},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data);_.M("kevlar_watch_flexy_comments_manager")||this.initComments_();_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Px().resolve(_.zT).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.M("web_watch_start_chat_in_theater_mode")){var t,
f,X;if((t=this.data)==null?0:(f=t.contents)==null?0:(X=f.twoColumnWatchNextResults)==null?0:X.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Q,q;((Q=this.data)==null?0:(q=Q.contents)==null?0:q.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(A){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData);A&&A.playabilityStatus&&(t=this.isVideoPlayable_(A.playabilityStatus,this.getPlayerOverlays_(this.data)),A=this.isLiveStreamOffline_(A.playabilityStatus),t&&!A||_.us(this,function(){_.Wt("pbu")}));
this.setPlayerAds_();_.r2(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(A){_.$I().dispatch(_.r0({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));A?this.activate_():this.deactivate_()},
attached:function(){var A=this;this.watchController=new hFb(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.M("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var t=_.aM(this);_.M("kevlar_disable_prepare_player")||t.preparePlayer();_.M("kevlar_watch_flexy_playlist_manager")||_.Px().resolve(_.zT).setPlayer(t);this.updatePageMediaQueries();t={"--ytd-watch-flexy-scrollbar-width":_.gl()+
"px"};!_.cx("kv_pl_mx_sz_ks")&&_.cx("kevlar_watch_max_player_width")&&(t["--ytd-watch-flexy-max-player-width-wide-screen"]=_.j6i+"px");_.cx("kevlar_watch_flexy_metadata_height")&&(t["--ytd-watch-flexy-space-below-player"]=_.YJH+"px");this.safeUpdateStyles(t);_.M("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Cor(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return A.onPlayerTouchPanDown_()}}));
_.M("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.sF(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var A=_.gl(),t=_.FT+A,f=t;this.fixedPanels&&(t+=_.xqr);var X=657+A;A=1327+A;_.sF(this.hostElement).querySelector("#two-column-query").query="(min-width: "+t+"px)";_.sF(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(X+"px), (min-height: 630px) and (min-width: ")+(t+"px) and (max-width: ")+(A+"px)");_.sF(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(A+"px)");
_.sF(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+f+"px)"},
calculateCurrentPlayerSize_:function(){var A=_.sF(this.hostElement).querySelector("#miniplayer-bar").firstChild;return A&&A.active||this.theater||_.M("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Ln(NaN,NaN):_.VIb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.VIb(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ee(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var A=this;this.onWindowResized_(_.uY());_.M("browse_skeleton_removal_on_watch_killswitch")||_.Ka("IS_SHELL_LOAD")&&_.nVW();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var t=_.aM(this);t.addEventListener("yt-player-updated",_.JY(this,this.onPlayerUpdated_));t.getPlayerPromise().then(function(f){A.playerApiReady_(f)});
_.M("kevlar_watch_flexy_playlist_manager")||(t=_.Px().resolve(_.zT),_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&t.addEventListener("yt-navigate",_.JY(this,this.onYtNavigate_)),t.setPlaylistComponent(_.sF(this.hostElement).querySelector("#playlist")),t.addEventListener("yt-playlist-data-updated",_.JY(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.a6.addLowPriorityJob(function(){_.s9(A.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.aM(this).removeEventListener("yt-player-updated",_.JY(this,this.onPlayerUpdated_));if(!_.M("kevlar_watch_flexy_playlist_manager")){var A=_.Px().resolve(_.zT);_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&A.removeEventListener("yt-navigate",_.JY(this,this.onYtNavigate_));A.cancelVideoSkip();A.removeEventListener("yt-playlist-data-updated",_.JY(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.M("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.s9(this.hostElement,"yt-autonav-pause-player",!1);A=_.aq();_.M("kevlar_exit_fullscreen_leaving_watch")&&A&&_.KG(A)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(A){this.player&&this.player.updateVideoData({rvs:A.rvs})},
getPageContents:function(A){return A&&A.contents&&A.contents.twoColumnWatchNextResults&&A.contents.twoColumnWatchNextResults.results&&A.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(A){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A)},
onRetrieveLocation_:function(A,t){t.hasComments?t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):t.locationRetrieved("/related_ajax",void 0);A.stopPropagation()},
onSubscriptionChanged_:function(A,t){this.player&&(t?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.oVl("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.sF(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.sF(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(A){this.player=A;this.setPlayerState(A.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.M("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.M("kevlar_unified_player")||_.M("kevlar_player_new_bootstrap_adoption"))&&_.IJ()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(A,t){t=t===void 0?!0:t;_.aq()&&_.M("external_fullscreen")&&_.KG(document.documentElement);this.theaterRequested_=A;t&&_.nk("wide",A?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.M("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.kJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.s9(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(A){_.gL(A,typeof this.player),this.player&&_.gL(A,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var A;((A=this.player)==null?0:A.isFullscreen())?this.player.toggleFullscreen():_.kJ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(A,t){return this.loading?t:!!Object.keys(A).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(A){if(A){A=_.U(A);for(var t=A.next();!t.done;t=A.next())t=t.value,t.youThereRenderer&&_.rLi(this.youThereManager_,t.youThereRenderer)}},
setPlaylistData_:function(A){return A||{}},
userEngagementConfigDataChanged_:function(A){if(A)if(A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var t=this.youThereManager_;_.iX()<A.lowEngagementThresholdMs||_.XUQ(t,!0)}else A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.kJ(this.hostElement,"yt-autonav-pause-user-engagement",[A])},
isPlayerUnavailable_:function(A,t,f){return!!A&&!this.isVideoPlayable_(A,f)&&!t},
getPlayerOverlays_:function(A){return(A==null?void 0:A.playerOverlays)||null},
isVideoPlayable_:function(A,t){if(!A)return!1;var f=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",X=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",A)||this.get("errorScreen.ypcTrailerRenderer",A);A=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",A);var Q;t=t==null?void 0:(Q=t.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!f||!!X||!!A||!!t},
hasWatchNextResponseErrorRenderer:function(A){var t=this.getPageContents(A),f,X,Q,q,e;return!(A==null?0:(f=A.contents)==null?0:(X=f.twoColumnWatchNextResults)==null?0:X.secondaryResults)&&!!((Q=t[0])==null?0:(q=Q.itemSectionRenderer)==null?0:(e=q.contents[0])==null?0:e.backgroundPromoRenderer)},
isLiveStreamOffline_:function(A){return A?A.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(A,t,f){var X=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.M("web_no_skip_video_on_verification_checks")?(A==null?void 0:A.status)&&Q.includes(A.status):A&&A.status==="AGE_CHECK_REQUIRED";var q=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",A);q==void 0&&(q=!0);!f||this.isVideoPlayable_(A,this.getPlayerOverlays_(t))||
X||Q||!q||_.Px().resolve(_.zT).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.oOi()},
onPlayerFeedbackStartRequest_:function(A){_.kJ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:A}])},
onPlayerFeedbackArticleRequest_:function(A){_.kJ(this.hostElement,"yt-help-dialog-requested",[A])},
onPlayerYpcContentRequest_:function(){var A,t,f,X,Q,q,e,G,N=((A=this.data)==null?NaN:(t=A.contents)==null?NaN:(f=t.twoColumnWatchNextResults)==null?NaN:(X=f.secondaryResults)==null?NaN:(Q=X.secondaryResults)==null?NaN:(q=Q.offerModule)==null?NaN:(e=q.tvfilmOfferModuleRenderer)==null?NaN:(G=e.actionButtons)==null?NaN:G.length)-1;A=[".offerButton.buttonRenderer.",".actionButtons."+(N>=0?N:0)+".buttonRenderer."];t=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(f=t.next();!f.done;f=t.next())for(f=f.value,X=_.U(A),Q=X.next();!Q.done;Q=X.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+f+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.Qx(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(A){_.s9(this.hostElement,"yt-autonav-pause-player",A)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(A){A()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.s9(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(A)},
setPlayerState:function(A){_.$I().dispatch(_.eep(A))},
onPlayerSubscribe_:function(A){_.kJ(this.hostElement,"yt-player-subscribe",[A])},
onPlayerUnsubscribe_:function(A){_.kJ(this.hostElement,"yt-player-unsubscribe",[A])},
onPlayerAdYtShowToast_:function(A){_.kJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:A.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(A){if(A)return A},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(A){return!_.M("web_watch_move_summary_to_sd")&&!!A},
computeWatchMetadataRefresh:function(){return _.M("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var A,t,f,X;this.watchNextSecondaryResults=(A=this.data)==null?void 0:(t=A.contents)==null?void 0:(f=t.twoColumnWatchNextResults)==null?void 0:(X=f.secondaryResults)==null?void 0:X.secondaryResults}},
setRichGridRendererData:function(A){this.richGridRendererData=A},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var A,t=(A=this.data)==null?void 0:A.engagementPanels;if(t==null?0:t.length){A=null;t=_.U(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;var X=void 0;if(((X=f.engagementPanelSectionListRenderer)==null?void 0:X.targetId)==="engagement-panel-structured-description"){A=f;break}}var Q,q,e;A=(Q=A)==null?void 0:(q=Q.engagementPanelSectionListRenderer)==null?void 0:(e=q.content)==null?void 0:e.structuredDescriptionContentRenderer;if(A==null?0:A.items){Q=
[];q=_.U(A.items);for(e=q.next();!e.done;e=q.next()){e=e.value;if(!_.M("sd_horizontal_list_show_nav_killswitch")){var G=X=f=t=A=void 0,N=void 0,z=(A=e.horizontalCardListRenderer)==null?void 0:(t=A.header)==null?void 0:(f=t.richListHeaderRenderer)==null?void 0:(X=f.navigationButton)==null?void 0:(G=X.buttonRenderer)==null?void 0:(N=G.command)==null?void 0:N.commandExecutorCommand;z&&z.commands&&(z.commands=z.commands.filter(function(T){return!_.C(T,_.reQ)}))}e.expandableVideoDescriptionBodyRenderer||
e.videoDescriptionHeaderRenderer||Q.push(e)}return{items:Q}}}},
constructWarning_:function(A){return{text:_.oC(A),type:"WARNING"}},
isPlaShelfEnabled_:function(A){if((this.get("adPlacements",A)||[]).length)return!0;A=this.get("playerAds",A)||[];return!(!A.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",A[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var A=this;_.s9(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var t=this.getScrollTop()>0;this.gestures_&&(t?this.gestures_.detach():this.gestures_.attach());t!==this.showFullerscreenEdu_&&_.M("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=t,_.aM(this).getPlayerPromise().then(function(f){f.updateFullerscreenEduButtonVisibility(A.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.s9(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var A=this;this.commentsReady=!1;_.a6.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.jY(_.a6,function(){A.setComments_()},1E3)},
setComments_:function(){if(!_.M("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Wt("cmi");_.a6.cancelJob(this.setCommentsJobId_);var A=this.getPageContents(this.data);if(A&&A.length){A=_.U(A);for(var t=A.next();!t.done;t=A.next())if(t=t.value,this.get("itemSectionRenderer.sectionIdentifier",t)==="comment-item-section"){this.comments=t.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.s9(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.M("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Wt("cmc")},
doRemoveComments_:function(){this.comments={};_.M("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.a6.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.a6.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(A,t){var f=_.C(t.endpoint,_.ZT);f&&(!(t=this.get("data.currentVideoEndpoint.watchEndpoint"))||f.videoId!==t.videoId||f.playlistId&&f.playlistId!==t.playlistId||f.index!==void 0&&f.index!==t.index||typeof f.startTimeSeconds!=="number"||(A.stopPropagation(),this.setScrollTop(0),_.aM(this).getPlayerPromise().then(function(X){var Q=f.startTimeSeconds;X.seekTo(Q);X.wakeUpControls();Q<X.getDuration()&&X.playVideo()})))},
updatePlayerStartTime_:function(){var A=_.bpj();"t"in A&&(A=_.Zpb(A.t),this.player.seekTo(A,!0))},
updateTitleFromWatchNext:function(A){A=this.getPageContents(A);var t,f;(A=_.dF(A==null?void 0:(t=A[0])==null?void 0:(f=t.videoPrimaryInfoRenderer)==null?void 0:f.title))&&_.s9(this.hostElement,"yt-update-title",A)},
updateTitle_:function(A){A=this.get("videoDetails.title",A)||"";_.s9(this.hostElement,"yt-update-title",A)},
syncWithRemoteVideo_:function(A,t,f){if(this.active&&this.player){var X=this.player.getVideoData();if(X.video_id===f&&(f=X.list,_.M("polymer_enable_mdx_queue")&&f&&f.startsWith("RQ")&&(f=void 0),X.video_id!==A||f!=t)){var Q;_.M("kevlar_player_watch_endpoint_navigation")?Q=_.jI5(_.I2u(A,t)):Q=this.buildWatchEndpoint_(A,t);_.s9(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(A,t,f){return _.g0(A,t,f)},
initDclkstatus_:function(){_.YF3()},
attachWatchPageSkeleton_:function(){var A=document.querySelector("#watch-page-skeleton");if(A){var t=A.querySelector("#primary-info"),f=A.querySelector("#secondary-info"),X=A.querySelector("#related");t&&_.sF(this.hostElement).querySelector("#info-skeleton").appendChild(t);f&&_.sF(this.hostElement).querySelector("#meta-skeleton").appendChild(f);X&&(_.sF(this.hostElement).querySelector("#related-skeleton").appendChild(X),this.watchNextSkeletonEl_=X);_.vf(A)}},
handlePlayerUpdated_:function(){_.aM(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(A,t){if(this.watchNextSkeletonEl_&&typeof t!=="undefined"){var f=this.watchNextSkeletonEl_.children,X=A&&A.indexSplices.length?A.indexSplices[0].index:0;A=Math.min(this.watchNextShownItems.length,f.length);t||(X=0,A=f.length);for(t=X;t<A;t++)f[t].classList.add("hidden")}},
onPlayerFullscreenChange_:function(A){_.M("external_fullscreen")||_.kJ(this.hostElement,"yt-player-fullscreen",[A.fullscreen])},
onFullscreenChange_:function(A){this.fullscreen=A;this.gestures_&&this.gestures_.update(this.fullscreen);var t=_.aM(this);t.getPlayerPromise().then(function(f){f.setFauxFullscreen(!!_.aq())});
this.updateFullBleedElementLocations();A&&(t.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(A,t){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!t},
computeIsDonationShelfCollapsed_:function(A){return A},
computeShouldShowMerchShelf:function(A,t){return t&&!!A},
computeResponseHasComments:function(A){var t,f,X,Q,q;return!!(A==null?0:(t=A.contents)==null?0:(f=t.twoColumnWatchNextResults)==null?0:(X=f.results)==null?0:(Q=X.results)==null?0:(q=Q.contents)==null?0:q.some(function(e){var G;return(e==null?void 0:(G=e.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(A,t){this.responseHasComments=this.computeResponseHasComments(this.data);return!!A&&!!Object.keys(A).length&&!t},
identity:_.I0,onWindowResized_:function(A){this.windowSize_=A;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.M("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(A){var t=this;A&&A.type!=="dataloaded"&&A.type!=="dataupdated"||_.aM(this).getPlayerPromise().then(function(f){var X=f.getPlayerState();X!==5&&X!==0&&(f=1/f.getVideoAspectRatio(),t.videoHeightToWidthRatio_!==f&&(t.videoHeightToWidthRatio_=f))})},
schedulePlayerSizeUpdate_:function(A){var t=this,f=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip"),X=function(){if(t.watchMetadata){var Q,q;(q=(Q=t.watchMetadata).resize)==null||q.call(Q)}_.aM(t).getPlayerPromise().then(function(e){if(_.M("kevlar_set_internal_player_size")){if(!f||!t.isMiniplayerActive()){var G=t.calculateCurrentPlayerSize_();e.setInternalSize(G.width,G.height)}}else e.setSize(NaN,NaN);_.M("kevlar_watch_while")&&t.updateWatchWhileScrollThreshold_()})};
A?X():_.NB(_.a6,X)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(A){this.set("data.survey",A.detail)},
onYtShowSurveyCommand_:function(A){this.set("data.survey",_.C(A,_.gOf).survey)},
onDownloadedVideoDeleted:function(A){var t=this,f,X;return _.l(function(Q){if(Q.nextAddress==1){if(!t.active||(f=t.playerData)==null||!f.offlineState||t.videoId!==A)return Q.return();(X=t.player)==null||X.stopVideo();_.$z().navigatingAwayFromWatchDeletedVideo=!0;_.Qx(_.ahq,t.hostElement);return Q.yield(_.$z().navigationFinishPromise,2)}_.$z().navigatingAwayFromWatchDeletedVideo=!1;_.LO(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var A;this.theater?A=_.ps(.5625*this.windowSize_.width,480,this.windowSize_.height-185):A=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==A&&(this.watchWhileScrollThreshold_=A,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var A=_.sF(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&A){var t=this.windowSize_.height>=624,f=this.active?this.getScrollTop():0;!A.active&&t&&f>=this.watchWhileScrollThreshold_?(A.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):A.active&&(!t||f<this.watchWhileScrollThreshold_&&!_.aq())&&(A.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(A,t){if(A!==!0||t!==void 0){A=!_.M("live_chat_over_engagement_panels");t=_.sF(this.hostElement).querySelector("#chat-container");var f=_.sF(this.hostElement).querySelector("#plj-sidebar"),X=_.sF(this.hostElement).querySelector("#panels"),Q=_.sF(this.hostElement).querySelector("#plj-panels"),q=_.sF(this.hostElement).querySelector("#plj-playlist"),e=_.sF(this.hostElement).querySelector("#alerts"),G=_.sF(this.hostElement).querySelector("#playlist"),N=_.sF(this.hostElement).querySelector("#related"),
z=_.sF(this.hostElement).querySelector("#donation-shelf"),T=_.sF(this.hostElement).querySelector("#comments");this.isTwoColumns_?(e=_.sF(this.hostElement).querySelector("#secondary-inner"),e.appendChild(f),f.appendChild(q),q.appendChild(G),f.appendChild(Q),A&&e.appendChild(X),_.M("web_watch_theater_chat")||e.appendChild(t),A||e.appendChild(X),e.appendChild(z),e.appendChild(N)):(A&&_.jq(X,e),_.jq(G,e),_.M("web_watch_theater_chat")||_.jq(t,e),A||_.jq(X,e),_.jq(z,e),T&&(Q&&_.jq(Q,T),_.jq(N,T)));_.M("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.M("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.M("web_watch_theater_chat")){var A=_.sF(this.hostElement).querySelector("#chat-container"),t=this.theater&&!this.fullscreen||_.M("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&t?_.M("web_watch_theater_chat_beside_player")?(t=_.sF(this.hostElement).querySelector("#panels-full-bleed-container"),(A==null?void 0:A.parentElement)!==t&&t.append(A),this.panelsBesidePlayer=!0):_.M("web_watch_theater_fixed_chat")&&
(t=_.sF(this.hostElement).querySelector("#columns"),(A==null?void 0:A.parentElement)!==t&&t.append(A),this.fixedPanels=!0):(_.M("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.M("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),t=_.sF(this.hostElement).querySelector("#playlist"),A&&t?_.Y6(A,t):_.K4(new _.xj("Missing element when updating chat location",{"chatContainer defined":!!A,"playlist defined":!!t})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(A,t){return _.M("sw_metadata_vis_toggle_ks")?!0:!!A||!!t},
computeForceDarkPanelTheme:function(A){return _.M("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&A:!1},
safeUpdateStyles:function(A){try{_.Q_(this.hostElement,A)}catch(t){_.K4(t)}},
videoHeightToWidthRatioChanged_:function(A,t){t&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.M("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(A){this.videoHeightToWidthRatio_=1/A},
computeIsVerticalVideo_:function(A){return A>=1},
computeIsFourThreeToSixteenNineVideo_:function(A){return A<=.7501&&A>=.5624},
computeIsExtraWideVideo_:function(A){return A<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.aM(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.aM(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Qgy(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(A){var t=_.Bi(A)||0;_.ci(A,t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var A=_.Bi("yt-fullerscreen-edu-button-click-count")||0,t=_.Bi("yt-fullerscreen-edu-button-shown-count")||0,f=_.cx("external_fullscreen_button_shown_threshold"),X=A>=_.cx("external_fullscreen_button_click_threshold")||t>=f;_.aM(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(X)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(A,t){return t},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Px().resolve(_.zT).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var A=this;this.panelMaxHeightUpdateJob_&&_.a6.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.a6.addLowPriorityJob(function(){A.panelMaxHeightUpdateJob_=0;var t;!A.isTwoColumns_||A.theater||A.fullscreen?t=460:t=A.calculateNormalPlayerSize_().height;var f=t+"px";_.M("live_chat_taller_height")&&!A.theater&&(f="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.M("live_chat_medium_height")&&
!A.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.M("live_chat_scaled_height")&&!A.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 238px)");A.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":t+"px","--ytd-watch-flexy-chat-max-height":f,"--ytd-watch-flexy-structured-description-max-height":t+"px","--ytd-watch-flexy-comments-panel-max-height":t+"px","--ytd-comments-engagement-panel-content-height":t+"px"})})},
onYtShowEngagementPanelScrimAction_:function(A){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",A)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.tl(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(A){var t=_.sF(this.hostElement).querySelector("#engagement-panel-scrim");A?t.addEventListener("tap",_.JY(this,this.onEngagementPanelScrimClick_)):t.removeEventListener("tap",_.JY(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(A){if(this.hostElement.contains(A)&&!this.scrollToAnimation_.isAnimating()){var t=A.offsetTop-24;A=A.offsetTop+A.offsetHeight+24;var f=this.getPageScrollingElement(),X=this.getScrollTop(),Q=X+f.clientHeight-56;if(t<X+56)t-=56;else if(A>Q)t=A-f.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtSignalActionScrollToComments:function(){var A=this.hostElement.querySelector("#comments");if(A&&!this.scrollToAnimation_.isAnimating()){A=A.offsetTop-56-24;if(_.M("kevlar_comment_teaser_scroll_to_midpoint")&&(A-=_.pn().height/3,A<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,A),500)}},
onYtEngagementPanelVisibleChanged:function(A,t,f){this.active&&this.trackEngagementPanelVisibility&&!_.a2l.includes(f)&&(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(f),t!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&t!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(f),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(A){return A?"":"watch-active-metadata"},
computeNewMetadataClass:function(A){return A?"watch-active-metadata":""},
computeFullBleedPlayer:function(A,t){return A||t},
computeDefaultLayout:function(A){return!A},
computeDefaultTwoColumnLayout:function(A,t){return!A&&t},
computeWatchWhilePanelsActive:function(A,t){return A||t},
computeNoBorderOnChat:function(A){return _.M("web_watch_theater_chat_no_border")&&A},
computeLiveChatPresentAndExpanded:function(A,t){return A&&!t},
computePanelExpanded:function(A,t,f){return A||t||f},
onChangeMarkersVisibility:function(A){_.aM(this).getPlayerPromise().then(function(t){var f;(f=t.changeMarkerVisibility)==null||f.call(t,_.C(A,_.Sp).isVisible||!1,_.C(A,_.Sp).entityKeys||[],_.C(A,_.Sp).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(A){this.liveChatCollapsed=A.detail;_.$I().dispatch(_.Hpr(A.detail))},
provideRenderingData:function(A,t){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=t;break;case "PRIMARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=t);this.videoPrimaryInfoRendererValue=t==null?void 0:t.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=t);this.videoSecondaryInfoRendererValue=t==null?void 0:t.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
t;break;case "CLARIFICATION":this.clarifyBoxValue=t;break;case "LIVE_CHAT":this.conversationBar=t;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=t;break;case "PLAYLIST":this.externalPlaylistData_=t!=null?t:{};break;case "MERCH_SHELF":this.merchShelfValue=t==null?void 0:t.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=t;break;case "OFFER_MODULE":this.offerModule=t;break;case "LIMITED_STATE":this.limitedStateValue=t;break;case "DONATION_SHELF":this.donation=t;break;
case "ALERTS":this.alertsValue=t;break;case "COMMENTS":this.comments=t;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=t;break;case "ENGAGEMENT_PANELS":this.engagementPanels=t;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=t;break;case "RICH_GRID_RENDERER":this.richGridRendererData=t;break;case "EXPANDABLE_METADATA":this.expandableMetadata=t;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=t}},
toggleCinematicsActive:function(A){this.cinematicsActive=A},
isMiniplayerActive:function(){return _.Px().resolve(_.DS).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(A){return bN3.map(function(t){return A.find(function(f){var X;return(f==null?void 0:(X=f.engagementPanelSectionListRenderer)==null?void 0:X.targetId)===t})}).filter(function(t){return t!==void 0})},
getNonLearningJourneyEngagementPanels:function(A){return A.filter(function(t){var f;return!bN3.includes((t==null?void 0:(f=t.engagementPanelSectionListRenderer)==null?void 0:f.targetId)||"")})}}];var WIj;var rJ=function(){var A=_.F.apply(this,arguments)||this;A.flexy=!0;A.learningJourney=!0;A.viewTransitionEnabled=_.M("enable_player_resize_transition");A.smallerChatMinHeight=_.M("live_chat_smaller_min_height");A.isDarkTheme=document.documentElement.hasAttribute("dark");A.theaterLargerPlayer=_.M("web_watch_theater_larger_player");A.defaultCollapsePlaylist=_.M("web_watch_default_collapse_playlist");A.enableCanvasLayout=_.M("web_enable_canvas_on_learning_journey");return A};
_.R(rJ,_.F);_.J=rJ.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var A=this,t=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(A){_.M("web_watch_update_narrow_width_killswitch")||_.$I().dispatch(_.Hkf(!A.detail.value));this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.J.updateShownItemsFromBinding=function(A){A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value};
_.J.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23680_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23680_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.PV.Object.defineProperties(rJ.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(A=_.C(this.data.pageVisualEffects[t],_.ks))return t=void 0,(t=A.config)==null?void 0:t.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.learningJourneyEngagementPanels)==null?void 0:A.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var A,t=(A=this.learningJourneyEngagementPanels)==null?void 0:A.find(function(c){var B;return(c==null?void 0:(B=c.engagementPanelSectionListRenderer)==null?void 0:B.panelIdentifier)==="learning-journey-engagement-panel"});
if(t){var f,X,Q,q,e,G,N,z,T;if(A=(z=((N=(e=((q=t==null?void 0:(f=t.engagementPanelSectionListRenderer)==null?void 0:(X=f.content)==null?void 0:(Q=X.sectionListRenderer)==null?void 0:Q.contents)!=null?q:[])[0])==null?void 0:(G=e.itemSectionRenderer)==null?void 0:G.contents)!=null?N:[])[0])==null?void 0:(T=z.accordionViewModel)==null?void 0:T.onTitleTap){var O=_.bP(A);if(O)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.XH.instance.resolveCommand(O)}}}}}}});
_.PV.Object.defineProperties(rJ,{template:{configurable:!0,enumerable:!0,get:function(){if(WIj===void 0){var A=document.createElement("template");_.m(A,'\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  <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="watch-content" hidden="[[!showWatchResponse]]" 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]]" hidden$="[[!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 id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);WIj=A}A=WIj;return A}}});
rJ.prototype.updateMiniplayerIsActiveValue=rJ.prototype.updateMiniplayerIsActiveValue;rJ.prototype.updateScrollTopValue=rJ.prototype.updateScrollTopValue;rJ.prototype.updateFullscreenValue=rJ.prototype.updateFullscreenValue;rJ.prototype.updateTheaterValue=rJ.prototype.updateTheaterValue;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],rJ.prototype,"ytComponentBehavior",void 0);
_.V([_.b(mLl.YtdLearningJourneyWatchBehavior),_.H("design:type",Object)],rJ.prototype,"ytdWatchBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],rJ.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rJ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],rJ.prototype,"playerData",void 0);_.V([_.n(),_.H("design:type",Object)],rJ.prototype,"browseData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rJ.prototype,"flexy",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rJ.prototype,"learningJourney",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rJ.prototype,"viewTransitionEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rJ.prototype,"smallerChatMinHeight",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rJ.prototype,"isDarkTheme",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],rJ.prototype,"theaterLargerPlayer",void 0);_.V([_.n(),_.H("design:type",Object)],rJ.prototype,"defaultCollapsePlaylist",void 0);_.V([_.n(),_.H("design:type",Object)],rJ.prototype,"enableCanvasLayout",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("playerData","browseData","enableCanvasLayout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rJ.prototype,"showBrowseResponse",null);
_.V([_.n({reflectToAttribute:!0}),_.y("playerData","enableCanvasLayout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rJ.prototype,"showWatchResponse",null);_.V([_.n({selector:_.bm}),_.H("design:type",Object)],rJ.prototype,"theaterValue",void 0);_.V([_.n({selector:_.WO}),_.H("design:type",Object)],rJ.prototype,"fullscreenValue",void 0);_.V([_.n({selector:_.vq}),_.H("design:type",Object)],rJ.prototype,"scrollTopValue",void 0);
_.V([_.n({selector:_.WE}),_.H("design:type",Object)],rJ.prototype,"miniplayerIsActiveValue",void 0);_.V([_.lo("#ytd-plj-player"),_.H("design:type",HTMLElement)],rJ.prototype,"ytdPlayer",void 0);_.V([_.lo("#playlist"),_.H("design:type",HTMLElement)],rJ.prototype,"JSC$23680_ytdPlaylistPanelRenderer",void 0);_.V([_.lF("ytd-comments"),_.H("design:type",HTMLElement)],rJ.prototype,"ytdComments",void 0);_.V([_.lo("#primary"),_.H("design:type",HTMLElement)],rJ.prototype,"primary",void 0);
_.V([_.lo("#secondary"),_.H("design:type",HTMLElement)],rJ.prototype,"secondary",void 0);_.V([_.lo("#player-container"),_.H("design:type",HTMLElement)],rJ.prototype,"playerContainer",void 0);_.V([_.lo("#cinematics"),_.H("design:type",HTMLElement)],rJ.prototype,"JSC$23680_cinematics",void 0);_.V([_.ev("theaterValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rJ.prototype,"updateTheaterValue",null);
_.V([_.ev("fullscreenValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rJ.prototype,"updateFullscreenValue",null);_.V([_.ev("scrollTopValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rJ.prototype,"updateScrollTopValue",null);_.V([_.ev("miniplayerIsActiveValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rJ.prototype,"updateMiniplayerIsActiveValue",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],rJ.prototype,"cinematicLightTheme",null);_.V([_.n({reflectToAttribute:!0}),_.y("learningJourneyEngagementPanels"),_.H("design:type",Object),_.H("design:paramtypes",[])],rJ.prototype,"hasLearningJourneyPanels",null);_.V([_.y("learningJourneyEngagementPanels"),_.H("design:type",Object),_.H("design:paramtypes",[])],rJ.prototype,"backButtonData",null);_.V([_.y_({is:"ytd-watch-learning-journey"})],rJ);_.JB.registerService(_.BJg,rJ);
_.dw();
}catch(e){_._DumpException(e)}
try{
_.oy("Tm0L3c");
var zFr;var Pox;var TRb=function(){return _.F.apply(this,arguments)||this};
_.R(TRb,_.F);_.V([_.y_({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],TRb);
_.Y(TRb,"ytd-ghost-comments-renderer",function(){if(Pox===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);Pox=A}A=Pox;return A},{mode:1});var iNi;var ON3=function(){return _.F.apply(this,arguments)||this};
_.R(ON3,_.F);_.V([_.y_({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],ON3);
_.Y(ON3,"ytd-ghost-watch-metadata-renderer",function(){if(iNi===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);iNi=A}A=iNi;return A},{mode:1});var kT=function(){var A=_.F.apply(this,arguments)||this;A.ghostGridRenderer={rows:6};A.smallerChatMinHeight=_.M("live_chat_smaller_min_height");A.darkerPanels=_.M("web_watch_darker_panels");A.isDarkTheme=document.documentElement.hasAttribute("dark");return A};
_.R(kT,_.F);_.J=kT.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var A=this,t=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(A){this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.J.updateShownItemsFromBinding=function(A){_.M("swatcheroo_direct_use_rich_grid")||(A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value)};
_.J.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23668_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23668_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.PV.Object.defineProperties(kT.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(A=_.C(this.data.pageVisualEffects[t],_.ks))return t=void 0,(t=A.config)==null?void 0:t.enableInLightTheme;return!1}}});
kT.prototype.updateMiniplayerIsActiveValue=kT.prototype.updateMiniplayerIsActiveValue;kT.prototype.updateScrollTopValue=kT.prototype.updateScrollTopValue;kT.prototype.updateFullscreenValue=kT.prototype.updateFullscreenValue;kT.prototype.updateTheaterValue=kT.prototype.updateTheaterValue;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],kT.prototype,"ytComponentBehavior",void 0);
_.V([_.b(_.NRF.YtdWatchBehavior),_.H("design:type",Object)],kT.prototype,"ytdWatchBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],kT.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],kT.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],kT.prototype,"ghostGridRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],kT.prototype,"playerData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],kT.prototype,"smallerChatMinHeight",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],kT.prototype,"darkerPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],kT.prototype,"isDarkTheme",void 0);_.V([_.n({selector:_.bm}),_.H("design:type",Object)],kT.prototype,"theaterValue",void 0);_.V([_.n({selector:_.WO}),_.H("design:type",Object)],kT.prototype,"fullscreenValue",void 0);_.V([_.n({selector:_.vq}),_.H("design:type",Object)],kT.prototype,"scrollTopValue",void 0);
_.V([_.n({selector:_.WE}),_.H("design:type",Object)],kT.prototype,"miniplayerIsActiveValue",void 0);_.V([_.lo("#ytd-player"),_.H("design:type",HTMLElement)],kT.prototype,"ytdPlayer",void 0);_.V([_.lo("#playlist"),_.H("design:type",HTMLElement)],kT.prototype,"JSC$23668_ytdPlaylistPanelRenderer",void 0);_.V([_.lo("#ytd-comments"),_.H("design:type",HTMLElement)],kT.prototype,"ytdComments",void 0);_.V([_.lo("#primary"),_.H("design:type",HTMLElement)],kT.prototype,"primary",void 0);
_.V([_.lo("#secondary"),_.H("design:type",HTMLElement)],kT.prototype,"secondary",void 0);_.V([_.lo("#player-container"),_.H("design:type",HTMLElement)],kT.prototype,"playerContainer",void 0);_.V([_.lo("#cinematics"),_.H("design:type",HTMLElement)],kT.prototype,"JSC$23668_cinematics",void 0);_.V([_.ev("theaterValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kT.prototype,"updateTheaterValue",null);
_.V([_.ev("fullscreenValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kT.prototype,"updateFullscreenValue",null);_.V([_.ev("scrollTopValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kT.prototype,"updateScrollTopValue",null);_.V([_.ev("miniplayerIsActiveValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kT.prototype,"updateMiniplayerIsActiveValue",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],kT.prototype,"cinematicLightTheme",null);
_.Y(kT,"ytd-watch-grid",function(){if(zFr===void 0){var A=document.createElement("template");_.m(A,'\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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" 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-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);zFr=A}A=zFr;return A},{mode:2});_.JB.registerService(_.cQb,kT);
_.dw();
}catch(e){_._DumpException(e)}
try{
_.oy("CF909");
var uDi;var se=function(){var A=_.F.apply(this,arguments)||this;A.viewTransitionEnabled=_.M("enable_player_resize_transition");A.smallerChatMinHeight=_.M("live_chat_smaller_min_height");A.isDarkTheme=document.documentElement.hasAttribute("dark");A.defaultCollapsePlaylist=_.M("web_watch_default_collapse_playlist");A.respectAspectRatio=_.M("web_enable_aspect_ratio_fix");A.retroModeReduxValue=!1;A.persistentPanelVisibleValue=!1;return A};
_.R(se,_.F);_.J=se.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateRetroModeReduxValue=function(){_.M("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.J.updatePersistentPanelVisibleValue=function(){_.M("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.J.ready=function(){var A=this,t=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(A){_.M("web_watch_update_narrow_width_killswitch")||_.$I().dispatch(_.Hkf(!A.detail.value));this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.J.updateShownItemsFromBinding=function(A){A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value};
_.J.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23663_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23663_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.PV.Object.defineProperties(se.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(A=_.C(this.data.pageVisualEffects[t],_.ks))return t=void 0,(t=A.config)==null?void 0:t.enableInLightTheme;return!1}}});
_.PV.Object.defineProperties(se,{template:{configurable:!0,enumerable:!0,get:function(){if(uDi===void 0){var A=document.createElement("template");_.m(A,'\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="shopping-timely-shelf" class="attached-message 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" hidden$="[[!showGhostMetadata]]">\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" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);uDi=A}A=uDi;return A}}});
se.prototype.updatePersistentPanelVisibleValue=se.prototype.updatePersistentPanelVisibleValue;se.prototype.updateRetroModeReduxValue=se.prototype.updateRetroModeReduxValue;se.prototype.updateScrollTopValue=se.prototype.updateScrollTopValue;se.prototype.updateFullscreenValue=se.prototype.updateFullscreenValue;se.prototype.updateTheaterValue=se.prototype.updateTheaterValue;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],se.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.NRF.YtdWatchBehavior),_.H("design:type",Object)],se.prototype,"ytdWatchBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],se.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],se.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],se.prototype,"playerData",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],se.prototype,"viewTransitionEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],se.prototype,"smallerChatMinHeight",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],se.prototype,"isDarkTheme",void 0);_.V([_.n(),_.H("design:type",Object)],se.prototype,"defaultCollapsePlaylist",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],se.prototype,"respectAspectRatio",void 0);
_.V([_.n({selector:_.bm}),_.H("design:type",Object)],se.prototype,"theaterValue",void 0);_.V([_.n({selector:_.WO}),_.H("design:type",Object)],se.prototype,"fullscreenValue",void 0);_.V([_.n({selector:_.vq}),_.H("design:type",Object)],se.prototype,"scrollTopValue",void 0);_.V([_.n({selector:_.WE}),_.H("design:type",Object)],se.prototype,"miniplayerIsActive",void 0);_.V([_.n({selector:function(A){return A.watch.isWatchRetroMode}}),
_.H("design:type",Object)],se.prototype,"retroModeReduxValue",void 0);_.V([_.n({selector:_.Iv.persistentPanelVisibleSelector}),_.H("design:type",Object)],se.prototype,"persistentPanelVisibleValue",void 0);_.V([_.lF("ytd-player"),_.H("design:type",HTMLElement)],se.prototype,"ytdPlayer",void 0);_.V([_.lo("#playlist"),_.H("design:type",HTMLElement)],se.prototype,"JSC$23663_ytdPlaylistPanelRenderer",void 0);_.V([_.lF("ytd-comments"),_.H("design:type",HTMLElement)],se.prototype,"ytdComments",void 0);
_.V([_.lo("#primary"),_.H("design:type",HTMLElement)],se.prototype,"primary",void 0);_.V([_.lo("#secondary"),_.H("design:type",HTMLElement)],se.prototype,"secondary",void 0);_.V([_.lo("#player-container"),_.H("design:type",HTMLElement)],se.prototype,"playerContainer",void 0);_.V([_.lo("#below"),_.H("design:type",HTMLElement)],se.prototype,"below",void 0);_.V([_.lo("#cinematics"),_.H("design:type",HTMLElement)],se.prototype,"JSC$23663_cinematics",void 0);
_.V([_.lo("#persistent-panel-container"),_.H("design:type",HTMLElement)],se.prototype,"persistentPanelContainer",void 0);_.V([_.ev("theaterValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],se.prototype,"updateTheaterValue",null);_.V([_.ev("fullscreenValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],se.prototype,"updateFullscreenValue",null);
_.V([_.ev("scrollTopValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],se.prototype,"updateScrollTopValue",null);_.V([_.ev("retroModeReduxValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],se.prototype,"updateRetroModeReduxValue",null);_.V([_.ev("persistentPanelVisibleValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],se.prototype,"updatePersistentPanelVisibleValue",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],se.prototype,"cinematicLightTheme",null);_.V([_.y_({is:"ytd-watch-flexy"})],se);_.JB.registerService(_.O0b,se);
_.dw();
}catch(e){_._DumpException(e)}
try{
_.oy("nmfa2d");
var mvb;var o3=function(){var A=_.F.apply(this,arguments)||this;A.hidden=!1;A.errorScreen=null;A.playlistData={};return A};
_.R(o3,_.F);_.J=o3.prototype;_.J.getPlayer=function(){return this.ytdPlayer};
_.J.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:_.Z6(["aa","eocs"])}}};
_.J.onActiveChanged=function(){_.$I().dispatch(_.tIb(this.ytPageBehavior.active))};
_.J.playerDataChanged=function(){var A;(A=this.watchController)==null||A.setPlayerResponse(this.playerData)};
_.J.dataChanged=function(){var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data)};
_.J.sizeChanged=function(){var A,t;(t=(A=this.metadata).resize)==null||t.call(A)};
_.J.attached=function(){this.watchController=new _.VE(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.J.detached=function(){_.ee(this.watchController);this.watchController=void 0};
_.J.getPlayerContainer=function(){return this.playerContainer};
_.J.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.J.provideRenderingData=function(A,t){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=t;break;case "ERROR_SCREEN":this.errorScreen=t!=null?t:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=t;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=t;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=t;break;case "RICH_METADATA":this.richMetadataRowContainer=t;break;case "CLARIFICATION":this.clarificationData=t;break;case "PLAYLIST":this.playlistData=
t!=null?t:{};break;case "MERCH_SHELF":this.merchShelf=t;break;case "TICKET_SHELF":this.ticketShelf=t;break;case "LIMITED_STATE":this.limitedState=t;break;case "DONATION_SHELF":this.donationShelf=t;break;case "ALERTS":this.alerts=t}};
_.PV.Object.defineProperties(o3.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return!this.hidden&&!!((A=this.data)==null?0:(t=A.contents)==null?0:(f=t.twoColumnWatchNextResults)==null?0:f.conversationBar)}}});
o3.prototype.sizeChanged=o3.prototype.sizeChanged;o3.prototype.dataChanged=o3.prototype.dataChanged;o3.prototype.playerDataChanged=o3.prototype.playerDataChanged;o3.prototype.onActiveChanged=o3.prototype.onActiveChanged;_.V([_.b(_.t$.YtPageBehavior),_.H("design:type",Object)],o3.prototype,"ytPageBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],o3.prototype,"ytComponentBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],o3.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"playerData",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],o3.prototype,"hidden",void 0);_.V([_.lo("#ytd-player"),_.H("design:type",HTMLElement)],o3.prototype,"ytdPlayer",void 0);_.V([_.lo("#player-container"),_.H("design:type",HTMLElement)],o3.prototype,"playerContainer",void 0);_.V([_.lo("#metadata"),_.H("design:type",Object)],o3.prototype,"metadata",void 0);_.V([_.lo("#playlist"),_.H("design:type",HTMLElement)],o3.prototype,"playlistPanel",void 0);
_.V([_.n({selector:_.okl,reflectToAttribute:!0}),_.H("design:type",Object)],o3.prototype,"fixie",void 0);_.V([_.n({selector:_.ZaW,reflectToAttribute:!0}),_.H("design:type",Object)],o3.prototype,"singleColumn",void 0);_.V([_.n({selector:function(A){return _.bm(A)&&!_.WO(A)},
reflectToAttribute:!0}),_.H("design:type",Object)],o3.prototype,"theater",void 0);_.V([_.n({selector:_.WO,reflectToAttribute:!0}),_.H("design:type",Object)],o3.prototype,"fullscreen",void 0);_.V([_.n({selector:_.k$H}),_.H("design:type",Object)],o3.prototype,"windowSize",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"singleColumnContents",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"errorScreen",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"playlistData",void 0);
_.V([_.n(),_.H("design:type",Object)],o3.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"videoSecondaryInfoRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"richMetadataRowContainer",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"clarificationData",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"commentsEntryPointHeaderRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"ticketShelf",void 0);
_.V([_.n(),_.H("design:type",Object)],o3.prototype,"merchShelf",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"donationShelf",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"limitedState",void 0);_.V([_.n(),_.H("design:type",Object)],o3.prototype,"alerts",void 0);_.V([_.y("playlistData"),_.H("design:type",Object),_.H("design:paramtypes",[])],o3.prototype,"hasPlaylistData",null);
_.V([_.y("data","hidden"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],o3.prototype,"hasChat",null);_.V([_.ev("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o3.prototype,"onActiveChanged",null);_.V([_.ev("playerData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o3.prototype,"playerDataChanged",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o3.prototype,"dataChanged",null);_.V([_.ev("windowSize","singleColumn"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o3.prototype,"sizeChanged",null);
_.Y(o3,"ytd-watch-fixie",function(){if(mvb===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);mvb=A}A=mvb;return A},{mode:1});_.JB.registerService(_.i0z,o3);
_.dw();
}catch(e){_._DumpException(e)}
try{
_.oy("xwEKAe");
var x4b=function(A){A=A.command;var t=_.C(A,_.zD);return{command:A,reelPlayerOverlayRenderer:_.C(t==null?void 0:t.overlay,_.f07),thumbnail:t==null?void 0:t.thumbnail,videoId:t.videoId}},jor=function(A){A=A.command;
var t=_.C(A,_.JM);return{command:A,reelNonVideoContentRenderer:_.C(t==null?void 0:t.renderer,_.eN)}},YHy=function(A){return A.entries?A.entries.map(function(t){return _.C(t==null?void 0:t.command,_.zD)?x4b(t):jor(t)}):[]},VGx=function(A){return A.prevEntries?A.prevEntries.map(function(t){return _.C(t==null?void 0:t.command,_.zD)?x4b(t):jor(t)}):[]},ZFb=function(A){return _.lX(A)?A.getAttribute("jsname")==="coFSxe":!1},ofQ=function(A,t){t.id||(t.id="ow"+_.gs(t));
A.setAttribute("jsowner",t.id);A.__owner=t;var f=_.Hd(t,ZFb);f&&(_.dii.has(f)||_.dii.set(f,[]),_.dii.get(f).push(A));(f=_.oJi.get(t))||_.oJi.set(t,f=[]);f.includes(A)||f.push(A);t.setAttribute("__IS_OWNER",!0)},d4x=function(){var A=_.MCz(1);
A=_.eG(A,_.WZx);if(!(_.Bbb(A)||A[_.B25]&&!A.__hasBeenSet))return A.value},SHy=function(A){return(A=_.APq(A))?_.fPx(A):0},$4y=function(A){return A.shorts.isSmallScreenSqueezeback},HFu=function(A){return A.shorts.isPlaybackStarted},aM3=function(A){var t=_.NJ();
if(t.getFlag(202))t=t.getFlag(201);else{var f;t=(A==null?void 0:(f=A.config)==null?void 0:f.settingOnByDefault)!==void 0?A.config.settingOnByDefault:!_.M("web_shorts_cinematics_disabled_by_default")}return t},K$b=function(A){var t=_.NJ();
_.u0(0,201,A);_.u0(0,202,!0);t.save()},soH=function(A){var t=_.MCz(2),f=new Set;
_.dD(function(){return void f.forEach(function(X){return void X()})});
return function(X){var Q=_.UH(t);try{var q=gfu(wmW(A),X);f.add(q);return function(){q();f.delete(q)}}finally{_.UH(Q)}}},kcx=function(A){var t=A.children;
var f=A.root;_.Zk(function(){var X=soH(f)(t);_.dD(X)});
return document.createTextNode("")},gfu=function(A,t){var f=rZx(A);
(A=d4x())&&ofQ(f,A);_.Rh.setUp();t=_.U(_.ouq(t,!0));A=t.next().value;var X=t.next().value;t=_.U(A);for(A=t.next();!A.done;A=t.next())f.appendChild(A.value);_.Rh.log(f);_.Rh.tearDown();return function(){X();f.remove()}},wmW=function(A){if(typeof A==="string")return A=document.querySelector(A),_.WI3(A),A;
if(_.O8(A)&&A.nodeType===Node.ELEMENT_NODE)return A;if(!A.__value&&!A.__optional){var t=_.CS5.USE_ELEMENT_NOT_ASSIGNED(A.__expectedTagName);A.__hasErrored=!0;throw t;}return A.value},rZx=function(A){var t=document.createElementNS(A.namespaceURI,A.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return A.appendChild(t)},A83=function(A,t,f,X){A=t-A;
f=X-f;return Math.sqrt(A*A+f*f)},t2x=function(A){var t=A>>8&255,f=A&255;
return"#"+(A>>16&255).toString(16).padStart(2,"0")+t.toString(16).padStart(2,"0")+f.toString(16).padStart(2,"0")},fki=function(A,t){A&&_.Px().resolve(_.i2).resolveCommand(A,{forceClickLogging:!0,
form:{element:t}})},X5x=function(){return _.Px().resolve(_.on).dismissedIndices},Qhi=function(A,t){var f,X,Q,q,e,G,N,z,T;
return _.l(function(O){if(O.nextAddress==1){f=_.Px().resolve(_.YW);q=(X=f)==null?void 0:(Q=X.reelWatchEndpointMap)==null?void 0:Q.reelWatchSequence;G=(e=A.innertubeTransportService)!=null?e:_.Px().resolve(_.iY);if(!q)return O.jumpTo(2);N=q();return(z=N.JSC$14261_getRequest(t,{}))?O.yield(_.uE(G,z.innerTubeRequest,z.input,t.clickTrackingParams,z.config),4):O.jumpTo(2)}return O.nextAddress!=2?(T=O.yieldResult,O.return(T)):O.return(void 0)})},q8f=function(A,t,f){var X,Q=(X=_.C(t,_.zD))==null?void 0:
X.videoId;
X=!(!Q||!A.find(function(e){return e.videoId&&e.videoId===Q}));
var q=!!A.find(function(e){var G;return((G=_.C(e.command,_.zD))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
A=!!A.find(function(e){return!!_.C(e.command,_.JM)&&!!_.C(t,_.JM)&&e.command===t});
return f?X||A:X||q||A},J8b=function(A,t,f){var X=[].concat(_.YV(A)),Q=0,q=f?YHy(f):[];
f=f?VGx(f):[];t&&!q8f(A,t.command)&&X.unshift(t);q.length&&!q8f(A,q[0].command,!0)&&X.push.apply(X,_.YV(q));t&&f.length&&!q8f(A,f[0].command)&&(X.unshift.apply(X,_.YV(f.reverse())),Q=f.length);return{newContentList:X,indexChange:Q}},Upu=function(A){return _.r0({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:A}})},ecb=function(A){return _.r0({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:A}})},Gw3=function(A){return _.r0({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:A}})};var Bq=function(A,t){if(A instanceof Bq)this.array_=A.array_;else{var f;if(f=_.ST(A))a:{for(var X=f=0;X<A.length;X++){if(!_.ST(A[X])||f>0&&A[X].length!=f){f=!1;break a}for(var Q=0;Q<A[X].length;Q++)if(typeof A[X][Q]!=="number"){f=!1;break a}f==0&&(f=A[X].length)}f=f!=0}if(f)this.array_=_.ds(A);else if(A instanceof _.Ln)this.array_=lkl(A.height,A.width);else if(typeof A==="number"&&typeof t==="number"&&A>0&&t>0)this.array_=lkl(A,t);else throw Error("Vo");}this.size_=new _.Ln(this.array_[0].length,
this.array_.length)},N9f=function(A,t,f){for(var X=0;X<A.getSize().height;X++)for(var Q=0;Q<A.getSize().width;Q++)t.call(f,A.array_[X][Q],X,Q,A)},uEi=function(A,t){var f=new Bq(A.getSize());
N9f(A,function(X,Q,q){f.array_[Q][q]=t.call(void 0,X,Q,q,A)});
return f},lkl=function(A,t){for(var f=[],X=0;X<A;X++){f[X]=[];
for(var Q=0;Q<t;Q++)f[X][Q]=0}return f};
Bq.prototype.add=function(A){if(!_.uNH(this.size_,A.getSize()))throw Error("Wo");return uEi(this,function(t,f,X){return t+A.array_[f][X]})};
Bq.prototype.equals=function(A,t){if(this.size_.width!=A.size_.width||this.size_.height!=A.size_.height)return!1;t=t||0;for(var f=0;f<this.size_.height;f++)for(var X=0;X<this.size_.width;X++)if(!_.NDQ(this.array_[f][X],A.array_[f][X],t))return!1;return!0};
Bq.prototype.getSize=function(){return this.size_};
var Mf=function(A,t,f){return t>=0&&t<A.size_.height&&f>=0&&f<A.size_.width?A.array_[t][f]:null};
Bq.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var zcj=function(A,t,f,X){if(!(t>=0&&t<A.size_.height&&f>=0&&f<A.size_.width))throw Error("Xo`"+t+"`"+f+"`"+A.size_.height+"`"+A.size_.width);A.array_[t][f]=X};
Bq.prototype.multiply=function(A){if(A instanceof Bq){if(this.size_.width!=A.getSize().height)throw Error("Yo");return Pkf(this,A)}if(typeof A==="number")return T9i(this,A);throw Error("Zo");};
var Pkf=function(A,t){var f=new Bq(A.size_.height,t.getSize().width);N9f(f,function(X,Q,q){for(var e=X=0;e<this.size_.width;e++)X+=Mf(this,Q,e)*Mf(t,e,q);zcj(f,Q,q,X)},A);
return f},T9i=function(A,t){return uEi(A,function(f){return f*t})};var iaW=new _.UA("inlineSurveyRenderer");var Oab=new _.UA("interstitialViewModel");var c8Q=new _.UA("reelNavigateCommand");var B9H=new _.UA("reelNonVideoContentDismissalCommand");var M2Q=new _.UA("showReelsCommentsOverlayCommand");var Cki=new _.UA("videoInteractionPopUpRenderer");var hcH=new _.UA("pollChoiceData");var Rcr;var mpb;var baQ;var Cq=function(){var A=_.F.apply(this,arguments)||this;A.ctaVisualElement=null;A.currentCsn=null;return A};
_.R(Cq,_.F);_.J=Cq.prototype;_.J.onDataChanged=function(){this.maybeLogShows()};
_.J.computeButtonShape=function(){var A=this;if(this.data)return{buttonText:_.dF(this.data.text),state:"active",onTap:function(){A.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.J.maybeCreateCtaVe=function(){var A;if((A=this.data)!=null&&A.badgeInteractionLogging){var t;if(A=(t=this.data.badgeInteractionLogging)==null?void 0:t.trackingParams)this.ctaVisualElement=_.zV(A)}};
_.J.maybeLogClicks=function(){this.currentCsn=_.Ws(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.o7(this.currentCsn,this.ctaVisualElement)};
_.J.maybeLogShows=function(){this.currentCsn=_.Ws(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Vg(this.currentCsn,[this.ctaVisualElement])};
_.J.onTap=function(){var A;if((A=this.data)!=null&&A.onClickCommand){var t;this.ytComponentBehavior.resolveCommand((t=this.data)==null?void 0:t.onClickCommand);this.maybeLogClicks()}};
Cq.prototype.onDataChanged=Cq.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Cq.prototype,"ytComponentBehavior",void 0);_.V([_.n({}),_.H("design:type",Object)],Cq.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cq.prototype,"onDataChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Cq);
_.Y(Cq,"ytd-shopping-overlay-badge-renderer",function(){if(baQ!==void 0)return baQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return baQ=A},{mode:1});_.Hn(_.lkm,"reel-sound-metadata-view-model",{props:{data:_.dt,overlayDensity:_.dt}});_.Hn(_.fFd,"player-disclosure-view-model",{props:{data:_.PS,extractOverlay:_.PS}});_.Hn(_.AyT,"pivot-button-view-model",{props:{data:_.dt,className:_.dt}});_.Hn(_.t_p,"reel-action-bar-view-model",{props:{data:_.PS,buttonShapeOverrideables:_.PS}});_.Hn(_.l3m,"yt-reel-metapanel-view-model",{props:{data:_.PS,overlayDensity:_.PS,extractOverlay:_.PS}});var Whu=_.I(function(A){var t=A.children;var f=A.region;A=_.U(_.hZ(void 0,void 0,"flxBBc"));var X=A.next().value,Q=A.next().value;A=_.U(_.hZ("0px",void 0,"IAR7k"));var q=A.next().value,e=A.next().value;A=_.U(_.hZ("0px",void 0,"QV4iWb"));var G=A.next().value,N=A.next().value;A=_.U(_.hZ(0,void 0,"Q2oK6b"));var z=A.next().value,T=A.next().value;A=_.U(_.hZ(0,void 0,"hYKowe"));var O=A.next().value,c=A.next().value,B=function(){var S=X();if(S){var Z;if(((Z=_.JE())==null?void 0:Z.getPlayerState())!==-1){S.style.display=
"inherit";var d;(d=_.JE())==null||d.removeEventListener("onStateChange",B)}else S.style.display="none";W()}},h=function(){var S;
return(S=_.K1())==null?void 0:S.querySelector("video")},W=function(){var S=h();
if(S){T(S.getBoundingClientRect().width);c(S.getBoundingClientRect().height);var Z;e((S==null?void 0:(Z=S.style)==null?void 0:Z.left)||"0px");var d;N((S==null?void 0:(d=S.style)==null?void 0:d.top)||"0px")}};
_.oo(function(){var S=X();if(S){var Z,d,K;if(((Z=_.JE())==null?void 0:Z.getPlayerState())===-1&&Math.round(((K=(d=_.JE())==null?void 0:d.getVideoAspectRatio())!=null?K:0)*100)!==Math.round(z()/O()*100)){S.style.display="none";var k,Gz;c(z()/((Gz=(k=_.JE())==null?void 0:k.getVideoAspectRatio())!=null?Gz:1))}}},"N29KDe");
var L=function(){W()},E;
_.Zk(function(){W();var S;if(!(f==null?0:(S=f())==null?0:S.transformationMatrix))throw Error("cp");var Z;(Z=_.JE())==null||Z.addEventListener("onStateChange",B);if(window.ResizeObserver){if(S=h())E=new ResizeObserver(L),E.observe(S)}else window.addEventListener("resize",W);_.dD(function(){var d;(d=_.JE())==null||d.removeEventListener("onStateChange",B);E?E.disconnect():window.removeEventListener("resize",W)})});
var D=function(){var S,Z,d=(Z=f==null?void 0:(S=f())==null?void 0:S.transformationMatrix)!=null?Z:[];S=z();Z=O();for(var K=[],k=0,Gz=-1;k<d.length;k++)k%3===0&&(Gz++,K[Gz]=[]),K[Gz].push(d[k]);d=new Bq(K);K=new Bq([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);K=d.multiply(K);d=new Bq([[0,0],[0,0],[0,0],[0,0]]);for(k=0;k<K.getSize().width;k++){Gz=Mf(K,0,k);var Tz=Mf(K,1,k);if(Gz===null||Tz===null)throw Error("bp`"+(k+1).toString());zcj(d,k,0,Gz*S);zcj(d,k,1,Tz*Z)}S=Mf(d,0,0);k=Mf(d,1,0);Z=Mf(d,0,1);Gz=Mf(d,1,1);
if(S===null||k===null||Z===null||Gz===null)throw Error("$o");K=A83(S,k,Z,Gz);Tz=Mf(d,3,0);d=Mf(d,3,1);if(Tz===null||d===null)throw Error("ap");d=A83(S,Tz,Z,d);Gz=(Number((Gz*-1).toFixed(2))-Number((Z*-1).toFixed(2)))/(Number(k.toFixed(2))-Number(S.toFixed(2)));Tz=Math.atan(Gz)*180/Math.PI;k=Gz===Number.POSITIVE_INFINITY?-90:Gz===Number.NEGATIVE_INFINITY?90:Object.is(Gz,-0)?180:Gz===0?0:Gz>0?Tz*-1:S<k?Tz*-1:Math.abs(Tz)+180;return"left:calc("+S+"px + "+q()+"); top:calc("+(Z+"px + "+G()+"); width:")+
(K+"px; height:")+(d+"px; transform:rotate(")+(k+"deg);\n        --sticker-width:"+K+";")};
return _.u(kcx,{root:"#sticker-layer"},function(){return _.u("yt-overlay-sticker",{el:_.ZY(Q),style:D,class:"ytOverlayStickerHost"},t)})},"zn");var y8i=_.I(function(A){function t(){var B,h,W,L,E=(h=_.C((B=N())==null?void 0:B.command,_.L1k))==null?void 0:(W=h.item)==null?void 0:(L=W.notificationTextRenderer)==null?void 0:L.successResponseText;if(E)B=_.aC(E),_.kJ(X.value,"yt-open-popup-action",[B,X.value]);else if(z())fki(z(),X.value);else{var D;fki((D=N())==null?void 0:D.command,X.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var f=A.data;var X=_.GU("svg"),Q=_.U(_.hZ(!1,void 0,"e9onLe"));A=Q.next().value;var q=Q.next().value,e=_.U(_.hZ(!1,void 0,"ptnIQd"));Q=e.next().value;var G=e.next().value,N=function(){var B;return _.C((B=f())==null?void 0:B.popUp,Cki)},z=function(){var B;
return(B=f())==null?void 0:B.command},T=function(){return _.C(z(),_.ij)!==void 0};
e=_.f1(function(){t();return!1});
var O={},c={};return _.u("svg",{"on:mouseover":_.f1(function(){T()&&q(!0);G(!0);return!1}),
"on:mouseout":_.f1(function(){q(!1);G(!1);return!1}),
"on:keydown":_.f1(function(B){B.key==="Enter"&&t();return!1}),
"on:focus":_.f1(function(){T()&&q(!0);return!1}),
"on:blur":_.f1(function(){T()&&q(!1);return!1}),
el:X,tabindex:0,"aria-label":function(){var B;return(B=f())==null?void 0:B.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Ao("ytPlayerOverlayInteractionInteractionsSvg",(O.ytPlayerOverlayInteractionInteractionsSvgHover=A,O),(c.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Q,c)),role:"button","on:click":e})},"Cn");_.Hn(_.I(function(A){var t=A.data;_.Zk(function(){var f;if((f=t())==null?0:f.trackingParams){var X;_.er().graftServerVe((X=t().trackingParams)!=null?X:"")}});
return _.u("yt-player-overlay-interaction",null,_.u(Whu,{region:function(){var f,X;return(f=t())==null?void 0:(X=f.regions)==null?void 0:X[0]}},_.u(y8i,Object.assign({},A))))},"Bn"),"yt-player-overlay-interaction",{props:{data:_.PS}});var vki=_.I(function(A){var t=A.data;var f=A.index;var X=A.selectedChoice;var Q=function(){var q;return _.C((q=t())==null?void 0:q.renderer,hcH)};
A={};return _.u("yt-overlay-poll-sticker-choice",{class:_.Ao("ytOverlayPollStickerChoiceHost"),style:_.U7({"--displayed-percentage":function(){var q,e,G,N;return""+Math.ceil(Number((X==null?void 0:X())===f()?(q=Q())==null?void 0:(e=q.selected)==null?void 0:e.progressBarWidth:(G=Q())==null?void 0:(N=G.unselected)==null?void 0:N.progressBarWidth)*100)}})},_.u("div",{class:_.Ao("ytOverlayPollStickerChoicePollChoice",(A.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(X==null?void 0:X())!==
void 0},A.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(X==null?void 0:X())===f()},A))},_.u("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var q;
return((q=Q())==null?void 0:q.text)||""}),_.u("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(X==null?void 0:X())==="undefined")var q="";
else{var e,G,N,z;q=(X==null?void 0:X())===f()?(e=Q())==null?void 0:(G=e.selected)==null?void 0:G.votePercentage:(N=Q())==null?void 0:(z=N.unselected)==null?void 0:z.votePercentage}return q})))},"Dn");var Lhb=_.I(function(A){var t=A.data;var f=_.um(function(Q){var q,e=((q=t())==null?void 0:q.postPollStateEntityKey)||"";Q=_.q_(Q.entities,"postPollStateEntity",e);var G;return((G=t())==null?0:G.viewerIsOwner)?Object.assign({},Q,{selectedOptionId:-1,voted:!0}):Q}),X=_.Px().resolve(_.i2);
return _.u("yt-overlay-poll-sticker",null,_.u(Whu,{region:function(){var Q,q;return(Q=t())==null?void 0:(q=Q.region)==null?void 0:q.interactionRegion}},_.u("div",{class:_.Ao("ytOverlayPollStickerHost"),
style:_.U7({"--original-height":function(){var Q;return""+(((Q=t())==null?void 0:Q.mainBodyHeight)||1)},
"--original-width":function(){var Q;return""+(((Q=t())==null?void 0:Q.mainBodyWidth)||1)},
"--scaled-width":function(){var Q;return""+(((Q=t())==null?void 0:Q.mainBodyWidth)||1)},
"--primary-surface":function(){var Q,q;return t2x(((Q=t())==null?void 0:(q=Q.theme)==null?void 0:q.primarySurface)||0)},
"--raised-surface":function(){var Q,q;return t2x(((Q=t())==null?void 0:(q=Q.theme)==null?void 0:q.raisedSurface)||0)},
"--secondary-surface":function(){var Q,q;return t2x(((Q=t())==null?void 0:(q=Q.theme)==null?void 0:q.secondarySurface)||0)},
"--primary-text":function(){var Q,q;return t2x(((Q=t())==null?void 0:(q=Q.theme)==null?void 0:q.primaryText)||0)},
"--secondary-text":function(){var Q,q;return t2x(((Q=t())==null?void 0:(q=Q.theme)==null?void 0:q.secondaryText)||0)}})},_.u("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return t().questionText}," "),_.u(_.xk,{each:function(){return t().pollChoiceConfigs||[]}},function(Q,q){return _.u("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.f1(function(){var e=q(),G;if((G=t())==null||!G.viewerIsOwner){var N,z;G=(N=t())==null?void 0:(z=N.pollChoiceConfigs)==null?void 0:z[e];if(z=(G==null?0:G.renderer)?_.C(G.renderer,hcH):void 0){var T;N=((T=f())==null?void 0:T.selectedOptionId)!==e;var O;if(T=(O=N?z.selectedPollCommand:z.deselectedPollCommand)==null?void 0:O.innertubeCommand){X.resolveCommand(T);var c,B;_.ZK().dispatch(_.Ta("postPollStateEntity",((c=f())==null?void 0:c.key)||"",{key:((B=f())==null?void 0:B.key)||"",selectedOptionId:N?
e:-1,voted:N}))}}}})},_.u(vki,{data:Q,
index:q,selectedChoice:function(){var e,G;return((e=f())==null?0:e.voted)?(G=f())==null?void 0:G.selectedOptionId:void 0}}))}),_.u("div",{class:"ytOverlayPollStickerVoteCount"},function(){var Q,q;
return((Q=f())==null?0:Q.voted)&&((q=f())==null?void 0:q.selectedOptionId)!==-1?t().postVoteCountText:t().preVoteCountText}))))},"En");_.Hn(_.I(function(A){var t=A.data;return _.u("yt-stickers-layer",null,_.u(_.xk,{each:function(){var f;return((f=t())==null?void 0:f.stickers)||[]}},function(f){return _.u(_.P,{cond:function(){return _.M("enable_shorts_poll_stickers_web")},
then:function(){return _.u(_.P,{cond:function(){return f==null?void 0:f.pollSticker},
then:function(X){return _.u(Lhb,{data:X})}})}})}))},"Fn"),"yt-stickers-layer",{props:{data:_.PS}});var hd=function(){var A=_.F.apply(this,arguments)||this;A.showScrubber=!1;A.isWatchWhileMode=!1;A.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");A.enablePollStickers=_.M("enable_shorts_poll_stickers_web");A.enableShortsModernControls=_.M("web_shorts_modern_controls");A.anchoredPanelActive=!1;A.enableLivingroomLayout=_.M("reels_enable_livingroom_layout");A.enablePlayerMetadataContainer=_.M("reels_web_enable_metadata_container");A.enableSqueezebackPanels=_.M("web_shorts_enable_squeezeback_panels");
A.useAspectRatio=_.M("web_use_aspect_ratio");A.isSqueezebackActive=!1;A.smallScreenSqueezeback=!1;A.isPlayerStarted=!1;A.overlayDensity=0;A.extractOverlay=!1;A.extractActionBar=!1;A.isOverlay=!1;A.isImmersive=!1;A.isImmersiveHorizontal=!1;A.isFullscreen=!1;A.onWindowResized=function(){var t;A.set("isImmersive",((t=window.getComputedStyle(A.hostElement))==null?void 0:t.getPropertyValue("--immersive-mode-on"))==="1");A.set("isImmersiveHorizontal",A.isImmersive&&A.enableLivingroomLayout&&!A.isWatchWhileMode)};
return A};
_.R(hd,_.F);_.J=hd.prototype;_.J.updateIsOverlay=function(A){this.isOverlay=A.detail.value};
_.J.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.J.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.J.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.J.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.J.onOverlayDensityChange=function(){var A=_.sF(this.hostElement).querySelector("ytd-info-panel-container-renderer");A&&(A.set("extractOverlay",this.extractOverlay),A.set("roundedContainer",this.extractOverlay))};
_.J.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.J.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.J.ready=function(){(_.M("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.M("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Bx("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.Bx("reels_action_justified_content")||"flex-start")};
_.J.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",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.J.setFakeLoadingButtons=function(){_.M("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.e5("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.e5("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.e5("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.e5("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.e5("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()};
_.J.setEmptyOverlayMetadata=function(){_.M("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}))};
_.PV.Object.defineProperties(hd.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.infoPanel)}}});
hd.prototype.onOverlayDensityChange=hd.prototype.onOverlayDensityChange;hd.prototype.onIsActiveChanged=hd.prototype.onIsActiveChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],hd.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],hd.prototype,"ytdReduxBehavior",void 0);
_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],hd.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],hd.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],hd.prototype,"isActive",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],hd.prototype,"hidden",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],hd.prototype,"useShortsIcon",void 0);
_.V([_.n({value:"left"}),_.H("design:type",String)],hd.prototype,"buttonTooltipPosition",void 0);_.V([_.n({value:_.M("reels_enable_livingroom_layout")?"top":"left"}),_.H("design:type",String)],hd.prototype,"likeButtonTooltipPosition",void 0);_.V([_.n({value:"none"}),_.H("design:type",String)],hd.prototype,"textTransform",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"showScrubber",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"isWatchWhileMode",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.infoPanel"),_.H("design:type",Object),_.H("design:paramtypes",[])],hd.prototype,"hasInfoPanel",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"enableAnchoredPanel",void 0);_.V([_.n(),_.H("design:type",Object)],hd.prototype,"enablePollStickers",void 0);
_.V([_.n(),_.H("design:type",Object)],hd.prototype,"enableShortsModernControls",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"anchoredPanelActive",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"enableLivingroomLayout",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],hd.prototype,"enablePlayerMetadataContainer",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"enableSqueezebackPanels",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"useAspectRatio",void 0);_.V([_.n({selector:_.dC0,reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"isSqueezebackActive",void 0);_.V([_.n({selector:$4y,reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"smallScreenSqueezeback",void 0);
_.V([_.n({selector:HFu}),_.H("design:type",Object)],hd.prototype,"isPlayerStarted",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"overlayDensity",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"extractOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"extractActionBar",void 0);_.V([_.n(),_.H("design:type",Object)],hd.prototype,"isOverlay",void 0);
_.V([_.n(),_.H("design:type",Object)],hd.prototype,"isImmersive",void 0);_.V([_.n(),_.H("design:type",Object)],hd.prototype,"isImmersiveHorizontal",void 0);_.V([_.n({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.H("design:type",Boolean)],hd.prototype,"isShortsImmersive",void 0);_.V([_.n({computed:"computeButtonOverride(extractActionBar)"}),_.H("design:type",Object)],hd.prototype,"buttonOverride",void 0);
_.V([_.n({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.H("design:type",Object)],hd.prototype,"actionBarButtonOverride",void 0);_.V([_.n({selector:_.sn,reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"isFullscreen",void 0);_.V([_.ev("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hd.prototype,"onIsActiveChanged",null);
_.V([_.ev("extractOverlay"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hd.prototype,"onOverlayDensityChange",null);_.V([_.y_({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],hd);
_.Y(hd,"ytd-reel-player-overlay-renderer",function(){if(mpb!==void 0)return mpb;var A=document.createElement("template");_.m(A,'\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-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" 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-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\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]]" extract-overlay="[[extractOverlay]]" 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="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\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="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\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="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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return mpb=A},{mode:1});var p5i;var Rs=function(){var A=_.F.apply(this,arguments)||this;A.videoDuration=0;A.playedTime=0;A.isActive=!1;A.JSC$22870_playerEvents=new Map;return A};
_.R(Rs,_.F);_.J=Rs.prototype;_.J.created=function(){this.JSC$22870_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22870_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.J.attached=function(){this.getPlayerAndInitializeListeners()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22870_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.JY(this,this.onPageChanged))};
_.J.getPlayerAndInitializeListeners=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return t=_.K1(),t?f.yield(t.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.JY(A,A.onPageChanged)),f.jumpTo(0));A.player=f.yieldResult;A.initializePlayerListeners();_.LO(f)})};
_.J.onPageChanged=function(A){var t=this;return _.l(function(f){if(f.nextAddress==1)return A.detail.newPageType!=="ytd-shorts"?f.return():f.yield(_.ge().getPlayerPromise(),2);t.player=f.yieldResult;t.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.JY(t,t.onPageChanged));_.LO(f)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22870_playerEvents)};
_.J.onVideoDataChange=function(A){var t=this;return _.l(function(f){if(!t.player||A.type!=="newdata")return f.return();t.videoDuration=_.M("web_shorts_use_progress_state_for_gapless")?t.player.getProgressState(A.playertype).seekableEnd:t.player.getDuration(A.playertype);t.playedTime=0;_.LO(f)})};
_.J.onVideoProgress=function(A){var t=this,f,X;return _.l(function(Q){if(!t.player)return Q.return();f=t.player.getPresentingPlayerType();X=t.player.getPlayerState();t.videoDuration=_.M("web_shorts_use_progress_state_for_gapless")?t.player.getProgressState(f).seekableEnd:t.player.getDuration(f);t.playedTime=X===0?t.videoDuration:A;_.LO(Q)})};
_.J.getPercentPlayed=function(A,t){return A?_.ps(t/A,0,1):0};
_.PV.Object.defineProperties(Rs.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 A="";return A=this.videoDuration&&this.playedTime?A+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):A+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Rs.prototype,"componentBehavior",void 0);_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],Rs.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Rs.prototype,"player",void 0);_.V([_.n(),_.H("design:type",Object)],Rs.prototype,"videoDuration",void 0);_.V([_.n(),_.H("design:type",Object)],Rs.prototype,"playedTime",void 0);_.V([_.n(),_.H("design:type",Object)],Rs.prototype,"isActive",void 0);
_.V([_.y("videoDuration","playedTime"),_.H("design:type",Number),_.H("design:paramtypes",[])],Rs.prototype,"percentPlayed",null);_.V([_.y("videoDuration","playedTime"),_.H("design:type",Object),_.H("design:paramtypes",[])],Rs.prototype,"percentPlayedStyle",null);_.V([_.y("videoDuration","isActive"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rs.prototype,"hideProgressBar",null);
_.Y(Rs,"ytd-progress-bar-line",function(){if(p5i===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);p5i=A}A=p5i;return A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var Ekb;_.Hn(_.D92,"ytm-closed-captioning-button",{props:{captionIconType:_.PS,onClick:_.dt,ariaLabel:_.PS,ariaPressed:_.PS,isOverlay:_.dt,isModern:_.dt}});_.Hn(_.qvl,"desktop-shorts-volume-controls",{props:{orientation:_.PS}});var mo=function(){var A=_.F.apply(this,arguments)||this;A.playerState=null;A.isMuted=!1;A.shortsModernControlsEnabled=_.M("web_shorts_modern_controls");A.volumeControlsOrientationState="horizontal_right";A.isOverlay=!0;A.isAdsOverlay=!1;A.captionIconType=-1;A.ariaLabel="";A.overlayDensity=0;A.JSC$22873_playerEvents=new Map;A.onClosedCaptionsButtonClick=function(){A.player&&_.Sf(A.player)&&(A.player.toggleSubtitles(),A.updateCaptionIconType())};
return A};
_.R(mo,_.F);_.J=mo.prototype;_.J.created=function(){this.JSC$22873_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22873_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22873_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.J.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Xl(28662);this.playPauseButtonClientVE=_.Xl(36842);this.fullscreenButtonToggleOffClientVE=_.Xl(222256);this.fullscreenButtonToggleOnClientVE=_.Xl(222257);var A=_.Ws(),t=_.mx();A&&t&&(_.M("combine_ve_grafts")?(_.jN(_.er(),this.muteButtonClientVE,t),_.jN(_.er(),this.playPauseButtonClientVE,t)):_.j5(A,t,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22873_playerEvents),this.player=null)};
_.J.updateCaptionIconType=function(){var A=-1,t=void 0,f=_.e5("CLOSED_CAPTIONS_DISABLED");this.player&&_.Sf(this.player)&&(_.Cdh(this.player)?(t=!0,f=_.e5("CLOSED_CAPTIONS_ON"),A=1):(t=!1,f=_.e5("CLOSED_CAPTIONS_OFF"),A=0));this.captionIconType=A;this.ariaPressedState=t;this.ariaLabel=f};
_.J.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.J.getPlayerAndInitializeListeners=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return t=_.K1(),t?f.yield(t.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.JY(A,A.onPageChanged)),f.jumpTo(0));A.player=f.yieldResult;A.initializePlayerListeners();_.LO(f)})};
_.J.onPageChanged=function(A){var t=this;return _.l(function(f){if(f.nextAddress==1)return A.detail.newPageType!=="ytd-shorts"?f.return():f.yield(_.ge().getPlayerPromise(),2);t.player=f.yieldResult;t.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.JY(t,t.onPageChanged));_.LO(f)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22873_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.J.onPlayerStateChange=function(A){this.playerState=A};
_.J.onPlayerVolumeChange=function(A){this.isMuted=A.muted};
_.J.onPlayPauseButtonClick=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(_.ge().getPlayerPromise(),2);t=X.yieldResult;(f=_.Ws())&&A.playPauseButtonClientVE&&_.o7(f,A.playPauseButtonClientVE);t.getPlayerState()!==1?t.playVideo():t.pauseVideo();_.LO(X)})};
_.J.computePlayPauseIcon=function(A){return A===2||A===-1||A===5?_.M("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.M("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.M("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.J.computeFullscreenLabel=function(A){return A?_.e5("FULLSCREEN_EXIT_LABEL"):_.e5("FULLSCREEN_ENTER_LABEL")};
_.J.computePlayPauseLabel=function(A){return A===1||A===3?_.e5("PLAYER_LABEL_PAUSE"):_.e5("PLAYER_LABEL_PLAY")};
_.J.onMuteButtonClick=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(_.ge().getPlayerPromise(),2);t=X.yieldResult;(f=_.Ws())&&A.muteButtonClientVE&&_.o7(f,A.muteButtonClientVE);t.isMuted()?t.unMute(!0):t.mute(!0);_.LO(X)})};
_.J.computeMuteIcon=function(A){return A?"miniplayer:volume-off":"miniplayer:volume-up"};
_.J.computeMuteLabel=function(A){return A?_.e5("PLAYER_LABEL_UNMUTE"):_.e5("PLAYER_LABEL_MUTE")};
_.J.onFullscreenButtonClick=function(){var A=_.Ws();A&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.o7(A,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.o7(A,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.LIl()};
_.PV.Object.defineProperties(mo.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var A=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(){A.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
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?_.M("web_shorts_modern_controls")?"player_full_exit_alt":_.M("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.M("web_shorts_modern_controls")?"player_full_enter_alt":_.M("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],mo.prototype,"componentBehavior",void 0);_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],mo.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],mo.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],mo.prototype,"player",void 0);_.V([_.n(),_.H("design:type",Object)],mo.prototype,"playerState",void 0);_.V([_.n(),_.H("design:type",Object)],mo.prototype,"isMuted",void 0);
_.V([_.n({computed:"computePlayPauseIcon(playerState)"}),_.H("design:type",String)],mo.prototype,"playPauseIcon",void 0);_.V([_.n({computed:"computeMuteIcon(isMuted)"}),_.H("design:type",String)],mo.prototype,"muteIcon",void 0);_.V([_.n({selector:_.sn}),_.H("design:type",Boolean)],mo.prototype,"isFullscreen",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],mo.prototype,"shortsModernControlsEnabled",void 0);
_.V([_.n(),_.H("design:type",Object)],mo.prototype,"volumeControlsOrientationState",void 0);_.V([_.n(),_.H("design:type",Object)],mo.prototype,"isOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],mo.prototype,"isAdsOverlay",void 0);_.V([_.n(),_.H("design:type",Object)],mo.prototype,"captionIconType",void 0);_.V([_.n(),_.H("design:type",Object)],mo.prototype,"ariaLabel",void 0);_.V([_.n(),_.H("design:type",Object)],mo.prototype,"ariaPressedState",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],mo.prototype,"overlayDensity",void 0);_.V([_.n(),_.H("design:type",Object)],mo.prototype,"data",void 0);_.V([_.n({computed:"computeActionBarButtonOverride()"}),_.H("design:type",Object)],mo.prototype,"actionBarButtonOverride",void 0);_.V([_.y("playerState"),_.H("design:type",Object),_.H("design:paramtypes",[])],mo.prototype,"playPauseButtonData",null);
_.V([_.y("isFullscreen"),_.H("design:type",Object),_.H("design:paramtypes",[])],mo.prototype,"fullscreenButtonData",null);_.V([_.n(),_.H("design:type",Object)],mo.prototype,"onClosedCaptionsButtonClick",void 0);_.V([_.y("isFullscreen"),_.H("design:type",String),_.H("design:paramtypes",[])],mo.prototype,"fullscreenIcon",null);
_.Y(mo,"ytd-shorts-player-controls",function(){if(Ekb===void 0){var A=document.createElement("template");_.m(A,'\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<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <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    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\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  <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  <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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);Ekb=A}A=Ekb;return A},{mode:1});var nkW;_.Hn(_.gl8,"yt-interstitial-view-model",{props:{data:_.PS}});var DpH=_.I(function(A){var t=A.data;return _.u("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.u("h1",{class:"reelWatchBreakViewModelHostTitle"},_.u(_.zL,{text:function(){return t().title}})),_.u("h2",{class:"reelWatchBreakViewModelHostBody"},_.u(_.zL,{text:function(){return t().body},
isOverlay:!0})),_.u(_.P1,{data:function(){return t().buttons}},{buttonViewModel:function(f,X){return _.u("div",{class:function(){return X()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.u(_.nx,{data:f.data}))}}))},"Gn");
DpH.idomCompat=!0;_.Hn(DpH,"reel-watch-break-view-model",{props:{data:_.PS}});var bt=function(){return _.F.apply(this,arguments)||this};
_.R(bt,_.F);bt.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}}};
_.PV.Object.defineProperties(bt.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.C((A=this.data)==null?void 0:A.renderer,iaW)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.C((A=this.data)==null?void 0:A.renderer,Oab)}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],bt.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],bt.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bt.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("data.renderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bt.prototype,"isSurvey",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.renderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bt.prototype,"isInterstitialViewModel",null);_.V([_.y_({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],bt);
_.Y(bt,"ytd-reel-non-video-content-renderer",function(){if(nkW!==void 0)return nkW;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return nkW=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var Fhy;_.Hn(_.Qim,"desktop-shorts-player-controls",{});var Wq=function(){var A=_.F.apply(this,arguments)||this;A.isPlayerPaused=!1;A.isPlayerStarted=!1;A.showPlayerControls=!1;A.showScrubber=!1;A.autoHideJobId=0;A.overlayType=_.Bx("web_shorts_expanded_overlay_type");A.panelData=void 0;A.isWatchWhileMode=!1;A.hasError=!1;A.panelShowDelayMs=1;A.scrubberComponent={};A.isFullscreen=!1;A.shouldHideOverlay=!1;A.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");A.enablePersistentAnchoredPanel=_.M("desktop_shorts_v2_persistent_anchored_panel");A.hideWatchWhilePanel=
_.M("web_shorts_hide_watch_while_panel");A.useAspectRatio=_.M("web_use_aspect_ratio");A.enableShortsModernControls=_.M("web_shorts_modern_controls");A.isPersistentPanelActive=!1;A.anchoredPanelActive=!1;A.isShortsPipActive=!1;A.smallScreenSqueezeback=!1;A.enableFlexibleOverlay=_.M("web_enable_flexible_overlay");A.overlayDensity=0;A.extractOverlay=!1;A.extractActionBar=!1;A.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
A.onWindowResized=function(){_.Ig(A,"calculateOverlayDensity",function(){A.calculateOverlayDensity()},100)};
return A};
_.R(Wq,_.F);_.J=Wq.prototype;_.J.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.J.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.J.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var A=_.Px().resolve(_.rA);this.isWatchWhileMode&&_.a6.addJob(function(){A.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.J.handleShowReelsCommentsOverlayCommand=function(A){A=_.C(A,M2Q);this.isActive&&(A==null?0:A.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))};
_.J.updateEngagementPanelVisibility=function(A,t){A&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:t?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:A}})};
_.J.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.J.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.Px().resolve(_.on).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.J.handleWatchWhilePanelScrimClick=function(){var A=_.Px().resolve(_.rA);this.activeWatchWhilePanel&&(A.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.J.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.J.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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.J.handlePlayerClick=function(A){var t=this,f,X;if((X=(f=window).matchMedia)!=null&&X.call(f,"(any-pointer: coarse)").matches||!A)this.showPlayerControls=!0,_.a6.cancelJob(this.autoHideJobId),this.autoHideJobId=_.jY(_.a6,function(){t.showPlayerControls=!1},4E3)};
_.J.isFirstReel=function(){return this.index===0};
_.J.handleMouseenter=function(){_.a6.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.J.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.J.handleScrubberEnter=function(){this.showScrubber=!0};
_.J.handleScrubberLeave=function(){this.showScrubber=!1};
_.J.maybeLogNonDefaultAspectRatio=function(){var A;(A=this.data)!=null&&A.thumbnail&&this.isActive&&.5625!==SHy(this.data.thumbnail)&&_.mSl("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.J.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var A=document.querySelector("#shorts-container");if(A){var t=!1,f,X=this.playerContainer.offsetWidth,Q=this.playerContainer.offsetHeight;A=A.offsetWidth/2-X/2;A>=368?(A=1,t=f=!0):A>=72?(A=0,f=!0):(A=2,f=!1);X>=600&&Q>=840?A=1:window.innerWidth<=599&&(A=2,f=t=!1);this.isPersistentPanelActive&&(A=0,t=!1);this.extractActionBar=f;_.M("web_enable_flexible_overlay")&&(this.overlayDensity=A,this.extractOverlay=
t);var q;(q=this.onOverlayDensityChanged)==null||q.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.J.onOverlayDensityChange=function(){var A;(A=this.onOverlayDensityChanged)==null||A.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(A=_.sF(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))A.set("overlayDensity",this.overlayDensity),A.set("extractOverlay",this.extractOverlay),A.set("extractActionBar",this.extractActionBar);if(A=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))A.overlayDensity=this.overlayDensity,A.extractOverlay=
this.extractOverlay,A.extractActionBar=this.extractActionBar};
_.J.isVideoContent=function(A){_.Px().resolve(_.on);return!!_.C(A,_.zD)};
_.J.isNonVideoContent=function(A){_.Px().resolve(_.on);return!!_.C(A,_.JM)};
_.J.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.PV.Object.defineProperties(Wq.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var A,t;return _.M("web_enable_format_first")||((A=this.data)==null?void 0:A.adsOverlay)&&_.M("web_enable_format_first_ads_only")||((t=this.data)==null?void 0:t.reelPlayerOverlayRenderer)&&_.M("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.M("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var A;return!this.isActive||!this.isPlayerStarted||(A=this.data)!=null&&A.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?0:A.command)&&this.isVideoContent(this.data.command)){var t,f;if(((t=this.data)==null?0:t.adsOverlay)&&Object.keys((f=this.data)==null?void 0:f.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var X,Q;if(((X=this.data)==null?0:X.reelPlayerOverlayRenderer)&&Object.keys((Q=this.data)==null?void 0:Q.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Wq.prototype.onOverlayDensityChange=Wq.prototype.onOverlayDensityChange;Wq.prototype.calculateOverlayDensity=Wq.prototype.calculateOverlayDensity;Wq.prototype.maybeLogNonDefaultAspectRatio=Wq.prototype.maybeLogNonDefaultAspectRatio;Wq.prototype.onEngagementPanelsChanged=Wq.prototype.onEngagementPanelsChanged;Wq.prototype.onScrubberDataChange=Wq.prototype.onScrubberDataChange;Wq.prototype.updateShouldHideOverlay=Wq.prototype.updateShouldHideOverlay;
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Wq.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],Wq.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Wq.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],Wq.prototype,"index",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Wq.prototype,"isActive",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Wq.prototype,"isHiddenInDom",void 0);_.V([_.n(),_.H("design:type",Object)],Wq.prototype,"isPlayerPaused",void 0);_.V([_.n({selector:HFu}),_.H("design:type",Object)],Wq.prototype,"isPlayerStarted",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"showPlayerControls",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"showScrubber",void 0);_.V([_.n(),_.H("design:type",Object)],Wq.prototype,"autoHideJobId",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"overlayType",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Wq.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Wq.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Wq.prototype,"watchWhileEngagementPanels",void 0);_.V([_.n(),_.H("design:type",Object)],Wq.prototype,"panelData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"isWatchWhileMode",void 0);_.V([_.n(),_.H("design:type",String)],Wq.prototype,"activeWatchWhilePanel",void 0);_.V([_.n(),_.H("design:type",Object)],Wq.prototype,"hasError",void 0);_.V([_.n(),_.H("design:type",Object)],Wq.prototype,"panelShowDelayMs",void 0);
_.V([_.n(),_.H("design:type",Object)],Wq.prototype,"scrubberComponent",void 0);_.V([_.n({selector:_.sn,reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"isFullscreen",void 0);_.V([_.n(),_.H("design:type",Object)],Wq.prototype,"shouldHideOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"enableAnchoredPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"enablePersistentAnchoredPanel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"hideWatchWhilePanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"useAspectRatio",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"enableShortsModernControls",void 0);_.V([_.n({selector:_.dC0,reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"isPersistentPanelActive",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"anchoredPanelActive",void 0);_.V([_.n({selector:_.ku,reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"isShortsPipActive",void 0);_.V([_.n({selector:$4y,reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"smallScreenSqueezeback",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.adsOverlay"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wq.prototype,"isAdsOverlay",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wq.prototype,"enableFormatFirst",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"enableFlexibleOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"overlayDensity",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"extractOverlay",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Wq.prototype,"extractActionBar",void 0);_.V([_.n(),_.H("design:type",Function)],Wq.prototype,"onOverlayDensityChanged",void 0);_.V([_.n(),_.y("isActive","hasError","isPlayerStarted"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wq.prototype,"shouldRenderPlayerElements",null);_.V([_.n(),_.y("isActive","isWatchWhileMode"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wq.prototype,"watchWhileOrPersistentActive",null);
_.V([_.ev("isActive","hasError","showingExpandedOverlay"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wq.prototype,"updateShouldHideOverlay",null);_.V([_.n({reflectToAttribute:!0}),_.y("isActive","isPlayerStarted","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wq.prototype,"shouldRenderScrubber",null);
_.V([_.ev("shouldRenderScrubber"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wq.prototype,"onScrubberDataChange",null);_.V([_.y("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wq.prototype,"overlayComponent",null);_.V([_.ev("watchWhileEngagementPanels"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wq.prototype,"onEngagementPanelsChanged",null);
_.V([_.lo("#player-container"),_.H("design:type",HTMLElement)],Wq.prototype,"playerContainer",void 0);_.V([_.lo("#cinematic-container"),_.H("design:type",HTMLElement)],Wq.prototype,"cinematicContainer",void 0);_.V([_.ev("isPersistentPanelActive","data.thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wq.prototype,"maybeLogNonDefaultAspectRatio",null);
_.V([_.ev("isPersistentPanelActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wq.prototype,"calculateOverlayDensity",null);_.V([_.ev("overlayDensity","extractOverlay","extractActionBar"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wq.prototype,"onOverlayDensityChange",null);_.V([_.y_({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Wq);
_.Y(Wq,"ytd-reel-video-renderer",function(){if(Fhy!==void 0)return Fhy;var A=document.createElement("template");_.m(A,'\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="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\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 data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" 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="[[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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Fhy=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var yJ=function(){var A=_.F.apply(this,arguments)||this;A.isPreviousPageShorts=!1;A.index=0;A.delayedActiveIndex=0;A.playablePreviousIndex=null;A.isPlayerPaused=!1;A.isPlayerStarted=!1;A.intersectionObserverThreshold=.6;A.fitToVisibleBounds=!1;A.pageSubtype="shorts";A.enablePreviousContinuation=_.M("shorts_in_playlists_web");A.shortsPipEnabled=_.M("web_shorts_pip");A.isDark=document.documentElement.hasAttribute("dark");A.shortsViewTransitions=_.M("web_shorts_view_transitions");A.isFullscreen=!1;A.isShortsPipActive=
!1;A.buttonOverride={iconPosition:"icon-only",size:"XL"};A.anchoredPanelActive=!1;A.isActive=!1;A.smallScreenPersistentPanel=!1;A.isPersistentPanelActive=!1;A.smallScreenSqueezeBack=!1;A.enableScrollIntoViewCenter=_.M("web_scroll_into_view_center");A.formatFirst=_.M("web_enable_format_first")||_.M("web_enable_format_first_ads_only")||_.M("web_enable_format_first_organic_only");A.enableFlexibleOverlay=_.M("web_enable_flexible_overlay");A.extractOverlay=!1;A.useAspectRatio=_.M("web_use_aspect_ratio");
A.enableShortsSequenceRefactorUnify=_.M("web_enable_shorts_sequence_refactor_unify");A.continuationRequestPending=!1;A.carouselContainers=[];A.isShortsInitialized=!1;A.shortsContentList=[];A.hasDataUpdated=!1;A.playerInPosition=!1;A.hidePreviousButtonImmediately=!1;A.showPreviousButtonImmediately=!1;A.endOfNextContinuation=!1;A.currentPlayerIndex=0;A.nextReelVe=_.Xl(56921);A.prevReelVe=_.Xl(56922);A.loopToggleOffVe=_.Xl(198013);A.loopToggleOnVe=_.Xl(198014);A.ambientModeToggleVe=_.Xl(227860);A.reelPlayerPausedStateRendererVe=
_.Xl(141313);A.storedPlaybackSpeed=null;A.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"};A.onOverlayDensityChanged=function(t,f,X,Q){t=A.getActiveReelVideo(t);A.extractOverlay=!!X;t==null||t.setAttribute("overlay-density",String(f));X===void 0||t!=null&&t.toggleAttribute("extract-overlay",
X);Q===void 0||t!=null&&t.toggleAttribute("extract-action-bar",Q)};
return A};
_.R(yJ,_.F);_.J=yJ.prototype;_.J.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.J.setShortsContentList=function(){var A=this,t=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.YV(this.shortsContentList)):[],f=this.firstShortsData;if(f){var X=this.reelWatchSequenceResponse;if(f=this.shortsController==null?void 0:J8b(t,f,X!=null?X:null)){X=f.newContentList;var Q=f.indexChange;if(X.length!==t.length){var q;(q=this.intersectionObserver)==null||q.disconnect();this.shortsContentList=X;Q!==0&&(this.index=Q,_.NB(_.a6,function(){var e;(e=A.getActiveReelVideo(Q))==
null||e.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});A.movePlayerToVideo(Q)},100));
_.a6.addLowPriorityJob(function(){A.observeShorts()},500)}}}};
_.J.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.J.onResize=function(){var A=_.$I(),t=A.dispatch,f=this.calculateIsSmallWidth();t.call(A,_.r0({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:f}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.J.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:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.J.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var A=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,t=A,f=0;A<250&&(t=A+this.shortsInnerContainer.clientWidth,f=24);_.Q_(this.hostElement,{"--ytd-shorts-header-width":t+"px","--ytd-shorts-top-spacing":f+"px"})}};
_.J.isFirstShorts=function(A){return A&&!this.enableShortsSequenceRefactorUnify?this.index===-A.length:this.index===0};
_.J.isActiveReel=function(A,t,f){f&&(t=this.calculatePrevIndex(t,f));return A===t};
_.J.onFullscreenChange=function(){_.M("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.Px().resolve(_.DS).close(!0))};
_.J.engagementPanelsChanged=function(){var A;this.watchWhileEngagementPanels=(A=this.data)==null?void 0:A.engagementPanels};
_.J.unregisterPanels=function(){var A=_.Px().resolve(_.rA);if(this.watchWhileEngagementPanels)for(var t=_.U(this.watchWhileEngagementPanels),f=t.next();!f.done;f=t.next()){var X=f.value,Q=void 0,q=void 0;f=(Q=X.engagementPanelSectionListRenderer)==null?void 0:(q=Q.identifier)==null?void 0:q.tag;X=this.getPanelIdentifier(X.engagementPanelSectionListRenderer);A&&(f&&A.panelMap.delete(f),X&&_.M("web_shorts_panel_caching_bugfix")&&(Q=f=void 0,(Q=(f=A).unregisterPanelContent)==null||Q.call(f,X)))}};
_.J.isVideoContent=function(A){return this.isVideoContentCommand(A==null?void 0:A.command)};
_.J.getActiveReelVideo=function(A){return _.sF(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+A+'"]')};
_.J.calculatePrevIndex=function(A,t){return t?A-((t==null?void 0:t.length)||0):-1};
_.J.onKeydown=function(A){var t=_.Z2(A)||[];if(!_.vF3(t))if(A.code==="ArrowUp")A.preventDefault(),this.handlePrevButtonClick();else if(A.code==="ArrowDown")A.preventDefault(),this.handleNextButtonClick();else if(A.code==="KeyM")this.toggleMuteUnmuteVideo();else if(A.code==="KeyK"||A.code==="Space")this.togglePlayPauseVideo();else if((A.code==="KeyA"||A.code==="ArrowLeft")&&_.M("web_shorts_keyboard_enable_seek_shortcuts")){var f;(f=this.player)==null||f.seekBy(-5)}else if((A.code==="KeyD"||A.code===
"ArrowRight")&&_.M("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var X;(X=this.player)==null||X.seekBy(5)}};
_.J.onServiceRequestCompleted=function(A,t){A=t.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,A.continuationEndpoint||A.prevContinuationEndpoint)this.reelWatchSequenceResponse=A}else A.continuationEndpoint&&A.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:A.entries,continuationEndpoint:A.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=A):A.prevContinuationEndpoint&&
A.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:A.prevEntries,prevContinuationEndpoint:A.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.J.handleEngagementPanelVisibilityChanged=function(A,t){var f=_.Px().resolve(_.rA);if(A&&f){var X=this.getPanelIdentifier(A);if(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==X){f.hidePanel({identifier:this.activePanel});var Q;this.activePanel=((Q=A.identifier)==null?void 0:Q.tag)||A.panelIdentifier}else this.isPersistentPanelActive=!0,_.$I().dispatch(Upu(!0)),this.anchoredPanelActive=!0,this.activePanel=X;else t==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===X&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.$I().dispatch(Upu(!1)))}};
_.J.handlePanelScrimClick=function(){var A=_.Px().resolve(_.rA);this.activePanel&&(A.hidePanel({identifier:this.activePanel}),_.$I().dispatch(Upu(!1)))};
_.J.getShortsLoopSetting=function(){var A,t,f,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:return _.M("kevlar_shorts_auto_advance")?q.yield(_.Az.getInstance(),2):q.return(!0);case 2:return(A=q.yieldResult)?q.yield(A.get("sfvles"),3):q.return(!0);case 3:return f=(t=q.yieldResult)!=null?t:!1,q.yield(A.get("sfvle"),4);case 4:return Q=(X=q.yieldResult)!=null?X:!0,f?q.return(Q):q.return(!0)}})};
_.J.handleSignalActionToggleLoopShortsOff=function(){var A=this,t,f,X;return _.l(function(Q){switch(Q.nextAddress){case 1:if(!A.player)return Q.return();A.player.setLoopVideo(!1);t=_.er();_.VA(t,A.loopToggleOffVe);return Q.yield(_.Az.getInstance(),2);case 2:return(f=Q.yieldResult)?Q.yield(f.set("sfvle",!1),3):Q.return();case 3:return Q.yield(f.set("sfvles",!0),4);case 4:X=_.NJ(),_.u0(0,203,!1),_.u0(0,204,!0),X.save(),_.LO(Q)}})};
_.J.handleSignalActionToggleLoopShortsOn=function(){var A=this,t,f,X;return _.l(function(Q){switch(Q.nextAddress){case 1:if(!A.player)return Q.return();A.player.setLoopVideo(!0);t=_.er();_.VA(t,A.loopToggleOnVe);return Q.yield(_.Az.getInstance(),2);case 2:return(f=Q.yieldResult)?Q.yield(f.set("sfvle",!0),3):Q.return();case 3:return Q.yield(f.set("sfvles",!0),4);case 4:X=_.NJ(),_.u0(0,203,!0),_.u0(0,204,!0),X.save(),_.LO(Q)}})};
_.J.handleSignalActionToggleCinematicShortsOn=function(){K$b(!0);var A;(A=this.JSC$22897_cinematicController)==null||_.D4r(A,!0);_.VA(_.er(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.J.handleSignalActionToggleCinematicShortsOff=function(){K$b(!1);var A;(A=this.JSC$22897_cinematicController)==null||_.D4r(A,!1);_.VA(_.er(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.J.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.J.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.J.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var A=this.overlayContainer.querySelector("#experiment-overlay");A&&_.a6.addLowPriorityJob(function(){A.style.display="unset"},100)}else if(this.overlayContainer){var t;
((t=this.playerElement.getPlayer())==null?void 0:t.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.J.getCurrentShort=function(){if(this.currentEndpoint){var A=this.currentEndpoint;if(this.isNonVideoContentCommand(A)){var t=_.C(A,_.JM);return{reelNonVideoContentRenderer:_.C(t==null?void 0:t.renderer,_.eN),command:A}}if(this.data){var f;t=(f=_.C(this.currentEndpoint,_.zD))==null?void 0:f.thumbnail;var X;f=(X=this.data.overlay)==null?void 0:X.reelPlayerOverlayRenderer;_.Px().resolve(_.on);A=this.data;var Q,q;X=(Q=A.overlay)==null?void 0:(q=Q.shortsAdsRenderer)==null?void 0:q.adSlots;if(X!==void 0)X.length===
0?(_.xu("Shorts ads returned no ad slots."),A=void 0):(X.length>1&&_.xu("Shorts ads has more than one ad slots."),A=_.C(X[0],_.YAw));else{var e,G;A=_.C((e=A.overlay)==null?void 0:(G=e.shortsAdsRenderer)==null?void 0:G.overlay,_.YAw)}e=A;A=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.C(this.currentEndpoint,_.zD),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var N;return{reelPlayerOverlayRenderer:f,thumbnail:t,command:A,adsOverlay:e,
videoId:(N=_.C(this.currentEndpoint,_.zD))==null?void 0:N.videoId}}}};
_.J.created=function(){var A=this;this.scrollToVideoThrottle=new _.qI(function(t,f){f=f===void 0?"smooth":f;var X;(X=A.getActiveReelVideo(t))==null||X.scrollIntoView({behavior:f,block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.Px().resolve(_.on);this.maybeCreateIntersectionObserver()};
_.J.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.J.attached=function(){var A=this;_.Px().resolve(_.on).registerRootElement(this);this.pageScrollElement=_.sF(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.JY(this,this.processResetAction));_.M("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){A.maybeCreateIntersectionObserver();A.scrollToVideoThrottle.fire(A.activeIndex,"instant");A.shortsContainer.style.overflowY=
"scroll"}))};
_.J.updateReelWatchSequenceResponse=function(){var A=this,t;if(_.M("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((t=_.C(this.currentEndpoint,_.zD))==null?0:t.sequenceParams)&&!this.reelWatchSequenceResponse){var f;(f=this.shortsController)==null||Qhi(f,this.currentEndpoint).then(function(X){X&&(A.reelWatchSequenceResponse=X,A.cachedReelWatchSequenceResponse=X,_.a6.addLowPriorityJob(function(){A.observeShorts()}))})}};
_.J.calculateSqueezebackPanelSize=function(){var A=this,t=window.innerWidth-456-(window.innerHeight-106)*.5625;_.a6.addLowPriorityJob(function(){t<360?_.$I().dispatch(ecb(!0)):(A.hostElement.style.setProperty("--anchored-panel-width",Math.min(t,480)+"px"),_.$I().dispatch(ecb(!1)))})};
_.J.detached=function(){var A=_.Px().resolve(_.on);A.rootElement=void 0;var t;(t=A.unsubscribeFromStore)==null||t.call(A);A.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.JY(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.J.onResizeFinished=function(A,t){var f=this,X=new ResizeObserver(function(){f.shortsContainer.style.overflowY="hidden";_.a6.addLowPriorityJob(function(){t()},100)});
X.observe(A);return X};
_.J.resetDocumentScrollTop=function(){var A,t;if((A=document)==null?0:(t=A.scrollingElement)==null?0:t.scrollTop)document.scrollingElement.scrollTop=0};
_.J.loadPage_=function(A){var t=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),A){var f;if((f=_.C(this.currentEndpoint,_.zD))==null?0:f.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=A;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){t.isPlayerStarted&&
(t.handleOnPlaybackCommand(),t.afterPlayerStarted=function(){})};
this.registerPanel(A)}};
_.J.afterPlayerStarted=function(){};
_.J.handleOnPlaybackCommand=function(){if(_.M("web_shorts_comment_stickers")&&this.isPlayerStarted){var A,t=(A=_.C(this.currentEndpoint,_.zD))==null?void 0:A.onPlaybackCommand;t&&this.ytComponentBehavior.resolveCommand(t)}};
_.J.maybeCreateIntersectionObserver=function(){var A=this,t=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==t){this.intersectionObserverThreshold=t;var f={rootMargin:"0px",threshold:t},X;(X=this.intersectionObserver)==null||X.disconnect();this.intersectionObserver=new IntersectionObserver(function(Q){Q=_.U(Q);for(var q=Q.next();!q.done;q=Q.next())if(q=q.value,q.intersectionRatio>t){q=Number(q.target.id);if(isNaN(q))break;if(q===A.index)break;
_.d2b();A.loadVideo(q);_.vt("r_vtc")}},f);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.J.observeShorts=function(){var A,t,f,X=this.enableShortsSequenceRefactorUnify?((A=this.shortsContentList)==null?void 0:A.length)||0:(((t=this.shortsProcessedPrevSequence)==null?void 0:t.length)||0)+(((f=this.shortsProcessedSequence)==null?void 0:f.length)||0);if(this.carouselContainers.length<X&&(this.carouselContainers=[].concat(_.YV(_.sF(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(A=_.U(this.carouselContainers),t=A.next();!t.done;t=
A.next())t=t.value,f=void 0,(f=this.intersectionObserver)==null||f.observe(t);if(!this.enableShortsSequenceRefactorUnify)for(A=_.U(this.carouselContainers),t=A.next();!t.done;t=A.next())t=t.value,f=void 0,(f=this.intersectionObserver)==null||f.observe(t)};
_.J.initCsi=function(){_.oVl("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var A={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"}},t,f;if((t=this.playerData)==null?0:(f=t.cacheMetadata)==null?0:f.isCacheHit)A.isCacheHit=!0;var X;if(t=(X=_.C(this.currentEndpoint,_.zD))==null?void 0:
X.prefetchTaskId)A.prefetchInfo={taskId:t};_.R7(A)};
_.J.isAd=function(){var A,t;return!!((A=_.C(this.currentEndpoint,_.zD))==null?0:(t=A.adClientParams)==null?0:t.isAd)};
_.J.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.J.getPlayerContainer=function(){var A;return(A=_.sF(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:A.playerContainer};
_.J.onPlayerStateChange=function(A){var t=this;this.isPlayerPaused=A===2;A!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?A===1&&this.index===0&&(this.isPlayerStarted||_.$I().dispatch(Gw3(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.$I().dispatch(Gw3(!0)));this.player&&!this.player.getLoopVideo()&&_.a6.addLowPriorityJob(function(){t.getShortsLoopSetting().then(function(f){var X;(X=t.player)==null||X.setLoopVideo(f)})});
this.isPlayerPaused&&_.M("web_shorts_paused_state_logging")&&_.Vg(_.Ws(),[this.reelPlayerPausedStateRendererVe])};
_.J.isShortPlayable=function(){if(_.M("kevlar_playable_short_killswitch"))return!0;var A;return(A=this.playerData)!=null&&A.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.J.setNormalPlaybackSpeed=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(A.getPlayer().getPlayerPromise(),2);t=X.yieldResult;f=t.getPlaybackRate();f!==1&&(A.storedPlaybackSpeed=f,t.setPlaybackRate(1));_.LO(X)})};
_.J.restorePlaybackSpeed=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1)return A.storedPlaybackSpeed===null?f.jumpTo(0):f.yield(A.getPlayer().getPlayerPromise(),3);t=f.yieldResult;t.setPlaybackRate(A.storedPlaybackSpeed);A.storedPlaybackSpeed=null;_.LO(f)})};
_.J.playerDataChanged=function(){var A=this,t,f,X,Q,q,e,G,N,z;return _.l(function(T){if(T.nextAddress==1){t=A.getPlayer();A.enableShortsSequenceRefactorUnify||(f=A.intersectionObserver)==null||f.disconnect();if(A.playerData){if(((X=A.playerData.videoDetails)==null?void 0:X.videoId)!==((Q=t.getPlayer())==null?void 0:Q.getVideoData().video_id)){q={};if(e=_.C(A.currentEndpoint,_.zD))q.watch_endpoint=e,e.endTimeSeconds&&(q.end=e.endTimeSeconds);t.loadVideoWithPlayerResponse(A.playerData,q)}}else return T.return();
return A.player?T.jumpTo(2):T.yield(t.getPlayerPromise(),3)}T.nextAddress!=2&&(A.player=T.yieldResult,A.JSC$22897_playerStateChangeListener=A.onPlayerStateChange.bind(A),A.player.addEventListener("onStateChange",A.JSC$22897_playerStateChangeListener),_.M("kevlar_client_enable_shorts_player_bootstrap")&&_.IJ(),A.scrollToVideoThrottle.fire(A.index),A.movePlayerToVideo(A.index),_.a6.addLowPriorityJob(function(){A.getShortsLoopSetting().then(function(O){var c;(c=A.player)==null||c.setLoopVideo(O)})}),
_.sQ7.resolve(A.player),A.player.syncVolume(),A.getPlayer().focusOnPlayer());
_.a6.addLowPriorityJob(function(){A.observeShorts()},100);
G=A.player.getPlayerState(A.player.getPresentingPlayerType());G!==1||A.isPlayerStarted||_.$I().dispatch(Gw3(!0));A.updateBackNavContainerWidth();N=_.C(A.currentEndpoint,_.zD);((z=N)==null?0:z.startTimeSeconds)&&A.player.seekTo(N.startTimeSeconds);if(A.JSC$22897_cinematicController||A.cinematicsInitializeJobId)return T.return();A.cinematicsInitializeJobId=_.a6.addLowPriorityJob(function(){A.initCinematicController();A.cinematicsInitializeJobId=void 0});
_.LO(T)})};
_.J.onShortUndoDismiss=function(){var A=this,t=X5x().pop();t!==void 0&&(_.us(this,function(){A.showCardWithIndex(t)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.J.onShortsDismiss=function(A){if(A=A.detail.reelDismissalActionRenderer)(A=_.C(A.onDismissalCompletionRenderer,_.z5l))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:A}}}),this.scrollAndDismissCard()};
_.J.processReelNonVideoContentDismissalCommand=function(A){var t=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);A=_.C(A,B9H);this.activeDimissalTimeout=setTimeout(function(){t.scrollAndDismissCard()},Number(A==null?void 0:A.delayMs))};
_.J.scrollAndDismissCard=function(){var A=this,t=this.index;X5x().push(t);_.us(this,function(){var f=A.getPlayableNextIndex();f!==null&&(A.hideCardWithIndex(t),A.scrollToVideoThrottle.fire(f))})};
_.J.hideCardWithIndex=function(A){if(A=this.getActiveReelVideo(A))A.hidden=!0};
_.J.showCardWithIndex=function(A){if(A=this.getActiveReelVideo(A))A.hidden=!1};
_.J.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.J.activeChanged=function(A){_.$I().dispatch(_.r0({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:A}}));if(A)document.addEventListener("keydown",_.JY(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var t;(t=this.player)==null||t.sendAbandonmentPing()}var f;(f=this.player)==null||f.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.JY(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.J.graftClientVisualElements=function(){if(this.data){var A=_.er();_.a9E(A,_.ff({response:this.reelWatchSequenceResponse}));_.jN(A,this.nextReelVe);_.jN(A,this.prevReelVe);_.M("kevlar_shorts_auto_advance")&&(_.jN(A,this.loopToggleOffVe),_.jN(A,this.loopToggleOnVe));_.jN(A,this.ambientModeToggleVe);_.Vg(_.Ws(),[this.nextReelVe,this.prevReelVe]);_.M("web_shorts_paused_state_logging")&&_.jN(A,this.reelPlayerPausedStateRendererVe)}};
_.J.graftNvcRenderer=function(){var A,t,f,X,Q,q,e=this.enableShortsSequenceRefactorUnify?(A=this.shortsContentList)==null?void 0:(t=A[this.index])==null?void 0:t.command:this.index<0?(f=this.shortsProcessedPrevSequence)==null?void 0:(X=f[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:X.command:(Q=this.shortsProcessedSequence)==null?void 0:(q=Q[this.index])==null?void 0:q.command;if(e&&this.isNonVideoContentCommand(e)){A=_.C(e,_.JM);var G,N;(A=(G=_.C(A==null?void 0:A.renderer,_.eN))==
null?void 0:(N=G.loggingDirectives)==null?void 0:N.trackingParams)&&_.er().graftServerVe(A)}};
_.J.setActiveIndex=function(){_.Px().resolve(_.on).setActiveIndex(this.index)};
_.J.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.J.lazyUpdateMiniplayerData=function(){var A=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.a6.addLowPriorityJob(function(){A.updateMiniplayerData();A.updateMiniplayerDataJobId=void 0}))};
_.J.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.a6.cancelJob(this.updateMiniplayerDataJobId)};
_.J.updateMiniplayerData=function(){var A,t,f,X=_.Px().resolve(_.DS),Q={shortsData:this.getCurrentShort(),previousButtonDisabled:!((A=this.prevButtonData)==null||!A.isDisabled),nextButtonDisabled:!((t=this.nextButtonData)==null||!t.isDisabled),playabilityStatus:(f=this.playerData)==null?void 0:f.playabilityStatus};_.YS(X,Q)};
_.J.resetPlayerLocation=function(){var A=this.getPlayer();this.initialPlayerContainer&&A.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.J.movePlayerToVideo=function(A,t){var f=this;t=t===void 0?!0:t;var X=this.getActiveReelVideo(A),Q=this.getPlayer();if(X){this.overlayContainer?X.appendChild(this.overlayContainer):(this.overlayContainer=_.sF(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,X.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Q.appendTo(this.overlayContainer.playerContainer,void 0,!0));var q;(q=this.player)==null||q.setSize(NaN,NaN);this.isActive||_.jY(_.a6,function(){f.isActive=
!0});
Q.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.M("reels_web_disable_rtr_tick")||_.M("reels_web_use_pbs_first_shorts")&&A===0||_.Wt("r_tr");this.currentPlayerIndex=A;X.appendChild(this.errorScreenContainer);var e;(e=this.JSC$22897_cinematicController)==null||_.IMl(e)}else t?_.a6.addLowPriorityJob(function(){f.movePlayerToVideo(f.index,!1)}):Math.random()<=_.cx("web_shorts_error_logging_threshold")&&_.ai(new _.xj("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:t,
index:A}))};
_.J.enableFormatFirst=function(A){return _.M("web_enable_format_first")||A.adsOverlay&&_.M("web_enable_format_first_ads_only")||A.reelPlayerOverlayRenderer&&_.M("web_enable_format_first_organic_only")};
_.J.getAspectRatio=function(A){if(this.enableFormatFirst(A))return(A==null?0:A.thumbnail)&&SHy(A.thumbnail)?"--ytd-shorts-player-ratio: "+SHy(A.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.J.getBackgroundImage=function(A){if(A!=null&&A.thumbnail)return(A=_.KI(A.thumbnail.thumbnails))?'background-image:url("'+A+'");':"background-color:black;"};
_.J.onPersistentPanelActiveChanged=function(){var A=this.getCurrentShort();if(A&&this.enableFormatFirst(A)&&(A==null?0:A.thumbnail)&&SHy(A.thumbnail)!==.5625){var t;(t=this.player)==null||t.setSize(NaN,NaN)}};
_.J.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.J.moveCinematicsToVideo=function(){var A=_.sF(this.hostElement).querySelector("ytd-reel-video-renderer");(A==null?0:A.cinematicContainer)&&A.cinematicContainer!==this.shortsCinematicContainer.parentElement&&A.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.J.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.J.updatePrevButtonData=function(){var A=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);A?this.prevButtonData=A=Object.assign({},A,{accessibility:{label:_.e5("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.e5("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=A=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.J.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.J.updateNextButtonData=function(){var A=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);A&&(this.nextButtonData=A=Object.assign({},A,{accessibility:{label:_.e5("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.e5("NEXT_VIDEO_LABEL")||""}))};
_.J.getPlayablePreviousIndex=function(){for(var A,t=this.index-1;t>=-(((A=this.prevShortsSequence)==null?void 0:A.length)||0);t--)if(!X5x().includes(t))return t;return null};
_.J.getIndexInSequence=function(A,t){return A.findIndex(function(f){var X;return((X=_.C(f.command,_.zD))==null?void 0:X.videoId)===t})};
_.J.handlePrevButtonClick=function(A){var t=this,f,X;return _.l(function(Q){f=t.getPlayablePreviousIndex();if(f===null)return Q.return();t.gestureType=((X=A)==null?void 0:X.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";f===0&&(t.hidePreviousButtonImmediately=!0);if(t.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){t.scrollToVideoThrottle.fire(f,"auto")}),Q.return();
t.scrollToVideoThrottle.fire(f);_.LO(Q)})};
_.J.getPlayableNextIndex=function(){for(var A,t,f=this.index+1;f<(this.enableShortsSequenceRefactorUnify?(A=this.shortsContentList)==null?void 0:A.length:((t=this.shortsProcessedSequence)==null?void 0:t.length)||0);f++)if(!X5x().includes(f))return f;return null};
_.J.handleNextButtonClick=function(A,t){var f=this,X,Q;return _.l(function(q){X=f.getPlayableNextIndex();if(X===null)return q.return();X===1&&(f.showPreviousButtonImmediately=!0);f.gestureType=((Q=A)==null?void 0:Q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";t&&(f.gestureType=t);if(f.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){f.scrollToVideoThrottle.fire(X,"auto")}),q.return();
f.scrollToVideoThrottle.fire(X);_.LO(q)})};
_.J.handleReelNavigateCommand=function(A,t,f){(A=_.C(A,c8Q))&&t&&A.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(f)};
_.J.loadVideo=function(A,t){t=t===void 0?!1:t;if(A!==this.currentPlayerIndex){_.$I().dispatch(Gw3(!1));if(this.isAd()&&!t){var f;(f=this.player)==null||f.notifyShortsAdSwipeEvent()}if((t=this.JSC$22897_cinematicController)!=null){var X;(X=t.currentCinematicEffect)==null||X.pause()}if((X=this.JSC$22897_cinematicController)!=null){var Q;(Q=X.currentCinematicEffect)==null||Q.clear()}X=A>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(X));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var q,e,G,N,z,T;Q=this.enableShortsSequenceRefactorUnify?(q=this.shortsContentList)==null?void 0:(e=q[A])==null?void 0:e.command:A<0?(G=this.shortsProcessedPrevSequence)==null?void 0:(N=G[this.shortsProcessedPrevSequence.length+A])==null?void 0:N.command:(z=this.shortsProcessedSequence)==null?void 0:(T=z[A])==
null?void 0:T.command;this.index=A;this.gestureType||(this.gestureType=X?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");Q&&this.isVideoContentCommand(Q)&&(this.ytComponentBehavior.resolveCommand(Q,{form:{createScreenConfig:{clickedVisualElement:X?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Q&&this.isNonVideoContentCommand(Q)){this.currentEndpoint=Q;this.data=void 0;q=_.er();e=_.C(Q,_.JM);var O,c;(e=(O=
_.C(e==null?void 0:e.renderer,_.eN))==null?void 0:(c=O.screenLoggingData)==null?void 0:c.screenVeType)&&_.xz(q,e);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(O=this.getActiveReelVideo(A))&&O.appendChild(this.overlayContainer)}var B,h;O=this.enableShortsSequenceRefactorUnify?((B=this.shortsContentList)==null?NaN:B.length)-4<=A:((h=this.reelWatchSequenceResponse)==null?void 0:h.entries)&&A===this.reelWatchSequenceResponse.entries.length-1;var W;if(((W=this.reelWatchSequenceResponse)==
null?0:W.continuationEndpoint)&&O){var L,E;B={contentPlaybackContext:_.Xt({},(E=_.C((L=this.currentEndpoint)==null?void 0:L.commandMetadata,_.Jl))==null?void 0:E.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:B}),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:B})}var D,
S;A=this.enableShortsSequenceRefactorUnify?A===0:A===-(((D=this.reelWatchSequenceResponse)==null?void 0:(S=D.prevEntries)==null?void 0:S.length)||0);var Z,d;((Z=this.reelWatchSequenceResponse)==null?0:Z.prevContinuationEndpoint)&&((d=this.reelWatchSequenceResponse)==null?0:d.prevEntries)&&A&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.J.setMiniplayerPreview=function(A){A=(A===void 0?0:A)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var t,f,X,Q,q=_.Px().resolve(_.DS),e={shortsData:void 0,shortsPreviewThumbnail:A?this.enableShortsSequenceRefactorUnify?(t=this.shortsContentList)==null?void 0:(f=t[A])==null?void 0:f.thumbnail:(X=this.shortsProcessedSequence)==null?void 0:(Q=X[A])==null?void 0:Q.thumbnail:void 0};_.YS(q,e)};
_.J.updateTitle=function(A){var t,f;A=(A==null?0:A.adSlots)?"":(f=A==null?void 0:(t=A.videoDetails)==null?void 0:t.title)!=null?f:"";_.s9(this.hostElement,"yt-update-title",A)};
_.J.registerPanel=function(A){var t=_.Px().resolve(_.rA);if(t){A=_.U(A.engagementPanels||[]);for(var f=A.next();!f.done;f=A.next()){f=f.value;var X=this.getPanelIdentifier(f.engagementPanelSectionListRenderer),Q=void 0,q=void 0;(q=(Q=t).registerPanelContent)==null||q.call(Q,X,f)}}};
_.J.getPanelIdentifier=function(A){var t;return(A==null?void 0:(t=A.identifier)==null?void 0:t.tag)||(A==null?void 0:A.panelIdentifier)||(A==null?void 0:A.targetId)};
_.J.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.$I().dispatch(Gw3(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.$I().dispatch(Upu(!1));var A;(A=this.shortsController)!=null&&(A.dismissedIndices=[]);var t;(t=this.shortsController)!=null&&t.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.Px().resolve(_.DS).close(!0)};
_.J.processAppendReelWatchSequenceContinuationEntriesAction=function(A){var t=this,f;(f=this.intersectionObserver)==null||f.disconnect();A=A.appendReelWatchSequenceContinuationEntriesAction;if(A==null?0:A.entries){var X;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.YV(((X=this.reelWatchSequenceResponse)==null?void 0:X.entries)||[]),_.YV(A.entries)),continuationEndpoint:A.continuationEndpoint})}else if(A==null?0:A.prevEntries){var Q;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.YV(((Q=this.reelWatchSequenceResponse)==null?void 0:Q.prevEntries)||[]),_.YV(A.prevEntries)),prevContinuationEndpoint:A.prevContinuationEndpoint});_.a6.addLowPriorityJob(function(){t.movePlayerToVideo(t.index);t.scrollToVideoThrottle.fire(t.index,"instant")})}else return;
_.a6.addLowPriorityJob(function(){t.observeShorts()},100)};
_.J.processWatchSequence=function(A){var t=this;return A.map(function(f){f=f.command;if(t.isVideoContentCommand(f)){var X=_.C(f,_.zD);return{reelPlayerOverlayRenderer:_.C(X==null?void 0:X.overlay,_.f07),thumbnail:X.thumbnail,command:f}}return t.isNonVideoContentCommand(f)?(X=_.C(f,_.JM),{reelNonVideoContentRenderer:_.C(X==null?void 0:X.renderer,_.eN),command:f}):{command:f}})};
_.J.calculateIntersectionObserverThreshold=function(){var A=_.sF(this.hostElement).querySelector("ytd-reel-video-renderer"),t=1;(A==null?0:A.offsetHeight)&&(A==null?0:A.offsetWidth)&&(t=Math.min(A.offsetHeight,this.shortsContainer.offsetHeight)/A.offsetHeight*(Math.min(A.offsetWidth,this.shortsContainer.offsetWidth)/A.offsetWidth));return Math.round(t*.6*10)/10};
_.J.isVideoContentCommand=function(A){_.Px().resolve(_.on);return!!_.C(A,_.zD)};
_.J.isNonVideoContentCommand=function(A){_.Px().resolve(_.on);return!!_.C(A,_.JM)};
_.J.initCinematicController=function(){var A=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22897_cinematicController=new _.cq(this.shortsCinematicContainer,this.player);var t,f=_.C((t=this.data)==null?void 0:t.background,_.ks);_.F$i(this.JSC$22897_cinematicController,f);_.D4r(this.JSC$22897_cinematicController,aM3(f));_.nfi(this.JSC$22897_cinematicController);_.a6.addLowPriorityJob(function(){A.moveCinematicsToVideo()})}};
_.J.handleMiniplayerNavigateShorts=function(A){A==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():A==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.J.handleSignalActionToggleShortsPictureInPicture=function(){if(_.Px().resolve(_.DS).pictureInPictureSupported()){var A=_.Px().resolve(_.on);if(_.M("web_shorts_pip")){var t=_.Px().resolve(_.DS);A.isShortsPipActive()?t.deactivate():t.isMiniplayerActive()||(_.$z().shortsPipActivation=!0,_.PX2(t))}}else(A=this.player)==null||A.togglePictureInPicture()};
_.PV.Object.defineProperties(yJ.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.reelWatchSequenceResponse)!=null&&A.prevEntries)return this.processWatchSequence([].concat(_.YV(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.YV(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.reelWatchSequenceResponse)!=null&&A.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var A=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var t;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((t=this.shortsProcessedSequence)==null?void 0:t.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var f;t=_.C((f=this.firstShortsData)==null?void 0:f.command,_.zD);if(t==null||!t.videoId)return this.shortsProcessedSequence;f=this.getIndexInSequence(this.shortsSequence,
t.videoId);if(f!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=f,_.a6.addLowPriorityJob(function(){A.scrollToVideoThrottle.fire(A.index,"auto");A.movePlayerToVideo(A.index)}));
return[].concat(_.YV(this.shortsSequence))}_.NB(_.a6,function(){A.observeShorts()},100);
return[this.firstShortsData].concat(_.YV(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var A=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;A&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(A)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var A;return this.index===((A=this.shortsContentList)==null?NaN:A.length)-1}if(this.endOfNextContinuation){var t,f;return this.index===((t=this.reelWatchSequenceResponse)==null?void 0:(f=t.entries)==null?void 0:f.length)}var X;return!((X=this.reelWatchSequenceResponse)==null?0:X.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var A;(A=this.delayedActiveIndexUpdateDebouncer)==null||A.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return this.isShortPlayable()||((t=_.C((A=this.data)==null?void 0:A.watchStatus,_.NNT))==null?void 0:(f=t.style)==null?void 0:f.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var A=this,t=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),f;if((this.data||t)&&(((f=this.data)==null?0:f.engagementPanels)||this.isAd()||t)){t=!1;this.activePanel="shorts-comments-panel";var X;f=_.U(((X=this.data)==null?void 0:X.engagementPanels)||[]);for(X=f.next();!X.done;X=f.next())if(this.getPanelIdentifier(X.value.engagementPanelSectionListRenderer)===this.activePanel){t=!0;break}if(this.isPersistentPanelActive){var Q=
_.Px().resolve(_.rA);_.jY(_.a6,function(){Q.showPanel({identifier:A.activePanel,target:null})},100)}var q;
X=[].concat(_.YV(Object.values(((q=this.data)==null?void 0:q.engagementPanels)||{})));q=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);f=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return q===void 0&&f===void 0||(q==null?0:q.isDisabled)||(f==null?void 0:f.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!t?(t=X==null?void 0:X.findIndex(function(e){var G,N;return((G=e.engagementPanelSectionListRenderer)==null?void 0:(N=G.identifier)==null?void 0:N.tag)==="shorts-comments-panel"}),t===-1||t===void 0||X!=null&&X.splice(t,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.e5("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.e5("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:_.e5("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.e5("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(_.YV(Object.values(X||
{})))):X}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var A=this,t,f,X;if((t=this.playerData)==null?0:(f=t.playabilityStatus)==null?0:(X=f.errorScreen)==null?0:X.playerInterstitialRenderer)return _.a6.addLowPriorityJob(function(){A.movePlayerToVideo(A.index)}),this.playerData.playabilityStatus.errorScreen;
var Q,q;return((Q=this.data)==null?void 0:Q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((q=this.data)==null?0:q.watchStatus)&&_.C(this.data.watchStatus,_.E4k)?(_.a6.addLowPriorityJob(function(){A.movePlayerToVideo(A.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.PV.Object.defineProperties(yJ,{template:{configurable:!0,enumerable:!0,get:function(){if(Rcr===void 0){var A=document.createElement("template");_.m(A,'\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    <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-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" 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    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" 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    </template>\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);Rcr=A}A=Rcr;return A}}});
yJ.prototype.onNextButtonDataChange=yJ.prototype.onNextButtonDataChange;yJ.prototype.onPrevButtonDataChange=yJ.prototype.onPrevButtonDataChange;yJ.prototype.onPersistentPanelActiveChanged=yJ.prototype.onPersistentPanelActiveChanged;yJ.prototype.lazyUpdateMiniplayerData=yJ.prototype.lazyUpdateMiniplayerData;yJ.prototype.onShortsPipActiveChanged=yJ.prototype.onShortsPipActiveChanged;yJ.prototype.setActiveIndex=yJ.prototype.setActiveIndex;yJ.prototype.graftNvcRenderer=yJ.prototype.graftNvcRenderer;
yJ.prototype.graftClientVisualElements=yJ.prototype.graftClientVisualElements;yJ.prototype.onActiveChanged=yJ.prototype.onActiveChanged;yJ.prototype.onShortsDismiss=yJ.prototype.onShortsDismiss;yJ.prototype.onShortUndoDismiss=yJ.prototype.onShortUndoDismiss;yJ.prototype.playerDataChanged=yJ.prototype.playerDataChanged;yJ.prototype.afterPlayerStarted=yJ.prototype.afterPlayerStarted;yJ.prototype.updateReelWatchSequenceResponse=yJ.prototype.updateReelWatchSequenceResponse;
yJ.prototype.unhideCurrentOverlay=yJ.prototype.unhideCurrentOverlay;yJ.prototype.onServiceRequestCompleted=yJ.prototype.onServiceRequestCompleted;yJ.prototype.engagementPanelsChanged=yJ.prototype.engagementPanelsChanged;yJ.prototype.onFullscreenChange=yJ.prototype.onFullscreenChange;yJ.prototype.onResize=yJ.prototype.onResize;yJ.prototype.setShortsContentList=yJ.prototype.setShortsContentList;yJ.prototype.setFirstShortsData=yJ.prototype.setFirstShortsData;
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],yJ.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.t$.YtPageBehavior),_.H("design:type",Object)],yJ.prototype,"ytPageBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],yJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.K9),_.H("design:type",Object)],yJ.prototype,"ironResizableBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],yJ.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],yJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],yJ.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"playerData",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"reelWatchSequenceResponse",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"cachedReelWatchSequenceResponse",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"cachedSequenceParams",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"cachedSequenceProvider",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"currentEndpoint",void 0);
_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"nextButtonData",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"prevButtonData",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"isPreviousPageShorts",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"index",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"delayedActiveIndex",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"playablePreviousIndex",void 0);
_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"player",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"isPlayerPaused",void 0);_.V([_.n({selector:HFu}),_.H("design:type",Object)],yJ.prototype,"isPlayerStarted",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"intersectionObserver",void 0);_.V([_.n(),_.H("design:type",Number)],yJ.prototype,"cinematicsInitializeJobId",void 0);_.V([_.n(),_.H("design:type",Number)],yJ.prototype,"updateMiniplayerDataJobId",void 0);
_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"fitToVisibleBounds",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"pageSubtype",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],yJ.prototype,"enablePreviousContinuation",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"shortsPipEnabled",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"isDark",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"shortsViewTransitions",void 0);_.V([_.n({selector:_.sn,reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"isFullscreen",void 0);_.V([_.n({selector:_.ku,reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"isShortsPipActive",void 0);_.V([_.lo("#shorts-inner-container"),_.H("design:type",HTMLElement)],yJ.prototype,"shortsInnerContainer",void 0);
_.V([_.lo("#back-nav-button ytd-button-renderer"),_.H("design:type",_.bw)],yJ.prototype,"backNavButton",void 0);_.V([_.lo("#shorts-container"),_.H("design:type",HTMLElement)],yJ.prototype,"shortsContainer",void 0);_.V([_.lF("error-screen"),_.H("design:type",HTMLElement)],yJ.prototype,"errorScreenContainer",void 0);_.V([_.lF("player"),_.H("design:type",Object)],yJ.prototype,"playerElement",void 0);
_.V([_.lF("shorts-cinematic-container"),_.H("design:type",HTMLElement)],yJ.prototype,"shortsCinematicContainer",void 0);_.V([_.lF("initial-player-container"),_.H("design:type",HTMLElement)],yJ.prototype,"initialPlayerContainer",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"buttonOverride",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"anchoredPanelActive",void 0);_.V([_.n(),_.H("design:type",String)],yJ.prototype,"activePanel",void 0);
_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"isActive",void 0);_.V([_.n({selector:$4y,reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"smallScreenPersistentPanel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"isPersistentPanelActive",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"smallScreenSqueezeBack",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"enableScrollIntoViewCenter",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"formatFirst",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"enableFlexibleOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"extractOverlay",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"useAspectRatio",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yJ.prototype,"enableShortsSequenceRefactorUnify",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"continuationRequestPending",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"shortsController",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"panelContainer",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"overlayContainer",void 0);
_.V([_.n(),_.H("design:type",Array)],yJ.prototype,"carouselContainers",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"isShortsInitialized",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"firstShortsData",void 0);_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"firstShortsDataModel",void 0);_.V([_.n(),_.H("design:type",Array)],yJ.prototype,"shortsContentList",void 0);
_.V([_.y("reelWatchSequenceResponse"),_.H("design:type",Object),_.H("design:paramtypes",[])],yJ.prototype,"prevShortsSequence",null);_.V([_.y("data","prevShortsSequence"),_.y("data","prevShortsSequence"),_.H("design:type",Object),_.H("design:paramtypes",[])],yJ.prototype,"shortsProcessedPrevSequence",null);_.V([_.y("reelWatchSequenceResponse"),_.H("design:type",Object),_.H("design:paramtypes",[])],yJ.prototype,"shortsSequence",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"setFirstShortsData",null);_.V([_.ev("reelWatchSequenceResponse","firstShortsData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"setShortsContentList",null);_.V([_.y("data","shortsSequence","firstShortsData"),_.H("design:type",Object),_.H("design:paramtypes",[])],yJ.prototype,"shortsProcessedSequence",null);
_.V([_.n({reflectToAttribute:!0}),_.y("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yJ.prototype,"isUpArrowHidden",null);_.V([_.n({reflectToAttribute:!0}),_.y("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yJ.prototype,"isDownArrowHidden",null);
_.V([_.n(),_.y("index"),_.H("design:type",Number),_.H("design:paramtypes",[])],yJ.prototype,"activeIndex",null);_.V([_.y("isShortPlayable","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yJ.prototype,"shouldRenderOfflineContent",null);_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"onResize",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],yJ.prototype,"anchoredEngagementPanels",null);
_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"watchWhileEngagementPanels",void 0);_.V([_.ev("isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"onFullscreenChange",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"engagementPanelsChanged",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],yJ.prototype,"onServiceRequestCompleted",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"unhideCurrentOverlay",null);_.V([_.ev("currentEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"updateReelWatchSequenceResponse",null);
_.V([_.ev("isPlayerStarted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"afterPlayerStarted",null);_.V([_.y("playerData","reelWatchSequenceResponse","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],yJ.prototype,"errorScreen",null);_.V([_.y("errorScreen"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yJ.prototype,"hasError",null);
_.V([_.ev("playerData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],yJ.prototype,"playerDataChanged",null);_.V([_.UQ("yt-dismissible-item-undo-feedback"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"onShortUndoDismiss",null);_.V([_.UQ("yt-disable-lockup-interaction"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],yJ.prototype,"onShortsDismiss",null);
_.V([_.PU("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"onActiveChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"graftClientVisualElements",null);_.V([_.ev("currentPlayerIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"graftNvcRenderer",null);
_.V([_.ev("index"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"setActiveIndex",null);_.V([_.ev("isShortsPipActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"onShortsPipActiveChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"lazyUpdateMiniplayerData",null);
_.V([_.n(),_.H("design:type",Object)],yJ.prototype,"onOverlayDensityChanged",void 0);_.V([_.ev("isPersistentPanelActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"onPersistentPanelActiveChanged",null);_.V([_.ev("index","data","isUpArrowHidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"onPrevButtonDataChange",null);
_.V([_.ev("index","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yJ.prototype,"onNextButtonDataChange",null);_.V([_.y_({is:"ytd-shorts"})],yJ);_.JB.registerService(_.TJz,yJ);
_.dw();
}catch(e){_._DumpException(e)}
try{
_.oy("JzFVk");
var xcH;var jyH;var sG=function(){return _.F.apply(this,arguments)||this};
_.R(sG,_.F);sG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
sG.prototype.computeBlueBottomLink=function(A){return A};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sG.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.bottomIcon)"}),_.H("design:type",String)],sG.prototype,"bottomIcon",void 0);
_.V([_.n({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.H("design:type",Boolean)],sG.prototype,"enableBlueBottomLink",void 0);_.V([_.y_({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],sG);
_.Y(sG,"ytd-web-answer-renderer",function(){if(jyH!==void 0)return jyH;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return jyH=A},{mode:_.sQ("kevlar_poly_si_batch_j035")?1:2});var YBy;var ke=function(){var A=_.F.apply(this,arguments)||this;A.hasChipBar=!1;return A};
_.R(ke,_.F);ke.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}}};
ke.prototype.computeHasChipBar=function(A){return!(A==null||!A.chipBar)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ke.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.H("design:type",Object)],ke.prototype,"hasChipBar",void 0);_.V([_.y_({is:"ytd-search-header-renderer",disableElementRegistration:!0})],ke);
_.Y(ke,"ytd-search-header-renderer",function(){if(YBy!==void 0)return YBy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return YBy=A},{mode:1});var Vei;var rn=function(){return _.F.apply(this,arguments)||this};
_.R(rn,_.F);rn.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],rn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rn.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-page-continuation"})],rn);
_.Y(rn,"ytd-page-continuation",function(){if(Vei!==void 0)return Vei;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Vei=A},{mode:1});var ZAx;var oCl;var dcb;var SBl=function(){return _.F.apply(this,arguments)||this};
_.R(SBl,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],SBl.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],SBl.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],SBl);
_.Y(SBl,"ytd-watch-card-one-vs-one-event",function(){if(dcb!==void 0)return dcb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return dcb=A},{mode:1});var $ci=function(){return _.F.apply(this,arguments)||this};
_.R($ci,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$ci.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$ci.prototype,"data",void 0);_.V([_.y_({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],$ci);
_.Y($ci,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(oCl!==void 0)return oCl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return oCl=A},{mode:1});var HAb;var aAi=function(){return _.F.apply(this,arguments)||this};
_.R(aAi,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],aAi.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],aAi.prototype,"data",void 0);_.V([_.y_({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],aAi);
_.Y(aAi,"ytd-banner-and-box-hero-image-renderer",function(){if(HAb!==void 0)return HAb;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return HAb=A},{mode:1});var K7y;var Ad=function(){var A=_.F.apply(this,arguments)||this;A.modern=_.M("web_modern_buttons");return A};
_.R(Ad,_.F);Ad.prototype.computeIcon=function(){var A,t,f=(A=this.data)==null?void 0:(t=A.icon)==null?void 0:t.iconType;if(f)return _.t7(f)};
Ad.prototype.computeButtonShape=function(){var A;return{buttonText:_.dF((A=this.data)==null?void 0:A.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.PV.Object.defineProperties(Ad.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"}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ad.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ad.prototype,"modern",void 0);_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.y("data.style"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ad.prototype,"buttonColor",null);
_.V([_.y_({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Ad);
_.Y(Ad,"ytd-call-to-action-button-renderer",function(){if(K7y!==void 0)return K7y;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return K7y=A},{mode:1});var gCr;var td=function(){return _.F.apply(this,arguments)||this};
_.R(td,_.F);td.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.sF(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.a8(this.data.leftThumbnail.thumbnails,216)+")")};
td.prototype.onLeftThumbnailChanged=td.prototype.onLeftThumbnailChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],td.prototype,"data",void 0);_.V([_.ev("data.leftThumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],td.prototype,"onLeftThumbnailChanged",null);_.V([_.y_({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],td);
_.Y(td,"ytd-collage-hero-image-renderer",function(){if(gCr!==void 0)return gCr;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return gCr=A},{mode:1});var wfl;var fq=function(){return _.F.apply(this,arguments)||this};
_.R(fq,_.F);fq.prototype.computeStyle=function(A){return A};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fq.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],fq.prototype,"componentStyle",void 0);_.V([_.y_({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],fq);
_.Y(fq,"ytd-single-hero-image-renderer",function(){if(wfl!==void 0)return wfl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return wfl=A},{mode:1});var syW;var XT=function(){return _.F.apply(this,arguments)||this};
_.R(XT,_.F);_.J=XT.prototype;
_.J.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:_.M("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.J.computeSubtitle=function(A){if(this.data){var t;if(this.data.upcomingEventData){A=_.dF(A.subtitle);var f=Number(this.data.upcomingEventData.startTime);isNaN(f)||(t=_.oC(_.B1(A,f)))}else t=A.subtitle;return t}};
_.J.onHeroTap=function(A){A.preventDefault();var t=this.data&&this.data.navigationEndpoint;!t||!_.Sl(_.Z2(A),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Sl(_.Z2(A),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.M("kevlar_watchcard_hero_video_renderer_killswitch")?_.s9(this.hostElement,"yt-navigate",{navigationEndpoint:t}):this.ytComponentBehavior.resolveCommand(t))};
_.J.computeHeroTabIndex=function(A){return A&&A.simpleText?-1:0};
_.J.computeHeroRole=function(A){return A&&A.simpleText?"":"link"};
_.J.computeIsReminderButtonPresent=function(A){return!(!A||!A.reminderButton)};
_.J.computeHideBottomItems=function(A){return!(this.computeIsReminderButtonPresent(A)||A.subtitle)};
_.J.dataChanged=function(){var A=this.get("data.buttons.buttonRenderer.serviceEndpoint"),t;((t=_.C(A==null?void 0:A.commandMetadata,_.HL))==null?0:t.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(A)};
XT.prototype.dataChanged=XT.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],XT.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],XT.prototype,"data",void 0);
_.V([_.n({computed:"computeSubtitle(data)"}),_.H("design:type",String)],XT.prototype,"subtitle",void 0);_.V([_.n({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],XT.prototype,"isReminderButtonPresent",void 0);_.V([_.n({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],XT.prototype,"hideBottomItems",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XT.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],XT);
_.Y(XT,"ytd-watch-card-hero-video-renderer",function(){if(syW!==void 0)return syW;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return syW=A},{mode:1});var k_r;var QJ=function(){return _.F.apply(this,arguments)||this};
_.R(QJ,_.F);_.J=QJ.prototype;_.J.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"}}}};
_.J.computeTitleBadges=function(A){return A?[A]:[]};
_.J.computeHeaderStyle=function(A){return A?A.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.J.computeAvatarAriaLabel=function(A){if(A){var t,f,X,Q;return(Q=(t=A.avatar)==null?void 0:(f=t.accessibility)==null?void 0:(X=f.accessibilityData)==null?void 0:X.label)!=null?Q:_.dF(A==null?void 0:A.title)}};
_.J.computeAvatarHeight=function(A){return A==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.J.computeBadgeRowClass=function(A){return(A==null?0:A[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],QJ.prototype,"data",void 0);_.V([_.n({computed:"computeTitleBadges(data.titleBadge)"}),_.H("design:type",Array)],QJ.prototype,"titleBadges",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.H("design:type",String)],QJ.prototype,"headerStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.H("design:type",String)],QJ.prototype,"badgeRowClass",void 0);_.V([_.y_({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],QJ);
_.Y(QJ,"ytd-watch-card-rich-header-renderer",function(){if(k_r!==void 0)return k_r;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return k_r=A},{mode:1});var rVi;var AZu;var qf=function(){return _.F.apply(this,arguments)||this};
_.R(qf,_.F);qf.prototype.onMetadataTap=function(A){var t=this.data&&this.data.navigationEndpoint;t&&!_.Sl(_.Z2(A),this.hostElement,["A".toString()])&&_.s9(this.hostElement,"yt-navigate",{endpoint:t})};
_.PV.Object.defineProperties(qf.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 A;if(this.data.upcomingEventData){var t=_.dF(this.data.subtitle),f=Number(this.data.upcomingEventData.startTime);isNaN(f)||(A=_.oC(_.B1(t,f)))}else A=this.data.subtitle;return A}}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qf.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data.style"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qf.prototype,"isCondensed",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],qf.prototype,"subtitle",null);
_.V([_.y_({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],qf);
_.Y(qf,"ytd-watch-card-compact-video-renderer",function(){if(AZu!==void 0)return AZu;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return AZu=A},{mode:1});var tGb;var fMF=function(){return _.F.apply(this,arguments)||this};
_.R(fMF,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],fMF.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fMF.prototype,"data",void 0);_.V([_.y_({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],fMF);
_.Y(fMF,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(tGb!==void 0)return tGb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return tGb=A},{mode:1});var Jd=function(){return _.F.apply(this,arguments)||this};
_.R(Jd,_.F);Jd.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}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Jd.prototype,"ytRendererStamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Jd.prototype,"data",void 0);_.V([_.y_({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Jd);
_.Y(Jd,"ytd-vertical-watch-card-list-renderer",function(){if(rVi!==void 0)return rVi;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return rVi=A},{mode:1});var Xmb;var UK=function(){var A=_.F.apply(this,arguments)||this;A.ariaExpanded="false";return A};
_.R(UK,_.F);_.J=UK.prototype;_.J.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.J.dataChanged=function(){var A;this.currentSeasonIndex=((A=this.data)==null?void 0:A.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.J.computeEpisodesInfo=function(A,t,f){if(A!==void 0&&t.length===A.length)return A[f]};
_.J.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.J.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.J.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.J.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.J.getUppercaseSimpleString=function(A){return this.ytRendererBehavior.getSimpleString(A).toUpperCase()};
_.J.updateCurrentSeasonIndexFromBinding=function(A){this.currentSeasonIndex=A.detail.value};
UK.prototype.onIronOverlayClosed=UK.prototype.onIronOverlayClosed;UK.prototype.currentSeasonIndexChanged=UK.prototype.currentSeasonIndexChanged;UK.prototype.dataChanged=UK.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],UK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],UK.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",String)],UK.prototype,"label",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],UK.prototype,"currentSeasonIndex",void 0);_.V([_.n({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.H("design:type",Object)],UK.prototype,"episodesInfo",void 0);_.V([_.n({value:"false"}),_.H("design:type",Object)],UK.prototype,"ariaExpanded",void 0);_.V([_.lo("#lists"),_.H("design:type",Object)],UK.prototype,"lists",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UK.prototype,"dataChanged",null);_.V([_.PU("currentSeasonIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UK.prototype,"currentSeasonIndexChanged",null);_.V([_.UQ("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],UK.prototype,"onIronOverlayClosed",null);
_.V([_.y_({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],UK);
_.Y(UK,"ytd-watch-card-section-dropdown-renderer",function(){if(Xmb!==void 0)return Xmb;var A=document.createElement("template");_.m(A,'\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="EXPAND" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Xmb=A},{mode:1});var Qoj;var eW=function(){var A=_.F.apply(this,arguments)||this;A.isSearch=!1;return A};
_.R(eW,_.F);eW.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}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],eW.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],eW.prototype,"isSearch",void 0);_.V([_.y_({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],eW);
_.Y(eW,"ytd-watch-card-section-sequence-renderer",function(){if(Qoj!==void 0)return Qoj;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return Qoj=A},{mode:1});var qHF=_.I(function(A){return _.u("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.u(_.P1,{data:function(){return A.data().ctaButton}},{buttonViewModel:_.nx}),_.u(_.zL,{text:function(){return A.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"tn");
qHF.idomCompat=!0;_.Hn(qHF,"ytd-button-banner-view-model",{props:{data:_.PS}});var G8=function(){var A=_.F.apply(this,arguments)||this;A.isSearch=!1;return A};
_.R(G8,_.F);
G8.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"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],G8.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],G8.prototype,"rounded",void 0);_.V([_.n(),_.H("design:type",Object)],G8.prototype,"isSearch",void 0);
_.V([_.y_({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],G8);
_.Y(G8,"ytd-universal-watch-card-renderer",function(){if(ZAx!==void 0)return ZAx;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ZAx=A},{mode:1});var JZW;_.Hn(_.I(function(A){var t=A.data;var f;A=!((f=_.Px().resolve(_.z7(_.FH)))==null||!f());f={};return _.u("overview-message-view-model",{class:_.Ao("ytwOverviewMessageViewModelHost",(f.ytwOverviewMessageViewModelDarkBackground=A,f.ytwOverviewMessageViewModelLightBackground=!A,f))},_.u(_.P,{cond:function(){return t().primaryImage},
then:function(X){return _.u(_.YA,{data:X,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.u(_.P,{cond:function(){return t().primaryText},
then:function(){return _.u("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.u(_.zL,{text:function(){return t().primaryText}}))}}),_.u(_.P,{cond:function(){return t().secondaryText},
then:function(){return _.u("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.u(_.zL,{text:function(){return t().secondaryText}}))}}))},"un"),"overview-message-view-model",{props:{data:_.PS}});_.Hn(_.Tsw,"ytd-overview-answer-view-model",{props:{data:_.PS}});var lt=function(){return _.F.apply(this,arguments)||this};
_.R(lt,_.F);lt.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"}}}};
lt.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ba),_.H("design:type",Object)],lt.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],lt.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],lt.prototype,"isSearch",void 0);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],lt);
_.Y(lt,"ytd-secondary-search-container-renderer",function(){if(JZW!==void 0)return JZW;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return JZW=A},{mode:1});var U4i;var Nf=function(){var A=_.F.apply(this,arguments)||this;A.renderSecondarySearchContainer=!1;A.isSearch=!1;return A};
_.R(Nf,_.F);_.J=Nf.prototype;_.J.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.J.created=function(){var A=this;this.boundStampSecondarySearchContainerIfFits=function(){A.stampSecondarySearchContainerIfFits()};
_.H5("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.J.computeIsSearchFrictionPage=function(A){var t,f,X,Q,q;A=A==null?void 0:(t=A.primaryContents)==null?void 0:(f=t.sectionListRenderer)==null?void 0:(X=f.contents)==null?void 0:(Q=X[0])==null?void 0:(q=Q.itemSectionRenderer)==null?void 0:q.contents;if(!A)return!1;t=_.U(A);for(f=t.next();!f.done;f=t.next())if(X=void 0,(X=f.value)==null?0:X.searchFrictionViewModel)return!0;return!1};
_.J.computeShowSecondaryColumn=function(A,t){return!!(t&&t.secondaryContents&&A)};
_.J.activeChanged=function(){var A=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.JY(this,this.debounceStampSecondarySearchContainerIfFits)),_.FD(function(){A.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.JY(this,this.debounceStampSecondarySearchContainerIfFits))};
_.J.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.J.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.J.debounceStampSecondarySearchContainerIfFits=function(){_.Ig(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.J.onRetrieveLocation=function(A,t){t.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);A.stopPropagation()};
_.J.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Nf.prototype.dataChanged=Nf.prototype.dataChanged;Nf.prototype.onRetrieveLocation=Nf.prototype.onRetrieveLocation;Nf.prototype.persistentGuideChanged=Nf.prototype.persistentGuideChanged;Nf.prototype.activeChanged=Nf.prototype.activeChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],Nf.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.K9),_.H("design:type",Object)],Nf.prototype,"ironResizableBehavior",void 0);_.V([_.n(),_.H("design:type",Boolean)],Nf.prototype,"active",void 0);_.V([_.n(),_.H("design:type",Object)],Nf.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],Nf.prototype,"useBiggerThumbs",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Bx("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],Nf.prototype,"biggerThumbsStyle",void 0);_.V([_.n(),_.H("design:type",Object)],Nf.prototype,"renderSecondarySearchContainer",void 0);_.V([_.n({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.H("design:type",Boolean)],Nf.prototype,"showSecondaryColumn",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.H("design:type",Boolean)],Nf.prototype,"isSearchFrictionPage",void 0);
_.V([_.n(),_.H("design:type",Object)],Nf.prototype,"isSearch",void 0);_.V([_.ev("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Nf.prototype,"activeChanged",null);_.V([_.ev("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Nf.prototype,"persistentGuideChanged",null);
_.V([_.UQ("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Nf.prototype,"onRetrieveLocation",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Nf.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Nf);
_.Y(Nf,"ytd-two-column-search-results-renderer",function(){if(U4i!==void 0)return U4i;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return U4i=A},{mode:1});var ut=function(){var A=_.F.apply(this,arguments)||this;A.hasSearchHeader=!1;A.hasSecondaryContent=!1;A.hasBiggerThumbs=_.M("enable_desktop_search_bigger_thumbs");A.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return A};
_.R(ut,_.F);_.J=ut.prototype;_.J.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:_.Z6(["aa","eocs"])}}};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.loadPage_=function(A){this.initCsi();A&&(this.data=A,_.H5("REFINEMENTS_TUPLE",["FromSearchResponse",A.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.GO(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.J.initCsi=function(){_.oVl("results",["ol","cpt"])};
_.J.updateTitle=function(){var A=_.ww(window.location.href,"q");A||(A=_.ww(window.location.href,"search_query"));_.s9(this.hostElement,"yt-update-title",A||"")};
_.J.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.J.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.M("web_srp_data_changed_terminate_imp_killswitch")||_.kJ(this.hostElement,"yt-terminate-video-preview-action")};
_.J.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.J.computeHasSearchHeader=function(A){var t;A=A==null?void 0:(t=A.header)==null?void 0:t.searchHeaderRenderer;return!!A&&(!!A.searchFilterButton||!!A.chipBar)};
_.J.computeHasSecondaryContent=function(A){var t,f;return!!(A==null?0:(t=A.contents)==null?0:(f=t.twoColumnSearchResultsRenderer)==null?0:f.secondaryContents)};
_.PV.Object.defineProperties(ut,{template:{configurable:!0,enumerable:!0,get:function(){if(xcH===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);xcH=A}A=xcH;return A}}});
ut.prototype.onReloadContinuationFinish=ut.prototype.onReloadContinuationFinish;ut.prototype.dataChanged=ut.prototype.dataChanged;_.V([_.b(_.t$.YtPageBehavior),_.H("design:type",Object)],ut.prototype,"ytPageBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],ut.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ba),_.H("design:type",Object)],ut.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ut.prototype,"data",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],ut.prototype,"monitorScroll",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ut.prototype,"hasSearchHeader",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ut.prototype,"hasSecondaryContent",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ut.prototype,"hasBiggerThumbs",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ut.prototype,"dataChanged",null);
_.V([_.UQ("yt-reload-continuation-finish"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ut.prototype,"onReloadContinuationFinish",null);_.V([_.y_({is:"ytd-search"})],ut);_.JB.registerService(_.PB5,ut);
_.dw();
}catch(e){_._DumpException(e)}
try{
_.oy("h8y2qb");
var SVF=function(A){if(A=_.APq(A)){var t;(t=A.sources)!=null&&t[0]?(t=_.fPx(A),t=t<1?"VERTICAL":t>1?"HORIZONTAL":"SQUARE"):t=void 0;return t}},fM=function(A){_.pL.call(this,"upload");
this.opts.query=A},HOW=function(A,t){return _.u($WF,{data:A,
onYtNavigate:t})},aH3=function(A,t){return _.q_(A.entities,"pageHeaderEntity",t)},gVx=function(A,t){return A.map(function(f){if(f.tabRenderer)return Kzf(f.tabRenderer);
if(f.expandableTabRenderer&&t){var X=f.expandableTabRenderer;return{customTabRenderable:function(){return t(X)}}}return{}})},Kzf=function(A){return{identifier:A.tabIdentifier,
aTagConfig:_.yx({innertubeCommand:A.endpoint,forceNewState:!0}),title:A.title,selected:A.selected,disabled:A.unselectable,icon:A.icon}},wCr=function(A){return _.r0({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:A})},s9f=function(A){if(!_.we(document,"gtm-noscript")){var t=document.createElement("noscript");
t.id="gtm-noscript";t.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+A+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(t)}};_.rS(fM,_.pL);fM.prototype.JSC$10157_setLabel=function(A){fM.superClass_.JSC$10157_setLabel.call(this,A);return this};
fM.prototype.addUploadMetadata=function(A,t){fM.superClass_.addUploadMetadata.call(this,A,t);return this};var kGx=function(A){if(A!=="youtubebanner"&&A!=="youtube-channel-banner")throw Error("Ro");fM.call(this,A)};
_.R(kGx,fM);kGx.prototype.JSC$10157_setLabel=function(A){fM.prototype.JSC$10157_setLabel.call(this,A);return this};
kGx.prototype.addUploadMetadata=function(A,t){fM.prototype.addUploadMetadata.call(this,A,t);return this};var rt3=[_.K9,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(A){_.iS(A).path[0]!==this&&(this.resetLayout(),A.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var A=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.cr(this._layoutDebouncer,_.iP,A);_.Br(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var A=this;requestAnimationFrame(function(){A.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(A){this.resizerShouldNotify(A)&&this._notifyDescendant(A)},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 A5i=[_.Xzp,{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(A,t){var f=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[A];if(!f)throw new ReferenceError(this._getUndefinedMsg(A));A=this._boundEffect(f,t||{});A.setUp();return A},
_effectsChanged:function(A,t,f){this._tearDownEffects();A&&f&&(A.split(" ").forEach(function(X){var Q;X!==""&&((Q=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[X])?this._effects.push(this._boundEffect(Q,t[X])):console.warn(this._getUndefinedMsg(X)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(A,t){t=t||{};var f=parseFloat(t.startsAt||0),X=parseFloat(t.endsAt||1),Q=X-f,q=function(){};
X=f===0&&X===1?A.run:function(e,G){A.run.call(this,Math.max(0,(e-f)/Q),G)};
return{setUp:A.setUp?A.setUp.bind(this,t):q,run:A.run?X.bind(this):q,tearDown:A.tearDown?A.tearDown.bind(this):q}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(A){A.setUp()!==!1&&this._effectsRunFn.push(A.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(A){A.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(A,t){this._effectsRunFn&&this._effectsRunFn.forEach(function(f){f(A,t)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var A=this._clampedScrollTop;this._updateScrollState(A);this.threshold>0&&this._setThresholdTriggered(A>=this.threshold)}},
_getDOMRef:function(A){console.warn("_getDOMRef","`"+A+"` is undefined")},
_getUndefinedMsg:function(A){return"Scroll effect `"+A+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+A+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("So`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(A){var t={};A=parseFloat(A.scalar);t.background=this._getDOMRef("background");t.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");t.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");t.deltaBg=t.backgroundFrontLayer.offsetHeight-t.background.offsetHeight;t.deltaBg===0?(isNaN(A)&&(A=.8),t.deltaBg=(this._dHeight||0)*A):(isNaN(A)&&(A=
1),t.deltaBg*=A);this._fxParallaxBackground=t},
run:function(A){var t=this._fxParallaxBackground;this.transform("translate3d(0px, "+t.deltaBg*Math.min(1,A)+"px, 0px)",t.backgroundFrontLayer);t.backgroundRearLayer&&this.transform("translate3d(0px, "+t.deltaBg*Math.min(1,A)+"px, 0px)",t.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var tnW;var fgu;var Xdl=function(){};
_.J=Xdl.prototype;_.J._scrollTargetChanged=function(){};
_.J.scroll=function(){};
_.J._isValidScrollTarget=function(){};
_.J._toggleScrollListener=function(){};
_.J.toggleScrollListener=function(){};
_.J.createEffect=function(){};
_.J._effectsChanged=function(){};
_.J._layoutIfDirty=function(){};
_.J._boundEffect=function(){};
_.J._setUpEffect=function(){};
_.J._tearDownEffects=function(){};
_.J._runEffects=function(){};
_.J._scrollHandler=function(){};
_.J._scrollStateChanged=function(){};
_.J._getUndefinedMsg=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J._appResetLayoutHandler=function(){};
_.J.resetLayout=function(){};
_.J._notifyLayoutChanged=function(){};
_.J._notifyDescendantResize=function(){};
_.J._setThresholdTriggered=function(){};
Xdl=_.CN({_template:function(){if(fgu!==void 0)return fgu;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;tnW===void 0&&(tnW=document.createElement("template"));var X=tnW;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return fgu=A},
is:"tp-yt-app-header",behaviors:[A5i,rt3],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 A=_.iS(this.$.slot).getDistributedNodes(),t=0,f;f=A[t];t++)if(f.nodeType===Node.ELEMENT_NODE)if(f.hasAttribute("sticky")){this._stickyElRef=f;break}else this._stickyElRef||(this._stickyElRef=f);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var A=this._clampedScrollTop,t=this._height===0||A===0,f=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;t||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();t?this._updateScrollState(A,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=f}},
_updateScrollState:function(A,t){if(this._height!==0){var f=0,X=this._top;var Q=this._maxHeaderTop;var q=A-this._lastScrollTop,e=Math.abs(q),G=A>this._lastScrollTop,N=performance.now();this._mayMove()&&(f=this._clamp(this.reveals?X+q:A,0,Q));A>=this._dHeight&&(f=this.condenses&&!this.fixed?Math.max(this._dHeight,f):f,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&e<100){if(N-this._initTimestamp>300||this._wasScrollingDown!==G)this._initScrollTop=A,this._initTimestamp=N;A>=Q&&
(Math.abs(this._initScrollTop-A)>30||e>10?(G&&A>=Q?f=Q:!G&&A>=this._dHeight&&(f=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((f-X)/(q/(N-this._lastTimestamp)),0,300)+"ms"):f=this._top)}Q=this._dHeight===0?A>0?1:0:f/this._dHeight;t||(this._lastScrollTop=A,this._top=f,this._wasScrollingDown=G,this._lastTimestamp=N);if(t||Q!==this._progress||X!==f||A===0)this._progress=Q,this._runEffects(Q,f),this._transformHeader(f)}},
_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(A){this.translate3d(0,-A+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&A>=this._stickyElTop?Math.min(A,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(A,t,f){return Math.min(f,Math.max(t,A))},
_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),_.iS(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(A){switch(A){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.iS(this).querySelector("[main-title]");case "condensedTitle":return _.iS(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var QkH;var qPy;_.CN({_template:function(){if(qPy!==void 0)return qPy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;QkH===void 0&&(QkH=document.createElement("template"));var X=QkH;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return qPy=A},
is:"tp-yt-app-header-layout",behaviors:[rt3],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.iS(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var A=this.header;if(this.isAttached&&A){this.$.wrapper.classList.remove("initializing");A.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)A.style.left="",A.style.right="";else{var t=this.getBoundingClientRect(),f=document.documentElement.clientWidth-t.right;A.style.left=t.left+"px";A.style.right=f+"px"}t=this.$.contentContainer.style;f=A.offsetHeight;A.fixed&&!A.condenses&&this.hasScrollingRegion?
(t.marginTop=f+"px",t.paddingTop=""):(t.paddingTop=f+"px",t.marginTop="")}}});var J5H=new _.UA("alertCommand");var UwH=new _.UA("manageLabsStateCommand");var ewb=new _.UA("inlineFormRenderer");var Gv3=new _.UA("playlistSidebarPrimaryInfoRenderer");var lgH=new _.UA("productDetailsThumbnailRenderer"),NGi=new _.UA("productDetailsVariantRenderer"),uUy=new _.UA("productDetailsVariantOptionRenderer"),zwj=new _.UA("productDetailsOffersContainerRenderer"),PUr=new _.UA("productDetailsOfferRenderer");var TGx=new _.UA("shoppingFlaggingRenderer");var ini=new _.UA("playlistBylineRenderer");var Onb=new _.UA("insertChannelTabCommand");var XJ=function(){return _.uo.apply(this,arguments)||this};
_.R(XJ,_.uo);_.J=XJ.prototype;_.J.activeChanged=function(){if(this.active){var A=_.sF(this.hostElement).querySelector("#header");A&&_.s9(A,"iron-resize");window.addEventListener("scroll",_.JY(this,this.onScroll))}else window.removeEventListener("scroll",_.JY(this,this.onScroll)),_.s9(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.J.guideVisibleChanged=function(){var A=_.sF(this.hostElement).querySelector("#header");A&&_.s9(A,"iron-resize")};
_.J.onScroll=function(){var A=this;_.Ig(this,"onScroll",function(){var t=_.sF(A.hostElement).querySelector("#header");t&&t.polymerController&&(t=t.polymerController.getScrollState().progress===1?"standard":"seamed",_.s9(A.hostElement,"yt-request-panel-mode-change",{mode:t}))},10)};
_.J.tabsChanged=function(){if(this.tabs){for(var A=null,t=0,f=this.tabs.length;t<f;++t){var X=this.tabs[t].tabRenderer;if(X&&X.selected){A=t;break}}this.selected=A}};
_.J.onTabsActivate=function(A){_.s9(this.hostElement,"yt-navigate",{endpoint:this.tabs[A.detail.selected].tabRenderer.endpoint})};
XJ.prototype.tabsChanged=XJ.prototype.tabsChanged;XJ.prototype.guideVisibleChanged=XJ.prototype.guideVisibleChanged;XJ.prototype.activeChanged=XJ.prototype.activeChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],XJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.n(),_.H("design:type",Array)],XJ.prototype,"tabs",void 0);
_.V([_.n(),_.H("design:type",Object)],XJ.prototype,"selected",void 0);_.V([_.n(),_.H("design:type",Boolean)],XJ.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],XJ.prototype,"disableHeaderFluidWidth",void 0);_.V([_.ev("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XJ.prototype,"activeChanged",null);
_.V([_.ev("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XJ.prototype,"guideVisibleChanged",null);_.V([_.ev("tabs"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XJ.prototype,"tabsChanged",null);_.V([_.zh()],XJ);var c5u=[_.g.YtRendererBehavior,_.NT.YtdGuideStateAwareBehavior,XJ.prototype];var BGj=2/3,Mnx=_.Xl(130749),CUl=function(A,t){var f=this;this.element=A;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){f.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:BGj,moveAction:function(X){f.moveAction(X)},
triggerAction:function(){f.element.isReloading=!0;_.FR(_.er(),{visualElement:Mnx});_.XH.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:f.element}})}}}};
_.Yz(_.er(),Mnx,this.layer);this.gesture=new _.IL(A,t,this.refreshConfig,"pan-down");this.attach()};
_.J=CUl.prototype;_.J.attach=function(){this.gesture.attach()};
_.J.detach=function(){this.gesture.detach()};
_.J.reset=function(){this.element.close()};
_.J.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.J.moveAction=function(A){this.element.rotation=A*360};var hwi=_.Xl(130750),mwW=function(A,t,f,X,Q){var q=this;this.element=A;this.parent=f;this.channelHeader=X;this.ytdReduxDispatch=Q;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){q.tabsStartAtInPx=q.channelHeader.clientHeight-48;var e;(e=q.selectedTab)!=null&&e.title&&(e=_.Px().resolve(_.z7(_.HO)))&&(e=e.getCurrentPage(),q.lastVisitedTabScrollPosition=e.getScrollTop(),q.previousTab&&
((q.lastVisitedTabScrollPosition===void 0?0:q.lastVisitedTabScrollPosition<q.channelHeader.clientHeight-48)?q.scrollPositionForTabs.has(q.selectedTab.title)&&q.scrollPositionForTabs.delete(q.selectedTab.title):q.scrollPositionForTabs.set(q.selectedTab.title,e.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Rwy(),triggerAction:function(){q.navigate(q.previousTab)},
moveAction:function(e,G){q.moveAction(e,G)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Rwy(),triggerAction:function(){q.navigate(q.nextTab)},
moveAction:function(e,G){q.moveAction(e,G)}}}};
_.Yz(_.er(),hwi,this.layer);this.gesture=new _.IL(A,t,this.tabConfig);this.attach()};
_.J=mwW.prototype;_.J.attach=function(){this.gesture.attach()};
_.J.detach=function(){this.gesture.detach()};
_.J.tabsChanged=function(A){if(A){var t=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;A=_.U(A);for(var f=A.next();!f.done;f=A.next()){f=f.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=f);var X=void 0;if((X=f)==null?0:X.selected)this.previousTab=t,this.selectedTab=f;t=f}t=this.gesture;A=this.getConfig();t.config=A;this.scrollPositionNeedsUpdate=!0}};
_.J.getConfig=function(){return 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}})};
_.J.moveAction=function(A,t){if(!this.tabsElement){var f;this.tabsElement=(f=this.parent.header)==null?void 0:f.tabsElement;t==="right"&&this.previousTab?(f=this.previousTab.endpoint,_.zLA(_.Px().resolve(_.Cs),f,{},"")):t==="left"&&this.nextTab&&(f=this.nextTab.endpoint,_.zLA(_.Px().resolve(_.Cs),f,{},""));if(!this.tabsElement)return}f=this.tabsElement._pos;t==="right"&&(A*=-1);this.tabsElement._positionBar(f.width,f.left*1+f.width*A)};
var Rwy=function(){var A,t;return(t=(A=_.Px().resolve(_.HO).getCurrentPage())==null?void 0:A.clientWidth)!=null?t:0};
mwW.prototype.navigate=function(A){this.element.data=void 0;if(A=A==null?void 0:A.endpoint)this.ytdReduxDispatch(wCr(!0)),_.FR(_.er(),{visualElement:hwi}),_.XH.instance.resolveCommand({navigateAction:{endpoint:A}},{form:{element:this.element}})};var bnl;var WSf;var Qr=function(){return _.F.apply(this,arguments)||this};
_.R(Qr,_.F);Qr.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Qr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Qr.prototype,"data",void 0);_.V([_.y_({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Qr);
_.Y(Qr,"ytd-labs-edit-renderer",function(){if(WSf!==void 0)return WSf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return WSf=A},{mode:1});var y5b;var qu=function(){var A=_.F.apply(this,arguments)||this;A.dark=!1;A.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";A.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(qu,_.F);qu.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qu.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.setBackgroundImage(A);this.dark=A};
qu.prototype.onDarkModeToggledAction=function(A){this.setBackgroundImage(A);this.dark=A};
qu.prototype.setBackgroundImage=function(A){_.Q_(this.hostElement,{"--yt-labs-header-background":"url("+(A?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],qu.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qu.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qu.prototype,"dark",void 0);
_.V([_.y_({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],qu);
_.Y(qu,"ytd-labs-header-renderer",function(){if(y5b!==void 0)return y5b;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return y5b=A},{mode:1});var vNb;var J$=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return A};
_.R(J$,_.F);J$.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"}}}}}};
J$.prototype.onYtToggleButton=function(A){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",A.detail.toggled)};
J$.prototype.onManageLabsState=function(A){if(A=_.C(A,UwH))A.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?A.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&A.labsItemId===this.data.labsItemId&&(A.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.kJ(this.hostElement,"yt-check-labs-opted-in-state").some(function(t){return t})&&this.data.confirmationDialogCommand?_.tl(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.Px().resolve(_.i2).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&A.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.Px().resolve(_.i2).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
J$.prototype.onCheckLabsOptedInState=function(){var A=this.get("data.primaryButton.toggleButtonRenderer");return A?A.isToggled:!1};
_.PV.Object.defineProperties(J$.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
J$.prototype.onYtToggleButton=J$.prototype.onYtToggleButton;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],J$.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],J$.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],J$.prototype,"itemStyle",null);_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],J$.prototype,"onYtToggleButton",null);_.V([_.y_({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],J$);
_.Y(J$,"ytd-labs-item-renderer",function(){if(vNb!==void 0)return vNb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return vNb=A},{mode:1});var LSF;var pdi;var ENi=function(){return _.F.apply(this,arguments)||this};
_.R(ENi,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ENi.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ENi.prototype,"data",void 0);_.V([_.y_({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],ENi);
_.Y(ENi,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(pdi!==void 0)return pdi;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return pdi=A},{mode:1});var nNl;var UG=function(){return _.F.apply(this,arguments)||this};
_.R(UG,_.F);UG.prototype.observeSuperchatChip=function(){if(this.data){var A={"--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)};_.Q_(this.hostElement,A)}};
UG.prototype.colorFromDecimal=function(A){return _.bY(Number(A||0))};
UG.prototype.observeSuperchatChip=UG.prototype.observeSuperchatChip;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],UG.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UG.prototype,"observeSuperchatChip",null);_.V([_.y_({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],UG);
_.Y(UG,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(nNl!==void 0)return nNl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return nNl=A},{mode:1});var e8=function(){return _.F.apply(this,arguments)||this};
_.R(e8,_.F);e8.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"}}}};
_.PV.Object.defineProperties(e8.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.UW),_.H("design:type",Object)],e8.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],e8.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],e8.prototype,"hideMessageBlock",null);
_.V([_.y_({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],e8);
_.Y(e8,"ytd-live-chat-history-entry-renderer",function(){if(LSF!==void 0)return LSF;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return LSF=A},{mode:1});var Dw3;var FSl=function(){return _.F.apply(this,arguments)||this};
_.R(FSl,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],FSl.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],FSl.prototype,"data",void 0);_.V([_.y_({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],FSl);
_.Y(FSl,"ytd-channel-options-renderer",function(){if(Dw3!==void 0)return Dw3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Dw3=A},{mode:1});var IgF;var G3=function(){return _.F.apply(this,arguments)||this};
_.R(G3,_.F);G3.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],G3.prototype,"data",void 0);_.V([_.y_({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],G3);
_.Y(G3,"ytd-settings-email-item-renderer",function(){if(IgF!==void 0)return IgF;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return IgF=A},{mode:1});var xwl;var lH=function(){return _.F.apply(this,arguments)||this};
_.R(lH,_.F);lH.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"}}}};
lH.prototype.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
lH.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.PV.Object.defineProperties(lH.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],lH.prototype,"data",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],lH.prototype,"expanded",void 0);_.V([_.y("expanded"),_.H("design:type",String),_.H("design:paramtypes",[])],lH.prototype,"emailListExpanded",null);
_.V([_.lo("#options"),_.H("design:type",Object)],lH.prototype,"options",void 0);_.V([_.y_({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],lH);
_.Y(lH,"ytd-settings-email-list-renderer",function(){if(xwl!==void 0)return xwl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return xwl=A},{mode:1});var jkx;var Nu=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return A};
_.R(Nu,_.F);Nu.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"}}}};
Nu.prototype.handleSignalActionSubmitForm=function(){var A,t=(A=this.formRenderer)==null?void 0:A.getForm();t&&this.data.serviceEndpoint&&_.Px().resolve(_.i2).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},t,{element:this.hostElement})})};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Nu.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Nu.prototype,"data",void 0);_.V([_.lo("yt-form-renderer"),_.H("design:type",Object)],Nu.prototype,"formRenderer",void 0);
_.V([_.y_({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Nu);
_.Y(Nu,"ytd-settings-gaia-link-renderer",function(){if(jkx!==void 0)return jkx;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return jkx=A},{mode:1});var YPj;var uH=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return A};
_.R(uH,_.F);uH.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.a2m()&&this.set("data.hidden",!1)};
uH.prototype.onSwitchReady=function(){var A=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.M("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.Hp_().then(function(t){t&&(Notification.permission==="default"?A.set("data.hidden",!1):Notification.permission==="granted"&&_.s4("NotificationsDisabled").then(function(f){f||_.kJ(A.hostElement,"yt-toggle-settings-switch",[A.data.id,!f]);A.set("data.hidden",!1)}).catch(function(){}))})})};
uH.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}}}}};
uH.prototype.handleUpdateOptionsCommand=function(A){(A=_.C(A,_.TOT))&&this.data&&this.data.id===A.id&&(this.set("data.hidden",A.hidden),A.text!==void 0&&this.set("data.text",A.text),A.clearOptions&&this.set("data.options",[]))};
uH.prototype.onSwitchReady=uH.prototype.onSwitchReady;uH.prototype.dataChanged=uH.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],uH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],uH.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],uH.prototype,"data",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uH.prototype,"dataChanged",null);_.V([_.UQ("yt-settings-switch-ready"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uH.prototype,"onSwitchReady",null);_.V([_.y_({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],uH);
_.Y(uH,"ytd-settings-options-renderer",function(){if(YPj!==void 0)return YPj;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return YPj=A},{mode:1});var Vny;var z3=function(){return _.F.apply(this,arguments)||this};
_.R(z3,_.F);z3.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
z3.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
z3.prototype.onYtExpanderMoreTapped=z3.prototype.onYtExpanderMoreTapped;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],z3.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],z3.prototype,"data",void 0);
_.V([_.UQ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],z3.prototype,"onYtExpanderMoreTapped",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],z3);
_.Y(z3,"ytd-product-details-description-renderer",function(){if(Vny!==void 0)return Vny;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Vny=A},{mode:1});var Zny;var PG=function(){var A=_.F.apply(this,arguments)||this;A.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";A.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";A.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";A.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return A};
_.R(PG,_.F);PG.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.PV.Object.defineProperties(PG.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:(t=A.offerData)==null?void 0:t.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?void 0:A.purchaseButtonRenderers)!==void 0&&((t=this.data)==null?void 0:t.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var A,t;return!((A=this.data)==null||!A.formattedFromMerchantText)&&(!((t=this.data)==null||!t.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],PG.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],PG.prototype,"data",void 0);
_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],PG.prototype,"shippingIcon",void 0);_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],PG.prototype,"shippingAddressIcon",void 0);_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],PG.prototype,"googleGuaranteeIcon",void 0);
_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],PG.prototype,"returnPolicyIcon",void 0);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],PG.prototype,"showAdditionalFees",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],PG.prototype,"showMultiPurchaseButtons",null);
_.V([_.y("data","showMultiPurchaseButtons"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],PG.prototype,"showPurchaseData",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],PG);
_.Y(PG,"ytd-product-details-hero-offer-renderer",function(){if(Zny!==void 0)return Zny;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Zny=A},{mode:1});var oNy;var dwb;var T3=function(){return _.F.apply(this,arguments)||this};
_.R(T3,_.F);_.J=T3.prototype;_.J.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.J.onKeyDown=function(A){A=A.keyCode;A!==13&&A!==32||this.handleSelection()};
_.J.onMouseEnterImage=function(){var A;((A=this.data)==null?void 0:A.thumbnailDetails)!==void 0&&_.r2(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.J.onMouseLeaveImage=function(){_.r2(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.J.handleSelection=function(){this.data&&_.s9(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.PV.Object.defineProperties(T3.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isSelected)}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],T3.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],T3.prototype,"isSelected",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],T3);
_.Y(T3,"ytd-product-details-thumbnail-renderer",function(){if(dwb!==void 0)return dwb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return dwb=A},{mode:1});var iH=function(){var A=_.F.apply(this,arguments)||this;var t={};A.actionMap=(t["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",t["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",t);A.selectedThumbnailIndex=0;A.selectItem=function(f){f.target.onKeyDown(f)};
return A};
_.R(iH,_.F);_.J=iH.prototype;_.J.handlePreviewImageSelect=function(A){this.hoverThumbnail=A};
_.J.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.J.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.J.onThumbnailSelected=function(A,t){this.selectedThumbnailIndex=t};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.J.updateOffset=function(){var A=_.sF(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-A));this.ytdHorizontalListBehavior.reposition_()};
_.PV.Object.defineProperties(iH.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.imageRenderer){var t,f;return((t=this.data)==null?void 0:(f=t.imageRenderer)==null?void 0:f.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var A;if((A=this.data)==null?0:A.imageRenderer){var t;return(t=_.C(this.data.imageRenderer[this.selectedThumbnailIndex],lgH))==null?void 0:t.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var A=this,t,f,X,Q=(X=(t=this.data)==null?void 0:(f=t.imageRenderer)==null?void 0:f.map(function(q,e){return{productDetailsThumbnailRenderer:Object.assign({},_.C(q,lgH),{index:e,isSelected:e===A.selectedThumbnailIndex})}}))!=null?X:[];
return Object.assign({},this.data,{imageRenderer:Q})}}});
iH.prototype.updateOffset=iH.prototype.updateOffset;iH.prototype.dataChanged=iH.prototype.dataChanged;iH.prototype.onThumbnailSelected=iH.prototype.onThumbnailSelected;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.W7.YtdHorizontalListBehavior),_.H("design:type",Object)],iH.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],iH.prototype,"componentBehavior",void 0);_.V([_.b([_.jD.YtActionHandlerBehavior]),_.H("design:type",Object)],iH.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],iH.prototype,"data",void 0);_.V([_.n({value:"$.items.children"}),_.H("design:type",String)],iH.prototype,"itemsPath",void 0);_.V([_.n({value:3}),_.H("design:type",Number)],iH.prototype,"initialCount",void 0);
_.V([_.lo("#items"),_.H("design:type",Object)],iH.prototype,"items",void 0);_.V([_.n(),_.H("design:type",Object)],iH.prototype,"selectedThumbnailIndex",void 0);_.V([_.n(),_.H("design:type",Object)],iH.prototype,"hoverThumbnail",void 0);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],iH.prototype,"showThumbnails",null);
_.V([_.UQ("ytd-product-details-thumbnail-renderer-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Number]),_.H("design:returntype")],iH.prototype,"onThumbnailSelected",null);_.V([_.y("data","selectedThumbnailIndex","hoverThumbnail"),_.H("design:type",Object),_.H("design:paramtypes",[])],iH.prototype,"thumbnailDetails",null);_.V([_.y("data","selectedThumbnailIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],iH.prototype,"populatedData",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iH.prototype,"dataChanged",null);_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iH.prototype,"updateOffset",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],iH);
_.Y(iH,"ytd-product-details-image-carousel-renderer",function(){if(oNy!==void 0)return oNy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return oNy=A},{mode:_.sQ("kevlar_poly_si_batch_j079")?1:2});var SPj;var OG=function(){return _.F.apply(this,arguments)||this};
_.R(OG,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],OG.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],OG.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],OG);
_.Y(OG,"ytd-product-details-offer-renderer",function(){if(SPj!==void 0)return SPj;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return SPj=A},{mode:1});var $wb;var cG=function(){var A=_.F.apply(this,arguments)||this;A.isOffersHidden=!0;return A};
_.R(cG,_.F);cG.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var A,t=_.C((A=this.data)==null?void 0:A.viewOffersButton,_.Gf);t&&this.ytRendererBehavior.logExplicitClick(t)};
cG.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.PV.Object.defineProperties(cG.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X;return(f=_.C((A=this.data)==null?void 0:(t=A.offers)==null?void 0:t[0],PUr))==null?void 0:(X=f.offerData)==null?void 0:X.vendorLogoUrl}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],cG.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cG.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],cG.prototype,"isOffersHidden",void 0);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],cG.prototype,"firstOfferVendorLogoUrl",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],cG);
_.Y(cG,"ytd-product-details-offers-container-renderer",function(){if($wb!==void 0)return $wb;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return $wb=A},{mode:1});var HnW;var agl;var BG=function(){return _.F.apply(this,arguments)||this};
_.R(BG,_.F);BG.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
BG.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.r2(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
BG.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.r2(this,"ytd-product-details-variant-image-unselect")};
_.PV.Object.defineProperties(BG.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 A;return((A=this.data)==null?void 0:A.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.data)==null?void 0:A.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((t=this.data)==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((f=this.data)==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var A;if(((A=this.data)==null?void 0:A.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var A,t;return this.isUnavailable?(A=this.data)==null?void 0:A.variantOptionUnavailableAccessibilityLabel:(t=this.data)==null?void 0:t.variantOptionAccessibilityLabel}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],BG.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],BG.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],BG.prototype,"displayType",void 0);
_.V([_.y("displayType","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],BG.prototype,"isImageButton",null);_.V([_.y("displayType","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],BG.prototype,"isPillButton",null);_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],BG.prototype,"isActive",null);
_.V([_.y("data"),_.n({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],BG.prototype,"isUnavailable",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],BG.prototype,"thumbnailDetails",null);_.V([_.y("isUnavailable","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],BG.prototype,"accessibilityLabel",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],BG);
_.Y(BG,"ytd-product-details-variant-option-renderer",function(){if(agl!==void 0)return agl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return agl=A},{mode:1});var KSF;var Mu=function(){var A=_.F.apply(this,arguments)||this;A.variantsExpanded=!1;A.hideShowMoreLessVariantButton=!0;A.initialized=!1;A.computeVariantsDebouncer=null;A.computeVariants=function(t){t=t===void 0?!1:t;A.variantsExpanded||A.showOptions()||!t||(A.variantsExpanded=!0);if(A.variantsExpanded){t=_.U(A.items.children);for(var f=t.next();!f.done;f=t.next())f.value.hidden=!1}A.initialized=!0};
return A};
_.R(Mu,_.F);_.J=Mu.prototype;_.J.ready=function(){var A=this;setTimeout(function(){A.computeVariants(!0)})};
_.J.showOptions=function(){for(var A=_.U(this.items.children),t=A.next();!t.done;t=A.next())t.value.hidden=!0;var f=this.container.getBoundingClientRect().width,X=0,Q=A=0;t=!1;for(var q=_.U(this.items.children),e=q.next();!e.done;e=q.next()){e=e.value;e.hidden=!1;var G=e.getBoundingClientRect().width;if(X+G<f)X+=G;else if(++Q<2)X=G;else break;A+=1;e.hasAttribute("is-active")&&(t=!0)}for(f=A;f<this.items.children.length;f++)this.items.children[f].hidden=!0;this.hideShowMoreLessVariantButton=A===this.items.children.length;
return t};
_.J.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.cr(this.computeVariantsDebouncer,_.Jh.after(100),this.computeVariants)};
_.J.onShowMoreLessVariantsButtonClick=function(){var A;(A=this.data)!=null&&A.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.J.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.PV.Object.defineProperties(Mu.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(A=this.data)==null?void 0:(t=A.variantOptionRenderers)==null?void 0:t.find(function(q){return _.C(q,uUy).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),X,Q;
return(Q=(X=_.C(f,uUy))==null?void 0:X.name)!=null?Q:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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"}}}});
Mu.prototype.debouncedComputeVariants=Mu.prototype.debouncedComputeVariants;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Mu.prototype,"componentBehavior",void 0);_.V([_.b(_.K9),_.H("design:type",Object)],Mu.prototype,"ironResizableBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Mu.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Mu.prototype,"variantsExpanded",void 0);_.V([_.n(),_.H("design:type",Object)],Mu.prototype,"hideShowMoreLessVariantButton",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Mu.prototype,"initialized",void 0);_.V([_.lo("#items"),_.H("design:type",HTMLDivElement)],Mu.prototype,"items",void 0);_.V([_.lo("#container"),_.H("design:type",HTMLDivElement)],Mu.prototype,"container",void 0);
_.V([_.lo("#more-variants-button"),_.H("design:type",HTMLElement)],Mu.prototype,"moreVariantsButton",void 0);_.V([_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],Mu.prototype,"selectedOptionName",null);_.V([_.ev("data","variantsExpanded"),_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mu.prototype,"debouncedComputeVariants",null);
_.V([_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],Mu.prototype,"displayType",null);_.V([_.y("displayType"),_.H("design:type",Object),_.H("design:paramtypes",[])],Mu.prototype,"variantItemsClassname",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Mu);
_.Y(Mu,"ytd-product-details-variant-renderer",function(){if(KSF!==void 0)return KSF;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return KSF=A},{mode:1});var CM=function(){return _.F.apply(this,arguments)||this};
_.R(CM,_.F);
CM.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"}}}};
_.PV.Object.defineProperties(CM.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(t=_.C((A=this.data)==null?void 0:A.offersContainerRenderer,zwj))==null?void 0:t.offers;return f!==void 0&&(f==null?void 0:f.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 A,t,f;return((f=(A=this.data)==null?void 0:(t=A.variants)==null?void 0:t.map(function(X){var Q,q;X=(q=(Q=_.C(X,NGi))==null?void 0:Q.variantOptionRenderers)==null?void 0:q.find(function(G){var N;return((N=_.C(G,uUy))==null?void 0:N.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var e;return(e=_.C(X,uUy))==null?void 0:e.name}).filter(function(X){return typeof X==="string"}))!=null?f:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var A,t,f,X=(t=_.C((A=this.data)==null?void 0:A.shoppingFlaggingRenderer,TGx))==null?void 0:(f=t.reportButton)==null?void 0:f.buttonRenderer;if(X)return{text:X.text,command:X.command,icon:{iconType:"FLAG"},accessibilityData:X.accessibilityData,trackingParams:X.trackingParams,loggingDirectives:X.loggingDirectives}}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],CM.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],CM.prototype,"data",void 0);_.V([_.lo("#image-carousel-renderer"),_.H("design:type",Object)],CM.prototype,"imageCarouselRenderer",void 0);
_.V([_.lo("#hero-offer-renderer"),_.H("design:type",Object)],CM.prototype,"productDetailsHeroOfferRenderer",void 0);_.V([_.lo("#variants"),_.H("design:type",Object)],CM.prototype,"productDetailsVariantRenderer",void 0);_.V([_.lo("#offers"),_.H("design:type",Object)],CM.prototype,"productDetailsOffersContainerRenderer",void 0);_.V([_.lo("#description-renderer"),_.H("design:type",Object)],CM.prototype,"productDetailsDescriptionRenderer",void 0);
_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CM.prototype,"showPurchaseData",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CM.prototype,"showHeroOfferRenderer",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CM.prototype,"showBrandText",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CM.prototype,"showOffers",null);
_.V([_.y("showOffers","showPurchaseData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CM.prototype,"showBuySeparator",null);_.V([_.y("showOffers","showPurchaseData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],CM.prototype,"showBuyCard",null);_.V([_.y("data"),_.H("design:type",String),_.H("design:paramtypes",[])],CM.prototype,"selectedVariantsText",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],CM.prototype,"shoppingReportingButtonData",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],CM);
_.Y(CM,"ytd-product-details-renderer",function(){if(HnW!==void 0)return HnW;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return HnW=A},{mode:1});var gNW;var wdF;var ski;var h$=function(){return _.F.apply(this,arguments)||this};
_.R(h$,_.F);h$.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.PV.Object.defineProperties(h$.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],h$.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],h$.prototype,"formattedAmount",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],h$.prototype,"ariaLabel",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("data.style"),_.H("design:type",String),_.H("design:paramtypes",[])],h$.prototype,"vcBalanceWidgetStyle",null);_.V([_.WU({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],h$);
_.Y(h$,"yt-vc-balance-renderer",function(){if(ski===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;wdF===void 0&&(wdF=document.createElement("template"));var X=wdF;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ski=A}A=ski;return A},{mode:2});_.C1("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Rc=function(){return _.F.apply(this,arguments)||this};
_.R(Rc,_.F);_.PV.Object.defineProperties(Rc.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:""}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Rc.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Rc.prototype,"data",void 0);_.V([_.n({selectorArgs:["data.vcBalanceEntityKey"],selector:function(A,t){return _.q_(A.entities,"vcBalanceEntity",t)}}),
_.H("design:type",Object)],Rc.prototype,"vcBalanceEntity",void 0);_.V([_.y("vcBalanceEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Rc.prototype,"formattedAmount",null);_.V([_.y("vcBalanceEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Rc.prototype,"vcBalanceAriaLabel",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Rc);
_.Y(Rc,"ytd-vc-balance-renderer",function(){if(gNW!==void 0)return gNW;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return gNW=A},{mode:1});var kvj;var mD=function(){var A=_.F.apply(this,arguments)||this;A.rotation=0;A.isReloading=!1;return A};
_.R(mD,_.F);mD.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
mD.prototype.reset=function(){this.hostElement.style.opacity=""};
mD.prototype.close=function(){var A=this;return _.l(function(t){if(t.nextAddress==1)return t.yield(A.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.hostElement.style.opacity="0";_.LO(t)})};
mD.prototype.rotationChanged=mD.prototype.rotationChanged;_.V([_.n(),_.H("design:type",Object)],mD.prototype,"rotation",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],mD.prototype,"isReloading",void 0);_.V([_.lo("#icon"),_.H("design:type",HTMLElement)],mD.prototype,"icon",void 0);_.V([_.ev("rotation"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mD.prototype,"rotationChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-refresh"})],mD);
_.Y(mD,"ytd-refresh",function(){if(kvj!==void 0)return kvj;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return kvj=A},{mode:1});var r5i;var bH=function(){var A=_.F.apply(this,arguments)||this;A.useRaf=!_.M("web_use_raf_app_header_layout_killswitch");return A};
_.R(bH,_.F);bH.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"}}}};
bH.prototype.dataChanged=function(){if(this.data){var A=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var t=_.a8(this.data.banner.thumbnails,this.hostElement.clientWidth);t&&(t.indexOf("//")===0&&(t="https:"+t),this.hasBannerArt=!0,_.Q_(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+t+")"}))}this.hasBannerArt!==A&&_.sF(this.hostElement).querySelector("#header").fire("iron-resize")}};
bH.prototype.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
bH.prototype.dataChanged=bH.prototype.dataChanged;_.V([_.b(c5u),_.H("design:type",Object)],bH.prototype,"ytdTabbedHeaderBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.GB),_.H("design:type",Object)],bH.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],bH.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],bH.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bH.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],bH.prototype,"selected",void 0);_.V([_.n(),_.H("design:type",Boolean)],bH.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],bH.prototype,"hasBannerArt",void 0);_.V([_.n(),_.H("design:type",Object)],bH.prototype,"useRaf",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bH.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],bH);
_.Y(bH,"ytd-interactive-tabbed-header-renderer",function(){if(r5i!==void 0)return r5i;var A=document.createElement("template");_.m(A,'\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 use-raf="[[useRaf]]" 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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return r5i=A},{mode:1});var AVH;var WG=function(){return _.F.apply(this,arguments)||this};
_.R(WG,_.F);WG.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
WG.prototype.computeActionsAlignment=function(A){return(A==null?void 0:A.actionsAlignment)||""};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],WG.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.H("design:type",String)],WG.prototype,"actionsAlignment",void 0);
_.V([_.y_({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],WG);
_.Y(WG,"ytd-page-footer-renderer",function(){if(AVH!==void 0)return AVH;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return AVH=A},{mode:1});var teu;var fAb;var yr=function(){var A=_.F.apply(this,arguments)||this;A.isEditing=!1;A.useSlot=!1;A.isMultiline=!1;return A};
_.R(yr,_.F);_.J=yr.prototype;_.J.onKeydown=function(A){if(A.keyCode===13&&!this.isMultiline)this.onSave();else if(A.keyCode===27)this.onCancel()};
_.J.computeComponentStyle=function(A){return(A==null?0:A.style)?A.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.J.computeisMultiline=function(A){if(this.multilineOverride!==void 0)return this.multilineOverride;var t,f;return!!(A==null?0:(t=A.formField)==null?0:(f=t.textInputFormFieldRenderer)==null?0:f.isMultiline)};
_.J.computeTextDisplayed=function(A,t){if(A)return A;if(t)return t};
_.J.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.J.onSave=function(){if(this.textForm.validate()){this.textForm.save();var A=this.textForm.value;if(A)this.set("data.textDisplayed",_.oC(A));else{var t;((t=this.data)==null?0:t.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Ol("inline-form-changed",this.data));this.isEditing=!1}};
_.J.onCancel=function(){var A=_.dF(this.data.textDisplayed);A===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(A);this.isEditing=!1};
yr.prototype.onKeydown=yr.prototype.onKeydown;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],yr.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],yr.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],yr.prototype,"isEditing",void 0);_.V([_.n(),_.H("design:type",Object)],yr.prototype,"useSlot",void 0);_.V([_.n(),_.H("design:type",Boolean)],yr.prototype,"multilineOverride",void 0);_.V([_.n(),_.H("design:type",Boolean)],yr.prototype,"enableOverlayTheme",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.H("design:type",String)],yr.prototype,"componentStyle",void 0);
_.V([_.n({computed:"computeisMultiline(data)"}),_.H("design:type",Object)],yr.prototype,"isMultiline",void 0);_.V([_.lo("#text-form"),_.H("design:type",Object)],yr.prototype,"textForm",void 0);_.V([_.UQ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],yr.prototype,"onKeydown",null);_.V([_.y_({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],yr);
_.Y(yr,"ytd-inline-form-renderer",function(){if(fAb!==void 0)return fAb;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return fAb=A},{mode:1});var XfQ;var vG=function(){var A=_.F.apply(this,arguments)||this;A.previousSelectValue=void 0;A.selectedItemMessage=void 0;return A};
_.R(vG,_.F);vG.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
vG.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var A,t,f,X,Q=(A=this.data)==null?void 0:(t=A.dropdown)==null?void 0:(f=t.dropdownRenderer)==null?void 0:(X=f.entries)==null?void 0:X.map(function(G){return G.privacyDropdownItemRenderer});
A=_.U(Q!=null?Q:[]);for(t=A.next();!t.done;t=A.next())if((t=t.value)&&t.int32Value===this.selectedValue){this.selectedItemMessage=t.itemMessage;break}}else this.selectedItemMessage=void 0;var q;(q=this.onValueChanged)==null||q.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var e;(e=this.data)!=null&&e.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
vG.prototype.onValueChangedForSelectedValue=function(A){this.selectedValue=A.detail.value};
vG.prototype.selectedValueChanged=vG.prototype.selectedValueChanged;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],vG.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],vG.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],vG.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],vG.prototype,"theme",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Number)],vG.prototype,"selectedValue",void 0);_.V([_.n(),_.H("design:type",Function)],vG.prototype,"onValueChanged",void 0);
_.V([_.PU("selectedValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vG.prototype,"selectedValueChanged",null);_.V([_.y_({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],vG);
_.Y(vG,"ytd-dropdown-form-field-renderer",function(){if(XfQ!==void 0)return XfQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return XfQ=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var Qy3;var LM=function(){return _.F.apply(this,arguments)||this};
_.R(LM,_.F);_.PV.Object.defineProperties(LM.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var A=[],t=_.U(this.data||[]),f=t.next();!f.done;f=t.next())(f=_.C(f.value,ini))&&A.push(f);return A}}});
_.V([_.n(),_.H("design:type",Array)],LM.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LM.prototype,"byline",null);_.V([_.y_({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],LM);
_.Y(LM,"ytd-playlist-byline-renderer",function(){if(Qy3!==void 0)return Qy3;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Qy3=A},{mode:1});var qBr;var pM=function(){var A=_.F.apply(this,arguments)||this;A.rtlBullet=_.M("web_playlist_stats_rtl_bullet_icon_killswitch");A.modern=_.M("web_modern_buttons");A.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return A};
_.R(pM,_.F);_.J=pM.prototype;_.J.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"}}}}};
_.J.attached=function(){};
_.J.computeIsCustomThumbnail=function(A){return A?!!A.playlistCustomThumbnailRenderer:!1};
_.J.onYtNavigate=function(A,t){if(t&&t.actions&&t.actions.indexOf("shuffle")>-1){A=_.Px().resolve(_.zT);var f=t.tempData||{};f.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);t.tempData=f;A.isShuffleNextPlaylist=!0}};
_.J.onUpdatePlaylistAction=function(A){var t;A=(t=_.C(A,_.$$8))==null?void 0:t.updatedRenderer;if(t=_.C(A,Gv3))this.data=t};
_.J.computeStyleType=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(A){return A==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.J.computeHideThumbnailAria=function(A){if(A==null?0:A.thumbnailOverlays)for(var t=0;t<A.thumbnailOverlays.length;t++){var f=void 0;if((f=A.thumbnailOverlays[t])==null?0:f.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
pM.prototype.onYtNavigate=pM.prototype.onYtNavigate;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],pM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],pM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],pM.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],pM.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],pM.prototype,"rtlBullet",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.H("design:type",String)],pM.prototype,"styleType",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.H("design:type",Number)],pM.prototype,"thumbnailWidth",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],pM.prototype,"modern",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.H("design:type",Boolean)],pM.prototype,"isCustomThumbnail",void 0);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Object]),_.H("design:returntype")],pM.prototype,"onYtNavigate",null);_.V([_.y_({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],pM);
_.Y(pM,"ytd-playlist-sidebar-primary-info-renderer",function(){if(qBr!==void 0)return qBr;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return qBr=A},{mode:1});var JVi;var EG=function(){return _.F.apply(this,arguments)||this};
_.R(EG,_.F);EG.prototype.computeOwnerVisibility=function(A){return!(!A.videoOwner&&!A.button)};
EG.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],EG.prototype,"data",void 0);_.V([_.y_({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],EG);
_.Y(EG,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(JVi!==void 0)return JVi;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return JVi=A},{mode:1});var Ucr;var nM=function(){var A=_.F.apply(this,arguments)||this;A.expanded=!1;A.isCompact=!1;return A};
_.R(nM,_.F);_.J=nM.prototype;_.J.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.J.dataChanged=function(){this.data&&_.eO(_.sF(this.text),_.tnE(_.Qkk,_.dF(this.data.text||null)))};
_.J.computeAutoScrollEnabled=function(A,t){return A&&!t};
_.J.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.J.toggleOnTap=function(){this.expanded=!this.expanded};
nM.prototype.expandedChanged=nM.prototype.expandedChanged;nM.prototype.dataChanged=nM.prototype.dataChanged;_.V([_.b(_.fHH),_.H("design:type",Object)],nM.prototype,"ytdAutoScrollBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],nM.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],nM.prototype,"expanded",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],nM.prototype,"isCompact",void 0);_.V([_.n({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.H("design:type",Boolean)],nM.prototype,"autoScrollEnabled",void 0);_.V([_.lo("#text"),_.H("design:type",Object)],nM.prototype,"text",void 0);_.V([_.lo("#expander-icon"),_.H("design:type",Object)],nM.prototype,"expanderIcon",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nM.prototype,"dataChanged",null);_.V([_.ev("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nM.prototype,"expandedChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],nM);
_.Y(nM,"ytd-channel-legal-info-renderer",function(){if(Ucr!==void 0)return Ucr;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Ucr=A},{mode:1});var eLx;var G_W=_.e5("DOWNLOAD",{},"Download"),lAb=_.e5("DOWNLOADING",{},"Downloading"),Nwb=_.e5("DOWNLOADED",{},"Downloaded"),D4=function(){var A=_.F.apply(this,arguments)||this;A.downloadProgress=0;A.isDownloadComplete=!1;A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.R(D4,_.F);_.J=D4.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var A;(A=this.data)!=null&&A.tooltip||(A=_.pZ(_.$I().getState(),this.playlistId),this.updateButtonState(A))};
_.J.computePlaylistId=function(A){return A};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(A){if(this.data&&(this.data.tooltip!==lAb||!_.PE(A))){this.isDownloadComplete=!1;switch(A){case "TRANSFER_STATE_UNKNOWN":A=G_W;var t="OFFLINE_DOWNLOAD";var f="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":A=Nwb;t="OFFLINE_PIN";f="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":A=lAb;t="OFFLINE_DOWNLOADING_ZERO";f="ACTION_REMOVE_WITH_PROMPT";
break;default:A=G_W,t="OFFLINE_DOWNLOAD",f="ACTION_ADD"}var X=Object.assign({},this.data);X.tooltip=A;X.accessibilityData={accessibilityData:{label:A}};X.icon={iconType:t};X.size="SIZE_DEFAULT";_.C(X.command,_.lj)&&(_.C(X.command,_.lj).action=f);this.set("data",X)}};
_.J.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var A="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?A="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?A="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?A="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?A="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?A="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(A="OFFLINE_PIN",this.isDownloadComplete=!0);var t;A!==((t=this.data.icon)==null?void 0:t.iconType)&&(t=Object.assign({},this.data),t.tooltip=lAb,t.accessibilityData={accessibilityData:{label:lAb}},t.icon={iconType:A},_.C(t.command,_.lj)&&(_.C(t.command,_.lj).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",t))}};
D4.prototype.updateProgress=D4.prototype.updateProgress;D4.prototype.onTransferStateChanged=D4.prototype.onTransferStateChanged;D4.prototype.dataChanged=D4.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],D4.prototype,"ytdReduxBehavior",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],D4.prototype,"forceIconButton",void 0);
_.V([_.n({value:!0}),_.H("design:type",Boolean)],D4.prototype,"forceIconOnly",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],D4.prototype,"overrides",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],D4.prototype,"buttonTooltipPosition",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],D4.prototype,"styleActionButton",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],D4.prototype,"disableTextTransform",void 0);
_.V([_.n({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.H("design:type",String)],D4.prototype,"playlistId",void 0);_.V([_.n(),_.H("design:type",Object)],D4.prototype,"data",void 0);_.V([_.n({selector:_.oag,selectorArgs:["playlistId"]}),_.H("design:type",Object)],D4.prototype,"downloadProgress",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],D4.prototype,"isDownloadComplete",void 0);
_.V([_.n({selector:_.pZ,selectorArgs:["playlistId"]}),_.H("design:type",String)],D4.prototype,"transferState",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],D4.prototype,"showTooltips",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],D4.prototype,"sendCommandWhenDisabled",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],D4.prototype,"disabled",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],D4.prototype,"dataChanged",null);_.V([_.PU("transferState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],D4.prototype,"onTransferStateChanged",null);_.V([_.PU("downloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],D4.prototype,"updateProgress",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],D4);
_.Y(D4,"ytd-download-playlist-button-renderer",function(){if(eLx!==void 0)return eLx;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return eLx=A},{mode:1});var u1W;_.Hn(_.bYE,"thumbnail-overlay-button-view-model",{props:{data:_.PS,lockupExperiments:_.PS}});var FJ=function(){var A=_.F.apply(this,arguments)||this;A.isSquare=!1;A.isVertical=!1;return A};
_.R(FJ,_.F);FJ.prototype.computeIsSquare=function(A){return A!=null&&A.thumbnail?SVF(A.thumbnail)==="SQUARE":!1};
FJ.prototype.computeIsVertical=function(A){return A!=null&&A.thumbnail?SVF(A.thumbnail)==="VERTICAL":!1};
FJ.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.H("design:type",Object)],FJ.prototype,"isSquare",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.H("design:type",Object)],FJ.prototype,"isVertical",void 0);
_.V([_.n(),_.H("design:type",Object)],FJ.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],FJ);
_.Y(FJ,"ytd-hero-playlist-thumbnail-renderer",function(){if(u1W!==void 0)return u1W;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return u1W=A},{mode:1});var Ic=function(){var A=_.F.apply(this,arguments)||this;A.isDarkTheme=!1;A.isUltraWide=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return A};
_.R(Ic,_.F);_.J=Ic.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.Px();var A;(A=_.Px().resolve(_.z7(_.sy)))!=null&&(A.headerElement=this.hostElement)};
_.J.detached=function(){var A;(A=_.Px().resolve(_.z7(_.sy)))!=null&&(A.headerElement=void 0)};
_.J.onUpdateHeader=function(A){(A=A.detail)&&this.set("data",A)};
_.J.computeTextDisplayed=function(A){if(A)return A.textDisplayed?A.textDisplayed:A.placeholder};
_.J.gradientColorToLinearGradientStop=function(A){var t=this.isDarkTheme?A.darkThemeColor:A.lightThemeColor;return t?_.bY(t)+" "+((A==null?void 0:A.startLocation)||0)*100+"%":"transparent"};
_.J.onWindowResize=function(){var A;((A=this.data)==null?0:A.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.J.onIronResize=function(A){this.isUltraWide=!A.detail.value};
_.J.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.J.onUpdatePlaylistName=function(A){var t=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},A.detail.value));_.us(this,function(){var f;(f=t.editableTitle)==null||f.resize()})};
_.J.onUpdatePlaylistDescription=function(A){var t=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},A.detail.value));_.us(this,function(){var f;(f=t.editableDescriptionInlineExpander)==null||f.resize()})};
_.J.getCinematicData=function(A){return _.C(A==null?void 0:A.cinematicContainer,_.ks)};
_.PV.Object.defineProperties(Ic.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 A,t=(A=this.getCinematicData(this.data))==null?void 0:A.config;return(A=this.isDarkTheme?t==null?void 0:t.darkThemeBackgroundColor:t==null?void 0:t.lightThemeBackgroundColor)?"background-color:"+_.mt(A)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var A;return _.C((A=this.data)==null?void 0:A.descriptionForm,ewb)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var A=this,t,f,X;return"background:linear-gradient(to bottom, "+(((X=(t=this.getCinematicData(this.data))==null?void 0:(f=t.gradientColorConfig)==null?void 0:f.map(function(Q){return A.gradientColorToLinearGradientStop(Q)}))==null?void 0:X.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var A;return _.dF((A=this.data)==null?void 0:A.descriptionTapText)}}});
Ic.prototype.onUpdateHeader=Ic.prototype.onUpdateHeader;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Ic.prototype,"actionHandlerBehavior",void 0);_.V([_.lo("#description-inline-expander"),_.H("design:type",Object)],Ic.prototype,"descriptionInlineExpander",void 0);
_.V([_.lo("#editable-description-inline-expander"),_.H("design:type",Object)],Ic.prototype,"editableDescriptionInlineExpander",void 0);_.V([_.n(),_.H("design:type",Object)],Ic.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Ic.prototype,"isUltraWide",void 0);_.V([_.lo("#editable-title-display"),_.H("design:type",Object)],Ic.prototype,"editableTitle",void 0);_.V([_.y("isUltraWide"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ic.prototype,"maxDescriptionLines",null);
_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ic.prototype,"noCinematicData",null);_.V([_.UQ("yt-new-playlist-header"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ic.prototype,"onUpdateHeader",null);_.V([_.y("data","isDarkTheme"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ic.prototype,"backgroundStyle",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ic.prototype,"descriptionFormData",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ic.prototype,"getDropdownTheme",null);_.V([_.y("data","isDarkTheme"),_.H("design:type",String),_.H("design:paramtypes",[])],Ic.prototype,"gradientStyle",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ic.prototype,"descriptionTapText",null);
_.V([_.y_({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Ic);
_.Y(Ic,"ytd-playlist-header-renderer",function(){if(teu!==void 0)return teu;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return teu=A},{mode:_.sQ("kevlar_poly_si_batch_j078")?1:2});var zLu;var PIf;var xe=function(){return _.F.apply(this,arguments)||this};
_.R(xe,_.F);xe.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],xe.prototype,"data",void 0);_.V([_.y_({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],xe);
_.Y(xe,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(PIf!==void 0)return PIf;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return PIf=A},{mode:1});var j8=function(){return _.F.apply(this,arguments)||this};
_.R(j8,_.F);
j8.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}}}}};
j8.prototype.computeUsePremiumShowStyle=function(A){if(!A||!A.items)return!1;for(var t=0;t<A.items.length;t++)if(_.C(A.items[t],Gv3)){var f=void 0;return((f=_.C(A.items[t],Gv3))==null?void 0:f.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],j8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],j8.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.H("design:type",Boolean)],j8.prototype,"usePremiumShowStyle",void 0);
_.V([_.y_({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],j8);
_.Y(j8,"ytd-playlist-sidebar-renderer",function(){if(zLu!==void 0)return zLu;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return zLu=A},{mode:1});var Twy;var iAi;var OAb=function(A,t,f,X,Q,q,e,G){this.minWidth=A;this.minHeight=t;this.recommendedWidth=f;this.recommendedHeight=X;this.JSC$22674_maxFileSize=Q;this.title=q;this.bannerGalleryTitle=e;this.channelId=G;this.picker_=null;A=_.UMx("yt-banner");t=A.addView;f=(new kGx("youtubebanner")).addUploadMetadata("silo_id","19");f.opts.ytMaxFileSize=this.JSC$22674_maxFileSize;X=this.recommendedHeight;f.opts.ytRecWidth=this.recommendedWidth;f.opts.ytRecHeight=X;t.call(A,f);A.addView(new _.DW);t=A.addView;f=new _.DW;
f.opts.type="ytbanner";t.call(A,f.JSC$10157_setLabel(this.bannerGalleryTitle));t=A.setTitle(this.title).setSize(1E3);t.urlParamMap_.set("thumbs","orig");f=this.minWidth;X=this.minHeight;if(isNaN(f)||isNaN(X))throw Error("gb`"+f+"`"+X);t.urlParamMap_.set("minSize",f+"x"+X);t.urlParamMap_.set("cropMode","ytcb");this.builder_=A};
OAb.prototype.open=function(){var A=this;return new _.yy(function(t,f){_.ZVf(A.builder_,function(X){X.action=="picked"?t(X):X.action=="cancel"&&f(Error("To"))});
A.picker_&&A.picker_.dispose();A.picker_=A.builder_.build();A.picker_.setVisible(!0)})};
OAb.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var cVW=function(A){this.channelId=A};
cVW.prototype.upload=function(A){var t="";A.viewToken&&(t=A.viewToken[2].type);var f=A.docs[0];A=f.crop;t={channel_id:this.channelId,fife_url:f.thumbnails[0].url,photo_id:f.id,is_gallery_image:t=="ytbanner"};A&&(t.crop_top=A.top,t.crop_right=A.right,t.crop_bottom=A.bottom,t.crop_left=A.left);return _.Otl("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:t})};var Ye=function(){var A=_.F.apply(this,arguments)||this;A.ariaLabel=null;return A};
_.R(Ye,_.F);_.J=Ye.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){this.picker&&this.picker.dispose()};
_.J.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.J.computeAriaLabel=function(A){return A};
_.J.onTap=function(){var A=this,t;if((t=this.data)==null||!t.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new OAb(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 f;(f=this.picker)==null||f.open().then(function(X){A.handleBannerPicked(X)},function(){})}};
_.J.handleBannerPicked=function(A){var t=this;this.uploader||(this.uploader=new cVW(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(A).then(function(f){t.handleBannerUploadSucceeded(f)},function(f){t.handleBannerUploadFailed(f)})};
_.J.handleBannerUploadSucceeded=function(A){A&&A.errors?this.handleBannerUploadFailed(A):(_.s9(this.hostElement,"yt-banner-updated",A),this.message=null)};
_.J.handleBannerUploadFailed=function(A){this.message=A&&A.errors&&A.errors.length?A.errors[0]:null};
Ye.prototype.dataChanged=Ye.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Ye.prototype,"componentBehavior",void 0);_.V([_.b(_.wO),_.H("design:type",Object)],Ye.prototype,"ironButtonState",void 0);_.V([_.n(),_.H("design:type",Object)],Ye.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.H("design:type",Object)],Ye.prototype,"ariaLabel",void 0);
_.V([_.n(),_.H("design:type",Object)],Ye.prototype,"message",void 0);_.V([_.n(),_.H("design:type",Object)],Ye.prototype,"picker",void 0);_.V([_.n(),_.H("design:type",Object)],Ye.prototype,"uploader",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ye.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Ye);
_.Y(Ye,"ytd-channel-banner-editor-renderer",function(){if(iAi!==void 0)return iAi;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return iAi=A},{mode:1});var Bwf;var Me3=_.dS(["#"]),Vr=function(){return _.F.apply(this,arguments)||this};
_.R(Vr,_.F);Vr.prototype.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A,!0)||_.eNg(Me3)};
Vr.prototype.dataChanged=function(){var A=this.data;A&&A.targetId&&_.Fwi(_.ZQ(),A.targetId,this.moreIcon)};
Vr.prototype.dataChanged=Vr.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Vr.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Vr.prototype,"data",void 0);_.V([_.lo("#more-icon"),_.H("design:type",Object)],Vr.prototype,"moreIcon",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vr.prototype,"dataChanged",null);
_.V([_.y_({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Vr);
_.Y(Vr,"ytd-channel-tagline-renderer",function(){if(Bwf!==void 0)return Bwf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Bwf=A},{mode:1});var CIu;var Z4=function(){return _.F.apply(this,arguments)||this};
_.R(Z4,_.F);_.J=Z4.prototype;_.J.ready=function(){var A=this;_.sF(this.hostElement).querySelector("#form").addEventListener("submit",function(t){A.onSubmit(t)})};
_.J.onDataChanged=function(){var A;((A=this.data)==null?0:A.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.J.onIconButtonKeydown=function(A){A.keyCode===13&&this.iconButton.click()};
_.J.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.J.openOnClickHandler=function(){this.input.focus()};
_.J.onSubmit=function(A){A.preventDefault();return!1};
_.J.submitOnEnterKeyUp=function(A){var t;if(A.keyCode===13&&((t=this.data)==null?0:t.expandedText)){A=this.data.endpoint;t=_.VG.unsafeClone(A);var f;((f=_.C(t==null?void 0:t.commandMetadata,_.Jl))==null?0:f.url)?(_.C(t.commandMetadata,_.Jl).url=_.kB(_.C(t.commandMetadata,_.Jl).url,"query",this.data.expandedText),_.C(t,_.GD)&&(_.C(t,_.GD).query=this.data.expandedText),_.s9(this.hostElement,"yt-navigate",{endpoint:t,tempData:{disableCache:!0}})):(f=new _.xj("Error: Trying to navigate to an endpoint without url",
A),_.HQ(f))}};
_.J.updateDataExpandedTextFromBinding=function(A){this.set("data.expandedText",A.detail.value)};
_.PV.Object.defineProperties(Z4.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Z4.prototype.onDataChanged=Z4.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.tv_),_.H("design:type",Object)],Z4.prototype,"ytdExpandableInputBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Z4.prototype,"data",void 0);_.V([_.lo("#input"),_.H("design:type",Object)],Z4.prototype,"input",void 0);_.V([_.lo("#icon-button"),_.H("design:type",HTMLElement)],Z4.prototype,"iconButton",void 0);
_.V([_.n(),_.H("design:type",String),_.H("design:paramtypes",[])],Z4.prototype,"searchIcon",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Z4.prototype,"onDataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Z4);
var $WF=_.wR()(Z4,"ytd-expandable-tab-renderer",function(){if(CIu===void 0){var A=document.createElement("template");_.m(A,'\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="[[searchIcon]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);CIu=A}A=CIu;return A},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var hLu;var oc=function(){var A=_.F.apply(this,arguments)||this;A.avatarSize=80;A.ariaLabel=_.e5("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return A};
_.R(oc,_.F);oc.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
oc.prototype.computeHref=function(A){var t;return((t=_.C(A,_.fV))==null?0:t.url)?this.componentBehavior.computeHref_(A):null};
oc.prototype.onTap=function(){var A,t;(A=this.data)==null||!A.editAvatarServiceEndpoint||((t=_.C(this.data.editAvatarServiceEndpoint,_.fV))==null?0:t.url)||_.Px().resolve(_.i2).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.V([_.b(_.wO),_.H("design:type",Object)],oc.prototype,"ironButtonState",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],oc.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],oc.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],oc.prototype,"avatarSize",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],oc.prototype,"ariaLabel",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],oc);
_.Y(oc,"ytd-channel-avatar-editor",function(){if(hLu!==void 0)return hLu;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return hLu=A},{mode:1});var RLb=_.I(function(A){var t=A.data;var f=A.noPadding;var X=A.enableBanner;var Q=A.cinematicContainerTopbarOffset;var q=A.allowCinematicContainerOverflow;var e=A.displayAsSidebar;A=A.className;_.oo(function(){t().tagManagerId&&(_.aF(t().tagManagerId,_.ah("GL")),s9f(t().tagManagerId))},"vUc8md");
var G=_.Nt(aH3,function(){return t().pageHeaderEntityKey});
return _.u("yt-page-header-renderer",{class:_.Ao("pageHeaderRendererHost",A)},_.u(_.P1,{data:function(){var N;return((N=G())==null?0:N.header)?G().header:(e==null?0:e())&&t().sidebarContent?t().sidebarContent:t().content}},{pageHeaderViewModel:function(N){return _.u(_.Gz8,{data:N.data,
noPadding:f,enableBanner:X,cinematicContainerTopbarOffset:Q,allowCinematicContainerOverflow:q,displayAsSidebar:function(){return(e==null?void 0:e())&&t().enableSidebarView}})}}))},"qn");
RLb.idomCompat=!0;_.Hn(RLb,"yt-page-header-renderer",{props:{data:_.PS,noPadding:_.PS,enableBanner:_.PS,cinematicContainerTopbarOffset:_.PS,allowCinematicContainerOverflow:_.PS,displayAsSidebar:_.PS,className:_.PS}});_.Hn(_.Os,"yt-image-banner-view-model",{props:{data:_.PS,isPositionRelative:_.PS}});_.Hn(_.vqw,"yt-tab-group-shape",{props:{shape:_.PS}});var mcW=_.Iv.persistentPanelVisibleSelector,dn=function(){var A=_.F.apply(this,arguments)||this;A.expandableCustomTabRenderable=function(t){return HOW(t,function(){return void A.onSearchNavigate()})};
A.isRichGrid=!1;A.isConstrainedList=!1;A.richGridMiniMode=!1;A.richGridStyle="RICH_GRID_STYLE_UNKNOWN";A.isRichGridShorts=!1;A.responsiveSizing="COMPACT";A.disableGridStateAware=!1;A.useRaf=!_.M("web_use_raf_app_header_layout_killswitch");A.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return A};
_.R(dn,_.F);_.J=dn.prototype;_.J.computeHeaderDisabled=function(A,t){return t||!A||this.tabsHidden};
_.J.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.J.computeIsRichGridShorts=function(A){return A==="RICH_GRID_STYLE_SHORTS_GRID"||A==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.J.computeImageBannerViewModel=function(){var A,t;return _.C((t=_.C((A=this.data)==null?void 0:A.content,_.Mk7))==null?void 0:t.banner,_.zXp)};
_.J.computeHasCinematicContainer=function(){var A,t;return!((t=_.C((A=this.data)==null?void 0:A.content,_.Mk7))==null||!t.background)};
_.J.handleHeaderResize=function(){var A=_.sF(this.hostElement).querySelector("#header");A&&_.s9(A,"iron-resize")};
_.J.handleInsertTabCommand=function(A){var t=_.C(A,Onb);t&&(t.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(f){return f.tabRenderer&&f.tabRenderer.tabIdentifier===t.tabIdentifier})||this.splice("tabs",t.tabIndex||-1,0,t.tab))};
_.J.handleRefreshChannelTabAction=function(A){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===A&&_.s9(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.J.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.J.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Q_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.J.observerRichGridSlimItemsPerRow=function(){_.Q_(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.J.updateCssVars=function(){this.richGridItemsPerRow&&_.Q_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.cx("rich_grid_max_item_width",500))+16)-16+"px"})};
_.J.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Q_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.J.onDataChanged=function(){this.handleHeaderResize()};
_.J.onWindowResize=function(){this.handleHeaderResize()};
_.J.onFocusedChanged=function(A){(A=_.oO(A))&&A.is==="tp-yt-paper-tab"&&A.hasRipple()&&(A.getRipple().holdDown=!A.pointerDown&&A.focused)};
_.J.updateSelectedFromBinding=function(A){this.ytdTabbedHeaderBehavior.selected=A.detail.value};
_.J.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.PV.Object.defineProperties(dn.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:gVx(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.imageBannerViewModel)==null?void 0:A.style)==="IMAGE_BANNER_STYLE_INSET"}}});
dn.prototype.onDataChanged=dn.prototype.onDataChanged;dn.prototype.updateCssVarsForResponsiveGrid=dn.prototype.updateCssVarsForResponsiveGrid;dn.prototype.updateCssVars=dn.prototype.updateCssVars;dn.prototype.observerRichGridSlimItemsPerRow=dn.prototype.observerRichGridSlimItemsPerRow;dn.prototype.observerRichGridItemsPerRow=dn.prototype.observerRichGridItemsPerRow;dn.prototype.persistentPanelVisibleChanged=dn.prototype.persistentPanelVisibleChanged;
_.V([_.b(_.GB),_.H("design:type",Object)],dn.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.b(c5u),_.H("design:type",Object)],dn.prototype,"ytdTabbedHeaderBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],dn.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],dn.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],dn.prototype,"ytdReduxBehavior",void 0);_.V([_.lo("#tabs"),_.H("design:type",Object)],dn.prototype,"tabsElement",void 0);_.V([_.n(),_.H("design:type",Array)],dn.prototype,"tabs",void 0);_.V([_.n(),_.H("design:type",Object)],dn.prototype,"expandableCustomTabRenderable",void 0);
_.V([_.y("tabs.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],dn.prototype,"tabGroupShape",null);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dn.prototype,"isRichGrid",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dn.prototype,"isConstrainedList",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Object)],dn.prototype,"richGridMiniMode",void 0);_.V([_.n({selector:function(A){return A.ui.richGridStyle}}),
_.H("design:type",Object)],dn.prototype,"richGridStyle",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.H("design:type",Object)],dn.prototype,"isRichGridShorts",void 0);_.V([_.n({selector:_.b$}),_.H("design:type",Number)],dn.prototype,"richGridItemsPerRow",void 0);_.V([_.n({selector:function(A){return A.ui.richGridContainerWidth}}),
_.H("design:type",Number)],dn.prototype,"richGridContainerWidth",void 0);_.V([_.n({selector:_.ya5}),_.H("design:type",Number)],dn.prototype,"richGridSlimItemsPerRow",void 0);_.V([_.n(),_.H("design:type",Object)],dn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dn.prototype,"responsiveSizing",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],dn.prototype,"disableGridStateAware",void 0);
_.V([_.n({computed:"computeImageBannerViewModel(data)"}),_.H("design:type",Object)],dn.prototype,"imageBannerViewModel",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.H("design:type",Boolean)],dn.prototype,"hasCinematicContainer",void 0);_.V([_.n({selector:_.Zpw,reflectToAttribute:!0}),_.H("design:type",Boolean)],dn.prototype,"guideIsVisibleButNotPersistent",void 0);
_.V([_.n({selector:mcW}),_.H("design:type",Boolean)],dn.prototype,"persistentPanelVisible",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("imageBannerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],dn.prototype,"hasBanner",null);_.V([_.n({reflectToAttribute:!0}),_.y("imageBannerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],dn.prototype,"hasInsetBanner",null);_.V([_.n(),_.H("design:type",Object)],dn.prototype,"useRaf",void 0);
_.V([_.n({computed:"computeTabsHidden(tabs)",value:!0}),_.H("design:type",Boolean)],dn.prototype,"tabsHidden",void 0);_.V([_.ev("persistentPanelVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dn.prototype,"persistentPanelVisibleChanged",null);_.V([_.ev("richGridItemsPerRow","isRichGrid"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dn.prototype,"observerRichGridItemsPerRow",null);
_.V([_.ev("richGridSlimItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dn.prototype,"observerRichGridSlimItemsPerRow",null);_.V([_.ev("richGridItemsPerRow","richGridMiniMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dn.prototype,"updateCssVars",null);
_.V([_.ev("richGridContainerWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dn.prototype,"updateCssVarsForResponsiveGrid",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dn.prototype,"onDataChanged",null);_.V([_.y_({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],dn);
_.Y(dn,"ytd-tabbed-page-header",function(){if(Twy!==void 0)return Twy;var A=document.createElement("template");_.m(A,'\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 use-raf="[[useRaf]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Twy=A},{mode:1});var bAf;var S8=function(){return _.F.apply(this,arguments)||this};
_.R(S8,_.F);S8.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Q_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.PV.Object.defineProperties(S8.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var A,t;return this.componentBehavior.computeIcon_(((t=_.C((A=this.data)==null?void 0:A.badge,_.y2k))==null?void 0:t.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=_.C((A=this.data)==null?void 0:A.badge,_.y2k))==null?void 0:t.label}}});
S8.prototype.observerRichGridItemsPerRow=S8.prototype.observerRichGridItemsPerRow;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],S8.prototype,"componentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],S8.prototype,"ytdReduxBehavior",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.mv}),_.H("design:type",Boolean)],S8.prototype,"richGridMiniMode",void 0);
_.V([_.n({selector:_.b$}),_.H("design:type",Number)],S8.prototype,"richGridItemsPerRow",void 0);_.V([_.n(),_.H("design:type",Object)],S8.prototype,"data",void 0);_.V([_.ev("richGridItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],S8.prototype,"observerRichGridItemsPerRow",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],S8.prototype,"badgeIconName",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],S8.prototype,"badgeLabel",null);_.V([_.y_({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],S8);
_.Y(S8,"ytd-member-hub-profile-renderer",function(){if(bAf!==void 0)return bAf;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return bAf=A},{mode:1});var W73;var $e=function(){return _.F.apply(this,arguments)||this};
_.R($e,_.F);$e.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$e.prototype,"data",void 0);_.V([_.y_({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],$e);
_.Y($e,"ytd-settings-sidebar-renderer",function(){if(W73!==void 0)return W73;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return W73=A},{mode:1});var yVb;var HG=function(){var A=_.F.apply(this,arguments)||this;A.expandableCustomTabRenderable=function(t){return HOW(t,function(){return void A.onSearchNavigate()})};
return A};
_.R(HG,_.F);HG.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
HG.prototype.onSearchNavigate=function(){this.selected=void 0};
HG.prototype.onTabsChange=function(){var A,t=(A=this.tabs)==null?void 0:A.findIndex(function(f){var X;return f==null?void 0:(X=f.tabRenderer)==null?void 0:X.selected});
t!==void 0&&(this.selected=t)};
HG.prototype.onTabsActive=function(A){if(this.tabs!==void 0){var t,f;(A=(t=this.tabs[A.detail.selected])==null?void 0:(f=t.tabRenderer)==null?void 0:f.endpoint)&&_.s9(this.hostElement,"yt-navigate",{endpoint:A})}};
_.PV.Object.defineProperties(HG.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:gVx(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
HG.prototype.onTabsChange=HG.prototype.onTabsChange;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],HG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.GB),_.H("design:type",Object)],HG.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],HG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],HG.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Array)],HG.prototype,"tabs",void 0);_.V([_.n(),_.H("design:type",Number)],HG.prototype,"selected",void 0);_.V([_.y("tabs.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],HG.prototype,"tabGroupShape",null);_.V([_.n(),_.H("design:type",Object)],HG.prototype,"expandableCustomTabRenderable",void 0);
_.V([_.y("tabs"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HG.prototype,"tabsEnabled",null);_.V([_.PU("tabs"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HG.prototype,"onTabsChange",null);_.V([_.y_({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],HG);
_.Y(HG,"ytd-topic-channel-details-renderer",function(){if(yVb!==void 0)return yVb;var A=document.createElement("template");_.m(A,'\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        <template is="dom-if" if="[[tabGroupShape]]" 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        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return yVb=A},{mode:1});var vCQ;var ac=function(){var A=_.F.apply(this,arguments)||this;A.disableGridStateAware=!1;return A};
_.R(ac,_.F);ac.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]]"}}}}}};
ac.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
ac.prototype.updateCssVars=function(){_.Q_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.cx("rich_grid_max_item_width",500))+16)-16+"px"})};
ac.prototype.updateCssVars=ac.prototype.updateCssVars;ac.prototype.activeChanged=ac.prototype.activeChanged;_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],ac.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],ac.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ac.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Array)],ac.prototype,"tabs",void 0);_.V([_.n(),_.H("design:type",Boolean)],ac.prototype,"active",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],ac.prototype,"disableGridStateAware",void 0);
_.V([_.n({selector:_.b$}),_.H("design:type",Number)],ac.prototype,"richGridItemsPerRow",void 0);_.V([_.n({selector:_.mv}),_.H("design:type",Boolean)],ac.prototype,"richGridMiniMode",void 0);_.V([_.lo("ytd-carousel-item-renderer"),_.H("design:type",Object)],ac.prototype,"carousel",void 0);_.V([_.ev("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ac.prototype,"activeChanged",null);
_.V([_.ev("richGridItemsPerRow","richGridMiniMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ac.prototype,"updateCssVars",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],ac);
_.Y(ac,"ytd-carousel-header-renderer",function(){if(vCQ!==void 0)return vCQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return vCQ=A},{mode:1});var L7r;var pff=_.dS(["https://www.google-analytics.com/analytics.js"]),KM=function(){var A=_.F.apply(this,arguments)||this;A.scriptAnalyticsAdded=!1;return A};
_.R(KM,_.F);KM.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var A,t=(A=this.data)==null?void 0:A.tagManagerId;t&&(_.aF(t,_.ah("GL")),s9f(t))};
KM.prototype.sendGoogleAnalyticsPageview=function(A){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var f=_.Hu.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(f)};
var t=window.ga;t("set","page",window.location.pathname);t.l=+new Date;t("set","forceSSL",!0);t("create",A,"'auto'");t("send","pageview")};
KM.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var A=_.yT("SCRIPT");A.name="ga-analytics";var t=_.OP(pff);_.UV(A,t);A.async=!0;_.sF(this.hostElement).appendChild(A)};
KM.prototype.dataChanged=KM.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],KM.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KM.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],KM);
_.Y(KM,"ytd-channel-metadata-renderer",function(){if(L7r!==void 0)return L7r;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return L7r=A},{mode:1});var ECi;var nCi;var gn=function(){var A=_.F.apply(this,arguments)||this;A.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"]);A.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"]);A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return A};
_.R(gn,_.F);_.J=gn.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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_]]"}}}}}};
_.J.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
_.J.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.computeAlertStyle_=function(A){return A};
_.J.observerElementsPerRow=function(){this.elementsPerRow&&_.Q_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.J.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.J.requestElementsPerRow=function(){_.s9(this.hostElement,"yt-request-elements-per-row")};
gn.prototype.onIsVisibleChanged_=gn.prototype.onIsVisibleChanged_;gn.prototype.observerElementsPerRow=gn.prototype.observerElementsPerRow;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],gn.prototype,"actionHandlerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],gn.prototype,"data",void 0);_.V([_.n({value:6,reflectToAttribute:!0}),_.H("design:type",Number)],gn.prototype,"elementsPerRow",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],gn.prototype,"wrapButtons",void 0);_.V([_.n({value:_.ah("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.H("design:type",Boolean)],gn.prototype,"isMusic",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.H("design:type",String)],gn.prototype,"alertStyle",void 0);_.V([_.n({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.H("design:type",Function)],gn.prototype,"dismissBoundButtonTap_",void 0);_.V([_.n({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.H("design:type",Function)],gn.prototype,"acceptBoundButtonTap_",void 0);_.V([_.ev("elementsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gn.prototype,"observerElementsPerRow",null);_.V([_.ev("data.isVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gn.prototype,"onIsVisibleChanged_",null);_.V([_.WU({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],gn);
_.Y(gn,"yt-alert-with-actions-renderer",function(){if(nCi===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;ECi===void 0&&(ECi=document.createElement("template"));var X=ECi;f.call(t,X.content.cloneNode(!0),A.content.firstChild);nCi=A}A=nCi;return A},{mode:2});var DcF=_.I(function(A){var t={};return _.u(_.zL,{text:A.text,className:_.Ao("ytPersonalGreetingViewModelHeadline",(t.ytPersonalGreetingViewModelHeadlineSmall=A.isSmallHeadline,t))})},"sn");_.Hn(_.I(function(A){var t=_.W1(function(){var c;return(c=A.data())==null?void 0:c.rendererContext},void 0,void 0,void 0,!0),f=function(){return A.data().canvasPromoData},X=function(){var c;
return(c=A.data().bannerHeight)!=null?c:56},Q=_.U(_.P$({throttleMs:100})),q=Q.next().value;
Q=Q.next().value;var e=_.U(_.P$({throttleMs:100})),G=e.next().value;e=e.next().value;var N=_.U(_.P$({throttleMs:100})),z=N.next().value;N=N.next().value;var T=function(){return G.width()-q.width()>1},O=function(){return X()===48};
return _.u("yt-personal-greeting-view-model",{el:_.ZY(t,Q),"aria-hidden":T,class:_.Ao(A.className,"ytPersonalGreetingViewModelHost"),style:_.U7({height:(0,_.lq)(function(){return T()?0:X()})})},_.u(_.P,{cond:function(){return A.data().avatar&&!(z.width()+(A.data().avatar?48:0)-q.width()>1)},
then:function(){return _.u(_.P1,{data:function(){return A.data().avatar}},{decoratedAvatarViewModel:function(c){return _.u(_.qM,{data:c.data,
className:_.Ao("ytPersonalGreetingViewModelAvatar")})}})}}),_.u("h1",null,_.u(DcF,{text:function(){var c;
return(f==null?void 0:(c=f())==null?void 0:c.headline)||(z.width()+(A.data().avatar?48:0)-q.width()>1?A.data().shorterGreeting:A.data().greeting)},
isSmallHeadline:O})),_.u("span",{el:_.ZY(N),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.u(DcF,{text:function(){return A.data().greeting},
isSmallHeadline:O})),_.u("span",{el:_.ZY(e),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.u(DcF,{text:function(){return A.data().shorterGreeting},
isSmallHeadline:O})))},"rn"),"yt-personal-greeting-view-model",{props:{data:_.PS,
className:_.PS}});var wn=function(){var A=_.F.apply(this,arguments)||this;A.hidden=!1;A.isConstrainedList=!1;A.responsiveSizing="COMPACT";A.attachedPlayers=_.M("kevlar_channel_trailer_multi_attach")?[]:void 0;A.player=null;A.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return A};
_.R(wn,_.F);_.J=wn.prototype;
_.J.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}}}}};
_.J.created=function(){var A=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){A.disposeMastheadAd()}]};
_.J.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new CUl(this.refresh,this.contents))};
_.J.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.J.activeChanged=function(){var A=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=A)};
_.J.tabsChanged=function(){var A=this,t,f;if(this.pageSubtype==="channels"||_.M("kevlar_tab_gestures_for_tabbed_header_data")&&((t=this.data)==null?0:(f=t.header)==null?0:f.carouselHeaderRenderer))this.tabGestures=new mwW(this.contents,this.contents,this.hostElement,this.header,function(e){A.ytdReduxBehavior.dispatch(e)});
var X,Q,q;t=(X=this.data)==null?void 0:(Q=X.contents)==null?void 0:(q=Q.twoColumnBrowseResultsRenderer)==null?void 0:q.tabs;this.tabGestures&&this.tabGestures.tabsChanged(t)};
_.J.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.J.engagementPanelsChanged=function(){var A=_.Px().resolve(_.rA);if(A){if(this.engagementPanels)for(var t=_.U(this.engagementPanels),f=t.next();!f.done;f=t.next()){var X=void 0;(f=(X=f.value.identifier)==null?void 0:X.tag)&&A.panelMap.delete(f)}this.engagementPanels=[];var Q;t=_.U(((Q=this.data)==null?void 0:Q.panels)||[]);for(Q=t.next();!Q.done;Q=t.next()){Q=_.C(Q.value,_.glx);var q=f=void 0,e=void 0,G=void 0;if(X=((f=Q)==null?void 0:f.targetId)||((q=Q)==null?void 0:q.panelIdentifier)||((e=Q)==
null?void 0:(G=e.identifier)==null?void 0:G.tag))q=f=void 0,(q=(f=A).registerPanelContent)==null||q.call(f,X,{engagementPanelSectionListRenderer:Q}),this.engagementPanels.push(Q)}}};
_.J.onStampFinished=function(){var A=this;_.us(this,function(){if(A.tabGestures){var t=A.tabGestures;if(t.scrollPositionNeedsUpdate){var f=_.Px().resolve(_.z7(_.HO)),X;if((X=t.selectedTab)!=null&&X.title&&f&&(X=f.getCurrentPage())){if(t.scrollPositionForTabs.has(t.selectedTab.title)){var Q,q;f=(q=(Q=f.getCurrentPage())==null?void 0:Q.clientHeight)!=null?q:0;Q=t.scrollPositionForTabs.get(t.selectedTab.title);X.setScrollTop(Q);f>Q+100&&(t.scrollPositionNeedsUpdate=!1)}else X.setScrollTop(Math.min(t.lastVisitedTabScrollPosition!==
void 0?t.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,t.tabsStartAtInPx)),t.scrollPositionNeedsUpdate=!1;t.ytdReduxDispatch(wCr(!1))}}}})};
_.J.loadPage_=function(A){this.initCsi();A&&(this.data=A);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.J.getTitle=function(A){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",A))return this.get("microformat.microformatDataRenderer.title",A);if(this.get("header.feedTabbedHeaderRenderer.title",A))return _.dF(this.get("header.feedTabbedHeaderRenderer.title",A));if(this.get("header.interactiveTabbedHeaderRenderer.title",A))return this.get("header.interactiveTabbedHeaderRenderer.title",A);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
A))return _.dF(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",A));var t,f;return(A==null?0:(t=A.header)==null?0:(f=t.pageHeaderRenderer)==null?0:f.pageTitle)?A.header.pageHeaderRenderer.pageTitle:""};
_.J.updateTitle=function(A){_.s9(this.hostElement,"yt-update-title",this.getTitle(A))};
_.J.initCsi=function(){_.oVl(this.pageSubtype||"browse",["ol","cpt"])};
_.J.getPlayer=function(){if(_.M("kevlar_channel_trailer_multi_attach")){for(var A=_.U(this.attachedPlayers),t=A.next();!t.done;t=A.next())if(t=t.value,t.isConnected||_.gw(this.hostElement,t))return t;return null}return this.player};
_.J.getPlayerContainer=function(){return null};
_.J.onPlayerAttached=function(A,t){_.M("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(t):this.player=t};
_.J.onPlayerDetached=function(A,t){_.M("kevlar_channel_trailer_multi_attach")?(A=this.attachedPlayers.indexOf(t),A<0||this.attachedPlayers.splice(A,1)):this.player=null};
_.J.getServiceTrackingParams=function(){var A,t;return((A=this.data)==null?void 0:(t=A.responseContext)==null?void 0:t.serviceTrackingParams)||[]};
_.J.setMastheadAd=function(A){A&&A.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=A&&A.mastheadAd};
_.J.dataChanged=function(){var A=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.nVW();_.us(this,function(){_.r2(A.hostElement,"ytd-update-grid-state-action")})};
_.J.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.J.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var A=this.data.alerts;return A&&A.find(function(t){return!!t.alertWithActionsRenderer})}};
_.J.computeGreetingData=function(){if(this.data&&this.data.alerts){var A=this.data.alerts;return A&&A.find(function(t){return!!t.personalGreetingViewModel})}};
_.J.computeHasMemberHubProfileRenderer=function(A){var t;return!!(A==null?0:(t=A.header)==null?0:t.memberHubProfileRenderer)};
_.J.handleAlertCommand=function(A){this.get("alertCommand.alert.alertWithActionsRenderer",A)&&(A=_.C(A,J5H),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",A.alert))};
_.J.handleYtPlaylistDeletionRedirect=function(A){A=this.get("playlistDeletionRedirectCommand.redirectEndpoint",A);_.s9(this.hostElement,"yt-navigate",{endpoint:A})};
_.J.computeFluidWidth=function(A,t,f){if(t==="mini_app"||f)return!0;var X,Q,q;A=A==null?void 0:(X=A.contents)==null?void 0:(Q=X.twoColumnBrowseResultsRenderer)==null?void 0:(q=Q.tabs)==null?void 0:q.find(function(N){var z;return N==null?void 0:(z=N.tabRenderer)==null?void 0:z.selected});
if(!A)return!1;var e,G;return!!((e=A.tabRenderer)==null?0:(G=e.content)==null?0:G.richGridRenderer)&&!["channel","channels","playables"].includes(t)};
_.J.computeHeaderFluidWidth=function(A){return A==="hashtag-landing-page"};
_.J.computeHasSidebar=function(A){var t;return!!(A.sidebar||((t=A.header)==null?0:t.playlistHeaderRenderer))};
_.J.computeHasPageHeaderSidebar=function(A){var t,f;return!!((t=A.header)==null?0:(f=t.pageHeaderRenderer)==null?0:f.enableSidebarView)};
_.J.computeUseUnifiedShowPageLayout=function(A){if(!A||this.pageSubtype!=="show"||!A.sidebar||!A.sidebar.playlistSidebarRenderer)return!1;A=A.sidebar.playlistSidebarRenderer;if(!A.items)return!1;for(var t=0;t<A.items.length;t++)if(_.C(A.items[t],Gv3)){var f=void 0;return((f=_.C(A.items[t],Gv3))==null?void 0:f.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.J.computeIsConstrainedList=function(A){return _.M("web_enable_constrained_list_subscriptions_channels")&&A==="subscriptions-channels"};
_.J.computeResponsiveSizing=function(A){return A==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.PV.Object.defineProperties(wn.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var A,t;return((A=this.data)==null?0:(t=A.header)==null?0:t.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var A,t;if(!((A=this.data)==null?0:(t=A.sidebar)==null?0:t.playlistSidebarRenderer))return!1;var f;return(f=this.data)!=null&&f.header?!1:!0}}});
_.PV.Object.defineProperties(wn,{template:{configurable:!0,enumerable:!0,get:function(){if(bnl===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);bnl=A}A=bnl;return A}}});
wn.prototype.dataChanged=wn.prototype.dataChanged;wn.prototype.onPlayerDetached=wn.prototype.onPlayerDetached;wn.prototype.onPlayerAttached=wn.prototype.onPlayerAttached;wn.prototype.onStampFinished=wn.prototype.onStampFinished;wn.prototype.engagementPanelsChanged=wn.prototype.engagementPanelsChanged;wn.prototype.scrollAtTopChanged=wn.prototype.scrollAtTopChanged;wn.prototype.tabsChanged=wn.prototype.tabsChanged;wn.prototype.activeChanged=wn.prototype.activeChanged;
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],wn.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],wn.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],wn.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.t$.YtPageBehavior),_.H("design:type",Object)],wn.prototype,"ytPageBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],wn.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],wn.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wn.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],wn.prototype,"hidden",void 0);
_.V([_.n(),_.H("design:type",Object)],wn.prototype,"mastheadAdData",void 0);_.V([_.n({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.H("design:type",Object)],wn.prototype,"alertBannerData",void 0);_.V([_.n({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.H("design:type",Object)],wn.prototype,"greetingData",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],wn.prototype,"pageSubtype",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.H("design:type",Boolean)],wn.prototype,"hasMemberHubProfileRenderer",void 0);_.V([_.n({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],wn.prototype,"hasSidebar",void 0);_.V([_.n({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],wn.prototype,"hasPageHeaderSidebar",void 0);
_.V([_.n({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],wn.prototype,"roundedContainer",void 0);_.V([_.n({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],wn.prototype,"useUnifiedShowPageLayout",void 0);_.V([_.n({computed:"computeIsConstrainedList(pageSubtype)"}),_.H("design:type",Object)],wn.prototype,"isConstrainedList",void 0);
_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wn.prototype,"usePlaylistHeaderRenderer",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wn.prototype,"useOldPlaylistSidebarRenderer",null);_.V([_.n({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.H("design:type",Boolean)],wn.prototype,"fluidWidth",void 0);_.V([_.n({selector:function(A){return A.ui.scrollAtTop}}),
_.H("design:type",Boolean)],wn.prototype,"scrollAtTop",void 0);_.V([_.n({selector:_.oOy}),_.H("design:type",Boolean)],wn.prototype,"tabGesturesIsActive",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.H("design:type",Boolean)],wn.prototype,"disableHeaderFluidWidth",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.H("design:type",String)],wn.prototype,"responsiveSizing",void 0);
_.V([_.lo("ytd-two-column-browse-results-renderer"),_.H("design:type",HTMLElement)],wn.prototype,"contents",void 0);_.V([_.lo("#header"),_.H("design:type",HTMLElement)],wn.prototype,"header",void 0);_.V([_.lo("ytd-refresh"),_.H("design:type",Object)],wn.prototype,"refresh",void 0);_.V([_.ev("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wn.prototype,"activeChanged",null);
_.V([_.ev("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wn.prototype,"tabsChanged",null);_.V([_.ev("scrollAtTop"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wn.prototype,"scrollAtTopChanged",null);_.V([_.n(),_.H("design:type",Object)],wn.prototype,"engagementPanels",void 0);
_.V([_.ev("data.panels"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wn.prototype,"engagementPanelsChanged",null);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wn.prototype,"onStampFinished",null);_.V([_.UQ("yt-player-attached"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Element]),_.H("design:returntype")],wn.prototype,"onPlayerAttached",null);
_.V([_.UQ("yt-player-detached"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Element]),_.H("design:returntype")],wn.prototype,"onPlayerDetached",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wn.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-browse"})],wn);_.JB.registerService(_.zuu,wn);
_.dw();
}catch(e){_._DumpException(e)}
try{
_.oy("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 Rm,A7y,trl,fY8,Xnl,Q8y,qX3,J7d,Uxh,epA,GVd,lY8,Nt3,uH3,PPc,Tt_,OIh,c7d,Btd,CP2,hp3,Rpj,mxh,mA,WG_,bF,y7_,vAh,LGc,pny,EAl,IY_,j8m,FGy,zp_,YX3,Vr3,ZIA,oAw,dxd,SX2,$x8,KGw,gAd,kV8,r78,tlc,XOQ,QMj,q7Q,UIA,G6m,lnw,Nem,uRd,znw,Pmj,TeQ,i1_,O1_,coA,Be3,Ml8,Rn_,mIQ,b1Q,Wf3,yow,vE8,Lfy,pOd,nE2,DIc,Ffl,Inl,xIA,jM8,Y7d,Vlj,Z1h,oE_,dIy,S7h,$I3,H1l,and,Kf3,gE2,wOA,sMm,k62,rod,AEd,tLy,fBj,vv,X1d,Qv_,Gaj,cEd,hq8,Rqm,vu3,p1d,yEm,bWA,jv3,ZW3,aB3,mty,dtc,Yn3,LLm,gul,ka_,tM8,rE3,A0h,fdQ,J0l,QJ2,Ua8,eyh,qj8,X$m,Gq3,
nC,TPj,i8j,O83,Dp,c0Q,BP3,MMd,W0c,y08,Fr,Im,L0_,vYh,p$j,EYc,nYl,Dad,xX,oY3,jg,daw,Sjj,$ad,YX,sJ8,adc,w$Q,kq3,K0d,Au3,gYA,XFw,tt2,fSc,QGA,Juy,quh,lS_,Pgy,dp,Sg,utm,isA,zWc,TS2,$X,am,KC,gp,Yu8,v5d,o52,dB8,Suy,$B_,aS3,RWd,mBQ,kX,W_l,wp,sM,yu_,Hs8,Vtd,bsw,AC,q1j,U1d,eSh,JJc,t73,lrm,zSm,rud,sG_,kF2,idw,AJ_,X7,uGQ,frl,NVc,QD3,wFA,Xz8,cJA,BVj,M7w,hSc,m1j,bdh,Wa2,yJ3,Lay,vph,Ep3,npm,Fa3,IrQ,jDm,Y1j,V73,Zdd,opj,d1m,S13,Hdy,$1l,ary,wzd,sD_,JC,kR3,rJQ,A1c,tqw,fC2,XIA,Q12,qL2,J1A,UF8,eIw,lCj,NUj,uyd,zId,i3A,
c1l,BUd,CzA,Mq3,hIy,RI3,mFd,W9A,y18,v63,L9y,pIm,E6_,n68,DFy,F9j,IC8,xFy,Z3_,o62,YLh,Vq3,j1_,dFh,H3l,SLh,$Fm,g6j,aCh,K9d,wIc,s1d,kKy,r1d,t$Q,fXm,X_3,qY3,JU3,eiw,lXd,uZQ,P63,i_Q,cUQ,M$A,hid,b_l,yUQ,vg2,Lkl,EgQ,p_d,DU_,Fkh,IXc,xUh,eE,jbm,YYd,V$h,kWc,AH3,tQ_,qEy,NS,JHd,U3w,e0l,lWw,GYc,Nzd,uoA,z0d,PRQ,Tzd,qn_,iLy,OLw,zil,cHh,Bz_,fnh,MQ2,CR_,h0A,R0d,m32,bL3;
Rm=function(A){if(!A)return"browse";var t=A.page,f=A.url,X,Q,q,e=(X=A.response)==null?void 0:(Q=X.responseContext)==null?void 0:(q=Q.webResponseContextExtensionData)==null?void 0:q.pageTheme;if(e)t=e.toLowerCase().replace(/_/g,"-");else if(t!=="watch"&&t!=="learning_journey_watch"){var G,N;if((t==="browse"||t==="settings")&&((G=A.response)==null?0:(N=G.sidebar)==null?0:N.settingsSidebarRenderer))t="WEB_PAGE_TYPE_SETTINGS";else{var z,T;t==="browse"&&((z=A.response)==null?0:(T=z.metadata)==null?0:T.channelMetadataRenderer)?
t="channel":f&&(t=_.tXT(f)||t)}}return t};
A7y=function(){return new Promise(function(A){var t=window;t.attmp!==void 0?A(t.attmp):(t.attmq===void 0&&(t.attmq=[]),t.attmq.push(function(f){A(f)}))})};
trl=function(){var A=_.Ae("yt.aba.att");return A?A:_.o2.instance!==void 0?_.o2.instance.eZh.bind(_.o2.instance):null};
fY8=function(A,t){var f,X;return _.l(function(Q){return Q.nextAddress==1?_.M("attmusi")&&_.M("attmusi_ue")?Q.yield(A7y(),3):Q.jumpTo(2):Q.nextAddress!=2?(f=Q.yieldResult,Q.return(f.s(A,t,6E4))):(X=trl())?Q.return(X(A,t,6E4)):Q.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
Xnl=function(A,t,f,X,Q){t=t===void 0?[]:t;Q=Q?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Q}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.w0(A),dialogMessages:t.map(function(q){return _.w0(q)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.w0(f),serviceEndpoint:Q}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.w0(X)}}}}}};
Q8y=function(A,t,f){f=f===void 0?!1:f;var X=_.$z(),Q=!!_.cR().queueProxy,q,e,G;A=A==null?void 0:(q=A.response)==null?void 0:(e=q.currentVideoEndpoint)==null?void 0:(G=e.watchEndpoint)==null?void 0:G.playlistId;if((Q||A)&&!_.M("web_watch_disable_playlist_auto_miniplayer"))return f&&(X.playlistWatchPageActivation=!0),!0;switch(Rm(t)){case "yts-products":return f&&(X.productDetailsPageActivation=!0),!0;case "mini_app":return f&&(X.miniAppPageActivation=!0),!0;case "playables":return f&&(X.playablesDestPageActivation=
!0),!0;case "companion-canvas":return f&&(X.companionCanvasActivation=!0),!0;default:return!1}};
qX3=function(A){A=_.Ul0(A);A.length>0&&A[0].focus()};
J7d=function(A,t,f){for(var X=typeof A==="string"?A.split(""):A,Q=A.length-1;Q>=0;--Q)Q in X&&t.call(f,X[Q],Q,A)};
Uxh=function(A,t){t=_.vqg(A,t);t>=0&&_.Eqb(A,t)};
epA=function(A){return Array.prototype.concat.apply([],arguments)};
GVd=function(A){var t=0;t=t===void 0?0:t;if(!_.t_(A))throw _.kq("uint64");var f=typeof A;switch(t){case 512:switch(f){case "string":return _.E8z(A);case "bigint":return String((0,_.TQ)(64,A));default:return _.Llq(A)}case 1024:switch(f){case "string":return _.n8q(A);case "bigint":return _.x8((0,_.TQ)(64,A));default:return _.pTb(A)}case 0:switch(f){case "string":return _.E8z(A);case "bigint":return _.x8((0,_.TQ)(64,A));default:return _.v8p(A)}default:return _.ap(t,"Unknown format requested type for int64")}};
lY8=function(A,t,f){if(t)return _.iy(A);var X;return(X=_.Cw(A))!=null?X:f?"":void 0};
Nt3=function(A){A!=null&&(A=A.JSC$8903_value_||"",A=typeof A==="string"?A:new Uint8Array(A));return A};
uH3=function(A,t){if(/-[a-z]/.test(t))return null;if(_.OAC&&A.dataset){if(_.Bsg()&&!(t in A.dataset))return null;A=A.dataset[t];return A===void 0?null:A}return A.getAttribute("data-"+_.ea(t))};
PPc=function(){var A=zp_;_.Ae("yt.ads.biscotti.getId_")||_.zm("yt.ads.biscotti.getId_",A)};
Tt_=function(A){_.zm("yt.ads.biscotti.lastId_",A)};
OIh=function(){var A={};for(_.di=new iIw(A.handleError===void 0?_.ai:A.handleError,A.logEvent===void 0?_.SY:A.logEvent);_.SJ.length>0;)switch(A=_.SJ.shift(),A.type){case "ERROR":_.di.logError(A.payload);break;case "EVENT":_.di.logEvent(A.eventType,A.payload)}};
c7d=function(A,t,f){return _.e$u(function(X){return f?X.userIdentifier!==void 0&&!A.includes(X.userIdentifier)&&f.includes(X.publicName):X.userIdentifier!==void 0&&!A.includes(X.userIdentifier)},t)};
Btd=function(A){var t,f;return _.l(function(X){if(X.nextAddress==1)return t=_.F_("YtIdbMeta hasAnyMeta other"),X.yield(_.e$u(function(Q){return Q.userIdentifier!==void 0&&Q.userIdentifier!==t},A),2);
f=X.yieldResult;return X.return(f.length>0)})};
CP2=function(A,t){Mrd||(Mrd=_.a6.addLowPriorityJob(function(){var f,X,Q,q,e;return _.l(function(G){switch(G.nextAddress){case 1:return G.yield(_.PD(),2);case 2:f=G.yieldResult;if(!f)return G.return();X=!0;_.ht(G,3);return G.yield(c7d(A,f,t),5);case 5:Q=G.yieldResult;if(!Q.length){X=!1;G.jumpTo(6);break}q=Q[0];return G.yield(_.Jq(q.actualName),7);case 7:return G.yield(_.Gm(q.actualName,f),6);case 6:_.qq(G,4);break;case 3:e=_.vC(G),_.Hx(e),X=!1;case 4:_.a6.cancelJob(Mrd),Mrd=0,X&&CP2(A,t),_.LO(G)}})}))};
hp3=function(){var A;return _.l(function(t){return t.nextAddress==1?t.yield(_.PD(),2):(A=t.yieldResult)?t.return(Btd(A)):t.return(!1)})};
Rpj=function(A){var t=100;t=t===void 0?500:t;var f,X,Q,q,e,G;return _.l(function(N){return N.nextAddress==1?(f=_.ah("INNERTUBE_CONTEXT_CLIENT_NAME",0),X=[f,(0,_.OJ)()-2592E6],Q=[f,(0,_.OJ)()],q=IDBKeyRange.bound(X,Q),N.yield(_.FIx(A),2)):N.nextAddress!=3?(e=N.yieldResult,G=[],N.yield(_.eC(e,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(z){G.length=0;return _.cD(z.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:q,direction:"prev"},function(T){if(T.getValue()&&G.length<
t)return G.push(T.getValue()),T.delete().then(function(){return T.continue()})})}),3)):N.return(G)})};
mxh=function(){var A;return _.l(function(t){if(t.nextAddress==1)return t.yield(_.PD(),2);A=t.yieldResult;if(!A||!_.Ij()&&!_.M("nwl_init_require_datasync_id_killswitch")||!_.A7u())return t.jumpTo(0);_.fYb=!0;_.tr0.isNwlInitialized=_.fYb;return t.yield(_.FvK().awaitInitialization(),0)})};
mA=function(A,t){_.Btl[A]=!0;var f=_.Ov();f&&f.publish.apply(f,arguments);_.Btl[A]=!1};
WG_=function(){if(_.wiq()&&!bIj){var A=function(f){f=f.data;if(f.op==="serializedGelBatch"){var X=_.Mlb.get(f.key);X&&(_.hnT(f.serializedBatch,X.client,X.resolve,X.networklessOptions,X.isIsolated,X.useVSSEndpoint,X.dangerousLogToVisitorSession,X.requestsOutstanding),_.Mlb.delete(f.key))}},t=_.gO0();
t&&(t.addEventListener("message",A),t.onerror=function(){_.Mlb.clear()});
bIj=!0}};
bF=function(){this.relativeTimeStart_=_.k5()};
y7_=function(A,t){A!=null&&this.append.apply(this,arguments)};
vAh=function(){return _.E9("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
LGc=function(A,t,f){f=f===void 0?!1:f;var X,Q,q,e,G;return _.l(function(N){switch(N.nextAddress){case 1:_.nk("SOCS",A,34128E3,"youtube.com",!0);if(_.U1)return Q=fetch(t,{method:"POST",mode:_.ja(t),credentials:_.xJ(t),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),q=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.ja("/upgrade_visitor_cookie?eom=1"),credentials:_.xJ("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),N.yield(Promise.all([Q,q]).then(function(z){return z[1]}),5);
fetch(t,{method:"POST",mode:_.ja(t),credentials:_.xJ(t),cache:"no-store",headers:{"Content-Type":"text/plain"}});return N.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.ja("/upgrade_visitor_cookie?eom=1"),credentials:_.xJ("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:X=N.yieldResult;N.jumpTo(3);break;case 5:X=e=N.yieldResult;case 3:if(!X.ok)throw Error("vf");return N.yield(X.text(),7);case 7:G=N.yieldResult,
!G.includes('"state_switch":true')&&!f||G.includes("skip_reload_for_test")||window.location.reload(),_.LO(N)}})};
pny=function(A){return _.l(function(t){return t.nextAddress==1?t.yield(LGc(A.socsCookie,A.savePreferenceUrl,!0),2):t.return()})};
EAl=function(A){return _.l(function(t){return t.nextAddress==1?t.yield(LGc(A.socsCookie,A.savePreferenceUrl),2):t.return()})};
IY_=function(A){A=A.xhr.responseText;if(!_.ql(A,")]}'"))throw new nAy;A=JSON.parse(A.substr(4));if((A.type||1)>1)throw new nAy;A=A.id;Tt_(A);Dx3=_.MN(A);FGy(18E5,2);return A};
j8m=function(A,t){t=new xxh(t);Tt_("");Dx3=_.jST(t);A>0&&FGy(12E4,A-1);throw t;};
FGy=function(A,t){_.Rj(function(){_.cYd().then(IY_,function(f){return j8m(t,f)}).thenCatch(_.bz)},A)};
zp_=function(){var A=_.Co_();if(A!==void 0)return _.OX(A);Dx3||(Dx3=_.cYd().then(IY_).thenCatch(function(t){return j8m(2,t)}));
return Dx3};
YX3=function(){var A=document;return _.ng(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){return"on"+t.toLowerCase()in A})};
Vr3=function(A){A.addEventListener("click",function(t){var f=t.target;f&&f.getAttribute("href")&&(f=f.getAttribute("href"),_.tt(window,f,"_blank"),t.preventDefault(),t.stopImmediatePropagation())})};
ZIA=function(A){var t,f,X,Q=(X=(f=((t=A.mainDownloadsListEntity)!=null?t:{})[_.BxT])==null?void 0:f.refresh)!=null?X:"",q;A=(q=A.refresh)==null?void 0:q[Q];Q=A!=null?A:{};return(Q==null?0:Q.refreshTime)?Number(Q==null?void 0:Q.refreshTime):0};
oAw=function(A,t){var f=_.BE(A);return t.every(function(X){var Q;X=X==null?void 0:(Q=X.playbackDataEntity)==null?void 0:Q.key;if(!X)return!1;Q=_.QQ(_.tR(X).entityId,"mainVideoEntity");return!!f[Q]})};
dxd=function(A){A=_.i$(A.entities);return _.Drp(A).length};
SX2=function(A,t){if(t){var f;A=(f=_.q_(A.entities,"downloadQualityPickerEntity",t))!=null?f:void 0}else A=void 0;return A};
$x8=function(A){var t=document.getElementsByTagName("ytd-enforcement-message-view-model");t.length===0||getComputedStyle(t[0]).display==="none"?A(0,"p.h_"):A(1,"p.h_")};
KGw=function(){HI3=0;var A=[_.uY(!0)];aYy&&_.r2(aYy,"yt-window-resized",A)};
gAd=function(){HI3||(HI3=_.a6.addLowPriorityJob(KGw,200))};
kV8=function(){wnm=0;s8d=_.c5T(document);var A=[s8d];aYy&&_.r2(aYy,"yt-window-scrolled",A)};
r78=function(){wnm||(wnm=_.a6.addLowPriorityJob(kV8,200))};
tlc=function(A){A=A===void 0?null:A;Aow.push(_.zO(window,"resize",gAd));Aow.push(_.zO(window,"scroll",r78));A&&(aYy=A)};
XOQ=function(){var A=_.OF.getLocalStorage();A&&fnh(A,A.mechanism.__iterator__(!0))};
QMj=function(A){_.l(function(t){if(t.nextAddress==1)return t.yield(A.delete("yt-appshell-assets"),2);_.LO(t)})};
q7Q=function(A){return _.UJ((0,_.SsT)(),A)};
UIA=function(){var A;_.l(function(t){return t.nextAddress==1?t.yield(Wv.getInstance(),2):(A=t.yieldResult)?t.yield(Joc(A),0):t.jumpTo(0)})};
G6m=function(){var A;_.l(function(t){return t.nextAddress==1?t.yield(yI.getInstance(),2):(A=t.yieldResult)?t.yield(en_(A),0):t.jumpTo(0)})};
lnw=function(A){QMj(A);UIA();G6m()};
Nem=function(A){var t,f;return _.l(function(X){if(X.nextAddress==1)return X.yield(_.RQT(A),2);if(t=X.yieldResult){var Q;a:{if(t.headers&&(Q=t.headers.get("date"))&&(Q=Date.parse(Q),!isNaN(Q))){Q=Math.round((0,_.OJ)()-Q);break a}Q=-1}f=Q;if(f>-1)return X.return(f)}return X.return(-1)})};
uRd=function(){var A=_.Xb.caches,t=_.Ka("IS_SHELL_LOAD"),f,X;_.l(function(Q){if(Q.nextAddress==1)return f=-1,t?Q.yield(Nem(A),3):(X=_.OO(),f=Math.round((0,_.OJ)()-X),Q.jumpTo(2));Q.nextAddress!=2&&(f=Q.yieldResult);f>=0&&f<2147483648&&_.R7({appInstallDataAgeMs:f});_.LO(Q)})};
znw=function(A){var t=_.kC(_.Xb.location.href),f={};"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(X){var Q=t.JSC$10115_queryData_.getValues(X);if(Q==null?0:Q.length)f[X]=Q});
return _.cd(A,new Map(Object.entries(f)))};
Pmj=function(A){A=A.match(/(.*)::.*::.*/);if(A!==null)return A[1]};
TeQ=function(A){if(_.obu()){var t=Object.keys(window.localStorage);t=_.U(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;var X=Pmj(f);X===void 0||A.includes(X)||self.localStorage.removeItem(f)}}};
i1_=function(){if(!_.obu())return!1;var A=_.F_(),t=Object.keys(window.localStorage);t=_.U(t);for(var f=t.next();!f.done;f=t.next())if(f=Pmj(f.value),f!==void 0&&f!==A)return!0;return!1};
O1_=function(A){return _.eg("NotificationsDisabled",A)};
coA=function(){return Notification.permission!="granted"?Promise.resolve():_.dvd().then(function(A){return A?A.pushManager.getSubscription().then(function(t){if(t)return Promise.resolve();t={userVisibleOnly:!0,applicationServerKey:_.sx("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return A.pushManager.subscribe(t).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
Be3=function(A){return _.dvd().then(function(t){if(!t||!t.active)return Promise.reject(new _.xj("serviceworker.postMessage",A,t));try{return t.active.postMessage(A),Promise.resolve()}catch(f){return Promise.reject(f)}})};
Ml8=function(){Be3({type:"notifications_register",data:_.ah("ID_TOKEN")})};
Rn_=function(){var A={isWide:_.E0.get("wide","0")==="1"},t=_.NJ();if(t=t.getFlag(165)||t.getFlag(174))A.theme=_.np(!0);if(_.JAx()){var f=_.EF()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";A.systemTheme=f}!t&&_.M("parent_tools_enable_app_settings")&&_.qG(window.location.href).theme!==void 0&&(A.theme=_.np());if((t=Cmd)?!_.VG.equals(t,A):A)t={currentValue:A},hnj&&(t.timeSinceLastSnapshotSecs=Math.round(((0,_.OJ)()-hnj)/1E3)),Cmd&&(t.previousValue=Cmd),_.SY("appSettingsCaptured",t),Cmd=
A,hnj=(0,_.OJ)()};
mIQ=function(){if(!_.Ka("LOGGED_IN"))return Promise.resolve(!1);var A=_.Bx("service_worker_push_force_notification_prompt_tag");return A?_.s4("PromptTags").then(function(t){if(!t)return!0;var f=[];try{f=JSON.parse(t)}catch(X){return!1}return f&&f.indexOf(A)==-1}):Promise.resolve(!1)};
b1Q=function(){var A=_.cx("service_worker_push_prompt_delay_microseconds");return A?_.s4("PromptTime").then(function(t){return Promise.resolve(Date.now()-A>(t||0))}):Promise.resolve(!0)};
Wf3=function(){var A=_.cx("service_worker_push_logged_out_prompt_watches");return A==-1?Promise.resolve(!1):_.s4("WatchCount").then(function(t){return t>=A})};
yow=function(){var A=_.we(document,"yt-push-prompt-modal-bg");A&&_.vf(A)};
vE8=function(){return _.cx("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.s4("PromptCount").then(function(A){A||(A=0);return Promise.resolve(A<_.cx("service_worker_push_prompt_cap"))})};
Lfy=function(A){return _.Ka("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Ka("LOGGED_IN")&&(A===void 0?0:A)?mIQ().then(function(t){if(t)return!0;t=[vE8(),b1Q()];_.Ka("LOGGED_IN")||t.push(Wf3());return Promise.all(t).then(function(f){return f.every(function(X){return X})})}):Promise.resolve(!1)};
pOd=function(){_.s4("PromptCount").then(function(A){return _.eg("PromptCount",A+1)}).then(function(){return _.eg("PromptTime",Date.now())}).then(function(){var A=_.Bx("service_worker_push_force_notification_prompt_tag");
if(A)return _.s4("PromptTags").then(function(t){var f=[];if(t)try{f=JSON.parse(t)}catch(X){return!1}f||(f=[]);f.push(A);return _.eg("PromptTags",JSON.stringify(f))})})};
nE2=function(){EEA||yow()};
DIc=function(A){A.style.zIndex=2147483648;A.style.pointerEvents="auto";A.style.backgroundColor="rgba(0, 0, 0, 0.6)";A.style.width="100%";A.style.height="100vh";A.style.position="absolute";A.style.top="0";A.style.left="0";A.style.border="none"};
Ffl=function(){var A=_.we(document,"yt-push-prompt-modal-bg");EEA=_.M("service_worker_push_prompt_modal_ignore_click");A?DIc(A):(A=_.DC("div",{id:"yt-push-prompt-modal-bg"}),DIc(A),document.body.appendChild(A),_.PPx(document,"click",nE2))};
Inl=function(){var A=arguments;_.M("service_worker_push_prompt_modal_enable")&&Ffl();return Notification.requestPermission().then(function(t){yow();var f=document.getElementById("ticker");f&&(f.className=f.classList.remove("show"));if(t=="granted")return coA().then(function(){O1_(!1);Ml8();return Promise.resolve(!0)});
t=="denied"&&Ml8();return Promise.resolve(!1)}).catch(function(){yow();
return Promise.reject.apply(Promise,_.YV(A))})};
xIA=function(A){A=A===void 0?!1:A;var t=_.No0().client;if(t&&t.browserVersion){var f=t.browserVersion,X=t.browserName=="CHROME"&&_.Pp(f,"50.0.0")<0;t=t.browserName=="OPERA"&&_.Pp(f,"42.0.0")<0;if(X||t)return Promise.resolve()}return _.Hp_().then(function(Q){if(!Q)return Promise.resolve();Q=coA().then(function(){return Be3({type:"notifications_check_registration",data:_.ah("ID_TOKEN")})});
return Notification.permission!="default"?Q.catch(function(){}):Q.then(function(){return Lfy(A)}).then(function(q){if(q)return pOd(),Inl().then(function(){})}).catch(function(){})})};
jM8=function(A){return _.SFc(A)?xIA():Promise.resolve()};
Y7d=function(A){var t=A.installing||A.waiting;return A.active||!t?Promise.resolve(A):new Promise(function(f){var X=function(Q){Q=Q.target;if(Q.state==="activated"||Q.state==="redundant")t.removeEventListener("statechange",X),f(A)};
t.addEventListener("statechange",X)})};
Vlj=function(){var A=new _.h25("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.et(A,{mainAppWeb:_.xO()});var t=_.lO7;_.M("service_worker_forward_exp_params")&&(t=znw(t));try{var f=_.PbT(t).catch(function(){_.GF(A,"FAILURE");return new Promise(function(){})});
_.M("service_worker_push_enabled")&&f.then(function(X){_.GF(A,"SUCCESS");return X}).then(Y7d).then(jM8)}catch(X){if(_.GF(A,"FAILURE"),X.name!=="SecurityError")throw X;
}};
Z1h=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Vlj()};
oE_=function(A,t){var f={};t&&(f.serializedYpcFamilyCreateLoggingParams=t);_.SY(A,f);_.$B()};
dIy=function(A,t){var f={};f.serializedYpcRefundFlowLoggingParams=t;A&&(f.eventType=A);_.SY("ypcRefundFlowEvent",f);_.$B()};
S7h=function(A){A&&_.ih0("transactionFlowSucceeded",A)};
$I3=function(A){A&&_.Va("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
H1l=function(A){var t,f,X,Q,q,e,G;_.l(function(N){if(N.nextAddress==1)return N.yield(_.Ag0(),2);if(N.nextAddress!=3){if(!N.yieldResult)return N.return(!1);t=[];return N.yield(_.kA.keys(),3)}f=N.yieldResult;X=_.U(f);for(Q=X.next();!Q.done;Q=X.next())q=Q.value,e=_.kXp(q),G=e.datasyncId,!G||A.includes(G)||t.push(_.kA.delete(q));return N.return(Promise.all(t).then(function(z){return z.some(function(T){return T})}))})};
and=function(){var A,t,f,X,Q,q,e;return _.l(function(G){if(G.nextAddress==1)return G.yield(_.Ag0(),2);if(G.nextAddress!=3){if(!G.yieldResult)return G.return(!1);A=_.F_("cache contains other");return G.yield(_.kA.keys(),3)}t=G.yieldResult;f=_.U(t);for(X=f.next();!X.done;X=f.next())if(Q=X.value,q=_.kXp(Q),(e=q.datasyncId)&&e!==A)return G.return(!0);return G.return(!1)})};
Kf3=function(){var A=_.Px().resolve(_.z7(_.lp8));return A?A.getCurrentTime():0};
gE2=function(){var A,t,f,X,Q,q,e,G,N,z,T,O,c,B;return _.l(function(h){switch(h.nextAddress){case 1:A={},t=_.XBx(),f=_.U(Object.entries(t)),X=f.next();case 4:if(X.done){h.jumpTo(3);break}Q=X.value;q=_.U(Q);e=q.next().value;G=q.next().value;N=e;z=G;if(!z){h.jumpTo(5);break}return h.yield(z(),8);case 8:A[N]=h.yieldResult;case 5:X=f.next();h.jumpTo(4);break;case 2:T=_.U(),O=T.next();case 9:if(O.done){h.jumpTo(3);break}c=O.value;B=t[c];if(!B){h.jumpTo(10);break}return h.yield(B(),13);case 13:A[c]=h.yieldResult;
case 10:O=T.next();h.jumpTo(9);break;case 3:return h.return(A)}})};
wOA=function(){var A;_.l(function(t){if(t.nextAddress==1)return t.yield(gE2(),2);A=t.yieldResult;return t.yield(navigator.clipboard.writeText(JSON.stringify(A,null,2)),0)})};
sMm=function(A,t){return _.q_(A.entities,"superThanksSelectedTierEntity",t)};
k62=function(A,t){return{popup:{searchSuggestionReportDialog:{searchQuery:A,title:_.e5("SBOX_INAPPROPRIATE_TITLE"),suggestions:t,categoryLabel:_.e5("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.e5("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.e5("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.e5("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.e5("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.e5("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.e5("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.e5("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.e5("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.e5("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
rod=function(A){var t,f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S;return _.l(function(Z){switch(Z.nextAddress){case 1:return Z.yield(_.eR(),2);case 2:return(t=Z.yieldResult)?Z.yield(_.iMu(t),3):Z.return();case 3:f=Z.yieldResult;if(!f)return Z.return();Q=((X=f.offlineVideos)==null?void 0:X.length)||0;e=((q=f.offlinePlaylists)==null?void 0:q.length)||0;if(Q===0&&e===0)return Z.return();G=0;if(f.offlineVideos)for(N=_.U(f.offlineVideos),z=N.next();!z.done;z=N.next())T=z.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
T.videoState&&(G+=1);A.offline_videos_count=Q.toString();_.M("kevlar_log_offline_current_network_type_ks")||(A.offline_current_network_type=(O=_.j75())!=null?O:"CONN_INVALID");_.M("kevlar_log_updated_time_for_smart_downloads")&&(c=_.$I().getState().entities,B=_.RC(c),h=ZIA(c),A.offline_smart_downloads_last_sync_time_ms=B.toString(),A.offline_smart_downloads_next_sync_time_ms=h.toString());A.offline_videos_playable=G.toString();A.offline_playlists_count=e.toString();f.offlineVideos&&(W=f.offlineVideos.reduce(function(d,
K){K.downloadedBytes&&(d+=Number(K.downloadedBytes));return d},0).toString())&&(A.offline_used_disk_space_bytes=W);
if(!((L=navigator)==null?0:(E=L.storage)==null?0:E.estimate)){Z.jumpTo(4);break}return Z.yield(navigator.storage.estimate(),5);case 5:D=Z.yieldResult,A.offline_free_disk_space_bytes=(((S=D)==null?void 0:S.quota)||0).toString();case 4:A.offline_client_state=JSON.stringify(f),_.LO(Z)}})};
AEd=function(A){A=A.match(/(.*)::.*::.*/);if(A!==null)return A[1]};
tLy=function(A){if(_.jsp()){var t=Object.keys(window.sessionStorage);t=_.U(t);for(var f=t.next();!f.done;f=t.next()){f=f.value;var X=AEd(f);X===void 0||A.includes(X)||self.sessionStorage.removeItem(f)}}};
fBj=function(){if(!_.jsp())return!1;var A=_.F_(),t=Object.keys(window.sessionStorage);t=_.U(t);for(var f=t.next();!f.done;f=t.next())if(f=AEd(f.value),f!==void 0&&f!==A)return!0;return!1};
vv=function(A,t,f){(_.M("desktop_keyboard_shortcut_usage_log")||f&&_.M("web_shorts_keyboard_shortcut_usage_log"))&&(t?_.zp.get(A):_.uF.get(A))&&(A=t?_.Tp.get(A):_.Pv.get(A))&&_.o7(_.Ws(),A)};
X1d=function(A,t){return A.findIndex(function(f){return f.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(t.keyCode):!1};
Qv_=function(A,t){t.stack&&(A.stack+="\n"+t.stack);return A};
Gaj=function(A){var t=qn_(A,"Content-Type");if(!t)return null;t=t.toLowerCase();if(t.startsWith("application/json"))return t.startsWith("application/json+protobuf")?new JEQ:new _.Mh;if(t.startsWith("application/x-protobuf")){A=qn_(A,"Content-Transfer-Encoding");if(!A)return new Ut3;if(A.toLowerCase()=="base64")return new eqc}return null};
cEd=function(A,t,f,X){var Q=new lBd(function(G,N){return Nf_.has(N)?G.sentinel==="gal"&&G.event!==void 0:!1},function(G){G.event?(G=ull(G.event),G=!G||zq2(X,G)?!0:_.TR(A.lastEvent,LC,2,pC)?!_.TR(G,EM,1,pC)&&!_.TR(G,LC,2,pC):!_.TR(G,EM,1,pC)&&!_.TR(G,LC,3,pC)):G=!0;
return G});
f=_.cd(A.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Pjj(f)]]));if(A.nestedOrigins!==void 0)for(var q=_.U(A.nestedOrigins),e=q.next();!e.done;e=q.next())f=_.cd(f,new Map([["origin",e.value]]));return Tfl(Q,f,t).then(function(G){G=iW3(G.event);if(_.TR(G,EM,1,pC)){var N,z=(N=_.pd(G,EM,1,pC))==null?void 0:_.ye(N,2);z&&X.JSC$19820_logErrorEvent(OWw(z));N=_.pd(G,EM,1,pC);_.ye(N,2)===4?(G=_.pd(G,EM,1,pC),G={statusCode:11,statusMessage:_.Wz(G,
3)}):(G=_.pd(G,EM,1,pC),G={statusCode:12,statusMessage:_.Wz(G,3)});return G}_.TR(G,LC,3,pC)?(G=_.pd(G,LC,3,pC),G={statusCode:1,consentLanguageKeys:_.Wz(G,2)}):G={statusCode:1};return G}).catch(function(G){return G.errorCode!==void 0?{statusCode:G.errorCode,
statusMessage:G.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
hq8=function(A){var t={};if(A===void 0||A===null)return t;A.getToken()!==void 0&&Bfm(A.getToken())&&Bfm(A.getToken()).length>0&&(t.scopes=new Set(Bfm(A.getToken())));A.getToken()!==void 0&&MLQ(A.getToken())&&MLQ(A.getToken()).length>0&&(t.capabilities=new Set(MLQ(A.getToken())));_.Wz(A,3)!==void 0&&(t.consistencyKey=_.Wz(A,3));A.getName()!==void 0&&A.getName()!==""&&(t.linkName=A.getName());_.Pz(A,Cjm,4)&&(A=_.Mq(A,Cjm,4),A=Object.assign({},_.Wz(A,1)&&{userId:_.Wz(A,1)},_.Wz(A,2)&&{displayName:_.Wz(A,
2)},_.Wz(A,3)&&{email:_.Wz(A,3)},_.Wz(A,5)&&{username:_.Wz(A,5)},_.Wz(A,4)&&{profilePicture:_.Wz(A,4)}),t.profile=A);return t};
Rqm=function(A,t){var f=A.flowParams,X;return{serviceId:f.serviceId,sessionId:f.sessionId,currentFlow:A.currentFlow,googleScopesString:t,linkingSessionSerialized:A.session.serialize(),consentLanguageKeys:f.consentLanguageKeys,callerState:A.callerState,dynamicUrlParameters:f.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(X=f.partnerConfigMinReadTimestamp)==null?void 0:X.serialize()}};
vu3=function(A){var t=A.googleScopes!==void 0?Array.from(A.googleScopes).join(","):"";mty(Rqm(A,t),A.config.localStorage);t=bWA(A);return t===null?Promise.resolve(WLd):t.start().then(function(f){var X,Q=(X=f.link)==null?void 0:X.consistencyKey;return f.statusCode===1&&A.googleScopes!==void 0&&A.googleScopes.size>0&&Q!==void 0?(X=A.flowParams,yEm(X.serviceId,X.sessionId,A.googleScopes,Q,X.galService,A.config,f)):f})};
p1d=function(A){var t=bWA(A);return t===null?Promise.resolve(LLm({statusCode:7,statusMessage:"Failed to create flow object"},A.callerState)):t.complete().then(function(f){var X,Q=(X=f.link)==null?void 0:X.consistencyKey;return f.statusCode===1&&A.googleScopes!==void 0&&A.googleScopes.size>0&&Q!==void 0?(X=A.flowParams,yEm(X.serviceId,X.sessionId,A.googleScopes,Q,X.galService,A.config,f)):LLm(f,A.callerState)},function(f){return LLm({statusCode:12,
statusMessage:"Failed to complete the flow: "+f.message},A.callerState)})};
yEm=function(A,t,f,X,Q,q,e){return Euw(Q,{serviceId:A,sessionId:t,googleScopes:f,consistencyKey:X}).then(function(){return e},function(G){return Q.deleteLink({serviceId:A,
sessionId:t,accountLinkingEntryPoint:q.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+G.message}},function(N){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+N.message}})})};
bWA=function(A){switch(A.currentFlow){case 1:var t=A.flowParams;A=_.Mq(A.session,nuc,1);return Dtl.createOAuthFlow(t,A);case 2:case 3:return t=A.flowParams,A=_.Mq(A.session,FLj,6),IBd.createStreamlinedFlow(t,A);default:return null}};
jv3=function(A,t){A===2&&(A=3);var f=0;xt3.indexOf(A)!==-1&&(f=xt3.indexOf(A)+1);for(A=f;A<xt3.length;A++)if(t.has(xt3[A]))return xt3[A]};
ZW3=function(A){var t=A.serviceId;var f=A.sessionId;var X=A.config;var Q=A.galService;var q=A.capabilities;var e=A.scopes;var G=A.loginHint;var N=A.callerState;var z=A.consentLanguageKeys;var T=A.linkName;var O=A.dynamicUrlParameters;var c=A.partnerConfigMinReadTimestamp;A=X.dataUsageNoticeConfig?X.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Q.startLinkingSession({serviceId:t,sessionId:f,capabilities:q,scopes:e,loginHint:G,callerState:N,supportedFlows:Yn3(X.supportedFlows),completionUrl:X.completionUrl,
accountLinkingEntryPoint:X.accountLinkingEntryPoint,consentLanguageKeys:z,dataUsageNoticeConfig:A,linkName:T,dynamicUrlParameters:O,partnerConfigMinReadTimestamp:c}).then(function(B){return new VL3(t,f,X,Q,B,void 0,N,z,O,c)})};
aB3=function(A,t,f){var X=(new oum(t.localStorage)).getSession(A);if(X===null)return Promise.resolve({statusCode:2});dtc(A,t.localStorage);var Q=Snh(X.linkingSessionSerialized),q=X.googleScopesString!==""&&X.googleScopesString!==void 0?new Set(X.googleScopesString.split(",")):void 0,e=X.partnerConfigMinReadTimestampSerialized?$t3(X.partnerConfigMinReadTimestampSerialized):void 0;return HWw(new VL3(A,X.sessionId,t,f,Q,q,X.callerState,X.consentLanguageKeys,X.dynamicUrlParameters,e),X.currentFlow,X.consentLanguageKeys)};
mty=function(A,t){t=new oum(t);t.storage!==null&&t.storage.set("SAVED_SESSION",A)};
dtc=function(A,t){t=new oum(t);if(t.storage!==null){var f=t.storage.get("SAVED_SESSION");f!==void 0&&f.serviceId===A&&t.storage.remove("SAVED_SESSION")}};
Yn3=function(A){var t=new Set;A=_.U(A);for(var f=A.next();!f.done;f=A.next())f=f.value,f!==1&&KLA.has(f)&&t.add(KLA.get(f));return t};
LLm=function(A,t){t!==void 0&&(A.callerState=t);return A};
gul=function(A){switch(A){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
ka_=function(A){return new w13(A,new svm(A))};
tM8=function(A,t){t=t===void 0?!1:t;var f=document.createElement("div");A&&(f.style.transform="scaleX(-1)");f.style.backgroundColor=t?"rgba(138,180,248,.24)":"#e8f0fe";f.style.height="4px";f.style.overflow="hidden";f.style.position="absolute";f.style.top="0";f.style.width="100%";f.style.zIndex="1500";f.setAttribute("aria-label","Loading");f.setAttribute("aria-live","polite");A=document.createElement("style");A.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  }";
f.appendChild(A);A=rE3();A.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";A.style.left="-145.166611%";var X=A0h(t);X.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";A.appendChild(X);f.appendChild(A);A=rE3();A.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";A.style.left="-54.888891%";t=A0h(t);t.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
A.appendChild(t);f.appendChild(A);return f};
rE3=function(){var A=document.createElement("div");A.style.height="100%";A.style.position="absolute";A.style.transformOrigin="top left";A.style.width="100%";return A};
A0h=function(A){var t=document.createElement("span");t.style.borderTop=A?"4px solid #669df6":"4px solid #4285f4";t.style.display="inline-block";t.style.position="absolute";t.style.width="100%";return t};
fdQ=function(A){return A==null?void 0:_.bAp(A).valueOf()};
J0l=function(A){var t=document.body,f=!1,X=function(){f||(f=!0,X$m(Q,q),setTimeout(function(){t.removeChild(q);t.removeChild(Q)},150))},Q=QJ2(A,getComputedStyle(t).direction==="rtl",X),q=qj8(X);
X$m(Q,q);t.appendChild(q);t.appendChild(Q);window.requestAnimationFrame(function(){q.style.opacity="1";Q.style.opacity="1";Q.style.transform="translate(-50%, -50%) scale(1)";Q.children[0].focus()})};
QJ2=function(A,t,f){var X=document.createElement("div");X.style.position="fixed";X.style.alignItems="center";X.style.backgroundColor=A?"rgb(32, 33, 36)":"white";X.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";X.style.display="flex";X.style.flexDirection="column";X.style.justifyContent="center";X.style.left="50%";X.style.top="50%";X.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";X.style.zIndex="2002";document.body.clientWidth>=
660?(X.style.borderRadius="8px",X.style.minHeight="220px",X.style.maxHeight="90%",X.style.maxWidth="90%",X.style.minWidth="540px"):(X.style.height="100%",X.style.width="100%");X.setAttribute("aria-label","Error");X.setAttribute("aria-modal","true");X.setAttribute("role","alertdialog");X.addEventListener("keydown",function(q){q.key==="Escape"&&f()});
t=Ua8(A,t,f);X.appendChild(eyh(t));X.appendChild(t);var Q=document.createElement("img");Q.src=A?"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";Q.style.height="72px";Q.style.width="72px";Q.style.color="#9aa0a6";Q.setAttribute("alt","");X.appendChild(Q);Q=document.createElement("h1");Q.textContent="Something went wrong.  Try again.";
Q.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Q.style.lineHeight="24px";Q.style.fontSize="16px";Q.style.textAlign="center";Q.style.letterSpacing="0.1px";Q.style.color=A?"rgb(232,234,237)":"#3c4043";X.appendChild(Q);X.appendChild(eyh(t));return X};
Ua8=function(A,t,f){var X=document.createElement("button");X.style.backgroundColor="transparent";X.style.border="none";X.style.borderRadius="50%";X.style.cursor="pointer";X.style.outline="none";X.style.padding="12px";X.setAttribute("aria-label","Close dialog");X.style.position="absolute";X.style.top="0";t?X.style.right="0":X.style.left="0";X.addEventListener("focus",function(){X.style.backgroundColor=A?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
X.addEventListener("blur",function(){X.style.backgroundColor="transparent"});
X.addEventListener("mouseenter",function(){X.style.backgroundColor=A?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
X.addEventListener("mouseleave",function(){X.style.backgroundColor="transparent"});
X.addEventListener("click",f);X.addEventListener("keydown",function(Q){Q.key!=="Enter"&&Q.key!=="Space"||f()});
t=document.createElement("img");t.src=A?"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";t.style.display="block";t.style.height="24px";t.style.width="24px";t.setAttribute("alt","");X.appendChild(t);return X};
eyh=function(A){var t=document.createElement("div");t.setAttribute("tabindex","0");t.setAttribute("aria-hidden","true");t.addEventListener("focus",function(){return void A.focus()});
return t};
qj8=function(A){var t=document.createElement("div");t.style.backgroundColor="rgba(32,33,36,0.6)";t.style.bottom="0";t.style.left="0";t.style.position="fixed";t.style.right="0";t.style.top="0";t.style.transition=" opacity 150 ms linear";t.style.zIndex="2001";t.addEventListener("click",A);return t};
X$m=function(A,t){t.style.opacity="0";A.style.opacity="0";A.style.transform="translate(-50%, -50%) scale(0.8)"};
Gq3=function(A,t){A.sandbox&&A.sandbox.add&&(A.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),A.sandbox.add("allow-downloads"));A.src=t};
nC=function(A){ldQ.call(this,A)};
TPj=function(A,t){t=t===void 0?!1:t;this.parsedImageUrl_=null;A instanceof NPm||(uI8==void 0&&(uI8=new zyc),A=uI8.parse(A.toString(),t));A=this.parsedImageUrl_=A;A.JSC$20033_parsedOptions_==void 0&&((t=A.getOptions())||(t=""),A.JSC$20033_parsedOptions_=(new PMh).parse(t));ldQ.call(this,A.JSC$20033_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;A=this.parsedImageUrl_;t=A.uri_.JSC$10115_port_;this.JSC$20035_domain_=A.uri_.JSC$10115_domain_+(t?":"+t:"");this.JSC$20035_query_=
this.parsedImageUrl_.uri_.JSC$10115_queryData_.toString()};
i8j=function(A){this.mode=4;this.data=A;this.parsedData=[];A=0;for(var t=this.data.length;A<t;A++){var f=[],X=this.data.charCodeAt(A);X>65536?(f[0]=240|(X&1835008)>>>18,f[1]=128|(X&258048)>>>12,f[2]=128|(X&4032)>>>6,f[3]=128|X&63):X>2048?(f[0]=224|(X&61440)>>>12,f[1]=128|(X&4032)>>>6,f[2]=128|X&63):X>128?(f[0]=192|(X&1984)>>>6,f[1]=128|X&63):f[0]=X;this.parsedData.push(f)}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))};
O83=function(A){this.typeNumber=0;this.errorCorrectLevel=A===void 0?2:A;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Dp=function(A,t){if(A.length==void 0)throw Error("Qk`"+A.length+"`"+t);for(var f=0;f<A.length&&A[f]==0;)f++;this.num=Array(A.length-f+t);for(t=0;t<A.length-f;t++)this.num[t]=A[t+f]};
c0Q=function(A,t){this.totalCount=A;this.dataCount=t};
BP3=function(){this.buffer=[];this.length=0};
MMd=function(){var A=!1;if(_.Rx5()){A=_.Ox();var t="";_.W5x()?(t=/Windows (?:NT|Phone) ([0-9.]+)/,t=(A=t.exec(A))?A[1]:"0.0"):_.pg()?(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,t=(A=t.exec(A))&&A[1].replace(/_/g,".")):_.bgl()?(t=/Mac OS X ([0-9_.]+)/,t=(A=t.exec(A))?A[1].replace(/_/g,"."):"10"):_.uu(_.Ox(),"KaiOS")?(t=/(?:KaiOS)\/(\S+)/i,t=(A=t.exec(A))&&A[1]):_.Rx5()?(t=/Android\s+([^\);]+)(\)|;)/,t=(A=t.exec(A))&&A[1]):_.ybx()&&(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,t=(A=t.exec(A))&&A[1]);A=
t||""}return A};
W0c=function(A,t){this.JSC$20058__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(t)for(var f in t)this.JSC$20058__htOption[f]=t[f];this.JSC$20058__htOption.useSVG&&(CMy=hy_);this.JSC$20058__android=MMd();this.JSC$20058__el=A;this._oQRCode=null;this._oDrawing=new CMy(this.JSC$20058__el,this.JSC$20058__htOption);this.JSC$20058__htOption.text&&(A=this.JSC$20058__htOption.text,this._oQRCode=new O83(this.JSC$20058__htOption.correctLevel),Ry_(this._oQRCode,
A),t=this._oQRCode,maj(t,!1,b8Q(t)),this.JSC$20058__el.title=A,this._oDrawing.draw(this._oQRCode),this.makeImage())};
y08=function(A,t,f,X,Q){A.save();var q=new Path2D;q.roundRect(t,f,X*7,X*7,X*2);q.roundRect(t+X,f+X,X*5,X*5,X*1.3);q.roundRect(t+2*X,f+2*X,X*3,X*3,X);A.clip(q,"evenodd");A.fillStyle=Q;A.fillRect(0,0,A.canvas.width,A.canvas.height);A.restore()};
Fr=function(A,t){if(typeof A!=="function")throw Error("Tk");return _.Xb.setTimeout(function(){A()},t)};
Im=function(){};
L0_=function(A,t,f,X,Q){(new Im).debug("TestLoadImageWithRetries: "+Q);if(X==0)f(!1);else{var q=Q||0;X--;vYh(A,t,function(e){e?f(!0):_.Xb.setTimeout(function(){L0_(A,t,f,X,q)},q)})}};
vYh=function(A,t,f){var X=new Im;X.debug("TestLoadImage: loading "+A);var Q=new Image;Q.onload=function(){try{X.debug("TestLoadImage: loaded"),p$j(Q),f(!0)}catch(q){}};
Q.onerror=function(){try{X.debug("TestLoadImage: error"),p$j(Q),f(!1)}catch(q){}};
Q.onabort=function(){try{X.debug("TestLoadImage: abort"),p$j(Q),f(!1)}catch(q){}};
Q.ontimeout=function(){try{X.debug("TestLoadImage: timeout"),p$j(Q),f(!1)}catch(q){}};
_.Xb.setTimeout(function(){if(Q.ontimeout)Q.ontimeout()},t);
Q.src=A};
p$j=function(A){A.onload=null;A.onerror=null;A.onabort=null;A.ontimeout=null};
EYc=function(){this.front_=[];this.back_=[]};
nYl=function(A,t){this.action=A;this.params=t||{}};
Dad=function(A,t){_.DA.call(this);this.delay_=new _.Iy(this.JSC$20184_onTick_,0,this);_.hV(this,this.delay_);this.JSC$20182_interval_=5E3;this.nextTickTime_=0;if(typeof A==="function")t&&(A=(0,_.F1)(A,t));else if(A&&typeof A.handleEvent==="function")A=(0,_.F1)(A.handleEvent,A);else throw Error("ya");this.JSC$20184_listener_=A};
xX=function(A,t,f,X,Q,q,e,G,N,z,T,O,c,B,h){var W=this;f=f===void 0?!1:f;X=X===void 0?function(){return""}:X;
Q=Q===void 0?!1:Q;q=q===void 0?!1:q;e=e===void 0?!1:e;G=G===void 0?function(){return _.ff({})}:G;
N=N===void 0?!1:N;T=T===void 0?!1:T;O=O===void 0?!1:O;c=c===void 0?!1:c;B=B===void 0?!1:B;this.JSC$20185_pathPrefix_=A;this.defaultQueryParams_=t;this.pubsub_=new _.Lk;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!h)?h(function(){W.safeReconnect_()}):new Dad(this.safeReconnect_,this);
this.JSC$20185_channel_=null;this.JSC$20185_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20185_pendingMessages_=[];this.enableAsyncTest_=f;this.JSC$20185_getXsrfToken_=X;this.useAsyncBrowserChannelHandler_=q;this.getAuthorizationHeader_=G;this.getAuthorizationHeaderSync_=z;this.enableCachedUpdateAuthorizationHeader_=e;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.ff();this.enableLoungeTokenRefresh_=Q;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
N;this.disableMdxAuthForNonPlaybackMessages_=T;this.disableMdxAuthForAdMessages_=O;this.enableMdxAuthForConnectionOnly_=c;this.disableMdxAuthForShortsMessages_=B;this.JSC$20185_channelOpenedCounter=new F03;this.JSC$20185_channelClosedCounter=new Idm;this.channelMessageSentCounter=new xa_;this.JSC$20185_channelMessageReceivedCounter=new jJA;this.JSC$20185_channelErrorCounter=new YjA;this.pendingMapsOnClosedCounter=new VMy;this.undeliveredMapsOnClosedCounter=new Z8c};
oY3=function(A){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;A=A||document.location.href;var t=Number(_.eJ(A)[4]||null)||"";t&&(this.port=":"+t);this.domain=_.G7(A)||"";A=_.Ox();A.search("MSIE")>=0&&_.Pp(A.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
jg=function(A){A=A||{};this.name=A.name||"";this.id=A.id||A.screenId||"";this.token=A.token||A.loungeToken||"";this.uuid=A.uuid||A.dialId||"";this.idType=A.screenIdType||"normal";this.secret=A.screenIdSecret||""};
daw=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(A){var t=Math.random()*16|0;return(A=="x"?t:t&3|8).toString(16)})};
Sjj=function(A){return _.Zg(A,function(t){return{key:t.id,name:t.name}})};
$ad=function(A,t){return _.ng(A,function(f){return f||t?!f!=!t?!1:f.id==t.id:!0})};
YX=function(A,t){return _.ng(A,function(f){return H8d(f,t)})};
sJ8=function(){var A=adc(),t=K0d();if(gYA()){var f=A,X=_.xlx(f,t);X<0&&_.DlT(f,-(X+1),0,t)}A=w$Q(A);if(A.length==0)try{_.DJx("remote_sid")}catch(Q){}else try{_.nk("remote_sid",A.join(","),-1)}catch(Q){}};
adc=function(){var A=_.Bi("yt-remote-connected-devices")||[];A.sort(_.Ixq);return A};
w$Q=function(A){if(A.length==0)return[];var t=A[0].indexOf("#"),f=t==-1?A[0]:A[0].substring(0,t);return _.Zg(A,function(X,Q){return Q==0?X:X.substring(f.length)})};
kq3=function(A){_.ci("yt-remote-connected-devices",A,86400)};
K0d=function(){if(r0m)return r0m;var A=_.Bi("yt-remote-device-id");A||(A=daw(),_.ci("yt-remote-device-id",A,31536E3));for(var t=adc(),f=1,X=A;_.Zx(t,X);)f++,X=A+"#"+f;return r0m=X};
Au3=function(){return _.Bi("yt-remote-session-browser-channel")};
gYA=function(){return _.Bi("yt-remote-session-screen-id")};
XFw=function(A){A.length>5&&(A=A.slice(A.length-5));var t=_.Zg(tt2(),function(X){return X.loungeToken}),f=_.Zg(A,function(X){return X.loungeToken});
_.Y5p(f,function(X){return!_.Zx(t,X)})&&fSc();
_.ci("yt-remote-local-screens",A,31536E3)};
tt2=function(){return _.Bi("yt-remote-local-screens")||[]};
fSc=function(){_.ci("yt-remote-lounge-token-expiration",!0,86400)};
QGA=function(A){A||(_.Mv("yt-remote-session-screen-id"),_.Mv("yt-remote-session-video-id"));sJ8();A=adc();_.o0(A,K0d());kq3(A)};
Juy=function(){quh();return VI?!!VI.get("yt-remote-use-staging-server"):!1};
quh=function(){if(!VI){var A=_.oj();A&&(VI=new _.jJ(A))}};
lS_=function(A,t,f,X,Q){f=f===void 0?function(){return""}:f;
var q=function(){return new xX(Zp(A,"/bc"),t,!1,f,X)};
return _.M("enable_mdx_web_channel_desktop")?new UBQ(function(){return new eW2(Zp(A,"/wc"),t,f)}):new GFl(q,Q)};
Pgy=function(){var A=NS3;utm();om.push(A);zWc()};
dp=function(A,t){utm();var f=TS2(A,String(t));om.length==0?isA(f):(zWc(),_.X_(om,function(X){X(f)}))};
Sg=function(A){dp("CP",A)};
utm=function(){om||(om=_.Ae("yt.mdx.remote.debug.handlers_")||[],_.zm("yt.mdx.remote.debug.handlers_",om))};
isA=function(A){var t=(Os_+1)%50;Os_=t;cuy[t]=A;BSc||(BSc=t==49)};
zWc=function(){var A=om;if(cuy[0]){var t=BSc?Os_:-1,f={};do f={record$jscomp$15:void 0},t=(t+1)%50,f.record$jscomp$15=cuy[t],_.X_(A,function(X){return function(Q){Q(X.record$jscomp$15)}}(f));
while(t!=Os_);cuy=Array(50);Os_=-1;BSc=!1}};
TS2=function(A,t){var f=(Date.now()-Mtc)/1E3;f.toFixed&&(f=f.toFixed(3));var X=[];X.push("[",f+"s","] ");X.push("[","yt.mdx.remote","] ");X.push(A+": "+t,"\n");return X.join("")};
$X=function(A){_.N6.call(this);this.JSC$20210_logName_=A;this.screens=[]};
am=function(A){$X.call(this,"LocalScreenService");this.JSC$20217_http_=A;this.loungeTokenRefreshTimer_=NaN;Hv(this);this.info("Initializing with "+Cgw(this.screens))};
KC=function(A,t){t=t===void 0?!1:t;$X.call(this,"ScreenService");this.JSC$20223_http_=A;this.disableAutomaticScreenCache_=t;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};hWQ(this)};
gp=function(A,t,f){_.N6.call(this);this.JSC$20227_logName_=f;this.JSC$20227_screenService_=A;this.receiver_=t;this.screen_=null};
Yu8=function(A,t,f){f.disableCastApi?wp("Cannot initialize because disabled by Mdx config."):RWd()?mBQ(A,f)&&(bsw(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?W_l(t):(window.__onGCastApiAvailable=function(X,Q){X?W_l(t):(sM("Failed to load cast API: "+Q),yu_(!1),bsw(!1),_.Mv("yt-remote-cast-available"),_.Mv("yt-remote-cast-receiver"),v5d(),t(!1))},f.loadCastApiSetupScript?_.DT(L_d):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
pF_()>=60&&E5j():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?n5h():pF_()>=89?DBd():(F_j(),ISm(xB8.map(jGA))))):wp("Cannot initialize because not running Chrome")};
v5d=function(){wp("dispose");var A=kX();A&&A.dispose();_.zm("yt.mdx.remote.cloudview.instance_",null);Vtd(!1);_.Mrl(Zsd);Zsd.length=0};
o52=function(){return!!_.Bi("yt-remote-cast-installed")};
dB8=function(){var A=_.Bi("yt-remote-cast-receiver");return A?A.friendlyName:null};
Suy=function(){wp("clearCurrentReceiver");_.Mv("yt-remote-cast-receiver")};
$B_=function(){return o52()?kX()?kX().getCastSession():(sM("getCastSelector: Cast is not initialized."),null):(sM("getCastSelector: Cast API is not installed!"),null)};
aS3=function(A,t){Hs8()?kX().setConnectedScreenStatus(A,t):sM("setConnectedScreenStatus called before ready.")};
RWd=function(){var A=_.Ox().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.e7||A};
mBQ=function(A,t){var f=!1;kX()||(A=new rp(A,t),A.subscribe("yt-remote-cast2-availability-change",function(X){_.ci("yt-remote-cast-available",X);mA("yt-remote-cast2-availability-change",X)}),A.subscribe("yt-remote-cast2-receiver-selected",function(X){wp("onReceiverSelected: "+X.friendlyName);
_.ci("yt-remote-cast-receiver",X);mA("yt-remote-cast2-receiver-selected",X)}),A.subscribe("yt-remote-cast2-receiver-resumed",function(X){wp("onReceiverResumed: "+X.friendlyName);
_.ci("yt-remote-cast-receiver",X);mA("yt-remote-cast2-receiver-resumed",X)}),A.subscribe("yt-remote-cast2-session-change",function(X){wp("onSessionChange: "+K_m(X));
X||_.Mv("yt-remote-cast-receiver");mA("yt-remote-cast2-session-change",X)}),_.zm("yt.mdx.remote.cloudview.instance_",A),f=!0);
wp("cloudview.createSingleton_: "+f);return f};
kX=function(){return _.Ae("yt.mdx.remote.cloudview.instance_")};
W_l=function(A){yu_(!0);bsw(!1);kX().init(!1,function(t){t?(Vtd(!0),_.CPx("yt-remote-cast2-api-ready")):(sM("Failed to initialize cast API."),yu_(!1),_.Mv("yt-remote-cast-available"),_.Mv("yt-remote-cast-receiver"),v5d());A(t)})};
wp=function(A){dp("cloudview",A)};
sM=function(A){dp("cloudview",A)};
yu_=function(A){wp("setCastInstalled_ "+A);_.ci("yt-remote-cast-installed",A)};
Hs8=function(){return!!_.Ae("yt.mdx.remote.cloudview.apiReady_")};
Vtd=function(A){wp("setApiReady_ "+A);_.zm("yt.mdx.remote.cloudview.apiReady_",A)};
bsw=function(A){_.zm("yt.mdx.remote.cloudview.initializing_",A)};
AC=function(A){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(A)};
q1j=function(A){quh();if(!VI||!VI.get("yt-remote-disable-remote-module-for-dev")){A=_.ah("MDX_CONFIG")||A;XOQ();sJ8();g58||(g58=new oY3(A?A.loungeApiHost:void 0),Juy()&&(g58.basePath="/api/loungedev"));tC||(tC=_.Ae("yt.mdx.remote.deferredProxies_")||[],_.zm("yt.mdx.remote.deferredProxies_",tC));wFA();var t=sG_();if(!t){var f=new KC(g58,A?A.disableAutomaticScreenCache||!1:!1);_.zm("yt.mdx.remote.screenService_",f);t=sG_();var X={};A&&(X={appId:A.appId,disableDial:A.disableDial,theme:A.theme,loadCastApiSetupScript:A.loadCastApiSetupScript,
disableCastApi:A.disableCastApi,enableDialLoungeToken:A.enableDialLoungeToken,enableCastLoungeToken:A.enableCastLoungeToken,forceMirroring:A.forceMirroring});_.zm("yt.mdx.remote.enableConnectWithInitialState_",A?A.enableConnectWithInitialState||!1:!1);Yu8(f,function(q){q?kF2()&&aS3(kF2(),"YouTube TV"):f.subscribe("onlineScreenChange",function(){mA("yt-remote-receiver-availability-change")})},X)}if(A&&!_.Ae("yt.mdx.remote.initialized_")){_.zm("yt.mdx.remote.initialized_",!0);
rud("Initializing: "+(0,_.j$)(A));fK.push(_.MA("yt-remote-cast2-api-ready",function(){mA("yt-remote-api-ready")}));
fK.push(_.MA("yt-remote-cast2-availability-change",function(){mA("yt-remote-receiver-availability-change")}));
fK.push(_.MA("yt-remote-cast2-receiver-selected",function(){AJ_();mA("yt-remote-auto-connect","cast-selector-receiver")}));
fK.push(_.MA("yt-remote-cast2-receiver-resumed",function(){mA("yt-remote-receiver-resumed","cast-selector-receiver")}));
fK.push(_.MA("yt-remote-cast2-session-change",t73));fK.push(_.MA("yt-remote-connection-change",function(q){q?aS3(kF2(),"YouTube TV"):frl()||(aS3(null,null),Suy())}));
fK.push(_.MA("yt-remote-cast2-session-failed",function(){mA("yt-remote-connection-failed")}));
X=Xz8();A.isAuto&&(X.id+="#dial");var Q=A.capabilities||[];Q.length>0&&(X.capabilities=Q);X.name=A.device;X.app=A.app;(A=A.theme)&&(X.theme=A);rud(" -- with channel params: "+(0,_.j$)(X));X?(_.ci("yt-remote-session-app",X.app),_.ci("yt-remote-session-name",X.name)):(_.Mv("yt-remote-session-app"),_.Mv("yt-remote-session-name"));_.zm("yt.mdx.remote.channelParams_",X);t.start();kF2()||QD3()}}};
U1d=function(){var A=sG_().instance_.$_gos();var t=JJc();t&&X7()&&($ad(A,t)||A.push(t));return Sjj(A)};
eSh=function(){var A=U1d(),t=JJc();t||(t=frl());return _.ng(A,function(f){return t&&H8d(t,f.key)?!0:!1})};
JJc=function(){var A=kF2();if(!A)return null;var t=sG_().getScreens();return YX(t,A)};
t73=function(A){rud("remote.onCastSessionChange_: "+K_m(A));if(A){var t=JJc();if(t&&t.id==A.id){if(aS3(t.id,"YouTube TV"),A.idType=="shortLived"&&(A=A.token))GRl&&(GRl.token=A),(t=X7())&&t.setLoungeToken(A)}else t&&lrm(),NVc(A,1)}else X7()&&lrm()};
lrm=function(){Hs8()?kX().stopSession():sM("stopSession called before API ready.");var A=X7();A&&(A.disconnect(1),uGQ(null))};
zSm=function(){var A=X7();return A&&A.getProxyState()!=3?new Q4(X7(),void 0):null};
rud=function(A){dp("remote",A)};
sG_=function(){if(!Pr_){var A=_.Ae("yt.mdx.remote.screenService_");Pr_=A?new TV8(A):null}return Pr_};
kF2=function(){return _.Ae("yt.mdx.remote.currentScreenId_")};
idw=function(A){_.zm("yt.mdx.remote.currentScreenId_",A)};
AJ_=function(){_.zm("yt.mdx.remote.connectData_",null)};
X7=function(){return _.Ae("yt.mdx.remote.connection_")};
uGQ=function(A){var t=X7();AJ_();A||idw("");_.zm("yt.mdx.remote.connection_",A);tC&&(_.X_(tC,function(f){f(A)}),tC.length=0);
t&&!A?mA("yt-remote-connection-change",!1):!t&&A&&mA("yt-remote-connection-change",!0)};
frl=function(){var A=gYA();if(!A)return null;var t=sG_();if(!t)return null;t=t.getScreens();return YX(t,A)};
NVc=function(A,t){Odc?GRl=A:(idw(A.id),A=new qS(g58,A,Xz8(),_.Ae("yt.mdx.remote.enableConnectWithInitialState_")||!1),A.connect(t,_.Ae("yt.mdx.remote.connectData_")),A.subscribe("beforeDisconnect",function(f){mA("yt-remote-before-disconnect",f)}),A.subscribe("beforeDispose",function(){X7()&&uGQ(null)}),A.subscribe("browserChannelAuthError",function(){var f=JJc();
f&&f.idType=="shortLived"&&(Hs8()?kX().handleBrowserChannelAuthError():sM("refreshLoungeToken called before API ready."))}),uGQ(A))};
QD3=function(){var A=frl();A?(rud("Resume connection to: "+K_m(A)),NVc(A,0)):(QGA(),Suy(),rud("Skipping connecting because no session screen found."))};
wFA=function(){var A=Xz8();if(_.VG.isEmpty(A)){A=K0d();var t=_.Bi("yt-remote-session-name")||"",f=_.Bi("yt-remote-session-app")||"";A={device:"REMOTE_CONTROL",id:A,name:t,app:f,mdxVersion:3};A.authuser=String(_.ah("SESSION_INDEX","0"));(t=_.ah("DELEGATED_SESSION_ID"))&&(A.pageId=String(t));_.zm("yt.mdx.remote.channelParams_",A)}};
Xz8=function(){return _.Ae("yt.mdx.remote.channelParams_")||{}};
cJA=function(){var A,t;return _.l(function(f){if(f.nextAddress==1)return(_.Xn0()||_.M("use_new_nwl"))&&_.rYs().isNetworkAvailable()?f.yield(_.PD(),2):f.return();if(f.nextAddress!=3)return(A=f.yieldResult)?f.yield(Rpj(A),3):f.return();t=f.yieldResult;if(!t.length)return f.return();t.forEach(function(X){var Q={timestamp:X.timestamp};X=X.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:X.appShellAssetLoadReport,options:Q}:X.clientError?{payloadName:"clientError",payload:X.clientError,
options:Q}:void 0;X&&_.SY(X.payloadName,X.payload,X.options)});
t.length===100&&_.a6.addLowPriorityJob(cJA);_.LO(f)})};
BVj=function(A){if(A.playerResponse){if(A=A.playerResponse,A.messages&&A.messages.length>0&&(A=A.messages.find(function(t){return!(!t||!t.mealbarPromoRenderer)}))&&A.mealbarPromoRenderer)return A.mealbarPromoRenderer}else if(A.response&&(A=A.response)&&A.overlay&&A.overlay.mealbarPromoRenderer)return A.overlay.mealbarPromoRenderer};
M7w=function(A){if(A.response){var t=A.response;if(t&&t.overlay&&t.overlay.tooltipRenderer)return t.overlay.tooltipRenderer}if(A.playerResponse&&(A=A.playerResponse,A.messages&&A.messages.length>0&&(A=A.messages.find(function(f){return!(!f||!f.tooltipRenderer)}))&&A.tooltipRenderer))return A.tooltipRenderer};
hSc=function(A){if(!CrQ&&(A=A||_.ah("ZWIEBACK_PING_URLS"))&&A.length){CrQ=!0;for(var t=0;t<A.length;t++)_.XO(A[t])}};
m1j=function(A){if(_.VG.get(_.ah("PLAYER_VARS",{}),"privembed",!1)!="1"){A&&PPc();try{RSl().then(function(){},function(){}),_.Rj(m1j,18E5)}catch(t){_.g9(t)}}};
bdh=function(){var A=_.NJ(),t=A.getFlag(119),f=window.devicePixelRatio>1;document.body&&_.sY(document.body,"exp-invert-logo")&&(f&&!_.sY(document.body,"inverted-hdpi")?_.Vx(document.body,"inverted-hdpi"):!f&&_.sY(document.body,"inverted-hdpi")&&_.jr(document.body,"inverted-hdpi"));t!=f&&(_.u0(0,119,f),A.save())};
Wa2=function(A){return A.filter(function(t){return"ypcGetCartEndpoint"in t||"ypcFixInstrumentEndpoint"in t})};
yJ3=function(A){return A.filter(function(t){return!_.C(t,_.hQK)})};
Lay=function(A,t){var f,X,Q,q,e,G,N;_.l(function(z){switch(z.nextAddress){case 1:f=_.IO.getInstance();X=_.XH.instance;Q=_.IM.instance;if(!Q)return vph(A,X,t),z.return();_.ht(z,2);A.onLoadingCommand&&X.resolveCommand(A.onLoadingCommand);return z.yield(f.getCurrentPositionFromGeolocation(),4);case 4:q=z.yieldResult;if(!A.resolveLocationCommand){z.jumpTo(5);break}e=f.createLocationInfo(q);return z.yield(_.jl(Q,A.resolveLocationCommand,{locationInfo:e}),6);case 6:G=z.yieldResult;if(!G||"error"in G&&G.error||
G.errorMetadata)return vph(A,X,t),z.return();var T;if(G==null?0:(T=G.onResponseReceivedActions)==null?0:T.length){T=_.U(G.onResponseReceivedActions);for(var O=T.next();!O.done;O=T.next())X.resolveCommand(O.value)}(_.C(A.onSuccessCommand,_.ZT)||_.C(A.onSuccessCommand,_.GD))&&_.s9(t.hostElement,"yt-navigate",{endpoint:A.onSuccessCommand,reload:!0});case 5:_.qq(z,0);break;case 2:N=_.vC(z);if(N instanceof GeolocationPositionError&&N.code===GeolocationPositionError.PERMISSION_DENIED)return A.onDeniedCommand&&
X.resolveCommand(A.onDeniedCommand),z.return();vph(A,X,t);_.LO(z)}})};
vph=function(A,t,f){A.onFailureCommand&&(t.resolveCommand(A.onFailureCommand),_.kJ(f.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
Ep3=function(A,t){var f=_.C(A,_.H6S);if(f&&t){A=f.videoIds||[f.videoId];var X;t=(X=_.s9(t,"yt-lockup-requested",{videoIds:A}).detail)==null?void 0:X.returnValue;var Q;f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Q=t?t:A.map(function(q){return{videoId:q,navigationEndpoint:f.videoCommand}}):t&&(Q=t);
Q&&(X=Q.map(function(q){var e=Object,G=e.assign;var N=q.navigationEndpoint;if(!_.C(N,_.zD)){var z=_.C(N,_.ZT);if(z){if(delete z.index,delete z.playlistId,z=_.C(N==null?void 0:N.commandMetadata,_.Jl),z==null?0:z.url){var T=z.url;T=_.Hs(T,"list");T=_.Hs(T,"index");z.url=T}}else N=void 0}return G.call(e,{},q,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:N})}),pz8(X,f))}};
npm=function(A){var t=_.cR();if(A=_.C(A,_.aoi))A.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&t.clearQueue(),A.closeMiniplayer&&_.Px().resolve(_.DS).close(!0)};
Fa3=function(A){D1w(_.cR(),A)};
IrQ=function(A){var t;(A=(t=_.C(A,_.SUp))==null?void 0:t.setVideoIds)&&A.forEach(function(f){_.Ykl(_.cR(),f)})};
jDm=function(A){x1j(_.cR(),A)};
Y1j=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(A){return!1}};
V73=function(A){var t=["h","m","s"],f=_.ds(t);f.reverse();var X={};A=(A.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(e){var G=(e.match(/[hms]/)||[""])[0];return G?(X[G]=parseInt(e.match(/\d+/)[0],10),!1):!0});
for(A.reverse();A.length&&f.length;){var Q=f.shift();Q in X||(X[Q]=parseInt(A.shift(),10))}if(A.length||X.s>59||X.m>59||X.h>9)return null;var q="";t.forEach(function(e){X[e]&&(q+=""+X[e]+e)});
return q||null};
Zdd=function(A,t){var f=_.Pe7(t,{},A,!0);return new Promise(function(X,Q){f.listenOnce("n",function(){Q(Error("El`"+f.JSC$30038_getErrorDescription()))});
f.listenOnce("l",function(){var q=f.getResponseCode();if(q!==200)Q(Error("Fl`"+t+"`"+A.type+"`"+A.size+"`"+q));else try{X(JSON.parse(f.getResponseText()).encryptedBlobId)}catch(e){Q(e)}});
f.run()})};
opj=function(A){return A.substring(A.indexOf(":")+1,A.indexOf(";"))};
d1m=function(A){return new Promise(function(t,f){var X=new FileReader;X.onloadend=function(){try{var Q=new Uint8Array(X.result);Q.length<8&&f(void 0);var q=Q.subarray(0,8);Q="";for(var e=0;e<q.length;e++)Q+=("0"+q[e].toString(16)).substr(-2);Q.startsWith("ffd8ff")?t("image/jpeg"):Q.startsWith("47494638")?t("image/gif"):Q.startsWith("89504e470d0a1a0a")?t("image/png"):Q.startsWith("424d")?t("image/bmp"):t(void 0)}catch(G){f(G)}};
X.onerror=f;X.readAsArrayBuffer(A)})};
S13=function(A){return new Promise(function(t,f){var X=new Image;X.crossOrigin="anonymous";X.onload=function(){var Q=document.createElement("canvas");Q.width=X.naturalWidth;Q.height=X.naturalHeight;var q=Q.getContext("2d");if(!q)throw Error("Gl");q.drawImage(X,0,0);q=opj(A);Q.toBlob(function(e){e?t(e):f()},q)};
X.src=A})};
Hdy=function(A,t){var f;if(((f=_.C(A,_.zD))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var X;_.s9((X=t.hostElement)!=null?X:t,"yt-shorts-reset");_.lAw(_.Px().resolve(_.on),A).then(function(q){$1l(q,t,A)})}else{var Q;
_.Al((Q=t.hostElement)!=null?Q:t,[A]).then(function(q){q&&$1l(q.data,t,A)})}};
$1l=function(A,t,f){if(A){var X=_.C(A.replacementEndpoint,_.zD);if(X){A.sequenceContinuation&&(X.sequenceParams=A.sequenceContinuation);var Q;_.s9((Q=t.hostElement)!=null?Q:t,"yt-navigate",{endpoint:A.replacementEndpoint})}else if((A==null?void 0:A.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(A==null?0:A.watchStatus)&&_.C(A.watchStatus,_.E4k)){var q;_.s9((q=t.hostElement)!=null?q:t,"yt-navigate",{endpoint:f})}}};
ary=function(A){var t=_.Px().resolve(_.Xk),f=_.Iv.currentPageTypeSelector(t.getState())||"";t=_.Iv.currentPageSubTypeSelector(t.getState())||"";f=f==="ytd-browse"&&t==="home";return _.M("web_guide_entry_enable_cache_for_non_home_pages")?(A=(A==null?void 0:A.navigationEndpoint)&&_.eI(A.navigationEndpoint)==="home",{disableCache:f&&A}):{disableCache:f}};
wzd=function(A,t,f,X){if(t!=null&&t.isPrimary){a:{var Q=t.formattedTitle,q=X===1?t.navigationEndpoint:void 0;if(f&&f.length){var e={};if(Q){var G=void 0;q&&(G={commandContext:{onTap:{innertubeCommand:q||{}}}});e.header={panelHeaderViewModel:{title:_.CI(Q),rendererContext:G}}}Q=[];f=_.U(f);for(q=f.next();!q.done;q=f.next()){G=q.value;q=_.C(G,Kam);G=_.C(G,gp2);var N=void 0,z=void 0;if((N=G)==null?0:(z=N.expandableItems)==null?0:z.length)for(G=_.U(G.expandableItems),N=G.next();!N.done;N=G.next()){N=
N.value.guideEntryRenderer;var T=z=void 0;if(((z=N)==null?void 0:(T=z.icon)==null?void 0:T.iconType)==="VIEW_LIST_CAIRO"){q=N;break}}z=N=void 0;G=((N=q)==null?0:N.formattedTitle)?_.CI((z=q)==null?void 0:z.formattedTitle):void 0;N=void 0;z=(N=q)==null?void 0:N.isPrimary;if(q&&G&&!z){G={title:G};q.navigationEndpoint&&(G.rendererContext={commandContext:{onTap:{innertubeCommand:q.navigationEndpoint}}});N=[];T=z=void 0;if(((z=q)==null?0:(T=z.thumbnail)==null?0:T.thumbnails)&&q.thumbnail.thumbnails.length>
0){z=_.U(q.thumbnail.thumbnails);for(T=z.next();!T.done;T=z.next())N.push({url:T.value.url});G.leadingAccessory={avatarViewModel:{image:{sources:N},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(z=void 0,(z=q.icon)==null?0:z.iconType)N.push({clientResource:{imageName:q.icon.iconType||""}}),G.leadingImage={sources:N};z=N=void 0;((N=q)==null?0:(z=N.badges)==null?0:z.liveBroadcasting)?(G.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",G.trailingImage={sources:[{clientResource:{imageName:"live",
imageColor:4294901760}}]},G.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):q.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?G.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":q.count&&(G.trailingLabel={content:q.count.toString()});Q.push({listItemViewModel:G})}}Q.length!==0?(e.content={listViewModel:{listItems:Q}},X===0&&(e.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):e=void 0;if(e){Q=void 0;X===0&&(Q={preventCloseWhileHovered:!0,
hideDelayMs:3E3});e={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:e}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:Q}}};break a}}e=void 0}X===1&&e?(t.serviceEndpoint=e,t.navigationEndpoint=void 0):X===0&&e&&(t.mouseEnterEndpoint=e,t.mouseLeaveEndpoint={hideSheetCommand:{}});A.push({guideEntryRenderer:t})}};
sD_=function(A){if(!A)return!1;try{if(A.host&&A.host.tagName==="YT-FORMATTED-STRING"&&A.host.id==="contenteditable-textarea"||A.nodeType===Node.ELEMENT_NODE&&A.tagName==="YTD-COMMENT-INPUT")return!0}catch(t){return!1}return sD_(A.parentNode)};
JC=function(A){return A?A.tagName==="A"&&A.href&&A.classList.contains("yt-simple-endpoint"):!1};
kR3=function(A){return A?A.tagName==="IMG"&&A.classList.contains("emoji"):!1};
rJQ=function(A,t,f){if(!A)return null;var X=JC(A);if(X&&f)return t=A.pathname.substring(A.pathname.indexOf("/channel/")+9),document.createTextNode("@"+t);if(X&&!f)return document.createTextNode("");if(kR3(A))return f=A.alt,A=A.dataset.emojiId,!A&&t&&(t=_.A0(t,f))&&t.isCustomEmoji&&(A=t.emojiId),A?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+A+">"):document.createTextNode(f);X=A.cloneNode(!1);for(var Q=0;Q<A.childNodes.length;++Q){var q=rJQ(A.childNodes[Q],t,f);q&&X.appendChild(q)}return X};
A1c=function(A){return A?JC(A)?A:A1c(A.lastChild):null};
tqw=function(A){return A?JC(A)?A:tqw(A.firstChild):null};
fC2=function(A){if(!A)return null;for(var t=A.previousSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.previousSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.previousSibling;else break;(t=A1c(t))?A=t:A=(A=A.parentNode)?A1c(A.previousElementSibling):null;return A};
XIA=function(A){if(!A)return null;for(var t=A.nextSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.nextSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.nextSibling;else break;return(t=tqw(t))?t:XIA(A.parentNode)};
Q12=function(A){var t=_.f8(),f=t.JSC$11434_getStartNode();if(!sD_(f.parentNode))return null;t=t.JSC$11434_getStartOffset();if(f.nodeType===Node.TEXT_NODE){var X=_.Hd(f,JC);if(X){if(A&&t===0||!A&&t===f.length)return X}else{if(A&&t===f.length)return!f||f.nodeName==="BR"||f.nextElementSibling&&_.XI(f.nextElementSibling,"display")==="block"?null:tqw(f.nextElementSibling);if(!A&&t===0)return f?A1c(f.previousElementSibling):null}}if(f.nodeType===Node.ELEMENT_NODE)if(A){if(0<=t&&t<f.childNodes.length)return tqw(f.childNodes[t])}else if(0<
t&&t<=f.childNodes.length)return A1c(f.childNodes[t-1]);return null};
qL2=function(A,t,f){if(!A)return null;if(A.nodeType===Node.TEXT_NODE)if(f){var X=fC2(A);if(X&&!/^\s+\S/.test(A.wholeText.substr(0,t)))return X}else if((X=XIA(A))&&!/\S\s+/.test(A.wholeText.substr(t,A.wholeText.length)))return X;return A.nodeType===Node.ELEMENT_NODE?f?fC2(A.childNodes[t]):XIA(A.childNodes[t]):qL2(A.parentNode,t,f)};
J1A=function(A){if(A.hasChildNodes())switch(A.tagName){case "DIV":case "A":case "SPAN":var t="";for(A=A.firstChild;A;A=A.nextSibling)t+=J1A(A);return t;default:return""}else switch(A.nodeType){case 3:return A.textContent;default:return""}};
UF8=function(A){switch(A){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"}};
eIw=function(A){return A.map(function(t){return{settingsRadioOptionRenderer:{title:_.k7(t.name),asideText:_.k7(t.approximateSize),id:UF8(t.format)}}})};
lCj=function(A){if(A&&A.length!==0)return A.filter(GKw()).map(function(t){return{settingsRadioOptionRenderer:{title:t.name,asideText:t.approximateSize,id:UF8(t.formatType)}}})};
NUj=function(A){if(A)return A.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
uyd=function(A,t){A=new Set(A!=null?A:[]);if(A.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(A.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(A.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(A.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(A.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(t)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
zId=function(A){var t=A.indexOf("(");return t!==-1?A.substring(t+1,A.length-1):A};
_.TUj=function(A,t,f,X,Q){f||(f=Pz3);var q;(q=_.C(f.commandMetadata,_.Jl))!=null&&q.url||(f=Error("Ll`"+JSON.stringify(f)),_.HQ(f),f=Pz3);f=_.VG.unsafeClone(f);q=_.kB(_.C(f.commandMetadata,_.Jl).url,"search_query",A);_.ww(location.href,"sv")==="1"&&(_.C(f,_.lY).params="EgOAAgE%3D",q=_.kB(q,"sv","1"));_.C(f,_.lY)&&(_.C(f,_.lY).query=A);q=q.replace(/%20/g,"+");_.C(f.commandMetadata,_.Jl).url=q;Q=_.M("desktop_enable_entity_suggest")?{entityMid:Q}:{};_.Px().resolve(_.i2).resolveCommand(f,{form:{tempData:Object.assign({},
{gs_l:t,oq:X!=null?X:A},Q),isFromShorts:_.ov()==="shorts"}})};
i3A=function(A){switch(A){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
c1l=function(A,t,f,X,Q,q){var e=_.VG.clone(O33);e.locale=_.ah("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;e.report={description:Q||"<empty>"};Q=_.ah("SBOX_SETTINGS",{});t=t.join(",");var G=Date.now();A={choice_cc:X,choice_id_cc:f,choices_sc:t,gl:Q.REQUEST_DOMAIN,hl:Q.REQUEST_LANGUAGE,query:A,time:G};q&&(A.choice_additional_comment_cc=q);_.B8b(e,A)};
BUd=function(A){var t=new Map;t.set("authuser",_.ah("SESSION_INDEX","0"));return _.cd(A,t)};
CzA=function(A){var t;return _.l(function(f){switch(f.nextAddress){case 1:if(!A||!Mq3(A))return f.return(null);t=null;switch(_.ah("INNERTUBE_CLIENT_NAME")){case "WEB":return f.jumpTo(2);case "WEB_REMIX":t=A.getPlayer()}f.jumpTo(3);break;case 2:return f.yield(A.getPlayerPromise(),4);case 4:t=f.yieldResult;f.jumpTo(3);break;case 3:return f.return(t)}})};
Mq3=function(A){return["ytd-player","ytmusic-player"].includes(String(A.tagName||"").toLowerCase())};
hIy=function(A){A=Math.round(A);return A%2?A-1:A};
RI3=function(A){A=Math.round(A);return A%2===0?A-1:A};
mFd=function(A){var t,f,X;if(A=(t=A.createPlaylistDialogFormSchema)==null?void 0:(f=t.fieldSchemas)==null?void 0:(X=f.title)==null?void 0:X.validationSchema)for(t=[A.syncStep,A.asyncStep].filter(function(Q){return Q!==void 0}),t=_.U(t),f=t.next();!f.done;f=t.next()){f=f.value.rules;
if(!f)break;f=_.U(f);for(f=f.next();!f.done;f=f.next())return _.C(f.value,_.Ljj)}};
W9A=function(A){var t,f,X;if(A=(t=A.createPlaylistDialogFormSchema)==null?void 0:(f=t.fieldSchemas)==null?void 0:(X=f.visibility)==null?void 0:X.validationSchema)for(t=[A.syncStep,A.asyncStep].filter(function(Q){return Q!==void 0}),t=_.U(t),f=t.next();!f.done;f=t.next()){f=f.value.rules;
if(!f)break;f=_.U(f);for(X=f.next();!X.done;X=f.next())if(X=_.C(X.value,b33))return t=void 0,(t=X.translations)==null?void 0:t.visibilityNotValidErrorMessage}};
y18=function(){var A,t;return(t=(A=_.Px().resolve(_.z7(_.FH)))==null?void 0:A())!=null?t:!1};
v63=function(A){var t=21;if(!A)return t;t+=A.headerTitle?27:0;t+=A.headerTitle&&A.hasHeaderActionHeader?4:0;return t+=A.headerTitle&&A.headerSubtitle?16:0};
L9y=function(A){var t=0;if(!A)return t;t+=A.hasFooterPrimaryButton||A.hasFooterSecondaryButton?48:0;t+=A.footerTrailingLabel||A.footerLeadingLabel?30:0;return t+=A.hasFooterPrimaryButton||A.hasFooterSecondaryButton||!A.footerTrailingLabel&&!A.footerLeadingLabel?0:12};
pIm=function(A){var t=new _.Lk,f=A;return{subscribe:function(X){t.subscribe("changed",X)},
dispatch:function(X,Q){var q=f;if(X==="Touch Start")f=Object.assign({},q,{isAnimating:!1,initialY:Q.event.touches[0].clientY});else if(X==="Touch Move"){X=Q.contentScrollable?-1*(q.initialY-24):0;var e,G=(e=Q.headerDivHeight)!=null?e:v63(Q.header),N;e=(N=Q.footerDivHeight)!=null?N:L9y(Q.footer);N=Math.min(Q.fullContentWrapperHeight,Q.heightMap[Q.contentWrapperId]+G-e);f=Object.assign({},q,{currentY:Math.max(X,Q.event.touches[0].clientY-q.initialY),maxHeightForContentWrapper:Math.min(N,Math.max(0,
(q.isFullScreen?N:Q.contentWrapperHeight)-q.currentY))})}else f=X==="Snap To Full Screen"?Object.assign({},q,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Q.maxHeight}):X==="Snap To Neutral Position"?Object.assign({},q,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):X==="Close Sheet"?Object.assign({},q,{isAnimating:!0,currentY:Q.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):q;t.publish("changed",f)}}};
E6_=function(){_.Px().resolve(_.Ak).closeSheet()};
n68=function(A){var t,f,X,Q,q,e,G,N,z,T,O;return{headerTitle:(t=A.headerTitle)==null?void 0:t.call(A),headerSubtitle:(f=A.headerSubtitle)==null?void 0:f.call(A),headerActionHeader:A.headerActionHeader,footerPrimaryButton:A.footerPrimaryButton,footerSecondaryButton:A.footerSecondaryButton,footerButtonType:(X=A.footerButtonType)==null?void 0:X.call(A),footerLeadingLabel:(Q=A.footerLeadingLabel)==null?void 0:Q.call(A),footerTrailingLabel:(q=A.footerTrailingLabel)==null?void 0:q.call(A),shouldShowIcons:(e=
A.shouldShowIcons)==null?void 0:e.call(A),skipContentClick:(G=A.skipContentClick)==null?void 0:G.call(A),additionalClassName:(N=A.additionalClassName)==null?void 0:N.call(A),onClosedCallback:A.onClosedCallback,focusOnClose:(z=A.focusOnClose)==null?void 0:z.call(A),isDisabled:(T=A.isDisabled)==null?void 0:T.call(A),disabledCommand:(O=A.disabledCommand)==null?void 0:O.call(A),headerFn:A.headerFn,contentFn:A.contentFn,footerFn:A.footerFn,hasHeaderFn:A.hasHeaderFn(),hasContentFn:A.hasContentFn(),hasFooterFn:A.hasFooterFn(),
hasFooterPrimaryButton:A.hasFooterPrimaryButton(),hasFooterSecondaryButton:A.hasFooterSecondaryButton(),hasHeaderActionHeader:A.hasHeaderActionHeader()}};
DFy=function(A){switch(A){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""}};
F9j=function(A){switch(A){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""}};
IC8=function(A){switch(A){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""}};
xFy=function(A,t,f){t.forEach(function(X){_.Zv(_.Px().resolve(_.gx),X)});
_.kJ(A,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",f])};
Z3_=function(A,t,f,X){var Q=_.C(f,_.i1).commandLifeCycleConfig;Q&&Q.onStartCommand&&_.tl(A,[Q.onStartCommand],t);_.Dd(t);var q=_.IM.instance;q&&_.xE(q,f)?_.jl(q,f,X).then(function(e){if(!e||(e==null?0:e.error))return e=_.C(f,_.i1).serializedTransactionFlowLoggingParams,_.FI(t),_.OX(new Ur("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",e));_.FI(t);return{data:e}}).then(function(e){_.FI(t);
j1_(e.data);var G=e.data.command;G&&_.tl(A,[G],t);G=YLh(f,e.data);if(!G){var N=e.data;e=!1;if(N&&N.command&&_.C(N.command,_.Xd)){var z;N=((z=_.C(N.command,_.Xd))==null?void 0:z.commands)||[];for(z=0;z<N.length;z++)if(_.C(N[z],_.q5w)){e=!0;break}}e||_.Ky('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!G&&Q&&Q.onSuccessCommand?_.tl(A,[Q.onSuccessCommand],t):G&&Q&&Q.onFailureCommand&&_.tl(A,[Q.onFailureCommand],t)},function(){_.FI(t);
Q&&Q.onFailureCommand&&_.tl(A,[Q.onFailureCommand],t);Vq3(f)}):_.HQ(Error("Xl"),"ERROR")};
o62=function(A,t,f){var X=[t];f&&X.push(f);return _.Al(A,X).then(function(Q){var q=_.C(t,_.i1).serializedTransactionFlowLoggingParams,e=Q.data,G=YLh(t,e);G?Q=_.OX(new Ur(G,q)):j1_(e);return Q},function(){var Q=_.C(t,_.i1).serializedTransactionFlowLoggingParams;
Vq3(t);return _.OX(new Ur("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Q))})};
YLh=function(A,t){A=_.C(A,_.i1).serializedTransactionFlowLoggingParams;var f=null;switch(t.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":f="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":f="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":f="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}f?_.YO(f,A):S7h(A);return f};
Vq3=function(A){_.YO("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.C(A,_.i1).serializedTransactionFlowLoggingParams)};
j1_=function(A){if(A.trackingParams){var t=_.Ws(),f=_.mx();t&&f&&_.x7(t,f,_.zV(A.trackingParams))}};
dFh=function(A,t,f){var X=_.IM.instance,Q=_.YDp(_.ah("YPC_MB_URL")),q=(new _.x00).init(),e=_.jL5(),G=_.C(f,_.tXi).languageCode;G===void 0?_.HQ(Error("Ji"),"ERROR"):_.DX([q,Q]).then(function(){var N={ctk:_.aJ.payments.business.integration.ClientTokenFactory.createClientToken(G,e)};X&&_.xE(X,f)?_.jl(X,f,N).then(function(z){return{data:z}}).then(function(z){_.s9(t,"yt-service-request-completed",z);
z.code!=="ERROR"&&(z=z.data.command)&&_.tl(A,[z],t)}):_.HQ(Error("Xl"),"ERROR")})};
H3l=function(A,t,f,X){var Q=_.IM.instance;Q&&_.xE(Q,f)?_.jl(Q,f,X).then(function(q){return{data:q}}).then(function(q){SLh(A,t,f,q)},function(){$Fm(f)}):(Q=_.Px().resolve(_.z7(_.TD)))&&Q.requestDataForServiceEndpoint(f,X).then(function(q){SLh(A,t,f,q)},function(){$Fm(f)})};
SLh=function(A,t,f,X){_.s9(t,"yt-service-request-completed",X);if(X.code&&X.code=="ERROR")$Fm(f);else{(X=X.data.commands)&&_.tl(A,X,t);var Q;(A=(Q=_.C(f,_.UMT))==null?void 0:Q.serializedYpcPauseFlowLoggingParams)&&A&&_.Va("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",A)}};
$Fm=function(A){var t;(A=(t=_.C(A,_.UMT))==null?void 0:t.serializedYpcPauseFlowLoggingParams)&&A&&_.Va("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
g6j=function(A,t,f){var X=_.IM.instance;X&&_.xE(X,f)?_.jl(X,f).then(function(Q){return{data:Q}}).then(function(Q){aCh(A,t,f,Q)},function(){K9d(f)}):(X=_.Px().resolve(_.z7(_.TD)))&&X.requestDataForServiceEndpoint(f).then(function(Q){aCh(A,t,f,Q)},function(){K9d(f)})};
aCh=function(A,t,f,X){_.s9(t,"yt-service-request-completed",X);X.code&&X.code=="ERROR"?K9d(f):((X=X.data.commands)&&_.tl(A,X,t),(A=_.C(f,_.eQC).serializedYpcResumeFlowLoggingParams)&&A&&_.Va("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",A))};
K9d=function(A){(A=_.C(A,_.eQC).serializedYpcResumeFlowLoggingParams)&&A&&_.Va("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
wIc=function(A){A=A===void 0?{}:A;_.Px().resolve(_.ol2).showFeedbackDialog(A.customProductData,A.feedbackContent,A.onFeedbackSubmitted,A.bucket)};
s1d=function(A){A=A===void 0?{}:A;_.Px().resolve(_.ol2).showHelpDialog(A.helpContext,A.articleId,A.productData)};
kKy=function(){s1d()};
r1d=function(){wIc()};
t$Q=function(A,t,f){var X,Q,q,e,G,N,z;return _.l(function(T){switch(T.nextAddress){case 1:X=_.C(A,AUm);if((Q=X)==null?0:Q.productId){N={productId:X.productId,bucket:X.bucket,enableAnonymousFeedback:(G=X.enableAnonymousFeedback)!=null?G:!0,allowNonLoggedInFeedback:!0};z={feedbackChoice:f.feedbackChoice};if(!_.M("web_collect_offline_state")){T.jumpTo(8);break}_.ht(T,9);return T.yield(rod(z),11)}e={bucket:(q=X)==null?void 0:q.bucket};if(!_.M("web_collect_offline_state")){T.jumpTo(4);break}e.customProductData=
{};_.ht(T,5);return T.yield(rod(e.customProductData),7);case 7:_.qq(T,4);break;case 5:_.vC(T);case 4:wIc(e);T.jumpTo(0);break;case 11:_.qq(T,8);break;case 9:_.vC(T);case 8:_.mjg(z),_.Rf0("GFEEDBACK",z),X.productId==="5295751"&&(z.client_attestation=Number(_.ah("CATSTAT",0))),X.productId==="5295751"&&(z.client_time=Date.now()/1E3/3600),X.productId==="5295751"&&(z.original_playback_id=_.wyp||""),_.B8b(N,z),_.LO(T)}})};
fXm=function(A){if(A=_.C(A,_.Rdz)){var t={bucket:A.bucketIdentifier};A.additionalDatas&&(t.customProductData={},A.additionalDatas.forEach(function(f){if(f=f.userFeedbackEndpointProductSpecificValueData)t.customProductData[f.key]=f.value}));
wIc(t)}};
X_3=function(A){var t=_.XA.getInstance();var f=_.e5("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var X=_.e5("DELETE",void 0,"Delete"),Q=_.e5("CANCEL",void 0,"Cancel");f=Xnl(f,void 0,X,Q,{signal:"DELETE_ALL_DOWNLOADS"});_.Sh(t,[{openPopupAction:f}],A)};
qY3=function(){return _.l(function(A){return A.nextAddress==1?A.yield(_.Px().resolve(_.Nk),2):A.yield(Qb2(),0)})};
JU3=function(A){var t,f;return _.l(function(X){return X.nextAddress==1?(f=(t=_.C(A,_.A4))==null?void 0:t.targetId)?X.yield(_.Px().resolve(_.Nk),3):X.jumpTo(0):X.yield(_.Px().resolve(_.lV).deleteVideo(f),0)})};
eiw=function(A){var t,f;return _.l(function(X){return X.nextAddress==1?(f=(t=_.C(A,_.A4))==null?void 0:t.targetId)?X.yield(_.Px().resolve(_.Nk),3):X.jumpTo(0):X.yield(UUQ(_.Px().resolve(_.lV),f),0)})};
lXd=function(A){var t,f;return _.l(function(X){return(f=(t=_.C(A,_.A4))==null?void 0:t.targetId)?X.yield(GWQ(f),0):X.jumpTo(0)})};
uZQ=function(){_.M("kevlar_woffle_refresh_dl_load_killswitch")||N_8()};
P63=function(){_.M("kevlar_woffle")&&_.Fc.instance&&zil()};
i_Q=function(A){var t;if((t=_.C(A,_.Ga))==null||!t.videoId)return!1;T_l(_.Px().resolve(_.lV),_.C(A,_.Ga),A.clickTrackingParams);return!0};
cUQ=function(A){var t;if((t=_.C(A,_.lj))==null||!t.playlistId)return!1;O_d(_.Px().resolve(_.lV),_.C(A,_.lj),A.clickTrackingParams);return!0};
M$A=function(A){var t=_.C(A,_.dRC);(t==null?void 0:t.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(t==null?void 0:t.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||B_l(_.Px().resolve(_.lV),_.C(A,_.dRC))};
hid=function(A){A=_.C(A,_.Bxi);var t;(A==null?0:(t=A.actions)==null?0:t.length)&&C6j(A)};
b_l=function(A){var t,f;return _.l(function(X){t=_.C(A,Rij);return(f=t)!=null&&f.localWatchHistoryCommandType?X.yield(mU2(t),0):X.return()})};
yUQ=function(){return _.l(function(A){return _.M("kevlar_enable_download_to_mobile")?A.yield(Wkw(),0):A.return()})};
vg2=function(A){setTimeout(function(){requestAnimationFrame(A)},80)};
Lkl=function(A){return Object.entries(A).map(function(t){return t.join(":")}).join(";")};
EgQ=function(A){var t,f,X;_.l(function(Q){if(Q.nextAddress==1)return Q.yield(p_d(),2);t=Q.yieldResult;f=_.XH.instance;switch(t){case "granted":X=A.getLocationCommand;break;case "denied":X=A.openDeniedDialogAction;break;case "prompt":X=A.openCollectionDialogAction;break;default:X=A.openCollectionDialogAction}X&&f.resolveCommand(X);_.LO(Q)})};
p_d=function(){var A,t;return _.l(function(f){if(f.nextAddress==1)return A="prompt",navigator.permissions?f.yield(navigator.permissions.query({name:"geolocation"}),3):f.jumpTo(2);f.nextAddress!=2&&(t=f.yieldResult,A=t.state);return f.return(A)})};
DU_=function(){_.l(function(A){return A.yield(_.ng8(),0)})};
Fkh=function(){var A,t,f;return _.l(function(X){if(X.nextAddress==1)return A=_.Px().resolve(_.iY),A?X.yield(_.jl(A,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.K4(Error("$l")),X.return(void 0));if(t=X.yieldResult){if(t.errorMetadata)return _.K4(Error("am`"+t.errorMetadata.status+"`"+t.error)),X.return(void 0);f=t.datasyncIds;_.fgA=f.length;return X.return(f)}_.K4(Error("bm"));return X.return(void 0)})};
IXc=function(){Fkh().then(function(A){A&&(CP2(A),H1l(A),TeQ(A),tLy(A))})};
xUh=function(A){_.a6.addLowPriorityJob(function(){var t,f,X,Q,q;return _.l(function(e){switch(e.nextAddress){case 1:if(_.M("ytidb_clear_optimizations_killswitch")){e.jumpTo(2);break}t=_.F_("clear");if(t.startsWith("V")&&t.endsWith("||")){var G=[t];CP2(G);H1l(G);TeQ(G);tLy(G);return e.return()}f=i1_();X=fBj();return e.yield(and(),3);case 3:return Q=e.yieldResult,e.yield(hp3(),4);case 4:if(q=e.yieldResult,!(f||X||Q||q))return e.return();case 2:A.isNetworkAvailable()?IXc():A.listenOnce("publicytnetworkstatus-online",
IXc),_.LO(e)}})})};
eE=function(A){A={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.oC(A)}}}};_.XH.instance&&_.XH.instance.resolveCommand(A)};
jbm=function(A){if(A){var t=_.er();_.xz(t,3854,void 0,{layer:0,parentLayer:4});switch(A){case 1:var f=238708;break;case 2:f=238715;break;case 3:f=238710;break;case 6:f=238709}f&&(A=_.UX(t,{veType:f}))&&_.VA(t,A)}};
YYd=function(A){if(A){var t=_.er();_.xz(t,3854,void 0,{layer:0,parentLayer:4});switch(A){case 1:var f=238714;break;case 2:f=238711;break;case 8:f=238709;break;case 7:f=238713;break;case 3:case 4:case 5:f=238712}f&&(A=_.UX(t,{veType:f}))&&_.VA(t,A)}};
V$h=function(A){switch(A.latencyType){case 0:_.b0("consent_primitive_flow");_.Wt("cpit",A.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Wt("cpist",A.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Wt("cprtif",A.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Wt("cprtli",A.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Wt("cprt",A.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Wt("cpdt",A.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Wt("cpjct",A.timestampEpochMillis,"consent_primitive_flow")}};
kWc=function(A,t){var f,X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d;return _.l(function(K){switch(K.nextAddress){case 1:_.ht(K,2);(X=(f=_.C(A,Z_l))==null?void 0:f.serializedConsentRequest)||(X=(Q=_.C(A,ogm))==null?void 0:Q.serializedConsentRequest);X&&(q=dUd(_.sx(X)));if(q===void 0)return K.return();e=SY2(q);e.latencyCallback=V$h;t&&$U3(e,function(){t.then(function(k){k.pauseVideo();(new H_j).increment()})});
return((G=_.C(A,Z_l))==null?void 0:G.consentAction)==="CONSENT_ACTION_PREWARM"||((N=_.C(A,ogm))==null?void 0:N.consentAction)==="CONSENT_ACTION_PREWARM"?K.yield(aXl(e),5):K.yield(Kk_(e),6);case 6:z=K.yieldResult;T=_.cz(z,Gs);if(T===1){if(((O=_.pd(z,ggc,1,Gs))==null?void 0:_.ye(O,1))===1||((c=_.pd(z,ggc,1,Gs))==null?void 0:_.ye(c,1))===2||((B=_.pd(z,ggc,1,Gs))==null?void 0:_.ye(B,1))===3)_.C(A,ogm)?eE(_.e5("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
eE(_.e5("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));jbm((h=_.pd(z,ggc,1,Gs))==null?void 0:_.ye(h,1),_.Nc(z,w_3,3,_.uI()))}else T===2?(((W=sbd(z))==null?void 0:_.ye(W,1))===5?_.C(A,ogm)?eE(_.e5("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):eE(_.e5("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((L=sbd(z))==null?void 0:_.ye(L,1))===1||((E=sbd(z))==null?void 0:_.ye(E,1))===4?
eE(_.e5("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((D=sbd(z))==null?void 0:_.ye(D,1))===7&&((S=q)==null?void 0:(Z=_.Mq(S,ll,4))==null?void 0:_.ye(Z,4))!==1&&eE(_.e5("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),YYd((d=sbd(z))==null?void 0:_.ye(d,1))):eE(_.e5("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));K.jumpTo(5);break;case 5:_.qq(K,0);break;case 2:_.vC(K),eE(_.e5("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.LO(K)}})};
AH3=function(){if(!rUy.has("Worker")){rUy.set("Worker",!0);var A={api:"BROWSER_API_WEB_WORKER"};A.available="Worker"in window?!0:!1;_.SY("apiTest",A)}};
tQ_=function(A){return typeof A==="undefined"?"-1":String(Math.ceil(A/1048576))};
qEy=function(A,t){fW3(new XoQ(_.C(t,QP3).addToken,_.C(t,QP3).commonToken)).then(function(){_.s9(A,"yt-invoke-instrument-manager-action-completed")},function(f){_.s9(A,"yt-invoke-instrument-manager-action-error",f)})};
NS=function(){return _.ah("HTML_DIR")==="rtl"};
JHd=function(){var A,t;return(t=(A=window).matchMedia)==null?void 0:t.call(A,"(prefers-reduced-motion: reduce)").matches};
U3w=function(A){var t=_.Px().resolve(_.z7(_.w4));if(t&&t.isAnyTransitionEnabled){var f={};t.viewTransitionCoordinator.registerElement(A,(f.slide="miniplayer-page-transition",f["lockup-to-watch"]="miniplayer-page-transition",f["learning-journey"]="miniplayer-page-transition",f))}};
e0l=function(A,t,f){return{horizontalAlignment:A.x+f.width/2<t.width/2?"west":"east",verticalAlignment:A.y+f.height/2<t.height/2?"north":"south"}};
lWw=function(A,t,f,X,Q){Q=Q===void 0?new _.ok(0,0):Q;A=GYc(A,t,f,X,!1);return new _.ok(A.x+Q.x,A.y+Q.y)};
GYc=function(A,t,f,X,Q){Q=(Q===void 0?0:Q)?400:0;return new _.ok(A==="west"?16+(NS()?Q:0):f.width-X.width-16-(NS()?0:Q),t==="north"?16:f.height-X.height-16)};
Nzd=function(A,t){var f=0;A&&(f+=76);t&&(f+=285);return f};
uoA=function(A){return _.ID(A)};
z0d=function(A){var t=1;A=A.split(":");for(var f=[];t>0&&A.length;)f.push(A.shift()),t--;A.length&&f.push(A.join(":"));return f};
PRQ=function(A){var t=new _.OY;return _.E1(t,11,A)};
Tzd=function(A){var t={};A=A.getAllResponseHeaders().split("\r\n");for(var f=0;f<A.length;f++)if(!_.Ux(A[f])){var X=z0d(A[f]),Q=X[0];X=X[1];if(typeof X==="string"){X=X.trim();var q=t[Q]||[];t[Q]=q;q.push(X)}}return _.VG.map(t,function(e){return e.join(", ")})};
qn_=function(A,t){return A.JSC$9879_xhr_?A.JSC$9879_xhr_.getResponseHeader(t):null};
iLy=function(A,t){if(A.isDisposed())throw Error("Ea");A.aV.pQ("n");var f=_.ob(A.aV,function(){return A.lfV([t.yj,t.joa,t.l9n,t.x1Y])},"n");
A.aV.dsM(f.length);A.aV.a3();return f};
OLw=function(A,t,f){Array.isArray(f)||(f=[String(f)]);_.REf(A.JSC$10115_queryData_,t,f);return A};
zil=function(){var A=_.Fc.instance;_.l(function(t){return A.deferredInstallPrompt?t.yield(A.deferredInstallPrompt.prompt(),0):t.jumpTo(0)})};
cHh=function(A,t,f){if(_.ST(A))_.X_(A,t,f);else for(A=_.DJT(A);;){var X=A.next();if(X.done)break;t.call(f,X.value,void 0,A)}};
Bz_=function(A,t){var f=[];cHh(t,function(X){try{var Q=_.RW.prototype.getWrapper.call(this,X,!0)}catch(q){if(q=="Storage: Invalid value was encountered")return;throw q;}Q===void 0?f.push(X):_.n7l(Q)&&f.push(X)},A);
return f};
fnh=function(A,t){Bz_(A,t).forEach(function(f){_.RW.prototype.remove.call(this,f)},A)};
MQ2=function(A){var t=_.e4;t._minimumZ=Math.max(t._minimumZ,A)};
CR_=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];h0A=function(A,t){_.ee(A.vm);A.vm=t};
R0d=function(A,t,f,X){A.setState(5);var Q=!!A.gQi&&CR_.includes(_.G7(A.gQi)||"");try{var q=new _.d_({program:t,globalName:f,hrg:{disable:!_.M("att_web_record_metrics")||!_.M("att_skip_metrics_for_cookieless_domains_ks")&&Q,qZ:"aGIf"}});q.mLg.then(function(){A.setState(6);X&&X(t)});
h0A(A,q)}catch(e){A.setState(7),e instanceof Error&&_.K4(e)}};
m32=function(A,t,f,X,Q,q){var e=e===void 0?"trayride":e;f?(A.setState(2),_.DT(_.xC(f),function(){if(window[e])R0d(A,X,e,Q);else{A.setState(3);var G=_.xhz(f),N=document.getElementById(G);N&&(_.RpT(G),N.parentNode.removeChild(N));_.K4(new _.xj("BL:ULB",f))}},q)):t?(q=_.yT("SCRIPT"),t instanceof _.X3?_.Jt(q,t):q.textContent=t,q.nonce=_.fO(document),document.head.appendChild(q),document.head.removeChild(q),window[e]?R0d(A,X,e,Q):(A.setState(4),_.K4(new _.xj("BL:ULBJ")))):_.K4(new _.xj("BL:ULV"))};
bL3=function(){this.state=1;this.vm=null;this.gQi=void 0};
_.J=bL3.prototype;_.J.initialize=function(A,t,f,X){this.gQi=X;if(A.program){var Q;X=(Q=A.interpreterUrl)!=null?Q:null;if(A.interpreterSafeScript)Q=_.$vx(A.interpreterSafeScript);else{var q;Q=(q=A.interpreterScript)!=null?q:null}A.interpreterSafeUrl&&(X=_.KU(A.interpreterSafeUrl).toString());m32(this,Q,X,A.program,t,f)}else _.K4(Error("tf"))};
_.J.isInitialized=function(){return!!this.vm};
_.J.getState=function(){return this.state};
_.J.isLoading=function(){return this.state===2};
_.J.invoke=function(A){A=A===void 0?{}:A;var t;this.vm?t=iLy(this.vm,{yj:A}):t=null;return t};
_.J.dispose=function(){h0A(this,null);this.setState(8)};
_.J.setState=function(A){this.state=A};
var Wm3=function(A,t){return A.vm.snapshot(t)},yHd=function(A,t){var f=_.cx("botguard_async_snapshot_timeout_ms",3E3);
t=t===void 0?{}:t;f=f===void 0?3E3:f;return A.vm?new Promise(function(X,Q){var q=!1,e=_.a6.addJob(function(){q=!0;Q(Error("uf"))},1,f);
A.vm?Wm3(A,{yj:t}).then(function(G){_.a6.cancelJob(e);q||X(G)}).catch(function(G){_.a6.cancelJob(e);
q||Q(G)}):(_.a6.cancelJob(e),X(null))}):Promise.resolve(null)},vw3=["att/log"],Pz3;
Pz3={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var Lm3={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},pod=function(A,t){return _.N_(A,{mode:"readwrite",enableRetries:!0},function(f){return _.czu(f,t,"settingEntity")})},EwQ=function(A,t,f){return _.N_(A,{mode:"readonly",
enableRetries:!0},function(X){return _.pNS(X,t,f)})},nwd=function(A){if(!A.storage)return!1;
a:{if(A.storage){try{var t=A.storage.get("TLPQtimestamp")}catch(f){}A=Number(t);if(!isNaN(A))break a}A=void 0}return A?Date.now()-A<864E5:!1},D3c=function(A){if(A.storage){try{var t=A.storage.get("TLPQindex")}catch(f){}A=Number(t);
if(!isNaN(A))return A}},Fm3=function(A,t){A.queueProxy&&t.forEach(function(f){if(f.videoId&&f.trackingParams&&A.queueProxy instanceof _.lE){var X=_.Ws();
A.queueProxy.attributionData.set(f.videoId,{enqueueingVe:_.zV(f.trackingParams).getAsJson(),enqueueingCsn:X?X:void 0,clientEnqueueingTimeMs:Math.floor((0,_.OJ)()).toString()})}})},IWc=function(A){var t=_.Pqp(A);
t!=A.currentSnapState_&&(A.currentSnapState_=t,A.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},ul=function(A){this.JSC$13311_networkManager_=A;
this.partCallbacks_=[]};
ul.prototype.getCacheKeyForEndpoint=function(A){return _.Jwl(A,!1)};
ul.prototype.onPartsCallback_=function(A){this.partCallbacks_.forEach(function(t){A&&t(A)})};
var zs=function(A,t,f){ul.call(this,A);this.player_=t;this.autoplayData_=f};
_.R(zs,ul);zs.prototype.getCacheKeyForEndpoint=function(A){return _.Jwl(A,!!this.autoplayData_)};
zs.prototype.getTempData=function(A,t){t=t.timeBeforeNextVideo;A={itct:A.clickTrackingParams,lact:_.iX(),pbis:t,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(A.autonav=1);return A};
zs.prototype.getXhrParams=function(A){return Object.assign({pbj:"prefetch"},A)};
zs.prototype.getParams=function(A){A={frags:A.fragmentsRequested.join(",")};_.M("kevlar_droppable_prefetchable_requests")&&(A.prefetch=1);return A};
var x3Q=function(A){A.playerEvents_.forEach(function(t){A.player.removeEventListener(t.eventName,t.callback)});
A.playerEvents_.length=0},jPl=function(A,t,f){this.player=A;
this.JSC$13321_taskManager=t;this.prefetchDelay=f;this.completionResolver_=null;this.playerEvents_=[]};
jPl.prototype.start=function(){var A=this;this.completionResolver_=_.YE();_.FZ(this.completionResolver_.promise,function(){x3Q(A);A.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var YEh=function(A,t,f){A.player.addEventListener(t,f);A.playerEvents_.push({eventName:t,callback:f})},VQA={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},ZLd={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},owh=function(A,t,f){jPl.call(this,A,t,f);this.cueId_="playbackTrigger-"+Math.random()};
_.R(owh,jPl);
owh.prototype.prepareTrigger=function(A){var t=this,f=this.player.getDuration(),X=this.player.getVideoData(),Q=X.isLive&&X.hasProgressBarBoundaries;if(Q&&X.progressBarEndPositionUtcTimeMillis){var q=X.progressBarEndPositionUtcTimeMillis/1E3;isNaN(q)||(f=q)}var e=0;this.prefetchDelay>=0?Q?X.progressBarStartPositionUtcTimeMillis&&(X=X.progressBarStartPositionUtcTimeMillis/1E3,isNaN(X)||(e=X+this.prefetchDelay)):e=this.prefetchDelay:e=f+this.prefetchDelay;Q?this.player.addUtcCueRange(this.cueId_,e,f):
this.player.addCueRange(this.cueId_,e,f);_.FZ(A.promise,function(){t.player.removeCueRange(t.cueId_)});
YEh(this,"onCueRangeEnter",function(G){G==t.cueId_&&A.resolve(f-e)})};
var d3h=function(A,t){A.fragmentConfiguration_[t].requiredKeys.every(function(f){return!!A.prefetchedData_[f]})&&(A.validatedFragments_.push(t),t=A.missingFragments_.indexOf(t),t!==-1&&A.missingFragments_.splice(t,1))},SE2=function(A){A.prefetchedFragments_.forEach(function(t){d3h(A,t)})},$3y=function(A,t,f){this.pageFragments_=A;
this.prefetchedFragments_=t;this.fragmentConfiguration_=ZLd;this.prefetchedData_=f;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;SE2(this)},HL2=function(){},aWd=function(A){this.JSC$13335_playlistManager_=A};
_.R(aWd,HL2);aWd.prototype.getPrefetchEndpoint=function(){return this.JSC$13335_playlistManager_.getAutoplayEndpoint()};
var Kmc=function(A){this.autonavEndpoints_=A};
_.R(Kmc,HL2);Kmc.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var gwj=function(A,t,f,X,Q){this.autonavEndpoints=A;this.foregroundTrigger=t;this.backgroundTrigger=f;this.pageType=X;this.isInPlaylist=Q},wod=function(A,t){if(A.webPrefetchData&&A.webPrefetchData.navigationEndpoints&&A.webPrefetchData.navigationEndpoints.length){A=A.webPrefetchData.navigationEndpoints;
var f=_.C(A[0],_.ZT);if(f.watchEndpointSupportedPrefetchConfig&&f.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var X=f.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;f=X.playbackRelativeSecondsPrefetchCondition;f=typeof f==="number"&&Math.abs(f)<t.videoDuration?f:void 0;X=X.countdownUiRelativeSecondsPrefetchCondition;X=typeof X!=="number"||_.M("prefetch_job_config_cleanup_ks")&&t.inPlaylist?void 0:X;if(typeof X==="number")return new gwj(A,t.makeUpNextTrigger(X),t.makePlaybackTrigger(X),
"watch",t.inPlaylist);if(typeof f==="number")return new gwj(A,t.makePlaybackTrigger(f),null,"watch",t.inPlaylist)}}},sPm=function(A){return A.prefetchJobConfig_.backgroundTrigger?_.r9(_.D2p)()==0?A.prefetchJobConfig_.backgroundTrigger:A.prefetchJobConfig_.foregroundTrigger:A.prefetchJobConfig_.foregroundTrigger},kYh=function(A){_.L_(document,"visibilitychange",A.onVisibilityChange_,!1,A)},PK=function(A){ul.call(this,A)};
_.R(PK,ul);PK.prototype.getCacheKeyForEndpoint=function(A){return ul.prototype.getCacheKeyForEndpoint.call(this,A)};
PK.prototype.getTempData=function(){return{}};
PK.prototype.getXhrParams=function(A){return A};
PK.prototype.getParams=function(){return{}};
var rH_=function(A,t,f){var X=A.prefetchDelay*1E3;if(Math.abs(X)>t)f.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Q=X,q=t-X;X<0&&(Q=t+X,q=Math.abs(X));var e=A.JSC$13321_taskManager.addJob(function(){f.resolve(q/1E3)},10,Q);
f.promise.thenCatch(function(){A.JSC$13321_taskManager.cancelJob(e)})}},A93=function(A,t,f){jPl.call(this,A,t,f)};
_.R(A93,jPl);A93.prototype.prepareTrigger=function(A){var t=this;YEh(this,"onAutonavCoundownStarted",function(f){rH_(t,f,A)})};
var th3=function(A){A.pendingPrefetchJob_&&(A.pendingPrefetchJob_.cancel(),A.pendingPrefetchJob_=null)},fzl=function(A,t,f){if(!A.triggeredTargets.has(t)){var X=_.D5i(A,t);
X.action=f;_.EKp(A,t,X)}},X0w=function(A){_.RVl();
_.$2b("cpt")&&_.K4(Error("mh"));_.Xb.requestAnimationFrame(function(){_.Xb.setTimeout(function(){_.Wt("cpt");var t=_.Lf("vpl"),f=_.Lf("cpt");t&&f&&_.Wt("ol",Math.max(t,f))})});
try{_.Wt("fr_s"),A()}catch(t){_.HQ(t)}_.Xb.requestAnimationFrame(function(){_.Wt("bcp")})},QR3=function(A,t){A.serviceEndpointHandlers.push(t)},qAw=function(A,t){t=A.pendingPages_.indexOf(t);
t>-1&&A.pendingPages_.splice(t,1)},J9Q=function(A,t){var f=_.s5i.indexOf(t);
f>-1&&_.s5i.splice(f,1);A.targetPage_==t?(A.abort(),_.rx8(A)):qAw(A,t)},UH3=function(A,t,f,X){t={challenge:t};
f&&(t.webResponse=f);return _.uE(A.innertubeTransportService,t,_.HE(vw3),X)},e6d=function(A,t,f){if(!t.challenge)throw Error("ri");
if(t.botguardData&&t.botguardData.program){var X=new bL3;X.initialize(t.botguardData,function(){yHd(X,{atr_challenge:t.challenge}).then(function(Q){if(!Q)throw Error("si");return UH3(A,t.challenge,Q,f)}).catch(function(Q){_.K4(Q);
return UH3(A,t.challenge,void 0,f)})},void 0)}else UH3(A,t.challenge,void 0,f)},GEm=function(A,t,f){var X={};
t.ids&&(X.ids=[].concat(_.YV(t.ids)));t.engagementType&&(X.engagementType=t.engagementType);return _.uE(A.innertubeTransportService,X,_.HE(_.a7S),f).then(function(Q){if(!Q)throw new _.xj("GetAttestationChallenge returned falsy");e6d(A,Q,f)}).thenCatch(function(Q){_.HQ(Q)})},lzQ=function(A,t,f){return new _.yy(function(X,Q){var q;
return _.l(function(e){if(e.nextAddress==1){var G=e.yield,N=t.engagementType,z=t.ids,T={};z=_.U(z!=null?z:[]);for(var O=z.next();!O.done;O=z.next())O=O.value,O.encryptedVideoId?T.encryptedVideoId=O.encryptedVideoId:O.externalChannelId?T.externalChannelId=O.externalChannelId:O.commentId?T.commentId=O.commentId:O.externalOwnerId?T.externalOwnerId=O.externalOwnerId:O.artistId?T.artistId=O.artistId:O.playlistId?T.playlistId=O.playlistId:O.externalPostId?T.externalPostId=O.externalPostId:O.shareId&&(T.shareId=
O.shareId);return G.call(e,fY8(N,T),2)}q=e.yieldResult;if(!q.challenge)return _.K4(Error("ti")),GEm(A,t,f).then(X,Q),e.return();G=q;N={challenge:G.challenge};N.webResponse=G.webResponse;N.engagementType=t.engagementType;N.ids=t.ids;_.uE(A.innertubeTransportService,N,_.HE(vw3),f).then(X,Q);_.LO(e)})})},x1j=function(A,t){var f,X,Q,q;
_.l(function(e){if(e.nextAddress==1){f=_.C(t,_.g3i);if(!(f&&f.listId&&A.response&&A.response.playingVideoId)||A.listId!==f.listId)return e.return();A.index===void 0&&(A.index=0);return e.yield(_.i7p(A.JSC$13174_playlistNetworkManager,f.listId,A.index,A.response.playingVideoId),2)}X=e.yieldResult;if(!X)return e.return();Q=X.playlistId;q=X.playlistPanelRenderer;A.setPlaylistData(Q,q,X.autoplayRenderer);_.LO(e)})},N8A=function(A,t,f){var X=A.getParams(f),Q=_.AEl(t,X),q=A.getTempData(t,f);
q.endpoint=JSON.stringify(t);_.M("enable_unknown_lact_fix_on_html5")&&(_.Px().resolve(_.PO),q.lact=_.iX());var e={headers:{"X-YouTube-STS":_.ah("STS"),"x-youtube-csoc":1}};_.$J(Q,q);return new _.yy(function(G,N){var z=A.getXhrParams(X),T;_.M("kevlar_cache_on_ttl_player")&&(T=_.Px().resolve(_.Cs));T&&_.Uc_(T,t)?_.zLA(T,t,q,window.location.href).then(function(O){O?G(O):N()},N):_.aIT(A.JSC$13311_networkManager_,t,z,A.onPartsCallback_.bind(A),e).then(function(O){O?G(O):N()},N)})},ug3=function(A,t){A.triggerPromise_=
t.start();
A.triggerPromise_.then(function(f){var X=A.prefetchEndpointProvider_.getPrefetchEndpoint();if(X){var Q=VQA[A.prefetchJobConfig_.pageType].prefetchedFragments;A.prefetchRequestPromise_=N8A(A.JSC$13347_networkPrefetchRequest_,X,{fragmentsRequested:Q,timeBeforeNextVideo:f});A.prefetchResponseCacheKey_=A.JSC$13347_networkPrefetchRequest_.getCacheKeyForEndpoint(X);kYh(A);A.prefetchRequestPromise_.then(function(q){A.storePrefetchedDataCallback_(A.prefetchResponseCacheKey_,q);if(_.M("web_prefetch_preload_video")&&
Q.length===1&&Q[0]==="pl"&&q&&!q.playerAds&&!q.adPlacements){var e=_.C(X,_.zD),G=e!=null,N={raw_player_response:q,watch_endpoint:e};(q=_.Px().resolve(G?_.kyi:_.re))&&X&&q.then(function(z){G&&_.M("web_queue_preload_video")?(N.prefer_gapless=!0,z.queueNextVideo(N)):z.preloadVideoByPlayerVars(N)})}})}})},Ts=function(A,t,f,X){this.prefetchEndpointProvider_=A;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=t;this.prefetchJobConfig_=f;this.JSC$13347_networkPrefetchRequest_=X;this.prefetchResponseCacheKey_=null};
Ts.prototype.enqueue=function(){this.triggerPromise_||(ug3(this,sPm(this)),_.TV(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Ts.prototype.resolve=function(){this.cancel()};
Ts.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.");kYh(this)};
Ts.prototype.onVisibilityChange_=function(){var A=this;_.r9(_.D2p)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){A.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||ug3(this,sPm(this))};
var z62=function(A,t,f,X,Q){t&&(t==null?0:t.videoId)&&f&&f.entries&&_.M("kevlar_enable_shorts_prefetch_in_sequence")&&(th3(A),t=f.entries.map(function(q){var e;return(e=_.C(q.command,_.zD))==null?void 0:e.videoId}).indexOf(t.videoId),f=f.entries[t+1],f!=null&&f.command&&!_.C(f==null?void 0:f.command,_.JM)&&(X=new gwj([f.command],new owh(X,_.a6,1),null,"shorts",!1),A.pendingPrefetchJob_=new Ts(new Kmc(X.autonavEndpoints),function(){return!1},X,new PK(Q)),A.pendingPrefetchJob_.enqueue()))},Pe3=function(A,
t,f,X,Q,q){var e=_.WX.getInstance();
if(!_.M("block_all_player_prefetch_requests")){th3(A);var G=!!f.getPlaylistId(),N=f.getVideoData().isLive&&f.getVideoData().hasProgressBarBoundaries;if((e.getState()==2||G||N)&&(!f.getVideoData().isLive||N)){e={inPlaylist:G,videoDuration:f.getDuration(),makeUpNextTrigger:function(T){return new A93(f,_.a6,T)},
makePlaybackTrigger:function(T){return new owh(f,_.a6,T)}};
var z=wod(t,e);z&&(A.pendingPrefetchJob_=new Ts(z.isInPlaylist?new aWd(Q):new Kmc(z.autonavEndpoints),function(T,O){O=new $3y(VQA[z.pageType].pageFragments,VQA[z.pageType].prefetchedFragments,O);return _.hOS(O)?(A.prefetchCache_.set(T,O),!0):!1},z,new zs(X,f,q,Q)),A.pendingPrefetchJob_.enqueue())}}},T88=function(){var A=_.cR();
A.signals.parkOrScheduleJob(function(){var t=A.storage;if(t.storage)if(nwd(t)){var f=t.getPlaylistId();t=D3c(t);f=!!f&&t!==void 0}else t.clear(),f=!1;else f=!1;if(f){f=A.JSC$13174_pageManager.isOnWatch();a:{var X=A.storage;if(X.storage&&nwd(X)&&(t=X.getPlaylistId(),X=D3c(X),t&&X!==void 0)){f={recoverPlaylistCommand:{listId:t,index:X,openMiniplayer:!f,openListPanel:f,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}f=void 0}f&&_.Sh(A.JSC$13174_actionRouter,[f],null)}},0,"ma")},irj=function(A,t,f,
X,Q,q){var e=_.Xl(7111);
_.jN(A.JSC$18690_screenManager,e,q?_.zV(q):void 0);_.VA(A.JSC$18690_screenManager,e,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:X,offlineId:t,offlineabilityFormatType:f,isDefaultFormatType:Q==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Q}})},Ory=function(A,t,f,X,Q){var q,e,G,N,z;
return _.l(function(T){if(T.nextAddress==1)return T.yield(A.JSC$18690_playerApiPromise,2);q=T.yieldResult;irj(A,t,f,"OFFLINE_OBJECT_TYPE_PLAYLIST",X,Q);if(G=_.jQk[A.entityTypeMap.listEntityType])z={},e=(z[G]={maximumDownloadQuality:(N=f)!=null?N:void 0},z);return T.yield(q.queueOfflineAction(t,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),0)})},c93=function(A,t){var f,X,Q,q;
return _.l(function(e){if(e.nextAddress==1)return e.yield(A.JSC$18690_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3){f=e.yieldResult;if(!f)return _.K4(new _.xj("PES is undefined")),e.return();X=_.QQ(t,"downloadStatusEntity");return e.yield(EwQ(f,X,"downloadStatusEntity"),3)}Q=e.yieldResult;return e.return((q=Q)==null?void 0:q.downloadState)})},B8d=function(A,t,f,X,Q){var q,e,G,N,z,T;
return _.l(function(O){switch(O.nextAddress){case 1:return O.yield(A.JSC$18690_playerApiPromise,2);case 2:q=O.yieldResult;irj(A,t,f,"OFFLINE_OBJECT_TYPE_VIDEO",X,Q);if(G=_.jQk[A.entityTypeMap.singleEntityType])z={},e=(z[G]={maximumDownloadQuality:(N=f)!=null?N:void 0},z);return O.yield(c93(A,t),3);case 3:T=O.yieldResult;if(T!=="DOWNLOAD_STATE_USER_DELETED"){O.jumpTo(4);break}return O.yield(A.deleteVideo(t),4);case 4:return O.yield(q.queueOfflineAction(t,A.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
e),0)}})},Mhl=function(A,t,f,X,Q){return _.l(function(q){return q.nextAddress==1?q.yield(A.deleteVideo(t,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):q.yield(B8d(A,t,f,X,Q),0)})},Cej=function(A,t,f){var X,Q;
return _.l(function(q){if(q.nextAddress==1)return q.yield(A.JSC$18690_playerApiPromise,2);X=q.yieldResult;Q=_.QQ(t,"mainVideoDownloadStateEntity");return q.yield(X.updateDownloadState(Q,f),0)})},GWQ=function(A){var t=_.Px().resolve(_.lV);
return _.l(function(f){if(f.nextAddress==1)return t.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&t.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?f.jumpTo(2):f.yield(t.resumeVideoDownload(A),2);if(f.nextAddress!=4)return f.yield(Cej(t,A,t.previousDownloadStateForVideo[A]),4);delete t.previousDownloadStateForVideo[A];_.LO(f)})},UUQ=function(A,t){var f;
return _.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$18690_playerApiPromise,2);f=X.yieldResult;return X.yield(f.queueOfflineAction(t,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},Qb2=function(){var A=_.Px().resolve(_.lV),t,f;
return _.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$18690_playerApiPromise,2);if(X.nextAddress!=3)return t=X.yieldResult,f={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},X.yield(t.queueOfflineAction("!*$_ALL_ENTITIES_!*$",A.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",f),3);var Q=A.JSC$18690_commandHandler,q=Q.resolveCommand,e=_.e5("DELETING_ALL",void 0,"Downloads are being deleted");q.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.w0(e)}},
popupType:"TOAST"}});_.LO(X)})},h6y=function(A,t){var f,X,Q,q,e,G;
return _.l(function(N){if(N.nextAddress==1)return N.yield(A.JSC$18690_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return f=N.yieldResult,f?N.yield(EwQ(f,_.M_,"downloadsPageViewConfigurationEntity"),3):(_.K4(new _.xj("PES is undefined")),N.return());Q=(X=N.yieldResult)!=null?X:{};G=(e=(q=Q)==null?void 0:q.downloadsUpsellBannerVisibility)!=null?e:{};return G.visibleWithConnection?N.yield(t.refreshAllStaleEntities(0),0):N.jumpTo(0)})},R6y=function(A){var t,f;
return _.l(function(X){if(X.nextAddress==1)return X.yield(A.JSC$18690_prefStorage,2);t=X.yieldResult;return X.return((f=t)==null?void 0:f.get("sdois"))})},mHc=function(A){var t,f,X,Q,q,e;
return _.l(function(G){if(G.nextAddress==1)return G.yield(A.JSC$18690_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3){t=G.yieldResult;if(!t)return _.K4(new _.xj("PES is undefined")),G.return();f=_.QQ("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return G.yield(EwQ(t,f,"settingEntity"),3)}X=G.yieldResult;return G.return((e=(Q=X)==null?void 0:(q=Q.settingOptionValue)==null?void 0:q.boolValue)!=null?e:!1)})},br3=function(A,t){var f,X,Q,q;
return _.l(function(e){switch(e.nextAddress){case 1:return((f=t)==null?void 0:f.formatType)===void 0?e.return():e.yield(A.JSC$18690_prefStorage,2);case 2:X=e.yieldResult;if(X===void 0)return e.return();if(((Q=t)==null?void 0:Q.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return e.yield(X.set("lmqf",t.formatType),8);if(((q=t)==null?void 0:q.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){e.jumpTo(0);break}return e.yield(X.set("lmqf",t.formatType),6);case 6:return e.yield(X.set("lmqflst",
Math.floor((0,_.OJ)())),0);case 8:return e.yield(X.remove("lmqflst"),0)}})},W1_=function(A){var t,f;
return _.l(function(X){switch(X.nextAddress){case 1:return X.yield(A.JSC$18690_prefStorage,2);case 2:t=X.yieldResult;if(!t){X.jumpTo(3);break}return X.yield(t.get("lmqflst"),4);case 4:if(f=X.yieldResult,f!==void 0)return X.return(f);case 3:return X.return(0)}})},y9w=function(A){var t,f,X;
return _.l(function(Q){return Q.nextAddress==1?Q.yield(A.JSC$18690_prefStorage,2):Q.nextAddress!=3?(t=Q.yieldResult,Q.yield((f=t)==null?void 0:f.get("ldtmes"),3)):Q.return((X=Q.yieldResult)!=null?X:!1)})},Wkw=function(){var A=_.Px().resolve(_.lV),t;
return _.l(function(f){if(f.nextAddress==1)return f.yield(A.JSC$18690_prefStorage,2);t=f.yieldResult;return t===void 0?f.return():f.yield(t.set("ldtmes",!0),0)})},vdQ=function(A){var t,f;
return _.l(function(X){switch(X.nextAddress){case 1:return X.yield(A.JSC$18690_prefStorage,2);case 2:t=X.yieldResult;if(t===void 0){X.jumpTo(3);break}return X.yield(t.get("lmqf"),4);case 4:if(f=X.yieldResult,f!==void 0)return X.return(f);case 3:return X.return("SD")}})},O_d=function(A,t,f){var X,Q,q,e,G,N,z,T;
_.l(function(O){switch(O.nextAddress){case 1:return O.yield(br3(A,(X=t)==null?void 0:X.actionParams),2);case 2:Q=t.playlistId;if(!Q)return O.return();if(t.action==="ACTION_ADD")return((e=t.actionParams)==null?0:e.formatType)?O.yield(Ory(A,Q,t.actionParams.formatType,(T=t.actionParams)==null?void 0:T.settingsAction,f),0):O.yield(A.offlineWebClientEligibility,14);if(t.action==="ACTION_REMOVE_WITH_PROMPT"){var c=A.JSC$18690_commandHandler,B=c.resolveCommand,h=_.ah("INNERTUBE_CLIENT_NAME");var W=h===
"WEB_REMIX"?_.e5("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.e5("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var L=h==="WEB_REMIX"?[_.e5("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];h=h==="WEB_REMIX"?_.e5("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.e5("DELETE",void 0,"Delete");var E=_.e5("CANCEL",void 0,"Cancel");W=Xnl(W,L,h,E,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Q});B.call(c,{openPopupAction:W});return O.return()}if(t.action===
"ACTION_REMOVE")return O.yield(UUQ(A,Q),0);if(t.action!=="ACTION_SYNC"){O.jumpTo(0);break}return O.yield(A.JSC$18690_playerApiPromise,9);case 9:return q=O.yieldResult,O.yield(q.queueOfflineAction(Q,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return G=O.yieldResult,O.yield(vdQ(A),15);case 15:return N=O.yieldResult,O.yield(W1_(A),16);case 16:z=O.yieldResult,t.onAddCommand&&A.JSC$18690_commandHandler.resolveCommand(t.onAddCommand,{form:{preferredFormatType:N,
offlineWebClientEligibility:G,lastOfflineQualitySettingsSavedMs:z.toString()}}),O.jumpTo(0)}})},T_l=function(A,t,f){var X,Q,q,e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z,d,K;
_.l(function(k){switch(k.nextAddress){case 1:return k.yield(br3(A,(X=t)==null?void 0:X.actionParams),2);case 2:Q=t.videoId;if(!Q)return k.return();if(t.action==="ACTION_REMOVE_WITH_PROMPT"){var Gz=A.JSC$18690_commandHandler,Tz=Gz.resolveCommand,y5=_.ah("INNERTUBE_CLIENT_NAME");var cp=y5==="WEB_REMIX"?_.e5("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.e5("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var iu=y5==="WEB_REMIX"?[_.e5("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];y5=y5==="WEB_REMIX"?_.e5("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.e5("DELETE",void 0,"Delete");var Fb=_.e5("CANCEL",void 0,"Cancel");cp=Xnl(cp,iu,y5,Fb,{signal:"DELETE_DOWNLOAD",targetId:Q});Tz.call(Gz,{openPopupAction:cp});return k.return()}if(t.action==="ACTION_ADD")return((D=t.actionParams)==null?0:D.formatType)?k.yield(B8d(A,Q,t.actionParams.formatType,(K=t.actionParams)==null?void 0:K.settingsAction,f),0):k.yield(A.offlineWebClientEligibility,
28);if(t.action==="ACTION_RETRY")return k.yield(vdQ(A),24);if(t.action==="ACTION_PAUSE")return k.yield(A.pauseVideoDownload(Q),0);if(t.action==="ACTION_RESUME")return k.yield(A.resumeVideoDownload(Q),0);if(t.action==="ACTION_REMOVE")return k.yield(c93(A,Q),18);if(!_.M("kevlar_enable_download_to_mobile")){k.jumpTo(0);break}q=_.C(t.onAddCommand,_.de);G=(e=q)==null?void 0:e.isCrossDeviceDownload;if(!t.onAddCommand||!G){k.jumpTo(0);break}N="HD";return k.yield(W1_(A),16);case 16:return z=k.yieldResult,
k.yield(y9w(A),17);case 17:T=k.yieldResult;A.JSC$18690_commandHandler.resolveCommand(t.onAddCommand,{form:{preferredFormatType:N,lastOfflineQualitySettingsSavedMs:z.toString(),downloadToMobileEduShown:T}});k.jumpTo(0);break;case 18:return O=k.yieldResult,A.previousDownloadStateForVideo[Q]=(c=O)!=null?c:"DOWNLOAD_STATE_UNKNOWN",k.yield(Cej(A,Q,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(A.previousDownloadStateForVideo[Q]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&A.previousDownloadStateForVideo[Q]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){k.jumpTo(20);break}return k.yield(A.pauseVideoDownload(Q),20);case 20:Gz=_.e5("DELETED_VIDEO",void 0,"Video deleted from downloads.");Tz=_.e5("UNDO_ACTION",void 0,"Undo");cp=_.e5("CLOSE",void 0,"Close");B={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.w0(Gz),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.w0(Tz),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:Gz+" "+Tz}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:cp}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};A.JSC$18690_commandHandler.resolveCommand(B);
k.jumpTo(0);break;case 24:h=k.yieldResult;h==="UNKNOWN_FORMAT_TYPE"&&(h="SD");W="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((L=t.actionParams)==null?0:L.formatType)h=t.actionParams.formatType,W=(E=t.actionParams)==null?void 0:E.settingsAction;return k.yield(Mhl(A,Q,h,W,f),25);case 25:return k.return();case 28:return S=k.yieldResult,k.yield(vdQ(A),29);case 29:return Z=k.yieldResult,k.yield(W1_(A),30);case 30:d=k.yieldResult,t.onAddCommand&&A.JSC$18690_commandHandler.resolveCommand(t.onAddCommand,
{form:{preferredFormatType:Z,offlineWebClientEligibility:S,lastOfflineQualitySettingsSavedMs:d.toString()}}),k.jumpTo(0)}})},L1Q=function(A,t){var f,X,Q,q,e,G,N;
return _.l(function(z){if(z.nextAddress==1)return z.yield(A.JSC$18690_persistentStorePromiseAccessor(),2);f=z.yieldResult;if(!f)return _.K4(new _.xj("PES is undefined")),z.return();if((X=t)==null||!X.settingItemId)return z.return();Q=t;q=Q.settingItemId;e=Q.boolValue;G=_.QQ(q,"settingEntity");N={key:G,settingOptionValue:{boolValue:e}};return z.yield(pod(f,N),0)})},p0Q=function(A,t){var f,X,Q,q,e,G,N;
return _.l(function(z){switch(z.nextAddress){case 1:return z.yield(A.JSC$18690_prefStorage,2);case 2:return f=z.yieldResult,X=_.NJ(),z.yield(A.JSC$18690_persistentStorePromiseAccessor(),3);case 3:return Q=z.yieldResult,f?Q?z.yield(f.get("sdois"),4):(_.K4(new _.xj("PES is undefined")),z.return()):(_.K4(new _.xj("prefStorage is undefined")),z.return());case 4:q=z.yieldResult;G=(e=t)==null?void 0:e.boolValue;G===void 0||_.M("kevlar_set_sd_enabled_flag_killswitch")||_.u0(0,197,!0);q===void 0&&G===void 0&&
(G=!1);if(G===void 0){z.jumpTo(0);break}return z.yield(f.set("sdois",G),6);case 6:return _.M("kevlar_set_sd_enabled_flag_killswitch")||(_.u0(0,196,G),X.save()),N={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:G},z.yield(L1Q(A,N),0)}})},Ed_=function(A,t,f){var X,Q,q,e,G;
return _.l(function(N){switch(N.nextAddress){case 1:return N.yield(R6y(A),2);case 2:return X=N.yieldResult,N.yield(p0Q(A,f),3);case 3:return N.yield(R6y(A),4);case 4:return Q=N.yieldResult,q=Q!==X,N.yield(mHc(A),5);case 5:e=N.yieldResult&&!_.M("kevlar_modern_downloads_page");if((G=!Q&&!e)||q)return N.yield(t.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);N.jumpTo(0)}})},N_8=function(){var A=_.Px().resolve(_.lV),
t;
_.l(function(f){switch(f.nextAddress){case 1:return f.yield(A.JSC$18690_playerApiPromise,2);case 2:t=f.yieldResult;if(!_.M("kevlar_force_refresh_smart_downloads")){f.jumpTo(3);break}return f.yield(t.refreshAllStaleEntities(0),4);case 4:return f.return();case 3:return f.yield(t.refreshAllStaleEntities(),5);case 5:return f.yield(Ed_(A,t),6);case 6:if(_.M("enable_download_pep_for_premium_countries_web"))return f.yield(h6y(A,t),0);f.jumpTo(0)}})},B_l=function(A,t){var f,X;
_.l(function(Q){switch(Q.nextAddress){case 1:return Q.yield(A.JSC$18690_playerApiPromise,2);case 2:f=Q.yieldResult;switch((X=t)==null?void 0:X.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Q.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Q.jumpTo(4)}Q.jumpTo(0);break;case 3:return Q.yield(Ed_(A,f,t),6);case 6:Q.jumpTo(0);break;case 4:return Q.yield(L1Q(A,t),7);case 7:Q.jumpTo(0)}})},nd3=function(A,t){var f,X,Q;
return _.l(function(q){if(q.nextAddress==1)return q.yield(A.JSC$18690_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3){f=q.yieldResult;if(!f)return _.K4(new _.xj("PES is undefined")),q.return(!1);if(!t)return q.return(!1);X=_.QQ(t,"mainVideoEntity");return q.yield(EwQ(f,X,"mainVideoEntity"),3)}Q=q.yieldResult;return q.return(Q!==void 0)})},C6j=function(A){var t=_.Px().resolve(_.lV),f,X,Q,q,e,G,N,z,T,O,c;
_.l(function(B){switch(B.nextAddress){case 1:return B.yield(t.JSC$18690_playerApiPromise,2);case 2:f=B.yieldResult;Q=(X=A)==null?void 0:X.actions;if(!Q)return B.return();q=_.U(Q);e=q.next();case 3:if(e.done){B.jumpTo(0);break}G=e.value;z=N=void 0;if(!(((N=G)==null?0:N.entityKey)&&((z=G)==null?0:z.actionType))){B.jumpTo(4);break}T=_.tR(G.entityKey);O=T.entityId;c=T.entityType;return B.yield(f.queueOfflineAction(O,c,G.actionType),4);case 4:e=q.next(),B.jumpTo(3)}})},DHw=function(A,t){var f,X,Q,q,e;
return _.l(function(G){if(G.nextAddress==1)return G.yield(A.JSC$18690_prefStorage,2);if(G.nextAddress!=3)return(f=G.yieldResult)?G.yield(f.get("psi"),3):G.return();X=G.yieldResult;e={isPaused:t,lastSyncTimestamp:(q=(Q=X)==null?void 0:Q.lastSyncTimestamp)!=null?q:"0"};return G.yield(f.set("psi",e),0)})},mU2=function(A){var t=_.Px().resolve(_.lV),f,X,Q,q,e,G,N,z;
return _.l(function(T){switch(T.nextAddress){case 1:return T.yield(t.JSC$18690_playerApiPromise,2);case 2:f=T.yieldResult;Q=((X=A)==null?void 0:X.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((G=A)==null?void 0:G.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":q="!*$_ALL_ENTITIES_!*$";e="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return T.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return T.jumpTo(4)}T.jumpTo(5);break;case 3:return T.yield(DHw(t,Q),6);case 6:T.jumpTo(5);break;case 4:return T.yield(nd3(t,(N=A)==null?void 0:N.videoId),7);case 7:T.yieldResult&&(q=(z=A)==null?void 0:z.videoId,e="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");T.jumpTo(5);break;case 5:if(q&&e)return T.yield(f.queueOfflineAction(q,"videoPlaybackPositionEntity",e),0);T.jumpTo(0)}})},F12=function(A,t){var f;
t!==1||((f=A.currentPersistentToast)==null?0:f.isOpened())?A.openToast():A.currentPersistentToast=void 0},IzQ=function(A,t){var f;
return(f=A.transitionTasksMap.get(t))!=null?f:[]},xH3=function(A,t){var f=[];
A.elementTasksMap.forEach(function(X){(X=X.get(t))&&f.push(X)});
return f},jRA=function(A,t,f,X,Q){Q=Q===void 0?{}:Q;
var q=t.defaultViewTransitionOptions;return Object.assign({},q,Q,{beforeTransition:function(){X.forEach(function(z){z.beforeTransition()});
var e;(e=q.beforeTransition)==null||e.call(q);var G,N;(N=(G=Q).beforeTransition)==null||N.call(G);f.forEach(function(z){z.beforeTransition()})},
afterTransition:function(){X.forEach(function(z){z.afterTransition()});
var e;(e=q.afterTransition)==null||e.call(q);var G,N;(N=(G=Q).afterTransition)==null||N.call(G);f.forEach(function(z){z.afterTransition()})},
ignoredErrors:A.config.ignoredErrors})},YAc=function(A,t,f){A.transitionTasksMap.has(t)?A.transitionTasksMap.get(t).push(f):(A=new _.xj("Transition task registered for unknown transition type",t),_.HQ(A))},Vhj=function(A,t,f){if(A.transitionTasksMap.has(t)){var X=A.transitionTasksMap.get(t).filter(function(Q){return Q!==f});
A.transitionTasksMap.set(t,X)}},Zr3=function(A,t){var f=IzQ(A,t);
f=_.U(f);for(var X=f.next();!X.done;X=f.next())X=X.value,X.runOnce&&Vhj(A,t,X);A.elementTasksMap.forEach(function(Q,q){Q.forEach(function(e,G){e.runOnce&&t===G&&(Q.delete(G),Q.size===0&&A.elementTasksMap.delete(q))})})},odA=function(A,t,f){var X,Q,q,e,G,N,z,T,O;
_.l(function(c){if(c.nextAddress==1){if(A.config.disableAllTransitions)return c.return(t());if((X=f)==null||!X.transitionType)return c.return(_.Dv_(t,Object.assign({},(Q=f)==null?void 0:Q.viewTransitionOptions,{ignoredErrors:A.config.ignoredErrors})));q=f;e=q.transitionType;G=q.viewTransitionOptions;N=A.config.transitionConfigs.get(e);if(!N)return c.return(t());z=IzQ(A,e);T=xH3(A,e);O=_.Dv_(t,jRA(A,N,z,T,G));return c.yield(O,2)}Zr3(A,e);_.LO(c)})},dHh=function(){var A,t,f,X;
return _.l(function(Q){if(Q.nextAddress==1)return A=navigator,(t=A.storage)!=null&&t.persisted?Q.yield((f=A.storage)==null?void 0:f.persisted(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");X=Q.yieldResult;return Q.return(X?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},SAc=function(){var A,t,f,X;
return _.l(function(Q){if(Q.nextAddress==1)return A=navigator,(t=A.storage)!=null&&t.persist?Q.yield((f=A.storage)==null?void 0:f.persist(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");X=Q.yieldResult;return Q.return(X?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},$Hw=function(){var A,t;
return _.l(function(f){switch(f.nextAddress){case 1:return A="PERSISTED_STATE_NOT_SUPPORTED",_.ht(f,2),f.yield(dHh(),4);case 4:A=f.yieldResult;if(A!=="PERSISTED_STATE_NOT_GRANTED"){f.jumpTo(5);break}return f.yield(SAc(),6);case 6:A=f.yieldResult;case 5:_.qq(f,3);break;case 2:t=_.vC(f),t instanceof Error&&_.HQ(t);case 3:return _.SY("persistentStorageStateChecked",{persistedState:A}),f.return(A)}})},Hrh=function(A,t){var f=[],X=!1;
t=_.U(t);for(var Q=t.next();!Q.done;Q=t.next()){Q=A.moduleRegistry[Q.value];var q=void 0,e=void 0;((q=Q)==null?0:q.isFetching)&&((e=Q)==null?0:e.resolver)?(f.push(Q.resolver.promise),X=!0):(Q=new _.Qc,Q.resolve(void 0),f.push(Q.promise))}return X?Promise.all(f):void 0},azl=function(A,t,f){if(A.isAnyTransitionEnabled){var X={beforeTransition:function(){f(!0);
t.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){t.style.viewTransitionName&&(t.style.viewTransitionName="",f(!1))}};
YAc(A.viewTransitionCoordinator,"slide",X);YAc(A.viewTransitionCoordinator,"lockup-to-watch",X);YAc(A.viewTransitionCoordinator,"watch-next-appears",X);YAc(A.viewTransitionCoordinator,"learning-journey",X)}},K1j=function(A,t){A.isBrowseTransitionEnabled?odA(A.viewTransitionCoordinator,t,{transitionType:"slide"}):(t(),Promise.resolve())},gdw=function(A,t){A.isLockupToWatchTransitionEnabled?odA(A.viewTransitionCoordinator,t,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){A.registeredLockupThumbnail=void 0;A.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(t(),Promise.resolve())},w0Q=function(A,t){A.isLockupToWatchTransitionEnabled?odA(A.viewTransitionCoordinator,t,{transitionType:"watch-next-appears"}):(t(),Promise.resolve())},sRj=function(A,t){A.isLearningJourneyTransitionEnabled?odA(A.viewTransitionCoordinator,t,{transitionType:"learning-journey"}):(t(),Promise.resolve())},kE_=function(A,t,f){if(A.isInitialized()){var X=
Rm(f),Q=X==="watch";
X=X==="shorts";var q=Rm(t)==="watch";if(Q)q||(A.backgroundPageData=t),A.watchPipMode&&q||A.deactivate(f.endpoint);else if(X){if(Rm(t)!=="shorts"){var e;(e=A.getPlayerElement())==null||e.pause()}}else q&&!A.watchPipMode&&(Q8y(t,f,!0)?(A.watchWhileMode&&_.BLA(A,!1),_.zEQ(A,t)):A.isMiniplayerActive()&&A.watchWhileMode&&A.deactivate());q&&_.CX8(A);A.shortsPipMode&&!X&&(window.focus(),A.deactivate());if(A.pictureInPictureEnabled())if(X&&A.shortsPipEnabled||Q&&A.watchPipEnabled)_.bMs(A.handleMediaSessionPipActivation);
else if(!A.isMiniplayerActive()&&(A.shortsPipEnabled||A.watchPipEnabled)&&window.documentPictureInPicture&&_.Wp()&&_.hxx("Chromium")>=120){A=_.mu0().mediaSession;try{A.setActionHandler("enterpictureinpicture",null)}catch(G){}}}},r93=function(A,t){var f,X;
_.l(function(Q){if(Q.nextAddress==1){if(!A||!A.navigationEndpoint)return Q.return();_.$z().lockupActivation=!0;var q;t?q=_.oC(_.e5("QUEUE",void 0,"Queue")):q=A.longBylineText;X=(f=q)&&A.title?{miniplayerTitle:A.title,miniplayerSubtitle:f,playlistData:null}:void 0;return Q.yield(_.g0p(_.Px().resolve(_.DS),A.navigationEndpoint,!0,X),2)}_.$z().userActivation=!0;_.LO(Q)})},D1w=function(A,t){var f,X,Q,q,e,G;
_.l(function(N){if(N.nextAddress==1){f=_.C(t,_.KbT);if(!f||!f.listId)return N.return();A.index=f.index||A.index||0;X=A.response&&A.response.playingVideoId||void 0;return N.yield(_.i7p(A.JSC$13174_playlistNetworkManager,f.listId,A.index,X),2)}Q=N.yieldResult;if(!Q)return N.return();q=Q.playlistId;e=Q.playlistPanelRenderer;!A.queueProxy&&q&&e&&q.startsWith("TLPQ")&&(A.queueProxy=new _.lE(A.JSC$13174_playlistNetworkManager,q,A.setPlaylistData.bind(A),A.clearQueue.bind(A),_.w7s(e),A.storage));if(f.openMiniplayer&&
(G=_.sdb(e))&&!A.JSC$13174_pageManager.isOnWatch()){var z=G,T=f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";A.isMiniplayerActive()?A.openToast(z):r93(z,T)}A.setPlaylistData(q,e,Q.autoplayRenderer);_.LO(N)})},pz8=function(A,t){var f=_.cR();
f.index===void 0&&(f.index=0);f.temporaryItems.push.apply(f.temporaryItems,_.YV(A));if((t.videoId||t.videoIds)&&f.index!==void 0&&t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!f.queueProxy){var X=[];if(f.response){var Q=_.Px().resolve(_.DS).isMiniplayerActive();if(f.response.playlistPanelRenderer&&f.response.playlistId&&!f.response.playlistId.startsWith("TLPQ")){if(f.JSC$13174_pageManager.isOnWatch()||Q)X=_.w7s(f.response.playlistPanelRenderer)}else f.response.playingVideoId&&!t.openMiniplayer?
X.push(f.response.playingVideoId):Q&&f.response.playingVideoId&&t.openMiniplayer&&X.push(f.response.playingVideoId)}f.queueProxy=new _.lE(f.JSC$13174_playlistNetworkManager,"",f.setPlaylistData.bind(f),f.clearQueue.bind(f),X,f.storage);f.queueProxy.JSC$13120_setCurrentIndex(f.index)}f.queueProxy.addVideos(t.videoIds||[t.videoId],t)}Fm3(f,A);f.response&&_.BR(f,_.Mr(f,f.response.autoplayRenderer));f.JSC$13174_pageManager.isOnWatch()?f.isMiniplayerActive()&&f.openToast(A[0]):(A=A[0],t=t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
f.isMiniplayerActive()?f.openToast(A):r93(A,t))},Ahh=function(A){var t=_.k8(A);
if(t=="object"||t=="array"){if(typeof A.clone==="function")return A.clone();if(typeof Map!=="undefined"&&A instanceof Map)return new Map(A);if(typeof Set!=="undefined"&&A instanceof Set)return new Set(A);t=t=="array"?[]:{};for(var f in A)t[f]=Ahh(A[f]);return t}return A},il=function(A,t){return _.cf0(_.zR(A,t,void 0,_.ur))},Or=function(A,t){return _.ej(_.zR(A,t,void 0,_.ur))},cK=function(A,t){return _.xb5(_.zR(A,t,void 0,_.ur))},BK=function(A,t){return _.zR(A,t,void 0,_.ur,_.sT)},tPj=_.li(function(A,
t,f,X){if(A.nextWireType_!==0)return!1;
_.O1(t,f,X,_.FG(A.decoder_,_.iSb));return!0},_.Oi,_.Ve),fo_=_.li(function(A,t,f){if(A.nextWireType_!==1)return!1;
var X=A.decoder_;A=_.xp(X);X=_.xp(X);A=_.Zw(A,X);_.ui(t,f,A);return!0},_.jfx,_.lcE),Xrl=_.li(function(A,t,f){if(A.nextWireType_!==2)return!1;
A=_.Klf(A);_.ui(t,f,A===_.pS()?void 0:A);return!0},_.dyl,_.z3S),QY3=_.vls(function(A,t,f){if(A.nextWireType_!==0&&A.nextWireType_!==2)return!1;
t=_.Ar(t,t[_.qb]|0,f);A.nextWireType_==2?_.g8i(A,uoA,t):t.push(_.ID(A.decoder_));return!0},function(A,t,f){t=_.yrb(_.ej,t,!0);
if(t!=null&&t.length){f=_.tji(A,f);for(var X=0;X<t.length;X++)_.FQz(A.encoder_,t[X]);_.fcS(A,f)}},_.Pyp),qUy=_.li(function(A,t,f,X){if(A.nextWireType_!==0)return!1;
_.O1(t,f,X,_.ID(A.decoder_));return!0},_.$y5,_.Pyp),Jhd=function(A){return A.previousElementSibling!==void 0?A.previousElementSibling:_.bn8(A.previousSibling,!1)},U$j=function(A,t){var f=[];
for(t=t||0;t<A.length;t+=2)_.PIp(A[t],A[t+1],f);return f.join("&")},eAA=function(A,t){var f=arguments.length==2?U$j(arguments[1],0):U$j(arguments,1);
return _.zLT(A,f)},$t3=_.Cb(_.bM),GIl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(GIl,_.e3);GIl.prototype.getTypeName=function(){return _.Wz(this,1).split("/").pop()};
GIl.prototype.getValue=function(){var A=_.zR(this,2);if(Array.isArray(A)||A instanceof _.e3)throw Error("W");return _.ir(this,2)};
var loh=[0,2,_.wV],F03=function(){var A=_.AL();this.JSC$10000_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.OB("channel_type"))};
F03.prototype.increment=function(A){this.JSC$10000_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",A)};
var Idm=function(){var A=_.AL();this.JSC$10003_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.OB("channel_type"))};
Idm.prototype.increment=function(A){this.JSC$10003_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",A)};
var jJA=function(){var A=_.AL();this.JSC$10006_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.OB("channel_type"))};
jJA.prototype.increment=function(A){this.JSC$10006_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",A)};
var xa_=function(){var A=_.AL();this.JSC$10009_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
xa_.prototype.increment=function(){this.JSC$10009_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var YjA=function(){var A=_.AL();this.JSC$10012_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.OB("channel_type"),_.OB("error_type"))};
YjA.prototype.increment=function(A,t){this.JSC$10012_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",A,t)};
var VMy=function(){var A=_.AL();this.JSC$10015_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
VMy.prototype.increment=function(){this.JSC$10015_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Z8c=function(){var A=_.AL();this.JSC$10018_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Z8c.prototype.increment=function(){this.JSC$10018_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var H_j=function(){var A=_.AL();this.JSC$10024_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
H_j.prototype.increment=function(){this.JSC$10024_streamzService.JSC$9870_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Nc3=function(A){return A.getCount&&typeof A.getCount=="function"?A.getCount():_.ST(A)||typeof A==="string"?A.length:_.VG.getCount(A)},uXQ=function(A,t){if(typeof A.every=="function")return A.every(t,void 0);
if(_.ST(A)||typeof A==="string")return Array.prototype.every.call(A,t,void 0);for(var f=_.PXT(A),X=_.JH(A),Q=X.length,q=0;q<Q;q++)if(!t.call(void 0,X[q],f&&f[q],A))return!1;return!0},zAm=function(A,t,f,X){var Q=new _.oq(null);
A&&_.UE(Q,A);t&&_.eQ(Q,t);f&&_.GY(Q,f);X&&_.lR(Q,X);return Q},PA3=function(){var A=_.kj&&_.Pp(_.viE,10)>=0,t;
if(t=_.Afl)t=_.Pp(_.yW7,10)>=0;var f=_.e7&&_.Pp(_.viE,85)>=0;return _.Qe||A||t||f},Tc_=function(A){var t=_.KSw(A);
return t&&PA3()?-A.scrollLeft:t&&_.KA(A,"overflowX")!="visible"?A.scrollWidth-A.clientWidth-A.scrollLeft:A.scrollLeft},i68=function(A,t){t=Math.max(t,0);
_.KSw(A)?PA3()?A.scrollLeft=-t:A.scrollLeft=A.scrollWidth-t-A.clientWidth:A.scrollLeft=t},Mrd=0,bIj=!1;
bF.prototype.set=function(A){this.relativeTimeStart_=A};
bF.prototype.reset=function(){this.set(_.k5())};
bF.prototype.get=function(){return this.relativeTimeStart_};
var O6y=null,ch_=function(){O6y||(O6y=new bF)},Bcc=function(){O6y||(O6y=new bF)};
_.rS(Bcc,ch_);_.J=y7_.prototype;_.J.JSC$11443_buffer_="";_.J.set=function(A){this.JSC$11443_buffer_=""+A};
_.J.append=function(A,t,f){this.JSC$11443_buffer_+=String(A);if(t!=null)for(var X=1;X<arguments.length;X++)this.JSC$11443_buffer_+=arguments[X];return this};
_.J.clear=function(){this.JSC$11443_buffer_=""};
_.J.getLength=function(){return this.JSC$11443_buffer_.length};
_.J.toString=function(){return this.JSC$11443_buffer_};
var MP2=!1,xxh=function(A){_.Ab.call(this,A.message||A.description||A.name);this.isMissing=A instanceof nAy;this.isTimeout=A instanceof _.UM&&A.errorCode=="net.timeout";this.isCanceled=A instanceof _.Ej};
_.R(xxh,_.Ab);xxh.prototype.name="BiscottiError";var nAy=function(){_.Ab.call(this,"Biscotti ID is missing from server")};
_.R(nAy,_.Ab);nAy.prototype.name="BiscottiMissingError";var Dx3=null,RSl=function(){try{var A=_.Ae("yt.ads.biscotti.getId_");return A?A():zp_()}catch(t){return _.OX(t)}},CAQ=function(A,t){return _.r0({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:A,command:t}})},hAd=function(A){return _.r0({type:"SET_GUIDE_IS_EXPANDED",
payload:A})},RA3=function(A){return _.r0({type:"SET_ONLINE_STATUS",
payload:A})},m$3=function(A,t){return _.r0({type:"SET_TRANSCRIPTION_STATE",
payload:{high:A,low:t}})},b6A=function(A){return _.r0({type:"SET_OVERLAY_STATE",
payload:A})},Wb3=0,yh_=function(A,t,f){var X=this;
this.priority=t;this.delay=f;this.jobId=0;this.completionCallback=_.bz;this.wrappedJob=function(){A();X.completionCallback()};
this.id=++Wb3};
yh_.prototype.enqueue=function(A){this.completionCallback=A;this.jobId=_.a6.addJob(this.wrappedJob,this.priority,this.delay)};
var MS=function(){_.NH.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.R(MS,_.NH);MS.prototype.addJob=function(A,t,f){A=new yh_(A,t,f);this.taskIdToTask.set(A.id,A);this.isActive?v3_(this,A):this.suspendedTasks.add(A);return A.id};
var v3_=function(A,t){A.scheduledTasks.add(t);t.enqueue(function(){A.scheduledTasks.delete(t)})};
MS.prototype.cancelJob=function(A){(A=this.taskIdToTask.get(A))&&(this.scheduledTasks.delete(A)?_.a6.cancelJob(A.jobId):this.suspendedTasks.delete(A))};
MS.prototype.pause=function(){var A=this;this.isActive=!1;this.scheduledTasks.forEach(function(t){_.a6.cancelJob(t.jobId);A.suspendedTasks.add(t)});
this.scheduledTasks.clear()};
MS.prototype.start=function(){var A=this;this.isActive=!0;this.suspendedTasks.forEach(function(t){v3_(A,t)});
this.suspendedTasks.clear()};
MS.prototype.reset=function(){this.scheduledTasks.forEach(function(A){_.a6.cancelJob(A.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Lb2=function(A,t){this.JSC$13300_networkService_=A;this.pageRequestPromise=t};
Lb2.prototype.fetchData=function(A){prj(this,this.JSC$13300_networkService_.fetchData(A))};
Lb2.prototype.postData=function(A,t){prj(this,this.JSC$13300_networkService_.postData(A,t))};
Lb2.prototype.requestDataForServiceEndpoint=function(A,t){prj(this,this.JSC$13300_networkService_.requestDataForServiceEndpoint(A,t))};
var prj=function(A,t){t.then(A.pageRequestPromise.onSuccess,A.pageRequestPromise.onFailure,A.pageRequestPromise)};
Lb2.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var E3w=function(A){this.buildNetworkRequest_=A;this.pendingRequests_=new Set};
E3w.prototype.reset=function(){this.pendingRequests_.forEach(function(A){A.cancel()});
this.pendingRequests_.clear()};
E3w.prototype.fetchData=function(A){var t=n3m(this);t.fetchData(A);return t.pageRequestPromise};
E3w.prototype.postData=function(A,t){var f=n3m(this);f.postData(A,t);return f.pageRequestPromise};
E3w.prototype.requestDataForServiceEndpoint=function(A,t){var f=n3m(this);f.requestDataForServiceEndpoint(A,t);return f.pageRequestPromise};
var n3m=function(A){var t=A.buildNetworkRequest_();A.pendingRequests_.add(t);var f=function(){A.pendingRequests_.delete(t)};
t.pageRequestPromise.then(f,f);return t},D$d=function(A){var t=new MS;
this.JSC$13307_networkService_=A;this.JSC$13307_taskManager_=t;this.JSC$13307_networkManager_=new E3w(this.networkRequestFactory_.bind(this))};
_.J=D$d.prototype;_.J.networkRequestFactory_=function(){return new Lb2(this.JSC$13307_networkService_,new _.jd(this.JSC$13307_taskManager_))};
_.J.reset=function(){this.JSC$13307_taskManager_.reset();this.JSC$13307_networkManager_.reset()};
_.J.start=function(){this.JSC$13307_taskManager_.start()};
_.J.pause=function(){this.JSC$13307_taskManager_.pause()};
_.J.getTaskManager=function(){return this.JSC$13307_taskManager_};
_.J.getNetworkManager=function(){return this.JSC$13307_networkManager_};
var s8d=null,Aow=[],HI3=0,wnm=0,aYy=null,yI=function(A){this.token=A};
yI.getInstance=function(){var A;return _.l(function(t){if(t.nextAddress==1)return t.yield(_.PD(),2);A=t.yieldResult;if(!A)return t.return();yI.instance||(yI.instance=new yI(A));return t.return(yI.instance)})};
var en_=function(A){var t;return _.l(function(f){if(f.nextAddress==1)return f.yield(q7Q(A.token),2);t=f.yieldResult;return f.return(t.clear("resource-manifest-assets"))})},Wv=function(A){this.token=A};
Wv.getInstance=function(){var A;return _.l(function(t){if(t.nextAddress==1)return t.yield(_.PD(),2);A=t.yieldResult;if(!A)return t.return();Wv.instance||(Wv.instance=new Wv(A));return t.return(Wv.instance)})};
var Joc=function(A){var t;return _.l(function(f){if(f.nextAddress==1)return f.yield(q7Q(A.token),2);t=f.yieldResult;return f.yield(t.clear("auth"),0)})},FbQ=!1,Cmd=null,hnj=void 0,EEA=!1,IoQ=function(A){_.Ab.call(this,A)};
_.R(IoQ,_.SZT);var pF_=function(){var A=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return A?parseInt(A[1],10):0},x$A=function(A){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+A)!=-1||document.currentScript.src.indexOf("&"+A)!=-1)},jYc=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},ISm=function(A){A.length?YUh(A.shift(),function(){ISm(A)}):n5h()},jGA=function(A){return"chrome-extension://"+A+"/cast_sender.js"},YUh=function(A,
t,f){var X=document.createElement("script");
X.onerror=t;f&&(X.onload=f);_.UV(X,_.xC(A));(document.head||document.documentElement).appendChild(X)},VPj=function(){var A=pF_(),t=[];
if(A>1){var f=A-1;t.push("//www.gstatic.com/eureka/clank/"+A+"/cast_sender.js");t.push("//www.gstatic.com/eureka/clank/"+f+"/cast_sender.js")}return t},n5h=function(){var A=jYc();
A&&A(!1,"No cast extension found")},F_j=function(){if(Z6h){var A=2,t=jYc(),f=function(){A--;
A==0&&t&&t(!0)};
window.__onGCastApiAvailable=f;YUh("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",n5h,f)}},E5j=function(){F_j();
var A=VPj();A.push("//www.gstatic.com/eureka/clank/cast_sender.js");ISm(A)},DBd=function(){F_j();
var A=VPj();A.push.apply(A,_.YV(xB8.map(jGA)));A.push("//www.gstatic.com/eureka/clank/cast_sender.js");ISm(A)},Z6h=x$A("loadCastFramework")||x$A("loadCastApplicationFramework"),xB8=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var o3Q=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(o3Q,_.e3);var d$3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(d$3,_.e3);var SUl=function(){var A=new d$3;return _.nd(A,1,3)};var CK=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(CK,_.e3);var Cjm=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Cjm,_.e3);var $$m=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R($$m,_.e3);$$m.prototype.getToken=function(){return _.Wz(this,1)};
$$m.prototype.setToken=function(A){return _.jM(this,1,A)};
var Bfm=function(A){return _.gd(A,3,_.Cw,_.uI())},MLQ=function(A){return _.gd(A,6,_.Cw,_.uI())};var hC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(hC,_.e3);hC.prototype.getToken=function(){return _.Mq(this,$$m,2)};
hC.prototype.setToken=function(A){return _.bi(this,2,A)};
hC.prototype.getName=function(){return _.Wz(this,6)};
var H6w=_.Cb(hC);var aoj=function(A,t,f){this.requestMessage=A;this.methodDescriptor=t;this.metadata=f};
aoj.prototype.getMetadata=function(){return this.metadata};var Kb2=function(A,t){t=t===void 0?{}:t;this.responseMessage=A;this.metadata=t;this.status=null};
Kb2.prototype.getMetadata=function(){return this.metadata};
Kb2.prototype.getStatus=function(){return this.status};var RE=function(A,t,f,X,Q){this.name=A;this.methodType="unary";this.requestType=t;this.responseType=f;this.requestSerializeFn=X;this.responseDeserializeFn=Q},g3j=function(A,t,f){f=f===void 0?{}:f;
return new aoj(t,A,f)};
RE.prototype.getName=function(){return this.name};var mV=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(mV,_.e3);mV.prototype.getHeader=function(){return _.Mq(this,CK,1)};
mV.prototype.setHeader=function(A){return _.bi(this,1,A)};
mV.prototype.hasHeader=function(){return _.Pz(this,CK,1)};var wr3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(wr3,_.e3);var sYj=new RE("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",mV,wr3,function(A){return A.serialize()},_.Cb(wr3));var bl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(bl,_.e3);bl.prototype.getHeader=function(){return _.Mq(this,CK,1)};
bl.prototype.setHeader=function(A){return _.bi(this,1,A)};
bl.prototype.hasHeader=function(){return _.Pz(this,CK,1)};var kIw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(kIw,_.e3);var rh3=new RE("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",bl,kIw,function(A){return A.serialize()},_.Cb(kIw));var WK=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(WK,_.e3);WK.prototype.getHeader=function(){return _.Mq(this,CK,1)};
WK.prototype.setHeader=function(A){return _.bi(this,1,A)};
WK.prototype.hasHeader=function(){return _.Pz(this,CK,1)};var A2d=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(A2d,_.e3);A2d.prototype.getValues=function(A){return _.IwK(this,1,A)};var tm3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(tm3,_.e3);tm3.prototype.getLink=function(){return _.Mq(this,hC,1)};var feQ=new RE("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",WK,tm3,function(A){return A.serialize()},_.Cb(tm3));var y4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(y4,_.e3);y4.prototype.getHeader=function(){return _.Mq(this,CK,1)};
y4.prototype.setHeader=function(A){return _.bi(this,1,A)};
y4.prototype.hasHeader=function(){return _.Pz(this,CK,1)};var XY8=new RE("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",y4,hC,function(A){return A.serialize()},H6w);var Qzc=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Qzc,_.e3);var qmh=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(qmh,_.e3);qmh.prototype.getUrl=function(){return _.Wz(this,2)};
qmh.prototype.setUrl=function(A){return _.jM(this,2,A)};var J22=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(J22,_.e3);var Uhh=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Uhh,_.e3);var e2y=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(e2y,_.e3);var FLj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(FLj,_.e3);var nuc=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(nuc,_.e3);var GJd=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(GJd,_.e3);var Snh=_.Cb(GJd);var le3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(le3,_.e3);var NOm=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(NOm,_.e3);_.J=NOm.prototype;_.J.getHeader=function(){return _.Mq(this,CK,1)};
_.J.setHeader=function(A){return _.bi(this,1,A)};
_.J.hasHeader=function(){return _.Pz(this,CK,1)};
_.J.getCompletionUrl=function(){return _.Wz(this,6)};
_.J.getDeviceId=function(){return _.Wz(this,11)};var u9j=new RE("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",NOm,GJd,function(A){return A.serialize()},Snh);var z23=new Set(["SAPISIDHASH","APISIDHASH"]);var Pay=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Pay,_.e3);Pay.prototype.getMessage=function(){return _.Wz(this,2)};
var TO2=_.Cb(Pay);var O9h=function(A,t){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=A.nodeReadableStream;this.grpcResponseDeserializeFn=t;this.xhr=A.xhr;this.xhrNodeReadableStream&&i9y(this)},mh2=function(A,t){var f=new c2j;
_.TV(A.xhr,"complete",function(){if(A.xhr.isSuccess()){var X=A.xhr.getResponseText();var Q;if(Q=t)Q=A.xhr,Q.JSC$9879_xhr_&&Q.isComplete()?(Q=Q.JSC$9879_xhr_.getResponseHeader("Content-Type"),Q=Q===null?void 0:Q):Q=void 0,Q=Q==="text/plain";if(Q){if(!atob)throw Error("jk");X=atob(X)}try{var q=A.grpcResponseDeserializeFn(X)}catch(G){BOd(A,Qv_(new _.xg(13,"Error when deserializing response data; error: "+G+(", response: "+X)),f));return}X=_.lUs(A.xhr.getStatus());Mml(A,Caj(A));X===0?h23(A,q):BOd(A,Qv_(new _.xg(X,
"Xhr succeeded but the status code is not 200"),f))}else{X=A.xhr.getResponseText();q=Caj(A);if(X){var e=R22(A,X);X=e.code;Q=e.details;e=e.metadata}else X=2,Q="Rpc failed due to xhr error. uri: "+String(A.xhr.JSC$9879_lastUri_)+", error code: "+(A.xhr.JSC$9879_lastErrorCode_+", error: ")+A.xhr.getLastError(),e=q;Mml(A,q);BOd(A,Qv_(new _.xg(X,Q,e),f))}})},i9y=function(A){A.xhrNodeReadableStream.on("data",function(t){if("1"in t){var f=t["1"];
try{var X=A.grpcResponseDeserializeFn(f)}catch(Q){BOd(A,new _.xg(13,"Error when deserializing response data; error: "+Q+(", response: "+f)))}X&&h23(A,X)}if("2"in t)for(t=R22(A,t["2"]),f=0;f<A.onStatusCallbacks.length;f++)A.onStatusCallbacks[f](t)});
A.xhrNodeReadableStream.on("end",function(){Mml(A,Caj(A));for(var t=0;t<A.onEndCallbacks.length;t++)A.onEndCallbacks[t]()});
A.xhrNodeReadableStream.on("error",function(){if(A.onErrorCallbacks.length!==0){var t=A.xhr.JSC$9879_lastErrorCode_;t!==0||A.xhr.isSuccess()||(t=6);var f=-1;switch(t){case 0:var X=2;break;case 7:X=10;break;case 8:X=4;break;case 6:f=A.xhr.getStatus();X=_.lUs(f);break;default:X=14}Mml(A,Caj(A));t=_.HaK(t)+", error: "+A.xhr.getLastError();f!==-1&&(t+=", http status code: "+f);BOd(A,new _.xg(X,t))}})},Caj=function(A){var t={},f=Tzd(A.xhr);
Object.keys(f).forEach(function(X){t[X]=f[X]});
return t},R22=function(A,t){var f=2,X={};
try{var Q=TO2(t);f=_.Pf(Q,1);var q=Q.getMessage();_.Nc(Q,GIl,3,_.uI()).length&&(X["grpc-web-status-details-bin"]=t)}catch(e){A.xhr&&A.xhr.getStatus()===404?(f=5,q="Not Found: "+String(A.xhr.JSC$9879_lastUri_)):(f=14,q="Unable to parse RpcStatus: "+e)}return{code:f,details:q,metadata:X}};
O9h.prototype.on=function(A,t){A==="data"?this.onDataCallbacks.push(t):A==="metadata"?this.onMetadataCallbacks.push(t):A==="status"?this.onStatusCallbacks.push(t):A==="end"?this.onEndCallbacks.push(t):A==="error"&&this.onErrorCallbacks.push(t);return this};
var b9m=function(A,t){t=A.indexOf(t);t>-1&&A.splice(t,1)};
O9h.prototype.removeListener=function(A,t){A==="data"?b9m(this.onDataCallbacks,t):A==="metadata"?b9m(this.onMetadataCallbacks,t):A==="status"?b9m(this.onStatusCallbacks,t):A==="end"?b9m(this.onEndCallbacks,t):A==="error"&&b9m(this.onErrorCallbacks,t);return this};
O9h.prototype.cancel=function(){this.xhr.abort()};
var h23=function(A,t){for(var f=0;f<A.onDataCallbacks.length;f++)A.onDataCallbacks[f](t)},Mml=function(A,t){for(var f=0;f<A.onMetadataCallbacks.length;f++)A.onMetadataCallbacks[f](t)},BOd=function(A,t){for(var f=0;f<A.onErrorCallbacks.length;f++)A.onErrorCallbacks[f](t)},c2j=function(){var A=Error.call(this);
this.message=A.message;"stack"in A&&(this.stack=A.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(c2j,Error);var Wqy=function(A){this.JSC$19755_worker_=A.worker||null;this.JSC$19755_streamBinaryChunks_=A.streamBinaryChunks||!1;this.JSC$19755_credentialsMode_=void 0};
_.rS(Wqy,_.u_g);Wqy.prototype.createInstance=function(){var A=new vK(this.JSC$19755_worker_,this.JSC$19755_streamBinaryChunks_);this.JSC$19755_credentialsMode_&&A.setCredentialsMode(this.JSC$19755_credentialsMode_);return A};
Wqy.prototype.setCredentialsMode=function(A){this.JSC$19755_credentialsMode_=A};
var vK=function(A,t){_.p_.call(this);this.JSC$19759_worker_=A;this.JSC$19759_streamBinaryChunks_=t;this.JSC$19759_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19759_responseHeaders_=null;this.JSC$19759_method_="GET";this.JSC$19759_url_="";this.inProgress_=!1;this.JSC$19759_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.rS(vK,_.p_);vK.prototype.open=function(A,t){if(this.readyState!=0)throw this.abort(),Error("kk");this.JSC$19759_method_=A;this.JSC$19759_url_=t;this.readyState=1;y2Q(this)};
vK.prototype.send=function(A){if(this.readyState!=1)throw this.abort(),Error("lk");if(this.abortController_.signal.aborted)throw this.abort(),Error("mk");this.inProgress_=!0;var t={headers:this.requestHeaders_,method:this.JSC$19759_method_,credentials:this.JSC$19759_credentialsMode_,cache:void 0,signal:this.abortController_.signal};A&&(t.body=A);(this.JSC$19759_worker_||_.Xb).fetch(new Request(this.JSC$19759_url_,t)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
vK.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,vDc(this));this.readyState=0};
vK.prototype.handleResponse_=function(A){if(this.inProgress_&&(this.fetchResponse_=A,this.JSC$19759_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19759_responseHeaders_=A.headers,this.readyState=2,y2Q(this)),this.inProgress_&&(this.readyState=3,y2Q(this),this.inProgress_)))if(this.responseType==="arraybuffer")A.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Xb.ReadableStream!==
"undefined"&&"body"in A){this.currentReader_=A.body.getReader();if(this.JSC$19759_streamBinaryChunks_){if(this.responseType)throw Error("nk");this.response=[]}else this.response=this.responseText="",this.JSC$19759_textDecoder_=new TextDecoder;Lql(this)}else A.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var Lql=function(A){A.currentReader_.read().then(A.handleDataFromStream_.bind(A)).catch(A.handleSendFailure_.bind(A))};
vK.prototype.handleDataFromStream_=function(A){if(this.inProgress_){if(this.JSC$19759_streamBinaryChunks_&&A.value)this.response.push(A.value);else if(!this.JSC$19759_streamBinaryChunks_){var t=A.value?A.value:new Uint8Array(0);if(t=this.JSC$19759_textDecoder_.decode(t,{stream:!A.done}))this.response=this.responseText+=t}A.done?vDc(this):y2Q(this);this.readyState==3&&Lql(this)}};
vK.prototype.handleResponseText_=function(A){this.inProgress_&&(this.response=this.responseText=A,vDc(this))};
vK.prototype.handleResponseArrayBuffer_=function(A){this.inProgress_&&(this.response=A,vDc(this))};
vK.prototype.handleSendFailure_=function(){this.inProgress_&&vDc(this)};
var vDc=function(A){A.readyState=4;A.fetchResponse_=null;A.currentReader_=null;A.JSC$19759_textDecoder_=null;y2Q(A)};
vK.prototype.setRequestHeader=function(A,t){this.requestHeaders_.append(A,t)};
vK.prototype.getResponseHeader=function(A){return this.JSC$19759_responseHeaders_?this.JSC$19759_responseHeaders_.get(A.toLowerCase())||"":""};
vK.prototype.getAllResponseHeaders=function(){if(!this.JSC$19759_responseHeaders_)return"";for(var A=[],t=this.JSC$19759_responseHeaders_.entries(),f=t.next();!f.done;)f=f.value,A.push(f[0]+": "+f[1]),f=t.next();return A.join("\r\n")};
vK.prototype.setCredentialsMode=function(A){this.JSC$19759_credentialsMode_=A};
var y2Q=function(A){A.onreadystatechange&&A.onreadystatechange.call(A)};
Object.defineProperty(vK.prototype,"withCredentials",{get:function(){return this.JSC$19759_credentialsMode_==="include"},
set:function(A){this.setCredentialsMode(A?"include":"same-origin")}});var pYA=function(A){var t="";_.VG.forEach(A,function(f,X){t+=X;t+=":";t+=f;t+="\r\n"});
return t},EDh=function(A,t,f){if(_.VG.isEmpty(f))return A;
f=pYA(f);if(typeof A==="string")return _.gU(A,_.fk(t),f);_.AZ(A,t,f);return A};var nDh=function(){this.isInputValid_=!0;this.JSC$19765_streamPos_=0;this.leftoverInput_=""};
nDh.prototype.isInputValid=function(){return this.isInputValid_};
nDh.prototype.decode=function(A){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ok`"+this.JSC$19765_streamPos_+"`stream already broken`"+A);this.leftoverInput_+=A;A=Math.floor(this.leftoverInput_.length/4);if(A==0)return null;try{var t=_.V_q(this.leftoverInput_.slice(0,A*4))}catch(f){throw t=this.leftoverInput_,A=f.message,this.isInputValid_=!1,Error("ok`"+this.JSC$19765_streamPos_+"`"+A+"`"+t);}this.JSC$19765_streamPos_+=A*4;this.leftoverInput_=this.leftoverInput_.slice(A*4);return t};var Ut3=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19768_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Ut3.prototype.isInputValid=function(){return this.state_!=3};
var Dhy=function(A,t,f,X){A.state_=3;A.errorMessage_="The stream is broken @"+A.JSC$19768_streamPos_+"/"+f+". Error: "+X+". With input:\n"+t;throw Error(A.errorMessage_);};
Ut3.prototype.acceptsBinaryInput=function(){return!0};
Ut3.prototype.parse=function(A){function t(N){N&128&&Dhy(q,e,G,"invalid tag");(N&7)!=2&&Dhy(q,e,G,"invalid wire type");q.tag_=N>>>3;q.tag_!=1&&q.tag_!=2&&q.tag_!=15&&Dhy(q,e,G,"unexpected tag");q.state_=1;q.length_=0;q.countLengthBytes_=0}
function f(N){q.countLengthBytes_++;q.countLengthBytes_==5&&N&240&&Dhy(q,e,G,"message length too long");q.length_|=(N&127)<<(q.countLengthBytes_-1)*7;N&128||(q.state_=2,q.countMessageBytes_=0,typeof Uint8Array!=="undefined"?q.messageBuffer_=new Uint8Array(q.length_):q.messageBuffer_=Array(q.length_),q.length_==0&&Q())}
function X(N){q.messageBuffer_[q.countMessageBytes_++]=N;q.countMessageBytes_==q.length_&&Q()}
function Q(){if(q.tag_<15){var N={};N[q.tag_]=q.messageBuffer_;q.result_.push(N)}q.state_=0}
for(var q=this,e=A instanceof Array?A:new Uint8Array(A),G=0;G<e.length;){switch(q.state_){case 3:Dhy(q,e,G,"stream already broken");break;case 0:t(e[G]);break;case 1:f(e[G]);break;case 2:X(e[G]);break;default:throw Error("pk`"+q.state_);}q.JSC$19768_streamPos_++;G++}A=q.result_;q.result_=[];return A.length>0?A:null};var eqc=function(){this.errorMessage_=null;this.JSC$19771_streamPos_=0;this.base64Decoder_=new nDh;this.pbParser_=new Ut3};
eqc.prototype.isInputValid=function(){return this.errorMessage_===null};
var Fq3=function(A,t,f){A.errorMessage_="The stream is broken @"+A.JSC$19771_streamPos_+". Error: "+f+". With input:\n"+t;throw Error(A.errorMessage_);};
eqc.prototype.acceptsBinaryInput=function(){return!1};
eqc.prototype.parse=function(A){this.errorMessage_!==null&&Fq3(this,A,"stream already broken");var t=null;try{var f=this.base64Decoder_.decode(A);t=f===null?null:this.pbParser_.parse(f)}catch(X){Fq3(this,A,X.message)}this.JSC$19771_streamPos_+=A.length;return t};var JEQ=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19774_streamPos_=0;this.result_=[];this.statusParsed_=!1};
JEQ.prototype.isInputValid=function(){return this.errorMessage_===null};
JEQ.prototype.acceptsBinaryInput=function(){return!1};
JEQ.prototype.parse=function(A){function t(N){q.state_=6;q.errorMessage_="The stream is broken @"+q.JSC$19774_streamPos_+"/"+e+". Error: "+N+". With input:\n";throw Error(q.errorMessage_);}
function f(){q.jsonStreamParser_=new _.Mh({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function X(N){if(N)for(var z=0;z<N.length;z++){var T={};T[1]=N[z];q.result_.push(T)}}
function Q(N){if(N){(q.statusParsed_||N.length>1)&&t("extra status: "+N);q.statusParsed_=!0;var z={};z[2]=N[0];q.result_.push(z)}}
for(var q=this,e=0;e<A.length;){var G;if(G=q.state_!==2){a:{for(;e<A.length;){if(!_.BY(A[e])){G=!0;break a}e++;q.JSC$19774_streamPos_++}G=!1}G=!G}if(G)return null;switch(q.state_){case 6:t("stream already broken");break;case 0:A[e]==="["?(q.state_=1,e++,q.JSC$19774_streamPos_++):t("unexpected input token");break;case 1:A[e]==="["?(q.state_=2,f()):A[e]===","||A.slice(e,e+5)=="null,"?q.state_=3:A[e]==="]"?(q.state_=5,e++,q.JSC$19774_streamPos_++):t("unexpected input token");break;case 2:G=q.jsonStreamParser_.parse(A.substring(e));
X(G);q.jsonStreamParser_.done()?(q.state_=3,G=q.jsonStreamParser_.JSC$11570_buffer_,q.JSC$19774_streamPos_+=A.length-e-G.length,A=G,e=0):(q.JSC$19774_streamPos_+=A.length-e,e=A.length);break;case 3:A[e]===","||A.slice(e,e+5)=="null,"?(q.state_=4,f(),q.jsonStreamParser_.parse("["),e+=A[e]===","?1:5,q.JSC$19774_streamPos_++):A[e]==="]"&&(q.state_=5,e++,q.JSC$19774_streamPos_++);break;case 4:G=q.jsonStreamParser_.parse(A.substring(e));Q(G);q.jsonStreamParser_.done()?(q.state_=5,G=q.jsonStreamParser_.JSC$11570_buffer_,
q.JSC$19774_streamPos_+=A.length-e-G.length,A=G,e=0):(q.JSC$19774_streamPos_+=A.length-e,e=A.length);break;case 5:t("extra input after stream end")}}return q.result_.length>0?(A=q.result_,q.result_=[],A):null};var Ie2=function(A){this.JSC$19777_xhr_=A;this.JSC$19777_parser_=null;this.status_=this.JSC$19777_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19777_textDecoder_=null;this.JSC$19777_eventHandler_=new _.CP(this);this.JSC$19777_eventHandler_.listen(this.JSC$19777_xhr_,"readystatechange",this.JSC$19779_readyStateChangeHandler_)},LK=function(A,t){A.status_!=t&&(A.status_=t,A.statusHandler_&&A.statusHandler_())},xhQ=function(A){A.JSC$19777_eventHandler_.removeAll();
if(A.JSC$19777_xhr_){var t=A.JSC$19777_xhr_;A.JSC$19777_xhr_=null;t.abort();t.dispose()}};
Ie2.prototype.getStatus=function(){return this.status_};
Ie2.prototype.JSC$19779_readyStateChangeHandler_=function(A){A=A.target;try{if(A==this.JSC$19777_xhr_)a:{var t=_.VW(this.JSC$19777_xhr_),f=this.JSC$19777_xhr_.JSC$9879_lastErrorCode_,X=this.JSC$19777_xhr_.getStatus(),Q=this.JSC$19777_xhr_.getResponseText();A=[];if(this.JSC$19777_xhr_.getResponse()instanceof Array){var q=this.JSC$19777_xhr_.getResponse();q.length>0&&q[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,A=q)}if(!(t<3||t==3&&!Q&&A.length==0))if(X=X==200||X==206,t==4&&(f==8?LK(this,
7):f==7?LK(this,8):X||LK(this,3)),this.JSC$19777_parser_||(this.JSC$19777_parser_=Gaj(this.JSC$19777_xhr_),this.JSC$19777_parser_==null&&LK(this,5)),this.status_>2)xhQ(this);else{if(A.length>this.JSC$19777_pos_){var e=A.length;f=[];try{if(this.JSC$19777_parser_.acceptsBinaryInput())for(var G=0;G<e;G++){var N=this.JSC$19777_parser_.parse(Array.from(A[G]));N&&(f=f.concat(N))}else{N="";if(!this.JSC$19777_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("qk");this.JSC$19777_textDecoder_=
new TextDecoder}for(G=0;G<e;G++)N+=this.JSC$19777_textDecoder_.decode(A[G],{stream:t==4&&G==e-1});f=this.JSC$19777_parser_.parse(N)}A.splice(0,e);f&&this.dataHandler_(f)}catch(T){LK(this,5);xhQ(this);break a}}else if(Q.length>this.JSC$19777_pos_){G=Q.slice(this.JSC$19777_pos_);this.JSC$19777_pos_=Q.length;try{var z=this.JSC$19777_parser_.parse(G);z!=null&&this.dataHandler_&&this.dataHandler_(z)}catch(T){LK(this,5);xhQ(this);break a}}t==4?(Q.length!=0||this.hasStreamingResponseData_?LK(this,2):LK(this,
4),xhQ(this)):LK(this,1)}}}catch(T){LK(this,6),xhQ(this)}};var jzA=function(A){A=this.xhrReader_=A;var t=(0,_.F1)(this.onData_,this);A.dataHandler_=t;A=this.xhrReader_;t=(0,_.F1)(this.onStatusChange_,this);A.statusHandler_=t;this.JSC$19781_callbackMap_={};this.callbackOnceMap_={}};
_.J=jzA.prototype;_.J.on=function(A,t){var f=this.JSC$19781_callbackMap_[A];f||(f=[],this.JSC$19781_callbackMap_[A]=f);f.push(t);return this};
_.J.addListener=function(A,t){this.on(A,t);return this};
_.J.removeListener=function(A,t){var f=this.JSC$19781_callbackMap_[A];f&&_.o0(f,t);(A=this.callbackOnceMap_[A])&&_.o0(A,t);return this};
_.J.once=function(A,t){var f=this.callbackOnceMap_[A];f||(f=[],this.callbackOnceMap_[A]=f);f.push(t);return this};
_.J.onData_=function(A){var t=this.JSC$19781_callbackMap_.data;t&&Yml(A,t);(t=this.callbackOnceMap_.data)&&Yml(A,t);this.callbackOnceMap_.data=[]};
var Yml=function(A,t){for(var f={},X=0;X<A.length;f={message$jscomp$1008:void 0},X++)f.message$jscomp$1008=A[X],t.forEach(function(Q){return function(q){try{q(Q.message$jscomp$1008)}catch(e){}}}(f))};
jzA.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:Vmw(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Vmw(this,"error");break;case 8:Vmw(this,"close");break;case 2:Vmw(this,"end")}};
var Vmw=function(A,t){var f=A.JSC$19781_callbackMap_[t];f&&f.forEach(function(X){try{X()}catch(Q){}});
(f=A.callbackOnceMap_[t])&&f.forEach(function(X){X()});
A.callbackOnceMap_[t]=[]};var Z93=function(){var A={format:"jspb"};A=A===void 0?{}:A;this.suppressCorsPreflight=A.suppressCorsPreflight||_.Ae("suppressCorsPreflight",A)||!1;this.withCredentials=A.withCredentials||_.Ae("withCredentials",A)||!1;this.streamInterceptors=A.streamInterceptors||[];this.unaryInterceptors=A.unaryInterceptors||[];this.workerScope=A.workerScope;this.chunkedServerStreaming=A.useFetchDownloadStreams||!1},Sm3=function(A,t,f,X,Q,q){q=q===void 0?{}:q;
var e=t.substring(0,t.length-Q.name.length),G,N=(G=q)==null?void 0:G.signal;return oDQ(function(z){return new Promise(function(T,O){if(N==null?0:N.aborted){var c=new _.xg(1,"Aborted");c.cause=N.reason;O(c)}else{var B={},h=dhA(A,z,e);h.on("error",function(W){return void O(W)});
h.on("metadata",function(W){B=W});
h.on("data",function(W){var L=B;L=L===void 0?{}:L;T(new Kb2(W,L))});
N&&N.addEventListener("abort",function(){h.cancel();var W=new _.xg(1,"Aborted");W.cause=N.reason;O(W)})}})},A.unaryInterceptors).call(A,g3j(Q,f,X)).then(function(z){return z.responseMessage})},$h8=function(A,t,f,X,Q,q){q=q===void 0?{}:q;
return Sm3(A,t,f,X,Q,q)};
Z93.prototype.serverStreaming=function(A,t,f,X){var Q=this,q=A.substring(0,A.length-X.name.length);return H9l(function(e){var G=e.methodDescriptor,N=e.getMetadata(),z=ae8(Q,!1);N=Kqd(Q,N,z,q+G.getName());var T=gDy(z,G.responseDeserializeFn,!0);e=G.requestSerializeFn(e.requestMessage);z.send(N,"POST",e);return T},this.streamInterceptors).call(this,g3j(X,t,f))};
var dhA=function(A,t,f){var X=t.methodDescriptor,Q=t.getMetadata(),q=ae8(A,!0);A=Kqd(A,Q,q,f+X.getName());f=gDy(q,X.responseDeserializeFn,!1);mh2(f,Q["X-Goog-Encode-Response-If-Executable"]==="base64");t=X.requestSerializeFn(t.requestMessage);q.send(A,"POST",t);return f},ae8=function(A,t){t=A.chunkedServerStreaming&&!t;
return A.workerScope||t?new _.Yg(new Wqy({worker:A.workerScope,streamBinaryChunks:t})):new _.Yg},Kqd=function(A,t,f,X){t["Content-Type"]="application/json+protobuf";
t["X-User-Agent"]="grpc-web-javascript/0.1";var Q=t.Authorization;if(Q&&z23.has(Q.split(" ")[0])||A.withCredentials)f.JSC$9879_withCredentials_=!0;if(A.suppressCorsPreflight)X=EDh(X,"$httpHeaders",t);else for(A=_.U(Object.keys(t)),Q=A.next();!Q.done;Q=A.next())Q=Q.value,f.headers.set(Q,t[Q]);return X},gDy=function(A,t,f){if(f){f=new Ie2(A);
var X=new jzA(f)}return new O9h({xhr:A,nodeReadableStream:X},t)},H9l=function(A,t){return t.reduce(function(f,X){return function(Q){return X.intercept(Q,f)}},A)},oDQ=function(A,t){return t.reduce(function(f,X){return function(Q){return X.intercept(Q,f)}},A)};var wYA=function(A){this.client_=new Z93;this.hostname_=A==void 0?A:A.replace(/\/+$/,"")};
_.J=wYA.prototype;_.J.JSC$19799_depositGoogleCredential=function(A,t,f){return $h8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",A,t||{},rh3,f)};
_.J.deleteLink=function(A,t,f){return $h8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",A,t||{},sYj,f)};
_.J.JSC$19799_finishOAuth=function(A,t,f){return $h8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",A,t||{},feQ,f)};
_.J.getLink=function(A,t,f){return $h8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",A,t||{},XY8,f)};
_.J.startLinkingSession=function(A,t,f){return $h8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",A,t||{},u9j,f)};var sz3=[0,_.gV,1,QY3,[0,_.rV,[0,_.s1,-1]],[0,Xrl],[0,_.QD,-1],[0,Xrl]];var kJd=function(){this.storage=new Map},ASy=function(A,t,f,X,Q){if(!A.storage.has(t))return null;
A=_.U(A.storage.get(t));for(t=A.next();!t.done;t=A.next())if(t=t.value,!Q||t.linkName===Q)if(f&&t.scopes&&r2y(t.scopes,f)||X&&t.capabilities&&r2y(t.capabilities,X))return t;return null},t43=function(A,t,f){if(!f)A.storage.delete(t);
else if(A.storage.has(t)){var X=A.storage.get(t).filter(function(Q){return Q.linkName!==f});
X.length>0?A.storage.set(t,X):A.storage.delete(t)}},r2y=function(A,t){t=_.U(t);
for(var f=t.next();!f.done;f=t.next())if(!A.has(f.value))return!1;return!0};var fum=function(){var A=_.ah("LINK_GAL_DOMAIN");this.alsDomain1p=_.ah("LINK_GAL_DOMAIN");this.alsDomain3p=A;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},XL3=function(A,t){A.apiKey=t;
return A};
fum.prototype.build=function(){var A={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("rk");A.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("sk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("tk");A.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(A.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)A.apiKey=
this.apiKey,A.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("uk");A.oauthToken=this.oauthToken;A.alsDomain=this.alsDomain3p}A.clientXd3=this.clientXd3;A.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(A.authUser=this.authUser);this.bucket!==void 0&&(A.bucket=this.bucket);this.completionUrl!==void 0&&(A.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(A.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(A.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(A.locale=this.locale);this.localStorage!==void 0&&(A.localStorage=this.localStorage);A.loggerType=this.loggerType;A.clientEnvironment=this.clientEnvironment;A.colorScheme=this.colorScheme;A.showCloseOption=this.showCloseOption;return A};var LC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(LC,_.e3);var QX3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(QX3,_.e3);var qww=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(qww,_.e3);var EM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(EM,_.e3);var JSd=function(A){return _.ye(A,1)};var U2d=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(U2d,_.e3);var iW3=_.Cb(U2d),pC=[1,2,3,4,5];var ull=function(A){try{return iW3(A)}catch(t){return null}},ehd=function(){},zq2=function(A,t){switch(_.cz(t,pC)){case 4:return(t=_.pd(t,qww,4,pC))&&A.logStateTransition(_.ye(t,1)),!0;
case 5:return(t=_.pd(t,QX3,5,pC))&&A.logInternalEvent(_.ye(t,1)),!0}return!1},OWw=function(A){switch(A){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.ap(A)}};var lBd=function(A,t){var f=this;this.validator=A;this.messageListener=t;this.dismissCallback=function(){Gn2(f,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19828_receiveMessage=function(X){X.type==="message"&&(X=X.event_,X!==null&&(new URL(f.iframe.src)).origin===X.origin&&f.validator(X.data,X.origin)&&!f.messageListener(X.data)&&(f.JSC$19828_resolveCb!==void 0&&f.JSC$19828_resolveCb(X.data),luc(f)))}},Tfl=function(A,t,f){A.uiHandler!==void 0&&Gn2(A,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(X,Q){A.JSC$19828_resolveCb=X;A.JSC$19828_rejectCb=Q;A.iframe=document.createElement("iframe");_.rW(A.iframe,t);A.uiHandler=f.displayContent(A.iframe,A.dismissCallback);_.TV(window,"message",A.JSC$19828_receiveMessage,!1,A)})},Gn2=function(A,t){A.JSC$19828_rejectCb!==void 0&&A.JSC$19828_rejectCb(t);
luc(A)},luc=function(A){A.uiHandler!==void 0&&A.uiHandler.hideContent();
_.L_(window,"message",A.JSC$19828_receiveMessage,!1,A);A.JSC$19828_resolveCb=void 0;A.JSC$19828_rejectCb=void 0;A.uiHandler=void 0;A.iframe=void 0};var NB8=function(A){if(A===2){var t;A=((t=window)==null?0:t.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return A},Pjj=function(A){A=NB8(A);
switch(A){case 0:return"light";case 1:return"dark";default:_.ap(A)}};var Nf_=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),uLm=function(A,t){this.JSC$19840_linkingSession=A;this.noticeConfig=t;this.displayInfoMap=new Map;var f=new Map;if(_.Pz(this.JSC$19840_linkingSession,J22,7))for(A=_.Mq(this.JSC$19840_linkingSession,J22,7),A=_.Nc(A,qmh,1,_.uI()),A=_.U(A),t=A.next();!t.done;t=A.next())t=t.value,f.set(_.ye(t,1),_.Wy5(_.Mq(t,_.$jp,3)));if(f.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){t=this.noticeConfig.enabledDataUsageNoticeUis;A=t.has(0)?f.get(1):void 0;t=t.has(1)?f.get(2):void 0;f=A!==void 0&&t!==void 0?f.get(3):void 0;var X=this.noticeConfig.nestedOrigins;var Q=new U2d;var q=new LC;Q=_.Wu(Q,2,pC,q);q=new U2d;var e=new LC;q=_.Wu(q,3,pC,e);e=[];A!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:A,lastEvent:Q,nestedOrigins:X}]),e.push({trustedUrl:A,lastEvent:Q,nestedOrigins:X}));t!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:t,lastEvent:q,nestedOrigins:X}]),e.push({trustedUrl:t,lastEvent:q,nestedOrigins:X}));f!==void 0?this.displayInfoMap.set(3,[{trustedUrl:f,lastEvent:q,nestedOrigins:X}]):this.displayInfoMap.set(3,e)}};var zh_=function(A){var t=new kJd;this.galService=A;this.galCache=t};
zh_.prototype.getLink=function(A){var t=A.serviceId;var f=A.scopes;var X=A.capabilities;var Q=A.linkName;var q=this,e;return _.l(function(G){if(X!==void 0&&f!==void 0)throw Error("vk");e=ASy(q.galCache,t,f,X,Q);return e!==null?G.return(e):G.return(q.galService.getLink({serviceId:t,sessionId:Math.floor(Math.random()*2147483648),scopes:f,capabilities:X,linkName:Q}).then(function(N){N=hq8(N);var z=q.galCache;z.storage.has(t)?z.storage.get(t).push(N):z.storage.set(t,[N]);return N}))})};
zh_.prototype.deleteLink=function(A,t,f){var X=this;return _.l(function(Q){t43(X.galCache,A,f);return Q.return(X.galService.deleteLink({serviceId:A,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:t,linkName:f}).then(function(){return!0}))})};var TBy=function(A,t){var f=this;this.validator=A;this.msgHandler=t;this.closedPopupTimeout=this.JSC$19862_rejectCb=this.JSC$19862_resolveCb=this.popup=null;this.JSC$19862_receiveMessage=function(X){if(X!==null&&(X=X.event_,X.source===f.popup)){var Q=X.data;if(f.validator(Q,X.origin)){var q;(q=f.msgHandler)!=null&&q.call(f,Q)||(f.JSC$19862_resolveCb!==null&&f.JSC$19862_resolveCb(Q),PJ3(f))}}}};
TBy.prototype.open=function(A,t){var f=this;this.popup!==null&&iX3(this);return new Promise(function(X,Q){f.JSC$19862_resolveCb=X;f.JSC$19862_rejectCb=Q;f.popup=_.tt(window,A,"",t);_.TV(window,"message",f.JSC$19862_receiveMessage,!1,f);OXm(f)})};
var iX3=function(A,t){A.JSC$19862_rejectCb!==null&&A.JSC$19862_rejectCb(t);PJ3(A)},PJ3=function(A){A.closedPopupTimeout&&(A.closedPopupTimeout.cancel(),A.closedPopupTimeout=null);
A.popup&&A.popup.close();_.L_(window,"message",A.JSC$19862_receiveMessage,!1,A);A.popup=null;A.JSC$19862_resolveCb=null;A.JSC$19862_rejectCb=null},OXm=function(A){A.closedPopupTimeout=_.ZaE(100).then(function(){A.popup?A.popup.closed?cSm(A):OXm(A):iX3(A,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},cSm=function(A){A.closedPopupTimeout=_.ZaE(100).then(function(){iX3(A,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var BBw=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),M43=function(A,t,f,X,Q,q,e,G,N,z){var T=this;this.serviceId=A;this.sessionId=t;this.galService=f;this.oauthDetails=X;this.galLogger=Q;this.interactionMode=q;this.redirectServiceUrl=e;this.consentLanguageKeys=G;this.dynamicUrlParameters=N;this.partnerConfigMinReadTimestamp=z;this.started=!1;this.JSC$19868_dataValidator=function(O,
c){var B=BBw.has(c);B||T.redirectServiceUrl===void 0||(B=T.redirectServiceUrl===c);return B?O.sentinel==="gdi":!1}};
M43.prototype.complete=function(){var A=this,t;return _.l(function(f){if(A.interactionMode!==1)return f.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));t=Dtl.getRedirectStateFromUri();return t===null?f.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):f.return(CJ_(A,t))})};
M43.prototype.start=function(){var A=this,t;return _.l(function(f){if(A.started)return f.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Wz(A.oauthDetails,1))return f.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(A.interactionMode===1)return Dtl.setLocation(_.Wz(A.oauthDetails,1)),f.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));A.started=!0;A.galLogger.logStateTransition(5);
t=Dtl.getPostMessagePopup(A.JSC$19868_dataValidator);return f.return(t.open(_.Wz(A.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(X){A.started=!1;var Q=A.galLogger;if((X==null?void 0:X.error)!==void 0)throw Q.logInternalEvent(59),Error("wk");if((X==null?void 0:X.redirect_state)===void 0)throw Q.logInternalEvent(131),Error("xk");return CJ_(A,X.redirect_state)}).catch(function(X){A.started=
!1;
return X.errorCode!==void 0?{statusCode:X.errorCode,statusMessage:X.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var CJ_=function(A,t){return _.l(function(f){return f.return(hhQ(A.galService,{serviceId:A.serviceId,sessionId:A.sessionId,dynamicUrlParameters:A.dynamicUrlParameters,redirectState:t,consentLanguageKeys:A.consentLanguageKeys,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp}).then(function(X){var Q={statusCode:1,link:hq8(X.getLink())};Nt3(_.ir(X,3))!==void 0&&(Q.callerState=Nt3(_.ir(X,3)));_.F3z(X,4,A2d,lY8).size>0&&(Q.redirectUriParams=new Map(Array.from(_.F3z(X,4,A2d,lY8).entries()).map(function(q){var e=
_.U(q);q=e.next().value;var G=e.next().value;e=[];var N=e.concat;G=_.gd(G,1,_.Cw,_.uI());return[q,N.call(e,_.YV(G))]})));
A.galLogger.logInternalEvent(134);return Q}))})},Dtl={getPostMessagePopup:function(A){return new TBy(A)},
getRedirectStateFromUri:function(){var A=_.kC(Dtl.getLocation()).fragment_;return(new _.Po(A)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(A){_.ctp(window.location,_.of(A))},
createOAuthFlow:function(A,t){return new M43(A.serviceId,A.sessionId,A.galService,t,A.galLogger,A.interactionMode,A.redirectServiceUrl,A.consentLanguageKeys,A.dynamicUrlParameters,A.partnerConfigMinReadTimestamp)}};var Rh3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Rh3,_.e3);var m2d=_.Cb(Rh3);var bXw=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),WMA=function(A,t,f,X,Q,q,e,G,N){var z=this;this.serviceId=A;this.sessionId=t;this.galService=f;this.gsiWebFlowDetails=X;this.colorScheme=Q;this.showCloseOption=q;this.galLogger=e;this.interactionMode=G;this.redirectServiceUrl=N;this.started=!1;this.JSC$19881_dataValidator=function(T,O){var c=bXw.has(O);c||z.redirectServiceUrl===
void 0||(c=z.redirectServiceUrl===O);return c?T.sentinel==="gal":!1};
this.logEventProcessor=function(T){return T.result?(T=ull(T.result))?zq2(z.galLogger,T):!1:!1}};
WMA.prototype.complete=function(){var A=this,t,f;return _.l(function(X){if(A.interactionMode!==1)return X.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));t=IBd.getRedirectStateFromUri();if(t===void 0)return A.galLogger.JSC$19820_logErrorEvent(131),X.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return f=yS8(A,t),X.return(v4y(A,f))}catch(Q){return X.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
WMA.prototype.start=function(){var A=this,t;return _.l(function(f){if(A.started)return f.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Wz(A.gsiWebFlowDetails,1))return f.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(A.interactionMode===1)return IBd.setLocation(LM2(A,_.Wz(A.gsiWebFlowDetails,1))),f.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
A.started=!0;t=IBd.getPostMessagePopup(A.JSC$19881_dataValidator,A.logEventProcessor);return f.return(t.open(LM2(A,_.Wz(A.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(X){A.started=!1;if((X==null?void 0:X.result)===void 0)throw A.galLogger.JSC$19820_logErrorEvent(131),Error("xk");X=yS8(A,X.result);return v4y(A,X)}).catch(function(X){A.started=!1;
return X.errorCode!==void 0?{statusCode:X.errorCode,statusMessage:X.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var LM2=function(A,t){A=["result_channel",A.interactionMode===1?"2":"1","color_scheme",Pjj(A.colorScheme),"show_close_option",A.showCloseOption];return eAA(t,A)},v4y=function(A,t){if(t!==null&&_.Pz(t,EM,2)){var f,X=t==null?void 0:(f=_.Mq(t,EM,2))==null?void 0:_.ye(f,2);
X&&A.galLogger.JSC$19820_logErrorEvent(OWw(X));return JSd(_.Mq(t,EM,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 A.galService.getLink({serviceId:A.serviceId,sessionId:A.sessionId,consistencyKey:_.Wz(t,1)}).then(function(Q){Q=hq8(Q);A.galLogger.logInternalEvent(134);return{statusCode:1,link:Q}})},yS8=function(A,t){t=m2d(t);
if(!_.Pz(t,EM,2)&&_.Wz(t,1)==="")throw A.galLogger.JSC$19820_logErrorEvent(5),Error("yk");return t},IBd={getPostMessagePopup:function(A,t){return new TBy(A,t)},
getRedirectStateFromUri:function(){return _.rw(_.kC(IBd.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(A){_.ctp(window.location,_.of(A))},
createStreamlinedFlow:function(A,t){return new WMA(A.serviceId,A.sessionId,A.galService,t,A.colorScheme,A.showCloseOption,A.galLogger,A.interactionMode,A.redirectServiceUrl)}};var oum=function(A){this.storage=(A=A?_.oj("GAL"):_.dJT("GAL"))?new _.jJ(A):null};
oum.prototype.getSession=function(A){if(this.storage!==null)try{var t=this.storage.get("SAVED_SESSION");if(t===void 0)return null;if(t.serviceId===A)return t}catch(f){}return null};var pLh=function(){};
_.R(pLh,ehd);pLh.prototype.logStateTransition=function(){};
pLh.prototype.logInternalEvent=function(){};
pLh.prototype.JSC$19820_logErrorEvent=function(){};var E4Q=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(E4Q,_.e3);E4Q.prototype.getCompletionUrl=function(){return _.Wz(this,15)};var pK=function(A,t,f,X,Q,q){this.serviceId=A;this.environment=t;this.sessionId=f;this.colorSchemeSelected=X;this.colorThemeDisplayed=Q;this.JSC$19894_transport=q;this.currentState=1};
_.R(pK,ehd);pK.prototype.logStateTransition=function(A){var t=n4w(this);t=_.CU(t,3,this.currentState);t=_.CU(t,1,A);this.currentState=A;A=PRQ(1);this.dispatch(t,A)};
pK.prototype.logInternalEvent=function(A){A=PRQ(A);this.dispatch(n4w(this),A)};
pK.prototype.JSC$19820_logErrorEvent=function(A){var t=n4w(this);t=_.CU(t,1,10);A=PRQ(A);this.dispatch(t,A)};
var n4w=function(A){var t=new E4Q;t=_.CU(t,1,A.currentState);t=_.Dg(t,7,A.serviceId);var f,X;var Q=((f=window)==null?0:(X=f.location)==null?0:X.href)?_.kC(window.location.href).JSC$10115_domain_:"NO_PACKAGE_NAME";f=_.Dg(t,8,Q);f=_.CU(f,6,A.environment);f=_.Dg(f,5,"100");f=_.CU(f,11,A.colorSchemeSelected);return _.CU(f,12,A.colorThemeDisplayed)};
pK.prototype.dispatch=function(A,t){t===void 0&&(t=new _.OY);var f=t;A=A.serialize();f=_.Dg(f,8,A);_.Ii(f,12,this.sessionId);this.JSC$19894_transport.dispatch(t)};var D2A=function(A,t){this.loggerType=A;this.sessionIndex=t!=null?t:0},FM2;
D2A.prototype.create=function(A,t,f,X,Q){switch(this.loggerType){case 0:return new pLh;case 1:return FM2||(FM2=(new _.CA(555,this.sessionIndex.toString())).build()),new pK(A,t,f,X,Q,FM2);default:_.ap(this.loggerType,"unknown logger type")}};var xt3=[6,2,3,1],KLA=new Map([[4,1],[1,6],[2,2],[3,3]]),WLd={statusCode:7,statusMessage:"Failed to create flow object"},VL3=function(A,t,f,X,Q,q,e,G,N,z){this.serviceId=A;this.sessionId=t;this.config=f;this.galService=X;this.JSC$19901_linkingSession=Q;this.googleScopes=q;this.callerState=e;this.consentLanguageKeys=G;this.dynamicUrlParameters=N;this.partnerConfigMinReadTimestamp=z;this.currentFlow=0;X=this.JSC$19901_linkingSession;Q=new Set;_.Pz(X,nuc,1)&&Q.add(1);_.Pz(X,e2y,2)&&_.Pz(X,FLj,6)&&Q.add(2);
_.Pz(X,Uhh,3)&&_.Pz(X,FLj,6)&&Q.add(3);_.Pz(X,Qzc,4)&&Q.add(6);this.supportedFlows=Q;X=f.loggerType;Q=f.clientEnvironment;a:{q=f.colorScheme;switch(q){case 0:q=1;break a;case 1:q=2;break a;case 2:q=3;break a;default:_.ap(q)}q=void 0}a:{e=f.colorScheme;e=NB8(e);switch(e){case 0:e=1;break a;case 1:e=2;break a;default:_.ap(e)}e=void 0}this.galLogger=(new D2A(X,f.authUser)).create(A,Q,t,q,e)},jXl=function(A){return new Promise(function(t){var f,X,Q,q,e,G,N,z,T,O;
return _.l(function(c){switch(c.nextAddress){case 1:f=jv3(A.currentFlow,A.supportedFlows),X=!1,Q=new uLm(A.JSC$19901_linkingSession,A.config.dataUsageNoticeConfig);case 2:if(f===void 0){c.jumpTo(4);break}_.ht(c,5);var B=Q,h=f,W=void 0;X?h===1&&(W=B.displayInfoMap.get(2)):h===2||h===3?W=B.displayInfoMap.get(1):h===1&&(W=B.displayInfoMap.get(3));q=W?W:[];e=A.consentLanguageKeys;G=_.U(q);N=G.next();case 7:if(N.done)return A.currentFlow=f,c.yield(vu3(Iul(A,e)),11);z=N.value;return c.yield(cEd(z,A.config.dataUsageNoticeConfig.uiAdapter,
A.config.colorScheme,A.galLogger),10);case 10:T=c.yieldResult;if(T.statusCode!==1)return x22(A),t(LLm({statusCode:T.statusCode,statusMessage:T.statusMessage},A.callerState)),c.return();T.consentLanguageKeys!==void 0&&(e=T.consentLanguageKeys);N=G.next();c.jumpTo(7);break;case 11:O=c.yieldResult;if(O.statusCode!==10)return O.statusCode!==6&&x22(A),O.statusCode!==1&&A.callerState!==void 0&&(O.callerState=A.callerState),t(O),c.return();_.qq(c,6);break;case 5:_.vC(c);case 6:f=jv3(A.currentFlow,A.supportedFlows);
X=!0;c.jumpTo(2);break;case 4:x22(A),t(LLm({statusCode:12,statusMessage:"Linking failed"},A.callerState)),_.LO(c)}})})},x22=function(A){dtc(A.serviceId,A.config.localStorage);
A.currentFlow=0},HWw=function(A,t,f){A.currentFlow=t;
return p1d(Iul(A,f)).then(function(X){return X.statusCode===10&&A.config.interactionMode===1&&jv3(A.currentFlow,A.supportedFlows)!==void 0?jXl(A):X})},Iul=function(A,t){return{flowParams:{serviceId:A.serviceId,
sessionId:A.sessionId,galService:A.galService,galLogger:A.galLogger,interactionMode:A.config.interactionMode,redirectServiceUrl:A.config.redirectServiceUrl,colorScheme:A.config.colorScheme,consentLanguageKeys:t,dynamicUrlParameters:A.dynamicUrlParameters,showCloseOption:A.config.showCloseOption,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp},currentFlow:A.currentFlow,config:A.config,session:A.JSC$19901_linkingSession,googleScopes:A.googleScopes,callerState:A.callerState}};var w13=function(A,t){this.config=A;this.galService=t.getService();this.JSC$19914_galRepository=t.JSC$19932_galRepository};
w13.prototype.getLink=function(A,t){return Ywd(this,A,t)};
var Ywd=function(A,t,f){return A.JSC$19914_galRepository.getLink({serviceId:t,scopes:void 0,capabilities:void 0,linkName:f}).then(function(X){return{statusCode:1,link:X}}).catch(function(X){return{statusCode:gul(X.code),
statusMessage:X.message}})};
w13.prototype.deleteLink=function(A,t){return this.JSC$19914_galRepository.deleteLink(A,this.config.accountLinkingEntryPoint,t).then(function(){return{statusCode:1}}).catch(function(f){return{statusCode:gul(f.code),
statusMessage:f.message}})};
w13.prototype.startLinkingSession=function(A){var t=A.serviceId;var f=A.sessionId;return ZW3({serviceId:t,sessionId:f!==void 0?f:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:A.loginHint,callerState:A.callerState,consentLanguageKeys:A.consentLanguageKeys,linkName:A.linkName,dynamicUrlParameters:A.dynamicUrlParameters,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp})};var Er=function(A,t,f,X,Q,q,e){this.apiKey=t;this.authUser=f;this.oauthToken=X;this.bucket=Q;this.locale=q;this.galSdkEventHandler=e;if(X===void 0){if(t===void 0)throw Error("zk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new wYA(A)};
Er.prototype.deleteLink=function(A){var t=A.serviceId;var f=A.sessionId;var X=A.accountLinkingEntryPoint;var Q=A.linkName;var q=this,e;return _.l(function(G){var N=(new mV).setHeader(q.getHeader(f));var z=V4d({serviceId:t,linkName:Q});N=_.bi(N,2,z);e=_.nd(N,3,X);return G.return(q.makeRequest(q.galServiceClient.deleteLink,e,[1,3],[2,4]))})};
var hhQ=function(A,t){var f=t.serviceId;var X=t.sessionId;var Q=t.dynamicUrlParameters;var q=t.redirectState;var e=t.consentLanguageKeys;var G=t.partnerConfigMinReadTimestamp;var N;return _.l(function(z){var T=(new WK).setHeader(A.getHeader(X,Q));T=_.jM(T,2,f);N=_.jM(T,4,q);e!==void 0&&_.jM(N,5,e);G!==void 0&&_.bi(N,6,G);return z.return(A.makeRequest(A.galServiceClient.JSC$19799_finishOAuth,N,[1,3],[2,4]))})};
Er.prototype.getLink=function(A){var t=A.serviceId;var f=A.sessionId;var X=A.scopes;var Q=A.capabilities;var q=A.consistencyKey;var e=A.linkName;var G=this,N;return _.l(function(z){var T=(new y4).setHeader(G.getHeader(f)),O=V4d({serviceId:t,scopes:X,capabilities:Q,linkName:e});N=_.bi(T,2,O);q!==void 0&&(T=SUl(),T=_.jM(T,2,q),_.bi(N,3,T));return z.return(G.makeRequest(G.galServiceClient.getLink,N,[1,3],[2,4]))})};
var Euw=function(A,t){var f=t.serviceId;var X=t.sessionId;var Q=t.googleScopes;var q=t.consistencyKey;var e;return _.l(function(G){var N=(new bl).setHeader(A.getHeader(X));N=_.jM(N,2,f);var z=Array.from(Q.values());N=_.km(N,3,z,_.iy);z=SUl();z=_.jM(z,2,q);e=_.bi(N,4,z);return G.return(A.makeRequest(A.galServiceClient.JSC$19799_depositGoogleCredential,e,[1,3],[2,4]))})};
Er.prototype.startLinkingSession=function(A){var t=A.serviceId;var f=A.sessionId;var X=A.scopes;var Q=A.capabilities;var q=A.loginHint;var e=A.supportedFlows;var G=A.completionUrl;var N=A.usePingPong;var z=A.twoWayLinking;var T=A.accountLinkingEntryPoint;var O=A.callerState;var c=A.consentLanguageKeys;var B=A.googleScopes;var h=A.dataUsageNoticeConfig;var W=A.linkName;var L=A.dynamicUrlParameters;var E=A.partnerConfigMinReadTimestamp;var D=this,S,Z;return _.l(function(d){if(Q!==void 0&&X!==void 0)throw Error("vk");
var K=(new NOm).setHeader(D.getHeader(f,L));S=_.jM(K,2,t);W!==void 0&&_.jM(S,14,W);if(Q!==void 0){K=S;var k=Array.from(Q.values());_.km(K,5,k,_.iy)}else X!==void 0&&(K=S,k=Array.from(X.values()),_.km(K,3,k,_.iy));G!==void 0&&_.jM(S,6,G);N!==void 0&&_.CG(S,15,N);e!==void 0&&(K=S,k=Array.from(e.values()),_.km(K,4,k,_.X8));if(z!==void 0){if(z&&(!B||B.size===0))throw Error("Ak");_.CG(S,8,z)}T!==void 0&&_.nd(S,9,T);q!==void 0&&_.jM(S,13,q);O!==void 0&&(K=S,k=(new TextEncoder).encode(O),_.rd(K,12,_.nS(k,
!1),_.pS()));c!==void 0&&_.jM(S,16,c);E!==void 0&&_.bi(S,18,E);if(h!==void 0&&h.size>0||B!==void 0&&B.size>0)Z=new le3,B!==void 0&&B.size>0&&(K=Z,k=Array.from(B.values()),_.km(K,1,k,_.iy)),h!==void 0&&(h.has(0)&&_.omx(Z,2,_.X8,1,_.J_),h.has(1)&&_.omx(Z,2,_.X8,2,_.J_)),_.bi(S,17,Z);return d.return(D.makeRequest(D.galServiceClient.startLinkingSession,S,[1],[2]))})};
Er.prototype.getMetadata=function(){var A=this,t,f;return _.l(function(X){t={};A.useFpa?(t["X-Goog-Api-Key"]=A.apiKey,t["X-Goog-AuthUser"]=A.authUser!==void 0?A.authUser.toString():"0",(f=_.Pob([]))&&(t.Authorization=f)):t.Authorization="Bearer "+A.oauthToken;A.locale&&(t["accept-language"]=A.locale);return X.return(t)})};
Er.prototype.makeRequest=function(A,t,f,X){var Q=this,q;return _.l(function(e){if(e.nextAddress==1)return e.yield(Q.getMetadata(),2);q=e.yieldResult;ZX8(Q,f);return e.return(A.bind(Q.galServiceClient)(t,q).finally(function(){ZX8(Q,X)}))})};
var ZX8=function(A,t){A.galSdkEventHandler!==void 0&&t.forEach(function(f){A.galSdkEventHandler.onEvent(f)})};
Er.prototype.getHeader=function(A,t){var f=new CK;A=_.rd(f,2,_.U2(A),0);A=_.nd(A,5,3);t=_.km(A,8,t,_.iy);this.bucket!==void 0&&_.jM(t,1,this.bucket);return t};
var V4d=function(A){var t=A.serviceId;var f=A.scopes;var X=A.capabilities;A=A.linkName;if(X!==void 0&&f!==void 0)throw Error("vk");var Q=new o3Q;t=_.jM(Q,1,t);X!==void 0?(f=Array.from(X.values()),_.km(t,5,f,_.iy)):f!==void 0&&(f=Array.from(f.values()),_.km(t,3,f,_.iy));A!==void 0&&_.jM(t,6,A);return t};var svm=function(A){this.galService=new Er(A.alsDomain,A.apiKey,A.authUser,A.oauthToken,A.bucket,A.locale,A.galSdkEventHandler);this.JSC$19932_galRepository=new zh_(this.galService)};
svm.prototype.getService=function(){return this.galService};var o43=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(o43,_.e3);var d28=function(A){var t=new o43;return _.CU(t,1,A)};
o43.prototype.setErrorMessage=function(A){return _.Dg(this,2,A)};var Sw8=[0,_.Xy,_.wV,_.Xy];var nK=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(nK,_.e3);var $2_=[0,[1,2,3],_.A1,[0,_.MjT,_.Diy,-1],_.A1,[0,fo_,-1],_.kp];var HXm=[0,_.aD,1,_.Xy,_.wV,-1,1,_.t1,_.oD,_.Xy,-1,$2_];var auj=[0,_.Xy,[0,_.t1,_.oD,[0,_.wV]],_.Kd,[0,_.Xy,-1]];var ll=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(ll,_.e3);var KM2=[0,_.wV,_.Xy,-2,_.aD,_.Xy,_.aD,_.Xy,-2,1,_.Kd];var g4h=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(g4h,_.e3);var wLj=[0,_.aD];var sX2=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(sX2,_.e3);var knd=[0,_.Xy,auj,wLj,KM2,HXm];var dUd=_.Bu(sX2,knd);var rS8=[0,sz3];var w_3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(w_3,_.e3);var AMy=[0,[1,3],qUy,_.Xy,qUy];var ggc=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(ggc,_.e3);var tNh=[0,_.Xy];var fv_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(fv_,_.e3);var sbd=function(A){return _.pd(A,o43,2,Gs)},XX8=function(A){var t=new fv_;
return _.Wu(t,2,Gs,A)},Gs=[1,
2];var Qr8=[0,Gs,_.A1,tNh,_.A1,Sw8,_.rV,AMy,1,_.Xy,rS8];var q_m=[0,1,[0,[1,2,3],_.A1,[0],_.A1,[0,loh],_.A1,[0,sz3]]];var JMm=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(JMm,_.e3);var elh=function(A){var t=new JMm;return _.Wu(t,3,UN8,A)},UN8=[2,
3];var Gfj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Gfj,_.e3);var lv2=function(A,t){return _.bi(A,2,t)},NKy=function(A,t){return _.bi(A,8,t)},uw3=function(A,t){return _.bi(A,3,t)};var zld=[0,_.Xy,Qr8,knd,_.UY,[0,[5,6,7],[0,_.Xy,-2],[0,_.aD,_.Xy,_.wV],[0,$2_],[0,_.wV,_.Xy,-1,_.JU,_.Xy],_.A1,[0,[0,_.aD],_.Xy,-1],_.A1,[0,[3,4],_.Xy,-1,_.A1,[0,[0,_.Xy,_.Kd]],_.A1,[0,[0,[0,[1,2,3],_.A1,[0],_.A1,[0],_.A1,[0]]]]],_.A1,[0,_.Xy]],_.UY,-1,[0,UN8,_.Xy,_.A1,tNh,_.A1,Sw8,_.rV,AMy,[0,sz3],q_m]];var P1y=_.Bu(Gfj,zld),TK2=_.My(zld);var il_=function(){_.DA.call(this)};
_.R(il_,_.DA);il_.prototype.init=function(){};
new il_;var Ol3=_.dS(["data-"]),cMc=_.dS(["aria-"]),BKl=_.dS(["aria-"]),DE=function(A,t){this.isLatencyMeasurementExperiment=A===void 0?!1:A;this.enableDialogA11yFix=t===void 0?!1:t;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.G_E(_.Xb.location.href)},$U3=function(A,t){A.onConsentPrimitiveShownCallback=t},MNd=function(A,t){return A.overriddenIframeLoadTimeout?A.overriddenIframeLoadTimeout:t!==void 0?t:5E3},aXl=function(A){if(A.prewarmPromise!==void 0)return A.prewarmPromise;
A.prewarmPromise=new Promise(function(t,f){F7(A,1);C1A(A,hl_(A,!0),Rl_(A));A.iframe?A.prewarmChannel||mNd(A,A.iframe,t):f(Error("Bk"))});
A.prewarmPromise.finally(function(){A.prewarmPromise=void 0});
return A.prewarmPromise};
DE.prototype.showPrimitive=function(){var A=this;if(this.consentPromise!==void 0)return this.consentPromise;var t=Date.now();blA(this,t);this.consentPromise=new Promise(function(f,X){F7(A,0,t);var Q=A.isDarkTheme();A.isLatencyMeasurementExperiment||A.initialLoadingStrategy===1||A.initialLoadingStrategy===2||(A.loadingBar||(A.loadingBar=tM8(getComputedStyle(document.body).direction==="rtl",Q),A.loadingBar.style.position="fixed",A.loadingBar.style.zIndex="15000"),document.body.appendChild(A.loadingBar));
C1A(A,hl_(A),Rl_(A));A.iframe?A.channel||WO3(A,A.iframe,f,X):(yM3(A),X(Error("Bk")))});
this.consentPromise.finally(function(){A.consentPromise=void 0});
return this.consentPromise};
var WO3=function(A,t,f,X){var Q,q;_.l(function(e){switch(e.nextAddress){case 1:F7(A,3);Q=!1;setTimeout(function(){if(!Q){yM3(A);vzy(A);LOj(A);var G=d28(7).setErrorMessage("Timeout connecting to iframe");f(NKy(lv2(new Gfj,XX8(G)),elh(G)))}},MNd(A,pXd(A)));
if(!A.prewarmPromise){e.jumpTo(2);break}_.ht(e,3);return e.yield(A.prewarmPromise,5);case 5:_.qq(e,2);break;case 3:_.vC(e),q=d28(4).setErrorMessage("Error while prewarming."),f(NKy(lv2(new Gfj,XX8(q)),elh(q)));case 2:A.prewarmChannel&&A.prewarmChannel.send(TK2(uw3(new Gfj,A.consentPrimitiveRequest))),A.channel=_.UL({destination:A.win,iframe:t,origin:Ez_(A),channelName:"cpw",onEstablished:function(){Q=!0;yM3(A);A.isLatencyMeasurementExperiment||(A.JSC$19961_previousBodyOverflow=document.body.style.overflow,
A.JSC$19961_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,A.JSC$19961_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",A.enableDialogA11yFix&&window.addEventListener("blur",A.focusChangeListener));var G=A.iframe;G.style.bottom="0";G.style.position="fixed";G.style.right="0";G.style.border="none";G.style.left="0";G.style.top=
"0";G.style.zIndex="5000";G.style.pointerEvents="";G.style.visibility="";A.initialLoadingStrategy===2||A.initialLoadingStrategy===3?F7(A,4):F7(A,6);var N;(N=A.onConsentPrimitiveShownCallback)==null||N.call(A)},
onMessage:function(G){G=P1y(G.data);switch(_.ye(G,1)){case 1:vzy(A);var N=fdQ(_.Mq(G,_.bM,7));N&&(A.initialLoadingStrategy!==2&&A.initialLoadingStrategy!==3||F7(A,6,N),F7(A,5,N));if(N=fdQ(_.Mq(G,_.bM,6)))F7(A,7,N),F7(A,8);var z,T;((z=_.Mq(G,fv_,2))==null?void 0:_.cz(z,Gs))!==0&&((T=_.Mq(G,JMm,8))==null?void 0:_.cz(T,UN8))!==0||X(Error("Ck"));f(G);break;case 2:LOj(A)}}}),_.LO(e)}})},mNd=function(A,t,f){A.prewarmChannel=_.UL({destination:A.win,
iframe:t,origin:Ez_(A),channelName:"pwcp",onEstablished:function(){F7(A,2);f()}})},Ez_=function(A){var t=_.Ei(A.src).toString();
return t&&t.indexOf("://")<0&&t.indexOf("//")!==0?A.origin:_.G_E(t)},hl_=function(A,t){t=t===void 0?!1:t;
var f,X=new Map([["origin",A.origin],["hl",(f=nzQ(A))!=null?f:null]]);t&&X.set("pw","1");t=_.U([["cpr",A.consentPrimitiveRequest.serialize()]]);for(f=t.next();!f.done;f=t.next()){var Q=_.U(f.value);f=Q.next().value;Q=Q.next().value;X.set(f,Q)}A.isDarkTheme()&&X.set("color_scheme","dark");return _.cd(A.src,X)},yM3=function(A){A.isLatencyMeasurementExperiment||A.loadingBar&&document.body.removeChild(A.loadingBar)};
DE.prototype.getSrc=function(){var A=_.G7(this.origin),t;var f=(t=_.Mq(this.consentPrimitiveRequest,g4h,3))==null?void 0:_.Pf(t,1);t="consent.google.com";f=f?"/u/"+encodeURIComponent(f.toString()):"";(A==null?0:A.endsWith("youtube.com"))?t="consent.youtube.com":(A=A==null?void 0:A.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(t="consent.google."+((A[1]?"co.":"")+encodeURIComponent(A[2])));return _.pb("https://"+t+"/signedin"+f+"/landing")};
var C1A=function(A,t,f){A.iframe||(A.iframe=document.createElement("iframe"),A.iframe.style.width="100%",A.iframe.style.height="100%",f!==112496729&&(A.iframe.style.colorScheme="auto"),A.isLatencyMeasurementExperiment&&(A.iframe.style.display="none"),_.rW(A.iframe,t),A.iframe.setAttribute("jsname","C5o1O"),DNc(A.iframe),document.body.appendChild(A.iframe))},DNc=function(A){A.style.bottom="-200vh";
A.style.position="fixed";A.style.right="-200vw";A.style.border="";A.style.left="";A.style.top="";A.style.zIndex="";A.style.pointerEvents="none";A.style.visibility="hidden"},vzy=function(A){A.iframe&&(A.isLatencyMeasurementExperiment||(A.JSC$19961_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=A.JSC$19961_previousHtmlOverscroll),A.JSC$19961_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=A.JSC$19961_previousBodyOverscroll),A.JSC$19961_previousBodyOverflow!==
void 0&&(document.body.style.overflow=A.JSC$19961_previousBodyOverflow),A.enableDialogA11yFix&&FOw(A,!1)),DNc(A.iframe))};
DE.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(FOw(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var FOw=function(A,t){var f,X,Q=(f=A.iframe)==null?void 0:(X=f.parentElement)==null?void 0:X.children;if(Q)for(f=0;f<Q.length;f++)X=Q[f],X!==A.iframe&&(t?(X.hasAttribute("aria-hidden")&&_.GG([_.Pd(Ol3)],X,"data-old-aria-hidden",X.getAttribute("aria-hidden")),_.GG([_.Pd(cMc)],X,"aria-hidden","true")):(X.removeAttribute("aria-hidden"),X.hasAttribute("data-old-aria-hidden")&&(_.GG([_.Pd(BKl)],X,"aria-hidden",X.getAttribute("data-old-aria-hidden")),X.removeAttribute("data-old-aria-hidden"))))},F7=function(A,
t,f){var X;
(X=A.latencyCallback)==null||X.call(A,{latencyType:t,timestampEpochMillis:f!=null?f:Date.now()})};var Iv8=function(A,t,f){DE.call(this,t,f===void 0?!1:f);this.consentPrimitiveRequest=A;A=nzQ(this);_.WI3(A);this.src=this.getSrc();var X;this.initialLoadingStrategy=(X=_.Mq(this.consentPrimitiveRequest,ll,4))==null?void 0:_.ye(X,4)},xNw;
_.R(Iv8,DE);var SY2=function(A){var t=_.M("enable_primitive_dialog_aria_hide_siblings");A={request:A,enableDialogA11yFix:t===void 0?!1:t};xNw||(xNw=new Iv8(A.request,A.isLatencyMeasurementExperiment||_.ye(A.request,1)===2,A.enableDialogA11yFix));return xNw},nzQ=function(A){var t;
return(t=_.Mq(A.consentPrimitiveRequest,ll,4))==null?void 0:_.Wz(t,1)},blA=function(A,t){if(!_.Pz(A.consentPrimitiveRequest,nK,5)){var f=A.consentPrimitiveRequest,X=new nK;
_.bi(f,5,X)}var Q;if((Q=_.Mq(A.consentPrimitiveRequest,nK,5))==null||_.Flu(_.zR(Q,8))==null){var q;(q=_.Mq(A.consentPrimitiveRequest,nK,5))!=null&&_.Ii(q,8,t)}},Rl_=function(A){var t;
return(t=_.Mq(A.consentPrimitiveRequest,nK,5))==null?void 0:_.Pf(t,1)};
Iv8.prototype.isDarkTheme=function(){var A;return((A=_.Mq(this.consentPrimitiveRequest,ll,4))==null?void 0:_.ye(A,2))===2};
var pXd=function(A){var t;return((t=_.Mq(A.consentPrimitiveRequest,ll,4))==null?void 0:_.Pf(t,5))||void 0},LOj=function(A){A.channel=void 0;
A.prewarmChannel=void 0;A.iframe&&(document.body.contains(A.iframe)&&document.body.removeChild(A.iframe),A.iframe=void 0);xNw=void 0},Kk_=function(A){return DE.prototype.showPrimitive.call(A).then(function(t){return _.Mq(t,fv_,2)})};for(var IE={},jrm=(IE[64]="ma",IE[73]="ogb",IE[89]="cr",IE[21]="test",IE[0]="unkn",IE[137]="con",IE[155]="hl",IE[78]="yt",IE[171]="lp",IE[172]="ap",IE[177]="amo",IE[178]="pqe",IE[74]="gg",IE[1]="gm",IE[140]="am",IE[193]="sc",IE),Y_d=_.U(Object.keys(jrm)),VNA=Y_d.next();!VNA.done;VNA=Y_d.next());var Zl_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(Zl_,_.e3);var oz3=[0,[2,3,4],_.Xy,tPj,qUy,_.kp];var dN8=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(dN8,_.e3);var S_A=_.Bu(dN8,[0,_.QD,_.wV,_.Xy,_.wV,_.Xy,oz3]);var $Nh=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R($Nh,_.e3);$Nh.prototype.getCommand=function(){return _.ye(this,1)};
var Hll=function(){var A=new $Nh;return _.nd(A,1,0)};var avA=_.My([0,_.QD,_.wV,[0,_.Xy,_.wV,-1]]);var KOA=new _.mk("s"),gz3=new _.mk("t"),wX3=new _.mk("u"),srm=new _.mk("v"),kf2=function(A,t,f){_.b6.call(this,KOA);this.mediaKey=A;this.photoUrl=t;this.photoSource=f};
_.R(kf2,_.b6);var rMc=function(){_.b6.call(this,gz3)};
_.R(rMc,_.b6);var Az3=function(A){A=A===void 0?!1:A;_.b6.call(this,wX3);this.isError=A};
_.R(Az3,_.b6);var tdh=function(){_.b6.call(this,srm)};
_.R(tdh,_.b6);var fQ8=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Jzl=function(A){if(typeof A=="string"){if(A.charAt(0)==".")return XR3(A.substr(1));if(A.charAt(0)=="["){var t=fQ8.exec(A);A=A.indexOf("=")==-1?void 0:t[3];return QF2(t[1],A)}return qdl(A)}return A},XR3=function(A){return function(t){return t.getAttribute&&_.sY(t,A)}},QF2=function(A,t){return function(f){return t!==void 0?f.getAttribute&&f.getAttribute(A)==t:f.hasAttribute&&f.hasAttribute(A)}},qdl=function(A){A=A.toUpperCase();
return function(t){return(t=t.tagName)&&t.toUpperCase()==A}},Ur2=function(){return!0};var x$=function(A,t){this.JSC$19989_key_=A;this.JSC$19989_value_=t},eoc=function(A){throw Error("Dk`"+A.JSC$19989_key_);
},GT3=function(A,t){return new TypeError("Ek`"+t+"`"+A.JSC$19989_key_+"`"+A.JSC$19989_value_+"`"+typeof A.JSC$19989_value_)};
x$.prototype.string=function(A){return arguments.length==0?lQ8(this):NaQ(this,A)};
var NaQ=function(A,t){var f;return(f=ujy(A))!=null?f:t},lQ8=function(A){var t=ujy(A);
t===null&&eoc(A);return t},ujy=function(A){var t=A.JSC$19989_value_;
if(t==null)return null;if(typeof t==="string")return t;throw GT3(A,"string");};
x$.prototype.bool=function(A){if(arguments.length==0){var t=this.optionalBool();t===null&&eoc(this)}else{var f;t=(f=this.optionalBool())!=null?f:A}return t};
x$.prototype.optionalBool=function(){var A=this.JSC$19989_value_;if(A==null)return null;if(typeof A==="boolean")return A;if(typeof A==="string"){A=A.toLowerCase();if(A==="true"||A==="1")return!0;if(A==="false"||A==="0")return!1}throw GT3(this,"boolean");};
x$.prototype.number=function(A){if(arguments.length==0){var t=zoj(this);t===null&&eoc(this)}else t=PEw(this,A);return t};
var PEw=function(A,t){var f;return(f=zoj(A))!=null?f:t},zoj=function(A){var t=A.JSC$19989_value_;
if(t==null)return null;if(typeof t==="number")return t;if(typeof t==="string"){var f=Number(t);if(!isNaN(f)&&(f!==0||t.trim().length!==0))return f}throw GT3(A,"number");};
x$.prototype.toString=function(){return lQ8(this)};
x$.prototype.enum=function(A,t){var f=!0,X=void 0,Q;for(Q in A){var q=A[Q];f&&(f=!1,X=typeof q==="number"?PEw(this,t):NaQ(this,t));if(q==X)return X}JSON.stringify(A);return X};
x$.prototype.array=function(A){if(arguments.length==0){var t=Tay(this);t===null&&eoc(this);return t}t=Tay(this);return t==null?A:t};
var Tay=function(A){var t=A.JSC$19989_value_;if(t==null)return null;Array.isArray(t)||(typeof t!=="string"?t=[t]:(t=t.trim(),t=t==""?[]:t.split(",").map(function(f){return f.trim()})));
return iyd(A,t)},iyd=function(A,t){var f=A.JSC$19989_key_+"[";
return Array.from(t,function(X,Q){return new x$(f+Q+"]",X)})};
x$.prototype.object=function(A){var t=this.JSC$19989_value_;if(t==null)return A===void 0&&eoc(this),A;if(typeof t==="object"&&t.constructor===Object){A={};var f=this.JSC$19989_key_+".",X;for(X in t)A[X]=new x$(f+X,t[X]);return A}throw GT3(this,"object");};var jE=function(A){this.list_=OyA(A)},OyA=function(A){if(A instanceof jE)A=A.list_;
else if(A[0]instanceof jE){for(var t=new Set,f=0;f<A.length;f++)for(var X=_.U(A[f].list_),Q=X.next();!Q.done;Q=X.next())t.add(Q.value);A=t}return[].concat(_.YV(A))};
_.J=jE.prototype;_.J.each=function(A,t,f){((f===void 0?0:f)?J7d:_.X_)(this.list_,A,t);return this};
_.J.size=function(){return this.list_.length};
_.J.isEmpty=function(){return this.list_.length===0};
_.J.get=function(A){return this.list_[A]||null};
_.J.el=function(){return this.list_[0]||null};
_.J.map=function(A,t){return _.Zg(this.list_,A,t)};
_.J.equals=function(A){return this===A||_.ws(this.list_,A.list_)};
_.J.first=function(){return this.list_.length==0?null:new Y$(this.list_[0])};
_.J.last=function(){return this.list_.length==0?null:new Y$(this.list_[this.list_.length-1])};
_.J.find=function(A){var t=[];this.each(function(f){f=f.querySelectorAll(String(A));for(var X=0;X<f.length;X++)t.push(f[X])});
return new jE(t)};
_.J.parent=function(){var A=[];this.each(function(t){(t=t.parentElement||null)&&!_.Zx(A,t)&&A.push(t)});
return new jE(A)};
_.J.children=function(){var A=[];this.each(function(t){t=_.VD(t);for(var f=0;f<t.length;f++)A.push(t[f])});
return new jE(A)};
_.J.filter=function(A){A=_.tJ(this.list_,Jzl(A));return new jE(A)};
_.J.closest=function(A){var t=[],f=Jzl(A),X=function(Q){return _.lX(Q)&&f(Q)};
this.each(function(Q){(Q=_.Hd(Q,X,!0))&&!_.Zx(t,Q)&&t.push(Q)});
return new jE(t)};
_.J.next=function(A){return czy(this,_.WSp,A)};
_.J.prev=function(A){return czy(this,Jhd,A)};
var czy=function(A,t,f){var X=[];var Q=f?Jzl(f):Ur2;A.each(function(q){(q=t(q))&&Q(q)&&X.push(q)});
return new jE(X)};
jE.prototype.setClass=function(A){return this.each(function(t){_.w_(t,A)})};
var Bad=function(A,t){return A.each(function(f){_.Vx(f,t)})},Mdh=function(A,t){return A.each(function(f){_.jr(f,t)})};
jE.prototype.toggleClass=function(A,t){return t===!0?Bad(this,A):t===!1?Mdh(this,A):this.each(function(f){_.sY(f,A)?_.jr(f,A):_.Vx(f,A)})};
jE.prototype.setText=function(A){return this.each(function(t){_.ZC(t,A)})};
var CE3=function(A){A.each(function(t){t.removeAttribute("aria-hidden")})};
jE.prototype.getStyle=function(A){if(this.list_.length>0){var t=this.list_[0],f=t.style[_.Gr(A)];return typeof f!=="undefined"?f:t.style[_.Vnb(t,A)]||""}};
jE.prototype.getData=function(A){if(this.list_.length===0)return new x$(A,null);var t=uH3(this.list_[0],A);return new x$(A,t)};
jE.prototype.focus=function(A){try{A?this.el().focus(A):this.el().focus()}catch(t){}return this};
jE.prototype.click=function(){var A=_.Sn(this.el());if(A.createEvent){var t=A.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,A.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(t)}else A=A.createEventObject(),A.clientX=0,A.clientY=0,A.screenX=0,A.screenY=0,A.altKey=!1,A.ctrlKey=!1,A.shiftKey=!1,A.button=0,this.el().fireEvent("onclick",A)};
var V4=function(A,t,f,X){function Q(G,N,z){var T=N;N&&N.parentNode&&(T=N.cloneNode(!0));G(T,z)}
X=X===void 0?!1:X;if(A.list_.length==1){var q=A.list_[0],e=function(G){return t(G,q)};
f instanceof jE?f.each(e,void 0,X):Array.isArray(f)?(X?J7d:_.X_)(f,e):e(f);return A}return A.each(function(G){f instanceof jE?f.each(function(N){Q(t,N,G)}):Array.isArray(f)?_.X_(f,function(N){Q(t,N,G)}):Q(t,f,G)})};
_.J=jE.prototype;_.J.append=function(A){return V4(this,function(t,f){t&&f.appendChild(t)},A)};
_.J.appendTo=function(A){(new jE([A])).append(this);return this};
_.J.remove=function(){return V4(this,function(A,t){_.vf(t)},null)};
_.J.empty=function(){return V4(this,function(A,t){_.x6(t)},null)};
_.J.after=function(A,t){return V4(this,function(f,X){f&&_.Y6(f,X)},A,!(t===void 0||t))};
_.J.before=function(A){return V4(this,function(t,f){t&&_.jq(t,f)},A)};
_.J.replaceWith=function(A){return V4(this,function(t,f){t&&_.Rwb(t,f)},A)};
_.J.toggle=function(A){return this.each(function(t){_.tZ(t,A)})};
_.J.show=function(){return this.toggle(!0)};
_.J.hide=function(){return this.toggle(!1)};
_.J.trigger=function(A,t,f,X){return hoQ(this,A,t,f,X)};
var hoQ=function(A,t,f,X,Q){return A.each(function(q){_.OUb(_.Sn(q)).triggerWizEventInternal(q,t,f,X,Q)})},Y$=function(A,t){A instanceof jE&&(t=A.list_,A=null);
this.list_=OyA(A!=null?[A]:t)};
_.rS(Y$,jE);_.J=Y$.prototype;_.J.children=function(){return new jE(Array.prototype.slice.call(_.VD(this.list_[0])))};
_.J.each=function(A,t){A.call(t,this.list_[0],0);return this};
_.J.size=function(){return 1};
_.J.el=function(){return this.list_[0]};
_.J.first=function(){return this};var ZE=function(A,t){t=t===void 0?window:t;this.hostId=A;this.win=t;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$20000_previousHtmlOverscroll=this.JSC$20000_previousBodyOverscroll=this.JSC$20000_previousBodyOverflow="";this.eventTarget=new _.p_;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},byA=function(A){var t=
Ro3(Ro3(Ro3(new mrh(78),"po"),"hppp"),"hhc");
t.authUser=Number(_.ah("SESSION_INDEX","0"));t.colorScheme=A;return t};
ZE.prototype.getOrigin=function(){return this.origin?this.origin:_.GY(_.eQ(_.UE(new _.oq,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
ZE.prototype.getTargetOrigin=function(){return _.GY(_.eQ(_.UE(new _.oq,this.scheme),this.domain),this.port)};
ZE.prototype.preloadIframe=function(A){var t=this;if(this.iframeLoadPromise===void 0){var f=document.createElement("iframe");this.iframe=f;Gq3(f,A);this.iframeLoadPromise=new Promise(function(X,Q){var q=!1,e=function(G){G.stopPropagation();f.removeEventListener("error",e);f.removeEventListener("securitypolicyviolation",e);Q(Error("Fk",{cause:G}))};
f.addEventListener("error",e);f.addEventListener("securitypolicyviolation",e);setTimeout(function(){q||Q(Error("Gk"))},3E4);
Wd_(t,f,function(){q=!0;f.removeEventListener("error",e);f.removeEventListener("securitypolicyviolation",e);X()})});
yzQ(this);A=this.getTargetOrigin().toString();f.setAttribute("allow","camera "+A+"; display-capture "+A);this.parentElement.appendChild(f)}return this.iframeLoadPromise};
var pRw=function(A,t){var f,X;return _.l(function(Q){if(Q.nextAddress==1)return f=tM8(getComputedStyle(A.parentElement).direction==="rtl"),A.parentElement.appendChild(f),document.activeElement instanceof HTMLElement&&(A.elementToFocusAfterClose=document.activeElement),_.ht(Q,2),Q.yield(A.preloadIframe(t),4);if(Q.nextAddress!=2){A.parentElement.removeChild(f);A.JSC$20000_previousBodyOverflow=A.parentElement.style.overflow;A.JSC$20000_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
A.JSC$20000_previousBodyOverscroll=A.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";A.parentElement.style.overscrollBehavior="contain";A.parentElement.style.overflow="hidden";var q=A.iframe;q.style.bottom="0";q.style.border="none";q.style.height="100%";q.style.left="0";q.style.position=A.iframePosition;q.style.right="0";q.style.top="0";q.style.width="100%";q.style.zIndex="2202";q.setAttribute("aria-hidden","false");q.setAttribute("aria-modal","true");
A.opened=!0;vxy(A);return _.qq(Q,0)}X=_.vC(Q);A.parentElement.removeChild(f);J0l(A.isDarkTheme());Ldy(A,!1);throw Error("Hk",{cause:X});})},Ldy=function(A,t){t=t===void 0?!0:t;
A.iframe!==void 0&&(Ex_(A),document.documentElement.style.overscrollBehavior=A.JSC$20000_previousHtmlOverscroll,A.parentElement.style.overscrollBehavior=A.JSC$20000_previousBodyOverscroll,A.parentElement.style.overflow=A.JSC$20000_previousBodyOverflow,A.elementToFocusAfterClose!==void 0&&(A.elementToFocusAfterClose.focus(),A.elementToFocusAfterClose=void 0),t?yzQ(A):(A.parentElement.removeChild(A.iframe),A.iframe=void 0,A.iframeLoadPromise=void 0,A.mainChannel=void 0),A.opened=!1)},Ex_=function(A){A.backgroundElementsAriaHiddenIsNull&&
(CE3(A.backgroundElementsAriaHiddenIsNull),A.backgroundElementsAriaHiddenIsNull=void 0);
A.backgroundElementsAriaHiddenIsFalse&&(A.backgroundElementsAriaHiddenIsFalse.each(function(t){t.setAttribute("aria-hidden","false")}),A.backgroundElementsAriaHiddenIsFalse=void 0);
A.backgroundElementsWithoutInert&&(A.backgroundElementsWithoutInert.each(function(t){t.removeAttribute("inert")}),A.backgroundElementsWithoutInert=void 0)},vxy=function(A){A.backgroundElementsAriaHiddenIsNull=(new Y$(A.iframe.parentElement)).children().filter(function(t){return t.getAttribute("aria-hidden")===null&&t!==A.iframe});
A.backgroundElementsAriaHiddenIsNull.each(function(t){t.setAttribute("aria-hidden","true")});
A.backgroundElementsAriaHiddenIsFalse=(new Y$(A.iframe.parentElement)).children().filter(function(t){return t.getAttribute("aria-hidden")==="false"&&t!==A.iframe});
A.backgroundElementsAriaHiddenIsFalse.each(function(t){t.setAttribute("aria-hidden","true")});
A.backgroundElementsWithoutInert=(new Y$(A.iframe.parentElement)).children().filter(function(t){return!t.hasAttribute("inert")&&t!==A.iframe});
A.backgroundElementsWithoutInert.each(function(t){t.setAttribute("inert","true")})},yzQ=function(A){A=A.iframe;
A.style.bottom="-1000px";A.style.position="fixed";A.style.right="-1000px";A.style.border="";A.style.height="";A.style.left="";A.style.top="";A.style.width="";A.style.zIndex="";A.setAttribute("aria-hidden","true");A.setAttribute("aria-modal","false")};
ZE.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var mrh=function(A,t){ZE.call(this,jrm[A],t);this.options=[];this.style=""};
_.R(mrh,ZE);var nxd=function(A){A.style="youtube";return A},DrA=function(A,t){A.eventTarget.listen(wX3,t);
return A},FdA=function(A,t){A.eventTarget.listen(KOA,t);
return A},Ro3=function(A,t){A.options.push(t);
return A},IQc=function(A){var t=[A.getOrigin()];
A.ancestorOrigins&&t.push.apply(t,_.YV(A.ancestorOrigins));var f=new _.oq(A.win.location.href),X=A.startUrl?A.startUrl:A.options.includes("po")?"profile-picture/art":"profile-picture";t=OLw(_.lR(A.getTargetOrigin(),X),"origin",t);A.startUrl&&_.AZ(t,"startPath",A.startUrl);A.authUser>0&&_.AZ(t,"authuser",A.authUser);A.pageId!==void 0&&_.AZ(t,"pageId",A.pageId);_.AZ(t,"hostId",A.hostId);A.jsMode!==void 0&&_.AZ(t,"jsmode",A.jsMode);A.rectangleRatio!==void 0&&_.AZ(t,"rectangleRatio",A.rectangleRatio);
A.options.length>0&&_.AZ(t,"opts",A.options.join(","));try{for(var Q=_.U(["utm_source","utm_medium","utm_campaign","utm_content"]),q=Q.next();!q.done;q=Q.next()){var e=q.value;_.rw(f,e)&&_.AZ(t,e,_.rw(f,e))}var G,N=(G=A.hl)!=null?G:_.rw(f,"hl");N!==void 0&&_.AZ(t,"hl",N)}catch(z){if(!(z instanceof URIError))throw z;}A.colorScheme&&_.AZ(t,"theme",A.colorScheme);A.style&&_.AZ(t,"style",A.style);return t},xrw=function(A,t){A.mainChannel=_.UL({destination:A.win,
iframe:t,origin:A.getTargetOrigin().toString(),channelName:"ow",onMessage:function(f){f=S_A(f.data);if(t===A.iframe)switch(_.ye(f,1)){case 1:A.eventTarget.dispatchEvent(new Az3);Ldy(A);break;case 2:A.eventTarget.dispatchEvent(new kf2(_.Wz(f,4),_.Wz(f,2),_.ye(f,5),_.Mq(f,Zl_,6)));break;case 0:var X;A.eventTarget.dispatchEvent(new rMc(_.Wz(f,2),(X=_.ye(f,3))!=null?X:0));break;case 3:A.eventTarget.dispatchEvent(new Az3(!0));Ldy(A,!1);break;case 4:A.eventTarget.dispatchEvent(new tdh)}}})},Wd_=function(A,
t,f){_.UL({destination:A.win,
iframe:t,origin:_.GY(_.eQ(_.UE(new _.oq,A.scheme),A.domain),A.port).toString(),channelName:"owi",onMessage:function(X){t===A.iframe&&(f!==void 0&&f(),xrw(A,t),A.opened&&A.mainChannel.send(avA(Hll())),X.reply(),Wd_(A,t))}})};
mrh.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?ZE.prototype.preloadIframe.call(this,IQc(this).toString()):this.iframeLoadPromise};
mrh.prototype.openPicker=function(A){var t=this;return _.l(function(f){if(f.nextAddress==1)return t.startUrl=A?A:t.options.includes("po")?"profile-picture/art":"profile-picture",f.yield(pRw(t,IQc(t).toString()),2);if(t.mainChannel){var X=t.mainChannel,Q=X.send;var q=Hll();q=_.Dg(q,2,t.startUrl);Q.call(X,avA(q))}_.LO(f)})};var jF3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(jF3,_.e3);_.J=jF3.prototype;_.J.getSize=function(){return Or(this,1)};
_.J.setSize=function(A){return _.E1(this,1,A)};
_.J.getWidth=function(){return Or(this,12)};
_.J.getHeight=function(){return Or(this,13)};
_.J.setCenterCrop=function(A){return _.cf(this,20,A)};
_.J.getHtml=function(){return _.hJ(this,4)};
_.J.getToken=function(){return _.Wf(this,24)};
_.J.setToken=function(A){return _.Dg(this,24,A)};
_.J.getBackgroundColor=function(){return Or(this,87)};
_.J.hasBackgroundColor=function(){return _.ej(_.zR(this,87))!=null};
_.J.getStoryboardLevel=function(){return Or(this,109)};var oE=function(A){this.JSC$20008_value_=void 0;this.childNodes_={};if(A){var t=_.PXT(A);A=_.JH(A);for(var f=0;f<t.length;f++)this.set(t[f],A[f])}};
oE.prototype.set=function(A,t){Yd2(this,A,t,!1)};
oE.prototype.add=function(A,t){Yd2(this,A,t,!0)};
var Yd2=function(A,t,f,X){for(var Q=0;Q<t.length;Q++){var q=t.charAt(Q);A.childNodes_[q]||(A.childNodes_[q]=new oE);A=A.childNodes_[q]}if(X&&A.JSC$20008_value_!==void 0)throw Error("Ik`"+t);A.JSC$20008_value_=f},Vdw=function(A,t){for(var f=0;f<t.length;f++)if(A=A.childNodes_[t.charAt(f)],!A)return;
return A};
oE.prototype.get=function(A){return(A=Vdw(this,A))?A.JSC$20008_value_:void 0};
oE.prototype.getValues=function(){var A=[];Zy3(this,A);return A};
var Zy3=function(A,t){A.JSC$20008_value_!==void 0&&t.push(A.JSC$20008_value_);for(var f in A.childNodes_)Zy3(A.childNodes_[f],t)};
oE.prototype.getKeys=function(A){var t=[];if(A){for(var f=this,X=0;X<A.length;X++){var Q=A.charAt(X);if(!f.childNodes_[Q])return[];f=f.childNodes_[Q]}ox8(f,A,t)}else ox8(this,"",t);return t};
var ox8=function(A,t,f){A.JSC$20008_value_!==void 0&&f.push(t);for(var X in A.childNodes_)ox8(A.childNodes_[X],t+X,f)};
_.J=oE.prototype;_.J.containsKey=function(A){return this.get(A)!==void 0};
_.J.containsValue=function(A){if(this.JSC$20008_value_===A)return!0;for(var t in this.childNodes_)if(this.childNodes_[t].containsValue(A))return!0;return!1};
_.J.clear=function(){this.childNodes_={};this.JSC$20008_value_=void 0};
_.J.remove=function(A){for(var t=this,f=[],X=0;X<A.length;X++){var Q=A.charAt(X);if(!t.childNodes_[Q])throw Error("Jk`"+A);f.push([t,Q]);t=t.childNodes_[Q]}A=t.JSC$20008_value_;for(delete t.JSC$20008_value_;f.length>0;)if(X=f.pop(),t=X[0],X=X[1],t.childNodes_[X].isEmpty())delete t.childNodes_[X];else break;return A};
_.J.clone=function(){return new oE(this)};
_.J.getCount=function(){return Nc3(this.getValues())};
_.J.isEmpty=function(){return this.JSC$20008_value_===void 0&&_.VG.isEmpty(this.childNodes_)};var PMh=function(){if(!dr3){var A=dr3=new oE,t;for(t in Sdd)A.add(t,Sdd[t])}},dr3,dQ=function(A,t){this.types=A;
this.setters=t},Sdd={a:new dQ([3,
0],[function(A,t){_.cf(A,21,t)},
function(A,t){_.E1(A,56,t)}]),
al:new dQ([3],[function(A,t){_.cf(A,74,t)}]),
b:new dQ([3,0],[function(A,t){_.cf(A,23,t)},
function(A,t){_.E1(A,38,t)}]),
ba:new dQ([0],[function(A,t){_.E1(A,85,t)}]),
bc:new dQ([0],[function(A,t){_.E1(A,87,t)}]),
br:new dQ([0],[function(A,t){_.E1(A,86,t)}]),
c:new dQ([3,0],[function(A,t){_.cf(A,2,t)},
function(A,t){_.E1(A,39,t)}]),
cc:new dQ([3],[function(A,t){_.cf(A,51,t)}]),
ci:new dQ([3],[function(A,t){_.cf(A,32,t)}]),
ckm:new dQ([3],[function(A,t){_.cf(A,104,t)}]),
cp:new dQ([0],[function(A,t){_.E1(A,92,t)}]),
cr:new dQ([3],[function(A,t){_.cf(A,108,t)}]),
cv:new dQ([0],[function(A,t){_.E1(A,94,t)}]),
d:new dQ([3],[function(A,t){_.cf(A,3,t)}]),
dc:new dQ([5],[function(A,t){_.Dg(A,99,t)}]),
df:new dQ([3],[function(A,t){_.cf(A,80,t)}]),
dv:new dQ([3],[function(A,t){_.cf(A,90,t)}]),
e:new dQ([0],[function(A,t){_.E1(A,15,t)}]),
em:new dQ([0],[function(A,t){_.E1(A,107,t)}]),
f:new dQ([4],[function(A,t){_.Dg(A,16,t)}]),
fg:new dQ([3],[function(A,t){_.cf(A,34,t)}]),
fh:new dQ([3],[function(A,t){_.cf(A,30,t)}]),
fm:new dQ([3],[function(A,t){_.cf(A,84,t)}]),
fo:new dQ([2],[function(A,t){_.hq(A,79,_.KS(t))}]),
ft:new dQ([3],[function(A,t){_.cf(A,50,t)}]),
fv:new dQ([3],[function(A,t){_.cf(A,31,t)}]),
g:new dQ([3],[function(A,t){_.cf(A,14,t)}]),
gce:new dQ([4],[function(A,t){_.Dg(A,112,t)}]),
gd:new dQ([3],[function(A,t){_.cf(A,83,t)}]),
gm:new dQ([3],[function(A,t){_.cf(A,105,t)}]),
h:new dQ([3,0],[function(A,t){_.cf(A,4,t)},
function(A,t){_.E1(A,13,t)}]),
i:new dQ([3],[function(A,t){_.cf(A,22,t)}]),
ic:new dQ([0],[function(A,t){_.E1(A,71,t)}]),
id:new dQ([3],[function(A,t){_.cf(A,70,t)}]),
il:new dQ([3],[function(A,t){_.cf(A,96,t)}]),
ip:new dQ([3],[function(A,t){_.cf(A,54,t)}]),
iv:new dQ([0],[function(A,t){_.Ii(A,75,t)}]),
j:new dQ([1],[function(A,t){t=t==null?t:GVd(t);_.hq(A,29,t)}]),
k:new dQ([3,0],[function(A,t){_.cf(A,17,t)},
function(A,t){_.E1(A,42,t)}]),
l:new dQ([0],[function(A,t){_.E1(A,44,t)}]),
lf:new dQ([3],[function(A,t){_.cf(A,65,t)}]),
lo:new dQ([3],[function(A,t){_.cf(A,97,t)}]),
m:new dQ([0],[function(A,t){_.E1(A,63,t)}]),
md:new dQ([3],[function(A,t){_.cf(A,91,t)}]),
mm:new dQ([4],[function(A,t){_.Dg(A,81,t)}]),
mo:new dQ([3],[function(A,t){_.cf(A,73,t)}]),
mp:new dQ([0],[function(A,t){_.E1(A,115,t)}]),
mv:new dQ([3],[function(A,t){_.cf(A,66,t)}]),
n:new dQ([3],[function(A,t){A.setCenterCrop(t)}]),
nc:new dQ([3],[function(A,t){_.cf(A,55,t)}]),
nd:new dQ([3],[function(A,t){_.cf(A,53,t)}]),
ng:new dQ([3],[function(A,t){_.cf(A,95,t)}]),
ngm:new dQ([3],[function(A,t){_.cf(A,106,t)}]),
no:new dQ([3],[function(A,t){_.cf(A,37,t)}]),
ns:new dQ([3],[function(A,t){_.cf(A,40,t)}]),
nt0:new dQ([4],[function(A,t){_.Dg(A,36,t)}]),
ntm:new dQ([3],[function(A,t){_.cf(A,114,t)}]),
nu:new dQ([3],[function(A,t){_.cf(A,46,t)}]),
nw:new dQ([3],[function(A,t){_.cf(A,48,t)}]),
o:new dQ([1,3],[function(A,t){t=t==null?t:GVd(t);_.hq(A,7,t)},
function(A,t){_.cf(A,27,t)}]),
p:new dQ([3,0],[function(A,t){_.cf(A,19,t)},
function(A,t){_.E1(A,43,t)}]),
pa:new dQ([3],[function(A,t){_.cf(A,61,t)}]),
pc:new dQ([0],[function(A,t){_.E1(A,88,t)}]),
pd:new dQ([3],[function(A,t){_.cf(A,60,t)}]),
pf:new dQ([3],[function(A,t){_.cf(A,67,t)}]),
pg:new dQ([3],[function(A,t){_.cf(A,72,t)}]),
pi:new dQ([2],[function(A,t){_.hq(A,76,_.KS(t))}]),
pp:new dQ([3],[function(A,t){_.cf(A,52,t)}]),
pt:new dQ([4],[function(A,t){_.Dg(A,111,t)}]),
q:new dQ([4],[function(A,t){_.Dg(A,28,t)}]),
r:new dQ([3,0],[function(A,t){_.cf(A,6,t)},
function(A,t){_.E1(A,26,t)}]),
ra:new dQ([3],[function(A,t){_.cf(A,103,t)}]),
rf:new dQ([3],[function(A,t){_.cf(A,100,t)}]),
rg:new dQ([3],[function(A,t){_.cf(A,59,t)}]),
rh:new dQ([3],[function(A,t){_.cf(A,49,t)}]),
rj:new dQ([3],[function(A,t){_.cf(A,57,t)}]),
ro:new dQ([2],[function(A,t){_.hq(A,78,_.KS(t))}]),
rp:new dQ([3],[function(A,t){_.cf(A,58,t)}]),
rw:new dQ([3],[function(A,t){_.cf(A,35,t)}]),
rwa:new dQ([3],[function(A,t){_.cf(A,64,t)}]),
rwu:new dQ([3],[function(A,t){_.cf(A,41,t)}]),
s:new dQ([3,0],[function(A,t){_.cf(A,33,t)},
function(A,t){A.setSize(t)}]),
sb:new dQ([0],[function(A,t){_.E1(A,110,t)}]),
sc:new dQ([0],[function(A,t){_.E1(A,89,t)}]),
sg:new dQ([3],[function(A,t){_.cf(A,82,t)}]),
sl:new dQ([0],[function(A,t){_.E1(A,109,t)}]),
sm:new dQ([3],[function(A,t){_.cf(A,93,t)}]),
t:new dQ([4],[function(A,t){A.setToken(t)}]),
tm:new dQ([3],[function(A,t){_.cf(A,113,t)}]),
u:new dQ([3],[function(A,t){_.cf(A,18,t)}]),
ut:new dQ([3],[function(A,t){_.cf(A,45,t)}]),
v:new dQ([0],[function(A,t){_.E1(A,62,t)}]),
vb:new dQ([0],[function(A,t){_.Ii(A,68,t)}]),
vf:new dQ([4],[function(A,t){_.Dg(A,102,t)}]),
vl:new dQ([0],[function(A,t){_.Ii(A,69,t)}]),
vm:new dQ([3],[function(A,t){_.cf(A,98,t)}]),
w:new dQ([0],[function(A,t){_.E1(A,12,t)}]),
x:new dQ([0],[function(A,t){_.E1(A,9,t)}]),
y:new dQ([0],[function(A,t){_.E1(A,10,t)}]),
ya:new dQ([2],[function(A,t){_.hq(A,77,_.KS(t))}]),
z:new dQ([0],[function(A,t){_.E1(A,11,t)}])};
PMh.prototype.parse=function(A){var t=new jF3,f=new jF3;if(A=="")A=!0;else{A=A.split("-");for(var X=!0,Q=0;Q<A.length;Q++){var q=A[Q];if(q.length==0)X=!1;else{var e=q,G=!1;var N=e;var z=e.charAt(0);z!=z.toLowerCase()&&(G=!0,N=e.charAt(0).toLowerCase()+e.substring(1));var T=dr3;for(z=1;z<=N.length;++z){var O=T,c=N.substring(0,z);if(c.length==0?O.isEmpty():!Vdw(O,c))break}N=z==1?null:(N=T.get(N.substring(0,z-1)))?{option:e.substring(0,z-1),value:e.substring(z-1),signed:G,attributes:N}:null;if(N){e=
[];G=[];z=!1;for(T=0;T<N.attributes.types.length;T++){O=N.attributes.types[T];var B=N.value;c=Q;if(N.signed&&O==1)for(var h=B.length;h<12&&c<A.length-1;)B+="-"+A[c+1],h=B.length,++c;else if(O==2)for(;c<A.length-1&&A[c+1].match(/^[\d\.]/);)B+="-"+A[c+1],++c;h=N.attributes.setters[T];B=$r3(this,O)(N.option,B,t,f,h);if(B===null){z=!0;Q=c;break}else e.push(O),G.push(B)}if(!z)for(N=0;N<G.length;N++)T=e[N],B=G[N],Hyj(this,T)(q,B);X=X&&z}else X=!1}}A=X}return new aQ3(t,f,A)};
var Kdm=function(A,t,f,X,Q,q){Q(f,t);A=A.charAt(0);q=q(A==A.toUpperCase());Q(X,q)};
_.J=PMh.prototype;_.J.parseAndSetIntOption_=function(A,t,f,X,Q){if(t=="")return 0;isFinite(t)&&(t=String(t));t=typeof t==="string"?/^\s*-?0x/i.test(t)?parseInt(t,16):parseInt(t,10):NaN;if(isNaN(t))return 1;Kdm(A,t,f,X,Q,Number);return null};
_.J.logIntParseError_=function(){};
_.J.parseAndSetFloatOption_=function(A,t,f,X,Q){if(t=="")return 0;var q=Number(t);t=q==0&&_.Ux(t)?NaN:q;if(isNaN(t))return 1;Kdm(A,t,f,X,Q,Number);return null};
_.J.logFloatParseError_=function(){};
_.J.parseAndSetBoolOption_=function(A,t,f,X,Q){if(t!="")return 2;Kdm(A,!0,f,X,Q,Boolean);return null};
_.J.logBoolParseError_=function(){};
_.J.parseAndSetStringOption_=function(A,t,f,X,Q){if(t=="")return 0;Kdm(A,t,f,X,Q,function(q){return q?"1":""});
return null};
_.J.logStringParseError_=function(){};
_.J.parseAndSetUint64Base64Option_=function(A,t,f,X,Q){if(t=="")return 0;Kdm(A,t,f,X,Q,function(q){return q?1:0});
return null};
var $r3=function(A,t){switch(t){case 0:return(0,_.F1)(A.parseAndSetIntOption_,A);case 2:return(0,_.F1)(A.parseAndSetFloatOption_,A);case 3:return(0,_.F1)(A.parseAndSetBoolOption_,A);case 4:return(0,_.F1)(A.parseAndSetStringOption_,A);case 1:return(0,_.F1)(A.parseAndSetUint64Base64Option_,A);default:return function(){}}},Hyj=function(A,t){switch(t){case 0:return(0,_.F1)(A.logIntParseError_,A);
case 2:return(0,_.F1)(A.logFloatParseError_,A);case 3:return(0,_.F1)(A.logBoolParseError_,A);case 4:case 1:return(0,_.F1)(A.logStringParseError_,A);default:return function(){}}},aQ3=function(A,t,f){this.valueProto_=A;
this.signatureFlagProto_=t;this.JSC$20020_valid_=f};
aQ3.prototype.isValid=function(){return this.JSC$20020_valid_};var ldQ=function(A){this.JSC$20021_parser_=null;this.JSC$20021_components_=[];this.JSC$20021_parsedOptions_=null;gxw(this,A)},wR3=function(A){A.JSC$20021_parser_==null&&(A.JSC$20021_parser_=new PMh);
return A.JSC$20021_parser_},gxw=function(A,t){A.JSC$20021_parsedOptions_=t?typeof t==="string"?wR3(A).parse(t):t:wR3(A).parse("")},SE=function(A,t){return A==t?!1:!0};
_.J=ldQ.prototype;_.J.JSC$20023_setCrop=function(A){A=A||void 0;var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,_.hJ(f,2),_.hJ(t.signatureFlagProto_,2))&&_.cf(f,2,A);return this};
_.J.JSC$20023_setCircleCrop=function(A){A=A||void 0;var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,il(f,51),il(t.signatureFlagProto_,51))&&_.cf(f,51,A);return this};
_.J.JSC$20023_setImageCrop=function(A){A=A||void 0;var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,il(f,32),il(t.signatureFlagProto_,32))&&_.cf(f,32,A);return this};
_.J.JSC$20023_setHeight=function(A){var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,f.getHeight(),t.signatureFlagProto_.getHeight())&&_.E1(f,13,A);return this};
_.J.setCenterCrop=function(A){A=A||void 0;var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,_.hJ(f,20),_.hJ(t.signatureFlagProto_,20))&&f.setCenterCrop(A);return this};
_.J.JSC$20023_setSmartCrop=function(A){A=A||void 0;var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,_.hJ(f,19),_.hJ(t.signatureFlagProto_,19))&&_.cf(f,19,A);return this};
_.J.JSC$20023_setPad=function(A){A=A||void 0;var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,il(f,60),il(t.signatureFlagProto_,60))&&_.cf(f,60,A);return this};
_.J.JSC$20023_setSmartCropUseFace=function(A){A=A||void 0;var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,_.hJ(f,67),_.hJ(t.signatureFlagProto_,67))&&_.cf(f,67,A);return this};
_.J.JSC$20023_setSmartCropNoClip=function(A){A=A||void 0;var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,_.hJ(f,52),_.hJ(t.signatureFlagProto_,52))&&_.cf(f,52,A);return this};
_.J.setSize=function(A){var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,f.getSize(),t.signatureFlagProto_.getSize())&&f.setSize(A);return this};
_.J.setToken=function(A){A=A||void 0;var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,f.getToken(),t.signatureFlagProto_.getToken())&&f.setToken(A);return this};
_.J.JSC$20023_setWidth=function(A){var t=this.JSC$20021_parsedOptions_,f=t.valueProto_;SE(A,f.getWidth(),t.signatureFlagProto_.getWidth())&&_.E1(f,12,A);return this};
_.J.clearOptions=function(){gxw(this,"");return this};
_.J.build=function(){this.JSC$20021_components_.length=0;var A=this.JSC$20021_parsedOptions_,t=A.valueProto_;A=A.signatureFlagProto_;$$(this,"s",t.getSize(),A.getSize());$$(this,"w",t.getWidth(),A.getWidth());HK(this,"c",_.hJ(t,2),_.hJ(A,2));HK(this,"d",_.hJ(t,3),_.hJ(A,3));$$(this,"h",t.getHeight(),A.getHeight());HK(this,"s",il(t,33),il(A,33));HK(this,"h",t.getHtml(),A.getHtml());HK(this,"p",_.hJ(t,19),_.hJ(A,19));HK(this,"pp",_.hJ(t,52),_.hJ(A,52));HK(this,"pf",_.hJ(t,67),_.hJ(A,67));HK(this,"n",
_.hJ(t,20),_.hJ(A,20));$$(this,"r",Or(t,26),Or(A,26));HK(this,"r",_.hJ(t,6),_.hJ(A,6));HK(this,"o",il(t,27),il(A,27));var f=_.Cd(t,7,_.ur);aE(this,"o",f,_.Cd(A,7,_.ur));f=_.Cd(t,29,_.ur);aE(this,"j",f,_.Cd(A,29,_.ur));$$(this,"x",Or(t,9),Or(A,9));$$(this,"y",Or(t,10),Or(A,10));$$(this,"z",Or(t,11),Or(A,11));HK(this,"g",_.hJ(t,14),_.hJ(A,14));$$(this,"e",Or(t,15),Or(A,15));aE(this,"f",_.Wf(t,16),_.Wf(A,16));HK(this,"k",il(t,17),il(A,17));HK(this,"u",il(t,18),!0);HK(this,"ut",il(t,45),!0);HK(this,"i",
il(t,22),!0);HK(this,"a",il(t,21),il(A,21));HK(this,"b",_.hJ(t,23),_.hJ(A,23));$$(this,"b",Or(t,38),Or(A,38));$$(this,"c",Or(t,39),Or(A,39),16,8);aE(this,"q",_.Wf(t,28),_.Wf(A,28));HK(this,"fh",il(t,30),il(A,30));HK(this,"fv",il(t,31),il(A,31));HK(this,"fg",_.hJ(t,34),_.hJ(A,34));HK(this,"ci",il(t,32),il(A,32));aE(this,"t",t.getToken(),A.getToken());aE(this,"nt0",_.Wf(t,36),_.Wf(A,36));HK(this,"rw",_.hJ(t,35),_.hJ(A,35));HK(this,"rwu",_.hJ(t,41),_.hJ(A,41));HK(this,"rwa",_.hJ(t,64),_.hJ(A,64));HK(this,
"nw",_.hJ(t,48),_.hJ(A,48));HK(this,"rh",_.hJ(t,49),_.hJ(A,49));HK(this,"no",_.hJ(t,37),_.hJ(A,37));HK(this,"ns",il(t,40),il(A,40));$$(this,"k",Or(t,42),Or(A,42));$$(this,"p",Or(t,43),Or(A,43));$$(this,"l",Or(t,44),Or(A,44));$$(this,"v",Or(t,62),Or(A,62));HK(this,"nu",il(t,46),il(A,46));HK(this,"ft",il(t,50),il(A,50));HK(this,"cc",il(t,51),il(A,51));HK(this,"nd",il(t,53),il(A,53));HK(this,"ip",il(t,54),il(A,54));HK(this,"nc",il(t,55),il(A,55));$$(this,"a",Or(t,56),Or(A,56));HK(this,"rj",il(t,57),
il(A,57));HK(this,"rp",il(t,58),il(A,58));HK(this,"rg",il(t,59),il(A,59));HK(this,"pd",il(t,60),il(A,60));HK(this,"pa",il(t,61),il(A,61));$$(this,"m",Or(t,63),Or(A,63));$$(this,"vb",cK(t,68),cK(A,68));$$(this,"vl",cK(t,69),cK(A,69));HK(this,"lf",il(t,65),il(A,65));HK(this,"mv",il(t,66),il(A,66));HK(this,"id",il(t,70),il(A,70));$$(this,"ic",Or(t,71),!0);HK(this,"pg",_.hJ(t,72),_.hJ(A,72));HK(this,"mo",il(t,73),il(A,73));HK(this,"al",il(t,74),il(A,74));$$(this,"iv",cK(t,75),cK(A,75));$$(this,"pi",BK(t,
76),BK(A,76));$$(this,"ya",BK(t,77),BK(A,77));$$(this,"ro",BK(t,78),BK(A,78));$$(this,"fo",BK(t,79),BK(A,79));HK(this,"df",il(t,80),il(A,80));aE(this,"mm",_.Wf(t,81),_.Wf(A,81));HK(this,"sg",il(t,82),il(A,82));HK(this,"gd",il(t,83),il(A,83));HK(this,"fm",il(t,84),il(A,84));$$(this,"ba",Or(t,85),Or(A,85));$$(this,"br",Or(t,86),Or(A,86));$$(this,"bc",t.getBackgroundColor(),A.getBackgroundColor(),16,8);$$(this,"pc",Or(t,88),Or(A,88),16,8);$$(this,"sc",Or(t,89),Or(A,89),16,8);HK(this,"dv",il(t,90),il(A,
90));HK(this,"md",il(t,91),il(A,91));$$(this,"cp",Or(t,92),Or(A,92));HK(this,"sm",il(t,93),il(A,93));$$(this,"cv",Or(t,94),Or(A,94));HK(this,"ng",il(t,95),il(A,95));HK(this,"il",il(t,96),il(A,96));HK(this,"lo",il(t,97),il(A,97));HK(this,"vm",il(t,98),il(A,98));aE(this,"dc",_.Wf(t,99),_.Wf(A,99));HK(this,"rf",il(t,100),il(A,100));aE(this,"vf",_.Wf(t,102),_.Wf(A,102));HK(this,"ra",_.hJ(t,103),_.hJ(A,103));HK(this,"ckm",il(t,104),il(A,104));HK(this,"gm",il(t,105),il(A,105));HK(this,"ngm",il(t,106),il(A,
106));$$(this,"em",Or(t,107),Or(A,107));HK(this,"cr",il(t,108),il(A,108));$$(this,"sl",t.getStoryboardLevel(),A.getStoryboardLevel());$$(this,"sb",Or(t,110),Or(A,110));aE(this,"pt",_.Wf(t,111),_.Wf(A,111));aE(this,"gce",_.Wf(t,112),_.Wf(A,112));HK(this,"tm",il(t,113),il(A,113));HK(this,"ntm",il(t,114),il(A,114));$$(this,"mp",Or(t,115),Or(A,115));return this.JSC$20021_components_.join("-")};
var $$=function(A,t,f,X,Q,q){if(f!=null){var e=Q==void 0||Q!=10&&Q!=16?10:Q;f=Number(f).toString(e);Q=new y7_;Q.append(e==16?"0x":"");e=Q.append;q==void 0?q="":(q-=f.length,q=q<=0?"":(0,_.Nkl)("0",q));e.call(Q,q);Q.append(f);sF3(A,t,Q.toString(),!!Number(X))}},HK=function(A,t,f,X){f&&sF3(A,t,"",!!X)},aE=function(A,t,f,X){f&&sF3(A,t,String(f),!!Number(X))},sF3=function(A,t,f,X){X&&(t=t.charAt(0).toUpperCase()+t.substring(1));
A.JSC$20021_components_.push(t+f)};_.rS(nC,ldQ);_.J=nC.prototype;_.J.JSC$20023_setCrop=function(A){A&&KK(this);return nC.superClass_.JSC$20023_setCrop.call(this,A)};
_.J.JSC$20023_setHeight=function(A){A=A==null||A<0?void 0:A;A!=null&&this.setSize();return nC.superClass_.JSC$20023_setHeight.call(this,A)};
_.J.JSC$20023_setImageCrop=function(A){A&&KK(this);return nC.superClass_.JSC$20023_setImageCrop.call(this,A)};
_.J.JSC$20023_setCircleCrop=function(A){A&&KK(this);return nC.superClass_.JSC$20023_setCircleCrop.call(this,A)};
_.J.setSize=function(A){_.Hp(A)&&(A=Math.max(A.width,A.height));A=A==null||A<0?void 0:A;A!=null&&(this.JSC$20023_setWidth(),this.JSC$20023_setHeight());return nC.superClass_.setSize.call(this,A)};
_.J.JSC$20023_setSmartCrop=function(A){A&&KK(this);return nC.superClass_.JSC$20023_setSmartCrop.call(this,A)};
_.J.JSC$20023_setSmartCropNoClip=function(A){A&&KK(this);return nC.superClass_.JSC$20023_setSmartCropNoClip.call(this,A)};
_.J.JSC$20023_setSmartCropUseFace=function(A){A&&KK(this);return nC.superClass_.JSC$20023_setSmartCropUseFace.call(this,A)};
_.J.setCenterCrop=function(A){A&&KK(this);return nC.superClass_.setCenterCrop.call(this,A)};
_.J.JSC$20023_setPad=function(A){A&&KK(this);return nC.superClass_.JSC$20023_setPad.call(this,A)};
_.J.JSC$20023_setWidth=function(A){A=A==null||A<0?void 0:A;A!=null&&this.setSize();return nC.superClass_.JSC$20023_setWidth.call(this,A)};
var kTQ=function(A){A.clearOptions();var t=A.JSC$20021_parsedOptions_,f=t.valueProto_;SE(!0,_.hJ(f,3),_.hJ(t.signatureFlagProto_,3))&&_.cf(f,3,!0);return A},KK=function(A){A.setCenterCrop();
A.JSC$20023_setCircleCrop();A.JSC$20023_setCrop();A.JSC$20023_setImageCrop();A.JSC$20023_setPad();A.JSC$20023_setSmartCrop();A.JSC$20023_setSmartCropNoClip();A.JSC$20023_setSmartCropUseFace()};
nC.prototype.build=function(){var A=this.JSC$20021_parsedOptions_.valueProto_;il(A,18)||il(A,45)?A.getSize()||this.setSize(0):(A=this.JSC$20021_parsedOptions_.valueProto_,A.getSize()||A.getWidth()||A.getHeight()||(this.setSize(),this.JSC$20023_setHeight(),this.JSC$20023_setWidth(),KK(this)));return nC.superClass_.build.call(this)};var rz2=/^[^\/]*\/\//,Aam=function(A,t){t=t===void 0?!1:t;this.original_=A;this.originalPrefix_="";(A=this.original_.match(rz2))&&A[0]?(this.originalPrefix_=A[0],A=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):A="http://"+this.original_;this.uri_=_.kC(A,!0);this.isFreeformUrl_=t;this.JSC$20027_valid_=!0;this.obfuscated_=!1},tD3=function(A,t){A.JSC$20029_pathPrefix_=A.JSC$20029_pathPrefix_?A.JSC$20029_pathPrefix_+("/"+t):t},gQ=function(A){if(A.JSC$20029_components_==
void 0){var t=A.uri_.getPath().substring(1);
A.JSC$20029_pathPrefix_=null;if(A.isFreeformUrl_){A.JSC$20029_components_=[];if((t.match(/=/g)||[]).length>1)return A.JSC$20027_valid_=!1,A.JSC$20029_components_;var f=t.indexOf("=");f!=-1?(A.JSC$20029_components_.push(t.substr(0,f)),A.JSC$20029_components_.push(t.substr(f+1))):A.JSC$20029_components_.push(t);return A.JSC$20029_components_}A.JSC$20029_components_=t.split("/");t=A.JSC$20029_components_.length;t>2&&A.JSC$20029_components_[0]=="u"&&(tD3(A,A.JSC$20029_components_[0]+"/"+A.JSC$20029_components_[1]),
A.JSC$20029_components_.shift(),A.JSC$20029_components_.shift(),t-=2);if(t==0||t==4||t>7)return A.JSC$20027_valid_=!1,A.JSC$20029_components_;if(t==2)tD3(A,A.JSC$20029_components_[0]);else if(A.JSC$20029_components_[0]=="image")tD3(A,A.JSC$20029_components_[0]);else if(t==7||t==3)return A.JSC$20027_valid_=!1,A.JSC$20029_components_;if(t<=3){A.obfuscated_=!0;t==3&&(tD3(A,A.JSC$20029_components_[1]),A.JSC$20029_components_.shift(),--t);--t;f=A.JSC$20029_components_[t];var X=f.indexOf("=");X!=-1&&(A.JSC$20029_components_[t]=
f.substr(0,X),A.JSC$20029_components_.push(f.substr(X+1)))}}return A.JSC$20029_components_};
Aam.prototype.isValid=function(){gQ(this);return this.JSC$20027_valid_};
Aam.prototype.isObfuscated=function(){gQ(this);return this.obfuscated_};
var fmy=function(A){gQ(A);return A.isFreeformUrl_},wQ=function(A){gQ(A);
A.JSC$20029_pathPrefix_==void 0&&(A.JSC$20029_pathPrefix_=null);return A.JSC$20029_pathPrefix_},XS8=function(A){switch(gQ(A).length){case 7:return!0;
case 6:return wQ(A)==null;case 5:return!1;case 3:return!0;case 2:return wQ(A)==null;case 1:return!1;default:return!1}},sr=function(A,t){if(fmy(A))a:{switch(t){case 7:t=0;
break;case 4:if(!XS8(A)){A=null;break a}t=1;break;default:A=null;break a}A=gQ(A)[t]}else if(A.isObfuscated())a:{var f=wQ(A)!=null?1:0;switch(t){case 6:t=f;break;case 4:if(!XS8(A)){A=null;break a}t=1+f;break;default:A=null;break a}A=gQ(A)[t]}else a:{f=wQ(A)!=null?1:0;switch(t){case 0:t=f;break;case 1:t=1+f;break;case 2:t=2+f;break;case 3:t=3+f;break;case 4:if(!XS8(A)){A=null;break a}t=4+f;break;case 5:t=XS8(A)?1:0;t=4+f+t;break;default:A=null;break a}A=gQ(A)[t]}return A};
Aam.prototype.getOptions=function(){this.options_==void 0&&(this.options_=sr(this,4));return this.options_};var zyc=function(){};
zyc.prototype.parse=function(A,t){return new NPm(A,t===void 0?!1:t)};
var NPm=function(A,t){Aam.call(this,A,t===void 0?!1:t)};
_.R(NPm,Aam);_.rS(TPj,nC);var uI8;TPj.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
TPj.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var A=TPj.superClass_.build.call(this),t=[];wQ(this.parsedImageUrl_)!=null&&t.push(wQ(this.parsedImageUrl_));var f=fmy(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var X=this.parsedImageUrl_;X.obfuscatedData_==void 0&&(X.obfuscatedData_=sr(X,6));t.push(X.obfuscatedData_+(A?"="+A:""))}else if(f){X=t.push;var Q=this.parsedImageUrl_;Q.freeformUrlPath_===void 0&&(Q.freeformUrlPath_=
sr(Q,7));X.call(t,Q.freeformUrlPath_);A&&t.push(A)}else X=t.push,Q=this.parsedImageUrl_,Q.obfuscatedGaiaId_==void 0&&(Q.obfuscatedGaiaId_=sr(Q,0)),X.call(t,Q.obfuscatedGaiaId_),X=t.push,Q=this.parsedImageUrl_,Q.photoId_==void 0&&(Q.photoId_=sr(Q,1)),X.call(t,Q.photoId_),X=t.push,Q=this.parsedImageUrl_,Q.imageVersion_==void 0&&(Q.imageVersion_=sr(Q,2)),X.call(t,Q.imageVersion_),X=t.push,Q=this.parsedImageUrl_,Q.signature_==void 0&&(Q.signature_=sr(Q,3)),X.call(t,Q.signature_),A&&t.push(A),A=t.push,
X=this.parsedImageUrl_,X.filename_==void 0&&(X.filename_=sr(X,5)),A.call(t,X.filename_);t=f?t.join("="):t.join("/");t=_.kC(this.protocolPrefix_+this.JSC$20035_domain_+"/"+t+(this.JSC$20035_query_?"?"+this.JSC$20035_query_:"")).toString();t.startsWith("%3a//")&&(t=t.replace("%3a//","://"));return t};var Q4d=_.dS(["viewBox"]),q$m=_.dS(["width"]),Ja_=_.dS(["height"]),UXA=_.dS(["fill"]),egc=_.dS(["id"]),GLw=_.dS(["x"]),lmj=_.dS(["y"]);i8j.prototype.getLength=function(){return this.parsedData.length};
i8j.prototype.write=function(A){for(var t=0,f=this.parsedData.length;t<f;t++)A.put(this.parsedData[t],8)};
var Ry_=function(A,t){var f=new i8j(t);A.dataList.push(f);f=A.errorCorrectLevel;var X=1,Q=encodeURI(t).toString().replace(/%[0-9a-fA-F]{2}/g,"a");t=Q.length+(Q.length!=t?3:0);Q=0;for(var q=k$.length;Q<=q;Q++){var e=0;switch(f){case 1:e=k$[Q][0];break;case 0:e=k$[Q][1];break;case 3:e=k$[Q][2];break;case 2:e=k$[Q][3]}if(t<=e)break;else X++}if(X>k$.length)throw Error("Sk");A.typeNumber=X;A.dataCache=null};
O83.prototype.isDark=function(A,t){if(A<0||this.moduleCount<=A||t<0||this.moduleCount<=t)throw Error("Kk`"+A+"`"+t);return this.modules[A][t]};
for(var maj=function(A,t,f){A.moduleCount=A.typeNumber*4+17;A.modules=Array(A.moduleCount);for(var X=0;X<A.moduleCount;X++){A.modules[X]=Array(A.moduleCount);for(var Q=0;Q<A.moduleCount;Q++)A.modules[X][Q]=null}Nxy(A,0,0);Nxy(A,A.moduleCount-7,0);Nxy(A,0,A.moduleCount-7);X=uk8[A.typeNumber-1];for(Q=0;Q<X.length;Q++)for(var q=0;q<X.length;q++){var e=X[Q],G=X[q];if(A.modules[e][G]==null)for(var N=-2;N<=2;N++)for(var z=-2;z<=2;z++)A.modules[e+N][G+z]=N==-2||N==2||z==-2||z==2||N==0&&z==0?!0:!1}for(X=
8;X<A.moduleCount-8;X++)A.modules[X][6]==null&&(A.modules[X][6]=X%2==0);for(X=8;X<A.moduleCount-8;X++)A.modules[6][X]==null&&(A.modules[6][X]=X%2==0);X=A.errorCorrectLevel<<3|f;for(Q=X<<10;rQ(Q)-rQ(1335)>=0;)Q^=1335<<rQ(Q)-rQ(1335);X=(X<<10|Q)^21522;for(Q=0;Q<15;Q++)q=!t&&(X>>Q&1)==1,Q<6?A.modules[Q][8]=q:Q<8?A.modules[Q+1][8]=q:A.modules[A.moduleCount-15+Q][8]=q;for(Q=0;Q<15;Q++)q=!t&&(X>>Q&1)==1,Q<8?A.modules[8][A.moduleCount-Q-1]=q:Q<9?A.modules[8][15-Q-1+1]=q:A.modules[8][15-Q-1]=q;A.modules[A.moduleCount-
8][8]=!t;if(A.typeNumber>=7){X=A.typeNumber;for(Q=X<<12;rQ(Q)-rQ(7973)>=0;)Q^=7973<<rQ(Q)-rQ(7973);X=X<<12|Q;for(Q=0;Q<18;Q++)q=!t&&(X>>Q&1)==1,A.modules[Math.floor(Q/3)][Q%3+A.moduleCount-8-3]=q;for(Q=0;Q<18;Q++)q=!t&&(X>>Q&1)==1,A.modules[Q%3+A.moduleCount-8-3][Math.floor(Q/3)]=q}if(A.dataCache==null){Q=A.typeNumber;q=A.dataList;t=A.errorCorrectLevel;X=zgm(Q,t);if(X==void 0)throw Error("Rk`"+Q+"`"+t);e=X.length/3;t=[];for(G=0;G<e;G++){N=X[G*3];z=X[G*3+1];for(var T=X[G*3+2],O=0;O<N;O++)t.push(new c0Q(z,
T))}X=new BP3;for(e=0;e<q.length;e++)G=q[e],X.put(G.mode,4),X.put(G.getLength(),Pcd(G.mode,Q)),G.write(X);for(e=Q=0;e<t.length;e++)Q+=t[e].dataCount;if(X.length>Q*8)throw Error("Lk`"+X.length+"`"+Q*8);for(X.length+4<=Q*8&&X.put(0,4);X.length%8!=0;)Txw(X,!1);for(;!(X.length>=Q*8);){X.put(236,8);if(X.length>=Q*8)break;X.put(17,8)}q=Q=z=0;e=Array(t.length);G=Array(t.length);for(N=0;N<t.length;N++){O=t[N].dataCount;var c=t[N].totalCount-O;Q=Math.max(Q,O);q=Math.max(q,c);e[N]=Array(O);for(T=0;T<e[N].length;T++)e[N][T]=
255&X.buffer[T+z];z+=O;T=c;O=new Dp([1],0);for(c=0;c<T;c++)O=O.multiply(new Dp([1,ixd(c)],0));T=O;O=(new Dp(e[N],T.getLength()-1)).mod(T);G[N]=Array(T.getLength()-1);for(T=0;T<G[N].length;T++)c=T+O.getLength()-G[N].length,G[N][T]=c>=0?O.get(c):0}for(T=X=0;T<t.length;T++)X+=t[T].totalCount;X=Array(X);for(T=z=0;T<Q;T++)for(N=0;N<t.length;N++)T<e[N].length&&(X[z++]=e[N][T]);for(T=0;T<q;T++)for(N=0;N<t.length;N++)T<G[N].length&&(X[z++]=G[N][T]);A.dataCache=X}t=A.dataCache;X=-1;Q=A.moduleCount-1;q=7;e=
0;for(G=A.moduleCount-1;G>0;G-=2)for(G==6&&G--;;){for(N=0;N<2;N++)A.modules[Q][G-N]==null&&(z=!1,e<t.length&&(z=(t[e]>>>q&1)==1),OxQ(f,Q,G-N)&&(z=!z),A.modules[Q][G-N]=z,q--,q==-1&&(e++,q=7));Q+=X;if(Q<0||A.moduleCount<=Q){Q-=X;X=-X;break}}},Nxy=function(A,t,f){for(var X=-1;X<=7;X++)if(!(t+X<=-1||A.moduleCount<=t+X))for(var Q=-1;Q<=7;Q++)f+Q<=-1||A.moduleCount<=f+Q||(A.modules[t+X][f+Q]=0<=X&&X<=6&&(Q==0||Q==6)||0<=Q&&Q<=6&&(X==0||X==6)||2<=X&&X<=4&&2<=Q&&Q<=4?!0:!1)},b8Q=function(A){for(var t=0,
f=0,X=0;X<8;X++){maj(A,!0,X);
var Q=A;for(var q=Q.moduleCount,e=0,G=0;G<q;G++)for(var N=0;N<q;N++){for(var z=0,T=Q.isDark(G,N),O=-1;O<=1;O++)if(!(G+O<0||q<=G+O))for(var c=-1;c<=1;c++)N+c<0||q<=N+c||(O!=0||c!=0)&&T==Q.isDark(G+O,N+c)&&z++;z>5&&(e+=3+z-5)}for(G=0;G<q-1;G++)for(N=0;N<q-1;N++)if(z=0,Q.isDark(G,N)&&z++,Q.isDark(G+1,N)&&z++,Q.isDark(G,N+1)&&z++,Q.isDark(G+1,N+1)&&z++,z==0||z==4)e+=3;for(G=0;G<q;G++)for(N=0;N<q-6;N++)Q.isDark(G,N)&&!Q.isDark(G,N+1)&&Q.isDark(G,N+2)&&Q.isDark(G,N+3)&&Q.isDark(G,N+4)&&!Q.isDark(G,N+5)&&
Q.isDark(G,N+6)&&(e+=40);for(N=0;N<q;N++)for(G=0;G<q-6;G++)Q.isDark(G,N)&&!Q.isDark(G+1,N)&&Q.isDark(G+2,N)&&Q.isDark(G+3,N)&&Q.isDark(G+4,N)&&!Q.isDark(G+5,N)&&Q.isDark(G+6,N)&&(e+=40);for(N=z=0;N<q;N++)for(G=0;G<q;G++)Q.isDark(G,N)&&z++;Q=e+=Math.abs(100*z/q/q-50)/5*10;if(X==0||t>Q)t=Q,f=X}return f},uk8=[[],
[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]],rQ=function(A){for(var t=0;A!=0;)t++,A>>>=1;return t},OxQ=function(A,t,f){switch(A){case 0:return(t+f)%2==0;
case 1:return t%2==0;case 2:return f%3==0;case 3:return(t+f)%3==0;case 4:return(Math.floor(t/2)+Math.floor(f/3))%2==0;case 5:return t*f%2+t*f%3==0;case 6:return(t*f%2+t*f%3)%2==0;case 7:return(t*f%3+(t+f)%2)%2==0;default:throw Error("Mk`"+A);}},Pcd=function(A,t){if(1<=t&&t<10)switch(A){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Nk`"+A);}else if(t<27)switch(A){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Nk`"+A);}else if(t<41)switch(A){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Nk`"+A);}else throw Error("Ok`"+t);},Bxj=function(A){if(A<1)throw Error("Pk`"+A);
return caw[A]},ixd=function(A){for(;A<0;)A+=255;
for(;A>=256;)A-=255;return Av[A]},Av=Array(256),caw=Array(256),MDh=0;MDh<8;MDh++)Av[MDh]=1<<MDh;
for(var tv=8;tv<256;tv++)Av[tv]=Av[tv-4]^Av[tv-5]^Av[tv-6]^Av[tv-8];for(var Cc8=0;Cc8<255;Cc8++)caw[Av[Cc8]]=Cc8;Dp.prototype.get=function(A){return this.num[A]};
Dp.prototype.getLength=function(){return this.num.length};
Dp.prototype.multiply=function(A){for(var t=Array(this.getLength()+A.getLength()-1),f=0;f<this.getLength();f++)for(var X=0;X<A.getLength();X++)t[f+X]^=ixd(Bxj(this.get(f))+Bxj(A.get(X)));return new Dp(t,0)};
Dp.prototype.mod=function(A){if(this.getLength()-A.getLength()<0)return this;for(var t=Bxj(this.get(0))-Bxj(A.get(0)),f=Array(this.getLength()),X=0;X<this.getLength();X++)f[X]=this.get(X);for(X=0;X<A.getLength();X++)f[X]^=ixd(Bxj(A.get(X))+t);return(new Dp(f,0)).mod(A)};
var hg3=[[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]],zgm=function(A,t){switch(t){case 1:return hg3[(A-1)*4];case 0:return hg3[(A-1)*4+1];case 3:return hg3[(A-1)*4+2];case 2:return hg3[(A-1)*4+3]}};
BP3.prototype.get=function(A){return(this.buffer[Math.floor(A/8)]>>>7-A%8&1)==1};
BP3.prototype.put=function(A,t){for(var f=0;f<t;f++)Txw(this,(A>>>t-f-1&1)==1)};
var Txw=function(A,t){var f=Math.floor(A.length/8);A.buffer.length<=f&&A.buffer.push(0);t&&(A.buffer[f]|=128>>>A.length%8);A.length++},k$=[[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]],hy_=function(){var A=function(t,f){this.JSC$20055__el=t;this.JSC$20055__htOption=f};
A.prototype.draw=function(t){function f(T,O){T=document.createElementNS("http://www.w3.org/2000/svg",T);for(var c in O)O.hasOwnProperty(c)&&(c==="href"?_.Ft8(T,O[c]):_.GG([_.Pd(Q4d),_.Pd(q$m),_.Pd(Ja_),_.Pd(UXA),_.Pd(egc),_.Pd(GLw),_.Pd(lmj)],T,c,O[c]));return T}
var X=this.JSC$20055__htOption,Q=this.JSC$20055__el,q=t.moduleCount;this.clear();var e=f("svg",{viewBox:"0 0 "+String(q)+" "+String(q),width:"100%",height:"100%",fill:X.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Q.appendChild(e);e.appendChild(f("rect",{fill:X.colorLight,width:"100%",height:"100%"}));e.appendChild(f("rect",{fill:X.colorDark,width:"1",height:"1",id:"template"}));for(var G=0;G<q;G++)for(var N=0;N<q;N++)if(t.isDark(G,N)){var z=f("use",{x:String(G),y:String(N),href:"#template"});
e.appendChild(z)}};
A.prototype.clear=function(){for(;this.JSC$20055__el.hasChildNodes();)this.JSC$20055__el.removeChild(this.JSC$20055__el.lastChild)};
return A}(),CMy=document.documentElement.tagName.toLowerCase()==="svg"?hy_:typeof CanvasRenderingContext2D!="undefined"?function(){var A=function(t,f){this._bIsPainted=!1;
MMd();this.JSC$20055__htOption=f;this._elCanvas=document.createElement("canvas");this._elCanvas.width=f.width;this._elCanvas.height=f.height;t.appendChild(this._elCanvas);this.JSC$20055__el=t;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$20055__el.appendChild(this._elImage);this._bSupportDataURI=null};
A.prototype._onMakeImage=function(){var t=this._elCanvas.toDataURL("image/png");this._elImage.src=t;this._elImage.style.display="block";this._elCanvas.style.display="none"};
A.prototype._safeSetDataURI=function(t,f){var X=this;X._fFail=f;X._fSuccess=t;X._bSupportDataURI===null?(t=_.yT("IMG"),f=function(){X._bSupportDataURI=!1;X._fFail&&X._fFail.call(X)},t.onabort=f,t.onerror=f,t.onload=function(){X._bSupportDataURI=!0;
X._fSuccess&&X._fSuccess.call(X)},t.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):X._bSupportDataURI===!0&&X._fSuccess?X._fSuccess.call(X):X._bSupportDataURI===!1&&X._fFail&&X._fFail.call(X)};
A.prototype.draw=function(t){var f=this._oContext,X=this.JSC$20055__htOption,Q=t.moduleCount,q=X.width/Q,e=X.height/Q,G=Math.round(q),N=Math.round(e);this._elImage.style.display="none";this.clear();for(var z=0;z<Q;z++)for(var T=0;T<Q;T++){var O=t.isDark(z,T),c=T*q,B=z*e;f.strokeStyle=O?X.colorDark:X.colorLight;f.lineWidth=1;f.fillStyle=O?X.colorDark:X.colorLight;f.fillRect(c,B,q,e);f.strokeRect(Math.floor(c)+.5,Math.floor(B)+.5,G,N);f.strokeRect(Math.ceil(c)-.5,Math.ceil(B)-.5,G,N)}this._bIsPainted=
!0};
A.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
A.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
A.prototype.round=function(t){return t?Math.floor(t*1E3)/1E3:t};
return A}():function(){var A=function(t,f){this.JSC$20055__el=t;
this.JSC$20055__htOption=f};
A.prototype.draw=function(t){for(var f=this.JSC$20055__htOption,X=this.JSC$20055__el,Q=t.moduleCount,q=Math.floor(f.width/Q),e=Math.floor(f.height/Q),G=['<table style="border:0;border-collapse:collapse;">'],N=0;N<Q;N++){G.push("<tr>");for(var z=0;z<Q;z++)G.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+q+"px;height:"+e+"px;background-color:"+(t.isDark(N,z)?f.colorDark:f.colorLight)+';"></td>');G.push("</tr>")}G.push("</table>");t=G.join("");t=_.tnE(_.Xd8,t);_.eO(X,t);
t=X.childNodes[0];Q=(f.width-t.offsetWidth)/2;q=(f.height-t.offsetHeight)/2;Q>0&&q>0&&(t.style.margin=q+"px "+Q+"px")};
A.prototype.clear=function(){this.JSC$20055__el.textContent=""};
return A}();
W0c.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20058__android||this.JSC$20058__android>=3)&&this._oDrawing.makeImage()};
W0c.prototype.clear=function(){this._oDrawing.clear()};
_.Xb.QRCode=W0c;var Rgj={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var mXQ=function(){};
mXQ.prototype.stringify=function(A){return _.Xb.JSON.stringify(A,void 0)};
mXQ.prototype.parse=function(A){return _.Xb.JSON.parse(A,void 0)};var bx3=function(){_.b6.call(this,"z")};
_.rS(bx3,_.b6);var WJ3=function(){_.b6.call(this,"y")};
_.rS(WJ3,_.b6);var yah=null,vam=function(){return yah=yah||new _.p_},LJ3=function(A){_.b6.call(this,"serverreachability",A)};
_.rS(LJ3,_.b6);var pS3=function(A){var t=vam();t.dispatchEvent(new LJ3(t,A))},Eaw=function(A,t){_.b6.call(this,"statevent",A);
this.stat=t};
_.rS(Eaw,_.b6);var fH=function(A){var t=vam();t.dispatchEvent(new Eaw(t,A))},nah=function(A,t,f,X){_.b6.call(this,"timingevent",A);
this.size=t;this.rtt=f;this.retries=X};
_.rS(nah,_.b6);var DXm=function(A,t,f){var X=vam();X.dispatchEvent(new nah(X,A,t,f))},FJ2=function(A,t){if(typeof A!=="function")throw Error("Tk");
return _.Xb.setTimeout(function(){A()},t)};var Xn=function(){this.redactEnabled_=!0};
Xn.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Imd=function(A,t,f,X,Q,q){A.info(function(){if(A.redactEnabled_)if(q){var e="";for(var G=q.split("&"),N=0;N<G.length;N++){var z=G[N].split("=");if(z.length>1){var T=z[0];z=z[1];var O=T.split("_");e=O.length>=2&&O[1]=="type"?e+(T+"="+z+"&"):e+(T+"=redacted&")}}}else e=null;else e=q;return"XMLHTTP REQ ("+X+") [attempt "+Q+"]: "+t+"\n"+f+"\n"+e})},xXl=function(A,t,f,X,Q,q,e){A.info(function(){return"XMLHTTP RESP ("+X+") [ attempt "+Q+"]: "+t+"\n"+f+"\n"+q+" "+e})},Q8=function(A,t,f,X){A.info(function(){return"XMLHTTP TEXT ("+
t+"): "+j4A(A,f)+(X?" "+X:"")})},Y$l=function(A,t){A.info(function(){return"TIMEOUT: "+t})};
Xn.prototype.debug=function(){};
Xn.prototype.info=function(){};
Xn.prototype.warning=function(){};
var j4A=function(A,t){if(!A.redactEnabled_)return t;if(!t)return null;try{var f=JSON.parse(t);if(f)for(var X=0;X<f.length;X++)if(Array.isArray(f[X])){var Q=f[X];if(!(Q.length<2)){var q=Q[1];if(Array.isArray(q)&&!(q.length<1)){var e=q[0];if(e!="noop"&&e!="stop"&&e!="close")for(var G=1;G<q.length;G++)q[G]=""}}}return(0,_.j$)(f)}catch(N){return A.debug("Exception parsing expected JS array - probably was not JS"),t}};var qQ=function(A,t,f,X,Q){this.JSC$20080_channel_=A;this.JSC$20080_channelDebug_=t;this.sid_=f;this.JSC$20080_rid_=X;this.JSC$20080_retryId_=Q||1;this.JSC$20080_eventHandler_=new _.CP(this);this.timeout_=45E3;this.JSC$20080_extraHeaders_=null;this.JSC$20080_successful_=!1;this.JSC$20080_postData_=this.JSC$20080_requestUri_=this.JSC$20080_baseUri_=this.JSC$20080_type_=this.JSC$20080_requestStartTime_=this.JSC$20080_watchDogTimeoutTime_=this.JSC$20080_watchDogTimerId_=null;this.JSC$20080_pendingMessages_=
[];this.JSC$20080_xmlHttp_=null;this.JSC$20080_xmlHttpChunkStart_=0;this.JSC$20080_lastError_=this.JSC$20080_verb_=null;this.JSC$20080_lastStatusCode_=-1;this.JSC$20080_cancelled_=!1;this.JSC$20080_readyStateChangeThrottleMs_=0;this.JSC$20080_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new VD3},VD3=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Zxh=function(A,t){switch(A){case 0:return"Non-200 return code ("+t+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},oaw={},dX3={};
qQ.prototype.setTimeout=function(A){this.timeout_=A};
var $Xc=function(A,t,f){A.JSC$20080_type_=1;A.JSC$20080_baseUri_=_.iR(t.clone());A.JSC$20080_postData_=f;A.decodeChunks_=!0;S$8(A,null)},S$8=function(A,t){A.JSC$20080_requestStartTime_=Date.now();
Hxd(A);A.JSC$20080_requestUri_=A.JSC$20080_baseUri_.clone();OLw(A.JSC$20080_requestUri_,"t",A.JSC$20080_retryId_);A.JSC$20080_xmlHttpChunkStart_=0;var f=A.JSC$20080_channel_.JSC$20099_supportsCrossDomainXhrs_;A.fetchResponseState_=new VD3;A.JSC$20080_xmlHttp_=amd(A.JSC$20080_channel_,f?t:null,!A.JSC$20080_postData_);A.JSC$20080_readyStateChangeThrottleMs_>0&&(A.JSC$20080_readyStateChangeThrottle_=new _.qI((0,_.F1)(A.JSC$20084_xmlHttpHandler_,A,A.JSC$20080_xmlHttp_),A.JSC$20080_readyStateChangeThrottleMs_));
A.JSC$20080_eventHandler_.listen(A.JSC$20080_xmlHttp_,"readystatechange",A.JSC$20084_readyStateChangeHandler_);t=A.JSC$20080_extraHeaders_?_.VG.clone(A.JSC$20080_extraHeaders_):{};A.JSC$20080_postData_?(A.JSC$20080_verb_||(A.JSC$20080_verb_="POST"),t["Content-Type"]="application/x-www-form-urlencoded",A.JSC$20080_xmlHttp_.send(A.JSC$20080_requestUri_,A.JSC$20080_verb_,A.JSC$20080_postData_,t)):(A.JSC$20080_verb_="GET",A.JSC$20080_xmlHttp_.send(A.JSC$20080_requestUri_,A.JSC$20080_verb_,null,t));pS3(1);
Imd(A.JSC$20080_channelDebug_,A.JSC$20080_verb_,A.JSC$20080_requestUri_,A.JSC$20080_rid_,A.JSC$20080_retryId_,A.JSC$20080_postData_)};
qQ.prototype.JSC$20084_readyStateChangeHandler_=function(A){A=A.target;var t=this.JSC$20080_readyStateChangeThrottle_;t&&_.VW(A)==3?(this.JSC$20080_channelDebug_.debug("Throttling readystatechange."),t.fire()):this.JSC$20084_xmlHttpHandler_(A)};
qQ.prototype.JSC$20084_xmlHttpHandler_=function(A){try{A==this.JSC$20080_xmlHttp_?KJy(this):this.JSC$20080_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(t){this.JSC$20080_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),gam(this)}finally{}};
var KJy=function(A){var t=_.VW(A.JSC$20080_xmlHttp_),f=A.JSC$20080_xmlHttp_.JSC$9879_lastErrorCode_,X=A.JSC$20080_xmlHttp_.getStatus();if(!(t<3||t==3&&!gam(A))){A.JSC$20080_cancelled_||t!=4||f==7||(f==8||X<=0?pS3(3):pS3(2));wSj(A);var Q=A.JSC$20080_xmlHttp_.getStatus();A.JSC$20080_lastStatusCode_=Q;f=s4w(A);gam(A)||A.JSC$20080_channelDebug_.debug(function(){return"No response text for uri "+A.JSC$20080_requestUri_+" status "+Q});
A.JSC$20080_successful_=Q==200;xXl(A.JSC$20080_channelDebug_,A.JSC$20080_verb_,A.JSC$20080_requestUri_,A.JSC$20080_rid_,A.JSC$20080_retryId_,t,Q);if(A.JSC$20080_successful_){if(A.decodeInitialResponse_&&!A.initialResponseDecoded_)if(X=kLl(A))Q8(A.JSC$20080_channelDebug_,A.JSC$20080_rid_,X,"Initial handshake response via X-HTTP-Initial-Response"),A.initialResponseDecoded_=!0,raj(A,X);else{A.JSC$20080_successful_=!1;A.JSC$20080_lastError_=3;fH(12);A.JSC$20080_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
A.JSC$20080_rid_+")");Jv(A);ABQ(A);return}A.decodeChunks_?tH8(A,t,f):(Q8(A.JSC$20080_channelDebug_,A.JSC$20080_rid_,f,null),raj(A,f));t==4&&Jv(A);A.JSC$20080_successful_&&!A.JSC$20080_cancelled_&&(t==4?f03(A.JSC$20080_channel_,A):(A.JSC$20080_successful_=!1,Hxd(A)))}else Tzd(A.JSC$20080_xmlHttp_),Q==400&&f.indexOf("Unknown SID")>0?(A.JSC$20080_lastError_=3,fH(12),A.JSC$20080_channelDebug_.warning("XMLHTTP Unknown SID ("+A.JSC$20080_rid_+")")):(A.JSC$20080_lastError_=0,fH(13),A.JSC$20080_channelDebug_.warning("XMLHTTP Bad status "+
Q+" ("+A.JSC$20080_rid_+")")),Jv(A),ABQ(A)}},kLl=function(A){return A.JSC$20080_xmlHttp_&&(A=qn_(A.JSC$20080_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Ux(A)?A:null},s4w=function(A){if(!X4A(A))return A.JSC$20080_xmlHttp_.getResponseText();
var t=A.JSC$20080_xmlHttp_.getResponse();if(t==="")return"";var f="",X=t.length,Q=_.VW(A.JSC$20080_xmlHttp_)==4;if(!A.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Jv(A),ABQ(A),"";A.fetchResponseState_.textDecoder=new _.Xb.TextDecoder}for(var q=0;q<X;q++)A.fetchResponseState_.responseArrivedForFetch=!0,f+=A.fetchResponseState_.textDecoder.decode(t[q],{stream:!(Q&&q==X-1)});t.length=0;A.fetchResponseState_.responseBuffer+=f;A.JSC$20080_xmlHttpChunkStart_=0;return A.fetchResponseState_.responseBuffer},
gam=function(A){return A.JSC$20080_xmlHttp_?A.fetchResponseState_.responseArrivedForFetch?!0:!(!A.JSC$20080_xmlHttp_.getResponseText()&&!A.JSC$20080_xmlHttp_.getResponse()):!1},X4A=function(A){return A.JSC$20080_xmlHttp_?A.JSC$20080_verb_=="GET"&&A.JSC$20080_type_!=2&&A.JSC$20080_channel_.usesFetchStreams_:!1},tH8=function(A,t,f){for(var X=!0,Q;!A.JSC$20080_cancelled_&&A.JSC$20080_xmlHttpChunkStart_<f.length;)if(Q=QH8(A,f),Q==dX3){t==4&&(A.JSC$20080_lastError_=4,fH(14),X=!1);
Q8(A.JSC$20080_channelDebug_,A.JSC$20080_rid_,null,"[Incomplete Response]");break}else if(Q==oaw){A.JSC$20080_lastError_=4;fH(15);Q8(A.JSC$20080_channelDebug_,A.JSC$20080_rid_,f,"[Invalid Chunk]");X=!1;break}else Q8(A.JSC$20080_channelDebug_,A.JSC$20080_rid_,Q,null),raj(A,Q);X4A(A)&&A.JSC$20080_xmlHttpChunkStart_!=0&&(A.fetchResponseState_.responseBuffer=A.fetchResponseState_.responseBuffer.slice(A.JSC$20080_xmlHttpChunkStart_),A.JSC$20080_xmlHttpChunkStart_=0);t!=4||f.length!=0||A.fetchResponseState_.responseArrivedForFetch||
(A.JSC$20080_lastError_=1,fH(16),X=!1);A.JSC$20080_successful_=A.JSC$20080_successful_&&X;X?f.length>0&&!A.firstByteReceived_&&(A.firstByteReceived_=!0,t=A.JSC$20080_channel_,t.JSC$20099_backChannelRequest_==A&&t.detectBufferingProxy_&&!t.bpDetectionDone_&&(t.JSC$20099_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+f.length),ql8(t),t.bpDetectionDone_=!0,fH(11))):(Q8(A.JSC$20080_channelDebug_,A.JSC$20080_rid_,f,"[Invalid Chunked Response]"),Jv(A),ABQ(A))},QH8=function(A,
t){var f=A.JSC$20080_xmlHttpChunkStart_,X=t.indexOf("\n",f);
if(X==-1)return dX3;f=Number(t.substring(f,X));if(isNaN(f))return oaw;X+=1;if(X+f>t.length)return dX3;t=t.slice(X,X+f);A.JSC$20080_xmlHttpChunkStart_=X+f;return t};
qQ.prototype.cancel=function(){this.JSC$20080_cancelled_=!0;Jv(this)};
var Hxd=function(A){A.JSC$20080_watchDogTimeoutTime_=Date.now()+A.timeout_;JBw(A,A.timeout_)},JBw=function(A,t){if(A.JSC$20080_watchDogTimerId_!=null)throw Error("Uk");
A.JSC$20080_watchDogTimerId_=FJ2((0,_.F1)(A.JSC$20084_onWatchDogTimeout_,A),t)},wSj=function(A){A.JSC$20080_watchDogTimerId_&&(_.Xb.clearTimeout(A.JSC$20080_watchDogTimerId_),A.JSC$20080_watchDogTimerId_=null)};
qQ.prototype.JSC$20084_onWatchDogTimeout_=function(){this.JSC$20080_watchDogTimerId_=null;var A=Date.now();A-this.JSC$20080_watchDogTimeoutTime_>=0?(Y$l(this.JSC$20080_channelDebug_,this.JSC$20080_requestUri_),this.JSC$20080_type_!=2&&(pS3(3),fH(17)),Jv(this),this.JSC$20080_lastError_=2,ABQ(this)):(this.JSC$20080_channelDebug_.warning("WatchDog timer called too early"),JBw(this,this.JSC$20080_watchDogTimeoutTime_-A))};
var ABQ=function(A){A.JSC$20080_channel_.state_==0||A.JSC$20080_cancelled_||f03(A.JSC$20080_channel_,A)},Jv=function(A){wSj(A);
_.ee(A.JSC$20080_readyStateChangeThrottle_);A.JSC$20080_readyStateChangeThrottle_=null;A.JSC$20080_eventHandler_.removeAll();if(A.JSC$20080_xmlHttp_){var t=A.JSC$20080_xmlHttp_;A.JSC$20080_xmlHttp_=null;t.abort();t.dispose()}};
qQ.prototype.getLastError=function(){return this.JSC$20080_lastError_};
var raj=function(A,t){try{var f=A.JSC$20080_channel_;if(f.state_!=0&&(f.JSC$20099_backChannelRequest_==A||URA(f.forwardChannelRequestPool_,A)))if(!A.initialResponseDecoded_&&URA(f.forwardChannelRequestPool_,A)&&f.state_==3){try{var X=f.wireCodec_.JSC$20094_parser_.parse(t)}catch(G){X=null}if(Array.isArray(X)&&X.length==3){t=X;if(t[0]==0)a:if(f.JSC$20099_channelDebug_.debug("Server claims our backchannel is missing."),f.JSC$20099_backChannelTimerId_)f.JSC$20099_channelDebug_.debug("But we are currently starting the request.");
else{if(f.JSC$20099_backChannelRequest_)if(f.JSC$20099_backChannelRequest_.JSC$20080_requestStartTime_+3E3<A.JSC$20080_requestStartTime_)ez2(f),G43(f);else break a;else f.JSC$20099_channelDebug_.warning("We do not have a BackChannel established");l08(f);fH(18)}else{f.JSC$20099_lastPostResponseArrayId_=t[1];var Q=f.JSC$20099_lastPostResponseArrayId_-f.JSC$20099_lastArrayId_;if(0<Q){var q=t[2];f.JSC$20099_channelDebug_.debug(q+" bytes (in "+Q+" arrays) are outstanding on the BackChannel");q<37500&&
f.enableStreaming_&&f.JSC$20099_backChannelRetryCount_==0&&!f.JSC$20099_deadBackChannelTimerId_&&(f.JSC$20099_deadBackChannelTimerId_=FJ2((0,_.F1)(f.JSC$20101_onBackChannelDead_,f),6E3))}}if(NN2(f.forwardChannelRequestPool_)<=1&&f.forwardChannelFlushedCallback_){try{f.forwardChannelFlushedCallback_()}catch(G){}f.forwardChannelFlushedCallback_=void 0}}else f.JSC$20099_channelDebug_.debug("Bad POST response data returned"),U6(f,11)}else if((A.initialResponseDecoded_||f.JSC$20099_backChannelRequest_==
A)&&ez2(f),!_.Ux(t)){var e=f.wireCodec_.JSC$20094_parser_.parse(t);f.onInput_(e,A)}pS3(4)}catch(G){}};var uWd=function(A,t){this.JSC$20087_mapId=A;this.map=t;this.context=null};var zz_=function(A){this.maxPoolSizeConfigured_=A||10;_.Xb.PerformanceNavigationTiming?(A=_.Xb.performance.getEntriesByType("navigation"),A=A.length>0&&(A[0].nextHopProtocol=="hq"||A[0].nextHopProtocol=="h2")):A=!!(_.Xb.chrome&&_.Xb.chrome.loadTimes&&_.Xb.chrome.loadTimes()&&_.Xb.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20090_maxSize_=A?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20090_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20090_request_=null;this.JSC$20090_pendingMessages_=
[]},Pwy=function(A){return A.JSC$20090_request_?!0:A.requestPool_?A.requestPool_.size>=A.JSC$20090_maxSize_:!1},NN2=function(A){return A.JSC$20090_request_?1:A.requestPool_?A.requestPool_.size:0},URA=function(A,t){return A.JSC$20090_request_?A.JSC$20090_request_==t:A.requestPool_?A.requestPool_.has(t):!1},TNl=function(A,t){A.requestPool_?A.requestPool_.add(t):A.JSC$20090_request_=t},iRA=function(A,t){A.JSC$20090_request_&&A.JSC$20090_request_==t?A.JSC$20090_request_=null:A.requestPool_&&A.requestPool_.has(t)&&
A.requestPool_.delete(t)};
zz_.prototype.cancel=function(){this.JSC$20090_pendingMessages_=ORj(this);if(this.JSC$20090_request_)this.JSC$20090_request_.cancel(),this.JSC$20090_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var A=_.U(this.requestPool_.values()),t=A.next();!t.done;t=A.next())t.value.cancel();this.requestPool_.clear()}};
var ORj=function(A){if(A.JSC$20090_request_!=null)return A.JSC$20090_pendingMessages_.concat(A.JSC$20090_request_.JSC$20080_pendingMessages_);if(A.requestPool_!=null&&A.requestPool_.size!==0){var t=A.JSC$20090_pendingMessages_;A=_.U(A.requestPool_.values());for(var f=A.next();!f.done;f=A.next())t=t.concat(f.value.JSC$20080_pendingMessages_);return t}return _.ds(A.JSC$20090_pendingMessages_)},cBd=function(A,t){A.JSC$20090_pendingMessages_=A.JSC$20090_pendingMessages_.concat(t)};var BNQ=function(A,t){var f=new Xn;f.debug("TestLoadImage: loading "+A);if(_.Xb.Image){var X=new Image;X.onload=_.l0(ez,f,"TestLoadImage: loaded",!0,t,X);X.onerror=_.l0(ez,f,"TestLoadImage: error",!1,t,X);X.onabort=_.l0(ez,f,"TestLoadImage: abort",!1,t,X);X.ontimeout=_.l0(ez,f,"TestLoadImage: timeout",!1,t,X);_.Xb.setTimeout(function(){if(X.ontimeout)X.ontimeout()},1E4);
X.src=A}else t(!1)},MHA=function(A,t){var f=new Xn,X=new AbortController,Q=setTimeout(function(){X.abort();
ez(f,"TestPingServer: timeout",!1,t)},1E4);
fetch(A,{signal:X.signal}).then(function(q){clearTimeout(Q);q.ok?ez(f,"TestPingServer: ok",!0,t):ez(f,"TestPingServer: server error",!1,t)}).catch(function(){clearTimeout(Q);
ez(f,"TestPingServer: error",!1,t)})},ez=function(A,t,f,X,Q){try{A.debug(t),Q&&(Q.onload=null,Q.onerror=null,Q.onabort=null,Q.ontimeout=null),X(f)}catch(q){}};var Cwj=function(){this.JSC$20094_parser_=new mXQ};var hzh=function(A,t,f){return f&&f.internalChannelParams?f.internalChannelParams[A]||t:t},Gl=function(A){this.serverVersion_=0;
this.JSC$20099_outgoingMaps_=[];this.JSC$20099_channelDebug_=new Xn;this.JSC$20099_hostPrefix_=this.JSC$20099_backChannelUri_=this.JSC$20099_forwardChannelUri_=this.JSC$20099_path_=this.JSC$20099_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20099_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20099_extraHeaders_=null;this.JSC$20099_nextMapId_=this.JSC$20099_nextRid_=0;this.JSC$20099_failFast_=hzh("failFast",!1,A);this.enableStreaming_=this.JSC$20099_deadBackChannelTimerId_=
this.JSC$20099_backChannelTimerId_=this.JSC$20099_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20099_lastPostResponseArrayId_=this.JSC$20099_lastArrayId_=-1;this.JSC$20099_backChannelAttemptId_=this.JSC$20099_backChannelRetryCount_=this.JSC$20099_forwardChannelRetryCount_=0;this.JSC$20099_baseRetryDelayMs_=hzh("baseRetryDelayMs",5E3,A);this.JSC$20099_retryDelaySeedMs_=hzh("retryDelaySeedMs",1E4,A);this.JSC$20099_forwardChannelMaxRetries_=
hzh("forwardChannelMaxRetries",2,A);this.JSC$20099_forwardChannelRequestTimeoutMs_=hzh("forwardChannelRequestTimeoutMs",2E4,A);this.JSC$20099_xmlHttpFactory_=A&&A.xmlHttpFactory||void 0;this.networkTestUrl_=A&&A.networkTestUrl||void 0;this.usesFetchStreams_=A&&A.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20099_supportsCrossDomainXhrs_=A&&A.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new zz_(A&&A.concurrentRequestLimit);this.wireCodec_=new Cwj;
this.fastHandshake_=A&&A.fastHandshake||!1;this.encodeInitMessageHeaders_=A&&A.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20099_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=A&&A.blockingHandshake||!1;A&&A.disableRedact&&this.JSC$20099_channelDebug_.disableRedact();A&&A.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&A&&A.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;A&&A.longPollingTimeout&&A.longPollingTimeout>0&&(this.longPollingTimeout_=A.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Gl.prototype.JSC$20101_channelVersion_=8;Gl.prototype.state_=1;
Gl.prototype.connect=function(A,t,f,X){this.JSC$20099_channelDebug_.debug("connect()");fH(0);this.JSC$20099_path_=A;this.JSC$20099_extraParams_=t||{};f&&X!==void 0&&(this.JSC$20099_extraParams_.OSID=f,this.JSC$20099_extraParams_.OAID=X);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20099_channelDebug_.debug("connectChannel_()");A=Rz2(this,null,this.JSC$20099_path_);this.JSC$20099_channelDebug_.debug("GetForwardChannelUri: "+A);this.JSC$20099_forwardChannelUri_=A;mRd(this)};
Gl.prototype.disconnect=function(){this.JSC$20099_channelDebug_.debug("disconnect()");bR2(this);if(this.state_==3){var A=this.JSC$20099_nextRid_++,t=this.JSC$20099_forwardChannelUri_.clone();_.AZ(t,"SID",this.sid_);_.AZ(t,"RID",A);_.AZ(t,"TYPE","terminate");WUA(this,t);A=new qQ(this,this.JSC$20099_channelDebug_,this.sid_,A);A.JSC$20080_type_=2;A.JSC$20080_baseUri_=_.iR(t.clone());t=!1;if(_.Xb.navigator&&_.Xb.navigator.sendBeacon)try{t=_.Xb.navigator.sendBeacon(A.JSC$20080_baseUri_.toString(),"")}catch(f){}!t&&
_.Xb.Image&&((new Image).src=A.JSC$20080_baseUri_,t=!0);t||(A.JSC$20080_xmlHttp_=amd(A.JSC$20080_channel_,null),A.JSC$20080_xmlHttp_.send(A.JSC$20080_baseUri_));A.JSC$20080_requestStartTime_=Date.now();Hxd(A)}yBh(this)};
var G43=function(A){A.JSC$20099_backChannelRequest_&&(ql8(A),A.JSC$20099_backChannelRequest_.cancel(),A.JSC$20099_backChannelRequest_=null)},bR2=function(A){G43(A);
A.JSC$20099_backChannelTimerId_&&(_.Xb.clearTimeout(A.JSC$20099_backChannelTimerId_),A.JSC$20099_backChannelTimerId_=null);ez2(A);A.forwardChannelRequestPool_.cancel();A.JSC$20099_forwardChannelTimerId_&&(typeof A.JSC$20099_forwardChannelTimerId_==="number"&&_.Xb.clearTimeout(A.JSC$20099_forwardChannelTimerId_),A.JSC$20099_forwardChannelTimerId_=null)};
Gl.prototype.getState=function(){return this.state_};
var mRd=function(A){Pwy(A.forwardChannelRequestPool_)||A.JSC$20099_forwardChannelTimerId_||(A.JSC$20099_forwardChannelTimerId_=!0,_.n_(A.JSC$20101_onStartForwardChannelTimer_,A),A.JSC$20099_forwardChannelRetryCount_=0)},LUd=function(A,t){if(NN2(A.forwardChannelRequestPool_)>=A.forwardChannelRequestPool_.JSC$20090_maxSize_-(A.JSC$20099_forwardChannelTimerId_?1:0))return!1;
if(A.JSC$20099_forwardChannelTimerId_)return A.JSC$20099_channelDebug_.debug("Use the retry request that is already scheduled."),A.JSC$20099_outgoingMaps_=t.JSC$20080_pendingMessages_.concat(A.JSC$20099_outgoingMaps_),!0;if(A.state_==1||A.state_==2||A.JSC$20099_forwardChannelRetryCount_>=(A.JSC$20099_failFast_?0:A.JSC$20099_forwardChannelMaxRetries_))return!1;A.JSC$20099_channelDebug_.debug("Going to retry POST");A.JSC$20099_forwardChannelTimerId_=FJ2((0,_.F1)(A.JSC$20101_onStartForwardChannelTimer_,
A,t),voh(A,A.JSC$20099_forwardChannelRetryCount_));A.JSC$20099_forwardChannelRetryCount_++;return!0};
Gl.prototype.JSC$20101_onStartForwardChannelTimer_=function(A){if(this.JSC$20099_forwardChannelTimerId_)if(this.JSC$20099_forwardChannelTimerId_=null,this.JSC$20099_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!A){this.JSC$20099_channelDebug_.debug("open_()");this.JSC$20099_nextRid_=Math.floor(Math.random()*1E5);A=this.JSC$20099_nextRid_++;var t=new qQ(this,this.JSC$20099_channelDebug_,"",A),f=this.JSC$20099_extraHeaders_;this.initHeaders_&&(f?(f=_.VG.clone(f),_.VG.extend(f,this.initHeaders_)):
f=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(t.JSC$20080_extraHeaders_=f,f=null);var X;if(this.fastHandshake_)a:{for(var Q=X=0;Q<this.JSC$20099_outgoingMaps_.length;Q++){b:{var q=this.JSC$20099_outgoingMaps_[Q];if("__data__"in q.map&&(q=q.map.__data__,typeof q==="string")){q=q.length;break b}q=void 0}if(q===void 0)break;X+=q;if(X>4096){X=Q;break a}if(X===4096||Q===this.JSC$20099_outgoingMaps_.length-1){X=Q+1;break a}}X=1E3}else X=1E3;X=p4_(this,t,X);
Q=this.JSC$20099_forwardChannelUri_.clone();_.AZ(Q,"RID",A);_.AZ(Q,"CVER",22);this.httpSessionIdParam_&&_.AZ(Q,"X-HTTP-Session-Id",this.httpSessionIdParam_);WUA(this,Q);f&&(this.encodeInitMessageHeaders_?X="headers="+_.fk(pYA(f))+"&"+X:this.httpHeadersOverwriteParam_&&EDh(Q,this.httpHeadersOverwriteParam_,f));TNl(this.forwardChannelRequestPool_,t);this.blockingHandshake_&&_.AZ(Q,"TYPE","init");this.fastHandshake_?(_.AZ(Q,"$req",X),_.AZ(Q,"SID","null"),t.decodeInitialResponse_=!0,$Xc(t,Q,null)):$Xc(t,
Q,X);this.state_=2}}else this.state_==3&&(A?Eod(this,A):this.JSC$20099_outgoingMaps_.length==0?this.JSC$20099_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Pwy(this.forwardChannelRequestPool_)||(Eod(this),this.JSC$20099_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Eod=function(A,t){var f;t?f=t.JSC$20080_rid_:f=A.JSC$20099_nextRid_++;var X=A.JSC$20099_forwardChannelUri_.clone();_.AZ(X,"SID",A.sid_);_.AZ(X,"RID",f);_.AZ(X,"AID",A.JSC$20099_lastArrayId_);WUA(A,X);A.httpHeadersOverwriteParam_&&A.JSC$20099_extraHeaders_&&EDh(X,A.httpHeadersOverwriteParam_,A.JSC$20099_extraHeaders_);f=new qQ(A,A.JSC$20099_channelDebug_,A.sid_,f,A.JSC$20099_forwardChannelRetryCount_+1);A.httpHeadersOverwriteParam_===null&&(f.JSC$20080_extraHeaders_=A.JSC$20099_extraHeaders_);
t&&(A.JSC$20099_outgoingMaps_=t.JSC$20080_pendingMessages_.concat(A.JSC$20099_outgoingMaps_));t=p4_(A,f,1E3);f.setTimeout(Math.round(A.JSC$20099_forwardChannelRequestTimeoutMs_*.5)+Math.round(A.JSC$20099_forwardChannelRequestTimeoutMs_*.5*Math.random()));TNl(A.forwardChannelRequestPool_,f);$Xc(f,X,t)},WUA=function(A,t){A.JSC$20099_extraParams_&&_.VG.forEach(A.JSC$20099_extraParams_,function(f,X){_.AZ(t,X,f)});
A.handler_&&_.VG.forEach({},function(f,X){_.AZ(t,X,f)})},p4_=function(A,t,f){f=Math.min(A.JSC$20099_outgoingMaps_.length,f);
var X=A.handler_?(0,_.F1)(A.handler_.JSC$20105_badMapError,A.handler_,A):null;a:{for(var Q=A.JSC$20099_outgoingMaps_,q=-1;;){var e=["count="+f];q==-1?f>0?(q=Q[0].JSC$20087_mapId,e.push("ofs="+q)):q=0:e.push("ofs="+q);for(var G=!0,N=0;N<f;N++){var z=Q[N].JSC$20087_mapId,T=Q[N].map;z-=q;if(z<0)q=Math.max(0,Q[N].JSC$20087_mapId-100),G=!1;else try{z="req"+z+"_"||"";try{var O=T instanceof Map?T:Object.entries(T);for(var c=_.U(O),B=c.next();!B.done;B=c.next()){var h=_.U(B.value),W=h.next().value,L=h.next().value,
E=L;_.Hp(L)&&(E=(0,_.j$)(L));e.push(z+W+"="+encodeURIComponent(E))}}catch(D){throw e.push(z+"type="+encodeURIComponent("_badmap")),D;}}catch(D){X&&X(T)}}if(G){O=e.join("&");break a}}O=void 0}A=A.JSC$20099_outgoingMaps_.splice(0,f);t.JSC$20080_pendingMessages_=A;return O},nod=function(A){A.JSC$20099_backChannelRequest_||A.JSC$20099_backChannelTimerId_||(A.JSC$20099_backChannelAttemptId_=1,_.n_(A.JSC$20101_onStartBackChannelTimer_,A),A.JSC$20099_backChannelRetryCount_=0)},l08=function(A){if(A.JSC$20099_backChannelRequest_||
A.JSC$20099_backChannelTimerId_||A.JSC$20099_backChannelRetryCount_>=3)return!1;
A.JSC$20099_channelDebug_.debug("Going to retry GET");A.JSC$20099_backChannelAttemptId_++;A.JSC$20099_backChannelTimerId_=FJ2((0,_.F1)(A.JSC$20101_onStartBackChannelTimer_,A),voh(A,A.JSC$20099_backChannelRetryCount_));A.JSC$20099_backChannelRetryCount_++;return!0};
Gl.prototype.JSC$20101_onStartBackChannelTimer_=function(){this.JSC$20099_backChannelTimerId_=null;DRA(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20099_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20099_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20099_backChannelRequest_+" "+this.handshakeRttMs_);else{var A=4*this.handshakeRttMs_;this.JSC$20099_channelDebug_.info("BP detection timer enabled: "+A);this.bpDetectionTimerId_=FJ2((0,_.F1)(this.onBpDetectionTimer_,
this),A)}};
Gl.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20099_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20099_backChannelRequest_.JSC$20080_xmlHttp_!=null){var A=this.JSC$20099_backChannelRequest_.JSC$20080_xmlHttp_.getResponseText();A&&this.JSC$20099_channelDebug_.warning("Timer should have been cancelled : "+A)}this.JSC$20099_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;fH(10);G43(this);DRA(this)}else this.JSC$20099_channelDebug_.warning("Invalid operation.")};
var ql8=function(A){A.bpDetectionTimerId_!=null&&(A.JSC$20099_channelDebug_.debug("Cancel the BP detection timer."),_.Xb.clearTimeout(A.bpDetectionTimerId_),A.bpDetectionTimerId_=null)},DRA=function(A){A.JSC$20099_channelDebug_.debug("Creating new HttpRequest");
A.JSC$20099_backChannelRequest_=new qQ(A,A.JSC$20099_channelDebug_,A.sid_,"rpc",A.JSC$20099_backChannelAttemptId_);A.httpHeadersOverwriteParam_===null&&(A.JSC$20099_backChannelRequest_.JSC$20080_extraHeaders_=A.JSC$20099_extraHeaders_);A.JSC$20099_backChannelRequest_.JSC$20080_readyStateChangeThrottleMs_=0;var t=A.JSC$20099_backChannelUri_.clone();_.AZ(t,"RID","rpc");_.AZ(t,"SID",A.sid_);_.AZ(t,"AID",A.JSC$20099_lastArrayId_);_.AZ(t,"CI",A.enableStreaming_?"0":"1");!A.enableStreaming_&&A.longPollingTimeout_&&
_.AZ(t,"TO",A.longPollingTimeout_);_.AZ(t,"TYPE","xmlhttp");WUA(A,t);A.httpHeadersOverwriteParam_&&A.JSC$20099_extraHeaders_&&EDh(t,A.httpHeadersOverwriteParam_,A.JSC$20099_extraHeaders_);A.backChannelRequestTimeoutMs_&&A.JSC$20099_backChannelRequest_.setTimeout(A.backChannelRequestTimeoutMs_);var f=A.JSC$20099_backChannelRequest_,X=A.JSC$20099_hostPrefix_;f.JSC$20080_type_=1;f.JSC$20080_baseUri_=_.iR(t.clone());f.JSC$20080_postData_=null;f.decodeChunks_=!0;S$8(f,X);A.JSC$20099_channelDebug_.debug("New Request created")};
Gl.prototype.JSC$20101_onBackChannelDead_=function(){this.JSC$20099_deadBackChannelTimerId_!=null&&(this.JSC$20099_deadBackChannelTimerId_=null,G43(this),l08(this),fH(19))};
var ez2=function(A){A.JSC$20099_deadBackChannelTimerId_!=null&&(_.Xb.clearTimeout(A.JSC$20099_deadBackChannelTimerId_),A.JSC$20099_deadBackChannelTimerId_=null)},f03=function(A,t){A.JSC$20099_channelDebug_.debug("Request complete");
var f=null;if(A.JSC$20099_backChannelRequest_==t){ez2(A);ql8(A);A.JSC$20099_backChannelRequest_=null;var X=2}else if(URA(A.forwardChannelRequestPool_,t))f=t.JSC$20080_pendingMessages_,iRA(A.forwardChannelRequestPool_,t),X=1;else return;if(A.state_!=0)if(t.JSC$20080_successful_)X==1?(DXm(t.JSC$20080_postData_?t.JSC$20080_postData_.length:0,Date.now()-t.JSC$20080_requestStartTime_,A.JSC$20099_forwardChannelRetryCount_),mRd(A)):nod(A);else{var Q=t.JSC$20080_lastStatusCode_,q=t.getLastError();if(q==3||
q==0&&Q>0)A.JSC$20099_channelDebug_.debug("Not retrying due to error type"),Q>200&&(A.errorResponseStatusCode_=t.JSC$20080_lastStatusCode_);else{A.JSC$20099_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Zxh(q,A.errorResponseStatusCode_)});
if(X==1&&LUd(A,t)||X==2&&l08(A))return;A.JSC$20099_channelDebug_.debug("Exceeded max number of retries")}f&&f.length>0&&cBd(A.forwardChannelRequestPool_,f);A.JSC$20099_channelDebug_.debug("Error: HTTP request failed");switch(q){case 1:U6(A,5);break;case 4:U6(A,10);break;case 3:U6(A,6);break;default:U6(A,2)}}},voh=function(A,t){var f=A.JSC$20099_baseRetryDelayMs_+Math.floor(Math.random()*A.JSC$20099_retryDelaySeedMs_);
A.isActive()||(A.JSC$20099_channelDebug_.debug("Inactive channel"),f*=2);return f*t};
Gl.prototype.onInput_=function(A,t){for(var f=0;f<A.length;f++){var X=A[f],Q=X[0];if(Q<=this.JSC$20099_lastArrayId_)this.JSC$20099_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+Q+", lastArrayId: "+this.JSC$20099_lastArrayId_);else if(Q>this.JSC$20099_lastArrayId_+1&&this.JSC$20099_lastArrayId_>-1&&this.JSC$20099_channelDebug_.warning("Received non-consecutive message with arrayId: "+Q+", lastArrayId: "+this.JSC$20099_lastArrayId_),this.JSC$20099_lastArrayId_=Q,
X=X[1],this.state_==2)if(X[0]=="c"){this.sid_=X[1];this.JSC$20099_hostPrefix_=X[2];Q=X[3];Q!=null&&(this.JSC$20101_channelVersion_=Q,this.JSC$20099_channelDebug_.info("VER="+this.JSC$20101_channelVersion_));Q=X[4];Q!=null&&(this.serverVersion_=Q,this.JSC$20099_channelDebug_.info("SVER="+this.serverVersion_));X=X[5];X!=null&&typeof X==="number"&&X>0&&(this.backChannelRequestTimeoutMs_=X*=1.5,this.JSC$20099_channelDebug_.info("backChannelRequestTimeoutMs_="+X));if(X=t.JSC$20080_xmlHttp_){var q=qn_(X,
"X-Client-Wire-Protocol");q&&(Q=this.forwardChannelRequestPool_,!Q.requestPool_&&(_.lu(q,"spdy")||_.lu(q,"quic")||_.lu(q,"h2"))&&(Q.JSC$20090_maxSize_=Q.maxPoolSizeConfigured_,Q.requestPool_=new Set,Q.JSC$20090_request_&&(TNl(Q,Q.JSC$20090_request_),Q.JSC$20090_request_=null)));this.httpSessionIdParam_&&((X=qn_(X,"X-HTTP-Session-Id"))?(this.httpSessionId_=X,_.AZ(this.JSC$20099_forwardChannelUri_,this.httpSessionIdParam_,X)):this.JSC$20099_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20105_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-t.JSC$20080_requestStartTime_,this.JSC$20099_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));X=t;Q=Rz2(this,this.JSC$20099_supportsCrossDomainXhrs_?this.JSC$20099_hostPrefix_:null,this.JSC$20099_path_);this.JSC$20099_channelDebug_.debug("GetBackChannelUri: "+Q);this.JSC$20099_backChannelUri_=Q;X.initialResponseDecoded_?(this.JSC$20099_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
iRA(this.forwardChannelRequestPool_,X),Q=X,(q=this.backChannelRequestTimeoutMs_)&&Q.setTimeout(q),Q.JSC$20080_watchDogTimerId_&&(wSj(Q),Hxd(Q)),this.JSC$20099_backChannelRequest_=X):nod(this);this.JSC$20099_outgoingMaps_.length>0&&mRd(this)}else X[0]!="stop"&&X[0]!="close"||U6(this,7);else this.state_==3&&(X[0]=="stop"||X[0]=="close"?X[0]=="stop"?U6(this,7):this.disconnect():X[0]!="noop"&&this.handler_&&this.handler_.JSC$20105_channelHandleArray(X),this.JSC$20099_backChannelRetryCount_=0)}};
var U6=function(A,t){A.JSC$20099_channelDebug_.info("Error code "+t);if(t==2){var f=(0,_.F1)(A.testNetworkCallback_,A),X=A.networkTestUrl_,Q=!X;X=new _.oq(X||"//www.google.com/images/cleardot.gif");_.Xb.location&&_.Xb.location.protocol=="http"||_.UE(X,"https");_.iR(X);Q?BNQ(X.toString(),f):MHA(X.toString(),f)}else fH(2);A.onError_(t)};
Gl.prototype.testNetworkCallback_=function(A){A?(this.JSC$20099_channelDebug_.info("Successfully pinged google.com"),fH(2)):(this.JSC$20099_channelDebug_.info("Failed to ping google.com"),fH(1))};
Gl.prototype.onError_=function(A){this.JSC$20099_channelDebug_.debug("HttpChannel: error - "+A);this.state_=0;this.handler_&&this.handler_.JSC$20105_channelError(A);yBh(this);bR2(this)};
var yBh=function(A){A.state_=0;A.nonAckedMapsAtChannelClose_=[];if(A.handler_){var t=ORj(A.forwardChannelRequestPool_);if(t.length!=0||A.JSC$20099_outgoingMaps_.length!=0)A.JSC$20099_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+t.length+", outgoing: "+A.JSC$20099_outgoingMaps_.length}),_.$q(A.nonAckedMapsAtChannelClose_,t),_.$q(A.nonAckedMapsAtChannelClose_,A.JSC$20099_outgoingMaps_),A.forwardChannelRequestPool_.JSC$20090_pendingMessages_.length=0,_.ds(A.JSC$20099_outgoingMaps_),
A.JSC$20099_outgoingMaps_.length=0;
A.handler_.JSC$20105_channelClosed()}},FUh=function(A){if(A.state_==0)return A.nonAckedMapsAtChannelClose_;
var t=[];_.$q(t,ORj(A.forwardChannelRequestPool_));_.$q(t,A.JSC$20099_outgoingMaps_);return t},Rz2=function(A,t,f){var X=_.kC(f);
X.JSC$10115_domain_!=""?(t&&_.eQ(X,t+"."+X.JSC$10115_domain_),_.GY(X,X.JSC$10115_port_)):(X=_.Xb.location,X=zAm(X.protocol,t?t+"."+X.hostname:X.hostname,+X.port,f));t=A.httpSessionIdParam_;f=A.httpSessionId_;t&&f&&_.AZ(X,t,f);_.AZ(X,"VER",A.JSC$20101_channelVersion_);WUA(A,X);return X},amd=function(A,t,f){if(t&&!A.JSC$20099_supportsCrossDomainXhrs_)throw Error("Vk");
t=A.usesFetchStreams_&&!A.JSC$20099_xmlHttpFactory_?new _.Yg(new Wqy({streamBinaryChunks:f})):new _.Yg(A.JSC$20099_xmlHttpFactory_);t.JSC$9879_withCredentials_=A.JSC$20099_supportsCrossDomainXhrs_;return t};
Gl.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var I0j=function(){};
_.J=I0j.prototype;_.J.JSC$20105_channelOpened=function(){};
_.J.JSC$20105_channelHandleArray=function(){};
_.J.JSC$20105_channelError=function(){};
_.J.JSC$20105_channelClosed=function(){};
_.J.isActive=function(){return!0};
_.J.JSC$20105_badMapError=function(){};var xR3=function(){},NQ=function(A,t){_.p_.call(this);
this.JSC$20108_channel_=new Gl(t);this.JSC$20108_url_=A;this.messageUrlParams_=t&&t.messageUrlParams||null;A=t&&t.messageHeaders||null;t&&t.clientProtocolHeaderRequired&&(A?_.VG.set(A,"X-Client-Protocol","webchannel"):A=_.VG.create("X-Client-Protocol","webchannel"));this.JSC$20108_channel_.JSC$20099_extraHeaders_=A;A=t&&t.initMessageHeaders||null;t&&t.messageContentType&&(A?_.VG.set(A,"X-WebChannel-Content-Type",t.messageContentType):A=_.VG.create("X-WebChannel-Content-Type",t.messageContentType));
t&&t.clientProfile&&(A?_.VG.set(A,"X-WebChannel-Client-Profile",t.clientProfile):A=_.VG.create("X-WebChannel-Client-Profile",t.clientProfile));this.JSC$20108_channel_.initHeaders_=A;(A=t&&t.httpHeadersOverwriteParam)&&!_.Ux(A)&&(this.JSC$20108_channel_.httpHeadersOverwriteParam_=A);this.supportsCrossDomainXhr_=t&&t.supportsCrossDomainXhr||!1;this.sendRawJson_=t&&t.sendRawJson||!1;(t=t&&t.httpSessionIdParam)&&!_.Ux(t)&&(this.JSC$20108_channel_.httpSessionIdParam_=t,_.VG.containsKey(this.messageUrlParams_,
t)&&_.VG.remove(this.messageUrlParams_,t));this.channelHandler_=new l_(this)};
_.rS(NQ,_.p_);NQ.prototype.open=function(){this.JSC$20108_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20108_channel_.JSC$20099_supportsCrossDomainXhrs_=!0);this.JSC$20108_channel_.connect(this.JSC$20108_url_,this.messageUrlParams_||void 0)};
NQ.prototype.close=function(){this.JSC$20108_channel_.disconnect()};
NQ.prototype.send=function(A){var t=this.JSC$20108_channel_;if(typeof A==="string"){var f={};f.__data__=A;A=f}else this.sendRawJson_&&(f={},f.__data__=(0,_.j$)(A),A=f);t.JSC$20099_outgoingMaps_.push(new uWd(t.JSC$20099_nextMapId_++,A));t.state_==3&&mRd(t)};
NQ.prototype.disposeInternal=function(){this.JSC$20108_channel_.handler_=null;delete this.channelHandler_;this.JSC$20108_channel_.disconnect();delete this.JSC$20108_channel_;NQ.superClass_.disposeInternal.call(this)};
var jH_=function(A){bx3.call(this);A.__headers__&&(this.headers=A.__headers__,this.statusCode=A.__status__,delete A.__headers__,delete A.__status__);var t=A.__sm__;t?this.data=(this.metadataKey=_.VG.getAnyKey(t))?_.VG.get(t,this.metadataKey):t:this.data=A};
_.rS(jH_,bx3);var Yl2=function(A){WJ3.call(this);this.status=1;this.errorCode=A};
_.rS(Yl2,WJ3);var l_=function(A){this.JSC$20115_channel_=A};
_.rS(l_,I0j);l_.prototype.JSC$20105_channelOpened=function(){this.JSC$20115_channel_.dispatchEvent("w")};
l_.prototype.JSC$20105_channelHandleArray=function(A){this.JSC$20115_channel_.dispatchEvent(new jH_(A))};
l_.prototype.JSC$20105_channelError=function(A){this.JSC$20115_channel_.dispatchEvent(new Yl2(A))};
l_.prototype.JSC$20105_channelClosed=function(){this.JSC$20115_channel_.dispatchEvent("x")};
var VHy=function(A,t){this.transportChannel_=A;this.JSC$20118_channel_=t},ZRy=function(A){return FUh(A.JSC$20118_channel_).map(function(t){var f=A.transportChannel_;
t=t.map;"__data__"in t?(t=t.__data__,f=f.sendRawJson_?(0,_.$pK)(t):t):f=t;return f})};
VHy.prototype.commit=function(A){this.JSC$20118_channel_.forwardChannelFlushedCallback_=A};var u_=function(A){ooy.dispatchEvent(new dRh(ooy,A))},ooy=new _.p_,dRh=function(A,t){_.b6.call(this,"statevent",A);
this.stat=t};
_.R(dRh,_.b6);var zl=function(A,t,f,X,Q){this.JSC$20123_channel_=A;this.JSC$20123_channelDebug_=t;this.sid_=f;this.JSC$20123_rid_=X;this.JSC$20123_retryId_=Q||1;this.timeout_=45E3;this.JSC$20123_eventHandler_=new _.CP(this);this.pollingTimer_=new _.MP;this.pollingTimer_.setInterval(250)};
_.J=zl.prototype;_.J.JSC$20125_extraHeaders_=null;_.J.JSC$20125_successful_=!1;_.J.JSC$20125_watchDogTimerId_=null;_.J.JSC$20125_watchDogTimeoutTime_=null;_.J.JSC$20125_requestStartTime_=null;_.J.JSC$20125_type_=null;_.J.JSC$20125_baseUri_=null;_.J.JSC$20125_requestUri_=null;_.J.JSC$20125_postData_=null;_.J.JSC$20125_xmlHttp_=null;_.J.JSC$20125_xmlHttpChunkStart_=0;_.J.trident_=null;_.J.JSC$20125_verb_=null;_.J.JSC$20125_lastError_=null;_.J.JSC$20125_lastStatusCode_=-1;_.J.sendClose_=!0;
_.J.JSC$20125_cancelled_=!1;_.J.JSC$20125_readyStateChangeThrottleMs_=0;_.J.JSC$20125_readyStateChangeThrottle_=null;var Sl3=function(A,t){switch(A){case 0:return"Non-200 return code ("+t+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},$R_={},HRd={};
zl.prototype.setTimeout=function(A){this.timeout_=A};
var KUl=function(A,t,f){A.JSC$20125_type_=1;A.JSC$20125_baseUri_=_.iR(t.clone());A.JSC$20125_postData_=f;A.decodeChunks_=!0;a02(A,null)},go8=function(A,t,f,X,Q){A.JSC$20125_type_=1;
A.JSC$20125_baseUri_=_.iR(t.clone());A.JSC$20125_postData_=null;A.decodeChunks_=f;Q&&(A.sendClose_=!1);a02(A,X)},a02=function(A,t){A.JSC$20125_requestStartTime_=Date.now();
w4d(A);A.JSC$20125_requestUri_=A.JSC$20125_baseUri_.clone();OLw(A.JSC$20125_requestUri_,"t",A.JSC$20123_retryId_);A.JSC$20125_xmlHttpChunkStart_=0;A.JSC$20125_xmlHttp_=A.JSC$20123_channel_.JSC$20132_createXhrIo(A.JSC$20123_channel_.JSC$20132_shouldUseSecondaryDomains()?t:null);A.JSC$20125_readyStateChangeThrottleMs_>0&&(A.JSC$20125_readyStateChangeThrottle_=new _.qI((0,_.F1)(A.JSC$20125_xmlHttpHandler_,A,A.JSC$20125_xmlHttp_),A.JSC$20125_readyStateChangeThrottleMs_));A.JSC$20123_eventHandler_.listen(A.JSC$20125_xmlHttp_,
"readystatechange",A.JSC$20125_readyStateChangeHandler_);t=A.JSC$20125_extraHeaders_?_.VG.clone(A.JSC$20125_extraHeaders_):{};A.JSC$20125_postData_?(A.JSC$20125_verb_="POST",t["Content-Type"]="application/x-www-form-urlencoded",A.JSC$20125_xmlHttp_.send(A.JSC$20125_requestUri_,A.JSC$20125_verb_,A.JSC$20125_postData_,t)):(A.JSC$20125_verb_="GET",A.sendClose_&&!_.q1&&(t.Connection="close"),A.JSC$20125_xmlHttp_.send(A.JSC$20125_requestUri_,A.JSC$20125_verb_,null,t));A.JSC$20123_channel_.notifyServerReachabilityEvent(1);
t=A.JSC$20123_channelDebug_;var f=A.JSC$20125_postData_;if(f){var X="";f=f.split("&");for(var Q=0;Q<f.length;Q++){var q=f[Q].split("=");if(q.length>1){var e=q[0];q=q[1];var G=e.split("_");X=G.length>=2&&G[1]=="type"?X+(e+"="+q+"&"):X+(e+"=redacted&")}}}else X=null;t.info("XMLHTTP REQ ("+A.JSC$20123_rid_+") [attempt "+A.JSC$20123_retryId_+"]: "+A.JSC$20125_verb_+"\n"+A.JSC$20125_requestUri_+"\n"+X)};
zl.prototype.JSC$20125_readyStateChangeHandler_=function(A){A=A.target;var t=this.JSC$20125_readyStateChangeThrottle_;t&&_.VW(A)==3?(this.JSC$20123_channelDebug_.debug("Throttling readystatechange."),t.fire()):this.JSC$20125_xmlHttpHandler_(A)};
zl.prototype.JSC$20125_xmlHttpHandler_=function(A){try{if(A==this.JSC$20125_xmlHttp_)a:{var t=_.VW(this.JSC$20125_xmlHttp_),f=this.JSC$20125_xmlHttp_.JSC$9879_lastErrorCode_,X=this.JSC$20125_xmlHttp_.getStatus();if(_.q1&&!_.JJ("420+")){if(t<4)break a}else if(t<3||t==3&&!this.JSC$20125_xmlHttp_.getResponseText())break a;this.JSC$20125_cancelled_||t!=4||f==7||(f==8||X<=0?this.JSC$20123_channel_.notifyServerReachabilityEvent(3):this.JSC$20123_channel_.notifyServerReachabilityEvent(2));sH8(this);var Q=
this.JSC$20125_xmlHttp_.getStatus();this.JSC$20125_lastStatusCode_=Q;var q=this.JSC$20125_xmlHttp_.getResponseText();q||this.JSC$20123_channelDebug_.debug("No response text for uri "+this.JSC$20125_requestUri_+" status "+Q);this.JSC$20125_successful_=Q==200;this.JSC$20123_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20123_rid_+") [ attempt "+this.JSC$20123_retryId_+"]: "+this.JSC$20125_verb_+"\n"+this.JSC$20125_requestUri_+"\n"+t+" "+Q);if(this.JSC$20125_successful_){t==4&&k4m(this);if(this.decodeChunks_){for(A=
!0;!this.JSC$20125_cancelled_&&this.JSC$20125_xmlHttpChunkStart_<q.length;){var e=rBd(this,q);if(e==HRd){t==4&&(this.JSC$20125_lastError_=4,u_(15),A=!1);Asj(this.JSC$20123_channelDebug_,this.JSC$20123_rid_,null,"[Incomplete Response]");break}else if(e==$R_){this.JSC$20125_lastError_=4;u_(16);Asj(this.JSC$20123_channelDebug_,this.JSC$20123_rid_,q,"[Invalid Chunk]");A=!1;break}else Asj(this.JSC$20123_channelDebug_,this.JSC$20123_rid_,e,null),tkc(this,e)}t==4&&q.length==0&&(this.JSC$20125_lastError_=
1,u_(17),A=!1);this.JSC$20125_successful_=this.JSC$20125_successful_&&A;A||(Asj(this.JSC$20123_channelDebug_,this.JSC$20123_rid_,q,"[Invalid Chunked Response]"),k4m(this),flh(this))}else Asj(this.JSC$20123_channelDebug_,this.JSC$20123_rid_,q,null),tkc(this,q);this.JSC$20125_successful_&&!this.JSC$20125_cancelled_&&(t==4?this.JSC$20123_channel_.JSC$20132_onRequestComplete(this):(this.JSC$20125_successful_=!1,w4d(this)))}else Q==400&&q.indexOf("Unknown SID")>0?(this.JSC$20125_lastError_=3,u_(13),this.JSC$20123_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20123_rid_+")")):(this.JSC$20125_lastError_=0,u_(14),this.JSC$20123_channelDebug_.warning("XMLHTTP Bad status "+Q+" ("+this.JSC$20123_rid_+")")),k4m(this),flh(this)}else this.JSC$20123_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(G){this.JSC$20123_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var rBd=function(A,t){var f=A.JSC$20125_xmlHttpChunkStart_,X=t.indexOf("\n",f);if(X==-1)return HRd;f=Number(t.substring(f,X));if(isNaN(f))return $R_;X+=1;if(X+f>t.length)return HRd;t=t.slice(X,X+f);A.JSC$20125_xmlHttpChunkStart_=X+f;return t};
zl.prototype.cancel=function(){this.JSC$20125_cancelled_=!0;k4m(this)};
var w4d=function(A){A.JSC$20125_watchDogTimeoutTime_=Date.now()+A.timeout_;X73(A,A.timeout_)},X73=function(A,t){if(A.JSC$20125_watchDogTimerId_!=null)throw Error("Uk");
A.JSC$20125_watchDogTimerId_=Fr((0,_.F1)(A.JSC$20125_onWatchDogTimeout_,A),t)},sH8=function(A){A.JSC$20125_watchDogTimerId_&&(_.Xb.clearTimeout(A.JSC$20125_watchDogTimerId_),A.JSC$20125_watchDogTimerId_=null)};
zl.prototype.JSC$20125_onWatchDogTimeout_=function(){this.JSC$20125_watchDogTimerId_=null;var A=Date.now();A-this.JSC$20125_watchDogTimeoutTime_>=0?(this.JSC$20123_channelDebug_.info("TIMEOUT: "+this.JSC$20125_requestUri_),this.JSC$20125_type_!=2&&this.JSC$20123_channel_.notifyServerReachabilityEvent(3),k4m(this),this.JSC$20125_lastError_=2,u_(18),flh(this)):(this.JSC$20123_channelDebug_.warning("WatchDog timer called too early"),X73(this,this.JSC$20125_watchDogTimeoutTime_-A))};
var flh=function(A){A.JSC$20123_channel_.JSC$20132_isClosed()||A.JSC$20125_cancelled_||A.JSC$20123_channel_.JSC$20132_onRequestComplete(A)},k4m=function(A){sH8(A);
_.ee(A.JSC$20125_readyStateChangeThrottle_);A.JSC$20125_readyStateChangeThrottle_=null;A.pollingTimer_.stop();A.JSC$20123_eventHandler_.removeAll();if(A.JSC$20125_xmlHttp_){var t=A.JSC$20125_xmlHttp_;A.JSC$20125_xmlHttp_=null;t.abort();t.dispose()}A.trident_&&(A.trident_=null)};
zl.prototype.getLastError=function(){return this.JSC$20125_lastError_};
var tkc=function(A,t){try{A.JSC$20123_channel_.JSC$20132_onRequestData(A,t),A.JSC$20123_channel_.notifyServerReachabilityEvent(4)}catch(f){}};var Asj=function(A,t,f,X){var Q=A.info;a:if(f&&f!="y2f%"){try{var q=JSON.parse(f);if(q)for(var e=0;e<q.length;e++)if(Array.isArray(q[e])){var G=q[e];if(!(G.length<2)){var N=G[1];if(Array.isArray(N)&&!(N.length<1)){var z=N[0];if(z!="noop"&&z!="stop")for(var T=1;T<N.length;T++)N[T]=""}}}var O=(0,_.j$)(q);break a}catch(c){A.debug("Exception parsing expected JS array - probably was not JS");O=f;break a}O=void 0}else O=f;Q.call(A,"XMLHTTP TEXT ("+t+"): "+O+(X?" "+X:""))};
Im.prototype.debug=function(A){this.info(A)};
Im.prototype.info=function(){};
Im.prototype.warning=function(){};var Qd3=function(A,t){this.JSC$20130_channel_=A;this.JSC$20130_channelDebug_=t;this.JSC$20130_parser_=new mXQ};
_.J=Qd3.prototype;_.J.JSC$20132_extraHeaders_=null;_.J.JSC$20132_request_=null;_.J.receivedIntermediateResult_=!1;_.J.JSC$20132_path_=null;_.J.state_=null;_.J.JSC$20132_lastStatusCode_=-1;_.J.JSC$20132_hostPrefix_=null;_.J.blockedPrefix_=null;
_.J.connect=function(A){this.JSC$20132_path_=A;A=qWj(this.JSC$20130_channel_,this.JSC$20132_path_);u_(3);Date.now();var t=this.JSC$20130_channel_.firstTestResults_;t!=null?(this.JSC$20132_hostPrefix_=t[0],(this.blockedPrefix_=t[1])?(this.state_=1,Jsh(this)):(this.state_=2,UT2(this))):(OLw(A,"MODE","init"),this.JSC$20132_request_=new zl(this,this.JSC$20130_channelDebug_),this.JSC$20132_request_.JSC$20125_extraHeaders_=this.JSC$20132_extraHeaders_,go8(this.JSC$20132_request_,A,!1,null,!0),this.state_=
0)};
var Jsh=function(A){var t=eXA(A.JSC$20130_channel_,A.blockedPrefix_,"/mail/images/cleardot.gif");_.iR(t);L0_(t.toString(),5E3,(0,_.F1)(A.checkBlockedCallback_,A),3,2E3);A.notifyServerReachabilityEvent(1)};
Qd3.prototype.checkBlockedCallback_=function(A){if(A)this.state_=2,UT2(this);else{u_(4);var t=this.JSC$20130_channel_;t.JSC$20133_channelDebug_.debug("Test Connection Blocked");t.JSC$20137_lastStatusCode_=t.connectionTest_.JSC$20132_lastStatusCode_;P2(t,9)}A&&this.notifyServerReachabilityEvent(2)};
var UT2=function(A){A.JSC$20130_channelDebug_.debug("TestConnection: starting stage 2");var t=A.JSC$20130_channel_.secondTestResults_;t!=null?(A.JSC$20130_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+t?"Buffered":"Unbuffered"),u_(5),t?(u_(11),GBQ(A.JSC$20130_channel_,A,!1)):(u_(12),GBQ(A.JSC$20130_channel_,A,!0))):(A.JSC$20132_request_=new zl(A,A.JSC$20130_channelDebug_),A.JSC$20132_request_.JSC$20125_extraHeaders_=A.JSC$20132_extraHeaders_,t=lld(A.JSC$20130_channel_,
A.JSC$20132_hostPrefix_,A.JSC$20132_path_),u_(5),OLw(t,"TYPE","xmlhttp"),go8(A.JSC$20132_request_,t,!1,A.JSC$20132_hostPrefix_,!1))};
_.J=Qd3.prototype;_.J.JSC$20132_createXhrIo=function(A){return this.JSC$20130_channel_.JSC$20132_createXhrIo(A)};
_.J.abort=function(){this.JSC$20132_request_&&(this.JSC$20132_request_.cancel(),this.JSC$20132_request_=null);this.JSC$20132_lastStatusCode_=-1};
_.J.JSC$20132_isClosed=function(){return!1};
_.J.JSC$20132_onRequestData=function(A,t){this.JSC$20132_lastStatusCode_=A.JSC$20125_lastStatusCode_;if(this.state_==0)if(this.JSC$20130_channelDebug_.debug("TestConnection: Got data for stage 1"),t){try{var f=this.JSC$20130_parser_.parse(t)}catch(X){NAm(this.JSC$20130_channel_,this);return}this.JSC$20132_hostPrefix_=f[0];this.blockedPrefix_=f[1]}else this.JSC$20130_channelDebug_.debug("TestConnection: Null responseText"),NAm(this.JSC$20130_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(u_(7),Date.now()):t=="11111"?(u_(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20132_lastStatusCode_=200,this.JSC$20132_request_.cancel(),this.JSC$20130_channelDebug_.debug("Test connection succeeded; using streaming connection"),u_(12),GBQ(this.JSC$20130_channel_,this,!0)):(u_(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.J.JSC$20132_onRequestComplete=function(){this.JSC$20132_lastStatusCode_=this.JSC$20132_request_.JSC$20125_lastStatusCode_;this.JSC$20132_request_.JSC$20125_successful_?this.state_==0?(this.JSC$20130_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Jsh(this)):(this.state_=2,UT2(this))):this.state_==2&&(this.JSC$20130_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20130_channelDebug_.debug("Test connection succeeded; using streaming connection"),
u_(12),GBQ(this.JSC$20130_channel_,this,!0)):(this.JSC$20130_channelDebug_.debug("Test connection failed; not using streaming"),u_(11),GBQ(this.JSC$20130_channel_,this,!1))):(this.JSC$20130_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?u_(9):this.state_==2&&u_(10),NAm(this.JSC$20130_channel_,this,this.JSC$20132_request_.getLastError()))};
_.J.JSC$20132_shouldUseSecondaryDomains=function(){return this.JSC$20130_channel_.JSC$20132_shouldUseSecondaryDomains()};
_.J.isActive=function(){return this.JSC$20130_channel_.isActive()};
_.J.notifyServerReachabilityEvent=function(A){this.JSC$20130_channel_.notifyServerReachabilityEvent(A)};var Tl=function(A,t,f){this.state_=1;this.JSC$20133_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20133_channelDebug_=new Im;this.JSC$20133_parser_=new mXQ;this.firstTestResults_=A||null;this.secondTestResults_=t!=null?t:null;this.asyncTest_=f||!1},uf3=function(A,t){this.JSC$20135_mapId=A;
this.map=t;this.context=null};
_.J=Tl.prototype;_.J.JSC$20137_extraHeaders_=null;_.J.JSC$20137_extraParams_=null;_.J.forwardChannelRequest_=null;_.J.JSC$20137_backChannelRequest_=null;_.J.JSC$20137_path_=null;_.J.JSC$20137_forwardChannelUri_=null;_.J.JSC$20137_backChannelUri_=null;_.J.JSC$20137_hostPrefix_=null;_.J.JSC$20137_nextRid_=0;_.J.JSC$20137_nextMapId_=0;_.J.handler_=null;_.J.JSC$20137_forwardChannelTimerId_=null;_.J.JSC$20137_backChannelTimerId_=null;_.J.JSC$20137_deadBackChannelTimerId_=null;_.J.connectionTest_=null;
_.J.useChunked_=null;_.J.JSC$20137_lastArrayId_=-1;_.J.JSC$20137_lastPostResponseArrayId_=-1;_.J.JSC$20137_lastStatusCode_=-1;_.J.JSC$20137_forwardChannelRetryCount_=0;_.J.JSC$20137_backChannelRetryCount_=0;_.J.JSC$20137_channelVersion_=8;var zX8={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},PCm=function(A,t,f,X){_.b6.call(this,"timingevent",A);this.size=t;this.rtt=f;this.retries=X};
_.rS(PCm,_.b6);var TAc=function(A){_.b6.call(this,"serverreachability",A)};
_.rS(TAc,_.b6);Tl.prototype.connect=function(A,t,f,X,Q){this.JSC$20133_channelDebug_.debug("connect()");u_(0);this.JSC$20137_path_=t;this.JSC$20137_extraParams_=f||{};X&&Q!==void 0&&(this.JSC$20137_extraParams_.OSID=X,this.JSC$20137_extraParams_.OAID=Q);this.asyncTest_?(Fr((0,_.F1)(this.connectTest_,this,A),100),i28(this)):this.connectTest_(A)};
Tl.prototype.disconnect=function(){this.JSC$20133_channelDebug_.debug("disconnect()");O2w(this);if(this.state_==3){var A=this.JSC$20137_nextRid_++,t=this.JSC$20137_forwardChannelUri_.clone();_.AZ(t,"SID",this.sid_);_.AZ(t,"RID",A);_.AZ(t,"TYPE","terminate");csd(this,t);A=new zl(this,this.JSC$20133_channelDebug_,this.sid_,A);A.JSC$20125_type_=2;A.JSC$20125_baseUri_=_.iR(t.clone());(new Image).src=A.JSC$20125_baseUri_.toString();A.JSC$20125_requestStartTime_=Date.now();w4d(A)}BAj(this)};
Tl.prototype.connectTest_=function(A){this.JSC$20133_channelDebug_.debug("connectTest_()");this.connectionTest_=new Qd3(this,this.JSC$20133_channelDebug_);this.connectionTest_.JSC$20132_extraHeaders_=this.JSC$20137_extraHeaders_;this.connectionTest_.JSC$20130_parser_=this.JSC$20133_parser_;this.connectionTest_.connect(A)};
var i28=function(A){A.JSC$20133_channelDebug_.debug("connectChannel_()");A.JSC$20137_ensureInState_(1,0);A.JSC$20137_forwardChannelUri_=qWj(A,A.JSC$20137_path_);Mk3(A)},O2w=function(A){A.connectionTest_&&(A.connectionTest_.abort(),A.connectionTest_=null);
A.JSC$20137_backChannelRequest_&&(A.JSC$20137_backChannelRequest_.cancel(),A.JSC$20137_backChannelRequest_=null);A.JSC$20137_backChannelTimerId_&&(_.Xb.clearTimeout(A.JSC$20137_backChannelTimerId_),A.JSC$20137_backChannelTimerId_=null);CC3(A);A.forwardChannelRequest_&&(A.forwardChannelRequest_.cancel(),A.forwardChannelRequest_=null);A.JSC$20137_forwardChannelTimerId_&&(_.Xb.clearTimeout(A.JSC$20137_forwardChannelTimerId_),A.JSC$20137_forwardChannelTimerId_=null)},hX2=function(A,t){if(A.state_==0)throw Error("Xk");
A.JSC$20133_outgoingMaps_.length==1E3&&A.JSC$20133_parser_.stringify(t);A.JSC$20133_outgoingMaps_.push(new uf3(A.JSC$20137_nextMapId_++,t));A.state_!=2&&A.state_!=3||Mk3(A)};
Tl.prototype.JSC$20132_isClosed=function(){return this.state_==0};
Tl.prototype.getState=function(){return this.state_};
var Mk3=function(A){A.forwardChannelRequest_||A.JSC$20137_forwardChannelTimerId_||(A.JSC$20137_forwardChannelTimerId_=Fr((0,_.F1)(A.JSC$20137_onStartForwardChannelTimer_,A),0),A.JSC$20137_forwardChannelRetryCount_=0)};
Tl.prototype.JSC$20137_onStartForwardChannelTimer_=function(A){this.JSC$20137_forwardChannelTimerId_=null;RXd(this,A)};
var RXd=function(A,t){A.JSC$20133_channelDebug_.debug("startForwardChannel_");if(A.state_==1){if(!t){A.JSC$20133_channelDebug_.debug("open_()");A.JSC$20137_nextRid_=Math.floor(Math.random()*1E5);t=A.JSC$20137_nextRid_++;var f=new zl(A,A.JSC$20133_channelDebug_,"",t);f.JSC$20125_extraHeaders_=A.JSC$20137_extraHeaders_;var X=mTl(A),Q=A.JSC$20137_forwardChannelUri_.clone();_.AZ(Q,"RID",t);_.AZ(Q,"CVER","1");csd(A,Q);KUl(f,Q,X);A.forwardChannelRequest_=f;A.state_=2}}else A.state_==3&&(t?b2_(A,t):A.JSC$20133_outgoingMaps_.length==
0?A.JSC$20133_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):A.forwardChannelRequest_||(b2_(A),A.JSC$20133_channelDebug_.debug("startForwardChannel_ finished, sent request")))},b2_=function(A,t){if(t)if(A.JSC$20137_channelVersion_>6){A.JSC$20133_outgoingMaps_=A.pendingMaps_.concat(A.JSC$20133_outgoingMaps_);
A.pendingMaps_.length=0;var f=A.JSC$20137_nextRid_-1;t=mTl(A)}else f=t.JSC$20123_rid_,t=t.JSC$20125_postData_;else f=A.JSC$20137_nextRid_++,t=mTl(A);var X=A.JSC$20137_forwardChannelUri_.clone();_.AZ(X,"SID",A.sid_);_.AZ(X,"RID",f);_.AZ(X,"AID",A.JSC$20137_lastArrayId_);csd(A,X);f=new zl(A,A.JSC$20133_channelDebug_,A.sid_,f,A.JSC$20137_forwardChannelRetryCount_+1);f.JSC$20125_extraHeaders_=A.JSC$20137_extraHeaders_;f.setTimeout(1E4+Math.round(1E4*Math.random()));A.forwardChannelRequest_=f;KUl(f,X,
t)},csd=function(A,t){A.handler_&&(A=A.handler_.JSC$20144_getAdditionalParams())&&_.VG.forEach(A,function(f,X){_.AZ(t,X,f)})},mTl=function(A){var t=Math.min(A.JSC$20133_outgoingMaps_.length,1E3),f=["count="+t];
if(A.JSC$20137_channelVersion_>6&&t>0){var X=A.JSC$20133_outgoingMaps_[0].JSC$20135_mapId;f.push("ofs="+X)}else X=0;for(var Q={},q=0;q<t;Q={mapId$jscomp$3:void 0},q++){Q.mapId$jscomp$3=A.JSC$20133_outgoingMaps_[q].JSC$20135_mapId;var e=A.JSC$20133_outgoingMaps_[q].map;Q.mapId$jscomp$3=A.JSC$20137_channelVersion_<=6?q:Q.mapId$jscomp$3-X;try{_.VG.forEach(e,function(G){return function(N,z){f.push("req"+G.mapId$jscomp$3+"_"+z+"="+encodeURIComponent(N))}}(Q))}catch(G){f.push("req"+Q.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}A.pendingMaps_=A.pendingMaps_.concat(A.JSC$20133_outgoingMaps_.splice(0,t));
return f.join("&")},WuA=function(A){A.JSC$20137_backChannelRequest_||A.JSC$20137_backChannelTimerId_||(A.JSC$20137_backChannelAttemptId_=1,A.JSC$20137_backChannelTimerId_=Fr((0,_.F1)(A.JSC$20137_onStartBackChannelTimer_,A),0),A.JSC$20137_backChannelRetryCount_=0)},vy3=function(A){if(A.JSC$20137_backChannelRequest_||A.JSC$20137_backChannelTimerId_||A.JSC$20137_backChannelRetryCount_>=3)return!1;
A.JSC$20133_channelDebug_.debug("Going to retry GET");A.JSC$20137_backChannelAttemptId_++;A.JSC$20137_backChannelTimerId_=Fr((0,_.F1)(A.JSC$20137_onStartBackChannelTimer_,A),ysy(A,A.JSC$20137_backChannelRetryCount_));A.JSC$20137_backChannelRetryCount_++;return!0};
Tl.prototype.JSC$20137_onStartBackChannelTimer_=function(){this.JSC$20137_backChannelTimerId_=null;this.JSC$20133_channelDebug_.debug("Creating new HttpRequest");this.JSC$20137_backChannelRequest_=new zl(this,this.JSC$20133_channelDebug_,this.sid_,"rpc",this.JSC$20137_backChannelAttemptId_);this.JSC$20137_backChannelRequest_.JSC$20125_extraHeaders_=this.JSC$20137_extraHeaders_;this.JSC$20137_backChannelRequest_.JSC$20125_readyStateChangeThrottleMs_=0;var A=this.JSC$20137_backChannelUri_.clone();_.AZ(A,
"RID","rpc");_.AZ(A,"SID",this.sid_);_.AZ(A,"CI",this.useChunked_?"0":"1");_.AZ(A,"AID",this.JSC$20137_lastArrayId_);csd(this,A);_.AZ(A,"TYPE","xmlhttp");go8(this.JSC$20137_backChannelRequest_,A,!0,this.JSC$20137_hostPrefix_,!1);this.JSC$20133_channelDebug_.debug("New Request created")};
var GBQ=function(A,t,f){A.JSC$20133_channelDebug_.debug("Test Connection Finished");A.useChunked_=A.secondTestResults_==null?f:!A.secondTestResults_;A.JSC$20137_lastStatusCode_=t.JSC$20132_lastStatusCode_;A.asyncTest_||i28(A)},NAm=function(A,t){A.JSC$20133_channelDebug_.debug("Test Connection Failed");
A.JSC$20137_lastStatusCode_=t.JSC$20132_lastStatusCode_;P2(A,2)};
Tl.prototype.JSC$20132_onRequestData=function(A,t){if(this.state_!=0&&(this.JSC$20137_backChannelRequest_==A||this.forwardChannelRequest_==A))if(this.JSC$20137_lastStatusCode_=A.JSC$20125_lastStatusCode_,this.forwardChannelRequest_==A&&this.state_==3)if(this.JSC$20137_channelVersion_>7){try{var f=this.JSC$20133_parser_.parse(t)}catch(X){f=null}if(Array.isArray(f)&&f.length==3)if(t=f,t[0]==0)a:if(this.JSC$20133_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20137_backChannelTimerId_)this.JSC$20133_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20137_backChannelRequest_)if(this.JSC$20137_backChannelRequest_.JSC$20125_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20125_requestStartTime_)CC3(this),this.JSC$20137_backChannelRequest_.cancel(),this.JSC$20137_backChannelRequest_=null;else break a;else this.JSC$20133_channelDebug_.warning("We do not have a BackChannel established");vy3(this);u_(19)}else this.JSC$20137_lastPostResponseArrayId_=t[1],A=this.JSC$20137_lastPostResponseArrayId_-this.JSC$20137_lastArrayId_,0<
A&&(t=t[2],this.JSC$20133_channelDebug_.debug(t+" bytes (in "+A+" arrays) are outstanding on the BackChannel"),t<37500&&this.useChunked_&&this.JSC$20137_backChannelRetryCount_==0&&!this.JSC$20137_deadBackChannelTimerId_&&(this.JSC$20137_deadBackChannelTimerId_=Fr((0,_.F1)(this.JSC$20137_onBackChannelDead_,this),6E3)));else this.JSC$20133_channelDebug_.debug("Bad POST response data returned"),P2(this,11)}else t!="y2f%"&&(this.JSC$20133_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
P2(this,11));else this.JSC$20137_backChannelRequest_==A&&CC3(this),_.Ux(t)||(A=this.JSC$20133_parser_.parse(t),this.onInput_(A))};
Tl.prototype.JSC$20137_onBackChannelDead_=function(){this.JSC$20137_deadBackChannelTimerId_!=null&&(this.JSC$20137_deadBackChannelTimerId_=null,this.JSC$20137_backChannelRequest_.cancel(),this.JSC$20137_backChannelRequest_=null,vy3(this),u_(20))};
var CC3=function(A){A.JSC$20137_deadBackChannelTimerId_!=null&&(_.Xb.clearTimeout(A.JSC$20137_deadBackChannelTimerId_),A.JSC$20137_deadBackChannelTimerId_=null)};
Tl.prototype.JSC$20132_onRequestComplete=function(A){this.JSC$20133_channelDebug_.debug("Request complete");if(this.JSC$20137_backChannelRequest_==A){CC3(this);this.JSC$20137_backChannelRequest_=null;var t=2}else if(this.forwardChannelRequest_==A)this.forwardChannelRequest_=null,t=1;else return;this.JSC$20137_lastStatusCode_=A.JSC$20125_lastStatusCode_;if(this.state_!=0)if(A.JSC$20125_successful_)if(t==1){t=A.JSC$20125_postData_?A.JSC$20125_postData_.length:0;A=Date.now()-A.JSC$20125_requestStartTime_;
var f=ooy;f.dispatchEvent(new PCm(f,t,A,this.JSC$20137_forwardChannelRetryCount_));Mk3(this);this.handler_&&this.handler_.JSC$20144_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else WuA(this);else{f=A.getLastError();if(f==3||f==7||f==0&&this.JSC$20137_lastStatusCode_>0)this.JSC$20133_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20133_channelDebug_.debug("Maybe retrying, last error: "+Sl3(f,this.JSC$20137_lastStatusCode_));var X;if(X=t==1)this.forwardChannelRequest_||
this.JSC$20137_forwardChannelTimerId_||this.state_==1||this.JSC$20137_forwardChannelRetryCount_>=2?X=!1:(this.JSC$20133_channelDebug_.debug("Going to retry POST"),this.JSC$20137_forwardChannelTimerId_=Fr((0,_.F1)(this.JSC$20137_onStartForwardChannelTimer_,this,A),ysy(this,this.JSC$20137_forwardChannelRetryCount_)),this.JSC$20137_forwardChannelRetryCount_++,X=!0);if(X||t==2&&vy3(this))return;this.JSC$20133_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20133_channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:P2(this,5);break;case 4:P2(this,10);break;case 3:P2(this,6);break;case 7:P2(this,12);break;default:P2(this,2)}}};
var ysy=function(A,t){var f=5E3+Math.floor(Math.random()*1E4);A.isActive()||(A.JSC$20133_channelDebug_.debug("Inactive channel"),f*=2);return f*t};
Tl.prototype.onInput_=function(A){for(var t=0;t<A.length;t++){var f=A[t];this.JSC$20137_lastArrayId_=f[0];f=f[1];this.state_==2?f[0]=="c"?(this.sid_=f[1],this.JSC$20137_hostPrefix_=f[2],f=f[3],f!=null?this.JSC$20137_channelVersion_=f:this.JSC$20137_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20144_channelOpened(),this.JSC$20137_backChannelUri_=lld(this,this.JSC$20137_hostPrefix_,this.JSC$20137_path_),WuA(this)):f[0]=="stop"&&P2(this,7):this.state_==3&&(f[0]=="stop"?P2(this,7):
f[0]!="noop"&&this.handler_&&this.handler_.JSC$20144_channelHandleArray(f),this.JSC$20137_backChannelRetryCount_=0)}};
Tl.prototype.JSC$20137_ensureInState_=function(A){if(!_.Zx(arguments,this.state_))throw Error("Yk`"+this.state_);};
var P2=function(A,t){A.JSC$20133_channelDebug_.info("Error code "+t);if(t==2||t==9){var f=null;A.handler_&&(f=null);var X=(0,_.F1)(A.testGoogleComCallback_,A);f||(f=new _.oq("//www.google.com/images/cleardot.gif"),_.iR(f));vYh(f.toString(),1E4,X)}else u_(2);A.onError_(t)};
Tl.prototype.testGoogleComCallback_=function(A){A?(this.JSC$20133_channelDebug_.info("Successfully pinged google.com"),u_(2)):(this.JSC$20133_channelDebug_.info("Failed to ping google.com"),u_(1),this.onError_(8))};
Tl.prototype.onError_=function(A){this.JSC$20133_channelDebug_.debug("HttpChannel: error - "+A);this.state_=0;this.handler_&&this.handler_.JSC$20144_channelError(A);BAj(this);O2w(this)};
var BAj=function(A){A.state_=0;A.JSC$20137_lastStatusCode_=-1;if(A.handler_)if(A.pendingMaps_.length==0&&A.JSC$20133_outgoingMaps_.length==0)A.handler_.JSC$20144_channelClosed();else{A.JSC$20133_channelDebug_.debug("Number of undelivered maps, pending: "+A.pendingMaps_.length+", outgoing: "+A.JSC$20133_outgoingMaps_.length);var t=_.ds(A.pendingMaps_),f=_.ds(A.JSC$20133_outgoingMaps_);A.pendingMaps_.length=0;A.JSC$20133_outgoingMaps_.length=0;A.handler_.JSC$20144_channelClosed(t,f)}},qWj=function(A,
t){t=eXA(A,null,t);
A.JSC$20133_channelDebug_.debug("GetForwardChannelUri: "+t);return t},lld=function(A,t,f){t=eXA(A,A.JSC$20132_shouldUseSecondaryDomains()?t:null,f);
A.JSC$20133_channelDebug_.debug("GetBackChannelUri: "+t);return t},eXA=function(A,t,f){var X=_.kC(f);
if(X.JSC$10115_domain_!="")t&&_.eQ(X,t+"."+X.JSC$10115_domain_),_.GY(X,X.JSC$10115_port_);else{var Q=window.location;X=zAm(Q.protocol,t?t+"."+Q.hostname:Q.hostname,+Q.port,f)}A.JSC$20137_extraParams_&&_.VG.forEach(A.JSC$20137_extraParams_,function(q,e){_.AZ(X,e,q)});
_.AZ(X,"VER",A.JSC$20137_channelVersion_);csd(A,X);return X};
Tl.prototype.JSC$20132_createXhrIo=function(A){if(A)throw Error("Vk");A=new _.Yg;A.JSC$9879_withCredentials_=!1;return A};
Tl.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Tl.prototype.notifyServerReachabilityEvent=function(A){var t=ooy;t.dispatchEvent(new TAc(t,A))};
Tl.prototype.JSC$20132_shouldUseSecondaryDomains=function(){return!1};
new Bcc;var Luc=function(){};
_.J=Luc.prototype;_.J.JSC$20144_channelOpened=function(){};
_.J.JSC$20144_channelHandleArray=function(){};
_.J.JSC$20144_channelSuccess=function(){};
_.J.JSC$20144_channelError=function(){};
_.J.JSC$20144_channelClosed=function(){};
_.J.JSC$20144_getAdditionalParams=function(){return{}};
_.J.isActive=function(){return!0};var p7m=function(A){A.front_.length===0&&(A.front_=A.back_,A.front_.reverse(),A.back_=[])};
_.J=EYc.prototype;_.J.enqueue=function(A){this.back_.push(A)};
_.J.peek=function(){p7m(this);return _.Ex(this.front_)};
_.J.getCount=function(){return this.front_.length+this.back_.length};
_.J.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.J.clear=function(){this.front_=[];this.back_=[]};
_.J.contains=function(A){return _.Zx(this.front_,A)||_.Zx(this.back_,A)};
_.J.remove=function(A){var t=this.front_;var f=Array.prototype.lastIndexOf.call(t,A,t.length-1);f>=0?(_.Eqb(t,f),t=!0):t=!1;return t||_.o0(this.back_,A)};
_.J.getValues=function(){for(var A=[],t=this.front_.length-1;t>=0;--t)A.push(this.front_[t]);t=this.back_.length;for(var f=0;f<t;++f)A.push(this.back_[f]);return A};var i_=function(A){this.JSC$20148_map_=new _.Rz;this.size=0;A&&this.addAll(A)},Eym=function(A){var t=typeof A;
return t=="object"&&A||t=="function"?"o"+_.gs(A):t.charAt(0)+A};
_.J=i_.prototype;_.J.getCount=function(){return this.JSC$20148_map_.size};
_.J.add=function(A){this.JSC$20148_map_.set(Eym(A),A);this.size=this.JSC$20148_map_.size};
_.J.addAll=function(A){A=_.JH(A);for(var t=A.length,f=0;f<t;f++)this.add(A[f]);this.size=this.JSC$20148_map_.size};
_.J.removeAll=function(A){A=_.JH(A);for(var t=A.length,f=0;f<t;f++)this.remove(A[f]);this.size=this.JSC$20148_map_.size};
_.J.delete=function(A){A=this.JSC$20148_map_.remove(Eym(A));this.size=this.JSC$20148_map_.size;return A};
_.J.remove=function(A){return this.delete(A)};
_.J.clear=function(){this.JSC$20148_map_.clear();this.size=0};
_.J.isEmpty=function(){return this.JSC$20148_map_.size===0};
_.J.has=function(A){return this.JSC$20148_map_.containsKey(Eym(A))};
_.J.contains=function(A){return this.JSC$20148_map_.containsKey(Eym(A))};
_.J.getValues=function(){return this.JSC$20148_map_.getValues()};
_.J.values=function(){return this.JSC$20148_map_.values()};
_.J.clone=function(){return new i_(this)};
_.J.equals=function(A){return this.getCount()==Nc3(A)&&ny2(this,A)};
var ny2=function(A,t){var f=Nc3(t);if(A.getCount()>f)return!1;!(t instanceof i_)&&f>5&&(t=new i_(t));return uXQ(A,function(X){var Q=t;return Q.contains&&typeof Q.contains=="function"?Q.contains(X):Q.containsValue&&typeof Q.containsValue=="function"?Q.containsValue(X):_.ST(Q)||typeof Q==="string"?_.Zx(Q,X):_.VG.containsValue(Q,X)})};
i_.prototype.__iterator__=function(){return this.JSC$20148_map_.__iterator__(!1)};
i_.prototype[Symbol.iterator]=function(){return this.values()};var DTm={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(A){return(this._clampValue(A)-this.min)/(this.max-this.min)},
_clampValue:function(A){return Math.min(this.max,Math.max(this.min,this._calcStep(A)))},
_calcStep:function(A){A=parseFloat(A);if(!this.step)return A;A=Math.round((A-this.min)/this.step);return this.step<1?A/(1/this.step)+this.min:A*this.step+this.min},
_validateValue:function(){var A=this._clampValue(this.value);this.value=this.oldValue=isNaN(A)?this.oldValue:A;return this.value!==A},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Fu3;var Ilh;_.CN({_template:function(){if(Ilh!==void 0)return Ilh;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Fu3===void 0&&(Fu3=document.createElement("template"));var X=Fu3;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return Ilh=A},
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(){_.us(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(A){A.keyCode===27&&(A.preventDefault(),this.close())},
_track:function(A){if(!this.persistent&&!this.disableSwipe)switch(A.preventDefault(),A.detail.state){case "start":this._trackStart(A);break;case "track":this._trackMove(A);break;case "end":this._trackEnd(A)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var A=this.$.contentContainer.getBoundingClientRect();this._savedWidth=A.width;this._translateOffset=this.position==="left"?A.left:A.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(A){this._trackDetails&&(this._translateDrawer(A.detail.dx+this._translateOffset),this._trackDetails.push({dx:A.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(A){if(this._trackDetails){var t=A.detail.dx+this._translateOffset,f=this.getWidth();t=this.position==="left"?t>=0||t<=-f:t<=0||t>=f;if(!t){var X=this._trackDetails;this._trackDetails=null;this._flingDrawer(A,X);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}f/=2;A.detail.dx<-f?this.opened=this.position==="right":A.detail.dx>f&&(this.opened=this.position==="left");t?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(A,t){for(var f=Date.now(),X=f-100,Q,q=0,e=t.length-1;q<=e;){var G=q+e>>1,N=t[G];N.timeStamp>=X?(Q=N,e=G-1):q=G+1}return Q?(A.detail.dx-Q.dx)/(f-Q.timeStamp||1):0},
_flingDrawer:function(A,t){t=this._calculateVelocity(A,t);if(!(Math.abs(t)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;A=A.detail.dx+this._translateOffset;var f=this.getWidth(),X=this.position==="left",Q=t>0;Q?(t=Math.max(t,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(t=Math.min(t,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");t=this._FLING_INITIAL_SLOPE*(!Q&&X?-(A+f):Q&&!X?f-A:-A)/t;this._styleTransitionDuration(t);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,t)}},
_styleTransitionDuration:function(A){this.style.transitionDuration=A+"ms";this.$.contentContainer.style.transitionDuration=A+"ms";this.$.scrim.style.transitionDuration=A+"ms"},
_styleTransitionTimingFunction:function(A){this.$.contentContainer.style.transitionTimingFunction=A;this.$.scrim.style.transitionTimingFunction=A},
_translateDrawer:function(A){var t=this.getWidth();this.position==="left"?(A=Math.max(-t,Math.min(A,0)),this.$.scrim.style.opacity=1+A/t):(A=Math.max(0,Math.min(A,t)),this.$.scrim.style.opacity=1-A/t);this.translate3d(A+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var A=this._drawerState;A===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;A!==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=""),A!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var A=_.iS(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"])');A.length>0?(this._firstTabStop=A[0],this._lastTabStop=A[A.length-1]):
this._lastTabStop=this._firstTabStop=null;(A=this.getAttribute("tabindex"))&&parseInt(A,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(A){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||A.keyCode!==9||(A.shiftKey?this._firstTabStop&&_.iS(A).localTarget===this._firstTabStop&&(A.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.iS(A).localTarget===this._lastTabStop&&(A.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(A,t){this.toggleClass("visible",A&&!t,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 xTd;var jdy;_.CN({_template:function(){if(jdy!==void 0)return jdy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;xTd===void 0&&(xTd=document.createElement("template"));var X=xTd;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return jdy=A},
is:"tp-yt-paper-progress",behaviors:[DTm],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(A){this.toggleClass("indeterminate",A,this.$.primaryProgress)},
_transformProgress:function(A,t){A.style.transform=A.style.webkitTransform="scaleX("+t/100+")"},
_mainRatioChanged:function(A){this._transformProgress(this.$.primaryProgress,A)},
_progressChanged:function(A,t,f,X,Q){A=this._clampValue(A);t=this._clampValue(t);var q=this._calcRatio(A)*100,e=this._calcRatio(t)*100;this._setSecondaryRatio(q);this._transformProgress(this.$.secondaryProgress,q);this._transformProgress(this.$.primaryProgress,e);this.secondaryProgress=A;Q?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",t);this.setAttribute("aria-valuemin",f);this.setAttribute("aria-valuemax",X)},
_disabledChanged:function(A){this.setAttribute("aria-disabled",A?"true":"false")},
_hideSecondaryProgress:function(A){return A===0}});var YWl;var Vk2;var Z22=function(){};
_.J=Z22.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._calcRatio=function(){};
_.J._clampValue=function(){};
_.J._calcStep=function(){};
_.J._validateValue=function(){};
_.J._update=function(){};
_.J._setImmediateValue=function(){};
_.J._setExpand=function(){};
_.J._setDragging=function(){};
_.J._setTransiting=function(){};
_.J._setMarkers=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setRatio=function(){};
Z22=_.CN({_template:function(){if(Vk2!==void 0)return Vk2;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;YWl===void 0&&(YWl=document.createElement("template"));var X=YWl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return Vk2=A},
is:"tp-yt-paper-slider",behaviors:[_.YD,_.dO,_.UUk,DTm],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&&_.g$(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(A,t,f){this.setAttribute("aria-valuemin",t);this.setAttribute("aria-valuemax",f);this.setAttribute("aria-valuenow",A);this._positionKnob(this._calcRatio(A)*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(A){this._setImmediateValue(this._calcStep(this._calcKnobPosition(A)));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(A){return(this.max-this.min)*A/100+this.min},
_onTrack:function(A){A.stopPropagation();switch(A.detail.state){case "start":this._trackStart(A);break;case "track":this._trackX(A);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(A){this.dragging||this._trackStart(A);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,A.detail.dx*(this._isRTL?-1:1)));A=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(A);A=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(A+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var A=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;A.transform=A.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(A){this._expandKnob();A.preventDefault();this.focus()},
_bartrack:function(A){this._allowBarEvent(A)&&this._onTrack(A)},
_barclick:function(A){this._w=this.$.sliderBar.offsetWidth;var t=this.$.sliderBar.getBoundingClientRect();t=(A.detail.x-t.left)/this._w*100;this._isRTL&&(t=100-t);var f=this.ratio;this._setTransiting(!0);this._positionKnob(t);f===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
A.preventDefault();this.focus()},
_bardown:function(A){this._allowBarEvent(A)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(A))},
_knobTransitionEnd:function(A){A.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(A,t,f,X){X||this._setMarkers([]);t=Math.round((f-t)/this.step);t>A&&(t=A);if(t<0||!isFinite(t))t=0;this._setMarkers(Array(t))},
_mergeClasses:function(A){return Object.keys(A).filter(function(t){return A[t]}).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(A){return!this.ignoreBarTouch||A.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(A){this._isRTL?this._incrementKey(A):this._decrementKey(A)},
_rightKey:function(A){this._isRTL?this._decrementKey(A):this._incrementKey(A)},
_incrementKey:function(A){this.disabled||(A.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),A.preventDefault())},
_decrementKey:function(A){this.disabled||(A.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),A.preventDefault())},
_changeValue:function(A){this.value=A.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(A){A.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.JU7._createRipple.call(this)},
_focusedChanged:function(A){A&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=A?"":"none",this._ripple.holdDown=A)}});var oy8;var dTy;var O6=null,SW8=function(){};
_.J=SW8.prototype;_.J.fit=function(){};
_.J._discoverInfo=function(){};
_.J.resetFit=function(){};
_.J.refit=function(){};
_.J.position=function(){};
_.J.constrain=function(){};
_.J._sizeDimension=function(){};
_.J.__sizeDimension=function(){};
_.J.center=function(){};
_.J.__getNormalizedRect=function(){};
_.J.__getOffscreenArea=function(){};
_.J.__getPosition=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J.toggle=function(){};
_.J.open=function(){};
_.J.close=function(){};
_.J.cancel=function(){};
_.J.invalidateTabbables=function(){};
_.J._ensureSetup=function(){};
_.J._canceledChanged=function(){};
_.J._withBackdropChanged=function(){};
_.J._prepareRenderOpened=function(){};
_.J._finishRenderOpened=function(){};
_.J._finishRenderClosed=function(){};
_.J._preparePositioning=function(){};
_.J._finishPositioning=function(){};
_.J._applyFocus=function(){};
_.J._onCaptureClick=function(){};
_.J._onCaptureFocus=function(){};
_.J._onCaptureEsc=function(){};
_.J._onCaptureTab=function(){};
_.J._onIronResize=function(){};
_.J._onNodesChange=function(){};
_.J.__ensureFirstLastFocusables=function(){};
_.J.__openedChanged=function(){};
_.J.__deraf=function(){};
_.J.__updateScrollObservers=function(){};
_.J.__addScrollListeners=function(){};
_.J.__removeScrollListeners=function(){};
_.J.__isValidScrollAction=function(){};
_.J.__onCaptureScroll=function(){};
_.J.__saveScrollPosition=function(){};
_.J.__restoreScrollPosition=function(){};
_.J._setCanceled=function(){};
SW8=_.CN({_template:function(){if(dTy!==void 0)return dTy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;oy8===void 0&&(oy8=document.createElement("template"));var X=oy8;f.call(t,X.content.cloneNode(!0),A.content.firstChild);return dTy=A},
is:"tp-yt-paper-toast",behaviors:[_.lJ],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(){_.IY._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.q2.requestAvailability()},
show:function(A){typeof A=="string"&&(A={text:A});for(var t in A)t.indexOf("_")===0?_.IY._warn('The property "'+t+'" is private and was not set.'):t in this?this[t]=A[t]:_.IY._warn('The property "'+t+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(A){A&&A.target===this&&A.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(O6&&O6!==this&&O6.close(),O6=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):O6===this&&(O6=null);_.Gn._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(A){this.positionTarget=A},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var $TQ=new _.UA("disablePersonalizationAction");var Z_l=new _.UA("showDmaConsentFlowCommand");var ogm=new _.UA("showMmgNoticeCommand");var H2d=new _.UA("saveConsentAction");var aly=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xm(A)};
_.R(aly,_.e3);var Kuh=_.KQq(aly);var gyc=new _.UA("updateTopbarAvatarAction");var w7d=new _.UA("channelHandleValidationResultRenderer");var sd_=new _.UA("generateHandleFromNameResultRenderer");var kB8=new _.UA("channelHandleInputRenderer");var rs2=new _.UA("copyLinkRenderer");var Ak3=new _.UA("timedCommand");var tK3=new _.UA("clearCookieAction");var fiy=new _.UA("getMultiPageMenuAction");var Xg8=new _.UA("addToGuideSectionAction"),Qay=new _.UA("removeFromGuideSectionAction");var q3A=new _.UA("updateNotificationsUnseenCountAction");var Jkl=new _.UA("resetChannelUnreadCountCommand");var UVl=new _.UA("resetSubscriptionsUnreadDotCommand");var ekw=new _.UA("selectLanguageCommand");var AUm=new _.UA("sendFeedbackAction");var wa3=new _.UA("uploadImageToScottyCommand");var sBy=new _.UA("registerPromoCommand");var kuy=new _.UA("setPushNotificationsEnabledCommand");var rAQ=new _.UA("desktopTopbarRenderer");var AKd=new _.UA("surveyFollowUpRenderer");var tAl=new _.UA("handlesClaimingRadioOptionRenderer");var f9_=new _.UA("hotkeyDialogRenderer");var Xl2=new _.UA("modifyReportFormCommand");var QV8=new _.UA("accountLinkCommand");var qRd=new _.UA("accountUnlinkCommand");var JKh=new _.UA("logAccountLinkingEventCommand");var gp2=new _.UA("guideCollapsibleEntryRenderer");var Umy=new _.UA("guideDownloadsEntryRenderer");var Kam=new _.UA("guideEntryRenderer");var ebd=new _.UA("getLocationCommand");var GA3=new _.UA("locationCollectionCommand");var l9d=new _.UA("storiesItemViewModel");var Nhc=new _.UA("addToRemoteQueueAction");var uFm=new _.UA("insertInRemoteQueueAction");var zbd=new _.UA("removeFromRemoteQueueAction");var Pv3=new _.UA("notificationRenderer");var Rij=new _.UA("localWatchHistoryCommand");var Th_=new _.UA("pdgBuyFlowHeaderRenderer");var iQm=new _.UA("pdgColorSliderRenderer");var OQl=new _.UA("pdgCommentOptionRenderer");var cK3=new _.UA("pdgCommentPreviewRenderer");var Bh8=new _.UA("superVodSelectableItemButtonRenderer");var MA3=new _.UA("switchButtonRenderer");var Cvy=new _.UA("upsellDialogRenderer");var hbh=new _.UA("feedbackQuestionRenderer"),Rby=new _.UA("feedbackOptionRenderer");var mmj=new _.UA("sponsorshipsTierRenderer"),bQd=new _.UA("sponsorshipsPromotionChannelRenderer");var WT8=new _.UA("simpleSurveyMessageRenderer");var QP3=new _.UA("invokeInstrumentManagerAction");var yKl=new _.UA("logYpcFlowDismissCommand");var v13=new _.UA("logYpcFlowStartCommand");var LTQ=new _.UA("unlimitedCreateFamilyEndpoint");var pld=new _.UA("iconBadgeRenderer");var b33=new _.UA("collaborativePlaylistVisibilityValidationRule");var E1h=function(A){_.b6.call(this,"channelMessage");this.message=A};
_.R(E1h,_.b6);var n1A=function(A){_.b6.call(this,"channelError");this.error=A};
_.R(n1A,_.b6);var Dml={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",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},FTw={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},I9m={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},xmm={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},jVc={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var c2=function(A){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 _.Rz;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";this.castUserId=void 0;A&&(this.id=A.id||A.name,this.name=A.name,this.clientName=A.clientName?A.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=A.app,this.type=A.type||"REMOTE_CONTROL",this.username=A.user||"",this.avatar=A.userAvatarUri||"",this.obfuscatedGaiaId=A.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=A.ownerObfuscatedGaiaId||"",this.castUserId=A.castUserId||"",this.theme=A.theme||"u",YR2(this,A.capabilities||""),VA3(this,
A.compatibleSenderThemes||""),ZQw(this,A.experiments||""),this.remoteControllerUrl=A.remoteControllerUrl||"",this.localChannelEncryptionKey=A.localChannelEncryptionKey||"",this.deviceContext=A.deviceContext,this.brand=A.brand||"",this.model=A.model||"",this.year=A.year||0,this.os=A.os||"",this.osVersion=A.osVersion||"",this.chipset=A.chipset||"",this.mdxDialServerType=A.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=A.pairingType||"unknown",A=A.deviceInfo)&&(A=JSON.parse(A),this.brand=
A.brand||"",this.model=A.model||"",this.year=A.year||0,this.os=A.os||"",this.osVersion=A.osVersion||"",this.chipset=A.chipset||"",this.clientName=A.clientName?A.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=A.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
c2.prototype.copy=function(){var A={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&&(A.brand=this.brand);
this.model&&(A.model=this.model);this.year&&(A.year=this.year);this.os&&(A.os=this.os);this.osVersion&&(A.osVersion=this.osVersion);this.chipset&&(A.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(A.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(A.mdxDialServerType=this.mdxDialServerType);A=new c2(A);A.connected=this.connected;A.remoteControllerUrl=this.remoteControllerUrl;A.localChannelEncryptionKey=this.localChannelEncryptionKey;A.deviceContext=
this.deviceContext;A.castUserId=this.castUserId;return A};
c2.prototype.equals=function(A){return A?this.id==A.id:!1};
var YR2=function(A,t){A.capabilities.clear();_.tJ(t.split(","),_.l0(_.VG.contains,Dml)).forEach(function(f){A.capabilities.add(f)})},VA3=function(A,t){A.compatibleSenderThemes.clear();
_.tJ(t.split(","),_.l0(_.VG.contains,FTw)).forEach(function(f){A.compatibleSenderThemes.add(f)})},ZQw=function(A,t){A.experiments.clear();
t.split(",").forEach(function(f){A.experiments.add(f)})};_.rS(Dad,_.DA);_.J=Dad.prototype;_.J.JSC$20184_onTick_=function(){this.JSC$20182_interval_=Math.min(3E5,this.JSC$20182_interval_*2);this.JSC$20184_listener_();this.nextTickTime_&&this.start()};
_.J.start=function(){var A=this.JSC$20182_interval_+15E3*Math.random(),t=this.delay_;t.isActive()||t.start(A);this.nextTickTime_=Date.now()+A};
_.J.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.J.isActive=function(){return this.delay_.isActive()};
_.J.reset=function(){this.delay_.stop();this.JSC$20182_interval_=5E3};_.rS(xX,Luc);_.J=xX.prototype;_.J.subscribe=function(A,t,f){return this.pubsub_.subscribe(A,t,f)};
_.J.unsubscribe=function(A,t,f){return this.pubsub_.unsubscribe(A,t,f)};
_.J.unsubscribeByKey=function(A){return this.pubsub_.unsubscribeByKey(A)};
_.J.publish=function(A,t){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.J.dispose=function(){this.JSC$20185_disposed_||(this.JSC$20185_disposed_=!0,_.ee(this.pubsub_),this.disconnect(),_.ee(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20185_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.ff({})})};
_.J.isDisposed=function(){return this.JSC$20185_disposed_};
_.J.connect=function(A,t,f){var X=this,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1)return _.WC(N,2),X.useAsyncBrowserChannelHandler_?N.yield(X.connectPromise_,2):N.jumpTo(2);_.mz(N);if(X.JSC$20185_disposed_||X.JSC$20185_channel_&&X.JSC$20185_channel_.getState()==2)return N.return();X.sCookie_="";X.reconnectTimer_.stop();X.connectionParams_=A||null;X.connectUi_=t||0;Q=X.JSC$20185_pathPrefix_+"/test";q=X.JSC$20185_pathPrefix_+"/bind";e=new Tl(f?f.firstTestResults:null,f?f.secondTestResults:null,
X.enableAsyncTest_);if(G=X.JSC$20185_channel_)G.handler_=null;e.handler_=X;X.JSC$20185_channel_=e;if(X.useAsyncBrowserChannelHandler_)return X.connectPromise_=o1h(X).then(function(){return dm8(X,Q,q,G,f)}),N.return(X.connectPromise_.then(function(){X.connectPromise_=_.ff()}));
dm8(X,Q,q,G,f);return _.yP(N,0)})};
var dm8=function(A,t,f,X,Q){SRw(A);if(A.JSC$20185_channel_){var q=_.ah("ID_TOKEN"),e=A.JSC$20185_channel_.JSC$20137_extraHeaders_||{};q?e["x-youtube-identity-token"]=q:delete e["x-youtube-identity-token"];A.JSC$20185_channel_.JSC$20137_extraHeaders_=e}$mc(A);X?(X.getState(),A.JSC$20185_channel_.connect(t,f,A.defaultQueryParams_,X.sid_,X.JSC$20137_lastArrayId_)):Q?A.JSC$20185_channel_.connect(t,f,A.defaultQueryParams_,Q.sessionId,Q.arrayId):A.JSC$20185_channel_.connect(t,f,A.defaultQueryParams_)};
xX.prototype.disconnect=function(A){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.ff())}finally{this.disconnectUi_=A||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),SRw(this),this.JSC$20185_channel_&&(this.JSC$20185_channel_.getState()==3&&RXd(this.JSC$20185_channel_),this.JSC$20185_channel_.disconnect()),this.disconnectUi_=0}};
xX.prototype.sendMessage=function(A,t){var f=this,X;return _.l(function(Q){switch(Q.nextAddress){case 1:_.WC(Q,2);if(!f.useAsyncBrowserChannelHandler_){Q.jumpTo(2);break}return Q.yield(f.connectPromise_,2);case 2:_.mz(Q);if(f.JSC$20185_disposed_)return Q.return();X={_sc:A};t&&_.VG.extend(X,t);if(f.reconnectTimer_.isActive()||(f.JSC$20185_channel_?f.JSC$20185_channel_.getState():0)==2){f.JSC$20185_pendingMessages_.push(X);Q.jumpTo(6);break}if(!f.isChannelOpened()){Q.jumpTo(6);break}_.WC(Q,8);if(!f.useAsyncBrowserChannelHandler_||
HQ2(f,A)){Q.jumpTo(8);break}return Q.yield(o1h(f),8);case 8:_.mz(Q,0,0,1);f.isChannelOpened()&&(HQ2(f,A)||$mc(f),SRw(f),hX2(f.JSC$20185_channel_,X));_.yP(Q,6,1);break;case 6:_.yP(Q,0)}})};
var HQ2=function(A,t){return A.enableMdxAuthForConnectionOnly_?!0:A.disableMdxAuthForAdMessages_?Object.values(I9m).includes(t):A.disableMdxAuthForNonPlaybackMessages_?!Object.values(xmm).includes(t):A.disableMdxAuthForShortsMessages_?Object.values(jVc).includes(t):!1};
xX.prototype.JSC$20144_channelOpened=function(){this.isInitialReconnectTimer_?(_.ee(this.reconnectTimer_),this.reconnectTimer_=new Dad(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20185_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)a9d(this);else{var A=this.JSC$20185_pendingMessages_;this.JSC$20185_pendingMessages_=[];var t=A.length;$mc(this);KTd(this,A,t);g1c(this)}else g1c(this)};
var a9d=function(A){var t,f;_.l(function(X){if(X.nextAddress==1)return _.WC(X,2),X.yield(o1h(A),2);_.mz(X);t=A.JSC$20185_pendingMessages_;A.JSC$20185_pendingMessages_=[];f=t.length;KTd(A,t,f);g1c(A);return _.yP(X,0)})},KTd=function(A,t,f){for(var X=0;X<f;++X)hX2(A.JSC$20185_channel_,t[X]);
g1c(A)},g1c=function(A){A.publish("handlerOpened");
A.JSC$20185_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.J=xX.prototype;_.J.JSC$20144_channelError=function(A){var t=A==2&&this.JSC$20185_channel_.JSC$20137_lastStatusCode_==401;A==4||t||this.reconnectTimer_.start();this.publish("handlerError",A,t);t=Object.keys(zX8).find(function(f){return zX8[f]===A});
this.JSC$20185_channelErrorCounter.increment("BROWSER_CHANNEL",t!=null?t:"UNKNOWN")};
_.J.JSC$20144_channelClosed=function(A,t){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(t)for(var f=t.length,X=0;X<f;++X){var Q=t[X].map;Q&&this.JSC$20185_pendingMessages_.push(Q)}this.JSC$20185_channelClosedCounter.increment("BROWSER_CHANNEL");A&&this.pendingMapsOnClosedCounter.JSC$10015_streamzService.JSC$9870_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",A.length);t&&this.undeliveredMapsOnClosedCounter.JSC$10018_streamzService.JSC$9870_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
t.length)};
_.J.JSC$20144_channelSuccess=function(A,t){t!=null&&A!=null&&this.channelMessageSentCounter.increment()};
_.J.JSC$20144_getAdditionalParams=function(){var A={v:2};this.sCookie_&&(A.gsessionid=this.sCookie_);this.connectUi_!=0&&(A.ui=""+this.connectUi_);this.disconnectUi_!=0&&(A.ui=""+this.disconnectUi_);this.connectionParams_&&_.VG.extend(A,this.connectionParams_);return A};
_.J.JSC$20144_channelHandleArray=function(A){A[0]=="S"?this.sCookie_=A[1]:A[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20185_channel_.disconnect()):this.publish("handlerMessage",new nYl(A[0],A[1]));this.JSC$20185_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.J.isChannelOpened=function(){return!!this.JSC$20185_channel_&&this.JSC$20185_channel_.getState()==3};
var SRw=function(A){if(A.JSC$20185_channel_){var t=A.JSC$20185_getXsrfToken_(),f=A.JSC$20185_channel_.JSC$20137_extraHeaders_||{};t?f["x-youtube-lounge-xsrf-token"]=t:delete f["x-youtube-lounge-xsrf-token"];A.JSC$20185_channel_.JSC$20137_extraHeaders_=f}},o1h=function(A){if(A.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.ff();
if(!A.enableCachedUpdateAuthorizationHeader_)return wl3(A);A.updateAuthorizationHeaderPromise_===null&&(A.updateAuthorizationHeaderPromise_=wl3(A));return A.updateAuthorizationHeaderPromise_},wl3=function(A){return _.FZ(A.getAuthorizationHeader_().then(function(t){sVA(A,t)}).thenCatch(function(){}),function(){A.updateAuthorizationHeaderPromise_=null})},sVA=function(A,t){if(A.JSC$20185_channel_){var f=A.JSC$20185_channel_.JSC$20137_extraHeaders_||{};
t&&Object.keys(t).length>0?f=Object.assign({},f,t):delete f.Authorization;A.JSC$20185_channel_.JSC$20137_extraHeaders_=f}},$mc=function(A){A.getAuthorizationHeaderSync_&&!A.useAsyncBrowserChannelHandler_&&sVA(A,A.getAuthorizationHeaderSync_())};
_.J=xX.prototype;_.J.setLoungeToken=function(A){(this.defaultQueryParams_.loungeIdToken=A)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20185_channel_){var t=this.JSC$20185_channel_.JSC$20137_extraHeaders_||{};A?t["X-YouTube-LoungeId-Token"]=A:delete t["X-YouTube-LoungeId-Token"];this.JSC$20185_channel_.JSC$20137_extraHeaders_=t}};
_.J.getDeviceId=function(){return this.defaultQueryParams_.id};
_.J.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var A=this.reconnectTimer_;A.delay_.fire();A.start()};
_.J.safeReconnect_=function(){var A=this.JSC$20185_channel_,t=0;A.JSC$20137_backChannelRequest_&&t++;A.forwardChannelRequest_&&t++;t==0&&this.connect(this.connectionParams_,this.connectUi_)};var Zp=function(A,t){var f=A.basePath;A.supportCors&&(f=A.scheme+"://"+A.domain+A.port+A.basePath);return _.U0(f+t,{})};
oY3.prototype.sendRequest=function(A,t,f,X,Q,q,e){A={format:q?"RAW":"JSON",method:A,context:this,timeout:5E3,withCredentials:!!e,onSuccess:_.l0(this.JSC$20191_onSuccess_,X,!q),onError:_.l0(this.onError_,Q),onTimeout:_.l0(this.JSC$20191_onTimeout_,Q)};f&&(A.postParams=f,A.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.y$(t,A)};
oY3.prototype.JSC$20191_onSuccess_=function(A,t,f,X){t?A(X):A({text:f.responseText})};
oY3.prototype.onError_=function(A,t){A(Error("Zk`"+t.status))};
oY3.prototype.JSC$20191_onTimeout_=function(A){A(Error("$k"))};var H8d=function(A,t){return!!t&&(A.id==t||A.uuid==t)},kAd=function(A){return{name:A.name,
screenId:A.id,loungeToken:A.token,dialId:A.uuid,screenIdType:A.idType,screenIdSecret:A.secret}},rKd=function(A){return new jg(A)},ATA=function(A){return Array.isArray(A)?_.Zg(A,rKd):[]},K_m=function(A){if(!A)return"null";
var t=A.token?".."+A.token.slice(-6):"-",f=A.uuid?".."+A.uuid.slice(-6):"-",X=A.secret?".."+A.secret.slice(-6):"-";return'{name:"'+A.name+'",id:'+A.id.substr(0,6)+"..,token:"+(t+",uuid:"+f+",idType:"+A.idType+",secret:")+(X+"}")},Cgw=function(A){return Array.isArray(A)?"["+_.Zg(A,K_m).join(",")+"]":"null"};var r0m="",VI=null;var GFl=function(A,t){_.p_.call(this);var f=this;this.handler=A();this.handler.subscribe("handlerOpened",this.JSC$20198_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(X,Q){f.onError(Q)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=t};
_.R(GFl,_.p_);_.J=GFl.prototype;_.J.connect=function(A,t,f){this.handler.connect(A,t,f)};
_.J.disconnect=function(A){this.handler.disconnect(A)};
_.J.reconnect=function(){this.handler.reconnect()};
_.J.getDeviceId=function(){return this.handler.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.J.JSC$20198_onOpened=function(){this.dispatchEvent("channelOpened");var A=this.handler,t=this.currentScreenId;_.ci("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!A.JSC$20185_channel_.useChunked_,sessionId:A.JSC$20185_channel_.sid_,arrayId:A.JSC$20185_channel_.JSC$20137_lastArrayId_});_.ci("yt-remote-session-screen-id",t);A=adc();t=K0d();_.Zx(A,t)||A.push(t);kq3(A);sJ8()};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(A){this.dispatchEvent(new E1h(A))};
_.J.onError=function(A){this.dispatchEvent(new n1A(A?1:0))};
_.J.sendMessage=function(A,t){this.handler.sendMessage(A,t)};
_.J.setLoungeToken=function(A){this.handler.setLoungeToken(A)};
_.J.dispose=function(){this.handler.dispose()};var eW2=function(A,t,f){var X=this;f=f===void 0?function(){return""}:f;
var Q=Q===void 0?new xR3:Q;var q=q===void 0?new _.Lk:q;this.pathPrefix=A;this.defaultQueryParams=t;this.getXsrfToken=f;this.JSC$20201_pubsub=q;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new Dad(function(){var e;((e=X.channel)==null?void 0:NN2((new VHy(e,e.JSC$20108_channel_)).JSC$20118_channel_.forwardChannelRequestPool_))===0&&X.connect(X.connectionParams,X.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20201_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20201_channelOpenedCounter=new F03;this.JSC$20201_channelClosedCounter=new Idm;this.JSC$20201_channelMessageReceivedCounter=new jJA;this.JSC$20201_channelErrorCounter=new YjA};
eW2.prototype.connect=function(A,t){A=A===void 0?{}:A;t=t===void 0?0:t;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=A,this.connectUi=t,t98(this),(A=_.ah("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=A: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 NQ(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,fG3(this))};
var fG3=function(A){_.TV(A.channel,"w",function(){A.channelState=3;A.reconnectTimer.reset();A.connectionParams=null;A.connectUi=0;for(var t=_.U(A.nonAckedMessagesOnChannelClosed),f=t.next();!f.done;f=t.next())f=f.value,A.channel&&A.channel.send(f);A.nonAckedMessagesOnChannelClosed=[];A.publish("webChannelOpened");A.JSC$20201_channelOpenedCounter.increment("WEB_CHANNEL")});
_.TV(A.channel,"x",function(){A.channelState=0;A.reconnectTimer.isActive()||A.publish("webChannelClosed");var t,f=(t=A.channel)==null?void 0:ZRy(new VHy(t,t.JSC$20108_channel_));f&&(A.nonAckedMessagesOnChannelClosed=[].concat(_.YV(f)));A.JSC$20201_channelClosedCounter.increment("WEB_CHANNEL")});
_.TV(A.channel,"z",function(t){var f=t.data;f[0]==="gracefulReconnect"?(A.reconnectTimer.start(),A.channel&&A.channel.close()):A.publish("webChannelMessage",new nYl(f[0],f[1]));A.lastStatusCode=t.statusCode;A.JSC$20201_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.TV(A.channel,"y",function(){A.lastStatusCode===401||A.reconnectTimer.start();A.publish("webChannelError");A.JSC$20201_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.J=eW2.prototype;_.J.disconnect=function(A){this.disconnectUi=A===void 0?0:A;this.reconnectTimer.stop();t98(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.J.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var A=this.reconnectTimer;A.delay_.fire();A.start()};
_.J.sendMessage=function(A,t){this.channel&&(t98(this),A=Object.assign({},{_sc:A},t),this.channel.send(A))};
_.J.setLoungeToken=function(A){A||this.reconnectTimer.stop();A?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=A:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var t98=function(A){var t=A.getXsrfToken();t?A.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=t:delete A.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.J=eW2.prototype;_.J.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.J.publish=function(A){return this.JSC$20201_pubsub.publish.apply(this.JSC$20201_pubsub,[A].concat(_.YV(_.Hu.apply(1,arguments))))};
_.J.subscribe=function(A,t,f){return this.JSC$20201_pubsub.subscribe(A,t,f)};
_.J.unsubscribe=function(A,t,f){return this.JSC$20201_pubsub.unsubscribe(A,t,f)};
_.J.unsubscribeByKey=function(A){return this.JSC$20201_pubsub.unsubscribeByKey(A)};
_.J.dispose=function(){this.JSC$20201_disposed||(this.JSC$20201_disposed=!0,_.ee(this.JSC$20201_pubsub),this.disconnect(),_.ee(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.J.isDisposed=function(){return this.JSC$20201_disposed};var UBQ=function(A){_.p_.call(this);this.webChannelService=A();this.webChannelService.subscribe("webChannelOpened",this.JSC$20209_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.R(UBQ,_.p_);_.J=UBQ.prototype;_.J.connect=function(A,t){this.webChannelService.connect(A,t)};
_.J.disconnect=function(A){this.webChannelService.disconnect(A)};
_.J.reconnect=function(){this.webChannelService.reconnect()};
_.J.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.J.JSC$20209_onOpened=function(){this.dispatchEvent("channelOpened")};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(A){this.dispatchEvent(new E1h(A))};
_.J.onError=function(){this.dispatchEvent(new n1A(this.webChannelService.lastStatusCode===401?1:0))};
_.J.sendMessage=function(A,t){this.webChannelService.sendMessage(A,t)};
_.J.setLoungeToken=function(A){this.webChannelService.setLoungeToken(A)};
_.J.dispose=function(){this.webChannelService.dispose()};var Mtc=Date.now(),om=null,cuy=Array(50),Os_=-1,BSc=!1;_.rS($X,_.N6);$X.prototype.getScreens=function(){return this.screens};
$X.prototype.contains=function(A){return!!$ad(this.screens,A)};
$X.prototype.get=function(A){return A?YX(this.screens,A):null};
var XN_=function(A,t){var f=A.get(t.uuid)||A.get(t.id);if(f)return A=f.name,f.id=t.id||f.id,f.name=t.name,f.token=t.token,f.uuid=t.uuid||f.uuid,f.name!=A;A.screens.push(t);return!0},QQ_=function(A,t){var f=A.screens.length!=t.length;
A.screens=_.tJ(A.screens,function(q){return!!$ad(t,q)});
for(var X=t.length,Q=0;Q<X;Q++)f=XN_(A,t[Q])||f;return f},qz8=function(A,t){var f=A.screens.length;
A.screens=_.tJ(A.screens,function(X){return!(X||t?!X!=!t?0:X.id==t.id:1)});
return A.screens.length<f};
$X.prototype.info=function(A){dp(this.JSC$20210_logName_,A)};var JTy=function(A,t,f,X,Q){_.N6.call(this);this.JSC$20213_http_=A;this.pairingCode_=t;this.deviceId_=f;this.friendlyName_=X;this.enableShortLivedLoungeToken_=Q;this.pollIndex_=0;this.JSC$20213_xhr_=null;this.JSC$20213_timer_=NaN};
_.R(JTy,_.N6);_.J=JTy.prototype;_.J.start=function(){!this.JSC$20213_xhr_&&isNaN(this.JSC$20213_timer_)&&this.poll_()};
_.J.stop=function(){this.JSC$20213_xhr_&&(this.JSC$20213_xhr_.abort(),this.JSC$20213_xhr_=null);isNaN(this.JSC$20213_timer_)||(_.b2(this.JSC$20213_timer_),this.JSC$20213_timer_=NaN)};
_.J.disposeInternal=function(){this.stop();_.N6.prototype.disposeInternal.call(this)};
_.J.poll_=function(){this.JSC$20213_timer_=NaN;this.JSC$20213_xhr_=_.y$(Zp(this.JSC$20213_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.F1)(this.JSC$20215_onSuccess_,this),onError:(0,_.F1)(this.onError_,this),onTimeout:(0,_.F1)(this.JSC$20215_onTimeout_,this)})};
_.J.JSC$20215_onSuccess_=function(A,t){this.JSC$20213_xhr_=null;A=t.screen||{};A.dialId=this.deviceId_;A.name=this.friendlyName_;t=-1;this.enableShortLivedLoungeToken_&&A.shortLivedLoungeToken&&A.shortLivedLoungeToken.value&&A.shortLivedLoungeToken.refreshIntervalMs&&(A.screenIdType="shortLived",A.loungeToken=A.shortLivedLoungeToken.value,t=A.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new jg(A),t)};
_.J.onError_=function(A){this.JSC$20213_xhr_=null;A.status&&A.status==404?this.pollIndex_>=Un8.length?this.publish("pairingFailed",Error("al")):(A=Un8[this.pollIndex_],this.JSC$20213_timer_=_.Rj((0,_.F1)(this.poll_,this),A),this.pollIndex_++):this.publish("pairingFailed",Error("bl`"+A.status))};
_.J.JSC$20215_onTimeout_=function(){this.JSC$20213_xhr_=null;this.publish("pairingFailed",Error("cl"))};
var Un8=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.rS(am,$X);_.J=am.prototype;_.J.start=function(){Hv(this)&&this.publish("screenChange");!_.Bi("yt-remote-lounge-token-expiration")&&eDQ(this);_.b2(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Rj((0,_.F1)(this.start,this),1E4)};
_.J.add=function(A,t){Hv(this);XN_(this,A);Gyw(this,!1);this.publish("screenChange");t(A);A.token||eDQ(this)};
_.J.remove=function(A,t){var f=Hv(this);qz8(this,A)&&(Gyw(this,!1),f=!0);t(A);f&&this.publish("screenChange")};
_.J.updateName=function(A,t,f,X){var Q=Hv(this),q=this.get(A.id);q?(q.name!=t&&(q.name=t,Gyw(this,!1),Q=!0),f(A)):X(Error("dl"));Q&&this.publish("screenChange")};
_.J.disposeInternal=function(){_.b2(this.loungeTokenRefreshTimer_);am.superClass_.disposeInternal.call(this)};
var eDQ=function(A){if(A.screens.length){var t=_.Zg(A.screens,function(X){return X.id}),f=Zp(A.JSC$20217_http_,"/pairing/get_lounge_token_batch");
A.JSC$20217_http_.sendRequest("POST",f,{screen_ids:t.join(",")},(0,_.F1)(A.handleLoungeTokens_,A),(0,_.F1)(A.handleLoungeTokenError_,A))}};
am.prototype.handleLoungeTokens_=function(A){Hv(this);var t=this.screens.length;A=A&&A.screens||[];for(var f=A.length,X=0;X<f;++X){var Q=A[X],q=this.get(Q.screenId);q&&(q.token=Q.loungeToken,--t)}Gyw(this,!t);t&&dp(this.JSC$20210_logName_,"Missed "+t+" lounge tokens.")};
am.prototype.handleLoungeTokenError_=function(A){dp(this.JSC$20210_logName_,"Requesting lounge tokens failed: "+A)};
var Hv=function(A){if(_.M("deprecate_pair_servlet_enabled"))return QQ_(A,[]);var t=ATA(tt2());t=_.tJ(t,function(f){return!f.uuid});
return QQ_(A,t)},Gyw=function(A,t){XFw(_.Zg(A.screens,kAd));
t&&fSc()};var B2=function(A,t){_.N6.call(this);this.getScreensToCheck_=t;t=(t=_.Bi("yt-remote-online-screen-ids")||"")?t.split(","):[];for(var f={},X=this.getScreensToCheck_(),Q=X.length,q=0;q<Q;++q){var e=X[q].id;f[e]=_.Zx(t,e)}this.screenIdSet_=f;this.JSC$20220_http_=A;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;lG2("Initialized with "+(0,_.j$)(this.screenIdSet_))};
_.R(B2,_.N6);B2.prototype.isOnline=function(A){return!!this.screenIdSet_[A]};
B2.prototype.start=function(){var A=parseInt(_.Bi("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.k5()-144E5<A?0:A)?N48(this):(this.fastCheckEndTime_=_.k5()+3E5,_.ci("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
B2.prototype.isEmpty=function(){return _.VG.isEmpty(this.screenIdSet_)};
B2.prototype.update=function(){lG2("Updating availability on schedule.");var A=this.getScreensToCheck_(),t=_.VG.filter(this.screenIdSet_,function(f,X){return f&&!!YX(A,X)},this);
uzy(this,t)};
var zDA=function(A,t,f){var X=Zp(A.JSC$20220_http_,"/pairing/get_screen_availability");A.JSC$20220_http_.sendRequest("POST",X,{lounge_token:t.token},(0,_.F1)(function(Q){Q=Q.screens||[];for(var q=Q.length,e=0;e<q;++e)if(Q[e].loungeToken==t.token){f(Q[e].status=="online");return}f(!1)},A),(0,_.F1)(function(){f(!1)},A))};
B2.prototype.disposeInternal=function(){_.b2(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.N6.prototype.disposeInternal.call(this)};
var uzy=function(A,t){a:if(_.VG.getCount(t)!=_.VG.getCount(A.screenIdSet_))var f=!1;else{f=_.VG.getKeys(t);for(var X=f.length,Q=0;Q<X;++Q)if(!A.screenIdSet_[f[Q]]){f=!1;break a}f=!0}f||(lG2("Updated online screens: "+(0,_.j$)(A.screenIdSet_)),A.screenIdSet_=t,A.publish("screenChange"));PGy(A)},N48=function(A){isNaN(A.refreshTimer_)||_.b2(A.refreshTimer_);
A.refreshTimer_=_.Rj((0,_.F1)(A.requestScreenAvailability_,A),A.fastCheckEndTime_>0&&A.fastCheckEndTime_<_.k5()?2E4:1E4)};
B2.prototype.requestScreenAvailability_=function(){_.b2(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var A=T4m(this);if(_.VG.getCount(A)){var t=Zp(this.JSC$20220_http_,"/pairing/get_screen_availability"),f={lounge_token:_.VG.getKeys(A).join(",")};this.currentRequest_=this.JSC$20220_http_.sendRequest("POST",t,f,(0,_.F1)(this.onScreenAvailability_,this,A),(0,_.F1)(this.onScreenAvailabilityError_,this))}else uzy(this,{}),N48(this)};
B2.prototype.onScreenAvailability_=function(A,t){this.currentRequest_=null;var f=_.VG.getKeys(T4m(this));if(_.ws(f,_.VG.getKeys(A))){t=t.screens||[];f={};for(var X=t.length,Q=0;Q<X;++Q)f[A[t[Q].loungeToken]]=t[Q].status=="online";uzy(this,f);N48(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
B2.prototype.onScreenAvailabilityError_=function(A){this.warn_("Screen availability failed: "+A);this.currentRequest_=null;N48(this)};
var lG2=function(A){dp("OnlineScreenService",A)};
B2.prototype.warn_=function(A){dp("OnlineScreenService",A)};
var T4m=function(A){var t={};_.X_(A.getScreensToCheck_(),function(f){f.token?t[f.token]=f.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return t},PGy=function(A){A=_.VG.getKeys(_.VG.filter(A.screenIdSet_,function(t){return t}));
A.sort(_.Ixq);A.length?_.ci("yt-remote-online-screen-ids",A.join(","),60):_.Mv("yt-remote-online-screen-ids")};_.rS(KC,$X);_.J=KC.prototype;_.J.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.J.add=function(A,t,f){this.localScreenService_.add(A,t,f)};
_.J.remove=function(A,t,f){this.localScreenService_.remove(A,t,f);this.onlineScreenService_.update()};
_.J.updateName=function(A,t,f,X){this.localScreenService_.contains(A)?this.localScreenService_.updateName(A,t,f,X):(A="Updating name of unknown screen: "+A.name,dp(this.JSC$20210_logName_,A),X(Error(A)))};
_.J.getScreens=function(A){return A?this.screens:epA(this.screens,_.tJ(this.automaticScreens_,function(t){return!this.contains(t)},this))};
_.J.JSC$20225_getOnlineScreens=function(){return _.tJ(this.getScreens(!0),function(A){return this.onlineScreenService_.isOnline(A.id)},this)};
var O$d=function(A,t,f,X,Q,q){A.info("getAutomaticScreenByIds "+f+" / "+t);f||(f=A.deviceToScreenId_[t]);var e=A.getScreens(),G=f?YX(e,f):null;f&&(A.disableAutomaticScreenCache_||G)||(G=YX(e,t));if(G){G.uuid=t;var N=MQ(A,G);zDA(A.onlineScreenService_,N,function(z){Q(z?N:null)})}else f?i$3(A,f,(0,_.F1)(function(z){var T=MQ(this,new jg({name:X,
screenId:f,loungeToken:z,dialId:t||""}));zDA(this.onlineScreenService_,T,function(O){Q(O?T:null)})},A),q):Q(null)};
KC.prototype.JSC$20225_getScreenByPollingPairingCode=function(A,t,f,X,Q,q){var e=this;this.info("getDialScreenByPairingCode "+A+" / "+t);var G=new JTy(this.JSC$20223_http_,A,t,f,X);G.subscribe("pairingComplete",function(N,z){_.ee(G);Q(MQ(e,N),z)});
G.subscribe("pairingFailed",function(N){_.ee(G);q(N)});
G.start();return(0,_.F1)(G.stop,G)};
var cTm=function(A,t){for(var f=A.screens.length,X=0;X<f;++X)if(A.screens[X].name==t)return A.screens[X];return null};
KC.prototype.JSC$20225_getScreenByPairingCode=function(A,t,f,X){_.y$(Zp(this.JSC$20223_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:A},timeout:5E3,onSuccess:(0,_.F1)(function(Q,q){Q=new jg(q.screen||{});if(!Q.name||cTm(this,Q.name)){a:{q=Q.name;for(var e=2,G=t(q,e);cTm(this,G);){e++;if(e>20)break a;G=t(q,e)}q=G}Q.name=q}f(MQ(this,Q))},this),
onError:(0,_.F1)(function(Q){X(Error("el`"+Q.status))},this),
onTimeout:(0,_.F1)(function(){X(Error("fl"))},this)})};
var B4j=function(A,t,f){zDA(A.onlineScreenService_,t,f)};
KC.prototype.disposeInternal=function(){_.ee(this.localScreenService_);_.ee(this.onlineScreenService_);KC.superClass_.disposeInternal.call(this)};
var i$3=function(A,t,f,X){A.info("requestLoungeToken_ for "+t);var Q={postParams:{screen_ids:t},method:"POST",context:A,onSuccess:function(q,e){q=e&&e.screens||[];q[0]&&q[0].screenId==t?f(q[0].loungeToken):X(Error("gl"))},
onError:function(){X(Error("hl"))}};
_.y$(Zp(A.JSC$20223_http_,"/pairing/get_lounge_token_batch"),Q)},M9Q=function(A){A.screens=A.localScreenService_.getScreens();
for(var t=_.VG.transpose(A.deviceToScreenId_),f=A.screens.length,X=0;X<f;++X){var Q=A.screens[X];Q.uuid=t[Q.id]||""}A.info("Updated manual screens: "+Cgw(A.screens))};
KC.prototype.handleScreenChange_=function(){M9Q(this);this.publish("screenChange");this.onlineScreenService_.update()};
var hWQ=function(A){CGQ(A);A.localScreenService_=new am(A.JSC$20223_http_);A.localScreenService_.subscribe("screenChange",(0,_.F1)(A.handleScreenChange_,A));M9Q(A);A.disableAutomaticScreenCache_||(A.automaticScreens_=ATA(_.Bi("yt-remote-automatic-screen-cache")||[]));CGQ(A);A.info("Initializing automatic screens: "+Cgw(A.automaticScreens_));A.onlineScreenService_=new B2(A.JSC$20223_http_,(0,_.F1)(A.getScreens,A,!0));A.onlineScreenService_.subscribe("screenChange",(0,_.F1)(function(){this.publish("onlineScreenChange")},
A))},MQ=function(A,t){var f=A.get(t.id);
f?(f.uuid=t.uuid,t=f):((f=YX(A.automaticScreens_,t.uuid))?(f.id=t.id,f.token=t.token,t=f):A.automaticScreens_.push(t),A.disableAutomaticScreenCache_||hDc(A));CGQ(A);A.deviceToScreenId_[t.uuid]=t.id;_.ci("yt-remote-device-id-map",A.deviceToScreenId_,31536E3);return t},hDc=function(A){A=_.tJ(A.automaticScreens_,function(t){return t.idType!="shortLived"});
_.ci("yt-remote-automatic-screen-cache",_.Zg(A,kAd))},CGQ=function(A){A.deviceToScreenId_=_.Bi("yt-remote-device-id-map")||{}};
KC.prototype.dispose=KC.prototype.dispose;_.rS(gp,_.N6);var CH=function(A,t){A.screen_=t;A.publish("sessionScreen",A.screen_)},RDh=function(A,t){A.screen_&&(A.screen_.token=t,MQ(A.JSC$20227_screenService_,A.screen_));
A.publish("sessionScreen",A.screen_)};
gp.prototype.onSessionStopped=function(A){this.isDisposed()||(A&&(hv(this,""+A),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
gp.prototype.info=function(A){dp(this.JSC$20227_logName_,A)};
var hv=function(A,t){dp(A.JSC$20227_logName_,t)};
gp.prototype.JSC$20229_getCastSession=function(){return null};
gp.prototype.setDisplayStatus=function(A){var t=this.receiver_;A?(t.displayStatus=new chrome.cast.ReceiverDisplayStatus(A,[]),t.displayStatus.showStop=!0):t.displayStatus=null;chrome.cast.setReceiverDisplayStatus(t,(0,_.F1)(function(){this.info("Updated receiver status for "+t.friendlyName+": "+A)},this),(0,_.F1)(function(){hv(this,"Failed to update receiver status for: "+t.friendlyName)},this))};
gp.prototype.disposeInternal=function(){this.setDisplayStatus("");gp.superClass_.disposeInternal.call(this)};var RN=function(A,t,f){gp.call(this,A,t,"CastSession");var X=this;this.config_=f;this.JSC$20232_session_=null;this.JSC$20232_boundSessionUpdate_=(0,_.F1)(this.JSC$20234_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.F1)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Rj(function(){mn8(X,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20232_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20232_isInitLoungeToken_=!1;this.JSC$20232_lastLoungeTokenRefreshError_="unknown"};
_.R(RN,gp);_.J=RN.prototype;
_.J.setCastSession=function(A){if(this.JSC$20232_session_){if(this.JSC$20232_session_==A)return;hv(this,"Overriding cast session with new session object");b$l(this);this.JSC$20232_isInitLoungeToken_=!1;this.JSC$20232_lastLoungeTokenRefreshError_="unknown";this.JSC$20232_session_.removeUpdateListener(this.JSC$20232_boundSessionUpdate_);this.JSC$20232_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20232_session_=A;this.JSC$20232_session_.addUpdateListener(this.JSC$20232_boundSessionUpdate_);this.JSC$20232_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);WRy(this,"getMdxSessionStatus")};
_.J.launchWithParams=function(A){this.info("launchWithParams no-op for Cast: "+(0,_.j$)(A))};
_.J.stop=function(){if(this.JSC$20232_session_)this.JSC$20232_session_.stop((0,_.F1)(function(){this.onSessionStopped()},this),(0,_.F1)(function(){this.onSessionStopped(Error("il"))},this));
else this.onSessionStopped(Error("jl"))};
_.J.setDisplayStatus=function(){};
_.J.disposeInternal=function(){this.info("disposeInternal");b$l(this);this.JSC$20232_session_&&(this.JSC$20232_session_.removeUpdateListener(this.JSC$20232_boundSessionUpdate_),this.JSC$20232_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20232_session_=null;gp.prototype.disposeInternal.call(this)};
var vGj=function(A,t){_.b2(A.getLoungeTokenTimeoutKey_);A.getLoungeTokenTimeoutKey_=0;t==0?yTm(A):A.getLoungeTokenTimeoutKey_=_.Rj(function(){yTm(A)},t)},yTm=function(A){WRy(A,"getLoungeToken");
_.b2(A.onLoungeTokenTimeoutKey_);A.onLoungeTokenTimeoutKey_=_.Rj(function(){LRm(A,null)},3E4)},WRy=function(A,t){A.info("sendYoutubeMessage_: "+t+" "+(0,_.j$)(void 0));
var f={};f.type=t;A.JSC$20232_session_?A.JSC$20232_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",f,function(){},(0,_.F1)(function(){hv(this,"Failed to send message: "+t+".")},A)):hv(A,"Sending yt message without session: "+(0,_.j$)(f))};
RN.prototype.onYoutubeMessage_=function(A,t){if(!this.isDisposed())if(t)if(t=(0,_.Mi)(t),_.Hp(t))switch(A=""+t.type,t=t.data||{},this.info("onYoutubeMessage_: "+A+" "+(0,_.j$)(t)),A){case "mdxSessionStatus":mn8(this,t);break;case "loungeToken":LRm(this,t);break;default:hv(this,"Unknown youtube message: "+A)}else hv(this,"Unable to parse message.");else hv(this,"No data in message.")};
var pNw=function(A,t){if(t)A.info("onConnectedScreenId_: Received screenId: "+t),A.screen_&&A.screen_.id==t||A.getScreen_(t,function(f){CH(A,f)},function(){return A.onSessionStopped()},5);
else A.onSessionStopped(Error("kl"))},nG3=function(A,t,f){A.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(t));
var X=new jg(t);EGl(A,X,function(Q){Q?(A.JSC$20232_isInitLoungeToken_=!0,MQ(A.JSC$20227_screenService_,X),CH(A,X),A.JSC$20232_lastLoungeTokenRefreshError_="unknown",vGj(A,f)):(_.g9(Error("ll`"+JSON.stringify(t))),A.onSessionStopped())},5)},mn8=function(A,t){_.b2(A.sessionStatusTimeoutKey_);
A.sessionStatusTimeoutKey_=0;if(t)A.config_.enableCastLoungeToken&&t.loungeToken?t.deviceId?A.screen_&&A.screen_.uuid==t.deviceId||(t.loungeTokenRefreshIntervalMs?nG3(A,{name:A.receiver_.friendlyName,screenId:t.screenId,loungeToken:t.loungeToken,dialId:t.deviceId,screenIdType:"shortLived"},t.loungeTokenRefreshIntervalMs):(_.g9(Error("nl`"+JSON.stringify(t))),pNw(A,t.screenId))):(_.g9(Error("ml`"+JSON.stringify(t))),pNw(A,t.screenId)):pNw(A,t.screenId);else A.onSessionStopped(Error("kl"))},LRm=function(A,
t){_.b2(A.onLoungeTokenTimeoutKey_);
A.onLoungeTokenTimeoutKey_=0;var f=null;if(t)if(t.loungeToken){var X;((X=A.screen_)==null?void 0:X.token)==t.loungeToken&&(f="staleLoungeToken")}else f="missingLoungeToken";else f="noLoungeTokenResponse";f?(A.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(t)+", error: "+f)),A.JSC$20232_lastLoungeTokenRefreshError_=f,vGj(A,3E4)):(RDh(A,t.loungeToken),A.JSC$20232_isInitLoungeToken_=!1,A.JSC$20232_lastLoungeTokenRefreshError_="unknown",vGj(A,t.loungeTokenRefreshIntervalMs))};
RN.prototype.getScreen_=function(A,t,f,X){_.b2(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;O$d(this.JSC$20227_screenService_,this.receiver_.label,A,this.receiver_.friendlyName,(0,_.F1)(function(Q){Q?t(Q):X>=0?(hv(this,"Screen "+A+" appears to be offline. "+X+" retries left."),this.getScreenTimeoutKey_=_.Rj((0,_.F1)(this.getScreen_,this,A,t,f,X-1),300)):f(Error("ol"))},this),f)};
var EGl=function(A,t,f,X){_.b2(A.JSC$20232_checkScreenAvailabilityTimeoutKey_);A.JSC$20232_checkScreenAvailabilityTimeoutKey_=0;B4j(A.JSC$20227_screenService_,t,function(Q){Q||X<0?f(Q):A.JSC$20232_checkScreenAvailabilityTimeoutKey_=_.Rj(function(){EGl(A,t,f,X-1)},300)})};
RN.prototype.JSC$20229_getCastSession=function(){return this.JSC$20232_session_};
RN.prototype.JSC$20234_onSessionUpdate_=function(A){this.isDisposed()||A||(hv(this,"Cast session died."),this.onSessionStopped())};
var b$l=function(A){_.b2(A.getScreenTimeoutKey_);A.getScreenTimeoutKey_=0;_.b2(A.JSC$20232_checkScreenAvailabilityTimeoutKey_);A.JSC$20232_checkScreenAvailabilityTimeoutKey_=0;_.b2(A.sessionStatusTimeoutKey_);A.sessionStatusTimeoutKey_=0;_.b2(A.onLoungeTokenTimeoutKey_);A.onLoungeTokenTimeoutKey_=0;_.b2(A.getLoungeTokenTimeoutKey_);A.getLoungeTokenTimeoutKey_=0};var mX=function(A,t,f,X){gp.call(this,A,t,"DialSession");this.config_=X;this.JSC$20236_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20236_theme_=f;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20236_deferredLaunchDeadlineTimer_=NaN;this.JSC$20236_boundSessionUpdate_=(0,_.F1)(this.JSC$20238_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20236_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20236_isInitLoungeToken_=!1;this.JSC$20236_lastLoungeTokenRefreshError_="unknown"};
_.R(mX,gp);mX.prototype.setCastSession=function(A){this.JSC$20236_session_=A;this.JSC$20236_session_.addUpdateListener(this.JSC$20236_boundSessionUpdate_)};
mX.prototype.launchWithParams=function(A){this.connectData_=A;this.deferredLaunch_()};
mX.prototype.stop=function(){Dn3(this);if(this.JSC$20236_session_)this.JSC$20236_session_.stop((0,_.F1)(this.onSessionStopped,this,null),(0,_.F1)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
mX.prototype.disposeInternal=function(){Dn3(this);this.JSC$20236_session_&&this.JSC$20236_session_.removeUpdateListener(this.JSC$20236_boundSessionUpdate_);this.JSC$20236_session_=null;gp.prototype.disposeInternal.call(this)};
var FRd=function(A){var t;return!!(A.config_.enableDialLoungeToken&&((t=A.JSC$20236_session_)==null?0:t.getDialAppInfo))},xnh=function(A){A.cancelPolling_=A.JSC$20227_screenService_.JSC$20225_getScreenByPollingPairingCode(A.reversePairingCode_,A.receiver_.label,A.receiver_.friendlyName,FRd(A),function(t,f){A.cancelPolling_=function(){};
A.JSC$20236_isInitLoungeToken_=!0;CH(A,t);t.idType=="shortLived"&&f>0&&IG2(A,f)},function(t){A.cancelPolling_=function(){};
A.onSessionStopped(t)})};
mX.prototype.JSC$20238_onSessionUpdate_=function(A){this.isDisposed()||A||(hv(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var jQQ=function(A){var t={};t.pairingCode=A.reversePairingCode_;t.theme=A.JSC$20236_theme_;Juy()&&(t.env_useStageMdx=1);return _.vx(t)},Yzd=function(A){return new Promise(function(t){A.reversePairingCode_=daw();
if(A.connectData_){var f=new chrome.cast.DialLaunchResponse(!0,jQQ(A));t(f);xnh(A)}else A.deferredLaunch_=function(){_.b2(A.JSC$20236_deferredLaunchDeadlineTimer_);A.deferredLaunch_=function(){};
A.JSC$20236_deferredLaunchDeadlineTimer_=NaN;var X=new chrome.cast.DialLaunchResponse(!0,jQQ(A));t(X);xnh(A)},A.JSC$20236_deferredLaunchDeadlineTimer_=_.Rj(function(){A.deferredLaunch_()},100)})},Z$_=function(A,t,f){A.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(t));
var X=new jg(t);return(new Promise(function(Q){V9_(A,X,function(q){q?(A.JSC$20236_isInitLoungeToken_=!0,MQ(A.JSC$20227_screenService_,X),CH(A,X),IG2(A,f)):_.g9(Error("ql`"+JSON.stringify(t)));Q(q)},5)})).then(function(Q){return Q?new chrome.cast.DialLaunchResponse(!1):Yzd(A)})},oG2=function(A,t){var f=A.launchData_.receiver.label,X=A.receiver_.friendlyName;
return(new Promise(function(Q){O$d(A.JSC$20227_screenService_,f,t,X,function(q){q&&q.token&&CH(A,q);Q(q)},function(q){hv(A,"Failed to get DIAL screen: "+q);
Q(null)})})).then(function(Q){return Q&&Q.token?new chrome.cast.DialLaunchResponse(!1):Yzd(A)})},V9_=function(A,t,f,X){_.b2(A.JSC$20236_checkScreenAvailabilityTimeoutKey_);
A.JSC$20236_checkScreenAvailabilityTimeoutKey_=0;B4j(A.JSC$20227_screenService_,t,function(Q){Q||X<0?f(Q):A.JSC$20236_checkScreenAvailabilityTimeoutKey_=_.Rj(function(){V9_(A,t,f,X-1)},300)})},IG2=function(A,t){A.info("getDialAppInfoWithTimeout_ "+t);
FRd(A)&&(_.b2(A.getDialAppInfoTimeoutKey_),A.getDialAppInfoTimeoutKey_=0,t==0?dn3(A):A.getDialAppInfoTimeoutKey_=_.Rj(function(){dn3(A)},t))},dn3=function(A){FRd(A)&&A.JSC$20236_session_.getDialAppInfo(function(t){A.info("getDialAppInfo dialLaunchData: "+JSON.stringify(t));
t=t.extraData||{};var f=null;if(t.loungeToken){var X;((X=A.screen_)==null?void 0:X.token)==t.loungeToken&&(f="staleLoungeToken")}else f="missingLoungeToken";f?(A.JSC$20236_lastLoungeTokenRefreshError_=f,IG2(A,3E4)):(A.JSC$20236_isInitLoungeToken_=!1,A.JSC$20236_lastLoungeTokenRefreshError_="unknown",RDh(A,t.loungeToken),IG2(A,t.loungeTokenRefreshIntervalMs))},function(t){A.info("getDialAppInfo error: "+t);
A.JSC$20236_lastLoungeTokenRefreshError_="noLoungeTokenResponse";IG2(A,3E4)})},Dn3=function(A){_.b2(A.JSC$20236_checkScreenAvailabilityTimeoutKey_);
A.JSC$20236_checkScreenAvailabilityTimeoutKey_=0;_.b2(A.getDialAppInfoTimeoutKey_);A.getDialAppInfoTimeoutKey_=0;A.cancelPolling_();A.cancelPolling_=function(){};
_.b2(A.JSC$20236_deferredLaunchDeadlineTimer_)};var b_=function(A,t){gp.call(this,A,t,"ManualSession");this.JSC$20240_deferredLaunchDeadlineTimer_=_.Rj((0,_.F1)(this.launchWithParams,this,null),150)};
_.R(b_,gp);b_.prototype.stop=function(){this.onSessionStopped()};
b_.prototype.setCastSession=function(){};
b_.prototype.launchWithParams=function(){_.b2(this.JSC$20240_deferredLaunchDeadlineTimer_);this.JSC$20240_deferredLaunchDeadlineTimer_=NaN;var A=YX(this.JSC$20227_screenService_.getScreens(),this.receiver_.label);if(A)CH(this,A);else this.onSessionStopped(Error("rl"))};
b_.prototype.disposeInternal=function(){_.b2(this.JSC$20240_deferredLaunchDeadlineTimer_);this.JSC$20240_deferredLaunchDeadlineTimer_=NaN;gp.prototype.disposeInternal.call(this)};var rp=function(A,t){_.N6.call(this);this.config_=t;this.JSC$20243_screenService_=A;this.JSC$20243_appId_=t.appId||"233637DE";this.JSC$20243_theme_=t.theme||"cl";this.disableDial_=t.disableCastApi||!1;this.forceMirroring_=t.forceMirroring||!1;this.JSC$20243_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.F1)(this.onReceiverAction_,this)};
_.R(rp,_.N6);
rp.prototype.init=function(A,t){chrome.cast.timeout.requestSession=3E4;var f=new chrome.cast.SessionRequest(this.JSC$20243_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.M("desktop_enable_cast_connect")&&(f.androidReceiverCompatible=!0);this.disableDial_||(f.dialRequest=new chrome.cast.DialRequest("YouTube"));var X=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;A=A||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Q=(0,_.F1)(this.onReceiverUpdated_,
this);f=new chrome.cast.ApiConfig(f,(0,_.F1)(this.onSessionEstablished_,this),Q,X,A);f.customDialLaunchCallback=(0,_.F1)(this.onDialLaunchRequested_,this);chrome.cast.initialize(f,(0,_.F1)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Pgy(),this.JSC$20243_screenService_.subscribe("onlineScreenChange",(0,_.F1)(this.JSC$20245_onScreenChange_,this)),this.customReceivers_=Sz3(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.F1)(function(q){this.warn_("Failed to set initial custom receivers: "+(0,_.j$)(q))},this)),this.publish("yt-remote-cast2-availability-change",$nQ(this)),t(!0))},this),(0,_.F1)(function(q){this.warn_("Failed to initialize API: "+(0,_.j$)(q));
t(!1)},this))};
rp.prototype.setConnectedScreenStatus=function(A,t){W2("Setting connected screen ID: "+A+" -> "+t);if(this.JSC$20243_session_){var f=this.JSC$20243_session_.screen_;if(!A||f&&f.id!=A)W2("Unsetting old screen status: "+this.JSC$20243_session_.receiver_.friendlyName),y8(this,null)}if(A&&t){if(!this.JSC$20243_session_){A=YX(this.JSC$20243_screenService_.getScreens(),A);if(!A){W2("setConnectedScreenStatus: Unknown screen.");return}if(A.idType=="shortLived"){W2("setConnectedScreenStatus: Screen with id type to be short lived.");
return}f=H$8(this,A);f||(W2("setConnectedScreenStatus: Connected receiver not custom..."),f=new chrome.cast.Receiver(A.uuid?A.uuid:A.id,A.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(f),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.F1)(function(X){this.warn_("Failed to set initial custom receivers: "+(0,_.j$)(X))},this)));
W2("setConnectedScreenStatus: new active receiver: "+f.friendlyName);y8(this,new b_(this.JSC$20243_screenService_,f),!0)}this.JSC$20243_session_.setDisplayStatus(t)}else W2("setConnectedScreenStatus: no screen.")};
var H$8=function(A,t){return t?_.ng(A.customReceivers_,function(f){return H8d(t,f.label)},A):null};
rp.prototype.setLaunchParams=function(A){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20243_session_?this.JSC$20243_session_.launchWithParams(A):this.warn_("Setting connection data without a session")};
rp.prototype.JSC$20245_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20243_session_?(this.JSC$20243_session_.stop(),y8(this,null)):W2("Stopping non-existing session")};
rp.prototype.requestSession=function(){chrome.cast.requestSession((0,_.F1)(this.onSessionEstablished_,this),(0,_.F1)(this.onSessionRequestFailed_,this))};
rp.prototype.disposeInternal=function(){this.JSC$20243_screenService_.unsubscribe("onlineScreenChange",(0,_.F1)(this.JSC$20245_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.o0(_.Ae("yt.mdx.remote.debug.handlers_")||[],NS3);_.ee(this.JSC$20243_session_);_.N6.prototype.disposeInternal.call(this)};
var W2=function(A){dp("Controller",A)};
rp.prototype.warn_=function(A){dp("Controller",A)};
var NS3=function(A){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(A)},$nQ=function(A){return A.hasCastReceiver_||!!A.customReceivers_.length||!!A.JSC$20243_session_},y8=function(A,t,f){t!=A.JSC$20243_session_&&(_.ee(A.JSC$20243_session_),(A.JSC$20243_session_=t)?(f?A.publish("yt-remote-cast2-receiver-resumed",t.receiver_):A.publish("yt-remote-cast2-receiver-selected",t.receiver_),t.subscribe("sessionScreen",(0,_.F1)(A.onSessionScreen_,A,t)),t.subscribe("sessionFailed",
function(){return aGc(A,t)}),t.screen_?A.publish("yt-remote-cast2-session-change",t.screen_):f&&A.JSC$20243_session_.launchWithParams(null)):A.publish("yt-remote-cast2-session-change",null))},aGc=function(A,t){A.JSC$20243_session_==t&&A.publish("yt-remote-cast2-session-failed")};
_.J=rp.prototype;_.J.onSessionScreen_=function(A,t){this.JSC$20243_session_==A&&(t||y8(this,null),this.publish("yt-remote-cast2-session-change",t))};
_.J.onReceiverAction_=function(A,t){if(!this.isDisposed())if(A)switch(A.friendlyName=chrome.cast.unescape(A.friendlyName),W2("onReceiverAction_ "+A.label+" / "+A.friendlyName+"-- "+t),t){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20243_session_)if(this.JSC$20243_session_.receiver_.label!=A.label)W2("onReceiverAction_: Stopping active receiver: "+this.JSC$20243_session_.receiver_.friendlyName),this.JSC$20243_session_.stop();else{W2("onReceiverAction_: Casting to active receiver.");this.JSC$20243_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20243_session_.screen_);break}switch(A.receiverType){case chrome.cast.ReceiverType.CUSTOM:y8(this,new b_(this.JSC$20243_screenService_,A));break;case chrome.cast.ReceiverType.DIAL:y8(this,new mX(this.JSC$20243_screenService_,A,this.JSC$20243_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:y8(this,new RN(this.JSC$20243_screenService_,A,this.config_));break;default:this.warn_("Unknown receiver type: "+A.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20243_session_&&
this.JSC$20243_session_.receiver_.label==A.label?this.JSC$20243_session_.stop():this.warn_("Stopping receiver w/o session: "+A.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.J.onDialLaunchRequested_=function(A){if(this.isDisposed())return Promise.reject(Error("sl"));var t=A.receiver;t.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+t.friendlyName),t.receiverType=chrome.cast.ReceiverType.DIAL);var f=this.JSC$20243_session_?this.JSC$20243_session_.receiver_:null;if(!f||f.label!=t.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+t.friendlyName),Promise.reject(Error("tl"));if(f&&f.label==t.label&&f.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20243_session_.screen_)return W2("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20243_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+f.receiverType+'" to "dial" for '+t.friendlyName);y8(this,new mX(this.JSC$20243_screenService_,t,this.JSC$20243_theme_,this.config_))}t=this.JSC$20243_session_;t.launchData_=A;t.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(A=t.launchData_.extraData||{},f=A.screenId||null,FRd(t)&&A.loungeToken?A.loungeTokenRefreshIntervalMs?A=Z$_(t,{name:t.receiver_.friendlyName,screenId:A.screenId,loungeToken:A.loungeToken,dialId:t.launchData_.receiver.label,screenIdType:"shortLived"},A.loungeTokenRefreshIntervalMs):(_.g9(Error("pl`"+JSON.stringify(A))),A=oG2(t,f)):A=oG2(t,f)):A=Yzd(t);return A};
_.J.onSessionEstablished_=function(A){var t=this;if(!this.isDisposed()&&!this.forceMirroring_){W2("New cast session ID: "+A.sessionId);var f=A.receiver;if(f.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20243_session_)if(f.receiverType==chrome.cast.ReceiverType.CAST)W2("Got resumed cast session before resumed mdx connection."),f.friendlyName=chrome.cast.unescape(f.friendlyName),y8(this,new RN(this.JSC$20243_screenService_,f,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var X=this.JSC$20243_session_.receiver_,Q=YX(this.JSC$20243_screenService_.getScreens(),X.label);Q&&H8d(Q,f.label)&&X.receiverType!=chrome.cast.ReceiverType.CAST&&f.receiverType==chrome.cast.ReceiverType.CAST&&(W2("onSessionEstablished_: manual to cast session change "+f.friendlyName),_.ee(this.JSC$20243_session_),this.JSC$20243_session_=new RN(this.JSC$20243_screenService_,f,this.config_),this.JSC$20243_session_.subscribe("sessionScreen",(0,_.F1)(this.onSessionScreen_,this,this.JSC$20243_session_)),
this.JSC$20243_session_.subscribe("sessionFailed",function(){return aGc(t,t.JSC$20243_session_)}),this.JSC$20243_session_.launchWithParams(null));
this.JSC$20243_session_.setCastSession(A)}}};
_.J.JSC$20245_getCastSession=function(){return this.JSC$20243_session_?this.JSC$20243_session_.JSC$20229_getCastSession():null};
_.J.onSessionRequestFailed_=function(A){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.j$)(A)),A.code!=chrome.cast.ErrorCode.CANCEL&&y8(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.J.onReceiverUpdated_=function(A){W2("Receiver availability updated: "+A);if(!this.isDisposed()){var t=$nQ(this);this.hasCastReceiver_=A==chrome.cast.ReceiverAvailability.AVAILABLE;$nQ(this)!=t&&this.publish("yt-remote-cast2-availability-change",$nQ(this))}};
var Sz3=function(A){var t=A.JSC$20243_screenService_.JSC$20225_getOnlineScreens(),f=A.JSC$20243_session_&&A.JSC$20243_session_.receiver_;A=_.Zg(t,function(X){f&&H8d(X,f.label)&&(f=null);var Q=X.uuid?X.uuid:X.id,q=H$8(this,X);q?(q.label=Q,q.friendlyName=X.name):(q=new chrome.cast.Receiver(Q,X.name),q.receiverType=chrome.cast.ReceiverType.CUSTOM);return q},A);
f&&(f.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(f=new chrome.cast.Receiver(f.label,f.friendlyName),f.receiverType=chrome.cast.ReceiverType.CUSTOM),A.push(f));return A};
rp.prototype.JSC$20245_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Sz3(this),W2("Updating custom receivers: "+(0,_.j$)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.F1)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",$nQ(this)))};
rp.prototype.setLaunchParams=rp.prototype.setLaunchParams;rp.prototype.setConnectedScreenStatus=rp.prototype.setConnectedScreenStatus;rp.prototype.stopSession=rp.prototype.JSC$20245_stopSession;rp.prototype.getCastSession=rp.prototype.JSC$20245_getCastSession;rp.prototype.requestSession=rp.prototype.requestSession;rp.prototype.init=rp.prototype.init;rp.prototype.dispose=rp.prototype.dispose;var KRl=_.dS(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),Zsd=[],L_d=_.OP(KRl);var gGd=function(A){A.audioTrackId=null;A.trackData=null;A.playerState=-1;A.hasPrevious=!1;A.hasNext=!1;A.playerTime_=0;A.playerTimeAt_=_.k5();A.seekableStart_=0;A.seekableEnd_=0;A.duration_=0;A.loadedTime=0;A.liveIngestionTime_=NaN;A.isLive_=!1};
_.J=AC.prototype;
_.J.reset=function(A){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;A&&(this.index=A.index,this.listId=A.listId,this.videoId=A.videoId,this.playerState=A.playerState,this.volume=A.volume,this.muted=A.muted,this.audioTrackId=A.audioTrackId,this.trackData=A.trackData,this.hasPrevious=A.hasPrevious,this.hasNext=A.hasNext,this.playerTime_=A.playerTime,this.playerTimeAt_=A.playerTimeAt,this.seekableStart_=A.seekableStart,this.seekableEnd_=A.seekableEnd,this.duration_=A.duration,this.loadedTime=
A.loadedTime,this.liveIngestionTime_=A.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.J.stopPlayer=function(){this.index=-1;this.videoId="";gGd(this)};
_.J.isPlaying=function(){return this.playerState==1};
_.J.isBuffering=function(){return this.playerState==3};
_.J.isAdPlaying=function(){return this.playerState==1081};
var v2=function(A,t){A.playerTime_=t;A.playerTimeAt_=_.k5()},wNm=function(A){switch(A.playerState){case 1:case 1081:return(_.k5()-A.playerTimeAt_)/1E3+A.playerTime_;
case -1E3:return 0}return A.playerTime_};
AC.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.k5()-this.playerTimeAt_)/1E3:0):this.duration_};
var sQ3=function(A,t,f){var X=A.videoId;A.videoId=t;A.index=f;t!=X&&gGd(A)},kyj=function(A){var t={};
t.index=A.index;t.listId=A.listId;t.videoId=A.videoId;t.playerState=A.playerState;t.volume=A.volume;t.muted=A.muted;t.audioTrackId=A.audioTrackId;t.trackData=_.VG.unsafeClone(A.trackData);t.hasPrevious=A.hasPrevious;t.hasNext=A.hasNext;t.playerTime=A.playerTime_;t.playerTimeAt=A.playerTimeAt_;t.seekableStart=A.seekableStart_;t.seekableEnd=A.seekableEnd_;t.duration=A.duration_;t.loadedTime=A.loadedTime;t.liveIngestionTime=A.liveIngestionTime_;return t};
AC.prototype.clone=function(){return new AC(kyj(this))};var Q4=function(A,t){_.N6.call(this);var f=this;this.state_=0;this.connection_=A;this.contextSubscriptions_=[];this.actionQueue_=new EYc;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.F1)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.F1)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.F1)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.F1)(this.onCloudviewAvailabilityChange_,this);var X=0;A?(X=A.getProxyState(),
X!=3&&(A.subscribe("proxyStateChange",this.setState_,this),rTh(this))):X=3;X!=0&&(t?this.setState_(X):_.Rj(function(){f.setState_(X)},0));
(A=$B_())&&Anh(this,A);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.R(Q4,_.N6);Q4.prototype.getState=function(){return this.state_};
Q4.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Q4.prototype.reconnect=function(){this.connection_.reconnect()};
var LH=function(A){return new AC(A.connection_.getPlayerContextData())};
_.J=Q4.prototype;_.J.play=function(){pH(this)?(this.castMedia_?this.castMedia_.play(null,_.bz,tBd(this,"play")):E6(this,"play"),fZQ(this,1,wNm(LH(this))),this.publish("remotePlayerChange")):nH(this,this.play)};
_.J.pause=function(){pH(this)?(this.castMedia_?this.castMedia_.pause(null,_.bz,tBd(this,"pause")):E6(this,"pause"),fZQ(this,2,wNm(LH(this))),this.publish("remotePlayerChange")):nH(this,this.pause)};
_.J.seekTo=function(A){if(pH(this)){if(this.castMedia_){var t=LH(this),f=new chrome.cast.media.SeekRequest;f.currentTime=A;t.isPlaying()||t.isBuffering()?f.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:f.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(f,_.bz,tBd(this,"seekTo",{newTime:A}))}else E6(this,"seekTo",{newTime:A});fZQ(this,3,A);this.publish("remotePlayerChange")}else nH(this,_.l0(this.seekTo,A))};
_.J.stop=function(){if(pH(this)){this.castMedia_?this.castMedia_.stop(null,_.bz,tBd(this,"stopVideo")):E6(this,"stopVideo");var A=LH(this);A.stopPlayer();Dq(this,A);this.publish("remotePlayerChange")}else nH(this,this.stop)};
_.J.setVolume=function(A,t){if(pH(this)){var f=LH(this);if(this.castSession_){if(f.volume!=A){var X=Math.round(A)/100;this.castSession_.setReceiverVolumeLevel(X,(0,_.F1)(function(){Sg("set receiver volume: "+X)},this),(0,_.F1)(function(){this.warn_("failed to set receiver volume.")},this))}f.muted!=t&&this.castSession_.setReceiverMuted(t,(0,_.F1)(function(){Sg("set receiver muted: "+t)},this),(0,_.F1)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Q={volume:A,
muted:t};f.volume!=-1&&(Q.delta=A-f.volume);E6(this,"setVolume",Q)}f.muted=t;f.volume=A;Dq(this,f)}else nH(this,_.l0(this.setVolume,A,t))};
_.J.setAudioTrack=function(A,t){pH(this)?(t=t.getLanguageInfo().getId(),E6(this,"setAudioTrack",{videoId:A,audioTrackId:t}),A=LH(this),A.audioTrackId=t,Dq(this,A)):nH(this,_.l0(this.setAudioTrack,A,t))};
_.J.addVideo=function(A){pH(this)?E6(this,"addVideo",{videoId:A}):nH(this,_.l0(this.addVideo,A))};
_.J.addPlaylist=function(A){pH(this)?E6(this,"addVideos",{listId:A}):nH(this,_.l0(this.addPlaylist,A))};
_.J.addVideos=function(A){A.length==0?this.warn_("Ignore add videos request due to empty list"):pH(this)?E6(this,"addVideos",{videoIds:A.join(",")}):nH(this,_.l0(this.addVideos,A))};
_.J.JSC$20255_removeVideo=function(A){pH(this)?E6(this,"removeVideo",{videoId:A}):nH(this,_.l0(this.JSC$20255_removeVideo,A))};
_.J.JSC$20255_insertVideo=function(A){pH(this)?E6(this,"insertVideo",{videoId:A}):nH(this,_.l0(this.JSC$20255_insertVideo,A))};
_.J.playVideo=function(A,t,f,X,Q,q,e){X=X===void 0?null:X;Q=Q===void 0?null:Q;q=q===void 0?null:q;e=e===void 0?null:e;var G=LH(this),N={videoId:A};f!==void 0&&(N.currentIndex=f);sQ3(G,A,f||0);t!==void 0&&(v2(G,t),N.currentTime=t);X&&(N.listId=X);Q&&(N.playerParams=Q);q&&(N.clickTrackingParams=q);e&&(N.locationInfo=(0,_.j$)(e));E6(this,"setPlaylist",N);X||Dq(this,G)};
_.J.nextVideo=function(A,t){if(pH(this)){if(A&&t){var f=LH(this);sQ3(f,A,t);Dq(this,f)}E6(this,"next")}else nH(this,_.l0(this.nextVideo,A,t))};
_.J.clearPlaylist=function(){if(pH(this)){E6(this,"clearPlaylist");var A=LH(this);A.reset();Dq(this,A);this.publish("remotePlayerChange")}else nH(this,this.clearPlaylist)};
_.J.dispose=function(){if(this.state_!=3){var A=this.state_;this.state_=3;this.publish("proxyStateChange",A,this.state_)}_.N6.prototype.dispose.call(this)};
_.J.disposeInternal=function(){Xyj(this);this.connection_=null;this.actionQueue_.clear();Anh(this,null);_.N6.prototype.disposeInternal.call(this)};
var rTh=function(A){_.X_("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(t){this.contextSubscriptions_.push(this.connection_.subscribe(t,_.l0(this.onProxyEvent_,t),this))},A)},Xyj=function(A){_.X_(A.contextSubscriptions_,function(t){this.connection_.unsubscribeByKey(t)},A);
A.contextSubscriptions_.length=0},pH=function(A){return A.getState()==1},nH=function(A,t){A.actionQueue_.getCount()<50&&A.actionQueue_.enqueue(t)},fZQ=function(A,t,f){var X=LH(A);
v2(X,f);X.playerState!=-1E3&&(X.playerState=t);Dq(A,X)},E6=function(A,t,f){A.connection_.sendMessage(t,f)},Dq=function(A,t){Xyj(A);
A.connection_.setPlayerContextData(kyj(t));rTh(A)};
Q4.prototype.setState_=function(A){if((A!=this.state_||A==2)&&this.state_!=3&&A!=0){var t=this.state_;this.state_=A;this.publish("proxyStateChange",t,A);if(A==1)for(;!this.actionQueue_.isEmpty();)A=this.actionQueue_,p7m(A),A.front_.pop().apply(this);else A==3&&this.dispose()}};
Q4.prototype.onProxyEvent_=function(A,t){this.publish(A,t)};
var Anh=function(A,t){A.castSession_&&(A.castSession_.removeUpdateListener(A.boundCastStatusListener_),A.castSession_.removeMediaListener(A.boundCastMediaListener_),A.onCastMediaChange_(null));A.castSession_=t;if(A.castSession_&&(Sg("Setting cast session: "+A.castSession_.sessionId),A.castSession_.addUpdateListener(A.boundCastStatusListener_),A.castSession_.addMediaListener(A.boundCastMediaListener_),A.castSession_.media.length))A.onCastMediaChange_(A.castSession_.media[0])};
Q4.prototype.onCastStatusUpdate_=function(A){if(!A)this.onCastMediaChange_(null),Anh(this,null);else if(this.castSession_.receiver.volume){A=this.castSession_.receiver.volume;var t=LH(this),f=Math.round(100*A.level||0);if(t.volume!=f||t.muted!=A.muted)Sg("Cast volume update: "+A.level+(A.muted?" muted":"")),t.volume=f,t.muted=!!A.muted,Dq(this,t)}};
Q4.prototype.onCastMediaChange_=function(A){Sg("Cast media: "+!!A);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=A)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),QZ8(this),this.publish("remotePlayerChange")};
var QZ8=function(A){var t=A.castMedia_.media,f=A.castMedia_.customData;if(t&&f){var X=LH(A);t.contentId!=X.videoId&&Sg("Cast changing video to: "+t.contentId);X.videoId=t.contentId;X.playerState=f.playerState;v2(X,A.castMedia_.getEstimatedTime());Dq(A,X)}else Sg("No cast media video. Ignoring state update.")};
Q4.prototype.onCastMediaUpdate_=function(A){if(A)QZ8(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Q4.prototype.onCloudviewAvailabilityChange_=function(){var A=$B_();A&&Anh(this,A)};
Q4.prototype.warn_=function(A){dp("CP",A)};
var tBd=function(A,t,f){return(0,_.F1)(function(X){this.warn_("Failed to "+t+" with cast v2 channel. Error code: "+X.code);X.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+t+" using MDx browser channel."),E6(this,t,f))},A)};var qS=function(A,t,f,X){X=X===void 0?!1:X;_.N6.call(this);var Q=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$20260_http_=A;this.enableConnectWithInitialState_=X;this.listeners_.push(_.zO(window,"beforeunload",function(){Q.JSC$20263_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new AC;this.currentScreenId_=t.id;this.currentScreenIdType_=t.idType;this.channelService=lS_(this.JSC$20260_http_,f,this.JSC$20263_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){qkd(Q)});
this.channelService.listen("channelClosed",function(){Fn("Channel closed");isNaN(Q.connectTimerId_)?QGA(!0):QGA();Q.dispose()});
this.channelService.listen("channelError",function(q){QGA();isNaN(Q.getReconnectTimeout_())?(q==1&&Q.currentScreenIdType_=="shortLived"&&Q.publish("browserChannelAuthError",q),Fn("Channel error: "+q+" without reconnection"),Q.dispose()):(Q.reconnecting_=!0,Fn("Channel error: "+q+" with reconnection in "+Q.getReconnectTimeout_()+" ms"),Jn3(Q,2))});
this.channelService.listen("channelMessage",function(q){Us3(Q,q)});
this.channelService.setLoungeToken(t.token);this.subscribe("remoteQueueChange",function(){var q=Q.playerContext_.videoId;gYA()&&_.ci("yt-remote-session-video-id",q)})};
_.R(qS,_.N6);
qS.prototype.connect=function(A,t){if(t){var f=t.listId,X=t.videoId,Q=t.videoIds,q=t.playerParams,e=t.clickTrackingParams,G=t.index,N={videoId:X},z=t.currentTime,T=t.locationInfo;t=t.loopMode;z!==void 0&&(N.currentTime=z<=5?0:z);q&&(N.playerParams=q);T&&(N.locationInfo=T);e&&(N.clickTrackingParams=e);f&&(N.listId=f);Q&&Q.length>0&&(N.videoIds=Q.join(","));G!==void 0&&(N.currentIndex=G);this.enableConnectWithInitialState_&&(N.loopMode=t||"LOOP_MODE_OFF");f&&(this.playerContext_.listId=f);this.playerContext_.videoId=
X;this.playerContext_.index=G||0;this.playerContext_.state=3;v2(this.playerContext_,z);this.autoplayMode_="UNSUPPORTED";f=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Fn("Connecting with "+f+" and params: "+(0,_.j$)(N));this.channelService.connect({method:f,params:(0,_.j$)(N)},A,Au3())}else Fn("Connecting without params"),this.channelService.connect({},A,Au3());eel(this)};
qS.prototype.setLoungeToken=function(A){this.channelService.setLoungeToken(A)};
qS.prototype.dispose=function(){this.isDisposed()||(_.zm("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Jn3(this,3));_.N6.prototype.dispose.call(this)};
qS.prototype.disposeInternal=function(){G92(this);lZ_(this);NZ_(this);_.b2(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.b2(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.zpb(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.N6.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var us3=function(A){return _.ng(A.connectedDevices_,function(t){return t.type=="LOUNGE_SCREEN"})},Fn=function(A){dp("conn",A)},Jn3=function(A,t){A.publish("proxyStateChange",t)},eel=function(A){A.connectTimerId_=_.Rj(function(){Fn("Connecting timeout");
A.JSC$20263_disconnect_(1)},2E4)},G92=function(A){_.b2(A.connectTimerId_);
A.connectTimerId_=NaN},NZ_=function(A){_.b2(A.reconnectedCheckScreenTimeout_);
A.reconnectedCheckScreenTimeout_=NaN},PNj=function(A){lZ_(A);
A.playingSyncTimerId_=_.Rj(function(){zey(A,"getNowPlaying")},2E4)},lZ_=function(A){_.b2(A.playingSyncTimerId_);
A.playingSyncTimerId_=NaN},qkd=function(A){Fn("Channel opened");
A.reconnecting_&&(A.reconnecting_=!1,NZ_(A),A.reconnectedCheckScreenTimeout_=_.Rj(function(){Fn("Timing out waiting for a screen.");A.JSC$20263_disconnect_(1)},15E3))},i7l=function(A,t){var f=null;
if(t){var X=us3(A);X&&(f={clientName:X.clientName,deviceMake:X.brand,deviceModel:X.model,osVersion:X.osVersion})}_.zm("yt.mdx.remote.remoteClient_",f);t&&(G92(A),NZ_(A));f=A.channelService.isChannelOpened()&&isNaN(A.connectTimerId_);t==f?t&&(Jn3(A,1),zey(A,"getSubtitlesTrack")):t?(A.getOtherConnectedRemoteId_()&&A.playerContext_.reset(),Jn3(A,1),zey(A,"getNowPlaying"),TZh(A)):A.JSC$20263_disconnect_(1)},O7c=function(A,t){var f=t.params.videoId;
delete t.params.videoId;f==A.playerContext_.videoId&&(_.VG.isEmpty(t.params)?A.playerContext_.trackData=null:A.playerContext_.trackData=t.params,A.publish("remotePlayerChange"))},cnm=function(A,t,f){var X=t.params.videoId||t.params.video_id,Q=parseInt(t.params.currentIndex,10);
A.playerContext_.listId=t.params.listId||A.playerContext_.listId;sQ3(A.playerContext_,X,Q);A.publish("remoteQueueChange",f)},BZ8=function(A,t){t.params=t.params||{};
cnm(A,t,"NOW_PLAYING_MAY_CHANGE");A.onStateChange_(t);A.publish("autoplayDismissed")};
qS.prototype.onStateChange_=function(A){var t=parseInt(A.params.currentTime||A.params.current_time,10);v2(this.playerContext_,isNaN(t)?0:t);t=parseInt(A.params.state,10);t=isNaN(t)?-1:t;t==-1&&this.playerContext_.playerState==-1E3&&(t=-1E3);this.playerContext_.playerState=t;t=Number(A.params.loadedTime);this.playerContext_.loadedTime=isNaN(t)?0:t;t=Number(A.params.duration);this.playerContext_.duration_=isNaN(t)?0:t;t=this.playerContext_;var f=Number(A.params.liveIngestionTime);t.liveIngestionTime_=
f;t.isLive_=isNaN(f)?!1:!0;t=this.playerContext_;f=Number(A.params.seekableStartTime);A=Number(A.params.seekableEndTime);t.seekableStart_=isNaN(f)?0:f;t.seekableEnd_=isNaN(A)?0:A;this.playerContext_.playerState==1?PNj(this):lZ_(this);this.publish("remotePlayerChange")};
qS.prototype.onAdStateChange_=function(A){if(this.playerContext_.playerState!=-1E3){var t=1085;switch(parseInt(A.params.adState,10)){case 1:t=1081;break;case 2:t=1084;break;case 0:t=1083}this.playerContext_.playerState=t;A=parseInt(A.params.currentTime,10);v2(this.playerContext_,isNaN(A)?0:A);this.publish("remotePlayerChange")}};
var MB2=function(A,t){var f=t.params.muted=="true";A.playerContext_.volume=parseInt(t.params.volume,10);A.playerContext_.muted=f;A.publish("remotePlayerChange")},CNy=function(A,t){A.autoplayVideoId_=t.params.videoId;
A.publish("nowAutoplaying",parseInt(t.params.timeout,10))},hel=function(A,t){A.autoplayVideoId_=t.params.videoId||null;
A.publish("autoplayUpNext",A.autoplayVideoId_)},Re8=function(A,t){A.autoplayMode_=t.params.autoplayMode;
A.publish("autoplayModeChange",A.autoplayMode_);A.autoplayMode_=="DISABLED"&&A.publish("autoplayDismissed")},msA=function(A,t){var f=t.params.hasNext=="true";
A.playerContext_.hasPrevious=t.params.hasPrevious=="true";A.playerContext_.hasNext=f;A.publish("previousNextChange")};
qS.prototype.isCapabilitySupportedOnConnectedDevices_=function(A){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var t=_.U(this.connectedDevices_),f=t.next();!f.done;f=t.next())if(!f.value.capabilities.has(A))return!1;return!0};
var Us3=function(A,t){t=t.message;t.params?Fn("Received: action="+t.action+", params="+(0,_.j$)(t.params)):Fn("Received: action="+t.action+" {}");switch(t.action){case "loungeStatus":t=(0,_.Mi)(t.params.devices);A.connectedDevices_=_.Zg(t,function(X){return new c2(X)});
t=!!_.ng(A.connectedDevices_,function(X){return X.type=="LOUNGE_SCREEN"});
i7l(A,t);t=A.isCapabilitySupportedOnConnectedDevices_("mlm");A.publish("multiStateLoopEnabled",t);break;case "loungeScreenDisconnected":Uxh(A.connectedDevices_,function(X){return X.type=="LOUNGE_SCREEN"});
i7l(A,!1);break;case "remoteConnected":var f=new c2((0,_.Mi)(t.params.device));_.ng(A.connectedDevices_,function(X){return X.equals(f)})||_.pp5(A.connectedDevices_,f);
break;case "remoteDisconnected":f=new c2((0,_.Mi)(t.params.device));Uxh(A.connectedDevices_,function(X){return X.equals(f)});
break;case "gracefulDisconnect":break;case "playlistModified":cnm(A,t,"QUEUE_MODIFIED");break;case "nowPlaying":BZ8(A,t);break;case "onStateChange":A.onStateChange_(t);break;case "onAdStateChange":A.onAdStateChange_(t);break;case "onVolumeChanged":MB2(A,t);break;case "onSubtitlesTrackChanged":O7c(A,t);break;case "nowAutoplaying":CNy(A,t);break;case "autoplayDismissed":A.publish("autoplayDismissed");break;case "autoplayUpNext":hel(A,t);break;case "onAutoplayModeChanged":Re8(A,t);break;case "onHasPreviousNextChanged":msA(A,
t);break;case "requestAssistedSignIn":A.publish("assistedSignInRequested",t.params.authCode);break;case "onLoopModeChanged":A.publish("loopModeChange",t.params.loopMode);break;default:Fn("Unrecognized action: "+t.action)}};
_.J=qS.prototype;_.J.getProxyState_=function(){var A=3;this.isDisposed()||(A=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(A=1):A=2);return A};
_.J.JSC$20263_disconnect_=function(A){Fn("Disconnecting with "+A);_.zm("yt.mdx.remote.remoteClient_",null);G92(this);this.publish("beforeDisconnect",A);A==1&&QGA();this.channelService.disconnect(A);this.dispose()};
_.J.getPlayerContextData_=function(){var A=this.playerContext_;this.clientVideoId_&&(A=this.playerContext_.clone(),sQ3(A,this.clientVideoId_,A.index));return kyj(A)};
_.J.setPlayerContextData_=function(A){var t=this,f=new AC(A);f.videoId&&f.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=f.videoId,_.b2(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Rj(function(){if(t.clientVideoId_){var Q=t.clientVideoId_;t.clientVideoId_=null;t.playerContext_.videoId!=Q&&zey(t,"getNowPlaying")}},5E3));
var X=[];this.playerContext_.listId==f.listId&&this.playerContext_.videoId==f.videoId&&this.playerContext_.index==f.index||X.push("remoteQueueChange");this.playerContext_.playerState==f.playerState&&this.playerContext_.volume==f.volume&&this.playerContext_.muted==f.muted&&wNm(this.playerContext_)==wNm(f)&&(0,_.j$)(this.playerContext_.trackData)==(0,_.j$)(f.trackData)||X.push("remotePlayerChange");this.playerContext_.reset(A);_.X_(X,function(Q){this.publish(Q)},this)};
_.J.getOtherConnectedRemoteId_=function(){var A=this.channelService.getDeviceId(),t=_.ng(this.connectedDevices_,function(f){return f.type=="REMOTE_CONTROL"&&f.id!=A});
return t?t.id:""};
_.J.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.J.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.J.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.J.JSC$20263_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var TZh=function(A){_.b2(A.idleDisconnectTimerId_);A.idleDisconnectTimerId_=_.Rj(function(){A.JSC$20263_disconnect_(1)},864E5)},zey=function(A,t,f){f?Fn("Sending: action="+t+", params="+(0,_.j$)(f)):Fn("Sending: action="+t);
A.channelService.sendMessage(t,f)};
qS.prototype.sendMessageWithUserAction_=function(A,t){zey(this,A,t);TZh(this)};
qS.prototype.JSC$20263_getXsrfToken_=function(){var A=_.E0.get("SAPISID","")||_.E0.get("__Secure-1PAPISID",void 0)||"",t=_.E0.get("__Secure-3PAPISID","")||"";if(!A&&!t)return"";A=_.E2(_.nA(A),2);t=_.E2(_.nA(t),2);return _.E2(_.nA(","+A+","+t),2)};
qS.prototype.subscribe=qS.prototype.subscribe;qS.prototype.unsubscribeByKey=qS.prototype.unsubscribeByKey;qS.prototype.getProxyState=qS.prototype.getProxyState_;qS.prototype.disconnect=qS.prototype.JSC$20263_disconnect_;qS.prototype.getPlayerContextData=qS.prototype.getPlayerContextData_;qS.prototype.setPlayerContextData=qS.prototype.setPlayerContextData_;qS.prototype.getOtherConnectedRemoteId=qS.prototype.getOtherConnectedRemoteId_;qS.prototype.getReconnectTimeout=qS.prototype.getReconnectTimeout_;
qS.prototype.getAutoplayMode=qS.prototype.getAutoplayMode_;qS.prototype.getAutoplayVideoId=qS.prototype.getAutoplayVideoId_;qS.prototype.reconnect=qS.prototype.JSC$20263_reconnect_;qS.prototype.sendMessage=qS.prototype.sendMessageWithUserAction_;qS.prototype.getXsrfToken=qS.prototype.JSC$20263_getXsrfToken_;qS.prototype.isCapabilitySupportedOnConnectedDevices=qS.prototype.isCapabilitySupportedOnConnectedDevices_;var TV8=function(A){$X.call(this,"ScreenServiceProxy");this.instance_=A;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.F1)(this.JSC$20266_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.F1)(this.onOnlineScreenChange_,this)))};
_.R(TV8,$X);_.J=TV8.prototype;_.J.getScreens=function(A){return this.instance_.$_gs(A)};
_.J.contains=function(A){return!!this.instance_.$_c(A)};
_.J.get=function(A){return this.instance_.$_g(A)};
_.J.start=function(){this.instance_.$_st()};
_.J.add=function(A,t,f){this.instance_.$_a(A,t,f)};
_.J.remove=function(A,t,f){this.instance_.$_r(A,t,f)};
_.J.updateName=function(A,t,f,X){this.instance_.$_un(A,t,f,X)};
_.J.disposeInternal=function(){for(var A=this.subscriptionKeys_.length,t=0;t<A;++t)this.instance_.$_ubk(this.subscriptionKeys_[t]);this.subscriptionKeys_.length=0;this.instance_=null;$X.prototype.disposeInternal.call(this)};
_.J.JSC$20266_onScreenChange_=function(){this.publish("screenChange")};
_.J.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
KC.prototype.$_st=KC.prototype.start;KC.prototype.$_gspc=KC.prototype.JSC$20225_getScreenByPairingCode;KC.prototype.$_gsppc=KC.prototype.JSC$20225_getScreenByPollingPairingCode;KC.prototype.$_c=KC.prototype.contains;KC.prototype.$_g=KC.prototype.get;KC.prototype.$_a=KC.prototype.add;KC.prototype.$_un=KC.prototype.updateName;KC.prototype.$_r=KC.prototype.remove;KC.prototype.$_gs=KC.prototype.getScreens;KC.prototype.$_gos=KC.prototype.JSC$20225_getOnlineScreens;KC.prototype.$_s=KC.prototype.subscribe;
KC.prototype.$_ubk=KC.prototype.unsubscribeByKey;var GRl=null,Odc=!1,g58=null,tC=null,Pr_=null,fK=[];var b7d=new _.kt("yt-menu"),WBh=function(){},v9m=function(A,t,f){A=t=="right-click"?f.rightClickMenuPopupHint:f.menuPopupHint;
if(!(ynd(t)>10))return t=t||"default",b7d.set(t+"-impression",ynd(t)+1),A},ynd=function(A){return parseInt(b7d.get((A||"default")+"-impression")||0,10)};
_.su(WBh);var LBj=function(){this.contexts_=new WeakMap;this.JSC$20272_networkService_=this.activeContext_=null},pyw=function(A,t,f){var X=A.contexts_.get(t);
X||(X=new D$d(A.JSC$20272_networkService_),A.contexts_.set(t,X));A.activeContext_=X;f&&A.activeContext_.reset();A.activeContext_.start();return A.activeContext_};var IN=function(){};
IN.prototype.enqueue=function(){var A=this,t;return _.l(function(f){if(A.isCounterfactual())return(t=A.getCounterfactualData())&&A.shouldLogCounterfactualImpression()&&A.sendImpressionEndpoints(t),f.return();A.doEnqueue();_.LO(f)})};
IN.prototype.sendImpressionEndpoints=function(A){_.XA.getInstance().triggerOptionalAction("yt-service-request",{},A[0])};var xR=function(A,t){this.renderer=A;this.page=t};
_.R(xR,IN);xR.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
xR.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
xR.prototype.shouldLogCounterfactualImpression=function(){return!0};
xR.prototype.doEnqueue=function(){var A=_.aM(this.page);A&&A.pause();this.renderer.impressionCommand&&_.XA.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Sh(_.XA.getInstance(),[this.renderer.promoCommand],this.page)};var E9Q=function(A,t){this.renderer=A;this.resolver=_.YE();this.JSC$20284_enforcementCounter=new _.uiC;t?this.JSC$20284_playerManager=_.aM(t):this.JSC$20284_playerManager=null;_.UF(1,!0)};
_.R(E9Q,IN);_.J=E9Q.prototype;_.J.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var A=[];this.renderer.impressionEndpoints.forEach(function(t){(t=_.bP(t))&&A.push(t)});
return A}};
_.J.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.J.shouldLogCounterfactualImpression=function(){var A=_.Djq();A?(this.JSC$20284_enforcementCounter.increment("POPUP"),_.UF(3)):_.UF(2);return A};
_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.doEnqueue=function(){var A=this;_.Djq()?(this.JSC$20284_enforcementCounter.increment("POPUP"),_.UF(3),n92(this)):this.JSC$20284_playerManager?(this.resolver.promise.then(function(){n92(A)}),Dsh(this.resolver,this.JSC$20284_playerManager)):_.UF(2)};
var Dsh=function(A,t){var f=_.YE();t.getPlayerPromise().then(function(X){f.resolve(X)});
f.promise.then(function(X){X.addEventListener("onAbnormalityDetected",A.resolve);_.FZ(A.promise,function(){X.removeEventListener("onAbnormalityDetected",A.resolve)})});
A.promise.thenCatch(function(){f.promise.cancel()})},n92=function(A){_.UF(3);
var t={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:A.renderer}};t=_.XA.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{});Promise.all(t).then(function(){FBj();A.JSC$20284_playerManager&&A.JSC$20284_playerManager.pause()})},FBj=function(){$x8(function(A,t){_.RF3(A,t);
A===0?_.UF(7):_.UF(4)})};var IZQ=function(A,t){this.renderer=A;this.page=t;this.resolver=_.YE()};
_.R(IZQ,IN);_.J=IZQ.prototype;_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var A=this;this.resolver.promise.then(function(){var f={popup:{mealbarPromoRenderer:A.renderer},popupType:"MEALBAR"};_.XA.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:f},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var t=_.aM(this.page);t&&xs8(this.resolver,t)}break;default:this.resolver.resolve()}};
var xs8=function(A,t){var f=_.YE();t.getPlayerPromise().then(function(X){f.resolve(X)});
f.promise.then(function(X){X.addEventListener("onAdEnd",A.resolve);_.FZ(A.promise,function(){X.removeEventListener("onAdEnd",A.resolve)})});
A.promise.thenCatch(function(){f.promise.cancel()})};var jZh=function(A,t){this.renderer=A;this.page=t};
_.R(jZh,IN);_.J=jZh.prototype;_.J.cancel=function(){this.JSC$20292_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20292_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20292_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var A=this,t,f;((t=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(f=t.playbackUpsellDialogTriggerConditionData)==null?void 0:f.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20292_downloadedVideosCountSelectorUnsubscriber=_.ar(_.$I(),dxd,function(X,Q){X>Q&&(Yk3(A),A.cancel())}):Yk3(this)};
var Yk3=function(A){var t={popup:{upsellDialogRenderer:A.renderer},popupType:"MODAL"};_.XA.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{});(A=_.aM(A.page))&&A.pause()};var jz={},VBh=(jz.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",jz.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",jz.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",jz.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",jz.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",jz.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",jz.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",jz),Z7j=function(A,t){this.renderer=A;this.targetManager=
t};
_.R(Z7j,IN);_.J=Z7j.prototype;_.J.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20299_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20299_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20299_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){if(this.isCounterfactual()){var A;return(A=this.renderer.promoConfig)==null?void 0:A.impressionEndpoints}};
_.J.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var A=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20299_downloadedVideosCountSelectorUnsubscriber=_.ar(_.$I(),dxd,function(t,f){A.renderer.targetId&&t>f&&(fzl(A.targetManager,A.renderer.targetId,o9h(A)),A.cancel())});
break;default:fzl(this.targetManager,this.renderer.targetId,o9h(this))}};
var o9h=function(A){var t;if((t=A.renderer.suggestedPosition)==null?0:t.type)var f=VBh[A.renderer.suggestedPosition.type];f||(f="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:A.renderer},popupType:"HINT",position:f}}};var dsh=function(){this.previousPage=null},Skw;
dsh.prototype.registerPromoCommand=function(A,t){$sl(this,void 0,void 0,_.C(A.roadblock,Cvy),void 0,void 0,t)};
var $sl=function(A,t,f,X,Q,q,e){A.previousPage!==e&&A.pendingTooltipPromo&&A.pendingTooltipPromo.cancel();A.previousPage=e;Q?(A.pendingEnforcementPromo&&A.pendingEnforcementPromo.cancel(),A.pendingEnforcementPromo=new E9Q(Q,e),A.pendingEnforcementPromo.enqueue()):q?(A.pendingCommandWrapperPromo=new xR(q,e),A.pendingCommandWrapperPromo.enqueue()):X?(A.pendingRoadblockPromo&&A.pendingRoadblockPromo.cancel(),A.pendingRoadblockPromo=new jZh(X,e),A.pendingRoadblockPromo.enqueue()):t?(A.pendingMealbarPromo&&
A.pendingMealbarPromo.cancel(),A.pendingMealbarPromo=new IZQ(t,e),A.pendingMealbarPromo.enqueue()):f&&(A.pendingTooltipPromo&&A.pendingTooltipPromo.cancel(),A.pendingTooltipPromo=new Z7j(f,_.ZQ()),A.pendingTooltipPromo.enqueue())},H7h=function(){Skw||(Skw=new dsh);
return Skw};var CrQ=!1;var XoQ=function(A,t){var f=_.ah("SESSION_INDEX");this.actionToken_=A;this.commonToken_=t;this.sessionIndex_=f},fW3=function(A){var t=_.YE(),f=_.Ae("payments.business.integration.bootstrap"),X=_.Ae("payments.business.integration"),Q=X.Style.create().withMaterialDesignStyle(),q=X.mashupMode.popup("instrument-manager");
f.asMashupMode(q).usingUserIndex(A.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Q).inStandaloneContext(X.standaloneContextAuthId.forUserId()).instrumentManager(A.actionToken_,A.commonToken_.length>0?A.commonToken_:void 0,function(e){var G=e.instrumentId;G?t.resolve(G):(G=_.Ae("payments.business.integration.scenario.InstrumentManager"),t.reject(e.errorCode&&e.errorCode===G.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(e){_.g9(e);
t.reject("instrumentManagerLoadError")});
return t.promise};var Ur=function(A,t,f){this.payloadName="transactionFlowFailed";this.payload={errorType:A,serializedTransactionFlowLoggingParams:t,isUserDismiss:f===void 0?!1:f}};
_.zm("yt.ypc.shared.YpcTransactionFlowError",Ur);var YR=function(){return _.uo.apply(this,arguments)||this};
_.R(YR,_.uo);YR.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
YR.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
YR.prototype.onErrorMessageDismiss=YR.prototype.onErrorMessageDismiss;_.V([_.n({readOnly:!0,observer:"errorRendererChanged"}),_.H("design:type",Object)],YR.prototype,"errorRenderer",void 0);_.V([_.UQ("yt-live-chat-error-message-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YR.prototype,"onErrorMessageDismiss",null);_.V([_.zh()],YR);var aZy=[YR.prototype];var KB3;var g9_;var wy8=new _.kt("yt-live-chat"),sZy=new Map;sZy.set("timestamp_toggle","show-timestamps");sZy.set("reactions_toggle","allow-reactions");var V8=function(){return _.F.apply(this,arguments)||this};
_.R(V8,_.F);_.J=V8.prototype;_.J.menuItemIdentifierChanged=function(){var A;(A=this.data)!=null&&A.menuItemIdentifier&&(A=sZy.get(this.data.menuItemIdentifier))&&(_.M("enable_lwe_web_mute")?(A=wy8.get(A),this.isToggled=!(A===void 0?!this.data.isToggled:!A)):this.isToggled=wy8.get(A))};
_.J.onFocus=function(){this.toggleButton.focus()};
_.J.onTap=function(){var A=this.data.command;A&&this.componentBehavior.resolveCommand(A)};
_.J.computeText=function(A,t,f){return this.componentBehavior.getSimpleString(A?f:t)};
_.J.computeIcon=function(A,t,f){return(A=A?f:t)&&A.iconType?_.t7(A.iconType):""};
V8.prototype.onTap=V8.prototype.onTap;V8.prototype.onFocus=V8.prototype.onFocus;V8.prototype.menuItemIdentifierChanged=V8.prototype.menuItemIdentifierChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],V8.prototype,"componentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],V8.prototype,"data",void 0);
_.V([_.n({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.H("design:type",String)],V8.prototype,"icon",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],V8.prototype,"isToggled",void 0);_.V([_.lo("tp-yt-paper-toggle-button"),_.H("design:type",Object)],V8.prototype,"toggleButton",void 0);_.V([_.ev("data.menuItemIdentifier"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],V8.prototype,"menuItemIdentifierChanged",null);
_.V([_.UQ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],V8.prototype,"onFocus",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],V8.prototype,"onTap",null);_.V([_.WU({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],V8);
_.Y(V8,"yt-live-chat-toggle-renderer",function(){if(g9_===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;KB3===void 0&&(KB3=document.createElement("template"));var X=KB3;f.call(t,X.content.cloneNode(!0),A.content.firstChild);g9_=A}A=g9_;return A},{mode:0});var k9_=new _.eh("NAVIGATION_PROGRESS_TOKEN");var rn2={},AcA={},tbA=(AcA[GA3.name]=!0,AcA),Zq=function(){var A=_.uo.apply(this,arguments)||this;A._noAccessors=!0;A.tabGesturesIsActive=!1;A.actionRouterIsRoot=!0;A.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"};A.pageTitle="";A.titleSuffix="YouTube";A.unseenNotificationCount=
0;A.hasNavigated=!1;A.hasSetScrollTopForNavigation=!1;A.pagePreparer=null;A.zwiebackInitJobId=0;A.dataUpdatePromise=null;A.loadDepsPromise=_.ff();A.hasPendingNavigation=!1;A.pendingPlayerOnResponseReceivedActions=[];return A};
_.R(Zq,_.uo);Zq.prototype.attached=function(){fb2(this);document.addEventListener("yt-navigate-cache",_.JY(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var A=oN();A.init();A.dispatchElement=this.hostElement};
var fb2=function(A,t){t=t===void 0?0:t;var f=_.Px().resolve(_.z7(_.V2));if(f)Xc3(A,f);else{if(t>=5)throw Error("ul");setTimeout(function(){fb2(A,t+1)},0)}},Xc3=function(A,t){t.addEventListener("yt-navigate-start",_.JY(A,A.onYtNavigateStart));
t.addEventListener("yt-navigate-finish",_.JY(A,A.onYtNavigateFinish));t.addEventListener("yt-navigate-error",_.JY(A,A.onYtNavigateError));t.addEventListener("yt-page-data-fetched",_.JY(A,A.onYtPageDataFetched))};
_.J=Zq.prototype;_.J.detached=function(){var A=_.Px().resolve(_.V2);A.removeEventListener("yt-navigate-start",_.JY(this,this.onYtNavigateStart));A.removeEventListener("yt-navigate-finish",_.JY(this,this.onYtNavigateFinish));A.removeEventListener("yt-navigate-error",_.JY(this,this.onYtNavigateError));A.removeEventListener("yt-page-data-fetched",_.JY(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.JY(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.J.setPageOffset=function(A,t){A?_.kJ(this.hostElement,"yt-set-page-offset",[A,t]):_.HQ(Error("vl"))};
_.J.setPageOffsetForNavigation=function(A,t){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(A,t))};
_.J.onYtNavigateSetPageOffset=function(A,t){this.setPageOffsetForNavigation(t.page,t.offset)};
_.J.getPageOffset=function(){var A=_.sF(this.hostElement).querySelector("#page-manager").getCurrentPage(),t=0;A&&(t=_.kJ(this.hostElement,"yt-get-page-offset",[A])[0]);return t};
_.J.onYtHistoryPop=function(A,t){if(_.Ka("DISABLE_WARM_LOADS"))A.preventDefault(),window.location.reload();else{var f=_.Px().resolve(_.V2);f.hasPendingNavigation()&&A.preventDefault();f.cancelPendingNavigation();_.r2(this.hostElement,"yt-pending-navigation-cancelled");t.errorMsg&&(A=t.errorMsg.split(" - "),t=Error(A[0]),A.length==2&&A[1]&&(_.gL(t,A[1]),_.K4(t)),window.location.reload())}};
_.J.onYtHistoryLoad=function(A,t){var f=this;if(_.Ka("DISABLE_WARM_LOADS"))window.location.reload();else{(A=t.endpoint)&&Object.keys(A).length||(A=null);var X=t.historyEntry,Q=_.Px().resolve(_.V2),q=_.Px().resolve(_.HO),e=null;X&&X.rootData&&(e=X.rootData);var G=e&&Q$m(e);!e||G||e.filler?A?(Q.navigate(A,!0),qsj(this,A)):(t.legacyBorder||G||(t.JSC$30734_savedComponentState==null&&e==null?_.K4(new _.xj("Incomplete history entry",t.forward)):_.ai(new _.xj("Malformed history entry",t.JSC$30734_savedComponentState,
t.forward,e))),window.location.reload()):(_.d2b({isHot:!0}),_.R7({webInfo:{navigationReason:"h"}}),_.cxx(),_.Wt("srt"),_.Wt("pdc"),this.cancelPendingTasks(),JcQ(this,t.forward,e),e.player&&(e.player.loaded=!1),qsj(this,A),_.FVi(Q,A||{},e,2,{},!1,t).then(function(){f.setPageOffset(q.getCurrentPage(),X.scrollTop||0)}))}};
_.J.initHistoryManager=function(A){if(!this.hasNavigated){this.hasNavigated=!0;var t=_.sF(this.hostElement).querySelector("#page-manager").getCurrentData();A=isNaN(A)?this.getPageOffset():A;var f=_.Px().resolve(_.V2).currentEndpoint;this.replaceState(f,t,A)}};
_.J.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.J.onYtNavigateStart=function(A,t){this.cancelPendingTasks();t.noProgressBar||(A=_.Px().resolve(_.z7(k9_)))&&A.start();A=this.hasPendingNavigation?null:this.data;var f=_.Px().resolve(_.HO),X,Q,q;_.M("kevlar_use_vimio_behavior")&&!((X=t.endpoint)==null?0:(Q=X.commandMetadata)==null?0:(q=Q.webCommandMetadata)==null?0:q.ignoreNavigation)&&(X=f.getCurrentPage())&&X.disconnectVisibilityRoot();f.prepareForNavigation(t.pageType,t.endpoint);_.M("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Cx(1,
"pcl"),_.ha(this.pagePreparer,f.preparePage.bind(f,t.pageType,t.endpoint)));X=this.getPageOffset();this.initHistoryManager(X);t.reload||this.hasPendingNavigation?(t.pageType==="shorts"&&t.reload&&_.s9(this.hostElement,"yt-shorts-reset"),this.replaceState(t.endpoint,A,X)):(A==null?void 0:A.page)==="watch"&&t.pageType==="watch"&&_.M("kevlar_replace_watch_to_watch_history_state")?this.replaceState(t.endpoint,A,X):(A==null?void 0:A.page)!=="shorts"||t.pageType!=="shorts"||t.endpoint.reelWatchEndpoint.sequenceParams||
_.M("short_to_short_back_nav_killswitch")?t.type!="navigate-back"&&t.type!="navigate-forward"&&(t.pageType==="shorts"&&_.s9(this.hostElement,"yt-shorts-reset"),this.saveAndPush(t.url,t.endpoint,A,X)):this.replaceState(t.endpoint,A,0);this.hasPendingNavigation=!0};
var U5A=function(A){A.hasPendingNavigation=!1;(A=_.Px().resolve(_.z7(k9_)))&&A.finish()};
Zq.prototype.onYtNavigateError=function(A,t){U5A(this);A=this.get("endpoint.commandMetadata.webCommandMetadata.url",t);var f=_.qG(window.location.href);A&&!f.pbjreload&&(t=t.navigationErrorReason||"10",_.M("kevlar_parent_on_pbjreload")&&(f={csn:_.Ws()},this.get("data.endpoint.clickTrackingParams")&&(f.itct=this.data.endpoint.clickTrackingParams),_.$J(A,f)),_.pp(_.Je(A,{pbjreload:t})))};
Zq.prototype.onYtNavigateCache=function(A,t){var f=this,X=t.url,Q=t.endpoint,q=t.data;A=!!t.miniplayer;t=!!t.skipHistory;if(X&&Q&&q){var e=this.getPageOffset(),G=this.data||null;t||this.saveAndPush(X,Q,G,e);X=_.FVi(_.Px().resolve(_.V2),Q,q,A?4:3,{},A);A&&X.then(function(){f.dataUpdatePromise&&f.dataUpdatePromise.then(function(){var N=_.Px().resolve(_.HO);f.setPageOffset(N.getCurrentPage(),0)})})}};
Zq.prototype.onYtNavigateFinish=function(A,t){var f=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){eOd(f,t.fromHistory)})};
var eOd=function(A,t){U5A(A);if(A.pendingPlayerOnResponseReceivedActions){for(var f=_.U(A.pendingPlayerOnResponseReceivedActions),X=f.next();!X.done;X=f.next())_.Qx(X.value,A.hostElement);A.pendingPlayerOnResponseReceivedActions=[]}f=_.Px().resolve(_.HO);t||!A.hasNavigated||_.M("web_disable_scroll_on_navigate_finish")||((t=f.getCurrentPage())?t.is==="ytd-shorts"||A.tabGesturesIsActive||A.setPageOffsetForNavigation(t,0):_.K4(Error("wl")));_.FD(function(){_.FD(function(){_.Wt("pda")})})};
Zq.prototype.onYtNavigate=function(A){if(!A.detail.endpoint){var t=new _.xj("Error: Missing yt-navigate endpoint from target:",A.target,A.target.nodeName);_.HQ(t)}if(t=_.M("cold_missing_history"))t=oN(),t.init(!1),t=!(t.browserHistory.boundHistoryReplaceState&&t.browserHistory.boundHistoryPushState);if(t){_.H5("DISABLE_WARM_LOADS",!0);t=new _.xj("Failed to initialize history manager",this.getDebugString());var f=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
f?_.K4(t):_.HQ(t)}t=A.detail.endpoint;var X,Q;_.M("debug_forward_web_query_parameters")&&((X=t.commandMetadata)==null?0:(Q=X.webCommandMetadata)==null?0:Q.url)&&(t=JSON.parse(JSON.stringify(t)),t.commandMetadata.webCommandMetadata.url=_.P0g(t.commandMetadata.webCommandMetadata.url,window.location.search));A={type:0,command:t,form:{params:A.detail.params,tempData:A.detail.tempData||{},requestType:A.detail.type,createScreenConfig:A.detail.createScreenConfig,reload:A.detail.reload?A.detail.reload:!1,
requestForm:A.detail}};_.M("kevlar_yt_navigate_command_handler")?(X=_.Px().resolve(_.i2),A.form.skipDefaultElement=!0,X.resolveCommand(t,{form:A.form})):this.handleNavigate(A)};
Zq.prototype.handleNavigate=function(A){this.hasSetScrollTopForNavigation=!1;var t=_.Px().resolve(_.V2),f=A.form||{};t.navigate(A.command,f.reload,f.params,f.tempData,f.requestType,f.createScreenConfig,f.ignoreConfirmation,f.requestForm)&&qsj(this,A.command,f.tempData)};
Zq.prototype.onYtPageDataFetched=function(A,t){try{_.RVl().reset();this.data=t.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.Px().resolve(_.HO).updatePageData(this.data);var f=this.get("playerResponse.onResponseReceivedActions",this.data);f&&(f=GN8(this,f));f&&_.tl(this.hostElement,f,this.hostElement);var X=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),Q=this.get("response.responseContext.consistencyTokenJar",this.data);if(X||Q){var q=_.lLb(),e=(0,_.VG.getValues)(q.tokenJars);X&&q.replace(e,X);Q&&q.replace(e,Q)}}catch(G){_.HQ(G)}};
var qsj=function(A,t,f){try{A.onYtEndpointChangeHandler(t,f)}catch(X){_.HQ(X)}};
_.J=Zq.prototype;_.J.onYtEndpointChangeHandler=function(){};
_.J.setPageTitle=function(A){A=(this.pageTitle=A)?A+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+A};
_.J.onYtUpdateTitle=function(A,t){this.setPageTitle(t)};
_.J.setUnseenNotificationCount=function(A){this.unseenNotificationCount=A;this.setPageTitle(this.pageTitle)};
_.J.handleUpdateNotificationsUnseenCountAction=function(A){_.C(A,q3A)&&((A=_.C(A,q3A).unseenCount)?this.setUnseenNotificationCount(A):this.setUnseenNotificationCount(0))};
_.J.handleClearCookieAction=function(A){var t;(A=(t=_.C(A,tK3))==null?void 0:t.cookieName)&&_.DJx(A)};
_.J.onYtUpdateUnseenNotificationCount=function(A,t){this.setUnseenNotificationCount(t)};
_.J.loadData=function(A){var t=this;this.loadDepsPromise.then(function(){var f=_.Px().resolve(_.z7(_.V2));f||_.HQ(Error("xl"));if(A&&A.response){if(!A.endpoint){var X=_.Iq(window.document.location.href)||"/",Q="";if(X==="/"||X.startsWith("/?"))Q="WEB_PAGE_TYPE_BROWSE";A.endpoint={commandMetadata:{webCommandMetadata:{url:X,webPageType:Q,rootVe:3854}}}}_.FVi(f,A.endpoint,A,5,{})}else A.endpoint?f.navigate(A.endpoint):f.navigate(_.HX);_.a6.cancelJob(t.zwiebackInitJobId);t.zwiebackInitJobId=_.a6.addLowPriorityJob(hSc)})};
var oN=function(){return _.Px().resolve(_.Zl)};
Zq.prototype.getDebugString=function(){return oN().getDebugString()};
Zq.prototype.getThirdPartyManipulationSuspected=function(){return oN().getThirdPartyManipulationSuspected()};
Zq.prototype.replaceState=function(A,t,f){oN().saveAndReplace(A,t,f)};
Zq.prototype.saveAndPush=function(A,t,f,X){oN().saveAndPush(A,t,f,X)};
var Q$m=function(A){return _.C(A.endpoint,_.ZT)||_.C(A.endpoint,_.zD)?!0:!A||isNaN(A.expirationTime)?!1:(0,_.OJ)()>A.expirationTime},JcQ=function(A,t,f){var X=A.get("response.trackingParams",f),Q=_.mx(),q=_.Ws();
if(X&&Q&&q&&(X=A.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",f),!X&&f.rootVe&&(X=f.rootVe),Q=t?"forwardButton":"backButton",t=A.get("playerResponse.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",A.data),A=A.get("response.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",A.data),t=(A=t||A)?_.zV(A):void 0,A=_.er(),Q=[_.ff(f)],_.xz(A,X,t,{dataPromises:Q,csnToClone:f.csn}),f.graftedVes))for(f=
_.U(f.graftedVes),X=f.next();!X.done;X=f.next())_.jN(A,X.value)};
Zq.prototype.onStoreGraftedVeAction=function(A){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(A)):_.K4(Error("yl"))};
var GN8=function(A,t){return t.filter(function(f){for(var X in f)if(tbA[X])return A.pendingPlayerOnResponseReceivedActions.push(f),!0;return!1})};
_.PV.Object.defineProperties(Zq.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Zq.prototype.onStoreGraftedVeAction=Zq.prototype.onStoreGraftedVeAction;Zq.prototype.loadData=Zq.prototype.loadData;Zq.prototype.onYtUpdateUnseenNotificationCount=Zq.prototype.onYtUpdateUnseenNotificationCount;Zq.prototype.handleClearCookieAction=Zq.prototype.handleClearCookieAction;Zq.prototype.handleUpdateNotificationsUnseenCountAction=Zq.prototype.handleUpdateNotificationsUnseenCountAction;Zq.prototype.setUnseenNotificationCount=Zq.prototype.setUnseenNotificationCount;
Zq.prototype.onYtUpdateTitle=Zq.prototype.onYtUpdateTitle;Zq.prototype.setPageTitle=Zq.prototype.setPageTitle;Zq.prototype.onYtEndpointChangeHandler=Zq.prototype.onYtEndpointChangeHandler;Zq.prototype.onYtPageDataFetched=Zq.prototype.onYtPageDataFetched;Zq.prototype.handleNavigate=Zq.prototype.handleNavigate;Zq.prototype.onYtNavigate=Zq.prototype.onYtNavigate;Zq.prototype.onYtNavigateFinish=Zq.prototype.onYtNavigateFinish;Zq.prototype.onYtNavigateCache=Zq.prototype.onYtNavigateCache;
Zq.prototype.onYtNavigateError=Zq.prototype.onYtNavigateError;Zq.prototype.onYtNavigateStart=Zq.prototype.onYtNavigateStart;Zq.prototype.cancelPendingTasks=Zq.prototype.cancelPendingTasks;Zq.prototype.initHistoryManager=Zq.prototype.initHistoryManager;Zq.prototype.onYtHistoryLoad=Zq.prototype.onYtHistoryLoad;Zq.prototype.onYtHistoryPop=Zq.prototype.onYtHistoryPop;Zq.prototype.onYtNavigateSetPageOffset=Zq.prototype.onYtNavigateSetPageOffset;Zq.prototype.setPageOffset=Zq.prototype.setPageOffset;
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Zq.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Zq.prototype,"data",void 0);_.V([_.UQ("yt-navigate-set-page-offset"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Zq.prototype,"onYtNavigateSetPageOffset",null);
_.V([_.UQ("yt-history-pop"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Zq.prototype,"onYtHistoryPop",null);_.V([_.UQ("yt-history-load"),_.H("design:type",Function),_.H("design:paramtypes",[Event,_.smK]),_.H("design:returntype")],Zq.prototype,"onYtHistoryLoad",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Zq.prototype,"onYtNavigate",null);
_.V([_.UQ("yt-update-title"),_.H("design:type",Function),_.H("design:paramtypes",[Event,String]),_.H("design:returntype")],Zq.prototype,"onYtUpdateTitle",null);_.V([_.UQ("yt-update-unseen-notification-count"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Number]),_.H("design:returntype")],Zq.prototype,"onYtUpdateUnseenNotificationCount",null);_.V([_.zh()],Zq);rn2.YtdAppBehavior=[_.jD.YtActionHandlerBehavior,Zq.prototype];var d7=function(){var A=_.uo.apply(this,arguments)||this;A._noAccessors=!0;return A};
_.R(d7,_.uo);d7.prototype.ready=function(){var A=this;_.sF(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){A.onChange_()})};
d7.prototype.dataChanged_=function(){_.sF(this.hostElement).querySelector("#checkbox").checked=!1};
d7.prototype.onChange_=function(){var A=_.sF(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.s9(this.hostElement,"yt-dismissal-reason-"+A,this.data.feedbackToken)};
d7.prototype.dataChanged_=d7.prototype.dataChanged_;_.V([_.n(),_.H("design:type",Object)],d7.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],d7.prototype,"dataChanged_",null);_.V([_.zh()],d7);var lb3=[d7.prototype];var Sz=function(){var A=_.uo.apply(this,arguments)||this;A.timeoutJobId=0;A.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return A};
_.R(Sz,_.uo);Sz.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Sz.prototype.startTimeout=function(){var A=this,t=this.data&&this.data.displayDurationSeconds;t&&!this.timeoutJobId&&(this.timeoutJobId=_.jY(_.a6,function(){_.kJ(A.hostElement,"yt-close-popup-action",[A.is]);A.timeoutJobId=0},t*1E3))};
Sz.prototype.cancelTimeout=function(){_.a6.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Sz.prototype.ytdHatsSurveyBehaviorDataChanged=Sz.prototype.ytdHatsSurveyBehaviorDataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Sz.prototype,"ytActionHandlerBehavior",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sz.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.V([_.zh()],Sz);var NIh=[_.jD.YtActionHandlerBehavior,Sz.prototype];var uYy=function(A,t){var f;return((f=A.prefixMapping)==null?0:f[t])?A.prefixMapping[t]:A.SHARED_RENDERERS_.hasOwnProperty(t)?"yt":A.prefix},$R={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}};$R.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.M("kevlar_mealbar_above_player"),modern:!0,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"}};
$R.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};$R.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};$R.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
$R.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)"}};
$R.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};
$R.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};
$R.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};
$R.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
$R.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"}};$R.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};$R.TOAST={component:null,properties:{}};var zO2=new function(A,t,f){this.supportedPopups=A;this.navigationEndpointPopupMap=t;this.popupTypeMap=f;this.supportedPopups=A;this.navigationEndpointPopupMap=t;this.popupTypeMap=f}({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:_.M("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"}),Pq8=new function(){this.prefix="ytd";this.prefixMapping=void 0;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$20350_popupConfig=$R;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 TI8=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Qn.getInstance()},H2=function(A,t){var f=A.pageNameToElement.get(t);
if(!f){switch(t){case "watch":var X=_.M("web_watch_force_learning_journey_for_testing")?_.MX("ytd-watch-learning-journey"):_.M("kevlar_watch_fixie")?_.MX("ytd-watch-fixie"):_.M("kevlar_watch_grid")?_.MX("ytd-watch-grid"):_.MX("ytd-watch-flexy");break;case "learning_journey_watch":X=_.MX("ytd-watch-learning-journey");break;case "shorts":X=_.MX("ytd-shorts");break;case "search":X=_.MX("ytd-search");break;case "channel":X=_.MX("ytd-browse");X.pageSubtype="channels";break;case "trending":X=_.MX("ytd-browse");
X.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":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 "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":X=
_.MX("ytd-browse");X.pageSubtype=t;break;case "browse":X=_.MX("ytd-browse");break;default:_.K4(new _.xj("Error getting page element for type",t))}f=X;A.pageNameToElement.set(t,f)}return f};
TI8.prototype.preparePage=function(A,t,f){f&&(A=_.eI(f)||A);if(A!=="watch"&&A!=="learning_journey_watch"){var X=this.elementPoolPopulator,Q=A;Q!=X.targetPage_&&X.pendingPages_.indexOf(Q)>-1&&(X.targetPage_&&(X.pendingPages_.unshift(X.targetPage_),X.abort()),qAw(X,Q),_.keK(X,Q))}if((X=H2(this,A))||!_.C(f,_.fV)){X.isAttached||X===t||(X.hidden=!0);if(!X.data&&(A!=="watch"&&A!=="learning_journey_watch"||!_.M("swatcheroo_page_pool_dont_provide_filler_data"))){var q;if(A=(q=_.ah("FILLER_DATA",{})[A])==
null?void 0:q.response)X.data=A}return X}};var iD3=function(A){this.JSC$32717_clientRoot=A;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Ep3,"yt-end-playlist-command":npm,"yt-recover-playlist-command":Fa3,"yt-refresh-playlist-command":jDm,"yt-playlist-remove-videos-action":IrQ};_.J4(_.XA.getInstance(),this.playlistHandlerActionMap,this.JSC$32717_clientRoot);T88()},ODy;var aN=function(A,t,f){this.apiKey=A;this.endpoint=t;this.confidenceThreshold=f===void 0?.5:f;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=t==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||t==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
t==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||t==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new xR3};
_.J=aN.prototype;
_.J.start=function(A){if(this.state===0)if(this.isOnline()){A.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=A.supportsHttpHeadersOverwriteParam);A.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=A.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.b0("voice_assistant");_.yg("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=A.languageCode||"en-US";this.supportsCrossDomainXhr=A.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=A.youtubeAssistantRequest||null;this.listeningHandler=A.listeningHandler||this.listeningHandler;this.audioDetectedHandler=A.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=A.stopHandler||this.stopHandler;this.completeHandler=A.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=A.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=A.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
A.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=A.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=A.accessToken;this.additionalHeaders=A.additionalHeaders||{};var t;this.prefetchResponseTimeoutMs=(t=A.prefetchResponseTimeoutMs)!=null?t:this.prefetchResponseTimeoutMs;ccA(this);this.startAudio();BIh(this)}else this.errorHandler("OFFLINE")};
_.J.stop=function(A){var t=A===void 0?{}:A;A=t.logCancel===void 0?!0:t.logCancel;var f=t.logMicClosed===void 0?!0:t.logMicClosed;var X=t.handleError===void 0?!0:t.handleError;t=t.handleStop===void 0?!0:t.handleStop;this.state!==0&&(A&&KH("voz_cx"),g7(this,{logMicClosed:f,handleStop:t}),X&&this.errorHandler("ABORTED"))};
_.J.getState=function(){return this.state};
_.J.isSupported=function(){return!0};
_.J.stopAudio=function(A){(A===void 0||A)&&KH("voz_mf")};
_.J.startAudio=function(){KH("voz_vp");return _.ff(null)};
var Mbj=function(A,t){A.channelOpen&&(A.state!==2&&(A.state=2,KH("voz_ss"),A.listeningHandler()),t=new Uint8Array(t),t='{ "audioIn": "'+_.E2(t)+'" }',A.channel.send(t))},g7=function(A,t){var f=t===void 0?{}:t;
t=f.logMicClosed===void 0?!0:f.logMicClosed;f=f.handleStop===void 0?!0:f.handleStop;A.vozEndOfDataTimeout>-1&&(clearTimeout(A.vozEndOfDataTimeout),A.vozEndOfDataTimeout=-1);Cq8(A);A.stopAudio(t);A.channel&&(A.channelOpen=!1,A.manuallyClosedChannel=!0,A.channel.close(),A.channel=void 0);A.transcribedSpeechResults=[];A.state=0;f&&A.stopHandler()},ccA=function(A){var t={httpHeadersOverwriteParam:A.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},A.additionalHeaders,A.accessToken&&A.isUsingVoz?{Authorization:"Bearer "+A.accessToken}:{"x-goog-api-key":A.apiKey}),supportsCrossDomainXhr:A.supportsCrossDomainXhr};A.channel=new NQ(A.endpoint,t);A.channel.open();_.TV(A.channel,"w",function(){var f=A.channel,X=f.send,Q=A.isUsingVoz?"PLACEHOLDER":"example";Q={config:{dialogStateIn:{languageCode:A.languageCode},deviceConfig:{deviceId:Q,deviceModelId:Q},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!A.isUsingVoz)Q.config.requestType=4;else if(A.isUsingVoz&&A.youtubeAssistantRequest){var q=JSON.stringify(A.youtubeAssistantRequest);Q.config.internalIn={youtubeAssistantS3InputJson:q}}X.call(f,Q);A.channelOpen=!0;A.manuallyClosedChannel=!1});
_.TV(A.channel,"x",function(){A.manuallyClosedChannel||(A.channelOpen=!1,A.channel=void 0,g7(A))});
_.TV(A.channel,"z",function(f){if(f.data){Cq8(A);for(var X=0;X<f.data.length;X++){var Q=A,q=f.data[X],e=q.speechResults;if(e)a:{var G=[];q=[];var N=!1;e=_.U(e);for(var z=e.next();!z.done;z=e.next()){z=z.value;if(z.noSpeech){g7(Q);Q.errorHandler("NO_SPEECH");break a}z.transcript!==void 0&&z.stability!==void 0&&(z.stability<Q.confidenceThreshold&&(N=!0),N?q.push(z.transcript):G.push(z.transcript))}if(G.length!==0||q.length!==0)G=G.join(" "),q=q.join(" "),Q.receivedEndOfUtterance&&!Q.isUsingVoz?Q.isUsingVoz||
Q.completeHandler([G,q]):(N=Q,e=G,z=q,KH("voz_sf"),N.transcriptionUpdateHandler(e,z),N.transcribedSpeechResults=[e,z]),Q.receivedEndOfUtterance&&(KH("voz_eou"),Q.transcriptionCompleteHandler([G,q]),Q.isUsingVoz&&(Q.prefetchResponseTimeoutMs===0?g7(Q,{logMicClosed:!1,handleStop:!0}):Q.prefetchResponseTimeoutMs>0&&hOw(Q)))}else Q.isUsingVoz&&(q==null?0:q.internalOut)?(q=JSON.parse(q.internalOut.youtubeAssistantS3OutputJson),q.userHasOptedInToVaa||q.vaaConsent?Q.vaaConsentUpdateHandler(!!q.userHasOptedInToVaa,
!!q.vaaConsent):(ROc(Q),q&&(G=Q.transcribedSpeechResults,KH("voz_rqf"),Q.completeHandler(G,q)))):q.eventType==="END_OF_UTTERANCE"?Q.receivedEndOfUtterance=!0:(KH("voz_err"),Q.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.K4(Error("zl")))}}});
_.TV(A.channel,"y",function(f){g7(A);switch(f.status){case 1:f="WEBCHANNEL_NETWORK_ERROR";break;case 2:f="WEBCHANNEL_SERVER_ERROR";break;default:f="WEBCHANNEL_UNKNOWN_ERROR"}A.errorHandler(f);A.logError(Error(f))})};
aN.prototype.logError=function(A){_.HQ(A)};
aN.prototype.isOnline=function(){return!0};
var hOw=function(A){ROc(A);A.prefetchResponseSetTimeoutId=setTimeout(function(){g7(A,{logMicClosed:!1,handleStop:!0})},A.prefetchResponseTimeoutMs)},ROc=function(A){A.prefetchResponseSetTimeoutId>-1&&(clearTimeout(A.prefetchResponseSetTimeoutId),A.prefetchResponseSetTimeoutId=-1)},BIh=function(A){Cq8(A);
A.noResponseReceivedTimeout=window.setTimeout(function(){g7(A);A.errorHandler("NO_SPEECH")},11E3)},Cq8=function(A){A.noResponseReceivedTimeout>-1&&(window.clearTimeout(A.noResponseReceivedTimeout),A.noResponseReceivedTimeout=-1)},KH=function(A){_.Wt(A,void 0,"voice_assistant")};var w7=function(){aN.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.R(w7,aN);w7.prototype.isSupported=function(){return Y1j()};
w7.prototype.startAudio=function(){var A=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.OX(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(X){m5h(A,X)};
this.processor.connect(this.audioContext.destination);var t=function(X){A.stream=X;if(!A.audioContext)return _.ff(null);X=A.audioContext.createMediaStreamSource(X);A.processor&&X.connect(A.processor);return _.ff(null)},f={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?t(this.stream):(f=navigator.mediaDevices.getUserMedia(f))?f.then(t).catch(function(X){g7(A);X.name&&X.name==="NotAllowedError"?A.errorHandler("NO_MICROPHONE_PERMISSION"):(A.errorHandler("AUDIO_ERROR"),A.logError(X));return _.OX(null)}):(g7(this),this.errorHandler("AUDIO_ERROR"),_.K4(Error("Al")));
return aN.prototype.startAudio.call(this)};
w7.prototype.stopAudio=function(A){A=A===void 0?!0:A;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(t){t.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;aN.prototype.stopAudio.call(this,A)};
w7.prototype.isOnline=function(){return navigator.onLine};
var m5h=function(A,t){if(A.audioContext)if(window.OfflineAudioContext){var f=A.audioContext.sampleRate,X=t.inputBuffer.getChannelData(0);t=new window.OfflineAudioContext(1,X.length,16E3);for(var Q=t.createBuffer(1,X.length,f),q=Q.getChannelData(0),e=0,G=0;G<X.length;G++)q[G]=X[G],e+=q[G]*q[G];!A.audioDetected&&Math.sqrt(e/X.length)>.01&&(A.audioDetected=!0,A.audioDetectedHandler());X=t.createBufferSource();X.buffer=Q;X.connect(t.destination);X.start(0);t.oncomplete=function(N){N=N.renderedBuffer.getChannelData(0);
for(var z=Math.floor(16384E3/f),T=new Int16Array(z),O=0;O<z;++O)T[O]=Math.max(-1,Math.min(1,N[O]))*32767;Mbj(A,T.buffer)};
t.startRendering()}else bDl(A,t)},bDl=function(A,t){var f=A.audioContext.sampleRate,X=t.inputBuffer.getChannelData(0),Q=Math.floor((f+8E3)/16E3);
f=X.length/Q;t=new Float32Array(f);for(var q=0;q<f;++q)t[q]=X[q*Q];X=new Int16Array(f);for(Q=0;Q<f;++Q)X[Q]=Math.max(-1,Math.min(1,t[Q]))*32767;Mbj(A,X.buffer)};var Wwc={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var ycm=function(){this.JSC$20415_audioEnabled=!0;this.audioFeedbackHolder={}};
ycm.prototype.isPlaying=function(A){return A.currentTime>0&&!A.paused&&!A.ended&&A.readyState>2};
var vKQ=function(A){for(var t=_.U(Object.values(Wwc)),f=t.next();!f.done;f=t.next())f=f.value,A.audioFeedbackHolder[f]=new Audio,A.audioFeedbackHolder[f].src="/s/search/audio/"+f+".mp3",A.audioFeedbackHolder[f].load()},s6=function(A,t){if(A.JSC$20415_audioEnabled!==!1&&t in A.audioFeedbackHolder){for(var f=_.U(Object.values(A.audioFeedbackHolder)),X=f.next();!X.done;X=f.next())X=X.value,A.isPlaying(X)&&X.pause();
A.audioFeedbackHolder[t].currentTime=0;A.audioFeedbackHolder[t].play().catch(function(){})}};var LwA=function(A,t){var f=this;this.store=A;this.service=t;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){f.setState("offline");f.stop()};
this.audioPlayer=new ycm;var X;(X=this.audioPlayer)==null||vKQ(X)};
_.J=LwA.prototype;_.J.getService=function(){return this.service};
_.J.isEnabled=function(){return!!this.service};
_.J.isSupported=function(){var A;return(A=this.service)==null?void 0:A.isSupported()};
_.J.start=function(){var A=this,t,f,X,Q,q,e,G,N,z,T,O,c,B;return _.l(function(h){switch(h.nextAddress){case 1:A.store.dispatch(m$3("",""));if(!navigator.onLine)return A.setState("offline"),h.return();window.addEventListener("offline",A.handleOfflineEvent);A.stream=null;if(!A.permissionsSupported){h.jumpTo(2);break}_.ht(h,3);return h.yield(pcd(A),5);case 5:t=h.yieldResult;if(!t)return(f=A.audioPlayer)==null||s6(f,"failure"),h.return();A.service.stream=A.stream;A.setState("listening");_.qq(h,2);break;
case 3:_.vC(h),A.permissionsSupported=!1;case 2:X={context:_.Ypx(_.BD())},X.youtubeAssistantParams={searchParams:{inlineSearchResponse:A.enableInlineSearchResponse}},Q=function(W,L){A.store.dispatch(b6A("transcribing"));A.store.dispatch(m$3(W,L))},q=function(){var W;
(W=A.audioPlayer)==null||s6(W,"open");A.setState("listening")},e=function(){A.setState("transcribing")},G=function(W){A.setErrorState(W)},N=function(W,L){var E;
(E=A.audioPlayer)==null||s6(E,"success");L&&(_.M("kevlar_voice_search_inline_search")&&(A.responseProcessor=_.Px().resolve(_.yQx),A.responseProcessor&&(E=L.navigationAction,W=L.prefetchedSearchResponse,E&&W&&(E=(new _.W7j).JSC$14268_getStoreKey(E),_.jt(A.responseProcessor,W,E)))),A.JSC$20433_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",L))},z=function(){window.removeEventListener("offline",A.handleOfflineEvent)},T=_.Kvu(!1),O=T.Authorization!=null,c=A.enableFirstPartyAuth||
A.enableFPAForSignedInUsers&&O?T:{"X-Goog-Visitor-Id":T["X-Goog-Visitor-Id"]},B={completeHandler:N,
errorHandler:G,listeningHandler:q,audioDetectedHandler:e,stopHandler:z,transcriptionUpdateHandler:Q,youtubeAssistantRequest:X,languageCode:EKl(),additionalHeaders:c,supportsCrossDomainXhr:A.enableFirstPartyAuth||A.enableFPAForSignedInUsers&&O,supportsHttpHeadersOverwriteParam:!A.disableHttpHeadersOverwrite},A.service.start(B),_.LO(h)}})};
_.J.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.J.reset=function(){this.store.dispatch(_.r0({type:"RESET_VOICE_SEARCH_STATE"}))};
_.J.setState=function(A){this.store.dispatch(b6A(A))};
_.J.setErrorState=function(A){switch(A){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var t;(t=this.audioPlayer)==null||s6(t,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)pcd(this);else{var f;(f=this.audioPlayer)==null||s6(f,"failure");this.setState("permission-denied")}break;case "ABORTED":var X;(X=this.audioPlayer)==null||s6(X,"no_input");break;default:var Q;(Q=this.audioPlayer)==
null||s6(Q,"no_input");this.setState("timeout")}};
var pcd=function(A){var t,f;return _.l(function(X){switch(X.nextAddress){case 1:return X.yield(navigator.permissions.query({name:"microphone"}),2);case 2:t=X.yieldResult;if(t.state==="granted")return X.return(!0);if(t.state==="denied")return A.setState("permission-denied"),X.return(!1);A.setState("permission");f={audio:{sampleSize:16,channelCount:1},video:!1};_.ht(X,3);return X.yield(navigator.mediaDevices.getUserMedia(f),5);case 5:return A.stream=X.yieldResult,X.return(!0);case 3:return _.vC(X),
A.setState("permission-denied"),X.return(!1)}})},EKl=function(){var A=_.ah("INNERTUBE_CONTEXT_HL"),t=_.ah("INNERTUBE_CONTEXT_GL");
return A.indexOf("-")>-1?A:A+"-"+t};var nKd=function(A,t,f){LwA.call(this,t,f);this.JSC$20433_actionRouter=A;this.enableInlineSearchResponse=_.M("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.M("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.M("kevlar_voice_search_enable_fpa_signedin_users")},D5j;
_.R(nKd,LwA);
var Fwj=function(){if(!D5j){var A="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.M("kevlar_voice_search_auth_enabled")||_.M("kevlar_voice_search_use_yt_endpoint")?A="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.M("kevlar_voice_search_use_fp_endpoint")&&(A="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");D5j=
new nKd(_.XA.getInstance(),_.$I(),new w7(_.ah("VOZ_API_KEY"),A,.5))}return D5j};var Ibw=function(A){this.JSC$20437_clientRoot=A;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!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$20437_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)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));A=_.U(this.eventListeners);for(var t=A.next();!t.done;t=A.next()){var f=
_.U(t.value);t=f.next().value;f=f.next().value;f=_.U(f);for(var X=f.next();!X.done;X=f.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;t.addEventListener(X,Q)}}_.J4(_.XA.getInstance(),this.autonavPauseActionMap,this.JSC$20437_clientRoot)},x5d,j$y=function(A){return _.M("kevlar_autonav_popup_filtering")?(A=_.oO(A))?A.hasAttribute("prevent-autonav"):!0:!0};
_.J=Ibw.prototype;_.J.onIronOverlayOpened=function(A){j$y(A)&&(this.autonavPauseReasons.overlayOpen=!0,kR(this))};
_.J.onIronOverlayClosed=function(A){j$y(A)&&(this.autonavPauseReasons.overlayOpen=!1,kR(this))};
_.J.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;kR(this)};
_.J.onYtAutonavPauseBlur=function(){var A=this;_.a6.addJob(function(){Ys3()||(A.autonavPauseReasons.inputBoxFocus=!1,kR(A))},8,0)};
_.J.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;kR(this)};
_.J.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;kR(this)};
_.J.onYtAutonavPauseScroll=function(){var A=_.Px().resolve(_.HO);A.isOnWatch()&&(A=A.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=A.getBoundingClientRect().top<-200,kR(this))};
_.J.onYtAutonavPauseUserEngagement=function(A){var t=this;if(_.M("user_engagement_enable_autoplay_pause_feature")){var f=Number(A.lowEngagementThresholdMs);isNaN(f)||f<=0||A.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Gp("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.Px().resolve(_.PO),_.iX()<f?_.jY(_.a6,function(){_.Gp("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.bNj()?(this.userEngagementCsn=_.Ws(),_.jY(_.a6,function(){_.Gp("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
t.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,kR(this)):_.Gp("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.sMq(Error("Bl`"+JSON.stringify(A)))};
_.J.onYtAutonavPausePlayer=function(A){this.autonavPauseReasons.requestedByPlayer=!!A.detail;kR(this)};
_.J.onYtAutonavVisibilityChanged=function(){var A=this,t,f,X;return _.l(function(Q){if(Q.nextAddress==1)return(t=_.K1())?Q.yield(t.getPlayerPromise(),2):Q.return();f=Q.yieldResult;X=f.isMuted()||f.getVolume()===0;A.autonavPauseReasons.backgroundAndMute=Ys3()&&X;kR(A);_.LO(Q)})};
_.J.onYtAutonavPausePlayerEnded=function(){_.Px().resolve(_.PO);var A=144E5;_.M("user_engagement_enable_autoplay_pause_feature")||_.M("is_part_of_any_user_engagement_experiment")||(A=45E5);this.autonavPauseReasons.longIdle=_.iX()>A;Vb8(this);kR(this)};
_.J.onYtUserActivity=function(){var A=this;this.autonavPauseReasons.userEngagement&&(_.jY(_.a6,function(){_.Gp("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",A.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,kR(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.jY(_.a6,function(){_.Gp("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",A.userEngagementCsn);_.$B()}),this.autonavPauseReasons.youthereLactExperiment=!1,kR(this));
this.autonavPauseReasons.longIdle&&!_.M("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,kR(this))};
var Ys3=function(){var A=window.document.visibilityState;return!(!A||A==="visible")},kR=function(A){for(var t=!1,f=_.U(Object.values(A.autonavPauseReasons)),X=f.next();!X.done;X=f.next())X=X.value,t=t||X;
t?_.WX.getInstance().pause(A.autonavPauseReasons):(A=_.WX.getInstance(),A.autonavState_==3?(A.setState(2,!1,!1),A.autonavPauseReason_=void 0):A.autonavState_==1&&(A.disabledAutonavPauseReason_=void 0))},Vb8=function(A){var t=!1;
if(_.M("enable_autoplay_pause_by_lact")){_.Px().resolve(_.PO);t=_.cx("autoplay_pause_by_lact_sec")*1E3;var f=_.cx("autoplay_pause_by_lact_sampling_fraction");(t=_.iX()>=t&&Math.random()<f)&&!_.bNj()&&(_.jY(_.a6,function(){_.Gp("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),t=!1)}t!==A.autonavPauseReasons.youthereLactExperiment&&(A.autonavPauseReasons.youthereLactExperiment=t)&&(A.userEngagementCsn=_.Ws(),_.jY(_.a6,function(){_.Gp("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",A.userEngagementCsn)}));
A.autonavPauseReasons.userEngagement&&_.jY(_.a6,function(){_.Gp("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",A.userEngagementCsn)})};
Ibw.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Gp("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.$B(),this.autonavPauseReasons.youthereLactExperiment=!1,kR(this));this.autonavPauseReasons.userEngagement&&(_.Gp("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,kR(this))};
Ibw.prototype.onYtEngagementPanelVisibleChanged=function(A){A.detail&&A.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=A.detail.visible,kR(this))};
Ibw.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var ZD3=_.Iv.persistentPanelVisibleSelector,r7=function(){var A=_.F.apply(this,arguments)||this;A.miniGuideVisible=!1;A.guideOpened=_.M("disable_initial_guide_state_fix")?!1:A.canFitPersistentGuide(A.initialBodyClientWidth);A.guideUserStateOpened=A.getInitialGuideUserStateOpened();A.isFullscreenShorts=!1;A.miniGuideWidthThreshold=_.cx("kevlar_mini_guide_width_threshold",791);A.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
A.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");A.persistentGuideBlockedPagePathRegex=new RegExp(A.persistentGuideBlockedPagesPatterns.join("|"));A.animationTransitionDuration=0;A.lateDataResolver=_.YE();A.initialGuideDataFetchFailed=!1;A.initialLoad=!0;A.guideRenderers=new Set;A.isMouseOverGuide=!1;A.sessionUserManuallyExpandedGuideState=
!1;A.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return A};
_.R(r7,_.F);_.J=r7.prototype;_.J.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.J.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.J.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.J.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.J.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.J.ready=function(){_.Px().addProvider({provide:_.lC,useValue:this.hostElement})};
_.J.attached=function(){var A=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.JY(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.JY(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.JY(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.JY(this,this.onYtGuideShow));_.us(this,function(){A.animationTransitionDuration=200})};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.JY(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.JY(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.JY(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.JY(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.JY(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.JY(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.JY(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.J.getData=function(){return this.data};
_.J.load=function(){var A=this,t,f,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=A.lateDataResolver.resolve.bind(A),q.return(A.lateDataResolver.promise);if(window.ytInitialGuideData)return t=_.YE(),t.resolve(window.ytInitialGuideData),q.return(t.promise);X=!1;_.ht(q,2);return q.yield(A.fetchGuideData(),4);case 4:f=q.yieldResult;_.qq(q,3);break;case 2:Q=_.vC(q),Q.message==="Returned error"&&(X=
!0);case 3:if(f)return q.return(f);A.onYtGuideClose();X||(A.initialGuideDataFetchFailed=!0);return q.return(A.lateDataResolver.promise)}})};
_.J.fetchGuideData=function(){var A=this,t,f,X,Q,q,e,G;return _.l(function(N){if(N.nextAddress==1)return t=_.Px(),A.guidePromise||(f=t.resolve(_.iY),A.guidePromise=_.jl(f,Lm3)),N.yield(A.guidePromise,2);if(N.nextAddress!=3)return X=N.yieldResult,Q=t.resolve(_.fv),N.yield(Q(),3);(q=N.yieldResult)&&((e=X)==null?void 0:(G=e.responseContext)==null?void 0:G.maxAgeSeconds)!==0&&q.put("service:guide:fallback",new _.xy({innertubeResponse:X}));return N.return(X)})};
_.J.initializeGuideDataIfEmpty=function(){var A=this,t,f;return _.l(function(X){if(X.nextAddress==1){if(!A.initialGuideDataFetchFailed||A.data)return X.return();_.ht(X,2);return X.yield(A.fetchGuideData(),4)}if(X.nextAddress!=2)return(t=X.yieldResult)&&A.lateDataResolver.resolve(t),_.qq(X,0);f=_.vC(X);_.K4(f);_.LO(X)})};
_.J.initializeGuideData=function(){var A=this,t;return _.l(function(f){switch(f.nextAddress){case 1:return _.et(vAh(),{mainAppWeb:_.xO()}),_.ht(f,2),f.yield(A.load(),4);case 4:A.data=f.yieldResult;_.qq(f,3);break;case 2:_.vC(f),_.GF(vAh(),"FAILURE");case 3:t=A.data&&A.data.items&&A.data.items.length>0?"SUCCESS":"FAILURE",_.GF(vAh(),t),_.LO(f)}})};
_.J.setGuideData=function(A){var t=this,f,X;return _.l(function(Q){if(Q.nextAddress==1)return t.disabled?Q.return():t.data?(A.data=t.data,t.guideRenderers.add(A),Q.return()):Q.yield(t.initializeGuideData(),2);t.graftGuideToPage();f=_.Ka("IS_HOMEPAGE_COLD")?"eop":void 0;_.M("disable_element_pool_populator")?t.setGuideDataAfterInit(A):(X=new _.Cx(1,f),_.ha(X,t.setGuideDataAfterInit.bind(t,A)));_.LO(Q)})};
_.J.setGuideDataAfterInit=function(A){A.data=this.data;A.markDirty();this.guideRenderers.add(A);_.FD(function(){_.Wt("gle")});
_.us(this,function(){_.Wt("gpe")})};
_.J.graftGuideToPage=function(){if(this.data){var A=this.data&&this.data.trackingParams;A&&(A=_.zV(A),_.Yz(_.er(),A))}};
_.J.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.JY(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.J.onDrawerOpenedChanged=function(A,t){!t.value&&this.guideOpened&&(this.guideOpened=!1)};
_.J.onYtGuideToggle=function(A){var t=this.guideOpened;this.guideOpened=!t;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var f=_.NJ();_.u0(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;f.save()}this.updateGuideDrawerElementState();if(this.guideElement){var X;this.guideOpened&&((X=A.detail)==null?0:X.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.JY(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.JY(this,this.onAppDrawerTransitioned))}t||this.initializeGuideDataIfEmpty()};
_.J.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.JY(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.GO(this.guideElement)};
_.J.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.JY(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(hAd(this.guideOpened))};
_.J.guidePersistentAndVisibleChanged=function(){_.r2(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.J.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.r0({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.J.miniGuideVisibleChanged=function(){_.r2(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.J.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(hAd(this.guideOpened)),this.initialLoad=!1);_.r2(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.J.activeEndpointChanged=function(){_.r2(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.J.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.J.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()};
_.J.cachedClientWidthChanged=function(){this.updateGuideState()};
_.J.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.J.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var A=this.canFitPersistentGuide(this.cachedClientWidth);A?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=A}this.updateGuideDrawerElementState()};
_.J.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.J.getGuideOpened=function(){return this.guideOpened};
_.J.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.J.getActiveEndpoint=function(){return this.activeEndpoint};
_.J.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.J.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&&_.s9(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.J.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.M("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.J.handleGuideMouseLeave=function(){var A=this;!this.sessionUserManuallyExpandedGuideState&&_.M("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Ig(this,"handleGuideMouseLeave",function(){A.isMouseOverGuide||!A.guideOpened||A.miniGuideVisible||(A.guideOpened=!1,A.updateGuideDrawerElementState())},100))};
_.J.computeGuidePersistentAndVisible=function(){var A=this;_.Ig(this,"computeGuidePersistentAndVisible",function(){A.guidePersistentAndVisible=A.guideOpened&&A.guidePersistent;A.guideIsVisibleButNotPersistent=!(!A.guideOpened||A.guidePersistent)})};
_.J.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.J.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.J.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.J.startLoadingWatch=function(){this.closeGuide()};
_.J.startLoadingShorts=function(){_.M("web_hide_guide_on_shorts")&&this.closeGuide()};
_.J.onYtNavigateFinish=function(A,t){if(!_.XG||t){this.activeEndpoint=t.endpoint;this.pageType=t.pageType;this.pageUrl=t.response.url;var f,X;A=(X=_.C((f=t.endpoint)==null?void 0:f.commandMetadata,_.Jl))==null?void 0:X.url;!this.pageUrl&&A&&(this.pageUrl=A);_.M("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.J.getVisibleGuideRenderer=function(){for(var A=_.U(this.guideRenderers),t=A.next();!t.done;t=A.next())if(t=t.value,this.miniGuideVisible&&t.is==="ytd-mini-guide-renderer"||this.guideOpened&&t.is==="ytd-guide-renderer")return t;return null};
_.J.markGuideRendererDirty=function(A){if(A){typeof A.markDirty==="function"&&A.markDirty();A=_.U([].concat(_.YV(_.sF(A).children)));for(var t=A.next();!t.done;t=A.next())this.markGuideRendererDirty(t.value)}};
_.J.persistentGuideEnabled=function(A,t){if(!t||A==="watch"||A==="settings"||A==="shorts"&&this.isFullscreenShorts||_.M("reels_web_disable_persistent_guide_shorts")&&A==="shorts")return!1;var f=_.Wx(t)||"";return _.M("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(X){return f===X}):!this.persistentGuideBlockedPagePathRegex.test(f)};
_.J.canFitPersistentGuide=function(A){var t=_.cx("kevlar_persistent_guide_width_threshold",1312);return t===-1||_.M("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:A>this.calculateGuideThreshold(t)};
_.J.calculateGuideThreshold=function(A){return _.M("enable_ai_companion")?A+(this.persistentPanelVisible?400:0):A};
_.J.canFitMiniGuide=function(A){return this.miniGuideWidthThreshold===-1?!1:A>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.J.onResize=function(){var A=this;_.Ig(this,"calculateGuideState",function(){A.onResizeDebounced()})};
_.J.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.J.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.J.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.J.getInitialGuideUserStateOpened=function(){return _.M("web_force_mini_guide_default")?!1:!_.NJ().getFlag(109)};
_.PV.Object.defineProperties(r7.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.ah("initialBodyClientWidth")||window.innerWidth}}});
r7.prototype.onResize=r7.prototype.onResize;r7.prototype.observeForMiniGuideVisible=r7.prototype.observeForMiniGuideVisible;r7.prototype.computeGuidePersistentAndVisible=r7.prototype.computeGuidePersistentAndVisible;r7.prototype.persistentPanelVisibleChanged=r7.prototype.persistentPanelVisibleChanged;r7.prototype.cachedClientWidthChanged=r7.prototype.cachedClientWidthChanged;r7.prototype.resetGuide=r7.prototype.resetGuide;r7.prototype.activeEndpointChanged=r7.prototype.activeEndpointChanged;
r7.prototype.guideOpenedChanged=r7.prototype.guideOpenedChanged;r7.prototype.miniGuideVisibleChanged=r7.prototype.miniGuideVisibleChanged;r7.prototype.guideIsVisibleButNotPersistentChanged=r7.prototype.guideIsVisibleButNotPersistentChanged;r7.prototype.guidePersistentAndVisibleChanged=r7.prototype.guidePersistentAndVisibleChanged;r7.prototype.onGuideElementChanged=r7.prototype.onGuideElementChanged;r7.prototype.onGuidePersistentChanged=r7.prototype.onGuidePersistentChanged;
r7.prototype.onRenderGuideChanged=r7.prototype.onRenderGuideChanged;r7.prototype.onActiveEndpointChanged=r7.prototype.onActiveEndpointChanged;r7.prototype.onMiniGuideVisibleChanged=r7.prototype.onMiniGuideVisibleChanged;r7.prototype.onGuideIsVisibleButNotPersistentChanged=r7.prototype.onGuideIsVisibleButNotPersistentChanged;r7.prototype.onGuidePersistendAndVisibleChanged=r7.prototype.onGuidePersistendAndVisibleChanged;
_.V([_.b(_.K9),_.H("design:type",Object)],r7.prototype,"ironResizableBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],r7.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],r7.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],r7.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],r7.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Boolean)],r7.prototype,"disabled",void 0);_.V([_.n(),_.H("design:type",Boolean)],r7.prototype,"guidePersistentAndVisible",void 0);_.V([_.ev("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"onGuidePersistendAndVisibleChanged",null);_.V([_.n(),_.H("design:type",Boolean)],r7.prototype,"guideIsVisibleButNotPersistent",void 0);
_.V([_.ev("guideIsVisibleButNotPersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.V([_.n(),_.H("design:type",Object)],r7.prototype,"miniGuideVisible",void 0);_.V([_.ev("miniGuideVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"onMiniGuideVisibleChanged",null);_.V([_.n(),_.H("design:type",Boolean)],r7.prototype,"forceMiniGuideClose",void 0);
_.V([_.n(),_.H("design:type",Object)],r7.prototype,"activeEndpoint",void 0);_.V([_.ev("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"onActiveEndpointChanged",null);_.V([_.n(),_.H("design:type",Boolean)],r7.prototype,"renderGuide",void 0);_.V([_.ev("renderGuide"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"onRenderGuideChanged",null);
_.V([_.n({selector:ZD3}),_.H("design:type",Boolean)],r7.prototype,"persistentPanelVisible",void 0);_.V([_.n(),_.H("design:type",Object)],r7.prototype,"guideOpened",void 0);_.V([_.n(),_.H("design:type",Boolean)],r7.prototype,"guidePersistent",void 0);_.V([_.ev("guidePersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"onGuidePersistentChanged",null);_.V([_.n(),_.H("design:type",Object)],r7.prototype,"guideUserStateOpened",void 0);
_.V([_.n(),_.H("design:type",String)],r7.prototype,"pageUrl",void 0);_.V([_.n(),_.H("design:type",String)],r7.prototype,"pageType",void 0);_.V([_.n(),_.H("design:type",Number)],r7.prototype,"cachedClientWidth",void 0);_.V([_.n(),_.H("design:type",Object)],r7.prototype,"guideElement",void 0);_.V([_.n({selector:_.sn}),_.H("design:type",Object)],r7.prototype,"isFullscreenShorts",void 0);
_.V([_.ev("guideElement"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"onGuideElementChanged",null);_.V([_.ev("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"guidePersistentAndVisibleChanged",null);
_.V([_.PU("guideIsVisibleButNotPersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"guideIsVisibleButNotPersistentChanged",null);_.V([_.ev("miniGuideVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"miniGuideVisibleChanged",null);_.V([_.PU("guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"guideOpenedChanged",null);
_.V([_.ev("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"activeEndpointChanged",null);_.V([_.PU("pageUrl"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"resetGuide",null);_.V([_.PU("cachedClientWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"cachedClientWidthChanged",null);
_.V([_.PU("persistentPanelVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"persistentPanelVisibleChanged",null);_.V([_.ev("guideOpened","guidePersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"computeGuidePersistentAndVisible",null);
_.V([_.PU("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"observeForMiniGuideVisible",null);_.V([_.UQ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],r7.prototype,"onResize",null);_.V([_.y_({disableElementRegistration:!0,is:"yt-guide-manager"})],r7);
var oKd=_.Y(r7,"yt-guide-manager",void 0,{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var AF=function(){var A=_.F.apply(this,arguments)||this;A.JSC$20447_keyboardInUse=!1;A.boundHandleCapturedKeydownEvent=function(t){A.handleCapturedKeydownEvent(t)};
return A};
_.R(AF,_.F);_.J=AF.prototype;_.J.attached=function(){this.listenToDocument(document)};
_.J.listenToDocument=function(A){A.addEventListener("keydown",_.JY(this,this.onKeyDownEvent));A.addEventListener("keyup",_.JY(this,this.onKeyUpEvent));A.addEventListener("mousedown",_.JY(this,this.onMouseDownEvent));_.M("desktop_keyboard_capture_keydown_killswitch")||A.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);A.addEventListener("yt-page-data-updated",_.JY(this,this.onPageUpdate))};
_.J.detached=function(){this.unlistenFromDocument(document)};
_.J.unlistenFromDocument=function(A){A.removeEventListener("keydown",_.JY(this,this.onKeyDownEvent));A.removeEventListener("keyup",_.JY(this,this.onKeyUpEvent));A.removeEventListener("mousedown",_.JY(this,this.onMouseDownEvent));_.M("desktop_keyboard_capture_keydown_killswitch")||A.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);A.removeEventListener("yt-page-data-updated",_.JY(this,this.onPageUpdate))};
_.J.ready=function(){_.Px().addProvider({provide:_.mJ,useValue:this})};
_.J.isKeyBoardInUse=function(){return this.JSC$20447_keyboardInUse};
_.J.handleCapturedKeydownEvent=function(A){if(A.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(A)};
_.J.onMouseDownEvent=function(){this.JSC$20447_keyboardInUse=!1};
_.J.onPageUpdate=function(){if(_.M("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.M("web_shorts_keyboard_shortcut_usage_log")){_.Pv.clear();for(var A=_.U(_.uF),t=A.next();!t.done;t=A.next()){var f=_.U(t.value);t=f.next().value;f=f.next().value;f=_.Xl(f);_.Pv.set(t,f);_.x7(_.Ws(),_.mx(),f)}_.Tp.clear();A=_.U(_.zp);for(t=A.next();!t.done;t=A.next())f=_.U(t.value),t=f.next().value,f=f.next().value,f=_.Xl(f),_.Tp.set(t,f),_.x7(_.Ws(),_.mx(),f);_.j5(_.Ws(),_.mx(),[].concat(_.YV(_.Tp.values()),
_.YV(_.Pv.values())));_.Vg(_.Ws(),[].concat(_.YV(_.Tp.values()),_.YV(_.Pv.values())))}};
_.J.onMiniplayerActiveChange=function(){var A;(A=_.Px().resolve(_.DS).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(A.document):this.unlistenFromDocument(A.document))};
_.J.ignoreKeyEvent=function(A){if(A.ctrlKey||A.altKey)if(_.M("kevlar_macro_markers_keyboard_shortcut")){if(A.keyCode!==37&&A.keyCode!==39)return!0}else return!0;var t=_.Z2(A)||[];return _.vF3(t)?(_.M("web_button_or_anchor_list_item")&&X1d(t,A)&&(this.JSC$20447_keyboardInUse=!0),!0):A.defaultPrevented?(vv(A.keyCode,A.shiftKey,this.isShortsPage),!0):A.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(A):!1};
_.J.isSpacebarClick=function(A){var t=A||window.event;var f;t.composedPath&&typeof t.composedPath==="function"?f=t.composedPath():f=t.path;f&&f.length?t=f[0]:(t=t||window.event,t=t.target||t.srcElement,t.nodeType==3&&(t=t.parentNode));return t&&A.keyCode===32&&(A=t.tagName==="BUTTON"||t.tagName==="A"||t.tagName==="INPUT",t=(t=t.getAttribute("role"))&&(t==="option"||t==="button"||t.indexOf("menuitem")===0),A||t)?!0:!1};
_.J.onKeyDownEvent=function(A){if(!this.ignoreKeyEvent(A)&&(A.keyCode===191&&(A.shiftKey||A.metaKey?A.repeat!=null&&A.repeat||(this.openHotkeyDialog(),vv(A.keyCode,A.shiftKey,this.isShortsPage)):(this.focusSearchBox(),A.preventDefault())),!A.metaKey)){var t=_.Px().resolve(_.DS);switch(A.keyCode){case 9:this.JSC$20447_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(A);break;case 84:t.pipController.getWindow()&&window.focus();this.toggleTheaterMode(A.keyCode,A.shiftKey);break;case 73:t.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(A.keyCode,A.shiftKey);break;case 70:if(this.isShortsPage){_.LIl();break}this.isMiniplayerActive()?t.pipController.getWindow()&&(t.close(!0),window.focus()):this.passEventToPlayer(A);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(A.keyCode,A.shiftKey):this.closeMiniplayer(A.keyCode,A.shiftKey)||this.passEventToPlayer(A);break;case 13:A.shiftKey&&_.Px().resolve(_.m8).activate(A);break;default:this.passEventToPlayer(A)}}};
_.J.onKeyUpEvent=function(A){if(!this.ignoreKeyEvent(A))if(_.M("web_speedmaster_spacebar_control")&&A.keyCode===32)this.handlePlayerSpaceKey(A,!0);else{var t=this.getPlayerManager();t&&(t=t.getPlayer())&&t.handleGlobalKeyUp(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code)}};
_.J.getPlayerManager=function(){var A=_.K1(),t=_.Px().resolve(_.z7(_.HO));return A&&t&&t.isOnWatch()?A:null};
_.J.passEventToPlayer=function(A,t){var f=this,X,Q,q,e;return _.l(function(G){if(G.nextAddress==1){if(!_.M("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&f.isMiniplayerActive())X=_.Px().resolve(_.DS).getPlayerElement();else if(f.inlinePreviewIsActive){if(Q=_.r2(f.hostElement,"yt-get-inline-preview-player-action"),(q=Q)==null?0:q[0])X=Q[0]}else X=_.K1();return X?G.yield(X.getPlayerPromise(),3):G.jumpTo(0)}e=G.yieldResult;t?e.handleGlobalKeyUp(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,
A.key,A.code):e.handleGlobalKeyDown(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code,A.repeat);A.keyCode!==38&&A.keyCode!==40&&vv(A.keyCode,A.shiftKey,f.isShortsPage);_.LO(G)})};
_.J.focusSearchBox=function(){_.s9(this.hostElement,"yt-focus-searchbox")};
_.J.openHotkeyDialog=function(){_.s9(this.hostElement,"yt-open-hotkey-dialog")};
_.J.isMiniplayerActive=function(){return _.Px().resolve(_.DS).isMiniplayerActive()};
_.J.closeMiniplayer=function(A,t){return this.isMiniplayerActive()?(_.Px().resolve(_.DS).close(),vv(A,t,this.isShortsPage),!0):!1};
_.J.toggleTheaterMode=function(A,t){var f=_.bm(_.$I().getState()),X=this.getPlayerManager(),Q=_.M("disable_theater_mode_keyboard")||_.Ka("START_IN_FULL_WINDOW_MODE");X&&!Q&&(f=!f,_.aq()&&_.M("external_fullscreen")&&(f=!0),_.kJ(this.hostElement,"yt-toggle-theater-mode",[f]),vv(A,t,this.isShortsPage))};
_.J.toggleMiniplayer=function(A,t){var f=this.getPlayerManager();if(this.isMiniplayerActive()){var X;((X=_.Px().resolve(_.z7(_.HO)))==null?0:X.isOnWatch())?_.Px().resolve(_.DS).close(!0):_.FP(_.Px().resolve(_.DS));vv(A,t,this.isShortsPage)}else f&&(_.kJ(this.hostElement,"yt-activate-miniplayer-from-watch-action"),vv(A,t,this.isShortsPage))};
_.J.handlePlayerSpaceKey=function(A,t){var f=!!_.K1()||this.isMiniplayerActive();f=_.M("disable_space_scroll_fix")||f;_.M("global_spacebar_pause")&&!this.isKeyBoardInUse()&&f&&(A.preventDefault(),this.passEventToPlayer(A,t))};
_.J.isPresentingTheaterMode=function(){return _.M("web_watch_enable_tm_esc_key")?_.bm(_.$I().getState())&&!_.aq():!1};
AF.prototype.onMiniplayerActiveChange=AF.prototype.onMiniplayerActiveChange;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],AF.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],AF.prototype,"ytdReduxBehavior",void 0);_.V([_.n({selector:_.na5}),_.H("design:type",Boolean)],AF.prototype,"inlinePreviewIsActive",void 0);_.V([_.n({selector:_.oL0}),_.H("design:type",Boolean)],AF.prototype,"isShortsPage",void 0);
_.V([_.n({selector:_.WE}),_.H("design:type",Boolean)],AF.prototype,"miniplayerIsActive",void 0);_.V([_.ev("miniplayerIsActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AF.prototype,"onMiniplayerActiveChange",null);_.V([_.y_({disableElementRegistration:!0,is:"yt-hotkey-manager"})],AF);_.Y(AF,"yt-hotkey-manager",void 0,{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var tF=function(){var A=_.F.apply(this,arguments)||this;A.loopStateEntityKey_=null;A.playlistLoopStateEntity_=null;A.isShuffleNextPlaylist=!1;A.PLAYER_EVENTS_=new Map;A.playerListenersSetup_=!1;A.videoSkipJob_=0;A.canAutoAdvance_=!1;A.playerManager_=null;A.TEST_ONLY={};return A};
_.R(tF,_.F);_.J=tF.prototype;_.J.ready=function(){_.Px().addProvider({provide:_.zT,useValue:this.hostElement})};
_.J.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_)};
_.J.attached=function(){document.addEventListener("yt-navigate-start",_.JY(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.JY(this,this.onYtNavigateFinish_))};
_.J.detached=function(){document.removeEventListener("yt-navigate-start",_.JY(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.JY(this,this.onYtNavigateFinish_))};
_.J.updatePlaylistEventListeners=function(A,t){t&&!this.playerListenersSetup_?(this.playerManager_=A,this.registerPlaylistEventListeners_(A)):!t&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(A))};
_.J.setPlayer=function(A){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=A};
_.J.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.J.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.J.registerPlaylistEventListeners_=function(A){var t=this;A.getPlayerPromise().then(function(f){t.playerListenersSetup_||(t.ytPlayerListenerBehavior.listenToPlayerEvents(f,t.PLAYER_EVENTS_),t.playerListenersSetup_=!0)})};
_.J.removePlaylistEventListeners_=function(A){var t=this;A.getPlayerPromise().then(function(f){t.playerListenersSetup_&&(t.ytPlayerListenerBehavior.unlistenFromPlayerEvents(f,t.PLAYER_EVENTS_),t.playerListenersSetup_=!1)})};
_.J.setPlaylistComponent=function(A){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.JY(this,this.onPlaylistYtNavigate_)),A&&(A.data&&this.playlistComponent.data&&A.data.playlistId==this.playlistComponent.data.playlistId?(A.loopOn=this.playlistComponent.loopOn,A.shuffleOn=this.playlistComponent.shuffleOn):(A.loopOn=!1,A.shuffleOn=!1),this.isShuffleNextPlaylist&&(A.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=A;this.playlistComponent.addEventListener("yt-navigate",
_.JY(this,this.onPlaylistYtNavigate_))};
_.J.setAutoplayRenderer=function(A){this.autoplayData=A};
_.J.setPlaylistData=function(A){this.currentPlaylistData_=A;_.s9(this.hostElement,"yt-playlist-data-updated");_.VG.isEmpty(A)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(A)};
_.J.setPlayerPlaybackControlData=function(A){this.playerManager_&&this.playerManager_.updatePlayerComponents(A.playlistPanelRenderer)};
_.J.getPlaylistData=function(){return this.currentPlaylistData_};
_.J.getTempData_=function(A,t){if(this.playlistComponent==null)return null;A={};this.playlistComponent.shuffleOn&&(A.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(A.loop_on=this.playlistComponent.loopOn);t&&(A.autonav="1",_.Px().resolve(_.PO),t=_.iX(),t>0&&(A.lact=t),this.playerManager_&&(t=this.playerManager_.getPlayer())&&t.shouldSendVisibilityState()&&(t=t.getVisibilityState(),t!=0&&(A.vis=t)));_.M("enable_unknown_lact_fix_on_html5")&&(_.Px().resolve(_.PO),A.lact=
_.iX());return A};
_.J.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.J.setLoopStateEntityKey_=function(A){var t;this.loopStateEntityKey_=((t=this.getPlaylistLoopData_(A))==null?void 0:t.playlistLoopStateEntityKey)||null};
_.J.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.J.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.J.skipVideo=function(){var A=this,t=_.M("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||t)t=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.c1(_.a6,function(){A.onPlaylistNext();A.videoSkipJob_=0},t)};
_.J.cancelVideoSkip=function(){this.videoSkipJob_&&(_.a6.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.J.isInBackground_=function(){var A=window.document.visibilityState;return!(!A||A=="visible")};
_.J.onPlaylistIndex_=function(A){this.playlistComponent&&(A=this.playlistComponent.data.contents[A].playlistPanelVideoRenderer.navigationEndpoint,_.s9(this.hostElement,"yt-navigate",{endpoint:A,tempData:this.getTempData_(A)}))};
_.J.onPlayerStateChange_=function(A){if(A=A==0&&this.playlistComponent&&this.canAutoAdvance_)A=_.WX.getInstance(),A=!(A.autonavState_===3?A.autonavPauseReason_&&A.autonavPauseReason_.inputBoxFocus===!0:A.autonavState_===1&&A.disabledAutonavPauseReason_&&A.disabledAutonavPauseReason_.inputBoxFocus===!0);A&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.J.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.J.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.J.navigateToAutoplayWatchEndpoint_=function(A,t,f){var X=this.playlistComponent.data.currentIndex,Q=this.getNumPlayableVideos_();A=="NORMAL"&&t=="autoplayVideo"&&X+1>=Q&&f||!(A=this.getVideoEndpoint_(A,t))||(f=this.getTempData_(A,f),_.s9(this.hostElement,"yt-navigate",{endpoint:A,tempData:f}))};
_.J.getNumPlayableVideos_=function(){for(var A=0,t=_.U(this.playlistComponent.data.contents||[]),f=t.next();!f.done;f=t.next())f.value.playlistPanelVideoRenderer&&(A+=1);return A};
_.J.getVideoEndpoint_=function(A,t){if(this.autoplayData&&this.autoplayData.sets)for(var f=0,X=this.autoplayData.sets.length;f<X;f++){var Q=this.autoplayData.sets[f];if(Q.mode==A){if(Q[t])return Q[t];break}}else A=new _.xj("AutoplayData is undefined in playlist manager","Mode: "+A+" endpoint: "+t),_.K4(A)};
_.J.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.J.onPlaylistYtNavigate_=function(A){if(A.detail.endpoint){A.stopPropagation();var t=A.detail;t.tempData=this.getTempData_(A.detail.endpoint);_.s9(this.hostElement,"yt-navigate",t)}};
_.J.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.J.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.J.playlistLoopStateEntityChanged_=function(A){var t=this,f,X,Q;return _.l(function(q){if(q.nextAddress==1){if(!A)return q.return();f=A.state==="PLAYLIST_LOOP_STATE_ONE";return t.playerManager_?q.yield(t.playerManager_.getPlayerPromise(),3):q.jumpTo(2)}q.nextAddress!=2&&(X=q.yieldResult,X.setLoopVideo(f));Q=A.state==="PLAYLIST_LOOP_STATE_ALL";t.playlistComponent&&(t.playlistComponent.loopOn=Q);_.LO(q)})};
_.J.getPlaylistLoopData_=function(A){var t,f;if(A=A==null?void 0:(t=A.playlistButtons)==null?void 0:(f=t.menuRenderer)==null?void 0:f.topLevelButtons)for(t=_.U(A),f=t.next();!f.done;f=t.next())if(f=f.value,f.playlistLoopButtonRenderer)return f.playlistLoopButtonRenderer};
_.J.getLoopStateCommand_=function(A){var t=this.getPlaylistData(),f;t=((f=this.getPlaylistLoopData_(t))==null?void 0:f.states)||[];var X;A=(X=_.C(t[A?1:2],_.Lqp))==null?void 0:X.button;var Q;return(Q=_.C(A,_.Gf))==null?void 0:Q.command};
_.J.onPlayerLoopChange_=function(A){this.playlistLoopStateEntity_&&(A?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(A=this.getLoopStateCommand_(A))&&this.ytComponentBehavior.resolveCommand(A)};
_.J.onSleepTimerSettingsChanged_=function(A){this.canAutoAdvance_=A!=="End of video"};
tF.prototype.onPlaylistLoopStateEntityChanged=tF.prototype.onPlaylistLoopStateEntityChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],tF.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.iC.YtPlayerListenerBehavior),_.H("design:type",_.OW)],tF.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],tF.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],tF.prototype,"loopStateEntityKey_",void 0);
_.V([_.n({selectorArgs:["loopStateEntityKey_"],selector:_.wx.playlistLoopStateEntitySelector}),_.H("design:type",Object)],tF.prototype,"playlistLoopStateEntity_",void 0);_.V([_.ev("playlistLoopStateEntity_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tF.prototype,"onPlaylistLoopStateEntityChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"yt-playlist-manager"})],tF);_.Y(tF,"yt-playlist-manager",void 0,{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var d52,SsA=function(){if(d52!==void 0)return d52;var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return d52=A};var fo=function(){var A=_.F.apply(this,arguments)||this;A.lastCallback=null;A.getAccountLinkPromises={};A.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);A.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return A};
_.R(fo,_.F);_.J=fo.prototype;_.J.getLocation=function(){return window.location.href};
_.J.getCompletionUrl=function(){return _.Sa(this.getLocation())};
_.J.containsRedirectState=function(A){return(A=_.RG(_.uaT(A)))?(new URLSearchParams(A)).get("redirect_state")!==null:!1};
_.J.createGalConfig=function(A,t){var f=new fum;A=f=t?this.getPopupOrRedirectSetting(f,_.ah("LINK_API_KEY"),_.ah("LINK_API_KEY_REDIRECT"),A):XL3(f,_.ah("LINK_API_KEY"));A.authUser=_.ah("SESSION_INDEX")||0;A.supportedFlows=new Set([4]);return A.build()};
_.J.getPopupOrRedirectSetting=function(A,t,f,X){this.isGalInteractionPopupMode(X)?(A.interactionMode=0,A=XL3(A,t)):(A.interactionMode=1,t=this.getCompletionUrl(),A.completionUrl=t,A=XL3(A,f));return A};
_.J.isGalInteractionPopupMode=function(A){if(this.redirectModeProviderAllowlist.has(A))switch(A){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.J.getStatusEntityKeyForProviderId=function(A){return _.QQ(A+":all","accountLinkStatusEntity")};
_.J.findNestedPropValue=function(A,t){var f=!1,X=null;JSON.stringify(A,function(Q,q){f||Q!==t||(f=!0,X=q);return f?null:q});
return X};
_.J.findAccountLinkButtonViewModel=function(A,t){var f=null,X=!1;JSON.stringify(A,function(Q,q){X||q.accountLinkStatusEntityKey!==t||q.accountLinkStatusSecondaryEntityKey||(X=!0,f=q);return X?null:q});
return f};
_.J.executeLinkingSuccessOrFailureCommands=function(A,t,f){var X=null,Q;(t==null?0:(Q=t.url)==null?0:Q.includes("account_sharing"))?X=t==null?void 0:t.response:X=t==null?void 0:t.response;(t=this.findAccountLinkButtonViewModel(X,A))?(A=f?this.findNestedPropValue(t,"onSuccessCommand"):this.findNestedPropValue(t,"onFailureCommand"))?_.Qg([A],this.hostElement):_.te(Error("Cl")):_.te(Error("Dl`"+A))};
_.J.handleInitializeRequest=function(A,t){var f=this,X=ka_(this.createGalConfig(A,!0));this.containsRedirectState(this.getLocation())?aB3(A,X.config,X.galService).then(function(Q){var q=f.getStatusEntityKeyForProviderId(A);if(Q.statusCode===1)t&&f.executeLinkingSuccessOrFailureCommands(q,t,!0),Q=f.getLocation().indexOf("#"),Q!==-1&&window.history.pushState(null,"",f.getLocation().substring(0,Q));else return t&&f.executeLinkingSuccessOrFailureCommands(q,t,!1),Promise.reject(Error(Q.statusMessage))}).catch(function(Q){_.K4(Q);
_.SY("gamingAccountLinkStatusChanged",{serviceId:A,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Q)}):this.getAccountLinkPromises[A]=X.startLinkingSession({serviceId:A})};
_.J.handleAccountLinkCommand=function(A){_.C(A,QV8)&&this.handleLinkRequest(_.C(A,QV8))};
_.J.handleLinkRequest=function(A){var t=this,f=A.thirdPartyId;if(f)if(this.isGalInteractionPopupMode(f)){var X=function(){t.closeAndFire("ytd-gaming-account-link-setting-renderer",A.onFailureCommand)},Q=function(){t.closeAndFire("ytd-gaming-account-link-setting-renderer",A.onSuccessCommand)};
this.lastCallback=Q;this.getAccountLinkPromises[f].then(function(q){jXl(q).then(function(e){e.statusCode===1?Q():X()})}).catch(function(){X()})}else this.getAccountLinkPromises[f].then(function(q){jXl(q).then(function(e){if(e.statusCode!==1)return Promise.reject(Error(e.statusMessage))})}).catch(function(q){_.K4(q);
_.SY("gamingAccountLinkStatusChanged",{serviceId:f,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(q)})};
_.J.closeAndFire=function(A,t){_.kJ(this.hostElement,"yt-close-popup-action",[A]);t&&_.Qg([t],this.hostElement)};
_.J.handleAccountUnlinkCommand=function(A){_.C(A,qRd)&&this.handleUnlinkRequest(_.C(A,qRd))};
_.J.handleUnlinkRequest=function(A){var t=this,f=A.thirdPartyId;if(f){var X=function(){t.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",A.onFailureCommand)},Q=function(){t.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",A.onSuccessCommand)};
this.lastCallback=Q;var q=ka_(this.createGalConfig(f,!1));this.unlinkUserGal(q,f).then(function(e){e.statusCode===1?Q():X()}).catch(function(){X()})}};
_.J.unlinkUserGal=function(A,t){return A.deleteLink(t)};
_.J.handleLogAccountLinkingEventCommand=function(A){_.M("enable_gel_log_commands")&&_.C(A,JKh)&&(A=_.C(A,JKh).event)&&_.SY("gamingAccountLinkStatusChanged",A)};
_.PV.Object.defineProperties(fo,{template:{configurable:!0,enumerable:!0,get:function(){return SsA()}}});
_.V([_.b(_.I4.YtOpenPopupBehavior),_.H("design:type",Object)],fo.prototype,"ytOpenPopupBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],fo.prototype,"ytActionHandlerBehavior",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-third-party-manager"})],fo);_.Y(fo,"ytd-third-party-manager",function(){return SsA()},{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var $5d,HD8=function(){if($5d!==void 0)return $5d;var A=document.createElement("template");_.m(A,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return $5d=A};var Xm=function(){var A=_.F.apply(this,arguments)||this;A.currentPage=void 0;A.renderLoadingStateJobId=0;A.updatePageDataJobId=0;A.pageDisposeJobsets=new WeakMap;A.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"};A.shouldApplyLockupToWatchTransition=_.M("web_thumbnail_to_watch_transition");A.shouldApplySlideTransition=_.Bx("web_page_transition_type")==="slide"||_.M("enable_plj_landing_page");A.shouldApplyLearningJourneyTransition=_.M("enable_plj_landing_page");A.TEST_ONLY=void 0;return A};
_.R(Xm,_.F);_.J=Xm.prototype;_.J.ready=function(){var A=_.Px();A.addProvider({provide:_.HO,useValue:this});A.addProvider({provide:_.Xuh,useValue:this})};
_.J.created=function(){this.pagePool=new TI8;this.contextSwitcher=new LBj};
_.J.attached=function(){_.s9(this.hostElement,"attached");var A=_.Px().resolve(_.z7(_.TD));A&&(this.contextSwitcher.JSC$20272_networkService_=A);this.viewTransitionManager=_.Px().resolve(_.w4)};
_.J.getPageOffset=function(A){return A.getScrollTop()};
_.J.setPageOffset=function(A,t){try{A.setScrollTop(t)}catch(f){}};
_.J.setPageOffsetForNavigation=function(A,t){_.s9(this.hostElement,"yt-navigate-set-page-offset",{page:A,offset:t===void 0?0:t})};
_.J.pauseActiveContext=function(){var A=this.contextSwitcher;A.activeContext_&&A.activeContext_.pause()};
_.J.getModuleNameForType=function(A){return A==="watch"?_.M("kevlar_watch_fixie")?"watchFixie":_.M("kevlar_watch_grid")?"watchGrid":"watchFlexy":A==="shorts"||A==="search"?A:"browse"};
_.J.attachPage=function(A){var t,f=!_.M("pc_is_attached_ks")&&(A==null?void 0:(t=A.polymerController)==null?void 0:t.isAttached);if(!A.isAttached&&!f)try{_.sF(this.hostElement).appendChild(A)}catch(Q){var X;_.K4(new _.xj("Error attaching page element for component",{origin:(X=this.currentPage)==null?void 0:X.is,component:A.is}))}};
_.J.setActivePage=function(A,t){var f=this,X=!1,Q=function(){var q=f.isOnWatch(),e=f.currentPage;if(A)if(A!==f.currentPage){e&&(e.hidden=!0,e.active=!1,e.removeAttribute("role"));f.currentPage=A;var G,N=t!=null?t:_.eI((G=f.data)==null?void 0:G.endpoint);e&&_.s9(f.hostElement,"yt-page-type-changed",{oldPageType:e.is,newPageType:A.is,newPageSubtype:N});_.ZK().dispatch(_.r0({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:A.is}));_.ZK().dispatch(_.r0({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:N||""}));
A.hidden=!1;f.attachPage(A);A.active=!0;A.setAttribute("role","main");e&&f.setPageOffsetForNavigation(A,0);_.M("kevlar_remove_page_dom_on_switch")&&!q&&e&&_.sF(f.hostElement).removeChild(e)}else X=!0;else f.handleMissingDestinationPage(e)};
this.shouldRunBrowseTransition(this.currentPage,A)?K1j(this.viewTransitionManager,Q):this.shouldRunLearningJourneyTransition(this.currentPage,A)?sRj(this.viewTransitionManager,Q):Q();return X};
_.J.handleMissingDestinationPage=function(A){if(this.isColdLoadForUnknownPage(A))_.K4(new _.xj("Cold load for unknown page"));else{var t;A=new _.xj("Unable to set active page",A?A.is:"unknown origin",(t=this.data)==null?void 0:t.endpoint);_.HQ(A)}};
_.J.isColdLoadForUnknownPage=function(A){return!A&&Rm(this.data)==="unknown"};
_.J.shouldRunBrowseTransition=function(A,t){return this.shouldApplySlideTransition&&(A==null?void 0:A.is)==="ytd-browse"&&(t==null?void 0:t.is)==="ytd-browse"&&A!==t};
_.J.shouldRunLearningJourneyTransition=function(A,t){return this.shouldApplyLearningJourneyTransition&&(A==null?void 0:A.is)==="ytd-browse"&&((t==null?void 0:t.is)==="ytd-watch-learning-journey"||(t==null?void 0:t.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.J.shouldRunWatchNextLoadedTransition=function(A,t){return this.viewTransitionManager&&A.is==="ytd-watch-flexy"&&t};
_.J.updatePageData=function(A){var t=this,f=this.data;this.updatePageDataJobId&&_.a6.cancelJob(this.updatePageDataJobId);this.data=A;return new _.yy(function(X){var Q=function(){A.filler?t.performDataUpdate(A,f):X0w(function(){t.performDataUpdate(A,f)});
var N=_.TT();_.iE(N,"cr")||N.processSignal("cr");X()},q=function(){A&&(A.page==="watch"||_.M("web_shorts_delay_shorts_page_update")&&A.page==="shorts")?t.updatePageDataJobId=_.c1(_.a6,Q):Q()};
if(_.M("kevlar_enable_mss_page_modules_client")&&A){var e=_.Px().resolve(_.IG),G=t.getModuleNameForType(A.page);(e=Hrh(e,[G]))?e.then(q):q()}else q()})};
_.J.isDownloadsPage=function(A){var t,f;return(A==null?void 0:(t=A.endpoint)==null?void 0:(f=t.browseEndpoint)==null?void 0:f.browseId)==="FEdownloads"};
_.J.setPlayerSyncInterval=function(A){var t;return _.l(function(f){if(f.nextAddress==1)return f.yield(_.Px().resolve(_.re),2);t=f.yieldResult;t.setUpPositionSyncInterval(A);_.LO(f)})};
_.J.performDataUpdate=function(A,t){_.M("kevlar_early_popup_close")||_.kJ(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var f=!A.filler;f&&(_.Wt("lps"),_.M("config_age_report_killswitch")||uRd());var X=Rm(A),Q,q=!1;if(_.M("kevlar_remove_page_dom_on_switch")){var e=t&&Rm(t);X===e&&(Q=this.getCurrentPage())}Q||(Q=H2(this.pagePool,X));f&&J9Q(this.pagePool.elementPoolPopulator,X);f&&!this.renderLoadingStateJobId&&(q=this.setActivePage(Q));if(Q){e=X==="watch";var G=
X==="shorts",N=X==="learning_journey_watch";_.M("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Q);if(e||G||N)Q.playerData=A.playerResponse;if(G){A.reelWatchSequenceResponse?Q.reelWatchSequenceResponse=A.reelWatchSequenceResponse:!Q.cachedReelWatchSequenceResponse||Q.reelWatchSequenceResponse||_.M("web_enable_delay_shorts_sequence_call_new")||(Q.reelWatchSequenceResponse=Q.cachedReelWatchSequenceResponse);A.reelWatchSequenceResponse&&(t==null?void 0:t.page)!=="shorts"&&
(Q.cachedReelWatchSequenceResponse=A.reelWatchSequenceResponse);Q.currentEndpoint=A.endpoint;var z;Q.isPreviousPageShorts=!!(t==null?0:(z=t.endpoint)==null?0:z.reelWatchEndpoint)}z=this.isDownloadsPage(A);var T=this.isDownloadsPage(t);z&&!T?this.setPlayerSyncInterval(6E5):!z&&T&&this.setPlayerSyncInterval();_.M("block_all_player_prefetch_requests")||this.preparePrefetchRequest(A,Q,f,e,G,N);kE_(_.Px().resolve(_.DS),t,A);if(_.M("enable_ai_companion")){var O;(O=_.Px().resolve(_.z7(_.fm)))==null||_.IMm(O,
this.getPersistentPanelSurface(X))}_.Rd(_.Px().resolve(_.PO));_.M("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Q);f?(f=typeof Q.loadPage,f==="function"?(Q.pageContext=pyw(this.contextSwitcher,Q,Q.data!==A.response),f=function(){Q.loadPage(A.response)},this.shouldApplySlideTransition&&Q.is==="ytd-browse"&&q&&(X==="learning"||this.isDifferentBrowseId(A==null?void 0:A.endpoint,t==null?void 0:t.endpoint))?K1j(this.viewTransitionManager,f):this.shouldRunWatchNextLoadedTransition(Q,
q)?w0Q(this.viewTransitionManager,f):f()):_.ai(new _.xj("b/38014653 ",[X,
Q.is,Q.nodeName,f,Q.isAttached,t&&Rm(t),this.hostElement.children.length])),_.Wt("pdl")):(Q.hidden=!0,A.response.filler=!0,Q.data=A.response,this.attachPage(Q));_.s9(this.hostElement,"yt-page-data-updated",{pageType:X})}_.jY(_.a6,function(){_.M("logging_avoid_blocking_during_navigation")&&_.mIz().transition("none");var c=H7h(),B=Q;if(A){var h=BVj(A),W=M7w(A),L;a:{if(A.playerResponse){var E=A.playerResponse,D;if((L=E.auxiliaryUi)==null?0:(D=L.messageRenderers)==null?0:D.upsellDialogRenderer){L=E.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(A.response&&(L=A.response,(E=L.overlay)==null?0:E.upsellDialogRenderer)){L=L.overlay.upsellDialogRenderer;break a}L=void 0}var S;var Z;D=(S=A.playerResponse)==null?void 0:(Z=S.auxiliaryUi)==null?void 0:Z.messageRenderers;S=(D==null?void 0:D.enforcementMessageViewModel)||(D==null?void 0:D.bkaEnforcementMessageViewModel);S=(S==null?void 0:S.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?S:void 0;var d;a:{if(A.response&&(Z=A.response,(d=Z.overlay)==null?0:d.commandWrapperPromoRenderer)){d=
Z.overlay.commandWrapperPromoRenderer;break a}d=void 0}$sl(c,h,W,L,S,d,B)}})};
_.J.preparePrefetchRequest=function(A,t,f,X,Q,q){var e,G,N,z,T,O,c,B,h,W,L,E,D,S,Z;return _.l(function(d){if(d.nextAddress==1)return!f||!(X||Q||q)||_.M("kevlar_disable_background_prefetch")&&_.r9(_.D2p)()===0?d.return():(e=_.aM(t))?d.yield(e.getPlayerPromise(),2):d.return();G=d.yieldResult;N=_.Px().resolve(_.z7(_.TD));if(!N)return d.return();if(Q)return z=_.K8(_.Yx),z62(z,(T=A.endpoint)==null?void 0:T.reelWatchEndpoint,t.reelWatchSequenceResponse,G,N),d.return();B=(O=A.response)==null?void 0:(c=O.responseContext)==
null?void 0:c.webResponseContextExtensionData;if(!B)return d.return();D=(h=A.response)==null?void 0:(W=h.contents)==null?void 0:(L=W.twoColumnWatchNextResults)==null?void 0:(E=L.autoplay)==null?void 0:E.autoplay;S=_.Px().resolve(_.zT);Z=_.K8(_.Yx);Pe3(Z,B,G,N,S,D);_.LO(d)})};
_.J.movePlayerToWatch=function(A){var t=this,f,X;return _.l(function(Q){f=H2(t.pagePool,"watch");X=f.getPlayerContainer();A.appendTo(X);_.LO(Q)})};
_.J.movePlayerToShorts=function(A){var t=this,f,X,Q;return _.l(function(q){f=H2(t.pagePool,"shorts");X=f.getPlayerContainer();(Q=A)==null||Q.appendTo(X,void 0,!0);_.LO(q)})};
_.J.getPlayerFromWatch=function(){var A=H2(this.pagePool,"watch");return _.aM(A)};
_.J.getPlayerFromShorts=function(){var A=H2(this.pagePool,"shorts");return _.aM(A)};
_.J.startLoadingWatch=function(){var A=this,t=H2(this.pagePool,"watch");this.renderLoadingStateJobId?(_.a6.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.M("web_watch_transition_enable_start_loading_watch_callsite")?gdw(this.viewTransitionManager,function(){A.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(t,"watch");
if(_.M("enable_ai_companion")){var f;(f=_.Px().resolve(_.z7(_.fm)))==null||_.IMm(f,this.getPersistentPanelSurface("watch"))}};
_.J.startLoadingShorts=function(){var A=H2(this.pagePool,"shorts");this.setActivePage(A,"shorts")};
_.J.startLoadingLearningJourney=function(){var A=H2(this.pagePool,"learning_journey_watch");this.setActivePage(A,"learning_journey_watch")};
_.J.getCurrentPage=function(){return this.currentPage};
_.J.getDestinationPageType=function(){return this.destinationPageType};
_.J.getCurrentData=function(){return this.data};
_.J.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.J.isOnShorts=function(){var A;return((A=this.currentPage)==null?void 0:A.is)==="ytd-shorts"};
_.J.isWatchPage=function(A){return!!A&&(A.is==="ytd-watch-flexy"||A.is==="ytd-watch-fixie"||A.is==="ytd-watch-grid")};
_.J.preparePage=function(A,t){var f=this,X=function(){var e=f.pagePool.preparePage(A,f.currentPage,t);e&&f.attachPage(e)},Q=function(e){_.gL(e,t);
_.K4(e)};
if(_.M("kevlar_enable_mss_page_modules_client")){var q=this.getModuleNameForType(A);if(q=Hrh(_.Px().resolve(_.IG),[q])){q.then(X.bind(this)).catch(Q.bind(this));return}}try{X()}catch(e){Q(e)}};
_.J.lazyPrepareCriticalPages=function(A,t){A=_.eI(t)||A;_.M("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(A).then(this.maybePrepareWatchPage.bind(this,A)):this.maybePrepareWatchPage(A)};
_.J.maybePrepareWatchPage=function(A){A==="watch"||A==="learning_journey_watch"&&_.M("web_watch_learning_journey_disable_lazy_pages")||_.jY(_.a6,this.preparePage.bind(this,"watch"))};
_.J.downloadPageModules=function(A){A=this.getModuleNameForType(A);var t=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);t.delete(A);var f=_.Px().resolve(_.IG);f.JSC$18947_loadModules(A);return f.JSC$18947_loadModules.apply(f,_.YV(t))};
_.J.renderPageLoadingState=function(A,t){this.preparePage(A,t);var f=H2(this.pagePool,A);f.loadingData&&(f.loadingData.endpoint=t);f.loading=!0;this.setActivePage(f,A);A!=="watch"&&A!=="learning_journey_watch"||_.s9(this.hostElement,"yt-guide-close")};
_.J.prepareForNavigation=function(A,t){var f=this;if(this.currentPage&&this.data){var X=_.eI(t)||A;this.destinationPageType=X;Rm(this.data)==X&&_.s9(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((A==="watch"||A==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.a6.cancelJob(this.renderLoadingStateJobId);_.Px().resolve(_.DS).deactivate(t);_.NB(_.a6,function(){var q=f.viewTransitionManager,e=f.currentPage;
if(q.isLockupToWatchTransitionEnabled&&q.isLockupThumbnailRegistrationEnabled&&e)if(q.registeredLockupThumbnail)q.lockupThumbnailRegisteredFromWatchEndpoint&&_.K4(new _.xj("Lockup thumbnail already registered from watch endpoint."));else{a:{var G=_.C(t,_.ZT);if(G==null?0:G.videoId){var N="yt-lockup-view-model ."+_.KXp(G.videoId)+" yt-thumbnail-view-model";e=e.querySelectorAll(N);if(e.length===1){G=e[0];break a}e.length>1?_.K4(new _.xj("Multiple LockupViewModel thumbnails found for videoId: "+G.videoId+
". Selector: "+N)):_.M("web_thumbnail_to_watch_transition_debug")&&_.K4(new _.xj("No LockupViewModel thumbnail found for videoId: "+G.videoId+". Selector: "+N))}G=void 0}G&&(q.registeredLockupThumbnail=G,q.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.Tbd(q,G))}});
var Q=this.data;this.renderLoadingStateJobId=_.NB(_.a6,function(){gdw(f.viewTransitionManager,function(){if(f.data!=Q){var q=H2(f.pagePool,A);f.setActivePage(q)}else f.renderPageLoadingState(A,t);f.renderLoadingStateJobId=0})},150)}};
_.J.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var A=new _.Cx(1);this.currentPage.pageDisposeJobs.forEach(function(t){_.ha(A,t)});
this.pageDisposeJobsets.set(this.currentPage,A)}};
_.J.flushPageDisposeJobset=function(A){var t=this.pageDisposeJobsets.get(A);t&&(t.flushJobs(),this.pageDisposeJobsets.delete(A))};
_.J.onYtStopOldPlayer=function(A,t){t=t===void 0?!1:t;var f,X=_.MG("kevlar_new_stop_old_player_logic_pages");if(_.M("kevlar_check_current_page_on_stop_old_player")&&(X.length===0||this.currentPage&&X.includes(this.currentPage.is)))if(this.data&&(f=Rm(this.data)),Rm(A)===f&&this.currentPage&&Rm(this.currentPage.data)!==f)var Q=_.aM(this.currentPage);else f=Rm(this.data),Q=H2(this.pagePool,f),Q=_.aM(Q);else this.data&&(f=Rm(this.data),Q=H2(this.pagePool,f),Q=_.aM(Q));if(Q){X=Rm(A);var q=H2(this.pagePool,
X);q=_.aM(q);if(Q==q)t&&!_.M("kevlar_disable_preemptive_player_reset")&&Q.resetForNewPlayback();else if(t=f==="watch"&&X!=="watch",!t||X==="shorts"||_.Unp()&&!Q8y(this.data,A))A=_.Px().resolve(_.DS),t&&A.isMiniplayerActive()&&A.pipController.getWindow()||Q.stop()}};
_.J.isDifferentBrowseId=function(A,t){A=_.C(A,_.GD);t=_.C(t,_.GD);return(A==null?void 0:A.browseId)!==(t==null?void 0:t.browseId)};
_.J.getPersistentPanelSurface=function(A){switch(A){case "watch":return"WATCH";default:return"APP"}};
_.PV.Object.defineProperties(Xm,{template:{configurable:!0,enumerable:!0,get:function(){return HD8()}}});
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Xm.prototype,"ytActionHandlerBehavior",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-page-manager"})],Xm);_.Y(Xm,"ytd-page-manager",function(){return HD8()},{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var ab3;var QS=function(){var A=_.F.apply(this,arguments)||this;A.useListItemStyles=_.M("web_list_item_style_for_menu_items");A.systemIcons=_.M("kevlar_system_icons");return A};
_.R(QS,_.F);_.J=QS.prototype;_.J.ready=function(){this.hostElement.addEventListener("tap",_.JY(this,this.onEndpointTapExtra))};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var A;(A=_.sF(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.J.onEndpointTapExtra=function(A){_.s9(this.hostElement,"iron-activate");var t=this.data.navigationEndpoint;t&&_.C(t,_.Rdz)&&(A.stopPropagation(),_.tl(this.hostElement,[t],this.hostElement))};
_.J.computeIcon=function(A){return A&&A.iconType?_.t7(A.iconType):""};
_.J.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.M("kevlar_legacy_browsers")&&_.Q_(this.hostElement)};
QS.prototype.forceUpdateStylesOnLegacyBrowsers=QS.prototype.forceUpdateStylesOnLegacyBrowsers;QS.prototype.onFocus=QS.prototype.onFocus;_.V([_.b(_.RH),_.H("design:type",Object)],QS.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.puh.YtConditionalRendererBehavior),_.H("design:type",Object)],QS.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.b(_.xa.YtEndpointBehavior),_.H("design:type",Object)],QS.prototype,"ytEndpointBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],QS.prototype,"data",void 0);_.V([_.n({computed:"computeIcon(data.icon)",value:""}),_.H("design:type",String)],QS.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],QS.prototype,"useIcons",void 0);_.V([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.H("design:type",Boolean)],QS.prototype,"hasSeparator",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],QS.prototype,"useListItemStyles",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],QS.prototype,"systemIcons",void 0);_.V([_.UQ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QS.prototype,"onFocus",null);_.V([_.ev("useIcons","hasSeparator"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QS.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Y(QS,"ytd-menu-navigation-item-renderer",function(){if(ab3===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);ab3=A}A=ab3;return A},{mode:1});var Kw2;var gKw=_.oC(_.e5("DOWNLOAD",{},"Download")),wcl=_.oC(_.e5("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),s$m=_.oC(_.e5("RETRY",{},"Retry")),kNh=_.oC(_.e5("PAUSE_DOWNLOADING",{},"Pause downloading")),rcm=_.oC(_.e5("RESUME_DOWNLOAD",{},"Resume download")),qC=function(){var A=_.F.apply(this,arguments)||this;A.primaryText=gKw;A.primaryIconType="OFFLINE_DOWNLOAD";A.hasSecondaryContent=!1;A.hasSeparator=!1;A.transferState="TRANSFER_STATE_UNKNOWN";A.isVideoDeletedByUser=!1;A.isHidden=!1;A.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return A};
_.R(qC,_.F);_.J=qC.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){this.primaryEntry.focus()};
_.J.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.J.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.J.getRemoveAction=function(){return"ACTION_REMOVE"};
_.J.sendOfflineAction=function(A){var t=this.data.serviceEndpoint;if(t){var f=_.C(t,_.Ga);f&&A&&(f.action=A);this.ytComponentBehavior.resolveCommand(t)}};
_.J.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=gKw,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=gKw;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=s$m;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=wcl;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=rcm;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=wcl;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
kNh;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=wcl;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=wcl;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=gKw,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.J.showHideButton=function(){var A;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((A=this.playerStateEntity)==null?void 0:A.adsState)==="ADS_STATE_PLAYING"};
_.J.isSecondaryEntryHidden=function(A,t){return A?!0:!t};
_.J.computeHasSeparator=function(){var A;return!((A=this.data)==null||!A.hasSeparator)};
_.J.computePlayerStateEntityKey=function(A){return A};
qC.prototype.showHideButton=qC.prototype.showHideButton;qC.prototype.onTransferStateChange=qC.prototype.onTransferStateChange;qC.prototype.onFocus=qC.prototype.onFocus;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],qC.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],qC.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],qC.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],qC.prototype,"primaryText",void 0);_.V([_.n(),_.H("design:type",String)],qC.prototype,"primaryIconType",void 0);_.V([_.n(),_.H("design:type",String)],qC.prototype,"primaryAction",void 0);_.V([_.n(),_.H("design:type",Object)],qC.prototype,"secondaryText",void 0);_.V([_.n(),_.H("design:type",String)],qC.prototype,"secondaryIconType",void 0);
_.V([_.n(),_.H("design:type",String)],qC.prototype,"secondaryAction",void 0);_.V([_.n(),_.H("design:type",Object)],qC.prototype,"hasSecondaryContent",void 0);_.V([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.H("design:type",Object)],qC.prototype,"hasSeparator",void 0);_.V([_.n({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.H("design:type",String)],qC.prototype,"playerStateEntityKey",void 0);
_.V([_.n({selector:_.to,selectorArgs:["playerStateEntityKey"]}),_.H("design:type",Object)],qC.prototype,"playerStateEntity",void 0);_.V([_.n({selector:_.LZ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.H("design:type",String)],qC.prototype,"transferState",void 0);_.V([_.n({selector:_.s4g,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.H("design:type",Object)],qC.prototype,"isVideoDeletedByUser",void 0);
_.V([_.n(),_.H("design:type",Object)],qC.prototype,"isHidden",void 0);_.V([_.n({selector:_.S$b,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.H("design:type",Object)],qC.prototype,"offlineabilityState",void 0);_.V([_.lo("#primary-entry"),_.H("design:type",Object)],qC.prototype,"primaryEntry",void 0);_.V([_.UQ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qC.prototype,"onFocus",null);
_.V([_.PU("transferState","isVideoDeletedByUser"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qC.prototype,"onTransferStateChange",null);_.V([_.PU("offlineabilityState","playerStateEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qC.prototype,"showHideButton",null);
_.Y(qC,"ytd-menu-service-item-download-renderer",function(){if(Kw2===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);Kw2=A}A=Kw2;return A},{mode:1});var Amw;var JF=function(){var A=_.F.apply(this,arguments)||this;A.useIcons=!1;A.systemIcons=_.M("kevlar_system_icons");A.useListItemStyles=_.M("web_list_item_style_for_menu_items");return A};
_.R(JF,_.F);_.J=JF.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var A;(A=_.sF(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.J.onTap=function(){_.r2(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var A=this.data.serviceEndpoint,t=this.data.command;if(A){var f,X=(f=this.data)==null?void 0:f.trackingParams;f=!!_.C(A,_.PcE);X&&f&&_.$I().dispatch(_.r0({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:X}}));this.ytComponentBehavior.resolveCommand(A)||_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}})}t&&(this.ytComponentBehavior.resolveCommand(t)||_.tl(this.hostElement,
[t],this.hostElement))};
_.J.computeIcon=function(A){return A&&A.iconType?_.t7(A.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.computeHasSeparator=function(){var A;return!((A=this.data)==null||!A.hasSeparator)};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.M("kevlar_legacy_browsers")&&_.Q_(this.hostElement)};
_.J.computeIsSelected=function(){var A;return!((A=this.data)==null||!A.isSelected)};
JF.prototype.forceUpdateStylesOnLegacyBrowsers=JF.prototype.forceUpdateStylesOnLegacyBrowsers;JF.prototype.onTap=JF.prototype.onTap;JF.prototype.onFocus=JF.prototype.onFocus;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],JF.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],JF.prototype,"ytComponentBehavior",void 0);
_.V([_.b(_.puh.YtConditionalRendererBehavior),_.H("design:type",Object)],JF.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],JF.prototype,"data",void 0);_.V([_.n({computed:"computeIcon(data.icon)",value:""}),_.H("design:type",String)],JF.prototype,"icon",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],JF.prototype,"useIcons",void 0);
_.V([_.n({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.H("design:type",Boolean)],JF.prototype,"hasSeparator",void 0);_.V([_.n({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.H("design:type",Boolean)],JF.prototype,"isSelected",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],JF.prototype,"systemIcons",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],JF.prototype,"useListItemStyles",void 0);
_.V([_.UQ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JF.prototype,"onFocus",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],JF.prototype,"onTap",null);_.V([_.ev("useIcons","hasSeparator"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JF.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Y(JF,"ytd-menu-service-item-renderer",function(){if(Amw===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);Amw=A}A=Amw;return A},{mode:2});var ts3;var Ua=function(){return _.F.apply(this,arguments)||this};
_.R(Ua,_.F);_.J=Ua.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var A=this;_.us(this,function(){A.postbox.openDialog();A.focus();_.s9(A.hostElement,"yt-refit")})};
_.J.focus=function(){this.postbox.focus()};
_.J.closePopup=function(){_.kJ(this.hostElement,"yt-close-popup-action")};
_.J.onYtCommentboxDismiss=function(){this.closePopup()};
Ua.prototype.onYtCommentboxDismiss=Ua.prototype.onYtCommentboxDismiss;Ua.prototype.onDataChanged=Ua.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ua.prototype,"data",void 0);_.V([_.n({value:function(){return _.e5("SBOX_INAPPROPRIATE_CANCEL")}}),
_.H("design:type",String)],Ua.prototype,"closeButtonAriaLabel",void 0);_.V([_.lo("#postbox"),_.H("design:type",Object)],Ua.prototype,"postbox",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ua.prototype,"onDataChanged",null);_.V([_.UQ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ua.prototype,"onYtCommentboxDismiss",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Ua);
_.Y(Ua,"ytd-backstage-post-dialog-popup-renderer",function(){if(ts3!==void 0)return ts3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ts3=A},{mode:1});var fOm;var XkQ;var Q2_=function(){return _.F.apply(this,arguments)||this};
_.R(Q2_,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Q2_.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Q2_.prototype,"data",void 0);_.V([_.WU({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],Q2_);
_.Y(Q2_,"yt-sender-id-section-renderer",function(){if(XkQ===void 0){var A=document.createElement("template");_.m(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);XkQ=A}A=
XkQ;return A},{mode:1});var qNA;var Jmy;var ec=function(){return _.F.apply(this,arguments)||this};
_.R(ec,_.F);ec.prototype.closePopup=function(){_.kJ(this.hostElement,"yt-close-popup-action")};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ec.prototype,"data",void 0);_.V([_.WU({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],ec);
_.Y(ec,"yt-community-post-section-renderer",function(){if(Jmy===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;qNA===void 0&&(qNA=document.createElement("template"));var X=qNA;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Jmy=A}A=Jmy;return A},{mode:2});var Ugm;var e82;var GCm;var lO3;var Nr8;var uK_;var z8m=function(){return _.F.apply(this,arguments)||this};
_.R(z8m,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],z8m.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],z8m.prototype,"data",void 0);_.V([_.WU({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],z8m);
_.Y(z8m,"yt-share-start-time-with-context-renderer",function(){if(uK_===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Nr8===void 0&&(Nr8=document.createElement("template"));var X=Nr8;f.call(t,X.content.cloneNode(!0),A.content.firstChild);uK_=A}A=uK_;return A},{mode:2});var Gi=function(){return _.F.apply(this,arguments)||this};
_.R(Gi,_.F);Gi.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Gi.prototype,"data",void 0);_.V([_.WU({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Gi);
_.Y(Gi,"yt-share-panel-title-v15-renderer",function(){if(lO3===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;GCm===void 0&&(GCm=document.createElement("template"));var X=GCm;f.call(t,X.content.cloneNode(!0),A.content.firstChild);lO3=A}A=lO3;return A},{mode:2});var l5=function(){return _.F.apply(this,arguments)||this};
_.R(l5,_.F);l5.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],l5.prototype,"data",void 0);_.V([_.WU({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],l5);
_.Y(l5,"yt-share-panel-header-renderer",function(){if(e82===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Ugm===void 0&&(Ugm=document.createElement("template"));var X=Ugm;f.call(t,X.content.cloneNode(!0),A.content.firstChild);e82=A}A=e82;return A},{mode:2});var PDd;var Tr2;var NC=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-open-popup-action":"onOpen"};return A};
_.R(NC,_.F);_.J=NC.prototype;_.J.attached=function(){this.onOpen()};
_.J.updateTimeSecs=function(A){this.currentTimeSecs=A};
_.J.computeTimeString=function(A){A=A.toString();var t=Math.floor(Number(A)/3600),f=Math.floor(Number(A)%3600%60);return(t>0?t+":":"")+_.lz(Math.floor(Number(A)%3600/60),t>0?2:1)+":"+_.lz(f,2)};
_.J.computeTimeStringA11y=function(A){return _.QHb({seconds:A})};
_.J.getTimeParam=function(){return V73(this.timeString)};
_.J.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var A={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},t;_.Zv(_.er(),(t=this.data)==null?void 0:t.trackingParams,A,7)};
_.J.onChangeStartAtTimestamp=function(){for(var A=this.startAtTimestamp.value.split(":"),t=0,f=1,X=A.length-1;X>=0;X--)t+=Number(A[X])*f,f*=60;this.updateTimeSecs(t);this.setTimestamp()};
_.J.onOpen=function(){var A=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var t=_.K1();t?t.getPlayerPromise().then(function(f){f=f.getCurrentTime();A.updateTimeSecs(f)}):Kf3()&&this.updateTimeSecs(Kf3())};
_.J.setTimestamp=function(){var A=Math.floor(this.currentTimeSecs);_.kJ(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!A,timestamp:A||""}])};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],NC.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],NC.prototype,"data",void 0);_.V([_.n({value:!1,notify:!0}),_.H("design:type",Boolean)],NC.prototype,"isStartAtChecked",void 0);_.V([_.n(),_.H("design:type",Number)],NC.prototype,"currentTimeSecs",void 0);
_.V([_.n({computed:"computeTimeString(currentTimeSecs)"}),_.H("design:type",String)],NC.prototype,"timeString",void 0);_.V([_.n({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.H("design:type",String)],NC.prototype,"timeStringA11y",void 0);_.V([_.lo("#start-at-timestamp"),_.H("design:type",Object)],NC.prototype,"startAtTimestamp",void 0);_.V([_.WU({is:"yt-start-at-renderer",disableElementRegistration:!0})],NC);
_.Y(NC,"yt-start-at-renderer",function(){if(Tr2===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;PDd===void 0&&(PDd=document.createElement("template"));var X=PDd;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Tr2=A}A=Tr2;return A},{mode:2});var ied;var Oed;var cmQ={};cmQ.YtBindingExpressionsBehavior={identity:_.I0,msg:function(A,t){t=t===void 0?{}:t;return _.e5(A,t,A)},
msgPlural:function(A,t){return _.Gt(A,t)},
getMusicIconFromType:function(A){return _.t7(A)}};var Br8;var Msl;var CDd;var h83=document.head,R8l=h83.appendChild,mg8;if(CDd===void 0){var bed=document.createElement("template");_.m(bed,'\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>');CDd=bed}mg8=CDd;R8l.call(h83,mg8.content);var u5=function(){var A=_.F.apply(this,arguments)||this;A.screenLayer=7;return A};
_.R(u5,_.F);u5.prototype.getScreenLayer=function(){return this.screenLayer};
u5.prototype.onTap=function(A){A&&A.detail&&(A.detail.x||A.detail.y)&&_.sF(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Al(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(A=this.getScreenLayer(),_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:A}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.PV.Object.defineProperties(u5.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()}}});
u5.prototype.onTap=u5.prototype.onTap;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],u5.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],u5.prototype,"data",void 0);_.V([_.y("data.title"),_.H("design:type",Object),_.H("design:paramtypes",[])],u5.prototype,"title",null);
_.V([_.y("data.serviceName"),_.H("design:type",String),_.H("design:paramtypes",[])],u5.prototype,"icon",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],u5.prototype,"onTap",null);_.V([_.WU({is:"yt-share-target-renderer",disableElementRegistration:!0})],u5);
_.Y(u5,"yt-share-target-renderer",function(){if(Msl===void 0){var A=document.createElement("template");_.m(A,'\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" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Br8===void 0&&(Br8=document.createElement("template"));var X=Br8;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Msl=A}A=Msl;return A},{mode:2});var WCc;var ymd;var zi=function(){var A=_.F.apply(this,arguments)||this;A.SHARE_TARGET_WIDTH=70;A.SHARE_TARGET_MARGIN_RIGHT=8;A.PAGE_SCROLL_SPEED=9;A.actionMap={"yt-share-panel-reset-action":"onReset_"};return A};
_.R(zi,_.F);_.J=zi.prototype;_.J.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.J.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.sF(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.sF(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.J.onReset_=function(){if(_.sF(this.hostElement).querySelector("#list")){var A=_.sF(this.hostElement).querySelector("#list");var t=_.sF(this.hostElement).querySelector("#list");var f=t.offsetLeft,X=t.offsetParent;X||_.oNb(t)!="fixed"||(X=_.Sn(t).documentElement);if(X){if(_.Qe&&!_.JJ(58)){var Q=_.wdw(X);f+=Q.left}else Number(_.lwT)>=8&&!(Number(_.lwT)>=9)&&(Q=_.wdw(X),f-=Q.left);t=_.KSw(X)?X.clientWidth-(f+t.offsetWidth):f}else t=f;i68(A,t);this.updateScrollButtons_()}};
_.J.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.J.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.J.onScrollWheel_=function(A){A.stopPropagation();A.preventDefault();var t=Tc_(_.sF(this.hostElement).querySelector("#list"));A=Math.abs(A.deltaX)>Math.abs(A.deltaY)?A.deltaX:A.deltaY;i68(_.sF(this.hostElement).querySelector("#list"),t+A);this.updateScrollButtons_()};
_.J.smoothScrollByOnePage_=function(A){var t=_.sF(this.hostElement).querySelector("#list"),f=(Math.floor(t.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,X=Tc_(t),Q=f*(A?1:-1),q=this.PAGE_SCROLL_SPEED,e=this.updateScrollButtons_.bind(this),G=0,N;(function T(){G+=q;N=G/f*2;i68(t,X+Q*(N<1?N*N:-N*N+4*N-2));G<f?window.requestAnimationFrame(T):e()})()};
_.J.updateScrollButtons_=function(){var A=Tc_(_.sF(this.hostElement).querySelector("#list")),t=_.sF(this.hostElement).querySelector("#list").scrollWidth-_.sF(this.hostElement).querySelector("#list").clientWidth;_.sF(this.hostElement).querySelector("#scroll-button-back").hidden=A<=0;_.sF(this.hostElement).querySelector("#scroll-button-forward").hidden=A>=t};
zi.prototype.onScrollWheel_=zi.prototype.onScrollWheel_;zi.prototype.onDataChanged_=zi.prototype.onDataChanged_;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],zi.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],zi.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(cmQ.YtBindingExpressionsBehavior),_.H("design:type",Object)],zi.prototype,"ytBindingExpressionsBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],zi.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zi.prototype,"onDataChanged_",null);_.V([_.UQ("wheel"),_.H("design:type",Function),_.H("design:paramtypes",[WheelEvent]),_.H("design:returntype")],zi.prototype,"onScrollWheel_",null);
_.V([_.WU({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],zi);
_.Y(zi,"yt-third-party-share-target-section-renderer",function(){if(ymd===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;WCc===void 0&&(WCc=document.createElement("template"));var X=WCc;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ymd=A}A=ymd;return A},{mode:2});var PZ=function(){return _.F.apply(this,arguments)||this};
_.R(PZ,_.F);PZ.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"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],PZ.prototype,"data",void 0);_.V([_.WU({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],PZ);
_.Y(PZ,"yt-third-party-network-section-renderer",function(){if(Oed===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;ied===void 0&&(ied=document.createElement("template"));var X=ied;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Oed=A}A=Oed;return A},{mode:2});_.Hn(_.I(function(A){return _.u("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.u("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.u(_.P1,{data:function(){return A.data().firstPartyItems}},{listItemViewModel:_.zN})))},"lj"),"first-party-network-section-view-model",{props:{data:_.PS}});var vQl=(0,_.I4l)(_.$G.share,{parentClickTrackingParamsSelector:function(A){return A.parentClickTrackingParams}});var LC2=_.dS(["data:image/svg+xml;charset=UTF-8;base64,",""]),Ti=function(){var A=_.F.apply(this,arguments)||this;A.screenLayer=7;A.qrCodeEnabled=_.M("web_enable_sharing_qr_code");A.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return A};
_.R(Ti,_.F);_.J=Ti.prototype;_.J.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.J.attached=function(){this.JSC$20513_scroller&&(this.JSC$20513_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20513_scroller.attached&&typeof this.JSC$20513_scroller.attached==="function"&&this.JSC$20513_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.J.onDataChanged=function(){var A=this,t;(t=this.data)!=null&&t.contents&&(this.hostElement.setAttribute("links-only","true"),_.AY(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.us(this,function(){_.s9(A.hostElement,"yt-refit");A.focusSharePanelHeader()}))};
_.J.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.J.handleSetTimestamp=function(A){var t=this.shortUrl();A.isSet&&(t=_.gU(t,"t",A.timestamp));this.maybeRenderQrCode(t)};
_.J.shortUrl=function(){var A,t=(A=this.data)==null?void 0:A.contents;if(t)for(A=0;A<t.length;A++){var f=void 0,X=void 0;if((f=t[A])==null?0:(X=f.thirdPartyNetworkSection)==null?0:X.copyLinkContainer){var Q=X=f=void 0;return(Q=_.C((f=t[A])==null?void 0:(X=f.thirdPartyNetworkSection)==null?void 0:X.copyLinkContainer,rs2))==null?void 0:Q.shortUrl}}};
_.J.maybeRenderQrCode=function(A){var t=this,f,X,Q,q,e,G,N,z,T;return _.l(function(O){if(O.nextAddress==1){f=_.sF(t.hostElement).querySelector("#qr-code");if(!t.qrCodeEnabled||!A)return f&&(f.style.display="none"),O.return();X=_.jeu(_.Px().resolve(_.fI),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Q=document.createElement("div");return typeof X==="function"?(X(Q),O.jumpTo(2)):O.yield(X,3)}O.nextAddress!=2&&(q=O.yieldResult,q(Q));N=(e=Q)==null?void 0:(G=e.firstChild)==null?void 0:G.firstChild;
z=document.createElement("img");T=_.eNg(LC2,btoa(N.outerHTML));z.onload=function(){var c={canvas:f,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:z},B=new O83;Ry_(B,A);maj(B,!1,b8Q(B));var h=B.modules,W=Object.assign({},Rgj,c);h=structuredClone(h);c=h.length;var L,E=(L=W.canvas)!=null?L:document.createElement("canvas");L=W.cellSize;B=W.logo;var D,S=(D=W.logoSize)!=null?D:Math.floor(c/4);c%2!==S%2&&S++;var Z=W.logoPadding,d=W.backgroundColor;D=c*L;var K=
W.width,k=0;K&&(k=W.padding,k=Math.ceil(k*D/(K-k*2)),E.style.width=K+"px",E.style.height=K+"px");E.width!==D+k*2&&(E.width=D+k*2);E.height!==D+k*2&&(E.height=D+k*2);D=E.getContext("2d");W.autoClear&&D.clearRect(0,0,E.width,E.height);D.fillStyle=d;D.beginPath();D.roundRect(0,0,E.width,E.height,W.borderRadius);D.fill();D.save();D.translate(k,k);if(B)for(E=Math.floor(c-S)/2-Z,Z=Math.floor(c+S)/2+Z,d=E;d<Z;d++)for(K=E;K<Z;K++)h[d][K]=!1;for(E=0;E<c;E++)for(Z=0;Z<c;Z++)(E<7&&Z<7||E<7&&Z>=c-7||E>=c-7&&
Z<7)&&(h[E][Z]=!1);var Gz;E=(Gz=W.markerColor)!=null?Gz:W.color;y08(D,0,0,L,E);y08(D,L*(c-7),0,L,E);y08(D,0,L*(c-7),L,E);switch(W.cellStyle){case 0:Gz=h;h=Gz.length;E=W.cellSize;D.beginPath();for(Z=0;Z<h;Z++)for(d=0;d<h;d++)Gz[Z][d]&&D.rect(Z*E,d*E,E,E);D.fillStyle=W.color;D.fill();break;case 1:Gz=h;h=Gz.length;E=W.cellSize;Z=E*W.relativeCircleSize;D.fillStyle=W.color;D.beginPath();for(W=0;W<h;W++)for(d=0;d<h;d++)Gz[W][d]&&(D.beginPath(),D.ellipse((W+.5)*E,(d+.5)*E,Z/2,Z/2,0,0,2*Math.PI),D.fill());
D.fill();break;case 2:Gz=h;h=Gz.length;E=W.cellSize;D.fillStyle=W.color;W=[[1,1],[-1,1],[-1,-1],[1,-1]];D.beginPath();for(Z=0;Z<h;Z++)for(d=0;d<h;d++)if(Gz[Z][d])D.roundRect(Z*E,d*E,E,E,E/2),Z+1<h&&Gz[Z+1][d]&&D.rect(Z*E+E/2,d*E,E,E),d+1<h&&Gz[Z][d+1]&&D.rect(Z*E,d*E+E/2,E,E);else{K=Z*E+E/2;k=d*E+E/2;for(var Tz=0;Tz<4;Tz++){var y5=_.U(W[Tz]),cp=y5.next().value;y5=y5.next().value;Z+cp>=0&&Z+cp<h&&d+y5>=0&&d+y5<h&&Gz[Z+cp][d]&&Gz[Z][d+y5]&&Gz[Z+cp][d+y5]&&(cp=Tz*Math.PI/2,y5=E/2,D.moveTo(K+y5*Math.cos(cp),
k+y5*Math.sin(cp)),D.arc(K,k,E/2,cp,cp+Math.PI/2,!1),D.lineTo(K+y5*(Math.cos(cp)-Math.sin(cp)),k+y5*(Math.cos(cp)+Math.sin(cp))),D.lineTo(K+y5*Math.cos(cp),k+y5*Math.sin(cp)))}}D.fill()}B&&D.drawImage(B,(c-S)*L/2,(c-S)*L/2,S*L,S*L);D.restore();f.style.removeProperty("display")};
z.src=_.j3(T);_.LO(O)})};
_.J.hasCommunityPostRenderer=function(){var A,t,f,X;return!!((A=this.data)==null?0:(t=A.header)==null?0:(f=t.sharePanelHeaderRenderer)==null?0:(X=f.communityPost)==null?0:X.communityPostSectionRenderer)};
_.J.onTapClose=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.J.getScreenLayer=function(){return this.screenLayer};
_.J.logSharePanelPage=function(){if(!_.M("enable_share_panel_navigation_logging_fix_on_web")){var A;if((A=this.data)!=null&&A.trackingParams){A=this.data.trackingParams;var t=this.parentClickTrackingParams;t=t?_.zV(t):void 0;var f=_.er();_.xz(f,21760,t,{layer:7,parentLayer:0});f.graftServerVe(A,void 0,7);_.$I().dispatch(_.r0({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Ti.prototype.onDataChanged=Ti.prototype.onDataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Ti.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Ti.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Ti.prototype,"data",void 0);_.V([_.n({value:_.e5("SBOX_INAPPROPRIATE_CANCEL")}),_.H("design:type",String)],Ti.prototype,"closeButtonAriaLabel",void 0);_.V([_.lo("yt-share-panel-header-renderer"),_.H("design:type",HTMLElement)],Ti.prototype,"header",void 0);_.V([_.n({selector:vQl.parentClickTrackingParamsSelector}),_.H("design:type",String)],Ti.prototype,"parentClickTrackingParams",void 0);_.V([_.n(),_.H("design:type",Object)],Ti.prototype,"qrCodeEnabled",void 0);
_.V([_.lo("#scroller"),_.H("design:type",Object)],Ti.prototype,"JSC$20513_scroller",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ti.prototype,"onDataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Ti);
_.Y(Ti,"ytd-unified-share-panel-renderer",function(){if(fOm!==void 0)return fOm;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return fOm=A},{mode:1});var pk8;var i5=function(){var A=_.F.apply(this,arguments)||this;A.modernModal=!0;return A};
_.R(i5,_.F);i5.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
i5.prototype.computeShouldHideOldButtons=function(){var A;return!((A=this.data)==null?0:A.button)};
_.PV.Object.defineProperties(i5.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var A,t;return(A=this.data)==null?void 0:(t=A.button)==null?void 0:t.buttonRenderer}}});
_.V([_.n(),_.H("design:type",Object)],i5.prototype,"data",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],i5.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],i5.prototype,"modernModal",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],i5.prototype,"buttonRendererData",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],i5);
_.Y(i5,"ytd-modal-with-title-and-button-renderer",function(){if(pk8!==void 0)return pk8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return pk8=A},{mode:1});var EQ3;var Oa=function(){return _.F.apply(this,arguments)||this};
_.R(Oa,_.F);Oa.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("page-changed",this.page))};
Oa.prototype.pageChangedForBinding=Oa.prototype.pageChangedForBinding;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Oa.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],Oa.prototype,"page",void 0);_.V([_.ev("page"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Oa.prototype,"pageChangedForBinding",null);
_.V([_.y_({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Oa);
_.Y(Oa,"ytd-account-item-section-header-renderer",function(){if(EQ3!==void 0)return EQ3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return EQ3=A},{mode:1});var nQ2;var cZ=function(){return _.F.apply(this,arguments)||this};
_.R(cZ,_.F);cZ.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"}}}};
cZ.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],cZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ba),_.H("design:type",Object)],cZ.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cZ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!1}),_.H("design:type",Function)],cZ.prototype,"onAccountItemTap",void 0);
_.V([_.y_({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],cZ);
_.Y(cZ,"ytd-account-item-section-renderer",function(){if(nQ2!==void 0)return nQ2;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return nQ2=A},{mode:1});var Dgl;var FCd;var IO2=function(){return _.F.apply(this,arguments)||this};
_.R(IO2,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],IO2.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],IO2.prototype,"data",void 0);_.V([_.y_({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],IO2);
_.Y(IO2,"ytd-accounts-dialog-header-renderer",function(){if(FCd!==void 0)return FCd;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return FCd=A},{mode:1});var xgA;var BZ=function(){return _.F.apply(this,arguments)||this};
_.R(BZ,_.F);BZ.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],BZ.prototype,"data",void 0);_.V([_.y_({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],BZ);
_.Y(BZ,"ytd-google-account-header-renderer",function(){if(xgA!==void 0)return xgA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return xgA=A},{mode:1});var MC=function(){return _.F.apply(this,arguments)||this};
_.R(MC,_.F);MC.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"}}}};
MC.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("page-changed",this.page))};
MC.prototype.pageChangedForBinding=MC.prototype.pageChangedForBinding;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],MC.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],MC.prototype,"page",void 0);
_.V([_.ev("page"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MC.prototype,"pageChangedForBinding",null);_.V([_.y_({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],MC);
_.wR()(MC,"ytd-account-section-list-renderer",function(){if(Dgl===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);Dgl=A}A=Dgl;return A},{allowedProps:["data"],
mode:1});var j2A;var Co=function(){var A=_.F.apply(this,arguments)||this;A.enableHandlesAccountMenuSwitcher=_.M("enable_handles_account_menu_switcher");return A};
_.R(Co,_.F);Co.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Co.prototype.dataChanged=Co.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Co.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Co.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.V([_.lo("#avatar"),_.H("design:type",Object)],Co.prototype,"avatar",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Co.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Co);
_.wR()(Co,"ytd-active-account-header-renderer",function(){if(j2A===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);j2A=A}A=j2A;return A},{allowedProps:["data"],
mode:1});var YNA;var Vsl;var hF=function(){return _.F.apply(this,arguments)||this};
_.R(hF,_.F);hF.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hF.prototype.onBackTap=function(){_.s9(this.hostElement,"yt-menu-back-tapped")};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],hF.prototype,"data",void 0);_.V([_.y_({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],hF);
_.wR()(hF,"ytd-simple-menu-header-renderer",function(){if(Vsl===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);Vsl=A}A=Vsl;return A},{allowedProps:["data"],
mode:2});var Ze2;var oQm=function(){return _.F.apply(this,arguments)||this};
_.R(oQm,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],oQm.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],oQm.prototype,"data",void 0);_.V([_.y_({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],oQm);
_.Y(oQm,"ytd-comment-video-thumbnail-header-renderer",function(){if(Ze2!==void 0)return Ze2;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Ze2=A},{mode:1});var dg2;var SNy=function(){return _.F.apply(this,arguments)||this};
_.R(SNy,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],SNy.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],SNy.prototype,"data",void 0);_.V([_.y_({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],SNy);
_.Y(SNy,"ytd-abuse-type-selector-renderer",function(){if(dg2!==void 0)return dg2;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return dg2=A},{mode:1});var $gl;var Hej=(0,_.I4l)(_.$G.reportChannelAbuse,{isVideoIdSelectedSelector:function(A,t){return t in A.selectedVideoIds},
additionalContextSelector:function(A){return A.additionalContext},
impersonatedChannelUrlSelector:function(A){return A.impersonatedChannelUrl},
reportChannelAbuseSelector:function(A){return A}});var R_=function(){return _.F.apply(this,arguments)||this};
_.R(R_,_.F);R_.prototype.attached=function(){var A=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){A.additionalContextInput.focusTextInput()})};
R_.prototype.handleAdditionalContextChanged=function(){var A=this;_.Ig(this,"ytd-report-channel-additional-context-update",function(){A.ytdReduxBehavior.dispatch(_.r0({type:"ADDITIONAL_CONTEXT_UPDATED",payload:A.additionalContext}))},300)};
R_.prototype.updateAdditionalContextFromBinding=function(A){this.additionalContext=A.detail.value};
R_.prototype.handleAdditionalContextChanged=R_.prototype.handleAdditionalContextChanged;_.V([_.b(_.qT),_.H("design:type",Object)],R_.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",String)],R_.prototype,"additionalContext",void 0);_.V([_.n({selector:Hej.additionalContextSelector}),_.H("design:type",String)],R_.prototype,"additionalContextRedux",void 0);_.V([_.n(),_.H("design:type",Object)],R_.prototype,"data",void 0);
_.V([_.lo("yt-text-input-form-field-renderer"),_.H("design:type",Object)],R_.prototype,"additionalContextInput",void 0);_.V([_.ev("additionalContext"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R_.prototype,"handleAdditionalContextChanged",null);_.V([_.y_({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],R_);
_.Y(R_,"ytd-report-channel-modal-additional-context-renderer",function(){if($gl!==void 0)return $gl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return $gl=A},{mode:1});var aOc;var mF=function(){var A=_.F.apply(this,arguments)||this;A.nextButtonDisabled=null;A.submitEndpoint=null;A.navigationEndpoint=null;A.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return A};
_.R(mF,_.F);_.J=mF.prototype;_.J.computeNextButtonData=function(A,t,f){var X={};t&&(X.navigationEndpoint=t);f&&(X.serviceEndpoint=f);A&&A.buttonRenderer&&_.VG.extend(X,A.buttonRenderer);return X};
_.J.handleReportChannelModalDisableNextButtonAction=function(A){this.setNextButtonIsDisabled(A)};
_.J.handleReportFormEndpointUpdateAction=function(A){this.setNextButtonIsDisabled(!!A.disableSubmitButton);this.resetEndpointData();A.submitEndpoint?this.submitEndpoint=A.submitEndpoint:A.submitNavigationEndpoint&&(this.navigationEndpoint=A.submitNavigationEndpoint)};
_.J.handleSignalActionSubmitForm=function(){var A,t=Object.keys(((A=this.reportChannelAbuseForm)==null?void 0:A.selectedVideoIds)||{}),f;A=((f=this.reportChannelAbuseForm)==null?void 0:f.additionalContext)||"";var X;f=((X=this.reportChannelAbuseForm)==null?void 0:X.impersonatedChannelUrl)||"";var Q;if((Q=this.data)==null?0:Q.submitEndpoint){t={impersonated_channel_url:f,text:A,video_ids:t};var q;_.Px().resolve(_.i2).resolveCommand((q=this.data)==null?void 0:q.submitEndpoint,{form:Object.assign({},
t,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.J.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.J.onYtServiceRequestError=function(A){this.setNextButtonIsDisabled(!1);_.jL(this.hostElement,A.detail.error.message)};
_.J.setNextButtonIsDisabled=function(A){this.set("data.nextButton.buttonRenderer.isDisabled",A)};
_.J.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
mF.prototype.onYtServiceRequestError=mF.prototype.onYtServiceRequestError;mF.prototype.onYtServiceRequestCompleted=mF.prototype.onYtServiceRequestCompleted;_.V([_.n(),_.H("design:type",Object)],mF.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],mF.prototype,"nextButtonDisabled",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],mF.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],mF.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],mF.prototype,"submitEndpoint",void 0);_.V([_.n(),_.H("design:type",Object)],mF.prototype,"navigationEndpoint",void 0);_.V([_.n({selector:Hej.reportChannelAbuseSelector}),_.H("design:type",Object)],mF.prototype,"reportChannelAbuseForm",void 0);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mF.prototype,"onYtServiceRequestCompleted",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mF.prototype,"onYtServiceRequestError",null);_.V([_.y_({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],mF);
_.Y(mF,"ytd-report-channel-modal-footer-renderer",function(){if(aOc!==void 0)return aOc;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return aOc=A},{mode:1});var KCc;var b5=function(){var A=_.F.apply(this,arguments)||this;A.boundOnTapDismissButton=function(){A.closePopup()};
return A};
_.R(b5,_.F);b5.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
b5.prototype.handleDataChanged=function(){_.eY(this.hostElement)};
b5.prototype.closePopup=function(){_.kJ(this.hostElement,"yt-close-popup-action")};
b5.prototype.handleDataChanged=b5.prototype.handleDataChanged;_.V([_.n(),_.H("design:type",Object)],b5.prototype,"boundOnTapDismissButton",void 0);_.V([_.n(),_.H("design:type",Object)],b5.prototype,"data",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b5.prototype,"handleDataChanged",null);_.V([_.y_({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],b5);
_.Y(b5,"ytd-report-channel-modal-header-renderer",function(){if(KCc!==void 0)return KCc;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return KCc=A},{mode:1});var gQ2;var WZ=function(){var A=_.F.apply(this,arguments)||this;A.autoValidate=!1;A.invalid=!1;A.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return A};
_.R(WZ,_.F);_.J=WZ.prototype;_.J.attached=function(){var A=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){A.channelUrlInput.focusTextInput()})};
_.J.disableNextButton=function(A){_.kJ(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[A])};
_.J.handleImpersonatedChannelUrlChanged=function(){var A=this;this.disableNextButton(!0);this.invalid=!1;_.Ig(this,"ytd-report-channel-impersonated-channel-update",function(){var t=A.impersonatedChannelUrl.trim();A.ytdReduxBehavior.dispatch(_.r0({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:t}));var f;((f=A.data)==null?0:f.submitEndpoint)&&t&&_.Px().resolve(_.i2).resolveCommand(A.data.submitEndpoint,{form:{impersonated_channel_url:t,element:A.hostElement}})},500)};
_.J.handleModifyReportFormCommand=function(A){this.invalid=this.get("modifyReportFormCommand.action",A)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.J.updateInvalidFromBinding=function(A){this.invalid=A.detail.value};
_.J.updateImpersonatedChannelUrlFromBinding=function(A){this.impersonatedChannelUrl=A.detail.value};
WZ.prototype.handleImpersonatedChannelUrlChanged=WZ.prototype.handleImpersonatedChannelUrlChanged;_.V([_.b(_.qT),_.H("design:type",Object)],WZ.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],WZ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],WZ.prototype,"autoValidate",void 0);_.V([_.n(),_.H("design:type",Object)],WZ.prototype,"invalid",void 0);
_.V([_.n(),_.H("design:type",String)],WZ.prototype,"impersonatedChannelUrl",void 0);_.V([_.n({selector:Hej.impersonatedChannelUrlSelector}),_.H("design:type",String)],WZ.prototype,"impersonatedChannelUrlRedux",void 0);_.V([_.n(),_.H("design:type",Object)],WZ.prototype,"data",void 0);_.V([_.lo("#text-input"),_.H("design:type",Object)],WZ.prototype,"channelUrlInput",void 0);
_.V([_.ev("impersonatedChannelUrl"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WZ.prototype,"handleImpersonatedChannelUrlChanged",null);_.V([_.y_({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],WZ);
_.Y(WZ,"ytd-report-channel-modal-impersonation-renderer",function(){if(gQ2!==void 0)return gQ2;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return gQ2=A},{mode:1});var wkw;var s22;var yS=function(){return _.F.apply(this,arguments)||this};
_.R(yS,_.F);yS.prototype.onCheckboxToggled=function(A){var t,f,X=(f=_.C((t=this.data)==null?void 0:t.video,_.NN))==null?void 0:f.videoId;X&&this.ytdReduxBehavior.dispatch(A.target.checked?_.r0({type:"VIDEO_SELECTED",payload:X}):_.r0({type:"VIDEO_UNSELECTED",payload:X}))};
yS.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.PV.Object.defineProperties(yS.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var A,t=(A=this.data)==null?void 0:A.video;if(!t)return{};var f;A=(f=_.C(t,_.NN))==null?void 0:f.navigationEndpoint;if(!A)return t;_.C(A==null?void 0:A.commandMetadata,_.Jl)&&(_.C(A.commandMetadata,_.Jl).ignoreNavigation=!0);return t}}});
_.V([_.n({reflectToAttribute:!0,selector:Hej.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.H("design:type",Boolean)],yS.prototype,"checked",void 0);_.V([_.n(),_.H("design:type",Object)],yS.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],yS.prototype,"video",null);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],yS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],yS.prototype,"ytdReduxBehavior",void 0);_.V([_.y_({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],yS);
_.Y(yS,"ytd-selectable-video-renderer",function(){if(s22!==void 0)return s22;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return s22=A},{mode:1});var vZ=function(){var A=_.F.apply(this,arguments)||this;A.monitorScroll=!0;return A};
_.R(vZ,_.F);vZ.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],vZ.prototype,"data",void 0);_.V([_.y_({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],vZ);
_.Y(vZ,"ytd-selectable-video-list-renderer",function(){if(wkw!==void 0)return wkw;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return wkw=A},{mode:1});var kCy;_.C1("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Lo=function(){return _.F.apply(this,arguments)||this};
_.R(Lo,_.F);Lo.prototype.onChange=function(A){if(A=_.oO(A).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.M("kevlar_command_handler_migration_killswitch"))_.tl(this.hostElement,A,this.hostElement);else{A=_.U(A);for(var t=A.next();!t.done;t=A.next())this.ytComponentBehavior.resolveCommand(t.value)}};
Lo.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Lo.prototype.updateDataToggledFromBinding=function(A){this.set("data.toggled",A.detail.value)};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Lo.prototype,"data",void 0);_.V([_.n({computed:"isEnabled(data)"}),_.H("design:type",Boolean)],Lo.prototype,"enabled",void 0);_.V([_.y_({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Lo);
_.Y(Lo,"ytd-toggle-item-renderer",function(){if(kCy!==void 0)return kCy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return kCy=A},{mode:1});var rm3;var ADl;var tV3;var po=function(){var A=_.F.apply(this,arguments)||this;A.setVisible=!1;A.boundOnSubmitButtonClick=function(){A.onSubmitButtonClick()};
A.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return A};
_.R(po,_.F);po.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}}}}}};
po.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
po.prototype.onSubmitButtonClick=function(){var A;((A=this.data)==null?0:A.submitEndpoint)&&!_.M("enable_ytc_refunds_submit_form_signal_action")&&_.Al(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
po.prototype.handleSignalActionSubmitForm=function(){var A;((A=this.data)==null?0:A.submitEndpoint)&&_.Al(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.PV.Object.defineProperties(po.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.hiddenByDefault)&&!this.setVisible}}});
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],po.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],po.prototype,"setVisible",void 0);_.V([_.n(),_.H("design:type",Object)],po.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],po.prototype,"surveyFeedbackData",void 0);_.V([_.n(),_.H("design:type",Object)],po.prototype,"boundOnSubmitButtonClick",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data","setVisible"),_.H("design:type",Object),_.H("design:paramtypes",[])],po.prototype,"visibilityHidden",null);_.V([_.WU({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],po);
_.Y(po,"yt-flow-footer-renderer",function(){if(tV3===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;ADl===void 0&&(ADl=document.createElement("template"));var X=ADl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);tV3=A}A=tV3;return A},{mode:2});var f13=(0,_.I4l)(_.$G.ypc,{surveyFeedbackDataSelector:function(A){return A.surveyFeedbackData}});var Ea=function(){return _.F.apply(this,arguments)||this};
_.R(Ea,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Ea.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ea.prototype,"data",void 0);_.V([_.n({selector:f13.surveyFeedbackDataSelector}),_.H("design:type",Object)],Ea.prototype,"surveyFeedbackData",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Ea);
_.Y(Ea,"ytd-flow-footer-renderer",function(){if(rm3!==void 0)return rm3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return rm3=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var Xwj;var QAj;var no=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return A};
_.R(no,_.F);_.J=no.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.ho("multiPageMenuSectionItems")}}};
_.J.handleHideEnclosingAction_=function(A){if(this.data&&this.data.items)for(var t=0;t<this.data.items.length;t++){var f=this.data.items[t].notificationRenderer;if(f&&f.notificationId==A.hideEnclosingAction.notificationId){this.splice("data.items",t,1);_.kJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.J.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.AY(this.hostElement,"hidden",!0)};
_.J.updateMenu_=function(A){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&A&&!A.doNotRefreshInbox){A=this.data.continuations;for(var t=0;t<A.length;t++)if(A[t].invalidationContinuationData){var f=void 0;var X=(f=A[t].invalidationContinuationData)==null?void 0:f.continuation;break}A=_.VG.clone(this.data.continuationUpdateEndpoint||null);A.continuation=X;A.click_tracking_params=this.data.trackingParams;_.Al(this.hostElement,[A])}};
_.J.onServiceRequestCompleted_=function(A,t){if(this.data&&(A=t.actions)){t=0;for(var f=A.length;t<f;t++){var X=_.C(A[t],_.YUC);if(!X)break;if((X.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||X.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&X.continuationItems&&this.data.items){var Q=this.data.items.length-1;this.data.items[Q].continuationItemRenderer&&(X=["data.items",Q,1].concat(X.continuationItems),this.splice.apply(this,X))}}}};
no.prototype.onServiceRequestCompleted_=no.prototype.onServiceRequestCompleted_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],no.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],no.prototype,"data",void 0);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],no.prototype,"onServiceRequestCompleted_",null);_.V([_.WU({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],no);
_.wR()(no,"yt-multi-page-menu-section-renderer",function(){if(QAj===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Xwj===void 0&&(Xwj=document.createElement("template"));var X=Xwj;f.call(t,X.content.cloneNode(!0),A.content.firstChild);QAj=A}A=QAj;return A},{allowedProps:["data"],
mode:2});var qyh;var JDj;var D5=function(){return _.F.apply(this,arguments)||this};
_.R(D5,_.F);D5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.PV.Object.defineProperties(D5.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.progress)==null?0:this.data.progress*100}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],D5.prototype,"data",void 0);_.V([_.y("data.progress"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],D5.prototype,"showProgressBar",null);
_.V([_.y("data.progress"),_.H("design:type",Number),_.H("design:paramtypes",[])],D5.prototype,"progress",null);_.V([_.WU({is:"yt-flow-header-renderer",disableElementRegistration:!0})],D5);
_.Y(D5,"yt-flow-header-renderer",function(){if(JDj===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;qyh===void 0&&(qyh=document.createElement("template"));var X=qyh;f.call(t,X.content.cloneNode(!0),A.content.firstChild);JDj=A}A=JDj;return A},{mode:2});var U8A;var eJ8;var Fm=function(){return _.F.apply(this,arguments)||this};
_.R(Fm,_.F);Fm.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Fm.prototype,"data",void 0);_.V([_.WU({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Fm);
_.Y(Fm,"yt-post-confirmation-flow-step-renderer",function(){if(eJ8===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;U8A===void 0&&(U8A=document.createElement("template"));var X=U8A;f.call(t,X.content.cloneNode(!0),A.content.firstChild);eJ8=A}A=eJ8;return A},{mode:2});var G58;var l1m;var I_=function(){return _.F.apply(this,arguments)||this};
_.R(I_,_.F);
I_.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"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],I_.prototype,"data",void 0);_.V([_.WU({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],I_);
_.Y(I_,"yt-refund-confirmation-flow-step-renderer",function(){if(l1m===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;G58===void 0&&(G58=document.createElement("template"));var X=G58;f.call(t,X.content.cloneNode(!0),A.content.firstChild);l1m=A}A=l1m;return A},{mode:2});var N3l=_.I(function(A){var t=A.data;return _.u("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.u("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.u(_.YA,{data:function(){return{thumbnails:[{url:t().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.u("div",{class:"profileBadgeViewModelContent"},_.u("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return t().badgeDesc}),_.u(_.P,{cond:function(){return t().badgeSubtitle},
then:function(){return _.u("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return t().badgeSubtitle})}})))},"mj");
N3l.idomCompat=!0;var uh8=_.I(function(A){var t=A.data;return _.u("yt-comment-interaction-view-model",{el:_.ZY(_.W1(function(){return t().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.u("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return t().onTapA11yLabel},
"on:keydown":_.jEg(),tabindex:0},_.u("div",{class:"ytCommentInteractionViewModelHeader"},_.u("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return t().headerPrefix},' "',function(){return t().videoTitle}),_.u("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.u("div",{class:"ytCommentInteractionViewModelContent"},_.u("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return t().commentContent}),_.u("div",{class:"ytCommentInteractionViewModelChevron"},
_.u(_.YA,{data:function(){return{thumbnails:[{url:t().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"nj");
uh8.idomCompat=!0;var zJQ=_.I(function(A){var t=A.data;return _.u("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.u(_.P1,{data:function(){return t().avatar}},{avatarViewModel:_.QK}),_.u("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return t().channelName}))},"oj");
zJQ.idomCompat=!0;var cD2=_.I(function(A){var t=A.data;A={};return _.u("yt-profile-info-view-model",{class:_.Ao("ytProfileInfoViewModelHost",(A.ytProfileInfoViewModelWithVideoShelf=function(){return t().videosHorizontalShelf},A))},_.u(Pfm,{profileInfo:t}),_.u(_.P1,{data:function(){return t().videosHorizontalShelf}},{horizontalShelfViewModel:function(f){return _.u("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.u(_.iq,{data:f.data}))}}),_.u(_.P,{cond:function(){return t().comments},
then:function(){return _.u(T38,{profileInfo:t})}}),_.u(_.P,{cond:function(){return t().sharedSubscriptionsTitle},
then:function(){return _.u(_.P,{cond:function(){return t().subscriptionsAccessButtonCommand},
then:function(){return _.u(iTy,{profileInfo:t})},
else:function(){return _.u(OTQ,{profileInfo:t})}})}}))},"pj");
cD2.idomCompat=!0;var T38=_.I(function(A){var t=A.profileInfo;return _.u("div",{class:"ytProfileInfoViewModelActivity"},_.u("div",{class:"ytProfileInfoViewModelHeader"},_.u("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return t().commentsInteractionTitle})),_.u(_.P1,{data:function(){return t().comments}},{commentInteractionViewModel:function(f){return _.u("div",{class:"ytProfileInfoViewModelActivity"},_.u(uh8,{data:f.data}))}}))},"qj"),iTy=_.I(function(A){var t=A.profileInfo;
return _.u("div",{class:"ytProfileInfoViewModelSubSection"},_.u("div",{class:"ytProfileInfoViewModelSubHeader"},_.u(_.bc,{command:function(){return t().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.u("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return t().sharedSubscriptionsTitle}),_.u("div",null,_.u(_.P1,{data:function(){return t().subscriptionsAccessButton}},{buttonViewModel:_.nx})))),_.u(B3y,{sharedSubscriptions:function(){var f;
return((f=t().sharedSubscriptions)==null?void 0:f.slice(0,5))||[]}}))},"rj"),OTQ=_.I(function(A){var t=A.profileInfo;
return _.u("div",{class:"ytProfileInfoViewModelSubSection"},_.u("div",{class:"ytProfileInfoViewModelSubHeader"},_.u("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return t().sharedSubscriptionsTitle})),_.u(B3y,{sharedSubscriptions:function(){var f;
return((f=t().sharedSubscriptions)==null?void 0:f.slice(0,5))||[]}}))},"sj"),B3y=_.I(function(A){return _.u("div",{class:"ytProfileInfoViewModelSubs"},_.u(_.P1,{data:A.sharedSubscriptions},{sharedSubscriptionViewModel:function(t){return _.u("div",{class:"ytProfileInfoViewModelSub"},_.u(zJQ,{data:t.data}))}}))},"tj"),Pfm=_.I(function(A){var t=A.profileInfo;
return _.u("div",{class:"ytProfileInfoViewModelActivity"},_.u(_.xk,{each:function(){return[t().profileBadgeInfoYtWide,t().profileBadgeInfoChannelWide].filter(function(f){return!!f})},
keyBy:"INDEX"},function(f){return _.u(_.Tw,null,_.u("div",{class:"ytProfileInfoViewModelHeader"},_.u("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return f().profileSectionTitle}),_.u("div",{class:"ytProfileInfoViewModelSectionDesc"},_.u("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var X;
return(X=f().commentBadge)==null?void 0:X.commentDesc}),_.u(_.P,{cond:function(){var X;
return(X=f().commentBadge)==null?void 0:X.blackHeartDesc},
then:function(){return _.u("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.u("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.u(_.YA,{data:function(){var X;
return{thumbnails:[{url:(X=f().commentBadge)==null?void 0:X.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.u("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var X;return(X=f().commentBadge)==null?void 0:X.blackHeartDesc}))),_.u("div",{class:"ytProfileInfoViewModelBadge"},_.u(_.xk,{each:function(){return f().badges||[]}},function(X){return _.u(N3l,{data:X})})))}))},"uj");var MV8=_.I(function(A){var t=A.data;var f=function(){return t().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.u("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.u(_.P1,{data:function(){return t().profileIdentityInfo}},{profileIdentityInfoViewModel:function(X){return _.u(_.Ofw,{data:X.data,
hideDivider:f,isChannelInfoCard:f})},
profileInfoViewModel:cD2}),_.u(_.P1,{data:function(){return t().profileInfo}},{profileIdentityInfoViewModel:_.Ofw,
profileInfoViewModel:cD2}))},"vj");
MV8.idomCompat=!0;_.Hn(MV8,"yt-profile-card-view-model",{props:{data:_.PS}});var xL=function(){var A=_.F.apply(this,arguments)||this;A.enableFocusFix=_.M("music_web_enable_focus_on_setting_menu_fix")&&_.Ka("IS_MOBILE_WEB",!1);A.covered=!1;A.hideMenu=!1;A.isCommentNotificationOnProfileCard=!1;A.scrolledByTouch=!1;A.disableBackdropFilter=_.M("web_disable_backdrop_filter");A.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return A};
_.R(xL,_.F);_.J=xL.prototype;
_.J.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"}}}};
_.J.ready=function(){var A=this;this.JSC$20614_containerElement.addEventListener("scroll",function(){A.ytRendererBehavior.markDirty()})};
_.J.attributeChanged=function(A,t){A==="menu-style"&&_.kJ(this.hostElement,"yt-multi-page-menu-closed-action",[t])};
_.J.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.JY(this,this.focusOnStampFinished))};
_.J.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.JY(this,this.focusOnStampFinished))};
_.J.reset=function(){this.closeJobId&&(_.a6.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.J.focusOnStampFinished=function(A){A.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.JY(this,this.focusOnStampFinished)),this.doFocus())};
_.J.doFocus=function(){var A=_.Z3f(this.sectionsElement);A.length&&A[0].focus()};
_.J.computeMenuStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.J.computeIsCommentNotificationOnProfileCard=function(A){return _.M("enable_profile_cards_on_comments")&&A.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.J.computeHideMenu=function(A,t){return A||!(!t||!t.showLoadingSpinner)};
_.J.onPopupClosed=function(){this.isPopUpOpen=!1;_.kJ(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.J.onPopupOpened=function(A,t){this.isPopUpOpen=!0;t.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.s9(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.r0({type:"CHANNEL_REPORT_RESET"})))};
_.J.onYtNavigate=function(A,t){this.shouldCloseOnNavigateEvent(t.endpoint)&&_.kJ(this.hostElement,"yt-close-all-popups-action")};
_.J.handleEndpoint=function(A){A=_.C(A,_.QA);!this.isCommentNotificationOnProfileCard&&A&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20614_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.J.handleActions=function(A){for(var t=0,f=A.length;t<f;t++){var X=_.C(A[t],fiy);X&&this.handleGetMultiPageMenuAction(X);(X=_.C(A[t],_.YUC))&&this.handleAppendContinuationItemsAction(X)}};
_.J.onServiceRequestSentOrCompleted=function(A,t){A.detail&&A.detail.endpoint&&this.handleEndpoint(A.detail.endpoint);t.actions&&this.handleActions(t.actions)};
_.J.handleGetMultiPageMenuAction=function(A){var t=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.sF(this.submenuElement).appendChild(t);(A=A.menu.multiPageMenuRenderer)&&this.logSubmenu(A);t.data=A;t.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.J.handleAppendContinuationItemsAction=function(A){if(this.data&&A.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&A.continuationItems&&this.data.sections){var t=this.data.sections.length-1;this.data.sections[t].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),t--);if(this.data.sections[t].multiPageMenuNotificationSectionRenderer&&A.continuationItems){A=_.U(A==null?void 0:A.continuationItems);for(var f=A.next();!f.done;f=A.next())if(f=f.value,_.C(f,Pv3)){var X=
void 0,Q=void 0,q=void 0,e=void 0,G=void 0;((X=this)==null?0:(Q=X.data)==null?0:(q=Q.sections)==null?0:(e=q[t])==null?0:(G=e.multiPageMenuNotificationSectionRenderer)==null?0:G.items)&&this.push("data.sections."+t+".multiPageMenuNotificationSectionRenderer.items",f)}else if(_.C(f,_.vDw)||_.C(f,_.H$))this.push("data.sections",f),t++}}};
_.J.logSubmenu=function(A){if(!_.M("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var t=this.ytRendererBehavior.getScreenLayer(),f=_.Ws(t),X=_.mx(t);if((A=A.trackingParams)&&f&&X){var Q=_.zV(A);_.M("combine_ve_grafts")?_.er().graftServerVe(A,X,t):_.x7(f,X,Q)}}};
_.J.emptySubmenuContainer=function(){for(var A=_.sF(this.submenuElement);A.firstChild;)A.removeChild(A.firstChild)};
_.J.onMenuBackTap=function(A){_.s9(this.hostElement,"yt-submenu-closed");A.stopPropagation()};
_.J.onSubmenuClosed=function(A){_.oO(A)!==this.hostElement&&(this.covered=!1,_.s9(this.hostElement,"yt-refit"),A.stopPropagation())};
_.J.onRetrieveLocation=function(A,t){t.hasComments&&(t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),A.stopPropagation())};
_.J.shouldCloseOnNavigateEvent=function(A){if(!A)return!0;if(_.C(A,_.UXT)||_.C(A,_.egw)||_.C(A,_.Jaf)||_.C(A,_.fV))return!1;var t;return((t=_.C(A==null?void 0:A.commandMetadata,_.Jl))==null?0:t.ignoreNavigation)?!1:!0};
_.J.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.J.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.J.refitAfterRender=function(){var A=this;_.us(this,function(){_.s9(A.hostElement,"yt-refit")})};
xL.prototype.refitAfterRender=xL.prototype.refitAfterRender;xL.prototype.onRetrieveLocation=xL.prototype.onRetrieveLocation;xL.prototype.onSubmenuClosed=xL.prototype.onSubmenuClosed;xL.prototype.onMenuBackTap=xL.prototype.onMenuBackTap;xL.prototype.onServiceRequestSentOrCompleted=xL.prototype.onServiceRequestSentOrCompleted;xL.prototype.onYtNavigate=xL.prototype.onYtNavigate;xL.prototype.onPopupOpened=xL.prototype.onPopupOpened;xL.prototype.onPopupClosed=xL.prototype.onPopupClosed;
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],xL.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],xL.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],xL.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],xL.prototype,"enableFocusFix",void 0);_.V([_.n(),_.H("design:type",Object)],xL.prototype,"covered",void 0);_.V([_.n({computed:"computeHideMenu(covered, data)"}),_.H("design:type",Object)],xL.prototype,"hideMenu",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.H("design:type",String)],xL.prototype,"menuStyle",void 0);
_.V([_.n({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.H("design:type",Object)],xL.prototype,"isCommentNotificationOnProfileCard",void 0);_.V([_.n(),_.H("design:type",Boolean)],xL.prototype,"isPopUpOpen",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],xL.prototype,"scrolledByTouch",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],xL.prototype,"disableBackdropFilter",void 0);
_.V([_.lo("#sections"),_.H("design:type",HTMLElement)],xL.prototype,"sectionsElement",void 0);_.V([_.lo("#spinner"),_.H("design:type",HTMLElement)],xL.prototype,"spinnerElement",void 0);_.V([_.lo("#header"),_.H("design:type",HTMLElement)],xL.prototype,"headerElement",void 0);_.V([_.lo("#container"),_.H("design:type",HTMLElement)],xL.prototype,"JSC$20614_containerElement",void 0);_.V([_.lo("#submenu"),_.H("design:type",HTMLElement)],xL.prototype,"submenuElement",void 0);
_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xL.prototype,"onPopupClosed",null);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],xL.prototype,"onPopupOpened",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],xL.prototype,"onYtNavigate",null);
_.V([_.UQ("yt-service-request-completed"),_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],xL.prototype,"onServiceRequestSentOrCompleted",null);_.V([_.UQ("yt-menu-back-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],xL.prototype,"onMenuBackTap",null);
_.V([_.UQ("yt-submenu-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],xL.prototype,"onSubmenuClosed",null);_.V([_.UQ("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],xL.prototype,"onRetrieveLocation",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xL.prototype,"refitAfterRender",null);
_.V([_.y_({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],xL);
_.Y(xL,"ytd-multi-page-menu-renderer",function(){if(YNA!==void 0)return YNA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return YNA=A},{mode:1});var Cfc;var jc=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return A};
_.R(jc,_.F);_.J=jc.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.computeAccessibility_=function(A){return this.get("accessibility.accessibilityData",A)||null};
_.J.onTap=function(){var A=_.r2(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(A&&A.length===1&&A[0])_.kJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var t;if((t=this.data)==null?0:t.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var f;((f=this.data)==null?0:f.menuRequest)&&_.Al(this.hostElement,[this.data.menuRequest])}}};
_.J.handleTopbarMenuClosedAction=function(A){var t,f;(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(A)===((t=this.data)==null?void 0:(f=t.icon)==null?void 0:f.iconType)&&this.toggleIconState(!1)};
_.J.toggleIconState=function(A){_.M("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=A)};
_.J.handleUpdateTopbarAvatarAction=function(A){var t;A=(t=_.C(A,gyc))==null?void 0:t.avatarUrl;var f,X;t=(f=this.data)==null?void 0:(X=f.avatar)==null?void 0:X.thumbnails;A&&t&&(f={thumbnails:[Object.assign({},t[0],{url:A})]},this.set("data.avatar",f))};
_.PV.Object.defineProperties(jc.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.sF(this.hostElement).querySelector("#button")}}});
jc.prototype.onTap=jc.prototype.onTap;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],jc.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],jc.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.WcE.YtButtonBehavior),_.H("design:type",Object)],jc.prototype,"ytButtonBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],jc.prototype,"data",void 0);
_.V([_.lo("yt-icon-button#button"),_.H("design:type",Object)],jc.prototype,"iconButton",void 0);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jc.prototype,"onTap",null);_.V([_.y_({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],jc);
_.wR()(jc,"ytd-topbar-menu-button-renderer",function(){if(Cfc===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);Cfc=A}A=Cfc;return A},{allowedProps:["data"],
mode:1});var hJw;var YL=function(){return _.F.apply(this,arguments)||this};
_.R(YL,_.F);YL.prototype.getSelected=function(){return this.reasons.selected};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],YL.prototype,"data",void 0);_.V([_.lo("#reasons"),_.H("design:type",Object)],YL.prototype,"reasons",void 0);_.V([_.y_({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],YL);
_.Y(YL,"ytd-ad-feedback-content",function(){if(hJw!==void 0)return hJw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return hJw=A},{mode:1});var RJl;var VS=function(){return _.F.apply(this,arguments)||this};
_.R(VS,_.F);_.J=VS.prototype;_.J.onPopupOpened=function(){_.kJ(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.J.computeConfirmButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.confirmLabel}};
_.J.computeCancelButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.cancelLabel}};
_.J.onConfirmTap=function(){var A=this.content.getSelected();A!==void 0&&(A=this.data.reasons[A].endpoint)&&(_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}}),_.kJ(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.J.sendFeedbackSubmitToastAction=function(){var A;(A=this.data)!=null&&A.completionMessage&&(A=_.aC(this.data.completionMessage),_.kJ(this.hostElement,"yt-open-popup-action",[A,this]))};
_.J.onCancelTap=function(){_.kJ(this.hostElement,"yt-close-popup-action")};
VS.prototype.onPopupOpened=VS.prototype.onPopupOpened;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],VS.prototype,"data",void 0);_.V([_.lo("#content"),_.H("design:type",Object)],VS.prototype,"content",void 0);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],VS.prototype,"onPopupOpened",null);
_.V([_.y_({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],VS);
_.Y(VS,"ytd-ad-feedback-renderer",function(){if(RJl!==void 0)return RJl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return RJl=A},{mode:1});var m8w;var bT2=function(){return _.F.apply(this,arguments)||this};
_.R(bT2,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],bT2.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],bT2.prototype,"data",void 0);_.V([_.y_({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],bT2);
_.Y(bT2,"ytd-ad-info-dialog-content",function(){if(m8w!==void 0)return m8w;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return m8w=A},{mode:1});var WWd;var Z5=function(){return _.F.apply(this,arguments)||this};
_.R(Z5,_.F);Z5.prototype.computeConfirmButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.confirmLabel}};
Z5.prototype.onConfirmTap=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Z5.prototype.computeShouldShowTitle=function(){var A;return!((A=this.data)==null||!A.title)};
Z5.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.Px().resolve(_.i2).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Z5.prototype.onPopupClosed=Z5.prototype.onPopupClosed;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Z5.prototype,"data",void 0);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Z5.prototype,"onPopupClosed",null);_.V([_.y_({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Z5);
_.Y(Z5,"ytd-ad-info-dialog-renderer",function(){if(WWd!==void 0)return WWd;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return WWd=A},{mode:1});var yDw;var o_=function(){var A=_.F.apply(this,arguments)||this;A.actionButtonClass="action-button";A.dismissButtonId="dismiss-button";A.dialogDismiss=!0;return A};
_.R(o_,_.F);_.J=o_.prototype;_.J.computeInPlayer=function(A){return(A==null?void 0:A.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.J.computedLogo=function(){var A,t;return this.isDarkTheme()?(A=this.data)==null?void 0:A.logoDark:(t=this.data)==null?void 0:t.logo};
_.J.computedHeaderImage=function(){var A,t;return this.isDarkTheme()?(A=this.data)==null?void 0:A.headerImageDark:(t=this.data)==null?void 0:t.headerImage};
_.J.computeLogoIconId=function(){var A,t,f,X=(A=this.computedLogo())==null?void 0:(t=A.sources)==null?void 0:(f=t[0])==null?void 0:f.height;return X&&X%31===0?"logo-icon-with-padding":"logo-icon"};
_.J.computeLogoIconHeight=function(){var A,t,f,X=(A=this.computedLogo())==null?void 0:(t=A.sources)==null?void 0:(f=t[0])==null?void 0:f.height;return X&&X%31===0?"31":"24"};
_.J.onPopupClosed=function(){_.Px().resolve(_.wr).dispose()};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.J.onShow=function(){this.inPlayer&&_.UF(6);this.titleElement.focus()};
_.J.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var A=0;A<this.data.impressionEndpoints.length;A++){var t=_.C(this.data.impressionEndpoints[A],_.mG);t&&this.ytComponentBehavior.resolveCommand(t)}};
_.J.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.kJ(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.PV.Object.defineProperties(o_.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var A,t;return!((A=this.data)==null||!A.headerImageDark)&&!((t=this.data)==null||!t.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.secondaryButton)}}});
o_.prototype.onPopupClosed=o_.prototype.onPopupClosed;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],o_.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.GL.YtVisibilityBehavior),_.H("design:type",Object)],o_.prototype,"ytVisibilityBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],o_.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],o_.prototype,"actionButtonClass",void 0);_.V([_.n(),_.H("design:type",Object)],o_.prototype,"dismissButtonId",void 0);_.V([_.n(),_.H("design:type",Object)],o_.prototype,"dialogDismiss",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],o_.prototype,"hasHeaderImage",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],o_.prototype,"hasPremiumButton",null);
_.V([_.n({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.H("design:type",Boolean)],o_.prototype,"inPlayer",void 0);_.V([_.lo("#dismiss-button"),_.H("design:type",HTMLElement)],o_.prototype,"dismissButton",void 0);_.V([_.lo("#title"),_.H("design:type",HTMLElement)],o_.prototype,"titleElement",void 0);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],o_.prototype,"onPopupClosed",null);
_.V([_.y_({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],o_);
_.Y(o_,"ytd-enforcement-message-view-model",function(){if(yDw!==void 0)return yDw;var A=document.createElement("template");_.m(A,'\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="fc-dialog-container 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" tabindex="0" role="heading" 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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return yDw=A},{mode:1});var vhQ;var LWm;var dX=function(){var A=_.F.apply(this,arguments)||this;A.TEST_ONLY={immediateValidation:function(){A.immediateValidation()},
onValidationResponse:function(t){A.onValidationResponse(t)},
onGenerateHandleFromNameResponse:function(t){A.onGenerateHandleFromNameResponse(t)}};
return A};
_.R(dX,_.F);_.J=dX.prototype;_.J.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.J.validate=function(){this.immediateValidation()};
_.J.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.J.setHandleInputValue=function(A){this.handleDir=this.getHandleDir(A);this.handleInput.value=A;this.validationState={status:"PENDING"};this.immediateValidation()};
_.J.getHandleDir=function(A){var t=A===""&&!1;return(t=_.Q78.test.call(_.Q78,A))?"rtl":"ltr"};
_.J.onDataChanged=function(){var A,t;this.handleDir=this.getHandleDir((t=(A=this.data)==null?void 0:A.handle)!=null?t:"");var f;this.validationState=((f=this.data)==null?0:f.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var X;((X=this.data)==null?0:X.validateOnInit)&&this.immediateValidation()};
_.J.stopPropagation=function(A){A.stopPropagation()};
_.J.onInput=function(){var A;this.handleDir=this.getHandleDir((A=this.handleInput.value)!=null?A:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.J.onFocusout=function(A){this.handleInput.contains(A.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.J.delayedValidation=function(){var A,t;this.debouncedValidation((t=(A=this.data)==null?void 0:A.validationDelayMs)!=null?t:1E3)};
_.J.immediateValidation=function(){this.debouncedValidation(0)};
_.J.debouncedValidation=function(A){var t=this;_.Ig(this,"debouncedValidation",function(){var f,X=t.staticValidation((f=t.handleInput.value)!=null?f:"");if(X!==void 0)t.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:X};else{var Q;if((Q=t.data)!=null&&Q.validateChannelHandleCommand){t.validationState={status:"LOADING"};var q;t.ytComponentBehavior.resolveCommand(t.data.validateChannelHandleCommand,{form:{handle:(q=t.handleInput.value)!=null?q:""},commandController:{onSuccess:function(e,
G){t.onValidationResponse(G)},
onServerError:function(e,G){t.onValidationServerError(G)}}})}else t.handleUnexpectedValidationError(new _.xj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",t.data))}},A)};
_.J.staticValidation=function(A){var t;if(((t=this.data)==null?void 0:t.channelHandleStaticValidationParams)!==void 0){t=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(A)&&t.validValueRegexpErrorMessage!==void 0)return t.validValueRegexpErrorMessage;if(t.minLength!==void 0&&A.length<t.minLength&&t.minLengthErrorMessage!==void 0)return t.minLengthErrorMessage;if(t.maxLength!==void 0&&A.length>t.maxLength&&t.maxLengthErrorMessage!==void 0)return t.maxLengthErrorMessage}};
_.J.onValidationResponse=function(A){var t=_.C(A.result,w7d);t===void 0?this.handleUnexpectedValidationError(new _.xj("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",A)):this.handleValidationResultRenderer(t)};
_.J.onValidationServerError=function(A){this.handleUnexpectedValidationError(new _.xj("ValidateChannelHandle request failed.",A))};
_.J.handleValidationResultRenderer=function(A){if(A.handle===void 0)this.handleUnexpectedValidationError(new _.xj("ChannelHandleValidationResultRenderer does not contain handle.",A));else if(A.handle===this.handleInput.value)switch(A.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:A.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:A.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.xj("Unrecognized ChannelHandleValidationResult",A));break;default:_.ap(A.result)}};
_.J.handleUnexpectedValidationError=function(A){var t;this.validationState={status:"UNKNOWN",handle:(t=this.handleInput.value)!=null?t:""};_.K4(A)};
_.J.stopEventPropagation=function(A){A.stopPropagation()};
_.J.updateHandleOnChannelNameInputChange=function(A){if(!this.wasEdited){var t,f;this.debouncedGenerateHandleFromName(A,(f=(t=this.data)==null?void 0:t.validationDelayMs)!=null?f:1E3)}};
_.J.debouncedGenerateHandleFromName=function(A,t){var f=this;_.Ig(this,"debouncedGenerateHandleFromName",function(){var X;(X=f.data)!=null&&X.validateChannelHandleCommand?f.ytComponentBehavior.resolveCommand(f.data.validateChannelHandleCommand,{form:{name:A},commandController:{onSuccess:function(Q,q){f.onGenerateHandleFromNameResponse(q)},
onServerError:function(Q,q){_.K4(new _.xj("Error calling GenerateHandleFromName",q))}}}):_.K4(new _.xj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",f.data))},t)};
_.J.onGenerateHandleFromNameResponse=function(A){this.wasEdited||((A=_.C(A.result,sd_))?this.setHandleInputValue(A.handle):_.K4(new _.xj("Invalid results when generate handle from name")))};
_.PV.Object.defineProperties(dX.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var A;if(A=this.validationState)A=this.validationState,A=A.status==="OK"||A.status==="UNKNOWN";if(A)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.validationState)==null?void 0:A.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 A,t=(A=this.channelHandleEntity)==null?void 0:A.handleEdit;this.handleDir=this.getHandleDir(t!=null?t:"");return t}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var A,t;if(((A=this.data)==null?void 0:(t=A.channelHandleStaticValidationParams)==null?void 0:t.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
dX.prototype.stopEventPropagation=dX.prototype.stopEventPropagation;dX.prototype.onDataChanged=dX.prototype.onDataChanged;dX.prototype.applyHandleEdit=dX.prototype.applyHandleEdit;dX.prototype.onValueChanged=dX.prototype.onValueChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],dX.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],dX.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],dX.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Boolean)],dX.prototype,"wasEdited",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],dX.prototype,"handleDir",void 0);_.V([_.lo("#handle-input"),_.H("design:type",Object)],dX.prototype,"handleInput",void 0);_.V([_.n(),_.y("validationState"),_.H("design:type",Object),_.H("design:paramtypes",[])],dX.prototype,"value",null);
_.V([_.ev("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dX.prototype,"onValueChanged",null);_.V([_.y("validationState"),_.H("design:type",Object),_.H("design:paramtypes",[])],dX.prototype,"errorIndicator",null);_.V([_.n({reflectToAttribute:!0}),_.y("errorIndicator"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dX.prototype,"borderErrorIndicator",null);
_.V([_.n({selectorArgs:["data.channelHandleEntityKey"],selector:function(A,t){return _.q_(A.entities,"channelHandle",t)}}),
_.H("design:type",Object)],dX.prototype,"channelHandleEntity",void 0);_.V([_.y("channelHandleEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],dX.prototype,"handleEdit",null);_.V([_.ev("handleEdit"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dX.prototype,"applyHandleEdit",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dX.prototype,"onDataChanged",null);
_.V([_.y("data.channelHandleStaticValidationParams.validValueRegexp"),_.H("design:type",Object),_.H("design:paramtypes",[])],dX.prototype,"validValueRegexp",null);_.V([_.UQ("yt-service-request-sent"),_.UQ("yt-service-request-completed"),_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],dX.prototype,"stopEventPropagation",null);_.V([_.y_({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],dX);
_.Y(dX,"ytd-channel-handle-input-renderer",function(){if(LWm!==void 0)return LWm;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return LWm=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var Sc=function(){var A=_.F.apply(this,arguments)||this;A.data=null;A.errorMessage=null;A.isLoading=!0;A.hideContainer=!1;A.enableNewChannelCreationOnIdForAll=_.M("enable_new_channel_creation_for_id4all");A.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"};A.testOnly={setErrorMessage:function(t){A.resetErrorState();
A.setErrorState(t)}};
return A};
_.R(Sc,_.F);_.J=Sc.prototype;_.J.created=function(){this.logScreenVe()};
_.J.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")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var A;((A=this.zeroStepErrorMessageEntity)==null?0:A.value)&&this.set("errorMessage",_.oC(this.zeroStepErrorMessageEntity.value))};
_.J.onCreateTap=function(){var A=this;if(this.data&&this.data.channelCreationEndpoint){var t,f;if(!((t=this.data.createChannelButton)==null?0:(f=t.buttonRenderer)==null?0:f.isDisabled)){var X;if((X=this.nameInput)!=null&&X.value){this.setLoadingState();var Q,q;t=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Q=this.handleInput)==null?void 0:Q.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((q=this.handleInput)==null?void 0:q.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:t,commandController:{onSuccess:function(e,G){A.onChannelCreationEndpointSuccess(G);A.obakeImageSource&&_.SY("channelCreatedWithObakeImage",{imageSourceType:A.obakeImageSource})},
onServerError:function(){A.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.J.endpointRequiresServiceRequestAction=function(A){return!!_.C(A,_.ys)||!!_.C(A,gyc)};
_.J.isNavigateAction=function(A){var t;return!!_.C(A,_.sS)||!!_.C((t=_.C(A,Ak3))==null?void 0:t.command,_.sS)};
_.J.isPlaylistAction=function(A){return!!_.C(A,_.qN)||!!_.C(A,_.u1)};
_.J.onChannelCreationEndpointSuccess=function(A){if(A.createChannelError){var t;this.setErrorState((t=A.createChannelError)==null?void 0:t.errorMessage);this.handleInput&&this.handleInput.validate()}else{A.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(A.navigationEndpoint);if(A.actions){t=_.U(A.actions);for(var f=t.next();!f.done;f=t.next())if(f=f.value,this.endpointRequiresServiceRequestAction(f)&&this.ytComponentBehavior.resolveCommand(f),this.isNavigateAction(f)){var X=void 0;f=_.C((X=
_.C(f,Ak3))==null?void 0:X.command,_.sS);X=void 0;this.isPlaylistAction((X=f)==null?void 0:X.endpoint)&&(_.kJ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),X=void 0,this.ytComponentBehavior.resolveCommand((X=f)==null?void 0:X.endpoint))}}A.actions&&A.actions.some(function(Q){var q;return _.C(Q,_.sS)||_.C((q=_.C(Q,Ak3))==null?void 0:q.command,_.sS)})||_.kJ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.J.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.J.onCancelTap=function(){var A,t,f;if(!((A=this.data)==null?0:(t=A.cancelButton)==null?0:(f=t.buttonRenderer)==null?0:f.isDisabled)){var X,Q,q;A=(X=this.data)==null?void 0:(Q=X.cancelButton)==null?void 0:(q=Q.buttonRenderer)==null?void 0:q.command;if(!A||!_.C(A,_.CVp)){var e;this.nameInput&&((e=this.data)==null?0:e.name)&&(this.nameInput.value=this.data.name);var G;this.handleInput&&((G=this.data)==null?0:G.channelHandleInput)&&(this.handleInput.data=_.C(this.data.channelHandleInput,kB8));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.J.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.J.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.J.onClearProfilePhotoTap=function(){var A,t,f;((A=this.data)==null?0:(t=A.clearProfilePhotoButton)==null?0:(f=t.buttonRenderer)==null?0:f.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.J.onEditAvatarTap=function(){var A,t,f;((A=this.data)==null?0:(t=A.editAvatarButton)==null?0:(f=t.buttonRenderer)==null?0:f.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.J.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)};
_.J.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var A;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((A=this.data)==null?0:A.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.J.setErrorState=function(A){this.resetErrorState();if(A)this.set("errorMessage",A);else{var t;if((t=this.zeroStepErrorMessageEntity)==null?0:t.value)this.set("errorMessage",_.oC(this.zeroStepErrorMessageEntity.value));else{var f;((f=this.data)==null?0:f.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.J.fetchImageBlobWithAlr=function(A,t){t=t===void 0?5:t;var f=this,X,Q,q,e,G;return _.l(function(N){switch(N.nextAddress){case 1:return N.yield(fetch(A,{method:"GET",mode:"cors"}),2);case 2:X=N.yieldResult;if(X.ok){N.jumpTo(3);break}if(t===0)throw Error();Q=f.addJitter(Math.pow(2,5-t));return N.yield(new Promise(function(z){setTimeout(z,Q*1E3)}),4);
case 4:return N.return(f.fetchImageBlobWithAlr(A,t-1));case 3:if(!X.headers.get("content-type").split(";").some(function(z){return z.trim()==="text/plain"})){N.jumpTo(5);
break}q=f;e=q.fetchImageBlobWithAlr;return N.yield(X.text(),6);case 6:return N.return(e.call(q,N.yieldResult,t-1));case 5:return N.yield(X.blob(),7);case 7:return G=N.yieldResult,N.return(G)}})};
_.J.addJitter=function(A){var t=A*.3*Math.random();Math.random()>.5&&(t*=-1);return A+t};
_.J.openProfilePicturePicker=function(){var A=this,t,f,X,Q,q,e;return _.l(function(G){if(G.nextAddress==1){t=A.data.scottyUploadUrl;if(!t)return G.return();f=document.documentElement.hasAttribute("dark");X=document.body.style.colorScheme;f&&(document.body.style.colorScheme="dark");Q=DrA(FdA(nxd(byA(f?"dark":"light")),function(N){var z,T,O,c,B;return _.l(function(h){if(h.nextAddress==1)return z=_.gU(kTQ(new TPj(N.photoUrl,!1)).build(),"alr","yes"),A.obakeImageSource=A.pictureChangeSourceToObakeImageSourceType(N.photoSource),
_.ht(h,2),A.setLoadingState(),h.yield(A.fetchImageBlobWithAlr(z),4);if(h.nextAddress!=2)return T=h.yieldResult,O=new FileReader,O.addEventListener("load",function(){var W,L,E,D,S,Z;return _.l(function(d){if(d.nextAddress==1){if(T.size>15728640)return A.setErrorState((W=A.data)==null?void 0:W.imageSizeErrorMessage),_.K4(Error("Hl")),d.return();if(!O.result)return A.setErrorState((L=A.data)==null?void 0:L.genericImageLoadErrorMessage),_.K4(Error("Il")),d.return();E=O.result;_.ht(d,2);return d.yield(Zdd(T,
t),4)}if(d.nextAddress!=2)return D=d.yieldResult,A.handleImageUpdatedAction(E,D),A.resetErrorState(),_.qq(d,0);S=_.vC(d);A.setErrorState((Z=A.data)==null?void 0:Z.uploadErrorMessage);if(S instanceof Error)_.HQ(S);else{var K=new _.xj(JSON.stringify(S));_.HQ(K)}_.LO(d)})}),O.readAsDataURL(T),_.qq(h,0);
c=_.vC(h);A.setErrorState((B=A.data)==null?void 0:B.genericImageLoadErrorMessage);c instanceof Error?_.HQ(c):_.ai(new _.xj(JSON.stringify(c)));_.LO(h)})}),function(){A.hideContainer=!1;
document.body.style.colorScheme=X});
_.ht(G,2);return((q=A.data)==null?0:q.shouldViewChannelCreationFormForSupex)?G.yield(Q.openPicker("profile-picture/art-selection"),5):G.yield(Q.openPicker(),5)}if(G.nextAddress!=2)return _.qq(G,0);_.vC(G);A.setErrorState((e=A.data)==null?void 0:e.selectImageErrorMessage);_.LO(G)})};
_.J.pictureChangeSourceToObakeImageSourceType=function(A){switch(A){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.J.logScreenVe=function(){_.xz(_.er(),124448)};
_.J.graftServerVe=function(){var A=_.mx(),t,f,X=(t=this.data)==null?void 0:(f=t.loggingDirectives)==null?void 0:f.trackingParams;X&&A&&(this.channelCreationFormVe=_.er().graftServerVe(X,A),A={visualElement:this.channelCreationFormVe},_.J7().reportShown(A))};
_.J.isNameChanged=function(A){var t;return((t=this.data)==null?void 0:t.name)!==A};
_.J.isHandleChanged=function(A){var t,f=_.C((t=this.data)==null?void 0:t.channelHandleInput,kB8);return f&&A?f.handle!==A:!1};
_.J.handleImageUpdatedAction=function(A,t){this.hideContainer=!1;this.previewDataUrl=A;this.encryptedBlobId=t};
_.J.handleImageSelectionErrorAction=function(A){this.hideContainer=!1;this.setErrorState(A)};
_.J.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.J.showContainer=function(){this.hideContainer=!1};
_.J.maybeWipeZeroStepErrorMessage=function(){var A,t=(A=this.data)==null?void 0:A.zeroStepErrorMessageEntityKey,f;t&&((f=this.zeroStepErrorMessageEntity)==null?0:f.value)&&this.ytdReduxBehavior.dispatch(_.Ta("stringEntity",t,{key:t,value:""}))};
_.PV.Object.defineProperties(Sc.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 A;return((A=this.photoThumbnail)==null?0:A.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 A;return!((A=this.data)==null||!A.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.descriptionInfo}}});
Sc.prototype.dataChanged=Sc.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Sc.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Sc.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Sc.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Sc.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Sc.prototype,"errorMessage",void 0);
_.V([_.n(),_.H("design:type",Object)],Sc.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",String)],Sc.prototype,"previewDataUrl",void 0);_.V([_.n(),_.H("design:type",Number)],Sc.prototype,"obakeImageSource",void 0);_.V([_.n(),_.H("design:type",Object)],Sc.prototype,"hideContainer",void 0);_.V([_.lo("#title-input"),_.H("design:type",Object)],Sc.prototype,"nameInput",void 0);_.V([_.lo("#handle-input"),_.H("design:type",Object)],Sc.prototype,"handleInput",void 0);
_.V([_.n(),_.H("design:type",Boolean)],Sc.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.V([_.n({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.QI5}),_.H("design:type",Object)],Sc.prototype,"zeroStepErrorMessageEntity",void 0);_.V([_.y("data","data.isDefaultProfilePhoto","previewDataUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sc.prototype,"photoThumbnail",null);
_.V([_.y("data","data.isDefaultProfilePhoto","photoThumbnail"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sc.prototype,"userSetPhotoThumbnailUrl",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Sc.prototype,"hideProfilePhotoButtonLayer",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Sc.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.V([_.PU("data","zeroStepErrorMessageEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sc.prototype,"dataChanged",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.descriptionInfo","zeroStepErrorMessageEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sc.prototype,"description",null);_.V([_.y_({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Sc);
_.Y(Sc,"ytd-channel-creation-dialog-renderer",function(){if(vhQ!==void 0)return vhQ;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return vhQ=A},{mode:1});var pwl;var $L=function(){var A=_.F.apply(this,arguments)||this;A.isLoading=!1;A.isDisabled=!1;return A};
_.R($L,_.F);$L.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
$L.prototype.updateDisabled=function(){var A;this.isDisabled=this.isLoading||((A=this.handleInput)==null?void 0:A.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
$L.prototype.onSaveClick=function(){var A=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var t;((t=this.data)==null?void 0:t.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 f;if((f=A.data)==null?0:f.nextEndpoint){var X;A.ytComponentBehavior.resolveCommand((X=A.data)==null?void 0:X.nextEndpoint)}else A.isLoading=
!1,A.closeDialog()},
onServerError:function(){A.isLoading=!1;A.handleInput.validate();var f;A.errorMessage=(f=A.data)==null?void 0:f.errorMessage}}}))}};
$L.prototype.closeDialog=function(){_.kJ(this.hostElement,"yt-close-popup-action",[this.is])};
$L.prototype.updateDisabled=$L.prototype.updateDisabled;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],$L.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$L.prototype,"data",void 0);_.V([_.lo("#handle-input"),_.H("design:type",Object)],$L.prototype,"handleInput",void 0);_.V([_.ev("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$L.prototype,"updateDisabled",null);
_.V([_.y_({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],$L);
_.Y($L,"ytd-channel-handle-edit-dialog-renderer",function(){if(pwl!==void 0)return pwl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return pwl=A},{mode:1});var Eh3;var HZ=function(){return _.F.apply(this,arguments)||this};
_.R(HZ,_.F);HZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],HZ.prototype,"data",void 0);_.V([_.y_({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],HZ);
_.Y(HZ,"ytd-channel-switcher-footer-renderer",function(){if(Eh3!==void 0)return Eh3;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Eh3=A},{mode:1});var nhj;var D8m;var a_=function(){return _.F.apply(this,arguments)||this};
_.R(a_,_.F);a_.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
a_.prototype.onIronChange=a_.prototype.onIronChange;_.V([_.n(),_.H("design:type",Object)],a_.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!1}),_.H("design:type",Function)],a_.prototype,"onDontAskAgainChanged",void 0);_.V([_.lo("#checkbox"),_.H("design:type",Object)],a_.prototype,"checkbox",void 0);_.V([_.UQ("iron-change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a_.prototype,"onIronChange",null);
_.V([_.y_({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],a_);
_.Y(a_,"ytd-identity-prompt-footer-renderer",function(){if(D8m!==void 0)return D8m;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return D8m=A},{mode:1});var Ko=function(){var A=_.F.apply(this,arguments)||this;A.dontAskAgain=!1;A.showPopup=!1;A.boundDontAskAgainChanged=function(t){A.dontAskAgainChanged(t)};
A.boundOnAccountItemTap=function(t){A.onAccountItemTap(t)};
return A};
_.R(Ko,_.F);_.J=Ko.prototype;
_.J.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]]"}}}}}};
_.J.ready=function(){var A=this;_.sF(this.hostElement).querySelector("#container").addEventListener("scroll",function(){A.ytRendererBehavior.markDirty()})};
_.J.dontAskAgainChanged=function(A){this.dontAskAgain=A};
_.J.onAccountItemTap=function(A){if(A){var t={};this.dontAskAgain&&(t={dont_ask_again:this.dontAskAgain});_.pp(A,t)}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.J.redirectOnlyAccount=function(A){A.sections&&A.sections.length>0&&(A=_.C(A.sections[0],_.mHw),(A==null?0:A.contents)&&(A==null?void 0:A.contents.length)<=1?(A=_.qG(window.location.href),(A==null?0:A.next)&&_.HGg(A.next)?_.pp(A.next):_.pp("/")):this.showPopup=!0)};
Ko.prototype.dataChanged=Ko.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ko.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!1}),_.H("design:type",Object)],Ko.prototype,"dontAskAgain",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Ko.prototype,"showPopup",void 0);_.V([_.n({reflectToAttribute:!1}),_.H("design:type",Object)],Ko.prototype,"boundDontAskAgainChanged",void 0);_.V([_.n({reflectToAttribute:!1}),_.H("design:type",Object)],Ko.prototype,"boundOnAccountItemTap",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ko.prototype,"dataChanged",null);
_.V([_.y_({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Ko);
_.Y(Ko,"ytd-channel-switcher-renderer",function(){if(nhj!==void 0)return nhj;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return nhj=A},{mode:1});var FWA;var gX=function(){return _.F.apply(this,arguments)||this};
_.R(gX,_.F);_.PV.Object.defineProperties(gX.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.V([_.n(),_.H("design:type",Object)],gX.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],gX.prototype,"steps",null);_.V([_.y_({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],gX);
_.Y(gX,"ytd-channel-transfer-stepper-renderer",function(){if(FWA!==void 0)return FWA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return FWA=A},{mode:1});var I1_;var wX=function(){var A=_.F.apply(this,arguments)||this;A.data=null;A.isError=!1;A.isLoading=!1;return A};
_.R(wX,_.F);_.J=wX.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.J.computeProfileName=function(A){return A?A.givenNameValue+" "+A.familyNameValue:""};
_.J.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)};
_.J.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)};
wX.prototype.onYtServiceRequestError=wX.prototype.onYtServiceRequestError;wX.prototype.onYtServiceRequestSent=wX.prototype.onYtServiceRequestSent;wX.prototype.dataChanged=wX.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],wX.prototype,"data",void 0);
_.V([_.n({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.H("design:type",String)],wX.prototype,"profileName",void 0);_.V([_.n(),_.H("design:type",Object)],wX.prototype,"isError",void 0);_.V([_.n(),_.H("design:type",Object)],wX.prototype,"isLoading",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wX.prototype,"dataChanged",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],wX.prototype,"onYtServiceRequestSent",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],wX.prototype,"onYtServiceRequestError",null);_.V([_.y_({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],wX);
_.Y(wX,"ytd-channel-warm-welcome-cont-renderer",function(){if(I1_!==void 0)return I1_;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return I1_=A},{mode:1});var x8h;var sa=function(){var A=_.F.apply(this,arguments)||this;A.data=null;return A};
_.R(sa,_.F);sa.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sa.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],sa.prototype,"data",void 0);_.V([_.y_({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],sa);
_.Y(sa,"ytd-channel-warm-welcome-renderer",function(){if(x8h!==void 0)return x8h;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return x8h=A},{mode:1});var jA3;var kL=function(){return _.F.apply(this,arguments)||this};
_.R(kL,_.F);_.PV.Object.defineProperties(kL.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.authorThumbnail)||{}}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],kL.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],kL.prototype,"thumbnailDetails",null);_.V([_.y_({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],kL);
_.Y(kL,"ytd-comment-preview-renderer",function(){if(jA3!==void 0)return jA3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return jA3=A},{mode:1});var Yyd;var rX=function(){return _.F.apply(this,arguments)||this};
_.R(rX,_.F);rX.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.PV.Object.defineProperties(rX.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.submitButton}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rX.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],rX.prototype,"submitButton",null);_.V([_.y_({is:"ytd-notice-renderer",disableElementRegistration:!0})],rX);
_.Y(rX,"ytd-notice-renderer",function(){if(Yyd!==void 0)return Yyd;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Yyd=A},{mode:1});var VV8;var AX=function(){return _.F.apply(this,arguments)||this};
_.R(AX,_.F);AX.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],AX.prototype,"data",void 0);_.V([_.y_({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],AX);
_.Y(AX,"ytd-preview-comment-dialog-content",function(){if(VV8!==void 0)return VV8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return VV8=A},{mode:1});var ZTj;var tX=function(){return _.F.apply(this,arguments)||this};
_.R(tX,_.F);tX.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
tX.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],tX.prototype,"data",void 0);_.V([_.y_({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],tX);
_.Y(tX,"ytd-preview-comment-dialog-renderer",function(){if(ZTj!==void 0)return ZTj;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return ZTj=A},{mode:1});var ohQ;var d8_=_.M("web_button_rework")&&_.Ka("BUTTON_REWORK")||_.M("web_button_rework_with_live"),fY=function(){var A=_.F.apply(this,arguments)||this;A.closeLabel=_.e5("CLOSE");A.selectedAmountIndex=1;A.privacyCheckboxValue=!1;A.useAmsterdamStyle=d8_;A.amountPlaceholderIndex=-1;return A};
_.R(fY,_.F);_.J=fY.prototype;_.J.onAmountClick=function(A){this.selectedAmountIndex=_.sF(this.hostElement).querySelector("#amounts").indexForElement(A.currentTarget)};
_.J.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.kJ(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.J.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.kJ(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.kJ(this.hostElement,"yt-close-popup-action",[this.is]);var A;(A=_.K1())==null||A.getPlayerPromise().then(function(t){t.pauseVideo()})}};
_.J.donationCallback=function(A){A.success?(this.hostElement.hasAttribute("live-chat")&&A.response&&A.response.data&&A.response.data.actions&&_.kJ(this.hostElement,"yt-live-chat-open-popup",[A.response.data.actions[0]]),_.kJ(this.hostElement,"yt-close-popup-action",[this.is]),_.kJ(this.hostElement,"yt-live-chat-close-buy-flow")):A.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(A.errorMessageRenderer)};
_.J.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.sF(this.hostElement).querySelector("#custom-amount-input").focus()};
_.J.updateConfirmationDialogTextWithAmount=function(A){var t=this.getConfirmDialogRuns();t&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(t),"text"],this.getFormattedAmount(A))};
_.J.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.J.getAmountPlaceholderIndex=function(A){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=A.findIndex(function(t){return t.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.J.getFormattedAmount=function(A){var t;return(new _.xI(4,((t=this.data)==null?void 0:t.currencyCode)||"")).format(A)};
_.J.isAmountValid=function(A){if(A==="")return!1;A=Number(A)*1E6;var t=this.get("minAmountMicros",this.data),f=this.get("maxAmountMicros",this.data);return t&&A<t||f&&A>f?!1:!0};
_.J.setInputError=function(){this.shouldShowValidationError?_.sF(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.sF(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.J.setInitialCheckboxValue=function(){var A;this.privacyCheckboxValue=!((A=this.data)==null||!A.privacyCheckboxInitialState)};
_.J.updateCustomAmountInputFromBinding=function(A){this.customAmountInput=A.detail.value};
_.J.updatePrivacyCheckboxValueFromBinding=function(A){this.privacyCheckboxValue=A.detail.value};
_.PV.Object.defineProperties(fY.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var A=this,t,f;return((t=this.data)==null?void 0:(f=t.suggestedAmounts)==null?void 0:f.map(function(X,Q){return{buttonRenderer:{style:A.selectedAmountIndex===Q?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:X.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 A;return!((A=this.data)==null||!A.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 A=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(A&&this.amountMicros!==null)return Object.assign({},A,{ypcGetCartEndpoint:Object.assign({},A.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 A=this.get("confirmLargeAmount",this.data);if(A&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),A}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A=this.get("donateButton.buttonRenderer",this.data);if(A)return Object.assign({},A,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
fY.prototype.setInitialCheckboxValue=fY.prototype.setInitialCheckboxValue;fY.prototype.setInputError=fY.prototype.setInputError;fY.prototype.setFocusOnCustomAmountInput=fY.prototype.setFocusOnCustomAmountInput;_.V([_.b(aZy),_.H("design:type",Object)],fY.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],fY.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],fY.prototype,"closeLabel",void 0);_.V([_.n(),_.H("design:type",Object)],fY.prototype,"selectedAmountIndex",void 0);_.V([_.n(),_.H("design:type",String)],fY.prototype,"customAmountInput",void 0);_.V([_.n(),_.H("design:type",Object)],fY.prototype,"privacyCheckboxValue",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],fY.prototype,"useAmsterdamStyle",void 0);_.V([_.ev("customAmount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fY.prototype,"setFocusOnCustomAmountInput",null);_.V([_.y("data","selectedAmountIndex"),_.H("design:type",Array),_.H("design:paramtypes",[])],fY.prototype,"suggestedAmountButtons",null);
_.V([_.y("data","selectedAmountIndex"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fY.prototype,"isCustomAmountSelected",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fY.prototype,"showPrivacyCheckbox",null);_.V([_.y("data","selectedAmountIndex","customAmount"),_.H("design:type",Object),_.H("design:paramtypes",[])],fY.prototype,"amountMicros",null);
_.V([_.y("isCustomAmountSelected","customAmountInput"),_.H("design:type",Object),_.H("design:paramtypes",[])],fY.prototype,"customAmount",null);_.V([_.y("customAmount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fY.prototype,"shouldShowValidationError",null);_.V([_.y("customAmount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fY.prototype,"isDonateButtonEnabled",null);
_.V([_.y("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.H("design:type",Object),_.H("design:paramtypes",[])],fY.prototype,"donateCommand",null);_.V([_.y("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.H("design:type",Object),_.H("design:paramtypes",[])],fY.prototype,"donateCommandWithConfirmation",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],fY.prototype,"largeDonationThreshold",null);
_.V([_.y("customAmount","donateCommand","amountMicros"),_.H("design:type",Object),_.H("design:paramtypes",[])],fY.prototype,"confirmLargeAmountCommand",null);_.V([_.y("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.H("design:type",Object),_.H("design:paramtypes",[])],fY.prototype,"donateButtonRenderer",null);_.V([_.ev("shouldShowValidationError"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fY.prototype,"setInputError",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fY.prototype,"setInitialCheckboxValue",null);_.V([_.y_({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],fY);
_.Y(fY,"ytd-donation-amount-picker-renderer",function(){if(ohQ!==void 0)return ohQ;var A=document.createElement("template");_.m(A,'\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" aria-label="[[getSimpleString(data.pickerTitle)]]" 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="[[closeLabel]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ohQ=A},{mode:1});var Syd;var $8y=function(){return _.F.apply(this,arguments)||this};
_.R($8y,_.F);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],$8y.prototype,"ytComponentBehavior",void 0);_.V([_.n({}),_.H("design:type",Object)],$8y.prototype,"data",void 0);_.V([_.y_({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],$8y);
_.Y($8y,"ytd-donation-post-transaction-content",function(){if(Syd!==void 0)return Syd;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Syd=A},{mode:1});var HTA;var X$=function(){return _.F.apply(this,arguments)||this};
_.R(X$,_.F);X$.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.V([_.n({}),_.H("design:type",Object)],X$.prototype,"data",void 0);_.V([_.y_({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],X$);
_.Y(X$,"ytd-donation-post-transaction-renderer",function(){if(HTA!==void 0)return HTA;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return HTA=A},{mode:1});var a1j;var KWj;var QZ=function(){return _.F.apply(this,arguments)||this};
_.R(QZ,_.F);QZ.prototype.computeIsStreamingProvider=function(A){return!!A.isStreamingShelf};
QZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],QZ.prototype,"data",void 0);_.V([_.n({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],QZ.prototype,"isStreamingProvider",void 0);
_.V([_.y_({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],QZ);
_.Y(QZ,"ytd-media-provider-renderer",function(){if(KWj!==void 0)return KWj;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return KWj=A},{mode:1});var ghA;var qz=function(){return _.F.apply(this,arguments)||this};
_.R(qz,_.F);qz.prototype.observeLightsourcePalette=function(){var A,t=(A=this.data)==null?void 0:A.vibrantsourceColorPaletteData;t&&_.BO(this.hostElement,t)};
qz.prototype.observeLightsourcePalette=qz.prototype.observeLightsourcePalette;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qz.prototype,"data",void 0);
_.V([_.ev("data.vibrantsourceColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qz.prototype,"observeLightsourcePalette",null);_.V([_.y_({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],qz);
_.Y(qz,"ytd-streaming-pop-up-dialog",function(){if(ghA!==void 0)return ghA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ghA=A},{mode:1});var JX=function(){return _.F.apply(this,arguments)||this};
_.R(JX,_.F);JX.prototype.onPopupOpened_=function(){var A;((A=this.data)==null?0:A.serviceEndpoint)&&_.Px().resolve(_.i2).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
JX.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
JX.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"}}}}};
JX.prototype.onPopupOpened_=JX.prototype.onPopupOpened_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ba),_.H("design:type",Object)],JX.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],JX.prototype,"data",void 0);
_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JX.prototype,"onPopupOpened_",null);_.V([_.y_({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],JX);
_.Y(JX,"ytd-brandconnect-popup-renderer",function(){if(a1j!==void 0)return a1j;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return a1j=A},{mode:1});var ww3;var Ut=function(){return _.F.apply(this,arguments)||this};
_.R(Ut,_.F);_.J=Ut.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){for(var A=0;A<this.getOptionRenderers().length;A++)this.notifyPath("data.options."+A+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+A+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.J.updateSubmitButton=function(A){this.set("data.submitButton.buttonRenderer.isDisabled",!A)};
_.J.computeAlt=function(A){return _.dF(A)};
_.J.onDismissTap=function(){_.kJ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Px().resolve(_.i2).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.getOptionRenderers=function(A){return(A=A||this.data)&&A.options?A.options.reduce(function(t,f){f.checkboxSurveyOptionRenderer&&t.push(f.checkboxSurveyOptionRenderer);return t},[]):[]};
_.J.onOptionChange=function(A){var t=this,f=!1;if(A.detail.checked)for(var X=this.getOptionRenderers().find(function(G){return G.value===A.detail.value}),Q=this.getOptionRenderers(),q=0;q<Q.length;q++){var e=Q[q];
this.notifyPath("data.options."+q+".checkboxSurveyOptionRenderer.checked");e.checked&&((X==null?0:X.isExclusiveOption)?!e.isExclusiveOption:e.isExclusiveOption)?this.set("data.options."+q+".checkboxSurveyOptionRenderer.checked",!1):e.checked&&(f=!0)}else f=this.getOptionRenderers().some(function(G,N){t.notifyPath("data.options."+N+".checkboxSurveyOptionRenderer.checked");return G.checked});
this.updateSubmitButton(f)};
_.J.onSubmitTap=function(){var A=this.getOptionRenderers().filter(function(q){return q.checked});
if(A.length!==0){var t=A.map(function(q){return q.responseEndpoint});
A=[];for(var f=1;f<t.length;f++){var X=void 0,Q=(X=_.C(t[f],_.vF))==null?void 0:X.feedbackToken;Q&&A.push(Q)}t=[t[0]];A.length&&t.push({extra_feedback_tokens:A});_.Al(this.hostElement,t);_.kJ(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);A=this.data&&this.data.submitActions||[];if(_.M("kevlar_command_handler_migration_killswitch"))_.tl(this.hostElement,A,this.hostElement);else for(A=_.U(A),t=A.next();!t.done;t=A.next())this.ytComponentBehavior.resolveCommand(t.value)}};
Ut.prototype.onOptionChange=Ut.prototype.onOptionChange;Ut.prototype.dataChanged=Ut.prototype.dataChanged;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],Ut.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Ut.prototype,"ytComponentBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.V([_.b(NIh),_.H("design:type",Object)],Ut.prototype,"ytdHatsSurveyBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ut.prototype,"data",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ut.prototype,"dataChanged",null);
_.V([_.UQ("ytd-checkbox-survey-option-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ut.prototype,"onOptionChange",null);_.V([_.y_({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Ut);
_.Y(Ut,"ytd-checkbox-survey-renderer",function(){if(ww3!==void 0)return ww3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ww3=A},{mode:1});var sAc;var k5A;var eS=function(){return _.F.apply(this,arguments)||this};
_.R(eS,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.V([_.b(lb3),_.H("design:type",Object)],eS.prototype,"ytdDismissalReasonBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],eS.prototype,"data",void 0);_.V([_.y_({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],eS);
_.Y(eS,"ytd-dismissal-reason-text-renderer",function(){if(k5A!==void 0)return k5A;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return k5A=A},{mode:1});var rDA;var Go=function(){return _.F.apply(this,arguments)||this};
_.R(Go,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.V([_.b(lb3),_.H("design:type",Object)],Go.prototype,"ytdDismissalReasonBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Go.prototype,"data",void 0);_.V([_.y_({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Go);
_.Y(Go,"ytd-dismissal-reason-video-renderer",function(){if(rDA!==void 0)return rDA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return rDA=A},{mode:1});var l7=function(){return _.F.apply(this,arguments)||this};
_.R(l7,_.F);_.J=l7.prototype;_.J.created=function(){this.selectedFeedbackTokens=new i_};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.J.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.J.onDismissalReasonSelected=function(A,t){_.s9(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(t);this.hasReasonsSelected=!0};
_.J.onDismissalReasonDeselected=function(A,t){_.s9(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(t);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.J.onCancelTap=function(){_.kJ(this.hostElement,"yt-close-popup-action")};
_.J.onSubmitTap=function(){var A=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(A={feedback_tokens:A},_.Px().resolve(_.i2).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},A,{element:this.hostElement})}));_.kJ(this.hostElement,"yt-close-popup-action")};
l7.prototype.onDismissalReasonDeselected=l7.prototype.onDismissalReasonDeselected;l7.prototype.onDismissalReasonSelected=l7.prototype.onDismissalReasonSelected;l7.prototype.dataChanged=l7.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],l7.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Boolean)],l7.prototype,"hasReasonsSelected",void 0);_.V([_.n(),_.H("design:type",i_)],l7.prototype,"selectedFeedbackTokens",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],l7.prototype,"dataChanged",null);_.V([_.UQ("yt-dismissal-reason-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,String]),_.H("design:returntype")],l7.prototype,"onDismissalReasonSelected",null);
_.V([_.UQ("yt-dismissal-reason-deselected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,String]),_.H("design:returntype")],l7.prototype,"onDismissalReasonDeselected",null);_.V([_.y_({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],l7);
_.Y(l7,"ytd-dismissal-follow-up-renderer",function(){if(sAc!==void 0)return sAc;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return sAc=A},{mode:1});var APm;var Nz=function(){return _.F.apply(this,arguments)||this};
_.R(Nz,_.F);_.J=Nz.prototype;_.J.onCheckedChange=function(){this.multiselect||_.s9(this.hostElement,"yt-feedback-single-select-changed");_.sF(this.hostElement).querySelector("#freeform").focus();_.s9(this.hostElement,"yt-refit")};
_.J.showTextBox=function(A,t){return A&&t};
_.J.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))};
_.J.updateDataCheckedFromBinding=function(A){this.set("data.checked",A.detail.value)};
_.J.updateDataResultTextFromBinding=function(A){this.set("data.resultText",A.detail.value)};
Nz.prototype.dataChanged=Nz.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Nz.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Nz.prototype,"multiselect",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Nz.prototype,"dataChanged",null);
_.V([_.y_({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Nz);
_.Y(Nz,"ytd-feedback-option-renderer",function(){if(APm!==void 0)return APm;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return APm=A},{mode:1});var t6l;var u7=function(){return _.F.apply(this,arguments)||this};
_.R(u7,_.F);u7.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
u7.prototype.onSingleSelectCheckedChanged=function(A){A=_.oO(A);for(var t=0;t<this.data.options.length;t++)if(A.data!==_.C(this.data.options[t],Rby)){var f="data.options."+t+".feedbackOptionRenderer.checked";this.notifyPath(f);this.set(f,!1)}};
u7.prototype.onSingleSelectCheckedChanged=u7.prototype.onSingleSelectCheckedChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],u7.prototype,"data",void 0);
_.V([_.UQ("yt-feedback-single-select-changed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],u7.prototype,"onSingleSelectCheckedChanged",null);_.V([_.y_({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],u7);
_.Y(u7,"ytd-feedback-question-renderer",function(){if(t6l!==void 0)return t6l;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return t6l=A},{mode:1});var fP3;var zo=function(){return _.F.apply(this,arguments)||this};
_.R(zo,_.F);zo.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
zo.prototype.getSelectedFeedbackResults=function(){for(var A={},t=0;t<this.data.questions.length;t++)for(var f=_.C(this.data.questions[t],hbh),X=0;X<f.options.length;X++){var Q=_.C(f.options[X],Rby);Q&&Q.checked&&(A[Q.optionKey]=Q.resultText)}return A};
zo.prototype.onKeyUp=function(){var A=this;_.sX(_.a6,function(){_.s9(A.hostElement,"yt-refit")});
_.a6.start()};
zo.prototype.submitSurvey=function(){var A=this.getSelectedFeedbackResults();Object.keys(A).length>0&&this.data.submitFeedbackEndpoint&&(A={survey_results:A,is_feedback_token_unencrypted:!0},_.Px().resolve(_.i2).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},A,{element:this.hostElement})}))};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],zo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],zo.prototype,"data",void 0);_.V([_.y_({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],zo);
_.Y(zo,"ytd-feedback-survey-renderer",function(){if(fP3!==void 0)return fP3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return fP3=A},{mode:1});var XWh;var Qn8;var PH=function(){return _.F.apply(this,arguments)||this};
_.R(PH,_.F);PH.prototype.computeAlt=function(A){return _.dF(A)};
PH.prototype.submitResponse=function(){var A,t;(A=this.data)!=null&&A.feedbackToken&&((t=this.data)==null?void 0:t.nextStageIndex)!==void 0&&(_.r2(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.r2(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
PH.prototype.onClick=function(){this.submitResponse()};
PH.prototype.onClick=PH.prototype.onClick;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],PH.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],PH.prototype,"vertical",void 0);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PH.prototype,"onClick",null);
_.V([_.y_({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],PH);
_.Y(PH,"ytd-single-select-answer-option-renderer",function(){if(Qn8!==void 0)return Qn8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Qn8=A},{mode:1});var qcj;var To=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return A};
_.R(To,_.F);To.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
To.prototype.dataChanged=function(){var A,t;this.vertical=((t=(A=this.data)==null?void 0:A.answerOrientation)!=null?t:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
To.prototype.submitFeedback=function(A){var t;((t=this.data)==null?0:t.responseEndpoint)&&A&&_.Al(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[A]}])};
To.prototype.dataChanged=To.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],To.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],To.prototype,"eventForwardingBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],To.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],To.prototype,"vertical",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],To.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],To);
_.Y(To,"ytd-single-select-question-renderer",function(){if(qcj!==void 0)return qcj;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return qcj=A},{mode:1});var i7=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return A};
_.R(i7,_.F);_.J=i7.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.jumpToStage(0)};
_.J.jumpToStage=function(A){var t,f;if((t=this.data)==null?0:(f=t.stages)==null?0:f[A])this.currentStage=this.data.stages[A],this.refitAfterRender()};
_.J.computeAlt=function(A){return _.dF(A)};
_.J.computeSimpleMessage=function(A){var t;return(t=_.C(A,WT8))==null?void 0:t.messageText};
_.J.computeHideDismiss=function(A){var t;return(t=_.C(A,AKd))==null?void 0:t.hideParentDismissButton};
_.J.onDismissTap=function(){_.kJ(this.hostElement,"yt-close-popup-action");_.C(this.currentStage,WT8)||this.data.dismissalEndpoint&&_.Px().resolve(_.i2).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.refitAfterRender=function(){var A=this;_.us(this,function(){_.s9(A.hostElement,"yt-refit")})};
i7.prototype.dataChanged=i7.prototype.dataChanged;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],i7.prototype,"eventForwardingBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],i7.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b(NIh),_.H("design:type",Object)],i7.prototype,"ytdHatsSurveyBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],i7.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],i7.prototype,"currentStage",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i7.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],i7);
_.Y(i7,"ytd-multi-stage-survey-renderer",function(){if(XWh!==void 0)return XWh;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return XWh=A},{mode:1});var JP3;var Ot=function(){return _.F.apply(this,arguments)||this};
_.R(Ot,_.F);Ot.prototype.computeAlt=function(A){return _.dF(A)};
Ot.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.Px().resolve(_.i2).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.kJ(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.TRw(!1)))};
Ot.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Ot.prototype.onTap=Ot.prototype.onTap;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],Ot.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ot.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ot.prototype,"vertical",void 0);
_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ot.prototype,"onTap",null);_.V([_.y_({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Ot);
_.Y(Ot,"ytd-single-option-survey-option-renderer",function(){if(JP3!==void 0)return JP3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return JP3=A},{mode:1});var U73;var cH=function(){return _.F.apply(this,arguments)||this};
_.R(cH,_.F);_.J=cH.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){var A,t;this.vertical=(((A=this.data)==null?void 0:(t=A.surveyOrientation)==null?void 0:t.type)||"HORIZONTAL")==="VERTICAL"};
_.J.computeAlt=function(A){return _.dF(A)};
_.J.onDismissTap=function(){_.kJ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Px().resolve(_.i2).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.TRw(!1))};
cH.prototype.dataChanged=cH.prototype.dataChanged;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],cH.prototype,"eventForwardingBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(NIh),_.H("design:type",Object)],cH.prototype,"ytdHatsSurveyBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],cH.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],cH.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],cH.prototype,"vertical",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cH.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],cH);
_.Y(cH,"ytd-single-option-survey-renderer",function(){if(U73!==void 0)return U73;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return U73=A},{mode:1});var eVj;var BH=function(){return _.F.apply(this,arguments)||this};
_.R(BH,_.F);BH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
BH.prototype.onDismissTap=function(){_.kJ(this.hostElement,"yt-close-popup-action")};
BH.prototype.onNavigate=function(){_.kJ(this.hostElement,"yt-close-popup-action")};
BH.prototype.onNavigate=BH.prototype.onNavigate;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],BH.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],BH.prototype,"data",void 0);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BH.prototype,"onNavigate",null);
_.V([_.y_({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],BH);
_.Y(BH,"ytd-survey-follow-up-renderer",function(){if(eVj!==void 0)return eVj;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return eVj=A},{mode:1});var GXj;var lPl;var N1Q;var Mz=function(){var A=_.F.apply(this,arguments)||this;A.polymer2="Element"in Polymer;return A};
_.R(Mz,_.F);_.J=Mz.prototype;_.J.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.J.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.J.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.J.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("minutes-changed",this.minutes))};
_.J.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("seconds-changed",this.seconds))};
_.J.updateMinutesFromBinding=function(A){this.minutes=A.detail.value};
_.J.updateSecondsFromBinding=function(A){this.seconds=A.detail.value};
Mz.prototype.secondsChangedForBinding=Mz.prototype.secondsChangedForBinding;Mz.prototype.minutesChangedForBinding=Mz.prototype.minutesChangedForBinding;Mz.prototype.secondsChanged=Mz.prototype.secondsChanged;_.V([_.n(),_.H("design:type",String)],Mz.prototype,"minutes",void 0);_.V([_.n(),_.H("design:type",String)],Mz.prototype,"seconds",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Mz.prototype,"polymer2",void 0);
_.V([_.lo("#seconds"),_.H("design:type",Object)],Mz.prototype,"secondsEl",void 0);_.V([_.ev("seconds"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mz.prototype,"secondsChanged",null);_.V([_.ev("minutes"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mz.prototype,"minutesChangedForBinding",null);
_.V([_.ev("seconds"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mz.prototype,"secondsChangedForBinding",null);_.V([_.WU({is:"yt-timestamp-input",disableElementRegistration:!0})],Mz);
_.Y(Mz,"yt-timestamp-input",function(){if(N1Q===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;lPl===void 0&&(lPl=document.createElement("template"));var X=lPl;f.call(t,X.content.cloneNode(!0),A.content.firstChild);N1Q=A}A=N1Q;return A},{mode:2});var CY=function(){return _.F.apply(this,arguments)||this};
_.R(CY,_.F);_.J=CY.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20786_scroller.dialogElement=this.hostElement.parentNode};
_.J.dataChanged=function(){var A=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.ge().getPlayerPromise().then(function(t){t=t.getCurrentTime();A.minutes=Math.floor(t/60).toString();A.seconds=(Math.floor(t)%60).toString()})};
_.J.onTapSubmit=function(A){A.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(A={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(A.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(A.minutes=this.minutes,A.seconds=this.seconds),_.Px().resolve(_.i2).resolveCommand(this.serviceEndpoint,{form:Object.assign({},A,{element:this.hostElement})}))};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.J.onYtServiceRequestCompleted=function(A,t){t=t.actions;if(Array.isArray(t))for(var f=0,X=t.length;f<X;f++)_.C(t[f],_.$4)&&(A.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(t[f]))};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.J.toggleSubmitButton=function(A){this.set("submitButton.isDisabled",!A)};
_.J.handleInput=function(){var A=this.issueType,t=this.affiliation,f=this.minutes,X=this.seconds;f=!this.showTimestamp||!!f&&!!X;this.toggleSubmitButton(!!this.descriptionText&&!!A&&!!t&&f)};
_.J.computeServiceEndpoint=function(A){return this.get("submitButton.buttonRenderer.serviceEndpoint",A)};
_.J.computeSubmitButton=function(A){(A=this.get("submitButton.buttonRenderer",A))&&(A=Object.assign({},A,{serviceEndpoint:void 0}));return A};
_.J.computeShowTimestamp=function(A){return!!A};
_.J.onValueChangedForIssueType=function(A){this.issueType=A.detail.value};
_.J.onValueChangedForAffiliation=function(A){this.affiliation=A.detail.value};
_.J.updateDescriptionTextFromBinding=function(A){this.descriptionText=A.detail.value};
_.J.updateFullNameTextFromBinding=function(A){this.fullNameText=A.detail.value};
_.J.updateMinutesFromBinding=function(A){this.minutes=A.detail.value};
_.J.updateSecondsFromBinding=function(A){this.seconds=A.detail.value};
CY.prototype.handleInput=CY.prototype.handleInput;CY.prototype.onYtServiceRequestError=CY.prototype.onYtServiceRequestError;CY.prototype.onYtServiceRequestCompleted=CY.prototype.onYtServiceRequestCompleted;CY.prototype.onYtServiceRequestSent=CY.prototype.onYtServiceRequestSent;CY.prototype.dataChanged=CY.prototype.dataChanged;_.V([_.b(_.I4.YtOpenPopupBehavior),_.H("design:type",Object)],CY.prototype,"ytOpenPopupBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.V([_.lo("#scroller"),_.H("design:type",Object)],CY.prototype,"JSC$20786_scroller",void 0);_.V([_.lo("#description"),_.H("design:type",HTMLInputElement)],CY.prototype,"description",void 0);_.V([_.lo("#full-name"),_.H("design:type",Object)],CY.prototype,"fullName",void 0);_.V([_.n(),_.H("design:type",Object)],CY.prototype,"data",void 0);
_.V([_.n({computed:"computeShowTimestamp(data.timestampLabel)"}),_.H("design:type",Boolean)],CY.prototype,"showTimestamp",void 0);_.V([_.n({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.H("design:type",Object)],CY.prototype,"serviceEndpoint",void 0);_.V([_.n({computed:"computeSubmitButton(data)"}),_.H("design:type",Object)],CY.prototype,"submitButton",void 0);_.V([_.n(),_.H("design:type",String)],CY.prototype,"descriptionText",void 0);
_.V([_.n(),_.H("design:type",Number)],CY.prototype,"issueType",void 0);_.V([_.n(),_.H("design:type",Number)],CY.prototype,"affiliation",void 0);_.V([_.n(),_.H("design:type",String)],CY.prototype,"fullNameText",void 0);_.V([_.n(),_.H("design:type",String)],CY.prototype,"minutes",void 0);_.V([_.n(),_.H("design:type",String)],CY.prototype,"seconds",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CY.prototype,"dataChanged",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],CY.prototype,"onYtServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],CY.prototype,"onYtServiceRequestCompleted",null);
_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],CY.prototype,"onYtServiceRequestError",null);_.V([_.ev("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CY.prototype,"handleInput",null);_.V([_.y_({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],CY);
_.Y(CY,"ytd-legal-report-details-form-renderer",function(){if(GXj!==void 0)return GXj;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return GXj=A},{mode:1});var uel;var hX=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return A};
_.R(hX,_.F);hX.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
hX.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var A=this.formRenderer.getForm();A&&this.data.submitEndpoint&&(_.Px().resolve(_.i2).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},A,{element:this.hostElement})}),_.kJ(this.hostElement,"yt-close-popup-action"))}};
hX.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.kJ(this.hostElement,"yt-close-popup-action"))};
hX.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
hX.prototype.onPopupClosed=hX.prototype.onPopupClosed;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],hX.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],hX.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);
_.V([_.lo("yt-form-renderer"),_.H("design:type",Object)],hX.prototype,"formRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],hX.prototype,"data",void 0);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hX.prototype,"onPopupClosed",null);_.V([_.y_({is:"ytd-form-popup-content",disableElementRegistration:!0})],hX);
_.Y(hX,"ytd-form-popup-content",function(){if(uel!==void 0)return uel;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return uel=A},{mode:1});var zVd;var Ru=function(){return _.F.apply(this,arguments)||this};
_.R(Ru,_.F);Ru.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ru.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ru.prototype.onPopupOpened=function(){_.s9(this.hostElement,"yt-invalidate-popup-tabbables")};
Ru.prototype.onYtServiceRequestCompleted=function(A,t){t.data&&t.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.s9(this.hostElement,"yt-invalidate-popup-tabbables"))};
Ru.prototype.onYtServiceRequestCompleted=Ru.prototype.onYtServiceRequestCompleted;Ru.prototype.onPopupOpened=Ru.prototype.onPopupOpened;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],Ru.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Ru.prototype,"data",void 0);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ru.prototype,"onPopupOpened",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],Ru.prototype,"onYtServiceRequestCompleted",null);_.V([_.y_({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Ru);
_.Y(Ru,"ytd-form-popup-renderer",function(){if(zVd!==void 0)return zVd;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return zVd=A},{mode:1});var P43;var mr=function(){var A=_.F.apply(this,arguments)||this;A.isLoading=!1;return A};
_.R(mr,_.F);_.J=mr.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Vr3(this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.isLoading=!0};
_.J.onYtServiceRequestCompleted=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.J.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.tl(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.J.closePopupHandler=function(){this.fireOnCloseActions()};
_.J.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var A=this.get("data.headerImage.thumbnails");A&&(A=_.a8(A,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+A+")")}};
_.J.onYtNavigate=function(A){(A=_.oO(A))&&A.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
mr.prototype.onYtNavigate=mr.prototype.onYtNavigate;mr.prototype.onHeaderImageChanged=mr.prototype.onHeaderImageChanged;mr.prototype.closePopupHandler=mr.prototype.closePopupHandler;mr.prototype.onYtServiceRequestCompleted=mr.prototype.onYtServiceRequestCompleted;mr.prototype.onYtServiceRequestSent=mr.prototype.onYtServiceRequestSent;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],mr.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],mr.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],mr.prototype,"isLoading",void 0);_.V([_.lo("#header"),_.H("design:type",HTMLDivElement)],mr.prototype,"header",void 0);_.V([_.lo("#confirm-button"),_.H("design:type",_.HS)],mr.prototype,"confirmButton",void 0);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mr.prototype,"onYtServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mr.prototype,"onYtServiceRequestCompleted",null);
_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],mr.prototype,"closePopupHandler",null);_.V([_.ev("data.headerImage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mr.prototype,"onHeaderImageChanged",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mr.prototype,"onYtNavigate",null);
_.V([_.y_({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],mr);
_.Y(mr,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(P43!==void 0)return P43;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return P43=A},{mode:1});var T1A;var b7=function(){var A=_.F.apply(this,arguments)||this;A.isLoading=!1;return A};
_.R(b7,_.F);_.J=b7.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Vr3(this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.J.onYtServiceRequestError=function(A){_.jL(this.hostElement,A.detail.error.message)};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.kJ(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.J.onDataChanged=function(){this.isLoading=!1;var A=this.get("data.headerImage.thumbnails");A&&(A=_.a8(A,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+A+")");A=_.Ws();var t=_.mx(),f=this.get("data.trackingParams");f&&t&&A&&_.x7(A,t,_.zV(f))};
_.PV.Object.defineProperties(b7.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
b7.prototype.onDataChanged=b7.prototype.onDataChanged;b7.prototype.onDomChange=b7.prototype.onDomChange;b7.prototype.onYtServiceRequestError=b7.prototype.onYtServiceRequestError;b7.prototype.onYtServiceRequestCompleted=b7.prototype.onYtServiceRequestCompleted;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],b7.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],b7.prototype,"isLoading",void 0);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],b7.prototype,"hasDescription",null);_.V([_.lo("tp-yt-paper-dialog-scrollable"),_.H("design:type",Object)],b7.prototype,"scrollable",void 0);_.V([_.lo("#header"),_.H("design:type",HTMLElement)],b7.prototype,"header",void 0);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],b7.prototype,"onYtServiceRequestCompleted",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],b7.prototype,"onYtServiceRequestError",null);
_.V([_.UQ("dom-change"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],b7.prototype,"onDomChange",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b7.prototype,"onDataChanged",null);_.V([_.y_({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],b7);
_.Y(b7,"ytd-gaming-account-link-setting-renderer",function(){if(T1A!==void 0)return T1A;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return T1A=A},{mode:1});var iiy;var Oiy;var WH=function(){var A=_.F.apply(this,arguments)||this;A.isHeader=!1;A.getEndpointForm=function(){return ary(A.data)};
return A};
_.R(WH,_.F);_.J=WH.prototype;_.J.triggerHintActions=function(){var A=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var t=_.r2(A.hostElement,"yt-get-opened-popups-action");!(t&&t.length===1?t[0]:[]).some(function(f){f=f.openPopupAction.popupType;return f==="SURVEY"||f==="MEALBAR"||f==="HINT"})&&A.data.hintActions&&A.guideOpened&&(_.tl(A.hostElement,A.data.hintActions,A.hostElement),A.data.hintActions=void 0)})};
_.J.getBadgeIconType=function(A){return A&&A.liveBroadcasting?"live":null};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(A){if(this.data.serviceEndpoint){var t;_.M("shorts_controller_retrieve_seedless_sequence_v2")&&((t=_.C(this.data.serviceEndpoint,_.zD))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Hdy(this.data.serviceEndpoint,this);A.preventDefault()}else this.data.navigationEndpoint&&!_.Sl(_.Z2(A),this.hostElement,["A".toString()])&&_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.J.computeActive=function(A,t){if(!A)return!1;var f=A.navigationEndpoint;A=A.serviceEndpoint;if(!f&&!A||!t)return!1;if(f){A=(A=_.eI(t))&&["subscriptions","filteredsubscriptions"].includes(A);if(_.C(f,_.GD)&&_.C(t,_.GD)&&!A){var X=_.C(f,_.GD).browseId;t=_.C(t,_.GD).browseId;return X!==void 0&&t!==void 0&&(X===t||X==="VLWL"&&t==="FEwatch_later"||X==="FEwatch_later"&&t==="VLWL")}var Q;f=(Q=_.C(f.commandMetadata,_.Jl))==null?void 0:Q.url;t=(X=_.C(t.commandMetadata,_.Jl))==null?void 0:X.url;return!(!f||
!t||f!==t&&f!==_.Wx(t))}return this.isActiveShortsTab(A,t)};
_.J.isActiveShortsTab=function(A,t){t=!!_.C(t,_.zD)||!!_.C(t,_.JM);return(!!_.C(A,_.zD)||!!_.C(A,_.JM))&&t};
_.J.computeIsPrimary=function(A){return!!A};
_.PV.Object.defineProperties(WH.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 A=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&A)return A}}});
WH.prototype.onTap=WH.prototype.onTap;WH.prototype.onUp=WH.prototype.onUp;WH.prototype.onDown=WH.prototype.onDown;WH.prototype.triggerHintActions=WH.prototype.triggerHintActions;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],WH.prototype,"componentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],WH.prototype,"rendererBehavior",void 0);_.V([_.b(_.BS.YtTaskEmitterBehavior),_.H("design:type",Object)],WH.prototype,"taskEmitterBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],WH.prototype,"activeEndpoint",void 0);_.V([_.n(),_.H("design:type",Object)],WH.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],WH.prototype,"guideOpened",void 0);_.V([_.n(),_.H("design:type",String)],WH.prototype,"type",void 0);_.V([_.lo("yt-interaction"),_.H("design:type",Object)],WH.prototype,"interaction",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],WH.prototype,"isHeader",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("data","activeEndpoint"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],WH.prototype,"active",null);_.V([_.n({reflectToAttribute:!0}),_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],WH.prototype,"isPrimary",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.count","data.presentationStyle","data.badges.*"),_.H("design:type",String),_.H("design:paramtypes",[])],WH.prototype,"lineEndStyle",null);
_.V([_.y("lineEndStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],WH.prototype,"ariaLabel",null);_.V([_.ev("data.hintActions","guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WH.prototype,"triggerHintActions",null);_.V([_.UQ("down"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WH.prototype,"onDown",null);
_.V([_.UQ("up"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],WH.prototype,"onUp",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],WH.prototype,"onTap",null);_.V([_.y_({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],WH);
_.Y(WH,"ytd-guide-entry-renderer",function(){if(Oiy!==void 0)return Oiy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Oiy=A},{mode:1});var yZ=function(){var A=_.F.apply(this,arguments)||this;A.userToggled=!1;return A};
_.R(yZ,_.F);_.J=yZ.prototype;_.J.getItemsPath=function(){return"data.expandableItems"};
_.J.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.J.onExpanderItemTapped=function(A){var t=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.M("kevlar_guide_expandable_items_killswitch")&&_.us(this,function(){_.GO(t.expandableItems)});
A.preventDefault()};
_.J.onCollapserItemTapped=function(A){var t=this;this._setExpanded(!1);this.userToggled=!0;A.preventDefault();this.expandableItems&&!_.M("kevlar_guide_collapsible_items_killswitch")&&_.us(this,function(){_.eY(t.hostElement)})};
_.J.observeActiveEndpoint=function(){for(var A=this.activeEndpoint,t=this.data,f=this.expandableItems.children,X=0,Q=f.length;X<Q;X++)f[X].activeEndpoint=A;t&&t.autoExpandCommand&&A&&!this.userToggled&&(f=this.data.autoExpandCommand,t=!(!_.C(f,_.GD)||!_.C(A,_.GD)||_.C(f,_.GD).browseId!==_.C(A,_.GD).browseId),A=this.get("commandMetadata.webCommandMetadata.url",A),f=this.get("commandMetadata.webCommandMetadata.url",f),t=t||!!(A&&f&&A.includes(f)),this._setExpanded(t),t&&this.ytLazyListBehavior.fillRemainingListItems())};
yZ.prototype.observeActiveEndpoint=yZ.prototype.observeActiveEndpoint;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.bC.YtLazyListBehavior),_.H("design:type",Object)],yZ.prototype,"ytLazyListBehavior",void 0);_.V([_.lo("#expandable-items"),_.H("design:type",HTMLElement)],yZ.prototype,"expandableItems",void 0);
_.V([_.n(),_.H("design:type",Object)],yZ.prototype,"data",void 0);_.V([_.n({readOnly:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],yZ.prototype,"expanded",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],yZ.prototype,"initialCount",void 0);_.V([_.n(),_.H("design:type",Object)],yZ.prototype,"activeEndpoint",void 0);_.V([_.ev("data","activeEndpoint","canShowMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yZ.prototype,"observeActiveEndpoint",null);
_.V([_.y_({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],yZ);
_.Y(yZ,"ytd-guide-collapsible-entry-renderer",function(){if(iiy!==void 0)return iiy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return iiy=A},{mode:_.sQ("kevlar_poly_si_batch_j079")?1:2});var cPQ;var B1m;var vH=function(){var A=_.F.apply(this,arguments)||this;A.allVideosCount=0;A.renderGuideEntry=!1;return A};
_.R(vH,_.F);vH.prototype.observeRenderEntry=function(){var A;this.renderGuideEntry=!((A=this.data)==null||!A.alwaysShow)||!!this.allVideosCount};
vH.prototype.observeRenderEntry=vH.prototype.observeRenderEntry;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],vH.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],vH.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],vH.prototype,"activeEndpoint",void 0);_.V([_.n({selector:_.Y$0}),_.H("design:type",Object)],vH.prototype,"allVideosCount",void 0);
_.V([_.n(),_.H("design:type",Object)],vH.prototype,"renderGuideEntry",void 0);_.V([_.PU("allVideosCount","data.alwaysShow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vH.prototype,"observeRenderEntry",null);_.V([_.y_({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],vH);
_.Y(vH,"ytd-guide-downloads-entry-renderer",function(){if(B1m===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);B1m=A}A=B1m;return A},{mode:1});var LY=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return A};
_.R(LY,_.F);_.J=LY.prototype;_.J.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]]"}}}}}};
_.J.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var A=this.sectionItems.children,t=0,f=A.length;t<f;t++)A[t].activeEndpoint=this.activeEndpoint}};
_.J.handleAddToGuideSectionAction=function(A){var t=_.C(A,Xg8);if(t&&this.data&&(A=t.items,t=t.handlerData,A&&t&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(t)>-1)){t=0;for(var f=A.length;t<f;t++)A[t].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,A[t])}};
_.J.handleRemoveFromGuideSectionAction=function(A){var t=_.C(A,Qay);t&&this.data&&(A=t.guideEntryId,t=t.handlerData,A&&t&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(t)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(A,this.data.sectionItems),this.removeFromCollapsedSection(A,this.data.sectionItems)))};
_.J.removeFromExpandedSection=function(A,t){A=this.getEntryIndexMatchingId(A,t);A!==-1&&this.splice("data.sectionItems",A,1)};
_.J.removeFromCollapsedSection=function(A,t){var f=t.findIndex(function(X){return!!_.C(X,gp2)});
f&&f!==-1&&t[f]&&_.C(t[f],gp2)&&(t=_.C(t[f],gp2).expandableItems)&&(A=this.getEntryIndexMatchingId(A,t),A!==-1&&this.splice("data.sectionItems."+f+".guideCollapsibleEntryRenderer.expandableItems",A,1))};
_.J.getEntryIndexMatchingId=function(A,t){var f=this;return t.findIndex(function(X){return f.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",X)===A})};
LY.prototype.activeEndpointChanged=LY.prototype.activeEndpointChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],LY.prototype,"actionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.lo("#section-items"),_.H("design:type",HTMLDivElement)],LY.prototype,"sectionItems",void 0);
_.V([_.lo("#header-entry"),_.H("design:type",Object)],LY.prototype,"headerEntry",void 0);_.V([_.n(),_.H("design:type",Object)],LY.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],LY.prototype,"activeEndpoint",void 0);_.V([_.ev("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LY.prototype,"activeEndpointChanged",null);_.V([_.y_({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],LY);
_.Y(LY,"ytd-guide-collapsible-section-entry-renderer",function(){if(cPQ===void 0){var A=document.createElement("template");_.m(A,'\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="true" 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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);cPQ=A}A=cPQ;return A},{mode:1});var M6j;var C42;var pY=function(){var A=_.F.apply(this,arguments)||this;A.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 A};
_.R(pY,_.F);_.J=pY.prototype;
_.J.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}}}}};
_.J.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var A=_.r2(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);A&&A.length===1&&A[0]&&_.r2(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.J.handleResetChannelUnreadCountCommand=function(A){var t;(A=(t=_.C(A,Jkl))==null?void 0:t.channelId)&&this.data&&this.data.items&&(t=this.getPathToEntryMatchingId(A))&&(this.set(t+".guideEntryRenderer.count",0),this.set(t+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.handleResetSubscriptionsUnreadDotCommand=function(A){var t,f=(t=_.C(A,UVl))==null?void 0:t.targetId,X;f&&(X=this.data)!=null&&X.items&&(A=this.data.items.findIndex(function(Q){var q;return((q=Q.guideEntryRenderer)==null?void 0:q.targetId)===f}),A<0||this.set("data.items."+A+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.getPathToEntryMatchingId=function(A){if(this.data&&this.data.items){var t=this.getEntryIndexMatchingId(A,this.data.items);if(t>-1)return"data.items."+t;for(var f=0;f<this.data.items.length;f++)if(t=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[f]))if(t=this.getEntryIndexMatchingId(A,t),t>-1)return"data.items."+f+".guideCollapsibleEntryRenderer.expandableItems."+t}};
_.J.handleAddToGuideSectionAction=function(A){var t=this;if(_.C(A,Xg8)){var f=_.C(A,Xg8).items;A=_.C(A,Xg8).handlerData;var X,Q;if(f&&A&&((X=this.data)==null?void 0:(Q=X.handlerDatas)==null?void 0:Q.indexOf(A))>-1){f=f.filter(function(e){return(e=t.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",e))&&!t.isGuideItemPresent(e)});
var q;if(A==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((q=this.data)==null?0:q.items)&&(X=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),X>-1)){this.splice.apply(this,["data.items",X+1,0].concat(_.YV(f)));return}this.unshift.apply(this,["data.items"].concat(_.YV(f)))}}};
_.J.isGuideItemPresent=function(A){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(A,this.data.items)!==-1)return!0;var t=this.data.items.find(function(f){return!!f.guideCollapsibleEntryRenderer});
if((t==null?0:t.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(A,t.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.J.getEntryIndexMatchingId=function(A,t){var f=this;return t.findIndex(function(X){return f.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",X)===A})};
_.J.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(A,t){var f=this;return t.findIndex(function(X){return f.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",X)===A})};
_.J.handleRemoveFromGuideSectionAction=function(A){if(_.C(A,Qay)){var t=_.C(A,Qay).guideEntryId;A=_.C(A,Qay).handlerData;var f,X;t&&A&&((f=this.data)==null?void 0:(X=f.handlerDatas)==null?void 0:X.indexOf(A))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(t,this.data.items),this.removeFromCollapsedSection(t,this.data.items))}};
_.J.removeFromExpandedSection=function(A,t){A=this.getEntryIndexMatchingId(A,t);A!==-1&&this.splice("data.items",A,1)};
_.J.removeFromCollapsedSection=function(A,t){var f=t.findIndex(function(X){return!!X.guideCollapsibleEntryRenderer});
f!==-1&&(t=t[f].guideCollapsibleEntryRenderer.expandableItems)&&(A=this.getEntryIndexMatchingId(A,t),A!==-1&&this.splice("data.items."+f+".guideCollapsibleEntryRenderer.expandableItems",A,1))};
_.J.activeEndpointChanged=function(){for(var A=_.sF(this.hostElement).querySelector("#items").children,t=0,f=A.length;t<f;t++)A[t].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.J.guideOpenedChanged=function(){for(var A=_.sF(this.hostElement).querySelector("#items").children,t=0,f=A.length;t<f;t++)A[t].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
pY.prototype.guideOpenedChanged=pY.prototype.guideOpenedChanged;pY.prototype.activeEndpointChanged=pY.prototype.activeEndpointChanged;pY.prototype.persistentGuideChanged=pY.prototype.persistentGuideChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],pY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.bC.YtLazyListBehavior),_.H("design:type",Object)],pY.prototype,"ytLazyListBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],pY.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],pY.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],pY.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",String)],pY.prototype,"type",void 0);_.V([_.n({value:20}),_.H("design:type",Number)],pY.prototype,"initialCount",void 0);_.V([_.n({value:10}),_.H("design:type",Number)],pY.prototype,"targetFramerate",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],pY.prototype,"autoFill",void 0);_.V([_.n({value:50}),_.H("design:type",Number)],pY.prototype,"renderDelay",void 0);
_.V([_.ev("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pY.prototype,"persistentGuideChanged",null);_.V([_.PU("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pY.prototype,"activeEndpointChanged",null);_.V([_.PU("guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pY.prototype,"guideOpenedChanged",null);
_.V([_.y_({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],pY);
_.Y(pY,"ytd-guide-section-renderer",function(){if(C42!==void 0)return C42;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return C42=A},{mode:_.sQ("kevlar_poly_si_batch_j073")?1:2});var hVl;var Et=function(){return _.F.apply(this,arguments)||this};
_.R(Et,_.F);_.PV.Object.defineProperties(Et.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Et.prototype,"rendererBehaviors",void 0);_.V([_.n(),_.H("design:type",Object)],Et.prototype,"data",void 0);_.V([_.n(),_.y("data.signInButton.buttonRenderer.style"),_.H("design:type",Object),_.H("design:paramtypes",[])],Et.prototype,"alignByText",null);_.V([_.y_({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Et);
_.Y(Et,"ytd-guide-signin-promo-renderer",function(){if(hVl===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);hVl=A}A=hVl;return A},{mode:1});var nY=function(){var A=_.F.apply(this,arguments)||this;A.showFooter=!1;return A};
_.R(nY,_.F);nY.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}}}}};
nY.prototype.attached=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1){t=_.Px().resolve(_.z7(_.lC));if(!t)return f.jumpTo(0);t.setGuideData(A.hostElement);return f.yield(0,3)}A.ytLazyListBehavior.initialCount=2;return f.return()})};
nY.prototype.onMouseExit=function(){_.M("web_guide_hover_expansion")&&_.r2(this.hostElement,"yt-guide-mouseleaved",[])};
nY.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
nY.prototype.dataChanged=nY.prototype.dataChanged;nY.prototype.onMouseExit=nY.prototype.onMouseExit;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],nY.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.bC.YtLazyListBehavior),_.H("design:type",Object)],nY.prototype,"ytLazyListBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],nY.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],nY.prototype,"showFooter",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],nY.prototype,"autoFill",void 0);_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nY.prototype,"onMouseExit",null);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nY.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-guide-renderer",disableElementRegistration:!0})],nY);
_.Y(nY,"ytd-guide-renderer",function(){if(M6j!==void 0)return M6j;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return M6j=A},{mode:_.sQ("kevlar_poly_si_batch_j073")?1:2});var RV3;var Dh=function(){var A=_.F.apply(this,arguments)||this;A.systemIcons=_.M("kevlar_system_icons");A.frostedGlass=_.M("web_frosted_glass");A.getEndpointForm=function(){return ary(A.data)};
return A};
_.R(Dh,_.F);_.J=Dh.prototype;_.J.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0");this.JSC$20839_sheetController=_.Px().resolve(_.Ak)};
_.J.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.dF(this.data.formattedTitle))};
_.J.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var A;if((A=this.JSC$20839_sheetController)!=null){var t=this.mouseEnterCallback.bind(this),f=this.mouseLeaveCallback.bind(this);A.hoverEnterCallback=t!=null?t:void 0;A.hoverLeaveCallback=f!=null?f:void 0}}};
_.J.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.J.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.J.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(A){if(this.data.serviceEndpoint){var t;if(_.M("shorts_controller_retrieve_seedless_sequence_v2")&&((t=_.C(this.data.serviceEndpoint,_.zD))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(_.C(this.data.serviceEndpoint,_.ij)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);A.preventDefault();return}Hdy(this.data.serviceEndpoint,this)}A.preventDefault()}else{var f;((f=this.data)==
null?0:f.navigationEndpoint)&&!_.Sl(_.Z2(A),this.hostElement,["A".toString()])&&_.s9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.J.computeActive=function(A,t){if(!A)return!1;var f=A.navigationEndpoint;A=A.serviceEndpoint;if(!f&&!A||!t)return!1;if(f){A=_.C(f,_.GD);var X=_.C(t,_.GD);if(A&&X)return A.browseId===X.browseId&&A.params===X.params;var Q;f=(Q=_.C(f.commandMetadata,_.Jl))==null?void 0:Q.url;var q;t=(q=_.C(t.commandMetadata,_.Jl))==null?void 0:q.url;return!(!f||!t||f!==t&&f!==_.Wx(t))}return this.isActiveShortsTab(A,t)};
_.J.isActiveShortsTab=function(A,t){t=!!_.C(t,_.zD)||!!_.C(t,_.JM);return(!!_.C(A,_.zD)||!!_.C(A,_.JM))&&t};
_.J.computeTitle=function(A,t){return t?"":_.dF(A)};
_.PV.Object.defineProperties(Dh.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Dh.prototype.onTap=Dh.prototype.onTap;Dh.prototype.onUp=Dh.prototype.onUp;Dh.prototype.onMouseLeave=Dh.prototype.onMouseLeave;Dh.prototype.onMouseEnter=Dh.prototype.onMouseEnter;Dh.prototype.onDown=Dh.prototype.onDown;Dh.prototype.onActiveStateChange=Dh.prototype.onActiveStateChange;Dh.prototype.dataChanged=Dh.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Dh.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.wO),_.H("design:type",Object)],Dh.prototype,"ironButtonState",void 0);_.V([_.n(),_.H("design:type",Object)],Dh.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Dh.prototype,"activeEndpoint",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Dh.prototype,"noLabels",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.H("design:type",Boolean)],Dh.prototype,"isActive",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Dh.prototype,"systemIcons",void 0);_.V([_.lo("yt-interaction"),_.H("design:type",Object)],Dh.prototype,"interaction",void 0);_.V([_.y("isActive"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dh.prototype,"ariaSelected",null);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],Dh.prototype,"frostedGlass",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dh.prototype,"dataChanged",null);_.V([_.ev("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dh.prototype,"onActiveStateChange",null);_.V([_.UQ("down"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dh.prototype,"onDown",null);
_.V([_.UQ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],Dh.prototype,"onMouseEnter",null);_.V([_.UQ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],Dh.prototype,"onMouseLeave",null);_.V([_.UQ("up"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dh.prototype,"onUp",null);
_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Dh.prototype,"onTap",null);_.V([_.y_({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Dh);
_.Y(Dh,"ytd-mini-guide-entry-renderer",function(){if(RV3!==void 0)return RV3;var A=document.createElement("template");_.m(A,'\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="0" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return RV3=A},{mode:_.sQ("kevlar_poly_si_batch_j063")?1:2});var m7l;var F$=function(){var A=_.F.apply(this,arguments)||this;A.allVideosCount=0;A.noLabels=_.M("kevlar_mini_guide_no_labels");A.frostedGlass=_.M("web_frosted_glass");return A};
_.R(F$,_.F);_.J=F$.prototype;_.J.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.J.onMouseEnter=function(){_.M("web_guide_hover_expansion")&&_.r2(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.J.visibleChanged=function(){if(this.visible&&!this.data){var A=_.Px().resolve(_.z7(_.lC));A&&A.setGuideData(this.hostElement)}};
_.J.dataChanged=function(){var A=_.M("kevlar_guide_menu_on_hover")&&_.M("kevlar_modern_mini_guide"),t=_.M("kevlar_guide_menu_on_click")&&_.M("kevlar_modern_mini_guide"),f;var X=(f=this.data)==null?void 0:f.items;f=this.allVideosCount;var Q=[];A=A?0:t?1:void 0;t=A!==void 0;if(X){for(var q=[],e=_.U(X),G=e.next();!G.done;G=e.next())if(G=G.value,G.guideSubscriptionsSectionRenderer){var N=void 0;q=((N=G.guideSubscriptionsSectionRenderer)==null?void 0:N.items)||[]}X=_.U(X);for(e=X.next();!e.done;e=X.next())if(e=
e.value,G=void 0,(G=e.guideSectionRenderer)==null?0:G.items)for(G=void 0,e=_.U((G=e.guideSectionRenderer)==null?void 0:G.items),G=e.next();!G.done;G=e.next()){G=G.value;var z=void 0,T=void 0;N=G.guideEntryRenderer||_.C((z=G)==null?void 0:(T=z.guideCollapsibleSectionEntryRenderer)==null?void 0:T.headerEntry,Kam);z=[];T=[];var O=void 0;if(((O=N)==null?void 0:O.targetId)==="subscriptions-guide-item")z=q;else{var c=O=void 0;if((O=G)==null?0:(c=O.guideCollapsibleSectionEntryRenderer)==null?0:c.sectionItems)T=
z=G.guideCollapsibleSectionEntryRenderer.sectionItems}wzd(Q,N,t?z:[],A);if(T.length>0)for(G=_.U(T),N=G.next();!N.done;N=G.next())N=N.value,T=_.C(N,Umy),z=void 0,T=T&&(T.alwaysShow||f)?_.C((z=T)==null?void 0:z.entryRenderer,Kam):_.C(N,Kam),wzd(Q,T,[])}}this.miniGuideItems=Q};
_.J.activeEndpointChanged=function(){for(var A=this.items.children,t=0;t<A.length;t++)A[t].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.J.registerWithViewTransitionManager=function(){var A=this;_.jY(_.a6,function(){var t=_.Px().resolve(_.z7(_.w4));if(t&&t.isAnyTransitionEnabled){var f={};t.viewTransitionCoordinator.registerElement(A.hostElement,(f.slide="mini-guide-page-transition",f))}})};
F$.prototype.activeEndpointChanged=F$.prototype.activeEndpointChanged;F$.prototype.dataChanged=F$.prototype.dataChanged;F$.prototype.visibleChanged=F$.prototype.visibleChanged;F$.prototype.onMouseEnter=F$.prototype.onMouseEnter;_.V([_.b(_.qT),_.H("design:type",Object)],F$.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],F$.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],F$.prototype,"ytComponentBehavior",void 0);_.V([_.lo("#items"),_.H("design:type",Object)],F$.prototype,"items",void 0);_.V([_.n(),_.H("design:type",Object)],F$.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Boolean)],F$.prototype,"visible",void 0);_.V([_.n(),_.H("design:type",Object)],F$.prototype,"miniGuideItems",void 0);_.V([_.n({selector:_.Y$0}),_.H("design:type",Object)],F$.prototype,"allVideosCount",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"noLabels",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"frostedGlass",void 0);
_.V([_.UQ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F$.prototype,"onMouseEnter",null);_.V([_.PU("visible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F$.prototype,"visibleChanged",null);_.V([_.PU("data","allVideosCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F$.prototype,"dataChanged",null);
_.V([_.PU("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F$.prototype,"activeEndpointChanged",null);_.V([_.y_({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],F$);
_.Y(F$,"ytd-mini-guide-renderer",function(){if(m7l===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);m7l=A}A=m7l;return A},{mode:1});var bij;var WNj=/^[\x00-\x7F]+$/,Iu=function(){return _.F.apply(this,arguments)||this};
_.R(Iu,_.F);_.PV.Object.defineProperties(Iu.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var A,t=_.dF((A=this.data)==null?void 0:A.handle);if(t)return _.oC("@"+t)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var A=_.dF(this.displayHandle),t,f=_.dF((t=this.data)==null?void 0:t.handleUrl);if(A&&f)return _.oC(f+A)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var A=_.dF(this.displayHandle);if(A&&!WNj.test(A)){var t;return(t=this.data)==null?void 0:t.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var A=_.dF(this.displayHandleUrl),t,f=_.dF((t=this.data)==null?void 0:t.urlInfoText);if(A&&f)return _.oC(f+" "+A)}}});
_.V([_.n(),_.H("design:type",Object)],Iu.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Iu.prototype,"displayHandle",null);_.V([_.y("displayHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],Iu.prototype,"displayHandleUrl",null);_.V([_.y("displayHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],Iu.prototype,"warningText",null);
_.V([_.y("displayHandleUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],Iu.prototype,"urlInfoTextWithUrl",null);_.V([_.y_({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Iu);
_.Y(Iu,"ytd-handles-claiming-confirm-dialog-content",function(){if(bij!==void 0)return bij;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return bij=A},{mode:1});var yPh;var xU=function(){var A=_.F.apply(this,arguments)||this;A.okButtonOverride={style:"mono",type:"outline",size:"M"};return A};
_.R(xU,_.F);xU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xU.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],xU.prototype,"okButtonOverride",void 0);_.V([_.n(),_.H("design:type",Object)],xU.prototype,"data",void 0);_.V([_.y_({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],xU);
_.Y(xU,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(yPh!==void 0)return yPh;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return yPh=A},{mode:1});var vWc;var LNl=/^[\x00-\x7F]+$/,jS=function(){var A=_.F.apply(this,arguments)||this;A.isLoading=!1;return A};
_.R(jS,_.F);jS.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var A;this.selectedHandle=(A=this.handleInput)==null?void 0:A.value;this.onSelectedHandleChanged(this.selectedHandle);_.r2(this.hostElement,"yt-refit-popups-action")}};
_.PV.Object.defineProperties(jS.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.oC("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.oC(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!LNl.test(this.selectedHandle)){var A;return(A=this.data)==null?void 0:A.warningText}}}});
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],jS.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],jS.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],jS.prototype,"selectedHandle",void 0);_.V([_.n(),_.H("design:type",Object)],jS.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",Function)],jS.prototype,"onSelectedHandleChanged",void 0);_.V([_.lo("#channel-handle-input"),_.H("design:type",Object)],jS.prototype,"handleInput",void 0);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],jS.prototype,"handleUrlPrefix",null);_.V([_.y("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],jS.prototype,"displayHandle",null);_.V([_.y("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],jS.prototype,"displayHandleUrl",null);_.V([_.y("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],jS.prototype,"warningText",null);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.V([_.y_({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],jS);
_.Y(jS,"ytd-handles-claiming-edit-dialog-content",function(){if(vWc!==void 0)return vWc;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return vWc=A},{mode:1});var pW3;var YU=function(){var A=_.F.apply(this,arguments)||this;A.actionButtonOverride={style:"mono",type:"filled",size:"M"};A.cancelButtonOverride={style:"mono",type:"text",size:"M"};A.selectButtonDisabled=!1;A.isLoading=!1;A.hasSelectedHandleEventListener=!1;A.selectedHandleChanged=function(t){A.selectedHandle=t};
return A};
_.R(YU,_.F);_.J=YU.prototype;_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.J.onDataChanged=function(){var A,t;this.selectedHandle=(t=_.C((A=this.data)==null?void 0:A.inputField,kB8))==null?void 0:t.handle};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.selectedHandle="";_.kJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var A=this;if(this.selectedHandle!==void 0){var t;((t=this.data)==null?void 0:t.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(f,X){if(X.newHandleUpdateStatus!==void 0&&X.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&X.newHandleUpdateStatus.errorMessage)_.jL(A.hostElement,_.dF(X.newHandleUpdateStatus.errorMessage)),
A.isLoading=!1;else{var Q;if((Q=A.data)==null?0:Q.onChannelUpdateSuccess){f=A.data.onChannelUpdateSuccess;var q,e;if(X=(q=_.C(f,_.$4))==null?void 0:(e=q.popup)==null?void 0:e.handlesClaimingConfirmDialogRenderer)X.handle=_.oC(A.selectedHandle);A.ytComponentBehavior.resolveCommand(f);_.kJ(A.hostElement,"yt-close-popup-action",[A.is])}else A.isLoading=!1}},
onServerError:function(){var f;A.content&&((f=A.content)==null?0:f.handleInput)&&A.content.handleInput.validate();A.isLoading=!1;_.jL(A.hostElement,_.e5("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
YU.prototype.onDataChanged=YU.prototype.onDataChanged;YU.prototype.onSelectedHandleChanged=YU.prototype.onSelectedHandleChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],YU.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],YU.prototype,"actionButtonOverride",void 0);_.V([_.n(),_.H("design:type",Object)],YU.prototype,"cancelButtonOverride",void 0);_.V([_.n(),_.H("design:type",Object)],YU.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",String)],YU.prototype,"selectedHandle",void 0);_.V([_.n(),_.H("design:type",Object)],YU.prototype,"selectButtonDisabled",void 0);_.V([_.n(),_.H("design:type",Object)],YU.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",Object)],YU.prototype,"hasSelectedHandleEventListener",void 0);_.V([_.n(),_.H("design:type",Object)],YU.prototype,"handleInput",void 0);
_.V([_.ev("selectedHandle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YU.prototype,"onSelectedHandleChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YU.prototype,"onDataChanged",null);_.V([_.lo("ytd-handles-claiming-edit-dialog-content"),_.H("design:type",Object)],YU.prototype,"content",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.y_({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],YU);
_.Y(YU,"ytd-handles-claiming-edit-dialog-renderer",function(){if(pW3!==void 0)return pW3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return pW3=A},{mode:1});var EWA;var VZ=function(){return _.F.apply(this,arguments)||this};
_.R(VZ,_.F);_.PV.Object.defineProperties(VZ.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.handle){var t;return _.oC("@"+_.dF((t=this.data)==null?void 0:t.handle))}}}});
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],VZ.prototype,"formattedHandle",null);_.V([_.n(),_.H("design:type",Object)],VZ.prototype,"data",void 0);_.V([_.y_({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],VZ);
_.Y(VZ,"ytd-handles-claiming-radio-option-renderer",function(){if(EWA!==void 0)return EWA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return EWA=A},{mode:1});var nWm;var D7d=/^[\x00-\x7F]+$/,Zh=function(){var A=_.F.apply(this,arguments)||this;A.initialRadioIndex="-1";A.isLoading=!1;A.maybeSubmitFeedback=function(){A.feedbackSurveyRenderer.submitSurvey()};
return A};
_.R(Zh,_.F);Zh.prototype.updateSelectedHandleIndexFromBinding=function(A){this.selectedRadioIndex=+A.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(A)};
Zh.prototype.selectedHandleChanged=function(A){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var t;this.selectedHandle=(t=this.handleInput)==null?void 0:t.value;this.onSelectedHandleChanged(A)}};
_.PV.Object.defineProperties(Zh.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var A;return this.ytRendererBehavior.getSimpleString((A=this.data)==null?void 0:A.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.oC("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.oC(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!D7d.test(this.selectedHandle)){var A;return(A=this.data)==null?void 0:A.warningText}}}});
_.V([_.n(),_.H("design:type",Object)],Zh.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Zh.prototype,"initialRadioIndex",void 0);_.V([_.n(),_.H("design:type",Number)],Zh.prototype,"selectedRadioIndex",void 0);_.V([_.n(),_.H("design:type",String)],Zh.prototype,"selectedHandle",void 0);_.V([_.n(),_.H("design:type",Object)],Zh.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",Function)],Zh.prototype,"onSelectedHandleChanged",void 0);
_.V([_.n(),_.H("design:type",Function)],Zh.prototype,"onSelectedRadioIndexChanged",void 0);_.V([_.lo("#channel-handle-input"),_.H("design:type",Object)],Zh.prototype,"handleInput",void 0);_.V([_.lo("ytd-feedback-survey-renderer"),_.H("design:type",Object)],Zh.prototype,"feedbackSurveyRenderer",void 0);_.V([_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],Zh.prototype,"radioButtonLength",null);
_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zh.prototype,"handleUrlPrefix",null);_.V([_.y("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zh.prototype,"displayHandle",null);_.V([_.y("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zh.prototype,"displayHandleUrl",null);_.V([_.y("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zh.prototype,"warningText",null);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.V([_.y_({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Zh);
_.Y(Zh,"ytd-handles-claiming-select-dialog-content",function(){if(nWm!==void 0)return nWm;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return nWm=A},{mode:1});var FNy;var ou=function(){var A=_.F.apply(this,arguments)||this;A.actionButtonOverride={style:"mono",type:"filled",size:"M"};A.cancelButtonOverride={style:"mono",type:"text",size:"M"};A.initialRadioIndex="-1";A.selectButtonDisabled=!1;A.isLoading=!1;A.selectedRadioIndexChanged=function(t){A.selectedRadioIndex=Number(t.detail.value)};
A.selectedHandleChanged=function(t){A.selectedHandle=t.detail.value};
return A};
_.R(ou,_.F);_.J=ou.prototype;_.J.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.J.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.r2(this.hostElement,"yt-refit-popups-action")};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.kJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var A=this;if(this.selectedHandle!==void 0){var t;((t=this.data)==null?void 0:t.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(f,X){if(X.newHandleUpdateStatus!==void 0&&X.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&X.newHandleUpdateStatus.errorMessage)_.jL(A.hostElement,_.dF(X.newHandleUpdateStatus.errorMessage)),
A.isLoading=!1;else{var Q;if((Q=A.data)==null?0:Q.onChannelUpdateSuccess){f=A.data.onChannelUpdateSuccess;X=_.C(f,_.$4);var q;if(X==null?0:(q=X.popup)==null?0:q.handlesClaimingConfirmDialogRenderer)X.popup.handlesClaimingConfirmDialogRenderer.handle=_.oC(A.selectedHandle);A.ytComponentBehavior.resolveCommand(f);_.kJ(A.hostElement,"yt-close-popup-action",[A.is])}else A.isLoading=!1}},
onServerError:function(){if(A.selectedRadioIndex===A.radioButtonLength){var f;A.content&&((f=A.content)==null?0:f.handleInput)&&A.content.handleInput.validate()}A.isLoading=!1;_.jL(A.hostElement,_.e5("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var A,t;this.selectedHandle=(A=this.content)==null?void 0:(t=A.handleInput)==null?void 0:t.value}else this.selectedRadioIndex>=0&&((A=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(A==null?void 0:A.handle):this.selectedHandle=void 0)};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.J.getRadioItem=function(A){if(this.radioButtonLength>A&&A>=0)return _.C(this.data.radioButton[A],tAl)};
_.PV.Object.defineProperties(ou.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.radioButton)||[]).length}}});
ou.prototype.onSelectedHandleChanged=ou.prototype.onSelectedHandleChanged;ou.prototype.onSelectedHandleIndexChanged=ou.prototype.onSelectedHandleIndexChanged;ou.prototype.onDataChanged=ou.prototype.onDataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ou.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ou.prototype,"actionButtonOverride",void 0);_.V([_.n(),_.H("design:type",Object)],ou.prototype,"cancelButtonOverride",void 0);
_.V([_.n(),_.H("design:type",Object)],ou.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],ou.prototype,"initialRadioIndex",void 0);_.V([_.n(),_.H("design:type",Number)],ou.prototype,"selectedRadioIndex",void 0);_.V([_.n(),_.H("design:type",String)],ou.prototype,"selectedHandle",void 0);_.V([_.n(),_.H("design:type",Object)],ou.prototype,"selectButtonDisabled",void 0);_.V([_.n(),_.H("design:type",Object)],ou.prototype,"isLoading",void 0);
_.V([_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],ou.prototype,"radioButtonLength",null);_.V([_.lo("ytd-handles-claiming-select-dialog-content"),_.H("design:type",Object)],ou.prototype,"content",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ou.prototype,"onDataChanged",null);
_.V([_.ev("selectedRadioIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ou.prototype,"onSelectedHandleIndexChanged",null);_.V([_.ev("selectedHandle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ou.prototype,"onSelectedHandleChanged",null);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.V([_.y_({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],ou);
_.Y(ou,"ytd-handles-claiming-select-dialog-renderer",function(){if(FNy!==void 0)return FNy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return FNy=A},{mode:1});var IPm;var x7w;var dM=function(){return _.F.apply(this,arguments)||this};
_.R(dM,_.F);dM.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],dM.prototype,"data",void 0);_.V([_.y_({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],dM);
_.Y(dM,"ytd-hotkey-dialog-section-option-renderer",function(){if(x7w!==void 0)return x7w;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return x7w=A},{mode:1});var jnd;var SS=function(){return _.F.apply(this,arguments)||this};
_.R(SS,_.F);SS.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],SS.prototype,"data",void 0);_.V([_.y_({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],SS);
_.Y(SS,"ytd-hotkey-dialog-section-renderer",function(){if(jnd!==void 0)return jnd;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return jnd=A},{mode:1});var $U=function(){return _.F.apply(this,arguments)||this};
_.R($U,_.F);$U.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$U.prototype,"data",void 0);_.V([_.y_({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],$U);
_.Y($U,"ytd-hotkey-dialog-content",function(){if(IPm!==void 0)return IPm;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return IPm=A},{mode:1});var Ycc;var HH=function(){return _.F.apply(this,arguments)||this};
_.R(HH,_.F);HH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var A=document.querySelector("ytd-hotkey-dialog-content #scrollable");A&&(A.dialogElement=this.hostElement.parentElement)};
HH.prototype.onCloseTap=function(){_.kJ(this.hostElement,"yt-close-popup-action")};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],HH.prototype,"data",void 0);_.V([_.y_({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],HH);
_.Y(HH,"ytd-hotkey-dialog-renderer",function(){if(Ycc!==void 0)return Ycc;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Ycc=A},{mode:1});var V6d;var au=function(){return _.F.apply(this,arguments)||this};
_.R(au,_.F);au.prototype.onYtServiceRequestError=function(){if(this.blocked){var A;var t=(A=this.data)==null?void 0:A.defaultServiceEndpoint}else{var f;t=(f=this.data)==null?void 0:f.toggledServiceEndpoint}var X;(t=(X=_.C(t,_.D2T))==null?void 0:X.onFailureAction)&&this.ytComponentBehavior.resolveCommand(t);this.updateBlockState(!this.blocked)};
au.prototype.onYtToggleButton=function(A){this.updateBlockState(A.detail.toggled)};
au.prototype.updateBlockState=function(A){if(A!==this.blocked){var t=this.blockedEntityKey;t&&this.ytdReduxBehavior.dispatch(_.Ta("blockStateEntity",t,{key:t,blocked:A}));this.set("data.isToggled",A)}};
_.PV.Object.defineProperties(au.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)}}});
au.prototype.onYtToggleButton=au.prototype.onYtToggleButton;au.prototype.onYtServiceRequestError=au.prototype.onYtServiceRequestError;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],au.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],au.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],au.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],au.prototype,"blockedEntityKey",void 0);
_.V([_.n({selectorArgs:["blockedEntityKey"],selector:function(A,t){return _.q_(A.entities,"blockStateEntity",t)}}),
_.H("design:type",Object)],au.prototype,"blockStateEntity",void 0);_.V([_.y("data","blockStateEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],au.prototype,"blocked",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],au.prototype,"onYtServiceRequestError",null);
_.V([_.UQ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],au.prototype,"onYtToggleButton",null);_.V([_.y_({is:"ytd-block-button",disableElementRegistration:!0})],au);
_.Y(au,"ytd-block-button",function(){if(V6d!==void 0)return V6d;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return V6d=A},
{mode:1});var Ziy;var oWm;var KY=function(){return _.F.apply(this,arguments)||this};
_.R(KY,_.F);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],KY.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],KY.prototype,"data",void 0);_.V([_.y_({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],KY);
_.Y(KY,"ytd-kids-blocklist-picker-item-renderer",function(){if(oWm!==void 0)return oWm;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return oWm=A},{mode:1});var gM=function(){return _.F.apply(this,arguments)||this};
_.R(gM,_.F);gM.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gM.prototype,"data",void 0);_.V([_.y_({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],gM);
_.Y(gM,"ytd-kids-blocklist-picker-content",function(){if(Ziy!==void 0)return Ziy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Ziy=
A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var d7y;var wM=function(){var A=_.F.apply(this,arguments)||this;A.hasAnyRequestSucceeded=!1;A.hasAnyRequestFailed=!1;A.numPendingRequests=0;return A};
_.R(wM,_.F);_.J=wM.prototype;_.J.attached=function(){this.hostElement.setAttribute("dialog","")};
_.J.onDoneButtonTap=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.J.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.J.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.J.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.J.onPopupClosed=function(A){var t,f;if(((t=A.detail)==null?void 0:(f=t.popup)==null?void 0:f.is)==="tp-yt-paper-dialog"){var X;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((X=this.data)==null?0:X.successfulToastActionMessage)&&(A=_.aC(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(A));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
wM.prototype.onPopupClosed=wM.prototype.onPopupClosed;wM.prototype.onYtServiceRequestError=wM.prototype.onYtServiceRequestError;wM.prototype.onYtServiceRequestCompleted=wM.prototype.onYtServiceRequestCompleted;wM.prototype.onYtServiceRequestSent=wM.prototype.onYtServiceRequestSent;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],wM.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],wM.prototype,"data",void 0);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wM.prototype,"onYtServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wM.prototype,"onYtServiceRequestCompleted",null);
_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wM.prototype,"onYtServiceRequestError",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],wM.prototype,"onPopupClosed",null);_.V([_.y_({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],wM);
_.Y(wM,"ytd-kids-blocklist-picker-renderer",function(){if(d7y!==void 0)return d7y;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return d7y=A},{mode:1});var Scw;var $7d;var st=function(){return _.F.apply(this,arguments)||this};
_.R(st,_.F);st.prototype.setTip=function(A){var t=this;this.data&&(this.tip=v9m(WBh.getInstance(),A,this.data),_.us(this,function(){_.s9(t.hostElement,"yt-refit")}))};
st.prototype.clearTip=function(){this.tip=void 0};
st.prototype.computeHidden=function(A){return!A};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],st.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.H("design:type",Boolean)],st.prototype,"hidden",void 0);_.V([_.n(),_.H("design:type",Object)],st.prototype,"tip",void 0);_.V([_.y_({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],st);
_.Y(st,"ytd-menu-popup-tip-renderer",function(){if($7d!==void 0)return $7d;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);
return $7d=A},{mode:1});var Hi2;var kU=function(){var A=_.F.apply(this,arguments)||this;A.useIcons=!1;A.systemIcons=_.M("kevlar_system_icons");return A};
_.R(kU,_.F);_.J=kU.prototype;_.J.onFocus=function(){var A;(A=_.sF(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.J.onTap=function(){var A=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(A&&_.C(A,_.Xd))this.componentBehavior.resolveCommand(A),this.updateToggledStateInEntity();else if(A){this.componentBehavior.resolveCommand(A)||_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}});var t;((t=_.C(A,_.qJ))==null?void 0:t.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.J.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.J.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.J.updateToggledStateInEntity=function(){var A=this.data.toggleMenuServiceItemEntityKey,t=!this.data.isToggled;A&&this.ytdReduxBehavior.dispatch(_.Ta("toggleMenuServiceItemEntity",A,{key:A,isToggled:t}))};
_.J.computeIcon=function(A,t,f){return(A=A?f:t)&&A.iconType?_.t7(A.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.isIconActive=function(A){return!_.M("toggle_menu_active_icon_killswitch")&&A};
_.PV.Object.defineProperties(kU.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.data)==null?0:A.isToggled)?(t=this.data)==null?void 0:t.toggledText:(f=this.data)==null?void 0:f.defaultText}}});
kU.prototype.toggledStateEntityChanged=kU.prototype.toggledStateEntityChanged;kU.prototype.onYtServiceRequestCompleted=kU.prototype.onYtServiceRequestCompleted;kU.prototype.onTap=kU.prototype.onTap;kU.prototype.onFocus=kU.prototype.onFocus;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],kU.prototype,"componentBehavior",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],kU.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],kU.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],kU.prototype,"useIcons",void 0);_.V([_.n({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.H("design:type",String)],kU.prototype,"icon",void 0);
_.V([_.n({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.wx.toggleMenuServiceItemEntitySelector}),_.H("design:type",Object)],kU.prototype,"toggleMenuServiceItemEntity",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],kU.prototype,"systemIcons",void 0);_.V([_.UQ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kU.prototype,"onFocus",null);
_.V([_.y("data.isToggled"),_.H("design:type",Object),_.H("design:paramtypes",[])],kU.prototype,"toggleButtonText",null);_.V([_.UQ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kU.prototype,"onTap",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kU.prototype,"onYtServiceRequestCompleted",null);
_.V([_.ev("toggleMenuServiceItemEntity.isToggled","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kU.prototype,"toggledStateEntityChanged",null);_.V([_.y_({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],kU);
_.Y(kU,"ytd-toggle-menu-service-item-renderer",function(){if(Hi2!==void 0)return Hi2;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Hi2=A},{mode:1});var aP_;var rM=function(){return _.F.apply(this,arguments)||this};
_.R(rM,_.F);rM.prototype.onFocus=function(){var A;(A=_.sF(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.PV.Object.defineProperties(rM.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.of(this.data.iconUrl)}}});
rM.prototype.onFocus=rM.prototype.onFocus;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],rM.prototype,"rendererBehavior",void 0);_.V([_.b(_.xa.YtEndpointBehavior),_.H("design:type",Object)],rM.prototype,"ytEndpointBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],rM.prototype,"data",void 0);_.V([_.UQ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rM.prototype,"onFocus",null);
_.V([_.y("data.iconUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],rM.prototype,"imageSource",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],rM);
_.Y(rM,"ytd-menu-custom-icon-item-renderer",function(){if(aP_!==void 0)return aP_;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return aP_=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});_.Hn(_.zN,"yt-list-item-view-model",{props:{data:_.PS,isMenuItem:_.PS,isCompact:_.PS,onTap:_.dt,trailingAccessory:_.dt,hideSelectionTextChevron:_.PS,disabled:_.PS,inPopup:_.PS,disableHorizontalPadding:_.PS,isOverlay:_.PS,isToggled:_.PS,ariaLabel:_.PS,ariaPressed:_.PS,shouldNotFillIcon:_.PS}});var A6=function(){var A=_.F.apply(this,arguments)||this;A.disableBackdropFilter=_.M("web_disable_backdrop_filter");return A};
_.R(A6,_.F);_.J=A6.prototype;
_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.J.computeAriaLabel=function(A){return A};
_.J.onPopupOpened=function(){this.items.selected=0;for(var A=_.U(_.sF(this.items).children),t=A.next();!t.done;t=A.next())t.value.popupPositionTarget=this.positionTarget;if(A=this.popupTip||void 0)A.setTip(this.source||""),this.source=void 0;this.veData&&(A=_.Ws())&&_.Vg(A,[this.veData])};
_.J.onPopupClosed=function(){var A=this.popupTip||void 0;A&&A.clearTip()};
_.J.onIronActivate=function(A){this.shouldPersist(A)||_.kJ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(A=_.Ws())&&_.o7(A,this.veData)};
_.J.shouldPersist=function(A){var t,f;if(((t=A.detail)==null?void 0:t.selected)===void 0||(f=this.data)==null||!f.items)return!1;var X,Q;return!((Q=(X=this.data.items[A.detail.selected])==null?void 0:X.toggleMenuServiceItemRenderer)==null||!Q.persistentOnMenuPopup)};
_.J.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(A){return A.menuNavigationItemRenderer?!!A.menuNavigationItemRenderer.icon:A.menuServiceItemRenderer?!!A.menuServiceItemRenderer.icon:A.menuConditionalServiceItemRenderer?!!A.menuConditionalServiceItemRenderer.icon:A.menuConditionalNavigationItemRenderer?!!A.menuConditionalNavigationItemRenderer.icon:A.toggleMenuServiceItemRenderer?!!A.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
A6.prototype.onPopupClosed=A6.prototype.onPopupClosed;A6.prototype.onPopupOpened=A6.prototype.onPopupOpened;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],A6.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],A6.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],A6.prototype,"veData",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.H("design:type",String)],A6.prototype,"ariaLabel",void 0);_.V([_.n({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],A6.prototype,"useIcons",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],A6.prototype,"disableBackdropFilter",void 0);_.V([_.lo("#items"),_.H("design:type",Object)],A6.prototype,"items",void 0);_.V([_.lo("ytd-menu-popup-tip-renderer"),_.H("design:type",Object)],A6.prototype,"popupTip",void 0);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A6.prototype,"onPopupOpened",null);
_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A6.prototype,"onPopupClosed",null);_.V([_.y_({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],A6);
_.Y(A6,"ytd-menu-popup-renderer",function(){if(Scw!==void 0)return Scw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Scw=A},{mode:1});var KNw;var gWw=_.I(function(A){A=_.Sv(A,{icon:void 0});var t=A.data;A=A.icon;var f=function(){return t().iconBadgeText},X={},Q=_.Ao("yt-spec-icon-badge-shape",function(){a:switch(t().iconBadgeType){case "notification":var q="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":q="yt-spec-icon-badge-shape--type-cart";break a;default:q=""}return q},function(){a:switch(t().iconBadgeStyle){case "overlay":var q="yt-spec-icon-badge-shape--style-overlay";
break a;default:q=""}return q},(X["yt-spec-icon-badge-shape--text-size-small"]=function(){var q=f();
return!!((q==null?0:q.length)&&q.length>2)},X));
return _.u("yt-icon-badge-shape",null,_.u(_.P,{cond:A,then:function(q){return _.u("div",{class:Q},_.u("div",{class:"yt-spec-icon-badge-shape__icon"},_.u(_.el,{icon:q})),_.u(_.P,{cond:f,then:function(e){return _.u("div",{class:"yt-spec-icon-badge-shape__badge"},e)}}))}}))},"wj");
gWw.idomCompat=!0;_.Hn(gWw,"yt-icon-badge-shape",{props:{data:_.PS,icon:_.PS}});var t6=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};A.unseenCount=0;A.isOverlay=!1;return A};
_.R(t6,_.F);_.J=t6.prototype;_.J.attached=function(){var A=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(t){A.onServiceWorkerMessage(t)})};
_.J.onDataChanged=function(){this.isAttached&&!this.JSC$20926_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20926_lastData=this.data};
_.J.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.computeIcon=function(){var A,t;return(A=this.data)==null?void 0:(t=A.icon)==null?void 0:t.iconType};
_.J.onServiceWorkerMessage=function(A){A.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.J.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.C(this.data.updateUnseenCountEndpoint,_.qJ)&&_.C(this.data.updateUnseenCountEndpoint,_.qJ).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.J.handleUpdateNotificationsUnseenCountAction=function(A){var t=this;A=_.C(A,q3A);A!=null&&A.unseenCount&&A.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(A.unseenCount),_.a6.addLowPriorityJob(function(){t.data.updateUnseenCountEndpoint&&t.ytComponentBehavior.resolveCommand(t.data.updateUnseenCountEndpoint)},A.timeoutMs))};
_.J.onClick=function(){_.s9(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var A=_.r2(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),t=this.data.menuRequest;A&&A.length===1&&A[0]?_.kJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):t&&this.ytComponentBehavior.resolveCommand(t)};
_.J.handleTopbarMenuClosedAction=function(A){A==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.J.toggleIconState=function(A){this.iconButton&&(this.iconButton.pressed=A)};
_.J.sendUnseenCountRequest=function(A){var t=this;_.jY(_.a6,function(){t.ytComponentBehavior.resolveCommand(A)})};
_.J.updateCountUI=function(A){this.set("unseenCount",A<9?A:"9+")};
_.PV.Object.defineProperties(t6.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
t6.prototype.handleUpdateNotificationsUnseenCountAction=t6.prototype.handleUpdateNotificationsUnseenCountAction;t6.prototype.onDataChanged=t6.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],t6.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.RH),_.H("design:type",Object)],t6.prototype,"ytdOpenPopupBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],t6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],t6.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],t6.prototype,"unseenCount",void 0);_.V([_.n(),_.H("design:type",Object)],t6.prototype,"isOverlay",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],t6.prototype,"showTooltips",void 0);_.V([_.lo("yt-icon-button"),_.H("design:type",Object)],t6.prototype,"iconButton",void 0);
_.V([_.y("unseenCount"),_.H("design:type",Object),_.H("design:paramtypes",[])],t6.prototype,"showNotificationCount",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],t6.prototype,"onDataChanged",null);_.V([_.UQ("yt-update-notifications-unseen-count-action"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],t6.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.V([_.y_({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],t6);
_.Y(t6,"ytd-notification-topbar-button-renderer",function(){if(KNw!==void 0)return KNw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return KNw=A},{mode:_.sQ("kevlar_poly_si_batch_j025")?1:2});var wWh;var f5=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return A};
_.R(f5,_.F);f5.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}}}}}};
f5.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
f5.prototype.onDarkModeToggled=function(A){this.dark=A};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],f5.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],f5.prototype,"data",void 0);_.V([_.n({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],f5.prototype,"dark",void 0);
_.V([_.y_({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],f5);
_.Y(f5,"yt-pdg-buy-flow-header-renderer",function(){if(wWh!==void 0)return wWh;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return wWh=A},{mode:1});var snl;var kXA;var XM=function(){var A=_.F.apply(this,arguments)||this;A.immediateValue=0;A.isDarkTheme=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(XM,_.F);_.J=XM.prototype;_.J.created=function(){_.q2.requestAvailability()};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.dataChanged=function(){var A=_.sF(this.hostElement).querySelector("#color-slider");A.immediateValue&&this.updateSliderKnobAndGradientStyles(A.immediateValue);this.data.notches[0].knobColorArgb&&_.Q_(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.bY(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.ah("HTML_DIR")==="rtl"&&_.sF(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.J.onSliderImmediateChange=function(){var A=_.sF(this.hostElement).querySelector("#color-slider");A.dragging&&(A.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(A.immediateValue),this.updateSliderKnobAndGradientStyles(A.immediateValue)),this.updateSliderAria())};
_.J.onSliderChange=function(){var A=_.sF(this.hostElement).querySelector("#color-slider");A.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(A.immediateValue),this.updateSliderKnobAndGradientStyles(A.immediateValue));this.updateSliderAria()};
_.J.updateSliderAria=function(){var A=_.sF(this.hostElement).querySelector("#color-slider"),t=_.sF(this.hostElement).querySelector("#color-slider");t=_.dF(this.data.notches[t.immediateValue].tierValue);_.cbp()&&_.s9(this.hostElement,"iron-announce",{text:t});A.setAttribute("aria-valuetext",t)};
_.J.updateSuperThanksSelectedTierEntity=function(A){if(A!==this.immediateValue){var t,f,X=this==null?void 0:(t=this.data)==null?void 0:(f=t.superThanksSelectedTierEntity)==null?void 0:f.key;X&&X.length>0&&this.ytdReduxBehavior.dispatch(_.Ta("superThanksSelectedTierEntity",X,{key:X,index:A}))}};
_.J.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.J.updateSliderKnobAndGradientStyles=function(A){this.immediateValue=A;A=this.data.notches[A];if(A==null?0:A.knobColorArgb)var t={"--ytd-pdg-color-slider-knob-color":_.bY(A.knobColorArgb)};(A==null?0:A.linearGradientCssStyle)&&t!==null&&(t=Object.assign({},t,{"--ytd-pdg-color-slider-active-color":A==null?void 0:A.linearGradientCssStyle}));t!==null&&_.Q_(this.hostElement,t)};
XM.prototype.onSliderChange=XM.prototype.onSliderChange;XM.prototype.onSliderImmediateChange=XM.prototype.onSliderImmediateChange;XM.prototype.dataChanged=XM.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],XM.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],XM.prototype,"immediateValue",void 0);_.V([_.n(),_.H("design:type",Number)],XM.prototype,"maxMarkers",void 0);
_.V([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:sMm}),_.H("design:type",Object)],XM.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],XM.prototype,"isDarkTheme",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],XM.prototype,"ytdReduxBehavior",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XM.prototype,"dataChanged",null);
_.V([_.UQ("immediate-value-change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XM.prototype,"onSliderImmediateChange",null);_.V([_.UQ("change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XM.prototype,"onSliderChange",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],XM);
_.Y(XM,"ytd-pdg-color-slider-renderer",function(){if(kXA!==void 0)return kXA;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return kXA=A},{mode:1});var rP8;var Agl;var Q3=null;
_.CN({is:"ytd-comment-input",_template:function(){if(Agl!==void 0)return Agl;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Agl=A},
behaviors:[_.kAs.YtHostElementBehavior,_.YD,_.Ja.YtComponentBehavior,_.R4.YtRendererstamperBehavior,_.eK7.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 _.z4}},
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",_.JY(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;_.RY();this.focus()},
detached:function(){document.removeEventListener("tap",_.JY(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(A){A=A.detail;A=A.isCustomEmoji?A.shortcuts[0]:A.emojiId;var t=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(t,A);this.maybeUpdateTextDirection_();_.s9(this.hostElement,"input")},
getInputRange_:function(){var A=_.f8();if(A){A=A.getBrowserRangeObject();for(var t=A.commonAncestorContainer;t;){if(t===this.getEditableTextArea_())return A;t=t.parentNode}}A=this.getEditableTextArea_();A=_.wc(A,A.childNodes.length);A.select();return A.getBrowserRangeObject()},
insertTextWithEmojis_:function(A,t,f){(t=this.emojiManager.createDocumentFragment(t,!0,!1,f===void 0?!0:f))&&t.childNodes.length!==0&&(A.collapsed||A.deleteContents(),f=t.lastChild,A.insertNode(t),_.i1f(f).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var A=_.f8();if(A){var t=A.JSC$11434_getStartNode(),f=A.JSC$11434_getEndNode();if(sD_(t)&&sD_(f)){var X=A.JSC$11434_getStartOffset(),Q;if(_.U1&&t.nodeType===Node.ELEMENT_NODE&&(Q=_.TGp(t)))_.wc(Q,0).select();else{Q=JC(t)?t:_.Hd(t,JC);var q=JC(f)?f:_.Hd(f,JC);if(Q||q)if(A.isCollapsed()){if(t.nodeType===Node.TEXT_NODE){A=!0;X===t.length&&(A=!1);if(Q3==="end"||Q3==="right")A=!1;t=t.parentNode;A=[].concat(_.YV(t.parentNode.childNodes)).indexOf(t)+(A?0:1);_.wc(t.parentNode,
A).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.sU(f,A.JSC$11434_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(t=document.createTextNode("\u200b"),Q.parentNode.insertBefore(t,Q),_.sU(f,A.JSC$11434_getEndOffset(),t,0).select()):q&&(q.nextSibling&&q.nextSibling.length>0?_.sU(t,A.JSC$11434_getStartOffset(),q.nextSibling,1).select():(f=document.createTextNode("\u200b"),q.parentNode.insertBefore(f,q.nextSibling),_.sU(t,A.JSC$11434_getStartOffset(),f,f.length).select()));
Q3=null}}else Q3=null}else Q3=null},
leftKeyPressed_:function(){Q3="left"},
rightKeyPressed_:function(){Q3="right"},
endKeyPressed_:function(){Q3="end"},
maybeDeleteChip_:function(){var A=Q12(!0);if(A){var t=_.f8(),f=t.JSC$11434_getStartNode();t=t.JSC$11434_getStartOffset();_.SP(f,t,A,A.childNodes.length).select()}},
maybeBackspaceChip_:function(){var A=Q12(!1);if(A){var t=_.f8(),f=t.JSC$11434_getStartNode();t=t.JSC$11434_getStartOffset();_.SP(f,t,A,0).select()}},
maybeBackspaceChipWordMode_:function(A){var t=_.f8();if(t.isCollapsed()){var f=t.JSC$11434_getStartNode();t=t.JSC$11434_getStartOffset();var X=qL2(f,t,!0);X&&(_.SP(f,t,X,0).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(A){var t=_.f8();if(t.isCollapsed()){var f=t.JSC$11434_getStartNode();t=t.JSC$11434_getStartOffset();var X=qL2(f,t,!1);X&&(_.SP(f,t,X,X.childNodes.length).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
onContentClick:function(A){A.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(A){A.defaultPrevented||A.currentTarget.tagName==="YTD-COMMENT-INPUT"&&JC(A.target)&&A.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.sF(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.sF(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(A,t){A=rJQ(A,this.emojiManager,t).cloneNode(!0);for(t=A.firstChild;t;)if(t.nodeType!==1)t=t.nextSibling;else switch(t.tagName){case "BR":var f=_.Fy();_.Rwb(f,t);t=f.nextSibling;break;case "DIV":(f=t.lastChild)&&t.nextSibling&&_.Y6(_.Fy(),f);t.previousSibling&&(t.previousSibling.nodeType===1||t.previousSibling.nodeType===3&&!t.previousSibling.textContent.endsWith("\n"))&&_.jq(_.Fy(),t);f&&f.nodeName==="BR"&&_.vf(f);f=t;t.hasChildNodes()?(t=t.firstChild,
_.mwE(f)):(t=t.nextSibling,_.vf(f));break;default:t=t.nextSibling}return J1A(A)},
setTextAreaValue:function(A){A||(A="");var t=this.getEditableFormattedString_();t.text="";this.getEditableTextArea_().innerText="";typeof A==="string"&&(A={runs:[{text:A}]});t.text=A},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Q3=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var A=this.getEditableTextArea_();A&&(_.wc(A,A.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.ah("HTML_DIR")==="rtl"){var A=this.getEditableTextArea_(),t=this.getTextAreaValue()!==""?"auto":"rtl";A.setAttribute("dir",t)}},
handleInputEvent_:function(){var A=null;if(this.isEmojiButtonDisplayed){var t=this.getInputRange_();t&&(A=this.emojiInput.retrieveTextBeforeRange(t))}this.insertText_(A,!0);this.updateCharCount_();A=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=A.scrollHeight>A.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var A=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:A})},
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(A){this.isEmojiButtonDisplayed&&(A.preventDefault(),A.stopImmediatePropagation(),A=A.clipboardData.getData("text/plain"),this.insertText_(A,!1,!1),_.s9(this.hostElement,"input"))},
insertText_:function(A,t,f){t=t===void 0?!1:t;f=f===void 0?!0:f;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&A){var X=this.getInputRange_().cloneRange();this.emojiManager&&X&&(t&&this.emojiInput.offsetStartOfRangeBy(X,A.length),this.insertTextWithEmojis_(X,A,f),kR3(this.getEditableTextArea_().lastChild)||(X=this.getInputRange_().cloneRange()),X&&(this.emojiInput.updateSuggestions(X,A),this.updateSuggestionOffset_(X)))}},
getSimpleString:_.dF,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(A){return A?"focused":"not-focused"},
computePlaceholderText_:function(A){return this.getSimpleString(A)},
computeEditableText_:function(A){return this.getSimpleString(A)},
onPrefilledContentDismissed_:function(A){A.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(A,t){A?this.fire("yt-autonav-pause-focus"):t!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(A){var t=this.getEditableTextArea_();[].concat(_.YV(A.dataTransfer.items)).forEach(function(f){f.kind==="string"&&f.type.match("^text/plain")&&f.getAsString(function(X){t.appendChild(document.createTextNode(X))})});
A.preventDefault()},
preventDefault_:function(A){A.preventDefault()},
onSuggestionInsert_:function(A){this.insertTextWithEmojis_(A.detail.range,A.detail.text)},
onEmojiSuggestionClick_:function(A){this.emojiInput.insertSuggestion(A.detail)},
updateSuggestionOffset_:function(A){if(this.emojiInput&&_.sF(this.emojiInput).querySelector("#dropdown")){var t=this.getEditableTextArea_().getBoundingClientRect().bottom,f=A.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(t-f)+5;t=this.getEditableTextArea_().getBoundingClientRect().left;A=A.getBoundingClientRect().left-t;_.sF(this.emojiInput).querySelector("#dropdown").style.marginLeft=A+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.kt("yt-post"));return this.localStorage}});var qo=function(){var A=_.F.apply(this,arguments)||this;A.currentCommentOptionIndex=0;A.isEmojiPickerDisplayed=!1;A.emojiManager=_.z4;A.isUgcEmpty=!1;A.userGeneratedCommentChangedHandler=function(){_.s9(A.hostElement,"ytd-pdg-user-generated-comment-changed");A.isEmojiYtdCommentInputEnabled&&(A.isUgcEmpty=!A.ytdCommentInputEl.getTextAreaValue())};
A.pasteHandler=function(t){t.preventDefault();t.stopImmediatePropagation();var f;if(t=(f=t.clipboardData)==null?void 0:f.getData("text/plain"))f=document.getSelection().getRangeAt(0),f.collapsed||f.deleteContents(),t=document.createTextNode(t),f.insertNode(t),f.selectNodeContents(t),f.collapse(!1),t=window.getSelection(),t.removeAllRanges(),t.addRange(f)};
A.onDocumentClick=function(t){if(A.isEmojiPickerDisplayed){var f,X,Q;!(t.target instanceof Node)||(f=t.composedPath())!=null&&f.includes(A.editableTextEl)||(X=t.composedPath())!=null&&X.includes(A.emojiButtonEl)||(Q=t.composedPath())!=null&&Q.includes(A.emojiPickerEl)||(A.isEmojiPickerDisplayed=!1)}};
return A};
_.R(qo,_.F);_.J=qo.prototype;_.J.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.J.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.J.detached=function(){var A;(A=this.contentEl)==null||A.removeEventListener("input",this.userGeneratedCommentChangedHandler);var t;(t=this.contentEl)==null||t.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.J.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.J.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var A;this.contentEl.textContent=this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.J.reloadEmojis=function(){this.emojiPickerEl&&_.C(this.emojiPicker,_.P1K)&&this.emojiPickerEl.updateEmojiCategories()};
_.J.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Q_(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.J.handleBackgroundColorStyling=function(){var A;if((A=this.currentCommentOption)==null?0:A.commentBackgroundColorArgb){var t;_.Q_(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.bY((t=this.currentCommentOption)==null?void 0:t.commentBackgroundColorArgb)})}else _.Q_(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.J.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var A;(A=this.contentEl)==null||A.focus()}};
_.J.onEditButtonClick=function(A){var t=document.getSelection();t&&this.contentEl&&(A.stopPropagation(),A.preventDefault(),t.selectAllChildren(this.contentEl),t.collapseToEnd())};
_.J.onContentDrop=function(A){var t=this;if(A.dataTransfer){A=_.U(A.dataTransfer.items);for(var f=A.next();!f.done;f=A.next())f=f.value,f.kind==="string"&&f.type.match("^text/plain")&&f.getAsString(function(X){var Q;(Q=t.contentEl)==null||Q.appendChild(document.createTextNode(X))})}};
_.J.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.J.getUserGeneratedCommentText=function(){var A,t=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(A=this.contentEl)==null?void 0:A.textContent;return t?t.trim():""};
_.J.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.J.onEmojiSelect=function(A){this.ytdCommentInputEl.onEmojiSelect(A)};
_.PV.Object.defineProperties(qo.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.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 A;return!((A=this.currentCommentOption)==null||!A.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if(_.C((A=this.currentCommentOption)==null?void 0:A.chipRenderer,_.xXp)){var t;return _.C((t=this.currentCommentOption)==null?void 0:t.chipRenderer,_.xXp)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var A,t;return((A=this.data)==null?0:A.commentOptionRenderers)?_.C((t=this.data)==null?void 0:t.commentOptionRenderers[this.superThanksSelectedTierEntity.index],OQl):void 0}var f,X;return((f=this.data)==null?0:f.commentOptionRenderers)?_.C((X=this.data)==null?void 0:X.commentOptionRenderers[this.currentCommentOptionIndex],OQl):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var A;return this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var A;return this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=_.C((A=this.data)==null?void 0:A.commentDialog,_.E3S))==null?void 0:t.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=_.C((A=this.data)==null?void 0:A.commentDialog,_.E3S))==null?void 0:t.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=_.C((A=this.data)==null?void 0:A.commentDialog,_.E3S))==null?void 0:t.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(t=_.C((A=this.data)==null?void 0:A.commentDialog,_.E3S))==null?void 0:t.emojiPicker;if(!_.C(f,_.P1K)||!_.C(f,_.P1K).categories)return!1;A=function(q){return q.emojiPickerCategoryRenderer?q.emojiPickerCategoryRenderer.emojiIds&&q.emojiPickerCategoryRenderer.emojiIds.length>0:q.emojiPickerUpsellCategoryRenderer?q.emojiPickerUpsellCategoryRenderer.emojis&&q.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var X,Q;return((X=_.C(f,_.P1K))==null?0:(Q=X.categories)==null?0:Q.find(A))?!0:!1}}});
qo.prototype.onEmojiSelect=qo.prototype.onEmojiSelect;qo.prototype.dataChanged=qo.prototype.dataChanged;qo.prototype.currentCommentOptionChanged=qo.prototype.currentCommentOptionChanged;_.V([_.b(_.qT),_.H("design:type",Object)],qo.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qo.prototype,"rendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.lo("#content-dom-if"),_.H("design:type",_.Rg)],qo.prototype,"contentDomIfEl",void 0);_.V([_.lo("#content-no-emojis"),_.H("design:type",HTMLElement)],qo.prototype,"contentEl",void 0);_.V([_.lo("#container"),_.H("design:type",HTMLElement)],qo.prototype,"containerEl",void 0);_.V([_.lo("#comment-chip-container"),_.H("design:type",HTMLElement)],qo.prototype,"paidCommentChipContainerEl",void 0);_.V([_.lo("#text-input"),_.H("design:type",HTMLElement)],qo.prototype,"editableTextEl",void 0);
_.V([_.lo("#emoji-button"),_.H("design:type",HTMLElement)],qo.prototype,"emojiButtonEl",void 0);_.V([_.lo("#emoji-picker > yt-emoji-picker-renderer"),_.H("design:type",Object)],qo.prototype,"emojiPickerEl",void 0);_.V([_.lo("#text-input > ytd-comment-input"),_.H("design:type",Object)],qo.prototype,"ytdCommentInputEl",void 0);_.V([_.n(),_.H("design:type",Object)],qo.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],qo.prototype,"currentCommentOptionIndex",void 0);
_.V([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:sMm}),_.H("design:type",Object)],qo.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.n(),_.H("design:type",Object)],qo.prototype,"isEmojiPickerDisplayed",void 0);_.V([_.n(),_.H("design:type",Object)],qo.prototype,"emojiManager",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],qo.prototype,"isUgcEmpty",void 0);
_.V([_.ev("currentCommentOption"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qo.prototype,"currentCommentOptionChanged",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qo.prototype,"dataChanged",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qo.prototype,"isEmojiYtdCommentInputEnabled",null);
_.V([_.y("data.title"),_.H("design:type",Object),_.H("design:paramtypes",[])],qo.prototype,"title",null);_.V([_.y("data.authorText"),_.H("design:type",Object),_.H("design:paramtypes",[])],qo.prototype,"channelName",null);_.V([_.y("data.commentOptionRenderers","currentCommentOption"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qo.prototype,"shouldShowPaidCommentChipRenderer",null);
_.V([_.y("data.commentOptionRenderers","currentCommentOption"),_.H("design:type",Object),_.H("design:paramtypes",[])],qo.prototype,"paidCommentChipRenderer",null);_.V([_.y("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],qo.prototype,"currentCommentOption",null);
_.V([_.y("data.defaultCommentText","superThanksSelectedTierEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],qo.prototype,"commentText",null);_.V([_.y("data.placeholderText"),_.H("design:type",Object),_.H("design:paramtypes",[])],qo.prototype,"placeholderText",null);_.V([_.y("data.commentDialog.commentDialogRenderer.editableText"),_.H("design:type",Object),_.H("design:paramtypes",[])],qo.prototype,"editableText",null);
_.V([_.y("data.commentDialog.commentDialogRenderer.emojiButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],qo.prototype,"emojiButton",null);_.V([_.y("data.commentDialog.commentDialogRenderer.emojiPicker"),_.H("design:type",Object),_.H("design:paramtypes",[])],qo.prototype,"emojiPicker",null);
_.V([_.y("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qo.prototype,"isEmojiButtonDisplayed",null);_.V([_.UQ("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],qo.prototype,"onEmojiSelect",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],qo);
_.Y(qo,"ytd-pdg-comment-preview-renderer",function(){if(rP8!==void 0)return rP8;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return rP8=A},{mode:2});var tFy;var UZ=function(){var A=_.F.apply(this,arguments)||this;A.selected=!1;return A};
_.R(UZ,_.F);_.J=UZ.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.J.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.J.dataChanged=function(){this.data&&(_.kO(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Q_(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.bY(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.bY(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.J.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.J.onClick=function(){this.logClick()};
_.J.onKeyboardSelect=function(){_.s9(this.hostElement,"tap");this.onClick()};
_.J.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
UZ.prototype.onClick=UZ.prototype.onClick;UZ.prototype.selectedChanged=UZ.prototype.selectedChanged;UZ.prototype.dataChanged=UZ.prototype.dataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],UZ.prototype,"componentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.YD),_.H("design:type",Object)],UZ.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.b(_.jv),_.H("design:type",Object)],UZ.prototype,"ironSelectableBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],UZ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],UZ.prototype,"shownThumbnail",void 0);_.V([_.n(),_.H("design:type",Object)],UZ.prototype,"basePriceText",void 0);_.V([_.n(),_.H("design:type",Object)],UZ.prototype,"purchaseCommand",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],UZ.prototype,"selected",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UZ.prototype,"dataChanged",null);_.V([_.ev("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UZ.prototype,"selectedChanged",null);_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UZ.prototype,"onClick",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],UZ);
_.Y(UZ,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(tFy!==void 0)return tFy;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return tFy=A},{mode:1});var ew=function(){var A=_.F.apply(this,arguments)||this;A.selectedItemIndex=0;A.buyButtonDisabled=!1;return A};
_.R(ew,_.F);_.J=ew.prototype;
_.J.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]]"}}}}}};
_.J.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var A;var t=(A=_.C(this.data.colorSlider,iQm))==null?void 0:A.notches[this.selectedItemIndex].purchaseCommand}else{var f;t=(f=_.C(this.data.selectableItemButtons[this.selectedItemIndex],Bh8))==null?void 0:f.purchaseCommand}if(t){A=_.C(t,_.hQK);A.productData||(A.productData={});var X;A.productData={pdgData:{commentMessageText:(X=this.commentPreviewRenderer)==null?void 0:X.getUserGeneratedCommentText()}};
_.s9(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(t)}}};
_.J.dataChanged=function(){if(this.data){_.z4.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Yb8(_.z4,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.z4.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var A;this.buyButtonDisabled=!((A=_.C(this.data.commentPreview,cK3))==null||!A.placeholderText);this.updatePriceSelectorStatus();var t;if((t=this.data)==null?0:t.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;A=[];this.data.preloadImages&&(A=this.data.preloadImages);
A=A.map(function(f){return _.a8(f.thumbnails,1920)});
A=_.U(A);for(t=A.next();!t.done;t=A.next())(t=t.value)&&_.ES5(t).thenCatch(function(){_.K4(Error("Jl"))})}};
_.J.superThanksSelectedTierEntityChanged=function(){var A;(this==null?void 0:(A=this.superThanksSelectedTierEntity)==null?void 0:A.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.J.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.J.updatePriceSelectorStatus=function(){this.isColorSlider?(_.sF(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.sF(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.sF(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.sF(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.J.closeBuyFlow=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.J.onUserGeneratedContentChanged=function(){var A;this.buyButtonDisabled=!((A=this.commentPreviewRenderer)==null?0:A.getUserGeneratedCommentText())};
_.J.updateSelectedItemIndexFromBinding=function(A){this.selectedItemIndex=A.detail.value};
_.PV.Object.defineProperties(ew.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.disclaimerText)}}});
ew.prototype.onUserGeneratedContentChanged=ew.prototype.onUserGeneratedContentChanged;ew.prototype.closeBuyFlow=ew.prototype.closeBuyFlow;ew.prototype.selectedItemIndexChanged=ew.prototype.selectedItemIndexChanged;ew.prototype.superThanksSelectedTierEntityChanged=ew.prototype.superThanksSelectedTierEntityChanged;ew.prototype.dataChanged=ew.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ew.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ew.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],ew.prototype,"selectedItemIndex",void 0);_.V([_.n(),_.H("design:type",Boolean)],ew.prototype,"isColorSlider",void 0);
_.V([_.n(),_.H("design:type",Object)],ew.prototype,"buyButtonDisabled",void 0);_.V([_.n({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:sMm}),_.H("design:type",Object)],ew.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.lo("ytd-pdg-comment-preview-renderer"),_.H("design:type",Object)],ew.prototype,"commentPreviewRenderer",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],ew.prototype,"ytdReduxBehavior",void 0);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ew.prototype,"dataChanged",null);_.V([_.ev("superThanksSelectedTierEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ew.prototype,"superThanksSelectedTierEntityChanged",null);_.V([_.ev("selectedItemIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ew.prototype,"selectedItemIndexChanged",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ew.prototype,"closeBuyFlow",null);_.V([_.UQ("ytd-pdg-user-generated-comment-changed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ew.prototype,"onUserGeneratedContentChanged",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ew.prototype,"isDisclaimerTextShown",null);
_.V([_.y_({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],ew);
_.Y(ew,"yt-super-vod-buy-flow-content-renderer",function(){if(snl!==void 0)return snl;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return snl=A},{mode:1});var fD2;var GP=function(){var A=_.F.apply(this,arguments)||this;A.lottieAnimationRef={};return A};
_.R(GP,_.F);_.J=GP.prototype;_.J.created=function(){_.q2.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.JY(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.J.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.s9(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.J.detached=function(){this.autoCloseJobId&&_.a6.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.JY(this,this.onPopupIronOverlayOpened))};
_.J.dataChanged=function(){var A=this;this.data&&this.data.autoCloseDelay&&(_.kJ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.sX(_.a6,function(){A.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Q_(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.J.onDOMLoadedLottie=function(){var A=this,t,f,X=Number((t=this.data)==null?void 0:(f=t.autoCloseDelay)==null?void 0:f.seconds)||0;this.fadeOutJobId=_.sX(_.a6,function(){A.lottiePlayerEl.classList.add("fadeout")},(X-.25)*1E3);
this.autoCloseJobId=_.sX(_.a6,function(){A.closePopup()},X*1E3)};
_.J.openPopup=function(){this.ironOverlayBehavior.open()};
_.J.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.kJ(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.tl(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.Px().resolve(_.i2).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.a6.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.a6.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.J.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var A,t;(A=this.lottieAnimationRef)==null||(t=A.lottieEl)==null||t.destroy();A=this.data.lottie;var f,X;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:A.url+"_"+Math.random(),path:A.url,autoplay:!0,loop:(X=(f=A.settings)==null?void 0:f.loop)!=null?X:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.PV.Object.defineProperties(GP.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var A,t;return!!((A=this.data)==null?0:(t=A.lottie)==null?0:t.url)}}});
GP.prototype.maybeInitializeLottie=GP.prototype.maybeInitializeLottie;GP.prototype.dataChanged=GP.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],GP.prototype,"rendererBehavior",void 0);_.V([_.b(_.lJ),_.H("design:type",Object)],GP.prototype,"ironOverlayBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],GP.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],GP.prototype,"lottiePlayerProps",void 0);
_.V([_.n(),_.H("design:type",Object)],GP.prototype,"lottieAnimationRef",void 0);_.V([_.lo("ytd-lottie-player"),_.H("design:type",HTMLElement)],GP.prototype,"lottiePlayerEl",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GP.prototype,"dataChanged",null);_.V([_.y("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GP.prototype,"hasLottieAnimation",null);
_.V([_.ev("data.lottie.url"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GP.prototype,"maybeInitializeLottie",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],GP);
_.Y(GP,"ytd-desktop-image-overlay-renderer",function(){if(fD2!==void 0)return fD2;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return fD2=A},{mode:1});var Xb8;var l9=function(){return _.F.apply(this,arguments)||this};
_.R(l9,_.F);_.J=l9.prototype;_.J.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"}}}}};
_.J.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",_.JY(this,this.closePopup))};
_.J.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.JY(this,this.closePopup))};
_.J.dataChanged=function(){_.r2(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.C(this.data.header,Th_)&&(this.hasBackgroundBanner=!!_.C(this.data.header,Th_).backgroundBanner)};
_.J.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.JY(this,this.closePopup))};
_.J.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Al(this.hostElement,[this.data.onCloseCommand])};
l9.prototype.handleBuyflowSelectionSubmitted=l9.prototype.handleBuyflowSelectionSubmitted;l9.prototype.dataChanged=l9.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],l9.prototype,"data",void 0);
_.V([_.n({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],l9.prototype,"hasBackgroundBanner",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],l9.prototype,"dataChanged",null);_.V([_.UQ("yt-pdg-buy-flow-selection-submitted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],l9.prototype,"handleBuyflowSelectionSubmitted",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],l9);
_.Y(l9,"ytd-pdg-buy-flow-renderer",function(){if(Xb8!==void 0)return Xb8;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Xb8=A},{mode:1});var QUA;var No=function(){var A=_.F.apply(this,arguments)||this;A.isOpen=!1;A.isPlaylistCreated=!1;return A};
_.R(No,_.F);_.J=No.prototype;_.J.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.J.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.s9(this.hostElement,"yt-refit")};
_.J.onCreateTap=function(){var A=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Al(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(t,f){if(!_.M("killswitch_ep_in_create_playlist_response")&&(f==null?0:f.actions))for(t=_.U(f.actions),f=t.next();!f.done;f=t.next())f=f.value,_.C(f,_.ys)&&A.ytComponentBehavior.resolveCommand(f)}}]),this.isPlaylistCreated=!0)};
_.J.onKeydown=function(A){if(A.keyCode===13)this.onCreateTap()};
_.J.onServiceRequestCompleted=function(A){A.stopPropagation();_.kJ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.J.computePrivacyBadge=function(A){return A?[{metadataBadgeRenderer:A}]:[]};
No.prototype.onServiceRequestCompleted=No.prototype.onServiceRequestCompleted;No.prototype.onKeydown=No.prototype.onKeydown;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],No.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],No.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],No.prototype,"isOpen",void 0);
_.V([_.n(),_.H("design:type",Object)],No.prototype,"isPlaylistCreated",void 0);_.V([_.n({value:{REQUIRED_LABEL:_.e5("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.e5("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.H("design:type",Object)],No.prototype,"addToStrings",void 0);_.V([_.n({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.H("design:type",Array)],No.prototype,"privacyBadge",void 0);
_.V([_.lo("#privacy-input"),_.H("design:type",Object)],No.prototype,"privacyInput",void 0);_.V([_.lo("#name-input"),_.H("design:type",Object)],No.prototype,"nameInput",void 0);_.V([_.UQ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],No.prototype,"onKeydown",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],No.prototype,"onServiceRequestCompleted",null);
_.V([_.y_({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],No);
_.Y(No,"ytd-add-to-playlist-create-renderer",function(){if(QUA!==void 0)return QUA;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return QUA=A},{mode:1});var qCd;var Jg2;var u9=function(){var A=_.F.apply(this,arguments)||this;A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.R(u9,_.F);u9.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
u9.prototype.onCheckboxChange=function(A){var t=this;this.data&&_.Ig(this,"yt-playlist-checkbox-changed",function(){var f=_.oO(A).checked?t.data.addToPlaylistServiceEndpoint:t.data.removeFromPlaylistServiceEndpoint;f&&_.Px().resolve(_.i2).resolveCommand(f,{form:{element:t.hostElement}});_.M("dl_playlist_killswitch")||t.transferState!=="TRANSFER_STATE_UNKNOWN"&&t.transferState!=="TRANSFER_STATE_FAILED"&&t.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:t.data.playlistId,action:"ACTION_SYNC"}})},
100)};
u9.prototype.computeIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
u9.prototype.dataChanged=u9.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],u9.prototype,"data",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],u9.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],u9.prototype,"ytComponentBehavior",void 0);_.V([_.lo("#checkbox"),_.H("design:type",HTMLInputElement)],u9.prototype,"checkbox",void 0);
_.V([_.n({selector:_.pZ,selectorArgs:["data.playlistId"]}),_.H("design:type",String)],u9.prototype,"transferState",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u9.prototype,"dataChanged",null);_.V([_.y_({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],u9);
_.Y(u9,"ytd-playlist-add-to-option-renderer",function(){if(Jg2!==void 0)return Jg2;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Jg2=A},{mode:1});var Ueh=_.I(function(A){var t=A.data;return _.u("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.u("div",null,_.u(_.zL,{text:function(){return t().title}})),_.u(_.P,{cond:function(){return t().subtitle},
then:function(f){return _.u("div",{class:"ytdMenuTitleRendererSubtitle"},_.u(_.zL,{text:f}))}}))},"xj");
Ueh.idomCompat=!0;_.Hn(Ueh,"ytd-menu-title-renderer",{props:{data:_.PS}});var zP=function(){var A=_.F.apply(this,arguments)||this;A.addToStrings={ADD_TO_DROPDOWN_LABEL:_.e5("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};A.closeButtonAriaLabel=_.e5("SBOX_INAPPROPRIATE_CANCEL");A.dialog=_.M("desktop_add_to_playlist_renderer_dialog_popup");return A};
_.R(zP,_.F);_.J=zP.prototype;_.J.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"}}}};
_.J.onPopupOpened=function(){_.rH(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.J.onPopupClosed=function(){_.rH(this.playlists,"scrollable",!1)};
_.J.computeAriaLabel=function(){var A;if(this==null?0:(A=this.data)==null?0:A.actions){A=_.U(this.data.actions);for(var t=A.next();!t.done;t=A.next())if(t=t.value,t.menuTitleRenderer)return _.dF(t.menuTitleRenderer.title)}};
_.J.onTapClose=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.PV.Object.defineProperties(zP.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if(this==null?0:(A=this.data)==null?0:A.actions){A=_.U(this.data.actions);for(var t=A.next();!t.done;t=A.next())if(t=t.value,t.menuTitleRenderer)return t.menuTitleRenderer}return!1}}});
zP.prototype.onPopupClosed=zP.prototype.onPopupClosed;zP.prototype.onPopupOpened=zP.prototype.onPopupOpened;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],zP.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],zP.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],zP.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],zP.prototype,"addToStrings",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.H("design:type",String)],zP.prototype,"ariaLabel",void 0);_.V([_.n(),_.H("design:type",String)],zP.prototype,"closeButtonAriaLabel",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],zP.prototype,"dialog",void 0);
_.V([_.lo("#playlists"),_.H("design:type",HTMLElement)],zP.prototype,"playlists",void 0);_.V([_.lo("ytd-add-to-playlist-create-renderer"),_.H("design:type",Object)],zP.prototype,"createRenderer",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],zP.prototype,"menuTitleRenderer",null);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zP.prototype,"onPopupOpened",null);
_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zP.prototype,"onPopupClosed",null);_.V([_.y_({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],zP);
_.Y(zP,"ytd-add-to-playlist-renderer",function(){if(qCd!==void 0)return qCd;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return qCd=A},{mode:1});var eaj;var P8=function(){var A=_.F.apply(this,arguments)||this;A.isPlaylistEditComplete=!1;A.isCollabEngagementDisabled=!1;A.closeButtonAriaLabel=_.e5("SBOX_INAPPROPRIATE_CANCEL");A.saveButton={title:_.e5("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"};A.onValueChanged=function(){A.updateSaveButtonState();A.computeCollabEngagementDisabled()};
return A};
_.R(P8,_.F);_.J=P8.prototype;_.J.attached=function(){this.JSC$20980_scroller&&(this.JSC$20980_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20980_scroller.attached&&typeof this.JSC$20980_scroller.attached==="function"&&this.JSC$20980_scroller.attached())};
_.J.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.J.onPopupClosed=function(){this.reset()};
_.J.close=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.J.onClickSave=function(){var A=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var t=[];this.nameInput.value!==null&&t.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&t.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var f=Number(this.privacyInput.value);isNaN(f)||t.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:f})}this.votingInput.value!==null&&(f=this.votingInput.value)&&t.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:f});if(t.length>0){var X;_.C((X=this.data)==null?void 0:X.updateSettingsEndpoint,_.qN).actions=t;var Q;if((Q=this.data)==null?0:Q.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){A.close()}}}),this.isPlaylistEditComplete=!0}}};
_.J.computePrivacyBadge=function(A){return A?[{metadataBadgeRenderer:A}]:[]};
_.J.computeEditorData=function(A){var t,f;return A==null?void 0:(t=A.sections)==null?void 0:(f=t[0])==null?void 0:f.playlistSettingsEditorCasualSectionRenderer};
_.J.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.J.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}}}}}};
_.J.computeAriaLabel=function(){var A,t,f,X=(A=this.data)==null?void 0:(t=A.sections)==null?void 0:(f=t[0])==null?void 0:f.playlistSettingsEditorCasualSectionRenderer;return _.dF(X==null?void 0:X.title)};
_.J.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"}))};
_.J.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.J.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.J.isNameChanged=function(){var A,t,f;return(((A=this.editorData)==null?void 0:(t=A.name)==null?void 0:(f=t.textInputFormFieldRenderer)==null?void 0:f.value)||"")!==(this.nameInput.value||"")};
_.J.isDescriptionChanged=function(){var A,t,f;return(((A=this.editorData)==null?void 0:(t=A.description)==null?void 0:(f=t.textInputFormFieldRenderer)==null?void 0:f.value)||"")!==(this.descriptionInput.value||"")};
_.J.isPrivacyChanged=function(){var A,t,f,X,Q,q,e,G;return((e=(A=this.editorData)==null?void 0:(t=A.privacy)==null?void 0:(f=t.dropdownFormFieldRenderer)==null?void 0:(X=f.dropdown)==null?void 0:(Q=X.dropdownRenderer)==null?void 0:(q=Q.entries)==null?void 0:q.find(function(N){var z;return N==null?void 0:(z=N.privacyDropdownItemRenderer)==null?void 0:z.isSelected}))==null?void 0:(G=e.privacyDropdownItemRenderer)==null?void 0:G.int32Value)!==this.privacyInput.value};
_.J.isVotingChanged=function(){var A,t,f,X,Q,q,e,G;return((e=(A=this.editorData)==null?void 0:(t=A.voting)==null?void 0:(f=t.dropdownFormFieldRenderer)==null?void 0:(X=f.dropdown)==null?void 0:(Q=X.dropdownRenderer)==null?void 0:(q=Q.entries)==null?void 0:q.find(function(N){var z;return N==null?void 0:(z=N.privacyDropdownItemRenderer)==null?void 0:z.isSelected}))==null?void 0:(G=e.privacyDropdownItemRenderer)==null?void 0:G.int32Value)!==this.votingInput.value};
P8.prototype.onPopupClosed=P8.prototype.onPopupClosed;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],P8.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],P8.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],P8.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],P8.prototype,"data",void 0);_.V([_.n({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.H("design:type",Array)],P8.prototype,"privacyBadge",void 0);_.V([_.n({computed:"computeEditorData(data)"}),_.H("design:type",Object)],P8.prototype,"editorData",void 0);_.V([_.n(),_.H("design:type",Object)],P8.prototype,"isPlaylistEditComplete",void 0);_.V([_.n(),_.H("design:type",Object)],P8.prototype,"isCollabEngagementDisabled",void 0);
_.V([_.n({value:{REQUIRED_LABEL:_.e5("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.e5("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.H("design:type",Object)],P8.prototype,"addToStrings",void 0);_.V([_.n({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.H("design:type",String)],P8.prototype,"ariaLabel",void 0);_.V([_.n(),_.H("design:type",String)],P8.prototype,"closeButtonAriaLabel",void 0);
_.V([_.n(),_.H("design:type",Object)],P8.prototype,"saveButton",void 0);_.V([_.lo("#name-input"),_.H("design:type",Object)],P8.prototype,"nameInput",void 0);_.V([_.lo("#description-input"),_.H("design:type",Object)],P8.prototype,"descriptionInput",void 0);_.V([_.lo("#privacy-input"),_.H("design:type",Object)],P8.prototype,"privacyInput",void 0);_.V([_.lo("#voting-input"),_.H("design:type",Object)],P8.prototype,"votingInput",void 0);
_.V([_.lo("#scroller"),_.H("design:type",Object)],P8.prototype,"JSC$20980_scroller",void 0);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],P8.prototype,"onPopupClosed",null);_.V([_.n(),_.H("design:type",Object)],P8.prototype,"onValueChanged",void 0);_.V([_.y_({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],P8);
_.Y(P8,"ytd-playlist-settings-editor-renderer",function(){if(eaj===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);eaj=A}A=eaj;return A},{mode:1});var GMw;_.C1("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var TP=function(){return _.F.apply(this,arguments)||this};
_.R(TP,_.F);_.J=TP.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.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 A=this.get("data.nextButton.buttonRenderer.navigationEndpoint");A&&(this.nextNavigationEndpoint=A,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.J.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 A={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",A)}}};
_.J.onPopupOpened=function(A){A.detail!==this&&A.detail!==this.hostElement||!_.M("enable_premium_voluntary_pause")||_.kJ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.J.onNextButtonTap=function(){var A=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);A&&this.ytdOpenPopupBehavior.openPopup(A)};
_.J.updateSelectedResponseIndexFromBinding=function(A){this.selectedResponseIndex=A.detail.value};
TP.prototype.onPopupOpened=TP.prototype.onPopupOpened;TP.prototype.onSelectedResponseIndexChange=TP.prototype.onSelectedResponseIndexChange;TP.prototype.dataChanged=TP.prototype.dataChanged;_.V([_.b(_.RH),_.H("design:type",Object)],TP.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],TP.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],TP.prototype,"selectedResponseIndex",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TP.prototype,"dataChanged",null);_.V([_.ev("selectedResponseIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TP.prototype,"onSelectedResponseIndexChange",null);
_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],TP.prototype,"onPopupOpened",null);_.V([_.y_({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],TP);
_.Y(TP,"ytd-red-cancel-survey-renderer",function(){if(GMw!==void 0)return GMw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return GMw=A},{mode:1});var lDy;var i9=function(){var A=_.F.apply(this,arguments)||this;A.closeButtonAriaLabel=_.e5("SBOX_INAPPROPRIATE_CANCEL");return A};
_.R(i9,_.F);i9.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
i9.prototype.onClickClose=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],i9.prototype,"rendererStamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],i9.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],i9.prototype,"closeButtonAriaLabel",void 0);_.V([_.y_({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],i9);
_.Y(i9,"ytd-search-filter-options-dialog-renderer",function(){if(lDy!==void 0)return lDy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return lDy=A},{mode:1});var NTw;var GKw=function(){return function(A){A=A.availabilityType;return A===void 0||A==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||A==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var OZ=function(){var A=_.F.apply(this,arguments)||this;A.qualityOptions=[];A.upsellOptions=[];A.showUpsellSection=!1;A.rememberSettingsChecked=!1;return A};
_.R(OZ,_.F);_.J=OZ.prototype;_.J.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}}}}};
_.J.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.J.updateQualityOptions=function(){if(this.formats===void 0)_.kJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var A=[],t=[];this.showUpsellSection=!1;for(var f=_.U(this.formats),X=f.next();!X.done;X=f.next())(X=X.value)&&(X.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?t.push(X):A.push(X));A.length&&(this.qualityOptions=eIw(A));t.length&&(this.showUpsellSection=!0,this.upsellOptions=eIw(t))}};
_.J.updateRememberString=function(){if(this.downloadQualityPickerEntity)var A=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var t;A=(t=this.data)==null?void 0:t.premiumRememberSettingString}else{var f;A=(f=this.data)==null?void 0:f.rememberSettingString}A=A===void 0?_.e5("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):A;this.rememberSettingsCheckboxRenderer={title:_.w0(A),disabled:!1}};
_.J.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.PV.Object.defineProperties(OZ.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var A;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(A=this.data)==null?void 0:A.qualityFormats}}});
OZ.prototype.updateRememberString=OZ.prototype.updateRememberString;OZ.prototype.updateQualityOptions=OZ.prototype.updateQualityOptions;OZ.prototype.dataChanged=OZ.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],OZ.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],OZ.prototype,"data",void 0);
_.V([_.b(_.qT),_.H("design:type",Object)],OZ.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Boolean)],OZ.prototype,"selectedUpsellQuality",void 0);_.V([_.n({computed:"computeIcon_(data.premiumIcon)",value:""}),_.H("design:type",String)],OZ.prototype,"premiumIcon",void 0);_.V([_.n({selector:SX2,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.H("design:type",Object)],OZ.prototype,"downloadQualityPickerEntity",void 0);
_.V([_.n(),_.H("design:type",Array)],OZ.prototype,"qualityOptions",void 0);_.V([_.n(),_.H("design:type",Array)],OZ.prototype,"upsellOptions",void 0);_.V([_.n(),_.H("design:type",Object)],OZ.prototype,"showUpsellSection",void 0);_.V([_.n(),_.H("design:type",Object)],OZ.prototype,"rememberSettingsCheckboxRenderer",void 0);_.V([_.lo("#remember-settings"),_.H("design:type",HTMLInputElement)],OZ.prototype,"rememberSettingsCheckbox",void 0);
_.V([_.n(),_.H("design:type",Object)],OZ.prototype,"rememberSettingsChecked",void 0);_.V([_.n(),_.H("design:type",Function)],OZ.prototype,"onRememberSettingsCheckedChanged",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OZ.prototype,"dataChanged",null);_.V([_.ev("downloadQualityPickerEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OZ.prototype,"updateQualityOptions",null);
_.V([_.ev("selectedUpsellQuality"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OZ.prototype,"updateRememberString",null);_.V([_.y_({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],OZ);
_.Y(OZ,"ytd-download-quality-selector-content",function(){if(NTw!==void 0)return NTw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return NTw=A},{mode:1});var uqw;var c8=function(){var A=_.F.apply(this,arguments)||this;A.selectedUpsellQuality=!1;A.qualityOptions=[];A.useUpsellDismissAlternate=_.M("use_not_now_dl_upsell_dismiss_cta");A.shouldShowAlternateUpsellDimiss=!1;A.rememberSettings=!1;A.rememberSettingsChecked=!1;A.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};A.rememberSettingsCheckedChanged=function(t){A.rememberSettingsChecked=t};
return A};
_.R(c8,_.F);_.J=c8.prototype;
_.J.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.w0(_.e5("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.w0(_.e5("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.w0(_.e5("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.w0(_.e5("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.J.updateQualityOptions=function(){this.formats===void 0?_.kJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=eIw(this.formats)};
_.J.onQualityOptionsSelect=function(A){if(this.qualityOptions&&A){A!==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 t=_.U(this.qualityOptions.entries()),f=t.next();!f.done;f=
t.next()){f=_.U(f.value);var X=f.next().value;f=f.next().value;var Q=void 0,q=void 0;if(((Q=f)==null?void 0:(q=Q.settingsRadioOptionRenderer)==null?void 0:q.id)===A){this.selectedQualityIndex=X;A=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((A=this.formats[X])==null?void 0:A.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.J.onClickSubmit=function(){var A;if((A=this.downloadButtonRenderer)==null||!A.isDisabled){var t,f;A=(f=(t=this.data)==null?void 0:t.onSubmitEndpoint)!=null?f:{};var X,Q;if(this.formats&&(((X=_.C(A,_.Ga))==null?0:X.videoId)||((Q=_.C(A,_.lj))==null?0:Q.playlistId))){var q,e,G,N,z,T;t={formatType:(N=(q=this.formats)==null?void 0:(e=q[(G=this.selectedQualityIndex)!=null?G:0])==null?void 0:e.format)!=null?N:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(z=this.getOfflineEndpoint(A))==null?void 0:(T=z.actionParams)==null?void 0:T.settingsAction)};this.getOfflineEndpoint(A).actionParams=t;this.ytComponentBehavior.resolveCommand(A)}_.kJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.J.onClickUpsell=function(){var A;if((A=this.upsellButtonRenderer)==null||!A.isDisabled){var t,f;A=(f=(t=this.data)==null?void 0:t.upsellEndpoint)!=null?f:{};this.ytComponentBehavior.resolveCommand(A);_.kJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);t="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var X,Q,q,e;t=(e=(X=this.formats)==null?void 0:(Q=X[(q=this.selectedQualityIndex)!=null?q:0])==null?void 0:Q.format)!=null?e:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:t}})}};
_.J.onClickClose=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.J.getOfflineSettingsAction=function(A,t){return A?t===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":t:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.J.getOfflineEndpoint=function(A){return _.C(A,_.Ga)?_.C(A,_.Ga):_.C(A,_.lj)};
_.PV.Object.defineProperties(c8.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.w0(_.e5("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var A;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(A=this.data)==null?void 0:A.qualityFormats}}});
c8.prototype.updateQualityOptions=c8.prototype.updateQualityOptions;c8.prototype.dataChanged=c8.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],c8.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],c8.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],c8.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Number)],c8.prototype,"selectedQualityIndex",void 0);_.V([_.n(),_.H("design:type",Object)],c8.prototype,"selectedUpsellQuality",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],c8.prototype,"ytdReduxBehavior",void 0);
_.V([_.n({selector:SX2,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.H("design:type",Object)],c8.prototype,"downloadQualityPickerEntity",void 0);_.V([_.n(),_.H("design:type",Array)],c8.prototype,"qualityOptions",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],c8.prototype,"useUpsellDismissAlternate",void 0);_.V([_.n(),_.H("design:type",Object)],c8.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.V([_.n(),_.H("design:type",Object)],c8.prototype,"downloadButtonRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],c8.prototype,"upsellButtonRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],c8.prototype,"cancelButtonRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],c8.prototype,"upsellCancelButtonRenderer",void 0);_.V([_.n(),_.H("design:type",Object)],c8.prototype,"rememberSettings",void 0);_.V([_.n(),_.H("design:type",Object)],c8.prototype,"rememberSettingsChecked",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c8.prototype,"dataChanged",null);_.V([_.ev("downloadQualityPickerEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c8.prototype,"updateQualityOptions",null);_.V([_.y_({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],c8);
_.Y(c8,"ytd-download-quality-selector-renderer",function(){if(uqw!==void 0)return uqw;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return uqw=A},{mode:1});var za_;var B8=function(){return _.F.apply(this,arguments)||this};
_.R(B8,_.F);B8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
B8.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"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],B8.prototype,"data",void 0);_.V([_.n({computed:"computeIcon_(data.infoIcon)"}),_.H("design:type",Object)],B8.prototype,"infoIcon",void 0);
_.V([_.n({computed:"computeIcon_(data.warningIcon)"}),_.H("design:type",Object)],B8.prototype,"warningIcon",void 0);_.V([_.y_({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],B8);
_.Y(B8,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(za_!==void 0)return za_;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return za_=A},{mode:1});var Phh;var Mo=function(){return _.F.apply(this,arguments)||this};
_.R(Mo,_.F);Mo.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Mo.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"}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Mo.prototype,"data",void 0);_.V([_.y_({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Mo);
_.Y(Mo,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(Phh!==void 0)return Phh;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Phh=A},{mode:1});var TTd;var C5=function(){return _.F.apply(this,arguments)||this};
_.R(C5,_.F);C5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
C5.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"}}}}};
C5.prototype.onServiceRequestSentOrCompleted=function(A,t){t&&t.actions&&t.actions.length>0&&_.kJ(this.hostElement,"yt-close-popup-action",[this.is])};
C5.prototype.onServiceRequestSentOrCompleted=C5.prototype.onServiceRequestSentOrCompleted;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],C5.prototype,"data",void 0);
_.V([_.UQ("yt-service-request-completed"),_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],C5.prototype,"onServiceRequestSentOrCompleted",null);_.V([_.y_({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],C5);
_.Y(C5,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(TTd!==void 0)return TTd;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return TTd=A},{mode:1});var icd;var h6=function(){var A=_.F.apply(this,arguments)||this;A.submitButtonDisabled=!0;return A};
_.R(h6,_.F);_.J=h6.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.J.onDataChanged=function(){var A,t,f;if(((A=this.data)==null?void 0:(t=A.confirmButton)==null?void 0:(f=t.buttonRenderer)==null?void 0:f.isDisabled)!==void 0){var X,Q,q;this.submitButtonDisabled=(X=this.data)==null?void 0:(Q=X.confirmButton)==null?void 0:(q=Q.buttonRenderer)==null?void 0:q.isDisabled}};
_.J.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.J.updateSubmitButtonDisabledFromBinding=function(A){this.submitButtonDisabled=A.detail.value};
_.J.updateSubmitButtonDisabledFromConfirmCheckbox=function(A){this.submitButtonDisabled=!A.detail.value};
h6.prototype.onDataChanged=h6.prototype.onDataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],h6.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],h6.prototype,"submitButtonDisabled",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h6.prototype,"onDataChanged",null);_.V([_.y_({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],h6);
_.Y(h6,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(icd!==void 0)return icd;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return icd=A},{mode:1});var OcQ;var Rt=function(){return _.F.apply(this,arguments)||this};
_.R(Rt,_.F);_.PV.Object.defineProperties(Rt.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var A,t,f;return((A=this.data)==null?void 0:A.title)+" "+((t=this.data)==null?void 0:t.metadataPrimary)+" "+((f=this.data)==null?void 0:f.metadataSecondary)}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Rt.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Rt.prototype,"data",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Rt.prototype,"ariaLabel",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Rt);
_.Y(Rt,"ytd-compact-product-list-item-renderer",function(){if(OcQ!==void 0)return OcQ;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return OcQ=A},{mode:1});var cg8;var mY=function(){return _.F.apply(this,arguments)||this};
_.R(mY,_.F);mY.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]]"}}}}}};
_.PV.Object.defineProperties(mY.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],mY.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],mY.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],mY);
_.Y(mY,"ytd-compact-product-list-renderer",function(){if(cg8!==void 0)return cg8;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return cg8=A},{mode:1});var BTw;var b9=function(){return _.F.apply(this,arguments)||this};
_.R(b9,_.F);_.J=b9.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.J.getBackgroundUrl=function(){var A=this.get("data.headerImage.thumbnails");return A?"url("+_.a8(A,this.hostElement.clientWidth)+")":""};
_.J.onDataChanged=function(){var A=this.getBackgroundUrl();A&&(this.header.style.backgroundImage=A);A=_.Ws();var t=_.mx(),f=this.get("data.trackingParams");f&&t&&A&&_.x7(A,t,_.zV(f));A=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(t=A.next();!t.done;t=A.next())t.value.onShow()};
_.J.onPopupClosed=function(A){_.oO(A).localName==="ytd-membership-post-cancel-renderer"&&_.kJ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
b9.prototype.onPopupClosed=b9.prototype.onPopupClosed;b9.prototype.onDataChanged=b9.prototype.onDataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],b9.prototype,"data",void 0);_.V([_.lo("#header"),_.H("design:type",HTMLDivElement)],b9.prototype,"header",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b9.prototype,"onDataChanged",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],b9.prototype,"onPopupClosed",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],b9);
_.Y(b9,"ytd-membership-post-cancel-renderer",function(){if(BTw!==void 0)return BTw;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return BTw=A},{mode:1});var MFy;var W8=function(){return _.F.apply(this,arguments)||this};
_.R(W8,_.F);W8.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
W8.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],W8.prototype,"data",void 0);_.V([_.lo("ytd-feedback-survey-renderer"),_.H("design:type",Object)],W8.prototype,"feedbackSurveyRenderer",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],W8);
_.Y(W8,"ytd-sponsorship-confirm-cancel-content",function(){if(MFy!==void 0)return MFy;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return MFy=A},{mode:1});var Chc;var y3=function(){var A=_.F.apply(this,arguments)||this;A.maybeSubmitFeedback=function(){A.content&&A.content.maybeSubmitFeedback()};
return A};
_.R(y3,_.F);_.J=y3.prototype;_.J.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.J.onYtPopupOpened=function(A,t){t===this&&this.data&&this.data.onOpenCommands&&_.tl(this.hostElement,this.data.onOpenCommands,this.hostElement);_.kJ(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.J.onYtPopupClosed=function(A,t){(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.tl(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.J.onYtServiceRequestError=function(A){_.jL(this.hostElement,A.detail.error.message)};
_.J.onDataChanged=function(){if(this.isAttached){var A=this.backgroundUrl;A&&(_.sF(this.hostElement).querySelector("#header").style.backgroundImage=A)}};
_.PV.Object.defineProperties(y3.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return A?"url("+_.a8(A,this.hostElement.clientWidth)+")":""}}});
y3.prototype.onDataChanged=y3.prototype.onDataChanged;y3.prototype.onYtServiceRequestError=y3.prototype.onYtServiceRequestError;y3.prototype.onYtServiceRequestCompleted=y3.prototype.onYtServiceRequestCompleted;y3.prototype.onYtPopupClosed=y3.prototype.onYtPopupClosed;y3.prototype.onYtPopupOpened=y3.prototype.onYtPopupOpened;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],y3.prototype,"data",void 0);_.V([_.n({value:function(){return _.e5("SBOX_INAPPROPRIATE_CANCEL")}}),
_.H("design:type",String)],y3.prototype,"closeButtonAriaLabel",void 0);_.V([_.lo("#scrollable"),_.H("design:type",Object)],y3.prototype,"scrollable",void 0);_.V([_.lo("ytd-sponsorship-confirm-cancel-content"),_.H("design:type",Object)],y3.prototype,"content",void 0);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],y3.prototype,"onYtPopupOpened",null);
_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],y3.prototype,"onYtPopupClosed",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],y3.prototype,"onYtServiceRequestCompleted",null);
_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],y3.prototype,"onYtServiceRequestError",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y3.prototype,"onDataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],y3);
_.Y(y3,"ytd-sponsorship-confirm-cancel-renderer",function(){if(Chc!==void 0)return Chc;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Chc=A},{mode:_.sQ("kevlar_poly_si_batch_j081")?1:2});var ha2;var L5=function(){return _.F.apply(this,arguments)||this};
_.R(L5,_.F);L5.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],L5.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],L5);
_.Y(L5,"ytd-sponsorships-celebration-content",function(){if(ha2!==void 0)return ha2;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return ha2=
A},{mode:1});var Ra3;var mej=_.dS(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),p5=function(){var A=_.F.apply(this,arguments)||this;A.scriptsAppended=!1;A.useFullWidthPrimaryButton=!1;A.buttonOverrides={type:"tonal",style:"overlay-dark"};return A};
_.R(p5,_.F);_.J=p5.prototype;_.J.dataChanged=function(){var A;this.useFullWidthPrimaryButton=!((A=this.data)==null||!A.useFullWidthPrimaryButton)};
_.J.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:_.M("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var A;(A=this.header)==null||A.style.setProperty("background-color",this.backgroundColor);if(A=this.headerImageUrl){var t;(t=this.header)==null||t.style.setProperty("background-image",A)}t=_.Ws(4);A=_.mx(4);var f=this.get("data.trackingParams");if(f&&A&&t){var X=_.zV(f);_.x7(t,A,X);_.M("combine_ve_grafts")?_.er().graftServerVe(f,A,4):_.x7(t,A,X)}t=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(A=t.next();!A.done;A=t.next())A.value.onShow();if(t=this.get("data.gtmId"))_.aF(t,
_.ah("GL","")),this.setupConversionTracking()};
_.J.setupConversionTracking=function(){if(!this.scriptsAppended){var A=document.createElement("script");_.Jt(A,_.QP(mej.join("")));document.head.appendChild(A);A=document.createElement("noscript");A.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(A);this.scriptsAppended=!0}};
_.J.onPopupClosed=function(A){if(_.oO(A).localName==="ytd-sponsorships-celebration-renderer"){_.kJ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var t;this.data&&((t=this.data)==null?0:t.dismissCommand)&&_.XH.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.PV.Object.defineProperties(p5.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.bY(A)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return A?"url("+_.a8(A,this.hostElement.getBoundingClientRect().width)+")":""}}});
p5.prototype.onPopupClosed=p5.prototype.onPopupClosed;p5.prototype.onDataChanged=p5.prototype.onDataChanged;p5.prototype.dataChanged=p5.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],p5.prototype,"data",void 0);
_.V([_.lo("#header"),_.H("design:type",HTMLElement)],p5.prototype,"header",void 0);_.V([_.n(),_.H("design:type",Object)],p5.prototype,"scriptsAppended",void 0);_.V([_.n({type:Boolean,reflectToAttribute:!0}),_.H("design:type",Object)],p5.prototype,"useFullWidthPrimaryButton",void 0);_.V([_.n(),_.H("design:type",Object)],p5.prototype,"buttonOverrides",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],p5.prototype,"dataChanged",null);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],p5.prototype,"onDataChanged",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],p5.prototype,"onPopupClosed",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],p5);
_.Y(p5,"ytd-sponsorships-celebration-renderer",function(){if(Ra3!==void 0)return Ra3;var A=document.createElement("template");_.m(A,'\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="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Ra3=A},{mode:1});var bc3;var EZ=function(){var A=_.F.apply(this,arguments)||this;A.isToggleChecked=!1;return A};
_.R(EZ,_.F);EZ.prototype.onDataChanged=function(){var A;this.isToggleChecked=((A=this.data)==null?void 0:A.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
EZ.prototype.close=function(){var A;((A=this.data)==null?0:A.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
EZ.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var A,t=_.C((A=this.data)==null?void 0:A.switchButton,MA3);t&&(this.isToggleChecked&&t.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(t.switchOnInnertubeCommand),!this.isToggleChecked&&t.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(t.switchOffInnertubeCommand))};
EZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
EZ.prototype.onDataChanged=EZ.prototype.onDataChanged;_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],EZ.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],EZ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],EZ.prototype,"isToggleChecked",void 0);_.V([_.n({value:_.e5("CLOSE")}),_.H("design:type",String)],EZ.prototype,"closeButtonAriaLabel",void 0);
_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],EZ.prototype,"onDataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],EZ);
_.Y(EZ,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(bc3!==void 0)return bc3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return bc3=A},{mode:1});var Wcd;var n5=function(){return _.F.apply(this,arguments)||this};
_.R(n5,_.F);_.J=n5.prototype;_.J.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"}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.playerElement.stop()};
_.J.onYtServiceRequestCompleted=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.J.onYtServiceRequestError=function(A){_.jL(this.hostElement,A.detail.error.message)};
_.J.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.J.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.J.getTier=function(A,t){return!A||!A.tiers||t<0?null:_.C(A.tiers[t],mmj)};
_.J.moreThanOne=function(A){return!!(A&&A.length>1)};
_.J.tierOverviewTap=function(A){var t=this;this.selectedTier=A.model.index;_.us(this,function(){_.s9(t.hostElement,"yt-refit")})};
_.J.computeSelectedClass=function(A,t){return this.isSelected(A,t)?"selected":""};
_.J.computeButtonAriaPressed=function(A,t){return this.isSelected(A,t)?"true":"false"};
_.J.isSelected=function(A,t){return A===t};
_.J.onDataChanged=function(){_.sF(this.hostElement).querySelector("#header-overlay").style.visibility="";_.sF(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 A=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),
t=A.next();!t.done;t=A.next())t.value.onShow();var f;this.set("selectedTier",(f=this.get("data.targetTierIndex"))!=null?f:0);var X;(A=(X=this.data)==null?void 0:X.onVisible)&&this.ytComponentBehavior.resolveCommand(A)};
_.J.initializeVe=function(A){var t=_.Ws(),f=_.mx(),X=this.get("data.trackingParams");f&&t&&(this.screenLayer=4,t=_.r9(_.tN5)(void 0,69877,{clientScreenNonce:t,visualElement:f},void 0,void 0,void 0),_.vs(t,69877,4),f=_.mx(4),X&&f&&(X=_.zV(X),_.x7(t,f,X),A&&(this.offerVideoVe=_.Xl(74659),_.x7(t,X,this.offerVideoVe))))};
_.J.setHeaderBackground=function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.sF(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.bY(A);if(A=this.getHeaderImage())A=_.a8(A,screen.width),_.sF(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+A+")"};
_.J.getHeaderImage=function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&A?A:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setupVideoPlayer=function(A){var t=this,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1)return f=t.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),X=t.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.M("kevlar_player_update_killswitch")?t.playerElement.update({args:{autoplay:f,video_id:A,player_params:X}}):t.playerElement.loadVideoWithPlayerVars({autoplay:f,video_id:A,player_params:X}),
e.yield(t.playerElement.getPlayerPromise(),2);Q=e.yieldResult;Q.addEventListener("onStateChange",function(G){t.onPlayerStateChange(G)});
Q.setScreenLayer(t.screenLayer);(q=_.Ws(4))&&t.offerVideoVe&&_.Y7(q,t.offerVideoVe);f&&(t.pauseOtherPlayers(),t.playerElement.focusOnPlayer(),t.playerElement.getPlayer().hideControls(),_.jY(_.a6,function(){t.fadeOutHeaderOverlay()},4E3));
_.LO(e)})};
_.J.onPlayerStateChange=function(A){A===1?this.backgroundPlayerElement&&(A=this.backgroundPlayerElement.player_.getPlayerState(),A!==1&&A!==3||this.backgroundPlayerElement.pause()):A===0&&(_.sF(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.sF(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.J.fadeOutHeaderOverlay=function(){_.sF(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.J.onHeaderTap=function(){if(this.offerVideo){_.sF(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var A;((A=this.playerElement.player_)==null?void 0:A.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(A=_.Ws(4))&&this.offerVideoVe&&_.o7(A,this.offerVideoVe)}};
_.J.getBackgroundImageLayerClass=function(A){return A?"background-image-layer-with-video":""};
_.J.getHeaderClass=function(A){return A?"header-with-video":""};
_.J.getHeaderOverlayClass=function(A){return A?"header-overlay-with-video":""};
_.J.getTitleContainerClass=function(A,t){return A?"title-container-with-video":t?"title-container-without-video-flexible":"title-container-without-video"};
_.J.tierTitleDisplayStatus=function(A){return this.moreThanOne(A)?"hide":"show"};
_.J.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.Px().resolve(_.DS).getPlayerElement():this.backgroundPlayerElement=_.K1();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var A=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=A===1||A===3;this.backgroundPlayerElement.pause()}};
_.J.isMiniplayerActive=function(){return _.Px().resolve(_.DS).isMiniplayerActive()};
_.J.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("selected-tier-changed",this.selectedTier))};
n5.prototype.selectedTierChangedForBinding=n5.prototype.selectedTierChangedForBinding;n5.prototype.onDataChanged=n5.prototype.onDataChanged;n5.prototype.onYtPopupClosed=n5.prototype.onYtPopupClosed;n5.prototype.onYtPopupOpened=n5.prototype.onYtPopupOpened;n5.prototype.onYtServiceRequestError=n5.prototype.onYtServiceRequestError;n5.prototype.onYtServiceRequestCompleted=n5.prototype.onYtServiceRequestCompleted;
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],n5.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],n5.prototype,"data",void 0);_.V([_.n({value:0}),_.H("design:type",Number)],n5.prototype,"selectedTier",void 0);
_.V([_.n({value:""}),_.H("design:type",String)],n5.prototype,"offerVideo",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],n5.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.V([_.n({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.gs(this)}}),
_.H("design:type",String)],n5.prototype,"playerId",void 0);_.V([_.lo("tp-yt-paper-dialog-scrollable"),_.H("design:type",Object)],n5.prototype,"scrollable",void 0);_.V([_.lo("ytd-sponsorships-tier-renderer"),_.H("design:type",Object)],n5.prototype,"tierRenderer",void 0);_.V([_.lo("#player"),_.H("design:type",Object)],n5.prototype,"playerElement",void 0);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],n5.prototype,"onYtServiceRequestCompleted",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],n5.prototype,"onYtServiceRequestError",null);
_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n5.prototype,"onYtPopupOpened",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n5.prototype,"onYtPopupClosed",null);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n5.prototype,"onDataChanged",null);
_.V([_.ev("selectedTier"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n5.prototype,"selectedTierChangedForBinding",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],n5);
_.Y(n5,"ytd-sponsorships-offer-renderer",function(){if(Wcd!==void 0)return Wcd;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Wcd=A},{mode:_.sQ("kevlar_poly_si_batch_j077")?1:2});var yg2;var DR=function(){var A=_.F.apply(this,arguments)||this;A.buttonOverrides={type:"filled",style:"mono"};return A};
_.R(DR,_.F);DR.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}}}}}};
DR.prototype.backgroundColorChanged=function(){var A,t,f,X=(t=_.C((A=this.data)==null?void 0:A.content,bQd))==null?void 0:(f=t.backgroundColor)==null?void 0:f.backgroundColor;X&&(A=_.mt(X),_.sF(this.hostElement).querySelector("#banner").style.backgroundColor=A,_.sF(this.hostElement).querySelector("#abstract-art").style.backgroundColor=A)};
DR.prototype.attached=function(){this.JSC$21065_scroller&&(this.JSC$21065_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21065_scroller.attached&&typeof this.JSC$21065_scroller.attached==="function"&&this.JSC$21065_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
DR.prototype.backgroundColorChanged=DR.prototype.backgroundColorChanged;_.V([_.n(),_.H("design:type",Object)],DR.prototype,"data",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.lo("#scroller"),_.H("design:type",Object)],DR.prototype,"JSC$21065_scroller",void 0);_.V([_.n(),_.H("design:type",Object)],DR.prototype,"buttonOverrides",void 0);
_.V([_.ev("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DR.prototype,"backgroundColorChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],DR);
_.Y(DR,"ytd-sponsorships-promotion-celebration-renderer",function(){if(yg2!==void 0)return yg2;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return yg2=A},{mode:_.sQ("kevlar_poly_si_batch_j077")?1:2});var v_c;var Lcw;var FM=function(){return _.F.apply(this,arguments)||this};
_.R(FM,_.F);FM.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
FM.prototype.computeIsInitiallyChecked=function(A){return A===1};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],FM.prototype,"data",void 0);_.V([_.lo("#checkbox"),_.H("design:type",Object)],FM.prototype,"checkbox",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],FM);
_.Y(FM,"ytd-subscription-toggle-option-renderer",function(){if(Lcw!==void 0)return Lcw;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Lcw=A},{mode:1});var It=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return A};
_.R(It,_.F);It.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"}}}};
It.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
It.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var A=_.sF(this.hostElement).querySelector("#options").selected;A=this.data.options[A].subscriptionRadioOptionRenderer.serviceEndpoint;var t=_.sF(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");t&&A&&A.modifyChannelNotificationPreferenceEndpoint&&(t=t.getValue())&&(A.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[t]);_.Px().resolve(_.i2).resolveCommand(A,{form:{element:this.hostElement}});
_.kJ(this.hostElement,"yt-close-popup-action")};
_.PV.Object.defineProperties(It.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var A=this.data.options,t=0;t<A.length;t++){var f=A[t].subscriptionRadioOptionRenderer;if(f&&f.selected)return t}return null}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],It.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],It.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],It.prototype,"eventForwardingBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],It.prototype,"data",void 0);_.V([_.y("data.options"),_.H("design:type",Object),_.H("design:paramtypes",[])],It.prototype,"initialIndex",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],It);
_.Y(It,"ytd-subscription-notification-options-renderer",function(){if(v_c!==void 0)return v_c;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return v_c=A},{mode:1});var pb3;var E_j=function(){return _.F.apply(this,arguments)||this};
_.R(E_j,_.F);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],E_j.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],E_j.prototype,"data",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],E_j);
_.Y(E_j,"ytd-tvfilm-offer-groups-renderer",function(){if(pb3!==void 0)return pb3;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return pb3=A},{mode:1});var n_h;var xr=function(){return _.F.apply(this,arguments)||this};
_.R(xr,_.F);_.J=xr.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.J.computeThumbnailClass=function(A){return A.thumbnailOverlays?A.isShow?"thumbnail-show":"thumbnail-movie":A.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.J.computeCommerceSectionClass=function(A){return A.offers&&A.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.J.computeTitleClass=function(A){return A.offers&&A.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.J.onDataChanged=function(){[].concat(_.YV(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(A){A.onShow()})};
xr.prototype.onDataChanged=xr.prototype.onDataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],xr.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xr.prototype,"onDataChanged",null);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],xr);
_.Y(xr,"ytd-ypc-offers-overlay-renderer",function(){if(n_h!==void 0)return n_h;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return n_h=A},{mode:_.sQ("kevlar_poly_si_batch_j028")?1:2});var DeQ;var FcQ=function(){this.usedMethods=new Set};
FcQ.prototype.add=function(A){this.usedMethods.add(A)};
FcQ.prototype.reset=function(){this.usedMethods.clear()};var ID8,xed;
_.jUj=function(A,t){this.query=A;this.previousSearchQuery=t;this.id=ID8++;if(!xed){t=_.ah("SBOX_SETTINGS");A="https://"+((t==null?void 0:t.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var f=t==null?void 0:t.REQUEST_LANGUAGE;f&&(A+="&hl="+f);(f=t==null?void 0:t.REQUEST_DOMAIN)&&(A+="&gl="+f);A+="&client=youtube&gs_ri=youtube";(f=t==null?void 0:t.SUGG_EXP_ID)&&(A+="&sugexp="+encodeURIComponent(f));(f=t==null?void 0:t.PSUGGEST_TOKEN)&&(A+="&tok="+f);(t=t==
null?void 0:t.SESSION_INDEX)&&(A+="&authuser="+t);_.M("desktop_enable_visual_suggest")&&(A+="&h=180&w=320&ytvs=1");xed=A}};
_.YC2=function(A){var t="q="+encodeURIComponent(A.query);A.previousSearchQuery&&(t+="&pq="+encodeURIComponent(A.previousSearchQuery));return t};
_.VF3=function(){var A=_.ah("SBOX_SETTINGS"),t={};if(A==null?0:A.SEND_VISITOR_DATA)t["X-Goog-Visitor-Id"]=A==null?void 0:A.VISITOR_DATA;return t};
_.Zcd=function(A){var t=xed;t+="&gs_id="+A.id.toString(36);t+="&q="+encodeURIComponent(A.query);t+="&cp="+A.query.length;A.previousSearchQuery&&(t+="&pq="+encodeURIComponent(A.previousSearchQuery));(A=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(t+="&video_id="+A);return t};
ID8=0;xed="";var o_8=_.HB.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,dey=_.HB.SEARCH_ENTITY_SUGGESTION_MOVIE,SCj=_.HB.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,$ej=_.HB.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Hcw=function(A,t){this.text=A;this.bold=t},aDj=function(A,t,f){this.input=t;
this.index=f;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=A[0];this.type=A[1];this.subtypes=A[2];var X;this.displayText=NUj((X=A[3])==null?void 0:X.b);var Q;this.ignoredPrefix=NUj((Q=A[3])==null?void 0:Q.a);var q,e;this.hasNewVideo=((q=A[3])==null?void 0:(e=q.zam)==null?void 0:e.toString())==="true"?!0:!1;var G;this.visualSuggestUrl=(G=A[3])==null?void 0:G.zai;var N;this.entityType=NUj((N=A[3])==null?void 0:N.zap);var z;this.entityName=NUj((z=A[3])==null?void 0:z.zao);var T;t=
NUj((T=A[3])==null?void 0:T.zaf);var O;this.entityMid=(O=A[3])==null?void 0:O.zae;T=uyd(this.subtypes,this.entityMid);if(t&&T){if(t){O="";switch(T){case "YOUTUBE_ENTITY_TYPE_SONG":O=SCj;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":O=o_8;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":O=$ej;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":O=dey}T=T==="YOUTUBE_ENTITY_TYPE_SONG"||T==="YOUTUBE_ENTITY_TYPE_ALBUM"?O+" \u2022  \u2022 "+t:t}else T="";this.entitySubtitle=T}var c;this.externalChannelId=(c=A[3])==null?void 0:c.zav;
var B;this.entityThumbnailAttributionUrl=(B=A[3])==null?void 0:B.zaq},g_8=function(A,t){var f=[],X,Q=(X=A.displayText)!=null?X:A.text;
(t==null?0:t.useEntityName)&&Kc8(A)&&A.entityName&&(Q=A.entityName);if(A.type===33)return f.push(new Hcw(Q,!1)),f;if(Q.length>=A.input.length&&Q.substring(0,A.input.length)===A.input)f.push(new Hcw(A.input,!1)),f.push(new Hcw(Q.substring(A.input.length),!0));else{var q=new Set(A.input.split(/\s/)),e=Q.split(/\s/);f=e.map(function(G,N){return new Hcw(G.trim()+(N===e.length-1?"":" "),!q.has(G))})}return f},Kc8=function(A){var t=!!uyd(A.subtypes);
A=!!A.entityMid;return t||A};_.wb3=function(A){this.rawResponse=["",[],{}];this.suggestions=[];try{var t=JSON.parse(zId(A));if(typeof t==="object"&&t!==null)this.rawResponse=t;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(X){console.log("Suggest: Failed to parse SuggestResponse!");return}var f=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(X,Q){return new aDj(X,f,Q)})};var sU3=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new FcQ;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21102_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},kM3,rgj=function(){kM3||(kM3=new sU3);
return kM3};
sU3.prototype.updateSuggestions=function(A){var t=this;this.availableSuggestions.forEach(function(f){t.previousSuggestions[f]=!0});
this.availableSuggestions=A.map(function(f){var X=f.type.toString();f.subtypes.length>0&&(X+="i"+f.subtypes.join("i"),X+="k"+f.suggestionSources.COMPLETE_SERVER.toString());return X})};
var AI3=function(A,t){var f=Date.now();A.firstEditTime<0&&(A.firstEditTime=f);t&&(A.lastQueryBuildTime=f);A.lastEditTime=f};
sU3.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21102_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var tZ3=function(A){var t="";A.availableSuggestions.forEach(function(Q){delete A.previousSuggestions[Q]});
for(var f=_.U(Object.keys(A.previousSuggestions)),X=f.next();!X.done;X=f.next())X=X.value,A.previousSuggestions[X]&&(t+=(t?"j":"")+X);return t},fIw=function(A,t){var f=[];
t&&(f[1]=t.toString());f[0]="youtube";f[7]=Date.now()-A.startTime;f[6]=A.sessionNumber;A.zeroPrefixSuggestionCount>=0&&(f[33]=A.zeroPrefixSuggestionCount);f[13]=A.outOfSyncResponseCount;if(A.availableSuggestions.length>0){for(var X=t="",Q=0,q=_.U(A.availableSuggestions),e=q.next();!e.done;e=q.next())e=e.value,e!==X&&(Q>1&&(t+="l"+Q),t+=(X?"j":"")+e,Q=0,X=e),Q+=1;Q>1&&(t+="l"+Q);f[3]=t}f[35]=tZ3(A);A.selectedSuggestionIndex>=0&&(f[2]=A.selectedSuggestionIndex);var G;if(t=(G=_.ah("SBOX_SETTINGS"))==
null?void 0:G.SUGG_EXP_ID)f[19]=A.normalize(t),G=0,A.experimentTriggeredBeforeFinal&&(G|=1),A.experimentTriggeredFinal&&(G|=2),f[20]=G;f[26]=Array.from(A.inputMethodsTracker.usedMethods).join("j");if(A.JSC$21102_totalRoundTripTime>0){f[15]=A.JSC$21102_totalRoundTripTime;f[14]=A.maxRoundTripTime;G=[];for(Q=t=0;Q<10;Q++)X=A.roundTripTimeHistogram[Q],X===0?t++:(t>1?G.push(Q+"-"+X):t===1?G.push("0j"+X):G.push(X.toString()),t=0);G=G.join("j");f[16]=G}A.zeroPrefixRoundTripTime>0&&(f[36]=A.zeroPrefixRoundTripTime);
A.lastQueryBuildTime>0&&(f[18]=A.lastQueryBuildTime-A.startTime);A.firstEditTime>0&&(f[4]=A.firstEditTime-A.startTime);A.lastEditTime>0&&(f[5]=A.lastEditTime-A.startTime);return f.join(".")};
sU3.prototype.normalize=function(A){return A.replaceAll(".","-")};
var Xjy=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var jw=function(){var A=_.F.apply(this,arguments)||this;A.microphoneSpinnerActive=!1;A.noAnimations=!1;A.boundExitClick=function(){A.onExitButtonClick()};
A.speechOverlayClassName="";A.isLevelAnimating=!1;A.playCloseDialogAudioFeedback=!0;A.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return A};
_.R(jw,_.F);_.J=jw.prototype;_.J.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Fwj()};
_.J.dataChanged=function(){this.logDialog()};
_.J.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var A;(A=this.manager.audioPlayer)!=null&&(A.JSC$20415_audioEnabled=!1)}this.manager.stop();(A=this.manager.audioPlayer)!=null&&(A.JSC$20415_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.J.handleSpeechQueryCompleteAction=function(A){var t=A.navigationAction;t&&(A.trackingParams&&_.er().graftServerVe(A.trackingParams,this.dialogVe,5),_.s9(this.hostElement,"yt-navigate",{endpoint:t,tempData:this.getNavigationParams(t),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.J.onExitButtonClick=function(){this.closeDialog()};
_.J.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var A;if((A=this.manager)!=null){var t;(t=A.audioPlayer)==null||s6(t,"failure");A.setState("microphone-off");A.stop()}}else(A=this.manager)==null||A.start()};
_.J.transcriptionChanged=function(){var A,t;(((A=this.transcription)==null?0:A.low)||((t=this.transcription)==null?0:t.high))&&this.setState("transcribing",this.transcription)};
_.J.stateChanged=function(){this.setState(this.state,this.transcription)};
_.J.logDialog=function(){var A;(A=this.data)!=null&&A.trackingParams&&(A=_.er(),_.xz(A,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=A.graftServerVe(this.data.trackingParams,void 0,5))};
_.J.getNavigationParams=function(A){var t={};if(_.M("web_yt_searchbox")){var f=rgj();f.inputMethodsTracker.add(6);f=fIw(f,15);t.gs_l=f;var X;t.oq=((X=_.C(A,_.lY))==null?void 0:X.query)||""}else if(A=window.ytvoicesearchloggingparams){if(A=A())t.oq=A.oq,t.gs_l=A.gs_l}else _.te(Error("Kl"));return t};
_.J.closeDialog=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.J.setState=function(A,t){if(this.data){var f=this.data,X={};switch(A){case "listening":X={headerText:f.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:f.microphoneButtonAriaLabel};break;case "timeout":X={headerText:f.promptHeader,microphoneState:"try-again",microphoneLabel:f.promptMicrophoneLabel,microphoneAriaLabel:f.promptMicrophoneLabel};break;case "microphone-off":X={headerText:f.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:f.promptMicrophoneLabel,
microphoneAriaLabel:f.promptMicrophoneLabel};break;case "transcribing":(t==null?0:t.low)||(t==null?0:t.high)?X={transcriptionLow:t==null?void 0:t.low,transcriptionHigh:t==null?void 0:t.high,microphoneState:"speaking",microphoneAriaLabel:f.microphoneButtonAriaLabel}:X={headerText:f.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:f.microphoneButtonAriaLabel};break;case "processing":X={headerText:f.loadingHeader,microphoneState:"processing",microphoneAriaLabel:f.microphoneButtonAriaLabel};
break;case "offline":X={headerText:f.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:f.connectionErrorMicrophoneLabel,microphoneAriaLabel:f.connectionErrorMicrophoneLabel};break;case "permission":X={headerText:f.permissionsHeader,bodyLine1:f.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:f.permissionsSubtext};break;case "permission-denied":X={headerText:f.disabledHeader,bodyLine1:f.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:f.disabledSubtext}}X.className=
A;this.speechOverlayState=X;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.J.setMicrophoneState=function(A){var t=this.isLevelAnimating;this.isLevelAnimating=A==="speaking";!t&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=A==="processing"&&!this.noAnimations};
_.J.setClass=function(A){this.speechOverlayClassName&&_.rH(this.hostElement,this.speechOverlayClassName,!1);A&&(this.speechOverlayClassName=A,_.rH(this.hostElement,A,!0))};
_.J.runLevelAnimation=function(){var A=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var t=1+Math.random()*.75,f=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+f/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+t+")");_.a6.addJob(function(){A.runLevelAnimation()},3,f)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
jw.prototype.stateChanged=jw.prototype.stateChanged;jw.prototype.transcriptionChanged=jw.prototype.transcriptionChanged;jw.prototype.onPopupClosed=jw.prototype.onPopupClosed;jw.prototype.dataChanged=jw.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],jw.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],jw.prototype,"rendererStamperBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],jw.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],jw.prototype,"eventForwardingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],jw.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],jw.prototype,"speechOverlayState",void 0);
_.V([_.n(),_.H("design:type",Object)],jw.prototype,"microphoneSpinnerActive",void 0);_.V([_.n({type:_.M("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.H("design:type",Object)],jw.prototype,"noAnimations",void 0);_.V([_.n({selector:function(A){var t;return(t=A.voiceSearch)==null?void 0:t.transcription}}),
_.H("design:type",Object)],jw.prototype,"transcription",void 0);_.V([_.n({selector:function(A){var t;return(t=A.voiceSearch)==null?void 0:t.overlay}}),
_.H("design:type",String)],jw.prototype,"state",void 0);_.V([_.n(),_.H("design:type",Object)],jw.prototype,"boundExitClick",void 0);_.V([_.lo("#microphone-levels"),_.H("design:type",HTMLElement)],jw.prototype,"level",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jw.prototype,"dataChanged",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jw.prototype,"onPopupClosed",null);
_.V([_.PU("transcription"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jw.prototype,"transcriptionChanged",null);_.V([_.PU("state"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jw.prototype,"stateChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],jw);
_.Y(jw,"ytd-voice-search-dialog-renderer",function(){if(DeQ!==void 0)return DeQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return DeQ=A},{mode:1});var Qed;var Yr=function(){var A=_.F.apply(this,arguments)||this;A.isOverlay=!1;A.hidden=!1;return A};
_.R(Yr,_.F);_.J=Yr.prototype;_.J.onPopupClosed=function(){this.toggleIconState(!1)};
_.J.computeIcon=function(){var A,t,f;return(t=_.C((A=this.data)==null?void 0:A.icon,pld))==null?void 0:(f=t.icon)==null?void 0:f.iconType};
_.J.computeIconBadgeShape=function(){var A;return{iconBadgeType:"cart",iconBadgeText:(A=this.iconBadgeEntity)==null?void 0:A.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.onClick=function(){var A;(A=this.data)!=null&&A.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.J.computeHidden=function(A){return!A};
_.J.toggleIconState=function(A){this.iconButton&&(this.iconButton.pressed=A)};
Yr.prototype.onPopupClosed=Yr.prototype.onPopupClosed;_.V([_.b(_.qT),_.H("design:type",Object)],Yr.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],Yr.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Yr.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Yr.prototype,"isOverlay",void 0);
_.V([_.n({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.H("design:type",Object)],Yr.prototype,"hidden",void 0);_.V([_.n({selectorArgs:["data.iconBadgeEntityKey"],selector:function(A,t){return _.q_(A.entities,"iconBadgeEntity",t)}}),
_.H("design:type",Object)],Yr.prototype,"iconBadgeEntity",void 0);_.V([_.lo("yt-icon-button"),_.H("design:type",HTMLButtonElement)],Yr.prototype,"iconButton",void 0);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Yr.prototype,"onPopupClosed",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Yr);
_.Y(Yr,"ytd-icon-badge-topbar-button-renderer",function(){if(Qed!==void 0)return Qed;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Qed=A},{mode:1});var qbl;var V3=function(){var A=_.F.apply(this,arguments)||this;A.premiumOptions=[];return A};
_.R(V3,_.F);V3.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.PV.Object.defineProperties(V3.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],V3.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Array)],V3.prototype,"premiumOptions",void 0);_.V([_.y("premiumOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],V3.prototype,"hasPremiumOptions",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],V3);
_.Y(V3,"ytd-offline-promo-content",function(){if(qbl!==void 0)return qbl;var A=document.createElement("template");_.m(A,'\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="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return qbl=A},{mode:1});var JIQ;var ZR=function(){var A=_.F.apply(this,arguments)||this;A.premiumOptions=[];return A};
_.R(ZR,_.F);ZR.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var A;this.premiumOptions=lCj((A=this.data)==null?void 0:A.formats)};
ZR.prototype.onClickSubmit=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var A;(A=_.K1())==null||A.pause()};
ZR.prototype.attached=function(){this.JSC$21122_scroller&&(this.JSC$21122_scroller.dialogElement=this.hostElement.parentNode)};
_.PV.Object.defineProperties(ZR.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
ZR.prototype.dataChanged=ZR.prototype.dataChanged;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ZR.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],ZR.prototype,"data",void 0);
_.V([_.n({computed:"computeIcon_(data.headersIcon)",value:""}),_.H("design:type",String)],ZR.prototype,"headersIcon",void 0);_.V([_.n(),_.H("design:type",Array)],ZR.prototype,"premiumOptions",void 0);_.V([_.lo("#scroller"),_.H("design:type",Object)],ZR.prototype,"JSC$21122_scroller",void 0);_.V([_.y("headersIcon"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZR.prototype,"showIcon",null);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZR.prototype,"dataChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],ZR);
_.Y(ZR,"ytd-offline-promo-renderer",function(){if(JIQ!==void 0)return JIQ;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return JIQ=A},{mode:1});var UY8;var ot=function(){var A=_.F.apply(this,arguments)||this;A.playbackPauseInterval=NaN;A.isLoading=!1;A.hasError=!1;A.dialogClass="";A.youtubeLabel=_.e5("LOGO_ALT_LABEL",{},"YouTube Home");A.logoName="yt-logos-ext:yt-logo-updated";A.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return A};
_.R(ot,_.F);_.J=ot.prototype;_.J.onDataChange=function(){var A;if(this.showEOMV1Text=!((A=this.data)==null||!A.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.J.attached=function(){this.pausePlayer()};
_.J.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.J.handleLangSelect=function(A){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[A.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.J.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.J.handleSaveConsent=function(A){var t=this;this.showLoadingSpinner();this.showLoadingSpinner();pny(_.C(A,H2d)).catch(function(f){_.K4(new _.xj("Something went wrong when save consent "+(f.message?f.message:f)+"."));t.hideLoadingSpinner();t.showErrorMessage()})};
_.J.handleDisablePersonalization=function(A){var t=this;this.showLoadingSpinner();EAl(_.C(A,$TQ)).then(function(){t.dialog.close();t.resumePlayer()}).catch(function(f){_.K4(new _.xj("Something went wrong when disable personalization "+(f.message?f.message:f)+"."));
t.hideLoadingSpinner();t.showErrorMessage()})};
_.J.showLoadingSpinner=function(){var A=this;this.showSpinnerJobId=_.a6.addLowPriorityJob(function(){A.isLoading=!0},500)};
_.J.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.a6.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.J.showErrorMessage=function(){var A=this;this.hasError=!0;_.a6.addLowPriorityJob(function(){A.hasError=!1},2E3)};
_.J.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.my(function(){try{var A=_.K1();A&&A.pause()}catch(t){}},100))};
_.J.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var A=_.K1();A&&A.play()}catch(t){}};
_.PV.Object.defineProperties(ot.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.eomV1Text)return[];A=[];for(var t=["SHIELD","WARNING","BAR_CHART"],f=this.data.eomV1Text.essentialCookieMsg.items,X=0;X<t.length&&X<f.length;X++)A.push({icon:t[X],text:f[X]});return A}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.eomV1Text)return[];A=[];for(var t=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],f=this.data.eomV1Text.nonEssentialCookieMsg.items,X=0;X<t.length&&X<f.length;X++)A.push({icon:t[X],text:f[X]});return A}}});
ot.prototype.onDataChange=ot.prototype.onDataChange;_.V([_.n(),_.H("design:type",Object)],ot.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],ot.prototype,"showEOMV1Text",void 0);_.V([_.n(),_.H("design:type",Object)],ot.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",Object)],ot.prototype,"hasError",void 0);_.V([_.n(),_.H("design:type",Number)],ot.prototype,"showSpinnerJobId",void 0);_.V([_.n(),_.H("design:type",Object)],ot.prototype,"dialogClass",void 0);
_.V([_.lo("#dialog"),_.H("design:type",Object)],ot.prototype,"dialog",void 0);_.V([_.lo("#cb-header"),_.H("design:type",HTMLElement)],ot.prototype,"header",void 0);_.V([_.lo("#lang-select"),_.H("design:type",HTMLElement)],ot.prototype,"langSelect",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],ot.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],ot.prototype,"ytComponentBehavior",void 0);
_.V([_.n(),_.H("design:type",String)],ot.prototype,"youtubeLabel",void 0);_.V([_.n(),_.H("design:type",Object)],ot.prototype,"logoName",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ot.prototype,"onDataChange",null);_.V([_.y("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],ot.prototype,"eomEssentialCookieMsgItems",null);
_.V([_.y("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],ot.prototype,"eomNonEssentialCookieMsgItems",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],ot);
_.Y(ot,"ytd-consent-bump-v2-lightbox",function(){if(UY8!==void 0)return UY8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return UY8=A},{mode:1});var ed3;var dY=function(){return _.F.apply(this,arguments)||this};
_.R(dY,_.F);dY.prototype.ready=function(){if(!_.DU()||MP2)var A=!0;else MP2=!0,A=!1;A||(A=document.querySelector("ytd-app"),A||(A=document.body),this.internalLightBox=_.sF(A).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.V([_.n(),_.H("design:type",Object)],dY.prototype,"data",void 0);_.V([_.lo("#lightbox"),_.H("design:type",Object)],dY.prototype,"lightBox",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],dY);
_.Y(dY,"ytd-consent-bump-v2-renderer",function(){if(ed3!==void 0)return ed3;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return ed3=A},{mode:1});var Gjc;var lIQ;var Njw;var Sw=function(){return _.F.apply(this,arguments)||this};
_.R(Sw,_.F);_.J=Sw.prototype;_.J.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&F12(this.toastManager,this.toastType)};
_.J.open=function(A){this.toast&&(this.ephemeralAction&&_.Px().resolve(_.m8).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=A!=null?A:0,this.toastManager.enqueue(this.toast,A)):this.toast.open())};
_.J.close=function(A){var t;(t=this.toast)==null||t.close();this.toastManager&&A===1&&F12(this.toastManager,A)};
_.J.refit=function(){var A;(A=this.toast)==null||A.refit()};
_.J.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var A;(A=this.toast)==null||A.close()}};
_.J.setVerticalOffset=function(A){this.toast&&(this.toast.verticalOffset=A,this.toast.fit())};
_.J.computeButtonClass_=function(A){return A?"toast-button":""};
_.J.computeText_=function(A){return _.dF(A)};
_.J.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ol("toast-opened-changed",this.toastOpened))};
_.J.updateToastOpenedFromBinding=function(A){this.toastOpened=A.detail.value};
_.PV.Object.defineProperties(Sw.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var A,t,f=(A=this.data)==null?void 0:(t=A.actionButton)==null?void 0:t.buttonRenderer;return(f==null?void 0:f.command)||(f==null?void 0:f.serviceEndpoint)||(f==null?void 0:f.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(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 A=[],t;((t=this.data)==null?0:t.responseText)&&A.push(_.dF(this.data.responseText));var f;((f=this.data)==null?0:f.subText)&&A.push(_.dF(this.data.subText));var X,Q;if((X=this.data)==null?0:(Q=X.actionButton)==null?0:Q.buttonRenderer){var q,e;A.push(((q=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(e=q.accessibilityData)==null?void 0:e.label)||_.dF(this.data.actionButton.buttonRenderer.text))}return A.filter(function(G){return G}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var A,t;return(t=(A=this.toast)==null?void 0:A.opened)!=null?t:!1}}});
Sw.prototype.toastOpenedChangedForBinding=Sw.prototype.toastOpenedChangedForBinding;Sw.prototype.toastOpenedChanged=Sw.prototype.toastOpenedChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],Sw.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Sw.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Sw.prototype,"duration",void 0);
_.V([_.n(),_.H("design:type",Number)],Sw.prototype,"toastType",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Sw.prototype,"useCloseButton",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Sw.prototype,"closeToastOnActionButtonClick",void 0);_.V([_.n({value:function(){return _.e5("SBOX_INAPPROPRIATE_CANCEL")}}),
_.H("design:type",String)],Sw.prototype,"closeButtonAriaLabel",void 0);_.V([_.n(),_.H("design:type",Boolean)],Sw.prototype,"toastOpened",void 0);_.V([_.n(),_.H("design:type",Boolean)],Sw.prototype,"hasOpened",void 0);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sw.prototype,"command",null);_.V([_.y("labelText","command","duration"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sw.prototype,"ephemeralAction",null);
_.V([_.y("ephemeralAction"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Sw.prototype,"hasEphemeralAction",null);_.V([_.lo("#toast"),_.H("design:type",Object)],Sw.prototype,"toast",void 0);_.V([_.n({value:function(){return{style:"call-to-action-inverse"}}}),
_.H("design:type",Object)],Sw.prototype,"buttonOverrides",void 0);_.V([_.n({value:{style:"mono-inverse"}}),_.H("design:type",Object)],Sw.prototype,"closeButtonOverrides",void 0);_.V([_.n({value:function(){return _.Px().resolve(_.z7(_.B3))}}),
_.H("design:type",Object)],Sw.prototype,"toastManager",void 0);_.V([_.y("data.responseText","data.subText","data.actionButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sw.prototype,"labelText",null);_.V([_.ev("toastOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sw.prototype,"toastOpenedChanged",null);
_.V([_.ev("toastOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sw.prototype,"toastOpenedChangedForBinding",null);_.V([_.WU({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Sw);
_.Y(Sw,"yt-notification-action-renderer",function(){if(Njw===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;lIQ===void 0&&(lIQ=document.createElement("template"));var X=lIQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Njw=A}A=Njw;return A},{mode:2});var $r=function(){var A=_.F.apply(this,arguments)||this;A.duration=4E3;A.downloadingCount=0;A.downloadedCount=0;A.downloadingOnlySmartDownloads=!1;A.sessionTotalDownloads=0;A.sessionDownloaded=0;A.previousSessionsDownloaded=0;A.totalDownloadPercentage=0;A.currentDownloadProgress=0;A.currentDownloadPercentage=0;A.isLeaderTab=!0;A.isFullScreen=!1;A.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};A.boundBeforeUnload=function(t){A.isLeaderTab&&A.downloadingCount>0&&(t.preventDefault(),
t.returnValue=!0)};
return A};
_.R($r,_.F);_.J=$r.prototype;
_.J.open=function(){this.updateDownloadState();if(this.data){var A=this.sessionDownloaded+1,t=this.sessionTotalDownloads>1?_.e5("VIDEOS_DOWNLOADING_RATIO",{downloaded:A.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+A+"/"+this.sessionTotalDownloads):_.e5("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(t=this.sessionTotalDownloads>1?_.e5("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:A.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
A+"/"+this.sessionTotalDownloads):_.e5("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));A=this.isLeaderTab?_.e5("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.dF(this.data.responseText)!==t||_.dF(this.data.subText)!==A)this.set("data.responseText",_.oC(t)),this.set("data.subText",_.oC(A)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.J.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.J.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.J.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.J.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var A=this.downloadedCount-this.previousSessionsDownloaded;A<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-A);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.J.handleFullscreenChange=function(A){(this.isFullScreen=A)||this.updatePopup()};
$r.prototype.updateCurrentDownloadProgress=$r.prototype.updateCurrentDownloadProgress;$r.prototype.updatePopup=$r.prototype.updatePopup;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],$r.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],$r.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],$r.prototype,"actionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],$r.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],$r.prototype,"duration",void 0);_.V([_.n({selector:function(A){return _.jFx(A.entities).length}}),
_.H("design:type",Object)],$r.prototype,"downloadingCount",void 0);_.V([_.n({selector:dxd}),_.H("design:type",Object)],$r.prototype,"downloadedCount",void 0);_.V([_.n({selector:function(A){var t=_.jFx(A.entities);return oAw(A.entities,t)}}),
_.H("design:type",Object)],$r.prototype,"downloadingOnlySmartDownloads",void 0);_.V([_.n(),_.H("design:type",Object)],$r.prototype,"sessionTotalDownloads",void 0);_.V([_.n(),_.H("design:type",Object)],$r.prototype,"sessionDownloaded",void 0);_.V([_.n(),_.H("design:type",Object)],$r.prototype,"previousSessionsDownloaded",void 0);_.V([_.n(),_.H("design:type",Object)],$r.prototype,"totalDownloadPercentage",void 0);
_.V([_.n({selector:function(A){var t;A=(t=_.jFx(A.entities))!=null?t:[];return A.length>0?_.Wdb(A.slice(-1)):0}}),
_.H("design:type",Object)],$r.prototype,"currentDownloadProgress",void 0);_.V([_.n(),_.H("design:type",Object)],$r.prototype,"currentDownloadPercentage",void 0);_.V([_.n({selector:_.dXx}),_.H("design:type",Object)],$r.prototype,"isLeaderTab",void 0);_.V([_.lo("yt-notification-action-renderer"),_.H("design:type",Object)],$r.prototype,"notificationActionRenderer",void 0);
_.V([_.PU("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$r.prototype,"updatePopup",null);_.V([_.PU("currentDownloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$r.prototype,"updateCurrentDownloadProgress",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],$r);
_.Y($r,"ytd-video-download-toast-renderer",function(){if(Gjc!==void 0)return Gjc;var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Gjc=A},{mode:1});var uuQ;var zdj;var H8=function(){return _.F.apply(this,arguments)||this};
_.R(H8,_.F);H8.prototype.computeIsRedLogo=function(A,t){!A&&t&&(A=t);return A==="YOUTUBE_RED_LOGO"||A==="YOUTUBE_PREMIUM_LOGO"};
H8.prototype.computeLogoName=function(A){A=this.componentBehavior.computeIcon_(A);return A===""?"yt-logos-ext:yt-logo-updated":A};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],H8.prototype,"componentBehavior",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.H("design:type",Boolean)],H8.prototype,"isRedLogo",void 0);_.V([_.n({computed:"computeLogoName(data)"}),_.H("design:type",String)],H8.prototype,"logoName",void 0);_.V([_.n({value:{}}),_.H("design:type",Object)],H8.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],H8.prototype,"logoType",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-logo"})],H8);
_.Y(H8,"ytd-logo",function(){if(zdj!==void 0)return zdj;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return zdj=A},{mode:_.sQ("kevlar_poly_si_batch_j074")?1:2});var at=function(){var A=_.F.apply(this,arguments)||this;A.animationRef={};return A};
_.R(at,_.F);_.J=at.prototype;_.J.attached=function(){document.addEventListener("yt-navigate-finish",_.JY(this,this.logYoodle))};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.JY(this,this.logYoodle))};
_.J.logYoodle=function(){var A,t;if((A=this.data)==null?0:(t=A.loggingDirectives)==null?0:t.trackingParams)this.ytRendererBehavior.markDirty(),_.er().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.J.computeHideImg=function(A,t){return!!A||!!t};
_.J.computeHideYtdLogo=function(A,t){return!A||!!t};
_.J.computeHideLottie=function(A){return!A};
_.J.computeIsRedLogo=function(A){return A==="YOUTUBE_RED_LOGO"||A==="YOUTUBE_PREMIUM_LOGO"};
_.J.renderLogoEntity=function(){var A=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),t=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),f=this.getLogoTitleText(this.data),X=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==A&&(this.url=A);this.animatedUrl!==t&&(this.animatedUrl=t);this.logoTitleText!==f&&(this.logoTitleText=f);this.lottieUrl!==X&&(this.lottieUrl=X,this.lottiePlayerProps=this.computeLottiePlayerProps(X))};
_.J.getSanitizedThumbnail=function(A){return A&&A.thumbnails?_.d7u(A.thumbnails,122)||"":""};
_.J.getThumbnailUrl=function(A,t){if(!t)return"";var f,X;A=A?(f=t.darkThemeLogo)==null?void 0:f.thumbnail:(X=t.lightThemeLogo)==null?void 0:X.thumbnail;return this.getSanitizedThumbnail(A)};
_.J.getAnimatedThumbnailUrl=function(A,t){return t?this.getSanitizedThumbnail(A?t.darkThemeAnimatedLogo:t.lightThemeAnimatedLogo):""};
_.J.getLogoTitleText=function(A){if(A)return _.dF(A.tooltipText)};
_.J.computeLogoIcon=function(A,t){if(t){var f,X;return A?(f=t.darkThemeLogo)==null?void 0:f.icon:(X=t.lightThemeLogo)==null?void 0:X.icon}};
_.J.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.J.getLottieUrl=function(A,t){var f,X,Q,q;return A?t==null?void 0:(f=t.darkThemeLogo)==null?void 0:(X=f.lottieAnimation)==null?void 0:X.url:t==null?void 0:(Q=t.lightThemeLogo)==null?void 0:(q=Q.lottieAnimation)==null?void 0:q.url};
_.J.computeLottiePlayerProps=function(A){if(A){var t;if((t=this.animationRef)==null?0:t.lottieEl){var f;(f=this.animationRef)==null||f.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:A,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.J.onLottieError=function(){this.data&&this.lottieUrl&&_.s9(this.hostElement,"yoodle-error")};
_.J.onImgError=function(){this.data&&!this.lottieUrl&&_.s9(this.hostElement,"yoodle-error")};
at.prototype.playAnimation=at.prototype.playAnimation;at.prototype.renderLogoEntity=at.prototype.renderLogoEntity;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],at.prototype,"data",void 0);_.V([_.n({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.H("design:type",Boolean)],at.prototype,"hideImg",void 0);
_.V([_.n({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.H("design:type",Boolean)],at.prototype,"hideYtdLogo",void 0);_.V([_.n({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.H("design:type",Boolean)],at.prototype,"hideLottie",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.H("design:type",Boolean)],at.prototype,"isRedLogo",void 0);
_.V([_.n(),_.H("design:type",Boolean)],at.prototype,"useDarkThemeYoodle",void 0);_.V([_.n(),_.H("design:type",String)],at.prototype,"url",void 0);_.V([_.n(),_.H("design:type",String)],at.prototype,"animatedUrl",void 0);_.V([_.n(),_.H("design:type",String)],at.prototype,"logoTitleText",void 0);_.V([_.n({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.H("design:type",Object)],at.prototype,"logoIcon",void 0);_.V([_.n(),_.H("design:type",Object)],at.prototype,"logoType",void 0);
_.V([_.n(),_.H("design:type",String)],at.prototype,"lottieUrl",void 0);_.V([_.n(),_.H("design:type",Object)],at.prototype,"lottiePlayerProps",void 0);_.V([_.n(),_.H("design:type",Object)],at.prototype,"animationRef",void 0);_.V([_.ev("data"),_.ev("useDarkThemeYoodle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],at.prototype,"renderLogoEntity",null);
_.V([_.UQ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],at.prototype,"playAnimation",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],at);
_.Y(at,"ytd-yoodle-renderer",function(){if(uuQ!==void 0)return uuQ;var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return uuQ=A},{mode:_.sQ("kevlar_poly_si_batch_j074")?1:2});var PWc;var Tjl;var iEl=_.Iv.currentPageTypeSelector,OEd=_.Iv.currentPageSubTypeSelector,K5=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return A};
_.R(K5,_.F);_.J=K5.prototype;_.J.onYoodleError=function(){_.M("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.J.computeLogoName=function(A){A=this.componentBehavior.computeIcon_(A);return A===""?"yt-logos-ext:yt-logo-updated":A};
_.J.computeTitle=function(A,t,f){return f&&(t==null?0:t.tooltipText)?_.dF(t.tooltipText):_.dF(A)};
_.J.computeAriaLabel=function(A,t,f){return f&&(t==null?0:t.tooltipText)?_.dF(A):""};
_.J.computeShowYoodle=function(A,t,f){return!A||!t&&!!f&&!_.VG.isEmpty(f)};
_.J.onNavigateHomeAction=function(){if(_.M("kevlar_miniplayer_navigate_home_from_app_killswitch")){var A;(A=_.sF(this.hostElement).querySelector(".yt-simple-endpoint"))==null||A.click()}};
_.J.computeLogoHref=function(A,t,f){var X;(f==null?0:f.onTapCommand)?X=this.componentBehavior.computeHref_(f.onTapCommand):A&&(X=this.componentBehavior.computeHref_(A));return X?X:t};
_.J.computeCommand=function(A,t){return(t==null?void 0:t.onTapCommand)||A};
_.J.getEndpointForm=function(){if(_.M("kevlar_topbar_disable_cache_only_home")){var A=_.Px().resolve(_.Xk),t=iEl(A.getState())||"";A=OEd(A.getState())||"";return{disableCache:t==="ytd-browse"&&A==="home"}}return{disableCache:!0}};
K5.prototype.onYoodleError=K5.prototype.onYoodleError;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],K5.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],K5.prototype,"componentBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],K5.prototype,"ytdReduxBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],K5.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],K5.prototype,"countryCode",void 0);_.V([_.n({selectorArgs:["data.overrideEntityKey"],selector:function(A,t){return _.q_(A.entities,"logoEntity",t)}}),
_.H("design:type",Object)],K5.prototype,"logoEntity",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.H("design:type",Boolean)],K5.prototype,"showYoodle",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],K5.prototype,"yoodleError",void 0);_.V([_.n({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.H("design:type",String)],K5.prototype,"titleText",void 0);
_.V([_.n({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.H("design:type",String)],K5.prototype,"ariaLabelText",void 0);_.V([_.n({value:"/"}),_.H("design:type",String)],K5.prototype,"defaultEndpointUrl",void 0);_.V([_.n({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.H("design:type",String)],K5.prototype,"endpointUrl",void 0);
_.V([_.n({computed:"computeCommand(data.endpoint, logoEntity)"}),_.H("design:type",String)],K5.prototype,"command",void 0);_.V([_.n(),_.H("design:type",Object)],K5.prototype,"logoType",void 0);_.V([_.n({}),_.H("design:type",Boolean)],K5.prototype,"useDarkThemeYoodle",void 0);_.V([_.UQ("yoodle-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K5.prototype,"onYoodleError",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],K5);
_.Y(K5,"ytd-topbar-logo-renderer",function(){if(Tjl!==void 0)return Tjl;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return Tjl=A},{mode:_.sQ("kevlar_poly_si_batch_j027")?1:2});var cIh=0;var Bjj=_.HB.SEARCH_APPEND_LABEL,MZc=_.HB.SUGGESTION_NEW_VIDEOS_TEXT,CW_=_.HB.SUGGESTION_THUMBNAIL_LABEL,hdc=_.HB.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,RdQ=_.I(function(A){function t(Xx){var cA,$m;return _.l(function(z_){if(z_.nextAddress==1)return cA=new Request(Xx),_.ht(z_,2),z_.yield(fetch(cA,{credentials:"include"}),4);if(z_.nextAddress!=2)return eT(!0),_.qq(z_,0);$m=_.vC(z_);_.K4($m);_.LO(z_)})}
var f=A.isHighlighted;var X=A.suggestion;var Q=A.onClickCallback;var q=A.onHoverUpdateCallback;var e=A.labels;var G=A.queryBuilderFunction;var N=A.onRemoveCallback;var z=A.suggestionIndex;var T=A.generateUniqueId;var O=A.highlightedId;var c=A.useScrollMargin;var B=A.isKeyboardMode;var h=null,W=null,L=null,E=_.GU("div"),D=_.GU("span");A=_.U(_.hZ(!1,void 0,"LafNkf"));var S=A.next().value,Z=A.next().value,d=_.ud("a",function(Xx){Xx&&_.Ma(237477,Xx,W,function(cA){W=cA})}),K=_.ud("button",function(Xx){Xx&&
_.Ma(237477,Xx,W,function(cA){W=cA})}),k=_.ud("div",function(Xx){Xx&&_.Ma(281939,Xx,L,function(cA){L=cA})}),Gz=_.f1(function(Xx){if((Xx==null?void 0:Xx.button)===2)return Xx.preventDefault(),!1;
var cA=_.Ws();cA&&h&&_.d0(cA,h,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var $m;Q(Xx,X().text,X().index,X().entityMid,Xx==null?void 0:($m=Xx.detail)==null?void 0:$m.wasSelectedByKeyboard);return!1}),Tz=function(){return X().type===35},y5=function(){return _.M("desktop_enable_single_suggestion_highlight")},cp=function(){return _.cx("desktop_suggestions_panel_row_height")||0},iu=function(){var Xx;
return _.M("desktop_enable_new_video_metadata")&&((Xx=X())==null?void 0:Xx.hasNewVideo)===!0},Fb=function(){return _.M("desktop_enable_visual_suggest")},xq=function(){return _.M("desktop_enable_entity_suggest")&&Kc8(X())},Yq=function(){return X().entitySubtitle},zk=function(){return y5()?(f==null?void 0:f())||wE()&&!(B==null?0:B()):(f==null?void 0:f())||wE()},PT=function(){var Xx=_.ah("SBOX_SETTINGS");
return Tz()&&!(Xx==null?0:Xx.HIDE_REMOVE_LINK)},rs=function(){return g_8(X(),{useEntityName:xq()})},OT,bK=!((OT=_.Px().resolve(_.z7(_.FH)))==null||!OT()),ET=function(){return Tz()?_.M("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},m3=function(){return e==null?void 0:e().SUGGESTION_DISMISS_LABEL},O2=function(){return e==null?void 0:e().SUGGESTION_DISMISSED_LABEL};
A=_.U(_.hZ(!1,void 0,"JyfUlf"));OT=A.next().value;var eT=A.next().value;A=_.U(_.hZ(!1,void 0,"QKfAGe"));var fS=A.next().value,hf=A.next().value,wE=fS,Rp=_.f1(function(){G(D.value.innerText);return!1}),rE=_.f1(function(Xx){Xx.preventDefault();
return!1}),bL=_.f1(function(Xx){var cA=X().text,$m=_.ah("SBOX_SETTINGS"),z_="https://"+($m.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
z_+="&delq="+encodeURIComponent(cA);(cA=$m==null?void 0:$m.PSUGGEST_TOKEN)&&(z_+="&tok="+cA);($m=$m==null?void 0:$m.SESSION_INDEX)&&(z_+="&authuser="+$m);t(z_);Xx.preventDefault();(Xx=_.Ws())&&W&&_.d0(Xx,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");N(z==null?void 0:z());return!1}),$8=_.f1(function(){if(y5()&&(B==null?0:B()))return!1;
hf(!0);q(!0);return!1}),Tk=_.f1(function(){hf(!1);
q(!1);return!1}),iK=_.f1(function(){Z(!0);
return!1}),Qh=_.f1(function(){Z(!1);
return!1}),Kg=_.f1(function(Xx){Xx.preventDefault();
if(X().entityThumbnailAttributionUrl){L&&_.VA(_.er(),L);var cA=X().entityThumbnailAttributionUrl;Xx=X().entityName;var $m={dismissDialogEndpoint:{}};cA={commandExecutorCommand:{commands:[$m,{urlEndpoint:{url:cA,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:cA}}}]}};$m={buttonViewModel:{title:_.e5("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:$m}}};cA={buttonViewModel:{title:_.e5("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:cA}}};Xx={dialogHeaderViewModel:{headline:{content:Xx!=null?Xx:_.e5("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var z_={basicContentViewModel:{paragraphs:[{text:{content:_.e5("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};Xx={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Xx,footer:{panelFooterViewModel:{primaryButton:cA,
secondaryButton:$m,shouldHideDivider:!0}},content:z_}}}}};_.Px().resolve(_.i2).resolveCommand(Xx)}return!1});
A=_.U(_.hZ("",void 0,"MvIBn"));var fw=A.next().value,TH=A.next().value;_.Zk(function(){PT()&&TH(T==null?void 0:T(z==null?void 0:z()));E.value&&_.Ma(12453,E.value,h,function(Xx){h=Xx})});
return _.u(_.P,{cond:OT,then:function(){var Xx={};return _.u("div",{class:_.Ao("ytSuggestionComponentRemovedText",(Xx.ytSuggestionComponentLargerRemovedText=function(){return Fb()},Xx)),
style:function(){return cp()>0?"height: "+cp()+"px;":""},
role:"button"},O2)},
else:function(){var Xx={},cA={};return _.u("div",{class:_.Ao("ytSuggestionComponentSuggestion",(Xx.ytSuggestionComponentSuggestionHover=function(){return!y5()},Xx.ytSuggestionComponentHighlighted=zk,Xx.ytSuggestionComponentPersonalizedSuggestion=Tz,Xx.ytSuggestionComponentMweb=!1,Xx.ytSuggestionComponentLargerSuggestion=function(){return iu()||Fb()},Xx.ytSuggestionComponentThumbnailSuggestion=function(){return Fb()},Xx.ytSuggestionComponentRoundedSuggestion=function(){return _.M("desktop_enable_scrollable_suggestions_panel")&&
_.M("desktop_enable_suggestions_panel_padding")},Xx.ytSuggestionComponentThumbnailPadding=function(){return Fb()&&!Tz()},Xx)),
style:function(){return cp()>0?"height: "+cp()+"px;":""},
role:"presentation","on:mousedown":Gz,"on:mouseover":$8,"on:mouseout":Tk,el:E},_.u("div",{class:_.Ao("ytSuggestionComponentText",(cA.ytSuggestionComponentScrollMargin=c,cA)),"aria-label":function(){return iu()?X().text+" "+MZc:X().text},
id:function(){return T==null?void 0:T(z==null?void 0:z())},
"on:mousedown":Gz,role:"option"},_.u(_.P,{cond:function(){return X().type!==33},
then:function(){return _.u(_.el,{icon:ET,className:"ytSuggestionComponentIcon"})}}),_.u("div",{class:"ytSuggestionComponentLeftContainer"},_.u("span",{el:D,
role:"button",tabindex:0},_.u(_.xk,{each:rs},function($m){return $m.bold?_.u("span",{class:"ytSuggestionComponentBold"},$m.text):_.u("span",null,$m.text)})),_.u(_.P,{cond:function(){return xq()&&!!X().entitySubtitle||iu()},
then:function(){return _.u("div",{class:"ytSuggestionComponentMetadataContainer"},_.u(_.P,{cond:function(){return xq()&&!!X().entitySubtitle},
then:function(){return _.u("div",{class:"ytSuggestionComponentEntitySubtitle"},Yq)}}),_.u(_.P,{cond:function(){return iu()},
then:function(){return _.u("div",{class:"ytSuggestionComponentNewVideoContainer"},_.u("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.u("div",{class:"ytSuggestionComponentNewVideoText"},MZc))}}))}}))),_.u("div",{class:"ytSuggestionComponentRightContainer"},_.u(_.P,{cond:function(){return Fb()&&X().visualSuggestUrl!==void 0},
then:function(){var $m={};return _.u("div",{class:"ytSuggestionComponentThumbnailContainer"},_.u("img",{"aria-label":CW_,class:_.Ao("ytSuggestionComponentVisualSuggestThumbnail",($m.ytSuggestionComponentCircularFrame=function(){return xq()&&X().subtypes.includes(790)},$m.ytSuggestionComponentEntitySuggestThumbnail=function(){return xq()},$m)),
src:function(){return X().visualSuggestUrl}}),_.u(_.P,{cond:function(){return xq()&&!!X().entityThumbnailAttributionUrl},
then:function(){var z_={};return _.u("span",{title:hdc,role:"tooltip"},_.u("div",{el:k,"on:mouseover":iK,"on:mouseout":Qh,"on:mousedown":Kg,class:_.Ao("ytSuggestionComponentThumbnailOverlay",(z_.ytSuggestionComponentThumbnailOverlayHidden=function(){return!S()},z_))},_.u(_.el,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.u(_.j2,null,_.u(_.FE,{when:function(){return Fb()&&PT()}},function(){var $m={};
return _.u("button",{class:_.Ao("ytSuggestionComponentRemoveLinkClearButton",($m.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return fw()&&fw()===(O==null?void 0:O())},$m.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!zk()},$m)),
el:K,"on:mousedown":bL,"aria-label":m3,id:function(){return fw()}},_.u(_.el,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.u(_.FE,{when:function(){return!(Fb()&&X().visualSuggestUrl!==void 0)&&PT()}},function(){var $m={};
return _.u("a",{class:_.Ao("ytSuggestionComponentRemoveLink",($m.ytSuggestionComponentRemoveLinkDark=bK,$m.ytSuggestionComponentRemoveLinkSelected=function(){return fw()&&fw()===(O==null?void 0:O())},$m)),
el:d,"on:mousedown":bL,"aria-label":m3,tabindex:0,role:"button",id:function(){return fw()}},m3)}),_.u(_.FE,{when:function(){return!1}},function(){return _.u("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Rp,"on:mousedown":rE,role:"button","aria-label":Bjj},_.u(_.el,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"zj");var mY2=_.dS(["//www.google.com/textinputassistant/","/","_tia.js"]),bEc=_.I(function(){return _.u("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.u("button",{class:"ytdTextInputAssistantButton","on:click":_.f1(function(){rgj().inputMethodsTracker.add(3);var A,t=(A=_.ah("SBOX_SETTINGS"))==null?void 0:A.REQUEST_LANGUAGE;if(t)return _.DT(_.OP(mY2,14,t)),!1})},_.u("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Aj");var yId;_.WH3=function(){this.cache=new Map};
yId=function(A){for(var t=_.U(A.cache.entries()),f=t.next();!f.done;f=t.next()){var X=_.U(f.value);f=X.next().value;X=X.next().value;X.suggestions.some(function(Q){return Q.type===35})&&A.cache.delete(f)}};var vZ3=_.HB.SEARCH,LHd=_.HB.SEARCH_CLEAR_LABEL,pjA=new _.eh("FAKE_SUGGEST_RESPONSE"),EZh=_.I(function(A){function t(){$8||($8=setTimeout(function(){iK()},1E3))}
function f(LS,WT,ol){if(LS.trim()){bL=LS;_.H5("REFINEMENTS_TUPLE",void 0);Rp=!0;var S3;WT=fIw(O2,WT);var Mb=(S3=A.searchEndpoint)==null?void 0:S3.call(A);_.TUj(LS,WT,Mb,OT.value.value,ol);iK();OT.value.value=LS;OT.value.blur();O2.reset()}}
function X(LS){return _.l(function(WT){return WT.return(new Promise(function(ol){var S3=new XMLHttpRequest;S3.open("GET",_.Zcd(LS),!0);S3.withCredentials=!0;var Mb=_.ah("SBOX_SETTINGS");(Mb==null?0:Mb.SEND_VISITOR_DATA)&&S3.setRequestHeader("X-Goog-Visitor-Id",Mb==null?void 0:Mb.VISITOR_DATA);S3.onload=function(){ol(S3.responseText)};
S3.onerror=function(){_.K4(Error("Ml"));ol(null)};
setTimeout(function(){S3.abort()},1E4);
S3.send(null)}))})}
function Q(LS){var WT,ol,S3,Mb;return _.l(function(wG){switch(wG.nextAddress){case 1:return WT={credentials:"include",headers:_.VF3()},window.AbortController&&(ol=new AbortController,setTimeout(function(){ol.abort("ytsbox-suggest-timeout")},1E4),WT.signal=ol.signal),_.ht(wG,2),wG.yield(fetch(_.Zcd(LS),WT),4);
case 4:S3=wG.yieldResult.text();_.qq(wG,3);break;case 2:return Mb=_.vC(wG),Mb!=="ytsbox-abort-last"&&Mb!=="ytsbox-suggest-timeout"&&_.K4(Mb),wG.return(null);case 3:return wG.return(S3)}})}
function q(LS){var WT,ol,S3;return _.l(function(Mb){switch(Mb.nextAddress){case 1:if(WT=_.Px().resolve(_.z7(pjA)))return Mb.return(WT);ol=Date.now();t();return _.M("yt_searchbox_xhr")?Mb.yield(X(LS),5):Mb.yield(Q(LS),4);case 4:S3=Mb.yieldResult;Mb.jumpTo(3);break;case 5:S3=Mb.yieldResult;case 3:if(S3){$8&&(clearTimeout($8),$8=null);var wG=O2,jG=ol,$l=LS.query.length===0;jG=Date.now()-jG;$l?wG.zeroPrefixRoundTripTime=jG:(wG.JSC$21102_totalRoundTripTime+=jG,wG.maxRoundTripTime=Math.max(wG.maxRoundTripTime,
jG),$l=Math.floor(jG/100),$l>=Xjy.length?++wG.roundTripTimeHistogram[9]:++wG.roundTripTimeHistogram[Xjy[$l]])}return Mb.return(S3)}})}
function e(LS){var WT,ol,S3;return _.l(function(Mb){if(Mb.nextAddress==1)return(WT=m3.cache.get(_.YC2(LS)))?Mb.return(WT):Mb.yield(q(LS),2);ol=Mb.yieldResult;if(ol===null)return Mb.return(null);S3=new _.wb3(ol);LS.query.length===0&&S3.suggestions.length===0||m3.cache.set(_.YC2(LS),S3);return Mb.return(S3)})}
function G(LS){var WT,ol;return _.l(function(S3){if(S3.nextAddress==1){rE=!1;var Mb=bL;Mb=_.ov()==="search"?(_.ww(location.href,"search_query")||_.ww(location.href,"q"))===Mb:!1;WT=new _.jUj(LS,Mb?bL:null);return S3.yield(e(WT),2)}ol=S3.yieldResult;if(ol===null)return S3.return();WT.query.length===0&&(O2.zeroPrefixSuggestionCount=ol.suggestions.length);if(WT.id<=Tk)return O2.outOfSyncResponseCount++,S3.return();if(document.activeElement!==OT.value)return S3.return();Tk=WT.id;var wG=O2,jG=ol.rawResponse[2]||
{};wG.experimentTriggeredBeforeFinal||(wG.experimentTriggeredBeforeFinal=wG.experimentTriggeredFinal);wG.experimentTriggeredFinal=!!jG.e;O2.updateSuggestions(ol.suggestions);L(-1);Yq([]);ol.suggestions!==B()&&fF(ol.suggestions.length);h(ol.suggestions);Gz(ol.suggestions.length>0&&ol.suggestions[0].type===33);ET&&(ET.hidden=ol.suggestions.length===0,k()?(ET.style.minWidth="",wG=ET.style,jG=(Mb=B()[0])==null?void 0:Mb.ignoredPrefix,wG.marginLeft=(jG?Math.min(jG.length*6,bK.value.offsetWidth):0).toString()+
"px"):(ET.style.minWidth=bK.value.offsetWidth+"px",ET.style.marginLeft="0"),SO());_.LO(S3)})}
function N(){if(!Rp)return!1;var LS=_.ah("REFINEMENTS_TUPLE");return LS?(LS=LS[1].map(function(WT,ol){return new aDj([WT,0,[71]],OT.value.value,ol)}),B()!==LS&&fF(LS.length),Yq([]),h(LS),O2.updateSuggestions(LS),Rp=!1,ET.hidden=LS.length===0,rE=LS.length>0,!0):!1}
function z(){var LS=OT.value.value;(typeof LS==="string"||LS instanceof String)&&LS!==""?Z(!0):Z(!1)}
function T(){if(_.ov()==="search"){var LS=window.location.href;try{var WT=_.ww(LS,"search_query")||_.ww(LS,"q")||""}catch(ol){WT=""}WT&&(OT.value.value=WT,Z(!0))}}
var O=_.U(_.hZ([],void 0,"OC8EPc")),c=O.next().value;O=O.next().value;var B=c,h=O;c=_.U(_.hZ(-1,void 0,"t2tVQb"));var W=c.next().value,L=c.next().value;c=_.U(_.hZ(-1,void 0,"v0RZCe"));var E=c.next().value,D=c.next().value;c=_.U(_.hZ(!1,void 0,"rjAnI"));var S=c.next().value,Z=c.next().value;c=_.U(_.hZ(!1,void 0,"SyGLvb"));var d=c.next().value,K=c.next().value;O=_.U(_.hZ(!1,void 0,"tL09Cb"));c=O.next().value;O=O.next().value;var k=c,Gz=O;O=_.U(_.hZ(!1,void 0,"FlH7mc"));c=O.next().value;var Tz=O.next().value;
O=_.U(_.hZ(!1,void 0,"ea3fwe"));var y5=O.next().value,cp=O.next().value;O=_.U(_.hZ(1,void 0,"vSK1xe"));var iu=O.next().value,Fb=O.next().value;O=_.U(_.hZ([],void 0,"ijlw4b"));var xq=O.next().value,Yq=O.next().value;O=_.U(_.hZ(!1,void 0,"HcRey"));var zk=O.next().value,PT=O.next().value;O=_.M("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var rs=_.GU("yt-searchbox"),OT=_.GU("input"),bK=_.GU("div"),ET,m3=
new _.WH3,O2=rgj(),eT=_.Px().resolve(_.z7(_.FH)),fS=function(){var LS;return((LS=A.forceDarkMode)==null?void 0:LS.call(A))||!(eT==null||!eT())},hf=function(){return _.M("desktop_enable_scrollable_suggestions_panel")},wE="i"+cIh++,Rp=!1,rE=!1,bL="",$8=null,Tk=-1,iK=function(){Yq([]);
h([]);Gz(!1);ET&&(ET.hidden=!0);$8&&(clearTimeout($8),$8=null);L(-1)},Qh=function(LS,WT){LS.preventDefault();
PT(!0);ET&&(ET.hidden=!1);var ol=W();LS=B();var S3=xq();WT=i3A(WT);ol+=WT;for(ol>=LS.length?ol=-1:ol<-1&&(ol=LS.length-1);ol!==-1&&(S3.includes(ol)||ol>=LS.length||ol<0);)ol+=WT,ol>=LS.length&&(ol=-1);L(ol);W()>=0&&(OT.value.value=B()[W()].text,D(0),z(),LS=W(),S3=E(),(S3=document.getElementById(Gv[LS][S3]))&&hf()&&(LS===B().length-1?ET.scrollTop=ET.scrollHeight:S3.scrollIntoView({block:"nearest",inline:"start"})))},Kg=_.f1(function(LS){if(!(LS.relatedTarget instanceof Element&&LS.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){K(!0);
var WT;(WT=A.focusCallback)==null||WT.call(A,!0);N()||(rE?ET.hidden=!1:(_.s9(rs.value,"yt-autonav-pause-focus",{}),G(LS.target.value)))}}),fw=_.f1(function(LS){if(!(LS.relatedTarget instanceof Element&&LS.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){K(!1);
var WT;(WT=A.focusCallback)==null||WT.call(A,!1);ET.scrollTop=0;ET.hidden=!0;_.s9(rs.value,"yt-autonav-pause-blur",{})}}),TH=function(LS){LS=i3A(LS);
var WT;((WT=Gv[W()])==null?0:WT[E()+LS])&&D(E()+LS)},Xx=_.f1(function(LS){var WT=LS.target;
switch(LS.keyCode){case 13:LS.preventDefault();var ol;if((ol=Gv[W()])==null?0:ol[E()]){var S3;(S3=document.getElementById(Gv[W()][E()]))==null||S3.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}LS=LS.shiftKey?4:3;ol=O2;S3=W();ol.selectedSuggestionIndex=S3;f(WT.value,LS);break;case 27:ET&&(ET.hidden=!0);break;case 40:Qh(LS,40);break;case 38:Qh(LS,38);break;case 39:TH(39);break;case 37:TH(37);break;case 229:O2.inputMethodsTracker.add(4);break;default:O2.inputMethodsTracker.add(1),
AI3(O2)}return!1}),cA=_.f1(function(LS){G(LS.target.value);
z();hf()&&ET&&(ET.scrollTop=0);return!1}),$m=_.f1(function(){O2.inputMethodsTracker.add(2);
AI3(O2);return!1});
_.Zk(function(){if(ET){O2.reset();if(window.ResizeObserver){var LS=new ResizeObserver(function(){k()||(ET.style.minWidth=bK.value.offsetWidth+"px")});
LS.observe(bK.value);(new ResizeObserver(function(){SO()})).observe(ET);
_.dD(function(){LS.disconnect()})}T();
window.addEventListener("yt-navigate-finish",T);window.addEventListener("yt-focus-searchbox",function(){OT.value.focus()});
var WT;Tz((WT=_.ah("SBOX_SETTINGS"))==null?void 0:WT.HAS_ON_SCREEN_KEYBOARD)}else _.HQ(new _.xj("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var z_=_.f1(function(LS){LS.preventDefault();f(OT.value.value,12);return!1}),Mw=_.f1(function(LS){LS.preventDefault();
var WT,ol;(WT=OT)==null||(ol=WT.value)==null||ol.focus();var S3,Mb;((S3=OT)==null?void 0:(Mb=S3.value)==null?void 0:Mb.value)!==""&&(OT.value.value="",OT.value.dispatchEvent(new Event("input")));return!1}),HT=_.f1(function(){var LS=k62(OT.value.value,B().filter(function(WT){return WT.type!==35}).map(function(WT){return{label:WT.text}}));
_.kJ(rs.value,"yt-open-popup-action",[{openPopupAction:LS},document.body]);return!1}),by=_.f1(function(){OT.value.focus();
return!1}),qd=function(LS,WT,ol,S3,Mb){O2.selectedSuggestionIndex=ol;
f(WT,Mb?3:1,S3)},gG=function(LS){OT.value.value=LS;
OT.value.dispatchEvent(new Event("input"));O2.inputMethodsTracker.add(5);AI3(O2,!0)},Gv=[[]],yG=function(LS){var WT="searchbox-suggestion"+_.ZW(_.GN);
Gv[LS].push(WT);return WT},fF=function(LS){if(B()){Gv=[[]];
for(var WT=0;WT<LS;WT++)Gv.push([])}},SO=function(){if(hf()){var LS=ET,WT=LS.scrollTop;
LS=LS.scrollHeight-LS.clientHeight;cp(WT>=LS);WT=Math.abs(LS-WT);WT<=40?Fb(1-(40-WT)/40):Fb(1)}},bs=function(){return"opacity: "+iu()*100+"%"},vp=_.f1(function(){SO();
return!1}),V5=_.f1(function(){PT(!1);
return!1}),a0,CS={},Rl={},If={},pw={};
return _.u("yt-searchbox",{class:_.Ao("ytSearchboxComponentHost",(CS.ytSearchboxComponentMweb=!1,CS.ytSearchboxComponentDesktop=!0,CS["yt-searchbox-filled-query"]=function(){return S()},CS["ytd-masthead"]=function(){return!d()},CS.ytSearchboxComponentHostDark=fS,CS)),
role:"search",el:rs,"client-ve-type":10349},_.u("div",{el:bK,"on:click":by,class:_.Ao("ytSearchboxComponentInputBox",(Rl.ytSearchboxComponentInputBoxDark=fS,Rl.ytSearchboxComponentInputBoxHasFocus=d,Rl))},_.u("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":z_},_.u(_.P,{cond:d,then:function(){return _.u("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.u(_.el,{icon:"SEARCH"}))}}),_.u("input",{el:OT,
class:_.Ao("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":wE,"aria-expanded":!((a0=ET)==null?0:a0.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":fw,"on:focus":Kg,"on:input":cA,"on:keydown":Xx,"on:paste":$m,placeholder:A.placeholderText,"aria-activedescendant":function(){var LS;return(LS=Gv[W()])==null?void 0:LS[E()]},
"aria-autocomplete":"list",role:"combobox"})),_.u(_.P,{cond:c,then:function(){return _.u("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.u(bEc,null))}}),_.u(_.P,{cond:S,
then:function(){return _.u("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.u("button",{class:"ytSearchboxComponentClearButton","on:click":Mw,"aria-label":A.clearButtonAriaLabel||LHd},_.u(_.el,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.u(_.WS,{model:{}})))}})),_.u("button",{class:_.Ao("ytSearchboxComponentSearchButton",(If.ytSearchboxComponentSearchButtonDark=fS,If)),
"on:click":z_,"aria-label":vZ3,title:A.placeholderText},_.u(_.el,{icon:"SEARCH"})),_.u(_.P,{cond:function(){if(Y1j()&&_.M("mweb_voice_search")&&A.voiceSearchButton)return A.voiceSearchButton()},
then:function(LS){var WT={};return _.u("div",{class:_.Ao("ytSearchboxComponentVoiceSearchWrapper",(WT.ytSearchboxComponentHideVoiceSearchButton=function(){return S()},WT))},_.u(_.P1,{data:LS},{buttonRenderer:function(ol){return _.u(_.MM,{data:ol.data,
onButtonClickCallback:function(){}})}}))}}),_.u("div",{el:_.ZY(function(LS){return void(ET=LS)}),
id:wE,class:_.Ao("ytSearchboxComponentSuggestionsContainer",(pw.ytSearchboxComponentSuggestionsContainerDark=fS,pw["yt-searchbox-suggestions-container"]=!1,pw.ytSearchboxComponentSuggestionsContainerScrollable=hf(),pw.ytSearchboxComponentSuggestionsContainerAnimated=O,pw)),"on:scroll":vp,"on:mousemove":V5,role:"listbox",hidden:!0},_.u(_.xk,{each:B},function(LS,WT){return _.u(RdQ,{suggestion:LS,isHighlighted:function(){return WT()===W()},
onClickCallback:qd,onHoverUpdateCallback:function(ol){if(_.M("desktop_enable_single_suggestion_highlight")){var S3=WT();ol&&(D(0),L(S3))}},
onRemoveCallback:function(ol){yId(m3);ol===void 0||ol<0||xq().includes(ol)||Yq([].concat(_.YV(xq()),[ol]))},
labels:A.labels,queryBuilderFunction:gG,suggestionIndex:WT,generateUniqueId:yG,highlightedId:function(){var ol;return(ol=Gv[W()])==null?void 0:ol[E()]},
useScrollMargin:hf(),isKeyboardMode:zk})}),_.u(_.P,{cond:function(){return!k()&&B().find(function(LS){return LS.type!==35})&&_.M("searchbox_reporting")},
then:function(){return _.u("button",{class:"ytSearchboxComponentReportButton","on:mousedown":HT},_.e5("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.u(_.P,{cond:function(){return!y5()&&hf()},
then:function(){return _.u("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.u("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:bs}))}})))},"Cj");
EZh.idomCompat={callbacks:{focusCallback:!0}};_.Hn(EZh,"yt-searchbox",{props:{searchEndpoint:_.PS,placeholderText:_.PS,labels:_.PS,voiceSearchButton:_.PS,focusCallback:_.dt,clearButtonAriaLabel:_.PS,forceDarkMode:_.PS}});var gY=function(){var A=_.F.apply(this,arguments)||this;A.menuButtonTargetId="topbar-guide-menu";A.narrow=!1;A.menuStrings={BACK_ALT_LABEL:_.e5("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.e5("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.e5("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.e5("SBOX_PLACEHOLDER",void 0,"Search")};A.pageDarkTheme=document.documentElement.hasAttribute("dark");A.watchPageScrollTop=0;A.theater=!1;A.fullscreen=!1;A.disableFrostedGlassDuringViewTransition=
!1;A.desktopUnifiedSearchPanelMode=_.M("desktop_enable_unified_search_panel");A.aiCompanionEnabled=_.M("enable_ai_companion");A.ytSearchboxFocused=!1;A.searchboxLabels=_.ah("SBOX_LABELS");A.topbarIsAboveChipbar=!1;A.isDarkThemeForced=!1;A.areGhostCardsHidden=!1;A.guideKeyboardToggle=!1;A.voiceSearchManager=Fwj();A.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};A.setYtSearchboxFocused=function(t){A.ytSearchboxFocused=t};
A.toggleFrostedGlassDuringViewTransition=function(t){A.disableFrostedGlassDuringViewTransition=t};
return A};
_.R(gY,_.F);_.J=gY.prototype;_.J.computeSimpleText=function(A){return _.dF(A)};
_.J.onDarkChanged=function(){for(var A=_.U(this.buttons||[]),t=A.next();!t.done;t=A.next())t.value.isOverlay=!!this.dark;A=_.U(this.buttonRenderers||[]);for(t=A.next();!t.done;t=A.next())t.value.overrides=this.computeButtonOverride()};
_.J.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.J.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.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var A=_.iE(_.TT(),"aa");_.rH(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||A||(this.isDarkThemeForced=this.dark=!0);this.logoType?(A=this.hostElement.querySelector("#masthead-logo"))&&(_.M("polymer_on_demand_shady_dom")?A.setAttribute("slot","masthead-logo-old"):_.vf(A)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.JY(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.JY(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.J.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.JY(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.JY(this,this.onSetTheaterModeEnabled))};
_.J.dataChanged=function(){var A=this.data;A&&(this.voiceEnabled=A.voiceSearchButton?Fwj().isSupported():!1,_.Fwi(_.ZQ(),this.menuButtonTargetId,this.guideButton),A.onReceivedActions&&A.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.tl(this.hostElement,A.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&A&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.rH(this.hostElement,"dark",!1),_.rH(this.hostElement,"theater",!1),
(A=this.hostElement.querySelector("#masthead-logo"))&&(_.M("polymer_on_demand_shady_dom")?A.setAttribute("slot","masthead-logo-old"):_.vf(A))))};
_.J.computeCenterHidden=function(){var A;return this.data&&!((A=this.data.searchbox)==null?0:A.fusionSearchboxRenderer)};
_.J.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.rH(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.J.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.J.onWatchScroll=function(A){this.watchPageScrollTop=A.detail||0;this.updateMastheadBackgroundOpacity()};
_.J.onFullscreenChangeAction=function(A){A||(this.watchPageScrollTop=0);this.fullscreen=A;this.updateMastheadBackgroundOpacity()};
_.J.onSetTheaterModeEnabled=function(A){this.theater=A.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.J.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.J.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.J.setBackgroundOpacity=function(A){A=this.calculateBackgroundOpacity(A);this.background.style.opacity=""+A};
_.J.calculateBackgroundOpacity=function(A){var t=this.theater?.6:0,f=this.hostElement.clientHeight/2;return Math.min(Math.max(A,0),f)/f*(1-t)+t};
_.J.shouldShowCinematicMastHead=function(){var A=_.M("kevlar_watch_grid")&&!_.M("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(A||this.pageDarkTheme)};
_.J.focusGuide=function(){this.guideButton.focus()};
_.J.onGuideToggleTap=function(){_.s9(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.J.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.J.onGuideToggleHover=function(){_.s9(this.hostElement,"yt-guide-hover")};
_.J.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.J.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.J.closeOnOutsideClickCondition=function(A){for(A=_.Z2(A);A[0];){var t=A.shift();if(t instanceof Element&&t.id==="kbd")return!1}return!0};
_.J.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.J.pausePlayer=function(){var A;(A=_.K1())==null||A.pause();this.pauseMiniplayer()};
_.J.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var A;(A=_.Px().resolve(_.DS).getPlayerElement())==null||A.pause()}};
_.J.isMiniplayerActive=function(){return _.Px().resolve(_.DS).isMiniplayerActive()};
_.J.updateNarrowFromBinding=function(A){this.narrow=A.detail.value};
_.J.onYtSendFeedbackAction=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.registerWithViewTransitionManager=function(){azl(_.Px().resolve(_.w4),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.PV.Object.defineProperties(gY.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var A;return!!(this.aiCompanionEnabled&&((A=this.data)==null?0:A.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var A;return(A=this.data)==null?void 0:A.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
gY.prototype.narrowChanged=gY.prototype.narrowChanged;gY.prototype.onWatchPageChange=gY.prototype.onWatchPageChange;gY.prototype.onRendererStamperFinished=gY.prototype.onRendererStamperFinished;gY.prototype.dataChanged=gY.prototype.dataChanged;gY.prototype.onDarkChanged=gY.prototype.onDarkChanged;_.V([_.b(_.K9),_.H("design:type",Object)],gY.prototype,"ironResizableBehavior",void 0);_.V([_.b(_.tv_),_.H("design:type",Object)],gY.prototype,"ytdExpandableInputBehavior",void 0);
_.V([_.b(_.NT.YtdGuideStateAwareBehavior),_.H("design:type",Object)],gY.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],gY.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],gY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.qT),_.H("design:type",Object)],gY.prototype,"ytdReduxBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],gY.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],gY.prototype,"narrow",void 0);_.V([_.n(),_.H("design:type",Object)],gY.prototype,"logoType",void 0);_.V([_.n(),_.H("design:type",Boolean)],gY.prototype,"voiceEnabled",void 0);
_.V([_.n(),_.H("design:type",Object)],gY.prototype,"menuStrings",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],gY.prototype,"dark",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gY.prototype,"pageDarkTheme",void 0);_.V([_.n(),_.H("design:type",Object)],gY.prototype,"watchPageScrollTop",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.pS5}),_.H("design:type",Boolean)],gY.prototype,"isWatchPage",void 0);
_.V([_.n({reflectToAttribute:!0,selector:_.Eag}),_.H("design:type",Boolean)],gY.prototype,"isShortsPage",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gY.prototype,"theater",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gY.prototype,"fullscreen",void 0);_.V([_.n({reflectToAttribute:!0,selector:_.Iml}),_.H("design:type",String)],gY.prototype,"frostedGlassMode",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gY.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],gY.prototype,"aiCompanionEnabled",void 0);_.V([_.n(),_.H("design:type",Object)],gY.prototype,"ytSearchboxFocused",void 0);_.V([_.NL("#buttons > *"),_.H("design:type",Array)],gY.prototype,"buttons",void 0);_.V([_.NL("ytd-button-renderer"),_.H("design:type",Array)],gY.prototype,"buttonRenderers",void 0);
_.V([_.lo("#background"),_.H("design:type",HTMLDivElement)],gY.prototype,"background",void 0);_.V([_.lo("#guide-button"),_.H("design:type",Object)],gY.prototype,"guideButton",void 0);_.V([_.lo("#logo"),_.H("design:type",Object)],gY.prototype,"logo",void 0);_.V([_.n({computed:"computeButtonOverride(dark)"}),_.H("design:type",Object)],gY.prototype,"buttonOverrides",void 0);
_.V([_.PU("dark"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gY.prototype,"onDarkChanged",null);_.V([_.n({value:function(){return this.onVoiceTap.bind(this)}}),
_.H("design:type",Function)],gY.prototype,"boundOnTapVoiceButton",void 0);_.V([_.n(),_.H("design:type",Object)],gY.prototype,"topbarIsAboveChipbar",void 0);_.V([_.n(),_.H("design:type",String),_.H("design:paramtypes",[])],gY.prototype,"guideIcon",null);_.V([_.y("voiceEnabled"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gY.prototype,"shouldShowVoiceSearchButton",null);
_.V([_.y("data.aiCompanionButton","aiCompanionEnabled"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gY.prototype,"shouldShowAiCompanionButton",null);_.V([_.y("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],gY.prototype,"voiceSearchButton",null);_.V([_.y("aiCompanionEnabled"),_.H("design:type",String),_.H("design:paramtypes",[])],gY.prototype,"narrowQuery",null);
_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gY.prototype,"dataChanged",null);_.V([_.UQ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gY.prototype,"onRendererStamperFinished",null);_.V([_.PU("isWatchPage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gY.prototype,"onWatchPageChange",null);
_.V([_.PU("narrow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gY.prototype,"narrowChanged",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-masthead"})],gY);
_.Y(gY,"ytd-masthead",function(){if(PWc!==void 0)return PWc;var A=document.createElement("template");_.m(A,'\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="[[narrowQuery]]" 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 id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" 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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return PWc=A},{mode:_.sQ("kevlar_poly_si_batch_j036")?1:2});var nZ8;var DYd={},FH2={},IIQ={},xYQ={},jey=(xYQ.OFFLINE=(DYd["publicytnetworkstatus-online"]="BACK_ONLINE",DYd),xYQ.ONLINE=(FH2["publicytnetworkstatus-offline"]="OFFLINE",FH2),xYQ.BACK_ONLINE=(IIQ["publicytnetworkstatus-offline"]="OFFLINE",IIQ.TIMER_TRIGGER="ONLINE",IIQ),xYQ),wY=function(){var A=_.F.apply(this,arguments)||this;A.currentState="ONLINE";A.scheduledJobId=0;A.bannerString="";A.bannerVe=null;A.networkStatusManagerInstance=new _.qA;return A};
_.R(wY,_.F);_.J=wY.prototype;_.J.attached=function(){var A=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){A.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){A.stateChangeHandler("publicytnetworkstatus-offline")})};
_.J.detached=function(){var A=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){A.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){A.stateChangeHandler("publicytnetworkstatus-offline")})};
_.J.enterState=function(A){var t=this;this.scheduledJobId&&_.a6.cancelJob(this.scheduledJobId);A==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):A==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.e5("NO_INTERNET_CONNECTION",void 0,"No internet connection")):A==="BACK_ONLINE"&&(this.bannerString=_.e5("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.jY(_.a6,function(){t.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=A};
_.J.stateChangeHandler=function(A){(A=jey[this.currentState][A])&&this.enterState(A)};
_.J.logVisibility=function(A){var t=_.Ws();this.createBannerVe(A);t&&this.bannerVe&&(A?_.Vg(t,[this.bannerVe]):_.ZN(t,[this.bannerVe]))};
_.J.createBannerVe=function(A){!this.bannerVe&&A&&(this.bannerVe=_.Xl(37929),_.Yz(_.er(),this.bannerVe))};
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",String)],wY.prototype,"currentState",void 0);_.V([_.n(),_.H("design:type",Object)],wY.prototype,"scheduledJobId",void 0);_.V([_.n(),_.H("design:type",Object)],wY.prototype,"bannerString",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-network-status-banner"})],wY);
_.Y(wY,"ytd-network-status-banner",function(){if(nZ8!==void 0)return nZ8;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return nZ8=
A},{mode:1});var Ybm;var sZ=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};A.hidden=!0;A.frostedGlass=_.M("web_frosted_glass");return A};
_.R(sZ,_.F);sZ.prototype.computeHidden=function(A){return A&&A.status?!1:!0};
sZ.prototype.handleUpdatePermissionRoleCommand=function(A){if(A=_.C(A,_.Y$p))if(A=_.C(A.renderer,_.j4T))this.data=A};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],sZ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],sZ.prototype,"componentBehavior",void 0);_.V([_.n({value:!0,computed:"computeHidden(data)"}),_.H("design:type",Object)],sZ.prototype,"hidden",void 0);_.V([_.n(),_.H("design:type",Object)],sZ.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],sZ.prototype,"frostedGlass",void 0);
_.V([_.y_({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],sZ);
_.Y(sZ,"ytd-permission-role-bottom-bar-renderer",function(){if(Ybm!==void 0)return Ybm;var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);return Ybm=A},{mode:1});var VZ_;var ZEc;var O33={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var kr=function(){return _.F.apply(this,arguments)||this};
_.R(kr,_.F);_.J=kr.prototype;_.J.attached=function(){this.JSC$21220_scroller&&(this.JSC$21220_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21220_scroller.attached&&typeof this.JSC$21220_scroller.attached==="function"&&this.JSC$21220_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(f){f.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var A=_.sF(this.hostElement);A.querySelector("tp-yt-paper-radio-group").selected="";var t=A.querySelector("#reason-text");t&&(t.value="");A.querySelector("#description-text").value=""}};
_.J.canSubmit=function(A,t){_.s9(this.hostElement,"yt-invalidate-popup-tabbables");return!(A&&t)};
_.J.onCancel=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.J.onSubmit=function(){var A=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(q){return q.active}).map(function(q){return q.innerText.trim()}),t=this.hostElement.querySelector("tp-yt-paper-radio-group"),f=t.selectedItem,X=f.name;
f=f.innerText.trim();var Q=t.querySelector("#reason-text");t=void 0;Q&&(t=Q.value);(Q=this.descriptionText.value)&&(Q=Q.trim());c1l(this.data.searchQuery,A,X,f,Q,t);_.kJ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.J.sendFormSubmitToast=function(){var A=_.KZ(_.e5("SBOX_INAPPROPRIATE_TOAST"));_.kJ(this.hostElement,"yt-open-popup-action",[A,this])};
_.J.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(A){return A.active})};
_.J.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
kr.prototype.onIronSelect=kr.prototype.onIronSelect;kr.prototype.onIronChange=kr.prototype.onIronChange;kr.prototype.dataChanged=kr.prototype.dataChanged;_.V([_.n(),_.H("design:type",Object)],kr.prototype,"data",void 0);_.V([_.n({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.H("design:type",Boolean)],kr.prototype,"submitDisabled",void 0);_.V([_.n(),_.H("design:type",Boolean)],kr.prototype,"suggestionSelected",void 0);
_.V([_.n(),_.H("design:type",Boolean)],kr.prototype,"catagorySelected",void 0);_.V([_.lo("#scroller"),_.H("design:type",Object)],kr.prototype,"JSC$21220_scroller",void 0);_.V([_.lo("#description-text"),_.H("design:type",Object)],kr.prototype,"descriptionText",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kr.prototype,"dataChanged",null);
_.V([_.UQ("iron-change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kr.prototype,"onIronChange",null);_.V([_.UQ("iron-select"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kr.prototype,"onIronSelect",null);_.V([_.y_({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],kr);
_.Y(kr,"ytd-search-suggestion-report-dialog",function(){if(ZEc!==void 0)return ZEc;var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return ZEc=A},{mode:1});var rY=function(A){var t=A.openPopupAction;var f=A.target;var X=A.container;var Q=A.popupContainerConfig;var q=A.getElement;A=A.removeWhenClosed===void 0?!1:A.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=t;this.target=f;this.container=X;this.popupContainerConfig=Q;this.getElement=q;this.JSC$21226_popupConfig=this.popupContainerConfig.JSC$20350_popupConfig[this.openPopupAction.popupType];this.rendererName=(t=this.getName())?_.X1l(t,uYy(this.popupContainerConfig,
t)):"";_.M("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=A);this.createPopup()};
rY.prototype.updatePopup=function(A){this.openPopupAction=A;this.JSC$21226_popupConfig=this.popupContainerConfig.JSC$20350_popupConfig[this.openPopupAction.popupType];oZ8(this);_.M("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
rY.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var $Yh=function(A,t,f){(t=t&&A.JSC$21226_popupConfig.narrowProperties?A.JSC$21226_popupConfig.narrowProperties:A.JSC$21226_popupConfig.properties)&&f!==void 0&&(t.isAriaModal=f);dY3(A,t);A.isRtl()&&dY3(A,A.JSC$21226_popupConfig.rtlProperties);Sbc(A)};
rY.prototype.createPopup=function(){var A=this.JSC$21226_popupConfig.component;if(this.popupContent=HEh(this,this.rendererName)){if(A){this.popup=HEh(this,A);var t=this.popupContent;_.M("web_enable_wrapper_for_cow_component_in_popup")&&(t=document.createElement("div"),t.appendChild(this.popupContent));_.M("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21226_popupConfig.slotName&&t.setAttribute("slot",this.JSC$21226_popupConfig.slotName);A=this.popup;var f=this.container.tagName.toLowerCase(),
X=_.SI(t);_.AKs(_.Hi(A),_.Kp(t,f,X));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.M("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.sF(this.container).appendChild(this.popup)}};
var oZ8=function(A){var t,f,X=(t=A.openPopupAction.accessibilityData)==null?void 0:(f=t.accessibilityData)==null?void 0:f.label;X&&(A.popup.ariaLabel=X);var Q;((Q=A.popupContent.polymerController)!=null?Q:A.popupContent).data=(0,_.VG.unsafeClone)(A.openPopupAction.popup[A.getName()]);A.popupContent.duration=aIA(A);A.popupContent.positionType=A.openPopupAction.position;var q=A.openPopupAction.properties;q&&Object.keys(q).forEach(function(e){A.popupContent[e]=q[e]})},dY3=function(A,t){if(t)for(var f=
_.U(Object.keys(t)),X=f.next();!X.done;X=f.next())X=X.value,A.popup[X]=t[X]},Sbc=function(A){if(A.openPopupAction.position){var t=A.JSC$21226_popupConfig.positionalProperties&&A.JSC$21226_popupConfig.positionalProperties[A.openPopupAction.position],f=A.JSC$21226_popupConfig.rtlPositionalProperties&&A.JSC$21226_popupConfig.rtlPositionalProperties[A.openPopupAction.position];
t=A.isRtl()&&f?f:t;t.shiftedHorizontalOffset&&(f=A.popup.style.display,A.popup.style.display="block",A.popupContent&&A.popup.positionTarget&&A.popupContent.clientWidth>A.popup.positionTarget.clientWidth&&(t.horizontalOffset=A.popup.positionTarget.clientWidth/2-t.shiftedHorizontalOffset),A.popup.style.display=f);dY3(A,t)}},KH3=function(A,t,f){if(t){for(var X=_.U(Object.keys(t)),Q=X.next();!Q.done;Q=X.next())Q=Q.value,A.popup.style[Q]=t[Q];
if(f)for(t=_.U(Object.keys(f)),X=t.next();!X.done;X=t.next())X=X.value,A.popup.style[X]=f[X]}};
rY.prototype.getName=function(){return _.d9(this.openPopupAction.popup,"renderer")||_.d9(this.openPopupAction.popup,"dialog")||_.d9(this.openPopupAction.popup,"model")||void 0};
var aIA=function(A){A=A.openPopupAction.durationHintMs;return A===0?A:Math.max(4E3,A||4E3)};
rY.prototype.isRtl=function(){return _.ah("HTML_DIR")==="rtl"};
var HEh=function(A,t){A=A.getElement(t,A.target);A==null&&_.K4(new _.xj("popup getElement returned null",t));return A};var gZd={};
gZd.YtPopupContainerBehavior=[_.Ja.YtComponentBehavior,_.jD.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;this.expandToFullWidth=this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.g2(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.w2(this.hostElement)},
closePopup:function(A){var t=this.createCacheKey(void 0,A);this.popups_[t]&&this.handleClosePopupAction_(void 0,A)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.a6.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.a6.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(A){A.opened&&A.keepBelowPlayer&&this.ensurePopupBelowPlayer(A)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var A in this.popups_){var t=this.popups_[A];if(t.popup.scrollAction==="refit"){var f=t.popup.positionTarget.getBoundingClientRect(),X=t.popup;f=f.top;var Q=t;if(!Q.naturalHeight){Q.popup.hidden=!1;Q.popup.style.position="fixed";Q.popup.style.top="0px";Q.popup.style.left="0px";var q=Q.popup.getBoundingClientRect();Q.naturalHeight=q.bottom-q.top;Q.popup.refit()}X.hidden=!(f>=Q.naturalHeight+60);t.popupContent.clientHeight===0&&t.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(A){this.popupContainerConfig=A},
handleOpenPopupAction:function(A,t){var f=A.openPopupAction,X=_.Px().resolve(_.z7(_.B3))&&f.popupType==="TOAST";X&&!f.uniqueId&&(f.uniqueId=_.Ku());if(!_.M("popup_container_parent_target_killswitch")){var Q;t=(Q=this.getParentTarget(t))!=null?Q:t}var q=this.ensurePopup_(f,t);return new _.yy(function(e){q.then(function(G){if(!G)return e();this.maybeCreateNarrowMediaQuery_();var N=this.createCacheKey(G.rendererName,G.openPopupAction.uniqueId);if(f.showOncePerUniqueId){if(this.shownPopupKeys_.has(N))return e();
this.shownPopupKeys_.add(N)}N=this.popups_[N];var z=!(!N||!N.openPopupAction.beReused);z=!!f.reusePopup||z;if(G.popup.opened&&!z){X&&!G.openPopupAction.replacePopup||this.handleClosePopupAction_(G.rendererName,G.openPopupAction.uniqueId);z=f.popupType==="DIALOG"&&!_.M("popup_container_dialog_reopen_killswitch");if(!X&&!z&&N&&N.target==t&&!G.openPopupAction.replacePopup)return e();_.us(G.popup,function(){this.completeOpenPopupAction_(f,t,G);e()}.bind(this))}else G.popup.opened?G.updatePopup(f):this.completeOpenPopupAction_(f,
t,G),e()}.bind(this))}.bind(this))},
getParentTarget:function(A){if(A&&A instanceof HTMLElement)for(var t=_.U(Object.entries(this.popups_)),f=t.next();!f.done;f=t.next())if(f=_.U(f.value),f.next(),f=f.next().value,this.popupClosesOnClick(f)&&f.popup.contains(A))return f.target},
popupClosesOnClick:function(A){return A.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(A.rendererName.toUpperCase())},
completeOpenPopupAction_:function(A,t,f){f.updatePopup(A);var X=this.narrowMediaQuery_.queryMatches,Q=this.isAriaModal;A=this.expandToFullWidth;f.target=t;var q;t=((q=f.target.polymerController)!=null?q:f.target).popupPositionTarget||f.target;f.JSC$21226_popupConfig.targetContainer&&(t=f.container);f.popup.positionTarget=t;f.popupContent.positionTarget=t;Sbc(f);f.JSC$21226_popupConfig.forceFocus&&(f.popupContent.style.outline="none");f.popupContent.tabIndex=-1;f.JSC$21226_popupConfig.narrowProperties&&
(f.popup.style.position="static");f.JSC$21226_popupConfig.preventAutonav&&f.popup.setAttribute("prevent-autonav",!0);f.JSC$21226_popupConfig.forceCloseOnOutsideClick&&f.popup.setAttribute("force-close-on-outside-click",!0);$Yh(f,X,Q);q={};q.width=A?"100%":"";KH3(f,f.JSC$21226_popupConfig.styles,q);f.isRtl()&&KH3(f,f.JSC$21226_popupConfig.rtlStyles,q);if(!f.openPopupAction.shouldStopParentSignal){var e;A=(e=f.target.polymerController)!=null?e:f.target;(f.popupContent.startForwardingEvents||f.popupContainerConfig.forwardingEnabledPopups.has(f.rendererName))&&
A.parentComponent!==f.popupContent&&f.popupContent!==f.target&&f.target!==document.body&&(f.popupContent.startForwardingEvents?f.popupContent.startForwardingEvents(f.popupContainerConfig.forwardedEvents,f.target):(f.JSC$21226_eventForwarder||(f.JSC$21226_eventForwarder=new _.qB(f.popupContent)),f.JSC$21226_eventForwarder.start(f.popupContainerConfig.forwardedEvents,f.target)))}f=f.popup;f.addEventListener("iron-overlay-opened",_.JY(this,this.onPopupIronOverlayOpened_));f.addEventListener("iron-overlay-closed",
_.JY(this,this.onPopupIronOverlayClosed_));f.addEventListener("iron-overlay-canceled",_.JY(this,this.onPopupIronOverlayCanceled_));f.addEventListener("yt-refit",_.JY(this,this.refitPopup_));f.addEventListener("yt-invalidate-popup-tabbables",_.JY(this,this.handleInvalidatePopupTabbables_));f.open()},
getPopupDurationMs_:function(A){return A.durationHintMs===0?A.durationHintMs:Math.max(4E3,A.durationHintMs||4E3)},
handleClosePopupAction_:function(A,t){var f=_.M("web_popup_cache_key_killswitch")||!!t;if(A||f){var X=this.createCacheKey(A,t);A=(A=this.popups_[X])&&A.popup}else A=_.SLC(_.e4);if(A&&A.close){if(t=_.Px().resolve(_.z7(_.mJ)))A.restoreFocusOnClose=t.isKeyBoardInUse();A.close();this.removePopup_(A,X)}},
handleClosePopupCommand_:function(A){A.closePopupCommand&&A.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,A.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(A){var t={},f;for(f in this.popups_)if(t={key$jscomp$1233:t.key$jscomp$1233},t.key$jscomp$1233=f,!A||!A.some(function(q){return function(e){return e==q.key$jscomp$1233}}(t))){var X=this.popups_[t.key$jscomp$1233],Q=X.popup;
_.Px().resolve(_.z7(_.B3))&&X.openPopupAction.popupType==="TOAST"||(Q&&Q.close&&Q.close(),this.removePopup_(Q,t.key$jscomp$1233))}},
handleClosePopupsAction_:function(A){A.forEach(function(t){var f=this.popups_[t];f&&((f=f.popup)&&f.close&&f.close(),this.removePopup_(f,t))}.bind(this))},
handleGetPopupOpenedAction_:function(A,t){return(t=this.createCacheKey(A,t))&&this.popups_[t]?this.popups_[A].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var A=[],t;for(t in this.popups_){var f=this.popups_[t];f.popup.opened&&A.push(f)}return A},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(A,t){_.M("ytpopup_disable_default_html_caching")&&A&&A.removeWhenClosed&&(_.sF(this.hostElement).removeChild(A),t&&this.popups_[t]&&delete this.popups_[t])},
shouldReusePopup_:function(A){return!(!A||!A.reusePopup)||!(!A||!A.beReused)},
ensurePopup_:function(A,t){this.maybeCreateNarrowMediaQuery_();var f=_.d9(A.popup,"renderer")||_.d9(A.popup,"dialog")||_.d9(A.popup,"model");if(!f)return _.ff();f=_.X1l(f,uYy(this.popupContainerConfig,f));return _.ff(this.getAndMaybeCreatePopup_(A,f,t))},
getAndMaybeCreatePopup_:function(A,t,f){var X=this.createCacheKey(t,A.uniqueId);if(this.popups_[X])return this.popups_[X];A=new rY({openPopupAction:A,target:f,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(t)});return this.popups_[X]=A},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(A){return _.M("ytpopup_disable_default_html_caching")?A&&A.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",_.JY(this,this.openPopupQueryMatchesChanged_)),_.sF(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(A){A=A.detail.value;for(var t in this.popups_)$Yh(this.popups_[t],A)},
onPopupIronOverlayClosed_:function(A){var t=A.currentTarget,f=_.MAx(t);f=f.length>0?f[0]:t;if(f.is!=="ytd-reel-watch-while-dialog-renderer"||A.target.is!=="tp-yt-iron-dropdown"){A.detail.popup=t;A.detail.popupRenderer=f;var X,Q={context:{openingElement:((X=this.popups_[(f==null?void 0:f.is)||""])==null?void 0:X.target)||void 0}};Object.assign(Q,A.detail);var q;_.s9((q=f.hostElement)!=null?q:f,"yt-popup-closed",Q);t.removeEventListener("yt-refit",_.JY(this,this.refitPopup_));t.removeEventListener("yt-invalidate-popup-tabbables",
_.JY(this,this.handleInvalidatePopupTabbables_));t.removeEventListener("iron-overlay-canceled",_.JY(this,this.onPopupIronOverlayCanceled_));t.removeEventListener("iron-overlay-closed",_.JY(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(t)}},
onPopupIronOverlayCanceled_:function(A,t){var f=A.currentTarget,X=_.MAx(f);X=X.length>0?X[0]:f;if(X.is!=="ytd-reel-watch-while-dialog-renderer"||A.target.is!=="tp-yt-iron-dropdown"){var Q;_.s9((Q=X.hostElement)!=null?Q:X,"yt-popup-canceled",A.detail);Q=t?_.Z2(t):null;(!t||["click","tap"].includes(t.type))&&!f.hasAttribute("force-close-on-outside-click")&&f.positionTarget&&Q&&Q.includes(f.positionTarget)&&A.preventDefault();f.restoreFocusOnClose=_.YD.keyboardEventMatchesKeys(t,"esc")}},
onPopupIronOverlayOpened_:function(A){A=A.currentTarget;var t=_.MAx(A);t=t.length>0?t[0]:A;var f,X;_.s9((f=t.hostElement)!=null?f:t,"yt-popup-opened",(X=t.hostElement)!=null?X:t);A.keepBelowPlayer&&(this.ensurePopupBelowPlayer(A,!0),this.dynamicallyPositionedElements_.add(A));f=_.Px().resolve(_.z7(_.mJ));X=!!t.querySelector("#toast");f&&f.isKeyBoardInUse()&&!X&&(typeof t.focusFirstItem==="function"?t.focusFirstItem():(t=_.Z3f(A),t.length&&t[0].focus()));A.removeEventListener("iron-overlay-opened",
_.JY(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(A){A=A.currentTarget;A.refit&&A.refit()},
refitPopups_:function(){for(var A in this.popups_)this.popups_[A].refit()},
handleInvalidatePopupTabbables_:function(A){A=A.currentTarget;A.invalidateTabbables&&A.invalidateTabbables()},
createCacheKey:function(A,t){return _.M("web_popup_cache_key_killswitch")?t?A+"#"+t:A:t?"#"+t:A},
openSheet:function(A,t){var f=A==null?void 0:A.openPopupActionCommand;if(!f&&(A==null?0:A.viewModel)){if(A.sheetPosition)a:switch(A.sheetPosition){case "SHEET_POSITION_RIGHT":f="OPEN_POPUP_POSITION_RIGHT";break a;default:f="OPEN_POPUP_POSITION_UNKNOWN"}else f=void 0;f={openPopupAction:{popup:{sheetViewModel:A.viewModel},popupType:"CONTEXTUAL_SHEET",position:f}}}if(f){var X;this.expandToFullWidth=(X=A==null?void 0:A.expandToFullWidth)!=null?X:!1;this.handleOpenPopupAction(f,t)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var A=this;return _.l(function(t){return t.return(A.handleGetOpenedPopupsAction_().filter(function(f){var X;return((X=f.openPopupAction)==null?void 0:X.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(A,t,f){if(_.M("web_dialog_utils_killswitch")){var X=A==null?void 0:A.openPopupActionCommand,Q=(f==null?0:f.ariaLabel)?{accessibilityData:{accessibilityData:{label:f.ariaLabel}}}:void 0;!X&&(A==null?0:A.viewModel)&&(X={openPopupAction:Object.assign({},{popup:{dialogViewModel:A.viewModel},popupType:(f==null?0:f.isModal)?"MODAL":"DIALOG"},Q&&Q)});X&&this.handleOpenPopupAction(X,t)}else{if(Q=A==null?void 0:A.viewModel){var q=f=f===void 0?{}:f;f=q.ariaLabel;Q={popup:{dialogViewModel:Q},
popupType:q.isModal?"MODAL":"DIALOG"};q={accessibilityData:{label:f}};f&&(Q.accessibilityData=q);Q={openPopupAction:Q}}else Q=void 0;if(Q=(X=Q)!=null?X:A==null?void 0:A.openPopupActionCommand)this.isAriaModal=_.M("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Q,t)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var A=this;return _.l(function(t){return t.return(A.handleGetOpenedPopupsAction_().filter(function(f){var X;return((X=f.openPopupAction)==null?void 0:X.popupType)==="DIALOG"}).length>0)})}}];var wj3;var sec;var kj3=_.dS(["about:blank"]),Aj=function(){var A=_.F.apply(this,arguments)||this;A.isMuted=!1;A.pageLoadTimeoutId=void 0;return A};
_.R(Aj,_.F);_.J=Aj.prototype;_.J.dataChanged=function(){var A=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var t=this.data.url,f=_.KU(t);_.M("enable_yt_ata_iframe_authuser")?(f=_.KU(t),_.rW(this.iframe,BUd(f))):_.rW(this.iframe,f);this.pageLoadTimeoutId=_.jY(_.m_(),function(){return void A.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.UL({destination:window,iframe:this.iframe,origin:_.G_E(f.toString()),channelName:"ataiframe",onMessage:_.ibi(aly,function(X){Kuh(X.data)?(X=_.gd(X.data,1,_.J_,_.uI()),X.length!==1?_.K4(Error("Nl")):(X=X[0],X===3?(A.isMuted=!0,A.logStateChanged({adMuteRequested:!0})):X===1&&A.close())):_.K4(Error("Ol"))}),
onEstablished:function(){A.cancelPageLoadTimeout();A.logStateChanged({pageLoadSucceeded:!0})}})}};
_.J.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.m_().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.J.logStateChanged=function(A){var t;if((t=this.data)==null?0:t.trackingParams)A={adsClientData:{aboutThisAdData:A}},_.er().stateChanged(this.data.trackingParams,A)};
_.J.close=function(){_.kJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.handlesPopupClosed=function(A,t){var f=this,X,Q;return _.l(function(q){if(q.nextAddress==1)return _.ah("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.kJ(f.hostElement,"on-about-this-ad-popup-closed",[f.isMuted,t]),q.jumpTo(0)):A&&Mq3(A)?q.yield(CzA(A),4):(f.isMuted&&_.kJ(f.hostElement,"yt-mute-ad-action",[f.is,f]),q.jumpTo(0));if(X=q.yieldResult){var e=Q=new _.fh(X),G=f.isMuted;e.getOptions().includes("onAboutThisAdPopupClosed")?_.C9K(e,"onAboutThisAdPopupClosed",{isMuted:G,layoutId:t}):_.xu("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.LO(q)})};
_.J.onPopupClosed=function(A){var t=this,f,X;return _.l(function(Q){f=_.OP(kj3);_.rW(t.iframe,f);t.cancelPageLoadTimeout();if(!t.data)return Q.jumpTo(0);t.ytRendererBehavior.markDirty();X=A.detail.context.openingElement;return Q.yield(t.handlesPopupClosed(X,t.data.layoutId),0)})};
_.J.detached=function(){this.cancelPageLoadTimeout()};
_.J.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Aj.prototype.onPopupClosed=Aj.prototype.onPopupClosed;Aj.prototype.dataChanged=Aj.prototype.dataChanged;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.V([_.lo("#iframe"),_.H("design:type",HTMLIFrameElement)],Aj.prototype,"iframe",void 0);_.V([_.n(),_.H("design:type",Object)],Aj.prototype,"data",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Aj.prototype,"dataChanged",null);
_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype",Promise)],Aj.prototype,"onPopupClosed",null);_.V([_.WU({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Aj);
_.Y(Aj,"yt-about-this-ad-renderer",function(){if(sec===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;wj3===void 0&&(wj3=document.createElement("template"));var X=wj3;f.call(t,X.content.cloneNode(!0),A.content.firstChild);sec=A}A=sec;return A},{mode:2});var rIc;var Aid;var tfd=function(A){var t=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=t.message;"stack"in t&&(this.stack=t.stack);this.maxFileSizeMB=A;Object.setPrototypeOf(this,tfd.prototype)};
_.R(tfd,Error);var f68=function(A,t){var f=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=f.message;"stack"in f&&(this.stack=f.stack);this.minWidth=A;this.minHeight=t;Object.setPrototypeOf(this,f68.prototype)};
_.R(f68,Error);var X33=function(A){this.requirements=A;this.JSC$21254_maxFileSize=A.maxFileSizeMB*1024*1024},QI3=function(A,t){if(t.size>A.JSC$21254_maxFileSize)throw new tfd(A.requirements.maxFileSizeMB);
};var q4d=function(A,t){this.canvas=A;this.imageEditorBuilder=t};
q4d.prototype.addEventListeners=function(A){var t=function(Q){JiA(A,Q)};
this.JSC$21260_mouseDownEvent=t;var f=function(Q){Ukd(A,Q)};
this.JSC$21260_mouseMoveEvent=f;var X=function(){e_2(A)};
this.JSC$21260_mouseUpEvent=X;this.canvas.addEventListener("mousedown",t);this.canvas.addEventListener("mousemove",f);document.addEventListener("mouseup",X)};
q4d.prototype.removeEventListeners=function(){this.JSC$21260_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21260_mouseDownEvent);this.JSC$21260_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21260_mouseMoveEvent);this.JSC$21260_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21260_mouseUpEvent)};
var G0h=function(A,t){A.removeEventListeners();return new Promise(function(f){var X=new Image;X.crossOrigin="anonymous";X.onload=function(){var Q=A.imageEditorBuilder(A.canvas,X);A.addEventListeners(Q);f(Q)};
X.src=t})},tj=function(A,t,f,X,Q,q,e,G){this.canvas=A;
this.image=t;this.requiredRatio=f;this.minImageCropDimension=X;this.minOutputImageResolution=Q;this.component=q;this.styleFocusedCorner=G===void 0?!0:G;this.action=2;this.focusedCorner=this.resizeCorner=0;A=this.canvas.getContext("2d");if(!A)throw Error("Pl");this.ctx=A;this.canvasMargin=e!=null?e:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;e=this.image;A=this.canvasInnerWidth/e.width;e.height*A>912&&(A=e.width/e.height*912/e.width);e=A;this.scaledImageWidth=this.canvas.width%2?
RI3(this.image.width*e):hIy(this.image.width*e);this.scaledImageHeight=Math.round(this.image.height*e);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21263_overlayMarginBottom=this.JSC$21263_overlayMarginTop=this.canvasMargin;this.JSC$21263_overlayMarginRight=this.JSC$21263_overlayMarginLeft=this.horizontalMargin;this.JSC$21263_overlayWidth=this.scaledImageWidth;this.JSC$21263_overlayHeight=this.scaledImageHeight;
A=this.image.width/this.image.height;A>this.requiredRatio?(this.JSC$21263_overlayWidth=this.canvas.width%2?RI3(this.scaledImageHeight*this.requiredRatio):hIy(this.scaledImageHeight*this.requiredRatio),this.JSC$21263_overlayMarginRight=this.JSC$21263_overlayMarginLeft=(this.canvas.width-this.JSC$21263_overlayWidth)/2):A<this.requiredRatio&&(this.JSC$21263_overlayHeight=this.canvas.height%2?RI3(this.scaledImageWidth/this.requiredRatio):hIy(this.scaledImageWidth/this.requiredRatio),this.JSC$21263_overlayMarginBottom=
this.JSC$21263_overlayMarginTop=(this.canvas.height-this.JSC$21263_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*e,this.scaledImageWidth);l6l(this)};
tj.prototype.getContext=function(){return this.ctx};
var JiA=function(A,t){t={x:Math.round(t.pageX-A.canvas.getBoundingClientRect().left),y:Math.round(t.pageY-A.canvas.getBoundingClientRect().top)};A.dragStart=t;Nyc(A,t)!==0?(A.action=1,uPd(A,t),A.resizeCorner=Nyc(A,t)):t.x>A.JSC$21263_overlayMarginLeft&&t.x<A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth&&t.y>A.JSC$21263_overlayMarginTop&&t.y<A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight&&(A.action=0)},z_w=function(A,t){switch(t){case 1:return{x:A.JSC$21263_overlayMarginLeft,
y:A.JSC$21263_overlayMarginTop};case 2:return{x:A.JSC$21263_overlayMarginLeft,y:A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight};case 3:return{x:A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth,y:A.JSC$21263_overlayMarginTop};case 4:return{x:A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth,y:A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight};default:throw Error("Ql");}},Ty2=function(A,t){if(A.focusedCorner!==0){A.dragStart=z_w(A,A.focusedCorner);
A.action=1;A.resizeCorner=A.focusedCorner;var f=A.dragStart.x,X=A.dragStart.y;switch(t){case 0:A.focusedCorner===1||A.focusedCorner===4?(f-=10,X-=10):(f-=10,X+=10);break;case 1:A.focusedCorner===1||A.focusedCorner===4?(f+=10,X+=10):(f+=10,X-=10);break;case 2:f=A.focusedCorner===1||A.focusedCorner===4?f-10:f+10;X-=10;break;case 3:f=A.focusedCorner===1||A.focusedCorner===4?f+10:f-10;X+=10;break;default:throw Error("Rl");}PV2(A,{x:f,y:X});l6l(A);A.action=2;A.dragStart=void 0}},Ukd=function(A,t){t={x:Math.round(t.pageX-
A.canvas.getBoundingClientRect().left),
y:Math.round(t.pageY-A.canvas.getBoundingClientRect().top)};uPd(A,t);switch(A.action){case 1:PV2(A,t);break;case 0:A.dragStart&&(A.JSC$21263_overlayMarginLeft=Math.max(A.horizontalMargin,Math.min(A.JSC$21263_overlayMarginLeft-(A.dragStart.x-t.x),A.horizontalMargin+A.scaledImageWidth-A.JSC$21263_overlayWidth)),A.JSC$21263_overlayMarginRight=A.canvas.width-A.JSC$21263_overlayMarginLeft-A.JSC$21263_overlayWidth,A.JSC$21263_overlayMarginTop=Math.max(A.canvasMargin,Math.min(A.JSC$21263_overlayMarginTop-
(A.dragStart.y-t.y),A.scaledImageHeight-A.JSC$21263_overlayHeight+A.canvasMargin)),A.JSC$21263_overlayMarginBottom=A.canvas.height-(A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight));break;default:return}l6l(A);A.dragStart=t},e_2=function(A){A.action=2;
A.dragStart=void 0;document.body.style.cursor="auto"},uPd=function(A,t){switch(Nyc(A,t)){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:A.action!==1&&(document.body.style.cursor="auto")}},Nyc=function(A,t){var f=A.JSC$21263_overlayMarginLeft-5,X=A.JSC$21263_overlayMarginTop-5,Q=A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth-5;
A=A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight-5;return ivc(t,{x:f,y:X})?1:ivc(t,{x:Q,y:X})?3:ivc(t,{x:f,y:A})?2:ivc(t,{x:Q,y:A})?4:0},ivc=function(A,t){return A.x>=t.x&&A.x<=t.x+10&&A.y>=t.y&&A.y<=t.y+10},PV2=function(A,t){if(A.dragStart)switch(A.resizeCorner){case 2:Math.abs((A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth-t.x)/(t.y-A.JSC$21263_overlayMarginTop))>=A.requiredRatio?Ovh(A,t.x):cij(A,t.y);
break;case 1:Math.abs((A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth-t.x)/(A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight-t.y))>=A.requiredRatio?By_(A,t.x):cij(A,t.y);break;case 4:Math.abs((t.x-A.JSC$21263_overlayMarginLeft)/(t.y-A.JSC$21263_overlayMarginTop))>=A.requiredRatio?Ovh(A,t.x):Mfd(A,t.y);break;case 3:Math.abs((t.x-A.JSC$21263_overlayMarginLeft)/(A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight-t.y))>=A.requiredRatio?By_(A,t.x):Mfd(A,t.y);break;default:throw Error("Sl");
}},Ovh=function(A,t){var f=A.JSC$21263_overlayMarginTop;
A.JSC$21263_overlayMarginBottom=CVA(A,t);A.JSC$21263_overlayHeight=A.canvas.height-A.JSC$21263_overlayMarginBottom-f;A.JSC$21263_overlayWidth=Math.round(A.JSC$21263_overlayHeight*A.requiredRatio);h_y(A)},By_=function(A,t){var f=A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight;
A.JSC$21263_overlayMarginTop=CVA(A,t);A.JSC$21263_overlayHeight=f-A.JSC$21263_overlayMarginTop;A.JSC$21263_overlayWidth=Math.round(A.JSC$21263_overlayHeight*A.requiredRatio);h_y(A)},h_y=function(A){switch(A.resizeCorner){case 2:case 1:A.JSC$21263_overlayMarginLeft=A.canvas.width-A.JSC$21263_overlayMarginRight-A.JSC$21263_overlayWidth;
break;case 4:case 3:A.JSC$21263_overlayMarginRight=A.canvas.width-A.JSC$21263_overlayMarginLeft-A.JSC$21263_overlayWidth;break;default:throw Error("Sl");}},cij=function(A,t){var f=A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth;
A.JSC$21263_overlayMarginLeft=R_3(A,t);A.JSC$21263_overlayWidth=f-A.JSC$21263_overlayMarginLeft;A.JSC$21263_overlayHeight=Math.round(A.JSC$21263_overlayWidth/A.requiredRatio);mk8(A)},Mfd=function(A,t){var f=A.JSC$21263_overlayMarginLeft;
A.JSC$21263_overlayMarginRight=R_3(A,t);A.JSC$21263_overlayWidth=A.canvas.width-A.JSC$21263_overlayMarginRight-f;A.JSC$21263_overlayHeight=Math.round(A.JSC$21263_overlayWidth/A.requiredRatio);mk8(A)},mk8=function(A){switch(A.resizeCorner){case 2:case 4:A.JSC$21263_overlayMarginBottom=A.canvas.height-A.JSC$21263_overlayMarginTop-A.JSC$21263_overlayHeight;
break;case 1:case 3:A.JSC$21263_overlayMarginTop=A.canvas.height-A.JSC$21263_overlayMarginBottom-A.JSC$21263_overlayHeight;break;default:throw Error("Sl");}},CVA=function(A,t){switch(A.resizeCorner){case 2:t=A.canvas.height-(A.JSC$21263_overlayMarginTop+bvh(A,t));
break;case 4:t=A.canvas.height-(A.JSC$21263_overlayMarginTop+W8d(A,t));break;case 1:t=A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight-bvh(A,t);break;case 3:t=A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight-W8d(A,t);break;default:throw Error("Sl");}return Math.max(t,A.canvasMargin)},bvh=function(A,t){t=A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth-Math.max(t,A.horizontalMargin);
t=t<0?A.JSC$21263_overlayWidth:Math.max(t,A.minOverlayWidth);return Math.round(t/A.requiredRatio)},W8d=function(A,t){t=A.canvas.width-Math.max(A.canvas.width-t,A.horizontalMargin)-A.JSC$21263_overlayMarginLeft;
t=t<0?A.JSC$21263_overlayWidth:Math.max(t,A.minOverlayWidth);return Math.round(t/A.requiredRatio)},R_3=function(A,t){switch(A.resizeCorner){case 2:t=A.canvas.width-A.JSC$21263_overlayMarginRight-yiw(A,t);
break;case 4:t=A.canvas.width-A.JSC$21263_overlayMarginLeft-yiw(A,t);break;case 1:t=A.canvas.width-A.JSC$21263_overlayMarginRight-vSw(A,t);break;case 3:t=A.canvas.width-A.JSC$21263_overlayMarginLeft-vSw(A,t);break;default:throw Error("Sl");}return Math.max(t,A.horizontalMargin)},yiw=function(A,t){t=A.canvas.height-Math.max(A.canvas.height-t,A.canvasMargin)-A.JSC$21263_overlayMarginTop;
return t<0?A.JSC$21263_overlayWidth:Math.max(Math.round(t*A.requiredRatio),A.minOverlayWidth)},vSw=function(A,t){t=A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight-Math.max(t,A.canvasMargin);
return t<0?A.JSC$21263_overlayWidth:Math.max(Math.round(t*A.requiredRatio),A.minOverlayWidth)},l6l=function(A){A.ctx.clearRect(0,0,A.canvas.width,A.canvas.height);
A.ctx.drawImage(A.image,0,0,A.image.width,A.image.height,A.horizontalMargin,A.canvasMargin,A.canvas.width-2*A.horizontalMargin,A.scaledImageHeight);A.ctx.fillStyle="rgba(0, 0, 0, 0.7)";A.ctx.fillRect(A.horizontalMargin,A.JSC$21263_overlayMarginTop,A.JSC$21263_overlayMarginLeft-A.horizontalMargin,A.JSC$21263_overlayHeight);A.ctx.fillRect(A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth,A.JSC$21263_overlayMarginTop,A.JSC$21263_overlayMarginRight-A.horizontalMargin,A.JSC$21263_overlayHeight);A.ctx.fillRect(A.horizontalMargin,
A.canvasMargin,A.scaledImageWidth,A.JSC$21263_overlayMarginTop-A.canvasMargin);A.ctx.fillRect(A.horizontalMargin,A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight,A.scaledImageWidth,A.JSC$21263_overlayMarginBottom-A.canvasMargin);A.drawOverlay();A.component&&_.s9(A.component,"image-updated")};
tj.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21263_overlayMarginLeft,this.JSC$21263_overlayMarginTop,this.JSC$21263_overlayWidth,this.JSC$21263_overlayHeight);L8m(this)};
var L8m=function(A){var t=A.JSC$21263_overlayMarginLeft-5,f=A.JSC$21263_overlayMarginTop-5,X=A.JSC$21263_overlayMarginLeft+A.JSC$21263_overlayWidth-5,Q=A.JSC$21263_overlayMarginTop+A.JSC$21263_overlayHeight-5;A.ctx.fillStyle="#FFF";A.ctx.fillRect(t,f,10,10);A.ctx.strokeRect(t,f,10,10);A.ctx.fillRect(X,f,10,10);A.ctx.strokeRect(X,f,10,10);A.ctx.fillRect(t,Q,10,10);A.ctx.strokeRect(t,Q,10,10);A.ctx.fillRect(X,Q,10,10);A.ctx.strokeRect(X,Q,10,10);if(A.focusedCorner!==0&&A.styleFocusedCorner){A.ctx.lineWidth=
4;A.ctx.strokeStyle="#3EA6FF";switch(A.focusedCorner){case 1:--t;--f;break;case 2:--t;f=Q-1;break;case 3:t=X-1;--f;break;case 4:t=X-1;f=Q-1;break;default:return}A.ctx.strokeRect(t,f,12,12)}};
tj.prototype.crop=function(A,t){t=t===void 0?!0:t;var f=this.image.width/this.scaledImageWidth,X=document.createElement("canvas"),Q=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],q=this.JSC$21263_overlayWidth*f,e=this.JSC$21263_overlayHeight*f;X.width=Math.max(q,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);X.height=Math.max(e,Q);A&&(X.width=Math.min(X.width,X.height),X.height=Math.min(X.width,X.height));
A=X.getContext("2d");if(!A)throw Error("Gl");Q=(this.JSC$21263_overlayMarginLeft-this.horizontalMargin)*f;f*=this.JSC$21263_overlayMarginTop-this.canvasMargin;t||(A.fillStyle="white",A.fillRect(0,0,X.width,X.height));A.drawImage(this.image,Q,f,q,e,0,0,X.width,X.height);return X};var p33=function(A,t,f,X,Q){tj.call(this,A,t,f,X,void 0,Q,8,!1)};
_.R(p33,tj);p33.prototype.drawOverlay=function(){var A=this.getContext(),t=this.JSC$21263_overlayWidth,f=this.JSC$21263_overlayHeight,X=this.JSC$21263_overlayMarginTop,Q=this.JSC$21263_overlayMarginLeft;A.lineWidth=2;A.strokeStyle="#3EA6FF";A.beginPath();A.arc(Q+t/2,X+f/2,t/2,0,2*Math.PI);A.stroke();A.strokeRect(Q,X,t,f);L8m(this)};
var ESh={maxFileSizeMB:15,minWidth:98,minHeight:98},nSd=["image/png","image/jpeg","image/gif"],fJ=function(){var A=_.F.apply(this,arguments)||this;A.fileSelectorFocusListener=null;A.errorMessage=null;A.isLoading=!0;A.hideContainer=!0;A.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return A};
_.R(fJ,_.F);_.J=fJ.prototype;_.J.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.J.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.J.computePlaylistThumbnail=function(A){return A==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.J.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.kJ(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.J.setErrorState=function(A){this.resetErrorState();A&&(this.errorMessage=A)};
_.J.showPopup=function(){var A=this;this.hideContainer=!1;_.jY(_.a6,function(){_.s9(A.hostElement,"yt-refit")});
this.isLoading=!1};
_.J.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.J.closePopup=function(){this.resetFileSelector();_.kJ(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onCancelTap=function(){this.isPlaylistThumbnail||_.kJ(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.J.openFileSelector=function(){var A=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.jY(_.a6,function(){setTimeout(function(){if(!A.fileSelector.files||A.fileSelector.files.length===0)A.onCancelTap();A.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(t){t instanceof Error?_.HQ(t):_.ai(new _.xj(JSON.stringify(t)))}};
_.J.handleFileSelection=function(){var A=this,t,f,X,Q,q,e;return _.l(function(G){switch(G.nextAddress){case 1:_.ht(G,2);if(!A.fileSelector.files||!A.imageEditorCanvas)return A.onCancelTap(),G.return();t=A.fileSelector.files[0];QI3(A.imageChecker,t);_.ht(G,4);return G.yield(d1m(t),6);case 6:A.mimeType=G.yieldResult;_.qq(G,5,2);break;case 4:_.vC(G,2),_.kJ(A.hostElement,"yt-image-selection-error-action",[(f=A.data)==null?void 0:f.genericImageLoadErrorMessage]),A.onCancelTap();case 5:X=new FileReader;
X.addEventListener("load",function(){var N,z;return _.l(function(T){if(T.nextAddress==1){if(!X.result)return _.K4(Error("Il")),T.return();N=X.result;z=new Image;z.src=N;z.onload=function(){try{var O=A.imageChecker;if(z.width<O.requirements.minWidth||z.height<O.requirements.minHeight)throw new f68(O.requirements.minWidth,O.requirements.minHeight);}catch(B){if(B instanceof f68){var c;_.kJ(A.hostElement,"yt-image-selection-error-action",[(c=A.data)==null?void 0:c.imageDimensionErrorMessage]);A.logImageDimensionErrorVe()}else B instanceof
Error?_.HQ(B):(O=new _.xj(JSON.stringify(B)),_.HQ(O));A.onCancelTap()}A.showPopup()};
z.onerror=function(){var O;_.kJ(A.hostElement,"yt-image-selection-error-action",[(O=A.data)==null?void 0:O.genericImageLoadErrorMessage]);A.onCancelTap()};
return T.yield(G0h(A.imageEditorCanvas,N),2)}A.imageEditor=T.yieldResult;A.updatePositionOfAllCorners();A.addEventListeners(A.imageEditor);_.LO(T)})},!1);
X.readAsDataURL(t);_.qq(G,0);break;case 2:Q=_.vC(G),Q instanceof tfd?_.kJ(A.hostElement,"yt-image-selection-error-action",[(q=A.data)==null?void 0:q.imageSizeErrorMessage]):(Q instanceof Error?_.HQ(Q):_.ai(new _.xj(JSON.stringify(Q))),_.kJ(A.hostElement,"yt-image-selection-error-action",[(e=A.data)==null?void 0:e.genericImageLoadErrorMessage])),A.onCancelTap(),_.LO(G)}})};
_.J.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var A=_.UX(_.er(),{veType:232707,visualElement:_.Xl(232707)});A&&(A={visualElement:A},_.J7().reportShown(A))}};
_.J.handleImageSelectionErrorAction=function(A){this.isPlaylistThumbnail&&_.NXb(this.hostElement,A)};
_.J.convertToImageFormatBundle=function(A){var t=this,f,X,Q;return _.l(function(q){switch(q.nextAddress){case 1:return f=A.toDataURL(t.outputMimeType,1),q.yield(S13(f),2);case 2:X=q.yieldResult;_.ht(q,3);QI3(t.imageChecker,X);_.qq(q,4);break;case 3:Q=_.vC(q);if(!(Q instanceof tfd))throw Q;_.K4(new _.xj("Output size is bigger than input size for image",t.mimeType,t.outputMimeType,X.size));f=A.toDataURL("image/jpeg",.95);return q.yield(S13(f),6);case 6:X=q.yieldResult;case 4:return q.return({dataUrl:f,
imageFile:X})}})};
_.J.handleUploadImageToScottyCommand=function(A){var t=this,f,X,Q,q,e,G,N,z,T,O;return _.l(function(c){switch(c.nextAddress){case 1:if(!t.imageEditor||!_.C(A,wa3))return c.return();f=_.C(A,wa3).scottyUploadUrl;if(!f){var B=new _.xj("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.HQ(B);return c.return()}_.ht(c,2);t.setLoadingState();X=t.imageEditor.crop(!1,!1);return c.yield(t.convertToImageFormatBundle(X),4);case 4:return Q=c.yieldResult,c.yield(Zdd(Q.imageFile,f),5);
case 5:q=c.yieldResult;((e=t.data)==null?0:e.onUploadEndpoint)?(G=t.buildUploadServiceEndpoint(q),t.ytComponentBehavior.resolveCommand(G),N=_.C(G,_.qN),((z=N)==null?0:z.params)?t.closePopup():t.resetFileSelector()):(_.kJ(t.hostElement,"yt-image-updated-action",[Q.dataUrl,q]),t.closePopup());_.qq(c,0);break;case 2:T=_.vC(c),t.setErrorState((O=t.data)==null?void 0:O.uploadErrorMessage),T instanceof Error?_.HQ(T):(B=new _.xj(JSON.stringify(T)),_.HQ(B)),_.LO(c)}})};
_.J.buildUploadServiceEndpoint=function(A){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",A),this.data.onUploadEndpoint):null};
_.J.dataChanged=function(){var A=this,t;return _.l(function(f){if(f.nextAddress==1){if(!A.data||!A.canvasElement)return f.return();A.data.imageRatio&&A.data.minImageCropWidth||_.ai(new _.xj("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));t=function(X,Q){return A.data.imageType==="IMAGE_TYPE_AVATAR"?new p33(X,Q,A.data.imageRatio,[A.data.minImageCropWidth,A.data.minImageCropWidth/A.data.imageRatio],A.hostElement):new tj(X,Q,A.data.imageRatio,[A.data.minImageCropWidth,
A.data.minImageCropWidth/A.data.imageRatio],void 0,A.hostElement,8,!1)};
A.imageEditorCanvas=new q4d(A.canvasElement,t);return A.data.url?f.yield(G0h(A.imageEditorCanvas,A.data.url),3):(A.hideContainer=!0,A.openFileSelector(),f.jumpTo(0))}A.imageEditor=f.yieldResult;A.showPopup();A.addEventListeners(A.imageEditor);_.LO(f)})};
_.J.addEventListeners=function(A){this.removeEventListeners();var t=function(Q){JiA(A,Q)};
this.JSC$21271_mouseDownEvent=t;var f=function(Q){Ukd(A,Q)};
this.JSC$21271_mouseMoveEvent=f;var X=function(){e_2(A)};
this.JSC$21271_mouseUpEvent=X;this.topLeftCorner.addEventListener("mousedown",t);this.topLeftCorner.addEventListener("mousemove",f);this.topLeftCorner.addEventListener("mouseup",X);this.topRightCorner.addEventListener("mousedown",t);this.topRightCorner.addEventListener("mousemove",f);this.topRightCorner.addEventListener("mouseup",X);this.bottomLeftCorner.addEventListener("mousedown",t);this.bottomLeftCorner.addEventListener("mousemove",f);this.bottomLeftCorner.addEventListener("mouseup",X);this.bottomRightCorner.addEventListener("mousedown",
t);this.bottomRightCorner.addEventListener("mousemove",f);this.bottomRightCorner.addEventListener("mouseup",X)};
_.J.removeEventListeners=function(){this.JSC$21271_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21271_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21271_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21271_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21271_mouseDownEvent));this.JSC$21271_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21271_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21271_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21271_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21271_mouseMoveEvent));this.JSC$21271_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21271_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21271_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21271_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21271_mouseUpEvent))};
_.J.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var A=document.activeElement;A&&A.shadowRoot&&A.shadowRoot.activeElement;)A=A.shadowRoot.activeElement;switch(A){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};
_.J.updatePositionOfCorner=function(A,t){var f=A.y-t.offsetHeight/2+4;t.style.left=A.x-t.offsetWidth/2+16+"px";t.style.top=f+"px"};
_.J.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var A=_.U([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),t=A.next();!t.done;t=A.next()){t=t.value;var f=z_w(this.imageEditor,t.corner);this.updatePositionOfCorner(f,t.div)}};
_.J.onLeft=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(Ty2(this.imageEditor,0),this.updatePositionOfAllCorners(),A.preventDefault())};
_.J.onRight=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(Ty2(this.imageEditor,1),this.updatePositionOfAllCorners(),A.preventDefault())};
_.J.onUp=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(Ty2(this.imageEditor,2),this.updatePositionOfAllCorners(),A.preventDefault())};
_.J.onDown=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(Ty2(this.imageEditor,3),this.updatePositionOfAllCorners(),A.preventDefault())};
_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.PV.Object.defineProperties(fJ.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&nSd.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var A,t,f;((t=this.data)==null?0:t.imageRatio)&&((f=this.data)==null?0:f.minImageCropWidth)?A={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:A=ESh;return new X33(A)}}});
fJ.prototype.updatePositionOfAllCorners=fJ.prototype.updatePositionOfAllCorners;fJ.prototype.dataChanged=fJ.prototype.dataChanged;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],fJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],fJ.prototype,"ytComponentBehavior",void 0);_.V([_.b(_.YD),_.H("design:type",Object)],fJ.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.lo("#canvas"),_.H("design:type",HTMLCanvasElement)],fJ.prototype,"canvasElement",void 0);_.V([_.lo("#file-selector"),_.H("design:type",HTMLInputElement)],fJ.prototype,"fileSelector",void 0);_.V([_.lo("#top-left-corner"),_.H("design:type",HTMLDivElement)],fJ.prototype,"topLeftCorner",void 0);_.V([_.lo("#top-right-corner"),_.H("design:type",HTMLDivElement)],fJ.prototype,"topRightCorner",void 0);
_.V([_.lo("#bottom-left-corner"),_.H("design:type",HTMLDivElement)],fJ.prototype,"bottomLeftCorner",void 0);_.V([_.lo("#bottom-right-corner"),_.H("design:type",HTMLDivElement)],fJ.prototype,"bottomRightCorner",void 0);_.V([_.n(),_.H("design:type",Object)],fJ.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],fJ.prototype,"errorMessage",void 0);_.V([_.n(),_.H("design:type",Object)],fJ.prototype,"isLoading",void 0);_.V([_.n(),_.H("design:type",Object)],fJ.prototype,"hideContainer",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.H("design:type",Boolean)],fJ.prototype,"isPlaylistThumbnail",void 0);_.V([_.PU("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],fJ.prototype,"dataChanged",null);_.V([_.UQ("image-updated"),_.UQ("yt-refit"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fJ.prototype,"updatePositionOfAllCorners",null);
_.V([_.WU({is:"yt-image-editor-renderer",disableElementRegistration:!0})],fJ);
_.Y(fJ,"yt-image-editor-renderer",function(){if(Aid===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;rIc===void 0&&(rIc=document.createElement("template"));var X=rIc;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Aid=A}A=Aid;return A},{mode:2});var DkA;var F8j;var X6=function(){return _.F.apply(this,arguments)||this};
_.R(X6,_.F);X6.prototype.updateMinutesFromBinding=function(A){this.handleMinutesChanged&&this.handleMinutesChanged(A)};
X6.prototype.updateSecondsFromBinding=function(A){this.handleSecondsChanged&&this.handleSecondsChanged(A)};
X6.prototype.updateDescriptionFromBinding=function(A){this.handleDescriptionChanged&&this.handleDescriptionChanged(A)};
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],X6.prototype,"ytComponentBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],X6.prototype,"data",void 0);_.V([_.n(),_.H("design:type",String)],X6.prototype,"minutes",void 0);_.V([_.n(),_.H("design:type",String)],X6.prototype,"seconds",void 0);_.V([_.n(),_.H("design:type",String)],X6.prototype,"description",void 0);_.V([_.n(),_.H("design:type",Function)],X6.prototype,"handleMinutesChanged",void 0);
_.V([_.n(),_.H("design:type",Function)],X6.prototype,"handleSecondsChanged",void 0);_.V([_.n(),_.H("design:type",Function)],X6.prototype,"handleDescriptionChanged",void 0);_.V([_.n(),_.H("design:type",Number)],X6.prototype,"characterLimit",void 0);_.V([_.n(),_.H("design:type",Number)],X6.prototype,"textNumRows",void 0);_.V([_.WU({is:"yt-report-details-form-content",disableElementRegistration:!0})],X6);
_.Y(X6,"yt-report-details-form-content",function(){if(F8j===void 0){var A=document.createElement("template");_.m(A,'\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>');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;DkA===void 0&&(DkA=document.createElement("template"));var X=DkA;f.call(t,X.content.cloneNode(!0),A.content.firstChild);F8j=A}A=F8j;return A},{mode:2});var I6A;var xkw;var Qd=function(){var A=_.F.apply(this,arguments)||this;A.updateMinutesFromBinding=function(t){A.minutes=t.detail.value};
A.updateSecondsFromBinding=function(t){A.seconds=t.detail.value};
A.updateDescriptionFromBinding=function(t){A.description=t.detail.value};
return A};
_.R(Qd,_.F);_.J=Qd.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.J.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"}}}};
_.J.ready=function(){_.sF(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.J.onSubmitYtAction=function(A){var t=A.detail;t.actionName==="yt-service-request"&&(t=t.args[1],t.flagEndpoint&&(A.stopPropagation(),this.refireAction(t)))};
_.J.refireAction=function(A){var t={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(t.vss_id=this.vssId);_.Al(this.hostElement,[A,t]);this.submitDisabled=!0};
_.J.dataChanged=function(){var A=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var t=_.K1();t&&t.getPlayerPromise().then(function(f){var X=f.getOption("cc","track")||f.getOption("captions","track");X&&(A.vssId=X.vss_id);f=f.getCurrentTime();A.minutes=Math.floor(f/60).toString();A.seconds=(Math.floor(f)%60).toString()})};
_.J.updateSubmitButtonState=function(){var A;((A=this.data)==null?0:A.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==="")};
_.J.onYtServiceRequestCompleted=function(){_.kJ(this.hostElement,"yt-close-popup-action")};
_.J.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.PV.Object.defineProperties(Qd.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.textNumRows)||4}}});
Qd.prototype.onYtServiceRequestError=Qd.prototype.onYtServiceRequestError;Qd.prototype.onYtServiceRequestCompleted=Qd.prototype.onYtServiceRequestCompleted;Qd.prototype.updateSubmitButtonState=Qd.prototype.updateSubmitButtonState;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Qd.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);
_.V([_.n({observer:"dataChanged"}),_.H("design:type",Object)],Qd.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Boolean)],Qd.prototype,"submitDisabled",void 0);_.V([_.n(),_.H("design:type",String)],Qd.prototype,"minutes",void 0);_.V([_.n(),_.H("design:type",String)],Qd.prototype,"seconds",void 0);_.V([_.n(),_.H("design:type",String)],Qd.prototype,"description",void 0);_.V([_.n(),_.H("design:type",String)],Qd.prototype,"vssId",void 0);
_.V([_.n({value:_.ah("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.H("design:type",Boolean)],Qd.prototype,"isMusic",void 0);_.V([_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],Qd.prototype,"characterLimit",null);_.V([_.y("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],Qd.prototype,"textNumRows",null);
_.V([_.PU("minutes","seconds","description","submitDisabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qd.prototype,"updateSubmitButtonState",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qd.prototype,"onYtServiceRequestCompleted",null);
_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qd.prototype,"onYtServiceRequestError",null);_.V([_.WU({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Qd);
_.Y(Qd,"yt-report-details-form-renderer",function(){if(xkw===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;I6A===void 0&&(I6A=document.createElement("template"));var X=I6A;f.call(t,X.content.cloneNode(!0),A.content.firstChild);xkw=A}A=xkw;return A});var jIh;var Y4l;var Vf_;var Zv8;var qO=function(){return _.F.apply(this,arguments)||this};
_.R(qO,_.F);
qO.prototype.onCheckedChanged_=function(){if(this.data){var A=_.sF(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.kJ(this.hostElement,"yt-additional-detail-checkbox-update",[A]):this.data.identifier==="yt-hide-user-checkbox"?_.kJ(this.hostElement,"yt-hide-user-checkbox-update",[A]):A&&this.data.enableCommand?_.kJ(this.hostElement,"yt-modify-report-form-command",[_.C(this.data.enableCommand,Xl2)]):!A&&this.data.disableCommand&&_.kJ(this.hostElement,
"yt-modify-report-form-command",[_.C(this.data.enableCommand,Xl2)])}};
qO.prototype.onLabelTap_=function(A){A.target.tagName!="A"&&(_.sF(this.hostElement).querySelector("#checkbox").checked=!_.sF(this.hostElement).querySelector("#checkbox").checked)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],qO.prototype,"data",void 0);_.V([_.WU({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],qO);
_.Y(qO,"yt-boolean-form-field-v2-renderer",function(){if(Zv8===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Vf_===void 0&&(Vf_=document.createElement("template"));var X=Vf_;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Zv8=A}A=Zv8;return A});var Jj=function(){var A=_.F.apply(this,arguments)||this;A.canShowAdditionalDetailCheckbox=!1;A.canShowCheckbox=!1;A.keepDropdownFocusedAfterSelection=!0;return A};
_.R(Jj,_.F);Jj.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}}}}};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Jj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Jj.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Jj.prototype,"canShowAdditionalDetailCheckbox",void 0);_.V([_.n(),_.H("design:type",Object)],Jj.prototype,"canShowCheckbox",void 0);_.V([_.n(),_.H("design:type",Object)],Jj.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.V([_.WU({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Jj);
_.Y(Jj,"yt-report-form-modal-content",function(){if(Y4l===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;jIh===void 0&&(jIh=document.createElement("template"));var X=jIh;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Y4l=A}A=Y4l;return A},{mode:2});var oS8;var dkw;var Uo=function(){var A=_.F.apply(this,arguments)||this;A.submitting=!1;A.submitButtonDisabled=!0;A.command=null;A.canShowCheckbox=!1;A.canShowAdditionalDetailCheckbox=!1;A.canShowNextButton=!1;A.additionalDetailCheckboxChecked=!1;A.refitJob=0;A.keepDropdownFocusedAfterSelection=!0;A.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 A};
_.R(Uo,_.F);_.J=Uo.prototype;_.J.created=function(){this.refitJob=0};
_.J.attached=function(){this.JSC$21294_scroller&&(this.JSC$21294_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21294_scroller.attached&&typeof this.JSC$21294_scroller.attached==="function"&&this.JSC$21294_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(A){A&&(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,A.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),A.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.J.onYtPopupOpened=function(){var A=_.K1();A&&A.getPlayerPromise().then(function(t){t.pauseVideo()})};
_.J.onYtNavigate=function(A){_.C(A.detail.endpoint,_.JhE)&&(A.stopPropagation(),this.hideReportForm=!0)};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.J.onYtServiceRequestCompleted=function(A,t){var f=t.actions;if(f){if(f.length===1&&_.C(f[0],_.Xd)){var X;f=((X=_.C(f[0],_.Xd))==null?void 0:X.commands)||[]}X=0;for(var Q=f.length;X<Q;X++)_.C(f[X],_.$4)&&(A.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(f[X]))}if(t.data&&(A=this.get("feedbackResponses",t.data)))for(t=0;t<A.length;t++)if(A[t].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.J._onDescendantIronResize=function(A){A.stopPropagation();return!1};
_.J.handleReportFormEndpointUpdateAction=function(A){if(A.submitEndpoint){var t=this.command=A.submitEndpoint;t=_.C(t,_.QXl);if(t==null?0:t.additionalDetailCheckboxChecked)t.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else A.submitNavigationEndpoint?(this.command=A.submitNavigationEndpoint,this.toggleSubmitButton(!1)):A.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:A.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;A.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",A));this.refit()};
_.J.handleConfirmDialogCloseAction=function(A){A.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.J.submitButtonDisabledChanged=function(){var A=this.hostElement.parentElement;A&&A.invalidateTabbables&&A.invalidateTabbables()};
_.J.handleModifyReportFormCommand=function(A){A=this.get("action",A);A==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:A==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:A==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:A==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:A==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:A==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.J.updateDialogStyling=function(){var A,t,f,X,Q,q=((Q=(A=this.data)==null?void 0:(t=A.optionsSupportedRenderers)==null?void 0:(f=t.optionsRenderer)==null?void 0:(X=f.items)==null?void 0:X.length)!=null?Q:0)<=2?0:240;_.Q_(this.hostElement,{"--yt-report-form-modal-renderer-min-width":q+"px"})};
_.J.toggleSubmitButton=function(A){this.submitButtonDisabled=!A;this.submitButtonDisabled=A};
_.J.computeSubmitButtonData=function(A,t){var f={};_.C(t,_.JhE)?f.navigationEndpoint=t:f.command=t||void 0;A&&A.buttonRenderer&&_.VG.extend(f,A.buttonRenderer);return f};
_.J.computeNextButtonData=function(A,t){var f={};if(!A||!A.buttonRenderer)return f;_.VG.extend(f,A.buttonRenderer);if(!t)return f;if(_.C(t,_.JhE))f.navigationEndpoint=Ahh(t);else if(f.command=Ahh(t),A=_.C(f.command,_.QXl))A.legalCheckboxChecked=!0;return f};
_.J.computeShowNextButton=function(A,t,f){return!!A&&t&&f};
_.J.refit=function(){var A=this;this.refitJob||(this.refitJob=_.a6.addLowPriorityJob(function(){_.s9(A.hostElement,"yt-refit");A.refitJob=0}))};
_.J.handleAdditionalDetailCheckboxUpdateAction=function(A){this.additionalDetailCheckboxChecked=A;_.C(this.command,_.QXl).additionalDetailCheckboxChecked=A};
_.PV.Object.defineProperties(Uo,{template:{configurable:!0,enumerable:!0,get:function(){if(dkw===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;oS8===void 0&&(oS8=document.createElement("template"));var X=oS8;f.call(t,X.content.cloneNode(!0),A.content.firstChild);dkw=A}A=dkw;return A}}});
Uo.prototype.onYtServiceRequestError=Uo.prototype.onYtServiceRequestError;Uo.prototype.onYtServiceRequestCompleted=Uo.prototype.onYtServiceRequestCompleted;Uo.prototype.onYtServiceRequestSent=Uo.prototype.onYtServiceRequestSent;Uo.prototype.onYtNavigate=Uo.prototype.onYtNavigate;Uo.prototype.onYtPopupOpened=Uo.prototype.onYtPopupOpened;_.V([_.b(_.I4.YtOpenPopupBehavior),_.H("design:type",Object)],Uo.prototype,"openPopupBehavior",void 0);
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Uo.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],Uo.prototype,"eventForwardingBehavior",void 0);_.V([_.b(_.K9),_.H("design:type",Object)],Uo.prototype,"ironResizableBehavior",void 0);_.V([_.n({observer:"dataChanged"}),_.H("design:type",Object)],Uo.prototype,"data",void 0);
_.V([_.n(),_.H("design:type",Object)],Uo.prototype,"submitting",void 0);_.V([_.n({observer:"submitButtonDisabledChanged"}),_.H("design:type",Object)],Uo.prototype,"submitButtonDisabled",void 0);_.V([_.n(),_.H("design:type",Object)],Uo.prototype,"command",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],Uo.prototype,"hideReportForm",void 0);_.V([_.n(),_.H("design:type",Object)],Uo.prototype,"canShowCheckbox",void 0);
_.V([_.n(),_.H("design:type",Object)],Uo.prototype,"canShowAdditionalDetailCheckbox",void 0);_.V([_.n(),_.H("design:type",Object)],Uo.prototype,"canShowNextButton",void 0);_.V([_.n(),_.H("design:type",Object)],Uo.prototype,"additionalDetailCheckboxChecked",void 0);_.V([_.n(),_.H("design:type",Object)],Uo.prototype,"refitJob",void 0);_.V([_.n(),_.H("design:type",Object)],Uo.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.V([_.lo("#scroller"),_.H("design:type",Object)],Uo.prototype,"JSC$21294_scroller",void 0);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Uo.prototype,"onYtPopupOpened",null);_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Uo.prototype,"onYtNavigate",null);
_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],Uo.prototype,"onYtServiceRequestSent",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],Uo.prototype,"onYtServiceRequestCompleted",null);
_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Uo.prototype,"onYtServiceRequestError",null);_.V([_.WU({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Uo);var S4l;var $kQ;var ex=function(){return _.F.apply(this,arguments)||this};
_.R(ex,_.F);_.J=ex.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.J.onVisible=function(){var A,t;(t=_.Px().resolve(_.z7(_.m8)))==null||t.enqueue({label:_.dF((A=this.data)==null?void 0:A.messageTitle),elementToFocus:this.hostElement})};
_.J.onThumbnailLoaded=function(){_.s9(this.hostElement,"yt-refit")};
_.J.onDismissTap=function(){_.kJ(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.J.computeAlternateIcon=function(A){return A?A==="BACKSTAGE_ARTWORK"?"backstage:artwork":A:null};
_.J.computeFontFamily=function(A){return A==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.J.computeBackgroundStyle=function(A,t){if(A=this.computeBackgroundImage(A,t))if(A=_.KI(A.thumbnails))return'background-image: url("'+A+'");'};
_.J.computeHasFullHeightImage=function(A){return!(!(A&&A.thumbnails&&A.thumbnails.length>0)||this.modern)};
_.J.isModernStyle=function(A){return A.style==="STYLE_MODERN"};
_.J.computeIcon=function(A,t){if(A&&A.icon)return t?A.iconDark:A.icon};
_.J.computeBackgroundImage=function(A,t){if(A&&A.backgroundImage)return t?A.backgroundImageDark:A.backgroundImage};
_.J.computeLogo=function(A,t){if(A&&A.logo)return t?A.logoDark:A.logo};
_.J.computeShouldShowModernIcon=function(A,t){return A&&!!t};
_.J.getLogoContainerClassName=function(A){return this.logoWithPadding(A)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.J.getLogoImageId=function(A){return this.logoWithPadding(A)?"mealbar-logo-with-padding":"mealbar-logo"};
_.J.logoWithPadding=function(A){var t,f,X;return(A=(t=this.computeLogo(A,this.isDarkTheme))==null?void 0:(f=t.thumbnails)==null?void 0:(X=f[0])==null?void 0:X.height)&&A%31===0?!0:!1};
ex.prototype.onThumbnailLoaded=ex.prototype.onThumbnailLoaded;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.V([_.n({}),_.H("design:type",Object)],ex.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.H("design:type",Boolean)],ex.prototype,"modern",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],ex.prototype,"isDarkTheme",void 0);
_.V([_.n({computed:"computeIcon(data, isDarkTheme)"}),_.H("design:type",Object)],ex.prototype,"icon",void 0);_.V([_.n({computed:"computeLogo(data, isDarkTheme)"}),_.H("design:type",Object)],ex.prototype,"logo",void 0);_.V([_.n({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.H("design:type",Object)],ex.prototype,"backgroundStyle",void 0);_.V([_.n({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.H("design:type",Object)],ex.prototype,"alternateIcon",void 0);
_.V([_.n({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.H("design:type",Boolean)],ex.prototype,"hasFullHeightImage",void 0);_.V([_.n({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.H("design:type",Boolean)],ex.prototype,"useYoutubeSans",void 0);_.V([_.n({computed:"computeShouldShowModernIcon(modern, icon)"}),_.H("design:type",Boolean)],ex.prototype,"shouldShowModernIcon",void 0);
_.V([_.UQ("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ex.prototype,"onThumbnailLoaded",null);_.V([_.WU({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],ex);
_.Y(ex,"yt-mealbar-promo-renderer",function(){if($kQ===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;S4l===void 0&&(S4l=document.createElement("template"));var X=S4l;f.call(t,X.content.cloneNode(!0),A.content.firstChild);$kQ=A}A=$kQ;return A},{mode:2});var Hvc;var a62;var G2=function(){return _.F.apply(this,arguments)||this};
_.R(G2,_.F);_.J=G2.prototype;_.J.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]]"}}}}}};
_.J.computeHasButtons_=function(A){return!(!A.dismissButton&&!A.acceptButton)};
_.J.computeStyle_=function(A){return A||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.J.observeImpressionEndpoints_=function(){var A=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;_.Al(A.hostElement,[t])})};
_.J.onTap_=function(){_.kJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
G2.prototype.observeImpressionEndpoints_=G2.prototype.observeImpressionEndpoints_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],G2.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],G2.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],G2.prototype,"positionType",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.H("design:type",Boolean)],G2.prototype,"hasButtons_",void 0);_.V([_.n({value:function(){return this.onTap_.bind(this)}}),
_.H("design:type",Function)],G2.prototype,"boundOnTap_",void 0);_.V([_.n({value:{style:"mono-inverse"}}),_.H("design:type",Object)],G2.prototype,"buttonOverride",void 0);_.V([_.ev("data.promoConfig.impressionEndpoints"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],G2.prototype,"observeImpressionEndpoints_",null);_.V([_.WU({is:"yt-tooltip-renderer",disableElementRegistration:!0})],G2);
_.Y(G2,"yt-tooltip-renderer",function(){if(a62===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Hvc===void 0&&(Hvc=document.createElement("template"));var X=Hvc;f.call(t,X.content.cloneNode(!0),A.content.firstChild);a62=A}A=a62;return A},{mode:2});var K82;var gS2;var w3d={},sI3=(w3d.WEB_REMIX="music.youtube.com",w3d),lQ=function(){var A=_.F.apply(this,arguments)||this;A.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return A};
_.R(lQ,_.F);_.J=lQ.prototype;_.J.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.created=function(){this.embedHost_=sI3[_.ah("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.J.ready=function(){_.sF(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.J.computeEmbedCode_=function(A,t,f,X,Q){if(!A)return"";var q=A.videoId,e=A.fullListId,G=[];A.attributionId&&G.push("si="+A.attributionId);X||G.push("controls=0");f&&Number(t)>0&&G.push("start="+t);e&&(q="videoseries",G.push("list="+e));f="https://"+(Q?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+q;A.clipId&&(G.push("clip="+A.clipId),G.push("clipt="+A.clipTiming));t=G.length>0?f+"?"+G.join("&amp;"):f;A.encryptedEmbedConfig&&G.push("embed_config="+JSON.stringify({enc:A.encryptedEmbedConfig}));
G=G.length>0?f+"?"+G.join("&amp;"):f;_.M("web_sharing_embed_preview_killswitch")?_.sF(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(G,A.previewWidth||854,A.previewHeight||480):(_.x6(this.videoPreviewContainer),_.sF(this.videoPreviewContainer).appendChild(this.buildIframeElement(G)));return this.getEmbedCode_(t,A.width||560,A.height||315)};
_.J.buildIframeElement=function(A){var t=document.createElement("iframe"),f,X;t.width=""+((X=(f=this.data)==null?void 0:f.previewWidth)!=null?X:854);var Q,q;t.height=""+((q=(Q=this.data)==null?void 0:Q.previewHeight)!=null?q:480);_.At(t,2,A);t.title="YouTube video player";t.frameBorder="0";t.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";t.referrerPolicy="strict-origin-when-cross-origin";t.allowFullscreen=!0;return t};
_.J.computeIsSquareAspectRatio_=function(A){return A.previewHeight&&A.previewWidth?A.previewHeight==A.previewWidth:!1};
_.J.computeShowEmbedOptions_=function(A){return!!A.enablePrivacyModeOptionLabel||!!A.showPlayerControlsOptionLabel};
_.J.getEmbedCode_=function(A,t,f){return'<iframe width="'+t+'" height="'+f+'" src="'+A+'" 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>'};
_.J.handleSignalActionCopyShareEmbedUrl_=function(){_.sF(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.J.handleSetTimestamp_=function(A){this.startAtTimeStamp_=(this.startAtChecked_=A.isSet)?A.timestamp:0};
_.J.closePanel_=function(){_.kJ(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.J.onEmbedCode_=function(){_.sF(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.J.onYtPopupClosed_=function(){_.x6(_.sF(this.hostElement).querySelector("#video-preview"))};
_.J.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.C(this.data.actionButtons[0],_.Gf)&&this.ytRendererBehavior.logExplicitClick(_.C(this.data.actionButtons[0],_.Gf))};
lQ.prototype.onYtPopupClosed_=lQ.prototype.onYtPopupClosed_;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],lQ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],lQ.prototype,"data",void 0);
_.V([_.n({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.H("design:type",String)],lQ.prototype,"embedCode_",void 0);_.V([_.n({value:!0}),_.H("design:type",Boolean)],lQ.prototype,"isPlayerControlsOptionChecked_",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],lQ.prototype,"isPrivacyModeOptionChecked_",void 0);_.V([_.n({value:!1,notify:!0}),_.H("design:type",Boolean)],lQ.prototype,"startAtChecked_",void 0);
_.V([_.n({value:0}),_.H("design:type",Number)],lQ.prototype,"startAtTimeStamp_",void 0);_.V([_.n({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],lQ.prototype,"isSquareAspectRatio_",void 0);_.V([_.lo("#video-preview"),_.H("design:type",HTMLElement)],lQ.prototype,"videoPreviewContainer",void 0);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lQ.prototype,"onYtPopupClosed_",null);
_.V([_.WU({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],lQ);
_.Y(lQ,"yt-sharing-embed-renderer",function(){if(gS2===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;K82===void 0&&(K82=document.createElement("template"));var X=K82;f.call(t,X.content.cloneNode(!0),A.content.firstChild);gS2=A}A=gS2;return A},{mode:2});var k0h={};
k0h.YtUnlimitedFamilyInterstitialBehavior=[_.I4.YtOpenPopupBehavior,_.jD.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(A){A=_.YP7(_.oO(A),"yt-button-renderer");return A?A.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(A){this.dialogHistory_.push(A)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var A=this.popFromHistory();if(A){var t={openPopupAction:{popupType:"DIALOG",popup:{}}};t.openPopupAction.popup[A.renderer]=A.data;this.showingPreviousDialog_=!0;this.openPopup(t)}},
handleOpenPopupAction_:function(A){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var t=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(X){return!!A.openPopupAction.popup[X]}),f=this.getElementName_();
t&&this.data&&(this.pushToHistory({renderer:f,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(A){if(A=_.C(A,LTQ))this.loading=!0,_.kJ(this.hostElement,"yt-open-create-family-dialog",[A,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var A=this.hostElement.nodeName.split("-").slice(1).map(function(t){return""+t[0].toUpperCase()+t.slice(1).toLowerCase()}).join("");
return A[0].toLowerCase()+A.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var riQ;var Axj;var NO=function(){return _.F.apply(this,arguments)||this};
_.R(NO,_.F);_.J=NO.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.kJ(this.hostElement,"yt-register-create-family-dialog");_.sF(this.hostElement).querySelector("#thumbnail").onShow()};
_.J.fireOnCloseCommand_=function(){var A;((A=this.data)==null?0:A.onCloseCommand)&&_.tl(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.J.onYtServiceRequestSent_=function(A,t){t&&t.endpoint&&_.C(t.endpoint,_.qJ)||(this.loading=!0)};
_.J.onYtServiceRequestCompleted_=function(){var A=this.hostElement.parentElement;A.close&&A.close();this.loading=!1};
_.J.openPopupHandler_=function(A){if(A.detail==this){var t;((t=this.data)==null?0:t.onOpenCommands)&&_.tl(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.J.closePopupHandler_=function(A,t){this.fireOnCloseCommand_();if(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1){var f;((f=this.data)==null?0:f.onDismissCommands)&&_.tl(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.J.dataChanged_=function(){this.loading=!1};
NO.prototype.dataChanged_=NO.prototype.dataChanged_;NO.prototype.closePopupHandler_=NO.prototype.closePopupHandler_;NO.prototype.openPopupHandler_=NO.prototype.openPopupHandler_;NO.prototype.onYtServiceRequestCompleted_=NO.prototype.onYtServiceRequestCompleted_;NO.prototype.onYtServiceRequestSent_=NO.prototype.onYtServiceRequestSent_;_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],NO.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],NO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(k0h.YtUnlimitedFamilyInterstitialBehavior),_.H("design:type",Object)],NO.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],NO.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],NO.prototype,"loading",void 0);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],NO.prototype,"onYtServiceRequestSent_",null);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],NO.prototype,"onYtServiceRequestCompleted_",null);
_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],NO.prototype,"openPopupHandler_",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],NO.prototype,"closePopupHandler_",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NO.prototype,"dataChanged_",null);
_.V([_.WU({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],NO);
_.Y(NO,"yt-unlimited-family-message-interstitial-renderer",function(){if(Axj===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;riQ===void 0&&(riQ=document.createElement("template"));var X=riQ;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Axj=A}A=Axj;return A},{mode:2});var toA;var fV3;var uQ=function(){return _.F.apply(this,arguments)||this};
_.R(uQ,_.F);uQ.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"}}}};
uQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.sF(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(A){A.onShow()});
_.sF(this.hostElement).querySelector("#main-thumbnail").onShow()};
uQ.prototype.onButtonTap_=function(A){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(A)};
uQ.prototype.computeMainThumbnailWidth_=function(A){return A&&A.length!==0?72:96};
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.V([_.b(k0h.YtUnlimitedFamilyInterstitialBehavior),_.H("design:type",Object)],uQ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],uQ.prototype,"data",void 0);
_.V([_.n({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.H("design:type",Number)],uQ.prototype,"mainThumbnailWidth_",void 0);_.V([_.n({value:function(){return this.onButtonTap_.bind(this)}}),
_.H("design:type",Function)],uQ.prototype,"boundButtonTap_",void 0);_.V([_.WU({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],uQ);
_.Y(uQ,"yt-unlimited-family-profile-interstitial-renderer",function(){if(fV3===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;toA===void 0&&(toA=document.createElement("template"));var X=toA;f.call(t,X.content.cloneNode(!0),A.content.firstChild);fV3=A}A=fV3;return A},{mode:2});var XB2;var Q5d;var z2=function(){var A=_.F.apply(this,arguments)||this;A.sliderAriaValueText_=null;A.selectedIndex_=0;A.messages={PAUSE_SLIDER:_.e5("PAUSE_SLIDER",void 0,"Pause Duration")};return A};
_.R(z2,_.F);_.J=z2.prototype;_.J.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_]]"}}}}}};
_.J.onPopupOpened_=function(A){A.detail==this&&_.M("enable_premium_voluntary_pause")&&(_.kJ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.setDialogData=function(A){this.data=A;this.resetSlider_()};
_.J.dataChanged_=function(){this.data&&this.resetSlider_()};
_.J.onSubmitTap_=function(){if(this.data.confirmCommand){var A=this.data.confirmCommand;_.C(A,_.UMT)&&_.Al(this.hostElement,[A,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.J.onExitButtonTap_=function(){_.kJ(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.J.closePopupHandler_=function(A,t){(t&&t.canceled===!0||t.canceled===!1&&t.confirmed===!1)&&this.handleOnDismissCommands_()};
_.J.onSliderChange_=function(){this.selectedIndex_=_.sF(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.J.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.J.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.J.resetSlider_=function(){if(this.data){var A=this.data.defaultEndOptionIndex||0,t=_.sF(this.hostElement).querySelector("#id-pause-slider");if(t.immediateValue<A)for(;t.immediateValue!=A;)t.increment();else if(A<t.immediateValue)for(;t.immediateValue!=A;)t.decrement();this.selectedIndex_=A;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.J.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.tl(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.tl(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.loading=!0};
_.J.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
z2.prototype.onYtServiceRequestCompleted=z2.prototype.onYtServiceRequestCompleted;z2.prototype.onYtServiceRequestSent=z2.prototype.onYtServiceRequestSent;z2.prototype.closePopupHandler_=z2.prototype.closePopupHandler_;z2.prototype.dataChanged_=z2.prototype.dataChanged_;z2.prototype.onPopupOpened_=z2.prototype.onPopupOpened_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],z2.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],z2.prototype,"loading",void 0);_.V([_.n(),_.H("design:type",Number)],z2.prototype,"selectIndexMax_",void 0);_.V([_.n(),_.H("design:type",Object)],z2.prototype,"selectedData_",void 0);
_.V([_.n(),_.H("design:type",Object)],z2.prototype,"sliderAriaValueText_",void 0);_.V([_.n({value:function(){return this.onSubmitTap_.bind(this)}}),
_.H("design:type",Function)],z2.prototype,"onButtonTap_",void 0);_.V([_.n({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.H("design:type",Function)],z2.prototype,"onSecondaryTap_",void 0);_.V([_.n(),_.H("design:type",Object)],z2.prototype,"messages",void 0);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],z2.prototype,"onPopupOpened_",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],z2.prototype,"dataChanged_",null);
_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],z2.prototype,"closePopupHandler_",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],z2.prototype,"onYtServiceRequestSent",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],z2.prototype,"onYtServiceRequestCompleted",null);_.V([_.WU({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],z2);
_.Y(z2,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Q5d===void 0){var A=document.createElement("template");_.m(A,'\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>');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;XB2===void 0&&(XB2=document.createElement("template"));var X=XB2;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Q5d=A}A=Q5d;return A},{mode:2});var qS2;var JxQ;var Ph=function(){return _.F.apply(this,arguments)||this};
_.R(Ph,_.F);Ph.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.ho("vcBalanceRenderer")}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Ph.prototype,"data",void 0);_.V([_.WU({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Ph);
_.Y(Ph,"yt-vc-offer-layout-header-renderer",function(){if(JxQ===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;qS2===void 0&&(qS2=document.createElement("template"));var X=qS2;f.call(t,X.content.cloneNode(!0),A.content.firstChild);JxQ=A}A=JxQ;return A},{mode:2});var UE2;var ePd;var Gem;var lV2;var T2=function(){return _.F.apply(this,arguments)||this};
_.R(T2,_.F);T2.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.PV.Object.defineProperties(T2.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)}}});
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.v8A.YtTappableItemBehavior),_.H("design:type",Object)],T2.prototype,"ytTappableItemBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],T2.prototype,"data",void 0);
_.V([_.n({reflectToAttribute:!0}),_.y("data.accessibilityText"),_.H("design:type",String),_.H("design:paramtypes",[])],T2.prototype,"ariaLabel",null);_.V([_.n({reflectToAttribute:!0}),_.y("data.style"),_.H("design:type",String),_.H("design:paramtypes",[])],T2.prototype,"vcOfferStyle",null);_.V([_.y("data.style","data.titleText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],T2.prototype,"showTitleText",null);_.V([_.WU({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],T2);
_.Y(T2,"yt-vc-offer-renderer",function(){if(lV2===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Gem===void 0&&(Gem=document.createElement("template"));var X=Gem;f.call(t,X.content.cloneNode(!0),A.content.firstChild);lV2=A}A=lV2;return A},{mode:2});var iQ=function(){return _.F.apply(this,arguments)||this};
_.R(iQ,_.F);iQ.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}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],iQ.prototype,"data",void 0);_.V([_.WU({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],iQ);
_.Y(iQ,"yt-vc-offer-layout-renderer",function(){if(ePd===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;UE2===void 0&&(UE2=document.createElement("template"));var X=UE2;f.call(t,X.content.cloneNode(!0),A.content.firstChild);ePd=A}A=ePd;return A},{mode:2});var Nl8;var uaj;var zPj;var P3c;var Oo=function(){return _.F.apply(this,arguments)||this};
_.R(Oo,_.F);Oo.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}}}}}};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Oo.prototype,"data",void 0);_.V([_.WU({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Oo);
_.Y(Oo,"yt-ypc-offers-modal-top-bar-renderer",function(){if(P3c===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;zPj===void 0&&(zPj=document.createElement("template"));var X=zPj;f.call(t,X.content.cloneNode(!0),A.content.firstChild);P3c=A}A=P3c;return A},{mode:2});var ch=function(){return _.F.apply(this,arguments)||this};
_.R(ch,_.F);ch.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"}}}}};
ch.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
ch.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var A=this.scrollable;A.attached&&typeof A.attached==="function"&&A.attached()};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],ch.prototype,"ytRendererstamperBehavior",void 0);_.V([_.lo("#scrollable"),_.H("design:type",Object)],ch.prototype,"scrollable",void 0);_.V([_.n(),_.H("design:type",Object)],ch.prototype,"data",void 0);_.V([_.WU({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],ch);
_.Y(ch,"yt-ypc-offers-modal-renderer",function(){if(uaj===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Nl8===void 0&&(Nl8=document.createElement("template"));var X=Nl8;f.call(t,X.content.cloneNode(!0),A.content.firstChild);uaj=A}A=uaj;return A},{mode:2});var Tl_;var iuQ;var Bh=function(){return _.F.apply(this,arguments)||this};
_.R(Bh,_.F);_.J=Bh.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.sF(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.J.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.kJ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.J.onYtPopupOpened_=function(A,t){(t==null?void 0:t.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.tl(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.onYtPopupClosed_=function(A,t){this.continueButtonTapped||t&&(t.canceled===!0||t.canceled===!1&&t.confirmed===!1)&&this.data.onDismissCommands&&_.tl(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestError_=function(A){this.set("showSpinner",!1);_.jL(this.hostElement,A.detail.error.message)};
_.J.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.M("enable_ypc_spinners")?_.kJ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Bh.prototype.onYtServiceRequestError_=Bh.prototype.onYtServiceRequestError_;Bh.prototype.onYtPopupClosed_=Bh.prototype.onYtPopupClosed_;Bh.prototype.onYtPopupOpened_=Bh.prototype.onYtPopupOpened_;Bh.prototype.onYtServiceRequestCompleted_=Bh.prototype.onYtServiceRequestCompleted_;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.n(),_.H("design:type",Object)],Bh.prototype,"data",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Bh.prototype,"showSpinner",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],Bh.prototype,"continueButtonTapped",void 0);_.V([_.n({value:function(){return this.onContinueTapped_.bind(this)}}),
_.H("design:type",Function)],Bh.prototype,"bindOnContinueTapped_",void 0);_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Bh.prototype,"onYtServiceRequestCompleted_",null);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Bh.prototype,"onYtPopupOpened_",null);
_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Bh.prototype,"onYtPopupClosed_",null);_.V([_.UQ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Bh.prototype,"onYtServiceRequestError_",null);_.V([_.WU({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Bh);
_.Y(Bh,"yt-ypc-upgrade-dialog-renderer",function(){if(iuQ===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Tl_===void 0&&(Tl_=document.createElement("template"));var X=Tl_;f.call(t,X.content.cloneNode(!0),A.content.firstChild);iuQ=A}A=iuQ;return A},{mode:2});var Oud;var cx3;var MO=function(){return _.F.apply(this,arguments)||this};
_.R(MO,_.F);MO.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
MO.prototype.computeHasButtons_=function(A){return!(!A.dismissButton&&!A.confirmButton)};
MO.prototype.computeStyle_=function(A){return A||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],MO.prototype,"ytEventForwardingBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],MO.prototype,"data",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],MO.prototype,"positionType",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.H("design:type",Boolean)],MO.prototype,"hasButtons_",void 0);_.V([_.n({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.H("design:type",Boolean)],MO.prototype,"style_",void 0);_.V([_.WU({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],MO);
_.Y(MO,"yt-bubble-hint-renderer",function(){if(cx3===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;Oud===void 0&&(Oud=document.createElement("template"));var X=Oud;f.call(t,X.content.cloneNode(!0),A.content.firstChild);cx3=A}A=cx3;return A},{mode:2});var Blc;var Mo3;var CJ=function(){var A=_.TS.apply(this,arguments)||this;A.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return A};
_.R(CJ,_.TS);_.J=CJ.prototype;_.J.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.J.attached=function(){var A=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){A.$.thumbnail.onShow();A.$["header-image"].onShow()})};
_.J.handleCheckBoxUpdateAction_=function(A){this.canShowCheckboxEnabledConfirmButton=A};
_.J.computeUseOverlayForSpinner_=function(A,t){return!!A&&t};
_.J.computeShowSpinner_=function(A,t){return A||!!t};
_.J.fireOnCloseActions_=function(){var A,t=_.U(((A=this.data)==null?void 0:A.onClosedActions)||[]);for(A=t.next();!A.done;A=t.next())this.ytRendererBehavior.resolveCommand(A.value)};
_.J.fireOnOpenCommands_=function(A){var t,f=(t=this.data)==null?void 0:t.onOpenCommands;if(f)for(A.stopImmediatePropagation(),A=_.U(f),t=A.next();!t.done;t=A.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.J.fireOnDismissCommands_=function(A){var t,f=(t=this.data)==null?void 0:t.onDismissCommands;if(f)for(A.stopImmediatePropagation(),A=_.U(f),t=A.next();!t.done;t=A.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.J.openPopupHandler_=function(A){A.detail==this&&this.fireOnOpenCommands_(A)};
_.J.closePopupHandler_=function(A,t){_.r2(this,"yt-confirm-dialog-close-action",[t]);this.fireOnCloseActions_();(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1)&&this.fireOnDismissCommands_(A)};
_.J.onHeaderImageChanged_=function(){var A;((A=this.data)==null?0:A.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.J.computeHasHeaderImageWidth_=function(A){return A!=void 0};
_.J.computeHasLoadingMessage=function(A){return!!A};
_.J.onHeaderImageWidthChanged_=function(){var A,t=(A=this.data)==null?void 0:A.headerImageWidth;if(t){if(A=1.25*t*2+t,this.$.main.style.width=A+"px",t=this.$.scroller.firstElementChild)t.style.minWidth=A+"px"}else this.$.main.style.width="100%"};
_.J.onThumbnailChanged_=function(){var A;((A=this.data)==null?0:A.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")};
_.J.onYtNavigate_=function(A){A=_.oO(A);A instanceof Node&&_.kO(this.$["confirm-button"]).contains(A)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.J.computePrimaryIsCancel_=function(A){return A};
_.J.computeIsCancelButtonHidden_=function(A){return A.skipCancelButton||!A.cancelButton};
_.J.computeIsCheckboxHidden_=function(A){return!A.checkbox};
_.J.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.J.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.J.onYtServiceRequestCompleted_=function(){var A;((A=this.data)==null?0:A.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.PV.Object.defineProperties(CJ,{template:{configurable:!0,enumerable:!0,get:function(){if(Mo3===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;Blc===void 0&&(Blc=document.createElement("template"));var X=Blc;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Mo3=A}A=Mo3;return A}}});
CJ.prototype.onYtServiceRequestCompleted_=CJ.prototype.onYtServiceRequestCompleted_;CJ.prototype.onYtServiceRequestSent_=CJ.prototype.onYtServiceRequestSent_;CJ.prototype.onThumbnailLoaded_=CJ.prototype.onThumbnailLoaded_;CJ.prototype.onYtNavigate_=CJ.prototype.onYtNavigate_;CJ.prototype.onThumbnailChanged_=CJ.prototype.onThumbnailChanged_;CJ.prototype.onHeaderImageWidthChanged_=CJ.prototype.onHeaderImageWidthChanged_;CJ.prototype.onHeaderImageChanged_=CJ.prototype.onHeaderImageChanged_;
CJ.prototype.closePopupHandler_=CJ.prototype.closePopupHandler_;CJ.prototype.openPopupHandler_=CJ.prototype.openPopupHandler_;_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],CJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);
_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],CJ.prototype,"ytEventForwardingBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],CJ.prototype,"data",void 0);_.V([_.n({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.H("design:type",Boolean)],CJ.prototype,"primaryIsCancel",void 0);_.V([_.n({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.H("design:type",Boolean)],CJ.prototype,"isCancelButtonHidden",void 0);
_.V([_.n({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.H("design:type",Boolean)],CJ.prototype,"isCheckboxHidden",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],CJ.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.V([_.n({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.H("design:type",Boolean)],CJ.prototype,"useOverlayForSpinner_",void 0);
_.V([_.n({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.H("design:type",Boolean)],CJ.prototype,"showSpinner_",void 0);_.V([_.n({value:!1}),_.H("design:type",Boolean)],CJ.prototype,"isActionInProgress_",void 0);_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.H("design:type",Boolean)],CJ.prototype,"hasHeaderImageWidth_",void 0);
_.V([_.n({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.H("design:type",Boolean)],CJ.prototype,"hasLoadingMessage",void 0);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],CJ.prototype,"openPopupHandler_",null);_.V([_.UQ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],CJ.prototype,"closePopupHandler_",null);
_.V([_.ev("data.headerImage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CJ.prototype,"onHeaderImageChanged_",null);_.V([_.ev("data.headerImageWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CJ.prototype,"onHeaderImageWidthChanged_",null);_.V([_.ev("data.thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CJ.prototype,"onThumbnailChanged_",null);
_.V([_.UQ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],CJ.prototype,"onYtNavigate_",null);_.V([_.UQ("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CJ.prototype,"onThumbnailLoaded_",null);_.V([_.UQ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.Dn]),_.H("design:returntype")],CJ.prototype,"onYtServiceRequestSent_",null);
_.V([_.UQ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.oM]),_.H("design:returntype")],CJ.prototype,"onYtServiceRequestCompleted_",null);_.V([_.WU({is:"yt-confirm-dialog-renderer",noInjection:!0})],CJ);var C3d;var hPh;var hj=function(){return _.F.apply(this,arguments)||this};
_.R(hj,_.F);hj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.sF(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
hj.prototype.computeConfirmButton_=function(A){var t={text:A.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};A.confirmNavigationEndpoint?t.navigationEndpoint=A.confirmNavigationEndpoint:A.confirmServiceEndpoint&&(t.serviceEndpoint=A.confirmServiceEndpoint);return t};
hj.prototype.computeShowTitle_=function(A){return!(A==null||!A.title)};
_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],hj.prototype,"data",void 0);_.V([_.n({computed:"computeShowTitle_(data)"}),_.H("design:type",Boolean)],hj.prototype,"showTitle",void 0);_.V([_.WU({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],hj);
_.Y(hj,"yt-fancy-dismissible-dialog-renderer",function(){if(hPh===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;C3d===void 0&&(C3d=document.createElement("template"));var X=C3d;f.call(t,X.content.cloneNode(!0),A.content.firstChild);hPh=A}A=hPh;return A});var RP_;var mE2;var Rx=function(){var A=_.F.apply(this,arguments)||this;A.spinnerActive=!1;return A};
_.R(Rx,_.F);Rx.prototype.created=function(){MQ2(2201)};
Rx.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Rx.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Rx.prototype.onIronOverlayClosed=Rx.prototype.onIronOverlayClosed;Rx.prototype.onIronOverlayOpened=Rx.prototype.onIronOverlayOpened;_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.lJ),_.H("design:type",Object)],Rx.prototype,"tpYtIronOverlayBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Rx.prototype,"data",void 0);_.V([_.n(),_.H("design:type",Object)],Rx.prototype,"spinnerActive",void 0);
_.V([_.UQ("iron-overlay-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rx.prototype,"onIronOverlayOpened",null);_.V([_.UQ("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rx.prototype,"onIronOverlayClosed",null);_.V([_.WU({is:"yt-loading-renderer",disableElementRegistration:!0})],Rx);
_.Y(Rx,"yt-loading-renderer",function(){if(mE2===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;RP_===void 0&&(RP_=document.createElement("template"));var X=RP_;f.call(t,X.content.cloneNode(!0),A.content.firstChild);mE2=A}A=mE2;return A},{mode:2});var buh;var Wec;var m2=function(){var A=_.F.apply(this,arguments)||this;A.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);A.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);A.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.R(m2,_.F);_.J=m2.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.J.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.J.openPopupHandler_=function(A){A.detail===this.hostElement&&this.hostElement.hidden&&_.kJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.J.onDismissButtonTap_=function(){var A;this.closeOnDismissButton_.has(((A=this.data)==null?void 0:A.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.kJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.onAcceptButtonTap_=function(){var A;this.closeOnAcceptButton_.has(((A=this.data)==null?void 0:A.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.kJ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.computeHasHeader_=function(A){return!!A.headerBackgroundImage};
_.J.computeLayoutStyle_=function(A){return A};
_.J.computePopupSize_=function(A){return A};
_.J.computeIconType_=function(A){return A.dialogIcon&&A.dialogIcon.iconType?A.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":A.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":A.dialogIcon.iconType:""};
_.J.computeIsLogo_=function(A){return!!A.dialogIcon&&!!A.dialogIcon.iconType&&(A.dialogIcon.iconType==="YOUTUBE_LOGO"||A.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||A.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.J.computeHasCustomLogo=function(A){return!(A==null||!A.headerForegroundImage)};
_.J.computeCustomLogo=function(A,t){if(A!=null&&A.headerForegroundImage)return A.headerForegroundImageDark?t?A.headerForegroundImageDark:A.headerForegroundImage:A.headerForegroundImage};
_.J.computeHeaderBackgroundImage=function(A,t){if(A!=null&&A.headerBackgroundImage)return t&&(A==null?0:A.headerBackgroundImageDark)?A.headerBackgroundImageDark:A.headerBackgroundImage};
_.J.shouldShowIconContainer=function(A,t){return A&&!t};
_.J.shouldShowNonYouTubeIcon=function(A,t){return!A&&!t};
_.J.getLogoImageId=function(A){var t,f,X;return(A=(t=this.computeCustomLogo(A,this.isDarkTheme))==null?void 0:(f=t.thumbnails)==null?void 0:(X=f[0])==null?void 0:X.height)&&A%31===0?"custom-logo-with-padding":"custom-logo"};
m2.prototype.openPopupHandler_=m2.prototype.openPopupHandler_;m2.prototype.dataChanged_=m2.prototype.dataChanged_;_.V([_.b(_.R4.YtRendererstamperBehavior),_.H("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.V([_.n(),_.H("design:type",Boolean)],m2.prototype,"isDarkTheme",void 0);
_.V([_.n({computed:"computeCustomLogo(data, isDarkTheme)"}),_.H("design:type",Object)],m2.prototype,"customLogo",void 0);_.V([_.n({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.H("design:type",Object)],m2.prototype,"headerBackgroundImage",void 0);_.V([_.n(),_.H("design:type",Object)],m2.prototype,"data",void 0);_.V([_.n({computed:"computeHasHeader_(data)"}),_.H("design:type",Boolean)],m2.prototype,"hasHeader",void 0);
_.V([_.n({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.H("design:type",Object)],m2.prototype,"layoutStyle",void 0);_.V([_.n({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.H("design:type",Object)],m2.prototype,"popupSize",void 0);_.V([_.n({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],m2.prototype,"hasLogo",void 0);
_.V([_.n({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],m2.prototype,"hasCustomLogo",void 0);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m2.prototype,"dataChanged_",null);_.V([_.UQ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],m2.prototype,"openPopupHandler_",null);
_.V([_.WU({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],m2);
_.Y(m2,"yt-upsell-dialog-renderer",function(){if(Wec===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;buh===void 0&&(buh=document.createElement("template"));var X=buh;f.call(t,X.content.cloneNode(!0),A.content.firstChild);Wec=A}A=Wec;return A},{mode:2});var yx8=_.I(function(A){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.u(_.P,{cond:A.title,then:function(t){return _.u("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},t)}}))},"Dj"),vM3=_.I(function(A){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.u(_.P1,{data:A.closeButton},{buttonViewModel:function(t){return _.u("div",null,_.u(_.nx,{data:t.data}))}}))},"Ej"),Lej=_.I(function(A){var t=A.data;
return _.u(_.Tw,null,_.u("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.u("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.u(_.P,{cond:function(){return!!t().image&&!!t().title},
then:function(){return _.u(_.YA,{data:function(){return t().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.u("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.u(_.P,{cond:function(){return t().title},
then:function(f){return _.u("h3",{class:"miniAppGameInfoDialogViewModelTitle"},f)}}),_.u(_.P,{cond:function(){return t().primaryGenre},
then:function(f){return _.u("span",{class:"miniAppGameInfoDialogViewModelGenre"},f)}}))),_.u(_.P,{cond:function(){var f=t().description;
return f&&f.length<=150},
then:function(){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.u("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return t().description}))}}))},"Fj"),pBy=_.I(function(A){A=A.infoRows;
var t=_.Px().resolve(_.hm),f=_.M("enable_displaying_ppn");return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.u(_.xk,{each:A},function(X){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.u(_.P,{cond:function(){return X.label},
then:function(Q){return _.u("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},Q)}}),_.u(_.P,{cond:function(){return X.attributedLabel},
then:function(Q){return _.u("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.u(_.zL,{text:Q,noPreWrap:!0}))}}),_.u(_.P,{cond:function(){return X.value},
then:function(Q){return _.u("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},Q)}}),_.u(_.P,{cond:function(){return X.attributedValue},
then:function(Q){return _.u("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.u(_.zL,{text:Q,noPreWrap:!0}))}}))}),_.u(_.P,{cond:function(){return f&&t.clientData.has("post_play_nonce")},
then:function(){return _.u("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.u("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.u("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},t.getData("post_play_nonce")))}}))},"Gj"),EM3=_.I(function(A){var t=A.data;
return _.u("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.u(yx8,{title:function(){return t().dialogTitle}}),_.u(Lej,{data:t}),_.u(_.P,{cond:function(){return t().infoRow},
then:function(f){return _.u(pBy,{infoRows:f})}}),_.u(vM3,{closeButton:function(){return t().closeButton}}))},"Hj");
EM3.idomCompat=!0;_.Hn(EM3,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;return _.u("yt-gulp-triggering-dialog-view-model",{class:_.Ao("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.u(_.YA,{data:function(){return t().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.u("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.u("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.u("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.u(_.zL,{text:function(){return t().title}})),_.u(_.P,{cond:function(){return t().bodyText},
then:function(f){return _.u(_.xk,{each:f},function(X){return _.u("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.u(_.zL,{text:X}))})}})),_.u("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.u(_.P1,{data:function(){return t().dismissButton}},{buttonViewModel:function(f){return _.u("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.u(_.nx,{data:f.data}))}}),_.u(_.P1,{data:function(){return t().actionButton}},{buttonViewModel:function(f){return _.u("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.u(_.nx,{data:f.data}))}}))))},"Ij"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.PS}});var nM2=_.I(function(A){var t=A.data;A=_.dR(function(){return t().agreements},[]);
return _.u("installment-agreements-view-model",{class:_.Ao("ytInstallmentAgreementsViewModelHost")},_.u(_.xk,{each:A},function(f){return _.u("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.u("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.u(_.zL,{text:f.label})),_.u("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.u(_.P1,{data:function(){return f.openButton}},{buttonViewModel:_.nx})))}))},"Jj");
nM2.idomCompat=!0;var DEy=_.I(function(A){var t=_.U(_.Jo(function(){var K,k;return((K=A.data().createPlaylistDialogFormSchema)==null?0:(k=K.initialValues)==null?0:k.title)?A.data().createPlaylistDialogFormSchema.initialValues.title:""})),f=t.next().value,X=t.next().value;
t=_.U(_.Jo(function(){A.data();return!1}));
var Q=t.next().value,q=t.next().value;t=_.U(_.Jo(function(){A.data();return!1}));
var e=t.next().value,G=t.next().value;t=_.U(_.Jo(function(){var K,k;return(K=A.data().createPlaylistDialogFormSchema)==null?void 0:(k=K.initialValues)==null?void 0:k.visibility}));
var N=t.next().value,z=t.next().value;t=_.U(_.Jo(function(){A.data();return!1}));
var T=t.next().value,O=t.next().value;t=_.U(_.Jo(function(){var K,k;return(K=A.data().createPlaylistDialogFormSchema)==null?void 0:(k=K.initialValues)==null?void 0:k.isCollaborative}));
var c=t.next().value,B=t.next().value,h=_.GU("div");_.oo(function(){var K=h.value.querySelector("textarea");K&&(K.value=f())},"axFRaf");
_.oh(function(){var K;_.jwh((K=A.data().createPlaylistDialogFormSchema)==null?void 0:K.id,{onSubmit:function(){var k=f();var Gz=N(),Tz=c(),y5=A.data();k={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:k,privacyStatus:Gz,videoIds:y5.videoIds,sourcePlaylistId:y5.sourcePlaylistId,params:Tz?y5.createPlaylistParamsCollaborationEnabled:y5.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.Px().resolve(_.i2).resolveCommand(k)},
isValid:function(){return Q()&&!e()&&!T()}})});
var W=function(K){if(K!==void 0&&(X(K),!Q()&&K.length>0&&q(!0),Q())){var k=mFd(A.data());if(k){var Gz=k.minLength;k=k.maxLength;Gz&&K.length<Gz?G(!0):k&&K.length>k?G(!0):G(!1)}}},L=function(){var K=!(!c()||N()!=="PRIVATE");
O(K)},E=function(K){K!==void 0&&(z(K),L())},D=function(){if(T())return W9A(A.data())},S=function(){B(!c());
L()},Z=function(){return{validate:function(K){if(Q()){var k=mFd(A.data());
if(k){var Gz=k.minLength;k=k.translations;if(Gz&&K.length<Gz)return k==null?void 0:k.minLengthErrorMessage}}}}},d=function(){var K=mFd(A.data()),k=K==null?void 0:K.maxLength,Gz;
K=K==null?void 0:(Gz=K.translations)==null?void 0:Gz.maxLengthErrorMessage;if(k&&K)return{maxChars:k,errorMessage:K}};
return _.u("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.u("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:h},_.u(_.P1,{data:function(){return A.data().playlistTitle}},{textFormFieldViewModel:function(K){return _.u(_.$_3,{data:K.data,
text:f,onInput:W,validation:Z,characterLimit:d})},
textFieldViewModel:function(K){return _.u(_.Sph,{data:K.data,text:f,onInput:W,validation:Z,characterLimit:d})}})),_.u("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.u(_.P1,{data:function(){return A.data().playlistVisibility}},{dropdownViewModel:function(K){return _.u(_.tIw,{data:K.data,
onSelected:E,error:D})}})),_.u(_.P,{cond:function(){return!!A.data().playlistCollaborate},
then:function(){return _.u("div",null,_.u(_.P1,{data:function(){return A.data().playlistCollaborate}},{switchListItemViewModel:function(K){return _.u(_.mDp,{data:K.data,
onTap:S})}}))}}))},"Lj");var Fey=_.I(function(A){var t=A.data;return _.u("upsell-offer-table-cell-content-view-model",null,_.u("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.u(_.j2,null,_.u(_.FE,{when:function(){var f;return(f=t().icon)==null?void 0:f.iconType}},function(){return _.u("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.u(_.el,{icon:function(){var f;
return(f=t().icon)==null?void 0:f.iconType.toString()}}))}),_.u(_.FE,{when:function(){return t().title}},function(){return _.u(_.zL,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return t().title}})}),_.u(_.FE,{when:function(){return t().subtitle}},function(){return _.u(_.zL,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return t().subtitle}})}),_.u(_.FE,{when:function(){return t().infoText}},function(){return _.u(_.zL,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return t().infoText}})}),_.u(_.FE,{when:function(){return t().featureDescription}},function(){return _.u(_.zL,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return t().featureDescription}})}),_.u(_.FE,{when:function(){return t().note}},function(){return _.u(_.zL,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return t().note}})})),_.u(_.P,{cond:function(){var f;
return(f=t().icon)==null?void 0:f.iconAccessibilityText},
then:function(){return _.u("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var f;return(f=t().icon)==null?void 0:f.iconAccessibilityText})}})))},"Mj");
Fey.idomCompat=!0;var IV2=_.I(function(A){var t=A.data;var f=A.cellIndex;var X=A.rowIndex;return _.u("upsell-offer-table-cell-view-model",null,_.u("div",{class:_.Ao("ytUpsellOfferTableCellViewModelCellWrapper",function(){return t().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":t().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var Q,q;return"cell-"+((Q=X==null?void 0:X())!=null?Q:0)+"-"+((q=f==null?void 0:f())!=null?q:0)},
role:function(){return t().isFirstRow?"columnHeader":t().isFirstColumn?"rowheader":"gridcell"}},_.u(_.P1,{data:function(){return t().contents}},{upsellOfferTableCellContentViewModel:Fey})))},"Nj");
IV2.idomCompat=!0;var xE2=_.I(function(A){var t=A.data;var f=A.upsellTableIsFirstRow;var X=A.rowIndex;var Q=function(){return(f==null?0:f())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},q=function(){return(f==null?0:f())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.u("ytm-upsell-offer-table-row-view-model",null,_.u("div",{class:function(){return(f==null?0:f())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(X==null?void 0:X())+"-1 cell-"+(X==null?void 0:X())+"-2"}},_.u(_.P1,{data:function(){return t().rowHeaderCell}},{upsellOfferTableCellViewModel:function(e){return _.u("div",{class:Q},_.u(IV2,{data:e.data,
cellIndex:0,rowIndex:X}))}}),_.u("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.u(_.P1,{data:function(){return t().contentCells}},{upsellOfferTableCellViewModel:function(e,G){return _.u("div",{class:q},_.u(IV2,{data:e.data,
cellIndex:function(){return G()+1},
rowIndex:X}))}}))))},"Oj");
xE2.idomCompat=!0;var j5d=_.I(function(A){var t=A.data;return _.u("ytm-upsell-offer-table-view-model",null,_.u("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.u("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.u(_.P1,{data:function(){return t().rows}},{upsellOfferTableRowViewModel:function(f,X){return _.u(xE2,{data:f.data,
upsellTableIsFirstRow:function(){return X()===0},
rowIndex:X})}}))))},"Pj");
j5d.idomCompat=!0;var YSQ=_.I(function(A){var t=function(){return A.data()},f=_.dR(A.noPadding,!1),X=function(){var q,e;
return(e=(q=t().logo.accessibilityData)==null?void 0:q.label)!=null?e:""},Q={};
return _.u("upsell-view-model",{class:_.Ao("ytUpsellViewModelHost",(Q.ytUpsellViewModelHostNoPadding=function(){return f()},Q.ytUpsellViewModelHostWide=function(){return t().offerTable!==void 0},Q))},_.u("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.u(_.P,{cond:function(){return _.Fl(t().logo)},
then:function(q){return _.u(_.YA,{data:q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:X})}})),_.u("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1},_.u(_.zL,{text:function(){return t().title}})),_.u("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.u(_.xk,{each:function(){var q;
return(q=t().subtitles)!=null?q:[]},
keyBy:"INDEX"},function(q){var e={};return _.u("div",{class:_.Ao("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(e.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return t().offerTable!==void 0},e))},_.u(_.zL,{text:q}))})),_.u("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.u(_.xk,{each:function(){var q;
return(q=t().benefitInfos)!=null?q:[]},
keyBy:"INDEX"},function(q){return _.u(_.P,{cond:function(){return q().info},
then:function(e){return _.u("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.u(_.el,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.u(_.zL,{text:e}))}})})),_.u(_.P,{cond:function(){return t().offerTable!==void 0},
then:function(){return _.u("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.u(_.P1,{data:function(){return t().offerTable}},{upsellOfferTableViewModel:function(q){return _.u(j5d,{data:q.data})}}))}}),_.u("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.u(_.xk,{each:function(){var q;
return(q=t().legalInfos)!=null?q:[]},
keyBy:"INDEX"},function(q){var e={};return _.u("div",{class:_.Ao("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(e.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return t().offerTable!==void 0},e))},_.u(_.zL,{text:q}))})))},"Qj");var Vo3=_.I(function(A){var t=A.data;A={};A=(A.ytMiniAppScoreChallengeViewModelScoreRadial=!0,A.ytMiniAppScoreChallengeViewModelDarkScoreRadial=y18(),A);return _.u("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.u("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return t().title}),_.u("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return t().subtitle}),_.u("div",{class:_.CW(A)},_.u("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return t().score})),_.u("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return t().prompt}))},"Rj");var Zuw=function(){this.store=_.ZK();this.formId=""};
Zuw.prototype.onInit=function(A){A.formId&&(this.formId=A.formId,this.store.dispatch(_.r0({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var oM8=_.I(function(A){function t(G){if(G&&(G=_.C(G,_.On)))return Object.assign({},G,{isSelected:q()})}
var f=_.U(_.Jo(function(){var G,N;return(N=(G=_.C(A.data().option,_.On))==null?void 0:G.isSelected)!=null?N:!1})),X=f.next().value,Q=f.next().value,q=X;
_.oh(function(){var G;_.jwh((G=A.data().formSchema)==null?void 0:G.id,{onSubmit:function(){var N=_.Px().resolve(_.i2),z=!!A.data().selectedCommand,T=!!A.data().unselectedCommand;if(q()){if(z)var O=A.data().selectedCommand}else T&&(O=A.data().unselectedCommand);O=_.bP(O);t(A.data().option)&&!O?(N="",!z&&T?N="selected ":z&&!T&&(N="unselected "),z=new _.xj("No "+N+"command found for SelectionListItemFormViewModel"),_.HQ(z)):O&&N.resolveCommand(O)},
isValid:function(){return!0}})});
var e=function(){Q(!q())};
_.dD(function(){var G,N,z=(G=A.data())==null?void 0:(N=G.formSchema)==null?void 0:N.id;z&&_.uj()().delete(z)});
return _.u("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.u("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.u(_.zL,{text:function(){return A.data().paragraph}})),_.u(_.P,{cond:function(){return t(A.data().option)},
then:function(G){return _.u(_.zN,{data:G,isCompact:!0,hideSelectionTextChevron:!0,onTap:e,disableHorizontalPadding:!0})}}))},"Sj");var dEm=_.I(function(A){var t=A.data;var f=A.disablePadding;var X=A.className;var Q=_.GU("yt-dialog-header-view-model"),q=function(){var G=t().imageBanner;a:switch(t().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var N="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:N="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:G,style:N,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},e=function(){return t().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.oh(function(){var G=function(){_.kJ(Q.value,"yt-refit-popups-action")},N;
(N=Q.value)==null||N.addEventListener("image-loaded",G);_.dD(function(){var z;(z=Q.value)==null||z.removeEventListener("image-loaded",G)})});
A={};return _.u("yt-dialog-header-view-model",{el:Q,class:_.Ao(X,(A.ytDialogHeaderViewModelHost=!0,A.ytDialogHeaderViewModelHostDisablePadding=f,A))},_.u(_.P,{cond:function(){return t().imageBanner},
then:function(){var G={};return _.u("div",{class:_.Ao(X,(G.ytDialogHeaderViewModelBanner=!0,G.ytDialogHeaderViewModelBannerFullBleed=e,G)),style:_.U7({"max-height":function(){return t().assetContainerMaxHeight!==void 0?t().assetContainerMaxHeight+"px":void 0}})},_.u(_.nj,{data:q,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.u(_.P,{cond:function(){return t().headerBlock},
then:function(){return _.u("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.u(_.P1,{data:function(){return t().headerBlock}},{contentPreviewImageViewModel:function(G){return _.u(_.nj,{data:G.data,
notifyOnLoaded:!0})}}))}}),_.u(_.P,{cond:function(){return t().customBanner},
then:function(G){return _.u("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.u(_.P1,{data:G},{avatarStackViewModel:_.Jw}))}}),_.u(_.P,{cond:function(){return t().headline},
then:function(G){return _.u("h2",null,_.u(_.zL,{text:G,className:"ytDialogHeaderViewModelText"}))}}))},"Tj");
dEm.idomCompat=!0;var SS8=_.I(function(A){var t=_.Gpz(function(){return A.data().formId}),f=t.submitForm,X=t.isValid;
return _.u("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.u(_.P1,{data:function(){return A.data().panelFooter}},{panelFooterViewModel:function(Q){return _.u(_.Vl,{data:Q.data,
disablePadding:!0,disablePrimaryButton:function(){return!X()},
onClickPrimaryButton:function(){f()}})}}))},"Uj");var $Ew=_.I(function(A){var t=function(){var f,X;return(X=(f=_.C(A.data().rendererContext,_.Tq))==null?void 0:f.label)!=null?X:""};
return _.u("yt-dialog-image-content-view-model",{class:_.Ao("ytDialogImageContentViewModelHost",A.className)},_.u(_.P,{cond:function(){return _.Fl(A.data().image)},
then:function(f){var X={};return _.u("div",{style:_.U7((X.width=(0,_.lq)(function(){var Q;return(Q=A.data().imageMaxWidth)!=null?Q:""}),X)),
class:"ytDialogImageContentViewModelImage"},_.u(_.YA,{data:f,alt:t,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.u(_.zL,{text:function(){return A.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Vj");var Kel=_.I(function(A){var t=_.Sv(A,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),f=t.elRefCallback;A=t.Icon;var X=t.Asset,Q=t.assetType,q=t.Title,e=t.LeadingActionHeader,G=t.TrailingActionHeader,N=t.headerPosition,z=t.Content,T=t.buttonLayout,O=t.buttonStyle,c=t.primaryButtonWiz,B=t.secondaryButtonWiz,h=t.contentAlignment,W=t.isFullscreen,L=t.width,E=t.maxHeight,D=t.isHeaderWizDefined,S=t.Header,Z=t.isFooterWizDefined,
d=t.Footer;t=_.GU("dialog-layout",function(Fb){f==null||f(Fb)});
var K=c?function(){var Fb={};return c({buttonOverrides:function(){return{style:(O==null?void 0:O())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Ao((Fb["yt-spec-dialog-layout__dialog-layout-button"]=!0,Fb["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(T==null?void 0:T())===0||(T==null?void 0:T())===2},Fb))})}:void 0,k=B?function(){var Fb={};
return B({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Ao((Fb["yt-spec-dialog-layout__dialog-layout-button"]=!0,Fb["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(T==null?void 0:T())===0||(T==null?void 0:T())===2},Fb))})}:void 0,Gz=function(){return(!!q||!!e||!!G)&&N()===0},Tz={},y5={},cp={},iu={};
return _.u("dialog-layout",{el:t,class:_.Ao((Tz["yt-spec-dialog-layout"]=!0,Tz["yt-spec-dialog-layout--dialog-layout-fullscreen"]=W,Tz["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!W()},Tz["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return E()===1},Tz["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Q==null?void 0:Q())===1},Tz)),
style:function(){return(L==null?void 0:L())!==void 0?"width: "+L()+"px;":""}},A?_.u("div",{class:_.Ao((y5["yt-spec-dialog-layout__dialog-layout-icon"]=!0,y5["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!X&&N()===1},y5["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return h()===1},y5))},_.u(A,null)):null,_.u(_.P,{cond:D,
then:function(){return S?_.u("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.u(S,null)):null},
else:function(){return _.u(_.Tw,null,_.u(_.P,{cond:Gz,then:function(){return _.u(HuQ,{contentAlignment:h,LeadingActionHeader:e,TrailingActionHeader:G,Title:q,isAboveAsset:!!X})}}),X?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.u(X,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.u("div",{class:_.Ao((cp["yt-spec-dialog-layout__dialog-layout-container"]=!0,cp["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(h==null?void 0:h())===1},
cp["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!q&&!(S&&D())||!!X&&(N==null?void 0:N())===0},cp))},_.u(_.P,{cond:function(){return q&&!S&&(N==null?void 0:N())===1},
then:function(){return _.u(HuQ,{contentAlignment:h,LeadingActionHeader:e,TrailingActionHeader:G,Title:q,isAboveAsset:!1})}}),z?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.u(z,null))):null,_.u(_.P,{cond:Z,
then:function(){return d?_.u("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.u(d,null)):null}}),K||k?_.u(aV3,{footerClasses:_.Ao((iu["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,iu["yt-spec-dialog-layout__dialog-layout-footer"]=!0,iu["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(T==null?void 0:T())===2},iu["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(T==null?void 0:T())===1},iu)),
PrimaryButton:K,SecondaryButton:k}):null))},"Wj"),HuQ=_.I(function(A){var t=_.Sv(A,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),f=t.contentAlignment,X=t.LeadingActionHeader;A=t.Title;var Q=t.TrailingActionHeader,q=t.isAboveAsset,e=t.enableLeadingActionHeader;t={};return _.u("div",{class:_.Ao((t["yt-spec-dialog-layout__dialog-header-container"]=!0,t["yt-spec-dialog-layout__dialog-header"]=!0,t["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=q,t["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(f==null?void 0:f())===1&&e()},t))},_.u(_.P,{cond:function(){return e()},
then:function(){return X?_.u("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.u(X,null)):null}}),A?_.u("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.u(A,null)):null,Q?_.u("div",null,_.u(Q,null)):null)},"Xj"),aV3=_.I(function(A){var t=A.footerClasses;
var f=A.PrimaryButton;A=A.SecondaryButton;return _.u("div",{class:t},A?_.u(A,null):null,f?_.u(f,null):null)},"Yj");var gMy=_.I(function(A){var t=A.data;return _.u("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.u("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.u(_.P1,{data:function(){return t().avatar}},{avatarViewModel:_.QK})),_.u("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.u(_.zL,{text:function(){return t().title}})),_.u(_.zL,{text:function(){return t().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Zj");var wBy=_.I(function(A){return _.u("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.u(_.zL,{text:function(){return A.data().inviteMessage}})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.u(_.zL,{text:function(){return A.data().attributedAccountSectionHeaderText}})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.u(_.P1,{data:function(){return A.data().accountAvatar}},{avatarViewModel:_.QK}),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.u(_.zL,{text:function(){return A.data().accountName}}),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.u(_.zL,{text:function(){return A.data().handle}}))),_.u(_.P1,{data:function(){return A.data().trailingButton}},{buttonViewModel:_.nx})),_.u("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.u(_.zL,{text:function(){return A.data().termsOfService}})))},"$j");var s5j=_.I(function(A){var t=A.data;return _.u("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.u("div",{class:"ytAccessConfirmationViewModelContent"},_.u(_.P1,{data:function(){var f;return(f=t().avatar)!=null?f:t().dualAvatar}},{dualAvatarViewModel:function(f){return _.u(_.Pic,{data:f.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(f){return _.u(_.qM,{data:f.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.u("h2",{class:"ytAccessConfirmationViewModelTitle"},_.u(_.zL,{text:function(){return t().title}})),_.u(_.zL,{text:function(){return t().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ak");var key=_.I(function(A){var t=A.data;var f=void 0;A=_.U(_.Jo(function(){var z;return((z=_.C(t().content,_.Ge))==null?void 0:z.defaultSelectedKey)||""}));
var X=A.next().value,Q=A.next().value,q,e=function(){Q("");var z;(z=f)!=null&&z.store.dispatch(_.r0({type:"RESET_COMMAND_MAP"}))};
_.oh(function(){f=new Zuw;window.addEventListener("yt-popup-closed",e)});
_.oo(function(){if(f&&q!==t().formId&&(f.onInit(t()),(q=t().formId)&&X())){var z=f,T={key:X()};T.command&&z.store.dispatch(CAQ(q,T.command))}},"c2n8Gf");
_.dD(function(){window.removeEventListener("yt-popup-closed",e)});
var G=function(z,T,O){T.key&&O&&T.key!==X()&&(Q(T.key),f&&T.command&&f.store.dispatch(CAQ(O,T.command)))},N=function(){if(_.C(t().content,_.Ge))return!(X==null?0:X())};
return _.u("yt-dialog-view-model",{class:_.Ao("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.u(Kel,{Header:function(){return _.u(_.P1,{data:function(){return t().header}},{dialogHeaderViewModel:function(z){return _.u(dEm,{data:z.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!t().header},
Content:function(){return _.u(_.P1,{data:function(){return t().customContent?t().customContent:t().content}},{basicContentViewModel:_.PBl,
createPlaylistDialogFormViewModel:DEy,collaborativePlaylistInviteMessageViewModel:wBy,miniAppScoreChallengeViewModel:Vo3,radioButtonGroupViewModel:function(z){var T=z.data;return _.u(_.VRh,{data:T,selectedKey:X,onSelected:G,groupName:function(){return T().formId}})},
selectionListItemFormViewModel:oM8,upsellViewModel:function(z){return _.u(YSQ,{data:z.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:gMy,installmentAgreementsViewModel:nM2,accessConfirmationViewModel:s5j,listViewModel:function(z){return _.u(_.nTT,{data:z.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:$Ew})},
Footer:function(){return _.u(_.P1,{data:function(){return t().footer}},{panelFooterViewModel:function(z){return _.u(_.Vl,{data:z.data,
disablePadding:!0,disablePrimaryButton:N})},
formPanelFooterViewModel:SS8,formFooterViewModel:function(z){return _.u(_.yRc,{data:z.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!t().footer}}))},"ck");
key.idomCompat=!0;_.Hn(key,"yt-dialog-view-model",{props:{data:_.PS},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var rxm=_.I(function(A){var t=A.data;return _.u("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.u(_.P,{cond:function(){return t().title},
then:function(f){return _.u("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.u(_.zL,{text:f,className:"ytPanelHeaderViewModelTitle"}))}}),_.u(_.P,{cond:function(){return t().subtitle},
then:function(f){return _.u(_.zL,{text:f,className:"ytPanelHeaderViewModelSubtitle"})}}))},"dk"),ANl=_.I(function(A){var t=A.data;
var f=_.Z50(function(){return t().rendererContext});
A={};return _.u("yt-panel-header-view-model",{class:_.Ao("ytPanelHeaderViewModelHost",(A.ytPanelHeaderViewModelHostHideDivider=function(){return!!t().shouldHideDivider},A.ytPanelHeaderViewModelHostCompact=function(){return!!t().subtitle},A)),
"aria-label":function(){var X;return(X=f())==null?void 0:X.label}},_.u(_.P,{cond:function(){return _.bj(t().rendererContext)},
then:function(){return _.u(_.TJk,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.mL(t().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.u(rxm,{data:t}))},
else:function(){return _.u(rxm,{data:t})}}),_.u("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.u(_.P1,{data:function(){return t().trailingButtons}},{buttonViewModel:function(X){return _.u(_.nx,{data:X.data,
className:"ytPanelHeaderViewModelButton"})}})))},"ek");
ANl.idomCompat=!0;var tg8=_.I(function(A){var t=_.f1(function(q){var e;if((e=A.skipContentClick)==null?0:e.call(A))return!1;A.onContentWrapperClick(q);return!0}),f,X,Q;
return _.u("div",{class:_.Ao("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return A.isAnimating()?"transform: translateY("+A.currentY()+"px);transition: 0.2s":""}},(f=A.header)==null?void 0:f.call(A),_.u("div",{id:A.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.U7({"max-height":(0,_.lq)(A.maxHeightForContentWrapper)}),"on:scroll":_.f1(function(q){return A.onScroll(q),!1}),
"on:touchmove":_.f1(function(q){return q.stopPropagation(),!1})},_.u("div",{el:_.ZY(A.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":t},(X=A.body)==null?void 0:X.call(A))),(Q=A.footer)==null?void 0:Q.call(A))},"fk");
tg8.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var fp_=_.I(function(A){var t=_.dR(A.leadingLabel),f=_.dR(A.trailingLabel),X=_.dR(A.footerButtonType),Q=function(){return t()||f()||A.hasPrimaryButton()||A.hasSecondaryButton()},q={},e=_.Ao("yt-spec-bottom-sheet-layout__primary-button",(q["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return X()===0&&A.hasPrimaryButton()},q["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return X()===1&&A.hasPrimaryButton()},q["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return X()===2&&A.hasPrimaryButton()},q["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return X()===3&&A.hasPrimaryButton()},q));
q={};var G=_.Ao("yt-spec-bottom-sheet-layout__secondary-button",(q["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return X()===1&&A.hasSecondaryButton()},q["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return X()===2&&A.hasSecondaryButton()},q["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return X()===3&&A.hasPrimaryButton()},q));
return _.u(_.P,{cond:A.hasFooterOverride,then:function(){var N;return _.u(_.Tw,null,(N=A.footerOverride)==null?void 0:N.call(A))},
else:function(){return _.u(_.P,{cond:Q,then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.u(_.P,{cond:function(){return t()||f()},
then:function(){var N={};return _.u("div",{class:_.Ao("yt-spec-bottom-sheet-layout__footer-label-wrapper",(N["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!A.hasPrimaryButton()},N))},_.u(_.P,{cond:t,
then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},t)}}),_.u(_.P,{cond:f,
then:function(){return _.u("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},f)}}))}}),_.u(_.P,{cond:function(){return A.hasPrimaryButton()||A.hasSecondaryButton()},
then:function(){var N={};return _.u("div",{class:_.Ao("yt-spec-bottom-sheet-layout__footer-button-wrapper",(N["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.lPp,N))},_.u(_.P,{cond:function(){return A.hasSecondaryButton()&&X()!==0},
then:function(){var z;return _.u("div",{class:G},(z=A.secondaryButton)==null?void 0:z.call(A))}}),_.u(_.P,{cond:A.hasPrimaryButton,
then:function(){var z;return _.u("div",{class:e},(z=A.primaryButton)==null?void 0:z.call(A))}}))}}))}})}})},"gk");
fp_.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var Xv3=_.I(function(A){var t=_.dR(A.title),f=_.dR(A.subtitle);return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:A.headerId,"on:touchstart":_.f1(function(X){var Q;(Q=A.touchstart)==null||Q.call(A,X);return!1}),
"on:touchmove":_.f1(function(X){var Q;(Q=A.touchmove)==null||Q.call(A,X);return!1}),
"on:touchend":_.f1(function(X){var Q;(Q=A.touchend)==null||Q.call(A,X);return!1})},_.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.u(_.P,{cond:A.hasHeaderOverride,
then:function(){var X;return _.u(_.Tw,null,(X=A.headerOverride)==null?void 0:X.call(A))},
else:function(){var X={};return _.u("div",{class:_.Ao((X["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,X["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=t,X))},_.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.u(_.P,{cond:t,then:function(){return _.u(_.Tw,null,_.u("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},t),_.u(_.P,{cond:f,then:function(){return _.u("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
f)}}))}})),_.u(_.P,{cond:function(){return t()&&A.hasActionHeader()},
then:function(){var Q;return _.u("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Q=A.actionHeader)==null?void 0:Q.call(A))}}))}}))},"hk");
Xv3.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.I(function(A){function t(Gz){if(!S&&typeof MutationObserver!=="undefined"){var Tz={childList:!0};"MutationObserver"in window&&(S=new MutationObserver(f.bind(void 0,Gz)),S.observe(Gz,Tz))}}
function f(Gz){typeof S!=="undefined"&&(Z["content-wrapper"]===void 0&&(Z["content-wrapper"]=Gz.children[0].clientHeight),W(Z["content-wrapper"]),h()>L()||E(h()))}
function X(){B(window.innerHeight);h()>L()||E(h());d.isFullScreen[0]()&&h()>L()?K().dispatch("Snap To Full Screen",{maxHeight:D()}):K().dispatch("Snap To Neutral Position",{maxHeight:L()})}
function Q(Gz){document.body.style.overscrollBehavior="none";Gz.preventDefault();K().dispatch("Touch Start",{event:Gz})}
function q(Gz){Gz.preventDefault();K().dispatch("Touch Move",{event:Gz,contentScrollable:h()>L(),fullContentWrapperHeight:D(),contentWrapperHeight:L(),heightMap:Z,contentWrapperId:"content-wrapper",header:n68(A),footer:n68(A),headerDivHeight:Z["bottom-sheet-header"],footerDivHeight:Z["bottom-sheet-footer"]})}
function e(){document.body.style.overscrollBehavior="";d.isFullScreen[0]()?d.currentY[0]()>=60?K().dispatch("Snap To Neutral Position",{maxHeight:L()}):K().dispatch("Snap To Full Screen",{maxHeight:D()}):d.currentY[0]()>=60?G():d.currentY[0]()<=-60&&h()>L()?K().dispatch("Snap To Full Screen",{maxHeight:D()}):K().dispatch("Snap To Neutral Position",{maxHeight:L()})}
function G(){K().dispatch("Close Sheet",{clientHeight:c(),maxHeight:0});setTimeout(function(){E6_()},250)}
var N=_.GU("div"),z=_.GU("div"),T=_.U(_.hZ(window.innerHeight,void 0,"CmOsU")),O=T.next().value;T=T.next().value;var c=O,B=T;T=_.U(_.hZ(0,void 0,"p0Flhb"));O=T.next().value;T=T.next().value;var h=O,W=T;T=_.U(_.Jo(function(){var Gz=n68(A);return.6*c()-v63(Gz)-L9y(Gz)}));
O=T.next().value;T=T.next().value;var L=O,E=T,D=function(){var Gz=n68(A),Tz=c(),y5=Z["bottom-sheet-header"],cp=Z["bottom-sheet-footer"];return Tz-(Gz.hasHeaderFn&&y5!==void 0?y5:v63(Gz))-(Gz.hasFooterFn&&cp!==void 0?cp:L9y(Gz))-24-24},S=null,Z={},d={initialY:_.hZ(0,void 0,"sxdESd"),
currentY:_.hZ(0,void 0,"GZzqeb"),isAnimating:_.hZ(!1,void 0,"vJBupc"),isFullScreen:_.hZ(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.Jo(L)},K=function(){var Gz=null;return function(){if(!Gz){var Tz={initialY:d.initialY[0](),currentY:d.currentY[0](),isAnimating:d.isAnimating[0](),isFullScreen:d.isFullScreen[0](),maxHeightForContentWrapper:d.maxHeightForContentWrapper[0]()};Gz=pIm(Tz)}return Gz}}();
_.oh(function(){window.addEventListener("resize",X);K().subscribe(function(Gz){d.initialY[1](Gz.initialY);d.currentY[1](Gz.currentY);d.isAnimating[1](Gz.isAnimating);d.isFullScreen[1](Gz.isFullScreen);d.maxHeightForContentWrapper[1](Gz.maxHeightForContentWrapper)});
requestAnimationFrame(function(){N.value&&(Z["bottom-sheet-header"]=N.value.clientHeight);z.value&&(Z["bottom-sheet-footer"]=z.value.clientHeight)})});
_.dD(function(){window.removeEventListener("resize",X);S&&(S.disconnect(),S=null)});
var k=_.Ao({"bottom-sheet-content-without-icon":function(){var Gz;return!((Gz=A.shouldShowIcons)==null?0:Gz.call(A))}});
return _.u("bottom-sheet-layout",null,_.u(tg8,{contentWrapperId:"content-wrapper",isAnimating:function(){return d.isAnimating[0]()},
currentY:function(){return d.currentY[0]()},
maxHeightForContentWrapper:function(){return d.maxHeightForContentWrapper[0]()},
shouldShowIcons:A.shouldShowIcons,skipContentClick:A.skipContentClick,onScroll:function(){var Gz=document.getElementById("bottom-sheet-header"),Tz=document.getElementById("content-wrapper");if(Gz&&Tz){var y5={};y5=(y5["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,y5["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,y5);Gz.className=Tz.scrollTop>1?_.CW(y5):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:E6_,contentWrapperEl:function(Gz){t(Gz);requestAnimationFrame(function(){f(Gz)})},
header:function(){return _.u("div",{el:N},_.u(Xv3,{touchstart:Q,touchmove:q,touchend:e,title:A.headerTitle,subtitle:A.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:A.headerFn,hasHeaderOverride:A.hasHeaderFn,actionHeader:A.headerActionHeader,hasActionHeader:A.hasHeaderActionHeader}))},
footer:function(){return _.u("div",{el:z},_.u(fp_,{footerButtonType:A.footerButtonType,leadingLabel:A.footerLeadingLabel,trailingLabel:A.footerTrailingLabel,primaryButton:A.footerPrimaryButton,hasPrimaryButton:A.hasFooterPrimaryButton,secondaryButton:A.footerSecondaryButton,hasSecondaryButton:A.hasFooterSecondaryButton,footerOverride:A.footerFn,hasFooterOverride:A.hasFooterFn}))},
body:function(){return _.u(_.P,{cond:A.hasContentFn,then:function(){var Gz;return _.u("div",{class:k},(Gz=A.contentFn)==null?void 0:Gz.call(A))}})}}))},"ik").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Qm3=_.I(function(A){var t=_.Px().resolve(_.Ak);return _.u("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.f1(function(){return void t.closeSheet()})},_.u(_.P,{cond:function(){return!!A.header},
then:function(){return _.u("div",{class:"ytContextualSheetLayoutHeaderContainer"},A.header())}}),_.u(_.P,{cond:function(){return!!A.content},
then:function(){return _.u("div",{class:"ytContextualSheetLayoutContentContainer"},A.content())}}),_.u(_.P,{cond:function(){return!!A.footer},
then:function(){return _.u("div",{class:"ytContextualSheetLayoutFooterContainer"},A.footer())}}))},"jk");
Qm3.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var qM3=_.I(function(A){var t=A.data;var f=_.Px().resolve(_.i2),X=_.GU("yt-sheet-view-model",function(Q){if(_.M("web_focus_first_element_sheet")||!_.M("sheet_focus_first_killswitch"))return Q.addEventListener("focus",function(){qX3(Q)}),function(){Q.removeEventListener("focus",function(){qX3(Q)})}});
A={};return _.u("yt-sheet-view-model",{"on:mousedown":_.f1(function(Q){_.M("sheet_focus_first_killswitch")||Q.currentTarget!==Q.target&&Q.preventDefault()}),
"on:focus":_.f1(function(){_.M("sheet_focus_first_killswitch")||qX3(X.value)}),
"on:mouseleave":_.f1(function(){var Q,q=t==null?void 0:(Q=t())==null?void 0:Q.rendererContext,e;(Q=(e=_.C(q,_.y9))==null?void 0:e.onHoverEnd)&&f.resolveCommand(Q)}),
class:_.Ao("ytSheetViewModelHost",(A.ytSheetViewModelContextual=!0,A.ytSheetViewModelDisableBackdropFilter=_.M("web_disable_backdrop_filter"),A)),el:X,tabindex:-1},_.u(_.P,{cond:t,then:function(Q){return _.u(Qm3,{header:function(){return _.u(_.P1,{data:function(){return Q().header}},{panelHeaderViewModel:ANl})},
content:function(){return _.u(_.P1,{data:function(){return Q().content}},{listViewModel:function(q){return _.u(_.nTT,{data:q.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:YSQ,miniAppScoreChallengeViewModel:Vo3})},
footer:function(){return _.u(_.P1,{data:function(){return Q().footer}},{panelFooterViewModel:_.Vl})}})}}))},"kk");
qM3.idomCompat=!0;_.Hn(qM3,"yt-sheet-view-model",{props:{data:_.PS}});var U6l=_.I(function(A){var t=function(){var f;return(f=A.data().enableDebuggingFeatures)!=null?f:!1};
return _.u("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.u(_.xk,{each:function(){var f;return(f=A.data().stickers)!=null?f:[]}},function(f){return _.u(JNy,{data:function(){return f},
debugMode:t})}))},"lk"),JNy=_.I(function(A){var t=_.Sv(A,{debugMode:!1}).debugMode,f=_.dR(function(){var N;
return(N=A.data().region)==null?void 0:N.w},0),X=_.dR(function(){var N;
return(N=A.data().region)==null?void 0:N.h},0),Q=_.dR(function(){var N;
return(N=A.data().region)==null?void 0:N.x},0),q=_.dR(function(){var N;
return(N=A.data().region)==null?void 0:N.y},0),e=_.f1(function(){var N=A.data().onTap;
N&&_.LI(N)}),G={};
return _.u("div",{class:_.Ao("ytStoriesStickerLayerViewModelSticker",(G.ytStoriesStickerLayerViewModelDebugMode=t,G)),style:_.U7({width:function(){return 100*f()+"%"},
height:function(){return 100*X()+"%"},
left:function(){return 100*Q()+"%"},
top:function(){return 100*q()+"%"},
"flex-direction":function(){return DFy(A.data().flexDirection)},
"justify-content":function(){return F9j(A.data().justifyContent)},
"align-items":function(){return IC8(A.data().alignItems)}}),
"on:click":e},_.u(_.P1,{data:function(){return A.data().button||A.data().toggleButton}},{buttonViewModel:function(N){return _.u(_.nx,{data:N.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(N){return _.u(_.s$,{data:N.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"mk");var GpQ=_.I(function(A){var t=function(){return A.data()},f={},X=_.U(_.hZ(!1,void 0,"SegA3d")),Q=X.next().value,q=X.next().value,e=_.dR(function(){return t().backgroundColor},0);
X=_.dR(function(){return t().actionButtons},[]);
var G=_.dR(function(){return t().stickerLayer},{}),N=function(){var T,O;
return{animationRef:f,animationConfig:{autoplay:!1,loop:!1,path:(O=(T=t().foregroundAnimation)==null?void 0:T.url)!=null?O:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){q(!0)},
complete:function(){A.navigateToNextItemOnLottieComplete()}}}},z=function(){var T,O,c,B,h,W,L,E;
return{animationConfig:{autoplay:(W=(T=t().backgroundAnimation)==null?void 0:(O=T.settings)==null?void 0:O.autoplay)!=null?W:!1,loop:(L=(c=t().backgroundAnimation)==null?void 0:(B=c.settings)==null?void 0:B.loop)!=null?L:!1,path:(E=(h=t().backgroundAnimation)==null?void 0:h.url)!=null?E:"",name:"stories_item_background_animation"}}};
_.oo(function(){if(A.isVisible()&&Q()){var T;(T=f.lottieEl)==null||T.play();A.animationRef()&&(A.animationRef().lottieEl=f.lottieEl)}else{var O;(O=f.lottieEl)==null||O.stop()}},"MxM2wb");
return _.u("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.U7({"background-color":function(){return _.bY(e())+";"}})},_.u("div",{class:"ytStoriesItemViewModelAssetContent"},_.u(_.P,{cond:function(){return!!t().backgroundAnimation},
then:function(){return _.u(_.Ya,{data:z,animationName:function(){return z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.u(_.P,{cond:function(){return!!t().backgroundImage},
then:function(){return _.u(_.YA,{data:function(){return t().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.u(_.P,{cond:function(){return!!t().foregroundAnimation},
then:function(){return _.u(_.Ya,{data:N,animationName:function(){return N().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.u(_.P,{cond:function(){return!!t().foregroundImage},
then:function(){return _.u(_.YA,{data:function(){return t().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.u("div",{class:"ytStoriesItemViewModelTopShadow"}),_.u(_.P1,{data:function(){return G()}},{storiesStickerLayerViewModel:U6l})),_.u("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.U7({"background-color":function(){return _.bY(e())}})},_.u("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.u(_.xk,{each:X},function(T){return _.u(eK3,{data:function(){return T},
pauseAutoNavigation:A.pauseAutoNavigation})}))))},"ok"),lpm={style:"overlay",
type:"outline"},eK3=_.I(function(A){var t={};return _.u("div",{class:_.Ao("ytStoriesItemViewModelActionButton",(t.ytStoriesItemViewModelStretchedActionButton=function(){return A.data().size==="STORIES_BUTTON_SIZE_STRETCH"},t)),
"on:click":_.f1(A.pauseAutoNavigation)},_.u(_.P1,{data:function(){return A.data().button}},{buttonViewModel:function(f){return _.u(_.nx,{data:f.data,
buttonOverrides:lpm})}}))},"pk");var Nph={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.Hn(_.I(function(A){var t=function(){var cp;return(cp=A.data().startIndex)!=null?cp:0},f=_.U(_.Jo(t)),X=f.next().value,Q=f.next().value;
f=_.U(_.hZ(!1,void 0,"sjy7s"));var q=f.next().value,e=f.next().value,G=function(){var cp;return(cp=A.data().storyItems)!=null?cp:[]},N={},z=_.GU("yt-stories-viewer-view-model"),T=function(){return A.data().dismissButton},O=function(){var cp;
return _.bP((cp=_.C(T(),_.zf))==null?void 0:cp.onTap)},c=_.GU("div"),B,h,W=!1,L=function(){var cp;
(cp=B)==null||cp.cancel();B=E(X()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});B.onfinish=function(){var iu=_.C(G()[X()],l9d),Fb,xq;iu!=null&&iu.foregroundAnimation&&((iu==null?0:(Fb=iu.foregroundAnimation)==null?0:Fb.url)||(iu==null?0:(xq=iu.foregroundAnimation)==null?0:xq.payload))||(X()!==G().length-1?(Q(X()+1),L()):O()&&_.Wn(O()))}},E=function(cp){return c.value.children[cp].children[0]},D=function(){for(var cp=0;cp<X();cp++)E(cp).style.transform=
"scaleX(1)"},S=function(){W||(q()?e(!1):(X()===G().length-1&&O()&&_.Wn(O()),E(X()).style.transform="scaleX(1)",X()!==G().length-1&&(Q(X()+1),L())))},Z=function(){W||(q()?e(!1):(E(X()).style.transform="scaleX(0)",X()!==0&&Q(X()-1),L()))},d=function(){e(!0)},K=function(){E(X()).style.transform="scaleX(1)";
X()!==G().length-1?(Q(X()+1),L()):O()&&_.Wn(O())};
f=function(){W=!1;h=setTimeout(function(){e(!0);W=!0},300)};
var k=function(){clearTimeout(h);W&&q()&&e(!1)};
_.oo(function(){if(q()){var cp;(cp=B)==null||cp.pause();var iu;(iu=N.lottieEl)==null||iu.pause()}else{var Fb;(Fb=B)==null||Fb.play();var xq;(xq=N.lottieEl)==null||xq.play()}},"vAvZob");
_.oo(function(){D();X()===t()&&L()},"uSlfE");
var Gz=function(cp){cp.key==="ArrowLeft"?Z():cp.key==="ArrowRight"&&S()},Tz=function(cp){if(cp.target===z.value){(cp=O())&&_.Wn(cp);
clearTimeout(h);var iu;(iu=B)==null||iu.cancel();window.removeEventListener("keydown",Gz);window.removeEventListener("yt-popup-closed",Tz)}},y5=function(cp){cp.target===z.value&&(window.addEventListener("keydown",Gz),window.addEventListener("yt-popup-closed",Tz))};
_.oh(function(){D();L();window.addEventListener("yt-popup-opened",y5)});
return _.u("yt-stories-viewer-view-model",{el:z,class:_.Ao("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.u("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.u("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.f1(Z),"on:mousedown":_.f1(f),"on:mouseup":_.f1(k),"on:mouseleave":_.f1(k)}),_.u("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.f1(S),"on:mousedown":_.f1(f),"on:mouseup":_.f1(k),"on:mouseleave":_.f1(k)})),
_.u("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.u(_.P1,{data:G},{storiesItemViewModel:function(cp,iu){var Fb=cp.data;return _.u(_.P,{cond:function(){return Math.abs(iu()-X())<=1},
then:function(){var xq={};return _.u("div",{class:_.Ao("ytStoriesViewerViewModelStoryItem",(xq.ytStoriesViewerViewModelActiveStoryItem=function(){return iu()===X()},xq))},_.u(GpQ,{data:Fb,
pauseAutoNavigation:d,navigateToNextItemOnLottieComplete:K,isVisible:function(){return iu()===X()},
animationRef:N}))}})}})),_.u("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:c},_.u(_.xk,{each:G},function(){return _.u("div",{class:"ytStoriesViewerViewModelProgressBar"},_.u("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.u("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.u(_.YA,{data:Nph,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.u("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.u(_.P1,{data:function(){return A.data().muteButton}},{toggleButtonViewModel:function(cp){return _.u(_.s$,{data:cp.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.u(_.P1,{data:T},{buttonViewModel:function(cp){return _.u(_.nx,{data:cp.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"sk"),"yt-stories-viewer-view-model",{props:{data:_.PS}});_.Hn(_.I(function(A){var t=A.data;var f=_.GU("yt-gen-ai-feedback-form-view-model"),X=[];return _.u("yt-gen-ai-feedback-form-view-model",{el:f,class:"ytGenAiFeedbackFormViewModelHost"},_.u(_.zL,{text:function(){return t().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.u("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.u(_.P1,{data:function(){return t().feedbackChips}},{toggleButtonViewModel:function(Q){var q=Q.data;
return _.u(_.s$,{data:q,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(e){var G=q();G=_.C(G,_.Tf);G=_.C(G==null?void 0:G.defaultButtonViewModel,_.zf).trackingParams;e?X.push(G):(e=X.indexOf(G),e>-1&&X.splice(e,1))}})}})),_.u(_.zL,{text:function(){return t().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.u("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.u(_.P1,{data:function(){return t().submitButton}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){xFy(f.value,X,t().uniqueId)}})}}),_.u(_.P1,{data:function(){return t().moreFeedbackButton}},{buttonViewModel:function(Q){return _.u(_.nx,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"tk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.PS},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var bQ=function(){return _.F.apply(this,arguments)||this};
_.R(bQ,_.F);bQ.prototype.created=function(){MQ2(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Pq8);var A=_.Px().resolve(_.Ef2);A&&(A.container=this.ytPopupContainerBehavior);if(A=_.Px().resolve(_.Ak))A.container=this.ytPopupContainerBehavior;if(A=_.Px().resolve(_.tk)){var t=this.ytPopupContainerBehavior;A.containerWasInjected?_.K4(Error("rj")):A.container=t}};
bQ.prototype.ensurePopupBelowPlayer=function(A,t){var f=_.Px().resolve(_.z7(_.HO));if(!f||!f.isOnWatch()||!_.K1())return!1;f=f.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.uY().height>f+this.getPopupHeight(A,t)?(A.style.top="auto",A.style.bottom="0px"):(A.style.top=f+"px",A.style.bottom="auto");return!0};
bQ.prototype.getPopupHeight=function(A,t){t&&(A.cachedPopupHeight=0);if(!A.cachedPopupHeight){t=0;var f=A.clientHeight,X=window.getComputedStyle(A);t+=parseInt(X.marginTop,10);t+=parseInt(X.marginBottom,10);A.cachedPopupHeight=f+t}return A.cachedPopupHeight};
bQ.prototype.getElement=function(A){return document.createElement(A)};
_.V([_.b(gZd.YtPopupContainerBehavior),_.H("design:type",Object)],bQ.prototype,"ytPopupContainerBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],bQ.prototype,"ytComponentBehavior",void 0);_.V([_.y_({disableElementRegistration:!0,is:"ytd-popup-container"})],bQ);
_.Y(bQ,"ytd-popup-container",function(){if(VZ_!==void 0)return VZ_;var A=document.createElement("template");_.m(A,"\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");A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);return VZ_=A},{mode:1});var urh;var zKQ={};zKQ.YtLogYpcFlowCommandsBehavior=[_.jD.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(A){_.C(A,v13)&&(A=_.C(A,v13))&&(A.serializedTransactionFlowLoggingParams?_.Ohs(A.serializedTransactionFlowLoggingParams):A.serializedYpcCancelFlowLoggingParams?(A=A.serializedYpcCancelFlowLoggingParams)&&_.Va("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",A):A.serializedYpcResumeFlowLoggingParams?(A=A.serializedYpcResumeFlowLoggingParams)&&_.Va("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",A):A.serializedYpcPauseFlowLoggingParams?(A=A.serializedYpcPauseFlowLoggingParams)&&
_.Va("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",A):A.serializedYpcRefundFlowLoggingParams?(A=A.serializedYpcRefundFlowLoggingParams)&&dIy("YPC_EVENT_TYPE_START",A):A.serializedYpcDeactivateFlowLoggingParams?(A=A.serializedYpcDeactivateFlowLoggingParams)&&_.Va("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",A):A.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(A=A.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Va("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",A))},
handleLogYpcFlowDismiss_:function(A){_.C(A,yKl)&&(A=_.C(A,yKl),A.serializedTransactionFlowLoggingParams?_.cAT(A.serializedTransactionFlowLoggingParams):A.serializedYpcCancelFlowLoggingParams?(A=A.serializedYpcCancelFlowLoggingParams)&&_.Va("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",A):A.serializedYpcResumeFlowLoggingParams?(A=A.serializedYpcResumeFlowLoggingParams)&&_.Va("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",A):A.serializedYpcPauseFlowLoggingParams?(A=
A.serializedYpcPauseFlowLoggingParams)&&_.Va("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",A):A.serializedYpcRefundFlowLoggingParams&&(A=A.serializedYpcRefundFlowLoggingParams)&&dIy("YPC_EVENT_TYPE_CANCEL",A))}}];var PF8={};PF8.YtCancelRecurrenceBehavior=[_.Ja.YtComponentBehavior,_.JiT,{attached:function(){var A=this;QR3(this,function(t,f){return A.ypcCancelRecurrenceHandler(t,f)})},
ypcCancelRecurrenceHandler:function(A,t){var f=this;if(!t||!t.ypcCancelRecurrenceEndpoint)return!1;if(!t.ypcCancelRecurrenceEndpoint.params)return _.g9(Error("Tl")),!0;_.Dd(this.hostElement);var X=_.IM.instance,Q=_.Px().resolve(_.z7(_.TD));X&&_.xE(X,t)?_.jl(X,t).then(function(q){f.ypcCancelRecurrenceSuccess_(A,t,{data:q})},function(q){f.ypcCancelRecurrenceFailure_(A,t,q)}).thenCatch(function(){_.g9(Error("Ul"))}):Q?Q.requestDataForServiceEndpoint(t).then(function(q){f.ypcCancelRecurrenceSuccess_(A,
t,q)},function(q){f.ypcCancelRecurrenceFailure_(A,t,q)}).thenCatch(function(){_.g9(Error("Ul"))}):_.g9(Error("Vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(A,t,f){_.FI(this.hostElement);f.data||(f={data:f});f.data&&f.data.actions&&_.tl(this.hostElement,f.data.actions,this.hostElement);f.data.messageRenderer?$I3(t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(t=t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Va("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",t);_.s9(A,"yt-service-request-completed",f)},
ypcCancelRecurrenceFailure_:function(A,t,f){_.FI(this.hostElement);$I3(t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.s9(A,"yt-service-request-error",{error:f,params:[A,t]})}}];var TpQ=function(A,t){_.Ab.call(this,t)};
_.R(TpQ,IoQ);var iCd={};iCd.YtCompleteTransactionBehavior=[_.Ja.YtComponentBehavior,_.JiT,{attached:function(){var A=this;QR3(this,function(t,f){return A.ypcCompleteTransactionHandler(t,f)})},
completeTransaction:function(A,t){var f=this;t={payments_payload:window.btoa(t.integratorData),buybucket_params:A.data.buybucketParams,offer_params:A.data.offerParams};var X=_.Px().resolve(_.TD),Q=A.data.completeTransactionEndpoint,q=this.get("ypcCompleteTransactionEndpoint.actions",Q);q&&_.tl(this.hostElement,q,this.hostElement);return(q=_.IM.instance)&&_.xE(q,Q)?_.jl(q,Q,t).then(function(e){return!e||(e==null?0:e.error)?(e=f.get("data.serializedTransactionFlowLoggingParams",A),_.OX(new Ur("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
e))):{data:e}}).then(function(e){return f.handleCompleteTransactionSuccess_(e,A)},function(){return f.handleCompleteTransactionFailure_(A)}):X.requestDataForServiceEndpoint(Q,t).then(function(e){return f.handleCompleteTransactionSuccess_(e,A)},function(){return f.handleCompleteTransactionFailure_(A)})},
handleCompleteTransactionSuccess_:function(A,t){A.data||(A={data:A});if(A.data.messageRenderer)return _.OX(new TpQ(A.data.messageRenderer));if(A.data.trackingParams){var f=_.Ws(),X=_.mx();f&&X&&_.x7(f,X,_.zV(A.data.trackingParams))}t=this.get("data.serializedTransactionFlowLoggingParams",t);S7h(t);return _.ff(A)},
handleCompleteTransactionFailure_:function(A){A=this.get("data.serializedTransactionFlowLoggingParams",A);_.YO("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A);return _.OX(new Ur("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A))},
ypcCompleteTransactionHandler:function(A,t){var f=this;if(!t.ypcCompleteTransactionEndpoint)return!1;if(!t.ypcCompleteTransactionEndpoint.transactionParams)return _.g9(Error("Wl")),!0;t.ypcCompleteTransactionEndpoint&&t.ypcCompleteTransactionEndpoint.gtmData&&_.Ky(t.ypcCompleteTransactionEndpoint.gtmData);var X=_.Px().resolve(_.z7(_.TD));if(X){_.Dd(this.hostElement);var Q=_.IM.instance;Q&&_.xE(Q,t)?_.jl(Q,t).then(function(q){return!q||(q==null?0:q.error)?(q=f.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
t),_.OX(new Ur("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",q))):{data:q}}).then(function(q){_.s9(A,"yt-service-request-completed");
f.ypcCompleteTransactionSuccess_(t,q)},function(){return f.ypcCompleteTransactionFailure_(t)}):X.requestDataForServiceEndpoint(t).then(function(q){_.s9(A,"yt-service-request-completed");
f.ypcCompleteTransactionSuccess_(t,q)},function(){return f.ypcCompleteTransactionFailure_(t)})}return!0},
ypcCompleteTransactionSuccess_:function(A,t){_.FI(this.hostElement);t.data||(t={data:t});_.kJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);t.data.messageRenderer||t.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(A):(_.Ky('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",A));t.data.actions&&(A=Wa2(t.data.actions),t=yJ3(t.data.actions),A.length&&_.Al(this.hostElement,
A),t.length&&_.tl(this.hostElement,t,this.hostElement))},
ypcCompleteTransactionFailure_:function(A){_.FI(this.hostElement);_.kJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",A,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(A,t,f){if(t=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",t))t={serializedTransactionFlowLoggingParams:t},f&&(t.errorType=f),_.SY(A,t),_.$B()}}];var OC3={};OC3.YtEndpointHandlerWithYpcBehavior=[_.JiT,_.jD.YtActionHandlerBehavior,[{openWalletDialog:function(A,t,f,X,Q,q,e){var G=this,N=_.YE();t=t.replace(/-/g,"+").replace(/_/g,"/");var z=_.NJ().get("hl");_.osb(_.K8(_.Vc),t,N.resolve,Q,function(T){q&&q();N.reject(T)},z,function(T){return G.onServerBackendAnalyticEvent_(A,f,T)},this.onDialogClose_.bind(this),X,e);
return N.promise},
openFixFlowDialog:function(A,t,f,X){A=A.replace(/-/g,"+").replace(/_/g,"/");_.K8(_.Vc).openFixFlowDialog(A,t,f,X)},
onDialogClose_:function(){_.kJ(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(A,t,f){_.s9(A,"yt-commerce-action-init-done");t&&_.Al(this.hostElement,[t,{backend_analytics:f}])}}],
_.I4.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(A,t){A=this.get("data.nativeFlowEndpoint",t);t=this.get("data.fallbackEndpoint",t);A?_.Al(this.hostElement,[A]):t&&_.s9(this.hostElement,"yt-navigate",{endpoint:t})}}],
PF8.YtCancelRecurrenceBehavior,iCd.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 A=this;QR3(this,function(t,f,X){return A.handleYPCEndpoint(t,f,X)});
this.ypcRegisterActionMapJobId_=_.jY(_.a6,function(){A.registerActionMap(A.buyFlowActionMap_)})},
detached:function(){var A=this;_.a6.cancelJob(this.ypcRegisterActionMapJobId_);_.jY(_.a6,function(){A.unregisterActionMap(A.buyFlowActionMap_)})},
handleYPCEndpoint:function(A,t,f){var X=t.ypcGetCartEndpoint;if(X){_.b0("commerce_transaction");var Q=X.gtmId;Q&&_.aF(Q);(X=X.gtmData)&&_.Ky(X)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",t)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(A,t),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",t)!=null?(this.handleYPCFixInstrumentEndpoint_(A,t),!0):t.ypcPauseSubscriptionCommand?(H3l(this.hostElement,A,t,f),
!0):t.ypcResumeSubscriptionCommand?(g6j(this.hostElement,A,t),!0):t.getPaymentInstrumentsParamsCommand?(dFh(this.hostElement,A,t),!0):t.ypcHandleTransactionEndpoint?(Z3_(this.hostElement,A,t,f),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(A,t){var f=this;_.Wt("ttcr",void 0,"commerce_transaction");t=t.ypcGetCartEndpoint;var X=t.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Q=X.encryptedPurchaseParams,q=X.serializedTransactionFlowLoggingParams,e=X.serializedPaymentsClientParams,G=this.createGetCartResponseFromParams_(X,t.offerParams,q);this.changeButtonState(A,!0);_.FZ(this.openWalletDialog(A,Q,X.ypcLogWalletAnalyticDataEndpoint,q,function(){f.changeButtonState(A,!1)},function(){f.changeButtonState(A,
!1)},e).then(function(N){return f.handleBuyFlowCompleteCallback_(A,G,N)},function(){return f.handleOnLoadError(G)}).then(function(N){return void f.handlePostPurchaseSuccess_(A,G,N)},function(N){return void f.handlePostPurchaseError_(N)}),function(){f.changeButtonState(A,!1);
A instanceof Element&&_.s9(A,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(A,t,f){var X=A.completeTransactionEndpoint,Q=A.handleTransactionEndpoint;t={data:{offerParams:window.btoa(t),serializedTransactionFlowLoggingParams:f}};Q?t.data.handleTransactionEndpoint=Q:t.data.completeTransactionEndpoint=X;A.onCartDismissCommand&&(t.data.onCartDismissCommand=A.onCartDismissCommand);return t},
onGetCartServiceRequestCompleted_:function(A,t){var f=this,X=A.target;if(t&&t.data&&t.data.messageRenderer)_.FI(this.hostElement),this.handleMessageRenderer_(t.data.messageRenderer),this.changeButtonState(X,!1);else{var Q=this.get("data.encryptedPurchaseParams",t),q=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",t),e=this.get("data.ypcLogWalletAnalyticDataEndpoint",t),G=this.get("data.serializedPaymentsClientParams",t),N=this.getLoggingParams_(t);if(N||Q||q)A.stopPropagation(),_.Wt("ttcr",
void 0,"commerce_transaction"),Q||_.FI(this.hostElement),this.changeButtonState(X,!1),q?_.kJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.ah("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:q}}},this]):Q&&(this.changeButtonState(X,!0),A=null,A=this.openWalletDialog(X,Q,e,N,function(){_.FI(f.hostElement);f.changeButtonState(X,!1)},function(){_.FI(f.hostElement);
f.changeButtonState(X,!1)},G),_.FZ(A.then(function(z){return f.handleBuyFlowCompleteCallback_(X,t,z)},function(){return f.handleOnLoadError(t)}).then(function(z){return f.handlePostPurchaseSuccess_(X,t,z)},function(z){return f.handlePostPurchaseError_(z)}),function(){f.changeButtonState(X,!1);
_.s9(X,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(A,t){t&&t.endpoint&&t.endpoint.ypcGetCartEndpoint&&!t.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",t.endpoint.ypcGetCartEndpoint)&&_.tl(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",t.endpoint.ypcGetCartEndpoint)],A.target),_.Dd(this.hostElement),this.changeButtonState(A.target,!0))},
onServiceRequestError_:function(A,t){if(t&&t.params&&t.params.length){t=_.U(t.params);for(var f=t.next();!f.done;f=t.next())if((f=f.value)&&f.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",f.ypcGetCartEndpoint)&&_.tl(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",f.ypcGetCartEndpoint)],A.target);_.FI(this.hostElement);this.changeButtonState(A.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(A,t,f){var X=f.integratorData;return X==null||X===""||f.error!=null?(X=this.getLoggingParams_(t),String(f.error)==="-1"?(t.data.onCartDismissCommand&&_.tl(this.hostElement,[t.data.onCartDismissCommand],A),_.OX(new Ur("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",X,!0))):_.OX(new Ur("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",X))):t.data.handleTransactionEndpoint?o62(this.hostElement,t.data.handleTransactionEndpoint,{payments_payload:X,funds_guarantee_callback_client_data:f.integratorClientCallbackData}):
this.completeTransaction(t,f)},
handlePostPurchaseSuccess_:function(A,t,f){t=f.data;var X=!1,Q,q;if(t&&((Q=t.command)==null?0:(q=Q.commandExecutorCommand)==null?0:q.commands)){var e,G;Q=(e=t.command)==null?void 0:(G=e.commandExecutorCommand)==null?void 0:G.commands;for(e=0;e<Q.length;e++)if(_.C(Q[e],_.q5w)){X=!0;break}}X||(t&&t.gtmDatas&&t.gtmDatas.length?_.Ky(t.gtmDatas[0]):_.Ky('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));f.data&&f.data.actions&&(t=Wa2(f.data.actions),f=yJ3(f.data.actions),t.length&&
_.Al(this.hostElement,t),f.length&&_.tl(this.hostElement,f,A))},
handlePostPurchaseError_:function(A){A&&A.payload&&A.payload.isUserDismiss||_.HQ(Error("Yl"))},
handleOnLoadError:function(A){A=this.getLoggingParams_(A);return _.OX(new Ur("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",A))},
getLoggingParams_:function(A){return this.get("data.serializedTransactionFlowLoggingParams",A)},
handleMessageRenderer_:function(A){var t=_.d9(A,"renderer"),f=_.ah("openPopupConfig");t==="confirmDialogRenderer"&&f&&_.kJ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:f.popupTypeMap[t],popup:A}},this])},
handleYPCFixInstrumentEndpoint_:function(A,t){var f=this,X=t.ypcFixInstrumentEndpoint;t=X.encryptedFixInstrumentParameters;this.logFixFopEvent_(X,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(A,!0);this.openFixFlowDialog(t,function(Q,q){f.onFixFlowCompleteCallback_(X,Q,q)},function(){return f.changeButtonState(A,!1)},function(){f.changeButtonState(A,!1);
f.logFixFopEvent_(X,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(A,t,f){var X=_.Ae("payments.business.integration.scenario.FixInstrument");if(t==X.IntegratorCallbackType.ON_COMPLETE){t="FIX_FOP_EVENT_TYPE_CANCEL";var Q=null;f.error!=null?f.error!=X.OnCompleteCallbackError.USER_CANCELLED&&(_.tl(this.hostElement,[A.errorAction],this.hostElement),t="FIX_FOP_EVENT_TYPE_FAILURE",Q="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.tl(this.hostElement,[A.successAction],this.hostElement),t="FIX_FOP_EVENT_TYPE_SUCCESS");_.tl(this.hostElement,[A.onFinishAction],
this.hostElement);this.logFixFopEvent_(A,t,Q)}},
logFixFopEvent_:function(A,t,f){(A=A.serializedFixFopLoggingParams)?(t={eventType:t,serializedFixFopLoggingParams:A},f!=null&&(t.errorType=f),_.SY("fixFopFlow",t),_.$B()):_.HQ(Error("Zl"))},
changeButtonState:function(A,t){_.M("enable_ypc_spinners")&&A&&(A.is==="yt-button-renderer"||A.is==="ytd-button-renderer")&&(A.disabled=t)}}];var cNQ=function(A){this.JSC$33007_clientRoot=A;this.feedbackCollectorActionMap={"yt-help-dialog-requested":s1d,"yt-feedback-dialog-requested":wIc,"yt-signal-action-help":kKy,"yt-signal-action-send-feedback":r1d,"yt-send-feedback-action":t$Q,"yt-user-feedback-endpoint":fXm};_.J4(_.XA.getInstance(),this.feedbackCollectorActionMap,this.JSC$33007_clientRoot)},Bpw;var Mg3=function(A){this.JSC$33012_clientRoot=A;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":X_3.bind(null,this.JSC$33012_clientRoot),"yt-signal-action-delete-all-downloads":qY3,"yt-signal-action-delete-download":JU3,"yt-signal-action-delete-playlist-download":eiw,"yt-signal-action-install-pwa":P63,"yt-signal-action-refresh-downloads":uZQ,"yt-offline-video-endpoint":i_Q,"yt-offline-playlist-endpoint":cUQ,"yt-update-local-app-setting-command":M$A,"yt-offline-orchestration-action-command":hid,
"yt-signal-action-undo-delete-download":lXd,"yt-local-watch-history-command":b_l,"yt-signal-action-mark-download-to-mobile-edu-shown":yUQ};_.J4(_.XA.getInstance(),this.downloadManagerActionMap,this.JSC$33012_clientRoot);_.Fc.instance=new _.Fc},CFA;var Wh=function(){var A=_.F.apply(this,arguments)||this;A.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_"};A.remoteApi_=null;return A};
_.R(Wh,_.F);_.J=Wh.prototype;
_.J.ready=function(){_.M("polymer_enable_mdx")&&(q1j({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.M("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.M("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.M("enable_cast_short_lived_lounge_token")}),_.MA("yt-remote-connection-change",this.handleConnectionChange_,this),_.MA("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=zSm())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.J.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.J.handleConnectionChange_=function(A){(this.mdxConnected=A)?(A=eSh(),!A&&o52()&&dB8()&&(A={key:"cast-selector-receiver",name:dB8()}),A=A.name):A=null;this.receiverName=A;_.ee(this.remoteApi_);(this.remoteApi_=zSm())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.J.handleReceiverAvailabilityChange_=function(){var A=U1d();o52()&&_.Bi("yt-remote-cast-available")&&A.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=A.length>0};
_.J.handleRemoteQueueChange_=function(){var A=this.currentVideoId_,t=this.currentListId_,f=LH(this.remoteApi_);this.currentVideoId_=f.videoId;this.currentListId_=f.listId;this.currentVideoId_&&_.kJ(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.M("polymer_enable_mdx_queue")?this.currentListId_:null,A,t])};
_.J.handleAddToQueueAction_=function(A){A=_.C(A,Nhc);this.remoteApi_&&(A.videoId?this.remoteApi_.addVideo(A.videoId):A.playlistId&&this.remoteApi_.addPlaylist(A.playlistId))};
_.J.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.J.handleInsertInQueueAction_=function(A){A=_.C(A,uFm);this.remoteApi_&&A.videoId&&this.remoteApi_.JSC$20255_insertVideo(A.videoId)};
_.J.handleRemoveFromQueueAction_=function(A){A=_.C(A,zbd);this.remoteApi_&&A.videoId&&this.remoteApi_.JSC$20255_removeVideo(A.videoId)};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],Wh.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n(),_.H("design:type",Object)],Wh.prototype,"appId",void 0);_.V([_.n(),_.H("design:type",Boolean)],Wh.prototype,"mdxConnected",void 0);_.V([_.n(),_.H("design:type",Boolean)],Wh.prototype,"receiverAvailable",void 0);_.V([_.n(),_.H("design:type",Object)],Wh.prototype,"receiverName",void 0);_.V([_.n(),_.H("design:type",Object)],Wh.prototype,"currentVideoId_",void 0);
_.V([_.n(),_.H("design:type",Object)],Wh.prototype,"currentListId_",void 0);_.V([_.WU({is:"yt-mdx-manager",disableElementRegistration:!0})],Wh);_.Y(Wh,"yt-mdx-manager",void 0,{mode:2});var hKd;var RK2;var yd=function(){var A=_.F.apply(this,arguments)||this;A.APP_IDS={ytr:3,ytm:5};A.JSC$21488_timeoutId_=0;A.actionMap={"yt-open-create-family-dialog":"open"};return A};
_.R(yd,_.F);_.J=yd.prototype;_.J.created=function(){MQ2(2200)};
_.J.detached=function(){this.observer_&&this.observer_.disconnect()};
_.J.open=function(A,t){var f=this,X=A.serializedYpcFamilyCreateLoggingParams;this.JSC$21488_timeoutId_=setTimeout(this.abort_.bind(this,A.postFlowErrorEndpoint,X),3E4);t&&(this.onReadyCallback_=t);var Q=_.sF(this.hostElement).querySelector("#unicorn-iframe");X&&X&&oE_("ypcFamilyCreateFlowStarted",X);_.XL5("family_creation",function(){var q=_.Ae("gapi.family_creation.render");_.Ae("gapi.config.update")("iframes/family_creation/url",f.getFamilyCreationUrlWithUnicornParams_());var e=3;A.appId&&A.appId in
f.APP_IDS&&(e=f.APP_IDS[A.appId]);e={authUser:_.ah("SESSION_INDEX")||0,clientId:e,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.ah("HL"),initialflow:[4,5,6,7],m:f.isMobile?1:0,onFlowComplete:f.onUnicornFlowComplete_.bind(f,A.postFlowSuccessEndpoint,X),onError:f.onUnicornFlowError_.bind(f,A.postFlowErrorEndpoint,X),onReady:f.onUnicornFlowReady_.bind(f,A.referencePcidParams)};q(Q,e)})};
_.J.close=function(){_.sF(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.J.onUnicornFlowComplete_=function(A,t){this.close();t&&t&&oE_("ypcFamilyCreateFlowSucceeded",t);_.s9(this.hostElement,"yt-navigate",{endpoint:A})};
_.J.onUnicornFlowError_=function(A,t){this.close();t&&oE_("ypcFamilyCreateFlowCancelled",t);_.s9(this.hostElement,"yt-navigate",{endpoint:A})};
_.J.onUnicornFlowReady_=function(A){var t=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();A&&_.Ae("gapi.family_creation.setConfig")(0,A);this.observer_=new MutationObserver(function(){_.sF(t.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.sF(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.sF(this.hostElement).querySelector("#dialog").open()};
_.J.getFamilyCreationUrlWithUnicornParams_=function(){return _.ah("YTR_FAMILY_CREATION_URL")};
_.J.getCurrentUrl_=function(){return document.location.href};
_.J.abort_=function(A,t){this.clearTimeout_();this.onUnicornFlowError_(A,t)};
_.J.clearTimeout_=function(){clearTimeout(this.JSC$21488_timeoutId_)};
_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],yd.prototype,"ytActionHandlerBehavior",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],yd.prototype,"isMobile",void 0);_.V([_.n(),_.H("design:type",Object)],yd.prototype,"onReadyCallback_",void 0);_.V([_.n(),_.H("design:type",Object)],yd.prototype,"observer_",void 0);_.V([_.WU({is:"yt-create-family-dialog",disableElementRegistration:!0})],yd);
_.Y(yd,"yt-create-family-dialog",function(){if(RK2===void 0){var A=document.createElement("template");_.m(A,'\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');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);var t=A.content,f=t.insertBefore;hKd===void 0&&(hKd=document.createElement("template"));var X=hKd;f.call(t,X.content.cloneNode(!0),A.content.firstChild);RK2=A}A=RK2;return A},{mode:2});var m62;var bCd;var vh=function(){var A=_.F.apply(this,arguments)||this;A.STEP=1;A.BLOCK_ON=80;A.MIN_PROGESS=0;A.MAX_PROGESS=100;return A};
_.R(vh,_.F);_.J=vh.prototype;_.J.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.J.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));_.Px().addProvider({provide:k9_,useValue:this})};
_.J.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.J.finish=function(){var A=this;this.progress=this.MAX_PROGESS;vg2(function(){A.progress==A.MAX_PROGESS&&(A.hostElement.hidden=!0)})};
_.J.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.PV.Object.defineProperties(vh.prototype,{progress:{configurable:!0,enumerable:!0,set:function(A){this.progress_=A;var t="scaleX("+A/this.MAX_PROGESS+")",f=_.sF(this.hostElement).querySelector("#progress").style;f.transform=t;f.webkitTransform=t;this.hostElement.setAttribute("aria-valuenow",String(A))},
get:function(){return this.progress_}}});
_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],vh.prototype,"ytComponentBehavior",void 0);_.V([_.WU({is:"yt-page-navigation-progress",disableElementRegistration:!0})],vh);
_.Y(vh,"yt-page-navigation-progress",function(){if(bCd===void 0){var A=document.createElement("template");_.m(A,'\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');A.content.insertBefore(_.a().content.cloneNode(!0),
A.content.firstChild);var t=A.content,f=t.insertBefore;m62===void 0&&(m62=document.createElement("template"));var X=m62;f.call(t,X.content.cloneNode(!0),A.content.firstChild);bCd=A}A=bCd;return A},{mode:2});var WAQ={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"},yNj={"font-size":"12px","font-style":"italic"},vXh={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.ng8=function(){return _.l(function(A){_.LO(A)})};var LAA=_.I(function(A){var t=function(){return A.data().subtext},f={};
return _.u("snackbar-view-model",{class:_.Ao("snackbarViewModelHost",A.className)},_.u("div",{class:_.Ao("snackbarViewModelEngagementBarWrapper",A.className)},_.u(_.P,{cond:function(){return A.data().image},
then:function(X){return _.u(_.YA,{data:X,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.u(_.P,{cond:function(){return A.data().imageContent},
then:function(){return _.u("div",{class:"snackbarViewModelAvatarContainer"},_.u(_.P1,{data:function(){return A.data().imageContent}},{decoratedAvatarViewModel:_.qM}))}}),_.u("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.u("div",{class:_.Ao((f.snackbarViewModelTitle=!0,f.snackbarViewModelTitleWithSubtext=t,f))},_.u(_.zL,{text:function(){return A.data().text}})),_.u(_.P,{cond:t,
then:function(){return _.u("div",{class:"snackbarViewModelSubtext"},_.u(_.zL,{text:function(){return t()}}))}})),_.u(_.P,{cond:function(){return A.data().buttons},
then:function(){return _.u("div",{class:"snackbarViewModelButtonClassWrapper"},_.u(_.P1,{data:function(){return A.data().buttons}},{buttonViewModel:function(X){return _.u(_.nx,{data:X.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:A.target})}}))}})))},"uk");_.Hn(_.I(function(){function A(D,S,Z){h(D);L(Z);c("in");T(!0);t(D,S);e=setTimeout(function(){f()},S)}
function t(D,S){var Z,d=(Z=D.text)==null?void 0:Z.content;D=_.mL(D.rendererContext);d&&(S={label:d,command:D,durationMs:S},_.Px().resolve(_.m8).enqueue(S))}
function f(D){c("out");D&&clearTimeout(e)}
function X(){f(!0)}
function Q(D){if(D){var S=D.snackbarViewModel,Z=D.durationMs,d=D.target;Z||(Z=3E3);S&&(D=_.Px().resolve(_.z7(_.B3)))&&D.enqueue({isOpened:z,open:function(){A(S,Z,d)},
close:f},0)}}
var q=_.ud("snackbar-container"),e=void 0,G=_.U(_.hZ(!1,void 0,"mDc5N")),N=G.next().value;G=G.next().value;var z=N,T=G;N=_.U(_.hZ("out",void 0,"FpOs5e"));var O=N.next().value,c=N.next().value;N=_.U(_.hZ(void 0,void 0,"jIDRob"));var B=N.next().value,h=N.next().value;N=_.U(_.hZ(void 0,void 0,"kOA3Mb"));var W=N.next().value,L=N.next().value,E=_.f1(function(){if(O()==="out"){T(!1);h(void 0);L(void 0);var D=_.Px().resolve(_.z7(_.B3));D&&F12(D,0)}});
_.oh(function(){var D=_.Px().resolve(_.z7(_.LSc));D&&(D.showSnackbarFn=Q,D.closeSnackbarFn=X)});
return _.u("snackbar-container",{class:"ytSnackbarContainerHost",el:q},_.u(_.P,{cond:function(){return z()&&!!B()},
then:function(){var D={};return _.u("div",{class:_.Ao("ytSnackbarContainerSnackbarContainer",(D.ytSnackbarContainerMobile=!1,D.ytSnackbarContainerPivotBar=function(){var S;return!((S=_.Px().resolve(_.z7(_.pd2)))==null||!S())},D.ytSnackbarContainerOpened=function(){return z()&&O()==="in"},D.ytSnackbarContainerClosed=function(){return z()&&O()==="out"},D)),
"on:animationend":E},_.u(LAA,{data:function(){return B()},
target:function(){return W()}}))}}))},"vk"),"snackbar-container");_.Hn(_.fDT,"yt-tooltip");var pvd=_.Px3.ephemeralActionSelector;_.Hn(_.I(function(){var A=_.um(pvd);return _.u("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var t;return(t=A())==null?void 0:t.announcement})},"wk"),"yt-ephemeral-actions");var rUy=new Map;var iIw=function(A,t){var f=this;this.handleError=A;this.logEventInternal=t;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){f.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
iIw.prototype.logError=function(A){this.handleError(A)};
iIw.prototype.logEvent=function(A,t){switch(A){case "IDB_DATA_CORRUPTED":_.M("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",t);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",t);break;case "IS_SUPPORTED_COMPLETED":_.M("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",t);break;case "QUOTA_EXCEEDED":EX8(this,t);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",t);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":A=Object.assign({},t,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",A)}};
var EX8=function(A,t){_.W3.getInstance().estimate().then(function(f){f=Object.assign({},t,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:tQ_(f==null?void 0:f.usage),deviceStorageQuotaMbytes:tQ_(f==null?void 0:f.quota)});A.logEventInternal("idbQuotaExceeded",f)})};var nXl=_.I(function(A){var t=_.GU("yt-draggable"),f=A.onDrag,X=A.onDragStart,Q=A.onDragEnd,q=_.Sv(A,{allowClicks:!1,dragThreshold:5}),e=q.dragThreshold,G=q.allowClicks;A=q.children;q=q.className;var N=void 0,z=void 0,T=new _.ok(0,0),O=!1;_.oh(function(){N=new _.$w(t.value);z=new _.Og(B);c(N,z);if(G()){_.xP8(N,e());var W;(W=t.value)==null||W.addEventListener("click",h,{capture:!0})}_.dD(function(){var L;(L=N)==null||L.dispose();if(G()){var E;(E=t.value)==null||E.removeEventListener("click",h,{capture:!0})}})});
var c=function(W,L){_.TV(W,"earlycancel",function(){G()&&(O=!1)});
_.TV(W,"start",function(E){X==null||X(E);E.defaultPrevented||G()&&(O=!0)});
_.TV(W,"beforedrag",function(E){N&&z&&(E.preventDefault(),T=new _.ok(E.clientX-N.startX,E.clientY-N.startY),z.start())});
_.TV(W,"end",function(){L.stop();Q==null||Q();T=new _.ok(0,0)})},B=function(){T&&f(T)},h=function(W){O&&(O=!1,W.stopPropagation(),W.preventDefault())};
return _.u("yt-draggable",{el:t,class:_.Ao("ytDraggableComponentHost",q)},A)},"xk");var D6y=_.I(function(A){var t=_.U(_.hZ(0,void 0,"Qf0tbc")),f=t.next().value,X=t.next().value;t=function(Q){var q={},e={};return _.u(nXl,{className:_.Ao("ytdMiniplayerComponentResizer",(q.ytdMiniplayerComponentResizerDisabled=function(){return Q===A.horizontalAlignment()||Q===A.verticalAlignment()},q.ytdMiniplayerComponentResizerNorth=Q==="north",q.ytdMiniplayerComponentResizerEast=Q==="east",q.ytdMiniplayerComponentResizerSouth=Q==="south",q.ytdMiniplayerComponentResizerWest=Q==="west",q)),
onDragStart:function(){X(A.currentMiniplayerSize());if(A.onResizeStart)A.onResizeStart()},
onDrag:function(G){Q!=="north"&&Q!=="west"||G.scale(-1);var N;G=(N=Q==="north"||Q==="south")?G.y:G.x;var z=A.currentAspectRatio();N&&z>=1?G*=z:!N&&z<1&&(G/=z);N=G;A.onResize(f()+N)}},_.u("div",{class:_.Ao("ytdMiniplayerComponentResizerCorner",(e.ytdMiniplayerComponentResizerNorthCorner=Q==="north",e.ytdMiniplayerComponentResizerEastCorner=Q==="east",e.ytdMiniplayerComponentResizerSouthCorner=Q==="south",e.ytdMiniplayerComponentResizerWestCorner=Q==="west",e))}))};
return _.u("div",{class:"ytdMiniplayerComponentResizers"},t("north"),t("east"),t("south"),t("west"))},"yk");var FA2=16/9;_.Hn(_.I(function(){var A=_.GU("ytd-miniplayer"),t=_.U(_.hZ(new _.Ln(NaN,NaN),void 0,"NHaFyc")),f=t.next().value,X=t.next().value;t=_.U(_.hZ(!1,void 0,"a0rwG"));var Q=t.next().value,q=t.next().value;t=_.U(_.hZ(!1,void 0,"f1jSeb"));var e=t.next().value,G=t.next().value;t=_.U(_.hZ(!1,void 0,"JojXKc"));var N=t.next().value,z=t.next().value;t=_.U(_.hZ(!1,void 0,"FjS8Db"));var T=t.next().value,O=t.next().value;t=_.U(_.hZ(!1,void 0,"z5WG9e"));var c=t.next().value,B=t.next().value;t=_.U(_.hZ(!1,void 0,"eUzZd"));
var h=t.next().value,W=t.next().value;t=_.U(_.hZ(FA2,void 0,"XsBIy"));var L=t.next().value,E=t.next().value,D=_.U(_.hZ(!1,void 0,"FJSvse"));t=D.next().value;var S=D.next().value;D=_.U(_.hZ(!1,void 0,"VDUFL"));var Z=D.next().value,d=D.next().value;D=_.U(_.hZ(void 0,void 0,"nFeh4b"));var K=D.next().value,k=D.next().value;D=_.U(_.hZ(NS()?"west":"east",void 0,"T7co7c"));var Gz=D.next().value,Tz=D.next().value;D=_.U(_.hZ("south",void 0,"QDUsLb"));var y5=D.next().value,cp=D.next().value;D=_.U(_.hZ(400,
void 0,"F7Vdze"));var iu=D.next().value,Fb=D.next().value,xq=_.Px().resolve(_.DS).miniplayerPropSignalMap[0],Yq=xq.data,zk=xq.externalPlaylistData;D=xq.toastData;var PT=xq.playabilityStatus,rs=xq.isReadyToResume,OT=xq.isDisabled,bK=xq.watchWhile,ET=xq.playerVe,m3=xq.expandVe,O2=xq.closeVe,eT=xq.readyToResumeVe,fS=xq.readyToResumeCloseVe,hf=xq.repositionVe,wE=xq.resizeVe;xq=_.U(_.Jo(rs));var Rp=xq.next().value,rE=xq.next().value,bL=_.um(_.Iv.persistentPanelVisibleSelector),$8=!1,Tk=!1,iK;_.oh(function(){X(_.uY());
A.value.addEventListener("animationend",function(HT){HT.target===A.value&&(B(!1),W(!1))});
U3w(A.value)});
_.eU("yt-window-resized",function(HT){HT&&X(HT)});
var Qh=function(){iK&&E(iK.getVideoAspectRatio())},Kg=function(){if(iK){var HT=iK.getPlayerState()===1;
Rp()&&HT&&rE(!1)}},fw=function(){var HT=m3();
if(HT){var by=_.Ws(3);by&&_.o7(by,HT)}},TH=function(){var HT=O2(),by=fS();
HT&&_.o7(_.Ws(3),HT);rs()&&by&&_.o7(_.Ws(3),by)};
_.eU("yt-activate-miniplayer",function(HT){var by;return _.l(function(qd){if(qd.nextAddress==1)return Q()?qd.return():qd.yield((by=_.Px().resolve(_.DS).getPlayerElement())==null?void 0:by.getPlayerPromise(),2);iK=qd.yieldResult;if(!iK)return qd.return();!Z()&&_.M("kevlar_watch_while_v2")&&(cp(HT&&!_.M("kevlar_watch_while_bottom_align")?"north":"south"),Tz(NS()?"west":"east"));var gG=iK;gG.addEventListener("onVideoDataChange",Qh);gG.addEventListener("onStateChange",Kg);gG.addEventListener("onExpandMiniplayer",
fw);gG.addEventListener("onCloseMiniplayer",TH);E(iK.getVideoAspectRatio());q(!0);JHd()||B(!0);_.LO(qd)})});
_.eU("yt-deactivate-miniplayer",function(HT,by){return _.l(function(qd){if(!Q())return qd.return();q(!1);rE(!1);W(HT);O(!1);G(!1);if(iK){var gG=iK;gG.removeEventListener("onVideoDataChange",Qh);gG.removeEventListener("onStateChange",Kg);gG.removeEventListener("onExpandMiniplayer",fw);gG.removeEventListener("onCloseMiniplayer",TH)}JHd()||by?by&&B(!1):B(!0);_.LO(qd)})});
var Xx=function(){return!(bK()&&_.M("kevlar_watch_while_modern"))},cA=function(){var HT;
return!((HT=zk())==null||!HT.contents)},$m=function(){var HT=iu();
var by=f();by=Math.min(Math.min(by.width,by.height)-32,720);var qd=L(),gG=Xx(),Gv=cA()&&e(),yG=Math.min(HT,by);HT=new _.Ln(192,gG?116:192);qd=new _.Ln(Gv?FA2:qd,1);yG=new _.Ln(yG,gG?yG-76:yG);yG=qd.aspectRatio()>yG.aspectRatio()?yG.width/qd.width:yG.height/qd.height;qd=qd.scale(yG);HT.width<=qd.width&&HT.height<=qd.height||(HT=qd.aspectRatio()<=HT.aspectRatio()?HT.width/qd.width:HT.height/qd.height,qd.scale(HT),qd.width=Math.min(qd.width,by),qd.height=Math.min(qd.height,by));return new _.Ln(qd.width,
_.ps(192,qd.height+Nzd(gG,Gv),720))},z_=function(){var HT=$m(),by=Xx(),qd=cA()&&e();
return new _.Ln(HT.width,HT.height-Nzd(by,qd))},Mw=function(){var HT=function(by){by.target===A.value&&T()&&(O(!1),A.value.removeEventListener("transitionend",HT))};
JHd()||(A.value.addEventListener("transitionend",HT),O(!0));G(!e())};
_.oo(function(){var HT=ET(),by=_.Ws(3),qd=_.mx(3);if(by&&qd&&HT){_.x7(by,qd,HT);qd=hf();var gG=wE(),Gv=m3(),yG=O2(),fF=fS();Gv&&yG&&fF&&(_.j5(by,HT,[Gv,yG,fF]),_.Vg(by,[Gv,yG]));qd&&gG&&_.j5(by,HT,[qd,gG])}},"UBpUDd");
_.oo(function(){var HT=eT();if(HT){var by=_.Ws(0),qd=_.mx(0);by&&qd&&(_.x7(by,qd,HT),_.Vg(by,[HT]))}},"fQpBzb");
xq={};return _.u("ytd-miniplayer",{el:A,class:_.Ao("ytdMiniplayerComponentHost",(xq.ytdMiniplayerComponentVisible=function(){return(Q()||c())&&!(bK()&&_.M("kevlar_watch_while_counterfactual"))},xq.ytdMiniplayerComponentAnimatingSnap=N,xq.ytdMiniplayerComponentAnimatingPlaylistExpand=T,xq.ytdMiniplayerComponentAnimatingFade=c,xq),function(){if(c()){var HT=y5();
var by=Q(),qd=h();HT=by?HT==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":qd?HT==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":HT==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else HT="";return HT}),
style:_.U7({top:function(){return y5()==="north"?"16px":""},
right:function(){var HT=Gz(),by=bL();by=(by===void 0?0:by)&&!NS()?400:0;return HT==="east"?16+by+"px":""},
bottom:function(){return y5()==="south"?"16px":""},
left:function(){var HT=Gz(),by=bL();by=(by===void 0?0:by)&&NS()?400:0;return HT==="west"?16+by+"px":""},
width:function(){return $m().width+"px"},
height:function(){return $m().height+"px"},
transform:function(){var HT=K();return HT?"translate("+HT.x+"px, "+HT.y+"px)":""}})},_.u("div",{class:"ytdMiniplayerComponentContent"},_.u(nXl,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(HT){var by=lWw(Gz(),y5(),f(),$m(),K()),qd=z_();Math.abs(HT.clientY-(by.y+qd.height))>15?(S(!0),HT=_.Ws(3),by=hf(),$8||($8=!0,HT&&by&&_.Vg(HT,[by])),HT&&by&&_.o7(HT,by)):HT.preventDefault()},
onDrag:function(HT){k(HT)},
onDragEnd:function(){var HT=e0l(lWw(Gz(),y5(),f(),$m(),K()),f(),$m()),by=GYc(Gz(),y5(),f(),$m(),bL()),qd=GYc(HT.horizontalAlignment,HT.verticalAlignment,f(),$m(),bL());qd=new _.ok(qd.x-by.x,qd.y-by.y);var gG;by=by.y+(((gG=K())==null?void 0:gG.y)||0)+$m().height/2;var Gv=function(){Gz()===HT.horizontalAlignment&&y5()===HT.verticalAlignment||d(!0);Tz(HT.horizontalAlignment);cp(HT.verticalAlignment);k(void 0)},yG=function(fF){fF.target===A.value&&N()&&(z(!1),Gv(),A.value.removeEventListener("transitionend",
yG))};
S(!1);y5()==="south"&&by>f().height?(Gv(),_.Px().resolve(_.DS).close()):(A.value.addEventListener("transitionend",yG),z(!0),k(qd))}},_.u(_.P,{cond:Q,
then:function(){return _.u(_.Bb8,{isDisabled:OT,playabilityStatus:PT,size:z_})}}),_.u(_.P,{cond:Xx,
then:function(){return _.u(_.OU8,{isReadyToResume:Rp,data:Yq,expanded:e,onExpandClick:Mw,playlistData:zk})}}),_.u(_.P,{cond:t,
then:function(){return _.u("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.u(_.P,{cond:function(){return cA()&&e()||T()},
then:function(){return _.u(_.yr8,{className:"ytdMiniplayerComponentPlaylistPanel",data:zk,hideHeaderText:!0,withinMiniplayer:!0})}}),_.u("div",{class:"ytdMiniplayerComponentToast"},_.u(_.MCQ,{toastData:D}))),_.u(D6y,{onResize:function(HT){Fb(_.ps(192,HT,720))},
onResizeStart:function(){var HT=_.Ws(3),by=wE();Tk||(Tk=!0,HT&&by&&_.Vg(HT,[by]));HT&&by&&_.o7(HT,by)},
currentAspectRatio:L,currentMiniplayerSize:iu,horizontalAlignment:Gz,verticalAlignment:y5}))},"Bk"),"ytd-miniplayer",{});var Ipl=_.Iv.persistentPanelVisibleSelector,LJ=function(){var A=_.F.apply(this,arguments)||this;A.tabGesturesIsActive=!1;A.persistentPanelEnabled=_.M("enable_ai_companion");A.hasDelegation=!1;A.isFrostedGlassInitialized=!1;A.frostedGlassExp=_.M("web_frosted_glass");A.hasPendingWatchNavigation=!1;A.mastheadHiddenFocusWithinKillswitch=_.M("web_masthead_hidden_focus_within_killswitch");A.clientOnlyWizTooltipsEnabled=_.M("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
A.scrollAtTop=!0;A.guideScrollTop=0;A.isTheaterModeSession=_.Ka("START_IN_THEATER_MODE");A.iMaxTheaterMode=_.M("web_watch_imax_theater_mode");A.isFullWindowSession=_.Ka("START_IN_FULL_WINDOW_MODE");A.hasCreateFamilyDialog=!1;A.mastheadHeight=56;A.networkStatusManager=new _.qA;A.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"};A.dynamicActionMap={"yt-run-attestation-command":function(t){var f=_.Tk2.instance,X=_.C(t,_.Mhp);return X?_.M("use_rta_manager_for_async")&&
(_.M("attmusi")&&_.M("attmusi_ue")?window.attmp:trl())?lzQ(f,X,t.clickTrackingParams):GEm(f,X,t.clickTrackingParams):_.OX(Error("qi"))}};
A.isFrostedGlassDisabled=!1;A.isChannelOrPlaylistPage=!1;return A};
_.R(LJ,_.F);_.J=LJ.prototype;_.J.created=function(){var A=_.Px();_.M("kevlar_clear_duplicate_pref_cookie")&&_.jY(_.a6,function(){var t=_.E0.get("PREF");t&&!/f\d=/.test(t)&&(t=_.Bx("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=t?"PREF=null;domain="+t+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.M("gzip_gel_with_worker")&&_.AYu();_.M("jspb_serialize_with_worker")&&WG_();_.M("web_worker_availability_check")&&AH3();_.M("nwl_init_killswitch")||mxh().then(function(){_.a6.addLowPriorityJob(cJA)});
this.pageManagerAttachedPromise=_.YE();this.ytdAppBehavior.loadDepsPromise=_.DX([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.qI(this.onThrottledScroll,200,this);_.M("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);OIh();FbQ=!!_.Ae("ytappsettings.initialized");Cmd=_.Ae("ytappsettings.previousValue");hnj=_.Ae("ytappsettings.previousSnapshotTime");FbQ||(FbQ=!0,Rn_());m1j();bdh();_.H5("DEFERRED_DETACH",
_.M("kevlar_tuner_should_defer_detach"));_.H5("REUSE_COMPONENTS",!0);_.H5("STAMPER_STABLE_LIST",!0);_.H5("SCHEDULED_LAZY_LIST",!0);_.H5("openPopupConfig",zO2);_.H5("useClickHandler",!0);_.M("kevlar_shell_cleanup")&&_.a6.addLowPriorityJob(lnw.bind(this,_.Xb.caches));_.Ka("IS_SHELL_LOAD")&&_.R7({shellStartupDurationMs:Math.round((0,_.OJ)()-_.OO())});xUh(this.networkStatusManager);_.M("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Lkl(WAQ)),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!",
Lkl(yNj)),console.log("%cVisit http://go/join-youtube-web to apply today.",Lkl(vXh)));_.nJ_(A.resolve(_.hi),1E3)};
_.J.ready=function(){var A=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var t=YX3();t&&!_.M("external_fullscreen_killswitch")&&document.addEventListener(t,this.setFullscreen.bind(this));(t=window.matchMedia("(prefers-color-scheme: dark)"))&&t.addEventListener&&t.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(t=_.Px().resolve(_.z7(_.BQT)))t.subscribe("navigation-start",
function(f){f.destinationPageSubtype==="watch"&&(A.hasPendingWatchNavigation=!0)}),t.subscribe("navigation-end",function(f){f.destinationPageSubtype==="watch"&&(A.hasPendingWatchNavigation=!1)})};
_.J.attached=function(){var A=this;_.TT().processSignal("ci");_.M("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.lFC?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.GF(_.R2x(),"SUCCESS");this.updateIconSet();_.g2(this.guideInnerContent,!1);_.ZQ().initVisibilityObserver();this.guideService.guideElement=this.guide;var t=document.createElement("ytd-miniplayer"),f=_.sF(this.hostElement).querySelector("#content");
_.sF(this.hostElement).insertBefore(t,f);_.TT().processSignal("ma");_.Px().resolve(_.DS).init(t);this.persistentPanelEnabled&&_.I2A(_.Px().resolve(_.fm),this.persistentPanelContainer,"APP");_.Ka("IS_SHELL_LOAD")&&(f=document.createElement("ytd-network-status-banner"),_.sF(this.hostElement).insertBefore(f,t));_.M("kevlar_right_click_on_lockups")&&_.e4._onCaptureClick&&document.addEventListener("contextmenu",_.e4._onCaptureClick.bind(_.e4),!0);var X=function(){var Q=_.MX("yt-page-navigation-progress");
_.sF(A.hostElement).appendChild(Q)};
setTimeout(function(){_.TT().parkOrScheduleJob(X,0,"eocs",16)},0);
_.M("service_worker_push_enabled")&&_.jY(_.a6,Z1h);_.J4(_.XA.getInstance(),this.dynamicActionMap,this.hostElement);_.s9(this.hostElement,"ytd-app-attached");_.TT().processSignal("aa");tlc(this.hostElement);_.zm("gapi.load",_.XL5);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.jY(_.a6,
function(){var Q=document.createElement("ytd-video-preview");_.sF(_.sF(A.hostElement).querySelector("#video-preview")).appendChild(Q)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.jY(_.a6,function(){DU_();A.registerWithViewTransitionManager()});
if(_.D2()&&this.isAppDarkTheme()!==_.EF())this.onDarkModeToggledAction();else t=_.np()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==t&&(_.M("enable_dark_theme_only_on_shorts")?_.pp(_.M("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Je(window.location.href,{theme:"dark"})):_.K4(new _.xj("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(ODy=new iD3(this.hostElement)),CFA=new Mg3(this.hostElement),Bpw=new cNQ(this.hostElement),x5d=new Ibw(this.hostElement)};
_.J.getThemeSettingsToLog=function(){var A=_.np()==="USER_INTERFACE_THEME_DARK";A=_.D2()?_.EF()?"os-dark":"os-light":A?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:A,cookiesEnabled:_.DU()}};
_.J.detached=function(){_.w2(this.guideInnerContent);_.a6.cancelJob(HI3);HI3=0;_.a6.cancelJob(wnm);wnm=0;_.zpb(Aow);Aow.length=0;s8d=_.QSu=null;_.ZQ().dispose();_.M("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.UI(_.XA.getInstance(),ODy.playlistHandlerActionMap,ODy.JSC$32717_clientRoot);_.UI(_.XA.getInstance(),CFA.downloadManagerActionMap,CFA.JSC$33012_clientRoot);_.UI(_.XA.getInstance(),Bpw.feedbackCollectorActionMap,Bpw.JSC$33007_clientRoot);
for(var A=_.U(x5d.eventListeners),t=A.next();!t.done;t=A.next()){var f=_.U(t.value);t=f.next().value;f=f.next().value;f=_.U(f);for(var X=f.next();!X.done;X=f.next()){var Q=_.U(X.value);X=Q.next().value;Q=Q.next().value;t.removeEventListener(X,Q)}}_.UI(_.XA.getInstance(),x5d.autonavPauseActionMap,x5d.JSC$20437_clientRoot)};
_.J.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.NJ().getFlag(186)};
_.J.computeIsInlinePreviewEnabled=function(A,t,f){return!f&&_.RZ8({miniplayerIsActive:A,miniplayerPlaybackState:t})};
_.J.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.r0({type:"SET_FROSTED_GLASS_MODE",payload:!_.M("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"}))};
_.J.computeIsFrostedGlassDisabled=function(A,t,f,X){return A||t||f||X&&_.M("web_frosted_glass_disable_watch")};
_.J.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.M("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.J.computeIsHomePage=function(A,t){if(!A||t==null||!t.endpoint)return!1;var f;return((f=_.C(t.endpoint,_.GD))==null?void 0:f.browseId)==="FEwhat_to_watch"};
_.J.updateIsChannelOrPlaylistPage=function(){if(_.M("web_frosted_glass")){var A,t,f=(t=(A=_.Px().resolve(_.z7(_.HO)))==null?void 0:A.getCurrentPage())==null?void 0:t.pageSubtype;this.isChannelOrPlaylistPage=f?["channel","channels","playlist"].includes(f):!1}};
_.J.scheduleFrostedGlassInitialization=function(){var A=this;_.M("web_frosted_glass")&&_.TT().parkOrScheduleJob(function(){A.isFrostedGlassInitialized=!0},0,_.Z6(["eocs",
"cr"]),300)};
_.J.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Jnl(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.r0({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.r0({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.J.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(RA3(!0))};
_.J.onYtSignalActionRequestPersistentStorage=function(){if(!_.M("request_persistent_storage_killswitch")){var A=_.Px().resolve(_.soQ);A.cachedPersistStatePromise||(A.cachedPersistStatePromise=$Hw())}};
_.J.handleYtChannelCreationFormEndpoints=function(A){A&&this.ytComponentBehavior.resolveCommand(A)};
_.J.handleShowEngagementPanelEndpoint=function(A){A&&this.ytComponentBehavior.resolveCommand(A)};
_.J.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(RA3(!1))};
_.J.initIconDefs=function(A,t){var f=document.createElement("iron-iconset-svg");f.name=A;A=document.createElementNS("http://www.w3.org/2000/svg","svg");f.appendChild(A);A.appendChild(t);document.body.appendChild(f);return f};
_.J.onWindowResized=function(){_.kJ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var A=_.DQ.getInstance();A.documentWidth_=document.body.clientWidth;IWc(A)};
_.J.onWindowScrolled=function(){var A=_.Px().resolve(_.HO).getCurrentPage();if(A!=null&&A.getScrollTop){var t=this.ytdReduxBehavior,f=t.dispatch;A=A.getScrollTop()<=0;f.call(t,_.r0({type:"SET_SCROLL_AT_TOP",payload:A}))}};
_.J.guideIsVisibleButNotPersistentSelectorChanged=function(){var A=_.Px().resolve(_.HO).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=A.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"),
A.setScrollTop(this.guideScrollTop));_.r2(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.J.getCurrentPageScrollableElementType=function(){var A=_.Px().resolve(_.HO).getCurrentPage();if(A&&A.getPageScrollingElement())return A.getPageScrollingElement().nodeName};
_.J.observeGuideVisibility=function(){var A=_.DQ.getInstance(),t=this.miniGuideVisible;A.guidePersistentAndVisible_=this.guidePersistentAndVisible;A.miniGuideVisible_=t;IWc(A)};
_.J.observePersistentPanelVisibility=function(){var A=_.DQ.getInstance();A.persistentPanelVisible_=this.persistentPanelVisible;IWc(A)};
_.J.handleEduDismissAction=function(A){A&&A.eduDismissAction&&(_.kJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.lbl.getInstance(),_.Ed.set(A.eduDismissAction.key+"-dismissed",!0))};
_.J.handleEduImpressionAction=function(A){if(A&&A.eduImpressionAction){var t=_.lbl.getInstance();A=A.eduImpressionAction.key;t.JSC$13272_eduDisplayedThisLoad_[_.GNp[A].setKey||A]=!0;_.Ed.set(A+"-impression",parseInt(_.Ed.get(A+"-impression")||0,10)+1)}};
_.J.onYtSignalActionConfirmMentionsEdu=function(){_.kJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.IF.getInstance();_.Fj.set("edu-dismissed",!0)};
_.J.onYtSignalActionRecordMentionsEduImpression=function(){_.IF.getInstance();var A=_.Fj.set,t=parseInt(_.Fj.get("edu-impressions"),10);A.call(_.Fj,"edu-impressions",(isFinite(t)?t:0)+1)};
_.J.onYtPageManagerAttached=function(A){var t;((t=_.oO(A))==null?void 0:t.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.J.onInvokeInstrumentManagerAction=function(A,t){qEy(t,A)};
_.J.updateIconSet=function(){var A=this.hostElement.querySelector("#masthead");if(A){var t=_.kO(A),f=t.querySelector("g#yt-logo-updated");f&&(A=document.createElementNS("http://www.w3.org/2000/svg","defs"),A.appendChild(f.cloneNode(!0)),(t=t.querySelector("g#yt-logo-red-updated"))&&A.appendChild(t.cloneNode(!0)),this.initIconDefs("yt-logos-ext",A))}};
_.J.updateMastheadData=function(){var A=this,t,f,X,Q,q;return _.l(function(e){if(e.nextAddress==1){t=A.data;f=A.hostElement.querySelector("#masthead");if(!f)return e.return();_.us(A,function(){f.data=A.topbarData});
if(!A.get("response.topbar",t)||A.get("response.topbar.responseContext.maxAgeSeconds",t)===0)return e.jumpTo(0);if(X=_.Px().resolve(_.fv))return e.yield(X(),6);Q=_.Px().resolve(_.Id);return e.yield(Q.put("service:topbar:fallback",new _.xy({innertubeResponse:A.get("response.topbar",t)})),0)}return(q=e.yieldResult)?e.yield(q.put("service:topbar:fallback",new _.xy({innertubeResponse:A.get("response.topbar",t)})),0):e.jumpTo(0)})};
_.J.computeTopbarData=function(A){if(!A)return null;var t;return this.isShortsPage&&this.topbarData&&!_.C((t=A.response)==null?void 0:t.topbar,rAQ)?this.topbarData:A.response&&"topbar"in A.response?_.C(A.response.topbar,rAQ)||null:null};
_.J.onSetTheaterModeEnabled=function(A,t){this.isTheaterModeSession=t.enabled;this.setTheaterModeStyles(t.enabled)};
_.J.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.J.onDarkModeToggledAction=function(){var A=_.Wx(window.location.href);if(!_.UKu(A)){(A=!!_.qG(window.location.href).themeRefresh)&&_.K4(new _.xj("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!A){Rn_();A={themeRefresh:1};var t=_.Px().resolve(_.HO);if(t.isOnWatch()){var f,X;t=((f=t.getPlayerFromWatch())==null?void 0:(X=f.getPlayer())==null?void 0:X.getCurrentTime())||0;t>=1&&(A.time_continue=Math.floor(t))}_.DU()||_.np()!=="USER_INTERFACE_THEME_DARK"||(A.theme="dark");_.pp(_.Je(window.location.href,
A))}_.M("web_appshell_refresh_trigger")&&_.Xb.caches&&this.refreshAppShellResponse();f=_.Iq(window.location.href);_.Vn(_.Px().resolve(_.Zl),_.Hs(f,"theme"))}};
_.J.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.J.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.J.onPlayerFullscreen=function(A){_.aq();this.playerFullscreen=A};
_.J.setRestrictedMode=function(A){var t=_.NJ();_.u0(0,58,A);t.save();_.Px().resolve(_.V2).reload()};
_.J.onPageChanged=function(A){A.detail.newPageType==="ytd-watch-flexy"||A.detail.newPageType==="ytd-watch-fixie"||A.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.bg("WEB_PAGE_TYPE_WATCH")):A.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.bg("WEB_PAGE_TYPE_SHORTS")):A.detail.newPageType==="ytd-browse"&&A.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.bg("WEB_PAGE_TYPE_MINI_APP")):_.M("web_frosted_glass")&&A.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.bg("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.bg("WEB_PAGE_TYPE_UNKNOWN"));A.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.J.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.J.onGuideToggleTap=function(){_.s9(this.hostElement,"yt-guide-toggle")};
_.J.onGuideToggleHover=function(){_.s9(this.hostElement,"yt-guide-hover")};
_.J.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setMastheadTheme=function(){var A=_.kO(this.hostElement).querySelector("#masthead");A&&(A.dark=A.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),A.isDarkThemeForced=!1)};
_.J.onRequestPanelModeChange=function(A,t){this.hideHeaderShadow=t.mode!=="seamed"};
_.J.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.J.onDrawerIronSelect=function(A){_.oO(A).id==="guide"&&this.processDrawerIronSelect()};
_.J.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var A="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(A="opened"));_.s9(this.hostElement,"yt-autonav-pause-guide-"+A)};
_.J.onAddElementToApp=function(A){_.sF(this.hostElement).appendChild(A.detail)};
_.J.onThrottledScroll=function(){var A=_.Px().resolve(_.HO).getCurrentPage();A&&(this.scrollAtTop=A.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.J.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.J.setFullscreen=function(){if(_.M("external_fullscreen")||!this.isWatchPage){var A=_.M("kevlar_fullerscreen_root_only_killswitch")?!!_.aq():!!_.aq()&&_.aq()===document.documentElement;A=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(A||this.isFullWindowSession);this.fullscreen!==A&&((this.fullscreen=A)&&_.r2(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.$I().dispatch(_.KRp(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.kJ(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.J.setFullscreenLoggingForShorts=function(A){var t,f,X;return _.l(function(Q){if(Q.nextAddress==1)return Q.yield((t=_.K1())==null?void 0:t.getPlayerPromise(),2);f=Q.yieldResult;(X=f)==null||X.setAppFullscreen(A);_.LO(Q)})};
_.J.updateMastheadCssHeight=function(){var A=this.mastheadHeight;this.fullscreen&&(A=0);_.Q_(this.hostElement,{"--ytd-masthead-height":A+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.J.updateNetworkStatusBannerDisplayStatus=function(){var A="unset";this.fullscreen&&(A="none");_.Q_(this.hostElement,{"--ytd-network-status-banner-display":A})};
_.J.updateNetworkStatusBannerCssHeight=function(){var A="unset";this.fullscreen&&(A="0px");_.Q_(this.hostElement,{"--ytd-network-status-banner-max-height":A})};
_.J.updateScrollAndMasthead=function(A,t,f,X){this.iMaxTheaterMode||(X=!1);var Q=_.Px().resolve(_.HO).getCurrentPage();A||t||X?(document.body.classList.add("no-scroll"),Q.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.JY(this,this.onScroll)),Q.setScrollTop(0),_.Q_(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.gl()+"px"})):f?_.s9(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.s9(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Q.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.JY(this,this.onScroll)));this.mastheadHidden=A||t||f;this.updateMastheadCssHeight();_.M("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.J.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.J.onYtNavigateAction=function(A){A=this.get("navigateAction.endpoint",A);_.s9(this.hostElement,"yt-navigate",{endpoint:A})};
_.J.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var A=document.createElement("yt-create-family-dialog");_.sF(this.hostElement).appendChild(A);this.hasCreateFamilyDialog=!0}};
_.J.onSetPushNotificationsEnabledCommand=function(A){var t=this,f=_.C(A,kuy);f&&typeof f.enabled==="boolean"&&(Notification.permission!=="granted"?Inl().then(function(){Notification.permission==="granted"?(O1_(!f.enabled).then(Ml8),f.successAction&&_.Al(t.hostElement,[f.successAction])):f.failureAction&&_.Al(t.hostElement,[f.failureAction])}):(O1_(!f.enabled).then(Ml8),f.successAction&&_.Al(this.hostElement,[f.successAction])))};
_.J.onYtSignalActionEnableChromeNotifications=function(){xIA(!0)};
_.J.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.C(this.topbarData.hotkeyDialog,f9_)}}})};
_.J.onYtSignalActionShowKeyboardShortcutDialog=function(){_.kJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.J.onYtEndpointChangeHandler=function(A,t){var f=_.K8(_.Yx);f.pendingPrefetchJob_&&(t=!(!t||t.autonav!="1"),f.pendingPrefetchJob_.resolve(A&&_.q5x(A)?_.Jwl(A,t):""),f.pendingPrefetchJob_=null);_.kJ(this.hostElement,"yt-pause-active-page-context");_.kJ(this.hostElement,"ytd-log-youthere-nav");_.kJ(this.hostElement,"yt-prepare-page-dispose")};
_.J.handleCommandWithCommandHandler=function(A,t){_.XH.instance.resolveCommand(A,{form:{element:t}})};
_.J.onYtTimedCommand=function(A){var t=this;A=_.C(A,Ak3);var f=A.command;f&&_.NB(_.a6,function(){var X=_.C(f,_.Cwi);X?(_.XH.instance.resolveCommand(f),t.maybeLogGetAnswerRequestTick(X)):_.tl(t.hostElement,[f],t.hostElement)},A.timeoutMs||0)};
_.J.maybeLogGetAnswerRequestTick=function(A){A&&A.isFirstRequest&&(_.b0("search_overview_answer"),_.Wt("so_rq",void 0,"search_overview_answer"))};
_.J.onYtSignalActionSkipNavigation=function(){var A=_.Px().resolve(_.HO).getCurrentPage();_.GO(A)};
_.J.onYtSignalActionCopyDebugData=function(){wOA()};
_.J.handleEntityUpdateCommand=function(A){_.l$(_.C(A,_.Sm7).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.J.logFlowLoggingEventCommand=function(A){if(A=_.C(A,_.oQq))if(A.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var t=A.flowEventNamespace,f=A.flowEventType,X=A.flowType;X&&t&&f&&_.sab(_.qv(t,f,A.flowEventMetadata),X)}else{t=_.JL();f=A.flowEventNamespace;X=A.flowEventType;var Q=A.flowType;Q&&f&&X&&t.logFlowEvent(_.qv(f,X,A.flowEventMetadata),Q,A.flowNonce)}};
_.J.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.J.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.J.onTouchStart=function(){var A=_.oF();_.Ws()&&_.FR(A.JSC$13394_screenManager,{visualElement:A.ve})};
_.J.handleSelectLanguageCommand=function(A){if(A=_.C(A,ekw).hl){var t=_.NJ();t.set("hl",A);t.save();_.Px().resolve(_.V2).reload()}};
_.J.handleConfirmDialogEndpoint=function(A){(A=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&this.ytOpenPopupBehavior.openPopup(A)};
_.J.handleOpenPopupNavigationEndpoints=function(A,t){(A=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&this.ytOpenPopupBehavior.openPopup(A,t)};
_.J.handleSaveCommandToSessionStorage=function(A){if(A=_.C(A,_.W1f)){var t=A.key;t&&A.command&&window.sessionStorage.setItem(t,JSON.stringify(A.command))}};
_.J.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(A){A&&A.active&&A.active.postMessage({type:"refresh_shell"})}).catch(function(A){A.name!=="SecurityError"&&_.HQ(A)})};
_.J.onDeviceThemeChanged=function(){var A=_.EF();_.u0(_.NJ(),185,A);_.NJ().save()};
_.J.handleYtRegisterPromoCommand=function(A){if(_.C(A,sBy)){var t=_.Px().resolve(_.HO).getCurrentPage()||this.hostElement;H7h().registerPromoCommand(_.C(A,sBy),t)}};
_.J.onYtNavigateHomeAction=function(){if(!_.M("kevlar_miniplayer_navigate_home_from_app_killswitch")){var A,t,f,X,Q=(X=(A=this.topbarData)==null?void 0:(t=A.logo)==null?void 0:(f=t.topbarLogoRenderer)==null?void 0:f.endpoint)!=null?X:_.HX;this.ytComponentBehavior.resolveCommand(Q)}};
_.J.onYtLocationCollectionCommand=function(A){EgQ(_.C(A,GA3))};
_.J.onYtGetLocationCommand=function(A){Lay(_.C(A,ebd),this)};
_.J.updateRenderGuideFromBinding=function(A){this.renderGuide=A.detail.value};
_.J.updateGuidePersistentAndVisibleFromBinding=function(A){this.guidePersistentAndVisible=A.detail.value};
_.J.updateMiniGuideVisibleFromBinding=function(A){this.miniGuideVisible=A.detail.value};
_.J.onThemeSelected=function(A,t){var f=_.NJ(),X=A||t?A:_.EF(),Q=(X&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!X&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.UKu(_.Wx(window.location.href));_.u0(0,165,A);_.u0(0,174,t);f.save();Q&&_.kJ(this.hostElement,"yt-dark-mode-toggled-action",[X]);_.kJ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.getCurrentTheme=function(){return _.D2()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.np()};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.J.handleShowConsentPrimitive=function(A){var t=this,f,X;return _.l(function(Q){if(Q.nextAddress==1){try{f=(X=_.K1())==null?void 0:X.getPlayerPromise()}catch(q){}return Q.yield(kWc(A,f),2)}_.kJ(t.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.LO(Q)})};
_.J.handleSelectActiveIdentityEndpointInternal=function(A){_.vi();A=_.C(A,_.jHf);if(A!=null&&A.supportedTokens){A=_.U(A.supportedTokens);for(var t=A.next();!t.done;t=A.next())t=t.value,t.accountSigninToken&&_.pp(t.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.J.handleUpdatePermissionRoleCommand=function(A){if(A=_.C(A,_.Y$p)){var t;this.hasDelegation=!((t=_.C(A.renderer,_.j4T))==null||!t.status)}};
_.J.registerWithViewTransitionManager=function(){var A=_.Px().resolve(_.z7(_.w4));if(A){var t,f=(t=this.guide)==null?void 0:t.querySelector("#scrim"),X;t=(X=this.guide)==null?void 0:X.querySelector("#contentContainer");f&&t&&A.isAnyTransitionEnabled&&(X={},A.viewTransitionCoordinator.registerElement(f,(X.slide="app-drawer-scrim-page-transition",X["lockup-to-watch"]="app-drawer-scrim-page-transition",X["learning-journey"]="app-drawer-scrim-page-transition",X)),f={},A.viewTransitionCoordinator.registerElement(t,
(f.slide="app-drawer-container-page-transition",f["lockup-to-watch"]="app-drawer-container-page-transition",f["learning-journey"]="app-drawer-container-page-transition",f)))}};
_.PV.Object.defineProperties(LJ.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.M("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.PV.Object.defineProperties(LJ,{template:{configurable:!0,enumerable:!0,get:function(){if(urh===void 0){var A=document.createElement("template");_.m(A,'\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 id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\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<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
A.content.insertBefore(_.a().content.cloneNode(!0),A.content.firstChild);urh=A}A=urh;return A}}});
LJ.prototype.onOpenHotkeyDialog=LJ.prototype.onOpenHotkeyDialog;LJ.prototype.setFullscreen=LJ.prototype.setFullscreen;LJ.prototype.onAddElementToApp=LJ.prototype.onAddElementToApp;LJ.prototype.onDrawerIronSelect=LJ.prototype.onDrawerIronSelect;LJ.prototype.onGuideOpenButtonHover=LJ.prototype.onGuideOpenButtonHover;LJ.prototype.onRequestPanelModeChange=LJ.prototype.onRequestPanelModeChange;LJ.prototype.onPageDataUpdated=LJ.prototype.onPageDataUpdated;LJ.prototype.onPageChanged=LJ.prototype.onPageChanged;
LJ.prototype.onSetTheaterModeEnabled=LJ.prototype.onSetTheaterModeEnabled;LJ.prototype.updateMastheadData=LJ.prototype.updateMastheadData;LJ.prototype.onYtPageManagerAttached=LJ.prototype.onYtPageManagerAttached;LJ.prototype.observePersistentPanelVisibility=LJ.prototype.observePersistentPanelVisibility;LJ.prototype.observeGuideVisibility=LJ.prototype.observeGuideVisibility;LJ.prototype.guideIsVisibleButNotPersistentSelectorChanged=LJ.prototype.guideIsVisibleButNotPersistentSelectorChanged;
LJ.prototype.isInlinePreviewEnabledChanged=LJ.prototype.isInlinePreviewEnabledChanged;LJ.prototype.isWatchPageChanged=LJ.prototype.isWatchPageChanged;LJ.prototype.dispatchFrostedGlassMode=LJ.prototype.dispatchFrostedGlassMode;_.V([_.b(_.qT),_.H("design:type",Object)],LJ.prototype,"ytdReduxBehavior",void 0);_.V([_.b(_.gC.YtEventForwardingBehavior),_.H("design:type",Object)],LJ.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.b(_.I4.YtOpenPopupBehavior),_.H("design:type",Object)],LJ.prototype,"ytOpenPopupBehavior",void 0);_.V([_.b(_.jD.YtActionHandlerBehavior),_.H("design:type",Object)],LJ.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.b({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.XA.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.M("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var A;((A=this.actionRouterNode.hostElement)!=null?A:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var A;((A=this.actionRouterNode.hostElement)!=null?A:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(A){this.actionRouter_.handleAction(A.detail)}}),
_.H("design:type",Object)],LJ.prototype,"ytActionRouterBehavior",void 0);_.V([_.b(rn2.YtdAppBehavior),_.H("design:type",Object)],LJ.prototype,"ytdAppBehavior",void 0);_.V([_.b(_.xa.YtEndpointBehavior),_.H("design:type",Object)],LJ.prototype,"ytEndpointBehavior",void 0);_.V([_.b(OC3.YtEndpointHandlerWithYpcBehavior),_.H("design:type",Object)],LJ.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.V([_.b(zKQ.YtLogYpcFlowCommandsBehavior),_.H("design:type",Object)],LJ.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.V([_.b(_.g.YtRendererBehavior),_.H("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.V([_.b(_.Ja.YtComponentBehavior),_.H("design:type",Object)],LJ.prototype,"ytComponentBehavior",void 0);_.V([_.n({selector:_.oOy}),_.H("design:type",Object)],LJ.prototype,"tabGesturesIsActive",void 0);_.V([_.n(),_.H("design:type",Boolean)],LJ.prototype,"renderGuide",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"guidePersistentAndVisible",void 0);_.V([_.n({selector:_.Zpw}),_.H("design:type",Boolean)],LJ.prototype,"guideIsVisibleButNotPersistent",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"standalone",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"miniGuideVisible",void 0);
_.V([_.n(),_.H("design:type",Object)],LJ.prototype,"persistentPanelEnabled",void 0);_.V([_.n({selector:Ipl,reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"persistentPanelVisible",void 0);_.V([_.n({selector:_.FJx}),_.H("design:type",Number)],LJ.prototype,"miniplayerPlaybackState",void 0);_.V([_.n({selector:_.WE,reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"miniplayerIsActive",void 0);
_.V([_.n({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.H("design:type",Boolean)],LJ.prototype,"isInlinePreviewEnabled",void 0);_.V([_.n(),_.H("design:type",Boolean)],LJ.prototype,"isInlinePreviewDisabled",void 0);_.V([_.n({reflectToAttribute:!0,value:function(){return _.Ka("START_IN_FULL_WINDOW_MODE")}}),
_.H("design:type",Boolean)],LJ.prototype,"mastheadHidden",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"playerFullscreen",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"fullscreen",void 0);_.V([_.n({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"hideHeaderShadow",void 0);
_.V([_.n({value:{GUIDE_ALT_LABEL:_.e5("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.H("design:type",Object)],LJ.prototype,"menuStrings",void 0);_.V([_.n({computed:"computeTopbarData(data)"}),_.H("design:type",Object)],LJ.prototype,"topbarData",void 0);_.V([_.n({selector:_.pS5,reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"isWatchPage",void 0);_.V([_.n({selector:_.Eag,reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"isShortsPage",void 0);
_.V([_.n({selector:function(A){return _.yQ(A)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.H("design:type",Boolean)],LJ.prototype,"isMiniAppPage",void 0);_.V([_.n({selector:function(A){return _.yQ(A)==="WEB_PAGE_TYPE_BROWSE"}}),
_.H("design:type",Boolean)],LJ.prototype,"isBrowsePage",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Boolean)],LJ.prototype,"scrolling",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],LJ.prototype,"hasDelegation",void 0);_.V([_.n({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],LJ.prototype,"guideScrolledByTouch",void 0);_.V([_.n(),_.H("design:type",Object)],LJ.prototype,"isFrostedGlassInitialized",void 0);
_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],LJ.prototype,"frostedGlassExp",void 0);_.V([_.n({selector:function(A){return A.ui.chipBarIsSticky}}),
_.H("design:type",Boolean)],LJ.prototype,"chipBarIsSticky",void 0);_.V([_.n({computed:"computeIsHomePage(isBrowsePage, data)"}),_.H("design:type",Boolean)],LJ.prototype,"isHomePage",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],LJ.prototype,"hasPendingWatchNavigation",void 0);_.V([_.n({reflectToAttribute:!0}),_.H("design:type",Object)],LJ.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.V([_.n(),_.H("design:type",Object)],LJ.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.V([_.lF("guide"),_.H("design:type",Object)],LJ.prototype,"guide",void 0);_.V([_.lF("guide-service"),_.H("design:type",oKd)],LJ.prototype,"guideService",void 0);_.V([_.lF("guide-inner-content"),_.H("design:type",HTMLDivElement)],LJ.prototype,"guideInnerContent",void 0);_.V([_.lo("#persistent-panel-container"),_.H("design:type",HTMLElement)],LJ.prototype,"persistentPanelContainer",void 0);
_.V([_.n({selector:_.Iml}),_.H("design:type",String)],LJ.prototype,"frostedGlassMode",void 0);_.V([_.ev("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"dispatchFrostedGlassMode",null);_.V([_.n({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.H("design:type",Object)],LJ.prototype,"isFrostedGlassDisabled",void 0);
_.V([_.ev("isWatchPage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"isWatchPageChanged",null);_.V([_.y("isHomePage","chipBarIsSticky"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LJ.prototype,"applyFrostedGlassToChipBar",null);_.V([_.n(),_.H("design:type",Object)],LJ.prototype,"isChannelOrPlaylistPage",void 0);
_.V([_.PU("isInlinePreviewEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"isInlinePreviewEnabledChanged",null);_.V([_.ev("guideIsVisibleButNotPersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.V([_.ev("guidePersistentAndVisible","miniGuideVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"observeGuideVisibility",null);_.V([_.ev("persistentPanelVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"observePersistentPanelVisibility",null);
_.V([_.UQ("attached"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],LJ.prototype,"onYtPageManagerAttached",null);_.V([_.ev("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],LJ.prototype,"updateMastheadData",null);_.V([_.UQ("yt-set-theater-mode-enabled"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],LJ.prototype,"onSetTheaterModeEnabled",null);
_.V([_.UQ("yt-page-type-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],LJ.prototype,"onPageChanged",null);_.V([_.UQ("yt-page-data-updated"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"onPageDataUpdated",null);_.V([_.UQ("yt-request-panel-mode-change"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Object]),_.H("design:returntype")],LJ.prototype,"onRequestPanelModeChange",null);
_.V([_.UQ("yt-guide-hover"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"onGuideOpenButtonHover",null);_.V([_.UQ("app-drawer-transitioned"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],LJ.prototype,"onDrawerIronSelect",null);_.V([_.UQ("yt-add-element-to-app"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],LJ.prototype,"onAddElementToApp",null);
_.V([_.UQ("yt-set-fullerscreen-styles"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"setFullscreen",null);_.V([_.UQ("yt-open-hotkey-dialog"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LJ.prototype,"onOpenHotkeyDialog",null);_.V([_.y_({is:"ytd-app"})],LJ);_.TT().processSignal("eor");
_.dw();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
